@esvndev/es-react-table-interface 1.4.25 → 1.4.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -88,7 +88,7 @@ object-assign
|
|
|
88
88
|
* sweetalert2 v11.17.2
|
|
89
89
|
* Released under the MIT License.
|
|
90
90
|
*/
|
|
91
|
-
function MV(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function AV(e,t){return e.get(MV(e,t))}function _V(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}const OV={},NV=e=>new Promise(t=>{if(!e)return t();const n=window.scrollX,r=window.scrollY;OV.restoreFocusTimeout=setTimeout(()=>{OV.previousActiveElement instanceof HTMLElement?(OV.previousActiveElement.focus(),OV.previousActiveElement=null):document.body&&document.body.focus(),t()},100),window.scrollTo(n,r)}),ZV="swal2-",DV=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"].reduce((e,t)=>(e[t]=ZV+t,e),{}),IV=["success","warning","info","question","error"].reduce((e,t)=>(e[t]=ZV+t,e),{}),HV="SweetAlert2:",TV=e=>e.charAt(0).toUpperCase()+e.slice(1),LV=e=>{console.warn(`${HV} ${"object"==typeof e?e.join(" "):e}`)},PV=e=>{console.error(`${HV} ${e}`)},BV=[],VV=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(e=>{BV.includes(e)||(BV.push(e),LV(e))})(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`)},zV=e=>"function"==typeof e?e():e,jV=e=>e&&"function"==typeof e.toPromise,RV=e=>jV(e)?e.toPromise():Promise.resolve(e),WV=e=>e&&Promise.resolve(e)===e,FV=()=>document.body.querySelector(`.${DV.container}`),qV=e=>{const t=FV();return t?t.querySelector(e):null},YV=e=>qV(`.${e}`),UV=()=>YV(DV.popup),GV=()=>YV(DV.icon),XV=()=>YV(DV.title),JV=()=>YV(DV["html-container"]),KV=()=>YV(DV.image),QV=()=>YV(DV["progress-steps"]),$V=()=>YV(DV["validation-message"]),ez=()=>qV(`.${DV.actions} .${DV.confirm}`),tz=()=>qV(`.${DV.actions} .${DV.cancel}`),nz=()=>qV(`.${DV.actions} .${DV.deny}`),rz=()=>qV(`.${DV.loader}`),iz=()=>YV(DV.actions),az=()=>YV(DV.footer),oz=()=>YV(DV["timer-progress-bar"]),lz=()=>YV(DV.close),sz=()=>{const e=UV();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(t).sort((e,t)=>{const n=parseInt(e.getAttribute("tabindex")||"0"),r=parseInt(t.getAttribute("tabindex")||"0");return n>r?1:n<r?-1:0}),r=e.querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n'),i=Array.from(r).filter(e=>"-1"!==e.getAttribute("tabindex"));return[...new Set(n.concat(i))].filter(e=>Mz(e))},cz=()=>uz(document.body,DV.shown)&&!uz(document.body,DV["toast-shown"])&&!uz(document.body,DV["no-backdrop"]),dz=()=>{const e=UV();return!!e&&uz(e,DV.toast)},hz=(e,t)=>{if(e.textContent="",t){const n=(new DOMParser).parseFromString(t,"text/html"),r=n.querySelector("head");r&&Array.from(r.childNodes).forEach(t=>{e.appendChild(t)});const i=n.querySelector("body");i&&Array.from(i.childNodes).forEach(t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)})}},uz=(e,t)=>{if(!t)return!1;const n=t.split(/\s+/);for(let t=0;t<n.length;t++)if(!e.classList.contains(n[t]))return!1;return!0},pz=(e,t,n)=>{if(((e,t)=>{Array.from(e.classList).forEach(n=>{Object.values(DV).includes(n)||Object.values(IV).includes(n)||Object.values(t.showClass||{}).includes(n)||e.classList.remove(n)})})(e,t),!t.customClass)return;const r=t.customClass[n];r&&("string"==typeof r||r.forEach?gz(e,r):LV(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof r}"`))},fz=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${DV.popup} > .${DV[t]}`);case"checkbox":return e.querySelector(`.${DV.popup} > .${DV.checkbox} input`);case"radio":return e.querySelector(`.${DV.popup} > .${DV.radio} input:checked`)||e.querySelector(`.${DV.popup} > .${DV.radio} input:first-child`);case"range":return e.querySelector(`.${DV.popup} > .${DV.range} input`);default:return e.querySelector(`.${DV.popup} > .${DV.input}`)}},mz=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},vz=(e,t,n)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach(t=>{Array.isArray(e)?e.forEach(e=>{n?e.classList.add(t):e.classList.remove(t)}):n?e.classList.add(t):e.classList.remove(t)}))},gz=(e,t)=>{vz(e,t,!0)},bz=(e,t)=>{vz(e,t,!1)},yz=(e,t)=>{const n=Array.from(e.children);for(let e=0;e<n.length;e++){const r=n[e];if(r instanceof HTMLElement&&uz(r,t))return r}},wz=(e,t,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||0===parseInt(n)?e.style.setProperty(t,"number"==typeof n?`${n}px`:n):e.style.removeProperty(t)},xz=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e&&(e.style.display=t)},Ez=e=>{e&&(e.style.display="none")},kz=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"block";e&&new MutationObserver(()=>{Sz(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},Cz=(e,t,n,r)=>{const i=e.querySelector(t);i&&i.style.setProperty(n,r)},Sz=function(e,t){t?xz(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):Ez(e)},Mz=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),Az=e=>!!(e.scrollHeight>e.clientHeight),_z=e=>{const t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),r=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||r>0},Oz=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=oz();n&&Mz(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${e/1e3}s linear`,n.style.width="0%"},10))},Nz=`\n <div aria-labelledby="${DV.title}" aria-describedby="${DV["html-container"]}" class="${DV.popup}" tabindex="-1">\n <button type="button" class="${DV.close}"></button>\n <ul class="${DV["progress-steps"]}"></ul>\n <div class="${DV.icon}"></div>\n <img class="${DV.image}" />\n <h2 class="${DV.title}" id="${DV.title}"></h2>\n <div class="${DV["html-container"]}" id="${DV["html-container"]}"></div>\n <input class="${DV.input}" id="${DV.input}" />\n <input type="file" class="${DV.file}" />\n <div class="${DV.range}">\n <input type="range" />\n <output></output>\n </div>\n <select class="${DV.select}" id="${DV.select}"></select>\n <div class="${DV.radio}"></div>\n <label class="${DV.checkbox}">\n <input type="checkbox" id="${DV.checkbox}" />\n <span class="${DV.label}"></span>\n </label>\n <textarea class="${DV.textarea}" id="${DV.textarea}"></textarea>\n <div class="${DV["validation-message"]}" id="${DV["validation-message"]}"></div>\n <div class="${DV.actions}">\n <div class="${DV.loader}"></div>\n <button type="button" class="${DV.confirm}"></button>\n <button type="button" class="${DV.deny}"></button>\n <button type="button" class="${DV.cancel}"></button>\n </div>\n <div class="${DV.footer}"></div>\n <div class="${DV["timer-progress-bar-container"]}">\n <div class="${DV["timer-progress-bar"]}"></div>\n </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),Zz=()=>{OV.currentInstance.resetValidationMessage()},Dz=e=>{const t=(()=>{const e=FV();return!!e&&(e.remove(),bz([document.documentElement,document.body],[DV["no-backdrop"],DV["toast-shown"],DV["has-column"]]),!0)})();if("undefined"==typeof window||"undefined"==typeof document)return void PV("SweetAlert2 requires document to initialize");const n=document.createElement("div");n.className=DV.container,t&&gz(n,DV["no-transition"]),hz(n,Nz),n.dataset.swal2Theme=e.theme;const r="string"==typeof(i=e.target)?document.querySelector(i):i;var i;r.appendChild(n),(e=>{const t=UV();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&gz(FV(),DV.rtl)})(r),(()=>{const e=UV(),t=yz(e,DV.input),n=yz(e,DV.file),r=e.querySelector(`.${DV.range} input`),i=e.querySelector(`.${DV.range} output`),a=yz(e,DV.select),o=e.querySelector(`.${DV.checkbox} input`),l=yz(e,DV.textarea);t.oninput=Zz,n.onchange=Zz,a.onchange=Zz,o.onchange=Zz,l.oninput=Zz,r.oninput=()=>{Zz(),i.value=r.value},r.onchange=()=>{Zz(),i.value=r.value}})()},Iz=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?Hz(e,t):e&&hz(t,e)},Hz=(e,t)=>{e.jquery?Tz(t,e):hz(t,e.toString())},Tz=(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))},Lz=(e,t)=>{const n=iz(),r=rz();n&&r&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?xz(n):Ez(n),pz(n,t,"actions"),function(e,t,n){const r=ez(),i=nz(),a=tz();if(!r||!i||!a)return;Pz(r,"confirm",n),Pz(i,"deny",n),Pz(a,"cancel",n),function(e,t,n,r){if(!r.buttonsStyling)return void bz([e,t,n],DV.styled);gz([e,t,n],DV.styled),r.confirmButtonColor&&(e.style.backgroundColor=r.confirmButtonColor,gz(e,DV["default-outline"]));r.denyButtonColor&&(t.style.backgroundColor=r.denyButtonColor,gz(t,DV["default-outline"]));r.cancelButtonColor&&(n.style.backgroundColor=r.cancelButtonColor,gz(n,DV["default-outline"]))}(r,i,a,n),n.reverseButtons&&(n.toast?(e.insertBefore(a,r),e.insertBefore(i,r)):(e.insertBefore(a,t),e.insertBefore(i,t),e.insertBefore(r,t)))}(n,r,t),hz(r,t.loaderHtml||""),pz(r,t,"loader"))};function Pz(e,t,n){const r=TV(t);Sz(e,n[`show${r}Button`],"inline-block"),hz(e,n[`${t}ButtonText`]||""),e.setAttribute("aria-label",n[`${t}ButtonAriaLabel`]||""),e.className=DV[t],pz(e,n,`${t}Button`)}const Bz=(e,t)=>{const n=FV();n&&(!function(e,t){"string"==typeof t?e.style.background=t:t||gz([document.documentElement,document.body],DV["no-backdrop"])}(n,t.backdrop),function(e,t){if(!t)return;t in DV?gz(e,DV[t]):(LV('The "position" parameter is not valid, defaulting to "center"'),gz(e,DV.center))}(n,t.position),function(e,t){if(!t)return;gz(e,DV[`grow-${t}`])}(n,t.grow),pz(n,t,"container"))};var Vz={innerParams:new WeakMap,domCache:new WeakMap};const zz=["input","file","range","select","radio","checkbox","textarea"],jz=e=>{if(!e.input)return;if(!Gz[e.input])return void PV(`Unexpected type of input! Expected ${Object.keys(Gz).join(" | ")}, got "${e.input}"`);const t=Yz(e.input);if(!t)return;const n=Gz[e.input](t,e);xz(t),e.inputAutoFocus&&setTimeout(()=>{mz(n)})},Rz=(e,t)=>{const n=UV();if(!n)return;const r=fz(n,e);if(r){(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)}})(r);for(const e in t)r.setAttribute(e,t[e])}},Wz=e=>{if(!e.input)return;const t=Yz(e.input);t&&pz(t,e,"input")},Fz=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},qz=(e,t,n)=>{if(n.inputLabel){const r=document.createElement("label"),i=DV["input-label"];r.setAttribute("for",e.id),r.className=i,"object"==typeof n.customClass&&gz(r,n.customClass.inputLabel),r.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",r)}},Yz=e=>{const t=UV();if(t)return yz(t,DV[e]||DV.input)},Uz=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:WV(t)||LV(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},Gz={};Gz.text=Gz.email=Gz.password=Gz.number=Gz.tel=Gz.url=Gz.search=Gz.date=Gz["datetime-local"]=Gz.time=Gz.week=Gz.month=(e,t)=>(Uz(e,t.inputValue),qz(e,e,t),Fz(e,t),e.type=t.input,e),Gz.file=(e,t)=>(qz(e,e,t),Fz(e,t),e),Gz.range=(e,t)=>{const n=e.querySelector("input"),r=e.querySelector("output");return Uz(n,t.inputValue),n.type=t.input,Uz(r,t.inputValue),qz(n,e,t),e},Gz.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const n=document.createElement("option");hz(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return qz(e,e,t),e},Gz.radio=e=>(e.textContent="",e),Gz.checkbox=(e,t)=>{const n=fz(UV(),"checkbox");n.value="1",n.checked=Boolean(t.inputValue);const r=e.querySelector("span");return hz(r,t.inputPlaceholder||t.inputLabel),n},Gz.textarea=(e,t)=>{Uz(e,t.inputValue),Fz(e,t),qz(e,e,t);return setTimeout(()=>{if("MutationObserver"in window){const n=parseInt(window.getComputedStyle(UV()).width);new MutationObserver(()=>{if(!document.body.contains(e))return;const r=e.offsetWidth+(i=e,parseInt(window.getComputedStyle(i).marginLeft)+parseInt(window.getComputedStyle(i).marginRight));var i;r>n?UV().style.width=`${r}px`:wz(UV(),"width",t.width)}).observe(e,{attributes:!0,attributeFilter:["style"]})}}),e};const Xz=(e,t)=>{const n=JV();n&&(kz(n),pz(n,t,"htmlContainer"),t.html?(Iz(t.html,n),xz(n,"block")):t.text?(n.textContent=t.text,xz(n,"block")):Ez(n),((e,t)=>{const n=UV();if(!n)return;const r=Vz.innerParams.get(e),i=!r||t.input!==r.input;zz.forEach(e=>{const r=yz(n,DV[e]);r&&(Rz(e,t.inputAttributes),r.className=DV[e],i&&Ez(r))}),t.input&&(i&&jz(t),Wz(t))})(e,t))},Jz=(e,t)=>{for(const[n,r]of Object.entries(IV))t.icon!==n&&bz(e,r);gz(e,t.icon&&IV[t.icon]),$z(e,t),Kz(),pz(e,t,"icon")},Kz=()=>{const e=UV();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e<n.length;e++)n[e].style.backgroundColor=t},Qz=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let n=e.innerHTML,r="";if(t.iconHtml)r=ej(t.iconHtml);else if("success"===t.icon)r='\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n',n=n.replace(/ style=".*?"/g,"");else if("error"===t.icon)r='\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n';else if(t.icon){r=ej({question:"?",warning:"!",info:"i"}[t.icon])}n.trim()!==r.trim()&&hz(e,r)},$z=(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"])Cz(e,n,"background-color",t.iconColor);Cz(e,".swal2-success-ring","border-color",t.iconColor)}},ej=e=>`<div class="${DV["icon-content"]}">${e}</div>`;let tj=!1,nj=0,rj=0,ij=0,aj=0;const oj=e=>{const t=UV();if(e.target===t||GV().contains(e.target)){tj=!0;const n=cj(e);nj=n.clientX,rj=n.clientY,ij=parseInt(t.style.insetInlineStart)||0,aj=parseInt(t.style.insetBlockStart)||0,gz(t,"swal2-dragging")}},lj=e=>{const t=UV();if(tj){let{clientX:n,clientY:r}=cj(e);t.style.insetInlineStart=`${ij+(n-nj)}px`,t.style.insetBlockStart=`${aj+(r-rj)}px`}},sj=()=>{const e=UV();tj=!1,bz(e,"swal2-dragging")},cj=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}},dj=(e,t)=>{const n=FV(),r=UV();if(n&&r){if(t.toast){wz(n,"width",t.width),r.style.width="100%";const e=rz();e&&r.insertBefore(e,GV())}else wz(r,"width",t.width);wz(r,"padding",t.padding),t.color&&(r.style.color=t.color),t.background&&(r.style.background=t.background),Ez($V()),hj(r,t),t.draggable&&!t.toast?(gz(r,DV.draggable),(e=>{e.addEventListener("mousedown",oj),document.body.addEventListener("mousemove",lj),e.addEventListener("mouseup",sj),e.addEventListener("touchstart",oj),document.body.addEventListener("touchmove",lj),e.addEventListener("touchend",sj)})(r)):(bz(r,DV.draggable),(e=>{e.removeEventListener("mousedown",oj),document.body.removeEventListener("mousemove",lj),e.removeEventListener("mouseup",sj),e.removeEventListener("touchstart",oj),document.body.removeEventListener("touchmove",lj),e.removeEventListener("touchend",sj)})(r))}},hj=(e,t)=>{const n=t.showClass||{};e.className=`${DV.popup} ${Mz(e)?n.popup:""}`,t.toast?(gz([document.documentElement,document.body],DV["toast-shown"]),gz(e,DV.toast)):gz(e,DV.modal),pz(e,t,"popup"),"string"==typeof t.customClass&&gz(e,t.customClass),t.icon&&gz(e,DV[`icon-${t.icon}`])},uj=e=>{const t=document.createElement("li");return gz(t,DV["progress-step"]),hz(t,e),t},pj=e=>{const t=document.createElement("li");return gz(t,DV["progress-step-line"]),e.progressStepsDistance&&wz(t,"width",e.progressStepsDistance),t},fj=(e,t)=>{dj(0,t),Bz(0,t),((e,t)=>{const n=QV();if(!n)return;const{progressSteps:r,currentProgressStep:i}=t;r&&0!==r.length&&void 0!==i?(xz(n),n.textContent="",i>=r.length&&LV("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),r.forEach((e,a)=>{const o=uj(e);if(n.appendChild(o),a===i&&gz(o,DV["active-progress-step"]),a!==r.length-1){const e=pj(t);n.appendChild(e)}})):Ez(n)})(0,t),((e,t)=>{const n=Vz.innerParams.get(e),r=GV();if(!r)return;if(n&&t.icon===n.icon)return Qz(r,t),void Jz(r,t);if(!t.icon&&!t.iconHtml)return void Ez(r);if(t.icon&&-1===Object.keys(IV).indexOf(t.icon))return PV(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),void Ez(r);xz(r),Qz(r,t),Jz(r,t),gz(r,t.showClass&&t.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",Kz)})(e,t),((e,t)=>{const n=KV();n&&(t.imageUrl?(xz(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt||""),wz(n,"width",t.imageWidth),wz(n,"height",t.imageHeight),n.className=DV.image,pz(n,t,"image")):Ez(n))})(0,t),((e,t)=>{const n=XV();n&&(kz(n),Sz(n,t.title||t.titleText,"block"),t.title&&Iz(t.title,n),t.titleText&&(n.innerText=t.titleText),pz(n,t,"title"))})(0,t),((e,t)=>{const n=lz();n&&(hz(n,t.closeButtonHtml||""),pz(n,t,"closeButton"),Sz(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel||""))})(0,t),Xz(e,t),Lz(0,t),((e,t)=>{const n=az();n&&(kz(n),Sz(n,t.footer,"block"),t.footer&&Iz(t.footer,n),pz(n,t,"footer"))})(0,t);const n=UV();"function"==typeof t.didRender&&n&&t.didRender(n),OV.eventEmitter.emit("didRender",n)},mj=()=>{var e;return null===(e=ez())||void 0===e?void 0:e.click()},vj=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),gj=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},bj=(e,t)=>{var n;const r=sz();if(r.length)return(e+=t)===r.length?e=0:-1===e&&(e=r.length-1),void r[e].focus();null===(n=UV())||void 0===n||n.focus()},yj=["ArrowRight","ArrowDown"],wj=["ArrowLeft","ArrowUp"],xj=(e,t,n)=>{e&&(t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Ej(t,e):"Tab"===t.key?kj(t):[...yj,...wj].includes(t.key)?Cj(t.key):"Escape"===t.key&&Sj(t,e,n)))},Ej=(e,t)=>{if(!zV(t.allowEnterKey))return;const n=fz(UV(),t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;mj(),e.preventDefault()}},kj=e=>{const t=e.target,n=sz();let r=-1;for(let e=0;e<n.length;e++)if(t===n[e]){r=e;break}e.shiftKey?bj(r,-1):bj(r,1),e.stopPropagation(),e.preventDefault()},Cj=e=>{const t=iz(),n=ez(),r=nz(),i=tz();if(!(t&&n&&r&&i))return;const a=[n,r,i];if(document.activeElement instanceof HTMLElement&&!a.includes(document.activeElement))return;const o=yj.includes(e)?"nextElementSibling":"previousElementSibling";let l=document.activeElement;if(l){for(let e=0;e<t.children.length;e++){if(l=l[o],!l)return;if(l instanceof HTMLButtonElement&&Mz(l))break}l instanceof HTMLButtonElement&&l.focus()}},Sj=(e,t,n)=>{zV(t.allowEscapeKey)&&(e.preventDefault(),n(vj.esc))};var Mj={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const Aj=()=>{Array.from(document.body.children).forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},_j="undefined"!=typeof window&&!!window.GestureEvent,Oj=()=>{const e=FV();if(!e)return;let t;e.ontouchstart=e=>{t=Nj(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},Nj=e=>{const t=e.target,n=FV(),r=JV();return!(!n||!r)&&(!Zj(e)&&!Dj(e)&&(t===n||!Az(n)&&t instanceof HTMLElement&&"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&(!Az(r)||!r.contains(t))))},Zj=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,Dj=e=>e.touches&&e.touches.length>1;let Ij=null;const Hj=e=>{null===Ij&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(Ij=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${Ij+(()=>{const e=document.createElement("div");e.className=DV["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})()}px`)};function Tj(e,t,n,r){dz()?Wj(e,r):(NV(n).then(()=>Wj(e,r)),gj(OV)),_j?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),cz()&&(null!==Ij&&(document.body.style.paddingRight=`${Ij}px`,Ij=null),(()=>{if(uz(document.body,DV.iosfix)){const e=parseInt(document.body.style.top,10);bz(document.body,DV.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),Aj()),bz([document.documentElement,document.body],[DV.shown,DV["height-auto"],DV["no-backdrop"],DV["toast-shown"]])}function Lj(e){e=zj(e);const t=Mj.swalPromiseResolve.get(this),n=Pj(this);this.isAwaitingPromise?e.isDismissed||(Vj(this),t(e)):n&&t(e)}const Pj=e=>{const t=UV();if(!t)return!1;const n=Vz.innerParams.get(e);if(!n||uz(t,n.hideClass.popup))return!1;bz(t,n.showClass.popup),gz(t,n.hideClass.popup);const r=FV();return bz(r,n.showClass.backdrop),gz(r,n.hideClass.backdrop),jj(e,t,n),!0};function Bj(e){const t=Mj.swalPromiseReject.get(this);Vj(this),t&&t(e)}const Vj=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,Vz.innerParams.get(e)||e._destroy())},zj=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),jj=(e,t,n)=>{var r;const i=FV(),a=_z(t);"function"==typeof n.willClose&&n.willClose(t),null===(r=OV.eventEmitter)||void 0===r||r.emit("willClose",t),a?Rj(e,t,i,n.returnFocus,n.didClose):Tj(e,i,n.returnFocus,n.didClose)},Rj=(e,t,n,r,i)=>{OV.swalCloseEventFinishedCallback=Tj.bind(null,e,n,r,i);const a=function(e){var n;e.target===t&&(null===(n=OV.swalCloseEventFinishedCallback)||void 0===n||n.call(OV),delete OV.swalCloseEventFinishedCallback,t.removeEventListener("animationend",a),t.removeEventListener("transitionend",a))};t.addEventListener("animationend",a),t.addEventListener("transitionend",a)},Wj=(e,t)=>{setTimeout(()=>{var n;"function"==typeof t&&t.bind(e.params)(),null===(n=OV.eventEmitter)||void 0===n||n.emit("didClose"),e._destroy&&e._destroy()})},Fj=e=>{let t=UV();if(t||new kW,t=UV(),!t)return;const n=rz();dz()?Ez(GV()):qj(t,e),xz(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},qj=(e,t)=>{const n=iz(),r=rz();n&&r&&(!t&&Mz(ez())&&(t=ez()),xz(n),t&&(Ez(t),r.setAttribute("data-button-to-replace",t.className),n.insertBefore(r,t)),gz([e,n],DV.loading))},Yj=e=>e.checked?1:0,Uj=e=>e.checked?e.value:null,Gj=e=>e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,Xj=(e,t)=>{const n=UV();if(!n)return;const r=e=>{"select"===t.input?function(e,t,n){const r=yz(e,DV.select);if(!r)return;const i=(e,t,r)=>{const i=document.createElement("option");i.value=r,hz(i,t),i.selected=Qj(r,n.inputValue),e.appendChild(i)};t.forEach(e=>{const t=e[0],n=e[1];if(Array.isArray(n)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,r.appendChild(e),n.forEach(t=>i(e,t[1],t[0]))}else i(r,n,t)}),r.focus()}(n,Kj(e),t):"radio"===t.input&&function(e,t,n){const r=yz(e,DV.radio);if(!r)return;t.forEach(e=>{const t=e[0],i=e[1],a=document.createElement("input"),o=document.createElement("label");a.type="radio",a.name=DV.radio,a.value=t,Qj(t,n.inputValue)&&(a.checked=!0);const l=document.createElement("span");hz(l,i),l.className=DV.label,o.appendChild(a),o.appendChild(l),r.appendChild(o)});const i=r.querySelectorAll("input");i.length&&i[0].focus()}(n,Kj(e),t)};jV(t.inputOptions)||WV(t.inputOptions)?(Fj(ez()),RV(t.inputOptions).then(t=>{e.hideLoading(),r(t)})):"object"==typeof t.inputOptions?r(t.inputOptions):PV("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof t.inputOptions)},Jj=(e,t)=>{const n=e.getInput();n&&(Ez(n),RV(t.inputValue).then(r=>{n.value="number"===t.input?`${parseFloat(r)||0}`:`${r}`,xz(n),n.focus(),e.hideLoading()}).catch(t=>{PV(`Error in inputValue promise: ${t}`),n.value="",xz(n),n.focus(),e.hideLoading()}))};const Kj=e=>{const t=[];return e instanceof Map?e.forEach((e,n)=>{let r=e;"object"==typeof r&&(r=Kj(r)),t.push([n,r])}):Object.keys(e).forEach(n=>{let r=e[n];"object"==typeof r&&(r=Kj(r)),t.push([n,r])}),t},Qj=(e,t)=>!!t&&t.toString()===e.toString(),$j=(e,t)=>{const n=Vz.innerParams.get(e);if(!n.input)return void PV(`The "input" parameter is needed to be set when using returnInputValueOn${TV(t)}`);const r=e.getInput(),i=((e,t)=>{const n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return Yj(n);case"radio":return Uj(n);case"file":return Gj(n);default:return t.inputAutoTrim?n.value.trim():n.value}})(e,n);n.inputValidator?eR(e,i,t):r&&!r.checkValidity()?(e.enableButtons(),e.showValidationMessage(n.validationMessage||r.validationMessage)):"deny"===t?tR(e,i):iR(e,i)},eR=(e,t,n)=>{const r=Vz.innerParams.get(e);e.disableInput();Promise.resolve().then(()=>RV(r.inputValidator(t,r.validationMessage))).then(r=>{e.enableButtons(),e.enableInput(),r?e.showValidationMessage(r):"deny"===n?tR(e,t):iR(e,t)})},tR=(e,t)=>{const n=Vz.innerParams.get(e||void 0);if(n.showLoaderOnDeny&&Fj(nz()),n.preDeny){e.isAwaitingPromise=!0;Promise.resolve().then(()=>RV(n.preDeny(t,n.validationMessage))).then(n=>{!1===n?(e.hideLoading(),Vj(e)):e.close({isDenied:!0,value:void 0===n?t:n})}).catch(t=>rR(e||void 0,t))}else e.close({isDenied:!0,value:t})},nR=(e,t)=>{e.close({isConfirmed:!0,value:t})},rR=(e,t)=>{e.rejectPromise(t)},iR=(e,t)=>{const n=Vz.innerParams.get(e||void 0);if(n.showLoaderOnConfirm&&Fj(),n.preConfirm){e.resetValidationMessage(),e.isAwaitingPromise=!0;Promise.resolve().then(()=>RV(n.preConfirm(t,n.validationMessage))).then(n=>{Mz($V())||!1===n?(e.hideLoading(),Vj(e)):nR(e,void 0===n?t:n)}).catch(t=>rR(e||void 0,t))}else nR(e,t)};function aR(){const e=Vz.innerParams.get(this);if(!e)return;const t=Vz.domCache.get(this);Ez(t.loader),dz()?e.icon&&xz(GV()):oR(t),bz([t.popup,t.actions],DV.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const oR=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?xz(t[0],"inline-block"):Mz(ez())||Mz(nz())||Mz(tz())||Ez(e.actions)};function lR(){const e=Vz.innerParams.get(this),t=Vz.domCache.get(this);return t?fz(t.popup,e.input):null}function sR(e,t,n){const r=Vz.domCache.get(e);t.forEach(e=>{r[e].disabled=n})}function cR(e,t){const n=UV();if(n&&e)if("radio"===e.type){const e=n.querySelectorAll(`[name="${DV.radio}"]`);for(let n=0;n<e.length;n++)e[n].disabled=t}else e.disabled=t}function dR(){sR(this,["confirmButton","denyButton","cancelButton"],!1)}function hR(){sR(this,["confirmButton","denyButton","cancelButton"],!0)}function uR(){cR(this.getInput(),!1)}function pR(){cR(this.getInput(),!0)}function fR(e){const t=Vz.domCache.get(this),n=Vz.innerParams.get(this);hz(t.validationMessage,e),t.validationMessage.className=DV["validation-message"],n.customClass&&n.customClass.validationMessage&&gz(t.validationMessage,n.customClass.validationMessage),xz(t.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid","true"),r.setAttribute("aria-describedby",DV["validation-message"]),mz(r),gz(r,DV.inputerror))}function mR(){const e=Vz.domCache.get(this);e.validationMessage&&Ez(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),bz(t,DV.inputerror))}const vR={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:"×",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},gR=["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"],bR={allowEnterKey:void 0},yR=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],wR=e=>Object.prototype.hasOwnProperty.call(vR,e),xR=e=>-1!==gR.indexOf(e),ER=e=>bR[e],kR=e=>{wR(e)||LV(`Unknown parameter "${e}"`)},CR=e=>{yR.includes(e)&&LV(`The parameter "${e}" is incompatible with toasts`)},SR=e=>{const t=ER(e);t&&VV(e,t)},MR=e=>{!1===e.backdrop&&e.allowOutsideClick&&LV('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&!["light","dark","auto","borderless"].includes(e.theme)&&LV(`Invalid theme "${e.theme}". Expected "light", "dark", "auto", or "borderless"`);for(const t in e)kR(t),e.toast&&CR(t),SR(t)};function AR(e){const t=FV(),n=UV(),r=Vz.innerParams.get(this);if(!n||uz(n,r.hideClass.popup))return void LV("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.");const i=_R(e),a=Object.assign({},r,i);MR(a),t.dataset.swal2Theme=a.theme,fj(this,a),Vz.innerParams.set(this,a),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const _R=e=>{const t={};return Object.keys(e).forEach(n=>{xR(n)?t[n]=e[n]:LV(`Invalid parameter to update: ${n}`)}),t};function OR(){const e=Vz.domCache.get(this),t=Vz.innerParams.get(this);t?(e.popup&&OV.swalCloseEventFinishedCallback&&(OV.swalCloseEventFinishedCallback(),delete OV.swalCloseEventFinishedCallback),"function"==typeof t.didDestroy&&t.didDestroy(),OV.eventEmitter.emit("didDestroy"),NR(this)):ZR(this)}const NR=e=>{ZR(e),delete e.params,delete OV.keydownHandler,delete OV.keydownTarget,delete OV.currentInstance},ZR=e=>{e.isAwaitingPromise?(DR(Vz,e),e.isAwaitingPromise=!0):(DR(Mj,e),DR(Vz,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)},DR=(e,t)=>{for(const n in e)e[n].delete(t)};var IR=Object.freeze({__proto__:null,_destroy:OR,close:Lj,closeModal:Lj,closePopup:Lj,closeToast:Lj,disableButtons:hR,disableInput:pR,disableLoading:aR,enableButtons:dR,enableInput:uR,getInput:lR,handleAwaitingPromise:Vj,hideLoading:aR,rejectPromise:Bj,resetValidationMessage:mR,showValidationMessage:fR,update:AR});const HR=(e,t,n)=>{t.popup.onclick=()=>{e&&(TR(e)||e.timer||e.input)||n(vj.close)}},TR=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let LR=!1;const PR=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(LR=!0)}}},BR=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(t){e.popup.onmouseup=()=>{},(t.target===e.popup||t.target instanceof HTMLElement&&e.popup.contains(t.target))&&(LR=!0)}}},VR=(e,t,n)=>{t.container.onclick=r=>{LR?LR=!1:r.target===t.container&&zV(e.allowOutsideClick)&&n(vj.backdrop)}},zR=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const jR=()=>{if(OV.timeout)return(()=>{const e=oz();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const n=t/parseInt(window.getComputedStyle(e).width)*100;e.style.width=`${n}%`})(),OV.timeout.stop()},RR=()=>{if(OV.timeout){const e=OV.timeout.start();return Oz(e),e}};let WR=!1;const FR={};const qR=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in FR){const n=t.getAttribute(e);if(n)return void FR[e].fire({template:n})}};OV.eventEmitter=new class{constructor(){this.events={}}_getHandlersByEventName(e){return void 0===this.events[e]&&(this.events[e]=[]),this.events[e]}on(e,t){const n=this._getHandlersByEventName(e);n.includes(t)||n.push(t)}once(e,t){var n=this;const r=function(){n.removeListener(e,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];t.apply(n,a)};this.on(e,r)}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this._getHandlersByEventName(e).forEach(e=>{try{e.apply(this,n)}catch(e){console.error(e)}})}removeListener(e,t){const n=this._getHandlersByEventName(e),r=n.indexOf(t);r>-1&&n.splice(r,1)}removeAllListeners(e){void 0!==this.events[e]&&(this.events[e].length=0)}reset(){this.events={}}};var YR=Object.freeze({__proto__:null,argsToParams:e=>{const t={};return"object"!=typeof e[0]||zR(e[0])?["title","html","icon"].forEach((n,r)=>{const i=e[r];"string"==typeof i||zR(i)?t[n]=i:void 0!==i&&PV(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof i}`)}):Object.assign(t,e[0]),t},bindClickHandler:function(){FR[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,WR||(document.body.addEventListener("click",qR),WR=!0)},clickCancel:()=>{var e;return null===(e=tz())||void 0===e?void 0:e.click()},clickConfirm:mj,clickDeny:()=>{var e;return null===(e=nz())||void 0===e?void 0:e.click()},enableLoading:Fj,fire:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new this(...t)},getActions:iz,getCancelButton:tz,getCloseButton:lz,getConfirmButton:ez,getContainer:FV,getDenyButton:nz,getFocusableElements:sz,getFooter:az,getHtmlContainer:JV,getIcon:GV,getIconContent:()=>YV(DV["icon-content"]),getImage:KV,getInputLabel:()=>YV(DV["input-label"]),getLoader:rz,getPopup:UV,getProgressSteps:QV,getTimerLeft:()=>OV.timeout&&OV.timeout.getTimerLeft(),getTimerProgressBar:oz,getTitle:XV,getValidationMessage:$V,increaseTimer:e=>{if(OV.timeout){const t=OV.timeout.increase(e);return Oz(t,!0),t}},isDeprecatedParameter:ER,isLoading:()=>{const e=UV();return!!e&&e.hasAttribute("data-loading")},isTimerRunning:()=>!(!OV.timeout||!OV.timeout.isRunning()),isUpdatableParameter:xR,isValidParameter:wR,isVisible:()=>Mz(UV()),mixin:function(e){return class extends(this){_main(t,n){return super._main(t,Object.assign({},e,n))}}},off:(e,t)=>{e?t?OV.eventEmitter.removeListener(e,t):OV.eventEmitter.removeAllListeners(e):OV.eventEmitter.reset()},on:(e,t)=>{OV.eventEmitter.on(e,t)},once:(e,t)=>{OV.eventEmitter.once(e,t)},resumeTimer:RR,showLoading:Fj,stopTimer:jR,toggleTimer:()=>{const e=OV.timeout;return e&&(e.running?jR():RR())}});class UR{constructor(e,t){this.callback=e,this.remaining=t,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(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const GR=["swal-title","swal-html","swal-footer"],XR=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach(e=>{rW(e,["name","value"]);const n=e.getAttribute("name"),r=e.getAttribute("value");n&&r&&(t[n]="boolean"==typeof vR[n]?"false"!==r:"object"==typeof vR[n]?JSON.parse(r):r)}),t},JR=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach(e=>{const n=e.getAttribute("name"),r=e.getAttribute("value");n&&r&&(t[n]=new Function(`return ${r}`)())}),t},KR=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach(e=>{rW(e,["type","color","aria-label"]);const n=e.getAttribute("type");n&&["confirm","cancel","deny"].includes(n)&&(t[`${n}ButtonText`]=e.innerHTML,t[`show${TV(n)}Button`]=!0,e.hasAttribute("color")&&(t[`${n}ButtonColor`]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t[`${n}ButtonAriaLabel`]=e.getAttribute("aria-label")))}),t},QR=e=>{const t={},n=e.querySelector("swal-image");return n&&(rW(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},$R=e=>{const t={},n=e.querySelector("swal-icon");return n&&(rW(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},eW=e=>{const t={},n=e.querySelector("swal-input");n&&(rW(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 r=Array.from(e.querySelectorAll("swal-input-option"));return r.length&&(t.inputOptions={},r.forEach(e=>{rW(e,["value"]);const n=e.getAttribute("value");if(!n)return;const r=e.innerHTML;t.inputOptions[n]=r})),t},tW=(e,t)=>{const n={};for(const r in t){const i=t[r],a=e.querySelector(i);a&&(rW(a,[]),n[i.replace(/^swal-/,"")]=a.innerHTML.trim())}return n},nW=e=>{const t=GR.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(e=>{const n=e.tagName.toLowerCase();t.includes(n)||LV(`Unrecognized element <${n}>`)})},rW=(e,t)=>{Array.from(e.attributes).forEach(n=>{-1===t.indexOf(n.name)&&LV([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`,""+(t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element.")])})},iW=e=>{const t=FV(),n=UV();"function"==typeof e.willOpen&&e.willOpen(n),OV.eventEmitter.emit("willOpen",n);const r=window.getComputedStyle(document.body).overflowY;sW(t,n,e),setTimeout(()=>{oW(t,n)},10),cz()&&(lW(t,e.scrollbarPadding,r),(()=>{const e=FV();Array.from(document.body.children).forEach(t=>{t.contains(e)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))})})()),dz()||OV.previousActiveElement||(OV.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout(()=>e.didOpen(n)),OV.eventEmitter.emit("didOpen",n),bz(t,DV["no-transition"])},aW=e=>{const t=UV();if(e.target!==t)return;const n=FV();t.removeEventListener("animationend",aW),t.removeEventListener("transitionend",aW),n.style.overflowY="auto"},oW=(e,t)=>{_z(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",aW),t.addEventListener("transitionend",aW)):e.style.overflowY="auto"},lW=(e,t,n)=>{(()=>{if(_j&&!uz(document.body,DV.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",gz(document.body,DV.iosfix),Oj()}})(),t&&"hidden"!==n&&Hj(n),setTimeout(()=>{e.scrollTop=0})},sW=(e,t,n)=>{gz(e,n.showClass.backdrop),n.animation?(t.style.setProperty("opacity","0","important"),xz(t,"grid"),setTimeout(()=>{gz(t,n.showClass.popup),t.style.removeProperty("opacity")},10)):xz(t,"grid"),gz([document.documentElement,document.body],DV.shown),n.heightAuto&&n.backdrop&&!n.toast&&gz([document.documentElement,document.body],DV["height-auto"])};var cW=(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),dW=(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 hW(e){!function(e){e.inputValidator||("email"===e.input&&(e.inputValidator=cW),"url"===e.input&&(e.inputValidator=dW))}(e),e.showLoaderOnConfirm&&!e.preConfirm&&LV("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(LV('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),Dz(e)}let uW;var pW=new WeakMap;class fW{constructor(){if(_V(this,pW,void 0),"undefined"==typeof window)return;uW=this;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=Object.freeze(this.constructor.argsToParams(t));this.params=r,this.isAwaitingPromise=!1,function(e,t,n){e.set(MV(e,t),n)}(pW,this,this._main(uW.params))}_main(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(MR(Object.assign({},t,e)),OV.currentInstance){const e=Mj.swalPromiseResolve.get(OV.currentInstance),{isAwaitingPromise:t}=OV.currentInstance;OV.currentInstance._destroy(),t||e({isDismissed:!0}),cz()&&Aj()}OV.currentInstance=uW;const n=vW(e,t);hW(n),Object.freeze(n),OV.timeout&&(OV.timeout.stop(),delete OV.timeout),clearTimeout(OV.restoreFocusTimeout);const r=gW(uW);return fj(uW,n),Vz.innerParams.set(uW,n),mW(uW,r,n)}then(e){return AV(pW,this).then(e)}finally(e){return AV(pW,this).finally(e)}}const mW=(e,t,n)=>new Promise((r,i)=>{const a=t=>{e.close({isDismissed:!0,dismiss:t})};Mj.swalPromiseResolve.set(e,r),Mj.swalPromiseReject.set(e,i),t.confirmButton.onclick=()=>{(e=>{const t=Vz.innerParams.get(e);e.disableButtons(),t.input?$j(e,"confirm"):iR(e,!0)})(e)},t.denyButton.onclick=()=>{(e=>{const t=Vz.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?$j(e,"deny"):tR(e,!1)})(e)},t.cancelButton.onclick=()=>{((e,t)=>{e.disableButtons(),t(vj.cancel)})(e,a)},t.closeButton.onclick=()=>{a(vj.close)},((e,t,n)=>{e.toast?HR(e,t,n):(PR(t),BR(t),VR(e,t,n))})(n,t,a),((e,t,n)=>{gj(e),t.toast||(e.keydownHandler=e=>xj(t,e,n),e.keydownTarget=t.keydownListenerCapture?window:UV(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)})(OV,n,a),((e,t)=>{"select"===t.input||"radio"===t.input?Xj(e,t):["text","email","number","tel","textarea"].some(e=>e===t.input)&&(jV(t.inputValue)||WV(t.inputValue))&&(Fj(ez()),Jj(e,t))})(e,n),iW(n),bW(OV,n,a),yW(t,n),setTimeout(()=>{t.container.scrollTop=0})}),vW=(e,t)=>{const n=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const n=t.content;return nW(n),Object.assign(XR(n),JR(n),KR(n),QR(n),$R(n),eW(n),tW(n,GR))})(e),r=Object.assign({},vR,t,n,e);return r.showClass=Object.assign({},vR.showClass,r.showClass),r.hideClass=Object.assign({},vR.hideClass,r.hideClass),!1===r.animation&&(r.showClass={backdrop:"swal2-noanimation"},r.hideClass={}),r},gW=e=>{const t={popup:UV(),container:FV(),actions:iz(),confirmButton:ez(),denyButton:nz(),cancelButton:tz(),loader:rz(),closeButton:lz(),validationMessage:$V(),progressSteps:QV()};return Vz.domCache.set(e,t),t},bW=(e,t,n)=>{const r=oz();Ez(r),t.timer&&(e.timeout=new UR(()=>{n("timer"),delete e.timeout},t.timer),t.timerProgressBar&&(xz(r),pz(r,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&Oz(t.timer)})))},yW=(e,t)=>{if(!t.toast)return zV(t.allowEnterKey)?void(wW(e)||xW(e,t)||bj(-1,1)):(VV("allowEnterKey"),void EW())},wW=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const e of t)if(e instanceof HTMLElement&&Mz(e))return e.focus(),!0;return!1},xW=(e,t)=>t.focusDeny&&Mz(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&Mz(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!Mz(e.confirmButton))&&(e.confirmButton.focus(),!0),EW=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^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))/864e5>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const e=document.createElement("audio");e.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",e.loop=!0,document.body.appendChild(e),setTimeout(()=>{e.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${e}`)}fW.prototype.disableButtons=hR,fW.prototype.enableButtons=dR,fW.prototype.getInput=lR,fW.prototype.disableInput=pR,fW.prototype.enableInput=uR,fW.prototype.hideLoading=aR,fW.prototype.disableLoading=aR,fW.prototype.showValidationMessage=fR,fW.prototype.resetValidationMessage=mR,fW.prototype.close=Lj,fW.prototype.closePopup=Lj,fW.prototype.closeModal=Lj,fW.prototype.closeToast=Lj,fW.prototype.rejectPromise=Bj,fW.prototype.update=AR,fW.prototype._destroy=OR,Object.assign(fW,YR),Object.keys(IR).forEach(e=>{fW[e]=function(){return uW&&uW[e]?uW[e](...arguments):null}}),fW.DismissReason=vj,fW.version="11.17.2";const kW=fW;kW.default=kW,"undefined"!=typeof document&&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(e){n.innerText=t}}(document,':root{--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-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}[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:.8em 1em 0;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:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):focus-visible{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):focus-visible{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):focus-visible{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus-visible{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid 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:color .1s,box-shadow .1s;border:none;border-radius:var(--swal2-border-radius);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:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:1em 1.6em .3em;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word;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 CW=[{key:"title",getter:e=>e.getTitle()},{key:"html",getter:e=>e.getHtmlContainer()},{key:"confirmButtonText",getter:e=>e.getConfirmButton()},{key:"denyButtonText",getter:e=>e.getDenyButton()},{key:"cancelButtonText",getter:e=>e.getCancelButton()},{key:"footer",getter:e=>e.getFooter()},{key:"closeButtonHtml",getter:e=>e.getCloseButton()},{key:"iconHtml",getter:e=>e.getIconContent()},{key:"loaderHtml",getter:e=>e.getLoader()}],SW=()=>{};const MW=function(e){function t(e){const t={},n={},r=CW.map(e=>e.key);return Object.entries(e).forEach(e=>{let[i,a]=e;r.includes(i)&&f.default.isValidElement(a)?(t[i]=a,n[i]=" "):n[i]=a}),[t,n]}function n(t,n){Object.entries(n).forEach(n=>{let[r,i]=n;const o=CW.find(e=>e.key===r).getter(e),l=a.createRoot(o);l.render(i),t.__roots.push(l)})}function r(e){e.__roots.forEach(e=>{e.unmount()}),e.__roots=[]}return class extends e{static argsToParams(t){if(f.default.isValidElement(t[0])||f.default.isValidElement(t[1])){const e={};return["title","html","icon"].forEach((n,r)=>{void 0!==t[r]&&(e[n]=t[r])}),e}return e.argsToParams(t)}_main(e,i){this.__roots=[],this.__params=Object.assign({},i,e);const[a,o]=t(this.__params),l=o.willOpen||SW,s=o.didOpen||SW,c=o.didDestroy||SW;return super._main(Object.assign({},o,{willOpen:e=>{n(this,a),l(e)},didOpen:e=>{setTimeout(()=>{s(e)})},didDestroy:e=>{c(e),r(this)}}))}update(e){Object.assign(this.__params,e),r(this);const[i,a]=t(this.__params);super.update(a),n(this,i)}}}(kW),AW=()=>{for(let e=0;e<20;e++){return crypto.randomUUID()}},_W=(e,t,n)=>e.filter(e=>!t.some(t=>t[n]===e[n])),OW=(e,t="dd/MM/yyyy")=>{if(!e)return"";const n=new Date(e),r={dd:String(n.getDate()).padStart(2,"0"),MM:String(n.getMonth()+1).padStart(2,"0"),yyyy:n.getFullYear(),HH:String(n.getHours()).padStart(2,"0"),mm:String(n.getMinutes()).padStart(2,"0")};return console.log("map",r),console.log("format",t),t.replace(/dd|MM|yyyy|HH|mm/g,e=>r[e])},NW=(e,t)=>e?t&&e===t?",":e:void 0,ZW=(e,t)=>t?e&&e===t?".":t:e&&"."===e?",":".",DW=e=>"number"==typeof e||!isNaN(Number(e))&&""!==e?.toString().trim(),IW=e=>{const t=[...e];let n=[];return t.forEach(e=>{e.children?n=n.concat(IW(e.children)):n.push(e)}),n},HW=e=>JSON.parse(JSON.stringify(e)),TW=e=>{const t=[];let n=0;function r(e){return e.reduce((e,t)=>e+(t.children?r(t.children):1),0)}return n=function e(t,n=0){return t.reduce((t,r)=>{const i=r.children?e(r.children,n+1):n+1;return Math.max(t,i)},n)}(e),function e(i,a=0){t[a]=t[a]||[],i.forEach(i=>{const o=Array.isArray(i.children)&&i.children.length>0;t[a].push({...i,colspan:o?r(i.children??[]):1,rowspan:o?1:n-a,children:o?i.children:[]}),o&&e(i.children??[],a+1)})}(e),t},LW=(e,t,n)=>e?e.map(e=>e[n]===t[n]?{...e,...t}:(e.children&&e.children.length>0&&(e.children=LW(e.children,t,n)),e)):[];function PW(e,t){const n=[];return e.forEach(e=>{if(e.parent){let r=n.find(t=>t.field===e.parent);r||(r={...t.find(t=>t.field===e.parent),children:[],chosen:!1,selected:!1},n.push(r)),r.children.push(e)}else n.push(e)}),n}const BW=e=>!!EV(e)||0===Object.keys(e).length,VW=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n].w!==t[n].w||e[n].h===t[n].h||e[n].x===t[n].x||e[n].y===t[n].y)return!1;return!0},zW=e=>[...e].reduce((e,t)=>{const n=[...e],r=n.find(e=>e[0].y===t.y);return r?r.push(t):n.push([t]),n},[]);const jW=(e,t,n,r)=>{const i=[...e];return i.forEach(e=>{e.forEach(e=>{e.id===t&&(n in e.style?e.style[n]=r:n in e?e[n]=r:e.style[n]=r)})}),i},RW=(e,t,n)=>{const r=HW(e);return Object.values(r.reduce((e,r)=>{const i=t.filter(e=>!n.includes(e)).map(e=>`${e}:${r[e]}`).join("|");return e[i]||(e[i]={},t.forEach(t=>{e[i][t]=r[t]}),n.forEach(t=>{e[i][t]=0})),n.forEach(t=>{t in r&&(e[i][t]+=Number(r[t]||0))}),e},{}))},WW=(e,t)=>HW(e).map(e=>{let n=YW(e);return e.map(e=>("signature"===e.type?n=7:"table"===e.type&&(n=1+(t[e.table?.field??""]?.length??0)+((e.table?.fieldSums?.length??0)>0?1:0)),e.children?{...e,id:e.id?e.id:AW(),rows:n,children:qW(e.children)}:{...e,id:e.id?e.id:AW(),rows:n}))}),FW=e=>{const t=[];let n=0,r=1;return e.forEach(e=>{let i=0;e.forEach(e=>{t.push({w:e.width,h:e.rows,max:12,x:i,y:n,i:e.id,static:!1}),i+=e.width,r=e.rows}),n+=r}),t};function qW(e){return e.forEach(e=>{e.forEach(e=>{e.id=AW()})}),e}const YW=e=>{let t=0;return e.forEach(e=>{let n=0;e.children?.forEach(e=>{n+=e.reduce((e,t)=>Math.max(t.rows??1,e),0)}),t=Math.max(t,n)}),t},UW=e=>96*e/72,GW=(e,t)=>{if(e&&e.flat().length>0){const n=[...e];return n?.map(e=>e?.map(e=>e.id===t.id?{...e,...t}:e))}return[]},XW=(e,t)=>{const n=t.flat();return e.map(e=>(e.length>1?e?.sort((e,t)=>e.x-t.x):e).map(e=>{const t=n.find(t=>t&&t.id===e.i);if(t){return{...t,id:e.i,width:e.w,...t.align?{align:t.align}:{}}}return{width:e.w,id:e.i,i:e.i,rows:e.h,type:"content",children:[]}}))},JW=(e,t)=>{if(t.length>1){const n=t.reduce((t,n)=>e(t)+e(" ")+e(n));return n}return e(t.toString())},KW=(e,t)=>{e.errors?.length>0&&MW.fire({title:t("Error"),text:JW(t,[e.errors[0].propertyName,e.errors[0].errorMessage]),allowOutsideClick:!1,showCancelButton:!0,showConfirmButton:!1,cancelButtonText:t("Ok"),customClass:{cancelButton:"btn btn-danger ms-1"},buttonsStyling:!1})},QW=()=>{try{const e=localStorage.getItem("organization");return JSON.parse(e||"{}")}catch(e){return{}}};function $W(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}$W('.react-grid-layout {\n position: relative;\n transition: height 200ms ease;\n}\n.react-grid-item {\n transition: all 200ms ease;\n transition-property: left, top, width, height;\n}\n.react-grid-item img {\n pointer-events: none;\n user-select: none;\n}\n.react-grid-item.cssTransforms {\n transition-property: transform, width, height;\n}\n.react-grid-item.resizing {\n transition: none;\n z-index: 1;\n will-change: width, height;\n}\n\n.react-grid-item.react-draggable-dragging {\n transition: none;\n z-index: 3;\n will-change: transform;\n}\n\n.react-grid-item.dropping {\n visibility: hidden;\n}\n\n.react-grid-item.react-grid-placeholder {\n background: red;\n opacity: 0.2;\n transition-duration: 100ms;\n z-index: 2;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n -o-user-select: none;\n user-select: none;\n}\n\n.react-grid-item.react-grid-placeholder.placeholder-resizing {\n transition: none;\n}\n\n.react-grid-item > .react-resizable-handle {\n position: absolute;\n width: 20px;\n height: 20px;\n}\n\n.react-grid-item > .react-resizable-handle::after {\n content: "";\n position: absolute;\n right: 3px;\n bottom: 3px;\n width: 5px;\n height: 5px;\n border-right: 2px solid rgba(0, 0, 0, 0.4);\n border-bottom: 2px solid rgba(0, 0, 0, 0.4);\n}\n\n.react-resizable-hide > .react-resizable-handle {\n display: none;\n}\n\n.react-grid-item > .react-resizable-handle.react-resizable-handle-sw {\n bottom: 0;\n left: 0;\n cursor: sw-resize;\n transform: rotate(90deg);\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-se {\n bottom: 0;\n right: 0;\n cursor: se-resize;\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-nw {\n top: 0;\n left: 0;\n cursor: nw-resize;\n transform: rotate(180deg);\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-ne {\n top: 0;\n right: 0;\n cursor: ne-resize;\n transform: rotate(270deg);\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-w,\n.react-grid-item > .react-resizable-handle.react-resizable-handle-e {\n top: 50%;\n margin-top: -10px;\n cursor: ew-resize;\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-w {\n left: 0;\n transform: rotate(135deg);\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-e {\n right: 0;\n transform: rotate(315deg);\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-n,\n.react-grid-item > .react-resizable-handle.react-resizable-handle-s {\n left: 50%;\n margin-left: -10px;\n cursor: ns-resize;\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-n {\n top: 0;\n transform: rotate(225deg);\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-s {\n bottom: 0;\n transform: rotate(45deg);\n}\n');function eF(e){function t(e,r,s,c,u){for(var p,f,m,v,w,E=0,k=0,C=0,S=0,M=0,D=0,H=m=p=0,L=0,P=0,B=0,V=0,z=s.length,j=z-1,R="",W="",F="",q="";L<z;){if(f=s.charCodeAt(L),L===j&&0!==k+S+C+E&&(0!==k&&(f=47===k?10:47),S=C=E=0,z++,j++),0===k+S+C+E){if(L===j&&(0<P&&(R=R.replace(h,"")),0<R.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:R+=s.charAt(L)}f=59}switch(f){case 123:for(p=(R=R.trim()).charCodeAt(0),m=1,V=++L;L<z;){switch(f=s.charCodeAt(L)){case 123:m++;break;case 125:m--;break;case 47:switch(f=s.charCodeAt(L+1)){case 42:case 47:e:{for(H=L+1;H<j;++H)switch(s.charCodeAt(H)){case 47:if(42===f&&42===s.charCodeAt(H-1)&&L+2!==H){L=H+1;break e}break;case 10:if(47===f){L=H+1;break e}}L=H}}break;case 91:f++;case 40:f++;case 34:case 39:for(;L++<j&&s.charCodeAt(L)!==f;);}if(0===m)break;L++}if(m=s.substring(V,L),0===p&&(p=(R=R.replace(d,"").trim()).charCodeAt(0)),64===p){switch(0<P&&(R=R.replace(h,"")),f=R.charCodeAt(1)){case 100:case 109:case 115:case 45:P=r;break;default:P=Z}if(V=(m=t(r,P,m,f,u+1)).length,0<I&&(w=l(3,m,P=n(Z,R,B),r,_,A,V,f,u,c),R=P.join(""),void 0!==w&&0===(V=(m=w.trim()).length)&&(f=0,m="")),0<V)switch(f){case 115:R=R.replace(x,o);case 100:case 109:case 45:m=R+"{"+m+"}";break;case 107:m=(R=R.replace(g,"$1 $2"))+"{"+m+"}",m=1===N||2===N&&a("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=R+m,112===c&&(W+=m,m="")}else m=""}else m=t(r,n(r,R,B),m,c,u+1);F+=m,m=B=P=H=p=0,R="",f=s.charCodeAt(++L);break;case 125:case 59:if(1<(V=(R=(0<P?R.replace(h,""):R).trim()).length))switch(0===H&&(p=R.charCodeAt(0),45===p||96<p&&123>p)&&(V=(R=R.replace(" ",":")).length),0<I&&void 0!==(w=l(1,R,r,e,_,A,W.length,c,u,c))&&0===(V=(R=w.trim()).length)&&(R="\0\0"),p=R.charCodeAt(0),f=R.charCodeAt(1),p){case 0:break;case 64:if(105===f||99===f){q+=R+s.charAt(L);break}default:58!==R.charCodeAt(V-1)&&(W+=i(R,p,f,R.charCodeAt(2)))}B=P=H=p=0,R="",f=s.charCodeAt(++L)}}switch(f){case 13:case 10:47===k?k=0:0===1+p&&107!==c&&0<R.length&&(P=1,R+="\0"),0<I*T&&l(0,R,r,e,_,A,W.length,c,u,c),A=1,_++;break;case 59:case 125:if(0===k+S+C+E){A++;break}default:switch(A++,v=s.charAt(L),f){case 9:case 32:if(0===S+E+k)switch(M){case 44:case 58:case 9:case 32:v="";break;default:32!==f&&(v=" ")}break;case 0:v="\\0";break;case 12:v="\\f";break;case 11:v="\\v";break;case 38:0===S+k+E&&(P=B=1,v="\f"+v);break;case 108:if(0===S+k+E+O&&0<H)switch(L-H){case 2:112===M&&58===s.charCodeAt(L-3)&&(O=M);case 8:111===D&&(O=D)}break;case 58:0===S+k+E&&(H=L);break;case 44:0===k+C+S+E&&(P=1,v+="\r");break;case 34:case 39:0===k&&(S=S===f?0:0===S?f:S);break;case 91:0===S+k+C&&E++;break;case 93:0===S+k+C&&E--;break;case 41:0===S+k+E&&C--;break;case 40:if(0===S+k+E){if(0===p)if(2*M+3*D==533);else p=1;C++}break;case 64:0===k+C+S+E+H+m&&(m=1);break;case 42:case 47:if(!(0<S+E+C))switch(k){case 0:switch(2*f+3*s.charCodeAt(L+1)){case 235:k=47;break;case 220:V=L,k=42}break;case 42:47===f&&42===M&&V+2!==L&&(33===s.charCodeAt(V+2)&&(W+=s.substring(V,L+1)),v="",k=0)}}0===k&&(R+=v)}D=M,M=f,L++}if(0<(V=W.length)){if(P=r,0<I&&(void 0!==(w=l(2,W,P,e,_,A,V,c,u,c))&&0===(W=w).length))return q+W+F;if(W=P.join(",")+"{"+W+"}",0!==N*O){switch(2!==N||a(W,2)||(O=0),O){case 111:W=W.replace(y,":-moz-$1")+W;break;case 112:W=W.replace(b,"::-webkit-input-$1")+W.replace(b,"::-moz-$1")+W.replace(b,":-ms-input-$1")+W}O=0}}return q+W+F}function n(e,t,n){var i=t.trim().split(m);t=i;var a=i.length,o=e.length;switch(o){case 0:case 1:var l=0;for(e=0===o?"":e[0]+" ";l<a;++l)t[l]=r(e,t[l],n).trim();break;default:var s=l=0;for(t=[];l<a;++l)for(var c=0;c<o;++c)t[s++]=r(e[c]+" ",i[l],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(v,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var o=e+";",l=2*t+3*n+4*r;if(944===l){e=o.indexOf(":",9)+1;var s=o.substring(e,o.length-1).trim();return s=o.substring(0,e).trim()+s+";",1===N||2===N&&a(s,1)?"-webkit-"+s+s:s}if(0===N||2===N&&!a(o,1))return o;switch(l){case 1015:return 97===o.charCodeAt(10)?"-webkit-"+o+o:o;case 951:return 116===o.charCodeAt(3)?"-webkit-"+o+o:o;case 963:return 110===o.charCodeAt(5)?"-webkit-"+o+o:o;case 1009:if(100!==o.charCodeAt(4))break;case 969:case 942:return"-webkit-"+o+o;case 978:return"-webkit-"+o+"-moz-"+o+o;case 1019:case 983:return"-webkit-"+o+"-moz-"+o+"-ms-"+o+o;case 883:if(45===o.charCodeAt(8))return"-webkit-"+o+o;if(0<o.indexOf("image-set(",11))return o.replace(M,"$1-webkit-$2")+o;break;case 932:if(45===o.charCodeAt(4))switch(o.charCodeAt(5)){case 103:return"-webkit-box-"+o.replace("-grow","")+"-webkit-"+o+"-ms-"+o.replace("grow","positive")+o;case 115:return"-webkit-"+o+"-ms-"+o.replace("shrink","negative")+o;case 98:return"-webkit-"+o+"-ms-"+o.replace("basis","preferred-size")+o}return"-webkit-"+o+"-ms-"+o+o;case 964:return"-webkit-"+o+"-ms-flex-"+o+o;case 1023:if(99!==o.charCodeAt(8))break;return"-webkit-box-pack"+(s=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+o+"-ms-flex-pack"+s+o;case 1005:return p.test(o)?o.replace(u,":-webkit-")+o.replace(u,":-moz-")+o:o;case 1e3:switch(t=(s=o.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=o.replace(w,"tb");break;case 232:s=o.replace(w,"tb-rl");break;case 220:s=o.replace(w,"lr");break;default:return o}return"-webkit-"+o+"-ms-"+s+o;case 1017:if(-1===o.indexOf("sticky",9))break;case 975:switch(t=(o=e).length-10,l=(s=(33===o.charCodeAt(t)?o.substring(0,t):o).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:o=o.replace(s,"-webkit-"+s)+";"+o;break;case 207:case 102:o=o.replace(s,"-webkit-"+(102<l?"inline-":"")+"box")+";"+o.replace(s,"-webkit-"+s)+";"+o.replace(s,"-ms-"+s+"box")+";"+o}return o+";";case 938:if(45===o.charCodeAt(5))switch(o.charCodeAt(6)){case 105:return s=o.replace("-items",""),"-webkit-"+o+"-webkit-box-"+s+"-ms-flex-"+s+o;case 115:return"-webkit-"+o+"-ms-flex-item-"+o.replace(k,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(k,"")+o}break;case 973:case 989:if(45!==o.charCodeAt(3)||122===o.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):o.replace(s,"-webkit-"+s)+o.replace(s,"-moz-"+s.replace("fill-",""))+o;break;case 962:if(o="-webkit-"+o+(102===o.charCodeAt(5)?"-ms-"+o:"")+o,211===n+r&&105===o.charCodeAt(13)&&0<o.indexOf("transform",10))return o.substring(0,o.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+o}return o}function a(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),H(2!==t?r:r.replace(C,"$1"),n,t)}function o(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(E," or ($1)").substring(4):"("+t+")"}function l(e,t,n,r,i,a,o,l,s,d){for(var h,u=0,p=t;u<I;++u)switch(h=D[u].call(c,e,p,n,r,i,a,o,l,s,d)){case void 0:case!1:case!0:case null:break;default:p=h}if(p!==t)return p}function s(e){return void 0!==(e=e.prefix)&&(H=null,e?"function"!=typeof e?N=1:(N=2,H=e):N=0),s}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<I){var i=l(-1,n,r,r,_,A,0,0,0,0);void 0!==i&&"string"==typeof i&&(n=i)}var a=t(Z,r,n,0,0);return 0<I&&(void 0!==(i=l(-2,a,r,r,_,A,a.length,0,0,0))&&(a=i)),O=0,A=_=1,a}var d=/^\0+/g,h=/[\0\r\f]/g,u=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,m=/,\r+?/g,v=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,k=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,M=/([^-])(image-set\()/,A=1,_=1,O=0,N=1,Z=[],D=[],I=0,H=null,T=0;return c.use=function e(t){switch(t){case void 0:case null:I=D.length=0;break;default:if("function"==typeof t)D[I++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else T=0|!!t}return e},c.set=s,void 0!==e&&s(e),c}$W(".select-background {\n display: flex;\n width: 100%;\n}\n.select-background .btn-scroll {\n cursor: pointer;\n display: flex;\n align-items: center;\n}\n.select-background .list-background {\n white-space: nowrap;\n overflow-x: hidden;\n scroll-behavior: smooth;\n max-width: 400px;\n}\n.select-background .list-background > * {\n display: inline-block;\n}\n.select-background .list-background .background-item {\n display: inline-block;\n cursor: pointer;\n height: 100px;\n width: 70px;\n border: 1px solid #b1b1b1;\n margin-left: 10px;\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n}\n.select-background .list-background .background-item.active {\n border: solid 1px #eb4619 !important;\n}\n\n.r-tab-custom {\n border-radius: 5px;\n color: #333333;\n}\n.r-tab-custom .r-tab-item {\n font-weight: 500;\n padding: 5px 10px;\n border-radius: 8px 8px 0px 0px;\n}\n.r-tab-custom .r-tab-item.active {\n background-color: #eb4619 !important;\n color: #fff !important;\n font-weight: 600;\n}\n.r-tab-custom :hover {\n background-color: rgba(235, 70, 25, 0.1) !important;\n color: #eb4619 !important;\n}\n\n.droppable-container {\n padding: 1rem;\n display: grid;\n gap: 1rem;\n grid-template-columns: repeat(1, minmax(0, 1fr));\n color: #333333;\n}\n.droppable-container > *:hover {\n background-color: rgba(235, 70, 25, 0.1) !important;\n color: #eb4619 !important;\n}\n.droppable-container .droppable-element {\n cursor: move;\n padding: 12px 15px;\n margin-bottom: 12px 15px;\n background-color: #fff;\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);\n font-size: 17px;\n font-weight: 500;\n border: 1px solid #82868b;\n border-radius: 8px;\n align-items: center;\n transition: all 0.3s ease;\n}\n.droppable-container .droppable-element svg {\n margin-right: 10px;\n}\n\n.input-disable {\n height: 28px;\n border: 1px solid #b1b1b1 !important;\n vertical-align: middle;\n border-radius: 5px;\n display: flex;\n align-items: center;\n padding-left: 7px;\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n}\n\n.sortable-item.active {\n background-color: rgba(235, 70, 25, 0.0705882353);\n border-radius: 5px;\n}\n\n.btn-reset-image {\n width: 25px;\n height: 25px;\n border-radius: 5px;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 0;\n position: absolute;\n top: -8px;\n right: -8px;\n}\n\n.btn-add-image {\n width: 100%;\n border-radius: 5px;\n}\n\n.react-grid-layout.full-border {\n border: 1px solid #000000 !important;\n}\n.react-grid-layout.outside-border {\n border: 1px solid #000000 !important;\n}");var tF={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function nF(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var rF=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,iF=nF(function(e){return rF.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),aF=Oc.exports,oF={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},lF={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},sF={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},cF={};function dF(e){return aF.isMemo(e)?sF:cF[e.$$typeof]||oF}cF[aF.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},cF[aF.Memo]=sF;var hF=Object.defineProperty,uF=Object.getOwnPropertyNames,pF=Object.getOwnPropertySymbols,fF=Object.getOwnPropertyDescriptor,mF=Object.getPrototypeOf,vF=Object.prototype;var gF=function e(t,n,r){if("string"!=typeof n){if(vF){var i=mF(n);i&&i!==vF&&e(t,i,r)}var a=uF(n);pF&&(a=a.concat(pF(n)));for(var o=dF(t),l=dF(n),s=0;s<a.length;++s){var c=a[s];if(!(lF[c]||r&&r[c]||l&&l[c]||o&&o[c])){var d=fF(n,c);try{hF(t,c,d)}catch(e){}}}}return t};function bF(){return(bF=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var yF=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},wF=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Oc.exports.typeOf(e)},xF=Object.freeze([]),EF=Object.freeze({});function kF(e){return"function"==typeof e}function CF(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function SF(e){return e&&"string"==typeof e.styledComponentId}var MF="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",AF="undefined"!=typeof window&&"HTMLElement"in window,_F=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&(void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV)),OF="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function NF(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach(function(t){e=e.replace(/%[a-z]/,t)}),e}function ZF(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw"production"===process.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):"")):new Error(NF.apply(void 0,[OF[e]].concat(n)).trim())}var DF=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&ZF(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=r;a<i;a++)this.groupSizes[a]=0}for(var o=this.indexOfGroup(e+1),l=0,s=t.length;l<s;l++)this.tag.insertRule(o,t[l])&&(this.groupSizes[e]++,o++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,a=r;a<i;a++)t+=this.tag.getRule(a)+"/*!sc*/\n";return t},e}(),IF=new Map,HF=new Map,TF=1,LF=function(e){if(IF.has(e))return IF.get(e);for(;HF.has(TF);)TF++;var t=TF++;return"production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&ZF(16,""+t),IF.set(e,t),HF.set(t,e),t},PF=function(e){return HF.get(e)},BF=function(e,t){t>=TF&&(TF=t+1),IF.set(e,t),HF.set(t,e)},VF="style["+MF+'][data-styled-version="5.3.11"]',zF=new RegExp("^"+MF+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),jF=function(e,t,n){for(var r,i=n.split(","),a=0,o=i.length;a<o;a++)(r=i[a])&&e.registerName(t,r)},RF=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],i=0,a=n.length;i<a;i++){var o=n[i].trim();if(o){var l=o.match(zF);if(l){var s=0|parseInt(l[1],10),c=l[2];0!==s&&(BF(c,s),jF(e,c,l[3]),e.getTag().insertRules(s,r)),r.length=0}else r.push(o)}}},WF=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(MF))return r}}(n),a=void 0!==i?i.nextSibling:null;r.setAttribute(MF,"active"),r.setAttribute("data-styled-version","5.3.11");var o="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},FF=function(){function e(e){var t=this.element=WF(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}ZF(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),qF=function(){function e(e){var t=this.element=WF(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),YF=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),UF=AF,GF={isServer:!AF,useCSSOMInjection:!_F},XF=function(){function e(e,t,n){void 0===e&&(e=EF),void 0===t&&(t={}),this.options=bF({},GF,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&AF&&UF&&(UF=!1,function(e){for(var t=document.querySelectorAll(VF),n=0,r=t.length;n<r;n++){var i=t[n];i&&"active"!==i.getAttribute(MF)&&(RF(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return LF(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(bF({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,i=t.target,e=n?new YF(i):r?new FF(i):new qF(i),new DF(e)));var e,t,n,r,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(LF(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(LF(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(LF(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=0;i<n;i++){var a=PF(i);if(void 0!==a){var o=e.names.get(a),l=t.getGroup(i);if(o&&l&&o.size){var s=MF+".g"+i+'[id="'+a+'"]',c="";void 0!==o&&o.forEach(function(e){e.length>0&&(c+=e+",")}),r+=""+l+s+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),JF=/(a)(d)/gi,KF=function(e){return String.fromCharCode(e+(e>25?39:97))};function QF(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=KF(t%52)+n;return(KF(t%52)+n).replace(JF,"$1-$2")}var $F=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},eq=function(e){return $F(5381,e)};var tq=eq("5.3.11"),nq=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(kF(n)&&!SF(n))return!1}return!0}(e),this.componentId=t,this.baseHash=$F(tq,t),this.baseStyle=n,XF.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))i.push(this.staticRulesId);else{var a=vq(this.rules,e,t,n).join(""),o=QF($F(this.baseHash,a)>>>0);if(!t.hasNameForId(r,o)){var l=n(a,"."+o,void 0,r);t.insertRules(r,o,l)}i.push(o),this.staticRulesId=o}else{for(var s=this.rules.length,c=$F(this.baseHash,n.hash),d="",h=0;h<s;h++){var u=this.rules[h];if("string"==typeof u)d+=u,"production"!==process.env.NODE_ENV&&(c=$F(c,u+h));else if(u){var p=vq(u,e,t,n),f=Array.isArray(p)?p.join(""):p;c=$F(c,f+h),d+=f}}if(d){var m=QF(c>>>0);if(!t.hasNameForId(r,m)){var v=n(d,"."+m,void 0,r);t.insertRules(r,m,v)}i.push(m)}}return i.join(" ")},e}(),rq=/^\s*\/\/.*$/gm,iq=[":","[",".","#"];var aq=f.default.createContext();aq.Consumer;var oq=f.default.createContext(),lq=(oq.Consumer,new XF),sq=function(e){var t,n,r,i,a=void 0===e?EF:e,o=a.options,l=void 0===o?EF:o,s=a.plugins,c=void 0===s?xF:s,d=new eF(l),h=[],u=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,a,o,l,s,c,d,h){switch(n){case 1:if(0===d&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+r),"";default:return r+(0===h?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}(function(e){h.push(e)}),p=function(e,r,a){return 0===r&&-1!==iq.indexOf(a[n.length])||a.match(i)?e:"."+t};function f(e,a,o,l){void 0===l&&(l="&");var s=e.replace(rq,""),c=a&&o?o+" "+a+" { "+s+" }":s;return t=l,n=a,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),d(o||!a?"":a,c)}return d.use([].concat(c,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,p))},u,function(e){if(-2===e){var t=h;return h=[],t}}])),f.hash=c.length?c.reduce(function(e,t){return t.name||ZF(15),$F(e,t.name)},5381).toString():"",f}();var cq=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=sq);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return ZF(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=sq),this.name+e.hash},e}(),dq=/([A-Z])/,hq=/([A-Z])/g,uq=/^ms-/,pq=function(e){return"-"+e.toLowerCase()};function fq(e){return dq.test(e)?e.replace(hq,pq).replace(uq,"-ms-"):e}var mq=function(e){return null==e||!1===e||""===e};function vq(e,t,n,r){if(Array.isArray(e)){for(var i,a=[],o=0,l=e.length;o<l;o+=1)""!==(i=vq(e[o],t,n,r))&&(Array.isArray(i)?a.push.apply(a,i):a.push(i));return a}if(mq(e))return"";if(SF(e))return"."+e.styledComponentId;if(kF(e)){if("function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t)return e;var s=e(t);return"production"!==process.env.NODE_ENV&&Oc.exports.isElement(s)&&console.warn(CF(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),vq(s,t,n,r)}var c;return e instanceof cq?n?(e.inject(n,r),e.getName(r)):e:wF(e)?function e(t,n){var r,i,a=[];for(var o in t)t.hasOwnProperty(o)&&!mq(t[o])&&(Array.isArray(t[o])&&t[o].isCss||kF(t[o])?a.push(fq(o)+":",t[o],";"):wF(t[o])?a.push.apply(a,e(t[o],o)):a.push(fq(o)+": "+(r=o,(null==(i=t[o])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||r in tF||r.startsWith("--")?String(i).trim():i+"px")+";")));return n?[n+" {"].concat(a,["}"]):a}(e):e.toString()}var gq=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function bq(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return kF(e)||wF(e)?gq(vq(yF(xF,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:gq(vq(yF(e,n)))}var yq=/invalid hook call/i,wq=new Set,xq=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Eq=/(^-|-$)/g;function kq(e){return e.replace(xq,"-").replace(Eq,"")}function Cq(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var Sq=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Mq=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Aq(e,t,n){var r=e[n];Sq(t)&&Sq(r)?_q(r,t):e[n]=t}function _q(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,a=n;i<a.length;i++){var o=a[i];if(Sq(o))for(var l in o)Mq(l)&&Aq(e,o[l],l)}return e}var Oq=f.default.createContext();Oq.Consumer;var Nq={};function Zq(t,n,r){var i=SF(t),a=!Cq(t),o=n.attrs,l=void 0===o?xF:o,s=n.componentId,c=void 0===s?function(e,t){var n="string"!=typeof e?"sc":kq(e);Nq[n]=(Nq[n]||0)+1;var r=n+"-"+function(e){return QF(eq(e)>>>0)}("5.3.11"+n+Nq[n]);return t?t+"-"+r:r}(n.displayName,n.parentComponentId):s,d=n.displayName,h=void 0===d?function(e){return Cq(e)?"styled."+e:"Styled("+CF(e)+")"}(t):d,u=n.displayName&&n.componentId?kq(n.displayName)+"-"+n.componentId:n.componentId||c,p=i&&t.attrs?Array.prototype.concat(t.attrs,l).filter(Boolean):l,m=n.shouldForwardProp;i&&t.shouldForwardProp&&(m=n.shouldForwardProp?function(e,r,i){return t.shouldForwardProp(e,r,i)&&n.shouldForwardProp(e,r,i)}:t.shouldForwardProp);var v,g=new nq(r,u,i?t.componentStyle:void 0),b=g.isStatic&&0===l.length,y=function(t,n){return function(t,n,r,i){var a=t.attrs,o=t.componentStyle,l=t.defaultProps,s=t.foldedComponentIds,c=t.shouldForwardProp,d=t.styledComponentId,h=t.target,u=function(e,t,n){void 0===e&&(e=EF);var r=bF({},t,{theme:e}),i={};return n.forEach(function(e){var t,n,a,o=e;for(t in kF(o)&&(o=o(r)),o)r[t]=i[t]="className"===t?(n=i[t],a=o[t],n&&a?n+" "+a:n||a):o[t]}),[r,i]}(function(e,t,n){return void 0===n&&(n=EF),e.theme!==n.theme&&e.theme||t||n.theme}(n,e.useContext(Oq),l)||EF,n,a),p=u[0],f=u[1],m=function(t,n,r,i){var a=e.useContext(aq)||lq,o=e.useContext(oq)||sq,l=n?t.generateAndInjectStyles(EF,a,o):t.generateAndInjectStyles(r,a,o);return"production"!==process.env.NODE_ENV&&!n&&i&&i(l),l}(o,i,p,"production"!==process.env.NODE_ENV?t.warnTooManyClasses:void 0),v=r,g=f.$as||n.$as||f.as||n.as||h,b=Cq(g),y=f!==n?bF({},n,{},f):n,w={};for(var x in y)"$"!==x[0]&&"as"!==x&&("forwardedAs"===x?w.as=y[x]:(c?c(x,iF,g):!b||iF(x))&&(w[x]=y[x]));return n.style&&f.style!==n.style&&(w.style=bF({},n.style,{},f.style)),w.className=Array.prototype.concat(s,d,m!==d?m:null,n.className,f.className).filter(Boolean).join(" "),w.ref=v,e.createElement(g,w)}(v,t,n,b)};return y.displayName=h,(v=f.default.forwardRef(y)).attrs=p,v.componentStyle=g,v.displayName=h,v.shouldForwardProp=m,v.foldedComponentIds=i?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):xF,v.styledComponentId=u,v.target=i?t.target:t,v.withComponent=function(e){var t=n.componentId,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(n,["componentId"]),a=t&&t+"-"+(Cq(e)?e:kq(CF(e)));return Zq(e,bF({},i,{attrs:p,componentId:a}),r)},Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?_q({},t.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(function(t,n){if("production"!==process.env.NODE_ENV){var r="The component "+t+(n?' with the id of "'+n+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(e){if(yq.test(e))a=!1,wq.delete(r);else{for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];i.apply(void 0,[e].concat(n))}},e.useRef(),a&&!wq.has(r)&&(console.warn(r),wq.add(r))}catch(t){yq.test(t.message)&&wq.delete(r)}finally{console.error=i}}}(h,u),v.warnTooManyClasses=function(e,t){var n={},r=!1;return function(i){if(!r&&(n[i]=!0,Object.keys(n).length>=200)){var a=t?' with the id of "'+t+'"':"";console.warn("Over 200 classes were generated for component "+e+a+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={}}}}(h,u)),Object.defineProperty(v,"toString",{value:function(){return"."+v.styledComponentId}}),a&&gF(v,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}var Dq=function(e){return function e(t,n,r){if(void 0===r&&(r=EF),!Oc.exports.isValidElementType(n))return ZF(1,String(n));var i=function(){return t(n,r,bq.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,n,bF({},r,{},i))},i.attrs=function(i){return e(t,n,bF({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i}(Zq,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Dq[e]=Dq(e)}),"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1);var Iq=Dq;const Hq=Iq.span`
|
|
91
|
+
function MV(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function AV(e,t){return e.get(MV(e,t))}function _V(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}const OV={},NV=e=>new Promise(t=>{if(!e)return t();const n=window.scrollX,r=window.scrollY;OV.restoreFocusTimeout=setTimeout(()=>{OV.previousActiveElement instanceof HTMLElement?(OV.previousActiveElement.focus(),OV.previousActiveElement=null):document.body&&document.body.focus(),t()},100),window.scrollTo(n,r)}),ZV="swal2-",DV=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"].reduce((e,t)=>(e[t]=ZV+t,e),{}),IV=["success","warning","info","question","error"].reduce((e,t)=>(e[t]=ZV+t,e),{}),HV="SweetAlert2:",TV=e=>e.charAt(0).toUpperCase()+e.slice(1),LV=e=>{console.warn(`${HV} ${"object"==typeof e?e.join(" "):e}`)},PV=e=>{console.error(`${HV} ${e}`)},BV=[],VV=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(e=>{BV.includes(e)||(BV.push(e),LV(e))})(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`)},zV=e=>"function"==typeof e?e():e,jV=e=>e&&"function"==typeof e.toPromise,RV=e=>jV(e)?e.toPromise():Promise.resolve(e),WV=e=>e&&Promise.resolve(e)===e,FV=()=>document.body.querySelector(`.${DV.container}`),qV=e=>{const t=FV();return t?t.querySelector(e):null},YV=e=>qV(`.${e}`),UV=()=>YV(DV.popup),GV=()=>YV(DV.icon),XV=()=>YV(DV.title),JV=()=>YV(DV["html-container"]),KV=()=>YV(DV.image),QV=()=>YV(DV["progress-steps"]),$V=()=>YV(DV["validation-message"]),ez=()=>qV(`.${DV.actions} .${DV.confirm}`),tz=()=>qV(`.${DV.actions} .${DV.cancel}`),nz=()=>qV(`.${DV.actions} .${DV.deny}`),rz=()=>qV(`.${DV.loader}`),iz=()=>YV(DV.actions),az=()=>YV(DV.footer),oz=()=>YV(DV["timer-progress-bar"]),lz=()=>YV(DV.close),sz=()=>{const e=UV();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(t).sort((e,t)=>{const n=parseInt(e.getAttribute("tabindex")||"0"),r=parseInt(t.getAttribute("tabindex")||"0");return n>r?1:n<r?-1:0}),r=e.querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n'),i=Array.from(r).filter(e=>"-1"!==e.getAttribute("tabindex"));return[...new Set(n.concat(i))].filter(e=>Mz(e))},cz=()=>uz(document.body,DV.shown)&&!uz(document.body,DV["toast-shown"])&&!uz(document.body,DV["no-backdrop"]),dz=()=>{const e=UV();return!!e&&uz(e,DV.toast)},hz=(e,t)=>{if(e.textContent="",t){const n=(new DOMParser).parseFromString(t,"text/html"),r=n.querySelector("head");r&&Array.from(r.childNodes).forEach(t=>{e.appendChild(t)});const i=n.querySelector("body");i&&Array.from(i.childNodes).forEach(t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)})}},uz=(e,t)=>{if(!t)return!1;const n=t.split(/\s+/);for(let t=0;t<n.length;t++)if(!e.classList.contains(n[t]))return!1;return!0},pz=(e,t,n)=>{if(((e,t)=>{Array.from(e.classList).forEach(n=>{Object.values(DV).includes(n)||Object.values(IV).includes(n)||Object.values(t.showClass||{}).includes(n)||e.classList.remove(n)})})(e,t),!t.customClass)return;const r=t.customClass[n];r&&("string"==typeof r||r.forEach?gz(e,r):LV(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof r}"`))},fz=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${DV.popup} > .${DV[t]}`);case"checkbox":return e.querySelector(`.${DV.popup} > .${DV.checkbox} input`);case"radio":return e.querySelector(`.${DV.popup} > .${DV.radio} input:checked`)||e.querySelector(`.${DV.popup} > .${DV.radio} input:first-child`);case"range":return e.querySelector(`.${DV.popup} > .${DV.range} input`);default:return e.querySelector(`.${DV.popup} > .${DV.input}`)}},mz=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},vz=(e,t,n)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach(t=>{Array.isArray(e)?e.forEach(e=>{n?e.classList.add(t):e.classList.remove(t)}):n?e.classList.add(t):e.classList.remove(t)}))},gz=(e,t)=>{vz(e,t,!0)},bz=(e,t)=>{vz(e,t,!1)},yz=(e,t)=>{const n=Array.from(e.children);for(let e=0;e<n.length;e++){const r=n[e];if(r instanceof HTMLElement&&uz(r,t))return r}},wz=(e,t,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||0===parseInt(n)?e.style.setProperty(t,"number"==typeof n?`${n}px`:n):e.style.removeProperty(t)},xz=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e&&(e.style.display=t)},Ez=e=>{e&&(e.style.display="none")},kz=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"block";e&&new MutationObserver(()=>{Sz(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},Cz=(e,t,n,r)=>{const i=e.querySelector(t);i&&i.style.setProperty(n,r)},Sz=function(e,t){t?xz(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):Ez(e)},Mz=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),Az=e=>!!(e.scrollHeight>e.clientHeight),_z=e=>{const t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),r=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||r>0},Oz=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=oz();n&&Mz(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${e/1e3}s linear`,n.style.width="0%"},10))},Nz=`\n <div aria-labelledby="${DV.title}" aria-describedby="${DV["html-container"]}" class="${DV.popup}" tabindex="-1">\n <button type="button" class="${DV.close}"></button>\n <ul class="${DV["progress-steps"]}"></ul>\n <div class="${DV.icon}"></div>\n <img class="${DV.image}" />\n <h2 class="${DV.title}" id="${DV.title}"></h2>\n <div class="${DV["html-container"]}" id="${DV["html-container"]}"></div>\n <input class="${DV.input}" id="${DV.input}" />\n <input type="file" class="${DV.file}" />\n <div class="${DV.range}">\n <input type="range" />\n <output></output>\n </div>\n <select class="${DV.select}" id="${DV.select}"></select>\n <div class="${DV.radio}"></div>\n <label class="${DV.checkbox}">\n <input type="checkbox" id="${DV.checkbox}" />\n <span class="${DV.label}"></span>\n </label>\n <textarea class="${DV.textarea}" id="${DV.textarea}"></textarea>\n <div class="${DV["validation-message"]}" id="${DV["validation-message"]}"></div>\n <div class="${DV.actions}">\n <div class="${DV.loader}"></div>\n <button type="button" class="${DV.confirm}"></button>\n <button type="button" class="${DV.deny}"></button>\n <button type="button" class="${DV.cancel}"></button>\n </div>\n <div class="${DV.footer}"></div>\n <div class="${DV["timer-progress-bar-container"]}">\n <div class="${DV["timer-progress-bar"]}"></div>\n </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),Zz=()=>{OV.currentInstance.resetValidationMessage()},Dz=e=>{const t=(()=>{const e=FV();return!!e&&(e.remove(),bz([document.documentElement,document.body],[DV["no-backdrop"],DV["toast-shown"],DV["has-column"]]),!0)})();if("undefined"==typeof window||"undefined"==typeof document)return void PV("SweetAlert2 requires document to initialize");const n=document.createElement("div");n.className=DV.container,t&&gz(n,DV["no-transition"]),hz(n,Nz),n.dataset.swal2Theme=e.theme;const r="string"==typeof(i=e.target)?document.querySelector(i):i;var i;r.appendChild(n),(e=>{const t=UV();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&gz(FV(),DV.rtl)})(r),(()=>{const e=UV(),t=yz(e,DV.input),n=yz(e,DV.file),r=e.querySelector(`.${DV.range} input`),i=e.querySelector(`.${DV.range} output`),a=yz(e,DV.select),o=e.querySelector(`.${DV.checkbox} input`),l=yz(e,DV.textarea);t.oninput=Zz,n.onchange=Zz,a.onchange=Zz,o.onchange=Zz,l.oninput=Zz,r.oninput=()=>{Zz(),i.value=r.value},r.onchange=()=>{Zz(),i.value=r.value}})()},Iz=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?Hz(e,t):e&&hz(t,e)},Hz=(e,t)=>{e.jquery?Tz(t,e):hz(t,e.toString())},Tz=(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))},Lz=(e,t)=>{const n=iz(),r=rz();n&&r&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?xz(n):Ez(n),pz(n,t,"actions"),function(e,t,n){const r=ez(),i=nz(),a=tz();if(!r||!i||!a)return;Pz(r,"confirm",n),Pz(i,"deny",n),Pz(a,"cancel",n),function(e,t,n,r){if(!r.buttonsStyling)return void bz([e,t,n],DV.styled);gz([e,t,n],DV.styled),r.confirmButtonColor&&(e.style.backgroundColor=r.confirmButtonColor,gz(e,DV["default-outline"]));r.denyButtonColor&&(t.style.backgroundColor=r.denyButtonColor,gz(t,DV["default-outline"]));r.cancelButtonColor&&(n.style.backgroundColor=r.cancelButtonColor,gz(n,DV["default-outline"]))}(r,i,a,n),n.reverseButtons&&(n.toast?(e.insertBefore(a,r),e.insertBefore(i,r)):(e.insertBefore(a,t),e.insertBefore(i,t),e.insertBefore(r,t)))}(n,r,t),hz(r,t.loaderHtml||""),pz(r,t,"loader"))};function Pz(e,t,n){const r=TV(t);Sz(e,n[`show${r}Button`],"inline-block"),hz(e,n[`${t}ButtonText`]||""),e.setAttribute("aria-label",n[`${t}ButtonAriaLabel`]||""),e.className=DV[t],pz(e,n,`${t}Button`)}const Bz=(e,t)=>{const n=FV();n&&(!function(e,t){"string"==typeof t?e.style.background=t:t||gz([document.documentElement,document.body],DV["no-backdrop"])}(n,t.backdrop),function(e,t){if(!t)return;t in DV?gz(e,DV[t]):(LV('The "position" parameter is not valid, defaulting to "center"'),gz(e,DV.center))}(n,t.position),function(e,t){if(!t)return;gz(e,DV[`grow-${t}`])}(n,t.grow),pz(n,t,"container"))};var Vz={innerParams:new WeakMap,domCache:new WeakMap};const zz=["input","file","range","select","radio","checkbox","textarea"],jz=e=>{if(!e.input)return;if(!Gz[e.input])return void PV(`Unexpected type of input! Expected ${Object.keys(Gz).join(" | ")}, got "${e.input}"`);const t=Yz(e.input);if(!t)return;const n=Gz[e.input](t,e);xz(t),e.inputAutoFocus&&setTimeout(()=>{mz(n)})},Rz=(e,t)=>{const n=UV();if(!n)return;const r=fz(n,e);if(r){(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)}})(r);for(const e in t)r.setAttribute(e,t[e])}},Wz=e=>{if(!e.input)return;const t=Yz(e.input);t&&pz(t,e,"input")},Fz=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},qz=(e,t,n)=>{if(n.inputLabel){const r=document.createElement("label"),i=DV["input-label"];r.setAttribute("for",e.id),r.className=i,"object"==typeof n.customClass&&gz(r,n.customClass.inputLabel),r.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",r)}},Yz=e=>{const t=UV();if(t)return yz(t,DV[e]||DV.input)},Uz=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:WV(t)||LV(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},Gz={};Gz.text=Gz.email=Gz.password=Gz.number=Gz.tel=Gz.url=Gz.search=Gz.date=Gz["datetime-local"]=Gz.time=Gz.week=Gz.month=(e,t)=>(Uz(e,t.inputValue),qz(e,e,t),Fz(e,t),e.type=t.input,e),Gz.file=(e,t)=>(qz(e,e,t),Fz(e,t),e),Gz.range=(e,t)=>{const n=e.querySelector("input"),r=e.querySelector("output");return Uz(n,t.inputValue),n.type=t.input,Uz(r,t.inputValue),qz(n,e,t),e},Gz.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const n=document.createElement("option");hz(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return qz(e,e,t),e},Gz.radio=e=>(e.textContent="",e),Gz.checkbox=(e,t)=>{const n=fz(UV(),"checkbox");n.value="1",n.checked=Boolean(t.inputValue);const r=e.querySelector("span");return hz(r,t.inputPlaceholder||t.inputLabel),n},Gz.textarea=(e,t)=>{Uz(e,t.inputValue),Fz(e,t),qz(e,e,t);return setTimeout(()=>{if("MutationObserver"in window){const n=parseInt(window.getComputedStyle(UV()).width);new MutationObserver(()=>{if(!document.body.contains(e))return;const r=e.offsetWidth+(i=e,parseInt(window.getComputedStyle(i).marginLeft)+parseInt(window.getComputedStyle(i).marginRight));var i;r>n?UV().style.width=`${r}px`:wz(UV(),"width",t.width)}).observe(e,{attributes:!0,attributeFilter:["style"]})}}),e};const Xz=(e,t)=>{const n=JV();n&&(kz(n),pz(n,t,"htmlContainer"),t.html?(Iz(t.html,n),xz(n,"block")):t.text?(n.textContent=t.text,xz(n,"block")):Ez(n),((e,t)=>{const n=UV();if(!n)return;const r=Vz.innerParams.get(e),i=!r||t.input!==r.input;zz.forEach(e=>{const r=yz(n,DV[e]);r&&(Rz(e,t.inputAttributes),r.className=DV[e],i&&Ez(r))}),t.input&&(i&&jz(t),Wz(t))})(e,t))},Jz=(e,t)=>{for(const[n,r]of Object.entries(IV))t.icon!==n&&bz(e,r);gz(e,t.icon&&IV[t.icon]),$z(e,t),Kz(),pz(e,t,"icon")},Kz=()=>{const e=UV();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e<n.length;e++)n[e].style.backgroundColor=t},Qz=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let n=e.innerHTML,r="";if(t.iconHtml)r=ej(t.iconHtml);else if("success"===t.icon)r='\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n',n=n.replace(/ style=".*?"/g,"");else if("error"===t.icon)r='\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n';else if(t.icon){r=ej({question:"?",warning:"!",info:"i"}[t.icon])}n.trim()!==r.trim()&&hz(e,r)},$z=(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"])Cz(e,n,"background-color",t.iconColor);Cz(e,".swal2-success-ring","border-color",t.iconColor)}},ej=e=>`<div class="${DV["icon-content"]}">${e}</div>`;let tj=!1,nj=0,rj=0,ij=0,aj=0;const oj=e=>{const t=UV();if(e.target===t||GV().contains(e.target)){tj=!0;const n=cj(e);nj=n.clientX,rj=n.clientY,ij=parseInt(t.style.insetInlineStart)||0,aj=parseInt(t.style.insetBlockStart)||0,gz(t,"swal2-dragging")}},lj=e=>{const t=UV();if(tj){let{clientX:n,clientY:r}=cj(e);t.style.insetInlineStart=`${ij+(n-nj)}px`,t.style.insetBlockStart=`${aj+(r-rj)}px`}},sj=()=>{const e=UV();tj=!1,bz(e,"swal2-dragging")},cj=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}},dj=(e,t)=>{const n=FV(),r=UV();if(n&&r){if(t.toast){wz(n,"width",t.width),r.style.width="100%";const e=rz();e&&r.insertBefore(e,GV())}else wz(r,"width",t.width);wz(r,"padding",t.padding),t.color&&(r.style.color=t.color),t.background&&(r.style.background=t.background),Ez($V()),hj(r,t),t.draggable&&!t.toast?(gz(r,DV.draggable),(e=>{e.addEventListener("mousedown",oj),document.body.addEventListener("mousemove",lj),e.addEventListener("mouseup",sj),e.addEventListener("touchstart",oj),document.body.addEventListener("touchmove",lj),e.addEventListener("touchend",sj)})(r)):(bz(r,DV.draggable),(e=>{e.removeEventListener("mousedown",oj),document.body.removeEventListener("mousemove",lj),e.removeEventListener("mouseup",sj),e.removeEventListener("touchstart",oj),document.body.removeEventListener("touchmove",lj),e.removeEventListener("touchend",sj)})(r))}},hj=(e,t)=>{const n=t.showClass||{};e.className=`${DV.popup} ${Mz(e)?n.popup:""}`,t.toast?(gz([document.documentElement,document.body],DV["toast-shown"]),gz(e,DV.toast)):gz(e,DV.modal),pz(e,t,"popup"),"string"==typeof t.customClass&&gz(e,t.customClass),t.icon&&gz(e,DV[`icon-${t.icon}`])},uj=e=>{const t=document.createElement("li");return gz(t,DV["progress-step"]),hz(t,e),t},pj=e=>{const t=document.createElement("li");return gz(t,DV["progress-step-line"]),e.progressStepsDistance&&wz(t,"width",e.progressStepsDistance),t},fj=(e,t)=>{dj(0,t),Bz(0,t),((e,t)=>{const n=QV();if(!n)return;const{progressSteps:r,currentProgressStep:i}=t;r&&0!==r.length&&void 0!==i?(xz(n),n.textContent="",i>=r.length&&LV("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),r.forEach((e,a)=>{const o=uj(e);if(n.appendChild(o),a===i&&gz(o,DV["active-progress-step"]),a!==r.length-1){const e=pj(t);n.appendChild(e)}})):Ez(n)})(0,t),((e,t)=>{const n=Vz.innerParams.get(e),r=GV();if(!r)return;if(n&&t.icon===n.icon)return Qz(r,t),void Jz(r,t);if(!t.icon&&!t.iconHtml)return void Ez(r);if(t.icon&&-1===Object.keys(IV).indexOf(t.icon))return PV(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),void Ez(r);xz(r),Qz(r,t),Jz(r,t),gz(r,t.showClass&&t.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",Kz)})(e,t),((e,t)=>{const n=KV();n&&(t.imageUrl?(xz(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt||""),wz(n,"width",t.imageWidth),wz(n,"height",t.imageHeight),n.className=DV.image,pz(n,t,"image")):Ez(n))})(0,t),((e,t)=>{const n=XV();n&&(kz(n),Sz(n,t.title||t.titleText,"block"),t.title&&Iz(t.title,n),t.titleText&&(n.innerText=t.titleText),pz(n,t,"title"))})(0,t),((e,t)=>{const n=lz();n&&(hz(n,t.closeButtonHtml||""),pz(n,t,"closeButton"),Sz(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel||""))})(0,t),Xz(e,t),Lz(0,t),((e,t)=>{const n=az();n&&(kz(n),Sz(n,t.footer,"block"),t.footer&&Iz(t.footer,n),pz(n,t,"footer"))})(0,t);const n=UV();"function"==typeof t.didRender&&n&&t.didRender(n),OV.eventEmitter.emit("didRender",n)},mj=()=>{var e;return null===(e=ez())||void 0===e?void 0:e.click()},vj=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),gj=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},bj=(e,t)=>{var n;const r=sz();if(r.length)return(e+=t)===r.length?e=0:-1===e&&(e=r.length-1),void r[e].focus();null===(n=UV())||void 0===n||n.focus()},yj=["ArrowRight","ArrowDown"],wj=["ArrowLeft","ArrowUp"],xj=(e,t,n)=>{e&&(t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Ej(t,e):"Tab"===t.key?kj(t):[...yj,...wj].includes(t.key)?Cj(t.key):"Escape"===t.key&&Sj(t,e,n)))},Ej=(e,t)=>{if(!zV(t.allowEnterKey))return;const n=fz(UV(),t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;mj(),e.preventDefault()}},kj=e=>{const t=e.target,n=sz();let r=-1;for(let e=0;e<n.length;e++)if(t===n[e]){r=e;break}e.shiftKey?bj(r,-1):bj(r,1),e.stopPropagation(),e.preventDefault()},Cj=e=>{const t=iz(),n=ez(),r=nz(),i=tz();if(!(t&&n&&r&&i))return;const a=[n,r,i];if(document.activeElement instanceof HTMLElement&&!a.includes(document.activeElement))return;const o=yj.includes(e)?"nextElementSibling":"previousElementSibling";let l=document.activeElement;if(l){for(let e=0;e<t.children.length;e++){if(l=l[o],!l)return;if(l instanceof HTMLButtonElement&&Mz(l))break}l instanceof HTMLButtonElement&&l.focus()}},Sj=(e,t,n)=>{zV(t.allowEscapeKey)&&(e.preventDefault(),n(vj.esc))};var Mj={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const Aj=()=>{Array.from(document.body.children).forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},_j="undefined"!=typeof window&&!!window.GestureEvent,Oj=()=>{const e=FV();if(!e)return;let t;e.ontouchstart=e=>{t=Nj(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},Nj=e=>{const t=e.target,n=FV(),r=JV();return!(!n||!r)&&(!Zj(e)&&!Dj(e)&&(t===n||!Az(n)&&t instanceof HTMLElement&&"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&(!Az(r)||!r.contains(t))))},Zj=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,Dj=e=>e.touches&&e.touches.length>1;let Ij=null;const Hj=e=>{null===Ij&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(Ij=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${Ij+(()=>{const e=document.createElement("div");e.className=DV["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})()}px`)};function Tj(e,t,n,r){dz()?Wj(e,r):(NV(n).then(()=>Wj(e,r)),gj(OV)),_j?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),cz()&&(null!==Ij&&(document.body.style.paddingRight=`${Ij}px`,Ij=null),(()=>{if(uz(document.body,DV.iosfix)){const e=parseInt(document.body.style.top,10);bz(document.body,DV.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),Aj()),bz([document.documentElement,document.body],[DV.shown,DV["height-auto"],DV["no-backdrop"],DV["toast-shown"]])}function Lj(e){e=zj(e);const t=Mj.swalPromiseResolve.get(this),n=Pj(this);this.isAwaitingPromise?e.isDismissed||(Vj(this),t(e)):n&&t(e)}const Pj=e=>{const t=UV();if(!t)return!1;const n=Vz.innerParams.get(e);if(!n||uz(t,n.hideClass.popup))return!1;bz(t,n.showClass.popup),gz(t,n.hideClass.popup);const r=FV();return bz(r,n.showClass.backdrop),gz(r,n.hideClass.backdrop),jj(e,t,n),!0};function Bj(e){const t=Mj.swalPromiseReject.get(this);Vj(this),t&&t(e)}const Vj=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,Vz.innerParams.get(e)||e._destroy())},zj=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),jj=(e,t,n)=>{var r;const i=FV(),a=_z(t);"function"==typeof n.willClose&&n.willClose(t),null===(r=OV.eventEmitter)||void 0===r||r.emit("willClose",t),a?Rj(e,t,i,n.returnFocus,n.didClose):Tj(e,i,n.returnFocus,n.didClose)},Rj=(e,t,n,r,i)=>{OV.swalCloseEventFinishedCallback=Tj.bind(null,e,n,r,i);const a=function(e){var n;e.target===t&&(null===(n=OV.swalCloseEventFinishedCallback)||void 0===n||n.call(OV),delete OV.swalCloseEventFinishedCallback,t.removeEventListener("animationend",a),t.removeEventListener("transitionend",a))};t.addEventListener("animationend",a),t.addEventListener("transitionend",a)},Wj=(e,t)=>{setTimeout(()=>{var n;"function"==typeof t&&t.bind(e.params)(),null===(n=OV.eventEmitter)||void 0===n||n.emit("didClose"),e._destroy&&e._destroy()})},Fj=e=>{let t=UV();if(t||new kW,t=UV(),!t)return;const n=rz();dz()?Ez(GV()):qj(t,e),xz(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},qj=(e,t)=>{const n=iz(),r=rz();n&&r&&(!t&&Mz(ez())&&(t=ez()),xz(n),t&&(Ez(t),r.setAttribute("data-button-to-replace",t.className),n.insertBefore(r,t)),gz([e,n],DV.loading))},Yj=e=>e.checked?1:0,Uj=e=>e.checked?e.value:null,Gj=e=>e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,Xj=(e,t)=>{const n=UV();if(!n)return;const r=e=>{"select"===t.input?function(e,t,n){const r=yz(e,DV.select);if(!r)return;const i=(e,t,r)=>{const i=document.createElement("option");i.value=r,hz(i,t),i.selected=Qj(r,n.inputValue),e.appendChild(i)};t.forEach(e=>{const t=e[0],n=e[1];if(Array.isArray(n)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,r.appendChild(e),n.forEach(t=>i(e,t[1],t[0]))}else i(r,n,t)}),r.focus()}(n,Kj(e),t):"radio"===t.input&&function(e,t,n){const r=yz(e,DV.radio);if(!r)return;t.forEach(e=>{const t=e[0],i=e[1],a=document.createElement("input"),o=document.createElement("label");a.type="radio",a.name=DV.radio,a.value=t,Qj(t,n.inputValue)&&(a.checked=!0);const l=document.createElement("span");hz(l,i),l.className=DV.label,o.appendChild(a),o.appendChild(l),r.appendChild(o)});const i=r.querySelectorAll("input");i.length&&i[0].focus()}(n,Kj(e),t)};jV(t.inputOptions)||WV(t.inputOptions)?(Fj(ez()),RV(t.inputOptions).then(t=>{e.hideLoading(),r(t)})):"object"==typeof t.inputOptions?r(t.inputOptions):PV("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof t.inputOptions)},Jj=(e,t)=>{const n=e.getInput();n&&(Ez(n),RV(t.inputValue).then(r=>{n.value="number"===t.input?`${parseFloat(r)||0}`:`${r}`,xz(n),n.focus(),e.hideLoading()}).catch(t=>{PV(`Error in inputValue promise: ${t}`),n.value="",xz(n),n.focus(),e.hideLoading()}))};const Kj=e=>{const t=[];return e instanceof Map?e.forEach((e,n)=>{let r=e;"object"==typeof r&&(r=Kj(r)),t.push([n,r])}):Object.keys(e).forEach(n=>{let r=e[n];"object"==typeof r&&(r=Kj(r)),t.push([n,r])}),t},Qj=(e,t)=>!!t&&t.toString()===e.toString(),$j=(e,t)=>{const n=Vz.innerParams.get(e);if(!n.input)return void PV(`The "input" parameter is needed to be set when using returnInputValueOn${TV(t)}`);const r=e.getInput(),i=((e,t)=>{const n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return Yj(n);case"radio":return Uj(n);case"file":return Gj(n);default:return t.inputAutoTrim?n.value.trim():n.value}})(e,n);n.inputValidator?eR(e,i,t):r&&!r.checkValidity()?(e.enableButtons(),e.showValidationMessage(n.validationMessage||r.validationMessage)):"deny"===t?tR(e,i):iR(e,i)},eR=(e,t,n)=>{const r=Vz.innerParams.get(e);e.disableInput();Promise.resolve().then(()=>RV(r.inputValidator(t,r.validationMessage))).then(r=>{e.enableButtons(),e.enableInput(),r?e.showValidationMessage(r):"deny"===n?tR(e,t):iR(e,t)})},tR=(e,t)=>{const n=Vz.innerParams.get(e||void 0);if(n.showLoaderOnDeny&&Fj(nz()),n.preDeny){e.isAwaitingPromise=!0;Promise.resolve().then(()=>RV(n.preDeny(t,n.validationMessage))).then(n=>{!1===n?(e.hideLoading(),Vj(e)):e.close({isDenied:!0,value:void 0===n?t:n})}).catch(t=>rR(e||void 0,t))}else e.close({isDenied:!0,value:t})},nR=(e,t)=>{e.close({isConfirmed:!0,value:t})},rR=(e,t)=>{e.rejectPromise(t)},iR=(e,t)=>{const n=Vz.innerParams.get(e||void 0);if(n.showLoaderOnConfirm&&Fj(),n.preConfirm){e.resetValidationMessage(),e.isAwaitingPromise=!0;Promise.resolve().then(()=>RV(n.preConfirm(t,n.validationMessage))).then(n=>{Mz($V())||!1===n?(e.hideLoading(),Vj(e)):nR(e,void 0===n?t:n)}).catch(t=>rR(e||void 0,t))}else nR(e,t)};function aR(){const e=Vz.innerParams.get(this);if(!e)return;const t=Vz.domCache.get(this);Ez(t.loader),dz()?e.icon&&xz(GV()):oR(t),bz([t.popup,t.actions],DV.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const oR=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?xz(t[0],"inline-block"):Mz(ez())||Mz(nz())||Mz(tz())||Ez(e.actions)};function lR(){const e=Vz.innerParams.get(this),t=Vz.domCache.get(this);return t?fz(t.popup,e.input):null}function sR(e,t,n){const r=Vz.domCache.get(e);t.forEach(e=>{r[e].disabled=n})}function cR(e,t){const n=UV();if(n&&e)if("radio"===e.type){const e=n.querySelectorAll(`[name="${DV.radio}"]`);for(let n=0;n<e.length;n++)e[n].disabled=t}else e.disabled=t}function dR(){sR(this,["confirmButton","denyButton","cancelButton"],!1)}function hR(){sR(this,["confirmButton","denyButton","cancelButton"],!0)}function uR(){cR(this.getInput(),!1)}function pR(){cR(this.getInput(),!0)}function fR(e){const t=Vz.domCache.get(this),n=Vz.innerParams.get(this);hz(t.validationMessage,e),t.validationMessage.className=DV["validation-message"],n.customClass&&n.customClass.validationMessage&&gz(t.validationMessage,n.customClass.validationMessage),xz(t.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid","true"),r.setAttribute("aria-describedby",DV["validation-message"]),mz(r),gz(r,DV.inputerror))}function mR(){const e=Vz.domCache.get(this);e.validationMessage&&Ez(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),bz(t,DV.inputerror))}const vR={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:"×",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},gR=["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"],bR={allowEnterKey:void 0},yR=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],wR=e=>Object.prototype.hasOwnProperty.call(vR,e),xR=e=>-1!==gR.indexOf(e),ER=e=>bR[e],kR=e=>{wR(e)||LV(`Unknown parameter "${e}"`)},CR=e=>{yR.includes(e)&&LV(`The parameter "${e}" is incompatible with toasts`)},SR=e=>{const t=ER(e);t&&VV(e,t)},MR=e=>{!1===e.backdrop&&e.allowOutsideClick&&LV('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&!["light","dark","auto","borderless"].includes(e.theme)&&LV(`Invalid theme "${e.theme}". Expected "light", "dark", "auto", or "borderless"`);for(const t in e)kR(t),e.toast&&CR(t),SR(t)};function AR(e){const t=FV(),n=UV(),r=Vz.innerParams.get(this);if(!n||uz(n,r.hideClass.popup))return void LV("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.");const i=_R(e),a=Object.assign({},r,i);MR(a),t.dataset.swal2Theme=a.theme,fj(this,a),Vz.innerParams.set(this,a),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const _R=e=>{const t={};return Object.keys(e).forEach(n=>{xR(n)?t[n]=e[n]:LV(`Invalid parameter to update: ${n}`)}),t};function OR(){const e=Vz.domCache.get(this),t=Vz.innerParams.get(this);t?(e.popup&&OV.swalCloseEventFinishedCallback&&(OV.swalCloseEventFinishedCallback(),delete OV.swalCloseEventFinishedCallback),"function"==typeof t.didDestroy&&t.didDestroy(),OV.eventEmitter.emit("didDestroy"),NR(this)):ZR(this)}const NR=e=>{ZR(e),delete e.params,delete OV.keydownHandler,delete OV.keydownTarget,delete OV.currentInstance},ZR=e=>{e.isAwaitingPromise?(DR(Vz,e),e.isAwaitingPromise=!0):(DR(Mj,e),DR(Vz,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)},DR=(e,t)=>{for(const n in e)e[n].delete(t)};var IR=Object.freeze({__proto__:null,_destroy:OR,close:Lj,closeModal:Lj,closePopup:Lj,closeToast:Lj,disableButtons:hR,disableInput:pR,disableLoading:aR,enableButtons:dR,enableInput:uR,getInput:lR,handleAwaitingPromise:Vj,hideLoading:aR,rejectPromise:Bj,resetValidationMessage:mR,showValidationMessage:fR,update:AR});const HR=(e,t,n)=>{t.popup.onclick=()=>{e&&(TR(e)||e.timer||e.input)||n(vj.close)}},TR=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let LR=!1;const PR=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(LR=!0)}}},BR=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(t){e.popup.onmouseup=()=>{},(t.target===e.popup||t.target instanceof HTMLElement&&e.popup.contains(t.target))&&(LR=!0)}}},VR=(e,t,n)=>{t.container.onclick=r=>{LR?LR=!1:r.target===t.container&&zV(e.allowOutsideClick)&&n(vj.backdrop)}},zR=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const jR=()=>{if(OV.timeout)return(()=>{const e=oz();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const n=t/parseInt(window.getComputedStyle(e).width)*100;e.style.width=`${n}%`})(),OV.timeout.stop()},RR=()=>{if(OV.timeout){const e=OV.timeout.start();return Oz(e),e}};let WR=!1;const FR={};const qR=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in FR){const n=t.getAttribute(e);if(n)return void FR[e].fire({template:n})}};OV.eventEmitter=new class{constructor(){this.events={}}_getHandlersByEventName(e){return void 0===this.events[e]&&(this.events[e]=[]),this.events[e]}on(e,t){const n=this._getHandlersByEventName(e);n.includes(t)||n.push(t)}once(e,t){var n=this;const r=function(){n.removeListener(e,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];t.apply(n,a)};this.on(e,r)}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this._getHandlersByEventName(e).forEach(e=>{try{e.apply(this,n)}catch(e){console.error(e)}})}removeListener(e,t){const n=this._getHandlersByEventName(e),r=n.indexOf(t);r>-1&&n.splice(r,1)}removeAllListeners(e){void 0!==this.events[e]&&(this.events[e].length=0)}reset(){this.events={}}};var YR=Object.freeze({__proto__:null,argsToParams:e=>{const t={};return"object"!=typeof e[0]||zR(e[0])?["title","html","icon"].forEach((n,r)=>{const i=e[r];"string"==typeof i||zR(i)?t[n]=i:void 0!==i&&PV(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof i}`)}):Object.assign(t,e[0]),t},bindClickHandler:function(){FR[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,WR||(document.body.addEventListener("click",qR),WR=!0)},clickCancel:()=>{var e;return null===(e=tz())||void 0===e?void 0:e.click()},clickConfirm:mj,clickDeny:()=>{var e;return null===(e=nz())||void 0===e?void 0:e.click()},enableLoading:Fj,fire:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new this(...t)},getActions:iz,getCancelButton:tz,getCloseButton:lz,getConfirmButton:ez,getContainer:FV,getDenyButton:nz,getFocusableElements:sz,getFooter:az,getHtmlContainer:JV,getIcon:GV,getIconContent:()=>YV(DV["icon-content"]),getImage:KV,getInputLabel:()=>YV(DV["input-label"]),getLoader:rz,getPopup:UV,getProgressSteps:QV,getTimerLeft:()=>OV.timeout&&OV.timeout.getTimerLeft(),getTimerProgressBar:oz,getTitle:XV,getValidationMessage:$V,increaseTimer:e=>{if(OV.timeout){const t=OV.timeout.increase(e);return Oz(t,!0),t}},isDeprecatedParameter:ER,isLoading:()=>{const e=UV();return!!e&&e.hasAttribute("data-loading")},isTimerRunning:()=>!(!OV.timeout||!OV.timeout.isRunning()),isUpdatableParameter:xR,isValidParameter:wR,isVisible:()=>Mz(UV()),mixin:function(e){return class extends(this){_main(t,n){return super._main(t,Object.assign({},e,n))}}},off:(e,t)=>{e?t?OV.eventEmitter.removeListener(e,t):OV.eventEmitter.removeAllListeners(e):OV.eventEmitter.reset()},on:(e,t)=>{OV.eventEmitter.on(e,t)},once:(e,t)=>{OV.eventEmitter.once(e,t)},resumeTimer:RR,showLoading:Fj,stopTimer:jR,toggleTimer:()=>{const e=OV.timeout;return e&&(e.running?jR():RR())}});class UR{constructor(e,t){this.callback=e,this.remaining=t,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(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const GR=["swal-title","swal-html","swal-footer"],XR=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach(e=>{rW(e,["name","value"]);const n=e.getAttribute("name"),r=e.getAttribute("value");n&&r&&(t[n]="boolean"==typeof vR[n]?"false"!==r:"object"==typeof vR[n]?JSON.parse(r):r)}),t},JR=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach(e=>{const n=e.getAttribute("name"),r=e.getAttribute("value");n&&r&&(t[n]=new Function(`return ${r}`)())}),t},KR=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach(e=>{rW(e,["type","color","aria-label"]);const n=e.getAttribute("type");n&&["confirm","cancel","deny"].includes(n)&&(t[`${n}ButtonText`]=e.innerHTML,t[`show${TV(n)}Button`]=!0,e.hasAttribute("color")&&(t[`${n}ButtonColor`]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t[`${n}ButtonAriaLabel`]=e.getAttribute("aria-label")))}),t},QR=e=>{const t={},n=e.querySelector("swal-image");return n&&(rW(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},$R=e=>{const t={},n=e.querySelector("swal-icon");return n&&(rW(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},eW=e=>{const t={},n=e.querySelector("swal-input");n&&(rW(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 r=Array.from(e.querySelectorAll("swal-input-option"));return r.length&&(t.inputOptions={},r.forEach(e=>{rW(e,["value"]);const n=e.getAttribute("value");if(!n)return;const r=e.innerHTML;t.inputOptions[n]=r})),t},tW=(e,t)=>{const n={};for(const r in t){const i=t[r],a=e.querySelector(i);a&&(rW(a,[]),n[i.replace(/^swal-/,"")]=a.innerHTML.trim())}return n},nW=e=>{const t=GR.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(e=>{const n=e.tagName.toLowerCase();t.includes(n)||LV(`Unrecognized element <${n}>`)})},rW=(e,t)=>{Array.from(e.attributes).forEach(n=>{-1===t.indexOf(n.name)&&LV([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`,""+(t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element.")])})},iW=e=>{const t=FV(),n=UV();"function"==typeof e.willOpen&&e.willOpen(n),OV.eventEmitter.emit("willOpen",n);const r=window.getComputedStyle(document.body).overflowY;sW(t,n,e),setTimeout(()=>{oW(t,n)},10),cz()&&(lW(t,e.scrollbarPadding,r),(()=>{const e=FV();Array.from(document.body.children).forEach(t=>{t.contains(e)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))})})()),dz()||OV.previousActiveElement||(OV.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout(()=>e.didOpen(n)),OV.eventEmitter.emit("didOpen",n),bz(t,DV["no-transition"])},aW=e=>{const t=UV();if(e.target!==t)return;const n=FV();t.removeEventListener("animationend",aW),t.removeEventListener("transitionend",aW),n.style.overflowY="auto"},oW=(e,t)=>{_z(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",aW),t.addEventListener("transitionend",aW)):e.style.overflowY="auto"},lW=(e,t,n)=>{(()=>{if(_j&&!uz(document.body,DV.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",gz(document.body,DV.iosfix),Oj()}})(),t&&"hidden"!==n&&Hj(n),setTimeout(()=>{e.scrollTop=0})},sW=(e,t,n)=>{gz(e,n.showClass.backdrop),n.animation?(t.style.setProperty("opacity","0","important"),xz(t,"grid"),setTimeout(()=>{gz(t,n.showClass.popup),t.style.removeProperty("opacity")},10)):xz(t,"grid"),gz([document.documentElement,document.body],DV.shown),n.heightAuto&&n.backdrop&&!n.toast&&gz([document.documentElement,document.body],DV["height-auto"])};var cW=(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),dW=(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 hW(e){!function(e){e.inputValidator||("email"===e.input&&(e.inputValidator=cW),"url"===e.input&&(e.inputValidator=dW))}(e),e.showLoaderOnConfirm&&!e.preConfirm&&LV("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(LV('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),Dz(e)}let uW;var pW=new WeakMap;class fW{constructor(){if(_V(this,pW,void 0),"undefined"==typeof window)return;uW=this;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=Object.freeze(this.constructor.argsToParams(t));this.params=r,this.isAwaitingPromise=!1,function(e,t,n){e.set(MV(e,t),n)}(pW,this,this._main(uW.params))}_main(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(MR(Object.assign({},t,e)),OV.currentInstance){const e=Mj.swalPromiseResolve.get(OV.currentInstance),{isAwaitingPromise:t}=OV.currentInstance;OV.currentInstance._destroy(),t||e({isDismissed:!0}),cz()&&Aj()}OV.currentInstance=uW;const n=vW(e,t);hW(n),Object.freeze(n),OV.timeout&&(OV.timeout.stop(),delete OV.timeout),clearTimeout(OV.restoreFocusTimeout);const r=gW(uW);return fj(uW,n),Vz.innerParams.set(uW,n),mW(uW,r,n)}then(e){return AV(pW,this).then(e)}finally(e){return AV(pW,this).finally(e)}}const mW=(e,t,n)=>new Promise((r,i)=>{const a=t=>{e.close({isDismissed:!0,dismiss:t})};Mj.swalPromiseResolve.set(e,r),Mj.swalPromiseReject.set(e,i),t.confirmButton.onclick=()=>{(e=>{const t=Vz.innerParams.get(e);e.disableButtons(),t.input?$j(e,"confirm"):iR(e,!0)})(e)},t.denyButton.onclick=()=>{(e=>{const t=Vz.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?$j(e,"deny"):tR(e,!1)})(e)},t.cancelButton.onclick=()=>{((e,t)=>{e.disableButtons(),t(vj.cancel)})(e,a)},t.closeButton.onclick=()=>{a(vj.close)},((e,t,n)=>{e.toast?HR(e,t,n):(PR(t),BR(t),VR(e,t,n))})(n,t,a),((e,t,n)=>{gj(e),t.toast||(e.keydownHandler=e=>xj(t,e,n),e.keydownTarget=t.keydownListenerCapture?window:UV(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)})(OV,n,a),((e,t)=>{"select"===t.input||"radio"===t.input?Xj(e,t):["text","email","number","tel","textarea"].some(e=>e===t.input)&&(jV(t.inputValue)||WV(t.inputValue))&&(Fj(ez()),Jj(e,t))})(e,n),iW(n),bW(OV,n,a),yW(t,n),setTimeout(()=>{t.container.scrollTop=0})}),vW=(e,t)=>{const n=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const n=t.content;return nW(n),Object.assign(XR(n),JR(n),KR(n),QR(n),$R(n),eW(n),tW(n,GR))})(e),r=Object.assign({},vR,t,n,e);return r.showClass=Object.assign({},vR.showClass,r.showClass),r.hideClass=Object.assign({},vR.hideClass,r.hideClass),!1===r.animation&&(r.showClass={backdrop:"swal2-noanimation"},r.hideClass={}),r},gW=e=>{const t={popup:UV(),container:FV(),actions:iz(),confirmButton:ez(),denyButton:nz(),cancelButton:tz(),loader:rz(),closeButton:lz(),validationMessage:$V(),progressSteps:QV()};return Vz.domCache.set(e,t),t},bW=(e,t,n)=>{const r=oz();Ez(r),t.timer&&(e.timeout=new UR(()=>{n("timer"),delete e.timeout},t.timer),t.timerProgressBar&&(xz(r),pz(r,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&Oz(t.timer)})))},yW=(e,t)=>{if(!t.toast)return zV(t.allowEnterKey)?void(wW(e)||xW(e,t)||bj(-1,1)):(VV("allowEnterKey"),void EW())},wW=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const e of t)if(e instanceof HTMLElement&&Mz(e))return e.focus(),!0;return!1},xW=(e,t)=>t.focusDeny&&Mz(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&Mz(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!Mz(e.confirmButton))&&(e.confirmButton.focus(),!0),EW=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^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))/864e5>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const e=document.createElement("audio");e.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",e.loop=!0,document.body.appendChild(e),setTimeout(()=>{e.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${e}`)}fW.prototype.disableButtons=hR,fW.prototype.enableButtons=dR,fW.prototype.getInput=lR,fW.prototype.disableInput=pR,fW.prototype.enableInput=uR,fW.prototype.hideLoading=aR,fW.prototype.disableLoading=aR,fW.prototype.showValidationMessage=fR,fW.prototype.resetValidationMessage=mR,fW.prototype.close=Lj,fW.prototype.closePopup=Lj,fW.prototype.closeModal=Lj,fW.prototype.closeToast=Lj,fW.prototype.rejectPromise=Bj,fW.prototype.update=AR,fW.prototype._destroy=OR,Object.assign(fW,YR),Object.keys(IR).forEach(e=>{fW[e]=function(){return uW&&uW[e]?uW[e](...arguments):null}}),fW.DismissReason=vj,fW.version="11.17.2";const kW=fW;kW.default=kW,"undefined"!=typeof document&&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(e){n.innerText=t}}(document,':root{--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-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}[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:.8em 1em 0;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:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):focus-visible{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):focus-visible{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):focus-visible{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus-visible{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid 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:color .1s,box-shadow .1s;border:none;border-radius:var(--swal2-border-radius);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:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:1em 1.6em .3em;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word;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 CW=[{key:"title",getter:e=>e.getTitle()},{key:"html",getter:e=>e.getHtmlContainer()},{key:"confirmButtonText",getter:e=>e.getConfirmButton()},{key:"denyButtonText",getter:e=>e.getDenyButton()},{key:"cancelButtonText",getter:e=>e.getCancelButton()},{key:"footer",getter:e=>e.getFooter()},{key:"closeButtonHtml",getter:e=>e.getCloseButton()},{key:"iconHtml",getter:e=>e.getIconContent()},{key:"loaderHtml",getter:e=>e.getLoader()}],SW=()=>{};const MW=function(e){function t(e){const t={},n={},r=CW.map(e=>e.key);return Object.entries(e).forEach(e=>{let[i,a]=e;r.includes(i)&&f.default.isValidElement(a)?(t[i]=a,n[i]=" "):n[i]=a}),[t,n]}function n(t,n){Object.entries(n).forEach(n=>{let[r,i]=n;const o=CW.find(e=>e.key===r).getter(e),l=a.createRoot(o);l.render(i),t.__roots.push(l)})}function r(e){e.__roots.forEach(e=>{e.unmount()}),e.__roots=[]}return class extends e{static argsToParams(t){if(f.default.isValidElement(t[0])||f.default.isValidElement(t[1])){const e={};return["title","html","icon"].forEach((n,r)=>{void 0!==t[r]&&(e[n]=t[r])}),e}return e.argsToParams(t)}_main(e,i){this.__roots=[],this.__params=Object.assign({},i,e);const[a,o]=t(this.__params),l=o.willOpen||SW,s=o.didOpen||SW,c=o.didDestroy||SW;return super._main(Object.assign({},o,{willOpen:e=>{n(this,a),l(e)},didOpen:e=>{setTimeout(()=>{s(e)})},didDestroy:e=>{c(e),r(this)}}))}update(e){Object.assign(this.__params,e),r(this);const[i,a]=t(this.__params);super.update(a),n(this,i)}}}(kW),AW=()=>{for(let e=0;e<20;e++){return crypto.randomUUID()}},_W=(e,t,n)=>e.filter(e=>!t.some(t=>t[n]===e[n])),OW=(e,t="dd/MM/yyyy")=>{if(!e)return"";const n=new Date(e),r={dd:String(n.getDate()).padStart(2,"0"),MM:String(n.getMonth()+1).padStart(2,"0"),yyyy:n.getFullYear(),HH:String(n.getHours()).padStart(2,"0"),mm:String(n.getMinutes()).padStart(2,"0")};return t?.replace(/dd|MM|yyyy|HH|mm/g,e=>r[e])},NW=(e,t)=>e?t&&e===t?",":e:void 0,ZW=(e,t)=>t?e&&e===t?".":t:e&&"."===e?",":".",DW=e=>"number"==typeof e||!isNaN(Number(e))&&""!==e?.toString().trim(),IW=e=>{const t=[...e];let n=[];return t.forEach(e=>{e.children?n=n.concat(IW(e.children)):n.push(e)}),n},HW=e=>JSON.parse(JSON.stringify(e)),TW=e=>{const t=[];let n=0;function r(e){return e.reduce((e,t)=>e+(t.children?r(t.children):1),0)}return n=function e(t,n=0){return t.reduce((t,r)=>{const i=r.children?e(r.children,n+1):n+1;return Math.max(t,i)},n)}(e),function e(i,a=0){t[a]=t[a]||[],i.forEach(i=>{const o=Array.isArray(i.children)&&i.children.length>0;t[a].push({...i,colspan:o?r(i.children??[]):1,rowspan:o?1:n-a,children:o?i.children:[]}),o&&e(i.children??[],a+1)})}(e),t},LW=(e,t,n)=>e?e.map(e=>e[n]===t[n]?{...e,...t}:(e.children&&e.children.length>0&&(e.children=LW(e.children,t,n)),e)):[];function PW(e,t){const n=[];return e.forEach(e=>{if(e.parent){let r=n.find(t=>t.field===e.parent);r||(r={...t.find(t=>t.field===e.parent),children:[],chosen:!1,selected:!1},n.push(r)),r.children.push(e)}else n.push(e)}),n}const BW=e=>!!EV(e)||0===Object.keys(e).length,VW=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n].w!==t[n].w||e[n].h===t[n].h||e[n].x===t[n].x||e[n].y===t[n].y)return!1;return!0},zW=e=>[...e].reduce((e,t)=>{const n=[...e],r=n.find(e=>e[0].y===t.y);return r?r.push(t):n.push([t]),n},[]);const jW=(e,t,n,r)=>{const i=[...e];return i.forEach(e=>{e.forEach(e=>{e.id===t&&(n in e.style?e.style[n]=r:n in e?e[n]=r:e.style[n]=r)})}),i},RW=(e,t,n)=>{const r=HW(e);return Object.values(r.reduce((e,r)=>{const i=t.filter(e=>!n.includes(e)).map(e=>`${e}:${r[e]}`).join("|");return e[i]||(e[i]={},t.forEach(t=>{e[i][t]=r[t]}),n.forEach(t=>{e[i][t]=0})),n.forEach(t=>{t in r&&(e[i][t]+=Number(r[t]||0))}),e},{}))},WW=(e,t)=>HW(e).map(e=>{let n=YW(e);return e.map(e=>("signature"===e.type?n=7:"table"===e.type&&(n=1+(t[e.table?.field??""]?.length??0)+((e.table?.fieldSums?.length??0)>0?1:0)),e.children?{...e,id:e.id?e.id:AW(),rows:n,children:qW(e.children)}:{...e,id:e.id?e.id:AW(),rows:n}))}),FW=e=>{const t=[];let n=0,r=1;return e.forEach(e=>{let i=0;e.forEach(e=>{t.push({w:e.width,h:e.rows,max:12,x:i,y:n,i:e.id,static:!1}),i+=e.width,r=e.rows}),n+=r}),t};function qW(e){return e.forEach(e=>{e.forEach(e=>{e.id=AW()})}),e}const YW=e=>{let t=0;return e.forEach(e=>{let n=0;e.children?.forEach(e=>{n+=e.reduce((e,t)=>Math.max(t.rows??1,e),0)}),t=Math.max(t,n)}),t},UW=e=>96*e/72,GW=(e,t)=>{if(e&&e.flat().length>0){const n=[...e];return n?.map(e=>e?.map(e=>e.id===t.id?{...e,...t}:e))}return[]},XW=(e,t)=>{const n=t.flat();return e.map(e=>(e.length>1?e?.sort((e,t)=>e.x-t.x):e).map(e=>{const t=n.find(t=>t&&t.id===e.i);if(t){return{...t,id:e.i,width:e.w,...t.align?{align:t.align}:{}}}return{width:e.w,id:e.i,i:e.i,rows:e.h,type:"content",children:[]}}))},JW=(e,t)=>{if(t.length>1){const n=t.reduce((t,n)=>e(t)+e(" ")+e(n));return n}return e(t.toString())},KW=(e,t)=>{e.errors?.length>0&&MW.fire({title:t("Error"),text:JW(t,[e.errors[0].propertyName,e.errors[0].errorMessage]),allowOutsideClick:!1,showCancelButton:!0,showConfirmButton:!1,cancelButtonText:t("Ok"),customClass:{cancelButton:"btn btn-danger ms-1"},buttonsStyling:!1})},QW=()=>{try{const e=localStorage.getItem("organization");return JSON.parse(e||"{}")}catch(e){return{}}};function $W(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}$W('.react-grid-layout {\n position: relative;\n transition: height 200ms ease;\n}\n.react-grid-item {\n transition: all 200ms ease;\n transition-property: left, top, width, height;\n}\n.react-grid-item img {\n pointer-events: none;\n user-select: none;\n}\n.react-grid-item.cssTransforms {\n transition-property: transform, width, height;\n}\n.react-grid-item.resizing {\n transition: none;\n z-index: 1;\n will-change: width, height;\n}\n\n.react-grid-item.react-draggable-dragging {\n transition: none;\n z-index: 3;\n will-change: transform;\n}\n\n.react-grid-item.dropping {\n visibility: hidden;\n}\n\n.react-grid-item.react-grid-placeholder {\n background: red;\n opacity: 0.2;\n transition-duration: 100ms;\n z-index: 2;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n -o-user-select: none;\n user-select: none;\n}\n\n.react-grid-item.react-grid-placeholder.placeholder-resizing {\n transition: none;\n}\n\n.react-grid-item > .react-resizable-handle {\n position: absolute;\n width: 20px;\n height: 20px;\n}\n\n.react-grid-item > .react-resizable-handle::after {\n content: "";\n position: absolute;\n right: 3px;\n bottom: 3px;\n width: 5px;\n height: 5px;\n border-right: 2px solid rgba(0, 0, 0, 0.4);\n border-bottom: 2px solid rgba(0, 0, 0, 0.4);\n}\n\n.react-resizable-hide > .react-resizable-handle {\n display: none;\n}\n\n.react-grid-item > .react-resizable-handle.react-resizable-handle-sw {\n bottom: 0;\n left: 0;\n cursor: sw-resize;\n transform: rotate(90deg);\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-se {\n bottom: 0;\n right: 0;\n cursor: se-resize;\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-nw {\n top: 0;\n left: 0;\n cursor: nw-resize;\n transform: rotate(180deg);\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-ne {\n top: 0;\n right: 0;\n cursor: ne-resize;\n transform: rotate(270deg);\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-w,\n.react-grid-item > .react-resizable-handle.react-resizable-handle-e {\n top: 50%;\n margin-top: -10px;\n cursor: ew-resize;\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-w {\n left: 0;\n transform: rotate(135deg);\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-e {\n right: 0;\n transform: rotate(315deg);\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-n,\n.react-grid-item > .react-resizable-handle.react-resizable-handle-s {\n left: 50%;\n margin-left: -10px;\n cursor: ns-resize;\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-n {\n top: 0;\n transform: rotate(225deg);\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-s {\n bottom: 0;\n transform: rotate(45deg);\n}\n');function eF(e){function t(e,r,s,c,u){for(var p,f,m,v,w,E=0,k=0,C=0,S=0,M=0,D=0,H=m=p=0,L=0,P=0,B=0,V=0,z=s.length,j=z-1,R="",W="",F="",q="";L<z;){if(f=s.charCodeAt(L),L===j&&0!==k+S+C+E&&(0!==k&&(f=47===k?10:47),S=C=E=0,z++,j++),0===k+S+C+E){if(L===j&&(0<P&&(R=R.replace(h,"")),0<R.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:R+=s.charAt(L)}f=59}switch(f){case 123:for(p=(R=R.trim()).charCodeAt(0),m=1,V=++L;L<z;){switch(f=s.charCodeAt(L)){case 123:m++;break;case 125:m--;break;case 47:switch(f=s.charCodeAt(L+1)){case 42:case 47:e:{for(H=L+1;H<j;++H)switch(s.charCodeAt(H)){case 47:if(42===f&&42===s.charCodeAt(H-1)&&L+2!==H){L=H+1;break e}break;case 10:if(47===f){L=H+1;break e}}L=H}}break;case 91:f++;case 40:f++;case 34:case 39:for(;L++<j&&s.charCodeAt(L)!==f;);}if(0===m)break;L++}if(m=s.substring(V,L),0===p&&(p=(R=R.replace(d,"").trim()).charCodeAt(0)),64===p){switch(0<P&&(R=R.replace(h,"")),f=R.charCodeAt(1)){case 100:case 109:case 115:case 45:P=r;break;default:P=Z}if(V=(m=t(r,P,m,f,u+1)).length,0<I&&(w=l(3,m,P=n(Z,R,B),r,_,A,V,f,u,c),R=P.join(""),void 0!==w&&0===(V=(m=w.trim()).length)&&(f=0,m="")),0<V)switch(f){case 115:R=R.replace(x,o);case 100:case 109:case 45:m=R+"{"+m+"}";break;case 107:m=(R=R.replace(g,"$1 $2"))+"{"+m+"}",m=1===N||2===N&&a("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=R+m,112===c&&(W+=m,m="")}else m=""}else m=t(r,n(r,R,B),m,c,u+1);F+=m,m=B=P=H=p=0,R="",f=s.charCodeAt(++L);break;case 125:case 59:if(1<(V=(R=(0<P?R.replace(h,""):R).trim()).length))switch(0===H&&(p=R.charCodeAt(0),45===p||96<p&&123>p)&&(V=(R=R.replace(" ",":")).length),0<I&&void 0!==(w=l(1,R,r,e,_,A,W.length,c,u,c))&&0===(V=(R=w.trim()).length)&&(R="\0\0"),p=R.charCodeAt(0),f=R.charCodeAt(1),p){case 0:break;case 64:if(105===f||99===f){q+=R+s.charAt(L);break}default:58!==R.charCodeAt(V-1)&&(W+=i(R,p,f,R.charCodeAt(2)))}B=P=H=p=0,R="",f=s.charCodeAt(++L)}}switch(f){case 13:case 10:47===k?k=0:0===1+p&&107!==c&&0<R.length&&(P=1,R+="\0"),0<I*T&&l(0,R,r,e,_,A,W.length,c,u,c),A=1,_++;break;case 59:case 125:if(0===k+S+C+E){A++;break}default:switch(A++,v=s.charAt(L),f){case 9:case 32:if(0===S+E+k)switch(M){case 44:case 58:case 9:case 32:v="";break;default:32!==f&&(v=" ")}break;case 0:v="\\0";break;case 12:v="\\f";break;case 11:v="\\v";break;case 38:0===S+k+E&&(P=B=1,v="\f"+v);break;case 108:if(0===S+k+E+O&&0<H)switch(L-H){case 2:112===M&&58===s.charCodeAt(L-3)&&(O=M);case 8:111===D&&(O=D)}break;case 58:0===S+k+E&&(H=L);break;case 44:0===k+C+S+E&&(P=1,v+="\r");break;case 34:case 39:0===k&&(S=S===f?0:0===S?f:S);break;case 91:0===S+k+C&&E++;break;case 93:0===S+k+C&&E--;break;case 41:0===S+k+E&&C--;break;case 40:if(0===S+k+E){if(0===p)if(2*M+3*D==533);else p=1;C++}break;case 64:0===k+C+S+E+H+m&&(m=1);break;case 42:case 47:if(!(0<S+E+C))switch(k){case 0:switch(2*f+3*s.charCodeAt(L+1)){case 235:k=47;break;case 220:V=L,k=42}break;case 42:47===f&&42===M&&V+2!==L&&(33===s.charCodeAt(V+2)&&(W+=s.substring(V,L+1)),v="",k=0)}}0===k&&(R+=v)}D=M,M=f,L++}if(0<(V=W.length)){if(P=r,0<I&&(void 0!==(w=l(2,W,P,e,_,A,V,c,u,c))&&0===(W=w).length))return q+W+F;if(W=P.join(",")+"{"+W+"}",0!==N*O){switch(2!==N||a(W,2)||(O=0),O){case 111:W=W.replace(y,":-moz-$1")+W;break;case 112:W=W.replace(b,"::-webkit-input-$1")+W.replace(b,"::-moz-$1")+W.replace(b,":-ms-input-$1")+W}O=0}}return q+W+F}function n(e,t,n){var i=t.trim().split(m);t=i;var a=i.length,o=e.length;switch(o){case 0:case 1:var l=0;for(e=0===o?"":e[0]+" ";l<a;++l)t[l]=r(e,t[l],n).trim();break;default:var s=l=0;for(t=[];l<a;++l)for(var c=0;c<o;++c)t[s++]=r(e[c]+" ",i[l],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(v,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var o=e+";",l=2*t+3*n+4*r;if(944===l){e=o.indexOf(":",9)+1;var s=o.substring(e,o.length-1).trim();return s=o.substring(0,e).trim()+s+";",1===N||2===N&&a(s,1)?"-webkit-"+s+s:s}if(0===N||2===N&&!a(o,1))return o;switch(l){case 1015:return 97===o.charCodeAt(10)?"-webkit-"+o+o:o;case 951:return 116===o.charCodeAt(3)?"-webkit-"+o+o:o;case 963:return 110===o.charCodeAt(5)?"-webkit-"+o+o:o;case 1009:if(100!==o.charCodeAt(4))break;case 969:case 942:return"-webkit-"+o+o;case 978:return"-webkit-"+o+"-moz-"+o+o;case 1019:case 983:return"-webkit-"+o+"-moz-"+o+"-ms-"+o+o;case 883:if(45===o.charCodeAt(8))return"-webkit-"+o+o;if(0<o.indexOf("image-set(",11))return o.replace(M,"$1-webkit-$2")+o;break;case 932:if(45===o.charCodeAt(4))switch(o.charCodeAt(5)){case 103:return"-webkit-box-"+o.replace("-grow","")+"-webkit-"+o+"-ms-"+o.replace("grow","positive")+o;case 115:return"-webkit-"+o+"-ms-"+o.replace("shrink","negative")+o;case 98:return"-webkit-"+o+"-ms-"+o.replace("basis","preferred-size")+o}return"-webkit-"+o+"-ms-"+o+o;case 964:return"-webkit-"+o+"-ms-flex-"+o+o;case 1023:if(99!==o.charCodeAt(8))break;return"-webkit-box-pack"+(s=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+o+"-ms-flex-pack"+s+o;case 1005:return p.test(o)?o.replace(u,":-webkit-")+o.replace(u,":-moz-")+o:o;case 1e3:switch(t=(s=o.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=o.replace(w,"tb");break;case 232:s=o.replace(w,"tb-rl");break;case 220:s=o.replace(w,"lr");break;default:return o}return"-webkit-"+o+"-ms-"+s+o;case 1017:if(-1===o.indexOf("sticky",9))break;case 975:switch(t=(o=e).length-10,l=(s=(33===o.charCodeAt(t)?o.substring(0,t):o).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:o=o.replace(s,"-webkit-"+s)+";"+o;break;case 207:case 102:o=o.replace(s,"-webkit-"+(102<l?"inline-":"")+"box")+";"+o.replace(s,"-webkit-"+s)+";"+o.replace(s,"-ms-"+s+"box")+";"+o}return o+";";case 938:if(45===o.charCodeAt(5))switch(o.charCodeAt(6)){case 105:return s=o.replace("-items",""),"-webkit-"+o+"-webkit-box-"+s+"-ms-flex-"+s+o;case 115:return"-webkit-"+o+"-ms-flex-item-"+o.replace(k,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(k,"")+o}break;case 973:case 989:if(45!==o.charCodeAt(3)||122===o.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):o.replace(s,"-webkit-"+s)+o.replace(s,"-moz-"+s.replace("fill-",""))+o;break;case 962:if(o="-webkit-"+o+(102===o.charCodeAt(5)?"-ms-"+o:"")+o,211===n+r&&105===o.charCodeAt(13)&&0<o.indexOf("transform",10))return o.substring(0,o.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+o}return o}function a(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),H(2!==t?r:r.replace(C,"$1"),n,t)}function o(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(E," or ($1)").substring(4):"("+t+")"}function l(e,t,n,r,i,a,o,l,s,d){for(var h,u=0,p=t;u<I;++u)switch(h=D[u].call(c,e,p,n,r,i,a,o,l,s,d)){case void 0:case!1:case!0:case null:break;default:p=h}if(p!==t)return p}function s(e){return void 0!==(e=e.prefix)&&(H=null,e?"function"!=typeof e?N=1:(N=2,H=e):N=0),s}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<I){var i=l(-1,n,r,r,_,A,0,0,0,0);void 0!==i&&"string"==typeof i&&(n=i)}var a=t(Z,r,n,0,0);return 0<I&&(void 0!==(i=l(-2,a,r,r,_,A,a.length,0,0,0))&&(a=i)),O=0,A=_=1,a}var d=/^\0+/g,h=/[\0\r\f]/g,u=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,m=/,\r+?/g,v=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,k=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,M=/([^-])(image-set\()/,A=1,_=1,O=0,N=1,Z=[],D=[],I=0,H=null,T=0;return c.use=function e(t){switch(t){case void 0:case null:I=D.length=0;break;default:if("function"==typeof t)D[I++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else T=0|!!t}return e},c.set=s,void 0!==e&&s(e),c}$W(".select-background {\n display: flex;\n width: 100%;\n}\n.select-background .btn-scroll {\n cursor: pointer;\n display: flex;\n align-items: center;\n}\n.select-background .list-background {\n white-space: nowrap;\n overflow-x: hidden;\n scroll-behavior: smooth;\n max-width: 400px;\n}\n.select-background .list-background > * {\n display: inline-block;\n}\n.select-background .list-background .background-item {\n display: inline-block;\n cursor: pointer;\n height: 100px;\n width: 70px;\n border: 1px solid #b1b1b1;\n margin-left: 10px;\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n}\n.select-background .list-background .background-item.active {\n border: solid 1px #eb4619 !important;\n}\n\n.r-tab-custom {\n border-radius: 5px;\n color: #333333;\n}\n.r-tab-custom .r-tab-item {\n font-weight: 500;\n padding: 5px 10px;\n border-radius: 8px 8px 0px 0px;\n}\n.r-tab-custom .r-tab-item.active {\n background-color: #eb4619 !important;\n color: #fff !important;\n font-weight: 600;\n}\n.r-tab-custom :hover {\n background-color: rgba(235, 70, 25, 0.1) !important;\n color: #eb4619 !important;\n}\n\n.droppable-container {\n padding: 1rem;\n display: grid;\n gap: 1rem;\n grid-template-columns: repeat(1, minmax(0, 1fr));\n color: #333333;\n}\n.droppable-container > *:hover {\n background-color: rgba(235, 70, 25, 0.1) !important;\n color: #eb4619 !important;\n}\n.droppable-container .droppable-element {\n cursor: move;\n padding: 12px 15px;\n margin-bottom: 12px 15px;\n background-color: #fff;\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);\n font-size: 17px;\n font-weight: 500;\n border: 1px solid #82868b;\n border-radius: 8px;\n align-items: center;\n transition: all 0.3s ease;\n}\n.droppable-container .droppable-element svg {\n margin-right: 10px;\n}\n\n.input-disable {\n height: 28px;\n border: 1px solid #b1b1b1 !important;\n vertical-align: middle;\n border-radius: 5px;\n display: flex;\n align-items: center;\n padding-left: 7px;\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n}\n\n.sortable-item.active {\n background-color: rgba(235, 70, 25, 0.0705882353);\n border-radius: 5px;\n}\n\n.btn-reset-image {\n width: 25px;\n height: 25px;\n border-radius: 5px;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 0;\n position: absolute;\n top: -8px;\n right: -8px;\n}\n\n.btn-add-image {\n width: 100%;\n border-radius: 5px;\n}\n\n.react-grid-layout.full-border {\n border: 1px solid #000000 !important;\n}\n.react-grid-layout.outside-border {\n border: 1px solid #000000 !important;\n}");var tF={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function nF(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var rF=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,iF=nF(function(e){return rF.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),aF=Oc.exports,oF={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},lF={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},sF={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},cF={};function dF(e){return aF.isMemo(e)?sF:cF[e.$$typeof]||oF}cF[aF.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},cF[aF.Memo]=sF;var hF=Object.defineProperty,uF=Object.getOwnPropertyNames,pF=Object.getOwnPropertySymbols,fF=Object.getOwnPropertyDescriptor,mF=Object.getPrototypeOf,vF=Object.prototype;var gF=function e(t,n,r){if("string"!=typeof n){if(vF){var i=mF(n);i&&i!==vF&&e(t,i,r)}var a=uF(n);pF&&(a=a.concat(pF(n)));for(var o=dF(t),l=dF(n),s=0;s<a.length;++s){var c=a[s];if(!(lF[c]||r&&r[c]||l&&l[c]||o&&o[c])){var d=fF(n,c);try{hF(t,c,d)}catch(e){}}}}return t};function bF(){return(bF=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var yF=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},wF=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Oc.exports.typeOf(e)},xF=Object.freeze([]),EF=Object.freeze({});function kF(e){return"function"==typeof e}function CF(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function SF(e){return e&&"string"==typeof e.styledComponentId}var MF="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",AF="undefined"!=typeof window&&"HTMLElement"in window,_F=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&(void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV)),OF="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function NF(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach(function(t){e=e.replace(/%[a-z]/,t)}),e}function ZF(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw"production"===process.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):"")):new Error(NF.apply(void 0,[OF[e]].concat(n)).trim())}var DF=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&ZF(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=r;a<i;a++)this.groupSizes[a]=0}for(var o=this.indexOfGroup(e+1),l=0,s=t.length;l<s;l++)this.tag.insertRule(o,t[l])&&(this.groupSizes[e]++,o++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,a=r;a<i;a++)t+=this.tag.getRule(a)+"/*!sc*/\n";return t},e}(),IF=new Map,HF=new Map,TF=1,LF=function(e){if(IF.has(e))return IF.get(e);for(;HF.has(TF);)TF++;var t=TF++;return"production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&ZF(16,""+t),IF.set(e,t),HF.set(t,e),t},PF=function(e){return HF.get(e)},BF=function(e,t){t>=TF&&(TF=t+1),IF.set(e,t),HF.set(t,e)},VF="style["+MF+'][data-styled-version="5.3.11"]',zF=new RegExp("^"+MF+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),jF=function(e,t,n){for(var r,i=n.split(","),a=0,o=i.length;a<o;a++)(r=i[a])&&e.registerName(t,r)},RF=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],i=0,a=n.length;i<a;i++){var o=n[i].trim();if(o){var l=o.match(zF);if(l){var s=0|parseInt(l[1],10),c=l[2];0!==s&&(BF(c,s),jF(e,c,l[3]),e.getTag().insertRules(s,r)),r.length=0}else r.push(o)}}},WF=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(MF))return r}}(n),a=void 0!==i?i.nextSibling:null;r.setAttribute(MF,"active"),r.setAttribute("data-styled-version","5.3.11");var o="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},FF=function(){function e(e){var t=this.element=WF(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}ZF(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),qF=function(){function e(e){var t=this.element=WF(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),YF=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),UF=AF,GF={isServer:!AF,useCSSOMInjection:!_F},XF=function(){function e(e,t,n){void 0===e&&(e=EF),void 0===t&&(t={}),this.options=bF({},GF,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&AF&&UF&&(UF=!1,function(e){for(var t=document.querySelectorAll(VF),n=0,r=t.length;n<r;n++){var i=t[n];i&&"active"!==i.getAttribute(MF)&&(RF(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return LF(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(bF({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,i=t.target,e=n?new YF(i):r?new FF(i):new qF(i),new DF(e)));var e,t,n,r,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(LF(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(LF(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(LF(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=0;i<n;i++){var a=PF(i);if(void 0!==a){var o=e.names.get(a),l=t.getGroup(i);if(o&&l&&o.size){var s=MF+".g"+i+'[id="'+a+'"]',c="";void 0!==o&&o.forEach(function(e){e.length>0&&(c+=e+",")}),r+=""+l+s+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),JF=/(a)(d)/gi,KF=function(e){return String.fromCharCode(e+(e>25?39:97))};function QF(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=KF(t%52)+n;return(KF(t%52)+n).replace(JF,"$1-$2")}var $F=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},eq=function(e){return $F(5381,e)};var tq=eq("5.3.11"),nq=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(kF(n)&&!SF(n))return!1}return!0}(e),this.componentId=t,this.baseHash=$F(tq,t),this.baseStyle=n,XF.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))i.push(this.staticRulesId);else{var a=vq(this.rules,e,t,n).join(""),o=QF($F(this.baseHash,a)>>>0);if(!t.hasNameForId(r,o)){var l=n(a,"."+o,void 0,r);t.insertRules(r,o,l)}i.push(o),this.staticRulesId=o}else{for(var s=this.rules.length,c=$F(this.baseHash,n.hash),d="",h=0;h<s;h++){var u=this.rules[h];if("string"==typeof u)d+=u,"production"!==process.env.NODE_ENV&&(c=$F(c,u+h));else if(u){var p=vq(u,e,t,n),f=Array.isArray(p)?p.join(""):p;c=$F(c,f+h),d+=f}}if(d){var m=QF(c>>>0);if(!t.hasNameForId(r,m)){var v=n(d,"."+m,void 0,r);t.insertRules(r,m,v)}i.push(m)}}return i.join(" ")},e}(),rq=/^\s*\/\/.*$/gm,iq=[":","[",".","#"];var aq=f.default.createContext();aq.Consumer;var oq=f.default.createContext(),lq=(oq.Consumer,new XF),sq=function(e){var t,n,r,i,a=void 0===e?EF:e,o=a.options,l=void 0===o?EF:o,s=a.plugins,c=void 0===s?xF:s,d=new eF(l),h=[],u=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,a,o,l,s,c,d,h){switch(n){case 1:if(0===d&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+r),"";default:return r+(0===h?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}(function(e){h.push(e)}),p=function(e,r,a){return 0===r&&-1!==iq.indexOf(a[n.length])||a.match(i)?e:"."+t};function f(e,a,o,l){void 0===l&&(l="&");var s=e.replace(rq,""),c=a&&o?o+" "+a+" { "+s+" }":s;return t=l,n=a,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),d(o||!a?"":a,c)}return d.use([].concat(c,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,p))},u,function(e){if(-2===e){var t=h;return h=[],t}}])),f.hash=c.length?c.reduce(function(e,t){return t.name||ZF(15),$F(e,t.name)},5381).toString():"",f}();var cq=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=sq);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return ZF(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=sq),this.name+e.hash},e}(),dq=/([A-Z])/,hq=/([A-Z])/g,uq=/^ms-/,pq=function(e){return"-"+e.toLowerCase()};function fq(e){return dq.test(e)?e.replace(hq,pq).replace(uq,"-ms-"):e}var mq=function(e){return null==e||!1===e||""===e};function vq(e,t,n,r){if(Array.isArray(e)){for(var i,a=[],o=0,l=e.length;o<l;o+=1)""!==(i=vq(e[o],t,n,r))&&(Array.isArray(i)?a.push.apply(a,i):a.push(i));return a}if(mq(e))return"";if(SF(e))return"."+e.styledComponentId;if(kF(e)){if("function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t)return e;var s=e(t);return"production"!==process.env.NODE_ENV&&Oc.exports.isElement(s)&&console.warn(CF(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),vq(s,t,n,r)}var c;return e instanceof cq?n?(e.inject(n,r),e.getName(r)):e:wF(e)?function e(t,n){var r,i,a=[];for(var o in t)t.hasOwnProperty(o)&&!mq(t[o])&&(Array.isArray(t[o])&&t[o].isCss||kF(t[o])?a.push(fq(o)+":",t[o],";"):wF(t[o])?a.push.apply(a,e(t[o],o)):a.push(fq(o)+": "+(r=o,(null==(i=t[o])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||r in tF||r.startsWith("--")?String(i).trim():i+"px")+";")));return n?[n+" {"].concat(a,["}"]):a}(e):e.toString()}var gq=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function bq(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return kF(e)||wF(e)?gq(vq(yF(xF,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:gq(vq(yF(e,n)))}var yq=/invalid hook call/i,wq=new Set,xq=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Eq=/(^-|-$)/g;function kq(e){return e.replace(xq,"-").replace(Eq,"")}function Cq(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var Sq=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Mq=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Aq(e,t,n){var r=e[n];Sq(t)&&Sq(r)?_q(r,t):e[n]=t}function _q(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,a=n;i<a.length;i++){var o=a[i];if(Sq(o))for(var l in o)Mq(l)&&Aq(e,o[l],l)}return e}var Oq=f.default.createContext();Oq.Consumer;var Nq={};function Zq(t,n,r){var i=SF(t),a=!Cq(t),o=n.attrs,l=void 0===o?xF:o,s=n.componentId,c=void 0===s?function(e,t){var n="string"!=typeof e?"sc":kq(e);Nq[n]=(Nq[n]||0)+1;var r=n+"-"+function(e){return QF(eq(e)>>>0)}("5.3.11"+n+Nq[n]);return t?t+"-"+r:r}(n.displayName,n.parentComponentId):s,d=n.displayName,h=void 0===d?function(e){return Cq(e)?"styled."+e:"Styled("+CF(e)+")"}(t):d,u=n.displayName&&n.componentId?kq(n.displayName)+"-"+n.componentId:n.componentId||c,p=i&&t.attrs?Array.prototype.concat(t.attrs,l).filter(Boolean):l,m=n.shouldForwardProp;i&&t.shouldForwardProp&&(m=n.shouldForwardProp?function(e,r,i){return t.shouldForwardProp(e,r,i)&&n.shouldForwardProp(e,r,i)}:t.shouldForwardProp);var v,g=new nq(r,u,i?t.componentStyle:void 0),b=g.isStatic&&0===l.length,y=function(t,n){return function(t,n,r,i){var a=t.attrs,o=t.componentStyle,l=t.defaultProps,s=t.foldedComponentIds,c=t.shouldForwardProp,d=t.styledComponentId,h=t.target,u=function(e,t,n){void 0===e&&(e=EF);var r=bF({},t,{theme:e}),i={};return n.forEach(function(e){var t,n,a,o=e;for(t in kF(o)&&(o=o(r)),o)r[t]=i[t]="className"===t?(n=i[t],a=o[t],n&&a?n+" "+a:n||a):o[t]}),[r,i]}(function(e,t,n){return void 0===n&&(n=EF),e.theme!==n.theme&&e.theme||t||n.theme}(n,e.useContext(Oq),l)||EF,n,a),p=u[0],f=u[1],m=function(t,n,r,i){var a=e.useContext(aq)||lq,o=e.useContext(oq)||sq,l=n?t.generateAndInjectStyles(EF,a,o):t.generateAndInjectStyles(r,a,o);return"production"!==process.env.NODE_ENV&&!n&&i&&i(l),l}(o,i,p,"production"!==process.env.NODE_ENV?t.warnTooManyClasses:void 0),v=r,g=f.$as||n.$as||f.as||n.as||h,b=Cq(g),y=f!==n?bF({},n,{},f):n,w={};for(var x in y)"$"!==x[0]&&"as"!==x&&("forwardedAs"===x?w.as=y[x]:(c?c(x,iF,g):!b||iF(x))&&(w[x]=y[x]));return n.style&&f.style!==n.style&&(w.style=bF({},n.style,{},f.style)),w.className=Array.prototype.concat(s,d,m!==d?m:null,n.className,f.className).filter(Boolean).join(" "),w.ref=v,e.createElement(g,w)}(v,t,n,b)};return y.displayName=h,(v=f.default.forwardRef(y)).attrs=p,v.componentStyle=g,v.displayName=h,v.shouldForwardProp=m,v.foldedComponentIds=i?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):xF,v.styledComponentId=u,v.target=i?t.target:t,v.withComponent=function(e){var t=n.componentId,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(n,["componentId"]),a=t&&t+"-"+(Cq(e)?e:kq(CF(e)));return Zq(e,bF({},i,{attrs:p,componentId:a}),r)},Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?_q({},t.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(function(t,n){if("production"!==process.env.NODE_ENV){var r="The component "+t+(n?' with the id of "'+n+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(e){if(yq.test(e))a=!1,wq.delete(r);else{for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];i.apply(void 0,[e].concat(n))}},e.useRef(),a&&!wq.has(r)&&(console.warn(r),wq.add(r))}catch(t){yq.test(t.message)&&wq.delete(r)}finally{console.error=i}}}(h,u),v.warnTooManyClasses=function(e,t){var n={},r=!1;return function(i){if(!r&&(n[i]=!0,Object.keys(n).length>=200)){var a=t?' with the id of "'+t+'"':"";console.warn("Over 200 classes were generated for component "+e+a+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={}}}}(h,u)),Object.defineProperty(v,"toString",{value:function(){return"."+v.styledComponentId}}),a&&gF(v,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}var Dq=function(e){return function e(t,n,r){if(void 0===r&&(r=EF),!Oc.exports.isValidElementType(n))return ZF(1,String(n));var i=function(){return t(n,r,bq.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,n,bF({},r,{},i))},i.attrs=function(i){return e(t,n,bF({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i}(Zq,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Dq[e]=Dq(e)}),"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1);var Iq=Dq;const Hq=Iq.span`
|
|
92
92
|
|
|
93
93
|
font-size: ${e=>e.fontSize?`${e.fontSize}px`:"14px"};
|
|
94
94
|
font-weight: ${e=>e.bold?"bold":"400"};
|
|
@@ -534,7 +534,7 @@ function MV(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.lengt
|
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
|
|
537
|
-
`,DK=t=>{const{t:n,typeEdit:i,currentLayout:a,layout:o,dataTable:l,formatNumber:s,onClick:c,onSectionClick:d,styles:h,currentItem:u,setCurrentItem:p}=t,f=IW(o.table?.columns??[]).findIndex(e=>o.table?.fieldSums.includes(e.field)),m=e=>{p(e),d?.(e)},v=(e,t,n)=>{const r=t[e.field??""]
|
|
537
|
+
`,DK=t=>{const{t:n,typeEdit:i,currentLayout:a,layout:o,dataTable:l,formatNumber:s,onClick:c,onSectionClick:d,styles:h,currentItem:u,setCurrentItem:p}=t,f=IW(o.table?.columns??[]).findIndex(e=>o.table?.fieldSums.includes(e.field)),m=e=>{p(e),d?.(e)},v=(e,t,n)=>{const r=t[e.field??""];if("stt"===e.field)return n+1;if("number"===e.dataType){const t={thousandSeparator:NW(s?.thousandSeparator??".",s?.decimalSeparator??","),decimalSeparator:ZW(s?.thousandSeparator??".",s?.decimalSeparator??","),prefix:s?.prefixNegative,suffix:s?.suffixNegative,decimalScale:e.fraction??2,fixedDecimalScale:!!e.fraction};return DW(r)?WJ(r.toString(),t):0}if("date"===e.dataType){if(!r)return"";const t=e.format||"dd/MM/yyyy HH:mm";return OW(r,t)}return r?.toString()||""},g=(t,n)=>r.jsx(e.Fragment,{children:r.jsx("td",{className:_v("td-cell",{"td-selected":a&&a.id===o.id&&"summary"===u}),style:{textAlign:"right",color:o.table?.summary?.color??h?.color??"#000",fontFamily:o.table?.summary.fontFamily??h?.fontFamily??"Times New Roman",fontSize:UW(o.table?.summary.fontSize??h?.fontSize??11),fontWeight:o.table?.summary.bold??h?.bold?"bold":"normal",fontStyle:o.table?.summary.italic??h?.italic?"italic":"normal",textDecoration:o.table?.summary.underline??h?.underline?"underline":"none",padding:"0 0.5rem",lineHeight:"1.5",borderInlineEnd:"1px solid",borderInlineStart:0===n?"1px solid":"",borderBottom:"1px solid",borderColor:h?.color??"#000"},children:o.table?.fieldSums.includes(t.field??"")&&(()=>{const e=(n=l,r=t.field??"",n&&n.length>0?n.reduce((e,t)=>e+("number"!=typeof t[r]&&isNaN(t[r])?0:Number(t[r])),0):0);var n,r;const i=(e=>null==e||""===e)(e)?"0":parseFloat(Number(e).toFixed(t.fraction??2)).toString(),a={thousandSeparator:NW(s?.thousandSeparator??".",s?.decimalSeparator??","),decimalSeparator:ZW(s?.thousandSeparator??".",s?.decimalSeparator??","),prefix:s?.prefixNegative,suffix:s?.suffixNegative,decimalScale:t.fraction??2,fixedDecimalScale:!!t.fraction};return"number"===t.dataType?WJ(i,a):0})()})},`summary-cell-${n}`);return r.jsx(e.Fragment,{children:r.jsx("div",{className:_v("h-100 grid-item-container grid-item-table align-items-center",{active:"layout"===i,selected:"section"===i&&a?.id===o.id}),style:{minHeight:23*(o.rows??1)},onClick:c,children:r.jsxs(ZK,{style:{width:"100%",minWidth:"100%"},children:[r.jsx("thead",{className:"",children:TW(o.table?.columns??[]).map((e,t)=>r.jsx("tr",{children:e.map((l,s)=>r.jsx("th",{className:_v("header-cell",{"header-selected":a&&a.id===o.id&&"header"===u,"header-first-top":a&&a.id===o.id&&"header"===u&&0===t,"header-last-bottom":a&&a.id===o.id&&"header"===u&&(!l.children||t===TW(o.table?.columns??[]).length-1),"header-first-left":a&&a.id===o.id&&"header"===u&&0===s,"header-last-right":a&&a.id===o.id&&"header"===u&&0===t&&s===e.length-1,"header-content-selected":a&&a.id===o.id&&"content"===u&&(!l.children||t===TW(o.table?.columns??[]).length-1)}),onClick:e=>{"section"===i?m("header"):e.preventDefault()},style:{textAlign:"center",color:o.table?.header?.color??h?.color??"#000",fontFamily:o.table?.header.fontFamily??h?.fontFamily??"Times New Roman",fontSize:UW(o.table?.header.fontSize??h?.fontSize??11),fontWeight:o.table?.header.bold??h?.bold?"bold":"normal",fontStyle:o.table?.header.italic??h?.italic?"italic":"normal",textDecoration:o.table?.header.underline??h?.underline?"underline":"none",width:l.width,height:23,borderInlineEnd:"1px solid #000",borderInlineStart:0===s?"1px solid #000":void 0,borderBottom:"1px solid #000",borderTop:0===t?"1px solid #000":void 0,maxHeight:23,borderColor:h?.color??"#000"},scope:"col",rowSpan:l.rowspan,colSpan:l.colspan,children:n(l.headerDisplay??l.headerText??"")},s))},t))}),r.jsx("tbody",{className:"be-table-tbody",children:(o.table?.isTotalTable&&o.table?.fieldTotalTable?.length>0?RW(l,o.table?.columns?.map(e=>e.field??"")??[],o.table?.fieldTotalTable??[]):l)?.map((e,t)=>r.jsx("tr",{className:"be-table-row",children:IW(o.table?.columns??[]).map((n,s)=>r.jsx("td",{onClick:e=>{"section"===i?m("content"):e.preventDefault()},className:_v("td-cell",{"td-selected":a&&a.id===o.id&&"content"===u,"td-first-top":a&&a.id===o.id&&"content"===u&&0===t,"td-last-bottom":a&&a.id===o.id&&"content"===u&&t===l.length-1,"td-first-left":a&&a.id===o.id&&"content"===u&&0===s,"td-last-right":a&&a.id===o.id&&"content"===u&&s===IW(o.table?.columns??[]).length-1,"footer-select":a&&a.id===o.id&&"summary"===u&&t===l.length-1}),style:{textAlign:"stt"===n.field?"center":"number"===n.dataType?"right":"left",color:o.table?.content?.color??h?.color??"#000",fontFamily:o.table?.content.fontFamily??h?.fontFamily??"Times New Roman",fontSize:UW(o.table?.content.fontSize??h?.fontSize??11),fontWeight:o.table?.content.bold??h?.bold?"bold":"normal",fontStyle:o.table?.content.italic??h?.italic?"italic":"normal",textDecoration:o.table?.content.underline??h?.underline?"underline":"none",padding:"0 0.5rem",maxWidth:n.width,width:n.width,height:23,borderInlineEnd:"1px solid #000",borderInlineStart:0===s?"1px solid #000":void 0,borderBottom:"1px solid #000",borderColor:h?.color??"#000"},children:v(n,e,t)},`col-${t}-${s}`))},`row-${t}`))}),(f??0)>0&&r.jsx("tfoot",{className:"be-table-tfoot",children:r.jsxs("tr",{onClick:e=>{"section"===i?m("summary"):e.preventDefault()},className:"be-table-row be-table-row-level-0",children:[r.jsx("td",{className:_v("td-cell",{"td-selected":a&&a.id===o.id&&"summary"===u,"td-first-top":a&&a.id===o.id&&"summary"===u,"td-last-bottom":a&&a.id===o.id&&"summary"===u,"td-first-left":a&&a.id===o.id&&"summary"===u,"td-last-right":!1}),style:{textAlign:"left",color:o.table?.summary?.color??h?.color??"#000",fontFamily:o.table?.summary.fontFamily??h?.fontFamily??"Times New Roman",fontSize:UW(o.table?.summary.fontSize??h?.fontSize??11),fontWeight:o.table?.summary.bold??h?.bold?"bold":"normal",fontStyle:o.table?.summary.italic??h?.italic?"italic":"normal",textDecoration:o.table?.summary.underline??h?.underline?"underline":"none",padding:"0 0.5rem",lineHeight:"1.5",height:23,borderInlineEnd:"1px solid #000",borderInlineStart:"1px solid #000",borderBottom:"1px solid #000",borderColor:h?.color??"#000"},colSpan:f??0,children:"Tổng"}),IW(o.table?.columns??[]).slice(f??0).map((e,t)=>g(e,t))]})})]})})})},IK=Iq.div`
|
|
538
538
|
|
|
539
539
|
.drag-handle {
|
|
540
540
|
display: none;
|
|
@@ -551,7 +551,7 @@ function MV(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.lengt
|
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
`,HK=t=>{const{layout:n,active:i,selected:a,styles:o,pixelRate:l,pageSetting:s,onClick:c,itemClick:d,onLayoutChange:h,pageSize:u}=t,p=e.useRef(null),f=30,[m,v]=e.useState(!1),[g,b]=e.useState(!1),[y,w]=e.useState(null),[x,E]=e.useState(void 0);return SV(p,()=>{v(!1)}),e.useEffect(()=>{const e=n.signature?.setting?.detail?.map((e,t)=>({x:t*(f/(n.signature?.setting?.detail?.length??0)),y:0,w:f/(n.signature?.setting?.detail?.length??0),h:1,minW:1,minH:1,maxW:12,i:e.code}));E({lg:e,md:e,sm:e,xs:e,xxs:e})},[n.signature?.setting?.detail]),r.jsx(e.Fragment,{children:r.jsx("div",{ref:p,onClick:()=>{v(!0),c?.()},style:{backgroundColor:a?"#eb461912":void 0,borderColor:i||a?"#eb4619":"transparent",borderWidth:1,borderStyle:i||a?"dashed":"solid",minHeight:23},children:x&&n.signature?.setting?.detail&&(n.signature?.setting?.detail?.length??0)>0&&r.jsx(NY.exports.Responsive,{className:"layout grid-layout",style:{},width:u.width*l-(s.marginLeft+s.marginRight)*l,layouts:x,maxRows:1,rowHeight:161,isDraggable:m&&a,isResizable:!1,autoSize:!0,breakpoints:{lg:1200,md:992,sm:768,xs:640,xxs:0},cols:{lg:f,md:f,sm:f,xs:f,xxs:f},margin:[2,2],compactType:"horizontal",containerPadding:[0,0],verticalCompact:!0,onDragStart:()=>{b(!0),v(!0)},onDragStop:e=>{b(!1),h?.(e)},children:n.signature?.setting?.detail?.map(e=>r.jsx("div",{id:e.code,onClick:e=>{e.preventDefault()},children:r.jsxs(IK,{className:_v("",{active:a,isDrag:g}),onClick:()=>{d?.(e),w(e)},style:{display:"flex",flexDirection:"column",textAlign:"center",justifyContent:"space-between",height:"100%"},children:[r.jsxs("div",{children:[r.jsx(Hq,{color:n.signature?.style?.color??o?.color??"#000",fontSize:UW(n.signature?.style?.fontSize??o?.fontSize??11),underline:n.signature?.style?.underline??o?.underline??!1,bold:n.signature?.style?.bold??o?.bold??!1,fontFamily:n.signature?.style?.fontFamily??o?.fontFamily??"Times New Roman",italic:n.signature?.style?.italic??o?.italic??!1,textAlign:"center",isActive:a&&y&&y?.code===e.code,children:e.title}),r.jsx("br",{}),r.jsx(Hq,{color:n.signature?.style?.color??o?.color??"#000",fontSize:UW(o?.fontSize??11),underline:!1,bold:!1,fontFamily:o?.fontFamily,italic:!0,textAlign:"center",children:"(Ký, họ tên)"})]}),r.jsx("div",{children:r.jsx("p",{style:{margin:0,textAlign:"center"}})})]})},e.code))})})})},TK=e.memo(t=>{const{data:n,sectionData:i,width:a,typeEdit:o,pageSize:l,rows:s,content:c,active:d,selected:h,styles:u,currentItem:p,pageSetting:f,pixelRate:m,onClick:v,itemClick:g,formatNumber:b,onLayoutChange:y,organization:w}=t,x=e.useRef(null),[E,k]=e.useState(!1),[C,S]=e.useState(void 0),[M,A]=e.useState(!1),[_,O]=e.useState(null);SV(x,()=>{k(!1)}),e.useEffect(()=>{if(p){const e=c?.flat().find(e=>e.id===p.id);e&&O(e)}},[p]),e.useEffect(()=>{const e=(e=>{const t=[];let n=0;return e.forEach(e=>{let r=0;e.forEach(e=>{t.push({w:e.width?e.width:12,h:e.rows??1,max:12,x:r,y:n,i:e.id}),r+=e.width}),n++}),t})(c??[]);S({lg:e,md:e,sm:e,xs:e,xxs:e})},[c]);const N=e=>{if("image"===e.type)return Z(e.imageSetting);if((!e.type||"data"===e.type)&&e.field){const t=n[e.field];if("number"===e.dataType){const n={thousandSeparator:vA(b?.thousandSeparator??".",b?.decimalSeparator??","),decimalSeparator:gA(b?.thousandSeparator??".",b?.decimalSeparator??","),prefix:b?.prefixNegative,suffix:b?.suffixNegative,decimalScale:e.fraction??2,fixedDecimalScale:!!e.fraction};return DW(t)?sY(t?.toString(),n):0}return"date"===e.dataType?OW(t,e.format):t}if("template"===e.type&&(e.children?.length??0)>0)return e.children?.map((e,t)=>r.jsxs("span",{children:[0!==t&&" "," ",N(e)]},`${e.id}-${t}`));switch(e.type){case"currentDate":return OW(new Date,e.format||"dd/MM/yyyy");case"companyName":return w?.name??"";case"companyAddress":return w?.address??"";default:return e.headerDisplay}},Z=e=>r.jsx("img",{src:e?.url??"",style:{height:e?.height??0,width:e?.width??0}});return r.jsx(e.Fragment,{children:r.jsx(Lq,{style:{minHeight:"section"===o?23*s:"unset"},className:"h-100",children:r.jsx("div",{ref:x,className:"h-100",onClick:()=>{k(!0),v?.()},children:C&&c&&c.flat().length>0?r.jsx(NY.exports.Responsive,{className:_v({[`${i.border??"none"}-border`]:i.border}),style:{minHeight:"100%",backgroundColor:h?"#eb461912":void 0,borderColor:d||h?"#eb4619 ":"transparent",borderWidth:1,borderStyle:d||h?"dashed":"solid"},width:(l.width*m-(f.marginLeft+f.marginRight)*m)*a/12-2,layouts:C,isDraggable:E&&h,isResizable:E&&h,rowHeight:23,margin:[0,0],containerPadding:[0,0],compactType:"vertical",autoSize:!0,verticalCompact:!0,breakpoints:{lg:1200,md:1200,sm:1200,xs:1200,xxs:0},cols:{lg:12,md:12,sm:12,xs:12,xxs:12},onDragStart:()=>{A(!0)},onResizeStop:e=>{VW(e,C.lg)||y(e)},onDragStop:e=>{A(!1),VW(e,C.lg)||y(e)},children:c?.flat().map(e=>r.jsx("div",{id:e.id,children:r.jsxs("div",{className:_v("grid-item h-100",{isDrag:M}),style:{textAlign:i.align},children:[((!e.type||"data"===e.type)&&e.field||"template"===e.type)&&(e.headerDisplay.length>0||e.headerText.length>0)&&r.jsx(Tq,{color:u?.color??"#000",fontSize:UW(u?.fontSize??11),underline:!1,bold:!1,fontFamily:u?.fontFamily??"Times New Roman",italic:!1,onClick:()=>{h&&(g?.(e),O(e))},children:e.headerDisplay?`${e.headerDisplay}:`:""}),r.jsx(Hq,{color:e.style?.color??u?.color??"#000",fontSize:UW(e.style?.fontSize??u?.fontSize??11),underline:e.style?.underline??u?.underline??!1,bold:e.style?.bold??u?.bold??!1,fontFamily:e.style?.fontFamily??u?.fontFamily??"Times New Roman",italic:e.style?.italic??u?.italic??!1,isActive:h&&_&&_?.id===e.id,textAlign:e.type&&"data"!==e.type&&i.align?i.align:"left",onClick:()=>{"section"===o&&(g?.(e),O(e))},style:{padding:e.type&&"data"!==e.type||!e.field?"":"0 5px"},children:N(e)})]})},e.id))}):r.jsx("div",{ref:x,onClick:()=>{k(!0)},className:"h-100",style:{height:"100%",backgroundColor:h?"#eb461912":void 0,borderColor:d||h?"#eb4619 ":"transparent",borderWidth:1,borderStyle:d||h?"dashed":"solid"}})})})})}),LK=t=>{const{t:n,pageSize:i,setting:a,layouts:o,setLayouts:l,setSetting:s,data:c,currentLayout:d,setCurrentLayout:h,onSetConfig:u,formatNumber:p,currentLayoutHover:f,currentItem:m,setCurrentLayoutHover:v,currentDimensions:g,organization:b}=t,y=37.7,w=e=>{u(d?.table?.[e])},x=e=>{const t=o.lg.filter(t=>t.i!==e.id);if(0===t.length){const e=AW();t.push({id:e,i:e,max:12,x:0,y:1,static:!0,h:1,w:12,type:"content",rows:1,children:[]})}const n=XW(zW(t),a.layout),r={...a,layout:n};s({...r});const i=FW(n??[]);l({lg:i,md:i,sm:i,xs:i,xxs:i})};return r.jsx(e.Fragment,{children:r.jsx(NY.exports.Responsive,{className:"layout grid-layout d-flex flex-wrap align-content-start",style:{minHeight:(i.height-a.pageSetting.marginTop-a.pageSetting.marginBottom)*y,zIndex:2,position:"relative"},width:i.width*y-(a.pageSetting.marginLeft+a.pageSetting.marginRight)*y,layouts:o,isDraggable:!0,isResizable:!0,rowHeight:23,margin:[0,(a.pageSetting?.spaceLayout??0)/2],compactType:"vertical",containerPadding:[0,0],verticalCompact:!0,autoSize:!1,breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:12,sm:12,xs:12,xxs:12},isBounded:!0,isDroppable:!0,onDrop:(e,t)=>((e,t)=>{const n=[...a.layout],r=AW(),i=o.lg.map(e=>({...e,y:e.y>=t.y?e.y+1:e.y})),c=zW(i.concat({...t,w:g.w,i:r})).sort((e,t)=>e[0].y-t[0].y),d=function(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];if(t.push(r),n>0){const i=r[0].y,a=e[n-1],o=i-(a[0].y+a[0].h);if(o>0)for(let e=0;e<o;e++)t.splice(n+e,0,[])}}return t}(c),h={id:r,i:r,width:12,w:12,type:g.type,rows:1,children:[]};"table"===g.type?h.table={columns:[],header:{},content:{},summary:{},fieldSums:[]}:"signature"===g.type&&(h.signature={setting:"",reportSigning:1,loginSigning:1,detail:[]});const u=[...n,[h]];l({lg:d.flat(),md:d.flat(),sm:d.flat(),xs:d.flat(),xxs:d.flat()});const p=XW(d,u),f={...a,layout:p};s(f)})(0,t),onDragStart:()=>{},onResizeStop:(e,t,n)=>{if(!VW(e,o.lg)){const t=e.map(e=>({...e,h:e.y===n.y?n.h:e.h}));l({lg:t,md:t,sm:t,xs:t,xxs:t})}},onDragStop:e=>{if(!VW(e,o.lg)){const t=zW(e).sort((e,t)=>e[0].y-t[0].y);l({lg:t.flat(),md:t.flat(),sm:t.flat(),xs:t.flat(),xxs:t.flat()}),s({...a,layout:XW(t,a.layout)})}},children:a?.layout.flat().map((e,t)=>"table"===e.type?r.jsxs("div",{id:`${t+1}`,className:_v("",{}),children:[r.jsx(DK,{typeEdit:"layout",layout:e,styles:a?.style,dataTable:c[e.table?.field??""]??[],onClick:()=>{h(e)},currentLayout:d,onSectionClick:w,formatNumber:p,currentItem:m,setCurrentItem:()=>{},t:n}),r.jsx("div",{className:_v("remove",{}),onClick:()=>x(e),children:r.jsx(Sv,{fontSize:14,color:"red"})})]},`${e.id}`):"signature"===e.type?r.jsxs("div",{id:`${t+1}`,children:[r.jsx(HK,{pixelRate:y,pageSetting:a.pageSetting,pageSize:i,layout:e,styles:a?.style,active:!0,onClick:()=>{h(e)},selected:!1}),r.jsx("div",{className:_v("remove",{}),onClick:()=>x(e),children:r.jsx(Sv,{fontSize:14,color:"red"})})]},e.id):r.jsxs("div",{id:e.id,children:[r.jsx(TK,{sectionData:e,typeEdit:"layout",width:e.width,pageSize:i,rows:e.rows,pageSetting:a.pageSetting,pixelRate:y,data:c,content:e.children,styles:a?.style,currentItem:m,formatNumber:p,onLayoutChange:()=>{},organization:b,active:!0,selected:!1,onClick:()=>{u({textAlign:e.align}),h(e)}}),r.jsx("div",{className:_v("remove",{}),onClick:()=>x(e),onMouseEnter:()=>{e.id!==f?.id&&v(e)},onMouseLeave:()=>{v(null)},children:r.jsx(Sv,{fontSize:14,color:"red"})})]},e.id))})})},PK=t=>{const{t:n,pageSize:i,setting:a,setSetting:o,data:l,currentLayout:s,setCurrentLayout:c,onSetConfig:d,formatNumber:h,currentItem:u,setCurrentItem:p,organization:f}=t,m=37.7,v=e=>{d(s?.table?.[e])},g=(e,t)=>{p(e),d(e?.style,t)};return r.jsx(e.Fragment,{children:r.jsx("div",{className:"layout grid-layout align-content-start",style:{minHeight:(i.height-a.pageSetting.marginTop-a.pageSetting.marginBottom)*m,zIndex:2,position:"relative"},children:a?.layout?.map((e,t)=>r.jsx(dp,{className:"m-0",style:{minHeight:23,paddingBottom:a.pageSetting?.spaceLayout??0},children:e.map(e=>"table"===e.type?r.jsx(yp,{id:`${t+1}`,className:_v("p-0",{}),children:r.jsx(DK,{typeEdit:"section",layout:e,styles:a?.style,dataTable:l[e.table?.field??""]??[],onClick:()=>c(e),currentLayout:s,onSectionClick:v,formatNumber:h,t:n,currentItem:u,setCurrentItem:p})},e.id):"signature"===e.type?r.jsx("div",{id:`${t+1}`,className:_v("p-0",{}),children:r.jsx(HK,{pixelRate:m,pageSize:i,pageSetting:a.pageSetting,layout:e,styles:a?.style,active:!1,onClick:()=>{c(e)},itemClick:t=>g(t,e),selected:s?.id===e.id,onLayoutChange:t=>{const n=((e,t)=>{const n=e.reduce((e,t)=>(e[t.i]=t,e),{});return t.sort((e,t)=>{const r=n[e.code],i=n[t.code];return r.y===i.y?r.x-i.x:r.y-i.y})})(t,e.signature?.setting.detail??[]);(e=>{const t=GW([...a.layout],e),n={...a,layout:t};o({...n})})({...e,signature:{...e.signature,setting:{...e.signature?.setting,detail:n}}})}})},e.id):r.jsx(yp,{id:e.id,className:_v("p-0",{}),xs:e.width,children:r.jsx(TK,{sectionData:e,typeEdit:"section",width:e.width,pageSize:i,rows:e.rows??1,pageSetting:a.pageSetting,pixelRate:m,data:l,content:e.children??[],styles:a?.style,formatNumber:h,currentItem:u,active:!1,selected:s?.id===e.id,onClick:()=>{c(e)},organization:f,itemClick:t=>g(t,e),onLayoutChange:t=>{const n=zW(t).sort((e,t)=>e[0].y-t[0].y),r=((e,t)=>{const n=t.flat();return e.map(e=>(e.length>1?e?.sort((e,t)=>e.x-t.x):e).map(e=>{const t=n.find(t=>t&&t.id===e.i);return t?{...t,id:e.i,width:e.w,rows:e.h,...t.align?{align:t.align}:{}}:{width:e.w,type:"blank",children:[[{headerText:"",headerDisplay:"",field:"",type:"text",style:{fontSize:12,bold:!1}}]],id:e.i,i:e.i,rows:e.h}}))})(n,e.children??[]),i={...e,rows:Math.max(...r.map(e=>e.reduce((e,t)=>e+(t.rows??0),0))),children:r},l=GW([...a.layout],i),s={...a,layout:l};o({...s})}})},e.id))},`${e.id}-${t}`))})})},BK=e.forwardRef((t,n)=>{const{t:i,data:a,height:o,organization:l,printSetting:s,formatNumber:c,dataFields:d,signatures:h,tableFields:u,showButtonSave:p,nameTemplate:f,isNewTem:m,onSaveData:v,handleChangeName:g,CDN_URL_VIEW:b,uploadFileApi:y}=t;e.useImperativeHandle(n,()=>({onSave:ne}));const w=37.7,x={A4:{width:21,height:29.7},A4R:{width:29.7,height:21},A3:{width:29.7,height:42},A3R:{width:42,height:29.7},A5:{width:14.8,height:21},A5R:{width:21,height:14.8}},[E,k]=e.useState(!1),[C,S]=e.useState(0),[M,A]=e.useState(kV),[_,O]=e.useState(14),[N,Z]=e.useState(!1),[D,I]=e.useState(!1),[H,T]=e.useState(!1),[L,P]=e.useState("left"),[B,V]=e.useState("none"),[z,j]=e.useState("#000"),[R,W]=e.useState(null),[F,q]=e.useState(x.A4),[Y,U]=e.useState(void 0),[G,X]=e.useState({...s}),[J,K]=e.useState(null),[Q,$]=e.useState(null),[ee,te]=e.useState(null);e.useEffect(()=>{if(s&&!BW(s)){const e={layout:WW(s.layout,a),style:{...s.style},pageSetting:{...s.pageSetting,images:s.pageSetting.images?.map(e=>({...e}))}};X(e);const t=FW(e.layout??[]);U({lg:t,md:t,sm:t,xs:t,xxs:t})}},[s]),e.useEffect(()=>{G&&!BW(G)&&q(x[G.pageSetting?.pageSize??"A4"])},[G]);const ne=()=>{v({...G})},re=()=>k(!E),ie=e=>{const t=GW([...G.layout],e);X({...G,layout:t})},ae=(e,t)=>{const n=e?.fontSize?e?.fontSize:14;n!==_&&O(n);const r=e?.fontFamily?e?.fontFamily:kV;r!==M&&A(r);const i=!!e?.bold;i!==N&&Z(i);const a=!!e?.italic;a!==D&&I(a);const o=!!e?.underline;o!==H&&T(o);const l=e?.color;l!==z&&j(l);const s=t&&t.align?t.align:e?.textAlign?e?.textAlign:"left";s!==L&&P(s);const c=t&&t.align?t.align:e?.border?e?.border:"none";c!==L&&P(c)};return r.jsx(Pq,{height:o,className:"edit-template-application",children:r.jsxs("div",{className:"template-content-area-wrapper",children:[r.jsx("div",{className:_v("sidebar-left",{show:E}),children:r.jsx(AY,{t:i,setActiveTab:S,activeTab:C,setCurrentDimensions:W,currentItem:ee,setCurrentItem:te,setting:G,data:a,formatNumber:c,setSetting:X,currentLayout:J,setCurrentLayout:K,setLayouts:U,handleUpdateLayout:ie,dataFields:d,signatures:h,tableFields:u,organization:l,CDN_URL_VIEW:b,uploadFileApi:y})}),r.jsxs("div",{className:"content-right",children:[r.jsx("div",{className:_v("body-content-overlay",{show:E}),onClick:re}),r.jsx(OY,{t:i,setFontFamily:A,fontFamily:M,handleUpdateLayout:ie,currentLayout:J,textAlign:L,setTextAlign:P,border:B,setBorder:V,fontStyle:D,setFontStyle:I,fontWeight:N,setFontWeight:Z,currentItem:ee,fontSize:_,setFontSize:O,color:z,setColor:j,textDecoration:H,setTextDecoration:T,handleMainSidebar:re,onSave:ne,setting:G,activeTab:C,showButtonSave:p,nameTemplate:f,handleChangeName:g,isNewTem:m}),r.jsx("div",{className:"",style:{backgroundColor:"#e0e0e0",height:"calc(100% - 50px)",width:"100%",padding:"1rem",overflow:"auto"},children:r.jsx("div",{className:" d-flex justify-content-center",style:{minWidth:F.width*w},children:r.jsx("div",{style:{width:F.width*w,minWidth:F.width*w,minHeight:F.height*w,height:"auto",backgroundColor:"#fff",overflow:"hidden"},children:r.jsxs(Bq,{type:0===C?"layout":"section",className:"h-100",style:{position:"relative",paddingTop:(G.pageSetting.marginTop??1)*w,paddingBottom:(G.pageSetting.marginBottom??1)*w,paddingLeft:(G.pageSetting.marginLeft??1)*w,paddingRight:(G.pageSetting.marginRight??1)*w},children:[r.jsx("div",{style:{position:"absolute",width:"100%",height:"100%",backgroundImage:`url(${G.pageSetting.background})`,backgroundSize:"100% 100%",top:"50%",left:"50%",transform:"translate(-50%, -50%)",opacity:G.pageSetting.opacity||0===G.pageSetting.opacity?G.pageSetting.opacity:1,zIndex:1}}),G.pageSetting.images?.map((e,t)=>r.jsx("img",{src:e.url,alt:"",width:e.width,height:e.height,style:{position:"absolute",top:e.top,left:e.left,zIndex:e.behindText?1:3}},`image-${t}`)),Y&&G.layout&&G.layout.flat().length>0&&0===C&&r.jsx(LK,{t:i,pageSize:F,setting:G,layouts:Y,setLayouts:U,setSetting:X,data:a,currentLayout:J,setCurrentLayout:K,onSetConfig:ae,formatNumber:c,currentItem:ee,currentLayoutHover:Q,setCurrentLayoutHover:$,currentDimensions:R,organization:l}),Y&&G.layout&&G.layout.length>0&&0!==C&&r.jsx(PK,{t:i,pageSize:F,setting:G,setSetting:X,data:a,currentLayout:J,setCurrentLayout:K,onSetConfig:ae,formatNumber:c,currentItem:ee,setCurrentItem:te,setLayouts:U,organization:l})]})})})})]})]})})}),VK={layout:[[{width:12,children:[],type:"content"}]],pageSetting:{marginBottom:.5,marginLeft:1,marginRight:1,marginTop:.5},style:{}},zK=t=>{const n=QW(),i=(()=>{try{const e=localStorage.getItem("configNumeric");return JSON.parse(e||"{}")}catch(e){return{}}})(),{t:a,updateGeneralSettingApi:o,typeModal:l,setTypeModal:s,windowSize:c,dataSetting:d,data:h,onSaveData:u,CDN_URL_VIEW:p,uploadFileApi:f}=t,m=e.useRef(null),[v,g]=e.useState({...VK}),[b,y]=e.useState(""),w=()=>{s("")},x=()=>{m.current&&m.current?.onSave()};return r.jsxs(Qf,{isOpen:"EditTemplate"===l||"AddTemplate"===l||"DuplicateTemplate"===l,toggle:()=>{s("")},className:"modal-dialog-centered",contentClassName:"p-0",fullscreen:!0,onOpened:async()=>{g("AddTemplate"===l?{...VK}:d.setting),y("EditTemplate"===l?d.name:"")},onClosed:()=>{},backdrop:"static",keyboard:!1,children:[r.jsx(xV,{t:a,typeModal:l,handleModal:()=>{s("")},title:"Tùy chọn in",className:"mb-0"}),r.jsx(BK,{t:a,ref:m,nameTemplate:b,isNewTem:d.isDefault&&"EditTemplate"===l,organization:{...n},handleChangeName:e=>{y(e)},onSaveData:e=>{b?o({id:"EditTemplate"===l?d.id:void 0,name:b,organizationId:n?.id,resourceCode:d.resourceCode,type:"PrintDocument",value:{type:d.type,setting:e}}).unwrap().then(t=>{t.isValid?(u(e,b),w(),fA(a("EditTemplate"===l?"UpdateSuccessful":"AddSuccess"))):KW(t,a)}).catch(()=>{uA(a,"EditTemplate"===l?"UpdateFail":"AddFail")}):uA(a,"Vui lòng nhập tên mẫu in!")},dataFields:d.dataFields??[],tableFields:d.tableFields??[],printSetting:v,height:c.innerHeight-102+"px",data:h,formatNumber:{decimalSeparator:i.decimalSeparatorDisplay,thousandSeparator:i.thousandSeparatorDisplay,colorNegative:i.colorNegative,prefixNegative:i.prefixNegative,suffixNegative:i.suffixNegative},CDN_URL_VIEW:p,uploadFileApi:f}),r.jsx("div",{className:"d-flex justify-content-end p-1",style:{boxShadow:"0 4px 24px 0 rgb(34 41 47 / 10%)"},children:r.jsxs(r.Fragment,{children:[r.jsx(Mp,{color:"primary",className:"me-1",onClick:x,children:a("Save")}),r.jsx(Mp,{color:"secondary",onClick:w,outline:!0,className:"me-1",children:a("Close")})]})})]})},jK=t=>{const{t:n,openModal:i,handleModal:a,defaultPrintSetting:o,data:l,printDocumentApi:s,getListGeneralSettingApi:c,updateGeneralSettingApi:d,deleteGeneralSettingApi:h,CDN_URL_VIEW:u,DOCUMENT_URL_VIEW:p,uploadFileApi:f}=t,m=()=>{const{innerWidth:e,innerHeight:t}=window;return{innerWidth:e,innerHeight:t}},[v,g]=e.useState(m());e.useEffect(()=>{const e=()=>{g(m())};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]);const b=QW(),[y,w]=e.useState([o]),[x,E]=e.useState(o.name),[k,C]=e.useState({value:"A4",label:"A4"}),[S,M]=e.useState(),[A,_]=e.useState(""),[O,N]=e.useState(""),Z=e=>null==e?[]:Array.isArray(e)?e:[e];e.useEffect(()=>{i&&I(o.name)},[i]);const D=(e,t,r)=>{if(r??o.name){const i=(t??y).find(e=>e.name===(r??o.name));i&&(((e,t)=>{_(""),s({data:Z(l),organizationId:b?.id,setting:e,typePage:t}).then(e=>{_(e.payload)}).catch(()=>pA(n("GetFail")))})(i.setting,e??k.value),M({...i}))}},I=e=>{c({organizationId:b?.id,resourceCodes:o.resourceCode,type:"PrintDocument"}).unwrap().then(t=>{const n=[o].map(e=>({...e}));t?.forEach(e=>{const t=n.findIndex(t=>t.type===e.value.type&&t.name===e.name);t>-1?(n[t].id=e.id,n[t].setting=e.value.setting):o.type===e.value.type&&n.push({id:e.id,name:e.name,setting:e.value.setting,type:o.type,dataFields:o.dataFields,tableFields:o.tableFields,resourceCode:e.resourceCode})}),w(n),E(e??o.name),D(k.value,n,e)}).catch(()=>{w([o]),pA(n("GetFail"))})},H=()=>{h&&h(S.id).unwrap().then(e=>{e.isValid?(I(o.name),fA(n("DeleteSuccess"))):KW(e,n)}).catch(()=>{uA(n,"DeleteFail")})},T=[{value:"A4",label:n("A4")},{value:"A4R",label:n("A4 horizontal")},{value:"A3",label:n("A3")},{value:"A3R",label:n("A3 horizontal")},{value:"A5",label:n("A5")},{value:"A5R",label:n("A5 horizontal")}];return r.jsxs(Qf,{isOpen:i,toggle:a,className:"modal-dialog-centered modal-xl",contentClassName:"p-0",onOpened:()=>{},onClosed:()=>{w([o]),E(o.name),C({value:"A4",label:"A4"})},backdrop:"static",keyboard:!1,children:[r.jsx(xV,{t:n,typeModal:"Print",handleModal:a,title:x,titleComponent:()=>{const e=y?.map(e=>({...e,value:e.name,label:n(e.name)}));return r.jsx("div",{className:"d-flex align-items-center pe-50 me-50",children:r.jsx(NO,{options:e,value:EV(x)?null:e?.find(e=>e.value===x),isDisabled:!A,width:300,onChange:e=>{D(k.value,y,e.name),E(e.name)}})})},className:"mb-0",componentRight:()=>r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"d-flex align-items-center pe-50 me-50 border-end",children:r.jsx(NO,{options:T,value:k,isDisabled:!A,onChange:e=>{C(e),D(e.value)}})}),r.jsx("div",{className:"d-flex align-items-center pe-50 me-50 border-end",children:r.jsxs(Mp,{disabled:!A,style:{fontSize:13,fontWeight:400},outline:!0,color:"primary",onClick:()=>N("AddTemplate"),className:_v("btn-border-0 d-flex align-items-center"),children:[r.jsx(mv,{className:"me-50",fontSize:16}),n("Thêm mẫu")]})}),r.jsx("div",{className:"d-flex align-items-center pe-50 me-50 border-end",children:r.jsxs(Mp,{disabled:!A,style:{fontSize:13,fontWeight:400},outline:!0,color:"primary",onClick:()=>N("EditTemplate"),className:_v("btn-border-0 d-flex align-items-center"),children:[r.jsx(rv,{className:"me-50",fontSize:16}),n("Sửa mẫu")]})}),r.jsx("div",{className:_v("d-flex align-items-center pe-50 me-50 border-end",{"d-none":!S?.id}),children:r.jsxs(Mp,{disabled:!A,style:{fontSize:13,fontWeight:400},outline:!0,color:"primary",onClick:()=>{hA(n,H,S.id)},className:_v("btn-border-0 d-flex align-items-center"),children:[r.jsx(wv,{className:"me-50",fontSize:16}),n("Xóa mẫu")]})}),r.jsx("div",{className:"d-flex align-items-center pe-50 me-50 border-end",children:r.jsxs(Mp,{disabled:!A,style:{fontSize:13,fontWeight:400},outline:!0,color:"primary",onClick:()=>N("DuplicateTemplate"),className:_v("btn-border-0 d-flex align-items-center"),children:[r.jsx(tv,{className:"me-50",fontSize:16}),n("Duplicate")]})})]})}),r.jsx(nm,{children:r.jsx("div",{style:{height:v.innerHeight-170+"px"},children:A?r.jsx(r.Fragment,{children:r.jsx("iframe",{src:`${p}/${A}`,width:"100%",height:"100%"})}):r.jsx(r.Fragment,{children:r.jsxs("div",{className:"h-100 w-100 d-flex justify-content-center align-items-center text-primary",children:[r.jsx(qm,{children:" "}),n("Loading...")]})})})}),r.jsx("div",{className:"d-flex justify-content-end p-1",style:{boxShadow:"0 4px 24px 0 rgb(34 41 47 / 10%)"},children:r.jsx(e.Fragment,{children:r.jsx(Mp,{color:"secondary",onClick:a,outline:!0,children:n("Close")})})}),r.jsx(zK,{t:n,updateGeneralSettingApi:d,typeModal:O,setTypeModal:N,windowSize:v,data:(e=>Array.isArray(e)?e.length>0?e[0]:{}:e)(l),dataSetting:S??{},onSaveData:(e,t)=>{I(t)},CDN_URL_VIEW:u,uploadFileApi:f})]})};var RK=e=>"checkbox"===e.type,WK=e=>e instanceof Date,FK=e=>null==e;const qK=e=>"object"==typeof e;var YK=e=>!FK(e)&&!Array.isArray(e)&&qK(e)&&!WK(e),UK=e=>YK(e)&&e.target?RK(e.target)?e.target.checked:e.target.value:e,GK=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),XK="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function JK(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(XK&&(e instanceof Blob||e instanceof FileList)||!n&&!YK(e))return e;if(t=n?[]:{},Array.isArray(e)||(e=>{const t=e.constructor&&e.constructor.prototype;return YK(t)&&t.hasOwnProperty("isPrototypeOf")})(e))for(const n in e)t[n]=JK(e[n]);else t=e}return t}var KK=e=>Array.isArray(e)?e.filter(Boolean):[],QK=e=>void 0===e,$K=(e,t,n)=>{if(!t||!YK(e))return n;const r=KK(t.split(/[,[\].]+?/)).reduce((e,t)=>FK(e)?e:e[t],e);return QK(r)||r===e?QK(e[t])?n:e[t]:r};const eQ="blur",tQ="focusout",nQ="change",rQ="onBlur",iQ="onChange",aQ="onSubmit",oQ="onTouched",lQ="all",sQ="max",cQ="min",dQ="maxLength",hQ="minLength",uQ="pattern",pQ="required",fQ="validate",mQ=f.default.createContext(null),vQ=()=>f.default.useContext(mQ);var gQ=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const i=a;return t._proxyFormState[i]!==lQ&&(t._proxyFormState[i]=!r||lQ),n&&(n[i]=!0),e[i]}});return i},bQ=e=>YK(e)&&!Object.keys(e).length,yQ=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return bQ(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!r||lQ))},wQ=e=>Array.isArray(e)?e:[e],xQ=(e,t,n)=>n&&t?e===t:!e||!t||e===t||wQ(e).some(e=>e&&(e.startsWith(t)||t.startsWith(e)));function EQ(e){const t=f.default.useRef(e);t.current=e,f.default.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var kQ=e=>"string"==typeof e,CQ=(e,t,n,r,i)=>kQ(e)?(r&&t.watch.add(e),$K(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),$K(n,e))):(r&&(t.watchAll=!0),n);var SQ=e=>/^\w*$/.test(e),MQ=e=>KK(e.replace(/["|']|\]/g,"").split(/\.|\[/));function AQ(e,t,n){let r=-1;const i=SQ(t)?[t]:MQ(t),a=i.length,o=a-1;for(;++r<a;){const t=i[r];let a=n;if(r!==o){const n=e[t];a=YK(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}e[t]=a,e=e[t]}return e}function _Q(e){const t=vQ(),{name:n,control:r=t.control,shouldUnregister:i}=e,a=GK(r._names.array,n),o=function(e){const t=vQ(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:o}=e||{},l=f.default.useRef(r);l.current=r,EQ({disabled:a,subject:n._subjects.values,next:e=>{xQ(l.current,e.name,o)&&c(JK(CQ(l.current,n._names,e.values||n._formValues,!1,i)))}});const[s,c]=f.default.useState(n._getWatch(r,i));return f.default.useEffect(()=>n._removeUnmounted()),s}({control:r,name:n,defaultValue:$K(r._formValues,n,$K(r._defaultValues,n,e.defaultValue)),exact:!0}),l=function(e){const t=vQ(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[o,l]=f.default.useState(n._formState),s=f.default.useRef(!0),c=f.default.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=f.default.useRef(i);return d.current=i,EQ({disabled:r,next:e=>s.current&&xQ(d.current,e.name,a)&&yQ(e,c.current,n._updateFormState)&&l({...n._formState,...e}),subject:n._subjects.state}),f.default.useEffect(()=>(s.current=!0,c.current.isValid&&n._updateValid(!0),()=>{s.current=!1}),[n]),gQ(o,n,c.current,!1)}({control:r,name:n}),s=f.default.useRef(r.register(n,{...e.rules,value:o}));return f.default.useEffect(()=>{const e=r._options.shouldUnregister||i,t=(e,t)=>{const n=$K(r._fields,e);n&&(n._f.mount=t)};if(t(n,!0),e){const e=JK($K(r._options.defaultValues,n));AQ(r._defaultValues,n,e),QK($K(r._formValues,n))&&AQ(r._formValues,n,e)}return()=>{(a?e&&!r._state.action:e)?r.unregister(n):t(n,!1)}},[n,r,a,i]),{field:{name:n,value:o,onChange:f.default.useCallback(e=>s.current.onChange({target:{value:UK(e),name:n},type:nQ}),[n]),onBlur:f.default.useCallback(()=>s.current.onBlur({target:{value:$K(r._formValues,n),name:n},type:eQ}),[n,r]),ref:e=>{const t=$K(r._fields,n);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!$K(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!$K(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!$K(l.touchedFields,n)},error:{enumerable:!0,get:()=>$K(l.errors,n)}})}}const OQ=e=>e.render(_Q(e));var NQ=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const ZQ=(e,t,n)=>{for(const r of n||Object.keys(e)){const n=$K(e,r);if(n){const{_f:e,...r}=n;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else YK(r)&&ZQ(r,t)}}};var DQ=e=>({isOnSubmit:!e||e===aQ,isOnBlur:e===rQ,isOnChange:e===iQ,isOnAll:e===lQ,isOnTouch:e===oQ}),IQ=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),HQ=(e,t,n)=>{const r=KK($K(e,n));return AQ(r,"root",t[n]),AQ(e,n,r),e},TQ=e=>"boolean"==typeof e,LQ=e=>"file"===e.type,PQ=e=>"function"==typeof e,BQ=e=>{if(!XK)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},VQ=e=>kQ(e),zQ=e=>"radio"===e.type,jQ=e=>e instanceof RegExp;const RQ={value:!1,isValid:!1},WQ={value:!0,isValid:!0};var FQ=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!QK(e[0].attributes.value)?QK(e[0].value)||""===e[0].value?WQ:{value:e[0].value,isValid:!0}:WQ:RQ}return RQ};const qQ={isValid:!1,value:null};var YQ=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,qQ):qQ;function UQ(e,t,n="validate"){if(VQ(e)||Array.isArray(e)&&e.every(VQ)||TQ(e)&&!e)return{type:n,message:VQ(e)?e:"",ref:t}}var GQ=e=>YK(e)&&!jQ(e)?e:{value:e,message:""},XQ=async(e,t,n,r,i)=>{const{ref:a,refs:o,required:l,maxLength:s,minLength:c,min:d,max:h,pattern:u,validate:p,name:f,valueAsNumber:m,mount:v,disabled:g}=e._f,b=$K(t,f);if(!v||g)return{};const y=o?o[0]:a,w=e=>{r&&y.reportValidity&&(y.setCustomValidity(TQ(e)?"":e||""),y.reportValidity())},x={},E=zQ(a),k=RK(a),C=E||k,S=(m||LQ(a))&&QK(a.value)&&QK(b)||BQ(a)&&""===a.value||""===b||Array.isArray(b)&&!b.length,M=NQ.bind(null,f,n,x),A=(e,t,n,r=dQ,i=hQ)=>{const o=e?t:n;x[f]={type:e?r:i,message:o,ref:a,...M(e?r:i,o)}};if(i?!Array.isArray(b)||!b.length:l&&(!C&&(S||FK(b))||TQ(b)&&!b||k&&!FQ(o).isValid||E&&!YQ(o).isValid)){const{value:e,message:t}=VQ(l)?{value:!!l,message:l}:GQ(l);if(e&&(x[f]={type:pQ,message:t,ref:y,...M(pQ,t)},!n))return w(t),x}if(!(S||FK(d)&&FK(h))){let e,t;const r=GQ(h),i=GQ(d);if(FK(b)||isNaN(b)){const n=a.valueAsDate||new Date(b),o=e=>new Date((new Date).toDateString()+" "+e),l="time"==a.type,s="week"==a.type;kQ(r.value)&&b&&(e=l?o(b)>o(r.value):s?b>r.value:n>new Date(r.value)),kQ(i.value)&&b&&(t=l?o(b)<o(i.value):s?b<i.value:n<new Date(i.value))}else{const n=a.valueAsNumber||(b?+b:b);FK(r.value)||(e=n>r.value),FK(i.value)||(t=n<i.value)}if((e||t)&&(A(!!e,r.message,i.message,sQ,cQ),!n))return w(x[f].message),x}if((s||c)&&!S&&(kQ(b)||i&&Array.isArray(b))){const e=GQ(s),t=GQ(c),r=!FK(e.value)&&b.length>+e.value,i=!FK(t.value)&&b.length<+t.value;if((r||i)&&(A(r,e.message,t.message),!n))return w(x[f].message),x}if(u&&!S&&kQ(b)){const{value:e,message:t}=GQ(u);if(jQ(e)&&!b.match(e)&&(x[f]={type:uQ,message:t,ref:a,...M(uQ,t)},!n))return w(t),x}if(p)if(PQ(p)){const e=UQ(await p(b,t),y);if(e&&(x[f]={...e,...M(fQ,e.message)},!n))return w(e.message),x}else if(YK(p)){let e={};for(const r in p){if(!bQ(e)&&!n)break;const i=UQ(await p[r](b,t),y,r);i&&(e={...i,...M(r,i.message)},w(i.message),n&&(x[f]=e))}if(!bQ(e)&&(x[f]={ref:y,...e},!n))return x}return w(!0),x};function JQ(e,t){const n=Array.isArray(t)?t:SQ(t)?[t]:MQ(t),r=1===n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=QK(e)?r++:e[t[r++]];return e}(e,n),i=n.length-1,a=n[i];return r&&delete r[a],0!==i&&(YK(r)&&bQ(r)||Array.isArray(r)&&function(e){for(const t in e)if(!QK(e[t]))return!1;return!0}(r))&&JQ(e,n.slice(0,-1)),e}function KQ(){let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}}var QQ=e=>FK(e)||!qK(e);function $Q(e,t){if(QQ(e)||QQ(t))return e===t;if(WK(e)&&WK(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const n=e[i];if(!r.includes(i))return!1;if("ref"!==i){const e=t[i];if(WK(n)&&WK(e)||YK(n)&&YK(e)||Array.isArray(n)&&Array.isArray(e)?!$Q(n,e):n!==e)return!1}}return!0}var e$=e=>"select-multiple"===e.type,t$=e=>BQ(e)&&e.isConnected,n$=e=>{for(const t in e)if(PQ(e[t]))return!0;return!1};function r$(e,t={}){const n=Array.isArray(e);if(YK(e)||n)for(const n in e)Array.isArray(e[n])||YK(e[n])&&!n$(e[n])?(t[n]=Array.isArray(e[n])?[]:{},r$(e[n],t[n])):FK(e[n])||(t[n]=!0);return t}function i$(e,t,n){const r=Array.isArray(e);if(YK(e)||r)for(const r in e)Array.isArray(e[r])||YK(e[r])&&!n$(e[r])?QK(t)||QQ(n[r])?n[r]=Array.isArray(e[r])?r$(e[r],[]):{...r$(e[r])}:i$(e[r],FK(t)?{}:t[r],n[r]):n[r]=!$Q(e[r],t[r]);return n}var a$=(e,t)=>i$(e,t,r$(t)),o$=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>QK(e)?e:t?""===e?NaN:e?+e:e:n&&kQ(e)?new Date(e):r?r(e):e;function l$(e){const t=e.ref;if(!(e.refs?e.refs.every(e=>e.disabled):t.disabled))return LQ(t)?t.files:zQ(t)?YQ(e.refs).value:e$(t)?[...t.selectedOptions].map(({value:e})=>e):RK(t)?FQ(e.refs).value:o$(QK(t.value)?e.ref.value:t.value,e)}var s$=e=>QK(e)?e:jQ(e)?e.source:YK(e)?jQ(e.value)?e.value.source:e.value:e;function c$(e,t,n){const r=$K(e,n);if(r||SQ(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const r=i.join("."),a=$K(t,r),o=$K(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};i.pop()}return{name:n}}const d$={mode:aQ,reValidateMode:iQ,shouldFocusError:!0};function h$(e={},t){let n,r={...d$,...e},i={submitCount:0,isDirty:!1,isLoading:PQ(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},a={},o=(YK(r.defaultValues)||YK(r.values))&&JK(r.defaultValues||r.values)||{},l=r.shouldUnregister?{}:JK(o),s={action:!1,mount:!1,watch:!1},c={mount:new Set,unMount:new Set,array:new Set,watch:new Set},d=0;const h={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},u={values:KQ(),array:KQ(),state:KQ()},p=e.resetOptions&&e.resetOptions.keepDirtyValues,f=DQ(r.mode),m=DQ(r.reValidateMode),v=r.criteriaMode===lQ,g=async e=>{if(h.isValid||e){const e=r.resolver?bQ((await E()).errors):await k(a,!0);e!==i.isValid&&u.state.next({isValid:e})}},b=e=>h.isValidating&&u.state.next({isValidating:e}),y=(e,t,n,r)=>{const i=$K(a,e);if(i){const a=$K(l,e,QK(n)?$K(o,e):n);QK(a)||r&&r.defaultChecked||t?AQ(l,e,t?a:l$(i._f)):M(e,a),s.mount&&g()}},w=(e,t,n,r,a)=>{let l=!1,s=!1;const c={name:e};if(!n||r){h.isDirty&&(s=i.isDirty,i.isDirty=c.isDirty=C(),l=s!==c.isDirty);const n=$Q($K(o,e),t);s=$K(i.dirtyFields,e),n?JQ(i.dirtyFields,e):AQ(i.dirtyFields,e,!0),c.dirtyFields=i.dirtyFields,l=l||h.dirtyFields&&s!==!n}if(n){const t=$K(i.touchedFields,e);t||(AQ(i.touchedFields,e,n),c.touchedFields=i.touchedFields,l=l||h.touchedFields&&t!==n)}return l&&a&&u.state.next(c),l?c:{}},x=(t,r,a,o)=>{const l=$K(i.errors,t),s=h.isValid&&TQ(r)&&i.isValid!==r;var c;if(e.delayError&&a?(c=()=>((e,t)=>{AQ(i.errors,e,t),u.state.next({errors:i.errors})})(t,a),n=e=>{clearTimeout(d),d=setTimeout(c,e)},n(e.delayError)):(clearTimeout(d),n=null,a?AQ(i.errors,t,a):JQ(i.errors,t)),(a?!$Q(l,a):l)||!bQ(o)||s){const e={...o,...s&&TQ(r)?{isValid:r}:{},errors:i.errors,name:t};i={...i,...e},u.state.next(e)}b(!1)},E=async e=>r.resolver(l,r.context,((e,t,n,r)=>{const i={};for(const n of e){const e=$K(t,n);e&&AQ(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}})(e||c.mount,a,r.criteriaMode,r.shouldUseNativeValidation)),k=async(e,t,n={valid:!0})=>{for(const a in e){const o=e[a];if(o){const{_f:e,...a}=o;if(e){const a=c.array.has(e.name),s=await XQ(o,l,v,r.shouldUseNativeValidation&&!t,a);if(s[e.name]&&(n.valid=!1,t))break;!t&&($K(s,e.name)?a?HQ(i.errors,s,e.name):AQ(i.errors,e.name,s[e.name]):JQ(i.errors,e.name))}a&&await k(a,t,n)}}return n.valid},C=(e,t)=>(e&&t&&AQ(l,e,t),!$Q(Z(),o)),S=(e,t,n)=>CQ(e,c,{...s.mount?l:QK(t)?o:kQ(e)?{[e]:t}:t},n,t),M=(e,t,n={})=>{const r=$K(a,e);let i=t;if(r){const n=r._f;n&&(!n.disabled&&AQ(l,e,o$(t,n)),i=BQ(n.ref)&&FK(t)?"":t,e$(n.ref)?[...n.ref.options].forEach(e=>e.selected=i.includes(e.value)):n.refs?RK(n.ref)?n.refs.length>1?n.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(i)?!!i.find(t=>t===e.value):i===e.value)):n.refs[0]&&(n.refs[0].checked=!!i):n.refs.forEach(e=>e.checked=e.value===i):LQ(n.ref)?n.ref.value="":(n.ref.value=i,n.ref.type||u.values.next({name:e,values:{...l}})))}(n.shouldDirty||n.shouldTouch)&&w(e,i,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&N(e)},A=(e,t,n)=>{for(const r in t){const i=t[r],o=`${e}.${r}`,l=$K(a,o);!c.array.has(e)&&QQ(i)&&(!l||l._f)||WK(i)?M(o,i,n):A(o,i,n)}},_=(e,n,r={})=>{const d=$K(a,e),p=c.array.has(e),f=JK(n);AQ(l,e,f),p?(u.array.next({name:e,values:{...l}}),(h.isDirty||h.dirtyFields)&&r.shouldDirty&&u.state.next({name:e,dirtyFields:a$(o,l),isDirty:C(e,f)})):!d||d._f||FK(f)?M(e,f,r):A(e,f,r),IQ(e,c)&&u.state.next({...i}),u.values.next({name:e,values:{...l}}),!s.mount&&t()},O=async e=>{const t=e.target;let o=t.name,s=!0;const d=$K(a,o);if(d){let y,C;const S=t.type?l$(d._f):UK(e),M=e.type===eQ||e.type===tQ,A=!((p=d._f).mount&&(p.required||p.min||p.max||p.maxLength||p.minLength||p.pattern||p.validate)||r.resolver||$K(i.errors,o)||d._f.deps)||((e,t,n,r,i)=>!i.isOnAll&&(!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:!(n?r.isOnChange:i.isOnChange)||e))(M,$K(i.touchedFields,o),i.isSubmitted,m,f),_=IQ(o,c,M);AQ(l,o,S),M?(d._f.onBlur&&d._f.onBlur(e),n&&n(0)):d._f.onChange&&d._f.onChange(e);const O=w(o,S,M,!1),Z=!bQ(O)||_;if(!M&&u.values.next({name:o,type:e.type,values:{...l}}),A)return h.isValid&&g(),Z&&u.state.next({name:o,..._?{}:O});if(!M&&_&&u.state.next({...i}),b(!0),r.resolver){const{errors:e}=await E([o]),t=c$(i.errors,a,o),n=c$(e,a,t.name||o);y=n.error,o=n.name,C=bQ(e)}else y=(await XQ(d,l,v,r.shouldUseNativeValidation))[o],s=isNaN(S)||S===$K(l,o,S),s&&(y?C=!1:h.isValid&&(C=await k(a,!0)));s&&(d._f.deps&&N(d._f.deps),x(o,C,y,O))}var p},N=async(e,t={})=>{let n,o;const l=wQ(e);if(b(!0),r.resolver){const t=await(async e=>{const{errors:t}=await E();if(e)for(const n of e){const e=$K(t,n);e?AQ(i.errors,n,e):JQ(i.errors,n)}else i.errors=t;return t})(QK(e)?e:l);n=bQ(t),o=e?!l.some(e=>$K(t,e)):n}else e?(o=(await Promise.all(l.map(async e=>{const t=$K(a,e);return await k(t&&t._f?{[e]:t}:t)}))).every(Boolean),(o||i.isValid)&&g()):o=n=await k(a);return u.state.next({...!kQ(e)||h.isValid&&n!==i.isValid?{}:{name:e},...r.resolver||!e?{isValid:n}:{},errors:i.errors,isValidating:!1}),t.shouldFocus&&!o&&ZQ(a,e=>e&&$K(i.errors,e),e?l:c.mount),o},Z=e=>{const t={...o,...s.mount?l:{}};return QK(e)?t:kQ(e)?$K(t,e):e.map(e=>$K(t,e))},D=(e,t)=>({invalid:!!$K((t||i).errors,e),isDirty:!!$K((t||i).dirtyFields,e),isTouched:!!$K((t||i).touchedFields,e),error:$K((t||i).errors,e)}),I=(e,t={})=>{for(const n of e?wQ(e):c.mount)c.mount.delete(n),c.array.delete(n),t.keepValue||(JQ(a,n),JQ(l,n)),!t.keepError&&JQ(i.errors,n),!t.keepDirty&&JQ(i.dirtyFields,n),!t.keepTouched&&JQ(i.touchedFields,n),!r.shouldUnregister&&!t.keepDefaultValue&&JQ(o,n);u.values.next({values:{...l}}),u.state.next({...i,...t.keepDirty?{isDirty:C()}:{}}),!t.keepIsValid&&g()},H=(e,t={})=>{let n=$K(a,e);const i=TQ(t.disabled);return AQ(a,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),c.mount.add(e),n?i&&AQ(l,e,t.disabled?void 0:$K(l,e,l$(n._f))):y(e,!0,t.value),{...i?{disabled:t.disabled}:{},...r.shouldUseNativeValidation?{required:!!t.required,min:s$(t.min),max:s$(t.max),minLength:s$(t.minLength),maxLength:s$(t.maxLength),pattern:s$(t.pattern)}:{},name:e,onChange:O,onBlur:O,ref:i=>{if(i){H(e,t),n=$K(a,e);const r=QK(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,l=(e=>zQ(e)||RK(e))(r),s=n._f.refs||[];if(l?s.find(e=>e===r):r===n._f.ref)return;AQ(a,e,{_f:{...n._f,...l?{refs:[...s.filter(t$),r,...Array.isArray($K(o,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),y(e,!1,void 0,r)}else n=$K(a,e,{}),n._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&(!GK(c.array,e)||!s.action)&&c.unMount.add(e)}}},T=()=>r.shouldFocusError&&ZQ(a,e=>e&&$K(i.errors,e),c.mount),L=(n,r={})=>{const d=n||o,f=JK(d),m=n&&!bQ(n)?f:o;if(r.keepDefaultValues||(o=d),!r.keepValues){if(r.keepDirtyValues||p)for(const e of c.mount)$K(i.dirtyFields,e)?AQ(m,e,$K(l,e)):_(e,$K(m,e));else{if(XK&&QK(n))for(const e of c.mount){const t=$K(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(BQ(e)){const t=e.closest("form");if(t){t.reset();break}}}}a={}}l=e.shouldUnregister?r.keepDefaultValues?JK(o):{}:f,u.array.next({values:{...m}}),u.values.next({values:{...m}})}c={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!h.isValid||!!r.keepIsValid,s.watch=!!e.shouldUnregister,u.state.next({submitCount:r.keepSubmitCount?i.submitCount:0,isDirty:r.keepDirty?i.isDirty:!(!r.keepDefaultValues||$Q(n,o)),isSubmitted:!!r.keepIsSubmitted&&i.isSubmitted,dirtyFields:r.keepDirtyValues?i.dirtyFields:r.keepDefaultValues&&n?a$(o,n):{},touchedFields:r.keepTouched?i.touchedFields:{},errors:r.keepErrors?i.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},P=(e,t)=>L(PQ(e)?e(l):e,t);return{control:{register:H,unregister:I,getFieldState:D,_executeSchema:E,_getWatch:S,_getDirty:C,_updateValid:g,_removeUnmounted:()=>{for(const e of c.unMount){const t=$K(a,e);t&&(t._f.refs?t._f.refs.every(e=>!t$(e)):!t$(t._f.ref))&&I(e)}c.unMount=new Set},_updateFieldArray:(e,t=[],n,r,c=!0,d=!0)=>{if(r&&n){if(s.action=!0,d&&Array.isArray($K(a,e))){const t=n($K(a,e),r.argA,r.argB);c&&AQ(a,e,t)}if(d&&Array.isArray($K(i.errors,e))){const t=n($K(i.errors,e),r.argA,r.argB);c&&AQ(i.errors,e,t),((e,t)=>{!KK($K(e,t)).length&&JQ(e,t)})(i.errors,e)}if(h.touchedFields&&d&&Array.isArray($K(i.touchedFields,e))){const t=n($K(i.touchedFields,e),r.argA,r.argB);c&&AQ(i.touchedFields,e,t)}h.dirtyFields&&(i.dirtyFields=a$(o,l)),u.state.next({name:e,isDirty:C(e,t),dirtyFields:i.dirtyFields,errors:i.errors,isValid:i.isValid})}else AQ(l,e,t)},_getFieldArray:t=>KK($K(s.mount?l:o,t,e.shouldUnregister?$K(o,t,[]):[])),_reset:L,_resetDefaultValues:()=>PQ(r.defaultValues)&&r.defaultValues().then(e=>{P(e,r.resetOptions),u.state.next({isLoading:!1})}),_updateFormState:e=>{i={...i,...e}},_subjects:u,_proxyFormState:h,get _fields(){return a},get _formValues(){return l},get _state(){return s},set _state(e){s=e},get _defaultValues(){return o},get _names(){return c},set _names(e){c=e},get _formState(){return i},set _formState(e){i=e},get _options(){return r},set _options(e){r={...r,...e}}},trigger:N,register:H,handleSubmit:(e,t)=>async n=>{n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let o=JK(l);if(u.state.next({isSubmitting:!0}),r.resolver){const{errors:e,values:t}=await E();i.errors=e,o=t}else await k(a);JQ(i.errors,"root"),bQ(i.errors)?(u.state.next({errors:{}}),await e(o,n)):(t&&await t({...i.errors},n),T(),setTimeout(T)),u.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:bQ(i.errors),submitCount:i.submitCount+1,errors:i.errors})},watch:(e,t)=>PQ(e)?u.values.subscribe({next:n=>e(S(void 0,t),n)}):S(e,t,!0),setValue:_,getValues:Z,reset:P,resetField:(e,t={})=>{$K(a,e)&&(QK(t.defaultValue)?_(e,$K(o,e)):(_(e,t.defaultValue),AQ(o,e,t.defaultValue)),t.keepTouched||JQ(i.touchedFields,e),t.keepDirty||(JQ(i.dirtyFields,e),i.isDirty=t.defaultValue?C(e,$K(o,e)):C()),t.keepError||(JQ(i.errors,e),h.isValid&&g()),u.state.next({...i}))},clearErrors:e=>{e&&wQ(e).forEach(e=>JQ(i.errors,e)),u.state.next({errors:e?i.errors:{}})},unregister:I,setError:(e,t,n)=>{const r=($K(a,e,{_f:{}})._f||{}).ref;AQ(i.errors,e,{...t,ref:r}),u.state.next({name:e,errors:i.errors,isValid:!1}),n&&n.shouldFocus&&r&&r.focus&&r.focus()},setFocus:(e,t={})=>{const n=$K(a,e),r=n&&n._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:D}}var u$,p$,f$=function(e,t,n){if(e&&"reportValidity"in e){var r=$K(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},m$=function(e,t){var n=function(n){var r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?f$(r.ref,n,e):r.refs&&r.refs.forEach(function(t){return f$(t,n,e)})};for(var r in t.fields)n(r)},v$=function(e,t){t.shouldUseNativeValidation&&m$(e,t);var n={};for(var r in e){var i=$K(t.fields,r);AQ(n,r,Object.assign(e[r],{ref:i&&i.ref}))}return n},g$=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),function(r,i,a){try{return Promise.resolve(function(o,l){try{var s=(t.context&&"development"===process.env.NODE_ENV&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e["sync"===n.mode?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(e){return a.shouldUseNativeValidation&&m$({},a),{values:n.rawValues?r:e,errors:{}}}))}catch(e){return l(e)}return s&&s.then?s.then(void 0,l):s}(0,function(e){if(!e.inner)throw e;return{values:{},errors:v$((t=e,n=!a.shouldUseNativeValidation&&"all"===a.criteriaMode,(t.inner||[]).reduce(function(e,t){if(e[t.path]||(e[t.path]={message:t.message,type:t.type}),n){var r=e[t.path].types,i=r&&r[t.type];e[t.path]=NQ(t.path,n,e,t.type,i?[].concat(i,t.message):t.message)}return e},{})),a)};var t,n}))}catch(e){return Promise.reject(e)}}};try{u$=Map}catch(jye){}try{p$=Set}catch(jye){}function b$(e,t,n){if(!e||"object"!=typeof e||"function"==typeof e)return e;if(e.nodeType&&"cloneNode"in e)return e.cloneNode(!0);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);if(Array.isArray(e))return e.map(y$);if(u$&&e instanceof u$)return new Map(Array.from(e.entries()));if(p$&&e instanceof p$)return new Set(Array.from(e.values()));if(e instanceof Object){t.push(e);var r=Object.create(e);for(var i in n.push(r),e){var a=t.findIndex(function(t){return t===e[i]});r[i]=a>-1?n[a]:b$(e[i],t,n)}return r}return e}function y$(e){return b$(e,[],[])}const w$=Object.prototype.toString,x$=Error.prototype.toString,E$=RegExp.prototype.toString,k$="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",C$=/^Symbol\((.*)\)(.*)$/;function S$(e,t=!1){if(null==e||!0===e||!1===e)return""+e;const n=typeof e;if("number"===n)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===n)return t?`"${e}"`:e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return k$.call(e).replace(C$,"Symbol($1)");const r=w$.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+x$.call(e)+"]":"RegExp"===r?E$.call(e):null}function M$(e,t){let n=S$(e,t);return null!==n?n:JSON.stringify(e,function(e,n){let r=S$(this[e],t);return null!==r?r:n},2)}let A$={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{let i=null!=r&&r!==n,a=`${e} must be a \`${t}\` type, but the final value was: \`${M$(n,!0)}\``+(i?` (cast from the value \`${M$(r,!0)}\`).`:".");return null===n&&(a+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),a},defined:"${path} must be defined"},_$={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},O$={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},N$={noUnknown:"${path} field has unspecified keys: ${unknown}"};Object.assign(Object.create(null),{mixed:A$,string:_$,number:{min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},date:O$,object:N$,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:{isValue:"${path} field must be ${value}"}});var Z$=Object.prototype.hasOwnProperty;var D$=function(e,t){return null!=e&&Z$.call(e,t)},I$=Array.isArray,H$="object"==typeof N&&N&&N.Object===Object&&N,T$=H$,L$="object"==typeof self&&self&&self.Object===Object&&self,P$=T$||L$||Function("return this")(),B$=P$.Symbol,V$=B$,z$=Object.prototype,j$=z$.hasOwnProperty,R$=z$.toString,W$=V$?V$.toStringTag:void 0;var F$=function(e){var t=j$.call(e,W$),n=e[W$];try{e[W$]=void 0;var r=!0}catch(e){}var i=R$.call(e);return r&&(t?e[W$]=n:delete e[W$]),i},q$=Object.prototype.toString;var Y$=F$,U$=function(e){return q$.call(e)},G$=B$?B$.toStringTag:void 0;var X$=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":G$&&G$ in Object(e)?Y$(e):U$(e)};var J$=function(e){return null!=e&&"object"==typeof e},K$=X$,Q$=J$;var $$=function(e){return"symbol"==typeof e||Q$(e)&&"[object Symbol]"==K$(e)},e0=I$,t0=$$,n0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r0=/^\w*$/;var i0=function(e,t){if(e0(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!t0(e))||(r0.test(e)||!n0.test(e)||null!=t&&e in Object(t))};var a0=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},o0=X$,l0=a0;var s0=function(e){if(!l0(e))return!1;var t=o0(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},c0=P$["__core-js_shared__"],d0=function(){var e=/[^.]+$/.exec(c0&&c0.keys&&c0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var h0=function(e){return!!d0&&d0 in e},u0=Function.prototype.toString;var p0=function(e){if(null!=e){try{return u0.call(e)}catch(e){}try{return e+""}catch(e){}}return""},f0=s0,m0=h0,v0=a0,g0=p0,b0=/^\[object .+?Constructor\]$/,y0=Function.prototype,w0=Object.prototype,x0=y0.toString,E0=w0.hasOwnProperty,k0=RegExp("^"+x0.call(E0).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var C0=function(e,t){return null==e?void 0:e[t]},S0=function(e){return!(!v0(e)||m0(e))&&(f0(e)?k0:b0).test(g0(e))},M0=C0;var A0=function(e,t){var n=M0(e,t);return S0(n)?n:void 0},_0=A0(Object,"create"),O0=_0;var N0=function(){this.__data__=O0?O0(null):{},this.size=0};var Z0=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},D0=_0,I0=Object.prototype.hasOwnProperty;var H0=function(e){var t=this.__data__;if(D0){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return I0.call(t,e)?t[e]:void 0},T0=_0,L0=Object.prototype.hasOwnProperty;var P0=_0;var B0=N0,V0=Z0,z0=H0,j0=function(e){var t=this.__data__;return T0?void 0!==t[e]:L0.call(t,e)},R0=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=P0&&void 0===t?"__lodash_hash_undefined__":t,this};function W0(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}W0.prototype.clear=B0,W0.prototype.delete=V0,W0.prototype.get=z0,W0.prototype.has=j0,W0.prototype.set=R0;var F0=W0;var q0=function(){this.__data__=[],this.size=0};var Y0=function(e,t){return e===t||e!=e&&t!=t},U0=Y0;var G0=function(e,t){for(var n=e.length;n--;)if(U0(e[n][0],t))return n;return-1},X0=G0,J0=Array.prototype.splice;var K0=function(e){var t=this.__data__,n=X0(t,e);return!(n<0)&&(n==t.length-1?t.pop():J0.call(t,n,1),--this.size,!0)},Q0=G0;var $0=function(e){var t=this.__data__,n=Q0(t,e);return n<0?void 0:t[n][1]},e1=G0;var t1=G0;var n1=function(e,t){var n=this.__data__,r=t1(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},r1=q0,i1=K0,a1=$0,o1=function(e){return e1(this.__data__,e)>-1},l1=n1;function s1(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s1.prototype.clear=r1,s1.prototype.delete=i1,s1.prototype.get=a1,s1.prototype.has=o1,s1.prototype.set=l1;var c1=s1,d1=A0(P$,"Map"),h1=F0,u1=c1,p1=d1;var f1=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},m1=f1;var v1=function(e,t){var n=e.__data__;return m1(t)?n["string"==typeof t?"string":"hash"]:n.map},g1=v1;var b1=v1;var y1=v1;var w1=v1;var x1=function(){this.size=0,this.__data__={hash:new h1,map:new(p1||u1),string:new h1}},E1=function(e){var t=g1(this,e).delete(e);return this.size-=t?1:0,t},k1=function(e){return b1(this,e).get(e)},C1=function(e){return y1(this,e).has(e)},S1=function(e,t){var n=w1(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function M1(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}M1.prototype.clear=x1,M1.prototype.delete=E1,M1.prototype.get=k1,M1.prototype.has=C1,M1.prototype.set=S1;var A1=M1,_1=A1;function O1(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(O1.Cache||_1),n}O1.Cache=_1;var N1=O1;var Z1=function(e){var t=N1(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t},D1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,I1=/\\(\\)?/g,H1=Z1(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(D1,function(e,n,r,i){t.push(r?i.replace(I1,"$1"):n||e)}),t}),T1=H1;var L1=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i},P1=L1,B1=I$,V1=$$,z1=B$?B$.prototype:void 0,j1=z1?z1.toString:void 0;var R1=function e(t){if("string"==typeof t)return t;if(B1(t))return P1(t,e)+"";if(V1(t))return j1?j1.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},W1=R1;var F1=function(e){return null==e?"":W1(e)},q1=I$,Y1=i0,U1=T1,G1=F1;var X1=function(e,t){return q1(e)?e:Y1(e,t)?[e]:U1(G1(e))},J1=X$,K1=J$;var Q1=function(e){return K1(e)&&"[object Arguments]"==J1(e)},$1=J$,e2=Object.prototype,t2=e2.hasOwnProperty,n2=e2.propertyIsEnumerable,r2=Q1(function(){return arguments}())?Q1:function(e){return $1(e)&&t2.call(e,"callee")&&!n2.call(e,"callee")},i2=/^(?:0|[1-9]\d*)$/;var a2=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&i2.test(e))&&e>-1&&e%1==0&&e<t};var o2=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},l2=$$;var s2=function(e){if("string"==typeof e||l2(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},c2=X1,d2=r2,h2=I$,u2=a2,p2=o2,f2=s2;var m2=function(e,t,n){for(var r=-1,i=(t=c2(t,e)).length,a=!1;++r<i;){var o=f2(t[r]);if(!(a=null!=e&&n(e,o)))break;e=e[o]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&p2(i)&&u2(o,i)&&(h2(e)||d2(e))},v2=D$,g2=m2;var b2=function(e,t){return null!=e&&g2(e,t,v2)};const y2=e=>e&&e.__isYupSchema__;class w2{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,"function"==typeof t)return void(this.fn=t);if(!b2(t,"is"))throw new TypeError("`is:` is required for `when()` conditions");if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:r,otherwise:i}=t,a="function"==typeof n?n:(...e)=>e.every(e=>e===n);this.fn=function(...e){let t=e.pop(),n=e.pop(),o=a(...e)?r:i;if(o)return"function"==typeof o?o(n):n.concat(o.resolve(t))}}resolve(e,t){let n=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),r=this.fn.apply(e,n.concat(e,t));if(void 0===r||r===e)return e;if(!y2(r))throw new TypeError("conditions must return a schema object");return r.resolve(t)}}function x2(e){return null==e?[]:[].concat(e)}function E2(){return E2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E2.apply(this,arguments)}let k2=/\$\{\s*(\w+)\s*\}/g;class C2 extends Error{static formatError(e,t){const n=t.label||t.path||"this";return n!==t.path&&(t=E2({},t,{path:n})),"string"==typeof e?e.replace(k2,(e,n)=>M$(t[n])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],x2(e).forEach(e=>{C2.isError(e)?(this.errors.push(...e.errors),this.inner=this.inner.concat(e.inner.length?e.inner:e)):this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,C2)}}function S2(e,t){let{endEarly:n,tests:r,args:i,value:a,errors:o,sort:l,path:s}=e,c=(e=>{let t=!1;return(...n)=>{t||(t=!0,e(...n))}})(t),d=r.length;const h=[];if(o=o||[],!d)return o.length?c(new C2(o,a,s)):c(null,a);for(let e=0;e<r.length;e++){(0,r[e])(i,function(e){if(e){if(!C2.isError(e))return c(e,a);if(n)return e.value=a,c(e,a);h.push(e)}if(--d<=0){if(h.length&&(l&&h.sort(l),o.length&&h.push(...o),o=h),o.length)return void c(new C2(o,a,s),a);c(null,a)}})}}var M2=A0,A2=function(){try{var e=M2(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var _2=function(e,t,n){"__proto__"==t&&A2?A2(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var O2=function(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),l=o.length;l--;){var s=o[e?l:++i];if(!1===n(a[s],s,a))break}return t}},N2=O2();var Z2=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},D2={exports:{}};var I2=function(){return!1};!function(e,t){var n=P$,r=I2,i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i?n.Buffer:void 0,l=(o?o.isBuffer:void 0)||r;e.exports=l}(D2,D2.exports);var H2=X$,T2=o2,L2=J$,P2={};P2["[object Float32Array]"]=P2["[object Float64Array]"]=P2["[object Int8Array]"]=P2["[object Int16Array]"]=P2["[object Int32Array]"]=P2["[object Uint8Array]"]=P2["[object Uint8ClampedArray]"]=P2["[object Uint16Array]"]=P2["[object Uint32Array]"]=!0,P2["[object Arguments]"]=P2["[object Array]"]=P2["[object ArrayBuffer]"]=P2["[object Boolean]"]=P2["[object DataView]"]=P2["[object Date]"]=P2["[object Error]"]=P2["[object Function]"]=P2["[object Map]"]=P2["[object Number]"]=P2["[object Object]"]=P2["[object RegExp]"]=P2["[object Set]"]=P2["[object String]"]=P2["[object WeakMap]"]=!1;var B2=function(e){return L2(e)&&T2(e.length)&&!!P2[H2(e)]};var V2=function(e){return function(t){return e(t)}},z2={exports:{}};!function(e,t){var n=H$,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,a=i&&i.exports===r&&n.process,o=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=o}(z2,z2.exports);var j2=B2,R2=V2,W2=z2.exports,F2=W2&&W2.isTypedArray,q2=F2?R2(F2):j2,Y2=Z2,U2=r2,G2=I$,X2=D2.exports,J2=a2,K2=q2,Q2=Object.prototype.hasOwnProperty;var $2=function(e,t){var n=G2(e),r=!n&&U2(e),i=!n&&!r&&X2(e),a=!n&&!r&&!i&&K2(e),o=n||r||i||a,l=o?Y2(e.length,String):[],s=l.length;for(var c in e)!t&&!Q2.call(e,c)||o&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||J2(c,s))||l.push(c);return l},e5=Object.prototype;var t5=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||e5)};var n5=function(e,t){return function(n){return e(t(n))}},r5=n5(Object.keys,Object),i5=t5,a5=r5,o5=Object.prototype.hasOwnProperty;var l5=function(e){if(!i5(e))return a5(e);var t=[];for(var n in Object(e))o5.call(e,n)&&"constructor"!=n&&t.push(n);return t},s5=s0,c5=o2;var d5=$2,h5=l5,u5=function(e){return null!=e&&c5(e.length)&&!s5(e)};var p5=function(e){return u5(e)?d5(e):h5(e)},f5=N2,m5=p5;var v5=function(e,t){return e&&f5(e,t,m5)},g5=c1;var b5=c1,y5=d1,w5=A1;var x5=c1,E5=function(){this.__data__=new g5,this.size=0},k5=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},C5=function(e){return this.__data__.get(e)},S5=function(e){return this.__data__.has(e)},M5=function(e,t){var n=this.__data__;if(n instanceof b5){var r=n.__data__;if(!y5||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new w5(r)}return n.set(e,t),this.size=n.size,this};function A5(e){var t=this.__data__=new x5(e);this.size=t.size}A5.prototype.clear=E5,A5.prototype.delete=k5,A5.prototype.get=C5,A5.prototype.has=S5,A5.prototype.set=M5;var _5=A5;var O5=A1,N5=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Z5=function(e){return this.__data__.has(e)};function D5(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new O5;++t<n;)this.add(e[t])}D5.prototype.add=D5.prototype.push=N5,D5.prototype.has=Z5;var I5=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var H5=function(e,t){return e.has(t)},T5=D5,L5=I5,P5=H5;var B5=function(e,t,n,r,i,a){var o=1&n,l=e.length,s=t.length;if(l!=s&&!(o&&s>l))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var h=-1,u=!0,p=2&n?new T5:void 0;for(a.set(e,t),a.set(t,e);++h<l;){var f=e[h],m=t[h];if(r)var v=o?r(m,f,h,t,e,a):r(f,m,h,e,t,a);if(void 0!==v){if(v)continue;u=!1;break}if(p){if(!L5(t,function(e,t){if(!P5(p,t)&&(f===e||i(f,e,n,r,a)))return p.push(t)})){u=!1;break}}else if(f!==m&&!i(f,m,n,r,a)){u=!1;break}}return a.delete(e),a.delete(t),u};var V5=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n};var z5=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n},j5=P$.Uint8Array,R5=Y0,W5=B5,F5=V5,q5=z5,Y5=B$?B$.prototype:void 0,U5=Y5?Y5.valueOf:void 0;var G5=function(e,t,n,r,i,a,o){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new j5(e),new j5(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return R5(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=F5;case"[object Set]":var s=1&r;if(l||(l=q5),e.size!=t.size&&!s)return!1;var c=o.get(e);if(c)return c==t;r|=2,o.set(e,t);var d=W5(l(e),l(t),r,i,a,o);return o.delete(e),d;case"[object Symbol]":if(U5)return U5.call(e)==U5.call(t)}return!1};var X5=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},J5=X5,K5=I$;var Q5=function(e,t,n){var r=t(e);return K5(e)?r:J5(r,n(e))};var $5=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a};var e3=$5,t3=function(){return[]},n3=Object.prototype.propertyIsEnumerable,r3=Object.getOwnPropertySymbols,i3=r3?function(e){return null==e?[]:(e=Object(e),e3(r3(e),function(t){return n3.call(e,t)}))}:t3,a3=Q5,o3=i3,l3=p5;var s3=function(e){return a3(e,l3,o3)},c3=s3,d3=Object.prototype.hasOwnProperty;var h3=function(e,t,n,r,i,a){var o=1&n,l=c3(e),s=l.length;if(s!=c3(t).length&&!o)return!1;for(var c=s;c--;){var d=l[c];if(!(o?d in t:d3.call(t,d)))return!1}var h=a.get(e),u=a.get(t);if(h&&u)return h==t&&u==e;var p=!0;a.set(e,t),a.set(t,e);for(var f=o;++c<s;){var m=e[d=l[c]],v=t[d];if(r)var g=o?r(v,m,d,t,e,a):r(m,v,d,e,t,a);if(!(void 0===g?m===v||i(m,v,n,r,a):g)){p=!1;break}f||(f="constructor"==d)}if(p&&!f){var b=e.constructor,y=t.constructor;b==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y||(p=!1)}return a.delete(e),a.delete(t),p},u3=A0(P$,"DataView"),p3=d1,f3=A0(P$,"Promise"),m3=A0(P$,"Set"),v3=A0(P$,"WeakMap"),g3=X$,b3=p0,y3="[object Map]",w3="[object Promise]",x3="[object Set]",E3="[object WeakMap]",k3="[object DataView]",C3=b3(u3),S3=b3(p3),M3=b3(f3),A3=b3(m3),_3=b3(v3),O3=g3;(u3&&O3(new u3(new ArrayBuffer(1)))!=k3||p3&&O3(new p3)!=y3||f3&&O3(f3.resolve())!=w3||m3&&O3(new m3)!=x3||v3&&O3(new v3)!=E3)&&(O3=function(e){var t=g3(e),n="[object Object]"==t?e.constructor:void 0,r=n?b3(n):"";if(r)switch(r){case C3:return k3;case S3:return y3;case M3:return w3;case A3:return x3;case _3:return E3}return t});var N3=_5,Z3=B5,D3=G5,I3=h3,H3=O3,T3=I$,L3=D2.exports,P3=q2,B3="[object Arguments]",V3="[object Array]",z3="[object Object]",j3=Object.prototype.hasOwnProperty;var R3=function(e,t,n,r,i,a){var o=T3(e),l=T3(t),s=o?V3:H3(e),c=l?V3:H3(t),d=(s=s==B3?z3:s)==z3,h=(c=c==B3?z3:c)==z3,u=s==c;if(u&&L3(e)){if(!L3(t))return!1;o=!0,d=!1}if(u&&!d)return a||(a=new N3),o||P3(e)?Z3(e,t,n,r,i,a):D3(e,t,s,n,r,i,a);if(!(1&n)){var p=d&&j3.call(e,"__wrapped__"),f=h&&j3.call(t,"__wrapped__");if(p||f){var m=p?e.value():e,v=f?t.value():t;return a||(a=new N3),i(m,v,n,r,a)}}return!!u&&(a||(a=new N3),I3(e,t,n,r,i,a))},W3=R3,F3=J$;var q3=function e(t,n,r,i,a){return t===n||(null==t||null==n||!F3(t)&&!F3(n)?t!=t&&n!=n:W3(t,n,r,i,e,a))},Y3=_5,U3=q3;var G3=function(e,t,n,r){var i=n.length,a=i,o=!r;if(null==e)return!a;for(e=Object(e);i--;){var l=n[i];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){var s=(l=n[i])[0],c=e[s],d=l[1];if(o&&l[2]){if(void 0===c&&!(s in e))return!1}else{var h=new Y3;if(r)var u=r(c,d,s,e,t,h);if(!(void 0===u?U3(d,c,3,r,h):u))return!1}}return!0},X3=a0;var J3=function(e){return e==e&&!X3(e)},K3=J3,Q3=p5;var $3=function(e){for(var t=Q3(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,K3(i)]}return t};var e4=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},t4=G3,n4=$3,r4=e4;var i4=function(e){var t=n4(e);return 1==t.length&&t[0][2]?r4(t[0][0],t[0][1]):function(n){return n===e||t4(n,e,t)}},a4=X1,o4=s2;var l4=function(e,t){for(var n=0,r=(t=a4(t,e)).length;null!=e&&n<r;)e=e[o4(t[n++])];return n&&n==r?e:void 0},s4=l4;var c4=function(e,t,n){var r=null==e?void 0:s4(e,t);return void 0===r?n:r};var d4=function(e,t){return null!=e&&t in Object(e)},h4=d4,u4=m2;var p4=function(e,t){return null!=e&&u4(e,t,h4)},f4=q3,m4=c4,v4=p4,g4=i0,b4=J3,y4=e4,w4=s2;var x4=function(e,t){return g4(e)&&b4(t)?y4(w4(e),t):function(n){var r=m4(n,e);return void 0===r&&r===t?v4(n,e):f4(t,r,3)}};var E4=function(e){return function(t){return null==t?void 0:t[e]}},k4=l4;var C4=function(e){return function(t){return k4(t,e)}},S4=E4,M4=C4,A4=i0,_4=s2;var O4=i4,N4=x4,Z4=function(e){return e},D4=I$,I4=function(e){return A4(e)?S4(_4(e)):M4(e)};var H4=function(e){return"function"==typeof e?e:null==e?Z4:"object"==typeof e?D4(e)?N4(e[0],e[1]):O4(e):I4(e)},T4=_2,L4=v5,P4=H4;var B4=function(e,t){var n={};return t=P4(t),L4(e,function(e,r,i){T4(n,r,t(e,r,i))}),n};function V4(e){this._maxSize=e,this.clear()}V4.prototype.clear=function(){this._size=0,this._values=Object.create(null)},V4.prototype.get=function(e){return this._values[e]},V4.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var z4=/[^.^\]^[]+|(?=\[\]|\.\.)/g,j4=/^\d+$/,R4=/^\d/,W4=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,F4=/^\s*(['"]?)(.*?)(\1)\s*$/,q4=new V4(512),Y4=new V4(512),U4=new V4(512),G4={Cache:V4,split:J4,normalizePath:X4,setter:function(e){var t=X4(e);return Y4.get(e)||Y4.set(e,function(e,n){for(var r=0,i=t.length,a=e;r<i-1;){var o=t[r];if("__proto__"===o||"constructor"===o||"prototype"===o)return e;a=a[t[r++]]}a[t[r]]=n})},getter:function(e,t){var n=X4(e);return U4.get(e)||U4.set(e,function(e){for(var r=0,i=n.length;r<i;){if(null==e&&t)return;e=e[n[r++]]}return e})},join:function(e){return e.reduce(function(e,t){return e+(K4(t)||j4.test(t)?"["+t+"]":(e?".":"")+t)},"")},forEach:function(e,t,n){!function(e,t,n){var r,i,a,o,l=e.length;for(i=0;i<l;i++)(r=e[i])&&(Q4(r)&&(r='"'+r+'"'),a=!(o=K4(r))&&/^\d+$/.test(r),t.call(n,r,o,a,i,e))}(Array.isArray(e)?e:J4(e),t,n)}};function X4(e){return q4.get(e)||q4.set(e,J4(e).map(function(e){return e.replace(F4,"$2")}))}function J4(e){return e.match(z4)||[""]}function K4(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function Q4(e){return!K4(e)&&(function(e){return e.match(R4)&&!e.match(j4)}(e)||function(e){return W4.test(e)}(e))}const $4="$",e7=".";class t7{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===$4,this.isValue=this.key[0]===e7,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?$4:this.isValue?e7:"";this.path=this.key.slice(n.length),this.getter=this.path&&G4.getter(this.path,!0),this.map=t.map}getValue(e,t,n){let r=this.isContext?n:this.isValue?e:t;return this.getter&&(r=this.getter(r||{})),this.map&&(r=this.map(r)),r}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}function n7(){return n7=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n7.apply(this,arguments)}function r7(e){function t(t,n){let{value:r,path:i="",label:a,options:o,originalValue:l,sync:s}=t,c=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["value","path","label","options","originalValue","sync"]);const{name:d,test:h,params:u,message:p}=e;let{parent:f,context:m}=o;function v(e){return t7.isRef(e)?e.getValue(r,f,m):e}function g(e={}){const t=B4(n7({value:r,originalValue:l,label:a,path:e.path||i},u,e.params),v),n=new C2(C2.formatError(e.message||p,t),r,t.path,e.type||d);return n.params=t,n}let b,y=n7({path:i,parent:f,type:d,createError:g,resolve:v,options:o,originalValue:l},c);if(s){try{var w;if(b=h.call(y,r,y),"function"==typeof(null==(w=b)?void 0:w.then))throw new Error(`Validation test of type: "${y.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(e){return void n(e)}C2.isError(b)?n(b):b?n(null,b):n(g())}else try{Promise.resolve(h.call(y,r,y)).then(e=>{C2.isError(e)?n(e):e?n(null,e):n(g())}).catch(n)}catch(e){n(e)}}return t.OPTIONS=e,t}t7.prototype.__isYupRef=!0;function i7(e,t,n,r=n){let i,a,o;return t?(G4.forEach(t,(l,s,c)=>{let d=s?(e=>e.substr(0,e.length-1).substr(1))(l):l;if((e=e.resolve({context:r,parent:i,value:n})).innerType){let r=c?parseInt(d,10):0;if(n&&r>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${l}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[r],e=e.innerType}if(!c){if(!e.fields||!e.fields[d])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e._type}")`);i=n,n=n&&n[d],e=e.fields[d]}a=d,o=s?"["+l+"]":"."+l}),{schema:e,parent:i,parentPath:a}):{parent:i,parentPath:t,schema:e}}class a7{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){const e=[];for(const t of this.list)e.push(t);for(const[,t]of this.refs)e.push(t.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(e){return this.toArray().reduce((t,n)=>t.concat(t7.isRef(n)?e(n):n),[])}add(e){t7.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){t7.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){const e=new a7;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,t){const n=this.clone();return e.list.forEach(e=>n.add(e)),e.refs.forEach(e=>n.add(e)),t.list.forEach(e=>n.delete(e)),t.refs.forEach(e=>n.delete(e)),n}}function o7(){return o7=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o7.apply(this,arguments)}class l7{constructor(e){this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this._typeError=void 0,this._whitelist=new a7,this._blacklist=new a7,this.exclusiveTests=Object.create(null),this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(A$.notType)}),this.type=(null==e?void 0:e.type)||"mixed",this.spec=o7({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},null==e?void 0:e.spec)}get _type(){return this.type}_typeCheck(e){return!0}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeError=this._typeError,t._whitelistError=this._whitelistError,t._blacklistError=this._blacklistError,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.exclusiveTests=o7({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=y$(o7({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,n=e.clone();const r=o7({},t.spec,n.spec);return n.spec=r,n._typeError||(n._typeError=t._typeError),n._whitelistError||(n._whitelistError=t._whitelistError),n._blacklistError||(n._blacklistError=t._blacklistError),n._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),n._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),n.tests=t.tests,n.exclusiveTests=t.exclusiveTests,n.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),n.transforms=[...t.transforms,...n.transforms],n}isType(e){return!(!this.spec.nullable||null!==e)||this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;t=t.clone(),t.conditions=[],t=n.reduce((t,n)=>n.resolve(t,e),t),t=t.resolve(e)}return t}cast(e,t={}){let n=this.resolve(o7({value:e},t)),r=n._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==n.isType(r)){let i=M$(e),a=M$(r);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${n._type}". \n\nattempted value: ${i} \n`+(a!==i?`result of cast: ${a}`:""))}return r}_cast(e,t){let n=void 0===e?e:this.transforms.reduce((t,n)=>n.call(this,t,e,this),e);return void 0===n&&(n=this.getDefault()),n}_validate(e,t={},n){let{sync:r,path:i,from:a=[],originalValue:o=e,strict:l=this.spec.strict,abortEarly:s=this.spec.abortEarly}=t,c=e;l||(c=this._cast(c,o7({assert:!1},t)));let d={value:c,path:i,options:t,originalValue:o,schema:this,label:this.spec.label,sync:r,from:a},h=[];this._typeError&&h.push(this._typeError);let u=[];this._whitelistError&&u.push(this._whitelistError),this._blacklistError&&u.push(this._blacklistError),S2({args:d,value:c,path:i,sync:r,tests:h,endEarly:s},e=>{e?n(e,c):S2({tests:this.tests.concat(u),args:d,path:i,sync:r,value:c,endEarly:s},n)})}validate(e,t,n){let r=this.resolve(o7({},t,{value:e}));return"function"==typeof n?r._validate(e,t,n):new Promise((n,i)=>r._validate(e,t,(e,t)=>{e?i(e):n(t)}))}validateSync(e,t){let n;return this.resolve(o7({},t,{value:e}))._validate(e,o7({},t,{sync:!0}),(e,t)=>{if(e)throw e;n=t}),n}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(C2.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(C2.isError(e))return!1;throw e}}_getDefault(){let e=this.spec.default;return null==e?e:"function"==typeof e?e.call(this):y$(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){if(0===arguments.length)return this._getDefault();return this.clone({default:e})}strict(e=!0){let t=this.clone();return t.spec.strict=e,t}_isPresent(e){return null!=e}defined(e=A$.defined){return this.test({message:e,name:"defined",exclusive:!0,test:e=>void 0!==e})}required(e=A$.required){return this.clone({presence:"required"}).withMutation(t=>t.test({message:e,name:"required",exclusive:!0,test(e){return this.schema._isPresent(e)}}))}notRequired(){let e=this.clone({presence:"optional"});return e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e}nullable(e=!0){return this.clone({nullable:!1!==e})}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]},void 0===t.message&&(t.message=A$.default),"function"!=typeof t.test)throw new TypeError("`test` is a required parameters");let n=this.clone(),r=r7(t),i=t.exclusive||t.name&&!0===n.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(n.exclusiveTests[t.name]=!!t.exclusive),n.tests=n.tests.filter(e=>{if(e.OPTIONS.name===t.name){if(i)return!1;if(e.OPTIONS.test===r.OPTIONS.test)return!1}return!0}),n.tests.push(r),n}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let n=this.clone(),r=x2(e).map(e=>new t7(e));return r.forEach(e=>{e.isSibling&&n.deps.push(e.key)}),n.conditions.push(new w2(r,t)),n}typeError(e){let t=this.clone();return t._typeError=r7({message:e,name:"typeError",test(e){return!(void 0!==e&&!this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t}oneOf(e,t=A$.oneOf){let n=this.clone();return e.forEach(e=>{n._whitelist.add(e),n._blacklist.delete(e)}),n._whitelistError=r7({message:t,name:"oneOf",test(e){if(void 0===e)return!0;let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}notOneOf(e,t=A$.notOneOf){let n=this.clone();return e.forEach(e=>{n._blacklist.add(e),n._whitelist.delete(e)}),n._blacklistError=r7({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(){const e=this.clone(),{label:t,meta:n}=e.spec,r={meta:n,label:t,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map(e=>({name:e.OPTIONS.name,params:e.OPTIONS.params})).filter((e,t,n)=>n.findIndex(t=>t.name===e.name)===t)};return r}}l7.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])l7.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:a,schema:o}=i7(this,t,n,r.context);return o[e](i&&i[a],o7({},r,{parent:i,path:t}))};for(const e of["equals","is"])l7.prototype[e]=l7.prototype.oneOf;for(const e of["not","nope"])l7.prototype[e]=l7.prototype.notOneOf;l7.prototype.optional=l7.prototype.notRequired;l7.prototype;const s7=e=>null==e;let c7=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,d7=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,h7=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,u7=e=>s7(e)||e===e.trim(),p7={}.toString();function f7(){return new m7}class m7 extends l7{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(e){if(this.isType(e))return e;if(Array.isArray(e))return e;const t=null!=e&&e.toString?e.toString():e;return t===p7?e:t})})}_typeCheck(e){return e instanceof String&&(e=e.valueOf()),"string"==typeof e}_isPresent(e){return super._isPresent(e)&&!!e.length}length(e,t=_$.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return s7(t)||t.length===this.resolve(e)}})}min(e,t=_$.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return s7(t)||t.length>=this.resolve(e)}})}max(e,t=_$.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},test(t){return s7(t)||t.length<=this.resolve(e)}})}matches(e,t){let n,r,i=!1;return t&&("object"==typeof t?({excludeEmptyString:i=!1,message:n,name:r}=t):n=t),this.test({name:r||"matches",message:n||_$.matches,params:{regex:e},test:t=>s7(t)||""===t&&i||-1!==t.search(e)})}email(e=_$.email){return this.matches(c7,{name:"email",message:e,excludeEmptyString:!0})}url(e=_$.url){return this.matches(d7,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=_$.uuid){return this.matches(h7,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=_$.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:u7})}lowercase(e=_$.lowercase){return this.transform(e=>s7(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>s7(e)||e===e.toLowerCase()})}uppercase(e=_$.uppercase){return this.transform(e=>s7(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>s7(e)||e===e.toUpperCase()})}}f7.prototype=m7.prototype;var v7=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let g7=new Date("");class b7 extends l7{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(e){return this.isType(e)?e:(e=function(e){var t,n,r=[1,4,5,6,7,10,11],i=0;if(n=v7.exec(e)){for(var a,o=0;a=r[o];++o)n[a]=+n[a]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,void 0!==n[8]&&""!==n[8]||void 0!==n[9]&&""!==n[9]?("Z"!==n[8]&&void 0!==n[9]&&(i=60*n[10]+n[11],"+"===n[9]&&(i=0-i)),t=Date.UTC(n[1],n[2],n[3],n[4],n[5]+i,n[6],n[7])):t=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7])}else t=Date.parse?Date.parse(e):NaN;return t}(e),isNaN(e)?g7:new Date(e))})})}_typeCheck(e){return(e=>"[object Date]"===Object.prototype.toString.call(e))(e)&&!isNaN(e.getTime())}prepareParam(e,t){let n;if(t7.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);n=r}return n}min(e,t=O$.min){let n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(e){return s7(e)||e>=this.resolve(n)}})}max(e,t=O$.max){let n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(e){return s7(e)||e<=this.resolve(n)}})}}b7.INVALID_DATE=g7,b7.prototype;var y7=function(e,t,n,r){var i=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n};var w7=function(e){return function(t){return null==e?void 0:e[t]}},x7=w7({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),E7=F1,k7=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,C7=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var S7=function(e){return(e=E7(e))&&e.replace(k7,x7).replace(C7,"")},M7=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var A7=function(e){return e.match(M7)||[]},_7=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var O7=function(e){return _7.test(e)},N7="\\ud800-\\udfff",Z7="\\u2700-\\u27bf",D7="a-z\\xdf-\\xf6\\xf8-\\xff",I7="A-Z\\xc0-\\xd6\\xd8-\\xde",H7="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",T7="["+H7+"]",L7="\\d+",P7="["+Z7+"]",B7="["+D7+"]",V7="[^"+N7+H7+L7+Z7+D7+I7+"]",z7="(?:\\ud83c[\\udde6-\\uddff]){2}",j7="[\\ud800-\\udbff][\\udc00-\\udfff]",R7="["+I7+"]",W7="(?:"+B7+"|"+V7+")",F7="(?:"+R7+"|"+V7+")",q7="(?:['’](?:d|ll|m|re|s|t|ve))?",Y7="(?:['’](?:D|LL|M|RE|S|T|VE))?",U7="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",G7="[\\ufe0e\\ufe0f]?",X7=G7+U7+("(?:\\u200d(?:"+["[^"+N7+"]",z7,j7].join("|")+")"+G7+U7+")*"),J7="(?:"+[P7,z7,j7].join("|")+")"+X7,K7=RegExp([R7+"?"+B7+"+"+q7+"(?="+[T7,R7,"$"].join("|")+")",F7+"+"+Y7+"(?="+[T7,R7+W7,"$"].join("|")+")",R7+"?"+W7+"+"+q7,R7+"+"+Y7,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",L7,J7].join("|"),"g");var Q7=function(e){return e.match(K7)||[]},$7=A7,e6=O7,t6=F1,n6=Q7;var r6=function(e,t,n){return e=t6(e),void 0===(t=n?void 0:t)?e6(e)?n6(e):$7(e):e.match(t)||[]},i6=y7,a6=S7,o6=r6,l6=RegExp("['’]","g");var s6=function(e){return function(t){return i6(o6(a6(t).replace(l6,"")),e,"")}},c6=s6(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),d6=c6;var h6=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a},u6=h6;var p6=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:u6(e,t,n)},f6=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var m6=function(e){return f6.test(e)};var v6=function(e){return e.split("")},g6="\\ud800-\\udfff",b6="["+g6+"]",y6="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",w6="\\ud83c[\\udffb-\\udfff]",x6="[^"+g6+"]",E6="(?:\\ud83c[\\udde6-\\uddff]){2}",k6="[\\ud800-\\udbff][\\udc00-\\udfff]",C6="(?:"+y6+"|"+w6+")"+"?",S6="[\\ufe0e\\ufe0f]?",M6=S6+C6+("(?:\\u200d(?:"+[x6,E6,k6].join("|")+")"+S6+C6+")*"),A6="(?:"+[x6+y6+"?",y6,E6,k6,b6].join("|")+")",_6=RegExp(w6+"(?="+w6+")|"+A6+M6,"g");var O6=function(e){return e.match(_6)||[]},N6=v6,Z6=m6,D6=O6;var I6=function(e){return Z6(e)?D6(e):N6(e)},H6=p6,T6=m6,L6=I6,P6=F1;var B6=function(e){return function(t){t=P6(t);var n=T6(t)?L6(t):void 0,r=n?n[0]:t.charAt(0),i=n?H6(n,1).join(""):t.slice(1);return r[e]()+i}},V6=B6("toUpperCase"),z6=F1,j6=V6;var R6=function(e){return j6(z6(e).toLowerCase())},W6=R6,F6=s6(function(e,t,n){return t=t.toLowerCase(),e+(n?W6(t):t)}),q6=F6,Y6=_2,U6=v5,G6=H4;var X6=function(e,t){var n={};return t=G6(t),U6(e,function(e,r,i){Y6(n,t(e,r,i),e)}),n},J6={exports:{}};function K6(e,t){var n=e.length,r=new Array(n),i={},a=n,o=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var i=e[n];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}(t),l=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}(e);for(t.forEach(function(e){if(!l.has(e[0])||!l.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});a--;)i[a]||s(e[a],a,new Set);return r;function s(e,t,a){if(a.has(e)){var c;try{c=", node was:"+JSON.stringify(e)}catch(e){c=""}throw new Error("Cyclic dependency"+c)}if(!l.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!i[t]){i[t]=!0;var d=o.get(e)||new Set;if(t=(d=Array.from(d)).length){a.add(e);do{var h=d[--t];s(h,l.get(h),a)}while(t);a.delete(e)}r[--n]=e}}}J6.exports=function(e){return K6(function(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var i=e[n];t.add(i[0]),t.add(i[1])}return Array.from(t)}(e),e)},J6.exports.array=K6;var Q6=J6.exports;function $6(e,t){let n=1/0;return e.some((e,r)=>{var i;if(-1!==(null==(i=t.path)?void 0:i.indexOf(e)))return n=r,!0}),n}function e8(e){return(t,n)=>$6(e,t)-$6(e,n)}function t8(){return t8=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t8.apply(this,arguments)}let n8=e=>"[object Object]"===Object.prototype.toString.call(e);const r8=e8([]);class i8 extends l7{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=r8,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null}),e&&this.shape(e)})}_typeCheck(e){return n8(e)||"function"==typeof e}_cast(e,t={}){var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault();if(!this._typeCheck(r))return r;let i=this.fields,a=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,o=this._nodes.concat(Object.keys(r).filter(e=>-1===this._nodes.indexOf(e))),l={},s=t8({},t,{parent:l,__validating:t.__validating||!1}),c=!1;for(const e of o){let n=i[e],o=b2(r,e);if(n){let i,a=r[e];s.path=(t.path?`${t.path}.`:"")+e,n=n.resolve({value:a,context:t.context,parent:l});let o="spec"in n?n.spec:void 0,d=null==o?void 0:o.strict;if(null==o?void 0:o.strip){c=c||e in r;continue}i=t.__validating&&d?r[e]:n.cast(r[e],s),void 0!==i&&(l[e]=i)}else o&&!a&&(l[e]=r[e]);l[e]!==r[e]&&(c=!0)}return c?l:r}_validate(e,t={},n){let r=[],{sync:i,from:a=[],originalValue:o=e,abortEarly:l=this.spec.abortEarly,recursive:s=this.spec.recursive}=t;a=[{schema:this,value:o},...a],t.__validating=!0,t.originalValue=o,t.from=a,super._validate(e,t,(e,c)=>{if(e){if(!C2.isError(e)||l)return void n(e,c);r.push(e)}if(!s||!n8(c))return void n(r[0]||null,c);o=o||c;let d=this._nodes.map(e=>(n,r)=>{let i=-1===e.indexOf(".")?(t.path?`${t.path}.`:"")+e:`${t.path||""}["${e}"]`,l=this.fields[e];l&&"validate"in l?l.validate(c[e],t8({},t,{path:i,from:a,strict:!0,parent:c,originalValue:o[e]}),r):r(null)});S2({sync:i,tests:d,value:c,errors:r,endEarly:l,sort:this._sortErrors,path:t.path},n)})}clone(e){const t=super.clone(e);return t.fields=t8({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[e,t]of Object.entries(this.fields)){const r=n[e];void 0===r?n[e]=t:r instanceof l7&&t instanceof l7&&(n[e]=t.concat(r))}return t.withMutation(()=>t.shape(n,this._excludedEdges))}getDefaultFromShape(){let e={};return this._nodes.forEach(t=>{const n=this.fields[t];e[t]="default"in n?n.getDefault():void 0}),e}_getDefault(){return"default"in this.spec?super._getDefault():this._nodes.length?this.getDefaultFromShape():void 0}shape(e,t=[]){let n=this.clone(),r=Object.assign(n.fields,e);return n.fields=r,n._sortErrors=e8(Object.keys(r)),t.length&&(Array.isArray(t[0])||(t=[t]),n._excludedEdges=[...n._excludedEdges,...t]),n._nodes=function(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([e,t])=>`${e}-${t}`));function a(e,t){let a=G4.split(e)[0];r.add(a),i.has(`${t}-${a}`)||n.push([t,a])}for(const t in e)if(b2(e,t)){let n=e[t];r.add(t),t7.isRef(n)&&n.isSibling?a(n.path,t):y2(n)&&"deps"in n&&n.deps.forEach(e=>a(e,t))}return Q6.array(Array.from(r),n).reverse()}(r,n._excludedEdges),n}pick(e){const t={};for(const n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.clone().withMutation(e=>(e.fields={},e.shape(t)))}omit(e){const t=this.clone(),n=t.fields;t.fields={};for(const t of e)delete n[t];return t.withMutation(()=>t.shape(n))}from(e,t,n){let r=G4.getter(e,!0);return this.transform(i=>{if(null==i)return i;let a=i;return b2(i,e)&&(a=t8({},i),n||delete a[e],a[t]=r(i)),a})}noUnknown(e=!0,t=N$.noUnknown){"string"==typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;const n=function(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(e=>-1===n.indexOf(e))}(this.schema,t);return!e||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(e=!0,t=N$.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>t&&X6(t,(t,n)=>e(n)))}camelCase(){return this.transformKeys(q6)}snakeCase(){return this.transformKeys(d6)}constantCase(){return this.transformKeys(e=>d6(e).toUpperCase())}describe(){let e=super.describe();return e.fields=B4(this.fields,e=>e.describe()),e}}function a8(e){return new i8(e)}
|
|
554
|
+
`,HK=t=>{const{layout:n,active:i,selected:a,styles:o,pixelRate:l,pageSetting:s,onClick:c,itemClick:d,onLayoutChange:h,pageSize:u}=t,p=e.useRef(null),f=30,[m,v]=e.useState(!1),[g,b]=e.useState(!1),[y,w]=e.useState(null),[x,E]=e.useState(void 0);return SV(p,()=>{v(!1)}),e.useEffect(()=>{const e=n.signature?.setting?.detail?.map((e,t)=>({x:t*(f/(n.signature?.setting?.detail?.length??0)),y:0,w:f/(n.signature?.setting?.detail?.length??0),h:1,minW:1,minH:1,maxW:12,i:e.code}));E({lg:e,md:e,sm:e,xs:e,xxs:e})},[n.signature?.setting?.detail]),r.jsx(e.Fragment,{children:r.jsx("div",{ref:p,onClick:()=>{v(!0),c?.()},style:{backgroundColor:a?"#eb461912":void 0,borderColor:i||a?"#eb4619":"transparent",borderWidth:1,borderStyle:i||a?"dashed":"solid",minHeight:23},children:x&&n.signature?.setting?.detail&&(n.signature?.setting?.detail?.length??0)>0&&r.jsx(NY.exports.Responsive,{className:"layout grid-layout",style:{},width:u.width*l-(s.marginLeft+s.marginRight)*l,layouts:x,maxRows:1,rowHeight:161,isDraggable:m&&a,isResizable:!1,autoSize:!0,breakpoints:{lg:1200,md:992,sm:768,xs:640,xxs:0},cols:{lg:f,md:f,sm:f,xs:f,xxs:f},margin:[2,2],compactType:"horizontal",containerPadding:[0,0],verticalCompact:!0,onDragStart:()=>{b(!0),v(!0)},onDragStop:e=>{b(!1),h?.(e)},children:n.signature?.setting?.detail?.map(e=>r.jsx("div",{id:e.code,onClick:e=>{e.preventDefault()},children:r.jsxs(IK,{className:_v("",{active:a,isDrag:g}),onClick:()=>{d?.(e),w(e)},style:{display:"flex",flexDirection:"column",textAlign:"center",justifyContent:"space-between",height:"100%"},children:[r.jsxs("div",{children:[r.jsx(Hq,{color:n.signature?.style?.color??o?.color??"#000",fontSize:UW(n.signature?.style?.fontSize??o?.fontSize??11),underline:n.signature?.style?.underline??o?.underline??!1,bold:n.signature?.style?.bold??o?.bold??!1,fontFamily:n.signature?.style?.fontFamily??o?.fontFamily??"Times New Roman",italic:n.signature?.style?.italic??o?.italic??!1,textAlign:"center",isActive:a&&y&&y?.code===e.code,children:e.title}),r.jsx("br",{}),r.jsx(Hq,{color:n.signature?.style?.color??o?.color??"#000",fontSize:UW(o?.fontSize??11),underline:!1,bold:!1,fontFamily:o?.fontFamily,italic:!0,textAlign:"center",children:"(Ký, họ tên)"})]}),r.jsx("div",{children:r.jsx("p",{style:{margin:0,textAlign:"center"}})})]})},e.code))})})})},TK=e.memo(t=>{const{data:n,sectionData:i,width:a,typeEdit:o,pageSize:l,rows:s,content:c,active:d,selected:h,styles:u,currentItem:p,pageSetting:f,pixelRate:m,onClick:v,itemClick:g,formatNumber:b,onLayoutChange:y,organization:w}=t,x=e.useRef(null),[E,k]=e.useState(!1),[C,S]=e.useState(void 0),[M,A]=e.useState(!1),[_,O]=e.useState(null);SV(x,()=>{k(!1)}),e.useEffect(()=>{if(p){const e=c?.flat().find(e=>e.id===p.id);e&&O(e)}},[p]),e.useEffect(()=>{const e=(e=>{const t=[];let n=0;return e.forEach(e=>{let r=0;e.forEach(e=>{t.push({w:e.width?e.width:12,h:e.rows??1,max:12,x:r,y:n,i:e.id}),r+=e.width}),n++}),t})(c??[]);S({lg:e,md:e,sm:e,xs:e,xxs:e})},[c]);const N=e=>{if("image"===e.type)return Z(e.imageSetting);if((!e.type||"data"===e.type)&&e.field){const t=n[e.field??""];if("number"===e.dataType){const n={thousandSeparator:vA(b?.thousandSeparator??".",b?.decimalSeparator??","),decimalSeparator:gA(b?.thousandSeparator??".",b?.decimalSeparator??","),prefix:b?.prefixNegative,suffix:b?.suffixNegative,decimalScale:e.fraction??2,fixedDecimalScale:!!e.fraction};return DW(t)?sY(t?.toString(),n):0}if("date"===e.dataType){if(!t)return"";const n=e.format||"dd/MM/yyyy";return OW(t,n)}return t?.toString()||""}if("template"===e.type&&(e.children?.length??0)>0)return e.children?.map((e,t)=>r.jsxs("span",{children:[0!==t&&" "," ",N(e)]},`${e.id}-${t}`));switch(e.type){case"currentDate":return OW(new Date,e.format||"dd/MM/yyyy");case"companyName":return w?.name??"";case"companyAddress":return w?.address??"";default:return e.headerDisplay}},Z=e=>r.jsx("img",{src:e?.url??"",style:{height:e?.height??0,width:e?.width??0}});return r.jsx(e.Fragment,{children:r.jsx(Lq,{style:{minHeight:"section"===o?23*s:"unset"},className:"h-100",children:r.jsx("div",{ref:x,className:"h-100",onClick:()=>{k(!0),v?.()},children:C&&c&&c.flat().length>0?r.jsx(NY.exports.Responsive,{className:_v({[`${i.border??"none"}-border`]:i.border}),style:{minHeight:"100%",backgroundColor:h?"#eb461912":void 0,borderColor:d||h?"#eb4619 ":"transparent",borderWidth:1,borderStyle:d||h?"dashed":"solid"},width:(l.width*m-(f.marginLeft+f.marginRight)*m)*a/12-2,layouts:C,isDraggable:E&&h,isResizable:E&&h,rowHeight:23,margin:[0,0],containerPadding:[0,0],compactType:"vertical",autoSize:!0,verticalCompact:!0,breakpoints:{lg:1200,md:1200,sm:1200,xs:1200,xxs:0},cols:{lg:12,md:12,sm:12,xs:12,xxs:12},onDragStart:()=>{A(!0)},onResizeStop:e=>{VW(e,C.lg)||y(e)},onDragStop:e=>{A(!1),VW(e,C.lg)||y(e)},children:c?.flat().map(e=>r.jsx("div",{id:e.id,children:r.jsxs("div",{className:_v("grid-item h-100",{isDrag:M}),style:{textAlign:i.align},children:[((!e.type||"data"===e.type)&&e.field||"template"===e.type)&&(e.headerDisplay.length>0||e.headerText.length>0)&&r.jsx(Tq,{color:u?.color??"#000",fontSize:UW(u?.fontSize??11),underline:!1,bold:!1,fontFamily:u?.fontFamily??"Times New Roman",italic:!1,onClick:()=>{h&&(g?.(e),O(e))},children:e.headerDisplay?`${e.headerDisplay}:`:""}),r.jsx(Hq,{color:e.style?.color??u?.color??"#000",fontSize:UW(e.style?.fontSize??u?.fontSize??11),underline:e.style?.underline??u?.underline??!1,bold:e.style?.bold??u?.bold??!1,fontFamily:e.style?.fontFamily??u?.fontFamily??"Times New Roman",italic:e.style?.italic??u?.italic??!1,isActive:h&&_&&_?.id===e.id,textAlign:e.type&&"data"!==e.type&&i.align?i.align:"left",onClick:()=>{"section"===o&&(g?.(e),O(e))},style:{padding:e.type&&"data"!==e.type||!e.field?"":"0 5px"},children:N(e)})]})},e.id))}):r.jsx("div",{ref:x,onClick:()=>{k(!0)},className:"h-100",style:{height:"100%",backgroundColor:h?"#eb461912":void 0,borderColor:d||h?"#eb4619 ":"transparent",borderWidth:1,borderStyle:d||h?"dashed":"solid"}})})})})}),LK=t=>{const{t:n,pageSize:i,setting:a,layouts:o,setLayouts:l,setSetting:s,data:c,currentLayout:d,setCurrentLayout:h,onSetConfig:u,formatNumber:p,currentLayoutHover:f,currentItem:m,setCurrentLayoutHover:v,currentDimensions:g,organization:b}=t,y=37.7,w=e=>{u(d?.table?.[e])},x=e=>{const t=o.lg.filter(t=>t.i!==e.id);if(0===t.length){const e=AW();t.push({id:e,i:e,max:12,x:0,y:1,static:!0,h:1,w:12,type:"content",rows:1,children:[]})}const n=XW(zW(t),a.layout),r={...a,layout:n};s({...r});const i=FW(n??[]);l({lg:i,md:i,sm:i,xs:i,xxs:i})};return r.jsx(e.Fragment,{children:r.jsx(NY.exports.Responsive,{className:"layout grid-layout d-flex flex-wrap align-content-start",style:{minHeight:(i.height-a.pageSetting.marginTop-a.pageSetting.marginBottom)*y,zIndex:2,position:"relative"},width:i.width*y-(a.pageSetting.marginLeft+a.pageSetting.marginRight)*y,layouts:o,isDraggable:!0,isResizable:!0,rowHeight:23,margin:[0,(a.pageSetting?.spaceLayout??0)/2],compactType:"vertical",containerPadding:[0,0],verticalCompact:!0,autoSize:!1,breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:12,sm:12,xs:12,xxs:12},isBounded:!0,isDroppable:!0,onDrop:(e,t)=>((e,t)=>{const n=[...a.layout],r=AW(),i=o.lg.map(e=>({...e,y:e.y>=t.y?e.y+1:e.y})),c=zW(i.concat({...t,w:g.w,i:r})).sort((e,t)=>e[0].y-t[0].y),d=function(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];if(t.push(r),n>0){const i=r[0].y,a=e[n-1],o=i-(a[0].y+a[0].h);if(o>0)for(let e=0;e<o;e++)t.splice(n+e,0,[])}}return t}(c),h={id:r,i:r,width:12,w:12,type:g.type,rows:1,children:[]};"table"===g.type?h.table={columns:[],header:{},content:{},summary:{},fieldSums:[]}:"signature"===g.type&&(h.signature={setting:"",reportSigning:1,loginSigning:1,detail:[]});const u=[...n,[h]];l({lg:d.flat(),md:d.flat(),sm:d.flat(),xs:d.flat(),xxs:d.flat()});const p=XW(d,u),f={...a,layout:p};s(f)})(0,t),onDragStart:()=>{},onResizeStop:(e,t,n)=>{if(!VW(e,o.lg)){const t=e.map(e=>({...e,h:e.y===n.y?n.h:e.h}));l({lg:t,md:t,sm:t,xs:t,xxs:t})}},onDragStop:e=>{if(!VW(e,o.lg)){const t=zW(e).sort((e,t)=>e[0].y-t[0].y);l({lg:t.flat(),md:t.flat(),sm:t.flat(),xs:t.flat(),xxs:t.flat()}),s({...a,layout:XW(t,a.layout)})}},children:a?.layout.flat().map((e,t)=>"table"===e.type?r.jsxs("div",{id:`${t+1}`,className:_v("",{}),children:[r.jsx(DK,{typeEdit:"layout",layout:e,styles:a?.style,dataTable:c[e.table?.field??""]??[],onClick:()=>{h(e)},currentLayout:d,onSectionClick:w,formatNumber:p,currentItem:m,setCurrentItem:()=>{},t:n}),r.jsx("div",{className:_v("remove",{}),onClick:()=>x(e),children:r.jsx(Sv,{fontSize:14,color:"red"})})]},`${e.id}`):"signature"===e.type?r.jsxs("div",{id:`${t+1}`,children:[r.jsx(HK,{pixelRate:y,pageSetting:a.pageSetting,pageSize:i,layout:e,styles:a?.style,active:!0,onClick:()=>{h(e)},selected:!1}),r.jsx("div",{className:_v("remove",{}),onClick:()=>x(e),children:r.jsx(Sv,{fontSize:14,color:"red"})})]},e.id):r.jsxs("div",{id:e.id,children:[r.jsx(TK,{sectionData:e,typeEdit:"layout",width:e.width,pageSize:i,rows:e.rows,pageSetting:a.pageSetting,pixelRate:y,data:c,content:e.children,styles:a?.style,currentItem:m,formatNumber:p,onLayoutChange:()=>{},organization:b,active:!0,selected:!1,onClick:()=>{u({textAlign:e.align}),h(e)}}),r.jsx("div",{className:_v("remove",{}),onClick:()=>x(e),onMouseEnter:()=>{e.id!==f?.id&&v(e)},onMouseLeave:()=>{v(null)},children:r.jsx(Sv,{fontSize:14,color:"red"})})]},e.id))})})},PK=t=>{const{t:n,pageSize:i,setting:a,setSetting:o,data:l,currentLayout:s,setCurrentLayout:c,onSetConfig:d,formatNumber:h,currentItem:u,setCurrentItem:p,organization:f}=t,m=37.7,v=e=>{d(s?.table?.[e])},g=(e,t)=>{p(e),d(e?.style,t)};return r.jsx(e.Fragment,{children:r.jsx("div",{className:"layout grid-layout align-content-start",style:{minHeight:(i.height-a.pageSetting.marginTop-a.pageSetting.marginBottom)*m,zIndex:2,position:"relative"},children:a?.layout?.map((e,t)=>r.jsx(dp,{className:"m-0",style:{minHeight:23,paddingBottom:a.pageSetting?.spaceLayout??0},children:e.map(e=>"table"===e.type?r.jsx(yp,{id:`${t+1}`,className:_v("p-0",{}),children:r.jsx(DK,{typeEdit:"section",layout:e,styles:a?.style,dataTable:l[e.table?.field??""]??[],onClick:()=>c(e),currentLayout:s,onSectionClick:v,formatNumber:h,t:n,currentItem:u,setCurrentItem:p})},e.id):"signature"===e.type?r.jsx("div",{id:`${t+1}`,className:_v("p-0",{}),children:r.jsx(HK,{pixelRate:m,pageSize:i,pageSetting:a.pageSetting,layout:e,styles:a?.style,active:!1,onClick:()=>{c(e)},itemClick:t=>g(t,e),selected:s?.id===e.id,onLayoutChange:t=>{const n=((e,t)=>{const n=e.reduce((e,t)=>(e[t.i]=t,e),{});return t.sort((e,t)=>{const r=n[e.code],i=n[t.code];return r.y===i.y?r.x-i.x:r.y-i.y})})(t,e.signature?.setting.detail??[]);(e=>{const t=GW([...a.layout],e),n={...a,layout:t};o({...n})})({...e,signature:{...e.signature,setting:{...e.signature?.setting,detail:n}}})}})},e.id):r.jsx(yp,{id:e.id,className:_v("p-0",{}),xs:e.width,children:r.jsx(TK,{sectionData:e,typeEdit:"section",width:e.width,pageSize:i,rows:e.rows??1,pageSetting:a.pageSetting,pixelRate:m,data:l,content:e.children??[],styles:a?.style,formatNumber:h,currentItem:u,active:!1,selected:s?.id===e.id,onClick:()=>{c(e)},organization:f,itemClick:t=>g(t,e),onLayoutChange:t=>{const n=zW(t).sort((e,t)=>e[0].y-t[0].y),r=((e,t)=>{const n=t.flat();return e.map(e=>(e.length>1?e?.sort((e,t)=>e.x-t.x):e).map(e=>{const t=n.find(t=>t&&t.id===e.i);return t?{...t,id:e.i,width:e.w,rows:e.h,...t.align?{align:t.align}:{}}:{width:e.w,type:"blank",children:[[{headerText:"",headerDisplay:"",field:"",type:"text",style:{fontSize:12,bold:!1}}]],id:e.i,i:e.i,rows:e.h}}))})(n,e.children??[]),i={...e,rows:Math.max(...r.map(e=>e.reduce((e,t)=>e+(t.rows??0),0))),children:r},l=GW([...a.layout],i),s={...a,layout:l};o({...s})}})},e.id))},`${e.id}-${t}`))})})},BK=e.forwardRef((t,n)=>{const{t:i,data:a,height:o,organization:l,printSetting:s,formatNumber:c,dataFields:d,signatures:h,tableFields:u,showButtonSave:p,nameTemplate:f,isNewTem:m,onSaveData:v,handleChangeName:g,CDN_URL_VIEW:b,uploadFileApi:y}=t;e.useImperativeHandle(n,()=>({onSave:ne}));const w=37.7,x={A4:{width:21,height:29.7},A4R:{width:29.7,height:21},A3:{width:29.7,height:42},A3R:{width:42,height:29.7},A5:{width:14.8,height:21},A5R:{width:21,height:14.8}},[E,k]=e.useState(!1),[C,S]=e.useState(0),[M,A]=e.useState(kV),[_,O]=e.useState(14),[N,Z]=e.useState(!1),[D,I]=e.useState(!1),[H,T]=e.useState(!1),[L,P]=e.useState("left"),[B,V]=e.useState("none"),[z,j]=e.useState("#000"),[R,W]=e.useState(null),[F,q]=e.useState(x.A4),[Y,U]=e.useState(void 0),[G,X]=e.useState({...s}),[J,K]=e.useState(null),[Q,$]=e.useState(null),[ee,te]=e.useState(null);e.useEffect(()=>{if(s&&!BW(s)){const e={layout:WW(s.layout,a),style:{...s.style},pageSetting:{...s.pageSetting,images:s.pageSetting.images?.map(e=>({...e}))}};X(e);const t=FW(e.layout??[]);U({lg:t,md:t,sm:t,xs:t,xxs:t})}},[s]),e.useEffect(()=>{G&&!BW(G)&&q(x[G.pageSetting?.pageSize??"A4"])},[G]);const ne=()=>{v({...G})},re=()=>k(!E),ie=e=>{const t=GW([...G.layout],e);X({...G,layout:t})},ae=(e,t)=>{const n=e?.fontSize?e?.fontSize:14;n!==_&&O(n);const r=e?.fontFamily?e?.fontFamily:kV;r!==M&&A(r);const i=!!e?.bold;i!==N&&Z(i);const a=!!e?.italic;a!==D&&I(a);const o=!!e?.underline;o!==H&&T(o);const l=e?.color;l!==z&&j(l);const s=t&&t.align?t.align:e?.textAlign?e?.textAlign:"left";s!==L&&P(s);const c=t&&t.align?t.align:e?.border?e?.border:"none";c!==L&&P(c)};return r.jsx(Pq,{height:o,className:"edit-template-application",children:r.jsxs("div",{className:"template-content-area-wrapper",children:[r.jsx("div",{className:_v("sidebar-left",{show:E}),children:r.jsx(AY,{t:i,setActiveTab:S,activeTab:C,setCurrentDimensions:W,currentItem:ee,setCurrentItem:te,setting:G,data:a,formatNumber:c,setSetting:X,currentLayout:J,setCurrentLayout:K,setLayouts:U,handleUpdateLayout:ie,dataFields:d,signatures:h,tableFields:u,organization:l,CDN_URL_VIEW:b,uploadFileApi:y})}),r.jsxs("div",{className:"content-right",children:[r.jsx("div",{className:_v("body-content-overlay",{show:E}),onClick:re}),r.jsx(OY,{t:i,setFontFamily:A,fontFamily:M,handleUpdateLayout:ie,currentLayout:J,textAlign:L,setTextAlign:P,border:B,setBorder:V,fontStyle:D,setFontStyle:I,fontWeight:N,setFontWeight:Z,currentItem:ee,fontSize:_,setFontSize:O,color:z,setColor:j,textDecoration:H,setTextDecoration:T,handleMainSidebar:re,onSave:ne,setting:G,activeTab:C,showButtonSave:p,nameTemplate:f,handleChangeName:g,isNewTem:m}),r.jsx("div",{className:"",style:{backgroundColor:"#e0e0e0",height:"calc(100% - 50px)",width:"100%",padding:"1rem",overflow:"auto"},children:r.jsx("div",{className:" d-flex justify-content-center",style:{minWidth:F.width*w},children:r.jsx("div",{style:{width:F.width*w,minWidth:F.width*w,minHeight:F.height*w,height:"auto",backgroundColor:"#fff",overflow:"hidden"},children:r.jsxs(Bq,{type:0===C?"layout":"section",className:"h-100",style:{position:"relative",paddingTop:(G.pageSetting.marginTop??1)*w,paddingBottom:(G.pageSetting.marginBottom??1)*w,paddingLeft:(G.pageSetting.marginLeft??1)*w,paddingRight:(G.pageSetting.marginRight??1)*w},children:[r.jsx("div",{style:{position:"absolute",width:"100%",height:"100%",backgroundImage:`url(${G.pageSetting.background})`,backgroundSize:"100% 100%",top:"50%",left:"50%",transform:"translate(-50%, -50%)",opacity:G.pageSetting.opacity||0===G.pageSetting.opacity?G.pageSetting.opacity:1,zIndex:1}}),G.pageSetting.images?.map((e,t)=>r.jsx("img",{src:e.url,alt:"",width:e.width,height:e.height,style:{position:"absolute",top:e.top,left:e.left,zIndex:e.behindText?1:3}},`image-${t}`)),Y&&G.layout&&G.layout.flat().length>0&&0===C&&r.jsx(LK,{t:i,pageSize:F,setting:G,layouts:Y,setLayouts:U,setSetting:X,data:a,currentLayout:J,setCurrentLayout:K,onSetConfig:ae,formatNumber:c,currentItem:ee,currentLayoutHover:Q,setCurrentLayoutHover:$,currentDimensions:R,organization:l}),Y&&G.layout&&G.layout.length>0&&0!==C&&r.jsx(PK,{t:i,pageSize:F,setting:G,setSetting:X,data:a,currentLayout:J,setCurrentLayout:K,onSetConfig:ae,formatNumber:c,currentItem:ee,setCurrentItem:te,setLayouts:U,organization:l})]})})})})]})]})})}),VK={layout:[[{width:12,children:[],type:"content"}]],pageSetting:{marginBottom:.5,marginLeft:1,marginRight:1,marginTop:.5},style:{}},zK=t=>{const n=QW(),i=(()=>{try{const e=localStorage.getItem("configNumeric");return JSON.parse(e||"{}")}catch(e){return{}}})(),{t:a,updateGeneralSettingApi:o,typeModal:l,setTypeModal:s,windowSize:c,dataSetting:d,data:h,onSaveData:u,CDN_URL_VIEW:p,uploadFileApi:f}=t,m=e.useRef(null),[v,g]=e.useState({...VK}),[b,y]=e.useState(""),w=()=>{s("")},x=()=>{m.current&&m.current?.onSave()};return r.jsxs(Qf,{isOpen:"EditTemplate"===l||"AddTemplate"===l||"DuplicateTemplate"===l,toggle:()=>{s("")},className:"modal-dialog-centered",contentClassName:"p-0",fullscreen:!0,onOpened:async()=>{g("AddTemplate"===l?{...VK}:d.setting),y("EditTemplate"===l?d.name:"")},onClosed:()=>{},backdrop:"static",keyboard:!1,children:[r.jsx(xV,{t:a,typeModal:l,handleModal:()=>{s("")},title:"Tùy chọn in",className:"mb-0"}),r.jsx(BK,{t:a,ref:m,nameTemplate:b,isNewTem:d.isDefault&&"EditTemplate"===l,organization:{...n},handleChangeName:e=>{y(e)},onSaveData:e=>{b?o({id:"EditTemplate"===l?d.id:void 0,name:b,organizationId:n?.id,resourceCode:d.resourceCode,type:"PrintDocument",value:{type:d.type,setting:e}}).unwrap().then(t=>{t.isValid?(u(e,b),w(),fA(a("EditTemplate"===l?"UpdateSuccessful":"AddSuccess"))):KW(t,a)}).catch(()=>{uA(a,"EditTemplate"===l?"UpdateFail":"AddFail")}):uA(a,"Vui lòng nhập tên mẫu in!")},dataFields:d.dataFields??[],tableFields:d.tableFields??[],printSetting:v,height:c.innerHeight-102+"px",data:h,formatNumber:{decimalSeparator:i.decimalSeparatorDisplay,thousandSeparator:i.thousandSeparatorDisplay,colorNegative:i.colorNegative,prefixNegative:i.prefixNegative,suffixNegative:i.suffixNegative},CDN_URL_VIEW:p,uploadFileApi:f}),r.jsx("div",{className:"d-flex justify-content-end p-1",style:{boxShadow:"0 4px 24px 0 rgb(34 41 47 / 10%)"},children:r.jsxs(r.Fragment,{children:[r.jsx(Mp,{color:"primary",className:"me-1",onClick:x,children:a("Save")}),r.jsx(Mp,{color:"secondary",onClick:w,outline:!0,className:"me-1",children:a("Close")})]})})]})},jK=t=>{const{t:n,openModal:i,handleModal:a,defaultPrintSetting:o,data:l,printDocumentApi:s,getListGeneralSettingApi:c,updateGeneralSettingApi:d,deleteGeneralSettingApi:h,CDN_URL_VIEW:u,DOCUMENT_URL_VIEW:p,uploadFileApi:f}=t,m=()=>{const{innerWidth:e,innerHeight:t}=window;return{innerWidth:e,innerHeight:t}},[v,g]=e.useState(m());e.useEffect(()=>{const e=()=>{g(m())};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]);const b=QW(),[y,w]=e.useState([o]),[x,E]=e.useState(o.name),[k,C]=e.useState({value:"A4",label:"A4"}),[S,M]=e.useState(),[A,_]=e.useState(""),[O,N]=e.useState(""),Z=e=>null==e?[]:Array.isArray(e)?e:[e];e.useEffect(()=>{i&&I(o.name)},[i]);const D=(e,t,r)=>{if(r??o.name){const i=(t??y).find(e=>e.name===(r??o.name));i&&(((e,t)=>{_(""),s({data:Z(l),organizationId:b?.id,setting:e,typePage:t}).then(e=>{_(e.payload)}).catch(()=>pA(n("GetFail")))})(i.setting,e??k.value),M({...i}))}},I=e=>{c({organizationId:b?.id,resourceCodes:o.resourceCode,type:"PrintDocument"}).unwrap().then(t=>{const n=[o].map(e=>({...e}));t?.forEach(e=>{const t=n.findIndex(t=>t.type===e.value.type&&t.name===e.name);t>-1?(n[t].id=e.id,n[t].setting=e.value.setting):o.type===e.value.type&&n.push({id:e.id,name:e.name,setting:e.value.setting,type:o.type,dataFields:o.dataFields,tableFields:o.tableFields,resourceCode:e.resourceCode})}),w(n),E(e??o.name),D(k.value,n,e)}).catch(()=>{w([o]),pA(n("GetFail"))})},H=()=>{h&&h(S.id).unwrap().then(e=>{e.isValid?(I(o.name),fA(n("DeleteSuccess"))):KW(e,n)}).catch(()=>{uA(n,"DeleteFail")})},T=[{value:"A4",label:n("A4")},{value:"A4R",label:n("A4 horizontal")},{value:"A3",label:n("A3")},{value:"A3R",label:n("A3 horizontal")},{value:"A5",label:n("A5")},{value:"A5R",label:n("A5 horizontal")}];return r.jsxs(Qf,{isOpen:i,toggle:a,className:"modal-dialog-centered modal-xl",contentClassName:"p-0",onOpened:()=>{},onClosed:()=>{w([o]),E(o.name),C({value:"A4",label:"A4"})},backdrop:"static",keyboard:!1,children:[r.jsx(xV,{t:n,typeModal:"Print",handleModal:a,title:x,titleComponent:()=>{const e=y?.map(e=>({...e,value:e.name,label:n(e.name)}));return r.jsx("div",{className:"d-flex align-items-center pe-50 me-50",children:r.jsx(NO,{options:e,value:EV(x)?null:e?.find(e=>e.value===x),isDisabled:!A,width:300,onChange:e=>{D(k.value,y,e.name),E(e.name)}})})},className:"mb-0",componentRight:()=>r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"d-flex align-items-center pe-50 me-50 border-end",children:r.jsx(NO,{options:T,value:k,isDisabled:!A,onChange:e=>{C(e),D(e.value)}})}),r.jsx("div",{className:"d-flex align-items-center pe-50 me-50 border-end",children:r.jsxs(Mp,{disabled:!A,style:{fontSize:13,fontWeight:400},outline:!0,color:"primary",onClick:()=>N("AddTemplate"),className:_v("btn-border-0 d-flex align-items-center"),children:[r.jsx(mv,{className:"me-50",fontSize:16}),n("Thêm mẫu")]})}),r.jsx("div",{className:"d-flex align-items-center pe-50 me-50 border-end",children:r.jsxs(Mp,{disabled:!A,style:{fontSize:13,fontWeight:400},outline:!0,color:"primary",onClick:()=>N("EditTemplate"),className:_v("btn-border-0 d-flex align-items-center"),children:[r.jsx(rv,{className:"me-50",fontSize:16}),n("Sửa mẫu")]})}),r.jsx("div",{className:_v("d-flex align-items-center pe-50 me-50 border-end",{"d-none":!S?.id}),children:r.jsxs(Mp,{disabled:!A,style:{fontSize:13,fontWeight:400},outline:!0,color:"primary",onClick:()=>{hA(n,H,S.id)},className:_v("btn-border-0 d-flex align-items-center"),children:[r.jsx(wv,{className:"me-50",fontSize:16}),n("Xóa mẫu")]})}),r.jsx("div",{className:"d-flex align-items-center pe-50 me-50 border-end",children:r.jsxs(Mp,{disabled:!A,style:{fontSize:13,fontWeight:400},outline:!0,color:"primary",onClick:()=>N("DuplicateTemplate"),className:_v("btn-border-0 d-flex align-items-center"),children:[r.jsx(tv,{className:"me-50",fontSize:16}),n("Duplicate")]})})]})}),r.jsx(nm,{children:r.jsx("div",{style:{height:v.innerHeight-170+"px"},children:A?r.jsx(r.Fragment,{children:r.jsx("iframe",{src:`${p}/${A}`,width:"100%",height:"100%"})}):r.jsx(r.Fragment,{children:r.jsxs("div",{className:"h-100 w-100 d-flex justify-content-center align-items-center text-primary",children:[r.jsx(qm,{children:" "}),n("Loading...")]})})})}),r.jsx("div",{className:"d-flex justify-content-end p-1",style:{boxShadow:"0 4px 24px 0 rgb(34 41 47 / 10%)"},children:r.jsx(e.Fragment,{children:r.jsx(Mp,{color:"secondary",onClick:a,outline:!0,children:n("Close")})})}),r.jsx(zK,{t:n,updateGeneralSettingApi:d,typeModal:O,setTypeModal:N,windowSize:v,data:(e=>e&&Array.isArray(e)?e?.length>0?e[0]:{}:e)(l),dataSetting:S??{},onSaveData:(e,t)=>{I(t)},CDN_URL_VIEW:u,uploadFileApi:f})]})};var RK=e=>"checkbox"===e.type,WK=e=>e instanceof Date,FK=e=>null==e;const qK=e=>"object"==typeof e;var YK=e=>!FK(e)&&!Array.isArray(e)&&qK(e)&&!WK(e),UK=e=>YK(e)&&e.target?RK(e.target)?e.target.checked:e.target.value:e,GK=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),XK="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function JK(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(XK&&(e instanceof Blob||e instanceof FileList)||!n&&!YK(e))return e;if(t=n?[]:{},Array.isArray(e)||(e=>{const t=e.constructor&&e.constructor.prototype;return YK(t)&&t.hasOwnProperty("isPrototypeOf")})(e))for(const n in e)t[n]=JK(e[n]);else t=e}return t}var KK=e=>Array.isArray(e)?e.filter(Boolean):[],QK=e=>void 0===e,$K=(e,t,n)=>{if(!t||!YK(e))return n;const r=KK(t.split(/[,[\].]+?/)).reduce((e,t)=>FK(e)?e:e[t],e);return QK(r)||r===e?QK(e[t])?n:e[t]:r};const eQ="blur",tQ="focusout",nQ="change",rQ="onBlur",iQ="onChange",aQ="onSubmit",oQ="onTouched",lQ="all",sQ="max",cQ="min",dQ="maxLength",hQ="minLength",uQ="pattern",pQ="required",fQ="validate",mQ=f.default.createContext(null),vQ=()=>f.default.useContext(mQ);var gQ=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const i=a;return t._proxyFormState[i]!==lQ&&(t._proxyFormState[i]=!r||lQ),n&&(n[i]=!0),e[i]}});return i},bQ=e=>YK(e)&&!Object.keys(e).length,yQ=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return bQ(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!r||lQ))},wQ=e=>Array.isArray(e)?e:[e],xQ=(e,t,n)=>n&&t?e===t:!e||!t||e===t||wQ(e).some(e=>e&&(e.startsWith(t)||t.startsWith(e)));function EQ(e){const t=f.default.useRef(e);t.current=e,f.default.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var kQ=e=>"string"==typeof e,CQ=(e,t,n,r,i)=>kQ(e)?(r&&t.watch.add(e),$K(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),$K(n,e))):(r&&(t.watchAll=!0),n);var SQ=e=>/^\w*$/.test(e),MQ=e=>KK(e.replace(/["|']|\]/g,"").split(/\.|\[/));function AQ(e,t,n){let r=-1;const i=SQ(t)?[t]:MQ(t),a=i.length,o=a-1;for(;++r<a;){const t=i[r];let a=n;if(r!==o){const n=e[t];a=YK(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}e[t]=a,e=e[t]}return e}function _Q(e){const t=vQ(),{name:n,control:r=t.control,shouldUnregister:i}=e,a=GK(r._names.array,n),o=function(e){const t=vQ(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:o}=e||{},l=f.default.useRef(r);l.current=r,EQ({disabled:a,subject:n._subjects.values,next:e=>{xQ(l.current,e.name,o)&&c(JK(CQ(l.current,n._names,e.values||n._formValues,!1,i)))}});const[s,c]=f.default.useState(n._getWatch(r,i));return f.default.useEffect(()=>n._removeUnmounted()),s}({control:r,name:n,defaultValue:$K(r._formValues,n,$K(r._defaultValues,n,e.defaultValue)),exact:!0}),l=function(e){const t=vQ(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[o,l]=f.default.useState(n._formState),s=f.default.useRef(!0),c=f.default.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=f.default.useRef(i);return d.current=i,EQ({disabled:r,next:e=>s.current&&xQ(d.current,e.name,a)&&yQ(e,c.current,n._updateFormState)&&l({...n._formState,...e}),subject:n._subjects.state}),f.default.useEffect(()=>(s.current=!0,c.current.isValid&&n._updateValid(!0),()=>{s.current=!1}),[n]),gQ(o,n,c.current,!1)}({control:r,name:n}),s=f.default.useRef(r.register(n,{...e.rules,value:o}));return f.default.useEffect(()=>{const e=r._options.shouldUnregister||i,t=(e,t)=>{const n=$K(r._fields,e);n&&(n._f.mount=t)};if(t(n,!0),e){const e=JK($K(r._options.defaultValues,n));AQ(r._defaultValues,n,e),QK($K(r._formValues,n))&&AQ(r._formValues,n,e)}return()=>{(a?e&&!r._state.action:e)?r.unregister(n):t(n,!1)}},[n,r,a,i]),{field:{name:n,value:o,onChange:f.default.useCallback(e=>s.current.onChange({target:{value:UK(e),name:n},type:nQ}),[n]),onBlur:f.default.useCallback(()=>s.current.onBlur({target:{value:$K(r._formValues,n),name:n},type:eQ}),[n,r]),ref:e=>{const t=$K(r._fields,n);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!$K(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!$K(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!$K(l.touchedFields,n)},error:{enumerable:!0,get:()=>$K(l.errors,n)}})}}const OQ=e=>e.render(_Q(e));var NQ=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const ZQ=(e,t,n)=>{for(const r of n||Object.keys(e)){const n=$K(e,r);if(n){const{_f:e,...r}=n;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else YK(r)&&ZQ(r,t)}}};var DQ=e=>({isOnSubmit:!e||e===aQ,isOnBlur:e===rQ,isOnChange:e===iQ,isOnAll:e===lQ,isOnTouch:e===oQ}),IQ=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),HQ=(e,t,n)=>{const r=KK($K(e,n));return AQ(r,"root",t[n]),AQ(e,n,r),e},TQ=e=>"boolean"==typeof e,LQ=e=>"file"===e.type,PQ=e=>"function"==typeof e,BQ=e=>{if(!XK)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},VQ=e=>kQ(e),zQ=e=>"radio"===e.type,jQ=e=>e instanceof RegExp;const RQ={value:!1,isValid:!1},WQ={value:!0,isValid:!0};var FQ=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!QK(e[0].attributes.value)?QK(e[0].value)||""===e[0].value?WQ:{value:e[0].value,isValid:!0}:WQ:RQ}return RQ};const qQ={isValid:!1,value:null};var YQ=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,qQ):qQ;function UQ(e,t,n="validate"){if(VQ(e)||Array.isArray(e)&&e.every(VQ)||TQ(e)&&!e)return{type:n,message:VQ(e)?e:"",ref:t}}var GQ=e=>YK(e)&&!jQ(e)?e:{value:e,message:""},XQ=async(e,t,n,r,i)=>{const{ref:a,refs:o,required:l,maxLength:s,minLength:c,min:d,max:h,pattern:u,validate:p,name:f,valueAsNumber:m,mount:v,disabled:g}=e._f,b=$K(t,f);if(!v||g)return{};const y=o?o[0]:a,w=e=>{r&&y.reportValidity&&(y.setCustomValidity(TQ(e)?"":e||""),y.reportValidity())},x={},E=zQ(a),k=RK(a),C=E||k,S=(m||LQ(a))&&QK(a.value)&&QK(b)||BQ(a)&&""===a.value||""===b||Array.isArray(b)&&!b.length,M=NQ.bind(null,f,n,x),A=(e,t,n,r=dQ,i=hQ)=>{const o=e?t:n;x[f]={type:e?r:i,message:o,ref:a,...M(e?r:i,o)}};if(i?!Array.isArray(b)||!b.length:l&&(!C&&(S||FK(b))||TQ(b)&&!b||k&&!FQ(o).isValid||E&&!YQ(o).isValid)){const{value:e,message:t}=VQ(l)?{value:!!l,message:l}:GQ(l);if(e&&(x[f]={type:pQ,message:t,ref:y,...M(pQ,t)},!n))return w(t),x}if(!(S||FK(d)&&FK(h))){let e,t;const r=GQ(h),i=GQ(d);if(FK(b)||isNaN(b)){const n=a.valueAsDate||new Date(b),o=e=>new Date((new Date).toDateString()+" "+e),l="time"==a.type,s="week"==a.type;kQ(r.value)&&b&&(e=l?o(b)>o(r.value):s?b>r.value:n>new Date(r.value)),kQ(i.value)&&b&&(t=l?o(b)<o(i.value):s?b<i.value:n<new Date(i.value))}else{const n=a.valueAsNumber||(b?+b:b);FK(r.value)||(e=n>r.value),FK(i.value)||(t=n<i.value)}if((e||t)&&(A(!!e,r.message,i.message,sQ,cQ),!n))return w(x[f].message),x}if((s||c)&&!S&&(kQ(b)||i&&Array.isArray(b))){const e=GQ(s),t=GQ(c),r=!FK(e.value)&&b.length>+e.value,i=!FK(t.value)&&b.length<+t.value;if((r||i)&&(A(r,e.message,t.message),!n))return w(x[f].message),x}if(u&&!S&&kQ(b)){const{value:e,message:t}=GQ(u);if(jQ(e)&&!b.match(e)&&(x[f]={type:uQ,message:t,ref:a,...M(uQ,t)},!n))return w(t),x}if(p)if(PQ(p)){const e=UQ(await p(b,t),y);if(e&&(x[f]={...e,...M(fQ,e.message)},!n))return w(e.message),x}else if(YK(p)){let e={};for(const r in p){if(!bQ(e)&&!n)break;const i=UQ(await p[r](b,t),y,r);i&&(e={...i,...M(r,i.message)},w(i.message),n&&(x[f]=e))}if(!bQ(e)&&(x[f]={ref:y,...e},!n))return x}return w(!0),x};function JQ(e,t){const n=Array.isArray(t)?t:SQ(t)?[t]:MQ(t),r=1===n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=QK(e)?r++:e[t[r++]];return e}(e,n),i=n.length-1,a=n[i];return r&&delete r[a],0!==i&&(YK(r)&&bQ(r)||Array.isArray(r)&&function(e){for(const t in e)if(!QK(e[t]))return!1;return!0}(r))&&JQ(e,n.slice(0,-1)),e}function KQ(){let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}}var QQ=e=>FK(e)||!qK(e);function $Q(e,t){if(QQ(e)||QQ(t))return e===t;if(WK(e)&&WK(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const n=e[i];if(!r.includes(i))return!1;if("ref"!==i){const e=t[i];if(WK(n)&&WK(e)||YK(n)&&YK(e)||Array.isArray(n)&&Array.isArray(e)?!$Q(n,e):n!==e)return!1}}return!0}var e$=e=>"select-multiple"===e.type,t$=e=>BQ(e)&&e.isConnected,n$=e=>{for(const t in e)if(PQ(e[t]))return!0;return!1};function r$(e,t={}){const n=Array.isArray(e);if(YK(e)||n)for(const n in e)Array.isArray(e[n])||YK(e[n])&&!n$(e[n])?(t[n]=Array.isArray(e[n])?[]:{},r$(e[n],t[n])):FK(e[n])||(t[n]=!0);return t}function i$(e,t,n){const r=Array.isArray(e);if(YK(e)||r)for(const r in e)Array.isArray(e[r])||YK(e[r])&&!n$(e[r])?QK(t)||QQ(n[r])?n[r]=Array.isArray(e[r])?r$(e[r],[]):{...r$(e[r])}:i$(e[r],FK(t)?{}:t[r],n[r]):n[r]=!$Q(e[r],t[r]);return n}var a$=(e,t)=>i$(e,t,r$(t)),o$=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>QK(e)?e:t?""===e?NaN:e?+e:e:n&&kQ(e)?new Date(e):r?r(e):e;function l$(e){const t=e.ref;if(!(e.refs?e.refs.every(e=>e.disabled):t.disabled))return LQ(t)?t.files:zQ(t)?YQ(e.refs).value:e$(t)?[...t.selectedOptions].map(({value:e})=>e):RK(t)?FQ(e.refs).value:o$(QK(t.value)?e.ref.value:t.value,e)}var s$=e=>QK(e)?e:jQ(e)?e.source:YK(e)?jQ(e.value)?e.value.source:e.value:e;function c$(e,t,n){const r=$K(e,n);if(r||SQ(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const r=i.join("."),a=$K(t,r),o=$K(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};i.pop()}return{name:n}}const d$={mode:aQ,reValidateMode:iQ,shouldFocusError:!0};function h$(e={},t){let n,r={...d$,...e},i={submitCount:0,isDirty:!1,isLoading:PQ(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},a={},o=(YK(r.defaultValues)||YK(r.values))&&JK(r.defaultValues||r.values)||{},l=r.shouldUnregister?{}:JK(o),s={action:!1,mount:!1,watch:!1},c={mount:new Set,unMount:new Set,array:new Set,watch:new Set},d=0;const h={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},u={values:KQ(),array:KQ(),state:KQ()},p=e.resetOptions&&e.resetOptions.keepDirtyValues,f=DQ(r.mode),m=DQ(r.reValidateMode),v=r.criteriaMode===lQ,g=async e=>{if(h.isValid||e){const e=r.resolver?bQ((await E()).errors):await k(a,!0);e!==i.isValid&&u.state.next({isValid:e})}},b=e=>h.isValidating&&u.state.next({isValidating:e}),y=(e,t,n,r)=>{const i=$K(a,e);if(i){const a=$K(l,e,QK(n)?$K(o,e):n);QK(a)||r&&r.defaultChecked||t?AQ(l,e,t?a:l$(i._f)):M(e,a),s.mount&&g()}},w=(e,t,n,r,a)=>{let l=!1,s=!1;const c={name:e};if(!n||r){h.isDirty&&(s=i.isDirty,i.isDirty=c.isDirty=C(),l=s!==c.isDirty);const n=$Q($K(o,e),t);s=$K(i.dirtyFields,e),n?JQ(i.dirtyFields,e):AQ(i.dirtyFields,e,!0),c.dirtyFields=i.dirtyFields,l=l||h.dirtyFields&&s!==!n}if(n){const t=$K(i.touchedFields,e);t||(AQ(i.touchedFields,e,n),c.touchedFields=i.touchedFields,l=l||h.touchedFields&&t!==n)}return l&&a&&u.state.next(c),l?c:{}},x=(t,r,a,o)=>{const l=$K(i.errors,t),s=h.isValid&&TQ(r)&&i.isValid!==r;var c;if(e.delayError&&a?(c=()=>((e,t)=>{AQ(i.errors,e,t),u.state.next({errors:i.errors})})(t,a),n=e=>{clearTimeout(d),d=setTimeout(c,e)},n(e.delayError)):(clearTimeout(d),n=null,a?AQ(i.errors,t,a):JQ(i.errors,t)),(a?!$Q(l,a):l)||!bQ(o)||s){const e={...o,...s&&TQ(r)?{isValid:r}:{},errors:i.errors,name:t};i={...i,...e},u.state.next(e)}b(!1)},E=async e=>r.resolver(l,r.context,((e,t,n,r)=>{const i={};for(const n of e){const e=$K(t,n);e&&AQ(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}})(e||c.mount,a,r.criteriaMode,r.shouldUseNativeValidation)),k=async(e,t,n={valid:!0})=>{for(const a in e){const o=e[a];if(o){const{_f:e,...a}=o;if(e){const a=c.array.has(e.name),s=await XQ(o,l,v,r.shouldUseNativeValidation&&!t,a);if(s[e.name]&&(n.valid=!1,t))break;!t&&($K(s,e.name)?a?HQ(i.errors,s,e.name):AQ(i.errors,e.name,s[e.name]):JQ(i.errors,e.name))}a&&await k(a,t,n)}}return n.valid},C=(e,t)=>(e&&t&&AQ(l,e,t),!$Q(Z(),o)),S=(e,t,n)=>CQ(e,c,{...s.mount?l:QK(t)?o:kQ(e)?{[e]:t}:t},n,t),M=(e,t,n={})=>{const r=$K(a,e);let i=t;if(r){const n=r._f;n&&(!n.disabled&&AQ(l,e,o$(t,n)),i=BQ(n.ref)&&FK(t)?"":t,e$(n.ref)?[...n.ref.options].forEach(e=>e.selected=i.includes(e.value)):n.refs?RK(n.ref)?n.refs.length>1?n.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(i)?!!i.find(t=>t===e.value):i===e.value)):n.refs[0]&&(n.refs[0].checked=!!i):n.refs.forEach(e=>e.checked=e.value===i):LQ(n.ref)?n.ref.value="":(n.ref.value=i,n.ref.type||u.values.next({name:e,values:{...l}})))}(n.shouldDirty||n.shouldTouch)&&w(e,i,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&N(e)},A=(e,t,n)=>{for(const r in t){const i=t[r],o=`${e}.${r}`,l=$K(a,o);!c.array.has(e)&&QQ(i)&&(!l||l._f)||WK(i)?M(o,i,n):A(o,i,n)}},_=(e,n,r={})=>{const d=$K(a,e),p=c.array.has(e),f=JK(n);AQ(l,e,f),p?(u.array.next({name:e,values:{...l}}),(h.isDirty||h.dirtyFields)&&r.shouldDirty&&u.state.next({name:e,dirtyFields:a$(o,l),isDirty:C(e,f)})):!d||d._f||FK(f)?M(e,f,r):A(e,f,r),IQ(e,c)&&u.state.next({...i}),u.values.next({name:e,values:{...l}}),!s.mount&&t()},O=async e=>{const t=e.target;let o=t.name,s=!0;const d=$K(a,o);if(d){let y,C;const S=t.type?l$(d._f):UK(e),M=e.type===eQ||e.type===tQ,A=!((p=d._f).mount&&(p.required||p.min||p.max||p.maxLength||p.minLength||p.pattern||p.validate)||r.resolver||$K(i.errors,o)||d._f.deps)||((e,t,n,r,i)=>!i.isOnAll&&(!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:!(n?r.isOnChange:i.isOnChange)||e))(M,$K(i.touchedFields,o),i.isSubmitted,m,f),_=IQ(o,c,M);AQ(l,o,S),M?(d._f.onBlur&&d._f.onBlur(e),n&&n(0)):d._f.onChange&&d._f.onChange(e);const O=w(o,S,M,!1),Z=!bQ(O)||_;if(!M&&u.values.next({name:o,type:e.type,values:{...l}}),A)return h.isValid&&g(),Z&&u.state.next({name:o,..._?{}:O});if(!M&&_&&u.state.next({...i}),b(!0),r.resolver){const{errors:e}=await E([o]),t=c$(i.errors,a,o),n=c$(e,a,t.name||o);y=n.error,o=n.name,C=bQ(e)}else y=(await XQ(d,l,v,r.shouldUseNativeValidation))[o],s=isNaN(S)||S===$K(l,o,S),s&&(y?C=!1:h.isValid&&(C=await k(a,!0)));s&&(d._f.deps&&N(d._f.deps),x(o,C,y,O))}var p},N=async(e,t={})=>{let n,o;const l=wQ(e);if(b(!0),r.resolver){const t=await(async e=>{const{errors:t}=await E();if(e)for(const n of e){const e=$K(t,n);e?AQ(i.errors,n,e):JQ(i.errors,n)}else i.errors=t;return t})(QK(e)?e:l);n=bQ(t),o=e?!l.some(e=>$K(t,e)):n}else e?(o=(await Promise.all(l.map(async e=>{const t=$K(a,e);return await k(t&&t._f?{[e]:t}:t)}))).every(Boolean),(o||i.isValid)&&g()):o=n=await k(a);return u.state.next({...!kQ(e)||h.isValid&&n!==i.isValid?{}:{name:e},...r.resolver||!e?{isValid:n}:{},errors:i.errors,isValidating:!1}),t.shouldFocus&&!o&&ZQ(a,e=>e&&$K(i.errors,e),e?l:c.mount),o},Z=e=>{const t={...o,...s.mount?l:{}};return QK(e)?t:kQ(e)?$K(t,e):e.map(e=>$K(t,e))},D=(e,t)=>({invalid:!!$K((t||i).errors,e),isDirty:!!$K((t||i).dirtyFields,e),isTouched:!!$K((t||i).touchedFields,e),error:$K((t||i).errors,e)}),I=(e,t={})=>{for(const n of e?wQ(e):c.mount)c.mount.delete(n),c.array.delete(n),t.keepValue||(JQ(a,n),JQ(l,n)),!t.keepError&&JQ(i.errors,n),!t.keepDirty&&JQ(i.dirtyFields,n),!t.keepTouched&&JQ(i.touchedFields,n),!r.shouldUnregister&&!t.keepDefaultValue&&JQ(o,n);u.values.next({values:{...l}}),u.state.next({...i,...t.keepDirty?{isDirty:C()}:{}}),!t.keepIsValid&&g()},H=(e,t={})=>{let n=$K(a,e);const i=TQ(t.disabled);return AQ(a,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),c.mount.add(e),n?i&&AQ(l,e,t.disabled?void 0:$K(l,e,l$(n._f))):y(e,!0,t.value),{...i?{disabled:t.disabled}:{},...r.shouldUseNativeValidation?{required:!!t.required,min:s$(t.min),max:s$(t.max),minLength:s$(t.minLength),maxLength:s$(t.maxLength),pattern:s$(t.pattern)}:{},name:e,onChange:O,onBlur:O,ref:i=>{if(i){H(e,t),n=$K(a,e);const r=QK(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,l=(e=>zQ(e)||RK(e))(r),s=n._f.refs||[];if(l?s.find(e=>e===r):r===n._f.ref)return;AQ(a,e,{_f:{...n._f,...l?{refs:[...s.filter(t$),r,...Array.isArray($K(o,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),y(e,!1,void 0,r)}else n=$K(a,e,{}),n._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&(!GK(c.array,e)||!s.action)&&c.unMount.add(e)}}},T=()=>r.shouldFocusError&&ZQ(a,e=>e&&$K(i.errors,e),c.mount),L=(n,r={})=>{const d=n||o,f=JK(d),m=n&&!bQ(n)?f:o;if(r.keepDefaultValues||(o=d),!r.keepValues){if(r.keepDirtyValues||p)for(const e of c.mount)$K(i.dirtyFields,e)?AQ(m,e,$K(l,e)):_(e,$K(m,e));else{if(XK&&QK(n))for(const e of c.mount){const t=$K(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(BQ(e)){const t=e.closest("form");if(t){t.reset();break}}}}a={}}l=e.shouldUnregister?r.keepDefaultValues?JK(o):{}:f,u.array.next({values:{...m}}),u.values.next({values:{...m}})}c={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!h.isValid||!!r.keepIsValid,s.watch=!!e.shouldUnregister,u.state.next({submitCount:r.keepSubmitCount?i.submitCount:0,isDirty:r.keepDirty?i.isDirty:!(!r.keepDefaultValues||$Q(n,o)),isSubmitted:!!r.keepIsSubmitted&&i.isSubmitted,dirtyFields:r.keepDirtyValues?i.dirtyFields:r.keepDefaultValues&&n?a$(o,n):{},touchedFields:r.keepTouched?i.touchedFields:{},errors:r.keepErrors?i.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},P=(e,t)=>L(PQ(e)?e(l):e,t);return{control:{register:H,unregister:I,getFieldState:D,_executeSchema:E,_getWatch:S,_getDirty:C,_updateValid:g,_removeUnmounted:()=>{for(const e of c.unMount){const t=$K(a,e);t&&(t._f.refs?t._f.refs.every(e=>!t$(e)):!t$(t._f.ref))&&I(e)}c.unMount=new Set},_updateFieldArray:(e,t=[],n,r,c=!0,d=!0)=>{if(r&&n){if(s.action=!0,d&&Array.isArray($K(a,e))){const t=n($K(a,e),r.argA,r.argB);c&&AQ(a,e,t)}if(d&&Array.isArray($K(i.errors,e))){const t=n($K(i.errors,e),r.argA,r.argB);c&&AQ(i.errors,e,t),((e,t)=>{!KK($K(e,t)).length&&JQ(e,t)})(i.errors,e)}if(h.touchedFields&&d&&Array.isArray($K(i.touchedFields,e))){const t=n($K(i.touchedFields,e),r.argA,r.argB);c&&AQ(i.touchedFields,e,t)}h.dirtyFields&&(i.dirtyFields=a$(o,l)),u.state.next({name:e,isDirty:C(e,t),dirtyFields:i.dirtyFields,errors:i.errors,isValid:i.isValid})}else AQ(l,e,t)},_getFieldArray:t=>KK($K(s.mount?l:o,t,e.shouldUnregister?$K(o,t,[]):[])),_reset:L,_resetDefaultValues:()=>PQ(r.defaultValues)&&r.defaultValues().then(e=>{P(e,r.resetOptions),u.state.next({isLoading:!1})}),_updateFormState:e=>{i={...i,...e}},_subjects:u,_proxyFormState:h,get _fields(){return a},get _formValues(){return l},get _state(){return s},set _state(e){s=e},get _defaultValues(){return o},get _names(){return c},set _names(e){c=e},get _formState(){return i},set _formState(e){i=e},get _options(){return r},set _options(e){r={...r,...e}}},trigger:N,register:H,handleSubmit:(e,t)=>async n=>{n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let o=JK(l);if(u.state.next({isSubmitting:!0}),r.resolver){const{errors:e,values:t}=await E();i.errors=e,o=t}else await k(a);JQ(i.errors,"root"),bQ(i.errors)?(u.state.next({errors:{}}),await e(o,n)):(t&&await t({...i.errors},n),T(),setTimeout(T)),u.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:bQ(i.errors),submitCount:i.submitCount+1,errors:i.errors})},watch:(e,t)=>PQ(e)?u.values.subscribe({next:n=>e(S(void 0,t),n)}):S(e,t,!0),setValue:_,getValues:Z,reset:P,resetField:(e,t={})=>{$K(a,e)&&(QK(t.defaultValue)?_(e,$K(o,e)):(_(e,t.defaultValue),AQ(o,e,t.defaultValue)),t.keepTouched||JQ(i.touchedFields,e),t.keepDirty||(JQ(i.dirtyFields,e),i.isDirty=t.defaultValue?C(e,$K(o,e)):C()),t.keepError||(JQ(i.errors,e),h.isValid&&g()),u.state.next({...i}))},clearErrors:e=>{e&&wQ(e).forEach(e=>JQ(i.errors,e)),u.state.next({errors:e?i.errors:{}})},unregister:I,setError:(e,t,n)=>{const r=($K(a,e,{_f:{}})._f||{}).ref;AQ(i.errors,e,{...t,ref:r}),u.state.next({name:e,errors:i.errors,isValid:!1}),n&&n.shouldFocus&&r&&r.focus&&r.focus()},setFocus:(e,t={})=>{const n=$K(a,e),r=n&&n._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:D}}var u$,p$,f$=function(e,t,n){if(e&&"reportValidity"in e){var r=$K(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},m$=function(e,t){var n=function(n){var r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?f$(r.ref,n,e):r.refs&&r.refs.forEach(function(t){return f$(t,n,e)})};for(var r in t.fields)n(r)},v$=function(e,t){t.shouldUseNativeValidation&&m$(e,t);var n={};for(var r in e){var i=$K(t.fields,r);AQ(n,r,Object.assign(e[r],{ref:i&&i.ref}))}return n},g$=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),function(r,i,a){try{return Promise.resolve(function(o,l){try{var s=(t.context&&"development"===process.env.NODE_ENV&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e["sync"===n.mode?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(e){return a.shouldUseNativeValidation&&m$({},a),{values:n.rawValues?r:e,errors:{}}}))}catch(e){return l(e)}return s&&s.then?s.then(void 0,l):s}(0,function(e){if(!e.inner)throw e;return{values:{},errors:v$((t=e,n=!a.shouldUseNativeValidation&&"all"===a.criteriaMode,(t.inner||[]).reduce(function(e,t){if(e[t.path]||(e[t.path]={message:t.message,type:t.type}),n){var r=e[t.path].types,i=r&&r[t.type];e[t.path]=NQ(t.path,n,e,t.type,i?[].concat(i,t.message):t.message)}return e},{})),a)};var t,n}))}catch(e){return Promise.reject(e)}}};try{u$=Map}catch(jye){}try{p$=Set}catch(jye){}function b$(e,t,n){if(!e||"object"!=typeof e||"function"==typeof e)return e;if(e.nodeType&&"cloneNode"in e)return e.cloneNode(!0);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);if(Array.isArray(e))return e.map(y$);if(u$&&e instanceof u$)return new Map(Array.from(e.entries()));if(p$&&e instanceof p$)return new Set(Array.from(e.values()));if(e instanceof Object){t.push(e);var r=Object.create(e);for(var i in n.push(r),e){var a=t.findIndex(function(t){return t===e[i]});r[i]=a>-1?n[a]:b$(e[i],t,n)}return r}return e}function y$(e){return b$(e,[],[])}const w$=Object.prototype.toString,x$=Error.prototype.toString,E$=RegExp.prototype.toString,k$="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",C$=/^Symbol\((.*)\)(.*)$/;function S$(e,t=!1){if(null==e||!0===e||!1===e)return""+e;const n=typeof e;if("number"===n)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===n)return t?`"${e}"`:e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return k$.call(e).replace(C$,"Symbol($1)");const r=w$.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+x$.call(e)+"]":"RegExp"===r?E$.call(e):null}function M$(e,t){let n=S$(e,t);return null!==n?n:JSON.stringify(e,function(e,n){let r=S$(this[e],t);return null!==r?r:n},2)}let A$={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{let i=null!=r&&r!==n,a=`${e} must be a \`${t}\` type, but the final value was: \`${M$(n,!0)}\``+(i?` (cast from the value \`${M$(r,!0)}\`).`:".");return null===n&&(a+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),a},defined:"${path} must be defined"},_$={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},O$={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},N$={noUnknown:"${path} field has unspecified keys: ${unknown}"};Object.assign(Object.create(null),{mixed:A$,string:_$,number:{min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},date:O$,object:N$,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:{isValue:"${path} field must be ${value}"}});var Z$=Object.prototype.hasOwnProperty;var D$=function(e,t){return null!=e&&Z$.call(e,t)},I$=Array.isArray,H$="object"==typeof N&&N&&N.Object===Object&&N,T$=H$,L$="object"==typeof self&&self&&self.Object===Object&&self,P$=T$||L$||Function("return this")(),B$=P$.Symbol,V$=B$,z$=Object.prototype,j$=z$.hasOwnProperty,R$=z$.toString,W$=V$?V$.toStringTag:void 0;var F$=function(e){var t=j$.call(e,W$),n=e[W$];try{e[W$]=void 0;var r=!0}catch(e){}var i=R$.call(e);return r&&(t?e[W$]=n:delete e[W$]),i},q$=Object.prototype.toString;var Y$=F$,U$=function(e){return q$.call(e)},G$=B$?B$.toStringTag:void 0;var X$=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":G$&&G$ in Object(e)?Y$(e):U$(e)};var J$=function(e){return null!=e&&"object"==typeof e},K$=X$,Q$=J$;var $$=function(e){return"symbol"==typeof e||Q$(e)&&"[object Symbol]"==K$(e)},e0=I$,t0=$$,n0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r0=/^\w*$/;var i0=function(e,t){if(e0(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!t0(e))||(r0.test(e)||!n0.test(e)||null!=t&&e in Object(t))};var a0=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},o0=X$,l0=a0;var s0=function(e){if(!l0(e))return!1;var t=o0(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},c0=P$["__core-js_shared__"],d0=function(){var e=/[^.]+$/.exec(c0&&c0.keys&&c0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var h0=function(e){return!!d0&&d0 in e},u0=Function.prototype.toString;var p0=function(e){if(null!=e){try{return u0.call(e)}catch(e){}try{return e+""}catch(e){}}return""},f0=s0,m0=h0,v0=a0,g0=p0,b0=/^\[object .+?Constructor\]$/,y0=Function.prototype,w0=Object.prototype,x0=y0.toString,E0=w0.hasOwnProperty,k0=RegExp("^"+x0.call(E0).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var C0=function(e,t){return null==e?void 0:e[t]},S0=function(e){return!(!v0(e)||m0(e))&&(f0(e)?k0:b0).test(g0(e))},M0=C0;var A0=function(e,t){var n=M0(e,t);return S0(n)?n:void 0},_0=A0(Object,"create"),O0=_0;var N0=function(){this.__data__=O0?O0(null):{},this.size=0};var Z0=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},D0=_0,I0=Object.prototype.hasOwnProperty;var H0=function(e){var t=this.__data__;if(D0){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return I0.call(t,e)?t[e]:void 0},T0=_0,L0=Object.prototype.hasOwnProperty;var P0=_0;var B0=N0,V0=Z0,z0=H0,j0=function(e){var t=this.__data__;return T0?void 0!==t[e]:L0.call(t,e)},R0=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=P0&&void 0===t?"__lodash_hash_undefined__":t,this};function W0(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}W0.prototype.clear=B0,W0.prototype.delete=V0,W0.prototype.get=z0,W0.prototype.has=j0,W0.prototype.set=R0;var F0=W0;var q0=function(){this.__data__=[],this.size=0};var Y0=function(e,t){return e===t||e!=e&&t!=t},U0=Y0;var G0=function(e,t){for(var n=e.length;n--;)if(U0(e[n][0],t))return n;return-1},X0=G0,J0=Array.prototype.splice;var K0=function(e){var t=this.__data__,n=X0(t,e);return!(n<0)&&(n==t.length-1?t.pop():J0.call(t,n,1),--this.size,!0)},Q0=G0;var $0=function(e){var t=this.__data__,n=Q0(t,e);return n<0?void 0:t[n][1]},e1=G0;var t1=G0;var n1=function(e,t){var n=this.__data__,r=t1(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},r1=q0,i1=K0,a1=$0,o1=function(e){return e1(this.__data__,e)>-1},l1=n1;function s1(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s1.prototype.clear=r1,s1.prototype.delete=i1,s1.prototype.get=a1,s1.prototype.has=o1,s1.prototype.set=l1;var c1=s1,d1=A0(P$,"Map"),h1=F0,u1=c1,p1=d1;var f1=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},m1=f1;var v1=function(e,t){var n=e.__data__;return m1(t)?n["string"==typeof t?"string":"hash"]:n.map},g1=v1;var b1=v1;var y1=v1;var w1=v1;var x1=function(){this.size=0,this.__data__={hash:new h1,map:new(p1||u1),string:new h1}},E1=function(e){var t=g1(this,e).delete(e);return this.size-=t?1:0,t},k1=function(e){return b1(this,e).get(e)},C1=function(e){return y1(this,e).has(e)},S1=function(e,t){var n=w1(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function M1(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}M1.prototype.clear=x1,M1.prototype.delete=E1,M1.prototype.get=k1,M1.prototype.has=C1,M1.prototype.set=S1;var A1=M1,_1=A1;function O1(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(O1.Cache||_1),n}O1.Cache=_1;var N1=O1;var Z1=function(e){var t=N1(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t},D1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,I1=/\\(\\)?/g,H1=Z1(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(D1,function(e,n,r,i){t.push(r?i.replace(I1,"$1"):n||e)}),t}),T1=H1;var L1=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i},P1=L1,B1=I$,V1=$$,z1=B$?B$.prototype:void 0,j1=z1?z1.toString:void 0;var R1=function e(t){if("string"==typeof t)return t;if(B1(t))return P1(t,e)+"";if(V1(t))return j1?j1.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},W1=R1;var F1=function(e){return null==e?"":W1(e)},q1=I$,Y1=i0,U1=T1,G1=F1;var X1=function(e,t){return q1(e)?e:Y1(e,t)?[e]:U1(G1(e))},J1=X$,K1=J$;var Q1=function(e){return K1(e)&&"[object Arguments]"==J1(e)},$1=J$,e2=Object.prototype,t2=e2.hasOwnProperty,n2=e2.propertyIsEnumerable,r2=Q1(function(){return arguments}())?Q1:function(e){return $1(e)&&t2.call(e,"callee")&&!n2.call(e,"callee")},i2=/^(?:0|[1-9]\d*)$/;var a2=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&i2.test(e))&&e>-1&&e%1==0&&e<t};var o2=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},l2=$$;var s2=function(e){if("string"==typeof e||l2(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},c2=X1,d2=r2,h2=I$,u2=a2,p2=o2,f2=s2;var m2=function(e,t,n){for(var r=-1,i=(t=c2(t,e)).length,a=!1;++r<i;){var o=f2(t[r]);if(!(a=null!=e&&n(e,o)))break;e=e[o]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&p2(i)&&u2(o,i)&&(h2(e)||d2(e))},v2=D$,g2=m2;var b2=function(e,t){return null!=e&&g2(e,t,v2)};const y2=e=>e&&e.__isYupSchema__;class w2{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,"function"==typeof t)return void(this.fn=t);if(!b2(t,"is"))throw new TypeError("`is:` is required for `when()` conditions");if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:r,otherwise:i}=t,a="function"==typeof n?n:(...e)=>e.every(e=>e===n);this.fn=function(...e){let t=e.pop(),n=e.pop(),o=a(...e)?r:i;if(o)return"function"==typeof o?o(n):n.concat(o.resolve(t))}}resolve(e,t){let n=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),r=this.fn.apply(e,n.concat(e,t));if(void 0===r||r===e)return e;if(!y2(r))throw new TypeError("conditions must return a schema object");return r.resolve(t)}}function x2(e){return null==e?[]:[].concat(e)}function E2(){return E2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E2.apply(this,arguments)}let k2=/\$\{\s*(\w+)\s*\}/g;class C2 extends Error{static formatError(e,t){const n=t.label||t.path||"this";return n!==t.path&&(t=E2({},t,{path:n})),"string"==typeof e?e.replace(k2,(e,n)=>M$(t[n])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],x2(e).forEach(e=>{C2.isError(e)?(this.errors.push(...e.errors),this.inner=this.inner.concat(e.inner.length?e.inner:e)):this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,C2)}}function S2(e,t){let{endEarly:n,tests:r,args:i,value:a,errors:o,sort:l,path:s}=e,c=(e=>{let t=!1;return(...n)=>{t||(t=!0,e(...n))}})(t),d=r.length;const h=[];if(o=o||[],!d)return o.length?c(new C2(o,a,s)):c(null,a);for(let e=0;e<r.length;e++){(0,r[e])(i,function(e){if(e){if(!C2.isError(e))return c(e,a);if(n)return e.value=a,c(e,a);h.push(e)}if(--d<=0){if(h.length&&(l&&h.sort(l),o.length&&h.push(...o),o=h),o.length)return void c(new C2(o,a,s),a);c(null,a)}})}}var M2=A0,A2=function(){try{var e=M2(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var _2=function(e,t,n){"__proto__"==t&&A2?A2(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var O2=function(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),l=o.length;l--;){var s=o[e?l:++i];if(!1===n(a[s],s,a))break}return t}},N2=O2();var Z2=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},D2={exports:{}};var I2=function(){return!1};!function(e,t){var n=P$,r=I2,i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i?n.Buffer:void 0,l=(o?o.isBuffer:void 0)||r;e.exports=l}(D2,D2.exports);var H2=X$,T2=o2,L2=J$,P2={};P2["[object Float32Array]"]=P2["[object Float64Array]"]=P2["[object Int8Array]"]=P2["[object Int16Array]"]=P2["[object Int32Array]"]=P2["[object Uint8Array]"]=P2["[object Uint8ClampedArray]"]=P2["[object Uint16Array]"]=P2["[object Uint32Array]"]=!0,P2["[object Arguments]"]=P2["[object Array]"]=P2["[object ArrayBuffer]"]=P2["[object Boolean]"]=P2["[object DataView]"]=P2["[object Date]"]=P2["[object Error]"]=P2["[object Function]"]=P2["[object Map]"]=P2["[object Number]"]=P2["[object Object]"]=P2["[object RegExp]"]=P2["[object Set]"]=P2["[object String]"]=P2["[object WeakMap]"]=!1;var B2=function(e){return L2(e)&&T2(e.length)&&!!P2[H2(e)]};var V2=function(e){return function(t){return e(t)}},z2={exports:{}};!function(e,t){var n=H$,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,a=i&&i.exports===r&&n.process,o=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=o}(z2,z2.exports);var j2=B2,R2=V2,W2=z2.exports,F2=W2&&W2.isTypedArray,q2=F2?R2(F2):j2,Y2=Z2,U2=r2,G2=I$,X2=D2.exports,J2=a2,K2=q2,Q2=Object.prototype.hasOwnProperty;var $2=function(e,t){var n=G2(e),r=!n&&U2(e),i=!n&&!r&&X2(e),a=!n&&!r&&!i&&K2(e),o=n||r||i||a,l=o?Y2(e.length,String):[],s=l.length;for(var c in e)!t&&!Q2.call(e,c)||o&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||J2(c,s))||l.push(c);return l},e5=Object.prototype;var t5=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||e5)};var n5=function(e,t){return function(n){return e(t(n))}},r5=n5(Object.keys,Object),i5=t5,a5=r5,o5=Object.prototype.hasOwnProperty;var l5=function(e){if(!i5(e))return a5(e);var t=[];for(var n in Object(e))o5.call(e,n)&&"constructor"!=n&&t.push(n);return t},s5=s0,c5=o2;var d5=$2,h5=l5,u5=function(e){return null!=e&&c5(e.length)&&!s5(e)};var p5=function(e){return u5(e)?d5(e):h5(e)},f5=N2,m5=p5;var v5=function(e,t){return e&&f5(e,t,m5)},g5=c1;var b5=c1,y5=d1,w5=A1;var x5=c1,E5=function(){this.__data__=new g5,this.size=0},k5=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},C5=function(e){return this.__data__.get(e)},S5=function(e){return this.__data__.has(e)},M5=function(e,t){var n=this.__data__;if(n instanceof b5){var r=n.__data__;if(!y5||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new w5(r)}return n.set(e,t),this.size=n.size,this};function A5(e){var t=this.__data__=new x5(e);this.size=t.size}A5.prototype.clear=E5,A5.prototype.delete=k5,A5.prototype.get=C5,A5.prototype.has=S5,A5.prototype.set=M5;var _5=A5;var O5=A1,N5=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Z5=function(e){return this.__data__.has(e)};function D5(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new O5;++t<n;)this.add(e[t])}D5.prototype.add=D5.prototype.push=N5,D5.prototype.has=Z5;var I5=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var H5=function(e,t){return e.has(t)},T5=D5,L5=I5,P5=H5;var B5=function(e,t,n,r,i,a){var o=1&n,l=e.length,s=t.length;if(l!=s&&!(o&&s>l))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var h=-1,u=!0,p=2&n?new T5:void 0;for(a.set(e,t),a.set(t,e);++h<l;){var f=e[h],m=t[h];if(r)var v=o?r(m,f,h,t,e,a):r(f,m,h,e,t,a);if(void 0!==v){if(v)continue;u=!1;break}if(p){if(!L5(t,function(e,t){if(!P5(p,t)&&(f===e||i(f,e,n,r,a)))return p.push(t)})){u=!1;break}}else if(f!==m&&!i(f,m,n,r,a)){u=!1;break}}return a.delete(e),a.delete(t),u};var V5=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n};var z5=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n},j5=P$.Uint8Array,R5=Y0,W5=B5,F5=V5,q5=z5,Y5=B$?B$.prototype:void 0,U5=Y5?Y5.valueOf:void 0;var G5=function(e,t,n,r,i,a,o){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new j5(e),new j5(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return R5(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=F5;case"[object Set]":var s=1&r;if(l||(l=q5),e.size!=t.size&&!s)return!1;var c=o.get(e);if(c)return c==t;r|=2,o.set(e,t);var d=W5(l(e),l(t),r,i,a,o);return o.delete(e),d;case"[object Symbol]":if(U5)return U5.call(e)==U5.call(t)}return!1};var X5=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},J5=X5,K5=I$;var Q5=function(e,t,n){var r=t(e);return K5(e)?r:J5(r,n(e))};var $5=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a};var e3=$5,t3=function(){return[]},n3=Object.prototype.propertyIsEnumerable,r3=Object.getOwnPropertySymbols,i3=r3?function(e){return null==e?[]:(e=Object(e),e3(r3(e),function(t){return n3.call(e,t)}))}:t3,a3=Q5,o3=i3,l3=p5;var s3=function(e){return a3(e,l3,o3)},c3=s3,d3=Object.prototype.hasOwnProperty;var h3=function(e,t,n,r,i,a){var o=1&n,l=c3(e),s=l.length;if(s!=c3(t).length&&!o)return!1;for(var c=s;c--;){var d=l[c];if(!(o?d in t:d3.call(t,d)))return!1}var h=a.get(e),u=a.get(t);if(h&&u)return h==t&&u==e;var p=!0;a.set(e,t),a.set(t,e);for(var f=o;++c<s;){var m=e[d=l[c]],v=t[d];if(r)var g=o?r(v,m,d,t,e,a):r(m,v,d,e,t,a);if(!(void 0===g?m===v||i(m,v,n,r,a):g)){p=!1;break}f||(f="constructor"==d)}if(p&&!f){var b=e.constructor,y=t.constructor;b==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y||(p=!1)}return a.delete(e),a.delete(t),p},u3=A0(P$,"DataView"),p3=d1,f3=A0(P$,"Promise"),m3=A0(P$,"Set"),v3=A0(P$,"WeakMap"),g3=X$,b3=p0,y3="[object Map]",w3="[object Promise]",x3="[object Set]",E3="[object WeakMap]",k3="[object DataView]",C3=b3(u3),S3=b3(p3),M3=b3(f3),A3=b3(m3),_3=b3(v3),O3=g3;(u3&&O3(new u3(new ArrayBuffer(1)))!=k3||p3&&O3(new p3)!=y3||f3&&O3(f3.resolve())!=w3||m3&&O3(new m3)!=x3||v3&&O3(new v3)!=E3)&&(O3=function(e){var t=g3(e),n="[object Object]"==t?e.constructor:void 0,r=n?b3(n):"";if(r)switch(r){case C3:return k3;case S3:return y3;case M3:return w3;case A3:return x3;case _3:return E3}return t});var N3=_5,Z3=B5,D3=G5,I3=h3,H3=O3,T3=I$,L3=D2.exports,P3=q2,B3="[object Arguments]",V3="[object Array]",z3="[object Object]",j3=Object.prototype.hasOwnProperty;var R3=function(e,t,n,r,i,a){var o=T3(e),l=T3(t),s=o?V3:H3(e),c=l?V3:H3(t),d=(s=s==B3?z3:s)==z3,h=(c=c==B3?z3:c)==z3,u=s==c;if(u&&L3(e)){if(!L3(t))return!1;o=!0,d=!1}if(u&&!d)return a||(a=new N3),o||P3(e)?Z3(e,t,n,r,i,a):D3(e,t,s,n,r,i,a);if(!(1&n)){var p=d&&j3.call(e,"__wrapped__"),f=h&&j3.call(t,"__wrapped__");if(p||f){var m=p?e.value():e,v=f?t.value():t;return a||(a=new N3),i(m,v,n,r,a)}}return!!u&&(a||(a=new N3),I3(e,t,n,r,i,a))},W3=R3,F3=J$;var q3=function e(t,n,r,i,a){return t===n||(null==t||null==n||!F3(t)&&!F3(n)?t!=t&&n!=n:W3(t,n,r,i,e,a))},Y3=_5,U3=q3;var G3=function(e,t,n,r){var i=n.length,a=i,o=!r;if(null==e)return!a;for(e=Object(e);i--;){var l=n[i];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){var s=(l=n[i])[0],c=e[s],d=l[1];if(o&&l[2]){if(void 0===c&&!(s in e))return!1}else{var h=new Y3;if(r)var u=r(c,d,s,e,t,h);if(!(void 0===u?U3(d,c,3,r,h):u))return!1}}return!0},X3=a0;var J3=function(e){return e==e&&!X3(e)},K3=J3,Q3=p5;var $3=function(e){for(var t=Q3(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,K3(i)]}return t};var e4=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},t4=G3,n4=$3,r4=e4;var i4=function(e){var t=n4(e);return 1==t.length&&t[0][2]?r4(t[0][0],t[0][1]):function(n){return n===e||t4(n,e,t)}},a4=X1,o4=s2;var l4=function(e,t){for(var n=0,r=(t=a4(t,e)).length;null!=e&&n<r;)e=e[o4(t[n++])];return n&&n==r?e:void 0},s4=l4;var c4=function(e,t,n){var r=null==e?void 0:s4(e,t);return void 0===r?n:r};var d4=function(e,t){return null!=e&&t in Object(e)},h4=d4,u4=m2;var p4=function(e,t){return null!=e&&u4(e,t,h4)},f4=q3,m4=c4,v4=p4,g4=i0,b4=J3,y4=e4,w4=s2;var x4=function(e,t){return g4(e)&&b4(t)?y4(w4(e),t):function(n){var r=m4(n,e);return void 0===r&&r===t?v4(n,e):f4(t,r,3)}};var E4=function(e){return function(t){return null==t?void 0:t[e]}},k4=l4;var C4=function(e){return function(t){return k4(t,e)}},S4=E4,M4=C4,A4=i0,_4=s2;var O4=i4,N4=x4,Z4=function(e){return e},D4=I$,I4=function(e){return A4(e)?S4(_4(e)):M4(e)};var H4=function(e){return"function"==typeof e?e:null==e?Z4:"object"==typeof e?D4(e)?N4(e[0],e[1]):O4(e):I4(e)},T4=_2,L4=v5,P4=H4;var B4=function(e,t){var n={};return t=P4(t),L4(e,function(e,r,i){T4(n,r,t(e,r,i))}),n};function V4(e){this._maxSize=e,this.clear()}V4.prototype.clear=function(){this._size=0,this._values=Object.create(null)},V4.prototype.get=function(e){return this._values[e]},V4.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var z4=/[^.^\]^[]+|(?=\[\]|\.\.)/g,j4=/^\d+$/,R4=/^\d/,W4=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,F4=/^\s*(['"]?)(.*?)(\1)\s*$/,q4=new V4(512),Y4=new V4(512),U4=new V4(512),G4={Cache:V4,split:J4,normalizePath:X4,setter:function(e){var t=X4(e);return Y4.get(e)||Y4.set(e,function(e,n){for(var r=0,i=t.length,a=e;r<i-1;){var o=t[r];if("__proto__"===o||"constructor"===o||"prototype"===o)return e;a=a[t[r++]]}a[t[r]]=n})},getter:function(e,t){var n=X4(e);return U4.get(e)||U4.set(e,function(e){for(var r=0,i=n.length;r<i;){if(null==e&&t)return;e=e[n[r++]]}return e})},join:function(e){return e.reduce(function(e,t){return e+(K4(t)||j4.test(t)?"["+t+"]":(e?".":"")+t)},"")},forEach:function(e,t,n){!function(e,t,n){var r,i,a,o,l=e.length;for(i=0;i<l;i++)(r=e[i])&&(Q4(r)&&(r='"'+r+'"'),a=!(o=K4(r))&&/^\d+$/.test(r),t.call(n,r,o,a,i,e))}(Array.isArray(e)?e:J4(e),t,n)}};function X4(e){return q4.get(e)||q4.set(e,J4(e).map(function(e){return e.replace(F4,"$2")}))}function J4(e){return e.match(z4)||[""]}function K4(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function Q4(e){return!K4(e)&&(function(e){return e.match(R4)&&!e.match(j4)}(e)||function(e){return W4.test(e)}(e))}const $4="$",e7=".";class t7{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===$4,this.isValue=this.key[0]===e7,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?$4:this.isValue?e7:"";this.path=this.key.slice(n.length),this.getter=this.path&&G4.getter(this.path,!0),this.map=t.map}getValue(e,t,n){let r=this.isContext?n:this.isValue?e:t;return this.getter&&(r=this.getter(r||{})),this.map&&(r=this.map(r)),r}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}function n7(){return n7=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n7.apply(this,arguments)}function r7(e){function t(t,n){let{value:r,path:i="",label:a,options:o,originalValue:l,sync:s}=t,c=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["value","path","label","options","originalValue","sync"]);const{name:d,test:h,params:u,message:p}=e;let{parent:f,context:m}=o;function v(e){return t7.isRef(e)?e.getValue(r,f,m):e}function g(e={}){const t=B4(n7({value:r,originalValue:l,label:a,path:e.path||i},u,e.params),v),n=new C2(C2.formatError(e.message||p,t),r,t.path,e.type||d);return n.params=t,n}let b,y=n7({path:i,parent:f,type:d,createError:g,resolve:v,options:o,originalValue:l},c);if(s){try{var w;if(b=h.call(y,r,y),"function"==typeof(null==(w=b)?void 0:w.then))throw new Error(`Validation test of type: "${y.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(e){return void n(e)}C2.isError(b)?n(b):b?n(null,b):n(g())}else try{Promise.resolve(h.call(y,r,y)).then(e=>{C2.isError(e)?n(e):e?n(null,e):n(g())}).catch(n)}catch(e){n(e)}}return t.OPTIONS=e,t}t7.prototype.__isYupRef=!0;function i7(e,t,n,r=n){let i,a,o;return t?(G4.forEach(t,(l,s,c)=>{let d=s?(e=>e.substr(0,e.length-1).substr(1))(l):l;if((e=e.resolve({context:r,parent:i,value:n})).innerType){let r=c?parseInt(d,10):0;if(n&&r>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${l}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[r],e=e.innerType}if(!c){if(!e.fields||!e.fields[d])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e._type}")`);i=n,n=n&&n[d],e=e.fields[d]}a=d,o=s?"["+l+"]":"."+l}),{schema:e,parent:i,parentPath:a}):{parent:i,parentPath:t,schema:e}}class a7{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){const e=[];for(const t of this.list)e.push(t);for(const[,t]of this.refs)e.push(t.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(e){return this.toArray().reduce((t,n)=>t.concat(t7.isRef(n)?e(n):n),[])}add(e){t7.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){t7.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){const e=new a7;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,t){const n=this.clone();return e.list.forEach(e=>n.add(e)),e.refs.forEach(e=>n.add(e)),t.list.forEach(e=>n.delete(e)),t.refs.forEach(e=>n.delete(e)),n}}function o7(){return o7=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o7.apply(this,arguments)}class l7{constructor(e){this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this._typeError=void 0,this._whitelist=new a7,this._blacklist=new a7,this.exclusiveTests=Object.create(null),this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(A$.notType)}),this.type=(null==e?void 0:e.type)||"mixed",this.spec=o7({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},null==e?void 0:e.spec)}get _type(){return this.type}_typeCheck(e){return!0}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeError=this._typeError,t._whitelistError=this._whitelistError,t._blacklistError=this._blacklistError,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.exclusiveTests=o7({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=y$(o7({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,n=e.clone();const r=o7({},t.spec,n.spec);return n.spec=r,n._typeError||(n._typeError=t._typeError),n._whitelistError||(n._whitelistError=t._whitelistError),n._blacklistError||(n._blacklistError=t._blacklistError),n._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),n._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),n.tests=t.tests,n.exclusiveTests=t.exclusiveTests,n.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),n.transforms=[...t.transforms,...n.transforms],n}isType(e){return!(!this.spec.nullable||null!==e)||this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;t=t.clone(),t.conditions=[],t=n.reduce((t,n)=>n.resolve(t,e),t),t=t.resolve(e)}return t}cast(e,t={}){let n=this.resolve(o7({value:e},t)),r=n._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==n.isType(r)){let i=M$(e),a=M$(r);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${n._type}". \n\nattempted value: ${i} \n`+(a!==i?`result of cast: ${a}`:""))}return r}_cast(e,t){let n=void 0===e?e:this.transforms.reduce((t,n)=>n.call(this,t,e,this),e);return void 0===n&&(n=this.getDefault()),n}_validate(e,t={},n){let{sync:r,path:i,from:a=[],originalValue:o=e,strict:l=this.spec.strict,abortEarly:s=this.spec.abortEarly}=t,c=e;l||(c=this._cast(c,o7({assert:!1},t)));let d={value:c,path:i,options:t,originalValue:o,schema:this,label:this.spec.label,sync:r,from:a},h=[];this._typeError&&h.push(this._typeError);let u=[];this._whitelistError&&u.push(this._whitelistError),this._blacklistError&&u.push(this._blacklistError),S2({args:d,value:c,path:i,sync:r,tests:h,endEarly:s},e=>{e?n(e,c):S2({tests:this.tests.concat(u),args:d,path:i,sync:r,value:c,endEarly:s},n)})}validate(e,t,n){let r=this.resolve(o7({},t,{value:e}));return"function"==typeof n?r._validate(e,t,n):new Promise((n,i)=>r._validate(e,t,(e,t)=>{e?i(e):n(t)}))}validateSync(e,t){let n;return this.resolve(o7({},t,{value:e}))._validate(e,o7({},t,{sync:!0}),(e,t)=>{if(e)throw e;n=t}),n}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(C2.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(C2.isError(e))return!1;throw e}}_getDefault(){let e=this.spec.default;return null==e?e:"function"==typeof e?e.call(this):y$(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){if(0===arguments.length)return this._getDefault();return this.clone({default:e})}strict(e=!0){let t=this.clone();return t.spec.strict=e,t}_isPresent(e){return null!=e}defined(e=A$.defined){return this.test({message:e,name:"defined",exclusive:!0,test:e=>void 0!==e})}required(e=A$.required){return this.clone({presence:"required"}).withMutation(t=>t.test({message:e,name:"required",exclusive:!0,test(e){return this.schema._isPresent(e)}}))}notRequired(){let e=this.clone({presence:"optional"});return e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e}nullable(e=!0){return this.clone({nullable:!1!==e})}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]},void 0===t.message&&(t.message=A$.default),"function"!=typeof t.test)throw new TypeError("`test` is a required parameters");let n=this.clone(),r=r7(t),i=t.exclusive||t.name&&!0===n.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(n.exclusiveTests[t.name]=!!t.exclusive),n.tests=n.tests.filter(e=>{if(e.OPTIONS.name===t.name){if(i)return!1;if(e.OPTIONS.test===r.OPTIONS.test)return!1}return!0}),n.tests.push(r),n}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let n=this.clone(),r=x2(e).map(e=>new t7(e));return r.forEach(e=>{e.isSibling&&n.deps.push(e.key)}),n.conditions.push(new w2(r,t)),n}typeError(e){let t=this.clone();return t._typeError=r7({message:e,name:"typeError",test(e){return!(void 0!==e&&!this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t}oneOf(e,t=A$.oneOf){let n=this.clone();return e.forEach(e=>{n._whitelist.add(e),n._blacklist.delete(e)}),n._whitelistError=r7({message:t,name:"oneOf",test(e){if(void 0===e)return!0;let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}notOneOf(e,t=A$.notOneOf){let n=this.clone();return e.forEach(e=>{n._blacklist.add(e),n._whitelist.delete(e)}),n._blacklistError=r7({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(){const e=this.clone(),{label:t,meta:n}=e.spec,r={meta:n,label:t,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map(e=>({name:e.OPTIONS.name,params:e.OPTIONS.params})).filter((e,t,n)=>n.findIndex(t=>t.name===e.name)===t)};return r}}l7.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])l7.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:a,schema:o}=i7(this,t,n,r.context);return o[e](i&&i[a],o7({},r,{parent:i,path:t}))};for(const e of["equals","is"])l7.prototype[e]=l7.prototype.oneOf;for(const e of["not","nope"])l7.prototype[e]=l7.prototype.notOneOf;l7.prototype.optional=l7.prototype.notRequired;l7.prototype;const s7=e=>null==e;let c7=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,d7=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,h7=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,u7=e=>s7(e)||e===e.trim(),p7={}.toString();function f7(){return new m7}class m7 extends l7{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(e){if(this.isType(e))return e;if(Array.isArray(e))return e;const t=null!=e&&e.toString?e.toString():e;return t===p7?e:t})})}_typeCheck(e){return e instanceof String&&(e=e.valueOf()),"string"==typeof e}_isPresent(e){return super._isPresent(e)&&!!e.length}length(e,t=_$.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return s7(t)||t.length===this.resolve(e)}})}min(e,t=_$.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return s7(t)||t.length>=this.resolve(e)}})}max(e,t=_$.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},test(t){return s7(t)||t.length<=this.resolve(e)}})}matches(e,t){let n,r,i=!1;return t&&("object"==typeof t?({excludeEmptyString:i=!1,message:n,name:r}=t):n=t),this.test({name:r||"matches",message:n||_$.matches,params:{regex:e},test:t=>s7(t)||""===t&&i||-1!==t.search(e)})}email(e=_$.email){return this.matches(c7,{name:"email",message:e,excludeEmptyString:!0})}url(e=_$.url){return this.matches(d7,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=_$.uuid){return this.matches(h7,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=_$.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:u7})}lowercase(e=_$.lowercase){return this.transform(e=>s7(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>s7(e)||e===e.toLowerCase()})}uppercase(e=_$.uppercase){return this.transform(e=>s7(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>s7(e)||e===e.toUpperCase()})}}f7.prototype=m7.prototype;var v7=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let g7=new Date("");class b7 extends l7{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(e){return this.isType(e)?e:(e=function(e){var t,n,r=[1,4,5,6,7,10,11],i=0;if(n=v7.exec(e)){for(var a,o=0;a=r[o];++o)n[a]=+n[a]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,void 0!==n[8]&&""!==n[8]||void 0!==n[9]&&""!==n[9]?("Z"!==n[8]&&void 0!==n[9]&&(i=60*n[10]+n[11],"+"===n[9]&&(i=0-i)),t=Date.UTC(n[1],n[2],n[3],n[4],n[5]+i,n[6],n[7])):t=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7])}else t=Date.parse?Date.parse(e):NaN;return t}(e),isNaN(e)?g7:new Date(e))})})}_typeCheck(e){return(e=>"[object Date]"===Object.prototype.toString.call(e))(e)&&!isNaN(e.getTime())}prepareParam(e,t){let n;if(t7.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);n=r}return n}min(e,t=O$.min){let n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(e){return s7(e)||e>=this.resolve(n)}})}max(e,t=O$.max){let n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(e){return s7(e)||e<=this.resolve(n)}})}}b7.INVALID_DATE=g7,b7.prototype;var y7=function(e,t,n,r){var i=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n};var w7=function(e){return function(t){return null==e?void 0:e[t]}},x7=w7({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),E7=F1,k7=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,C7=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var S7=function(e){return(e=E7(e))&&e.replace(k7,x7).replace(C7,"")},M7=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var A7=function(e){return e.match(M7)||[]},_7=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var O7=function(e){return _7.test(e)},N7="\\ud800-\\udfff",Z7="\\u2700-\\u27bf",D7="a-z\\xdf-\\xf6\\xf8-\\xff",I7="A-Z\\xc0-\\xd6\\xd8-\\xde",H7="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",T7="["+H7+"]",L7="\\d+",P7="["+Z7+"]",B7="["+D7+"]",V7="[^"+N7+H7+L7+Z7+D7+I7+"]",z7="(?:\\ud83c[\\udde6-\\uddff]){2}",j7="[\\ud800-\\udbff][\\udc00-\\udfff]",R7="["+I7+"]",W7="(?:"+B7+"|"+V7+")",F7="(?:"+R7+"|"+V7+")",q7="(?:['’](?:d|ll|m|re|s|t|ve))?",Y7="(?:['’](?:D|LL|M|RE|S|T|VE))?",U7="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",G7="[\\ufe0e\\ufe0f]?",X7=G7+U7+("(?:\\u200d(?:"+["[^"+N7+"]",z7,j7].join("|")+")"+G7+U7+")*"),J7="(?:"+[P7,z7,j7].join("|")+")"+X7,K7=RegExp([R7+"?"+B7+"+"+q7+"(?="+[T7,R7,"$"].join("|")+")",F7+"+"+Y7+"(?="+[T7,R7+W7,"$"].join("|")+")",R7+"?"+W7+"+"+q7,R7+"+"+Y7,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",L7,J7].join("|"),"g");var Q7=function(e){return e.match(K7)||[]},$7=A7,e6=O7,t6=F1,n6=Q7;var r6=function(e,t,n){return e=t6(e),void 0===(t=n?void 0:t)?e6(e)?n6(e):$7(e):e.match(t)||[]},i6=y7,a6=S7,o6=r6,l6=RegExp("['’]","g");var s6=function(e){return function(t){return i6(o6(a6(t).replace(l6,"")),e,"")}},c6=s6(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),d6=c6;var h6=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a},u6=h6;var p6=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:u6(e,t,n)},f6=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var m6=function(e){return f6.test(e)};var v6=function(e){return e.split("")},g6="\\ud800-\\udfff",b6="["+g6+"]",y6="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",w6="\\ud83c[\\udffb-\\udfff]",x6="[^"+g6+"]",E6="(?:\\ud83c[\\udde6-\\uddff]){2}",k6="[\\ud800-\\udbff][\\udc00-\\udfff]",C6="(?:"+y6+"|"+w6+")"+"?",S6="[\\ufe0e\\ufe0f]?",M6=S6+C6+("(?:\\u200d(?:"+[x6,E6,k6].join("|")+")"+S6+C6+")*"),A6="(?:"+[x6+y6+"?",y6,E6,k6,b6].join("|")+")",_6=RegExp(w6+"(?="+w6+")|"+A6+M6,"g");var O6=function(e){return e.match(_6)||[]},N6=v6,Z6=m6,D6=O6;var I6=function(e){return Z6(e)?D6(e):N6(e)},H6=p6,T6=m6,L6=I6,P6=F1;var B6=function(e){return function(t){t=P6(t);var n=T6(t)?L6(t):void 0,r=n?n[0]:t.charAt(0),i=n?H6(n,1).join(""):t.slice(1);return r[e]()+i}},V6=B6("toUpperCase"),z6=F1,j6=V6;var R6=function(e){return j6(z6(e).toLowerCase())},W6=R6,F6=s6(function(e,t,n){return t=t.toLowerCase(),e+(n?W6(t):t)}),q6=F6,Y6=_2,U6=v5,G6=H4;var X6=function(e,t){var n={};return t=G6(t),U6(e,function(e,r,i){Y6(n,t(e,r,i),e)}),n},J6={exports:{}};function K6(e,t){var n=e.length,r=new Array(n),i={},a=n,o=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var i=e[n];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}(t),l=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}(e);for(t.forEach(function(e){if(!l.has(e[0])||!l.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});a--;)i[a]||s(e[a],a,new Set);return r;function s(e,t,a){if(a.has(e)){var c;try{c=", node was:"+JSON.stringify(e)}catch(e){c=""}throw new Error("Cyclic dependency"+c)}if(!l.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!i[t]){i[t]=!0;var d=o.get(e)||new Set;if(t=(d=Array.from(d)).length){a.add(e);do{var h=d[--t];s(h,l.get(h),a)}while(t);a.delete(e)}r[--n]=e}}}J6.exports=function(e){return K6(function(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var i=e[n];t.add(i[0]),t.add(i[1])}return Array.from(t)}(e),e)},J6.exports.array=K6;var Q6=J6.exports;function $6(e,t){let n=1/0;return e.some((e,r)=>{var i;if(-1!==(null==(i=t.path)?void 0:i.indexOf(e)))return n=r,!0}),n}function e8(e){return(t,n)=>$6(e,t)-$6(e,n)}function t8(){return t8=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t8.apply(this,arguments)}let n8=e=>"[object Object]"===Object.prototype.toString.call(e);const r8=e8([]);class i8 extends l7{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=r8,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null}),e&&this.shape(e)})}_typeCheck(e){return n8(e)||"function"==typeof e}_cast(e,t={}){var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault();if(!this._typeCheck(r))return r;let i=this.fields,a=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,o=this._nodes.concat(Object.keys(r).filter(e=>-1===this._nodes.indexOf(e))),l={},s=t8({},t,{parent:l,__validating:t.__validating||!1}),c=!1;for(const e of o){let n=i[e],o=b2(r,e);if(n){let i,a=r[e];s.path=(t.path?`${t.path}.`:"")+e,n=n.resolve({value:a,context:t.context,parent:l});let o="spec"in n?n.spec:void 0,d=null==o?void 0:o.strict;if(null==o?void 0:o.strip){c=c||e in r;continue}i=t.__validating&&d?r[e]:n.cast(r[e],s),void 0!==i&&(l[e]=i)}else o&&!a&&(l[e]=r[e]);l[e]!==r[e]&&(c=!0)}return c?l:r}_validate(e,t={},n){let r=[],{sync:i,from:a=[],originalValue:o=e,abortEarly:l=this.spec.abortEarly,recursive:s=this.spec.recursive}=t;a=[{schema:this,value:o},...a],t.__validating=!0,t.originalValue=o,t.from=a,super._validate(e,t,(e,c)=>{if(e){if(!C2.isError(e)||l)return void n(e,c);r.push(e)}if(!s||!n8(c))return void n(r[0]||null,c);o=o||c;let d=this._nodes.map(e=>(n,r)=>{let i=-1===e.indexOf(".")?(t.path?`${t.path}.`:"")+e:`${t.path||""}["${e}"]`,l=this.fields[e];l&&"validate"in l?l.validate(c[e],t8({},t,{path:i,from:a,strict:!0,parent:c,originalValue:o[e]}),r):r(null)});S2({sync:i,tests:d,value:c,errors:r,endEarly:l,sort:this._sortErrors,path:t.path},n)})}clone(e){const t=super.clone(e);return t.fields=t8({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[e,t]of Object.entries(this.fields)){const r=n[e];void 0===r?n[e]=t:r instanceof l7&&t instanceof l7&&(n[e]=t.concat(r))}return t.withMutation(()=>t.shape(n,this._excludedEdges))}getDefaultFromShape(){let e={};return this._nodes.forEach(t=>{const n=this.fields[t];e[t]="default"in n?n.getDefault():void 0}),e}_getDefault(){return"default"in this.spec?super._getDefault():this._nodes.length?this.getDefaultFromShape():void 0}shape(e,t=[]){let n=this.clone(),r=Object.assign(n.fields,e);return n.fields=r,n._sortErrors=e8(Object.keys(r)),t.length&&(Array.isArray(t[0])||(t=[t]),n._excludedEdges=[...n._excludedEdges,...t]),n._nodes=function(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([e,t])=>`${e}-${t}`));function a(e,t){let a=G4.split(e)[0];r.add(a),i.has(`${t}-${a}`)||n.push([t,a])}for(const t in e)if(b2(e,t)){let n=e[t];r.add(t),t7.isRef(n)&&n.isSibling?a(n.path,t):y2(n)&&"deps"in n&&n.deps.forEach(e=>a(e,t))}return Q6.array(Array.from(r),n).reverse()}(r,n._excludedEdges),n}pick(e){const t={};for(const n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.clone().withMutation(e=>(e.fields={},e.shape(t)))}omit(e){const t=this.clone(),n=t.fields;t.fields={};for(const t of e)delete n[t];return t.withMutation(()=>t.shape(n))}from(e,t,n){let r=G4.getter(e,!0);return this.transform(i=>{if(null==i)return i;let a=i;return b2(i,e)&&(a=t8({},i),n||delete a[e],a[t]=r(i)),a})}noUnknown(e=!0,t=N$.noUnknown){"string"==typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;const n=function(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(e=>-1===n.indexOf(e))}(this.schema,t);return!e||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(e=!0,t=N$.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>t&&X6(t,(t,n)=>e(n)))}camelCase(){return this.transformKeys(q6)}snakeCase(){return this.transformKeys(d6)}constantCase(){return this.transformKeys(e=>d6(e).toUpperCase())}describe(){let e=super.describe();return e.fields=B4(this.fields,e=>e.describe()),e}}function a8(e){return new i8(e)}
|
|
555
555
|
/*!
|
|
556
556
|
* sweetalert2 v11.22.2
|
|
557
557
|
* Released under the MIT License.
|