@shrfe/assets 1.0.24 → 1.0.25-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/js/shrfe-core-umd.js +3 -3
- package/package.json +1 -1
package/js/shrfe-core-umd.js
CHANGED
|
@@ -28,12 +28,12 @@ return function(){var t=e,r=t.lib,n=r.WordArray,i=r.Hasher,o=t.algo,s=n.create([
|
|
|
28
28
|
* sweetalert2 v11.26.24
|
|
29
29
|
* Released under the MIT License.
|
|
30
30
|
*/
|
|
31
|
-
(function(t,r){e.exports=r()})(0,function(){"use strict";function e(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function t(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function r(t,r){return t.get(e(t,r))}function n(e,r,n){t(e,r),r.set(e,n)}function i(t,r,n){return t.set(e(t,r),n),n}const o=100,s={},a=()=>{s.previousActiveElement instanceof HTMLElement?(s.previousActiveElement.focus(),s.previousActiveElement=null):document.body&&document.body.focus()},c=e=>new Promise(t=>{if(!e)return t();const r=window.scrollX,n=window.scrollY;s.restoreFocusTimeout=setTimeout(()=>{a(),t()},o),window.scrollTo(r,n)}),u="swal2-",l=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"],h=l.reduce((e,t)=>(e[t]=u+t,e),{}),d=["success","warning","info","question","error"],p=d.reduce((e,t)=>(e[t]=u+t,e),{}),f="SweetAlert2:",m=e=>e.charAt(0).toUpperCase()+e.slice(1),g=e=>{console.warn(`${f} ${"object"===typeof e?e.join(" "):e}`)},v=e=>{console.error(`${f} ${e}`)},y=[],w=e=>{y.includes(e)||(y.push(e),g(e))},b=(e,t=null)=>{w(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`)},_=e=>"function"===typeof e?e():e,k=e=>e&&"function"===typeof e.toPromise,S=e=>k(e)?e.toPromise():Promise.resolve(e),x=e=>e&&Promise.resolve(e)===e,C=()=>navigator.userAgent.includes("Firefox"),E=()=>document.body.querySelector(`.${h.container}`),A=e=>{const t=E();return t?t.querySelector(e):null},O=e=>A(`.${e}`),I=()=>O(h.popup),T=()=>O(h.icon),M=()=>O(h["icon-content"]),R=()=>O(h.title),P=()=>O(h["html-container"]),D=()=>O(h.image),L=()=>O(h["progress-steps"]),B=()=>O(h["validation-message"]),N=()=>A(`.${h.actions} .${h.confirm}`),j=()=>A(`.${h.actions} .${h.cancel}`),F=()=>A(`.${h.actions} .${h.deny}`),U=()=>O(h["input-label"]),z=()=>A(`.${h.loader}`),q=()=>O(h.actions),H=()=>O(h.footer),$=()=>O(h["timer-progress-bar"]),W=()=>O(h.close),V='\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',Y=()=>{const e=I();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),r=Array.from(t).sort((e,t)=>{const r=parseInt(e.getAttribute("tabindex")||"0"),n=parseInt(t.getAttribute("tabindex")||"0");return r>n?1:r<n?-1:0}),n=e.querySelectorAll(V),i=Array.from(n).filter(e=>"-1"!==e.getAttribute("tabindex"));return[...new Set(r.concat(i))].filter(e=>pe(e))},X=()=>Z(document.body,h.shown)&&!Z(document.body,h["toast-shown"])&&!Z(document.body,h["no-backdrop"]),J=()=>{const e=I();return!!e&&Z(e,h.toast)},G=()=>{const e=I();return!!e&&e.hasAttribute("data-loading")},K=(e,t)=>{if(e.textContent="",t){const r=new DOMParser,n=r.parseFromString(t,"text/html"),i=n.querySelector("head");i&&Array.from(i.childNodes).forEach(t=>{e.appendChild(t)});const o=n.querySelector("body");o&&Array.from(o.childNodes).forEach(t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)})}},Z=(e,t)=>{if(!t)return!1;const r=t.split(/\s+/);for(let n=0;n<r.length;n++)if(!e.classList.contains(r[n]))return!1;return!0},Q=(e,t)=>{Array.from(e.classList).forEach(r=>{Object.values(h).includes(r)||Object.values(p).includes(r)||Object.values(t.showClass||{}).includes(r)||e.classList.remove(r)})},ee=(e,t,r)=>{if(Q(e,t),!t.customClass)return;const n=t.customClass[r];n&&("string"===typeof n||n.forEach?ie(e,n):g(`Invalid type of customClass.${r}! Expected string or iterable object, got "${typeof n}"`))},te=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${h.popup} > .${h[t]}`);case"checkbox":return e.querySelector(`.${h.popup} > .${h.checkbox} input`);case"radio":return e.querySelector(`.${h.popup} > .${h.radio} input:checked`)||e.querySelector(`.${h.popup} > .${h.radio} input:first-child`);case"range":return e.querySelector(`.${h.popup} > .${h.range} input`);default:return e.querySelector(`.${h.popup} > .${h.input}`)}},re=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},ne=(e,t,r)=>{if(!e||!t)return;const n="string"===typeof t?t.split(/\s+/).filter(Boolean):t,i=Array.isArray(e)?e:[e];i.forEach(e=>{n.forEach(t=>{r?e.classList.add(t):e.classList.remove(t)})})},ie=(e,t)=>{ne(e,t,!0)},oe=(e,t)=>{ne(e,t,!1)},se=(e,t)=>{const r=Array.from(e.children);for(let n=0;n<r.length;n++){const e=r[n];if(e instanceof HTMLElement&&Z(e,t))return e}},ae=(e,t,r)=>{r===`${parseInt(`${r}`)}`&&(r=parseInt(r)),r||0===r?e.style.setProperty(t,"number"===typeof r?`${r}px`:r):e.style.removeProperty(t)},ce=(e,t="flex")=>{e&&(e.style.display=t)},ue=e=>{e&&(e.style.display="none")},le=(e,t="block")=>{e&&new MutationObserver(()=>{de(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},he=(e,t,r,n)=>{const i=e.querySelector(t);i&&i.style.setProperty(r,n)},de=(e,t,r="flex")=>{t?ce(e,r):ue(e)},pe=e=>Boolean(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),fe=()=>!pe(N())&&!pe(F())&&!pe(j()),me=e=>Boolean(e.scrollHeight>e.clientHeight),ge=(e,t)=>{let r=e;while(r&&r!==t){if(me(r))return!0;r=r.parentElement}return!1},ve=e=>{const t=window.getComputedStyle(e),r=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return r>0||n>0},ye=(e,t=!1)=>{const r=$();r&&pe(r)&&(t&&(r.style.transition="none",r.style.width="100%"),setTimeout(()=>{r.style.transition=`width ${e/1e3}s linear`,r.style.width="0%"},10))},we=()=>{const e=$();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const r=parseInt(window.getComputedStyle(e).width),n=t/r*100;e.style.width=`${n}%`},be=()=>"undefined"===typeof window||"undefined"===typeof document,_e=`\n <div aria-labelledby="${h.title}" aria-describedby="${h["html-container"]}" class="${h.popup}" tabindex="-1">\n <button type="button" class="${h.close}"></button>\n <ul class="${h["progress-steps"]}"></ul>\n <div class="${h.icon}"></div>\n <img class="${h.image}" />\n <h2 class="${h.title}" id="${h.title}"></h2>\n <div class="${h["html-container"]}" id="${h["html-container"]}"></div>\n <input class="${h.input}" id="${h.input}" />\n <input type="file" class="${h.file}" />\n <div class="${h.range}">\n <input type="range" />\n <output></output>\n </div>\n <select class="${h.select}" id="${h.select}"></select>\n <div class="${h.radio}"></div>\n <label class="${h.checkbox}">\n <input type="checkbox" id="${h.checkbox}" />\n <span class="${h.label}"></span>\n </label>\n <textarea class="${h.textarea}" id="${h.textarea}"></textarea>\n <div class="${h["validation-message"]}" id="${h["validation-message"]}"></div>\n <div class="${h.actions}">\n <div class="${h.loader}"></div>\n <button type="button" class="${h.confirm}"></button>\n <button type="button" class="${h.deny}"></button>\n <button type="button" class="${h.cancel}"></button>\n </div>\n <div class="${h.footer}"></div>\n <div class="${h["timer-progress-bar-container"]}">\n <div class="${h["timer-progress-bar"]}"></div>\n </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),ke=()=>{const e=E();return!!e&&(e.remove(),oe([document.documentElement,document.body],[h["no-backdrop"],h["toast-shown"],h["has-column"]]),!0)},Se=()=>{s.currentInstance&&s.currentInstance.resetValidationMessage()},xe=()=>{const e=I();if(!e)return;const t=se(e,h.input),r=se(e,h.file),n=e.querySelector(`.${h.range} input`),i=e.querySelector(`.${h.range} output`),o=se(e,h.select),s=e.querySelector(`.${h.checkbox} input`),a=se(e,h.textarea);t&&(t.oninput=Se),r&&(r.onchange=Se),o&&(o.onchange=Se),s&&(s.onchange=Se),a&&(a.oninput=Se),n&&i&&(n.oninput=()=>{Se(),i.value=n.value},n.onchange=()=>{Se(),i.value=n.value})},Ce=e=>{if("string"===typeof e){const t=document.querySelector(e);if(!t)throw new Error(`Target element "${e}" not found`);return t}return e},Ee=e=>{const t=I();t&&(t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true"))},Ae=e=>{"rtl"===window.getComputedStyle(e).direction&&(ie(E(),h.rtl),s.isRTL=!0)},Oe=e=>{const t=ke();if(be())return void v("SweetAlert2 requires document to initialize");const r=document.createElement("div");r.className=h.container,t&&ie(r,h["no-transition"]),K(r,_e),r.dataset["swal2Theme"]=e.theme;const n=Ce(e.target||"body");n.appendChild(r),e.topLayer&&(r.setAttribute("popover",""),r.showPopover()),Ee(e),Ae(n),xe()},Ie=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"===typeof e?Te(e,t):e&&K(t,e)},Te=(e,t)=>{"jquery"in e?Me(t,e):K(t,e.toString())},Me=(e,t)=>{if(e.textContent="",0 in t)for(let r=0;r in t;r++)e.appendChild(t[r].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},Re=(e,t)=>{const r=q(),n=z();r&&n&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?ce(r):ue(r),ee(r,t,"actions"),Pe(r,n,t),K(n,t.loaderHtml||""),ee(n,t,"loader"))};function Pe(e,t,r){const n=N(),i=F(),o=j();n&&i&&o&&(Be(n,"confirm",r),Be(i,"deny",r),Be(o,"cancel",r),De(n,i,o,r),r.reverseButtons&&(r.toast?(e.insertBefore(o,n),e.insertBefore(i,n)):(e.insertBefore(o,t),e.insertBefore(i,t),e.insertBefore(n,t))))}function De(e,t,r,n){if(!n.buttonsStyling)return void oe([e,t,r],h.styled);ie([e,t,r],h.styled);const i=[[e,"confirm",n.confirmButtonColor],[t,"deny",n.denyButtonColor],[r,"cancel",n.cancelButtonColor]];i.forEach(([e,t,r])=>{r&&e.style.setProperty(`--swal2-${t}-button-background-color`,r),Le(e)})}function Le(e){const t=window.getComputedStyle(e);if(t.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;const r=t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");e.style.setProperty("--swal2-action-button-focus-box-shadow",t.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${r}`))}function Be(e,t,r){const n=m(t);de(e,r[`show${n}Button`],"inline-block"),K(e,r[`${t}ButtonText`]||""),e.setAttribute("aria-label",r[`${t}ButtonAriaLabel`]||""),e.className=h[t],ee(e,r,`${t}Button`)}const Ne=(e,t)=>{const r=W();r&&(K(r,t.closeButtonHtml||""),ee(r,t,"closeButton"),de(r,t.showCloseButton),r.setAttribute("aria-label",t.closeButtonAriaLabel||""))},je=(e,t)=>{const r=E();r&&(Fe(r,t.backdrop),Ue(r,t.position),ze(r,t.grow),ee(r,t,"container"))};function Fe(e,t){"string"===typeof t?e.style.background=t:t||ie([document.documentElement,document.body],h["no-backdrop"])}function Ue(e,t){t&&(t in h?ie(e,h[t]):(g('The "position" parameter is not valid, defaulting to "center"'),ie(e,h.center)))}function ze(e,t){t&&ie(e,h[`grow-${t}`])}var qe={innerParams:new WeakMap,domCache:new WeakMap,focusedElement:new WeakMap};const He=["input","file","range","select","radio","checkbox","textarea"],$e=(e,t)=>{const r=I();if(!r)return;const n=qe.innerParams.get(e),i=!n||t.input!==n.input;He.forEach(e=>{const n=se(r,h[e]);n&&(Ye(e,t.inputAttributes),n.className=h[e],i&&ue(n))}),t.input&&(i&&We(t),Xe(t))},We=e=>{if(!e.input)return;if(!Qe[e.input])return void v(`Unexpected type of input! Expected ${Object.keys(Qe).join(" | ")}, got "${e.input}"`);const t=Ke(e.input);if(!t)return;const r=Qe[e.input](t,e);ce(t),e.inputAutoFocus&&setTimeout(()=>{re(r)})},Ve=e=>{for(let t=0;t<e.attributes.length;t++){const r=e.attributes[t].name;["id","type","value","style"].includes(r)||e.removeAttribute(r)}},Ye=(e,t)=>{const r=I();if(!r)return;const n=te(r,e);if(n){Ve(n);for(const e in t)n.setAttribute(e,t[e])}},Xe=e=>{if(!e.input)return;const t=Ke(e.input);t&&ee(t,e,"input")},Je=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},Ge=(e,t,r)=>{if(r.inputLabel){const n=document.createElement("label"),i=h["input-label"];n.setAttribute("for",e.id),n.className=i,"object"===typeof r.customClass&&ie(n,r.customClass.inputLabel),n.innerText=r.inputLabel,t.insertAdjacentElement("beforebegin",n)}},Ke=e=>{const t=I();if(t)return se(t,h[e]||h.input)},Ze=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:x(t)||g(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},Qe={};Qe.text=Qe.email=Qe.password=Qe.number=Qe.tel=Qe.url=Qe.search=Qe.date=Qe["datetime-local"]=Qe.time=Qe.week=Qe.month=(e,t)=>{const r=e;return Ze(r,t.inputValue),Ge(r,r,t),Je(r,t),r.type=t.input,r},Qe.file=(e,t)=>{const r=e;return Ge(r,r,t),Je(r,t),r},Qe.range=(e,t)=>{const r=e,n=r.querySelector("input"),i=r.querySelector("output");return n&&(Ze(n,t.inputValue),n.type=t.input,Ge(n,e,t)),i&&Ze(i,t.inputValue),e},Qe.select=(e,t)=>{const r=e;if(r.textContent="",t.inputPlaceholder){const e=document.createElement("option");K(e,t.inputPlaceholder),e.value="",e.disabled=!0,e.selected=!0,r.appendChild(e)}return Ge(r,r,t),r},Qe.radio=e=>{const t=e;return t.textContent="",e},Qe.checkbox=(e,t)=>{const r=I();if(!r)throw new Error("Popup not found");const n=te(r,"checkbox");if(!n)throw new Error("Checkbox input not found");n.value="1",n.checked=Boolean(t.inputValue);const i=e,o=i.querySelector("span");if(o){const e=t.inputPlaceholder||t.inputLabel;e&&K(o,e)}return n},Qe.textarea=(e,t)=>{const r=e;Ze(r,t.inputValue),Je(r,t),Ge(r,r,t);const n=e=>parseInt(window.getComputedStyle(e).marginLeft)+parseInt(window.getComputedStyle(e).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const e=I();if(!e)return;const i=parseInt(window.getComputedStyle(e).width),o=()=>{if(!document.body.contains(r))return;const e=r.offsetWidth+n(r),o=I();o&&(e>i?o.style.width=`${e}px`:ae(o,"width",t.width))};new MutationObserver(o).observe(r,{attributes:!0,attributeFilter:["style"]})}}),r};const et=(e,t)=>{const r=P();r&&(le(r),ee(r,t,"htmlContainer"),t.html?(Ie(t.html,r),ce(r,"block")):t.text?(r.textContent=t.text,ce(r,"block")):ue(r),$e(e,t))},tt=(e,t)=>{const r=H();r&&(le(r),de(r,Boolean(t.footer),"block"),t.footer&&Ie(t.footer,r),ee(r,t,"footer"))},rt=(e,t)=>{const r=qe.innerParams.get(e),n=T();if(!n)return;if(r&&t.icon===r.icon)return at(n,t),void nt(n,t);if(!t.icon&&!t.iconHtml)return void ue(n);if(t.icon&&-1===Object.keys(p).indexOf(t.icon))return v(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),void ue(n);ce(n),at(n,t),nt(n,t),ie(n,t.showClass&&t.showClass.icon);const i=window.matchMedia("(prefers-color-scheme: dark)");i.addEventListener("change",it)},nt=(e,t)=>{for(const[r,n]of Object.entries(p))t.icon!==r&&oe(e,n);ie(e,t.icon&&p[t.icon]),ct(e,t),it(),ee(e,t,"icon")},it=()=>{const e=I();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),r=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let n=0;n<r.length;n++)r[n].style.backgroundColor=t},ot=e=>`\n ${e.animation?'<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>\n ${e.animation?'<div class="swal2-success-fix"></div>':""}\n ${e.animation?'<div class="swal2-success-circular-line-right"></div>':""}\n`,st='\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',at=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let r=e.innerHTML,n="";if(t.iconHtml)n=ut(t.iconHtml);else if("success"===t.icon)n=ot(t),r=r.replace(/ style=".*?"/g,"");else if("error"===t.icon)n=st;else if(t.icon){const e={question:"?",warning:"!",info:"i"};n=ut(e[t.icon])}r.trim()!==n.trim()&&K(e,n)},ct=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const r of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])he(e,r,"background-color",t.iconColor);he(e,".swal2-success-ring","border-color",t.iconColor)}},ut=e=>`<div class="${h["icon-content"]}">${e}</div>`,lt=(e,t)=>{const r=D();r&&(t.imageUrl?(ce(r,""),r.setAttribute("src",t.imageUrl),r.setAttribute("alt",t.imageAlt||""),ae(r,"width",t.imageWidth),ae(r,"height",t.imageHeight),r.className=h.image,ee(r,t,"image")):ue(r))};let ht=!1,dt=0,pt=0,ft=0,mt=0;const gt=e=>{e.addEventListener("mousedown",yt),document.body.addEventListener("mousemove",wt),e.addEventListener("mouseup",bt),e.addEventListener("touchstart",yt),document.body.addEventListener("touchmove",wt),e.addEventListener("touchend",bt)},vt=e=>{e.removeEventListener("mousedown",yt),document.body.removeEventListener("mousemove",wt),e.removeEventListener("mouseup",bt),e.removeEventListener("touchstart",yt),document.body.removeEventListener("touchmove",wt),e.removeEventListener("touchend",bt)},yt=e=>{const t=I();if(!t)return;const r=T();if(e.target===t||r&&r.contains(e.target)){ht=!0;const r=_t(e);dt=r.clientX,pt=r.clientY,ft=parseInt(t.style.insetInlineStart)||0,mt=parseInt(t.style.insetBlockStart)||0,ie(t,"swal2-dragging")}},wt=e=>{const t=I();if(t&&ht){let{clientX:r,clientY:n}=_t(e);const i=r-dt;t.style.insetInlineStart=`${ft+(s.isRTL?-i:i)}px`,t.style.insetBlockStart=`${mt+(n-pt)}px`}},bt=()=>{const e=I();ht=!1,oe(e,"swal2-dragging")},_t=e=>{const t=e.type.startsWith("touch")?e.touches[0]:e;return{clientX:t.clientX,clientY:t.clientY}},kt=(e,t)=>{const r=E(),n=I();if(r&&n){if(t.toast){ae(r,"width",t.width),n.style.width="100%";const e=z();e&&n.insertBefore(e,T())}else ae(n,"width",t.width);ae(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),ue(B()),St(n,t),t.draggable&&!t.toast?(ie(n,h.draggable),gt(n)):(oe(n,h.draggable),vt(n))}},St=(e,t)=>{const r=t.showClass||{};e.className=`${h.popup} ${pe(e)?r.popup:""}`,t.toast?(ie([document.documentElement,document.body],h["toast-shown"]),ie(e,h.toast)):ie(e,h.modal),ee(e,t,"popup"),"string"===typeof t.customClass&&ie(e,t.customClass),t.icon&&ie(e,h[`icon-${t.icon}`])},xt=(e,t)=>{const r=L();if(!r)return;const{progressSteps:n,currentProgressStep:i}=t;n&&0!==n.length&&void 0!==i?(ce(r),r.textContent="",i>=n.length&&g("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),n.forEach((e,o)=>{const s=Ct(e);if(r.appendChild(s),o===i&&ie(s,h["active-progress-step"]),o!==n.length-1){const e=Et(t);r.appendChild(e)}})):ue(r)},Ct=e=>{const t=document.createElement("li");return ie(t,h["progress-step"]),K(t,e),t},Et=e=>{const t=document.createElement("li");return ie(t,h["progress-step-line"]),e.progressStepsDistance&&ae(t,"width",e.progressStepsDistance),t},At=(e,t)=>{const r=R();r&&(le(r),de(r,Boolean(t.title||t.titleText),"block"),t.title&&Ie(t.title,r),t.titleText&&(r.innerText=t.titleText),ee(r,t,"title"))},Ot=(e,t)=>{var r;kt(e,t),je(e,t),xt(e,t),rt(e,t),lt(e,t),At(e,t),Ne(e,t),et(e,t),Re(e,t),tt(e,t);const n=I();"function"===typeof t.didRender&&n&&t.didRender(n),null===(r=s.eventEmitter)||void 0===r||r.emit("didRender",n)},It=()=>pe(I()),Tt=()=>{var e;return null===(e=N())||void 0===e?void 0:e.click()},Mt=()=>{var e;return null===(e=F())||void 0===e?void 0:e.click()},Rt=()=>{var e;return null===(e=j())||void 0===e?void 0:e.click()},Pt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Dt=e=>{if(e.keydownTarget&&e.keydownHandlerAdded&&e.keydownHandler){const t=e.keydownHandler;e.keydownTarget.removeEventListener("keydown",t,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1}},Lt=(e,t,r)=>{if(Dt(e),!t.toast){const n=e=>Ft(t,e,r);e.keydownHandler=n;const i=t.keydownListenerCapture?window:I();if(i){e.keydownTarget=i,e.keydownListenerCapture=t.keydownListenerCapture;const r=n;e.keydownTarget.addEventListener("keydown",r,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0}}},Bt=(e,t)=>{var r;const n=Y();return n.length?(e+=t,-2===e&&(e=n.length-1),e===n.length?e=0:-1===e&&(e=n.length-1),n[e].focus(),!(C()&&n[e]instanceof HTMLIFrameElement)):(null===(r=I())||void 0===r||r.focus(),!0)},Nt=["ArrowRight","ArrowDown"],jt=["ArrowLeft","ArrowUp"],Ft=(e,t,r)=>{e&&(t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Ut(t,e):"Tab"===t.key?zt(t):[...Nt,...jt].includes(t.key)?qt(t.key):"Escape"===t.key&&Ht(t,e,r)))},Ut=(e,t)=>{if(!_(t.allowEnterKey))return;const r=I();if(!r||!t.input)return;const n=te(r,t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;Tt(),e.preventDefault()}},zt=e=>{const t=e.target,r=Y();let n=-1;for(let o=0;o<r.length;o++)if(t===r[o]){n=o;break}let i=!0;i=e.shiftKey?Bt(n,-1):Bt(n,1),e.stopPropagation(),i&&e.preventDefault()},qt=e=>{const t=q(),r=N(),n=F(),i=j();if(!t||!r||!n||!i)return;const o=[r,n,i];if(document.activeElement instanceof HTMLElement&&!o.includes(document.activeElement))return;const s=Nt.includes(e)?"nextElementSibling":"previousElementSibling";let a=document.activeElement;if(a){for(let e=0;e<t.children.length;e++){if(a=a[s],!a)return;if(a instanceof HTMLButtonElement&&pe(a))break}a instanceof HTMLButtonElement&&a.focus()}},Ht=(e,t,r)=>{e.preventDefault(),_(t.allowEscapeKey)&&r(Pt.esc)};var $t={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const Wt=()=>{const e=E(),t=Array.from(document.body.children);t.forEach(t=>{t.contains(e)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))})},Vt=()=>{const e=Array.from(document.body.children);e.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")})},Yt="undefined"!==typeof window&&Boolean(window.GestureEvent),Xt=Yt&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Jt=()=>{if(Yt&&!Z(document.body,h.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",ie(document.body,h.iosfix),Gt()}},Gt=()=>{const e=E();if(!e)return;let t;e.ontouchstart=e=>{t=Kt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},Kt=e=>{const t=e.target,r=E(),n=P();return!(!r||!n)&&(!Zt(e)&&!Qt(e)&&(t===r||!(me(r)||!(t instanceof HTMLElement)||ge(t,n)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||me(n)&&n.contains(t))))},Zt=e=>Boolean(e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType),Qt=e=>e.touches&&e.touches.length>1,er=()=>{if(Z(document.body,h.iosfix)){const e=parseInt(document.body.style.top,10);oe(document.body,h.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}},tr=()=>{const e=document.createElement("div");e.className=h["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t};let rr=null;const nr=e=>{null===rr&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(rr=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${rr+tr()}px`)},ir=()=>{null!==rr&&(document.body.style.paddingRight=`${rr}px`,rr=null)};function or(e,t,r,n){J()?fr(e,n):(c(r).then(()=>fr(e,n)),Dt(s)),Yt?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),X()&&(ir(),er(),Vt()),sr()}function sr(){oe([document.documentElement,document.body],[h.shown,h["height-auto"],h["no-backdrop"],h["toast-shown"]])}function ar(e){e=hr(e);const t=$t.swalPromiseResolve.get(this),r=cr(this);this.isAwaitingPromise?e.isDismissed||(lr(this),t(e)):r&&t(e)}const cr=e=>{const t=I();if(!t)return!1;const r=qe.innerParams.get(e);if(!r||Z(t,r.hideClass.popup))return!1;oe(t,r.showClass.popup),ie(t,r.hideClass.popup);const n=E();return oe(n,r.showClass.backdrop),ie(n,r.hideClass.backdrop),dr(e,t,r),!0};function ur(e){const t=$t.swalPromiseReject.get(this);lr(this),t&&t(e)}const lr=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,qe.innerParams.get(e)||e._destroy())},hr=e=>"undefined"===typeof e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),dr=(e,t,r)=>{var n;const i=E(),o=ve(t);"function"===typeof r.willClose&&r.willClose(t),null===(n=s.eventEmitter)||void 0===n||n.emit("willClose",t),o&&i?pr(e,t,i,Boolean(r.returnFocus),r.didClose):i&&or(e,i,Boolean(r.returnFocus),r.didClose)},pr=(e,t,r,n,i)=>{s.swalCloseEventFinishedCallback=or.bind(null,e,r,n,i);const o=function(e){var r;e.target===t&&(null===(r=s.swalCloseEventFinishedCallback)||void 0===r||r.call(s),delete s.swalCloseEventFinishedCallback,t.removeEventListener("animationend",o),t.removeEventListener("transitionend",o))};t.addEventListener("animationend",o),t.addEventListener("transitionend",o)},fr=(e,t)=>{setTimeout(()=>{var r;"function"===typeof t&&t.bind(e.params)(),null===(r=s.eventEmitter)||void 0===r||r.emit("didClose"),e._destroy&&e._destroy()})},mr=e=>{let t=I();if(t||new yi,t=I(),!t)return;const r=z();J()?ue(T()):gr(t,e),ce(r),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},gr=(e,t)=>{const r=q(),n=z();r&&n&&(!t&&pe(N())&&(t=N()),ce(r),t&&(ue(t),n.setAttribute("data-button-to-replace",t.className),r.insertBefore(n,t)),ie([e,r],h.loading))},vr=(e,t)=>{"select"===t.input||"radio"===t.input?kr(e,t):["text","email","number","tel","textarea"].some(e=>e===t.input)&&(k(t.inputValue)||x(t.inputValue))&&(mr(N()),Sr(e,t))},yr=(e,t)=>{const r=e.getInput();if(!r)return null;switch(t.input){case"checkbox":return wr(r);case"radio":return br(r);case"file":return _r(r);default:return t.inputAutoTrim?r.value.trim():r.value}},wr=e=>e.checked?1:0,br=e=>e.checked?e.value:null,_r=e=>e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,kr=(e,t)=>{const r=I();if(!r)return;const n=e=>{"select"===t.input?xr(r,Er(e),t):"radio"===t.input&&Cr(r,Er(e),t)};k(t.inputOptions)||x(t.inputOptions)?(mr(N()),S(t.inputOptions).then(t=>{e.hideLoading(),n(t)})):"object"===typeof t.inputOptions?n(t.inputOptions):v("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof t.inputOptions)},Sr=(e,t)=>{const r=e.getInput();r&&(ue(r),S(t.inputValue).then(n=>{r.value="number"===t.input?`${parseFloat(n)||0}`:`${n}`,ce(r),r.focus(),e.hideLoading()}).catch(t=>{v(`Error in inputValue promise: ${t}`),r.value="",ce(r),r.focus(),e.hideLoading()}))};function xr(e,t,r){const n=se(e,h.select);if(!n)return;const i=(e,t,n)=>{const i=document.createElement("option");i.value=n,K(i,t),i.selected=Ar(n,r.inputValue),e.appendChild(i)};t.forEach(e=>{const t=e[0],r=e[1];if(Array.isArray(r)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),r.forEach(t=>i(e,t[1],t[0]))}else i(n,r,t)}),n.focus()}function Cr(e,t,r){const n=se(e,h.radio);if(!n)return;t.forEach(e=>{const t=e[0],i=e[1],o=document.createElement("input"),s=document.createElement("label");o.type="radio",o.name=h.radio,o.value=t,Ar(t,r.inputValue)&&(o.checked=!0);const a=document.createElement("span");K(a,i),a.className=h.label,s.appendChild(o),s.appendChild(a),n.appendChild(s)});const i=n.querySelectorAll("input");i.length&&i[0].focus()}const Er=e=>{const t=e instanceof Map?Array.from(e):Object.entries(e);return t.map(([e,t])=>[e,"object"===typeof t?Er(t):t])},Ar=(e,t)=>Boolean(t)&&null!==t&&void 0!==t&&t.toString()===e.toString(),Or=e=>{const t=qe.innerParams.get(e);e.disableButtons(),t.input?Mr(e,"confirm"):Br(e,!0)},Ir=e=>{const t=qe.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Mr(e,"deny"):Pr(e,!1)},Tr=(e,t)=>{e.disableButtons(),t(Pt.cancel)},Mr=(e,t)=>{const r=qe.innerParams.get(e);if(!r.input)return void v(`The "input" parameter is needed to be set when using returnInputValueOn${m(t)}`);const n=e.getInput(),i=yr(e,r);r.inputValidator?Rr(e,i,t):n&&!n.checkValidity()?(e.enableButtons(),e.showValidationMessage(r.validationMessage||n.validationMessage)):"deny"===t?Pr(e,i):Br(e,i)},Rr=(e,t,r)=>{const n=qe.innerParams.get(e);e.disableInput();const i=Promise.resolve().then(()=>S(n.inputValidator(t,n.validationMessage)));i.then(n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===r?Pr(e,t):Br(e,t)})},Pr=(e,t)=>{const r=qe.innerParams.get(e);if(r.showLoaderOnDeny&&mr(F()),r.preDeny){e.isAwaitingPromise=!0;const n=Promise.resolve().then(()=>S(r.preDeny(t,r.validationMessage)));n.then(r=>{!1===r?(e.hideLoading(),lr(e)):e.close({isDenied:!0,value:"undefined"===typeof r?t:r})}).catch(t=>Lr(e,t))}else e.close({isDenied:!0,value:t})},Dr=(e,t)=>{e.close({isConfirmed:!0,value:t})},Lr=(e,t)=>{e.rejectPromise(t)},Br=(e,t)=>{const r=qe.innerParams.get(e);if(r.showLoaderOnConfirm&&mr(),r.preConfirm){e.resetValidationMessage(),e.isAwaitingPromise=!0;const n=Promise.resolve().then(()=>S(r.preConfirm(t,r.validationMessage)));n.then(r=>{pe(B())||!1===r?(e.hideLoading(),lr(e)):Dr(e,"undefined"===typeof r?t:r)}).catch(t=>Lr(e,t))}else Dr(e,t)};function Nr(){const e=qe.innerParams.get(this);if(!e)return;const t=qe.domCache.get(this);ue(t.loader),J()?e.icon&&ce(T()):jr(t),oe([t.popup,t.actions],h.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1;const r=qe.focusedElement.get(this);r instanceof HTMLElement&&document.activeElement===document.body&&r.focus(),qe.focusedElement.delete(this)}const jr=e=>{const t=e.loader.getAttribute("data-button-to-replace"),r=t?e.popup.getElementsByClassName(t):[];r.length?ce(r[0],"inline-block"):fe()&&ue(e.actions)};function Fr(){const e=qe.innerParams.get(this),t=qe.domCache.get(this);return t?te(t.popup,e.input):null}function Ur(e,t,r){const n=qe.domCache.get(e);t.forEach(e=>{n[e].disabled=r})}function zr(e,t){const r=I();if(r&&e)if("radio"===e.type){const e=r.querySelectorAll(`[name="${h.radio}"]`);for(let r=0;r<e.length;r++)e[r].disabled=t}else e.disabled=t}function qr(){Ur(this,["confirmButton","denyButton","cancelButton"],!1);const e=qe.focusedElement.get(this);e instanceof HTMLElement&&document.activeElement===document.body&&e.focus(),qe.focusedElement.delete(this)}function Hr(){qe.focusedElement.set(this,document.activeElement),Ur(this,["confirmButton","denyButton","cancelButton"],!0)}function $r(){zr(this.getInput(),!1)}function Wr(){zr(this.getInput(),!0)}function Vr(e){const t=qe.domCache.get(this),r=qe.innerParams.get(this);K(t.validationMessage,e),t.validationMessage.className=h["validation-message"],r.customClass&&r.customClass.validationMessage&&ie(t.validationMessage,r.customClass.validationMessage),ce(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid","true"),n.setAttribute("aria-describedby",h["validation-message"]),re(n),ie(n,h.inputerror))}function Yr(){const e=qe.domCache.get(this);e.validationMessage&&ue(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),oe(t,h.inputerror))}const Xr={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,topLayer:!1},Jr=["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"],Gr={allowEnterKey:void 0},Kr=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Zr=e=>Object.prototype.hasOwnProperty.call(Xr,e),Qr=e=>-1!==Jr.indexOf(e),en=e=>Gr[e],tn=e=>{Zr(e)||g(`Unknown parameter "${e}"`)},rn=e=>{Kr.includes(e)&&g(`The parameter "${e}" is incompatible with toasts`)},nn=e=>{const t=en(e);t&&b(e,t)},on=e=>{!1===e.backdrop&&e.allowOutsideClick&&g('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&!["light","dark","auto","minimal","borderless","bootstrap-4","bootstrap-4-light","bootstrap-4-dark","bootstrap-5","bootstrap-5-light","bootstrap-5-dark","material-ui","material-ui-light","material-ui-dark","embed-iframe","bulma","bulma-light","bulma-dark"].includes(e.theme)&&g(`Invalid theme "${e.theme}"`);for(const t in e)tn(t),e.toast&&rn(t),nn(t)};function sn(e){const t=E(),r=I(),n=qe.innerParams.get(this);if(!r||Z(r,n.hideClass.popup))return void g("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=an(e),o=Object.assign({},n,i);on(o),t&&(t.dataset["swal2Theme"]=o.theme),Ot(this,o),qe.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const an=e=>{const t={};return Object.keys(e).forEach(r=>{if(Qr(r)){const n=e;t[r]=n[r]}else g(`Invalid parameter to update: ${r}`)}),t};function cn(){var e;const t=qe.domCache.get(this),r=qe.innerParams.get(this);r?(t.popup&&s.swalCloseEventFinishedCallback&&(s.swalCloseEventFinishedCallback(),delete s.swalCloseEventFinishedCallback),"function"===typeof r.didDestroy&&r.didDestroy(),null===(e=s.eventEmitter)||void 0===e||e.emit("didDestroy"),un(this)):ln(this)}const un=e=>{ln(e),delete e.params,delete s.keydownHandler,delete s.keydownTarget,delete s.currentInstance},ln=e=>{e.isAwaitingPromise?(hn(qe,e),e.isAwaitingPromise=!0):(hn($t,e),hn(qe,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)},hn=(e,t)=>{for(const r in e)e[r].delete(t)};var dn=Object.freeze({__proto__:null,_destroy:cn,close:ar,closeModal:ar,closePopup:ar,closeToast:ar,disableButtons:Hr,disableInput:Wr,disableLoading:Nr,enableButtons:qr,enableInput:$r,getInput:Fr,handleAwaitingPromise:lr,hideLoading:Nr,rejectPromise:ur,resetValidationMessage:Yr,showValidationMessage:Vr,update:sn});const pn=(e,t,r)=>{e.toast?fn(e,t,r):(vn(t),yn(t),wn(e,t,r))},fn=(e,t,r)=>{t.popup.onclick=()=>{e&&(mn(e)||e.timer||e.input)||r(Pt.close)}},mn=e=>Boolean(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let gn=!1;const vn=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(gn=!0)}}},yn=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))&&(gn=!0)}}},wn=(e,t,r)=>{t.container.onclick=n=>{gn?gn=!1:n.target===t.container&&_(e.allowOutsideClick)&&r(Pt.backdrop)}},bn=e=>"object"===typeof e&&null!==e&&"jquery"in e,_n=e=>e instanceof Element||bn(e),kn=e=>{const t={};return"object"!==typeof e[0]||_n(e[0])?["title","html","icon"].forEach((r,n)=>{const i=e[n];"string"===typeof i||_n(i)?t[r]=i:void 0!==i&&v(`Unexpected type of ${r}! Expected "string" or "Element", got ${typeof i}`)}):Object.assign(t,e[0]),t};function Sn(...e){return new this(...e)}function xn(e){class t extends(this){_main(t,r){return super._main(t,Object.assign({},e,r))}}return t}const Cn=()=>s.timeout&&s.timeout.getTimerLeft(),En=()=>{if(s.timeout)return we(),s.timeout.stop()},An=()=>{if(s.timeout){const e=s.timeout.start();return ye(e),e}},On=()=>{const e=s.timeout;return e&&(e.running?En():An())},In=e=>{if(s.timeout){const t=s.timeout.increase(e);return ye(t,!0),t}},Tn=()=>Boolean(s.timeout&&s.timeout.isRunning());let Mn=!1;const Rn={};function Pn(e="data-swal-template"){Rn[e]=this,Mn||(document.body.addEventListener("click",Dn),Mn=!0)}const Dn=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in Rn){const r=t.getAttribute&&t.getAttribute(e);if(r)return void Rn[e].fire({template:r})}};class Ln{constructor(){this.events={}}_getHandlersByEventName(e){return"undefined"===typeof this.events[e]&&(this.events[e]=[]),this.events[e]}on(e,t){const r=this._getHandlersByEventName(e);r.includes(t)||r.push(t)}once(e,t){const r=(...n)=>{this.removeListener(e,r),t.apply(this,n)};this.on(e,r)}emit(e,...t){this._getHandlersByEventName(e).forEach(e=>{try{e.apply(this,t)}catch(v){console.error(v)}})}removeListener(e,t){const r=this._getHandlersByEventName(e),n=r.indexOf(t);n>-1&&r.splice(n,1)}removeAllListeners(e){void 0!==this.events[e]&&(this.events[e].length=0)}reset(){this.events={}}}s.eventEmitter=new Ln;const Bn=(e,t)=>{s.eventEmitter&&s.eventEmitter.on(e,t)},Nn=(e,t)=>{s.eventEmitter&&s.eventEmitter.once(e,t)},jn=(e,t)=>{s.eventEmitter&&(e?t?s.eventEmitter.removeListener(e,t):s.eventEmitter.removeAllListeners(e):s.eventEmitter.reset())};var Fn=Object.freeze({__proto__:null,argsToParams:kn,bindClickHandler:Pn,clickCancel:Rt,clickConfirm:Tt,clickDeny:Mt,enableLoading:mr,fire:Sn,getActions:q,getCancelButton:j,getCloseButton:W,getConfirmButton:N,getContainer:E,getDenyButton:F,getFocusableElements:Y,getFooter:H,getHtmlContainer:P,getIcon:T,getIconContent:M,getImage:D,getInputLabel:U,getLoader:z,getPopup:I,getProgressSteps:L,getTimerLeft:Cn,getTimerProgressBar:$,getTitle:R,getValidationMessage:B,increaseTimer:In,isDeprecatedParameter:en,isLoading:G,isTimerRunning:Tn,isUpdatableParameter:Qr,isValidParameter:Zr,isVisible:It,mixin:xn,off:jn,on:Bn,once:Nn,resumeTimer:An,showLoading:mr,stopTimer:En,toggleTimer:On});class Un{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 zn=["swal-title","swal-html","swal-footer"],qn=e=>{const t="string"===typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const r=t.content;Gn(r);const n=Object.assign(Hn(r),$n(r),Wn(r),Vn(r),Yn(r),Xn(r),Jn(r,zn));return n},Hn=e=>{const t={},r=Array.from(e.querySelectorAll("swal-param"));return r.forEach(e=>{Kn(e,["name","value"]);const r=e.getAttribute("name"),n=e.getAttribute("value");r&&n&&(r in Xr&&"boolean"===typeof Xr[r]?t[r]="false"!==n:r in Xr&&"object"===typeof Xr[r]?t[r]=JSON.parse(n):t[r]=n)}),t},$n=e=>{const t={},r=Array.from(e.querySelectorAll("swal-function-param"));return r.forEach(e=>{const r=e.getAttribute("name"),n=e.getAttribute("value");r&&n&&(t[r]=new Function(`return ${n}`)())}),t},Wn=e=>{const t={},r=Array.from(e.querySelectorAll("swal-button"));return r.forEach(e=>{Kn(e,["type","color","aria-label"]);const r=e.getAttribute("type");if(!r||!["confirm","cancel","deny"].includes(r))return;t[`${r}ButtonText`]=e.innerHTML,t[`show${m(r)}Button`]=!0;const n=e.getAttribute("color");null!==n&&(t[`${r}ButtonColor`]=n);const i=e.getAttribute("aria-label");null!==i&&(t[`${r}ButtonAriaLabel`]=i)}),t},Vn=e=>{const t={},r=e.querySelector("swal-image");if(r){Kn(r,["src","width","height","alt"]);const e=r.getAttribute("src");null!==e&&(t.imageUrl=e||void 0);const n=r.getAttribute("width");null!==n&&(t.imageWidth=n||void 0);const i=r.getAttribute("height");null!==i&&(t.imageHeight=i||void 0);const o=r.getAttribute("alt");null!==o&&(t.imageAlt=o||void 0)}return t},Yn=e=>{const t={},r=e.querySelector("swal-icon");return r&&(Kn(r,["type","color"]),r.hasAttribute("type")&&(t.icon=r.getAttribute("type")),r.hasAttribute("color")&&(t.iconColor=r.getAttribute("color")),t.iconHtml=r.innerHTML),t},Xn=e=>{const t={},r=e.querySelector("swal-input");r&&(Kn(r,["type","label","placeholder","value"]),t.input=r.getAttribute("type")||"text",r.hasAttribute("label")&&(t.inputLabel=r.getAttribute("label")),r.hasAttribute("placeholder")&&(t.inputPlaceholder=r.getAttribute("placeholder")),r.hasAttribute("value")&&(t.inputValue=r.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach(e=>{Kn(e,["value"]);const r=e.getAttribute("value");if(!r)return;const n=e.innerHTML;t.inputOptions[r]=n})),t},Jn=(e,t)=>{const r={};for(const n in t){const i=t[n],o=e.querySelector(i);o&&(Kn(o,[]),r[i.replace(/^swal-/,"")]=o.innerHTML.trim())}return r},Gn=e=>{const t=zn.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(e=>{const r=e.tagName.toLowerCase();t.includes(r)||g(`Unrecognized element <${r}>`)})},Kn=(e,t)=>{Array.from(e.attributes).forEach(r=>{-1===t.indexOf(r.name)&&g([`Unrecognized attribute "${r.name}" on <${e.tagName.toLowerCase()}>.`,""+(t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element.")])})},Zn=10,Qn=e=>{var t,r;const n=E(),i=I();if(!n||!i)return;"function"===typeof e.willOpen&&e.willOpen(i),null===(t=s.eventEmitter)||void 0===t||t.emit("willOpen",i);const o=window.getComputedStyle(document.body),a=o.overflowY;if(ni(n,i,e),setTimeout(()=>{ti(n,i)},Zn),X()&&(ri(n,void 0!==e.scrollbarPadding&&e.scrollbarPadding,a),Wt()),Xt&&!1===e.backdrop&&i.scrollHeight>n.clientHeight&&(n.style.pointerEvents="auto"),J()||s.previousActiveElement||(s.previousActiveElement=document.activeElement),"function"===typeof e.didOpen){const t=e.didOpen;setTimeout(()=>t(i))}null===(r=s.eventEmitter)||void 0===r||r.emit("didOpen",i)},ei=e=>{const t=I();if(!t||e.target!==t)return;const r=E();r&&(t.removeEventListener("animationend",ei),t.removeEventListener("transitionend",ei),r.style.overflowY="auto",oe(r,h["no-transition"]))},ti=(e,t)=>{ve(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",ei),t.addEventListener("transitionend",ei)):e.style.overflowY="auto"},ri=(e,t,r)=>{Jt(),t&&"hidden"!==r&&nr(r),setTimeout(()=>{e.scrollTop=0})},ni=(e,t,r)=>{var n;null!==(n=r.showClass)&&void 0!==n&&n.backdrop&&ie(e,r.showClass.backdrop),r.animation?(t.style.setProperty("opacity","0","important"),ce(t,"grid"),setTimeout(()=>{var e;null!==(e=r.showClass)&&void 0!==e&&e.popup&&ie(t,r.showClass.popup),t.style.removeProperty("opacity")},Zn)):ce(t,"grid"),ie([document.documentElement,document.body],h.shown),r.heightAuto&&r.backdrop&&!r.toast&&ie([document.documentElement,document.body],h["height-auto"])};var ii={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function oi(e){e.inputValidator||("email"===e.input&&(e.inputValidator=ii["email"]),"url"===e.input&&(e.inputValidator=ii["url"]))}function si(e){(!e.target||"string"===typeof e.target&&!document.querySelector(e.target)||"string"!==typeof e.target&&!e.target.appendChild)&&(g('Target parameter is not valid, defaulting to "body"'),e.target="body")}function ai(e){oi(e),e.showLoaderOnConfirm&&!e.preConfirm&&g("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"),si(e),"string"===typeof e.title&&(e.title=e.title.split("\n").join("<br />")),Oe(e)}let ci;var ui=new WeakMap;class li{constructor(...e){if(n(this,ui,Promise.resolve({isConfirmed:!1,isDenied:!1,isDismissed:!0})),"undefined"===typeof window)return;ci=this;const t=Object.freeze(this.constructor.argsToParams(e));this.params=t,this.isAwaitingPromise=!1,i(ui,this,this._main(ci.params))}_main(e,t={}){if(on(Object.assign({},t,e)),s.currentInstance){const e=$t.swalPromiseResolve.get(s.currentInstance),{isAwaitingPromise:t}=s.currentInstance;s.currentInstance._destroy(),t||e({isDismissed:!0}),X()&&Vt()}s.currentInstance=ci;const r=di(e,t);ai(r),Object.freeze(r),s.timeout&&(s.timeout.stop(),delete s.timeout),clearTimeout(s.restoreFocusTimeout);const n=pi(ci);return Ot(ci,r),qe.innerParams.set(ci,r),hi(ci,n,r)}then(e){return r(ui,this).then(e)}finally(e){return r(ui,this).finally(e)}}const hi=(e,t,r)=>new Promise((n,i)=>{const o=t=>{e.close({isDismissed:!0,dismiss:t,isConfirmed:!1,isDenied:!1})};$t.swalPromiseResolve.set(e,n),$t.swalPromiseReject.set(e,i),t.confirmButton.onclick=()=>{Or(e)},t.denyButton.onclick=()=>{Ir(e)},t.cancelButton.onclick=()=>{Tr(e,o)},t.closeButton.onclick=()=>{o(Pt.close)},pn(r,t,o),Lt(s,r,o),vr(e,r),Qn(r),fi(s,r,o),mi(t,r),setTimeout(()=>{t.container.scrollTop=0})}),di=(e,t)=>{const r=qn(e),n=Object.assign({},Xr,t,r,e);return n.showClass=Object.assign({},Xr.showClass,n.showClass),n.hideClass=Object.assign({},Xr.hideClass,n.hideClass),!1===n.animation&&(n.showClass={backdrop:"swal2-noanimation"},n.hideClass={}),n},pi=e=>{const t={popup:I(),container:E(),actions:q(),confirmButton:N(),denyButton:F(),cancelButton:j(),loader:z(),closeButton:W(),validationMessage:B(),progressSteps:L()};return qe.domCache.set(e,t),t},fi=(e,t,r)=>{const n=$();ue(n),t.timer&&(e.timeout=new Un(()=>{r("timer"),delete e.timeout},t.timer),t.timerProgressBar&&n&&(ce(n),ee(n,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&ye(t.timer)})))},mi=(e,t)=>{if(!t.toast)return _(t.allowEnterKey)?void(gi(e)||vi(e,t)||Bt(-1,1)):(b("allowEnterKey","preConfirm: () => false"),void e.popup.focus())},gi=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const r of t)if(r instanceof HTMLElement&&pe(r))return r.focus(),!0;return!1},vi=(e,t)=>t.focusDeny&&pe(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&pe(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!pe(e.confirmButton))&&(e.confirmButton.focus(),!0);li.prototype.disableButtons=Hr,li.prototype.enableButtons=qr,li.prototype.getInput=Fr,li.prototype.disableInput=Wr,li.prototype.enableInput=$r,li.prototype.hideLoading=Nr,li.prototype.disableLoading=Nr,li.prototype.showValidationMessage=Vr,li.prototype.resetValidationMessage=Yr,li.prototype.close=ar,li.prototype.closePopup=ar,li.prototype.closeModal=ar,li.prototype.closeToast=ar,li.prototype.rejectPromise=ur,li.prototype.update=sn,li.prototype._destroy=cn,Object.assign(li,Fn),Object.keys(dn).forEach(e=>{li[e]=function(...t){if(ci&&ci[e])return ci[e](...t)}}),li.DismissReason=Pt,li.version="11.26.24";const yi=li;return yi.default=yi,yi}),"undefined"!==typeof this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var r=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(r),r.styleSheet)r.styleSheet.disabled||(r.styleSheet.cssText=t);else try{r.innerHTML=t}catch(e){r.innerText=t}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[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);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@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);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}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:auto}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:var(--swal2-backdrop-transition);-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)[popover]{width:auto;border:0}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;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-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:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}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:var(--swal2-action-button-transition);border:none;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-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}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);background:var(--swal2-footer-background);color:var(--swal2-footer-color);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:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-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:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);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):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}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:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}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;zoom:var(--swal2-icon-zoom);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)}@container swal2-popup style(--swal2-icon-animations:true){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}@container swal2-popup style(--swal2-icon-animations:true){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}@container swal2-popup style(--swal2-icon-animations:true){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}@container swal2-popup style(--swal2-icon-animations:true){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)}@container swal2-popup style(--swal2-icon-animations:true){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;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:auto}.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}@container swal2-popup style(--swal2-icon-animations:true){.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:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);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}}')},6253:function(e,t,r){"use strict";var n=r(8705);const i="AES-256-CBC",o=parseInt(i.match(/\d+/)?.[0]),s=(e,t)=>{const r=n.lib.WordArray.random(16),i=n.lib.WordArray.random(256),s=999,a=o/4,c=n.PBKDF2(t,i,{hasher:n.algo.SHA512,keySize:a/8,iterations:s}),u=n.AES.encrypt(e,c,{mode:n.mode.CBC,iv:r}),l=n.enc.Base64.stringify(u.ciphertext),h={ciphertext:l,iv:n.enc.Hex.stringify(r),salt:n.enc.Hex.stringify(i),iterations:s};return n.enc.Base64.stringify(n.enc.Utf8.parse(JSON.stringify(h)))},a=(e,t)=>{const r=JSON.parse(n.enc.Utf8.stringify(n.enc.Base64.parse(e))),i=n.enc.Hex.parse(r.salt),s=n.enc.Hex.parse(r.iv),a=r.ciphertext;let c=parseInt(r.iterations);c<=0&&(c=999);const u=o/4,l=n.PBKDF2(t,i,{hasher:n.algo.SHA512,keySize:u/8,iterations:c}),h=n.AES.decrypt(a,l,{mode:n.mode.CBC,iv:s});return h.toString(n.enc.Utf8)},c="-----BEGIN PUBLIC KEY-----",u="-----END PUBLIC KEY-----",l="-----BEGIN PRIVATE KEY-----",h="-----END PRIVATE KEY-----",d=()=>{if("undefined"!==typeof globalThis&&globalThis.crypto?.subtle)return globalThis.crypto.subtle;throw new Error("Web Crypto API is not available in this environment")},p=(e,t,r,n)=>{if(!e.includes(t)||!e.includes(r))throw new Error(`Invalid ${n} key format: expected PEM`);const i=e.replace(t,"").replace(r,"").replace(/\s+/g,"");if("function"!==typeof atob)throw new Error("Base64 decoding is not available in this environment");const o=atob(i),s=new Uint8Array(o.length);for(let a=0;a<o.length;a++)s[a]=o.charCodeAt(a);return s.buffer},f=e=>{let t="";const r=new Uint8Array(e);if(r.forEach(e=>{t+=String.fromCharCode(e)}),"function"!==typeof btoa)throw new Error("Base64 encoding is not available in this environment");return btoa(t)},m=e=>{if("function"!==typeof atob)throw new Error("Base64 decoding is not available in this environment");const t=atob(e),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r.buffer},g=async(e,t)=>{const r=d(),n="public"===t?p(e,c,u,"public"):p(e,l,h,"private");return r.importKey("public"===t?"spki":"pkcs8",n,{name:"RSA-OAEP",hash:"SHA-256"},!1,"public"===t?["encrypt"]:["decrypt"])},v=async(e,t)=>{const r=d(),n=await g(t,"public"),i=(new TextEncoder).encode(e),o=await r.encrypt({name:"RSA-OAEP"},n,i);return f(o)},y=async(e,t)=>{const r=d(),n=await g(t,"private"),i=m(e),o=await r.decrypt({name:"RSA-OAEP"},n,i);return(new TextDecoder).decode(o)};t.A={encrypt:s,decrypt:a,encryptWithPublicKey:v,decryptWithPrivateKey:y}},6448:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{allowOnlyNumber:function(){return allowOnlyNumber},allowedDecimalPlaces:function(){return allowedDecimalPlaces},customPasswordValidator:function(){return customPasswordValidator},dateFormatter:function(){return dateFormatter},decrypt:function(){return decrypt},decryptWithPrivateKey:function(){return decryptWithPrivateKey},encrypt:function(){return encrypt},encryptWithPublicKey:function(){return encryptWithPublicKey},fromNow:function(){return fromNow},getBgColorFromName:function(){return getBgColorFromName},getLocalStorageItem:function(){return getLocalStorageItem},getObjectProperty:function(){return getObjectProperty},getSessionStorageItem:function(){return getSessionStorageItem},getTextColorFromName:function(){return getTextColorFromName},highlightText:function(){return highlightText},httpBuildQuery:function(){return httpBuildQuery},imageExists:function(){return imageExists},isArray:function(){return isArray},isEmptyObj:function(){return isEmptyObj},isFunction:function(){return isFunction},isObject:function(){return isObject},isString:function(){return isString},loadRemoteEmbeddable:function(){return loadRemoteEmbeddable},numberFormat:function(){return numberFormat},removeLocalStorageItem:function(){return removeLocalStorageItem},removeSessionStorageItem:function(){return removeSessionStorageItem},setLocalStorageItem:function(){return setLocalStorageItem},setObjectProperty:function(){return setObjectProperty},setSessionStorageItem:function(){return setSessionStorageItem},ucFirst:function(){return ucFirst},uuid:function(){return uuid}});var lodash_es__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(8552),lodash_es__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(8938),lodash_es__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4441),_encryption_service__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(6253),date_fns__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2775),date_fns__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(129);const localCache=new Map,sessionCache=new Map,isString=e=>"string"===typeof e||e instanceof String,isArray=e=>Array.isArray(e),isFunction=e=>"function"===typeof e,isObject=e=>!!e&&e.constructor===Object,ucFirst=e=>e[0].toUpperCase()+e.substring(1).toLowerCase(),isEmptyObj=e=>(0,lodash_es__WEBPACK_IMPORTED_MODULE_1__.A)(e)&&!Object.keys(e).length,getObjectProperty=(e,t,r)=>{const n=(0,lodash_es__WEBPACK_IMPORTED_MODULE_0__.A)(e,t,r);return n||r},setObjectProperty=(e,t,r)=>(0,lodash_es__WEBPACK_IMPORTED_MODULE_2__.A)(e,t,r),getBgColorFromName=e=>{let t=0;e.split("").forEach(e=>{t=e.charCodeAt(0)+((t<<5)-t)});let r="#";for(let n=0;n<3;n++){const e=t>>8*n&255;r+=e.toString(16).padStart(2,"0")}return r},getTextColorFromName=(e,t="#FFFFFF",r="#000000")=>{const n=getBgColorFromName(e),i="#"===n.charAt(0)?n.substring(1,7):n,o=parseInt(i.substring(0,2),16),s=parseInt(i.substring(2,4),16),a=parseInt(i.substring(4,6),16),c=[o/255,s/255,a/255],u=c.map(e=>e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)),l=.2126*u[0]+.7152*u[1]+.0722*u[2];return l>.179?r:t},encrypt=(e,t="")=>_encryption_service__WEBPACK_IMPORTED_MODULE_3__.A.encrypt(e,t),decrypt=(e,t="")=>_encryption_service__WEBPACK_IMPORTED_MODULE_3__.A.decrypt(e,t),encryptWithPublicKey=async(e,t)=>await _encryption_service__WEBPACK_IMPORTED_MODULE_3__.A.encryptWithPublicKey(e,t),decryptWithPrivateKey=async(e,t)=>await _encryption_service__WEBPACK_IMPORTED_MODULE_3__.A.decryptWithPrivateKey(e,t),setLocalStorageItem=(e,t,r="production")=>{localCache.set(e,JSON.stringify(t)),"production"===r?localStorage.setItem(e,encrypt(JSON.stringify(t))):localStorage.setItem(e,JSON.stringify(t))},getLocalStorageItem=(e,t="production")=>{if(localCache.has(e))return JSON.parse(localCache.get(e));const r=localStorage.getItem(e);if(null==r)return null;try{const n="production"===t?JSON.parse(decrypt(r)):JSON.parse(r);return localCache.set(e,JSON.stringify(n)),n}catch{return localStorage.removeItem(e),null}},removeLocalStorageItem=e=>{localCache.delete(e),localStorage.removeItem(e)},setSessionStorageItem=(e,t,r="production")=>{sessionCache.set(e,JSON.stringify(t)),"production"===r?sessionStorage.setItem(e,encrypt(JSON.stringify(t))):sessionStorage.setItem(e,JSON.stringify(t))},getSessionStorageItem=(e,t="production")=>{if(sessionCache.has(e))return JSON.parse(sessionCache.get(e));const r=sessionStorage.getItem(e);if(null==r)return null;try{const n="production"===t?JSON.parse(decrypt(r)):JSON.parse(r);return sessionCache.set(e,JSON.stringify(n)),n}catch{return sessionStorage.removeItem(e),null}},removeSessionStorageItem=e=>{sessionCache.delete(e),sessionStorage.removeItem(e)},customPasswordValidator=e=>{const t=/[A-Z]/.test(e),r=/[a-z]/.test(e),n=/[0-9]/.test(e),i=/[#?!@$%^&*-]/.test(e);return t&&r&&n&&i},allowOnlyNumber=e=>{if(e=e||window.event,"paste"==e.type){const t=e,r=t.clipboardData?.getData("Text");return!isNaN(r)||t.preventDefault()}{const t=e,r=t.which?t.which:t.keyCode;return!(r>31&&(r<48||r>57)&&46!==r)||t.preventDefault()}},allowedDecimalPlaces=(e,t)=>{if(e=e||window.event,"paste"==e.type){const r=e,n=r.clipboardData?.getData("Text"),i=n?.indexOf(".");return!(n.split(".").length>2||t<=0&&2===n.split(".").length||2===n.split(".").length&&i+1!=n.length-t)||r.preventDefault()}{const r=e,n=r.which?r.which:r.keyCode;if(t<=0)return!(["keyup","keydown"].includes(e.type)&&190===n||"keypress"==r.type&&46===n)||r.preventDefault();{const e=r.target,i=e.value,o=i.indexOf(".");return!(o>=0&&o<i.length-t||46===n&&2===i.split(".").length)||r.preventDefault()}}},highlightText=(e,t,r="success")=>e.replace(new RegExp(t,"gi"),e=>`<span class='text-${r}'>${e}</span>`),imageExists=(e,t)=>{const r=new Image;if(r.src=e,r.complete)return void 0!=t&&t(!0),!0;r.onload=()=>(void 0!=t&&t(!0),!0),r.onerror=()=>(void 0!=t&&t(!1),!1)},httpBuildQuery=e=>{const t=encodeURIComponent,r=Object.keys(e).map(r=>t(r)+"="+t(e[r])).join("&");return r},uuid=(e,t)=>{let r=e||"";return r+=Math.random().toString(36).substring(2,8)+Math.random().toString(36).substring(2,8),r+=t||"",r},dateFormatter=(e,t="dd-MM-yyyy")=>(0,date_fns__WEBPACK_IMPORTED_MODULE_4__.A)(new Date(e),t),loadRemoteEmbeddable=url=>(window.__LOADED_EMBEDDABLES__||(window.__LOADED_EMBEDDABLES__=new Set),window.__LOADED_EMBEDDABLES__.has(url)?Promise.resolve({}):eval(`import("${url}")`).then(e=>(window.__LOADED_EMBEDDABLES__.add(url),e))),fromNow=e=>(0,date_fns__WEBPACK_IMPORTED_MODULE_5__.A)(new Date(e),{addSuffix:!0}),numberFormat=(e,t,r,n)=>{t=t||0,"string"===typeof e&&(e=parseFloat(e)),r&&n||(r=".",n=",");let i=Math.round(Math.abs(e)*Math.pow(10,t))+"";i=1>e&&-1<e&&i.length<=t?Array(t-i.length+1).join("0")+i:i;let o=t?i.slice(0,-1*t):i.slice(0);const s=parseInt(o)||0;o=0==s?"0":o;const a=t?i.slice(-1*t):"";let c="";while(o.length>3)c=n+o.slice(-3)+c,o=o.slice(0,-3);return(e<0?"-":"")+o+c+(a?r+a:"")}},5156:function(){},7545:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{A:function(){return n}})},6096:function(e,t,r){"use strict";function n(){this.__data__=[],this.size=0}r.d(t,{A:function(){return w}});var i=n,o=r(6979);function s(e,t){var r=e.length;while(r--)if((0,o.A)(e[r][0],t))return r;return-1}var a=s,c=Array.prototype,u=c.splice;function l(e){var t=this.__data__,r=a(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():u.call(t,r,1),--this.size,!0}var h=l;function d(e){var t=this.__data__,r=a(t,e);return r<0?void 0:t[r][1]}var p=d;function f(e){return a(this.__data__,e)>-1}var m=f;function g(e,t){var r=this.__data__,n=a(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var v=g;function y(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}y.prototype.clear=i,y.prototype["delete"]=h,y.prototype.get=p,y.prototype.has=m,y.prototype.set=v;var w=y},5436:function(e,t,r){"use strict";var n=r(8869),i=r(9600),o=(0,n.A)(i.A,"Map");t.A=o},3269:function(e,t,r){"use strict";r.d(t,{A:function(){return z}});var n=r(8869),i=(0,n.A)(Object,"create"),o=i;function s(){this.__data__=o?o(null):{},this.size=0}var a=s;function c(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var u=c,l="__lodash_hash_undefined__",h=Object.prototype,d=h.hasOwnProperty;function p(e){var t=this.__data__;if(o){var r=t[e];return r===l?void 0:r}return d.call(t,e)?t[e]:void 0}var f=p,m=Object.prototype,g=m.hasOwnProperty;function v(e){var t=this.__data__;return o?void 0!==t[e]:g.call(t,e)}var y=v,w="__lodash_hash_undefined__";function b(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=o&&void 0===t?w:t,this}var _=b;function k(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}k.prototype.clear=a,k.prototype["delete"]=u,k.prototype.get=f,k.prototype.has=y,k.prototype.set=_;var S=k,x=r(6096),C=r(5436);function E(){this.size=0,this.__data__={hash:new S,map:new(C.A||x.A),string:new S}}var A=E;function O(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var I=O;function T(e,t){var r=e.__data__;return I(t)?r["string"==typeof t?"string":"hash"]:r.map}var M=T;function R(e){var t=M(this,e)["delete"](e);return this.size-=t?1:0,t}var P=R;function D(e){return M(this,e).get(e)}var L=D;function B(e){return M(this,e).has(e)}var N=B;function j(e,t){var r=M(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var F=j;function U(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}U.prototype.clear=A,U.prototype["delete"]=P,U.prototype.get=L,U.prototype.has=N,U.prototype.set=F;var z=U},3516:function(e,t,r){"use strict";var n=r(9600),i=n.A.Symbol;t.A=i},6124:function(e,t,r){"use strict";var n=r(9271),i=r(6979),o=Object.prototype,s=o.hasOwnProperty;function a(e,t,r){var o=e[t];s.call(e,t)&&(0,i.A)(o,r)&&(void 0!==r||t in e)||(0,n.A)(e,t,r)}t.A=a},9271:function(e,t,r){"use strict";var n=r(1758);function i(e,t,r){"__proto__"==t&&n.A?(0,n.A)(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.A=i},4044:function(e,t,r){"use strict";r.d(t,{A:function(){return y}});var n=r(3516),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=n.A?n.A.toStringTag:void 0;function c(e){var t=o.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(c){}var i=s.call(e);return n&&(t?e[a]=r:delete e[a]),i}var u=c,l=Object.prototype,h=l.toString;function d(e){return h.call(e)}var p=d,f="[object Null]",m="[object Undefined]",g=n.A?n.A.toStringTag:void 0;function v(e){return null==e?void 0===e?m:f:g&&g in Object(e)?u(e):p(e)}var y=v},5118:function(e,t,r){"use strict";r.d(t,{A:function(){return M}});var n=r(6956),i=r(4089),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;function a(e,t){if((0,n.A)(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!(0,i.A)(e))||(s.test(e)||!o.test(e)||null!=t&&e in Object(t))}var c=a,u=r(3269),l="Expected a function";function h(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(l);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(h.Cache||u.A),r}h.Cache=u.A;var d=h,p=500;function f(e){var t=d(e,function(e){return r.size===p&&r.clear(),e}),r=t.cache;return t}var m=f,g=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,v=/\\(\\)?/g,y=m(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(g,function(e,r,n,i){t.push(n?i.replace(v,"$1"):r||e)}),t}),w=y,b=r(3516);function _(e,t){var r=-1,n=null==e?0:e.length,i=Array(n);while(++r<n)i[r]=t(e[r],r,e);return i}var k=_,S=1/0,x=b.A?b.A.prototype:void 0,C=x?x.toString:void 0;function E(e){if("string"==typeof e)return e;if((0,n.A)(e))return k(e,E)+"";if((0,i.A)(e))return C?C.call(e):"";var t=e+"";return"0"==t&&1/e==-S?"-0":t}var A=E;function O(e){return null==e?"":A(e)}var I=O;function T(e,t){return(0,n.A)(e)?e:c(e,t)?[e]:w(I(e))}var M=T},1758:function(e,t,r){"use strict";var n=r(8869),i=function(){try{var e=(0,n.A)(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();t.A=i},6713:function(e,t,r){"use strict";var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.A=n},8869:function(e,t,r){"use strict";r.d(t,{A:function(){return A}});var n=r(405),i=r(9600),o=i.A["__core-js_shared__"],s=o,a=function(){var e=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function c(e){return!!a&&a in e}var u=c,l=r(7942),h=Function.prototype,d=h.toString;function p(e){if(null!=e){try{return d.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var f=p,m=/[\\^$.*+?()[\]{}|]/g,g=/^\[object .+?Constructor\]$/,v=Function.prototype,y=Object.prototype,w=v.toString,b=y.hasOwnProperty,_=RegExp("^"+w.call(b).replace(m,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function k(e){if(!(0,l.A)(e)||u(e))return!1;var t=(0,n.A)(e)?_:g;return t.test(f(e))}var S=k;function x(e,t){return null==e?void 0:e[t]}var C=x;function E(e,t){var r=C(e,t);return S(r)?r:void 0}var A=E},7902:function(e,t,r){"use strict";function n(e,t){return function(r){return e(t(r))}}r.d(t,{A:function(){return s}});var i=n,o=i(Object.getPrototypeOf,Object),s=o},5378:function(e,t){"use strict";var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t=null==t?r:t,!!t&&("number"==i||"symbol"!=i&&n.test(e))&&e>-1&&e%1==0&&e<t}t.A=i},9600:function(e,t,r){"use strict";var n=r(6713),i="object"==typeof self&&self&&self.Object===Object&&self,o=n.A||i||Function("return this")();t.A=o},9322:function(e,t,r){"use strict";var n=r(4089),i=1/0;function o(e){if("string"==typeof e||(0,n.A)(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}t.A=o},6979:function(e,t){"use strict";function r(e,t){return e===t||e!==e&&t!==t}t.A=r},8552:function(e,t,r){"use strict";r.d(t,{A:function(){return c}});var n=r(5118),i=r(9322);function o(e,t){t=(0,n.A)(t,e);var r=0,o=t.length;while(null!=e&&r<o)e=e[(0,i.A)(t[r++])];return r&&r==o?e:void 0}var s=o;function a(e,t,r){var n=null==e?void 0:s(e,t);return void 0===n?r:n}var c=a},6956:function(e,t){"use strict";var r=Array.isArray;t.A=r},405:function(e,t,r){"use strict";var n=r(4044),i=r(7942),o="[object AsyncFunction]",s="[object Function]",a="[object GeneratorFunction]",c="[object Proxy]";function u(e){if(!(0,i.A)(e))return!1;var t=(0,n.A)(e);return t==s||t==a||t==o||t==c}t.A=u},7942:function(e,t){"use strict";function r(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}t.A=r},7313:function(e,t){"use strict";function r(e){return null!=e&&"object"==typeof e}t.A=r},8938:function(e,t,r){"use strict";var n=r(4044),i=r(7902),o=r(7313),s="[object Object]",a=Function.prototype,c=Object.prototype,u=a.toString,l=c.hasOwnProperty,h=u.call(Object);function d(e){if(!(0,o.A)(e)||(0,n.A)(e)!=s)return!1;var t=(0,i.A)(e);if(null===t)return!0;var r=l.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==h}t.A=d},4089:function(e,t,r){"use strict";var n=r(4044),i=r(7313),o="[object Symbol]";function s(e){return"symbol"==typeof e||(0,i.A)(e)&&(0,n.A)(e)==o}t.A=s},4441:function(e,t,r){"use strict";r.d(t,{A:function(){return h}});var n=r(6124),i=r(5118),o=r(5378),s=r(7942),a=r(9322);function c(e,t,r,c){if(!(0,s.A)(e))return e;t=(0,i.A)(t,e);var u=-1,l=t.length,h=l-1,d=e;while(null!=d&&++u<l){var p=(0,a.A)(t[u]),f=r;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(u!=h){var m=d[p];f=c?c(m,p,d):void 0,void 0===f&&(f=(0,s.A)(m)?m:(0,o.A)(t[u+1])?[]:{})}(0,n.A)(d,p,f),d=d[p]}return e}var u=c;function l(e,t,r){return null==e?e:u(e,t,r)}var h=l}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}!function(){__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return __webpack_require__.d(t,{a:t}),t}}(),function(){__webpack_require__.d=function(e,t){for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){__webpack_require__.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){__webpack_require__.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}();var __webpack_exports__={};return function(){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AlertService:function(){return e},DataModifierService:function(){return r},DraggableService:function(){return i},EventBus:function(){return Si},HTTPBaseService:function(){return zr},HelperService:function(){return h},HttpProcess:function(){return t},MixpanelService:function(){return SA},ShrEventBus:function(){return xi},ShrPusherService:function(){return Ii},default:function(){return xA}});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{alert:function(){return Nr},fire:function(){return Br},toast:function(){return jr}});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{makeRequest:function(){return bi},makeRequestToExecute:function(){return _i}});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{alterUsersForProfileStrip:function(){return ki}});const n={enableDragSort:e=>{window.onload=()=>{const t=document.querySelectorAll(e);Array.prototype.map.call(t,r=>{n.enableDragList(r),shrSafeLog(e,t)})}},enableDragList:e=>{Array.prototype.map.call(e.children,e=>{n.enableDragItem(e)})},enableDragItem:e=>{e.setAttribute("draggable",new Boolean(!0).toString()),e.ondrag=n.handleDrag,e.ondragend=n.handleDrop},handleDrag:e=>{const t=e.target,r=t.parentNode,n=e.clientX,i=e.clientY;t.classList.add("drag-sort-active");let o=null===document.elementFromPoint(n,i)?t:document.elementFromPoint(n,i);r===o?.parentNode&&(o=o!==t.nextSibling?o:o.nextSibling,r?.insertBefore(t,o))},handleDrop:e=>{e.target?.classList.remove("drag-sort-active")}};var i=n,o=__webpack_require__(6660),s=__webpack_require__.n(o);
|
|
31
|
+
(function(t,r){e.exports=r()})(0,function(){"use strict";function e(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function t(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function r(t,r){return t.get(e(t,r))}function n(e,r,n){t(e,r),r.set(e,n)}function i(t,r,n){return t.set(e(t,r),n),n}const o=100,s={},a=()=>{s.previousActiveElement instanceof HTMLElement?(s.previousActiveElement.focus(),s.previousActiveElement=null):document.body&&document.body.focus()},c=e=>new Promise(t=>{if(!e)return t();const r=window.scrollX,n=window.scrollY;s.restoreFocusTimeout=setTimeout(()=>{a(),t()},o),window.scrollTo(r,n)}),u="swal2-",l=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"],h=l.reduce((e,t)=>(e[t]=u+t,e),{}),d=["success","warning","info","question","error"],p=d.reduce((e,t)=>(e[t]=u+t,e),{}),f="SweetAlert2:",m=e=>e.charAt(0).toUpperCase()+e.slice(1),g=e=>{console.warn(`${f} ${"object"===typeof e?e.join(" "):e}`)},v=e=>{console.error(`${f} ${e}`)},y=[],w=e=>{y.includes(e)||(y.push(e),g(e))},b=(e,t=null)=>{w(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`)},_=e=>"function"===typeof e?e():e,k=e=>e&&"function"===typeof e.toPromise,S=e=>k(e)?e.toPromise():Promise.resolve(e),x=e=>e&&Promise.resolve(e)===e,C=()=>navigator.userAgent.includes("Firefox"),E=()=>document.body.querySelector(`.${h.container}`),A=e=>{const t=E();return t?t.querySelector(e):null},O=e=>A(`.${e}`),I=()=>O(h.popup),T=()=>O(h.icon),M=()=>O(h["icon-content"]),R=()=>O(h.title),P=()=>O(h["html-container"]),D=()=>O(h.image),L=()=>O(h["progress-steps"]),B=()=>O(h["validation-message"]),N=()=>A(`.${h.actions} .${h.confirm}`),j=()=>A(`.${h.actions} .${h.cancel}`),F=()=>A(`.${h.actions} .${h.deny}`),U=()=>O(h["input-label"]),z=()=>A(`.${h.loader}`),q=()=>O(h.actions),H=()=>O(h.footer),$=()=>O(h["timer-progress-bar"]),W=()=>O(h.close),V='\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',Y=()=>{const e=I();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),r=Array.from(t).sort((e,t)=>{const r=parseInt(e.getAttribute("tabindex")||"0"),n=parseInt(t.getAttribute("tabindex")||"0");return r>n?1:r<n?-1:0}),n=e.querySelectorAll(V),i=Array.from(n).filter(e=>"-1"!==e.getAttribute("tabindex"));return[...new Set(r.concat(i))].filter(e=>pe(e))},X=()=>Z(document.body,h.shown)&&!Z(document.body,h["toast-shown"])&&!Z(document.body,h["no-backdrop"]),J=()=>{const e=I();return!!e&&Z(e,h.toast)},G=()=>{const e=I();return!!e&&e.hasAttribute("data-loading")},K=(e,t)=>{if(e.textContent="",t){const r=new DOMParser,n=r.parseFromString(t,"text/html"),i=n.querySelector("head");i&&Array.from(i.childNodes).forEach(t=>{e.appendChild(t)});const o=n.querySelector("body");o&&Array.from(o.childNodes).forEach(t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)})}},Z=(e,t)=>{if(!t)return!1;const r=t.split(/\s+/);for(let n=0;n<r.length;n++)if(!e.classList.contains(r[n]))return!1;return!0},Q=(e,t)=>{Array.from(e.classList).forEach(r=>{Object.values(h).includes(r)||Object.values(p).includes(r)||Object.values(t.showClass||{}).includes(r)||e.classList.remove(r)})},ee=(e,t,r)=>{if(Q(e,t),!t.customClass)return;const n=t.customClass[r];n&&("string"===typeof n||n.forEach?ie(e,n):g(`Invalid type of customClass.${r}! Expected string or iterable object, got "${typeof n}"`))},te=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${h.popup} > .${h[t]}`);case"checkbox":return e.querySelector(`.${h.popup} > .${h.checkbox} input`);case"radio":return e.querySelector(`.${h.popup} > .${h.radio} input:checked`)||e.querySelector(`.${h.popup} > .${h.radio} input:first-child`);case"range":return e.querySelector(`.${h.popup} > .${h.range} input`);default:return e.querySelector(`.${h.popup} > .${h.input}`)}},re=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},ne=(e,t,r)=>{if(!e||!t)return;const n="string"===typeof t?t.split(/\s+/).filter(Boolean):t,i=Array.isArray(e)?e:[e];i.forEach(e=>{n.forEach(t=>{r?e.classList.add(t):e.classList.remove(t)})})},ie=(e,t)=>{ne(e,t,!0)},oe=(e,t)=>{ne(e,t,!1)},se=(e,t)=>{const r=Array.from(e.children);for(let n=0;n<r.length;n++){const e=r[n];if(e instanceof HTMLElement&&Z(e,t))return e}},ae=(e,t,r)=>{r===`${parseInt(`${r}`)}`&&(r=parseInt(r)),r||0===r?e.style.setProperty(t,"number"===typeof r?`${r}px`:r):e.style.removeProperty(t)},ce=(e,t="flex")=>{e&&(e.style.display=t)},ue=e=>{e&&(e.style.display="none")},le=(e,t="block")=>{e&&new MutationObserver(()=>{de(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},he=(e,t,r,n)=>{const i=e.querySelector(t);i&&i.style.setProperty(r,n)},de=(e,t,r="flex")=>{t?ce(e,r):ue(e)},pe=e=>Boolean(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),fe=()=>!pe(N())&&!pe(F())&&!pe(j()),me=e=>Boolean(e.scrollHeight>e.clientHeight),ge=(e,t)=>{let r=e;while(r&&r!==t){if(me(r))return!0;r=r.parentElement}return!1},ve=e=>{const t=window.getComputedStyle(e),r=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return r>0||n>0},ye=(e,t=!1)=>{const r=$();r&&pe(r)&&(t&&(r.style.transition="none",r.style.width="100%"),setTimeout(()=>{r.style.transition=`width ${e/1e3}s linear`,r.style.width="0%"},10))},we=()=>{const e=$();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const r=parseInt(window.getComputedStyle(e).width),n=t/r*100;e.style.width=`${n}%`},be=()=>"undefined"===typeof window||"undefined"===typeof document,_e=`\n <div aria-labelledby="${h.title}" aria-describedby="${h["html-container"]}" class="${h.popup}" tabindex="-1">\n <button type="button" class="${h.close}"></button>\n <ul class="${h["progress-steps"]}"></ul>\n <div class="${h.icon}"></div>\n <img class="${h.image}" />\n <h2 class="${h.title}" id="${h.title}"></h2>\n <div class="${h["html-container"]}" id="${h["html-container"]}"></div>\n <input class="${h.input}" id="${h.input}" />\n <input type="file" class="${h.file}" />\n <div class="${h.range}">\n <input type="range" />\n <output></output>\n </div>\n <select class="${h.select}" id="${h.select}"></select>\n <div class="${h.radio}"></div>\n <label class="${h.checkbox}">\n <input type="checkbox" id="${h.checkbox}" />\n <span class="${h.label}"></span>\n </label>\n <textarea class="${h.textarea}" id="${h.textarea}"></textarea>\n <div class="${h["validation-message"]}" id="${h["validation-message"]}"></div>\n <div class="${h.actions}">\n <div class="${h.loader}"></div>\n <button type="button" class="${h.confirm}"></button>\n <button type="button" class="${h.deny}"></button>\n <button type="button" class="${h.cancel}"></button>\n </div>\n <div class="${h.footer}"></div>\n <div class="${h["timer-progress-bar-container"]}">\n <div class="${h["timer-progress-bar"]}"></div>\n </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),ke=()=>{const e=E();return!!e&&(e.remove(),oe([document.documentElement,document.body],[h["no-backdrop"],h["toast-shown"],h["has-column"]]),!0)},Se=()=>{s.currentInstance&&s.currentInstance.resetValidationMessage()},xe=()=>{const e=I();if(!e)return;const t=se(e,h.input),r=se(e,h.file),n=e.querySelector(`.${h.range} input`),i=e.querySelector(`.${h.range} output`),o=se(e,h.select),s=e.querySelector(`.${h.checkbox} input`),a=se(e,h.textarea);t&&(t.oninput=Se),r&&(r.onchange=Se),o&&(o.onchange=Se),s&&(s.onchange=Se),a&&(a.oninput=Se),n&&i&&(n.oninput=()=>{Se(),i.value=n.value},n.onchange=()=>{Se(),i.value=n.value})},Ce=e=>{if("string"===typeof e){const t=document.querySelector(e);if(!t)throw new Error(`Target element "${e}" not found`);return t}return e},Ee=e=>{const t=I();t&&(t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true"))},Ae=e=>{"rtl"===window.getComputedStyle(e).direction&&(ie(E(),h.rtl),s.isRTL=!0)},Oe=e=>{const t=ke();if(be())return void v("SweetAlert2 requires document to initialize");const r=document.createElement("div");r.className=h.container,t&&ie(r,h["no-transition"]),K(r,_e),r.dataset["swal2Theme"]=e.theme;const n=Ce(e.target||"body");n.appendChild(r),e.topLayer&&(r.setAttribute("popover",""),r.showPopover()),Ee(e),Ae(n),xe()},Ie=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"===typeof e?Te(e,t):e&&K(t,e)},Te=(e,t)=>{"jquery"in e?Me(t,e):K(t,e.toString())},Me=(e,t)=>{if(e.textContent="",0 in t)for(let r=0;r in t;r++)e.appendChild(t[r].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},Re=(e,t)=>{const r=q(),n=z();r&&n&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?ce(r):ue(r),ee(r,t,"actions"),Pe(r,n,t),K(n,t.loaderHtml||""),ee(n,t,"loader"))};function Pe(e,t,r){const n=N(),i=F(),o=j();n&&i&&o&&(Be(n,"confirm",r),Be(i,"deny",r),Be(o,"cancel",r),De(n,i,o,r),r.reverseButtons&&(r.toast?(e.insertBefore(o,n),e.insertBefore(i,n)):(e.insertBefore(o,t),e.insertBefore(i,t),e.insertBefore(n,t))))}function De(e,t,r,n){if(!n.buttonsStyling)return void oe([e,t,r],h.styled);ie([e,t,r],h.styled);const i=[[e,"confirm",n.confirmButtonColor],[t,"deny",n.denyButtonColor],[r,"cancel",n.cancelButtonColor]];i.forEach(([e,t,r])=>{r&&e.style.setProperty(`--swal2-${t}-button-background-color`,r),Le(e)})}function Le(e){const t=window.getComputedStyle(e);if(t.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;const r=t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");e.style.setProperty("--swal2-action-button-focus-box-shadow",t.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${r}`))}function Be(e,t,r){const n=m(t);de(e,r[`show${n}Button`],"inline-block"),K(e,r[`${t}ButtonText`]||""),e.setAttribute("aria-label",r[`${t}ButtonAriaLabel`]||""),e.className=h[t],ee(e,r,`${t}Button`)}const Ne=(e,t)=>{const r=W();r&&(K(r,t.closeButtonHtml||""),ee(r,t,"closeButton"),de(r,t.showCloseButton),r.setAttribute("aria-label",t.closeButtonAriaLabel||""))},je=(e,t)=>{const r=E();r&&(Fe(r,t.backdrop),Ue(r,t.position),ze(r,t.grow),ee(r,t,"container"))};function Fe(e,t){"string"===typeof t?e.style.background=t:t||ie([document.documentElement,document.body],h["no-backdrop"])}function Ue(e,t){t&&(t in h?ie(e,h[t]):(g('The "position" parameter is not valid, defaulting to "center"'),ie(e,h.center)))}function ze(e,t){t&&ie(e,h[`grow-${t}`])}var qe={innerParams:new WeakMap,domCache:new WeakMap,focusedElement:new WeakMap};const He=["input","file","range","select","radio","checkbox","textarea"],$e=(e,t)=>{const r=I();if(!r)return;const n=qe.innerParams.get(e),i=!n||t.input!==n.input;He.forEach(e=>{const n=se(r,h[e]);n&&(Ye(e,t.inputAttributes),n.className=h[e],i&&ue(n))}),t.input&&(i&&We(t),Xe(t))},We=e=>{if(!e.input)return;if(!Qe[e.input])return void v(`Unexpected type of input! Expected ${Object.keys(Qe).join(" | ")}, got "${e.input}"`);const t=Ke(e.input);if(!t)return;const r=Qe[e.input](t,e);ce(t),e.inputAutoFocus&&setTimeout(()=>{re(r)})},Ve=e=>{for(let t=0;t<e.attributes.length;t++){const r=e.attributes[t].name;["id","type","value","style"].includes(r)||e.removeAttribute(r)}},Ye=(e,t)=>{const r=I();if(!r)return;const n=te(r,e);if(n){Ve(n);for(const e in t)n.setAttribute(e,t[e])}},Xe=e=>{if(!e.input)return;const t=Ke(e.input);t&&ee(t,e,"input")},Je=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},Ge=(e,t,r)=>{if(r.inputLabel){const n=document.createElement("label"),i=h["input-label"];n.setAttribute("for",e.id),n.className=i,"object"===typeof r.customClass&&ie(n,r.customClass.inputLabel),n.innerText=r.inputLabel,t.insertAdjacentElement("beforebegin",n)}},Ke=e=>{const t=I();if(t)return se(t,h[e]||h.input)},Ze=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:x(t)||g(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},Qe={};Qe.text=Qe.email=Qe.password=Qe.number=Qe.tel=Qe.url=Qe.search=Qe.date=Qe["datetime-local"]=Qe.time=Qe.week=Qe.month=(e,t)=>{const r=e;return Ze(r,t.inputValue),Ge(r,r,t),Je(r,t),r.type=t.input,r},Qe.file=(e,t)=>{const r=e;return Ge(r,r,t),Je(r,t),r},Qe.range=(e,t)=>{const r=e,n=r.querySelector("input"),i=r.querySelector("output");return n&&(Ze(n,t.inputValue),n.type=t.input,Ge(n,e,t)),i&&Ze(i,t.inputValue),e},Qe.select=(e,t)=>{const r=e;if(r.textContent="",t.inputPlaceholder){const e=document.createElement("option");K(e,t.inputPlaceholder),e.value="",e.disabled=!0,e.selected=!0,r.appendChild(e)}return Ge(r,r,t),r},Qe.radio=e=>{const t=e;return t.textContent="",e},Qe.checkbox=(e,t)=>{const r=I();if(!r)throw new Error("Popup not found");const n=te(r,"checkbox");if(!n)throw new Error("Checkbox input not found");n.value="1",n.checked=Boolean(t.inputValue);const i=e,o=i.querySelector("span");if(o){const e=t.inputPlaceholder||t.inputLabel;e&&K(o,e)}return n},Qe.textarea=(e,t)=>{const r=e;Ze(r,t.inputValue),Je(r,t),Ge(r,r,t);const n=e=>parseInt(window.getComputedStyle(e).marginLeft)+parseInt(window.getComputedStyle(e).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const e=I();if(!e)return;const i=parseInt(window.getComputedStyle(e).width),o=()=>{if(!document.body.contains(r))return;const e=r.offsetWidth+n(r),o=I();o&&(e>i?o.style.width=`${e}px`:ae(o,"width",t.width))};new MutationObserver(o).observe(r,{attributes:!0,attributeFilter:["style"]})}}),r};const et=(e,t)=>{const r=P();r&&(le(r),ee(r,t,"htmlContainer"),t.html?(Ie(t.html,r),ce(r,"block")):t.text?(r.textContent=t.text,ce(r,"block")):ue(r),$e(e,t))},tt=(e,t)=>{const r=H();r&&(le(r),de(r,Boolean(t.footer),"block"),t.footer&&Ie(t.footer,r),ee(r,t,"footer"))},rt=(e,t)=>{const r=qe.innerParams.get(e),n=T();if(!n)return;if(r&&t.icon===r.icon)return at(n,t),void nt(n,t);if(!t.icon&&!t.iconHtml)return void ue(n);if(t.icon&&-1===Object.keys(p).indexOf(t.icon))return v(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),void ue(n);ce(n),at(n,t),nt(n,t),ie(n,t.showClass&&t.showClass.icon);const i=window.matchMedia("(prefers-color-scheme: dark)");i.addEventListener("change",it)},nt=(e,t)=>{for(const[r,n]of Object.entries(p))t.icon!==r&&oe(e,n);ie(e,t.icon&&p[t.icon]),ct(e,t),it(),ee(e,t,"icon")},it=()=>{const e=I();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),r=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let n=0;n<r.length;n++)r[n].style.backgroundColor=t},ot=e=>`\n ${e.animation?'<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>\n ${e.animation?'<div class="swal2-success-fix"></div>':""}\n ${e.animation?'<div class="swal2-success-circular-line-right"></div>':""}\n`,st='\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',at=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let r=e.innerHTML,n="";if(t.iconHtml)n=ut(t.iconHtml);else if("success"===t.icon)n=ot(t),r=r.replace(/ style=".*?"/g,"");else if("error"===t.icon)n=st;else if(t.icon){const e={question:"?",warning:"!",info:"i"};n=ut(e[t.icon])}r.trim()!==n.trim()&&K(e,n)},ct=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const r of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])he(e,r,"background-color",t.iconColor);he(e,".swal2-success-ring","border-color",t.iconColor)}},ut=e=>`<div class="${h["icon-content"]}">${e}</div>`,lt=(e,t)=>{const r=D();r&&(t.imageUrl?(ce(r,""),r.setAttribute("src",t.imageUrl),r.setAttribute("alt",t.imageAlt||""),ae(r,"width",t.imageWidth),ae(r,"height",t.imageHeight),r.className=h.image,ee(r,t,"image")):ue(r))};let ht=!1,dt=0,pt=0,ft=0,mt=0;const gt=e=>{e.addEventListener("mousedown",yt),document.body.addEventListener("mousemove",wt),e.addEventListener("mouseup",bt),e.addEventListener("touchstart",yt),document.body.addEventListener("touchmove",wt),e.addEventListener("touchend",bt)},vt=e=>{e.removeEventListener("mousedown",yt),document.body.removeEventListener("mousemove",wt),e.removeEventListener("mouseup",bt),e.removeEventListener("touchstart",yt),document.body.removeEventListener("touchmove",wt),e.removeEventListener("touchend",bt)},yt=e=>{const t=I();if(!t)return;const r=T();if(e.target===t||r&&r.contains(e.target)){ht=!0;const r=_t(e);dt=r.clientX,pt=r.clientY,ft=parseInt(t.style.insetInlineStart)||0,mt=parseInt(t.style.insetBlockStart)||0,ie(t,"swal2-dragging")}},wt=e=>{const t=I();if(t&&ht){let{clientX:r,clientY:n}=_t(e);const i=r-dt;t.style.insetInlineStart=`${ft+(s.isRTL?-i:i)}px`,t.style.insetBlockStart=`${mt+(n-pt)}px`}},bt=()=>{const e=I();ht=!1,oe(e,"swal2-dragging")},_t=e=>{const t=e.type.startsWith("touch")?e.touches[0]:e;return{clientX:t.clientX,clientY:t.clientY}},kt=(e,t)=>{const r=E(),n=I();if(r&&n){if(t.toast){ae(r,"width",t.width),n.style.width="100%";const e=z();e&&n.insertBefore(e,T())}else ae(n,"width",t.width);ae(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),ue(B()),St(n,t),t.draggable&&!t.toast?(ie(n,h.draggable),gt(n)):(oe(n,h.draggable),vt(n))}},St=(e,t)=>{const r=t.showClass||{};e.className=`${h.popup} ${pe(e)?r.popup:""}`,t.toast?(ie([document.documentElement,document.body],h["toast-shown"]),ie(e,h.toast)):ie(e,h.modal),ee(e,t,"popup"),"string"===typeof t.customClass&&ie(e,t.customClass),t.icon&&ie(e,h[`icon-${t.icon}`])},xt=(e,t)=>{const r=L();if(!r)return;const{progressSteps:n,currentProgressStep:i}=t;n&&0!==n.length&&void 0!==i?(ce(r),r.textContent="",i>=n.length&&g("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),n.forEach((e,o)=>{const s=Ct(e);if(r.appendChild(s),o===i&&ie(s,h["active-progress-step"]),o!==n.length-1){const e=Et(t);r.appendChild(e)}})):ue(r)},Ct=e=>{const t=document.createElement("li");return ie(t,h["progress-step"]),K(t,e),t},Et=e=>{const t=document.createElement("li");return ie(t,h["progress-step-line"]),e.progressStepsDistance&&ae(t,"width",e.progressStepsDistance),t},At=(e,t)=>{const r=R();r&&(le(r),de(r,Boolean(t.title||t.titleText),"block"),t.title&&Ie(t.title,r),t.titleText&&(r.innerText=t.titleText),ee(r,t,"title"))},Ot=(e,t)=>{var r;kt(e,t),je(e,t),xt(e,t),rt(e,t),lt(e,t),At(e,t),Ne(e,t),et(e,t),Re(e,t),tt(e,t);const n=I();"function"===typeof t.didRender&&n&&t.didRender(n),null===(r=s.eventEmitter)||void 0===r||r.emit("didRender",n)},It=()=>pe(I()),Tt=()=>{var e;return null===(e=N())||void 0===e?void 0:e.click()},Mt=()=>{var e;return null===(e=F())||void 0===e?void 0:e.click()},Rt=()=>{var e;return null===(e=j())||void 0===e?void 0:e.click()},Pt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Dt=e=>{if(e.keydownTarget&&e.keydownHandlerAdded&&e.keydownHandler){const t=e.keydownHandler;e.keydownTarget.removeEventListener("keydown",t,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1}},Lt=(e,t,r)=>{if(Dt(e),!t.toast){const n=e=>Ft(t,e,r);e.keydownHandler=n;const i=t.keydownListenerCapture?window:I();if(i){e.keydownTarget=i,e.keydownListenerCapture=t.keydownListenerCapture;const r=n;e.keydownTarget.addEventListener("keydown",r,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0}}},Bt=(e,t)=>{var r;const n=Y();return n.length?(e+=t,-2===e&&(e=n.length-1),e===n.length?e=0:-1===e&&(e=n.length-1),n[e].focus(),!(C()&&n[e]instanceof HTMLIFrameElement)):(null===(r=I())||void 0===r||r.focus(),!0)},Nt=["ArrowRight","ArrowDown"],jt=["ArrowLeft","ArrowUp"],Ft=(e,t,r)=>{e&&(t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Ut(t,e):"Tab"===t.key?zt(t):[...Nt,...jt].includes(t.key)?qt(t.key):"Escape"===t.key&&Ht(t,e,r)))},Ut=(e,t)=>{if(!_(t.allowEnterKey))return;const r=I();if(!r||!t.input)return;const n=te(r,t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;Tt(),e.preventDefault()}},zt=e=>{const t=e.target,r=Y();let n=-1;for(let o=0;o<r.length;o++)if(t===r[o]){n=o;break}let i=!0;i=e.shiftKey?Bt(n,-1):Bt(n,1),e.stopPropagation(),i&&e.preventDefault()},qt=e=>{const t=q(),r=N(),n=F(),i=j();if(!t||!r||!n||!i)return;const o=[r,n,i];if(document.activeElement instanceof HTMLElement&&!o.includes(document.activeElement))return;const s=Nt.includes(e)?"nextElementSibling":"previousElementSibling";let a=document.activeElement;if(a){for(let e=0;e<t.children.length;e++){if(a=a[s],!a)return;if(a instanceof HTMLButtonElement&&pe(a))break}a instanceof HTMLButtonElement&&a.focus()}},Ht=(e,t,r)=>{e.preventDefault(),_(t.allowEscapeKey)&&r(Pt.esc)};var $t={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const Wt=()=>{const e=E(),t=Array.from(document.body.children);t.forEach(t=>{t.contains(e)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))})},Vt=()=>{const e=Array.from(document.body.children);e.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")})},Yt="undefined"!==typeof window&&Boolean(window.GestureEvent),Xt=Yt&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Jt=()=>{if(Yt&&!Z(document.body,h.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",ie(document.body,h.iosfix),Gt()}},Gt=()=>{const e=E();if(!e)return;let t;e.ontouchstart=e=>{t=Kt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},Kt=e=>{const t=e.target,r=E(),n=P();return!(!r||!n)&&(!Zt(e)&&!Qt(e)&&(t===r||!(me(r)||!(t instanceof HTMLElement)||ge(t,n)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||me(n)&&n.contains(t))))},Zt=e=>Boolean(e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType),Qt=e=>e.touches&&e.touches.length>1,er=()=>{if(Z(document.body,h.iosfix)){const e=parseInt(document.body.style.top,10);oe(document.body,h.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}},tr=()=>{const e=document.createElement("div");e.className=h["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t};let rr=null;const nr=e=>{null===rr&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(rr=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${rr+tr()}px`)},ir=()=>{null!==rr&&(document.body.style.paddingRight=`${rr}px`,rr=null)};function or(e,t,r,n){J()?fr(e,n):(c(r).then(()=>fr(e,n)),Dt(s)),Yt?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),X()&&(ir(),er(),Vt()),sr()}function sr(){oe([document.documentElement,document.body],[h.shown,h["height-auto"],h["no-backdrop"],h["toast-shown"]])}function ar(e){e=hr(e);const t=$t.swalPromiseResolve.get(this),r=cr(this);this.isAwaitingPromise?e.isDismissed||(lr(this),t(e)):r&&t(e)}const cr=e=>{const t=I();if(!t)return!1;const r=qe.innerParams.get(e);if(!r||Z(t,r.hideClass.popup))return!1;oe(t,r.showClass.popup),ie(t,r.hideClass.popup);const n=E();return oe(n,r.showClass.backdrop),ie(n,r.hideClass.backdrop),dr(e,t,r),!0};function ur(e){const t=$t.swalPromiseReject.get(this);lr(this),t&&t(e)}const lr=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,qe.innerParams.get(e)||e._destroy())},hr=e=>"undefined"===typeof e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),dr=(e,t,r)=>{var n;const i=E(),o=ve(t);"function"===typeof r.willClose&&r.willClose(t),null===(n=s.eventEmitter)||void 0===n||n.emit("willClose",t),o&&i?pr(e,t,i,Boolean(r.returnFocus),r.didClose):i&&or(e,i,Boolean(r.returnFocus),r.didClose)},pr=(e,t,r,n,i)=>{s.swalCloseEventFinishedCallback=or.bind(null,e,r,n,i);const o=function(e){var r;e.target===t&&(null===(r=s.swalCloseEventFinishedCallback)||void 0===r||r.call(s),delete s.swalCloseEventFinishedCallback,t.removeEventListener("animationend",o),t.removeEventListener("transitionend",o))};t.addEventListener("animationend",o),t.addEventListener("transitionend",o)},fr=(e,t)=>{setTimeout(()=>{var r;"function"===typeof t&&t.bind(e.params)(),null===(r=s.eventEmitter)||void 0===r||r.emit("didClose"),e._destroy&&e._destroy()})},mr=e=>{let t=I();if(t||new yi,t=I(),!t)return;const r=z();J()?ue(T()):gr(t,e),ce(r),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},gr=(e,t)=>{const r=q(),n=z();r&&n&&(!t&&pe(N())&&(t=N()),ce(r),t&&(ue(t),n.setAttribute("data-button-to-replace",t.className),r.insertBefore(n,t)),ie([e,r],h.loading))},vr=(e,t)=>{"select"===t.input||"radio"===t.input?kr(e,t):["text","email","number","tel","textarea"].some(e=>e===t.input)&&(k(t.inputValue)||x(t.inputValue))&&(mr(N()),Sr(e,t))},yr=(e,t)=>{const r=e.getInput();if(!r)return null;switch(t.input){case"checkbox":return wr(r);case"radio":return br(r);case"file":return _r(r);default:return t.inputAutoTrim?r.value.trim():r.value}},wr=e=>e.checked?1:0,br=e=>e.checked?e.value:null,_r=e=>e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,kr=(e,t)=>{const r=I();if(!r)return;const n=e=>{"select"===t.input?xr(r,Er(e),t):"radio"===t.input&&Cr(r,Er(e),t)};k(t.inputOptions)||x(t.inputOptions)?(mr(N()),S(t.inputOptions).then(t=>{e.hideLoading(),n(t)})):"object"===typeof t.inputOptions?n(t.inputOptions):v("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof t.inputOptions)},Sr=(e,t)=>{const r=e.getInput();r&&(ue(r),S(t.inputValue).then(n=>{r.value="number"===t.input?`${parseFloat(n)||0}`:`${n}`,ce(r),r.focus(),e.hideLoading()}).catch(t=>{v(`Error in inputValue promise: ${t}`),r.value="",ce(r),r.focus(),e.hideLoading()}))};function xr(e,t,r){const n=se(e,h.select);if(!n)return;const i=(e,t,n)=>{const i=document.createElement("option");i.value=n,K(i,t),i.selected=Ar(n,r.inputValue),e.appendChild(i)};t.forEach(e=>{const t=e[0],r=e[1];if(Array.isArray(r)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),r.forEach(t=>i(e,t[1],t[0]))}else i(n,r,t)}),n.focus()}function Cr(e,t,r){const n=se(e,h.radio);if(!n)return;t.forEach(e=>{const t=e[0],i=e[1],o=document.createElement("input"),s=document.createElement("label");o.type="radio",o.name=h.radio,o.value=t,Ar(t,r.inputValue)&&(o.checked=!0);const a=document.createElement("span");K(a,i),a.className=h.label,s.appendChild(o),s.appendChild(a),n.appendChild(s)});const i=n.querySelectorAll("input");i.length&&i[0].focus()}const Er=e=>{const t=e instanceof Map?Array.from(e):Object.entries(e);return t.map(([e,t])=>[e,"object"===typeof t?Er(t):t])},Ar=(e,t)=>Boolean(t)&&null!==t&&void 0!==t&&t.toString()===e.toString(),Or=e=>{const t=qe.innerParams.get(e);e.disableButtons(),t.input?Mr(e,"confirm"):Br(e,!0)},Ir=e=>{const t=qe.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Mr(e,"deny"):Pr(e,!1)},Tr=(e,t)=>{e.disableButtons(),t(Pt.cancel)},Mr=(e,t)=>{const r=qe.innerParams.get(e);if(!r.input)return void v(`The "input" parameter is needed to be set when using returnInputValueOn${m(t)}`);const n=e.getInput(),i=yr(e,r);r.inputValidator?Rr(e,i,t):n&&!n.checkValidity()?(e.enableButtons(),e.showValidationMessage(r.validationMessage||n.validationMessage)):"deny"===t?Pr(e,i):Br(e,i)},Rr=(e,t,r)=>{const n=qe.innerParams.get(e);e.disableInput();const i=Promise.resolve().then(()=>S(n.inputValidator(t,n.validationMessage)));i.then(n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===r?Pr(e,t):Br(e,t)})},Pr=(e,t)=>{const r=qe.innerParams.get(e);if(r.showLoaderOnDeny&&mr(F()),r.preDeny){e.isAwaitingPromise=!0;const n=Promise.resolve().then(()=>S(r.preDeny(t,r.validationMessage)));n.then(r=>{!1===r?(e.hideLoading(),lr(e)):e.close({isDenied:!0,value:"undefined"===typeof r?t:r})}).catch(t=>Lr(e,t))}else e.close({isDenied:!0,value:t})},Dr=(e,t)=>{e.close({isConfirmed:!0,value:t})},Lr=(e,t)=>{e.rejectPromise(t)},Br=(e,t)=>{const r=qe.innerParams.get(e);if(r.showLoaderOnConfirm&&mr(),r.preConfirm){e.resetValidationMessage(),e.isAwaitingPromise=!0;const n=Promise.resolve().then(()=>S(r.preConfirm(t,r.validationMessage)));n.then(r=>{pe(B())||!1===r?(e.hideLoading(),lr(e)):Dr(e,"undefined"===typeof r?t:r)}).catch(t=>Lr(e,t))}else Dr(e,t)};function Nr(){const e=qe.innerParams.get(this);if(!e)return;const t=qe.domCache.get(this);ue(t.loader),J()?e.icon&&ce(T()):jr(t),oe([t.popup,t.actions],h.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1;const r=qe.focusedElement.get(this);r instanceof HTMLElement&&document.activeElement===document.body&&r.focus(),qe.focusedElement.delete(this)}const jr=e=>{const t=e.loader.getAttribute("data-button-to-replace"),r=t?e.popup.getElementsByClassName(t):[];r.length?ce(r[0],"inline-block"):fe()&&ue(e.actions)};function Fr(){const e=qe.innerParams.get(this),t=qe.domCache.get(this);return t?te(t.popup,e.input):null}function Ur(e,t,r){const n=qe.domCache.get(e);t.forEach(e=>{n[e].disabled=r})}function zr(e,t){const r=I();if(r&&e)if("radio"===e.type){const e=r.querySelectorAll(`[name="${h.radio}"]`);for(let r=0;r<e.length;r++)e[r].disabled=t}else e.disabled=t}function qr(){Ur(this,["confirmButton","denyButton","cancelButton"],!1);const e=qe.focusedElement.get(this);e instanceof HTMLElement&&document.activeElement===document.body&&e.focus(),qe.focusedElement.delete(this)}function Hr(){qe.focusedElement.set(this,document.activeElement),Ur(this,["confirmButton","denyButton","cancelButton"],!0)}function $r(){zr(this.getInput(),!1)}function Wr(){zr(this.getInput(),!0)}function Vr(e){const t=qe.domCache.get(this),r=qe.innerParams.get(this);K(t.validationMessage,e),t.validationMessage.className=h["validation-message"],r.customClass&&r.customClass.validationMessage&&ie(t.validationMessage,r.customClass.validationMessage),ce(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid","true"),n.setAttribute("aria-describedby",h["validation-message"]),re(n),ie(n,h.inputerror))}function Yr(){const e=qe.domCache.get(this);e.validationMessage&&ue(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),oe(t,h.inputerror))}const Xr={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,topLayer:!1},Jr=["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"],Gr={allowEnterKey:void 0},Kr=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Zr=e=>Object.prototype.hasOwnProperty.call(Xr,e),Qr=e=>-1!==Jr.indexOf(e),en=e=>Gr[e],tn=e=>{Zr(e)||g(`Unknown parameter "${e}"`)},rn=e=>{Kr.includes(e)&&g(`The parameter "${e}" is incompatible with toasts`)},nn=e=>{const t=en(e);t&&b(e,t)},on=e=>{!1===e.backdrop&&e.allowOutsideClick&&g('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&!["light","dark","auto","minimal","borderless","bootstrap-4","bootstrap-4-light","bootstrap-4-dark","bootstrap-5","bootstrap-5-light","bootstrap-5-dark","material-ui","material-ui-light","material-ui-dark","embed-iframe","bulma","bulma-light","bulma-dark"].includes(e.theme)&&g(`Invalid theme "${e.theme}"`);for(const t in e)tn(t),e.toast&&rn(t),nn(t)};function sn(e){const t=E(),r=I(),n=qe.innerParams.get(this);if(!r||Z(r,n.hideClass.popup))return void g("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=an(e),o=Object.assign({},n,i);on(o),t&&(t.dataset["swal2Theme"]=o.theme),Ot(this,o),qe.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const an=e=>{const t={};return Object.keys(e).forEach(r=>{if(Qr(r)){const n=e;t[r]=n[r]}else g(`Invalid parameter to update: ${r}`)}),t};function cn(){var e;const t=qe.domCache.get(this),r=qe.innerParams.get(this);r?(t.popup&&s.swalCloseEventFinishedCallback&&(s.swalCloseEventFinishedCallback(),delete s.swalCloseEventFinishedCallback),"function"===typeof r.didDestroy&&r.didDestroy(),null===(e=s.eventEmitter)||void 0===e||e.emit("didDestroy"),un(this)):ln(this)}const un=e=>{ln(e),delete e.params,delete s.keydownHandler,delete s.keydownTarget,delete s.currentInstance},ln=e=>{e.isAwaitingPromise?(hn(qe,e),e.isAwaitingPromise=!0):(hn($t,e),hn(qe,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)},hn=(e,t)=>{for(const r in e)e[r].delete(t)};var dn=Object.freeze({__proto__:null,_destroy:cn,close:ar,closeModal:ar,closePopup:ar,closeToast:ar,disableButtons:Hr,disableInput:Wr,disableLoading:Nr,enableButtons:qr,enableInput:$r,getInput:Fr,handleAwaitingPromise:lr,hideLoading:Nr,rejectPromise:ur,resetValidationMessage:Yr,showValidationMessage:Vr,update:sn});const pn=(e,t,r)=>{e.toast?fn(e,t,r):(vn(t),yn(t),wn(e,t,r))},fn=(e,t,r)=>{t.popup.onclick=()=>{e&&(mn(e)||e.timer||e.input)||r(Pt.close)}},mn=e=>Boolean(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let gn=!1;const vn=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(gn=!0)}}},yn=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))&&(gn=!0)}}},wn=(e,t,r)=>{t.container.onclick=n=>{gn?gn=!1:n.target===t.container&&_(e.allowOutsideClick)&&r(Pt.backdrop)}},bn=e=>"object"===typeof e&&null!==e&&"jquery"in e,_n=e=>e instanceof Element||bn(e),kn=e=>{const t={};return"object"!==typeof e[0]||_n(e[0])?["title","html","icon"].forEach((r,n)=>{const i=e[n];"string"===typeof i||_n(i)?t[r]=i:void 0!==i&&v(`Unexpected type of ${r}! Expected "string" or "Element", got ${typeof i}`)}):Object.assign(t,e[0]),t};function Sn(...e){return new this(...e)}function xn(e){class t extends(this){_main(t,r){return super._main(t,Object.assign({},e,r))}}return t}const Cn=()=>s.timeout&&s.timeout.getTimerLeft(),En=()=>{if(s.timeout)return we(),s.timeout.stop()},An=()=>{if(s.timeout){const e=s.timeout.start();return ye(e),e}},On=()=>{const e=s.timeout;return e&&(e.running?En():An())},In=e=>{if(s.timeout){const t=s.timeout.increase(e);return ye(t,!0),t}},Tn=()=>Boolean(s.timeout&&s.timeout.isRunning());let Mn=!1;const Rn={};function Pn(e="data-swal-template"){Rn[e]=this,Mn||(document.body.addEventListener("click",Dn),Mn=!0)}const Dn=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in Rn){const r=t.getAttribute&&t.getAttribute(e);if(r)return void Rn[e].fire({template:r})}};class Ln{constructor(){this.events={}}_getHandlersByEventName(e){return"undefined"===typeof this.events[e]&&(this.events[e]=[]),this.events[e]}on(e,t){const r=this._getHandlersByEventName(e);r.includes(t)||r.push(t)}once(e,t){const r=(...n)=>{this.removeListener(e,r),t.apply(this,n)};this.on(e,r)}emit(e,...t){this._getHandlersByEventName(e).forEach(e=>{try{e.apply(this,t)}catch(v){console.error(v)}})}removeListener(e,t){const r=this._getHandlersByEventName(e),n=r.indexOf(t);n>-1&&r.splice(n,1)}removeAllListeners(e){void 0!==this.events[e]&&(this.events[e].length=0)}reset(){this.events={}}}s.eventEmitter=new Ln;const Bn=(e,t)=>{s.eventEmitter&&s.eventEmitter.on(e,t)},Nn=(e,t)=>{s.eventEmitter&&s.eventEmitter.once(e,t)},jn=(e,t)=>{s.eventEmitter&&(e?t?s.eventEmitter.removeListener(e,t):s.eventEmitter.removeAllListeners(e):s.eventEmitter.reset())};var Fn=Object.freeze({__proto__:null,argsToParams:kn,bindClickHandler:Pn,clickCancel:Rt,clickConfirm:Tt,clickDeny:Mt,enableLoading:mr,fire:Sn,getActions:q,getCancelButton:j,getCloseButton:W,getConfirmButton:N,getContainer:E,getDenyButton:F,getFocusableElements:Y,getFooter:H,getHtmlContainer:P,getIcon:T,getIconContent:M,getImage:D,getInputLabel:U,getLoader:z,getPopup:I,getProgressSteps:L,getTimerLeft:Cn,getTimerProgressBar:$,getTitle:R,getValidationMessage:B,increaseTimer:In,isDeprecatedParameter:en,isLoading:G,isTimerRunning:Tn,isUpdatableParameter:Qr,isValidParameter:Zr,isVisible:It,mixin:xn,off:jn,on:Bn,once:Nn,resumeTimer:An,showLoading:mr,stopTimer:En,toggleTimer:On});class Un{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 zn=["swal-title","swal-html","swal-footer"],qn=e=>{const t="string"===typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const r=t.content;Gn(r);const n=Object.assign(Hn(r),$n(r),Wn(r),Vn(r),Yn(r),Xn(r),Jn(r,zn));return n},Hn=e=>{const t={},r=Array.from(e.querySelectorAll("swal-param"));return r.forEach(e=>{Kn(e,["name","value"]);const r=e.getAttribute("name"),n=e.getAttribute("value");r&&n&&(r in Xr&&"boolean"===typeof Xr[r]?t[r]="false"!==n:r in Xr&&"object"===typeof Xr[r]?t[r]=JSON.parse(n):t[r]=n)}),t},$n=e=>{const t={},r=Array.from(e.querySelectorAll("swal-function-param"));return r.forEach(e=>{const r=e.getAttribute("name"),n=e.getAttribute("value");r&&n&&(t[r]=new Function(`return ${n}`)())}),t},Wn=e=>{const t={},r=Array.from(e.querySelectorAll("swal-button"));return r.forEach(e=>{Kn(e,["type","color","aria-label"]);const r=e.getAttribute("type");if(!r||!["confirm","cancel","deny"].includes(r))return;t[`${r}ButtonText`]=e.innerHTML,t[`show${m(r)}Button`]=!0;const n=e.getAttribute("color");null!==n&&(t[`${r}ButtonColor`]=n);const i=e.getAttribute("aria-label");null!==i&&(t[`${r}ButtonAriaLabel`]=i)}),t},Vn=e=>{const t={},r=e.querySelector("swal-image");if(r){Kn(r,["src","width","height","alt"]);const e=r.getAttribute("src");null!==e&&(t.imageUrl=e||void 0);const n=r.getAttribute("width");null!==n&&(t.imageWidth=n||void 0);const i=r.getAttribute("height");null!==i&&(t.imageHeight=i||void 0);const o=r.getAttribute("alt");null!==o&&(t.imageAlt=o||void 0)}return t},Yn=e=>{const t={},r=e.querySelector("swal-icon");return r&&(Kn(r,["type","color"]),r.hasAttribute("type")&&(t.icon=r.getAttribute("type")),r.hasAttribute("color")&&(t.iconColor=r.getAttribute("color")),t.iconHtml=r.innerHTML),t},Xn=e=>{const t={},r=e.querySelector("swal-input");r&&(Kn(r,["type","label","placeholder","value"]),t.input=r.getAttribute("type")||"text",r.hasAttribute("label")&&(t.inputLabel=r.getAttribute("label")),r.hasAttribute("placeholder")&&(t.inputPlaceholder=r.getAttribute("placeholder")),r.hasAttribute("value")&&(t.inputValue=r.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach(e=>{Kn(e,["value"]);const r=e.getAttribute("value");if(!r)return;const n=e.innerHTML;t.inputOptions[r]=n})),t},Jn=(e,t)=>{const r={};for(const n in t){const i=t[n],o=e.querySelector(i);o&&(Kn(o,[]),r[i.replace(/^swal-/,"")]=o.innerHTML.trim())}return r},Gn=e=>{const t=zn.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(e=>{const r=e.tagName.toLowerCase();t.includes(r)||g(`Unrecognized element <${r}>`)})},Kn=(e,t)=>{Array.from(e.attributes).forEach(r=>{-1===t.indexOf(r.name)&&g([`Unrecognized attribute "${r.name}" on <${e.tagName.toLowerCase()}>.`,""+(t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element.")])})},Zn=10,Qn=e=>{var t,r;const n=E(),i=I();if(!n||!i)return;"function"===typeof e.willOpen&&e.willOpen(i),null===(t=s.eventEmitter)||void 0===t||t.emit("willOpen",i);const o=window.getComputedStyle(document.body),a=o.overflowY;if(ni(n,i,e),setTimeout(()=>{ti(n,i)},Zn),X()&&(ri(n,void 0!==e.scrollbarPadding&&e.scrollbarPadding,a),Wt()),Xt&&!1===e.backdrop&&i.scrollHeight>n.clientHeight&&(n.style.pointerEvents="auto"),J()||s.previousActiveElement||(s.previousActiveElement=document.activeElement),"function"===typeof e.didOpen){const t=e.didOpen;setTimeout(()=>t(i))}null===(r=s.eventEmitter)||void 0===r||r.emit("didOpen",i)},ei=e=>{const t=I();if(!t||e.target!==t)return;const r=E();r&&(t.removeEventListener("animationend",ei),t.removeEventListener("transitionend",ei),r.style.overflowY="auto",oe(r,h["no-transition"]))},ti=(e,t)=>{ve(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",ei),t.addEventListener("transitionend",ei)):e.style.overflowY="auto"},ri=(e,t,r)=>{Jt(),t&&"hidden"!==r&&nr(r),setTimeout(()=>{e.scrollTop=0})},ni=(e,t,r)=>{var n;null!==(n=r.showClass)&&void 0!==n&&n.backdrop&&ie(e,r.showClass.backdrop),r.animation?(t.style.setProperty("opacity","0","important"),ce(t,"grid"),setTimeout(()=>{var e;null!==(e=r.showClass)&&void 0!==e&&e.popup&&ie(t,r.showClass.popup),t.style.removeProperty("opacity")},Zn)):ce(t,"grid"),ie([document.documentElement,document.body],h.shown),r.heightAuto&&r.backdrop&&!r.toast&&ie([document.documentElement,document.body],h["height-auto"])};var ii={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function oi(e){e.inputValidator||("email"===e.input&&(e.inputValidator=ii["email"]),"url"===e.input&&(e.inputValidator=ii["url"]))}function si(e){(!e.target||"string"===typeof e.target&&!document.querySelector(e.target)||"string"!==typeof e.target&&!e.target.appendChild)&&(g('Target parameter is not valid, defaulting to "body"'),e.target="body")}function ai(e){oi(e),e.showLoaderOnConfirm&&!e.preConfirm&&g("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"),si(e),"string"===typeof e.title&&(e.title=e.title.split("\n").join("<br />")),Oe(e)}let ci;var ui=new WeakMap;class li{constructor(...e){if(n(this,ui,Promise.resolve({isConfirmed:!1,isDenied:!1,isDismissed:!0})),"undefined"===typeof window)return;ci=this;const t=Object.freeze(this.constructor.argsToParams(e));this.params=t,this.isAwaitingPromise=!1,i(ui,this,this._main(ci.params))}_main(e,t={}){if(on(Object.assign({},t,e)),s.currentInstance){const e=$t.swalPromiseResolve.get(s.currentInstance),{isAwaitingPromise:t}=s.currentInstance;s.currentInstance._destroy(),t||e({isDismissed:!0}),X()&&Vt()}s.currentInstance=ci;const r=di(e,t);ai(r),Object.freeze(r),s.timeout&&(s.timeout.stop(),delete s.timeout),clearTimeout(s.restoreFocusTimeout);const n=pi(ci);return Ot(ci,r),qe.innerParams.set(ci,r),hi(ci,n,r)}then(e){return r(ui,this).then(e)}finally(e){return r(ui,this).finally(e)}}const hi=(e,t,r)=>new Promise((n,i)=>{const o=t=>{e.close({isDismissed:!0,dismiss:t,isConfirmed:!1,isDenied:!1})};$t.swalPromiseResolve.set(e,n),$t.swalPromiseReject.set(e,i),t.confirmButton.onclick=()=>{Or(e)},t.denyButton.onclick=()=>{Ir(e)},t.cancelButton.onclick=()=>{Tr(e,o)},t.closeButton.onclick=()=>{o(Pt.close)},pn(r,t,o),Lt(s,r,o),vr(e,r),Qn(r),fi(s,r,o),mi(t,r),setTimeout(()=>{t.container.scrollTop=0})}),di=(e,t)=>{const r=qn(e),n=Object.assign({},Xr,t,r,e);return n.showClass=Object.assign({},Xr.showClass,n.showClass),n.hideClass=Object.assign({},Xr.hideClass,n.hideClass),!1===n.animation&&(n.showClass={backdrop:"swal2-noanimation"},n.hideClass={}),n},pi=e=>{const t={popup:I(),container:E(),actions:q(),confirmButton:N(),denyButton:F(),cancelButton:j(),loader:z(),closeButton:W(),validationMessage:B(),progressSteps:L()};return qe.domCache.set(e,t),t},fi=(e,t,r)=>{const n=$();ue(n),t.timer&&(e.timeout=new Un(()=>{r("timer"),delete e.timeout},t.timer),t.timerProgressBar&&n&&(ce(n),ee(n,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&ye(t.timer)})))},mi=(e,t)=>{if(!t.toast)return _(t.allowEnterKey)?void(gi(e)||vi(e,t)||Bt(-1,1)):(b("allowEnterKey","preConfirm: () => false"),void e.popup.focus())},gi=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const r of t)if(r instanceof HTMLElement&&pe(r))return r.focus(),!0;return!1},vi=(e,t)=>t.focusDeny&&pe(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&pe(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!pe(e.confirmButton))&&(e.confirmButton.focus(),!0);li.prototype.disableButtons=Hr,li.prototype.enableButtons=qr,li.prototype.getInput=Fr,li.prototype.disableInput=Wr,li.prototype.enableInput=$r,li.prototype.hideLoading=Nr,li.prototype.disableLoading=Nr,li.prototype.showValidationMessage=Vr,li.prototype.resetValidationMessage=Yr,li.prototype.close=ar,li.prototype.closePopup=ar,li.prototype.closeModal=ar,li.prototype.closeToast=ar,li.prototype.rejectPromise=ur,li.prototype.update=sn,li.prototype._destroy=cn,Object.assign(li,Fn),Object.keys(dn).forEach(e=>{li[e]=function(...t){if(ci&&ci[e])return ci[e](...t)}}),li.DismissReason=Pt,li.version="11.26.24";const yi=li;return yi.default=yi,yi}),"undefined"!==typeof this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var r=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(r),r.styleSheet)r.styleSheet.disabled||(r.styleSheet.cssText=t);else try{r.innerHTML=t}catch(e){r.innerText=t}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[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);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@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);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}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:auto}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:var(--swal2-backdrop-transition);-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)[popover]{width:auto;border:0}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;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-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:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}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:var(--swal2-action-button-transition);border:none;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-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}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);background:var(--swal2-footer-background);color:var(--swal2-footer-color);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:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-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:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);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):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}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:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}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;zoom:var(--swal2-icon-zoom);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)}@container swal2-popup style(--swal2-icon-animations:true){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}@container swal2-popup style(--swal2-icon-animations:true){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}@container swal2-popup style(--swal2-icon-animations:true){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}@container swal2-popup style(--swal2-icon-animations:true){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)}@container swal2-popup style(--swal2-icon-animations:true){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;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:auto}.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}@container swal2-popup style(--swal2-icon-animations:true){.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:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);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}}')},6253:function(e,t,r){"use strict";var n=r(8705);const i="AES-256-CBC",o=parseInt(i.match(/\d+/)?.[0]),s=(e,t)=>{const r=n.lib.WordArray.random(16),i=n.lib.WordArray.random(256),s=999,a=o/4,c=n.PBKDF2(t,i,{hasher:n.algo.SHA512,keySize:a/8,iterations:s}),u=n.AES.encrypt(e,c,{mode:n.mode.CBC,iv:r}),l=n.enc.Base64.stringify(u.ciphertext),h={ciphertext:l,iv:n.enc.Hex.stringify(r),salt:n.enc.Hex.stringify(i),iterations:s};return n.enc.Base64.stringify(n.enc.Utf8.parse(JSON.stringify(h)))},a=(e,t)=>{const r=JSON.parse(n.enc.Utf8.stringify(n.enc.Base64.parse(e))),i=n.enc.Hex.parse(r.salt),s=n.enc.Hex.parse(r.iv),a=r.ciphertext;let c=parseInt(r.iterations);c<=0&&(c=999);const u=o/4,l=n.PBKDF2(t,i,{hasher:n.algo.SHA512,keySize:u/8,iterations:c}),h=n.AES.decrypt(a,l,{mode:n.mode.CBC,iv:s});return h.toString(n.enc.Utf8)},c="-----BEGIN PUBLIC KEY-----",u="-----END PUBLIC KEY-----",l="-----BEGIN PRIVATE KEY-----",h="-----END PRIVATE KEY-----",d=()=>{if("undefined"!==typeof globalThis&&globalThis.crypto?.subtle)return globalThis.crypto.subtle;throw new Error("Web Crypto API is not available in this environment")},p=(e,t,r,n)=>{if(!e.includes(t)||!e.includes(r))throw new Error(`Invalid ${n} key format: expected PEM`);const i=e.replace(t,"").replace(r,"").replace(/\s+/g,"");if("function"!==typeof atob)throw new Error("Base64 decoding is not available in this environment");const o=atob(i),s=new Uint8Array(o.length);for(let a=0;a<o.length;a++)s[a]=o.charCodeAt(a);return s.buffer},f=e=>{let t="";const r=new Uint8Array(e);if(r.forEach(e=>{t+=String.fromCharCode(e)}),"function"!==typeof btoa)throw new Error("Base64 encoding is not available in this environment");return btoa(t)},m=e=>{if("function"!==typeof atob)throw new Error("Base64 decoding is not available in this environment");const t=atob(e),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r.buffer},g=async(e,t)=>{const r=d(),n="public"===t?p(e,c,u,"public"):p(e,l,h,"private");return r.importKey("public"===t?"spki":"pkcs8",n,{name:"RSA-OAEP",hash:"SHA-256"},!1,"public"===t?["encrypt"]:["decrypt"])},v=async(e,t)=>{const r=d(),n=await g(t,"public"),i=(new TextEncoder).encode(e),o=await r.encrypt({name:"RSA-OAEP"},n,i);return f(o)},y=async(e,t)=>{const r=d(),n=await g(t,"private"),i=m(e),o=await r.decrypt({name:"RSA-OAEP"},n,i);return(new TextDecoder).decode(o)};t.A={encrypt:s,decrypt:a,encryptWithPublicKey:v,decryptWithPrivateKey:y}},6448:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{allowOnlyNumber:function(){return allowOnlyNumber},allowedDecimalPlaces:function(){return allowedDecimalPlaces},customPasswordValidator:function(){return customPasswordValidator},dateFormatter:function(){return dateFormatter},decrypt:function(){return decrypt},decryptWithPrivateKey:function(){return decryptWithPrivateKey},encrypt:function(){return encrypt},encryptWithPublicKey:function(){return encryptWithPublicKey},fromNow:function(){return fromNow},getBgColorFromName:function(){return getBgColorFromName},getLocalStorageItem:function(){return getLocalStorageItem},getObjectProperty:function(){return getObjectProperty},getSessionStorageItem:function(){return getSessionStorageItem},getTextColorFromName:function(){return getTextColorFromName},highlightText:function(){return highlightText},httpBuildQuery:function(){return httpBuildQuery},imageExists:function(){return imageExists},isArray:function(){return isArray},isEmptyObj:function(){return isEmptyObj},isFunction:function(){return isFunction},isObject:function(){return isObject},isString:function(){return isString},loadRemoteEmbeddable:function(){return loadRemoteEmbeddable},numberFormat:function(){return numberFormat},removeLocalStorageItem:function(){return removeLocalStorageItem},removeSessionStorageItem:function(){return removeSessionStorageItem},setLocalStorageItem:function(){return setLocalStorageItem},setObjectProperty:function(){return setObjectProperty},setSessionStorageItem:function(){return setSessionStorageItem},ucFirst:function(){return ucFirst},uuid:function(){return uuid}});var lodash_es__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(8552),lodash_es__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(8938),lodash_es__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4441),_encryption_service__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(6253),date_fns__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2775),date_fns__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(129);const localCache=new Map,sessionCache=new Map,isString=e=>"string"===typeof e||e instanceof String,isArray=e=>Array.isArray(e),isFunction=e=>"function"===typeof e,isObject=e=>!!e&&e.constructor===Object,ucFirst=e=>e[0].toUpperCase()+e.substring(1).toLowerCase(),isEmptyObj=e=>(0,lodash_es__WEBPACK_IMPORTED_MODULE_1__.A)(e)&&!Object.keys(e).length,getObjectProperty=(e,t,r)=>{const n=(0,lodash_es__WEBPACK_IMPORTED_MODULE_0__.A)(e,t,r);return n||r},setObjectProperty=(e,t,r)=>(0,lodash_es__WEBPACK_IMPORTED_MODULE_2__.A)(e,t,r),getBgColorFromName=e=>{let t=0;e.split("").forEach(e=>{t=e.charCodeAt(0)+((t<<5)-t)});let r="#";for(let n=0;n<3;n++){const e=t>>8*n&255;r+=e.toString(16).padStart(2,"0")}return r},getTextColorFromName=(e,t="#FFFFFF",r="#000000")=>{const n=getBgColorFromName(e),i="#"===n.charAt(0)?n.substring(1,7):n,o=parseInt(i.substring(0,2),16),s=parseInt(i.substring(2,4),16),a=parseInt(i.substring(4,6),16),c=[o/255,s/255,a/255],u=c.map(e=>e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)),l=.2126*u[0]+.7152*u[1]+.0722*u[2];return l>.179?r:t},encrypt=(e,t="")=>_encryption_service__WEBPACK_IMPORTED_MODULE_3__.A.encrypt(e,t),decrypt=(e,t="")=>_encryption_service__WEBPACK_IMPORTED_MODULE_3__.A.decrypt(e,t),encryptWithPublicKey=async(e,t)=>await _encryption_service__WEBPACK_IMPORTED_MODULE_3__.A.encryptWithPublicKey(e,t),decryptWithPrivateKey=async(e,t)=>await _encryption_service__WEBPACK_IMPORTED_MODULE_3__.A.decryptWithPrivateKey(e,t),setLocalStorageItem=(e,t,r="production")=>{localCache.set(e,JSON.stringify(t)),"production"===r?localStorage.setItem(e,encrypt(JSON.stringify(t))):localStorage.setItem(e,JSON.stringify(t))},getLocalStorageItem=(e,t="production")=>{if(localCache.has(e))return JSON.parse(localCache.get(e));const r=localStorage.getItem(e);if(null==r)return null;try{const n="production"===t?JSON.parse(decrypt(r)):JSON.parse(r);return localCache.set(e,JSON.stringify(n)),n}catch{return localStorage.removeItem(e),null}},removeLocalStorageItem=e=>{localCache.delete(e),localStorage.removeItem(e)},setSessionStorageItem=(e,t,r="production")=>{sessionCache.set(e,JSON.stringify(t)),"production"===r?sessionStorage.setItem(e,encrypt(JSON.stringify(t))):sessionStorage.setItem(e,JSON.stringify(t))},getSessionStorageItem=(e,t="production")=>{if(sessionCache.has(e))return JSON.parse(sessionCache.get(e));const r=sessionStorage.getItem(e);if(null==r)return null;try{const n="production"===t?JSON.parse(decrypt(r)):JSON.parse(r);return sessionCache.set(e,JSON.stringify(n)),n}catch{return sessionStorage.removeItem(e),null}},removeSessionStorageItem=e=>{sessionCache.delete(e),sessionStorage.removeItem(e)},customPasswordValidator=e=>{const t=/[A-Z]/.test(e),r=/[a-z]/.test(e),n=/[0-9]/.test(e),i=/[#?!@$%^&*-]/.test(e);return t&&r&&n&&i},allowOnlyNumber=e=>{if(e=e||window.event,"paste"==e.type){const t=e,r=t.clipboardData?.getData("Text");return!isNaN(r)||t.preventDefault()}{const t=e,r=t.which?t.which:t.keyCode;return!(r>31&&(r<48||r>57)&&46!==r)||t.preventDefault()}},allowedDecimalPlaces=(e,t)=>{if(e=e||window.event,"paste"==e.type){const r=e,n=r.clipboardData?.getData("Text"),i=n?.indexOf(".");return!(n.split(".").length>2||t<=0&&2===n.split(".").length||2===n.split(".").length&&i+1!=n.length-t)||r.preventDefault()}{const r=e,n=r.which?r.which:r.keyCode;if(t<=0)return!(["keyup","keydown"].includes(e.type)&&190===n||"keypress"==r.type&&46===n)||r.preventDefault();{const e=r.target,i=e.value,o=i.indexOf(".");return!(o>=0&&o<i.length-t||46===n&&2===i.split(".").length)||r.preventDefault()}}},highlightText=(e,t,r="success")=>e.replace(new RegExp(t,"gi"),e=>`<span class='text-${r}'>${e}</span>`),imageExists=(e,t)=>{const r=new Image;if(r.src=e,r.complete)return void 0!=t&&t(!0),!0;r.onload=()=>(void 0!=t&&t(!0),!0),r.onerror=()=>(void 0!=t&&t(!1),!1)},httpBuildQuery=e=>{const t=encodeURIComponent,r=Object.keys(e).map(r=>t(r)+"="+t(e[r])).join("&");return r},uuid=(e,t)=>{let r=e||"";return r+=Math.random().toString(36).substring(2,8)+Math.random().toString(36).substring(2,8),r+=t||"",r},dateFormatter=(e,t="dd-MM-yyyy")=>(0,date_fns__WEBPACK_IMPORTED_MODULE_4__.A)(new Date(e),t),loadRemoteEmbeddable=url=>(window.__LOADED_EMBEDDABLES__||(window.__LOADED_EMBEDDABLES__=new Set),window.__LOADED_EMBEDDABLES__.has(url)?Promise.resolve({}):eval(`import("${url}")`).then(e=>(window.__LOADED_EMBEDDABLES__.add(url),e))),fromNow=e=>(0,date_fns__WEBPACK_IMPORTED_MODULE_5__.A)(new Date(e),{addSuffix:!0}),numberFormat=(e,t,r,n)=>{t=t||0,"string"===typeof e&&(e=parseFloat(e)),r&&n||(r=".",n=",");let i=Math.round(Math.abs(e)*Math.pow(10,t))+"";i=1>e&&-1<e&&i.length<=t?Array(t-i.length+1).join("0")+i:i;let o=t?i.slice(0,-1*t):i.slice(0);const s=parseInt(o)||0;o=0==s?"0":o;const a=t?i.slice(-1*t):"";let c="";while(o.length>3)c=n+o.slice(-3)+c,o=o.slice(0,-3);return(e<0?"-":"")+o+c+(a?r+a:"")}},5156:function(){},7545:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{A:function(){return n}})},6096:function(e,t,r){"use strict";function n(){this.__data__=[],this.size=0}r.d(t,{A:function(){return w}});var i=n,o=r(6979);function s(e,t){var r=e.length;while(r--)if((0,o.A)(e[r][0],t))return r;return-1}var a=s,c=Array.prototype,u=c.splice;function l(e){var t=this.__data__,r=a(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():u.call(t,r,1),--this.size,!0}var h=l;function d(e){var t=this.__data__,r=a(t,e);return r<0?void 0:t[r][1]}var p=d;function f(e){return a(this.__data__,e)>-1}var m=f;function g(e,t){var r=this.__data__,n=a(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var v=g;function y(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}y.prototype.clear=i,y.prototype["delete"]=h,y.prototype.get=p,y.prototype.has=m,y.prototype.set=v;var w=y},5436:function(e,t,r){"use strict";var n=r(8869),i=r(9600),o=(0,n.A)(i.A,"Map");t.A=o},3269:function(e,t,r){"use strict";r.d(t,{A:function(){return z}});var n=r(8869),i=(0,n.A)(Object,"create"),o=i;function s(){this.__data__=o?o(null):{},this.size=0}var a=s;function c(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var u=c,l="__lodash_hash_undefined__",h=Object.prototype,d=h.hasOwnProperty;function p(e){var t=this.__data__;if(o){var r=t[e];return r===l?void 0:r}return d.call(t,e)?t[e]:void 0}var f=p,m=Object.prototype,g=m.hasOwnProperty;function v(e){var t=this.__data__;return o?void 0!==t[e]:g.call(t,e)}var y=v,w="__lodash_hash_undefined__";function b(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=o&&void 0===t?w:t,this}var _=b;function k(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}k.prototype.clear=a,k.prototype["delete"]=u,k.prototype.get=f,k.prototype.has=y,k.prototype.set=_;var S=k,x=r(6096),C=r(5436);function E(){this.size=0,this.__data__={hash:new S,map:new(C.A||x.A),string:new S}}var A=E;function O(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var I=O;function T(e,t){var r=e.__data__;return I(t)?r["string"==typeof t?"string":"hash"]:r.map}var M=T;function R(e){var t=M(this,e)["delete"](e);return this.size-=t?1:0,t}var P=R;function D(e){return M(this,e).get(e)}var L=D;function B(e){return M(this,e).has(e)}var N=B;function j(e,t){var r=M(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var F=j;function U(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}U.prototype.clear=A,U.prototype["delete"]=P,U.prototype.get=L,U.prototype.has=N,U.prototype.set=F;var z=U},3516:function(e,t,r){"use strict";var n=r(9600),i=n.A.Symbol;t.A=i},6124:function(e,t,r){"use strict";var n=r(9271),i=r(6979),o=Object.prototype,s=o.hasOwnProperty;function a(e,t,r){var o=e[t];s.call(e,t)&&(0,i.A)(o,r)&&(void 0!==r||t in e)||(0,n.A)(e,t,r)}t.A=a},9271:function(e,t,r){"use strict";var n=r(1758);function i(e,t,r){"__proto__"==t&&n.A?(0,n.A)(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.A=i},4044:function(e,t,r){"use strict";r.d(t,{A:function(){return y}});var n=r(3516),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=n.A?n.A.toStringTag:void 0;function c(e){var t=o.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(c){}var i=s.call(e);return n&&(t?e[a]=r:delete e[a]),i}var u=c,l=Object.prototype,h=l.toString;function d(e){return h.call(e)}var p=d,f="[object Null]",m="[object Undefined]",g=n.A?n.A.toStringTag:void 0;function v(e){return null==e?void 0===e?m:f:g&&g in Object(e)?u(e):p(e)}var y=v},5118:function(e,t,r){"use strict";r.d(t,{A:function(){return M}});var n=r(6956),i=r(4089),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;function a(e,t){if((0,n.A)(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!(0,i.A)(e))||(s.test(e)||!o.test(e)||null!=t&&e in Object(t))}var c=a,u=r(3269),l="Expected a function";function h(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(l);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(h.Cache||u.A),r}h.Cache=u.A;var d=h,p=500;function f(e){var t=d(e,function(e){return r.size===p&&r.clear(),e}),r=t.cache;return t}var m=f,g=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,v=/\\(\\)?/g,y=m(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(g,function(e,r,n,i){t.push(n?i.replace(v,"$1"):r||e)}),t}),w=y,b=r(3516);function _(e,t){var r=-1,n=null==e?0:e.length,i=Array(n);while(++r<n)i[r]=t(e[r],r,e);return i}var k=_,S=1/0,x=b.A?b.A.prototype:void 0,C=x?x.toString:void 0;function E(e){if("string"==typeof e)return e;if((0,n.A)(e))return k(e,E)+"";if((0,i.A)(e))return C?C.call(e):"";var t=e+"";return"0"==t&&1/e==-S?"-0":t}var A=E;function O(e){return null==e?"":A(e)}var I=O;function T(e,t){return(0,n.A)(e)?e:c(e,t)?[e]:w(I(e))}var M=T},1758:function(e,t,r){"use strict";var n=r(8869),i=function(){try{var e=(0,n.A)(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();t.A=i},6713:function(e,t,r){"use strict";var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.A=n},8869:function(e,t,r){"use strict";r.d(t,{A:function(){return A}});var n=r(405),i=r(9600),o=i.A["__core-js_shared__"],s=o,a=function(){var e=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function c(e){return!!a&&a in e}var u=c,l=r(7942),h=Function.prototype,d=h.toString;function p(e){if(null!=e){try{return d.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var f=p,m=/[\\^$.*+?()[\]{}|]/g,g=/^\[object .+?Constructor\]$/,v=Function.prototype,y=Object.prototype,w=v.toString,b=y.hasOwnProperty,_=RegExp("^"+w.call(b).replace(m,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function k(e){if(!(0,l.A)(e)||u(e))return!1;var t=(0,n.A)(e)?_:g;return t.test(f(e))}var S=k;function x(e,t){return null==e?void 0:e[t]}var C=x;function E(e,t){var r=C(e,t);return S(r)?r:void 0}var A=E},7902:function(e,t,r){"use strict";function n(e,t){return function(r){return e(t(r))}}r.d(t,{A:function(){return s}});var i=n,o=i(Object.getPrototypeOf,Object),s=o},5378:function(e,t){"use strict";var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t=null==t?r:t,!!t&&("number"==i||"symbol"!=i&&n.test(e))&&e>-1&&e%1==0&&e<t}t.A=i},9600:function(e,t,r){"use strict";var n=r(6713),i="object"==typeof self&&self&&self.Object===Object&&self,o=n.A||i||Function("return this")();t.A=o},9322:function(e,t,r){"use strict";var n=r(4089),i=1/0;function o(e){if("string"==typeof e||(0,n.A)(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}t.A=o},6979:function(e,t){"use strict";function r(e,t){return e===t||e!==e&&t!==t}t.A=r},8552:function(e,t,r){"use strict";r.d(t,{A:function(){return c}});var n=r(5118),i=r(9322);function o(e,t){t=(0,n.A)(t,e);var r=0,o=t.length;while(null!=e&&r<o)e=e[(0,i.A)(t[r++])];return r&&r==o?e:void 0}var s=o;function a(e,t,r){var n=null==e?void 0:s(e,t);return void 0===n?r:n}var c=a},6956:function(e,t){"use strict";var r=Array.isArray;t.A=r},405:function(e,t,r){"use strict";var n=r(4044),i=r(7942),o="[object AsyncFunction]",s="[object Function]",a="[object GeneratorFunction]",c="[object Proxy]";function u(e){if(!(0,i.A)(e))return!1;var t=(0,n.A)(e);return t==s||t==a||t==o||t==c}t.A=u},7942:function(e,t){"use strict";function r(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}t.A=r},7313:function(e,t){"use strict";function r(e){return null!=e&&"object"==typeof e}t.A=r},8938:function(e,t,r){"use strict";var n=r(4044),i=r(7902),o=r(7313),s="[object Object]",a=Function.prototype,c=Object.prototype,u=a.toString,l=c.hasOwnProperty,h=u.call(Object);function d(e){if(!(0,o.A)(e)||(0,n.A)(e)!=s)return!1;var t=(0,i.A)(e);if(null===t)return!0;var r=l.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==h}t.A=d},4089:function(e,t,r){"use strict";var n=r(4044),i=r(7313),o="[object Symbol]";function s(e){return"symbol"==typeof e||(0,i.A)(e)&&(0,n.A)(e)==o}t.A=s},4441:function(e,t,r){"use strict";r.d(t,{A:function(){return h}});var n=r(6124),i=r(5118),o=r(5378),s=r(7942),a=r(9322);function c(e,t,r,c){if(!(0,s.A)(e))return e;t=(0,i.A)(t,e);var u=-1,l=t.length,h=l-1,d=e;while(null!=d&&++u<l){var p=(0,a.A)(t[u]),f=r;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(u!=h){var m=d[p];f=c?c(m,p,d):void 0,void 0===f&&(f=(0,s.A)(m)?m:(0,o.A)(t[u+1])?[]:{})}(0,n.A)(d,p,f),d=d[p]}return e}var u=c;function l(e,t,r){return null==e?e:u(e,t,r)}var h=l}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}!function(){__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return __webpack_require__.d(t,{a:t}),t}}(),function(){__webpack_require__.d=function(e,t){for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){__webpack_require__.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){__webpack_require__.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}();var __webpack_exports__={};return function(){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AlertService:function(){return e},DataModifierService:function(){return r},DraggableService:function(){return i},EventBus:function(){return ki},HTTPBaseService:function(){return Ur},HelperService:function(){return h},HttpProcess:function(){return t},MixpanelService:function(){return kA},ShrEventBus:function(){return Si},ShrPusherService:function(){return Oi},default:function(){return SA}});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{alert:function(){return Nr},fire:function(){return Br},toast:function(){return jr}});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{makeRequest:function(){return wi},makeRequestToExecute:function(){return bi}});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{alterUsersForProfileStrip:function(){return _i}});const n={enableDragSort:e=>{window.onload=()=>{const t=document.querySelectorAll(e);Array.prototype.map.call(t,r=>{n.enableDragList(r),shrSafeLog(e,t)})}},enableDragList:e=>{Array.prototype.map.call(e.children,e=>{n.enableDragItem(e)})},enableDragItem:e=>{e.setAttribute("draggable",new Boolean(!0).toString()),e.ondrag=n.handleDrag,e.ondragend=n.handleDrop},handleDrag:e=>{const t=e.target,r=t.parentNode,n=e.clientX,i=e.clientY;t.classList.add("drag-sort-active");let o=null===document.elementFromPoint(n,i)?t:document.elementFromPoint(n,i);r===o?.parentNode&&(o=o!==t.nextSibling?o:o.nextSibling,r?.insertBefore(t,o))},handleDrop:e=>{e.target?.classList.remove("drag-sort-active")}};var i=n,o=__webpack_require__(6660),s=__webpack_require__.n(o);
|
|
32
32
|
/*! js-cookie v3.0.5 | MIT */
|
|
33
|
-
function a(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var c={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function u(e,t){function r(r,n,i){if("undefined"!==typeof document){i=a({},t,i),"number"===typeof i.expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var s in i)i[s]&&(o+="; "+s,!0!==i[s]&&(o+="="+i[s].split(";")[0]));return document.cookie=r+"="+e.write(n,r)+o}}function n(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var r=document.cookie?document.cookie.split("; "):[],n={},i=0;i<r.length;i++){var o=r[i].split("="),s=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(n[a]=e.read(s,a),t===a)break}catch(c){}}return t?n[t]:n}}return Object.create({set:r,get:n,remove:function(e,t){r(e,"",a({},t,{expires:-1}))},withAttributes:function(e){return u(this.converter,a({},this.attributes,e))},withConverter:function(e){return u(a({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var l=u(c,{path:"/"}),h=__webpack_require__(6448);const d=new Map,p="@accessBreezeToken",f="@accessToken",m="idms_token",g="@refreshToken";class v{encryptionKey;constructor(e){this.encryptionKey=e}get(e){if(d.has(e))return JSON.parse(d.get(e));const t=l.get(e);if(!t)return"";let r="";try{r=JSON.parse(h.decrypt(t,this.encryptionKey))}catch{return l.remove(e),""}return d.set(e,JSON.stringify(r)),r}set(e,t,r){d.set(e,JSON.stringify(t)),t=h.encrypt(JSON.stringify(t),this.encryptionKey),l.set(e,t,r)}remove(e,t){d.delete(e),l.remove(e,t)}saveBreezeToken(e,t){const r=Date.now()+12e4;e.expires=r,this.set(p,e,t)}removeBreezeToken(e){this.remove(p,e)}getBreezeTokenKey(){return p}getBreezeToken(){return this.get(p)}getTokenKey(){return f}getToken(){return this.get(f)}saveToken(e,t){this.set(f,e,t)}removeToken(e){this.remove(f,e)}removeLocalStorageToken(){h.removeLocalStorageItem(m)}getRefreshTokenKey(){return g}getRefreshToken(){return this.get(g)}saveRefreshToken(e){this.set(g,e)}removeRefreshToken(e){this.remove(g,e)}}var y=v;const w="@appClient",b="@loggedInUser";class _{encryptionKey;tokenService;constructor(e){this.encryptionKey=e,this.tokenService=new y(e)}setClientDetails(e){h.setLocalStorageItem(w,e)}getClientDetails(){return h.getLocalStorageItem(w)}removeClientDetails(){h.removeLocalStorageItem(w)}setLoggedInUser(e){h.setLocalStorageItem(b,e)}getLoggedInUser(){return h.getLocalStorageItem(b)}removeLoggedInUser(){h.removeLocalStorageItem(b)}isLoggedIn(){return!!this.hasLoggedIn()}logOut(){this.tokenService.removeLocalStorageToken(),this.tokenService.removeToken(),this.tokenService.removeBreezeToken(),this.removeLoggedInUser()}hasLoggedIn(){const e=this.getLoggedInUser();return!!e?.id}}var k=_,S=__webpack_require__(6586),x=__webpack_require__.n(S),C=__webpack_require__(6096);function E(){this.__data__=new C.A,this.size=0}var A=E;function O(e){var t=this.__data__,r=t["delete"](e);return this.size=t.size,r}var I=O;function T(e){return this.__data__.get(e)}var M=T;function R(e){return this.__data__.has(e)}var P=R,D=__webpack_require__(5436),L=__webpack_require__(3269),B=200;function N(e,t){var r=this.__data__;if(r instanceof C.A){var n=r.__data__;if(!D.A||n.length<B-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new L.A(n)}return r.set(e,t),this.size=r.size,this}var j=N;function F(e){var t=this.__data__=new C.A(e);this.size=t.size}F.prototype.clear=A,F.prototype["delete"]=I,F.prototype.get=M,F.prototype.has=P,F.prototype.set=j;var U=F,z=__webpack_require__(9271),q=__webpack_require__(6979);function H(e,t,r){(void 0!==r&&!(0,q.A)(e[t],r)||void 0===r&&!(t in e))&&(0,z.A)(e,t,r)}var $=H;function W(e){return function(t,r,n){var i=-1,o=Object(t),s=n(t),a=s.length;while(a--){var c=s[e?a:++i];if(!1===r(o[c],c,o))break}return t}}var V=W,Y=V(),X=Y,J=__webpack_require__(9600),G="object"==typeof exports&&exports&&!exports.nodeType&&exports,K=G&&"object"==typeof module&&module&&!module.nodeType&&module,Z=K&&K.exports===G,Q=Z?J.A.Buffer:void 0,ee=Q?Q.allocUnsafe:void 0;function te(e,t){if(t)return e.slice();var r=e.length,n=ee?ee(r):new e.constructor(r);return e.copy(n),n}var re=te,ne=J.A.Uint8Array,ie=ne;function oe(e){var t=new e.constructor(e.byteLength);return new ie(t).set(new ie(e)),t}var se=oe;function ae(e,t){var r=t?se(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var ce=ae;function ue(e,t){var r=-1,n=e.length;t||(t=Array(n));while(++r<n)t[r]=e[r];return t}var le=ue,he=__webpack_require__(7942),de=Object.create,pe=function(){function e(){}return function(t){if(!(0,he.A)(t))return{};if(de)return de(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),fe=pe,me=__webpack_require__(7902),ge=Object.prototype;function ve(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||ge;return e===r}var ye=ve;function we(e){return"function"!=typeof e.constructor||ye(e)?{}:fe((0,me.A)(e))}var be=we,_e=__webpack_require__(4044),ke=__webpack_require__(7313),Se="[object Arguments]";function xe(e){return(0,ke.A)(e)&&(0,_e.A)(e)==Se}var Ce=xe,Ee=Object.prototype,Ae=Ee.hasOwnProperty,Oe=Ee.propertyIsEnumerable,Ie=Ce(function(){return arguments}())?Ce:function(e){return(0,ke.A)(e)&&Ae.call(e,"callee")&&!Oe.call(e,"callee")},Te=Ie,Me=__webpack_require__(6956),Re=__webpack_require__(405),Pe=9007199254740991;function De(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Pe}var Le=De;function Be(e){return null!=e&&Le(e.length)&&!(0,Re.A)(e)}var Ne=Be;function je(e){return(0,ke.A)(e)&&Ne(e)}var Fe=je;function Ue(){return!1}var ze=Ue,qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,He=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=He&&He.exports===qe,We=$e?J.A.Buffer:void 0,Ve=We?We.isBuffer:void 0,Ye=Ve||ze,Xe=Ye,Je=__webpack_require__(8938),Ge="[object Arguments]",Ke="[object Array]",Ze="[object Boolean]",Qe="[object Date]",et="[object Error]",tt="[object Function]",rt="[object Map]",nt="[object Number]",it="[object Object]",ot="[object RegExp]",st="[object Set]",at="[object String]",ct="[object WeakMap]",ut="[object ArrayBuffer]",lt="[object DataView]",ht="[object Float32Array]",dt="[object Float64Array]",pt="[object Int8Array]",ft="[object Int16Array]",mt="[object Int32Array]",gt="[object Uint8Array]",vt="[object Uint8ClampedArray]",yt="[object Uint16Array]",wt="[object Uint32Array]",bt={};function _t(e){return(0,ke.A)(e)&&Le(e.length)&&!!bt[(0,_e.A)(e)]}bt[ht]=bt[dt]=bt[pt]=bt[ft]=bt[mt]=bt[gt]=bt[vt]=bt[yt]=bt[wt]=!0,bt[Ge]=bt[Ke]=bt[ut]=bt[Ze]=bt[lt]=bt[Qe]=bt[et]=bt[tt]=bt[rt]=bt[nt]=bt[it]=bt[ot]=bt[st]=bt[at]=bt[ct]=!1;var kt=_t;function St(e){return function(t){return e(t)}}var xt=St,Ct=__webpack_require__(6713),Et="object"==typeof exports&&exports&&!exports.nodeType&&exports,At=Et&&"object"==typeof module&&module&&!module.nodeType&&module,Ot=At&&At.exports===Et,It=Ot&&Ct.A.process,Tt=function(){try{var e=At&&At.require&&At.require("util").types;return e||It&&It.binding&&It.binding("util")}catch(t){}}(),Mt=Tt,Rt=Mt&&Mt.isTypedArray,Pt=Rt?xt(Rt):kt,Dt=Pt;function Lt(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Bt=Lt,Nt=__webpack_require__(6124);function jt(e,t,r,n){var i=!r;r||(r={});var o=-1,s=t.length;while(++o<s){var a=t[o],c=n?n(r[a],e[a],a,r,e):void 0;void 0===c&&(c=e[a]),i?(0,z.A)(r,a,c):(0,Nt.A)(r,a,c)}return r}var Ft=jt;function Ut(e,t){var r=-1,n=Array(e);while(++r<e)n[r]=t(r);return n}var zt=Ut,qt=__webpack_require__(5378),Ht=Object.prototype,$t=Ht.hasOwnProperty;function Wt(e,t){var r=(0,Me.A)(e),n=!r&&Te(e),i=!r&&!n&&Xe(e),o=!r&&!n&&!i&&Dt(e),s=r||n||i||o,a=s?zt(e.length,String):[],c=a.length;for(var u in e)!t&&!$t.call(e,u)||s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||(0,qt.A)(u,c))||a.push(u);return a}var Vt=Wt;function Yt(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}var Xt=Yt,Jt=Object.prototype,Gt=Jt.hasOwnProperty;function Kt(e){if(!(0,he.A)(e))return Xt(e);var t=ye(e),r=[];for(var n in e)("constructor"!=n||!t&&Gt.call(e,n))&&r.push(n);return r}var Zt=Kt;function Qt(e){return Ne(e)?Vt(e,!0):Zt(e)}var er=Qt;function tr(e){return Ft(e,er(e))}var rr=tr;function nr(e,t,r,n,i,o,s){var a=Bt(e,r),c=Bt(t,r),u=s.get(c);if(u)$(e,r,u);else{var l=o?o(a,c,r+"",e,t,s):void 0,h=void 0===l;if(h){var d=(0,Me.A)(c),p=!d&&Xe(c),f=!d&&!p&&Dt(c);l=c,d||p||f?(0,Me.A)(a)?l=a:Fe(a)?l=le(a):p?(h=!1,l=re(c,!0)):f?(h=!1,l=ce(c,!0)):l=[]:(0,Je.A)(c)||Te(c)?(l=a,Te(a)?l=rr(a):(0,he.A)(a)&&!(0,Re.A)(a)||(l=be(c))):h=!1}h&&(s.set(c,l),i(l,c,n,o,s),s["delete"](c)),$(e,r,l)}}var ir=nr;function or(e,t,r,n,i){e!==t&&X(t,function(o,s){if(i||(i=new U),(0,he.A)(o))ir(e,t,s,r,or,n,i);else{var a=n?n(Bt(e,s),o,s+"",e,t,i):void 0;void 0===a&&(a=o),$(e,s,a)}},er)}var sr=or;function ar(e){return e}var cr=ar;function ur(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var lr=ur,hr=Math.max;function dr(e,t,r){return t=hr(void 0===t?e.length-1:t,0),function(){var n=arguments,i=-1,o=hr(n.length-t,0),s=Array(o);while(++i<o)s[i]=n[t+i];i=-1;var a=Array(t+1);while(++i<t)a[i]=n[i];return a[t]=r(s),lr(e,this,a)}}var pr=dr;function fr(e){return function(){return e}}var mr=fr,gr=__webpack_require__(1758),vr=gr.A?function(e,t){return(0,gr.A)(e,"toString",{configurable:!0,enumerable:!1,value:mr(t),writable:!0})}:cr,yr=vr,wr=800,br=16,_r=Date.now;function kr(e){var t=0,r=0;return function(){var n=_r(),i=br-(n-r);if(r=n,i>0){if(++t>=wr)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Sr=kr,xr=Sr(yr),Cr=xr;function Er(e,t){return Cr(pr(e,t,cr),e+"")}var Ar=Er;function Or(e,t,r){if(!(0,he.A)(r))return!1;var n=typeof t;return!!("number"==n?Ne(r)&&(0,qt.A)(t,r.length):"string"==n&&t in r)&&(0,q.A)(r[t],e)}var Ir=Or;function Tr(e){return Ar(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;o=e.length>3&&"function"==typeof o?(i--,o):void 0,s&&Ir(r[0],r[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);while(++n<i){var a=r[n];a&&e(t,a,n,o)}return t})}var Mr=Tr,Rr=Mr(function(e,t,r){sr(e,t,r)}),Pr=Rr;const Dr="calc(var(--sfe-stack-level-alert) + 1)",Lr=e=>{const t=e.closest(".swal2-container");t?.style.setProperty("z-index",Dr)},Br=e=>{const t=e.didOpen;return x().fire({...e,didOpen:e=>{Lr(e),t?.(e)}})},Nr=(e,t)=>{const r={confirmButtonText:"Yes",cancelButtonText:"No",customClass:{confirmButton:"btn btn-primary",cancelButton:"btn btn-danger"},reverseButtons:!0},n={showCancelButton:!t,showCloseButton:!1,buttonsStyling:!1},i=Pr(r,e,n);return Br({html:`<div class="d-flex flex-column">\n <div class="icon d-flex wpx-76 hpx-76 bg-${i.iconColor}-lt-2 rounded-circle mx-auto mt-4">\n <span class="material-icons fw-700 fs-40 text-${i.iconColor}-dk-1 my-auto mx-auto">\n ${i.iconName}\n </span>\n </div>\n <div class="title text-secondary fw-500 fs-20 lh-24 mx-auto mt-4 px-4 text-center">${i.subject}</div>\n <div class="message text-secondary-muted fw-400 fs-15 lh-23 mx-auto mt-2 px-4">${i.message}</div>\n </div>`,...i})},jr=(e,t,r)=>{let n,i;switch(e){case"success":n="check_circle",i="success";break;case"warning":n="error",i="warning";break;case"error":n="cancel",i="danger";break;case"info":default:n="help",i="primary";break}Br({toast:!0,position:"top",showConfirmButton:!1,timer:5e3,timerProgressBar:!1,showCancelButton:!1,didOpen:e=>{e.addEventListener("mouseenter",x().stopTimer),e.addEventListener("mouseleave",x().resumeTimer),e.querySelector(".swal2-cancel")?.addEventListener("click",()=>{x().close()})},html:`<div class="d-flex justify-content-between">\n <div class="d-flex flex-grow-1 align-items-start">\n <div class="me-2 mt-1">\n <span class="material-icons text-${i} fs-18">\n ${n}\n </span>\n </div>\n <div class="flex-grow-1 me-2 text-left mt-1 mb-2">\n <p class="text-${i} mb-1 fs-16 fw-500">${t}</p>\n <small class="m-0 text-secondary-muted fs-15 fw-normal">${r}</small>\n </div>\n </div>\n <span class="swal2-cancel material-icons small cursor-pointer text-secondary-lt-1"">clear</span>\n </div>`})},Fr={"X-Requested-With":"XMLHttpRequest","SHR-Client-URL":`${window?.location?.host}`},Ur="/api/v2/auth/refresh-token-web";class zr{tokenService;authService;instance;token;apiBaseUrl;refreshTokenPath;loginUrl;timeout;projectType;httpHeaders;showError;constructor(e){this.tokenService=new y(e?.encryptionKey),this.authService=new k(e?.encryptionKey),this.apiBaseUrl=e?.apiBaseUrl||"/",this.refreshTokenPath=e?.refreshTokenPath||"",this.loginUrl=e?.loginUrl,this.timeout=e?.timeout||2e4,this.projectType=e?.projectType,this.httpHeaders=e?.httpHeaders||{},this.showError=Object.assign({},{error500:!0,error400:!0,error422:!0,error404:!0,error401:!0,error403:!0},e?.showError),this.instance=s().create({baseURL:this.apiBaseUrl}),this.token=void 0,this.initializeRequestInterceptor(),this.initializeResponseInterceptor()}getInstance=()=>this.instance;interceptorCallbacks=(e,t)=>{if(!t||!Array.isArray(t))throw new Error("callbacks should be an array of functions");t.forEach(t=>{if("function"!==typeof t)throw new Error("callback should be a function");t(e)})};initializeRequestInterceptor=()=>{this.instance.interceptors.request.use(this.handleRequest,e=>{Promise.reject(e)})};safeGetToken=()=>{try{return this.tokenService.getToken()}catch{return}};safeGetBreezeToken=()=>{try{return this.tokenService.getBreezeToken()}catch{return}};getIsExpired=e=>{if(!e)return!1;const t="number"===typeof e?e:Date.parse(e);return!Number.isNaN(t)&&t<=Date.now()};async refreshBreezeToken(e){const t=this.authService.getLoggedInUser(),r=e.refreshToken,n=t?.ums_user_id;if(r&&n)try{const e=await s().post(`${location.origin}${Ur}`,{refresh_token:r,ums_user_id:n}),t=e.data?.data;if(!t?.access_token)throw this.authService.logOut(),new Error("Unable to refresh Breeze token");return this.tokenService.saveBreezeToken({token:t.access_token,refreshToken:t.refresh_token,expires:t.token_expires_at}),t.access_token}catch(i){throw this.authService.logOut(),i}}resolveApiToken=async()=>{const e=this.safeGetToken();if(e)return e;const t=this.safeGetBreezeToken(),r=t?.token;return r?this.getIsExpired(t?.expires)?this.refreshBreezeToken(t):r:void 0};handleRequest=async e=>{this.token=await this.resolveApiToken();const t=Object.assign({},e.headers?.common||{},this.httpHeaders,{Authorization:`Bearer ${this.token}`},Fr);return e.timeout=this.timeout,this.token&&(e.headers=Object.assign({},e.headers,{Authorization:`Bearer ${this.token}`},{common:t})),navigator.onLine?e:(jr("error","Error","No internet access!"),Promise.reject(new Error("No internet access!")))};initializeResponseInterceptor=()=>{this.instance.interceptors.response.use(e=>{if(e.headers&&e.headers.authorization){const t=e.headers.authorization.split(" ")[1];this.token=t,this.tokenService.saveToken(this.token)}return e},this.handleError)};handleError=async e=>{const t=e.config;if(this.showError?.error403&&403===e.response?.status&&!t?._retry){t._retry=!0;const e=await this.refreshToken();if(200===e.status)return this.token=e.data.jwt,this.tokenService.saveToken(this.token),this.tokenService.saveRefreshToken(e.data.jwt_refresh),navigator.onLine?this.instance(t):(jr("error","Error","No internet access!"),Promise.reject(new Error("No internet access!")))}return this.showError?.error500&&500==e.response?.status&&(e.response.data.message?jr("error","Error",e.response.data.message):jr("error","Error","Unable to process request at this time, please try again")),this.showError?.error400&&400==e.response?.status&&(e.response.data.message?jr("error","Error",e.response.data.message):jr("error","Error","Bad Request")),this.showError?.error422&&422===e.response?.status&&(e.response.data.message?jr("error","Error",e.response.data.message):jr("error","Error",Object.values(e?.response?.data?.error)[0][0])),this.showError?.error404&&404===e.response?.status&&jr("error","Error",`${e.config.url} not found`),this.showError?.error401&&401===e.response?.status&&(this.authService.logOut(),jr("error","Error","Your session has expired, you need to sign in again."),setTimeout(()=>{const e="function"===typeof this.loginUrl?this.loginUrl():this.loginUrl;location.href=e},1e3)),Promise.reject(e.response)};async refreshToken(){const e={jwt_refresh:this.tokenService.getRefreshToken()};return s().post(`${this.apiBaseUrl}${this.refreshTokenPath}`,e)}}
|
|
33
|
+
function a(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var c={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function u(e,t){function r(r,n,i){if("undefined"!==typeof document){i=a({},t,i),"number"===typeof i.expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var s in i)i[s]&&(o+="; "+s,!0!==i[s]&&(o+="="+i[s].split(";")[0]));return document.cookie=r+"="+e.write(n,r)+o}}function n(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var r=document.cookie?document.cookie.split("; "):[],n={},i=0;i<r.length;i++){var o=r[i].split("="),s=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(n[a]=e.read(s,a),t===a)break}catch(c){}}return t?n[t]:n}}return Object.create({set:r,get:n,remove:function(e,t){r(e,"",a({},t,{expires:-1}))},withAttributes:function(e){return u(this.converter,a({},this.attributes,e))},withConverter:function(e){return u(a({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var l=u(c,{path:"/"}),h=__webpack_require__(6448);const d=new Map,p="@accessBreezeToken",f="@accessToken",m="idms_token",g="@refreshToken";class v{encryptionKey;constructor(e){this.encryptionKey=e}get(e){if(d.has(e))return JSON.parse(d.get(e));const t=l.get(e);if(!t)return"";let r="";try{r=JSON.parse(h.decrypt(t,this.encryptionKey))}catch{return l.remove(e),""}return d.set(e,JSON.stringify(r)),r}set(e,t,r){d.set(e,JSON.stringify(t)),t=h.encrypt(JSON.stringify(t),this.encryptionKey),l.set(e,t,r)}remove(e,t){d.delete(e),l.remove(e,t)}saveBreezeToken(e,t){const r=Date.now()+3e5;e.expires=r,this.set(p,e,t)}removeBreezeToken(e){this.remove(p,e)}getBreezeTokenKey(){return p}getBreezeToken(){return this.get(p)}getTokenKey(){return f}getToken(){return this.get(f)}saveToken(e,t){this.set(f,e,t)}removeToken(e){this.remove(f,e)}removeLocalStorageToken(){h.removeLocalStorageItem(m)}getRefreshTokenKey(){return g}getRefreshToken(){return this.get(g)}saveRefreshToken(e){this.set(g,e)}removeRefreshToken(e){this.remove(g,e)}}var y=v;const w="@appClient",b="@loggedInUser";class _{encryptionKey;tokenService;constructor(e){this.encryptionKey=e,this.tokenService=new y(e)}setClientDetails(e){h.setLocalStorageItem(w,e)}getClientDetails(){return h.getLocalStorageItem(w)}removeClientDetails(){h.removeLocalStorageItem(w)}setLoggedInUser(e){h.setLocalStorageItem(b,e)}getLoggedInUser(){return h.getLocalStorageItem(b)}removeLoggedInUser(){h.removeLocalStorageItem(b)}isLoggedIn(){return!!this.hasLoggedIn()}logOut(){this.tokenService.removeLocalStorageToken(),this.tokenService.removeToken(),this.tokenService.removeBreezeToken(),this.removeLoggedInUser()}hasLoggedIn(){const e=this.getLoggedInUser();return!!e?.id}}var k=_,S=__webpack_require__(6586),x=__webpack_require__.n(S),C=__webpack_require__(6096);function E(){this.__data__=new C.A,this.size=0}var A=E;function O(e){var t=this.__data__,r=t["delete"](e);return this.size=t.size,r}var I=O;function T(e){return this.__data__.get(e)}var M=T;function R(e){return this.__data__.has(e)}var P=R,D=__webpack_require__(5436),L=__webpack_require__(3269),B=200;function N(e,t){var r=this.__data__;if(r instanceof C.A){var n=r.__data__;if(!D.A||n.length<B-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new L.A(n)}return r.set(e,t),this.size=r.size,this}var j=N;function F(e){var t=this.__data__=new C.A(e);this.size=t.size}F.prototype.clear=A,F.prototype["delete"]=I,F.prototype.get=M,F.prototype.has=P,F.prototype.set=j;var U=F,z=__webpack_require__(9271),q=__webpack_require__(6979);function H(e,t,r){(void 0!==r&&!(0,q.A)(e[t],r)||void 0===r&&!(t in e))&&(0,z.A)(e,t,r)}var $=H;function W(e){return function(t,r,n){var i=-1,o=Object(t),s=n(t),a=s.length;while(a--){var c=s[e?a:++i];if(!1===r(o[c],c,o))break}return t}}var V=W,Y=V(),X=Y,J=__webpack_require__(9600),G="object"==typeof exports&&exports&&!exports.nodeType&&exports,K=G&&"object"==typeof module&&module&&!module.nodeType&&module,Z=K&&K.exports===G,Q=Z?J.A.Buffer:void 0,ee=Q?Q.allocUnsafe:void 0;function te(e,t){if(t)return e.slice();var r=e.length,n=ee?ee(r):new e.constructor(r);return e.copy(n),n}var re=te,ne=J.A.Uint8Array,ie=ne;function oe(e){var t=new e.constructor(e.byteLength);return new ie(t).set(new ie(e)),t}var se=oe;function ae(e,t){var r=t?se(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var ce=ae;function ue(e,t){var r=-1,n=e.length;t||(t=Array(n));while(++r<n)t[r]=e[r];return t}var le=ue,he=__webpack_require__(7942),de=Object.create,pe=function(){function e(){}return function(t){if(!(0,he.A)(t))return{};if(de)return de(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),fe=pe,me=__webpack_require__(7902),ge=Object.prototype;function ve(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||ge;return e===r}var ye=ve;function we(e){return"function"!=typeof e.constructor||ye(e)?{}:fe((0,me.A)(e))}var be=we,_e=__webpack_require__(4044),ke=__webpack_require__(7313),Se="[object Arguments]";function xe(e){return(0,ke.A)(e)&&(0,_e.A)(e)==Se}var Ce=xe,Ee=Object.prototype,Ae=Ee.hasOwnProperty,Oe=Ee.propertyIsEnumerable,Ie=Ce(function(){return arguments}())?Ce:function(e){return(0,ke.A)(e)&&Ae.call(e,"callee")&&!Oe.call(e,"callee")},Te=Ie,Me=__webpack_require__(6956),Re=__webpack_require__(405),Pe=9007199254740991;function De(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Pe}var Le=De;function Be(e){return null!=e&&Le(e.length)&&!(0,Re.A)(e)}var Ne=Be;function je(e){return(0,ke.A)(e)&&Ne(e)}var Fe=je;function Ue(){return!1}var ze=Ue,qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,He=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=He&&He.exports===qe,We=$e?J.A.Buffer:void 0,Ve=We?We.isBuffer:void 0,Ye=Ve||ze,Xe=Ye,Je=__webpack_require__(8938),Ge="[object Arguments]",Ke="[object Array]",Ze="[object Boolean]",Qe="[object Date]",et="[object Error]",tt="[object Function]",rt="[object Map]",nt="[object Number]",it="[object Object]",ot="[object RegExp]",st="[object Set]",at="[object String]",ct="[object WeakMap]",ut="[object ArrayBuffer]",lt="[object DataView]",ht="[object Float32Array]",dt="[object Float64Array]",pt="[object Int8Array]",ft="[object Int16Array]",mt="[object Int32Array]",gt="[object Uint8Array]",vt="[object Uint8ClampedArray]",yt="[object Uint16Array]",wt="[object Uint32Array]",bt={};function _t(e){return(0,ke.A)(e)&&Le(e.length)&&!!bt[(0,_e.A)(e)]}bt[ht]=bt[dt]=bt[pt]=bt[ft]=bt[mt]=bt[gt]=bt[vt]=bt[yt]=bt[wt]=!0,bt[Ge]=bt[Ke]=bt[ut]=bt[Ze]=bt[lt]=bt[Qe]=bt[et]=bt[tt]=bt[rt]=bt[nt]=bt[it]=bt[ot]=bt[st]=bt[at]=bt[ct]=!1;var kt=_t;function St(e){return function(t){return e(t)}}var xt=St,Ct=__webpack_require__(6713),Et="object"==typeof exports&&exports&&!exports.nodeType&&exports,At=Et&&"object"==typeof module&&module&&!module.nodeType&&module,Ot=At&&At.exports===Et,It=Ot&&Ct.A.process,Tt=function(){try{var e=At&&At.require&&At.require("util").types;return e||It&&It.binding&&It.binding("util")}catch(t){}}(),Mt=Tt,Rt=Mt&&Mt.isTypedArray,Pt=Rt?xt(Rt):kt,Dt=Pt;function Lt(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Bt=Lt,Nt=__webpack_require__(6124);function jt(e,t,r,n){var i=!r;r||(r={});var o=-1,s=t.length;while(++o<s){var a=t[o],c=n?n(r[a],e[a],a,r,e):void 0;void 0===c&&(c=e[a]),i?(0,z.A)(r,a,c):(0,Nt.A)(r,a,c)}return r}var Ft=jt;function Ut(e,t){var r=-1,n=Array(e);while(++r<e)n[r]=t(r);return n}var zt=Ut,qt=__webpack_require__(5378),Ht=Object.prototype,$t=Ht.hasOwnProperty;function Wt(e,t){var r=(0,Me.A)(e),n=!r&&Te(e),i=!r&&!n&&Xe(e),o=!r&&!n&&!i&&Dt(e),s=r||n||i||o,a=s?zt(e.length,String):[],c=a.length;for(var u in e)!t&&!$t.call(e,u)||s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||(0,qt.A)(u,c))||a.push(u);return a}var Vt=Wt;function Yt(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}var Xt=Yt,Jt=Object.prototype,Gt=Jt.hasOwnProperty;function Kt(e){if(!(0,he.A)(e))return Xt(e);var t=ye(e),r=[];for(var n in e)("constructor"!=n||!t&&Gt.call(e,n))&&r.push(n);return r}var Zt=Kt;function Qt(e){return Ne(e)?Vt(e,!0):Zt(e)}var er=Qt;function tr(e){return Ft(e,er(e))}var rr=tr;function nr(e,t,r,n,i,o,s){var a=Bt(e,r),c=Bt(t,r),u=s.get(c);if(u)$(e,r,u);else{var l=o?o(a,c,r+"",e,t,s):void 0,h=void 0===l;if(h){var d=(0,Me.A)(c),p=!d&&Xe(c),f=!d&&!p&&Dt(c);l=c,d||p||f?(0,Me.A)(a)?l=a:Fe(a)?l=le(a):p?(h=!1,l=re(c,!0)):f?(h=!1,l=ce(c,!0)):l=[]:(0,Je.A)(c)||Te(c)?(l=a,Te(a)?l=rr(a):(0,he.A)(a)&&!(0,Re.A)(a)||(l=be(c))):h=!1}h&&(s.set(c,l),i(l,c,n,o,s),s["delete"](c)),$(e,r,l)}}var ir=nr;function or(e,t,r,n,i){e!==t&&X(t,function(o,s){if(i||(i=new U),(0,he.A)(o))ir(e,t,s,r,or,n,i);else{var a=n?n(Bt(e,s),o,s+"",e,t,i):void 0;void 0===a&&(a=o),$(e,s,a)}},er)}var sr=or;function ar(e){return e}var cr=ar;function ur(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var lr=ur,hr=Math.max;function dr(e,t,r){return t=hr(void 0===t?e.length-1:t,0),function(){var n=arguments,i=-1,o=hr(n.length-t,0),s=Array(o);while(++i<o)s[i]=n[t+i];i=-1;var a=Array(t+1);while(++i<t)a[i]=n[i];return a[t]=r(s),lr(e,this,a)}}var pr=dr;function fr(e){return function(){return e}}var mr=fr,gr=__webpack_require__(1758),vr=gr.A?function(e,t){return(0,gr.A)(e,"toString",{configurable:!0,enumerable:!1,value:mr(t),writable:!0})}:cr,yr=vr,wr=800,br=16,_r=Date.now;function kr(e){var t=0,r=0;return function(){var n=_r(),i=br-(n-r);if(r=n,i>0){if(++t>=wr)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Sr=kr,xr=Sr(yr),Cr=xr;function Er(e,t){return Cr(pr(e,t,cr),e+"")}var Ar=Er;function Or(e,t,r){if(!(0,he.A)(r))return!1;var n=typeof t;return!!("number"==n?Ne(r)&&(0,qt.A)(t,r.length):"string"==n&&t in r)&&(0,q.A)(r[t],e)}var Ir=Or;function Tr(e){return Ar(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;o=e.length>3&&"function"==typeof o?(i--,o):void 0,s&&Ir(r[0],r[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);while(++n<i){var a=r[n];a&&e(t,a,n,o)}return t})}var Mr=Tr,Rr=Mr(function(e,t,r){sr(e,t,r)}),Pr=Rr;const Dr="calc(var(--sfe-stack-level-alert) + 1)",Lr=e=>{const t=e.closest(".swal2-container");t?.style.setProperty("z-index",Dr)},Br=e=>{const t=e.didOpen;return x().fire({...e,didOpen:e=>{Lr(e),t?.(e)}})},Nr=(e,t)=>{const r={confirmButtonText:"Yes",cancelButtonText:"No",customClass:{confirmButton:"btn btn-primary",cancelButton:"btn btn-danger"},reverseButtons:!0},n={showCancelButton:!t,showCloseButton:!1,buttonsStyling:!1},i=Pr(r,e,n);return Br({html:`<div class="d-flex flex-column">\n <div class="icon d-flex wpx-76 hpx-76 bg-${i.iconColor}-lt-2 rounded-circle mx-auto mt-4">\n <span class="material-icons fw-700 fs-40 text-${i.iconColor}-dk-1 my-auto mx-auto">\n ${i.iconName}\n </span>\n </div>\n <div class="title text-secondary fw-500 fs-20 lh-24 mx-auto mt-4 px-4 text-center">${i.subject}</div>\n <div class="message text-secondary-muted fw-400 fs-15 lh-23 mx-auto mt-2 px-4">${i.message}</div>\n </div>`,...i})},jr=(e,t,r)=>{let n,i;switch(e){case"success":n="check_circle",i="success";break;case"warning":n="error",i="warning";break;case"error":n="cancel",i="danger";break;case"info":default:n="help",i="primary";break}Br({toast:!0,position:"top",showConfirmButton:!1,timer:5e3,timerProgressBar:!1,showCancelButton:!1,didOpen:e=>{e.addEventListener("mouseenter",x().stopTimer),e.addEventListener("mouseleave",x().resumeTimer),e.querySelector(".swal2-cancel")?.addEventListener("click",()=>{x().close()})},html:`<div class="d-flex justify-content-between">\n <div class="d-flex flex-grow-1 align-items-start">\n <div class="me-2 mt-1">\n <span class="material-icons text-${i} fs-18">\n ${n}\n </span>\n </div>\n <div class="flex-grow-1 me-2 text-left mt-1 mb-2">\n <p class="text-${i} mb-1 fs-16 fw-500">${t}</p>\n <small class="m-0 text-secondary-muted fs-15 fw-normal">${r}</small>\n </div>\n </div>\n <span class="swal2-cancel material-icons small cursor-pointer text-secondary-lt-1"">clear</span>\n </div>`})},Fr={"X-Requested-With":"XMLHttpRequest","SHR-Client-URL":`${window?.location?.host}`};class Ur{tokenService;authService;instance;token;apiBaseUrl;refreshTokenPath;loginUrl;timeout;projectType;httpHeaders;showError;constructor(e){this.tokenService=new y(e?.encryptionKey),this.authService=new k(e?.encryptionKey),this.apiBaseUrl=e?.apiBaseUrl||"/",this.refreshTokenPath=e?.refreshTokenPath||"",this.loginUrl=e?.loginUrl,this.timeout=e?.timeout||2e4,this.projectType=e?.projectType,this.httpHeaders=e?.httpHeaders||{},this.showError=Object.assign({},{error500:!0,error400:!0,error422:!0,error404:!0,error401:!0,error403:!0},e?.showError),this.instance=s().create({baseURL:this.apiBaseUrl}),this.token=this.tokenService.getToken(),this.initializeRequestInterceptor(),this.initializeResponseInterceptor()}getInstance=()=>this.instance;interceptorCallbacks=(e,t)=>{if(!t||!Array.isArray(t))throw new Error("callbacks should be an array of functions");t.forEach(t=>{if("function"!==typeof t)throw new Error("callback should be a function");t(e)})};initializeRequestInterceptor=()=>{this.instance.interceptors.request.use(this.handleRequest,e=>{Promise.reject(e)})};handleRequest=e=>{this.token="breeze"===this.projectType?this.tokenService.getBreezeToken()?.token:this.tokenService.getToken();const t=Object.assign({},e.headers?.common||{},this.httpHeaders,{Authorization:`Bearer ${this.token}`},Fr);return e.timeout=this.timeout,this.token&&(e.headers=Object.assign({},e.headers,{Authorization:`Bearer ${this.token}`},{common:t})),navigator.onLine?e:(jr("error","Error","No internet access!"),Promise.reject(new Error("No internet access!")))};initializeResponseInterceptor=()=>{this.instance.interceptors.response.use(e=>{if(e.headers&&e.headers.authorization){const t=e.headers.authorization.split(" ")[1];this.token=t,this.tokenService.saveToken(this.token)}return e},this.handleError)};handleError=async e=>{const t=e.config;if(this.showError?.error403&&403===e.response?.status&&!t?._retry){t._retry=!0;const e=await this.refreshToken();if(200===e.status)return this.token=e.data.jwt,this.tokenService.saveToken(this.token),this.tokenService.saveRefreshToken(e.data.jwt_refresh),navigator.onLine?this.instance(t):(jr("error","Error","No internet access!"),Promise.reject(new Error("No internet access!")))}return this.showError?.error500&&500==e.response?.status&&(e.response.data.message?jr("error","Error",e.response.data.message):jr("error","Error","Unable to process request at this time, please try again")),this.showError?.error400&&400==e.response?.status&&(e.response.data.message?jr("error","Error",e.response.data.message):jr("error","Error","Bad Request")),this.showError?.error422&&422===e.response?.status&&(e.response.data.message?jr("error","Error",e.response.data.message):jr("error","Error",Object.values(e?.response?.data?.error)[0][0])),this.showError?.error404&&404===e.response?.status&&jr("error","Error",`${e.config.url} not found`),this.showError?.error401&&401===e.response?.status&&(this.authService.logOut(),jr("error","Error","Your session has expired, you need to sign in again."),setTimeout(()=>{const e="function"===typeof this.loginUrl?this.loginUrl():this.loginUrl;location.href=e},1e3)),Promise.reject(e.response)};async refreshToken(){const e={jwt_refresh:this.tokenService.getRefreshToken()};return s().post(`${this.apiBaseUrl}${this.refreshTokenPath}`,e)}}
|
|
34
34
|
/**
|
|
35
35
|
* @vue/shared v3.5.32
|
|
36
36
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
37
37
|
* @license MIT
|
|
38
38
|
**/
|
|
39
|
-
function qr(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return e=>e in t}const Hr=Object.assign,$r=Object.prototype.hasOwnProperty,Wr=(e,t)=>$r.call(e,t),Vr=Array.isArray,Yr=e=>"[object Map]"===Zr(e),Xr=e=>"string"===typeof e,Jr=e=>"symbol"===typeof e,Gr=e=>null!==e&&"object"===typeof e,Kr=Object.prototype.toString,Zr=e=>Kr.call(e),Qr=e=>Zr(e).slice(8,-1),en=e=>Xr(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,tn=e=>{const t=Object.create(null);return r=>{const n=t[r];return n||(t[r]=e(r))}},rn=/-\w/g,nn=(tn(e=>e.replace(rn,e=>e.slice(1).toUpperCase())),/\B([A-Z])/g),on=(tn(e=>e.replace(nn,"-$1").toLowerCase()),tn(e=>e.charAt(0).toUpperCase()+e.slice(1))),sn=(tn(e=>{const t=e?`on${on(e)}`:"";return t}),(e,t)=>!Object.is(e,t));let an;let cn,un,ln=0;function hn(){ln++}function dn(){if(--ln>0)return;if(un){let e=un;un=void 0;while(e){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;while(cn){let r=cn;cn=void 0;while(r){const n=r.next;if(r.next=void 0,r.flags&=-9,1&r.flags)try{r.trigger()}catch(t){e||(e=t)}r=n}}if(e)throw e}let pn=!0;const fn=[];function mn(){fn.push(pn),pn=!1}function gn(){const e=fn.pop();pn=void 0===e||e}class vn{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class yn{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!an||!pn||an===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==an)t=this.activeLink=new vn(an,this),an.deps?(t.prevDep=an.depsTail,an.depsTail.nextDep=t,an.depsTail=t):an.deps=an.depsTail=t,wn(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=an.depsTail,t.nextDep=void 0,an.depsTail.nextDep=t,an.depsTail=t,an.deps===t&&(an.deps=e)}return t}trigger(e){this.version++,this.notify(e)}notify(e){hn();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{dn()}}}function wn(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)wn(e)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const bn=new WeakMap,_n=Symbol(""),kn=Symbol(""),Sn=Symbol("");function xn(e,t,r){if(pn&&an){let t=bn.get(e);t||bn.set(e,t=new Map);let n=t.get(r);n||(t.set(r,n=new yn),n.map=t,n.key=r),n.track()}}function Cn(e,t,r,n,i,o){const s=bn.get(e);if(!s)return void 0;const a=e=>{e&&e.trigger()};if(hn(),"clear"===t)s.forEach(a);else{const i=Vr(e),o=i&&en(r);if(i&&"length"===r){const e=Number(n);s.forEach((t,r)=>{("length"===r||r===Sn||!Jr(r)&&r>=e)&&a(t)})}else switch((void 0!==r||s.has(void 0))&&a(s.get(r)),o&&a(s.get(Sn)),t){case"add":i?o&&a(s.get("length")):(a(s.get(_n)),Yr(e)&&a(s.get(kn)));break;case"delete":i||(a(s.get(_n)),Yr(e)&&a(s.get(kn)));break;case"set":Yr(e)&&a(s.get(_n));break}}dn()}function En(e,t){const r=bn.get(e);return r&&r.get(t)}function An(e){const t=di(e);return t===e?t:(xn(t,"iterate",Sn),li(e)?t:t.map(pi))}function On(e){return xn(e=di(e),"iterate",Sn),e}function In(e,t){return ui(e)?ci(e)?fi(pi(t)):fi(t):pi(t)}const Tn={__proto__:null,[Symbol.iterator](){return Mn(this,Symbol.iterator,e=>In(this,e))},concat(...e){return An(this).concat(...e.map(e=>Vr(e)?An(e):e))},entries(){return Mn(this,"entries",e=>(e[1]=In(this,e[1]),e))},every(e,t){return Pn(this,"every",e,t,void 0,arguments)},filter(e,t){return Pn(this,"filter",e,t,e=>e.map(e=>In(this,e)),arguments)},find(e,t){return Pn(this,"find",e,t,e=>In(this,e),arguments)},findIndex(e,t){return Pn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Pn(this,"findLast",e,t,e=>In(this,e),arguments)},findLastIndex(e,t){return Pn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Pn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ln(this,"includes",e)},indexOf(...e){return Ln(this,"indexOf",e)},join(e){return An(this).join(e)},lastIndexOf(...e){return Ln(this,"lastIndexOf",e)},map(e,t){return Pn(this,"map",e,t,void 0,arguments)},pop(){return Bn(this,"pop")},push(...e){return Bn(this,"push",e)},reduce(e,...t){return Dn(this,"reduce",e,t)},reduceRight(e,...t){return Dn(this,"reduceRight",e,t)},shift(){return Bn(this,"shift")},some(e,t){return Pn(this,"some",e,t,void 0,arguments)},splice(...e){return Bn(this,"splice",e)},toReversed(){return An(this).toReversed()},toSorted(e){return An(this).toSorted(e)},toSpliced(...e){return An(this).toSpliced(...e)},unshift(...e){return Bn(this,"unshift",e)},values(){return Mn(this,"values",e=>In(this,e))}};function Mn(e,t,r){const n=On(e),i=n[t]();return n===e||li(e)||(i._next=i.next,i.next=()=>{const e=i._next();return e.done||(e.value=r(e.value)),e}),i}const Rn=Array.prototype;function Pn(e,t,r,n,i,o){const s=On(e),a=s!==e&&!li(e),c=s[t];if(c!==Rn[t]){const t=c.apply(e,o);return a?pi(t):t}let u=r;s!==e&&(a?u=function(t,n){return r.call(this,In(e,t),n,e)}:r.length>2&&(u=function(t,n){return r.call(this,t,n,e)}));const l=c.call(s,u,n);return a&&i?i(l):l}function Dn(e,t,r,n){const i=On(e),o=i!==e&&!li(e);let s=r,a=!1;i!==e&&(o?(a=0===n.length,s=function(t,n,i){return a&&(a=!1,t=In(e,t)),r.call(this,t,In(e,n),i,e)}):r.length>3&&(s=function(t,n,i){return r.call(this,t,n,i,e)}));const c=i[t](s,...n);return a?In(e,c):c}function Ln(e,t,r){const n=di(e);xn(n,"iterate",Sn);const i=n[t](...r);return-1!==i&&!1!==i||!hi(r[0])?i:(r[0]=di(r[0]),n[t](...r))}function Bn(e,t,r=[]){mn(),hn();const n=di(e)[t].apply(e,r);return dn(),gn(),n}const Nn=qr("__proto__,__v_isRef,__isVue"),jn=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(Jr));function Fn(e){Jr(e)||(e=String(e));const t=di(this);return xn(t,"has",e),t.hasOwnProperty(e)}class Un{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,r){if("__v_skip"===t)return e["__v_skip"];const n=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!n;if("__v_isReadonly"===t)return n;if("__v_isShallow"===t)return i;if("__v_raw"===t)return r===(n?i?ri:ti:i?ei:Qn).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const o=Vr(e);if(!n){let e;if(o&&(e=Tn[t]))return e;if("hasOwnProperty"===t)return Fn}const s=Reflect.get(e,t,mi(e)?e:r);if(Jr(t)?jn.has(t):Nn(t))return s;if(n||xn(e,"get",t),i)return s;if(mi(s)){const e=o&&en(t)?s:s.value;return n&&Gr(e)?si(e):e}return Gr(s)?n?si(s):oi(s):s}}class zn extends Un{constructor(e=!1){super(!1,e)}set(e,t,r,n){let i=e[t];const o=Vr(e)&&en(t);if(!this._isShallow){const e=ui(i);if(li(r)||ui(r)||(i=di(i),r=di(r)),!o&&mi(i)&&!mi(r))return e||(i.value=r),!0}const s=o?Number(t)<e.length:Wr(e,t),a=Reflect.set(e,t,r,mi(e)?e:n);return e===di(n)&&(s?sn(r,i)&&Cn(e,"set",t,r,i):Cn(e,"add",t,r)),a}deleteProperty(e,t){const r=Wr(e,t),n=e[t],i=Reflect.deleteProperty(e,t);return i&&r&&Cn(e,"delete",t,void 0,n),i}has(e,t){const r=Reflect.has(e,t);return Jr(t)&&jn.has(t)||xn(e,"has",t),r}ownKeys(e){return xn(e,"iterate",Vr(e)?"length":_n),Reflect.ownKeys(e)}}class qn extends Un{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Hn=new zn,$n=new qn,Wn=e=>e,Vn=e=>Reflect.getPrototypeOf(e);function Yn(e,t,r){return function(...n){const i=this["__v_raw"],o=di(i),s=Yr(o),a="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,u=i[e](...n),l=r?Wn:t?fi:pi;return!t&&xn(o,"iterate",c?kn:_n),Hr(Object.create(u),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:a?[l(e[0]),l(e[1])]:l(e),done:t}}})}}function Xn(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function Jn(e,t){const r={get(r){const n=this["__v_raw"],i=di(n),o=di(r);e||(sn(r,o)&&xn(i,"get",r),xn(i,"get",o));const{has:s}=Vn(i),a=t?Wn:e?fi:pi;return s.call(i,r)?a(n.get(r)):s.call(i,o)?a(n.get(o)):void(n!==i&&n.get(r))},get size(){const t=this["__v_raw"];return!e&&xn(di(t),"iterate",_n),t.size},has(t){const r=this["__v_raw"],n=di(r),i=di(t);return e||(sn(t,i)&&xn(n,"has",t),xn(n,"has",i)),t===i?r.has(t):r.has(t)||r.has(i)},forEach(r,n){const i=this,o=i["__v_raw"],s=di(o),a=t?Wn:e?fi:pi;return!e&&xn(s,"iterate",_n),o.forEach((e,t)=>r.call(n,a(e),a(t),i))}};Hr(r,e?{add:Xn("add"),set:Xn("set"),delete:Xn("delete"),clear:Xn("clear")}:{add(e){const r=di(this),n=Vn(r),i=di(e),o=t||li(e)||ui(e)?e:i,s=n.has.call(r,o)||sn(e,o)&&n.has.call(r,e)||sn(i,o)&&n.has.call(r,i);return s||(r.add(o),Cn(r,"add",o,o)),this},set(e,r){t||li(r)||ui(r)||(r=di(r));const n=di(this),{has:i,get:o}=Vn(n);let s=i.call(n,e);s||(e=di(e),s=i.call(n,e));const a=o.call(n,e);return n.set(e,r),s?sn(r,a)&&Cn(n,"set",e,r,a):Cn(n,"add",e,r),this},delete(e){const t=di(this),{has:r,get:n}=Vn(t);let i=r.call(t,e);i||(e=di(e),i=r.call(t,e));const o=n?n.call(t,e):void 0,s=t.delete(e);return i&&Cn(t,"delete",e,void 0,o),s},clear(){const e=di(this),t=0!==e.size,r=void 0,n=e.clear();return t&&Cn(e,"clear",void 0,void 0,r),n}});const n=["keys","values","entries",Symbol.iterator];return n.forEach(n=>{r[n]=Yn(n,e,t)}),r}function Gn(e,t){const r=Jn(e,t);return(t,n,i)=>"__v_isReactive"===n?!e:"__v_isReadonly"===n?e:"__v_raw"===n?t:Reflect.get(Wr(r,n)&&n in t?r:t,n,i)}const Kn={get:Gn(!1,!1)},Zn={get:Gn(!0,!1)};const Qn=new WeakMap,ei=new WeakMap,ti=new WeakMap,ri=new WeakMap;function ni(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ii(e){return e["__v_skip"]||!Object.isExtensible(e)?0:ni(Qr(e))}function oi(e){return ui(e)?e:ai(e,!1,Hn,Kn,Qn)}function si(e){return ai(e,!0,$n,Zn,ti)}function ai(e,t,r,n,i){if(!Gr(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const o=ii(e);if(0===o)return e;const s=i.get(e);if(s)return s;const a=new Proxy(e,2===o?n:r);return i.set(e,a),a}function ci(e){return ui(e)?ci(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function ui(e){return!(!e||!e["__v_isReadonly"])}function li(e){return!(!e||!e["__v_isShallow"])}function hi(e){return!!e&&!!e["__v_raw"]}function di(e){const t=e&&e["__v_raw"];return t?di(t):e}const pi=e=>Gr(e)?oi(e):e,fi=e=>Gr(e)?si(e):e;function mi(e){return!!e&&!0===e["__v_isRef"]}function gi(e){return mi(e)?e.value:e}function vi(e){const t=Vr(e)?new Array(e.length):{};for(const r in e)t[r]=wi(e,r);return t}class yi{constructor(e,t,r){this._object=e,this._defaultValue=r,this["__v_isRef"]=!0,this._value=void 0,this._key=Jr(t)?t:String(t),this._raw=di(e);let n=!0,i=e;if(!Vr(e)||Jr(this._key)||!en(this._key))do{n=!hi(i)||li(i)}while(n&&(i=i["__v_raw"]));this._shallow=n}get value(){let e=this._object[this._key];return this._shallow&&(e=gi(e)),this._value=void 0===e?this._defaultValue:e}set value(e){if(this._shallow&&mi(this._raw[this._key])){const t=this._object[this._key];if(mi(t))return void(t.value=e)}this._object[this._key]=e}get dep(){return En(this._raw,this._key)}}function wi(e,t,r){return new yi(e,t,r)}function bi(e,t,r){const n=oi({isLoading:!1,isSuccessful:!1,hasError:!1,response:null,error:null});return n.isLoading=!0,n.error=null,e.request(t).then(r).then(e=>{n.response=e,n.isSuccessful=!0}).catch(e=>{n.error=e?.data,n.hasError=!0}).finally(()=>{n.isLoading=!1}),n}function _i(e,t,r){const n=oi({response:null,error:null,isLoading:!1,isSuccessful:!1,hasError:!1}),i=async i=>{const o=e.request(i?{...t,...i}:t);n.isLoading=!0;try{const e=await o.then(r);return n.response=e,n.error=null,n.isSuccessful=!0,n.hasError=!1,e}catch(s){throw n.response=null,n.error=s?.data,n.isSuccessful=!1,n.hasError=!0,new Error(s?.data)}finally{n.isLoading=!1}};return{...vi(n),execute:i}}const ki=(e,t,r)=>{if(Array.isArray(e)){const n=[];return e.forEach(e=>{n.push(ki(e,t,r))}),n}return e.___group_name=h.getObjectProperty(e,t,""),e.___identity=h.getObjectProperty(e,r,""),e};class Si{eventTarget;constructor(e=""){this.eventTarget=document.appendChild(document.createComment(e))}on(e,t){this.eventTarget.addEventListener(e,t)}once(e,t){this.eventTarget.addEventListener(e,t,{once:!0})}off(e,t){this.eventTarget.removeEventListener(e,t)}emit(e,t){const r=new CustomEvent(e,{detail:t});return this.eventTarget.dispatchEvent(r)}}const xi=new Si("shr-event-bus");var Ci=__webpack_require__(2242),Ei=__webpack_require__.n(Ci);class Ai{pusher;setupPusherConnection(e,t){this.pusher=new(Ei())(e,t)}}var Oi,Ii=new Ai;if("undefined"===typeof window){var Ti={hostname:""};Oi={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:Ti,referrer:""},screen:{width:0,height:0},location:Ti,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else Oi=window;var Mi={DEBUG:!1,LIB_VERSION:"2.78.0"},Ri="__mp_targeting",Pi="__mp_recorder",Di="__MP_RECORDER_FILENAME__",Li="__MP_TARGETING_FILENAME__";function Bi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ni(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(u){return void r(u)}a.done?t(c):Promise.resolve(c).then(n,i)}function ji(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){Ni(o,n,i,s,a,"next",e)}function a(e){Ni(o,n,i,s,a,"throw",e)}s(void 0)})}}function Fi(e,t,r){return Fi=Zi()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=Function.bind.apply(e,n),o=new i;return r&&Xi(o,r.prototype),o},Fi.apply(null,arguments)}function Ui(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function zi(e,t,r){return t&&Ui(e.prototype,t),e}function qi(){return qi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qi.apply(this,arguments)}function Hi(e){return Hi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Hi(e)}function $i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xi(e,t)}function Wi(e,t){return null!=t&&"undefined"!==typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Vi(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function Yi(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function Xi(e,t){return Xi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Xi(e,t)}function Ji(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Gi(e,t){if(e){if("string"===typeof e)return Bi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Bi(e,t):void 0}}function Ki(e){var t="function"===typeof Map?new Map:void 0;return Ki=function(e){if(null===e||!Vi(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Fi(e,arguments,Hi(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Xi(r,e)},Ki(e)}function Zi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(wk){}return(Zi=function(){return!!e})()}function Qi(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=Gi(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function eo(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return c([e,t])}}function c(o){if(r)throw new TypeError("Generator is already executing.");while(s)try{if(r=1,n&&(i=2&o[0]?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function to(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var ro,no=Object.defineProperty,io=function(e,t,r){return t in e?no(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},oo=function(e,t,r){return io(e,"symbol"!==("undefined"===typeof t?"undefined":Ji(t))?t+"":t,r)},so=Object.defineProperty,ao=function(e,t,r){return t in e?so(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},co=function(e,t,r){return ao(e,"symbol"!==("undefined"===typeof t?"undefined":Ji(t))?t+"":t,r)},uo=function(e){return e[e["Document"]=0]="Document",e[e["DocumentType"]=1]="DocumentType",e[e["Element"]=2]="Element",e[e["Text"]=3]="Text",e[e["CDATA"]=4]="CDATA",e[e["Comment"]=5]="Comment",e}(uo||{}),lo={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ho={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},po={},fo=function(){return!!globalThis.Zone};function mo(e){if(po[e])return po[e];var t=globalThis[e],r=t.prototype,n=e in lo?lo[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in ho?ho[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"===typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!fo())return po[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;return document.body.removeChild(a),u?po[e]=u:r}catch(l){return r}}var go={};function vo(e,t,r){var n,i=e+"."+String(r);if(go[i])return go[i].call(t);var o=mo(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(go[i]=s,s.call(t)):t[r]}var yo={};function wo(e,t,r){var n=e+"."+String(r);if(yo[n])return yo[n].bind(t);var i=mo(e),o=i[r];return"function"!==typeof o?t[r]:(yo[n]=o,o.bind(t))}function bo(e){return vo("Node",e,"childNodes")}function _o(e){return vo("Node",e,"parentNode")}function ko(e){return vo("Node",e,"parentElement")}function So(e){return vo("Node",e,"textContent")}function xo(e,t){return wo("Node",e,"contains")(t)}function Co(e){return wo("Node",e,"getRootNode")()}function Eo(e){return e&&"host"in e?vo("ShadowRoot",e,"host"):null}function Ao(e){return e.styleSheets}function Oo(e){return e&&"shadowRoot"in e?vo("Element",e,"shadowRoot"):null}function Io(e,t){return vo("Element",e,"querySelector")(t)}function To(e,t){return vo("Element",e,"querySelectorAll")(t)}function Mo(){return mo("MutationObserver").constructor}function Ro(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"===typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(o){return function(){}}}var Po={childNodes:bo,parentNode:_o,parentElement:ko,textContent:So,contains:xo,getRootNode:Co,host:Eo,styleSheets:Ao,shadowRoot:Oo,querySelector:Io,querySelectorAll:To,mutationObserver:Mo,patch:Ro};function Do(e){return e.nodeType===e.ELEMENT_NODE}function Lo(e){var t=e&&"host"in e&&"mode"in e&&Po.host(e)||null;return Boolean(t&&"shadowRoot"in t&&Po.shadowRoot(t)===e)}function Bo(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function No(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function jo(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function Fo(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href);var n=Array.from(t,function(e){return Uo(e,r)}).join("");return No(n)}catch(i){return null}}function Uo(e,t){if(qo(e)){var r;try{r=Fo(e.styleSheet)||jo(e)}catch(i){r=e.cssText}return e.styleSheet.href?ns(r,e.styleSheet.href):r}var n=e.cssText;return Ho(e)&&e.selectorText.includes(":")&&(n=zo(n)),t?ns(n,t):n}function zo(e){var t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function qo(e){return"styleSheet"in e}function Ho(e){return"selectorText"in e}var $o=function(){function e(){co(this,"idNodeMap",new Map),co(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){var t;if(!e)return-1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e,t){var r=this;void 0===t&&(t=!1);var n=this.getId(e);this.idNodeMap.delete(n),t&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(e){return r.removeNodeFromMap(e,t)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function Wo(){return new $o}function Vo(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",c=i&&Yo(i);return(r[n.toLowerCase()]||c&&r[c])&&(a=s?s(a,t):"*".repeat(a.length)),a}function Yo(e){return e.toLowerCase()}var Xo="__rrweb_original__";function Jo(e){var t=e.getContext("2d");if(!t)return!0;for(var r=50,n=0;n<e.width;n+=r)for(var i=0;i<e.height;i+=r){var o=t.getImageData,s=Xo in o?o[Xo]:o,a=new Uint32Array(s.call(t,n,i,Math.min(r,e.width-n),Math.min(r,e.height-i)).data.buffer);if(a.some(function(e){return 0!==e}))return!1}return!0}function Go(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Yo(t):null}function Ko(e,t){var r;try{r=new URL(e,null!=t?t:window.location.href)}catch(s){return null}var n,i=/\.([0-9a-z]+)(?:$)/i,o=r.pathname.match(i);return null!=(n=null==o?void 0:o[1])?n:null}function Zo(e){var t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}var Qo=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,es=/^(?:[a-z+]+:)?\/\//i,ts=/^www\..*/i,rs=/^(data:)([^,]*),(.*)/i;function ns(e,t){return(e||"").replace(Qo,function(e,r,n,i,o,s){var a=n||o||s,c=r||i||"";if(!a)return e;if(es.test(a)||ts.test(a))return"url("+c+a+c+")";if(rs.test(a))return"url("+c+a+c+")";if("/"===a[0])return"url("+c+(Zo(t)+a)+c+")";var u=t.split("/"),l=a.split("/");u.pop();for(var h,d=Qi(l);!(h=d()).done;){var p=h.value;"."!==p&&(".."===p?u.pop():u.push(p))}return"url("+c+u.join("/")+c+")"})}function is(e,t){return void 0===t&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function os(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),i=[],o=0;if(n.length>1&&e&&"string"===typeof e)for(var s=is(e,r),a=s.length/e.length,c=1;c<n.length;c++)if(n[c].textContent&&"string"===typeof n[c].textContent){for(var u=is(n[c].textContent,r),l=100,h=3;h<u.length;h++)if(!u[h].match(/[a-zA-Z0-9]/)&&-1===u.indexOf(u.substring(0,h),1))break;for(;h<u.length;h++){var d=u.substring(0,h),p=s.split(d),f=-1;if(2===p.length)f=p[0].length;else if(p.length>2&&""===p[0]&&""!==n[c-1].textContent)f=s.indexOf(d,1);else if(1===p.length){if(d=d.substring(0,d.length-1),p=s.split(d),p.length<=1)return i.push(e),i;h=l+1}else h===u.length-1&&(f=s.indexOf(d));if(p.length>=2&&h>l){var m=n[c-1].textContent;if(m&&"string"===typeof m){var g=is(m).length;f=s.indexOf(d,g)}-1===f&&(f=p[0].length)}if(-1!==f){for(var v=Math.floor(f/a);v>0&&v<e.length;){if(o+=1,o>50*n.length)return i.push(e),i;var y=is(e.substring(0,v),r);if(y.length===f){i.push(e.substring(0,v)),e=e.substring(v),s=s.substring(f);break}y.length<f?v+=Math.max(1,Math.floor((f-y.length)/a)):v-=Math.max(1,Math.floor((y.length-f)*a))}break}}}return i.push(e),i}function ss(e,t){return os(e,t).join("/* rr_split */")}var as,cs,us=1,ls=new RegExp("[^a-z0-9-_:]"),hs=-2;function ds(){return us++}function ps(e){if(Wi(e,HTMLFormElement))return"form";var t=Yo(e.tagName);return ls.test(t)?"div":t}var fs=/^[^ \t\n\r\u000c]+/,ms=/^[, \t\n\r\u000c]+/;function gs(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}var i=[];while(1){if(n(ms),r>=t.length)break;var o=n(fs);if(","===o.slice(-1))o=ys(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=ys(e,o);var a=!1;while(1){var c=t.charAt(r);if(""===c){i.push((o+s).trim());break}if(a)")"===c&&(a=!1);else{if(","===c){r+=1,i.push((o+s).trim());break}"("===c&&(a=!0)}s+=c,r+=1}}}return i.join(", ")}var vs=new WeakMap;function ys(e,t){return t&&""!==t.trim()?bs(e,t):t}function ws(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function bs(e,t){var r=vs.get(e);if(r||(r=e.createElement("a"),vs.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function _s(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?ys(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?gs(e,n):"style"===r?ns(n,bs(e)):"object"===t&&"data"===r?ys(e,n):n:ys(e,n):n}function ks(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function Ss(e,t,r){try{if("string"===typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch(o){}return!1}function xs(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&xs(Po.parentNode(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&xs(Po.parentNode(e),t,r)}function Cs(e,t,r,n){var i;if(Do(e)){if(i=e,!Po.childNodes(i).length)return!1}else{if(null===Po.parentElement(e))return!1;i=Po.parentElement(e)}try{if("string"===typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(xs(i,t,n))return!0;if(r)if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}catch(o){}return!1}function Es(e,t,r){var n=e.contentWindow;if(n){var i,o=!1;try{i=n.document.readyState}catch(c){return}if("complete"===i){var s="about:blank";if(n.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout(function(){o||(t(),o=!0)},r);e.addEventListener("load",function(){clearTimeout(a),o=!0,t()})}}}function As(e,t,r){var n,i=!1;try{n=e.sheet}catch(s){return}if(!n){var o=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(o),i=!0,t()})}}function Os(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.needsMask,a=t.inlineStylesheet,c=t.maskInputOptions,u=void 0===c?{}:c,l=t.maskTextFn,h=t.maskInputFn,d=t.dataURLOptions,p=void 0===d?{}:d,f=t.inlineImages,m=t.recordCanvas,g=t.keepIframeSrcFn,v=t.newlyAddedElement,y=void 0!==v&&v,w=t.cssCaptured,b=void 0!==w&&w,_=Is(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:uo.Document,childNodes:[],compatMode:e.compatMode}:{type:uo.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:uo.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:_};case e.ELEMENT_NODE:return Ms(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:u,maskInputFn:h,dataURLOptions:p,inlineImages:f,recordCanvas:m,keepIframeSrcFn:g,newlyAddedElement:y,rootId:_});case e.TEXT_NODE:return Ts(e,{doc:r,needsMask:s,maskTextFn:l,rootId:_,cssCaptured:b});case e.CDATA_SECTION_NODE:return{type:uo.CDATA,textContent:"",rootId:_};case e.COMMENT_NODE:return{type:uo.Comment,textContent:Po.textContent(e)||"",rootId:_};default:return!1}}function Is(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}function Ts(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,s=Po.parentNode(e),a=s&&s.tagName,c="",u="STYLE"===a||void 0,l="SCRIPT"===a||void 0;return l?c="SCRIPT_PLACEHOLDER":o||(c=Po.textContent(e),u&&c&&(c=ns(c,bs(t.doc)))),!u&&!l&&c&&r&&(c=n?n(c,Po.parentElement(e)):c.replace(/[\S]/g,"*")),{type:uo.Text,textContent:c||"",rootId:i}}function Ms(e,t){for(var r,n=t.doc,i=t.blockClass,o=t.blockSelector,s=t.inlineStylesheet,a=t.maskInputOptions,c=void 0===a?{}:a,u=t.maskInputFn,l=t.dataURLOptions,h=void 0===l?{}:l,d=t.inlineImages,p=t.recordCanvas,f=t.keepIframeSrcFn,m=t.newlyAddedElement,g=void 0!==m&&m,v=t.rootId,y=Ss(e,i,o),w=ps(e),b={},_=e.attributes.length,k=0;k<_;k++){var S=e.attributes[k];ks(w,S.name,S.value)||(b[S.name]=_s(n,w,Yo(S.name),S.value))}if("link"===w&&s){var x=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),C=null;x&&(C=Fo(x)),C&&(delete b.rel,delete b.href,b._cssText=C)}if("style"===w&&e.sheet){var E=Fo(e.sheet);E&&(e.childNodes.length>1&&(E=ss(E,e)),b._cssText=E)}if("input"===w||"textarea"===w||"select"===w){var A=e.value,O=e.checked;"radio"!==b.type&&"checkbox"!==b.type&&"submit"!==b.type&&"button"!==b.type&&A?b.value=Vo({element:e,type:Go(e),tagName:w,value:A,maskInputOptions:c,maskInputFn:u}):O&&(b.checked=O)}if("option"===w&&(e.selected&&!c["select"]?b.selected=!0:delete b.selected),"dialog"===w&&e.open&&(b.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===w&&p)if("2d"===e.__context)Jo(e)||(b.rr_dataURL=e.toDataURL(h.type,h.quality));else if(!("__context"in e)){var I=e.toDataURL(h.type,h.quality),T=n.createElement("canvas");T.width=e.width,T.height=e.height;var M=T.toDataURL(h.type,h.quality);I!==M&&(b.rr_dataURL=I)}if("img"===w&&d){as||(as=n.createElement("canvas"),cs=as.getContext("2d"));var R=e,P=R.currentSrc||R.getAttribute("src")||"<unknown-src>",D=R.crossOrigin,L=function(){R.removeEventListener("load",L);try{as.width=R.naturalWidth,as.height=R.naturalHeight,cs.drawImage(R,0,0),b.rr_dataURL=as.toDataURL(h.type,h.quality)}catch(e){if("anonymous"!==R.crossOrigin)return R.crossOrigin="anonymous",void(R.complete&&0!==R.naturalWidth?L():R.addEventListener("load",L));console.warn("Cannot inline img src="+P+"! Error: "+e)}"anonymous"===R.crossOrigin&&(D?b.crossOrigin=D:R.removeAttribute("crossorigin"))};R.complete&&0!==R.naturalWidth?L():R.addEventListener("load",L)}if("audio"===w||"video"===w){var B=b;B.rr_mediaState=e.paused?"paused":"played",B.rr_mediaCurrentTime=e.currentTime,B.rr_mediaPlaybackRate=e.playbackRate,B.rr_mediaMuted=e.muted,B.rr_mediaLoop=e.loop,B.rr_mediaVolume=e.volume}if(g||(e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop)),y){var N=e.getBoundingClientRect(),j=N.width,F=N.height;b={class:b.class,rr_width:j+"px",rr_height:F+"px"}}"iframe"!==w||f(b.src)||(e.contentDocument||(b.rr_src=b.src),delete b.src);try{customElements.get(w)&&(r=!0)}catch(U){}return{type:uo.Element,tagName:w,attributes:b,childNodes:[],isSVG:ws(e)||void 0,needBlock:y,rootId:v,isCustom:r}}function Rs(e){return void 0===e||null===e?"":e.toLowerCase()}function Ps(e,t){if(t.comment&&e.type===uo.Comment)return!0;if(e.type===uo.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"===typeof e.attributes.href&&"js"===Ko(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Rs(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Rs(e.attributes.name)||"icon"===Rs(e.attributes.rel)||"apple-touch-icon"===Rs(e.attributes.rel)||"shortcut icon"===Rs(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Rs(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Rs(e.attributes.property).match(/^(og|twitter|fb):/)||Rs(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Rs(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Rs(e.attributes.name)||"googlebot"===Rs(e.attributes.name)||"bingbot"===Rs(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Rs(e.attributes.name)||"generator"===Rs(e.attributes.name)||"framework"===Rs(e.attributes.name)||"publisher"===Rs(e.attributes.name)||"progid"===Rs(e.attributes.name)||Rs(e.attributes.property).match(/^article:/)||Rs(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Rs(e.attributes.name)||"yandex-verification"===Rs(e.attributes.name)||"csrf-token"===Rs(e.attributes.name)||"p:domain_verify"===Rs(e.attributes.name)||"verify-v1"===Rs(e.attributes.name)||"verification"===Rs(e.attributes.name)||"shopify-checkout-api-token"===Rs(e.attributes.name)))return!0}}return!1}function Ds(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,c=t.skipChild,u=void 0!==c&&c,l=t.inlineStylesheet,h=void 0===l||l,d=t.maskInputOptions,p=void 0===d?{}:d,f=t.maskTextFn,m=t.maskInputFn,g=t.slimDOMOptions,v=t.dataURLOptions,y=void 0===v?{}:v,w=t.inlineImages,b=void 0!==w&&w,_=t.recordCanvas,k=void 0!==_&&_,S=t.onSerialize,x=t.onIframeLoad,C=t.iframeLoadTimeout,E=void 0===C?5e3:C,A=t.onStylesheetLoad,O=t.stylesheetLoadTimeout,I=void 0===O?5e3:O,T=t.keepIframeSrcFn,M=void 0===T?function(){return!1}:T,R=t.newlyAddedElement,P=void 0!==R&&R,D=t.cssCaptured,L=void 0!==D&&D,B=t.needsMask,N=t.preserveWhiteSpace,j=void 0===N||N;if(!B){var F=void 0===B;B=Cs(e,s,a,F)}var U,z=Os(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:B,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,keepIframeSrcFn:M,newlyAddedElement:P,cssCaptured:L});if(!z)return console.warn(e,"not serialized"),null;U=n.hasNode(e)?n.getId(e):Ps(z,g)||!j&&z.type===uo.Text&&!z.textContent.replace(/^\s+|\s+$/gm,"").length?hs:ds();var q=Object.assign(z,{id:U});if(n.add(e,q),U===hs)return null;S&&S(e);var H=!u;if(q.type===uo.Element){H=H&&!q.needBlock,delete q.needBlock;var $=Po.shadowRoot(e);$&&Bo($)&&(q.isShadowHost=!0)}if((q.type===uo.Document||q.type===uo.Element)&&H){g.headWhitespace&&q.type===uo.Element&&"head"===q.tagName&&(j=!1);var W={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:B,maskTextClass:s,maskTextSelector:a,skipChild:u,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:A,stylesheetLoadTimeout:I,keepIframeSrcFn:M,cssCaptured:!1};if(q.type===uo.Element&&"textarea"===q.tagName&&void 0!==q.attributes.value);else{q.type===uo.Element&&void 0!==q.attributes._cssText&&"string"===typeof q.attributes._cssText&&(W.cssCaptured=!0);for(var V,Y=Qi(Array.from(Po.childNodes(e)));!(V=Y()).done;){var X=V.value,J=Ds(X,W);J&&q.childNodes.push(J)}}var G=null;if(Do(e)&&(G=Po.shadowRoot(e)))for(var K,Z=Qi(Array.from(Po.childNodes(G)));!(K=Z()).done;){var Q=K.value,ee=Ds(Q,W);ee&&(Bo(G)&&(ee.isShadow=!0),q.childNodes.push(ee))}}var te=Po.parentNode(e);return te&&Lo(te)&&Bo(te)&&(q.isShadow=!0),q.type===uo.Element&&"iframe"===q.tagName&&Es(e,function(){var t=e.contentDocument;if(t&&x){var r=Ds(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:B,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:A,stylesheetLoadTimeout:I,keepIframeSrcFn:M});r&&x(e,r)}},E),q.type===uo.Element&&"link"===q.tagName&&"string"===typeof q.attributes.rel&&("stylesheet"===q.attributes.rel||"preload"===q.attributes.rel&&"string"===typeof q.attributes.href&&"css"===Ko(q.attributes.href))&&As(e,function(){if(A){var t=Ds(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:B,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:A,stylesheetLoadTimeout:I,keepIframeSrcFn:M});t&&A(e,t)}},I),q}function Ls(e,t){var r=t||{},n=r.mirror,i=void 0===n?new $o:n,o=r.blockClass,s=void 0===o?"rr-block":o,a=r.blockSelector,c=void 0===a?null:a,u=r.maskTextClass,l=void 0===u?"rr-mask":u,h=r.maskTextSelector,d=void 0===h?null:h,p=r.inlineStylesheet,f=void 0===p||p,m=r.inlineImages,g=void 0!==m&&m,v=r.recordCanvas,y=void 0!==v&&v,w=r.maskAllInputs,b=void 0!==w&&w,_=r.maskTextFn,k=r.maskInputFn,S=r.slimDOM,x=void 0!==S&&S,C=r.dataURLOptions,E=r.preserveWhiteSpace,A=r.onSerialize,O=r.onIframeLoad,I=r.iframeLoadTimeout,T=r.onStylesheetLoad,M=r.stylesheetLoadTimeout,R=r.keepIframeSrcFn,P=void 0===R?function(){return!1}:R,D=!0===b?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:!1===b?{password:!0}:b,L=!0===x||"all"===x?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===x,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===x?{}:x;return Ds(e,{doc:e,mirror:i,blockClass:s,blockSelector:c,maskTextClass:l,maskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:D,maskTextFn:_,maskInputFn:k,slimDOMOptions:L,dataURLOptions:C,inlineImages:g,recordCanvas:y,preserveWhiteSpace:E,onSerialize:A,onIframeLoad:O,iframeLoadTimeout:I,onStylesheetLoad:T,stylesheetLoadTimeout:M,keepIframeSrcFn:P,newlyAddedElement:!1})}function Bs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function Ns(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return Wi(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var js={exports:{}},Fs=String,Us=function(){return{isColorSupported:!1,reset:Fs,bold:Fs,dim:Fs,italic:Fs,underline:Fs,inverse:Fs,hidden:Fs,strikethrough:Fs,black:Fs,red:Fs,green:Fs,yellow:Fs,blue:Fs,magenta:Fs,cyan:Fs,white:Fs,gray:Fs,bgBlack:Fs,bgRed:Fs,bgGreen:Fs,bgYellow:Fs,bgBlue:Fs,bgMagenta:Fs,bgCyan:Fs,bgWhite:Fs}};js.exports=Us(),js.exports.createColors=Us;var zs=js.exports,qs={},Hs=Object.freeze(Object.defineProperty({__proto__:null,default:qs},Symbol.toStringTag,{value:"Module"})),$s=Ns(Hs),Ws=zs,Vs=$s,Ys=function(e){function t(r,n,i,o,s,a){var c;return c=e.call(this,r)||this,c.name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),"undefined"!==typeof n&&"undefined"!==typeof i&&("number"===typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}$i(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>","undefined"!==typeof this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=Ws.isColorSupported),Vs&&e&&(r=Vs(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=Ws.createColors(!0),l=u.bold,h=u.gray,d=u.red;n=function(e){return l(d(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(Ki(Error)),Xs=Ys;Ys.default=Ys;var Js={};Js.isClean=Symbol("isClean"),Js.my=Symbol("my");var Gs={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Ks(e){return e[0].toUpperCase()+e.slice(1)}var Zs=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if("undefined"!==typeof e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");var n=e.parent,i=0;while(n&&"root"!==n.type)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){var t=e.nodes.length-1;while(t>0){if("comment"!==e.nodes[t].type)break;t-=1}for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&(n=e.raws[t],"undefined"!==typeof n))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Gs[r];var o=e.root();if(o.rawCache||(o.rawCache={}),"undefined"!==typeof o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s="raw"+Ks(r);return this[s]?n=this[s](o,e):o.walk(function(e){if(n=e.raws[t],"undefined"!==typeof n)return!1}),"undefined"===typeof n&&(n=Gs[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&"undefined"!==typeof e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&(t=e.raws.between,"undefined"!==typeof t))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&"undefined"!==typeof r.raws.before)return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if("undefined"!==typeof e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,"undefined"!==typeof t))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&"undefined"!==typeof r.raws.before){var i=r.raws.before.split("\n");return t=i[i.length-1],t=t.replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,"undefined"!==typeof t))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),Qs=Zs;Zs.default=Zs;var ea=Qs;function ta(e,t){var r=new ea(t);r.stringify(e)}var ra=ta;ta.default=ta;var na=Js.isClean,ia=Js.my,oa=Xs,sa=Qs,aa=ra;function ca(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o="undefined"===typeof i?"undefined":Ji(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return ca(e,r)}):("object"===o&&null!==i&&(i=ca(i)),r[n]=i)}return r}var ua=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[na]=!1,this[ia]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Qi(e[t]);!(r=n()).done;){var i=r.value;"function"===typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=ca(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new oa(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[na]){this[na]=!1;var e=this;while(e=e.parent)e[na]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();var n=t.indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"===typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){var r=new sa;return r.raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=Qi(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){var e=this;while(e.parent&&"document"!==e.parent.type)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return"object"===("undefined"===typeof e?"undefined":Ji(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===("undefined"===typeof s?"undefined":Ji(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=aa),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},zi(e,[{key:"proxyOf",get:function(){return this}}]),e}(),la=ua;ua.default=ua;var ha=la,da=function(e){function t(t){var r;return t&&"undefined"!==typeof t.value&&"string"!==typeof t.value&&(t=qi({},t,{value:String(t.value)})),r=e.call(this,t)||this,r.type="decl",r}return $i(t,e),zi(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(ha),pa=da;da.default=da;var fa="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",ma=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=fa[64*Math.random()|0];return t},ga={nanoid:ma},va=$s.SourceMapConsumer,ya=$s.SourceMapGenerator,wa=$s.existsSync,ba=$s.readFileSync,_a=$s.dirname,ka=$s.join;function Sa(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var xa=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=_a(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new va(this.text)),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(e)||i.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return Sa(e.substr(RegExp.lastMatch.length));var o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===("undefined"===typeof e?"undefined":Ji(e))&&("string"===typeof e.mappings||"string"===typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=_a(e),wa(e))return this.mapFile=e,ba(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"===typeof t)return t;if("function"!==typeof t){if(Wi(t,va))return ya.fromSourceMap(t).toString();if(Wi(t,ya))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=ka(_a(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Ca=xa;xa.default=xa;var Ea=$s.SourceMapConsumer,Aa=$s.SourceMapGenerator,Oa=$s.fileURLToPath,Ia=$s.pathToFileURL,Ta=$s.isAbsolute,Ma=$s.resolve,Ra=ga.nanoid,Pa=$s,Da=Xs,La=Ca,Ba=Symbol("fromOffsetCache"),Na=Boolean(Ea&&Aa),ja=Boolean(Ma&&Ta),Fa=function(){function e(e,t){if(void 0===t&&(t={}),null===e||"undefined"===typeof e||"object"===("undefined"===typeof e?"undefined":Ji(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!ja||/^\w+:\/\//.test(t.from)||Ta(t.from)?this.file=t.from:this.file=Ma(t.from)),ja&&Na){var r=new La(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+Ra(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===("undefined"===typeof t?"undefined":Ji(t))){var a=t,c=r;if("number"===typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"===typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var d=this.origin(t,r,o,s);return i=d?new Da(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new Da(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin),i.input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(Ia&&(i.input.url=Ia(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[Ba])r=this[Ba];else{var n=this.css.split("\n");r=new Array(n.length);for(var i=0,o=0,s=n.length;o<s;o++)r[o]=i,i+=n[o].length+1;this[Ba]=r}t=r[r.length-1];var a=0;if(e>=t)a=r.length-1;else{var c,u=r.length-2;while(a<u)if(c=a+(u-a>>1),e<r[c])u=c-1;else{if(!(e>=r[c+1])){a=c;break}a=c+1}}return{col:e-r[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Ma(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"===typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=Ta(a.source)?Ia(a.source):new URL(a.source,this.map.consumer().sourceRoot||Ia(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!Oa)throw new Error("file: protocol is not available in this PostCSS build");c.file=Oa(o)}var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=qi({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},zi(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Ua=Fa;Fa.default=Fa,Pa&&Pa.registerInput&&Pa.registerInput(Fa);var za=$s.SourceMapConsumer,qa=$s.SourceMapGenerator,Ha=$s.dirname,$a=$s.relative,Wa=$s.resolve,Va=$s.sep,Ya=$s.pathToFileURL,Xa=Ua,Ja=Boolean(za&&qa),Ga=Boolean(Ha&&Wa&&$a&&Va),Ka=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"===typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"===typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=Qi(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||Ha(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new za(r.text),o.sourcesContent&&(o.sourcesContent=null)):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),Ga&&Ja&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=qa.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new qa({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new qa({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),t=a.match(/\n/g),t?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}},h="decl"===c.type||"atrule"===c.type&&!c.nodes;h&&c===l.last&&!l.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||("undefined"!==typeof this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if("undefined"!==typeof this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return("undefined"===typeof e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return"undefined"!==typeof this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return"undefined"!==typeof this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?Ha(this.opts.to):".";"string"===typeof this.mapOpts.annotation&&(r=Ha(Wa(r,this.mapOpts.annotation)));var n=$a(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new Xa(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Ya){var r=Ya(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===Va&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Za=Ka,Qa=la,ec=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="comment",r}return $i(t,e),t}(Qa),tc=ec;ec.default=ec;var rc,nc,ic,oc,sc=Js.isClean,ac=Js.my,cc=pa,uc=tc,lc=la;function hc(e){return e.map(function(e){return e.nodes&&(e.nodes=hc(e.nodes)),delete e.source,e})}function dc(e){if(e[sc]=!1,e.proxyOf.nodes)for(var t,r=Qi(e.proxyOf.nodes);!(t=r()).done;){var n=t.value;dc(n)}}var pc=function(e){function t(){return e.apply(this,arguments)||this}$i(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Qi(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=Qi(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=Qi(this.nodes);!(r=n()).done;){var i=r.value;i.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){var t,r,n=this.getIterator();while(this.indexes[n]<this.proxyOf.nodes.length){if(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1===r)break;this.indexes[n]+=1}return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"===typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"===typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"===typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=Qi(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)r=this.indexes[c],n<r&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=Qi(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)r=this.indexes[u],n<=r&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"===typeof e)e=hc(rc(e).nodes);else if("undefined"===typeof e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=Qi(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=Qi(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if("undefined"===typeof e.value)throw new Error("Value field is missed in node creation");"string"!==typeof e.value&&(e.value=String(e.value)),e=[new cc(e)]}else if(e.selector)e=[new nc(e)];else if(e.name)e=[new ic(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new uc(e)]}var l=e.map(function(e){return e[ac]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[sc]&&dc(e),"undefined"===typeof e.raws.before&&r&&"undefined"!==typeof r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return l},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=Qi(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=Qi(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=Qi(this.proxyOf.nodes);!(e=t()).done;){var r=e.value;r.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(i){throw t.addToError(i)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?Wi(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?Wi(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?Wi(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},zi(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(lc);pc.registerParse=function(e){rc=e},pc.registerRule=function(e){nc=e},pc.registerAtRule=function(e){ic=e},pc.registerRoot=function(e){oc=e};var fc=pc;pc.default=pc,pc.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,ic.prototype):"rule"===e.type?Object.setPrototypeOf(e,nc.prototype):"decl"===e.type?Object.setPrototypeOf(e,cc.prototype):"comment"===e.type?Object.setPrototypeOf(e,uc.prototype):"root"===e.type&&Object.setPrototypeOf(e,oc.prototype),e[ac]=!0,e.nodes&&e.nodes.forEach(function(e){pc.rebuild(e)})};var mc,gc,vc=fc,yc=function(e){function t(t){var r;return r=e.call(this,qi({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}$i(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new mc(new gc,this,e);return t.stringify()},t}(vc);yc.registerLazyResult=function(e){mc=e},yc.registerProcessor=function(e){gc=e};var wc=yc;yc.default=yc;var bc=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),_c=bc;bc.default=bc;var kc=_c,Sc=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new kc(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},zi(e,[{key:"content",get:function(){return this.css}}]),e}(),xc=Sc;Sc.default=Sc;var Cc="'".charCodeAt(0),Ec='"'.charCodeAt(0),Ac="\\".charCodeAt(0),Oc="/".charCodeAt(0),Ic="\n".charCodeAt(0),Tc=" ".charCodeAt(0),Mc="\f".charCodeAt(0),Rc="\t".charCodeAt(0),Pc="\r".charCodeAt(0),Dc="[".charCodeAt(0),Lc="]".charCodeAt(0),Bc="(".charCodeAt(0),Nc=")".charCodeAt(0),jc="{".charCodeAt(0),Fc="}".charCodeAt(0),Uc=";".charCodeAt(0),zc="*".charCodeAt(0),qc=":".charCodeAt(0),Hc="@".charCodeAt(0),$c=/[\t\n\f\r "#'()/;[\\\]{}]/g,Wc=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Vc=/.[\r\n"'(/\\]/,Yc=/[\da-f]/i,Xc=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,d=e.css.valueOf(),p=t.ignoreErrors,f=d.length,m=0,g=[],v=[];function y(){return m}function w(t){throw e.error("Unclosed "+t,m)}function b(){return 0===v.length&&m>=f}function _(e){if(v.length)return v.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(m),r){case Ic:case Tc:case Rc:case Pc:case Mc:n=m;do{n+=1,r=d.charCodeAt(n)}while(r===Tc||r===Ic||r===Rc||r===Pc||r===Mc);h=["space",d.slice(m,n)],m=n-1;break;case Dc:case Lc:case jc:case Fc:case qc:case Uc:case Nc:var y=String.fromCharCode(r);h=[y,y,m];break;case Bc:if(u=g.length?g.pop()[1]:"",l=d.charCodeAt(m+1),"url"===u&&l!==Cc&&l!==Ec&&l!==Tc&&l!==Ic&&l!==Rc&&l!==Mc&&l!==Pc){n=m;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=m;break}w("bracket")}c=n;while(d.charCodeAt(c-1)===Ac)c-=1,a=!a}while(a);h=["brackets",d.slice(m,n+1),m,n],m=n}else n=d.indexOf(")",m+1),o=d.slice(m,n+1),-1===n||Vc.test(o)?h=["(","(",m]:(h=["brackets",o,m,n],m=n);break;case Cc:case Ec:i=r===Cc?"'":'"',n=m;do{if(a=!1,n=d.indexOf(i,n+1),-1===n){if(p||t){n=m+1;break}w("string")}c=n;while(d.charCodeAt(c-1)===Ac)c-=1,a=!a}while(a);h=["string",d.slice(m,n+1),m,n],m=n;break;case Hc:$c.lastIndex=m+1,$c.test(d),n=0===$c.lastIndex?d.length-1:$c.lastIndex-2,h=["at-word",d.slice(m,n+1),m,n],m=n;break;case Ac:n=m,s=!0;while(d.charCodeAt(n+1)===Ac)n+=1,s=!s;if(r=d.charCodeAt(n+1),s&&r!==Oc&&r!==Tc&&r!==Ic&&r!==Rc&&r!==Pc&&r!==Mc&&(n+=1,Yc.test(d.charAt(n)))){while(Yc.test(d.charAt(n+1)))n+=1;d.charCodeAt(n+1)===Tc&&(n+=1)}h=["word",d.slice(m,n+1),m,n],m=n;break;default:r===Oc&&d.charCodeAt(m+1)===zc?(n=d.indexOf("*/",m+2)+1,0===n&&(p||t?n=d.length:w("comment")),h=["comment",d.slice(m,n+1),m,n],m=n):(Wc.lastIndex=m+1,Wc.test(d),n=0===Wc.lastIndex?d.length-1:Wc.lastIndex-2,h=["word",d.slice(m,n+1),m,n],g.push(h),m=n);break}return m++,h}}function k(e){v.push(e)}return{back:k,endOfFile:b,nextToken:_,position:y}},Jc=fc,Gc=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}$i(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(Jc),Kc=Gc;Gc.default=Gc,Jc.registerAtRule(Gc);var Zc,Qc,eu=fc,tu=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}$i(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=Qi(i);!(o=s()).done;){var a=o.value;a.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){void 0===e&&(e={});var t=new Zc(new Qc,this,e);return t.stringify()},t}(eu);tu.registerLazyResult=function(e){Zc=e},tu.registerProcessor=function(e){Qc=e};var ru=tu;tu.default=tu,eu.registerRoot(tu);var nu={comma:function(e){return nu.split(e,[","],!0)},space:function(e){var t=[" ","\n","\t"];return nu.split(e,t)},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=Qi(e);!(n=h()).done;){var d=n.value;l?l=!1:"\\"===d?l=!0:c?d===u&&(c=!1):'"'===d||"'"===d?(c=!0,u=d):"("===d?a+=1:")"===d?a>0&&(a-=1):0===a&&t.includes(d)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=d}return(r||""!==o)&&i.push(o.trim()),i}},iu=nu;nu.default=nu;var ou=fc,su=iu,au=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return $i(t,e),zi(t,[{key:"selectors",get:function(){return su.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(ou),cu=au;au.default=au,ou.registerRule(au);var uu=pa,lu=Xc,hu=tc,du=Kc,pu=ru,fu=cu,mu={empty:!0,space:!0};function gu(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var vu=function(){function e(e){this.input=e,this.root=new pu,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new du;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);var o=!1,s=!1,a=[],c=[];while(!this.tokenizer.endOfFile()){if(e=this.tokenizer.nextToken(),t=e[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){n=a.length-1,r=a[n];while(r&&"space"===r[0])r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0;i--)if(r=e[i],"space"!==r[0]&&(n+=1,2===n))break;throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=Qi(e.entries());!(i=s()).done;){var a=i.value,c=a[0],u=a[1];if(t=u,r=t[0],"("===r&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new hu;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=lu(this.input)},t.decl=function(e,t){var r=new uu;this.init(r,e[0][2]);var n,i=e[e.length-1];";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||gu(e)),r.source.end.offset++;while("word"!==e[0][0])1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];r.source.start=this.getPosition(e[0][2]),r.prop="";while(e.length){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}r.raws.between="";while(e.length){if(n=e.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));var s,a=[];while(e.length){if(s=e[0][0],"space"!==s&&"comment"!==s)break;a.push(e.shift())}this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(n=e[c],"!important"===n[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u," !important"!==u&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var p=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==p)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}var f=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});f&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new fu;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;while(c){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)while(a.length){if(c=a[a.length-1][0],"space"!==c&&"comment"!==c)break;this.tokenizer.back(a.pop())}this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){var e;while(!this.tokenizer.endOfFile())switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)i=r[h],o=i[0],"space"!==o||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",mu[a]||mu[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new fu;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t&&"comment"!==t)break;r=e.pop()[1]+r}return r},t.spacesAndCommentsFromStart=function(e){var t,r="";while(e.length){if(t=e[0][0],"space"!==t&&"comment"!==t)break;r+=e.shift()[1]}return r},t.spacesFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t)break;r=e.pop()[1]+r}return r},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),yu=vu,wu=fc,bu=yu,_u=Ua;function ku(e,t){var r=new _u(e,t),n=new bu(r);try{n.parse()}catch(i){throw i}return n.root}var Su=ku;ku.default=ku,wu.registerParse(ku);var xu=Js.isClean,Cu=Js.my,Eu=Za,Au=ra,Ou=fc,Iu=wc,Tu=xc,Mu=Su,Ru=ru,Pu={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Du={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Lu={Once:!0,postcssPlugin:!0,prepare:!0},Bu=0;function Nu(e){return"object"===("undefined"===typeof e?"undefined":Ji(e))&&"function"===typeof e.then}function ju(e){var t=!1,r=Pu[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,Bu,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,Bu,r+"Exit"]:[r,r+"Exit"]}function Fu(e){var t;return t="document"===e.type?["Document",Bu,"DocumentExit"]:"root"===e.type?["Root",Bu,"RootExit"]:ju(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Uu(e){return e[xu]=!1,e.nodes&&e.nodes.forEach(function(e){return Uu(e)}),e}var zu={},qu=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==("undefined"===typeof r?"undefined":Ji(r))||null===r||"root"!==r.type&&"document"!==r.type)if(Wi(r,e)||Wi(r,Tu))i=Uu(r.root),r.map&&("undefined"===typeof n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=Mu;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[Cu]&&Ou.rebuild(i)}else i=Uu(r);this.result=new Tu(t,i,n),this.helpers=qi({},zu,{postcss:zu,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===("undefined"===typeof e?"undefined":Ji(e))&&e.prepare?qi({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion);}else e.plugin=r.postcssPlugin,e.setMessage()}catch(n){console&&console.error&&console.error(n)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=Qi(this.plugins);!(t=n()).done;){var i=t.value;if("object"===("undefined"===typeof i?"undefined":Ji(i)))for(var o in i){if(!Du[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Lu[o])if("object"===Ji(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"===typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return ji(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return eo(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],n=e.runOnRoot(r),!Nu(n))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,n];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,p.label=7;case 7:if(o[xu])return[3,14];o[xu]=!0,s=[Fu(o)],p.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!Nu(a))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,a];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i,s;return eo(this,function(a){switch(a.label){case 0:t=d.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=Qi(e.listeners.OnceExit),p.label=15;case 15:return(d=h()).done?[3,18]:[5,to(l())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===("undefined"===typeof e?"undefined":Ji(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return Nu(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"===typeof e)return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Au;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Eu(t,this.result.root,this.result.opts),n=r.generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=Qi(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(Nu(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[xu])i[xu]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=Qi(i.nodes);!(o=s()).done;){var a=o.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,i)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Qi(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(c){throw this.handleError(c,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Nu(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(h){throw this.handleError(h,r)}}if(0!==t.iterator){var a,c=t.iterator;while(a=r.nodes[r.indexes[c]])if(r.indexes[c]+=1,!a[xu])return a[xu]=!0,void e.push(Fu(a));t.iterator=0,delete r.indexes[c]}var u=t.events;while(t.eventIndex<u.length){var l=u[t.eventIndex];if(t.eventIndex+=1,l===Bu)return void(r.nodes&&r.nodes.length&&(r[xu]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[xu]=!0;for(var r,n=ju(e),i=Qi(n);!(r=i()).done;){var o=r.value;if(o===Bu)e.nodes&&e.each(function(e){e[xu]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},zi(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();qu.registerPostcss=function(e){zu=e};var Hu=qu;qu.default=qu,Ru.registerLazyResult(qu),Iu.registerLazyResult(qu);var $u=Za,Wu=ra,Vu=Su,Yu=xc,Xu=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=Wu;this.result=new Yu(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new $u(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},zi(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=Vu;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Ju=Xu;Xu.default=Xu;var Gu=Ju,Ku=Hu,Zu=wc,Qu=ru,el=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=Qi(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===("undefined"===typeof i?"undefined":Ji(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===("undefined"===typeof i?"undefined":Ji(i))&&i.postcssPlugin)r.push(i);else if("function"===typeof i)r.push(i);else{if("object"!==("undefined"===typeof i?"undefined":Ji(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Ku(this,e,t):new Gu(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),tl=el;el.default=el,Qu.registerProcessor(el),Zu.registerProcessor(el);var rl=pa,nl=Ca,il=tc,ol=Kc,sl=Ua,al=ru,cl=cu;function ul(e,t){if(Array.isArray(e))return e.map(function(e){return ul(e)});var r=e.inputs,n=Yi(e,["inputs"]);if(r){t=[];for(var i,o=Qi(r);!(i=o()).done;){var s=i.value,a=qi({},s,{__proto__:sl.prototype});a.map&&(a.map=qi({},a.map,{__proto__:nl.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return ul(e,t)})),n.source){var c=n.source,u=c.inputId,l=Yi(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new al(n);if("decl"===n.type)return new rl(n);if("rule"===n.type)return new cl(n);if("comment"===n.type)return new il(n);if("atrule"===n.type)return new ol(n);throw new Error("Unknown node type: "+e.type)}var ll=ul;ul.default=ul;var hl=Xs,dl=pa,pl=Hu,fl=fc,ml=tl,gl=ra,vl=ll,yl=wc,wl=_c,bl=tc,_l=Kc,kl=xc,Sl=Ua,xl=Su,Cl=iu,El=cu,Al=ru,Ol=la;function Il(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new ml(t)}Il.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new ml).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return Il([i(r)]).process(e,t)},i},Il.stringify=gl,Il.parse=xl,Il.fromJSON=vl,Il.list=Cl,Il.comment=function(e){return new bl(e)},Il.atRule=function(e){return new _l(e)},Il.decl=function(e){return new dl(e)},Il.rule=function(e){return new El(e)},Il.root=function(e){return new Al(e)},Il.document=function(e){return new yl(e)},Il.CssSyntaxError=hl,Il.Declaration=dl,Il.Container=fl,Il.Processor=ml,Il.Document=yl,Il.Comment=bl,Il.Warning=wl,Il.AtRule=_l,Il.Result=kl,Il.Input=Sl,Il.Rule=El,Il.Root=Al,Il.Node=Ol,pl.registerPostcss(Il);var Tl=Il;Il.default=Il;var Ml=Bs(Tl);Ml.stringify,Ml.fromJSON,Ml.plugin,Ml.parse,Ml.list,Ml.document,Ml.comment,Ml.atRule,Ml.rule,Ml.decl,Ml.root,Ml.CssSyntaxError,Ml.Declaration,Ml.Container,Ml.Processor,Ml.Document,Ml.Comment,Ml.Warning,Ml.AtRule,Ml.Result,Ml.Input,Ml.Rule,Ml.Root,Ml.Node;var Rl=Object.defineProperty,Pl=function(e,t,r){return t in e?Rl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Dl=function(e,t,r){return Pl(e,"symbol"!==("undefined"===typeof t?"undefined":Ji(t))?t+"":t,r)};function Ll(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function Bl(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return Wi(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var Nl={exports:{}},jl=String,Fl=function(){return{isColorSupported:!1,reset:jl,bold:jl,dim:jl,italic:jl,underline:jl,inverse:jl,hidden:jl,strikethrough:jl,black:jl,red:jl,green:jl,yellow:jl,blue:jl,magenta:jl,cyan:jl,white:jl,gray:jl,bgBlack:jl,bgRed:jl,bgGreen:jl,bgYellow:jl,bgBlue:jl,bgMagenta:jl,bgCyan:jl,bgWhite:jl}};Nl.exports=Fl(),Nl.exports.createColors=Fl;var Ul=Nl.exports,zl={},ql=Object.freeze(Object.defineProperty({__proto__:null,default:zl},Symbol.toStringTag,{value:"Module"})),Hl=Bl(ql),$l=Ul,Wl=Hl,Vl=function(e){function t(r,n,i,o,s,a){var c;return c=e.call(this,r)||this,c.name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),"undefined"!==typeof n&&"undefined"!==typeof i&&("number"===typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}$i(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>","undefined"!==typeof this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=$l.isColorSupported),Wl&&e&&(r=Wl(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=$l.createColors(!0),l=u.bold,h=u.gray,d=u.red;n=function(e){return l(d(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(Ki(Error)),Yl=Vl;Vl.default=Vl;var Xl={};Xl.isClean=Symbol("isClean"),Xl.my=Symbol("my");var Jl={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Gl(e){return e[0].toUpperCase()+e.slice(1)}var Kl=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if("undefined"!==typeof e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");var n=e.parent,i=0;while(n&&"root"!==n.type)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){var t=e.nodes.length-1;while(t>0){if("comment"!==e.nodes[t].type)break;t-=1}for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&(n=e.raws[t],"undefined"!==typeof n))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Jl[r];var o=e.root();if(o.rawCache||(o.rawCache={}),"undefined"!==typeof o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s="raw"+Gl(r);return this[s]?n=this[s](o,e):o.walk(function(e){if(n=e.raws[t],"undefined"!==typeof n)return!1}),"undefined"===typeof n&&(n=Jl[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&"undefined"!==typeof e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&(t=e.raws.between,"undefined"!==typeof t))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&"undefined"!==typeof r.raws.before)return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if("undefined"!==typeof e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,"undefined"!==typeof t))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&"undefined"!==typeof r.raws.before){var i=r.raws.before.split("\n");return t=i[i.length-1],t=t.replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,"undefined"!==typeof t))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),Zl=Kl;Kl.default=Kl;var Ql=Zl;function eh(e,t){var r=new Ql(t);r.stringify(e)}var th=eh;eh.default=eh;var rh=Xl.isClean,nh=Xl.my,ih=Yl,oh=Zl,sh=th;function ah(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o="undefined"===typeof i?"undefined":Ji(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return ah(e,r)}):("object"===o&&null!==i&&(i=ah(i)),r[n]=i)}return r}var ch=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[rh]=!1,this[nh]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Qi(e[t]);!(r=n()).done;){var i=r.value;"function"===typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=ah(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new ih(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[rh]){this[rh]=!1;var e=this;while(e=e.parent)e[rh]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();var n=t.indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"===typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){var r=new oh;return r.raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=Qi(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){var e=this;while(e.parent&&"document"!==e.parent.type)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return"object"===("undefined"===typeof e?"undefined":Ji(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===("undefined"===typeof s?"undefined":Ji(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=sh),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},zi(e,[{key:"proxyOf",get:function(){return this}}]),e}(),uh=ch;ch.default=ch;var lh=uh,hh=function(e){function t(t){var r;return t&&"undefined"!==typeof t.value&&"string"!==typeof t.value&&(t=qi({},t,{value:String(t.value)})),r=e.call(this,t)||this,r.type="decl",r}return $i(t,e),zi(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(lh),dh=hh;hh.default=hh;var ph="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",fh=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=ph[64*Math.random()|0];return t},mh={nanoid:fh},gh=Hl.SourceMapConsumer,vh=Hl.SourceMapGenerator,yh=Hl.existsSync,wh=Hl.readFileSync,bh=Hl.dirname,_h=Hl.join;function kh(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var Sh=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=bh(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new gh(this.text)),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(e)||i.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return kh(e.substr(RegExp.lastMatch.length));var o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===("undefined"===typeof e?"undefined":Ji(e))&&("string"===typeof e.mappings||"string"===typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=bh(e),yh(e))return this.mapFile=e,wh(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"===typeof t)return t;if("function"!==typeof t){if(Wi(t,gh))return vh.fromSourceMap(t).toString();if(Wi(t,vh))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=_h(bh(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),xh=Sh;Sh.default=Sh;var Ch=Hl.SourceMapConsumer,Eh=Hl.SourceMapGenerator,Ah=Hl.fileURLToPath,Oh=Hl.pathToFileURL,Ih=Hl.isAbsolute,Th=Hl.resolve,Mh=mh.nanoid,Rh=Hl,Ph=Yl,Dh=xh,Lh=Symbol("fromOffsetCache"),Bh=Boolean(Ch&&Eh),Nh=Boolean(Th&&Ih),jh=function(){function e(e,t){if(void 0===t&&(t={}),null===e||"undefined"===typeof e||"object"===("undefined"===typeof e?"undefined":Ji(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Nh||/^\w+:\/\//.test(t.from)||Ih(t.from)?this.file=t.from:this.file=Th(t.from)),Nh&&Bh){var r=new Dh(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+Mh(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===("undefined"===typeof t?"undefined":Ji(t))){var a=t,c=r;if("number"===typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"===typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var d=this.origin(t,r,o,s);return i=d?new Ph(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new Ph(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin),i.input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(Oh&&(i.input.url=Oh(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[Lh])r=this[Lh];else{var n=this.css.split("\n");r=new Array(n.length);for(var i=0,o=0,s=n.length;o<s;o++)r[o]=i,i+=n[o].length+1;this[Lh]=r}t=r[r.length-1];var a=0;if(e>=t)a=r.length-1;else{var c,u=r.length-2;while(a<u)if(c=a+(u-a>>1),e<r[c])u=c-1;else{if(!(e>=r[c+1])){a=c;break}a=c+1}}return{col:e-r[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Th(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"===typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=Ih(a.source)?Oh(a.source):new URL(a.source,this.map.consumer().sourceRoot||Oh(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!Ah)throw new Error("file: protocol is not available in this PostCSS build");c.file=Ah(o)}var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=qi({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},zi(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Fh=jh;jh.default=jh,Rh&&Rh.registerInput&&Rh.registerInput(jh);var Uh=Hl.SourceMapConsumer,zh=Hl.SourceMapGenerator,qh=Hl.dirname,Hh=Hl.relative,$h=Hl.resolve,Wh=Hl.sep,Vh=Hl.pathToFileURL,Yh=Fh,Xh=Boolean(Uh&&zh),Jh=Boolean(qh&&$h&&Hh&&Wh),Gh=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"===typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"===typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=Qi(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||qh(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Uh(r.text),o.sourcesContent&&(o.sourcesContent=null)):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),Jh&&Xh&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=zh.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new zh({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new zh({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),t=a.match(/\n/g),t?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}},h="decl"===c.type||"atrule"===c.type&&!c.nodes;h&&c===l.last&&!l.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||("undefined"!==typeof this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if("undefined"!==typeof this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return("undefined"===typeof e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return"undefined"!==typeof this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return"undefined"!==typeof this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?qh(this.opts.to):".";"string"===typeof this.mapOpts.annotation&&(r=qh($h(r,this.mapOpts.annotation)));var n=Hh(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new Yh(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Vh){var r=Vh(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===Wh&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Kh=Gh,Zh=uh,Qh=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="comment",r}return $i(t,e),t}(Zh),ed=Qh;Qh.default=Qh;var td,rd,nd,id,od=Xl.isClean,sd=Xl.my,ad=dh,cd=ed,ud=uh;function ld(e){return e.map(function(e){return e.nodes&&(e.nodes=ld(e.nodes)),delete e.source,e})}function hd(e){if(e[od]=!1,e.proxyOf.nodes)for(var t,r=Qi(e.proxyOf.nodes);!(t=r()).done;){var n=t.value;hd(n)}}var dd=function(e){function t(){return e.apply(this,arguments)||this}$i(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Qi(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=Qi(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=Qi(this.nodes);!(r=n()).done;){var i=r.value;i.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){var t,r,n=this.getIterator();while(this.indexes[n]<this.proxyOf.nodes.length){if(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1===r)break;this.indexes[n]+=1}return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"===typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"===typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"===typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=Qi(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)r=this.indexes[c],n<r&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=Qi(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)r=this.indexes[u],n<=r&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"===typeof e)e=ld(td(e).nodes);else if("undefined"===typeof e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=Qi(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=Qi(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if("undefined"===typeof e.value)throw new Error("Value field is missed in node creation");"string"!==typeof e.value&&(e.value=String(e.value)),e=[new ad(e)]}else if(e.selector)e=[new rd(e)];else if(e.name)e=[new nd(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new cd(e)]}var l=e.map(function(e){return e[sd]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[od]&&hd(e),"undefined"===typeof e.raws.before&&r&&"undefined"!==typeof r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return l},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=Qi(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=Qi(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=Qi(this.proxyOf.nodes);!(e=t()).done;){var r=e.value;r.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(i){throw t.addToError(i)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?Wi(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?Wi(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?Wi(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},zi(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(ud);dd.registerParse=function(e){td=e},dd.registerRule=function(e){rd=e},dd.registerAtRule=function(e){nd=e},dd.registerRoot=function(e){id=e};var pd=dd;dd.default=dd,dd.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,nd.prototype):"rule"===e.type?Object.setPrototypeOf(e,rd.prototype):"decl"===e.type?Object.setPrototypeOf(e,ad.prototype):"comment"===e.type?Object.setPrototypeOf(e,cd.prototype):"root"===e.type&&Object.setPrototypeOf(e,id.prototype),e[sd]=!0,e.nodes&&e.nodes.forEach(function(e){dd.rebuild(e)})};var fd,md,gd=pd,vd=function(e){function t(t){var r;return r=e.call(this,qi({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}$i(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new fd(new md,this,e);return t.stringify()},t}(gd);vd.registerLazyResult=function(e){fd=e},vd.registerProcessor=function(e){md=e};var yd=vd;vd.default=vd;var wd=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),bd=wd;wd.default=wd;var _d=bd,kd=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new _d(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},zi(e,[{key:"content",get:function(){return this.css}}]),e}(),Sd=kd;kd.default=kd;var xd="'".charCodeAt(0),Cd='"'.charCodeAt(0),Ed="\\".charCodeAt(0),Ad="/".charCodeAt(0),Od="\n".charCodeAt(0),Id=" ".charCodeAt(0),Td="\f".charCodeAt(0),Md="\t".charCodeAt(0),Rd="\r".charCodeAt(0),Pd="[".charCodeAt(0),Dd="]".charCodeAt(0),Ld="(".charCodeAt(0),Bd=")".charCodeAt(0),Nd="{".charCodeAt(0),jd="}".charCodeAt(0),Fd=";".charCodeAt(0),Ud="*".charCodeAt(0),zd=":".charCodeAt(0),qd="@".charCodeAt(0),Hd=/[\t\n\f\r "#'()/;[\\\]{}]/g,$d=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Wd=/.[\r\n"'(/\\]/,Vd=/[\da-f]/i,Yd=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,d=e.css.valueOf(),p=t.ignoreErrors,f=d.length,m=0,g=[],v=[];function y(){return m}function w(t){throw e.error("Unclosed "+t,m)}function b(){return 0===v.length&&m>=f}function _(e){if(v.length)return v.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(m),r){case Od:case Id:case Md:case Rd:case Td:n=m;do{n+=1,r=d.charCodeAt(n)}while(r===Id||r===Od||r===Md||r===Rd||r===Td);h=["space",d.slice(m,n)],m=n-1;break;case Pd:case Dd:case Nd:case jd:case zd:case Fd:case Bd:var y=String.fromCharCode(r);h=[y,y,m];break;case Ld:if(u=g.length?g.pop()[1]:"",l=d.charCodeAt(m+1),"url"===u&&l!==xd&&l!==Cd&&l!==Id&&l!==Od&&l!==Md&&l!==Td&&l!==Rd){n=m;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=m;break}w("bracket")}c=n;while(d.charCodeAt(c-1)===Ed)c-=1,a=!a}while(a);h=["brackets",d.slice(m,n+1),m,n],m=n}else n=d.indexOf(")",m+1),o=d.slice(m,n+1),-1===n||Wd.test(o)?h=["(","(",m]:(h=["brackets",o,m,n],m=n);break;case xd:case Cd:i=r===xd?"'":'"',n=m;do{if(a=!1,n=d.indexOf(i,n+1),-1===n){if(p||t){n=m+1;break}w("string")}c=n;while(d.charCodeAt(c-1)===Ed)c-=1,a=!a}while(a);h=["string",d.slice(m,n+1),m,n],m=n;break;case qd:Hd.lastIndex=m+1,Hd.test(d),n=0===Hd.lastIndex?d.length-1:Hd.lastIndex-2,h=["at-word",d.slice(m,n+1),m,n],m=n;break;case Ed:n=m,s=!0;while(d.charCodeAt(n+1)===Ed)n+=1,s=!s;if(r=d.charCodeAt(n+1),s&&r!==Ad&&r!==Id&&r!==Od&&r!==Md&&r!==Rd&&r!==Td&&(n+=1,Vd.test(d.charAt(n)))){while(Vd.test(d.charAt(n+1)))n+=1;d.charCodeAt(n+1)===Id&&(n+=1)}h=["word",d.slice(m,n+1),m,n],m=n;break;default:r===Ad&&d.charCodeAt(m+1)===Ud?(n=d.indexOf("*/",m+2)+1,0===n&&(p||t?n=d.length:w("comment")),h=["comment",d.slice(m,n+1),m,n],m=n):($d.lastIndex=m+1,$d.test(d),n=0===$d.lastIndex?d.length-1:$d.lastIndex-2,h=["word",d.slice(m,n+1),m,n],g.push(h),m=n);break}return m++,h}}function k(e){v.push(e)}return{back:k,endOfFile:b,nextToken:_,position:y}},Xd=pd,Jd=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}$i(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(Xd),Gd=Jd;Jd.default=Jd,Xd.registerAtRule(Jd);var Kd,Zd,Qd=pd,ep=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}$i(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=Qi(i);!(o=s()).done;){var a=o.value;a.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){void 0===e&&(e={});var t=new Kd(new Zd,this,e);return t.stringify()},t}(Qd);ep.registerLazyResult=function(e){Kd=e},ep.registerProcessor=function(e){Zd=e};var tp=ep;ep.default=ep,Qd.registerRoot(ep);var rp={comma:function(e){return rp.split(e,[","],!0)},space:function(e){var t=[" ","\n","\t"];return rp.split(e,t)},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=Qi(e);!(n=h()).done;){var d=n.value;l?l=!1:"\\"===d?l=!0:c?d===u&&(c=!1):'"'===d||"'"===d?(c=!0,u=d):"("===d?a+=1:")"===d?a>0&&(a-=1):0===a&&t.includes(d)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=d}return(r||""!==o)&&i.push(o.trim()),i}},np=rp;rp.default=rp;var ip=pd,op=np,sp=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return $i(t,e),zi(t,[{key:"selectors",get:function(){return op.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(ip),ap=sp;sp.default=sp,ip.registerRule(sp);var cp=dh,up=Yd,lp=ed,hp=Gd,dp=tp,pp=ap,fp={empty:!0,space:!0};function mp(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var gp=function(){function e(e){this.input=e,this.root=new dp,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new hp;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);var o=!1,s=!1,a=[],c=[];while(!this.tokenizer.endOfFile()){if(e=this.tokenizer.nextToken(),t=e[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){n=a.length-1,r=a[n];while(r&&"space"===r[0])r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0;i--)if(r=e[i],"space"!==r[0]&&(n+=1,2===n))break;throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=Qi(e.entries());!(i=s()).done;){var a=i.value,c=a[0],u=a[1];if(t=u,r=t[0],"("===r&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new lp;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=up(this.input)},t.decl=function(e,t){var r=new cp;this.init(r,e[0][2]);var n,i=e[e.length-1];";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||mp(e)),r.source.end.offset++;while("word"!==e[0][0])1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];r.source.start=this.getPosition(e[0][2]),r.prop="";while(e.length){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}r.raws.between="";while(e.length){if(n=e.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));var s,a=[];while(e.length){if(s=e[0][0],"space"!==s&&"comment"!==s)break;a.push(e.shift())}this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(n=e[c],"!important"===n[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u," !important"!==u&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var p=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==p)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}var f=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});f&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new pp;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;while(c){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)while(a.length){if(c=a[a.length-1][0],"space"!==c&&"comment"!==c)break;this.tokenizer.back(a.pop())}this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){var e;while(!this.tokenizer.endOfFile())switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)i=r[h],o=i[0],"space"!==o||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",fp[a]||fp[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new pp;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t&&"comment"!==t)break;r=e.pop()[1]+r}return r},t.spacesAndCommentsFromStart=function(e){var t,r="";while(e.length){if(t=e[0][0],"space"!==t&&"comment"!==t)break;r+=e.shift()[1]}return r},t.spacesFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t)break;r=e.pop()[1]+r}return r},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),vp=gp,yp=pd,wp=vp,bp=Fh;function _p(e,t){var r=new bp(e,t),n=new wp(r);try{n.parse()}catch(i){throw i}return n.root}var kp=_p;_p.default=_p,yp.registerParse(_p);var Sp=Xl.isClean,xp=Xl.my,Cp=Kh,Ep=th,Ap=pd,Op=yd,Ip=Sd,Tp=kp,Mp=tp,Rp={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Pp={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Dp={Once:!0,postcssPlugin:!0,prepare:!0},Lp=0;function Bp(e){return"object"===("undefined"===typeof e?"undefined":Ji(e))&&"function"===typeof e.then}function Np(e){var t=!1,r=Rp[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,Lp,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,Lp,r+"Exit"]:[r,r+"Exit"]}function jp(e){var t;return t="document"===e.type?["Document",Lp,"DocumentExit"]:"root"===e.type?["Root",Lp,"RootExit"]:Np(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Fp(e){return e[Sp]=!1,e.nodes&&e.nodes.forEach(function(e){return Fp(e)}),e}var Up={},zp=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==("undefined"===typeof r?"undefined":Ji(r))||null===r||"root"!==r.type&&"document"!==r.type)if(Wi(r,e)||Wi(r,Ip))i=Fp(r.root),r.map&&("undefined"===typeof n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=Tp;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[xp]&&Ap.rebuild(i)}else i=Fp(r);this.result=new Ip(t,i,n),this.helpers=qi({},Up,{postcss:Up,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===("undefined"===typeof e?"undefined":Ji(e))&&e.prepare?qi({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion);}else e.plugin=r.postcssPlugin,e.setMessage()}catch(n){console&&console.error&&console.error(n)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=Qi(this.plugins);!(t=n()).done;){var i=t.value;if("object"===("undefined"===typeof i?"undefined":Ji(i)))for(var o in i){if(!Pp[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Dp[o])if("object"===Ji(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"===typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return ji(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return eo(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],n=e.runOnRoot(r),!Bp(n))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,n];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,p.label=7;case 7:if(o[Sp])return[3,14];o[Sp]=!0,s=[jp(o)],p.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!Bp(a))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,a];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i,s;return eo(this,function(a){switch(a.label){case 0:t=d.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=Qi(e.listeners.OnceExit),p.label=15;case 15:return(d=h()).done?[3,18]:[5,to(l())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===("undefined"===typeof e?"undefined":Ji(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return Bp(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"===typeof e)return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Ep;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Cp(t,this.result.root,this.result.opts),n=r.generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=Qi(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(Bp(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[Sp])i[Sp]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=Qi(i.nodes);!(o=s()).done;){var a=o.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,i)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Qi(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(c){throw this.handleError(c,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Bp(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(h){throw this.handleError(h,r)}}if(0!==t.iterator){var a,c=t.iterator;while(a=r.nodes[r.indexes[c]])if(r.indexes[c]+=1,!a[Sp])return a[Sp]=!0,void e.push(jp(a));t.iterator=0,delete r.indexes[c]}var u=t.events;while(t.eventIndex<u.length){var l=u[t.eventIndex];if(t.eventIndex+=1,l===Lp)return void(r.nodes&&r.nodes.length&&(r[Sp]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[Sp]=!0;for(var r,n=Np(e),i=Qi(n);!(r=i()).done;){var o=r.value;if(o===Lp)e.nodes&&e.each(function(e){e[Sp]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},zi(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();zp.registerPostcss=function(e){Up=e};var qp=zp;zp.default=zp,Mp.registerLazyResult(zp),Op.registerLazyResult(zp);var Hp=Kh,$p=th,Wp=kp,Vp=Sd,Yp=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=$p;this.result=new Vp(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new Hp(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},zi(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=Wp;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Xp=Yp;Yp.default=Yp;var Jp=Xp,Gp=qp,Kp=yd,Zp=tp,Qp=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=Qi(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===("undefined"===typeof i?"undefined":Ji(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===("undefined"===typeof i?"undefined":Ji(i))&&i.postcssPlugin)r.push(i);else if("function"===typeof i)r.push(i);else{if("object"!==("undefined"===typeof i?"undefined":Ji(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Gp(this,e,t):new Jp(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),ef=Qp;Qp.default=Qp,Zp.registerProcessor(Qp),Kp.registerProcessor(Qp);var tf=dh,rf=xh,nf=ed,of=Gd,sf=Fh,af=tp,cf=ap;function uf(e,t){if(Array.isArray(e))return e.map(function(e){return uf(e)});var r=e.inputs,n=Yi(e,["inputs"]);if(r){t=[];for(var i,o=Qi(r);!(i=o()).done;){var s=i.value,a=qi({},s,{__proto__:sf.prototype});a.map&&(a.map=qi({},a.map,{__proto__:rf.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return uf(e,t)})),n.source){var c=n.source,u=c.inputId,l=Yi(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new af(n);if("decl"===n.type)return new tf(n);if("rule"===n.type)return new cf(n);if("comment"===n.type)return new nf(n);if("atrule"===n.type)return new of(n);throw new Error("Unknown node type: "+e.type)}var lf=uf;uf.default=uf;var hf=Yl,df=dh,pf=qp,ff=pd,mf=ef,gf=th,vf=lf,yf=yd,wf=bd,bf=ed,_f=Gd,kf=Sd,Sf=Fh,xf=kp,Cf=np,Ef=ap,Af=tp,Of=uh;function If(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new mf(t)}If.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new mf).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return If([i(r)]).process(e,t)},i},If.stringify=gf,If.parse=xf,If.fromJSON=vf,If.list=Cf,If.comment=function(e){return new bf(e)},If.atRule=function(e){return new _f(e)},If.decl=function(e){return new df(e)},If.rule=function(e){return new Ef(e)},If.root=function(e){return new Af(e)},If.document=function(e){return new yf(e)},If.CssSyntaxError=hf,If.Declaration=df,If.Container=ff,If.Processor=mf,If.Document=yf,If.Comment=bf,If.Warning=wf,If.AtRule=_f,If.Result=kf,If.Input=Sf,If.Rule=Ef,If.Root=Af,If.Node=Of,pf.registerPostcss(If);var Tf=If;If.default=If;var Mf=Ll(Tf);Mf.stringify,Mf.fromJSON,Mf.plugin,Mf.parse,Mf.list,Mf.document,Mf.comment,Mf.atRule,Mf.rule,Mf.decl,Mf.root,Mf.CssSyntaxError,Mf.Declaration,Mf.Container,Mf.Processor,Mf.Document,Mf.Comment,Mf.Warning,Mf.AtRule,Mf.Result,Mf.Input,Mf.Rule,Mf.Root,Mf.Node;var Rf=function(){function e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Dl(this,"parentElement",null),Dl(this,"parentNode",null),Dl(this,"ownerDocument"),Dl(this,"firstChild",null),Dl(this,"lastChild",null),Dl(this,"previousSibling",null),Dl(this,"nextSibling",null),Dl(this,"ELEMENT_NODE",1),Dl(this,"TEXT_NODE",3),Dl(this,"nodeType"),Dl(this,"nodeName"),Dl(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!Wi(t,e))return!1;if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;while(t.parentNode){if(t.parentNode===this)return!0;t=t.parentNode}return!1},t.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},zi(e,[{key:"childNodes",get:function(){var e=[],t=this.firstChild;while(t)e.push(t),t=t.nextSibling;return e}}]),e}(),Pf={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Df={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Lf={},Bf=function(){return!!globalThis.Zone};function Nf(e){if(Lf[e])return Lf[e];var t=globalThis[e],r=t.prototype,n=e in Pf?Pf[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in Df?Df[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"===typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!Bf())return Lf[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;return document.body.removeChild(a),u?Lf[e]=u:r}catch(l){return r}}var jf={};function Ff(e,t,r){var n,i=e+"."+String(r);if(jf[i])return jf[i].call(t);var o=Nf(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(jf[i]=s,s.call(t)):t[r]}var Uf={};function zf(e,t,r){var n=e+"."+String(r);if(Uf[n])return Uf[n].bind(t);var i=Nf(e),o=i[r];return"function"!==typeof o?t[r]:(Uf[n]=o,o.bind(t))}function qf(e){return Ff("Node",e,"childNodes")}function Hf(e){return Ff("Node",e,"parentNode")}function $f(e){return Ff("Node",e,"parentElement")}function Wf(e){return Ff("Node",e,"textContent")}function Vf(e,t){return zf("Node",e,"contains")(t)}function Yf(e){return zf("Node",e,"getRootNode")()}function Xf(e){return e&&"host"in e?Ff("ShadowRoot",e,"host"):null}function Jf(e){return e.styleSheets}function Gf(e){return e&&"shadowRoot"in e?Ff("Element",e,"shadowRoot"):null}function Kf(e,t){return Ff("Element",e,"querySelector")(t)}function Zf(e,t){return Ff("Element",e,"querySelectorAll")(t)}function Qf(){return Nf("MutationObserver").constructor}function em(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"===typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(o){return function(){}}}var tm={childNodes:qf,parentNode:Hf,parentElement:$f,textContent:Wf,contains:Vf,getRootNode:Yf,host:Xf,styleSheets:Jf,shadowRoot:Gf,querySelector:Kf,querySelectorAll:Zf,mutationObserver:Qf,patch:em};function rm(e,t,r){void 0===r&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}}var nm="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",im={map:{},getId:function(){return console.error(nm),-1},getNode:function(){return console.error(nm),null},removeNodeFromMap:function(){console.error(nm)},has:function(){return console.error(nm),!1},reset:function(){console.error(nm)}};function om(e,t,r){void 0===r&&(r={});var n=null,i=0;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var c=Date.now();i||!1!==r.leading||(i=c);var u=t-(c-i),l=this;u<=0||u>t?(n&&(clearTimeout(n),n=null),i=c,e.apply(l,s)):n||!1===r.trailing||(n=setTimeout(function(){i=!1===r.leading?0:Date.now(),n=null,e.apply(l,s)},u))}}function sm(e,t,r,n,i){void 0===i&&(i=window);var o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout(function(){r.set.call(t,e)},0),o&&o.set&&o.set.call(this,e)}}),function(){return sm(e,t,o||{},!0)}}"undefined"!==typeof window&&window.Proxy&&window.Reflect&&(im=new Proxy(im,{get:function(e,t,r){return"map"===t&&console.error(nm),Reflect.get(e,t,r)}}));var am=Date.now;function cm(e){var t,r,n,i,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:o.documentElement.scrollLeft||(null==o?void 0:o.body)&&(null==(t=tm.parentElement(o.body))?void 0:t.scrollLeft)||(null==(r=null==o?void 0:o.body)?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==o?void 0:o.documentElement.scrollTop)||(null==o?void 0:o.body)&&(null==(n=tm.parentElement(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function um(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function lm(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function hm(e){if(!e)return null;var t=e.nodeType===e.ELEMENT_NODE?e:tm.parentElement(e);return t}function dm(e,t,r,n){if(!e)return!1;var i=hm(e);if(!i)return!1;try{if("string"===typeof t){if(i.classList.contains(t))return!0;if(n&&null!==i.closest("."+t))return!0}else if(xs(i,t,n))return!0}catch(o){}if(r){if(i.matches(r))return!0;if(n&&null!==i.closest(r))return!0}return!1}function pm(e,t){return-1!==t.getId(e)}function fm(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||t.getId(e)===hs}function mm(e,t){if(Lo(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=tm.parentNode(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||mm(n,t))}function gm(e){return Boolean(e.changedTouches)}function vm(e){void 0===e&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function ym(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function wm(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function bm(e){return!!e&&(Wi(e,Rf)&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(tm.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(am=function(){return(new Date).getTime()});var _m=function(){function e(){oo(this,"id",1),oo(this,"styleIDMap",new WeakMap),oo(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r);var r},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},t.remove=function(e){var t=this.styleIDMap.get(e);return void 0!==t&&(this.styleIDMap.delete(e),this.idStyleMap.delete(t),!0)},e}();function km(e){var t,r=null;return"getRootNode"in e&&(null==(t=tm.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&tm.host(tm.getRootNode(e))&&(r=tm.host(tm.getRootNode(e))),r}function Sm(e){var t,r=e;while(t=km(r))r=t;return r}function xm(e){var t=e.ownerDocument;if(!t)return!1;var r=Sm(e);return tm.contains(t,r)}function Cm(e){var t=e.ownerDocument;return!!t&&(tm.contains(t,e)||xm(e))}var Em=function(e){return e[e["DomContentLoaded"]=0]="DomContentLoaded",e[e["Load"]=1]="Load",e[e["FullSnapshot"]=2]="FullSnapshot",e[e["IncrementalSnapshot"]=3]="IncrementalSnapshot",e[e["Meta"]=4]="Meta",e[e["Custom"]=5]="Custom",e[e["Plugin"]=6]="Plugin",e}(Em||{}),Am=function(e){return e[e["Mutation"]=0]="Mutation",e[e["MouseMove"]=1]="MouseMove",e[e["MouseInteraction"]=2]="MouseInteraction",e[e["Scroll"]=3]="Scroll",e[e["ViewportResize"]=4]="ViewportResize",e[e["Input"]=5]="Input",e[e["TouchMove"]=6]="TouchMove",e[e["MediaInteraction"]=7]="MediaInteraction",e[e["StyleSheetRule"]=8]="StyleSheetRule",e[e["CanvasMutation"]=9]="CanvasMutation",e[e["Font"]=10]="Font",e[e["Log"]=11]="Log",e[e["Drag"]=12]="Drag",e[e["StyleDeclaration"]=13]="StyleDeclaration",e[e["Selection"]=14]="Selection",e[e["AdoptedStyleSheet"]=15]="AdoptedStyleSheet",e[e["CustomElement"]=16]="CustomElement",e}(Am||{}),Om=function(e){return e[e["MouseUp"]=0]="MouseUp",e[e["MouseDown"]=1]="MouseDown",e[e["Click"]=2]="Click",e[e["ContextMenu"]=3]="ContextMenu",e[e["DblClick"]=4]="DblClick",e[e["Focus"]=5]="Focus",e[e["Blur"]=6]="Blur",e[e["TouchStart"]=7]="TouchStart",e[e["TouchMove_Departed"]=8]="TouchMove_Departed",e[e["TouchEnd"]=9]="TouchEnd",e[e["TouchCancel"]=10]="TouchCancel",e}(Om||{}),Im=function(e){return e[e["Mouse"]=0]="Mouse",e[e["Pen"]=1]="Pen",e[e["Touch"]=2]="Touch",e}(Im||{}),Tm=function(e){return e[e["2D"]=0]="2D",e[e["WebGL"]=1]="WebGL",e[e["WebGL2"]=2]="WebGL2",e}(Tm||{}),Mm=function(e){return e[e["Play"]=0]="Play",e[e["Pause"]=1]="Pause",e[e["Seeked"]=2]="Seeked",e[e["VolumeChange"]=3]="VolumeChange",e[e["RateChange"]=4]="RateChange",e}(Mm||{}),Rm=function(e){return e[e["Document"]=0]="Document",e[e["DocumentType"]=1]="DocumentType",e[e["Element"]=2]="Element",e[e["Text"]=3]="Text",e[e["CDATA"]=4]="CDATA",e[e["Comment"]=5]="Comment",e}(Rm||{});function Pm(e){return"__ln"in e}var Dm,Lm=function(){function e(){oo(this,"length",0),oo(this,"head",null),oo(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t},t.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Pm(e.previousSibling)){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&Pm(e.nextSibling)&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++},t.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},e}(),Bm=function(e,t){return e+"@"+t},Nm=function(){function e(){var e=this;oo(this,"frozen",!1),oo(this,"locked",!1),oo(this,"texts",[]),oo(this,"attributes",[]),oo(this,"attributeMap",new WeakMap),oo(this,"removes",[]),oo(this,"mapRemoves",[]),oo(this,"movedMap",{}),oo(this,"addedSet",new Set),oo(this,"movedSet",new Set),oo(this,"droppedSet",new Set),oo(this,"removesSubTreeCache",new Set),oo(this,"mutationCb"),oo(this,"blockClass"),oo(this,"blockSelector"),oo(this,"maskTextClass"),oo(this,"maskTextSelector"),oo(this,"inlineStylesheet"),oo(this,"maskInputOptions"),oo(this,"maskTextFn"),oo(this,"maskInputFn"),oo(this,"keepIframeSrcFn"),oo(this,"recordCanvas"),oo(this,"inlineImages"),oo(this,"slimDOMOptions"),oo(this,"dataURLOptions"),oo(this,"doc"),oo(this,"mirror"),oo(this,"iframeManager"),oo(this,"stylesheetManager"),oo(this,"shadowDomManager"),oo(this,"canvasManager"),oo(this,"processedNodeManager"),oo(this,"unattachedDoc"),oo(this,"processMutations",function(t){t.forEach(e.processMutation),e.emit()}),oo(this,"emit",function(){if(!e.frozen&&!e.locked){var t=[],r=new Set,n=new Lm,i=function(t){var r=t,n=hs;while(n===hs)r=r&&r.nextSibling,n=r&&e.mirror.getId(r);return n},o=function(o){var s=tm.parentNode(o);if(s&&Cm(o)){var a=!1;if(o.nodeType===Node.TEXT_NODE){var c=s.tagName;if("TEXTAREA"===c)return;"STYLE"===c&&e.addedSet.has(s)&&(a=!0)}var u=Lo(s)?e.mirror.getId(km(o)):e.mirror.getId(s),l=i(o);if(-1===u||-1===l)return n.addNode(o);var h=Ds(o,{doc:e.doc,mirror:e.mirror,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,dataURLOptions:e.dataURLOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(t){ym(t,e.mirror)&&e.iframeManager.addIframe(t),wm(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),bm(o)&&e.shadowDomManager.addShadowRoot(tm.shadowRoot(o),e.doc)},onIframeLoad:function(t,r){e.iframeManager.attachIframe(t,r),e.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:function(t,r){e.stylesheetManager.attachLinkElement(t,r)},cssCaptured:a});h&&(t.push({parentId:u,nextId:l,node:h}),r.add(h.id))}};while(e.mapRemoves.length){var s=e.mapRemoves.shift();e.cleanupRemovedNode(s),e.mirror.removeNodeFromMap(s)}for(var a,c=Qi(e.movedSet);!(a=c()).done;){var u=a.value;Um(e.removesSubTreeCache,u,e.mirror)&&!e.movedSet.has(tm.parentNode(u))||o(u)}for(var l,h=Qi(e.addedSet);!(l=h()).done;){var d=l.value;qm(e.droppedSet,d)||Um(e.removesSubTreeCache,d,e.mirror)?qm(e.movedSet,d)?o(d):e.droppedSet.add(d):o(d)}var p=null;while(n.length){var f=null;if(p){var m=e.mirror.getId(tm.parentNode(p.value)),g=i(p.value);-1!==m&&-1!==g&&(f=p)}if(!f){var v=n.tail;while(v){var y=v;if(v=v.previous,y){var w=e.mirror.getId(tm.parentNode(y.value)),b=i(y.value);if(-1===b)continue;if(-1!==w){f=y;break}var _=y.value,k=tm.parentNode(_);if(k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var S=tm.host(k),x=e.mirror.getId(S);if(-1!==x){f=y;break}}}}}if(!f){while(n.head)n.removeNode(n.head.value);break}p=f.previous,n.removeNode(f.value),o(f.value)}var C={texts:e.texts.map(function(t){var r=t.node,n=tm.parentNode(r);return n&&"TEXTAREA"===n.tagName&&e.genTextAreaValueMutation(n),{id:e.mirror.getId(r),value:t.value}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),attributes:e.attributes.map(function(t){var r=t.attributes;if("string"===typeof r.style){var n=JSON.stringify(t.styleDiff),i=JSON.stringify(t._unchangedStyles);n.length<r.style.length&&(n+i).split("var(").length===r.style.split("var(").length&&(r.style=t.styleDiff)}return{id:e.mirror.getId(t.node),attributes:r}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),removes:e.removes,adds:t};(C.texts.length||C.attributes.length||C.removes.length||C.adds.length)&&(e.texts=[],e.attributes=[],e.attributeMap=new WeakMap,e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.removesSubTreeCache=new Set,e.movedMap={},e.mutationCb(C))}}),oo(this,"genTextAreaValueMutation",function(t){var r=e.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(r),e.attributeMap.set(t,r));var n=Array.from(tm.childNodes(t),function(e){return tm.textContent(e)||""}).join("");r.attributes.value=Vo({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:Go(t),value:n,maskInputFn:e.maskInputFn})}),oo(this,"processMutation",function(t){if(!fm(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=tm.textContent(t.target);dm(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:Cs(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,hm(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break;case"attributes":var n=t.target,i=t.attributeName,o=t.target.getAttribute(i);if("value"===i){var s=Go(n);o=Vo({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:s,value:o,maskInputFn:e.maskInputFn})}if(dm(t.target,e.blockClass,e.blockSelector,!1)||o===t.oldValue)return;var a=e.attributeMap.get(t.target);if("IFRAME"===n.tagName&&"src"===i&&!e.keepIframeSrcFn(o)){if(n.contentDocument)return;i="rr_src"}if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(a),e.attributeMap.set(t.target,a)),"type"===i&&"INPUT"===n.tagName&&"password"===(t.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!ks(n.tagName,i))if(a.attributes[i]=_s(e.doc,Yo(n.tagName),Yo(i),o),"style"===i){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch(v){e.unattachedDoc=e.doc}var c=e.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(var u,l=Qi(Array.from(n.style));!(u=l()).done;){var h=u.value,d=n.style.getPropertyValue(h),p=n.style.getPropertyPriority(h);d!==c.style.getPropertyValue(h)||p!==c.style.getPropertyPriority(h)?a.styleDiff[h]=""===p?d:[d,p]:a._unchangedStyles[h]=[d,p]}for(var f,m=Qi(Array.from(c.style));!(f=m()).done;){var g=f.value;""===n.style.getPropertyValue(g)&&(a.styleDiff[g]=!1)}}else"open"===i&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?a.attributes["rr_open_mode"]="modal":a.attributes["rr_open_mode"]="non-modal");break;case"childList":if(dm(t.target,e.blockClass,e.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName)return void e.genTextAreaValueMutation(t.target);t.addedNodes.forEach(function(r){return e.genAdds(r,t.target)}),t.removedNodes.forEach(function(r){var n=e.mirror.getId(r),i=Lo(t.target)?e.mirror.getId(tm.host(t.target)):e.mirror.getId(t.target);dm(t.target,e.blockClass,e.blockSelector,!1)||fm(r,e.mirror,e.slimDOMOptions)||!pm(r,e.mirror)||(e.addedSet.has(r)?(jm(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||mm(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[Bm(n,i)]?jm(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!(!Lo(t.target)||!Bo(t.target))||void 0}),Fm(r,e.removesSubTreeCache))),e.mapRemoves.push(r))});break}}),oo(this,"genAdds",function(t,r){if(!e.processedNodeManager.inOtherBuffer(t,e)&&!e.addedSet.has(t)&&!e.movedSet.has(t)){if(e.mirror.hasNode(t)){if(fm(t,e.mirror,e.slimDOMOptions))return;e.movedSet.add(t);var n=null;r&&e.mirror.hasNode(r)&&(n=e.mirror.getId(r)),n&&-1!==n&&(e.movedMap[Bm(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);dm(t,e.blockClass,e.blockSelector,!1)||(tm.childNodes(t).forEach(function(t){return e.genAdds(t)}),bm(t)&&tm.childNodes(tm.shadowRoot(t)).forEach(function(r){e.processedNodeManager.add(r,e),e.genAdds(r,t)}))}}),oo(this,"cleanupRemovedNode",function(t){if("IFRAME"===t.nodeName)try{e.iframeManager.removeIframe(t)}catch(r){}else try{e.stylesheetManager.cleanupStylesheetsForRemovedNode(t)}catch(r){}t.childNodes.forEach(function(t){e.cleanupRemovedNode(t)})})}var t=e.prototype;return t.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(r){t[r]=e[r]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t.getDoc=function(){return this.doc},e}();function jm(e,t){e.delete(t),tm.childNodes(t).forEach(function(t){return jm(e,t)})}function Fm(e,t){var r=[e];while(r.length){var n=r.pop();t.has(n)||(t.add(n),tm.childNodes(n).forEach(function(e){return r.push(e)}))}}function Um(e,t,r){return 0!==e.size&&zm(e,t)}function zm(e,t,r){var n=tm.parentNode(t);return!!n&&e.has(n)}function qm(e,t){return 0!==e.size&&Hm(e,t)}function Hm(e,t){var r=tm.parentNode(t);return!!r&&(!!e.has(r)||Hm(e,r))}function $m(e){Dm=e}function Wm(){Dm=void 0}var Vm=function(e){if(!Dm)return e;var t=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];try{return e.apply(void 0,[].concat(r))}catch(i){if(Dm&&!0===Dm(i))return;throw i}};return t},Ym=[];function Xm(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(r){}return e&&e.target}function Jm(e,t){var r=new Nm;Ym.push(r),r.init(e);var n=new(Qf())(Vm(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function Gm(e){for(var t=Ym.length-1;t>=0;t--){var r=Ym[t];r.getDoc()===e&&Ym.splice(t,1)}}function Km(e){var t=e.mousemoveCb,r=e.sampling,n=e.doc,i=e.mirror;if(!1===r.mousemove)return function(){};var o,s="number"===typeof r.mousemove?r.mousemove:50,a="number"===typeof r.mousemoveCallback?r.mousemoveCallback:500,c=[],u=om(Vm(function(e){var r=Date.now()-o;t(c.map(function(e){return e.timeOffset-=r,e}),e),c=[],o=null}),a),l=Vm(om(Vm(function(e){var t=Xm(e),r=gm(e)?e.changedTouches[0]:e,n=r.clientX,s=r.clientY;o||(o=am()),c.push({x:n,y:s,id:i.getId(t),timeOffset:am()-o}),u("undefined"!==typeof DragEvent&&Wi(e,DragEvent)?Am.Drag:Wi(e,MouseEvent)?Am.MouseMove:Am.TouchMove)}),s,{trailing:!1})),h=[rm("mousemove",l,n),rm("touchmove",l,n),rm("drag",l,n)];return Vm(function(){h.forEach(function(e){return e()})})}function Zm(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;if(!1===s.mouseInteraction)return function(){};var a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,c=[],u=null,l=function(e){return function(r){var s=Xm(r);if(!dm(s,i,o,!0)){var a=null,c=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=Im.Mouse;break;case"touch":a=Im.Touch;break;case"pen":a=Im.Pen;break}a===Im.Touch?Om[e]===Om.MouseDown?c="TouchStart":Om[e]===Om.MouseUp&&(c="TouchEnd"):Im.Pen}else gm(r)&&(a=Im.Touch);null!==a?(u=a,(c.startsWith("Touch")&&a===Im.Touch||c.startsWith("Mouse")&&a===Im.Mouse)&&(a=null)):Om[e]===Om.Click&&(a=u,u=null);var l=gm(r)?r.changedTouches[0]:r;if(l){var h=n.getId(s),d=l.clientX,p=l.clientY;Vm(t)(qi({type:Om[c],id:h,x:d,y:p},null!==a&&{pointerType:a}))}}}};return Object.keys(Om).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}).forEach(function(e){var t=Yo(e),n=l(e);if(window.PointerEvent)switch(Om[e]){case Om.MouseDown:case Om.MouseUp:t=t.replace("mouse","pointer");break;case Om.TouchStart:case Om.TouchEnd:return}c.push(rm(t,n,r))}),Vm(function(){c.forEach(function(e){return e()})})}function Qm(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling,a=Vm(om(Vm(function(e){var s=Xm(e);if(s&&!dm(s,i,o,!0)){var a=n.getId(s);if(s===r&&r.defaultView){var c=cm(r.defaultView);t({id:a,x:c.left,y:c.top})}else t({id:a,x:s.scrollLeft,y:s.scrollTop})}}),s.scroll||100));return rm("scroll",a,r)}function eg(e,t){var r=e.viewportResizeCb,n=t.win,i=-1,o=-1,s=Vm(om(Vm(function(){var e=um(),t=lm();i===e&&o===t||(r({width:Number(t),height:Number(e)}),i=e,o=t)}),200));return rm("resize",s,n)}var tg=["INPUT","TEXTAREA","SELECT"],rg=new WeakMap;function ng(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,c=e.maskInputOptions,u=e.maskInputFn,l=e.sampling,h=e.userTriggeredOnInput;function d(e){var t=Xm(e),n=e.isTrusted,l=t&&t.tagName;if(t&&"OPTION"===l&&(t=tm.parentElement(t)),t&&l&&!(tg.indexOf(l)<0)&&!dm(t,i,o,!0)&&!(t.classList.contains(s)||a&&t.matches(a))){var d=t.value,f=!1,m=Go(t)||"";"radio"===m||"checkbox"===m?f=t.checked:(c[l.toLowerCase()]||c[m])&&(d=Vo({element:t,maskInputOptions:c,tagName:l,type:m,value:d,maskInputFn:u})),p(t,h?{text:d,isChecked:f,userTriggered:n}:{text:d,isChecked:f});var g=t.name;"radio"===m&&g&&f&&r.querySelectorAll('input[type="radio"][name="'+g+'"]').forEach(function(e){if(e!==t){var r=e.value;p(e,h?{text:r,isChecked:!f,userTriggered:!1}:{text:r,isChecked:!f})}})}}function p(e,r){var i=rg.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){rg.set(e,r);var o=n.getId(e);Vm(t)(qi({},r,{id:o}))}}var f="last"===l.input?["change"]:["input","change"],m=f.map(function(e){return rm(e,Vm(d),r)}),g=r.defaultView;if(!g)return function(){m.forEach(function(e){return e()})};var v,y=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,"value"),w=[[g.HTMLInputElement.prototype,"value"],[g.HTMLInputElement.prototype,"checked"],[g.HTMLSelectElement.prototype,"value"],[g.HTMLTextAreaElement.prototype,"value"],[g.HTMLSelectElement.prototype,"selectedIndex"],[g.HTMLOptionElement.prototype,"selected"]];y&&y.set&&(v=m).push.apply(v,[].concat(w.map(function(e){return sm(e[0],e[1],{set:function(){Vm(d)({target:this,isTrusted:!1})}},!1,g)})));return Vm(function(){m.forEach(function(e){return e()})})}function ig(e){var t=[];function r(e,t){if(mg("CSSGroupingRule")&&Wi(e.parentRule,CSSGroupingRule)||mg("CSSMediaRule")&&Wi(e.parentRule,CSSMediaRule)||mg("CSSSupportsRule")&&Wi(e.parentRule,CSSSupportsRule)||mg("CSSConditionRule")&&Wi(e.parentRule,CSSConditionRule)){var r=Array.from(e.parentRule.cssRules),n=r.indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){var i=Array.from(e.parentStyleSheet.cssRules),o=i.indexOf(e);t.unshift(o)}return t}return r(e,t)}function og(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function sg(e,t){var r=e.styleSheetRuleCb,n=e.mirror,i=e.stylesheetManager,o=t.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var s=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:Vm(function(e,t,o){var s=o[0],a=o[1],c=og(t,n,i.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,adds:[{rule:s,index:a}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.addRule=function(e,t,r){void 0===r&&(r=this.cssRules.length);var n=e+" { "+t+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])};var a,c,u=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(u,{apply:Vm(function(e,t,o){var s=o[0],a=og(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,removes:[{index:s}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.removeRule=function(e){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},o.CSSStyleSheet.prototype.replace&&(a=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:Vm(function(e,t,o){var s=o[0],a=og(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,replace:s}),e.apply(t,o)})})),o.CSSStyleSheet.prototype.replaceSync&&(c=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:Vm(function(e,t,o){var s=o[0],a=og(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,replaceSync:s}),e.apply(t,o)})}));var l={};gg("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(gg("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),gg("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),gg("CSSSupportsRule")&&(l.CSSSupportsRule=o.CSSSupportsRule));var h={};return Object.entries(l).forEach(function(e){var t=e[0],o=e[1];h[t]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(h[t].insertRule,{apply:Vm(function(e,t,o){var s=o[0],a=o[1],c=og(t.parentStyleSheet,n,i.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,adds:[{rule:s,index:[].concat(ig(t),[a||0])}]}),e.apply(t,o)})}),o.prototype.deleteRule=new Proxy(h[t].deleteRule,{apply:Vm(function(e,t,o){var s=o[0],a=og(t.parentStyleSheet,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,removes:[{index:[].concat(ig(t),[s])}]}),e.apply(t,o)})})}),Vm(function(){o.CSSStyleSheet.prototype.insertRule=s,o.CSSStyleSheet.prototype.deleteRule=u,a&&(o.CSSStyleSheet.prototype.replace=a),c&&(o.CSSStyleSheet.prototype.replaceSync=c),Object.entries(l).forEach(function(e){var t=e[0],r=e[1];r.prototype.insertRule=h[t].insertRule,r.prototype.deleteRule=h[t].deleteRule})})}function ag(e,t){var r,n,i,o=e.mirror,s=e.stylesheetManager,a=null;a="#document"===t.nodeName?o.getId(t):o.getId(tm.host(t));var c="#document"===t.nodeName?null==(r=t.defaultView)?void 0:r.Document:null==(i=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:i.ShadowRoot,u=(null==c?void 0:c.prototype)?Object.getOwnPropertyDescriptor(null==c?void 0:c.prototype,"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&c&&u?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:function(){var e;return null==(e=u.get)?void 0:e.call(this)},set:function(e){var t,r=null==(t=u.set)?void 0:t.call(this,e);if(null!==a&&-1!==a)try{s.adoptStyleSheets(e,a)}catch(n){}return r}}),Vm(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})})):function(){}}function cg(e,t){var r=e.styleDeclarationCb,n=e.mirror,i=e.ignoreCSSAttributes,o=e.stylesheetManager,s=t.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:Vm(function(e,t,s){var c,u=s[0],l=s[1],h=s[2];if(i.has(u))return a.apply(t,[u,l,h]);var d=og(null==(c=t.parentRule)?void 0:c.parentStyleSheet,n,o.styleMirror),p=d.id,f=d.styleId;return(p&&-1!==p||f&&-1!==f)&&r({id:p,styleId:f,set:{property:u,value:l,priority:h},index:ig(t.parentRule)}),e.apply(t,s)})});var c=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:Vm(function(e,t,s){var a,u=s[0];if(i.has(u))return c.apply(t,[u]);var l=og(null==(a=t.parentRule)?void 0:a.parentStyleSheet,n,o.styleMirror),h=l.id,d=l.styleId;return(h&&-1!==h||d&&-1!==d)&&r({id:h,styleId:d,remove:{property:u},index:ig(t.parentRule)}),e.apply(t,s)})}),Vm(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=c})}function ug(e){var t=e.mediaInteractionCb,r=e.blockClass,n=e.blockSelector,i=e.mirror,o=e.sampling,s=e.doc,a=Vm(function(e){return om(Vm(function(o){var s=Xm(o);if(s&&!dm(s,r,n,!0)){var a=s.currentTime,c=s.volume,u=s.muted,l=s.playbackRate,h=s.loop;t({type:e,id:i.getId(s),currentTime:a,volume:c,muted:u,playbackRate:l,loop:h})}}),o.media||500)}),c=[rm("play",a(Mm.Play),s),rm("pause",a(Mm.Pause),s),rm("seeked",a(Mm.Seeked),s),rm("volumechange",a(Mm.VolumeChange),s),rm("ratechange",a(Mm.RateChange),s)];return Vm(function(){c.forEach(function(e){return e()})})}function lg(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var i=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,r){var n=new s(e,t,r);return o.set(n,{family:e,buffer:"string"!==typeof t,descriptors:r,fontSource:"string"===typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var a=em(r.fonts,"add",function(e){return function(r){return setTimeout(Vm(function(){var e=o.get(r);e&&(t(e),o.delete(r))}),0),e.apply(this,[r])}});return i.push(function(){n.FontFace=s}),i.push(a),Vm(function(){i.forEach(function(e){return e()})})}function hg(e){var t=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.selectionCb,s=!0,a=Vm(function(){var e=t.getSelection();if(!(!e||s&&(null==e?void 0:e.isCollapsed))){s=e.isCollapsed||!1;for(var a=[],c=e.rangeCount||0,u=0;u<c;u++){var l=e.getRangeAt(u),h=l.startContainer,d=l.startOffset,p=l.endContainer,f=l.endOffset,m=dm(h,n,i,!0)||dm(p,n,i,!0);m||a.push({start:r.getId(h),startOffset:d,end:r.getId(p),endOffset:f})}o({ranges:a})}});return a(),rm("selectionchange",a)}function dg(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;if(!n||!n.customElements)return function(){};var i=em(n.customElements,"define",function(e){return function(t,n,i){try{r({define:{name:t}})}catch(o){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,n,i])}});return i}function pg(e,t){var r=e.mutationCb,n=e.mousemoveCb,i=e.mouseInteractionCb,o=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,c=e.mediaInteractionCb,u=e.styleSheetRuleCb,l=e.styleDeclarationCb,h=e.canvasMutationCb,d=e.fontCb,p=e.selectionCb,f=e.customElementCb;e.mutationCb=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var o;t.mutation&&(o=t).mutation.apply(o,[].concat(n));r.apply(void 0,[].concat(n))},e.mousemoveCb=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o;t.mousemove&&(o=t).mousemove.apply(o,[].concat(r));n.apply(void 0,[].concat(r))},e.mouseInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o;t.mouseInteraction&&(o=t).mouseInteraction.apply(o,[].concat(r));i.apply(void 0,[].concat(r))},e.scrollCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.scroll&&(i=t).scroll.apply(i,[].concat(r));o.apply(void 0,[].concat(r))},e.viewportResizeCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.viewportResize&&(i=t).viewportResize.apply(i,[].concat(r));s.apply(void 0,[].concat(r))},e.inputCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.input&&(i=t).input.apply(i,[].concat(r));a.apply(void 0,[].concat(r))},e.mediaInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.mediaInteaction&&(i=t).mediaInteaction.apply(i,[].concat(r));c.apply(void 0,[].concat(r))},e.styleSheetRuleCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleSheetRule&&(i=t).styleSheetRule.apply(i,[].concat(r));u.apply(void 0,[].concat(r))},e.styleDeclarationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleDeclaration&&(i=t).styleDeclaration.apply(i,[].concat(r));l.apply(void 0,[].concat(r))},e.canvasMutationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.canvasMutation&&(i=t).canvasMutation.apply(i,[].concat(r));h.apply(void 0,[].concat(r))},e.fontCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.font&&(i=t).font.apply(i,[].concat(r));d.apply(void 0,[].concat(r))},e.selectionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.selection&&(i=t).selection.apply(i,[].concat(r));p.apply(void 0,[].concat(r))},e.customElementCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.customElement&&(i=t).customElement.apply(i,[].concat(r));f.apply(void 0,[].concat(r))}}function fg(e,t){void 0===t&&(t={});var r,n=e.doc.defaultView;if(!n)return function(){};pg(e,t),e.recordDOM&&(r=Jm(e,e.doc));var i=Km(e),o=Zm(e),s=Qm(e),a=eg(e,{win:n}),c=ng(e),u=ug(e),l=function(){},h=function(){},d=function(){},p=function(){};e.recordDOM&&(l=sg(e,{win:n}),h=ag(e,e.doc),d=cg(e,{win:n}),e.collectFonts&&(p=lg(e)));for(var f,m=hg(e),g=dg(e),v=[],y=Qi(e.plugins);!(f=y()).done;){var w=f.value;v.push(w.observer(w.callback,n,w.options))}return Vm(function(){Ym.forEach(function(e){return e.reset()}),null==r||r.disconnect(),i(),o(),s(),a(),c(),u(),l(),h(),d(),p(),m(),g(),v.forEach(function(e){return e()})})}function mg(e){return"undefined"!==typeof window[e]}function gg(e){return Boolean("undefined"!==typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var vg=function(){function e(e){oo(this,"iframeIdToRemoteIdMap",new WeakMap),oo(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var t=e.prototype;return t.getId=function(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s},t.getIds=function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getId(e,t,n,i)})},t.getRemoteId=function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);if("number"!==typeof t)return t;var i=n.get(t);return i||-1},t.getRemoteIds=function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getRemoteId(e,t,n)})},t.reset=function(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},t.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},t.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},e}(),yg=function(){function e(e){oo(this,"iframes",new WeakMap),oo(this,"crossOriginIframeMap",new WeakMap),oo(this,"crossOriginIframeMirror",new vg(ds)),oo(this,"crossOriginIframeStyleMirror"),oo(this,"crossOriginIframeRootIdMap",new WeakMap),oo(this,"iframeContentDocumentMap",new WeakMap),oo(this,"iframeObserverCleanupMap",new WeakMap),oo(this,"mirror"),oo(this,"mutationCb"),oo(this,"wrappedEmit"),oo(this,"loadListener"),oo(this,"stylesheetManager"),oo(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new vg(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},t.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},t.setObserverCleanup=function(e,t){this.iframeObserverCleanupMap.set(e,t)},t.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},t.removeIframe=function(e){var t=this.iframeContentDocumentMap.get(e);t&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(t),this.mirror.removeNodeFromMap(t,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var r=this.iframeObserverCleanupMap.get(e);if(r){try{r()}catch(n){}this.iframeObserverCleanupMap.delete(e)}},t.addLoadListener=function(e){this.loadListener=e},t.attachIframe=function(e,t){var r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin){var r=e.source;if(r){var n=this.crossOriginIframeMap.get(e.source);if(n){var i=this.transformCrossOriginEvent(n,t.data.event);i&&this.wrappedEmit(i,t.data.isCheckout)}}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case Em.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:Em.IncrementalSnapshot,data:{source:Am.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case Em.Meta:case Em.Load:case Em.DomContentLoaded:return!1;case Em.Plugin:return t;case Em.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Em.IncrementalSnapshot:switch(t.data.source){case Am.Mutation:return t.data.adds.forEach(function(t){n.replaceIds(t,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(t.node,e);var r=n.crossOriginIframeRootIdMap.get(e);r&&n.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(function(t){n.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(function(t){n.replaceIds(t,e,["id"])}),t.data.texts.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case Am.Drag:case Am.TouchMove:case Am.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case Am.ViewportResize:return!1;case Am.MediaInteraction:case Am.MouseInteraction:case Am.Scroll:case Am.CanvasMutation:case Am.Input:return this.replaceIds(t.data,e,["id"]),t;case Am.StyleSheetRule:case Am.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Am.Font:return t;case Am.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case Am.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(function(t){n.replaceStyleIds(t,e,["styleId"])}),t}}return!1},t.replace=function(e,t,r,n){for(var i,o=Qi(n);!(i=o()).done;){var s=i.value;(Array.isArray(t[s])||"number"===typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]))}return t},t.replaceIds=function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)},t.replaceStyleIds=function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)},t.replaceIdOnNode=function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){r.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var r=this;e.type===Rm.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),wg=function(){function e(e){oo(this,"shadowDoms",new WeakSet),oo(this,"mutationCb"),oo(this,"scrollCb"),oo(this,"bypassOptions"),oo(this,"mirror"),oo(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(e,t){var r=this;if(Bo(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=Jm(qi({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(Qm(qi({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(tm.host(e))),r.restoreHandlers.push(ag({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))},0)}},t.observeAttachShadow=function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},t.patchAttachShadow=function(e,t){var r=this;this.restoreHandlers.push(em(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=tm.shadowRoot(this);return o&&Cm(this)&&r.addShadowRoot(o,t),i}}))},t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),bg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_g="undefined"===typeof Uint8Array?[]:new Uint8Array(256),kg=0;kg<bg.length;kg++)_g[bg.charCodeAt(kg)]=kg;var Sg=function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=bg[r[t]>>2],i+=bg[(3&r[t])<<4|r[t+1]>>4],i+=bg[(15&r[t+1])<<2|r[t+2]>>6],i+=bg[63&r[t+2]];return n%3===2?i=i.substring(0,i.length-1)+"=":n%3===1&&(i=i.substring(0,i.length-2)+"=="),i},xg=new Map;function Cg(e,t){var r=xg.get(e);return r||(r=new Map,xg.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var Eg=function(e,t,r){if(e&&(Ig(e,t)||"object"===("undefined"===typeof e?"undefined":Ji(e)))){var n=e.constructor.name,i=Cg(r,n),o=i.indexOf(e);return-1===o&&(o=i.length,i.push(e)),o}};function Ag(e,t,r){if(Wi(e,Array))return e.map(function(e){return Ag(e,t,r)});if(null===e)return e;if(Wi(e,Float32Array)||Wi(e,Float64Array)||Wi(e,Int32Array)||Wi(e,Uint32Array)||Wi(e,Uint8Array)||Wi(e,Uint16Array)||Wi(e,Int16Array)||Wi(e,Int8Array)||Wi(e,Uint8ClampedArray)){var n=e.constructor.name;return{rr_type:n,args:[Object.values(e)]}}if(Wi(e,ArrayBuffer)){var i=e.constructor.name,o=Sg(e);return{rr_type:i,base64:o}}if(Wi(e,DataView)){var s=e.constructor.name;return{rr_type:s,args:[Ag(e.buffer,t,r),e.byteOffset,e.byteLength]}}if(Wi(e,HTMLImageElement)){var a=e.constructor.name,c=e.src;return{rr_type:a,src:c}}if(Wi(e,HTMLCanvasElement)){var u="HTMLImageElement",l=e.toDataURL();return{rr_type:u,src:l}}if(Wi(e,ImageData)){var h=e.constructor.name;return{rr_type:h,args:[Ag(e.data,t,r),e.width,e.height]}}if(Ig(e,t)||"object"===("undefined"===typeof e?"undefined":Ji(e))){var d=e.constructor.name,p=Eg(e,t,r);return{rr_type:d,index:p}}return e}var Og=function(e,t,r){return e.map(function(e){return Ag(e,t,r)})},Ig=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],n=r.filter(function(e){return"function"===typeof t[e]});return Boolean(n.find(function(r){return Wi(e,t[r])}))};function Tg(e,t,r,n){for(var i,o=function(){var o=i.value;try{if("function"!==typeof t.CanvasRenderingContext2D.prototype[o])return"continue";var a=em(t.CanvasRenderingContext2D.prototype,o,function(i){return function(){for(var s=this,a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];return dm(this.canvas,r,n,!0)||setTimeout(function(){var r=Og(c,t,s);e(s.canvas,{type:Tm["2D"],property:o,args:r})},0),i.apply(this,c)}});s.push(a)}catch(u){var c=sm(t.CanvasRenderingContext2D.prototype,o,{set:function(t){e(this.canvas,{type:Tm["2D"],property:o,args:[t],setter:!0})}});s.push(c)}},s=[],a=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),c=Qi(a);!(i=c()).done;)o();return function(){s.forEach(function(e){return e()})}}function Mg(e){return"experimental-webgl"===e?"webgl":e}function Rg(e,t,r,n){var i=[];try{var o=em(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];if(!dm(this,t,r,!0)){var c=Mg(i);if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c))if(s[0]&&"object"===Ji(s[0])){var u=s[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[].concat([i],s))}});i.push(o)}catch(s){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach(function(e){return e()})}}function Pg(e,t,r,n,i,o){for(var s,a=function(){var a=s.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))return"continue";try{if("function"!==typeof e[a])return"continue";var u=em(e,a,function(e){return function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];var l=e.apply(this,c);if(Eg(l,o,this),"tagName"in this.canvas&&!dm(this.canvas,n,i,!0)){var h=Og(c,o,this),d={type:t,property:a,args:h};r(this.canvas,d)}return l}});c.push(u)}catch(h){var l=sm(e,a,{set:function(e){r(this.canvas,{type:t,property:a,args:[e],setter:!0})}});c.push(l)}},c=[],u=Object.getOwnPropertyNames(e),l=Qi(u);!(s=l()).done;)a();return c}function Dg(e,t,r,n){var i,o,s=[];((i=s).push.apply(i,[].concat(Pg(t.WebGLRenderingContext.prototype,Tm.WebGL,e,r,n,t))),"undefined"!==typeof t.WebGL2RenderingContext)&&(o=s).push.apply(o,[].concat(Pg(t.WebGL2RenderingContext.prototype,Tm.WebGL2,e,r,n,t)));return function(){s.forEach(function(e){return e()})}}var Lg="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Bg=function(e){return Uint8Array.from(atob(e),function(e){return e.charCodeAt(0)})},Ng="undefined"!==typeof window&&window.Blob&&new Blob([Bg(Lg)],{type:"text/javascript;charset=utf-8"});function jg(e){var t;try{if(t=Ng&&(window.URL||window.webkitURL).createObjectURL(Ng),!t)throw"";var r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch(n){return new Worker("data:text/javascript;base64,"+Lg,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var Fg,Ug,zg,qg=function(){function e(e){var t=this;oo(this,"pendingCanvasMutations",new Map),oo(this,"rafStamps",{latestId:0,invokeId:null}),oo(this,"mirror"),oo(this,"mutationCb"),oo(this,"resetObservers"),oo(this,"frozen",!1),oo(this,"locked",!1),oo(this,"processMutation",function(e,r){var n=t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId;!n&&t.rafStamps.invokeId||(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(e)||t.pendingCanvasMutations.set(e,[]),t.pendingCanvasMutations.get(e).push(r)});var r=e.sampling,n=void 0===r?"all":r,i=e.win,o=e.blockClass,s=e.blockSelector,a=e.recordCanvas,c=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&"all"===n&&this.initCanvasMutationObserver(i,o,s),a&&"number"===typeof n&&this.initCanvasFPSObserver(n,i,o,s,{dataURLOptions:c})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(e,t,r,n,i){var o=this,s=Rg(t,r,n,!0),a=new Map,c=new jg;c.onmessage=function(e){var t=e.data.id;if(a.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,i=r.type,s=r.width,c=r.height;o.mutationCb({id:t,type:Tm["2D"],commands:[{property:"clearRect",args:[0,0,s,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})}};var u,l=1e3/e,h=0,d=function(){var e=[];return t.document.querySelectorAll("canvas").forEach(function(t){dm(t,r,n,!0)||e.push(t)}),e},p=function(e){if(h&&e-h<l)u=requestAnimationFrame(p);else{h=e;var t=o;d().forEach(ji(function(e){var r,n,o,s;return eo(this,function(u){switch(u.label){case 0:return n=t.mirror.getId(e),a.get(n)?[2]:0===e.width||0===e.height?[2]:(a.set(n,!0),["webgl","webgl2"].includes(e.__context)&&(o=e.getContext(e.__context),!1===(null==(r=null==o?void 0:o.getContextAttributes())?void 0:r.preserveDrawingBuffer)&&o.clear(o.COLOR_BUFFER_BIT)),[4,createImageBitmap(e)]);case 1:return s=u.sent(),c.postMessage({id:n,bitmap:s,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[s]),[2]}})})),u=requestAnimationFrame(p)}};u=requestAnimationFrame(p),this.resetObservers=function(){s(),cancelAnimationFrame(u)}},t.initCanvasMutationObserver=function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n=Rg(e,t,r,!1),i=Tg(this.processMutation.bind(this),e,t,r),o=Dg(this.processMutation.bind(this),e,t,r);this.resetObservers=function(){n(),i(),o()}},t.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.startRAFTimestamping=function(){var e=this,t=function(r){e.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)},t.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,r){var n=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var n=r.map(function(e){e.type;var t=Yi(e,["type"]);return t}),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),Hg=function(){function e(e){oo(this,"trackedLinkElements",new WeakSet),oo(this,"mutationCb"),oo(this,"adoptedStyleSheetCb"),oo(this,"styleMirror",new _m),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},t.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},t.adoptStyleSheets=function(e,t){var r,n=function(){var e=i.value,t=void 0;r.styleMirror.has(e)?t=r.styleMirror.getId(e):(t=r.styleMirror.add(e),s.push({styleId:t,rules:Array.from(e.rules||CSSRule,function(t,r){return{rule:Uo(t,e.href),index:r}})})),o.styleIds.push(t)};if(0!==e.length){for(var i,o={id:t,styleIds:[]},s=[],a=Qi(e);!(i=a()).done;)r=this,n();s.length>0&&(o.styles=s),this.adoptedStyleSheetCb(o)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.cleanupStylesheetsForRemovedNode=function(e){var t=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var r=e;if(r.adoptedStyleSheets)for(var n,i=Qi(r.adoptedStyleSheets);!(n=i()).done;){var o=n.value;this.styleMirror.remove(o)}}if("STYLE"===e.nodeName){var s=e;s.sheet&&this.styleMirror.remove(s.sheet)}if("LINK"===e.nodeName&&"stylesheet"===e.rel){var a=e;a.sheet&&this.styleMirror.remove(a.sheet)}e.childNodes&&e.childNodes.forEach(function(e){t.cleanupStylesheetsForRemovedNode(e)})}catch(c){}},t.trackStylesheetInLinkElement=function(e){},e}(),$g=function(){function e(){oo(this,"nodeMap",new WeakMap),oo(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some(function(e){return e!==t})},t.add=function(e,t){var r=this;this.active||(this.active=!0,requestAnimationFrame(function(){r.nodeMap=new WeakMap,r.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},t.destroy=function(){},e}();function Wg(e){try{var t=new URL(e).origin;return"null"!==t?t:null}catch(r){return null}}function Vg(e){if(!Array.isArray(e)||0===e.length)throw new Error("[rrweb] allowedIframeOrigins must be a non-empty array of origin strings.");for(var t=new Set,r=0;r<e.length;r++){var n=e[r];if("string"!==typeof n)throw new Error("[rrweb] allowedIframeOrigins["+r+"] must be a string, got "+("undefined"===typeof n?"undefined":Ji(n))+".");var i=Wg(n);i&&t.add(i)}return Object.freeze(t)}var Yg=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var Xg=document.createElement("iframe");document.body.appendChild(Xg),Array.from=(null==(ro=Xg.contentWindow)?void 0:ro.Array.from)||Array.from,document.body.removeChild(Xg)}}catch(CA){console.debug("Unable to override Array.from",CA)}var Jg,Gg=Wo();function Kg(e){void 0===e&&(e={});var t,r=e.emit,n=e.checkoutEveryNms,i=e.checkoutEveryNth,o=e.blockClass,s=void 0===o?"rr-block":o,a=e.blockSelector,c=void 0===a?null:a,u=e.ignoreClass,l=void 0===u?"rr-ignore":u,h=e.ignoreSelector,d=void 0===h?null:h,p=e.maskTextClass,f=void 0===p?"rr-mask":p,m=e.maskTextSelector,g=void 0===m?null:m,v=e.inlineStylesheet,y=void 0===v||v,w=e.maskAllInputs,b=e.maskInputOptions,_=e.slimDOMOptions,k=e.maskInputFn,S=e.maskTextFn,x=e.hooks,C=e.packFn,E=e.sampling,A=void 0===E?{}:E,O=e.dataURLOptions,I=void 0===O?{}:O,T=e.mousemoveWait,M=e.recordDOM,R=void 0===M||M,P=e.recordCanvas,D=void 0!==P&&P,L=e.recordCrossOriginIframes,B=void 0!==L&&L,N=e.allowedIframeOrigins,j=e.recordAfter,F=void 0===j?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":j,U=e.userTriggeredOnInput,z=void 0!==U&&U,q=e.collectFonts,H=void 0!==q&&q,$=e.inlineImages,W=void 0!==$&&$,V=e.plugins,Y=e.keepIframeSrcFn,X=void 0===Y?function(){return!1}:Y,J=e.ignoreCSSAttributes,G=void 0===J?new Set([]):J,K=e.errorHandler;$m(K),B&&N&&N.length>0&&(t=Vg(N),0===t.size&&(t=void 0));var Z=!B||window.parent===window,Q=!1;if(!Z)try{window.parent.document&&(Q=!1)}catch(we){Q=!0}if(Z&&!r)throw new Error("emit function is required");if(!Z&&!Q)return function(){};void 0!==T&&void 0===A.mousemove&&(A.mousemove=T),Gg.reset();var ee,te=!0===w?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:void 0!==b?b:{password:!0},re=!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===_,headMetaDescKeywords:"all"===_,headTitleMutations:"all"===_}:_||{};vm();var ne=0,ie=function(e){for(var t,r=Qi(V||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return C&&!Q&&(e=C(e)),e};Fg=function(e,o){var s,a=e;if(a.timestamp=am(),!(null==(s=Ym[0])?void 0:s.isFrozen())||a.type===Em.FullSnapshot||a.type===Em.IncrementalSnapshot&&a.data.source===Am.Mutation||Ym.forEach(function(e){return e.unfreeze()}),Z)null==r||r(ie(a),o);else if(Q){var c={type:"rrweb",event:ie(a),origin:window.location.origin,isCheckout:o};if(t)for(var u,l=Qi(t);!(u=l()).done;){var h=u.value;window.parent.postMessage(c,h)}else window.parent.postMessage(c,"*")}if(a.type===Em.FullSnapshot)ee=a,ne=0;else if(a.type===Em.IncrementalSnapshot){if(a.data.source===Am.Mutation&&a.data.isAttachIframe)return;ne++;var d=i&&ne>=i,p=n&&a.timestamp-ee.timestamp>n;(d||p)&&Ug(!0)}};for(var oe,se=function(e){Fg({type:Em.IncrementalSnapshot,data:qi({source:Am.Mutation},e)})},ae=function(e){return Fg({type:Em.IncrementalSnapshot,data:qi({source:Am.Scroll},e)})},ce=function(e){return Fg({type:Em.IncrementalSnapshot,data:qi({source:Am.CanvasMutation},e)})},ue=function(e){return Fg({type:Em.IncrementalSnapshot,data:qi({source:Am.AdoptedStyleSheet},e)})},le=new Hg({mutationCb:se,adoptedStyleSheetCb:ue}),he=new yg({mirror:Gg,mutationCb:se,stylesheetManager:le,recordCrossOriginIframes:B,wrappedEmit:Fg}),de=Qi(V||[]);!(oe=de()).done;){var pe=oe.value;pe.getMirror&&pe.getMirror({nodeMirror:Gg,crossOriginIframeMirror:he.crossOriginIframeMirror,crossOriginIframeStyleMirror:he.crossOriginIframeStyleMirror})}var fe=new $g;zg=new qg({recordCanvas:D,mutationCb:ce,win:window,blockClass:s,blockSelector:c,mirror:Gg,sampling:A.canvas,dataURLOptions:I});var me=new wg({mutationCb:se,scrollCb:ae,bypassOptions:{blockClass:s,blockSelector:c,maskTextClass:f,maskTextSelector:g,inlineStylesheet:y,maskInputOptions:te,dataURLOptions:I,maskTextFn:S,maskInputFn:k,recordCanvas:D,inlineImages:W,sampling:A,slimDOMOptions:re,iframeManager:he,stylesheetManager:le,canvasManager:zg,keepIframeSrcFn:X,processedNodeManager:fe},mirror:Gg});Ug=function(e){if(void 0===e&&(e=!1),R){Fg({type:Em.Meta,data:{href:window.location.href,width:lm(),height:um()}},e),le.reset(),me.init(),Ym.forEach(function(e){return e.lock()});var t=Ls(document,{mirror:Gg,blockClass:s,blockSelector:c,maskTextClass:f,maskTextSelector:g,inlineStylesheet:y,maskAllInputs:te,maskTextFn:S,maskInputFn:k,slimDOM:re,dataURLOptions:I,recordCanvas:D,inlineImages:W,onSerialize:function(e){ym(e,Gg)&&he.addIframe(e),wm(e,Gg)&&le.trackLinkElement(e),bm(e)&&me.addShadowRoot(tm.shadowRoot(e),document)},onIframeLoad:function(e,t){he.attachIframe(e,t),me.observeAttachShadow(e)},onStylesheetLoad:function(e,t){le.attachLinkElement(e,t)},keepIframeSrcFn:X});if(!t)return console.warn("Failed to snapshot the document");Fg({type:Em.FullSnapshot,data:{node:t,initialOffset:cm(window)}},e),Ym.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&le.adoptStyleSheets(document.adoptedStyleSheets,Gg.getId(document))}};try{var ge=[],ve=function(e){var t;return Vm(fg)({mutationCb:se,mousemoveCb:function(e,t){return Fg({type:Em.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return Fg({type:Em.IncrementalSnapshot,data:qi({source:Am.MouseInteraction},e)})},scrollCb:ae,viewportResizeCb:function(e){return Fg({type:Em.IncrementalSnapshot,data:qi({source:Am.ViewportResize},e)})},inputCb:function(e){return Fg({type:Em.IncrementalSnapshot,data:qi({source:Am.Input},e)})},mediaInteractionCb:function(e){return Fg({type:Em.IncrementalSnapshot,data:qi({source:Am.MediaInteraction},e)})},styleSheetRuleCb:function(e){return Fg({type:Em.IncrementalSnapshot,data:qi({source:Am.StyleSheetRule},e)})},styleDeclarationCb:function(e){return Fg({type:Em.IncrementalSnapshot,data:qi({source:Am.StyleDeclaration},e)})},canvasMutationCb:ce,fontCb:function(e){return Fg({type:Em.IncrementalSnapshot,data:qi({source:Am.Font},e)})},selectionCb:function(e){Fg({type:Em.IncrementalSnapshot,data:qi({source:Am.Selection},e)})},customElementCb:function(e){Fg({type:Em.IncrementalSnapshot,data:qi({source:Am.CustomElement},e)})},blockClass:s,ignoreClass:l,ignoreSelector:d,maskTextClass:f,maskTextSelector:g,maskInputOptions:te,inlineStylesheet:y,sampling:A,recordDOM:R,recordCanvas:D,inlineImages:W,userTriggeredOnInput:z,collectFonts:H,doc:e,maskInputFn:k,maskTextFn:S,keepIframeSrcFn:X,blockSelector:c,slimDOMOptions:re,dataURLOptions:I,mirror:Gg,iframeManager:he,stylesheetManager:le,shadowDomManager:me,processedNodeManager:fe,canvasManager:zg,ignoreCSSAttributes:G,plugins:(null==(t=null==V?void 0:V.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return Fg({type:Em.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},x)};he.addLoadListener(function(e){try{var t=e.contentDocument,r=ve(t);ge.push(r);var n=he.getObserverCleanup(e);he.setObserverCleanup(e,function(){if(n)try{n()}catch(we){}try{r();var e=ge.indexOf(r);-1!==e&&ge.splice(e,1),Gm(t)}catch(we){}})}catch(i){console.warn(i)}});var ye=function(){Ug(),ge.push(ve(document)),Yg=!0};return"interactive"===document.readyState||"complete"===document.readyState?ye():(ge.push(rm("DOMContentLoaded",function(){Fg({type:Em.DomContentLoaded,data:{}}),"DOMContentLoaded"===F&&ye()})),ge.push(rm("load",function(){Fg({type:Em.Load,data:{}}),"load"===F&&ye()},window))),function(){ge.forEach(function(e){try{e()}catch(r){var t=String(r).toLowerCase();t.includes("cross-origin")||console.warn(r)}}),fe.destroy(),Yg=!1,Wm()}}catch(be){console.warn(be)}}Kg.addCustomEvent=function(e,t){if(!Yg)throw new Error("please add custom event after start recording");Fg({type:Em.Custom,data:{tag:e,payload:t}})},Kg.freezePage=function(){Ym.forEach(function(e){return e.freeze()})},Kg.takeFullSnapshot=function(e){if(!Yg)throw new Error("please take full snapshot after start recording");Ug(e)},Kg.mirror=Gg,function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(Jg||(Jg={})),Kg.addCustomEvent,Kg.freezePage,Kg.takeFullSnapshot;var Zg={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Qg={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ev={},tv=function(){return!!globalThis.Zone};function rv(e){if(ev[e])return ev[e];var t=globalThis[e],r=t.prototype,n=e in Zg?Zg[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in Qg?Qg[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"===typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!tv())return ev[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;return document.body.removeChild(a),u?ev[e]=u:r}catch(l){return r}}var nv={};function iv(e,t,r){var n,i=e+"."+String(r);if(nv[i])return nv[i].call(t);var o=rv(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(nv[i]=s,s.call(t)):t[r]}var ov={};function sv(e,t,r){var n=e+"."+String(r);if(ov[n])return ov[n].bind(t);var i=rv(e),o=i[r];return"function"!==typeof o?t[r]:(ov[n]=o,o.bind(t))}function av(e){return iv("Node",e,"childNodes")}function cv(e){return iv("Node",e,"parentNode")}function uv(e){return iv("Node",e,"parentElement")}function lv(e){return iv("Node",e,"textContent")}function hv(e,t){return sv("Node",e,"contains")(t)}function dv(e){return sv("Node",e,"getRootNode")()}function pv(e){return e&&"host"in e?iv("ShadowRoot",e,"host"):null}function fv(e){return e.styleSheets}function mv(e){return e&&"shadowRoot"in e?iv("Element",e,"shadowRoot"):null}function gv(e,t){return iv("Element",e,"querySelector")(t)}function vv(e,t){return iv("Element",e,"querySelectorAll")(t)}function yv(){return rv("MutationObserver").constructor}function wv(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"===typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(o){return function(){}}}var bv={childNodes:av,parentNode:cv,parentElement:uv,textContent:lv,contains:hv,getRootNode:dv,host:pv,styleSheets:fv,shadowRoot:mv,querySelector:gv,querySelectorAll:vv,mutationObserver:yv,patch:wv};function _v(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return _v(bv.parentNode(e),t);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return _v(bv.parentNode(e),t)}function kv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function Sv(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return Wi(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var xv={exports:{}},Cv=String,Ev=function(){return{isColorSupported:!1,reset:Cv,bold:Cv,dim:Cv,italic:Cv,underline:Cv,inverse:Cv,hidden:Cv,strikethrough:Cv,black:Cv,red:Cv,green:Cv,yellow:Cv,blue:Cv,magenta:Cv,cyan:Cv,white:Cv,gray:Cv,bgBlack:Cv,bgRed:Cv,bgGreen:Cv,bgYellow:Cv,bgBlue:Cv,bgMagenta:Cv,bgCyan:Cv,bgWhite:Cv}};xv.exports=Ev(),xv.exports.createColors=Ev;var Av=xv.exports,Ov={},Iv=Object.freeze(Object.defineProperty({__proto__:null,default:Ov},Symbol.toStringTag,{value:"Module"})),Tv=Sv(Iv),Mv=Av,Rv=Tv,Pv=function(e){function t(r,n,i,o,s,a){var c;return c=e.call(this,r)||this,c.name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),"undefined"!==typeof n&&"undefined"!==typeof i&&("number"===typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}$i(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>","undefined"!==typeof this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=Mv.isColorSupported),Rv&&e&&(r=Rv(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=Mv.createColors(!0),l=u.bold,h=u.gray,d=u.red;n=function(e){return l(d(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(Ki(Error)),Dv=Pv;Pv.default=Pv;var Lv={};Lv.isClean=Symbol("isClean"),Lv.my=Symbol("my");var Bv={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Nv(e){return e[0].toUpperCase()+e.slice(1)}var jv=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if("undefined"!==typeof e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");var n=e.parent,i=0;while(n&&"root"!==n.type)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){var t=e.nodes.length-1;while(t>0){if("comment"!==e.nodes[t].type)break;t-=1}for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&(n=e.raws[t],"undefined"!==typeof n))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Bv[r];var o=e.root();if(o.rawCache||(o.rawCache={}),"undefined"!==typeof o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s="raw"+Nv(r);return this[s]?n=this[s](o,e):o.walk(function(e){if(n=e.raws[t],"undefined"!==typeof n)return!1}),"undefined"===typeof n&&(n=Bv[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&"undefined"!==typeof e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&(t=e.raws.between,"undefined"!==typeof t))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&"undefined"!==typeof r.raws.before)return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if("undefined"!==typeof e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,"undefined"!==typeof t))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&"undefined"!==typeof r.raws.before){var i=r.raws.before.split("\n");return t=i[i.length-1],t=t.replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,"undefined"!==typeof t))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),Fv=jv;jv.default=jv;var Uv=Fv;function zv(e,t){var r=new Uv(t);r.stringify(e)}var qv=zv;zv.default=zv;var Hv=Lv.isClean,$v=Lv.my,Wv=Dv,Vv=Fv,Yv=qv;function Xv(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o="undefined"===typeof i?"undefined":Ji(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return Xv(e,r)}):("object"===o&&null!==i&&(i=Xv(i)),r[n]=i)}return r}var Jv=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Hv]=!1,this[$v]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Qi(e[t]);!(r=n()).done;){var i=r.value;"function"===typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=Xv(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new Wv(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[Hv]){this[Hv]=!1;var e=this;while(e=e.parent)e[Hv]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();var n=t.indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"===typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){var r=new Vv;return r.raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=Qi(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){var e=this;while(e.parent&&"document"!==e.parent.type)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return"object"===("undefined"===typeof e?"undefined":Ji(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===("undefined"===typeof s?"undefined":Ji(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=Yv),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},zi(e,[{key:"proxyOf",get:function(){return this}}]),e}(),Gv=Jv;Jv.default=Jv;var Kv=Gv,Zv=function(e){function t(t){var r;return t&&"undefined"!==typeof t.value&&"string"!==typeof t.value&&(t=qi({},t,{value:String(t.value)})),r=e.call(this,t)||this,r.type="decl",r}return $i(t,e),zi(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(Kv),Qv=Zv;Zv.default=Zv;var ey="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",ty=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=ey[64*Math.random()|0];return t},ry={nanoid:ty},ny=Tv.SourceMapConsumer,iy=Tv.SourceMapGenerator,oy=Tv.existsSync,sy=Tv.readFileSync,ay=Tv.dirname,cy=Tv.join;function uy(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var ly=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=ay(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new ny(this.text)),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(e)||i.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return uy(e.substr(RegExp.lastMatch.length));var o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===("undefined"===typeof e?"undefined":Ji(e))&&("string"===typeof e.mappings||"string"===typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=ay(e),oy(e))return this.mapFile=e,sy(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"===typeof t)return t;if("function"!==typeof t){if(Wi(t,ny))return iy.fromSourceMap(t).toString();if(Wi(t,iy))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=cy(ay(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),hy=ly;ly.default=ly;var dy=Tv.SourceMapConsumer,py=Tv.SourceMapGenerator,fy=Tv.fileURLToPath,my=Tv.pathToFileURL,gy=Tv.isAbsolute,vy=Tv.resolve,yy=ry.nanoid,wy=Tv,by=Dv,_y=hy,ky=Symbol("fromOffsetCache"),Sy=Boolean(dy&&py),xy=Boolean(vy&&gy),Cy=function(){function e(e,t){if(void 0===t&&(t={}),null===e||"undefined"===typeof e||"object"===("undefined"===typeof e?"undefined":Ji(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!xy||/^\w+:\/\//.test(t.from)||gy(t.from)?this.file=t.from:this.file=vy(t.from)),xy&&Sy){var r=new _y(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+yy(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===("undefined"===typeof t?"undefined":Ji(t))){var a=t,c=r;if("number"===typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"===typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var d=this.origin(t,r,o,s);return i=d?new by(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new by(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin),i.input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(my&&(i.input.url=my(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[ky])r=this[ky];else{var n=this.css.split("\n");r=new Array(n.length);for(var i=0,o=0,s=n.length;o<s;o++)r[o]=i,i+=n[o].length+1;this[ky]=r}t=r[r.length-1];var a=0;if(e>=t)a=r.length-1;else{var c,u=r.length-2;while(a<u)if(c=a+(u-a>>1),e<r[c])u=c-1;else{if(!(e>=r[c+1])){a=c;break}a=c+1}}return{col:e-r[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:vy(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"===typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=gy(a.source)?my(a.source):new URL(a.source,this.map.consumer().sourceRoot||my(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!fy)throw new Error("file: protocol is not available in this PostCSS build");c.file=fy(o)}var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=qi({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},zi(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Ey=Cy;Cy.default=Cy,wy&&wy.registerInput&&wy.registerInput(Cy);var Ay=Tv.SourceMapConsumer,Oy=Tv.SourceMapGenerator,Iy=Tv.dirname,Ty=Tv.relative,My=Tv.resolve,Ry=Tv.sep,Py=Tv.pathToFileURL,Dy=Ey,Ly=Boolean(Ay&&Oy),By=Boolean(Iy&&My&&Ty&&Ry),Ny=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"===typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"===typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=Qi(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||Iy(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Ay(r.text),o.sourcesContent&&(o.sourcesContent=null)):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),By&&Ly&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Oy.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Oy({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new Oy({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),t=a.match(/\n/g),t?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}},h="decl"===c.type||"atrule"===c.type&&!c.nodes;h&&c===l.last&&!l.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||("undefined"!==typeof this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if("undefined"!==typeof this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return("undefined"===typeof e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return"undefined"!==typeof this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return"undefined"!==typeof this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?Iy(this.opts.to):".";"string"===typeof this.mapOpts.annotation&&(r=Iy(My(r,this.mapOpts.annotation)));var n=Ty(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new Dy(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Py){var r=Py(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===Ry&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),jy=Ny,Fy=Gv,Uy=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="comment",r}return $i(t,e),t}(Fy),zy=Uy;Uy.default=Uy;var qy,Hy,$y,Wy,Vy=Lv.isClean,Yy=Lv.my,Xy=Qv,Jy=zy,Gy=Gv;function Ky(e){return e.map(function(e){return e.nodes&&(e.nodes=Ky(e.nodes)),delete e.source,e})}function Zy(e){if(e[Vy]=!1,e.proxyOf.nodes)for(var t,r=Qi(e.proxyOf.nodes);!(t=r()).done;){var n=t.value;Zy(n)}}var Qy=function(e){function t(){return e.apply(this,arguments)||this}$i(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Qi(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=Qi(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=Qi(this.nodes);!(r=n()).done;){var i=r.value;i.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){var t,r,n=this.getIterator();while(this.indexes[n]<this.proxyOf.nodes.length){if(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1===r)break;this.indexes[n]+=1}return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"===typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"===typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"===typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=Qi(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)r=this.indexes[c],n<r&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=Qi(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)r=this.indexes[u],n<=r&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"===typeof e)e=Ky(qy(e).nodes);else if("undefined"===typeof e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=Qi(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=Qi(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if("undefined"===typeof e.value)throw new Error("Value field is missed in node creation");"string"!==typeof e.value&&(e.value=String(e.value)),e=[new Xy(e)]}else if(e.selector)e=[new Hy(e)];else if(e.name)e=[new $y(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Jy(e)]}var l=e.map(function(e){return e[Yy]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[Vy]&&Zy(e),"undefined"===typeof e.raws.before&&r&&"undefined"!==typeof r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return l},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=Qi(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=Qi(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=Qi(this.proxyOf.nodes);!(e=t()).done;){var r=e.value;r.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(i){throw t.addToError(i)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?Wi(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?Wi(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?Wi(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},zi(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(Gy);Qy.registerParse=function(e){qy=e},Qy.registerRule=function(e){Hy=e},Qy.registerAtRule=function(e){$y=e},Qy.registerRoot=function(e){Wy=e};var ew=Qy;Qy.default=Qy,Qy.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,$y.prototype):"rule"===e.type?Object.setPrototypeOf(e,Hy.prototype):"decl"===e.type?Object.setPrototypeOf(e,Xy.prototype):"comment"===e.type?Object.setPrototypeOf(e,Jy.prototype):"root"===e.type&&Object.setPrototypeOf(e,Wy.prototype),e[Yy]=!0,e.nodes&&e.nodes.forEach(function(e){Qy.rebuild(e)})};var tw,rw,nw=ew,iw=function(e){function t(t){var r;return r=e.call(this,qi({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}$i(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new tw(new rw,this,e);return t.stringify()},t}(nw);iw.registerLazyResult=function(e){tw=e},iw.registerProcessor=function(e){rw=e};var ow=iw;iw.default=iw;var sw=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),aw=sw;sw.default=sw;var cw=aw,uw=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new cw(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},zi(e,[{key:"content",get:function(){return this.css}}]),e}(),lw=uw;uw.default=uw;var hw="'".charCodeAt(0),dw='"'.charCodeAt(0),pw="\\".charCodeAt(0),fw="/".charCodeAt(0),mw="\n".charCodeAt(0),gw=" ".charCodeAt(0),vw="\f".charCodeAt(0),yw="\t".charCodeAt(0),ww="\r".charCodeAt(0),bw="[".charCodeAt(0),_w="]".charCodeAt(0),kw="(".charCodeAt(0),Sw=")".charCodeAt(0),xw="{".charCodeAt(0),Cw="}".charCodeAt(0),Ew=";".charCodeAt(0),Aw="*".charCodeAt(0),Ow=":".charCodeAt(0),Iw="@".charCodeAt(0),Tw=/[\t\n\f\r "#'()/;[\\\]{}]/g,Mw=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Rw=/.[\r\n"'(/\\]/,Pw=/[\da-f]/i,Dw=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,d=e.css.valueOf(),p=t.ignoreErrors,f=d.length,m=0,g=[],v=[];function y(){return m}function w(t){throw e.error("Unclosed "+t,m)}function b(){return 0===v.length&&m>=f}function _(e){if(v.length)return v.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(m),r){case mw:case gw:case yw:case ww:case vw:n=m;do{n+=1,r=d.charCodeAt(n)}while(r===gw||r===mw||r===yw||r===ww||r===vw);h=["space",d.slice(m,n)],m=n-1;break;case bw:case _w:case xw:case Cw:case Ow:case Ew:case Sw:var y=String.fromCharCode(r);h=[y,y,m];break;case kw:if(u=g.length?g.pop()[1]:"",l=d.charCodeAt(m+1),"url"===u&&l!==hw&&l!==dw&&l!==gw&&l!==mw&&l!==yw&&l!==vw&&l!==ww){n=m;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=m;break}w("bracket")}c=n;while(d.charCodeAt(c-1)===pw)c-=1,a=!a}while(a);h=["brackets",d.slice(m,n+1),m,n],m=n}else n=d.indexOf(")",m+1),o=d.slice(m,n+1),-1===n||Rw.test(o)?h=["(","(",m]:(h=["brackets",o,m,n],m=n);break;case hw:case dw:i=r===hw?"'":'"',n=m;do{if(a=!1,n=d.indexOf(i,n+1),-1===n){if(p||t){n=m+1;break}w("string")}c=n;while(d.charCodeAt(c-1)===pw)c-=1,a=!a}while(a);h=["string",d.slice(m,n+1),m,n],m=n;break;case Iw:Tw.lastIndex=m+1,Tw.test(d),n=0===Tw.lastIndex?d.length-1:Tw.lastIndex-2,h=["at-word",d.slice(m,n+1),m,n],m=n;break;case pw:n=m,s=!0;while(d.charCodeAt(n+1)===pw)n+=1,s=!s;if(r=d.charCodeAt(n+1),s&&r!==fw&&r!==gw&&r!==mw&&r!==yw&&r!==ww&&r!==vw&&(n+=1,Pw.test(d.charAt(n)))){while(Pw.test(d.charAt(n+1)))n+=1;d.charCodeAt(n+1)===gw&&(n+=1)}h=["word",d.slice(m,n+1),m,n],m=n;break;default:r===fw&&d.charCodeAt(m+1)===Aw?(n=d.indexOf("*/",m+2)+1,0===n&&(p||t?n=d.length:w("comment")),h=["comment",d.slice(m,n+1),m,n],m=n):(Mw.lastIndex=m+1,Mw.test(d),n=0===Mw.lastIndex?d.length-1:Mw.lastIndex-2,h=["word",d.slice(m,n+1),m,n],g.push(h),m=n);break}return m++,h}}function k(e){v.push(e)}return{back:k,endOfFile:b,nextToken:_,position:y}},Lw=ew,Bw=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}$i(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(Lw),Nw=Bw;Bw.default=Bw,Lw.registerAtRule(Bw);var jw,Fw,Uw=ew,zw=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}$i(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=Qi(i);!(o=s()).done;){var a=o.value;a.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){void 0===e&&(e={});var t=new jw(new Fw,this,e);return t.stringify()},t}(Uw);zw.registerLazyResult=function(e){jw=e},zw.registerProcessor=function(e){Fw=e};var qw=zw;zw.default=zw,Uw.registerRoot(zw);var Hw={comma:function(e){return Hw.split(e,[","],!0)},space:function(e){var t=[" ","\n","\t"];return Hw.split(e,t)},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=Qi(e);!(n=h()).done;){var d=n.value;l?l=!1:"\\"===d?l=!0:c?d===u&&(c=!1):'"'===d||"'"===d?(c=!0,u=d):"("===d?a+=1:")"===d?a>0&&(a-=1):0===a&&t.includes(d)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=d}return(r||""!==o)&&i.push(o.trim()),i}},$w=Hw;Hw.default=Hw;var Ww=ew,Vw=$w,Yw=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return $i(t,e),zi(t,[{key:"selectors",get:function(){return Vw.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(Ww),Xw=Yw;Yw.default=Yw,Ww.registerRule(Yw);var Jw=Qv,Gw=Dw,Kw=zy,Zw=Nw,Qw=qw,eb=Xw,tb={empty:!0,space:!0};function rb(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var nb=function(){function e(e){this.input=e,this.root=new Qw,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new Zw;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);var o=!1,s=!1,a=[],c=[];while(!this.tokenizer.endOfFile()){if(e=this.tokenizer.nextToken(),t=e[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){n=a.length-1,r=a[n];while(r&&"space"===r[0])r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0;i--)if(r=e[i],"space"!==r[0]&&(n+=1,2===n))break;throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=Qi(e.entries());!(i=s()).done;){var a=i.value,c=a[0],u=a[1];if(t=u,r=t[0],"("===r&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new Kw;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=Gw(this.input)},t.decl=function(e,t){var r=new Jw;this.init(r,e[0][2]);var n,i=e[e.length-1];";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||rb(e)),r.source.end.offset++;while("word"!==e[0][0])1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];r.source.start=this.getPosition(e[0][2]),r.prop="";while(e.length){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}r.raws.between="";while(e.length){if(n=e.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));var s,a=[];while(e.length){if(s=e[0][0],"space"!==s&&"comment"!==s)break;a.push(e.shift())}this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(n=e[c],"!important"===n[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u," !important"!==u&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var p=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==p)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}var f=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});f&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new eb;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;while(c){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)while(a.length){if(c=a[a.length-1][0],"space"!==c&&"comment"!==c)break;this.tokenizer.back(a.pop())}this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){var e;while(!this.tokenizer.endOfFile())switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)i=r[h],o=i[0],"space"!==o||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",tb[a]||tb[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new eb;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t&&"comment"!==t)break;r=e.pop()[1]+r}return r},t.spacesAndCommentsFromStart=function(e){var t,r="";while(e.length){if(t=e[0][0],"space"!==t&&"comment"!==t)break;r+=e.shift()[1]}return r},t.spacesFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t)break;r=e.pop()[1]+r}return r},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),ib=nb,ob=ew,sb=ib,ab=Ey;function cb(e,t){var r=new ab(e,t),n=new sb(r);try{n.parse()}catch(i){throw i}return n.root}var ub=cb;cb.default=cb,ob.registerParse(cb);var lb=Lv.isClean,hb=Lv.my,db=jy,pb=qv,fb=ew,mb=ow,gb=lw,vb=ub,yb=qw,wb={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},bb={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},_b={Once:!0,postcssPlugin:!0,prepare:!0},kb=0;function Sb(e){return"object"===("undefined"===typeof e?"undefined":Ji(e))&&"function"===typeof e.then}function xb(e){var t=!1,r=wb[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,kb,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,kb,r+"Exit"]:[r,r+"Exit"]}function Cb(e){var t;return t="document"===e.type?["Document",kb,"DocumentExit"]:"root"===e.type?["Root",kb,"RootExit"]:xb(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Eb(e){return e[lb]=!1,e.nodes&&e.nodes.forEach(function(e){return Eb(e)}),e}var Ab={},Ob=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==("undefined"===typeof r?"undefined":Ji(r))||null===r||"root"!==r.type&&"document"!==r.type)if(Wi(r,e)||Wi(r,gb))i=Eb(r.root),r.map&&("undefined"===typeof n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=vb;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[hb]&&fb.rebuild(i)}else i=Eb(r);this.result=new gb(t,i,n),this.helpers=qi({},Ab,{postcss:Ab,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===("undefined"===typeof e?"undefined":Ji(e))&&e.prepare?qi({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion);}else e.plugin=r.postcssPlugin,e.setMessage()}catch(CA){console&&console.error&&console.error(CA)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=Qi(this.plugins);!(t=n()).done;){var i=t.value;if("object"===("undefined"===typeof i?"undefined":Ji(i)))for(var o in i){if(!bb[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!_b[o])if("object"===Ji(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"===typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return ji(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return eo(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],n=e.runOnRoot(r),!Sb(n))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,n];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,p.label=7;case 7:if(o[lb])return[3,14];o[lb]=!0,s=[Cb(o)],p.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!Sb(a))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,a];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i,s;return eo(this,function(a){switch(a.label){case 0:t=d.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=Qi(e.listeners.OnceExit),p.label=15;case 15:return(d=h()).done?[3,18]:[5,to(l())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===("undefined"===typeof e?"undefined":Ji(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return Sb(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"===typeof e)return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=pb;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new db(t,this.result.root,this.result.opts),n=r.generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=Qi(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(Sb(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[lb])i[lb]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=Qi(i.nodes);!(o=s()).done;){var a=o.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,i)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Qi(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(c){throw this.handleError(c,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Sb(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(h){throw this.handleError(h,r)}}if(0!==t.iterator){var a,c=t.iterator;while(a=r.nodes[r.indexes[c]])if(r.indexes[c]+=1,!a[lb])return a[lb]=!0,void e.push(Cb(a));t.iterator=0,delete r.indexes[c]}var u=t.events;while(t.eventIndex<u.length){var l=u[t.eventIndex];if(t.eventIndex+=1,l===kb)return void(r.nodes&&r.nodes.length&&(r[lb]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[lb]=!0;for(var r,n=xb(e),i=Qi(n);!(r=i()).done;){var o=r.value;if(o===kb)e.nodes&&e.each(function(e){e[lb]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},zi(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();Ob.registerPostcss=function(e){Ab=e};var Ib=Ob;Ob.default=Ob,yb.registerLazyResult(Ob),mb.registerLazyResult(Ob);var Tb=jy,Mb=qv,Rb=ub,Pb=lw,Db=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=Mb;this.result=new Pb(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new Tb(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},zi(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=Rb;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Lb=Db;Db.default=Db;var Bb=Lb,Nb=Ib,jb=ow,Fb=qw,Ub=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=Qi(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===("undefined"===typeof i?"undefined":Ji(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===("undefined"===typeof i?"undefined":Ji(i))&&i.postcssPlugin)r.push(i);else if("function"===typeof i)r.push(i);else{if("object"!==("undefined"===typeof i?"undefined":Ji(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Nb(this,e,t):new Bb(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),zb=Ub;Ub.default=Ub,Fb.registerProcessor(Ub),jb.registerProcessor(Ub);var qb=Qv,Hb=hy,$b=zy,Wb=Nw,Vb=Ey,Yb=qw,Xb=Xw;function Jb(e,t){if(Array.isArray(e))return e.map(function(e){return Jb(e)});var r=e.inputs,n=Yi(e,["inputs"]);if(r){t=[];for(var i,o=Qi(r);!(i=o()).done;){var s=i.value,a=qi({},s,{__proto__:Vb.prototype});a.map&&(a.map=qi({},a.map,{__proto__:Hb.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return Jb(e,t)})),n.source){var c=n.source,u=c.inputId,l=Yi(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new Yb(n);if("decl"===n.type)return new qb(n);if("rule"===n.type)return new Xb(n);if("comment"===n.type)return new $b(n);if("atrule"===n.type)return new Wb(n);throw new Error("Unknown node type: "+e.type)}var Gb=Jb;Jb.default=Jb;var Kb=Dv,Zb=Qv,Qb=Ib,e_=ew,t_=zb,r_=qv,n_=Gb,i_=ow,o_=aw,s_=zy,a_=Nw,c_=lw,u_=Ey,l_=ub,h_=$w,d_=Xw,p_=qw,f_=Gv;function m_(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new t_(t)}m_.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new t_).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return m_([i(r)]).process(e,t)},i},m_.stringify=r_,m_.parse=l_,m_.fromJSON=n_,m_.list=h_,m_.comment=function(e){return new s_(e)},m_.atRule=function(e){return new a_(e)},m_.decl=function(e){return new Zb(e)},m_.rule=function(e){return new d_(e)},m_.root=function(e){return new p_(e)},m_.document=function(e){return new i_(e)},m_.CssSyntaxError=Kb,m_.Declaration=Zb,m_.Container=e_,m_.Processor=t_,m_.Document=i_,m_.Comment=s_,m_.Warning=o_,m_.AtRule=a_,m_.Result=c_,m_.Input=u_,m_.Rule=d_,m_.Root=p_,m_.Node=f_,Qb.registerPostcss(m_);var g_=m_;m_.default=m_;var v_=kv(g_);v_.stringify,v_.fromJSON,v_.plugin,v_.parse,v_.list,v_.document,v_.comment,v_.atRule,v_.rule,v_.decl,v_.root,v_.CssSyntaxError,v_.Declaration,v_.Container,v_.Processor,v_.Document,v_.Comment,v_.Warning,v_.AtRule,v_.Result,v_.Input,v_.Rule,v_.Root,v_.Node;var y_=Object.defineProperty,w_=function(e,t,r){return t in e?y_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},b_=function(e,t,r){return w_(e,"symbol"!==("undefined"===typeof t?"undefined":Ji(t))?t+"":t,r)};function __(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"===typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(o){return function(){}}}var k_=function(){function e(e){b_(this,"fileName"),b_(this,"functionName"),b_(this,"lineNumber"),b_(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}var t=e.prototype;return t.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},e}(),S_=/(^|@)\S+:\d+/,x_=/^\s*at .*(\S+:\d+|\(native\))/m,C_=/^(eval@)?(\[native code])?$/,E_={parse:function(e){return e?"undefined"!==typeof e.stacktrace||"undefined"!==typeof e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(x_)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/,r=t.exec(e.replace(/[()]/g,""));if(!r)throw new Error("Cannot parse given url: "+e);return[r[1],r[2]||void 0,r[3]||void 0]},parseV8OrIE:function(e){var t=e.stack.split("\n").filter(function(e){return!!e.match(x_)},this);return t.map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/);t=r?t.replace(r[0],""):t;var n=t.split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:n.pop()),o=n.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0];return new k_({functionName:o,fileName:s,lineNumber:i[1],columnNumber:i[2]})},this)},parseFFOrSafari:function(e){var t=e.stack.split("\n").filter(function(e){return!e.match(C_)},this);return t.map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new k_({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new k_({functionName:n,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],i=2,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new k_({fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[],i=0,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new k_({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera11:function(e){var t=e.stack.split("\n").filter(function(e){return!!e.match(S_)&&!e.match(/^Error created at/)},this);return t.map(function(e){var t=e.split("@"),r=this.extractLocation(t.pop()),n=t.shift()||"",i=n.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new k_({functionName:i,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function A_(e){if(!e||!e.outerHTML)return"";var t="";while(e.parentElement){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,i=[];if(n.children&&n.children.length>0)for(var o=0;o<n.children.length;o++){var s=n.children[o];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===r&&i.push(s)}i.length>1&&(r+=":eq("+i.indexOf(e)+")"),t=r+(t?">"+t:""),e=n}return t}function O_(e){return"[object Object]"===Object.prototype.toString.call(e)}function I_(e,t){if(0===t)return!0;for(var r,n=Object.keys(e),i=Qi(n);!(r=i()).done;){var o=r.value;if(O_(e[o])&&I_(e[o],t-1))return!0}return!1}function T_(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],i=[];return JSON.stringify(e,function(e,t){if(n.length>0){var r=n.indexOf(this);~r?n.splice(r+1):n.push(this),~r?i.splice(r,1/0,e):i.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(o(t))return s(t);if("bigint"===("undefined"===typeof t?"undefined":Ji(t)))return t.toString()+"n";if(Wi(t,Event)){var a={};for(var c in t){var u=t[c];Array.isArray(u)?a[c]=A_(u.length?u[0]:null):a[c]=u}return a}return Wi(t,Node)?Wi(t,HTMLElement)?t?t.outerHTML:"":t.nodeName:Wi(t,Error)?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t});function o(e){return!!(O_(e)&&Object.keys(e).length>r.numOfKeysLimit)||("function"===typeof e||!(!O_(e)||!I_(e,r.depthOfLimit)))}function s(e){var t=e.toString();return r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t=t.slice(0,r.stringLengthLimit)+"..."),t}}var M_={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function R_(e,t,r){var n,i=r?Object.assign({},M_,r):M_,o=i.logger;if(!o)return function(){};n="string"===typeof o?t[o]:o;var s=0,a=!1,c=[];if(i.level.includes("error")){var u=function(t){var r=t.message,n=t.error,o=E_.parse(n).map(function(e){return e.toString()}),s=[T_(r,i.stringifyOptions)];e({level:"error",trace:o,payload:s})};t.addEventListener("error",u),c.push(function(){t.removeEventListener("error",u)});var l=function(t){var r,n;Wi(t.reason,Error)?(r=t.reason,n=[T_("Uncaught (in promise) "+r.name+": "+r.message,i.stringifyOptions)]):(r=new Error,n=[T_("Uncaught (in promise)",i.stringifyOptions),T_(t.reason,i.stringifyOptions)]);var o=E_.parse(r).map(function(e){return e.toString()});e({level:"error",trace:o,payload:n})};t.addEventListener("unhandledrejection",l),c.push(function(){t.removeEventListener("unhandledrejection",l)})}for(var h,d=Qi(i.level);!(h=d()).done;){var p=h.value;c.push(f(n,p))}return function(){c.forEach(function(e){return e()})};function f(t,r){var n=this;return t[r]?__(t,r,function(t){var o=n;return function(){for(var n=arguments.length,c=new Array(n),u=0;u<n;u++)c[u]=arguments[u];if(t.apply(o,c),("assert"!==r||!c[0])&&!a){a=!0;try{var l=E_.parse(new Error).map(function(e){return e.toString()}).splice(1),h="assert"===r?c.slice(1):c,d=h.map(function(e){return T_(e,i.stringifyOptions)});s++,s<i.lengthThreshold?e({level:r,trace:l,payload:d}):s===i.lengthThreshold&&e({level:"warn",trace:[],payload:[T_("The number of log records reached the threshold.")]})}catch(p){t.apply(void 0,[].concat(["rrweb logger error:",p],c))}finally{a=!1}}}}):function(){}}}var P_,D_,L_,B_="rrweb/console@1",N_=function(e){return{name:B_,observer:R_,options:e}},j_=Oi["setImmediate"],F_=Object.prototype.toString,U_="undefined"!==typeof j_?function(e){return j_(e)}:setTimeout;try{Object.defineProperty({},"x",{}),P_=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(CA){P_=function(e,t,r){return e[t]=r,e}}function z_(e,t){L_.add(e,t),D_||(D_=U_(L_.drain))}function q_(e){var t,r=typeof e;return null===e||"object"!==r&&"function"!==r||(t=e.then),"function"===typeof t&&t}function H_(){for(var e=0;e<this.chain.length;e++)$_(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function $_(e,t,r){var n,i;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg),n===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=q_(n))?i.call(n,r.resolve,r.reject):r.resolve(n))}catch(CA){r.reject(CA)}}function W_(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=q_(e))?z_(function(){var n=new X_(r);try{t.call(e,function(){W_.apply(n,arguments)},function(){V_.apply(n,arguments)})}catch(CA){V_.call(n,CA)}}):(r.msg=e,r.state=1,r.chain.length>0&&z_(H_,r))}catch(CA){V_.call(new X_(r),CA)}}}function V_(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&z_(H_,t))}function Y_(e,t,r,n){for(var i=0;i<t.length;i++)(function(i){e.resolve(t[i]).then(function(e){r(i,e)},n)})(i)}function X_(e){this.def=e,this.triggered=!1}function J_(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function G_(e){if("function"!==typeof e)throw TypeError("Not a function");if(0!==this["__NPO__"])throw TypeError("Not a promise");this["__NPO__"]=1;var t=new J_(this);this["then"]=function(e,r){var n={success:"function"!==typeof e||e,failure:"function"===typeof r&&r};return n.promise=new this.constructor(function(e,t){if("function"!==typeof e||"function"!==typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t}),t.chain.push(n),0!==t.state&&z_(H_,t),n.promise},this["catch"]=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){W_.call(t,e)},function(e){V_.call(t,e)})}catch(CA){V_.call(t,CA)}}L_=function(){var e,t,r;function n(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(i,o){r=new n(i,o),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;e=t=D_=void 0;while(r)r.fn.call(r.self),r=r.next}}}();var K_,Z_=P_({},"constructor",G_,!1);G_.prototype=Z_,P_(Z_,"__NPO__",0,!1),P_(G_,"resolve",function(e){var t=this;return e&&"object"===typeof e&&1===e["__NPO__"]?e:new t(function(t,r){if("function"!==typeof t||"function"!==typeof r)throw TypeError("Not a function");t(e)})}),P_(G_,"reject",function(e){return new this(function(t,r){if("function"!==typeof t||"function"!==typeof r)throw TypeError("Not a function");r(e)})}),P_(G_,"all",function(e){var t=this;return"[object Array]"!==F_.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(r,n){if("function"!==typeof r||"function"!==typeof n)throw TypeError("Not a function");var i=e.length,o=Array(i),s=0;Y_(t,e,function(e,t){o[e]=t,++s===i&&r(o)},n)})}),P_(G_,"race",function(e){var t=this;return"[object Array]"!==F_.call(e)?t.reject(TypeError("Not an array")):new t(function(r,n){if("function"!==typeof r||"function"!==typeof n)throw TypeError("Not a function");Y_(t,e,function(e,t){r(t)},n)})}),K_="undefined"!==typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:G_;var Q_=864e5,ek=8e3,tk=Array.prototype,rk=Function.prototype,nk=Object.prototype,ik=tk.slice,ok=nk.toString,sk=nk.hasOwnProperty,ak=Oi.console,ck=Oi.navigator,uk=Oi.document,lk=Oi.opera,hk=Oi.screen,dk=ck.userAgent,pk=rk.bind,fk=tk.forEach,mk=tk.indexOf,gk=tk.map,vk=Array.isArray,yk={},wk={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},bk={log:function(){if(Mi.DEBUG&&!wk.isUndefined(ak)&&ak)try{ak.log.apply(ak,arguments)}catch(CA){wk.each(arguments,function(e){ak.log(e)})}},warn:function(){if(Mi.DEBUG&&!wk.isUndefined(ak)&&ak){var e=["Mixpanel warning:"].concat(wk.toArray(arguments));try{ak.warn.apply(ak,e)}catch(CA){wk.each(e,function(e){ak.warn(e)})}}},error:function(){if(Mi.DEBUG&&!wk.isUndefined(ak)&&ak){var e=["Mixpanel error:"].concat(wk.toArray(arguments));try{ak.error.apply(ak,e)}catch(CA){wk.each(e,function(e){ak.error(e)})}}},critical:function(){if(!wk.isUndefined(ak)&&ak){var e=["Mixpanel error:"].concat(wk.toArray(arguments));try{ak.error.apply(ak,e)}catch(CA){wk.each(e,function(e){ak.error(e)})}}}},_k=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(bk,arguments)}},kk=function(e){return{log:_k(bk.log,e),error:_k(bk.error,e),critical:_k(bk.critical,e)}},Sk=function(e){return function(){try{return e.apply(this,arguments)}catch(t){bk.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),Mi.DEBUG&&bk.critical(t)}}},xk=function(e){var t=e.prototype;for(var r in t)"function"===typeof t[r]&&(t[r]=Sk(t[r]))};wk.bind=function(e,t){var r,n;if(pk&&e.bind===pk)return pk.apply(e,ik.call(arguments,1));if(!wk.isFunction(e))throw new TypeError;return r=ik.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(ik.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(ik.call(arguments)));return Object(s)===s?s:o},n},wk.each=function(e,t,r){if(null!==e&&void 0!==e)if(fk&&e.forEach===fk)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n,e)===yk)return}else for(var o in e)if(sk.call(e,o)&&t.call(r,e[o],o,e)===yk)return},wk.extend=function(e){return wk.each(ik.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},wk.isArray=vk||function(e){return"[object Array]"===ok.call(e)},wk.isFunction=function(e){return"function"===typeof e},wk.isArguments=function(e){return!(!e||!sk.call(e,"callee"))},wk.toArray=function(e){return e?e.toArray?e.toArray():wk.isArray(e)||wk.isArguments(e)?ik.call(e):wk.values(e):[]},wk.map=function(e,t,r){if(gk&&e.map===gk)return e.map(t,r);var n=[];return wk.each(e,function(e){n.push(t.call(r,e))}),n},wk.keys=function(e){var t=[];return null===e||wk.each(e,function(e,r){t[t.length]=r}),t},wk.values=function(e){var t=[];return null===e||wk.each(e,function(e){t[t.length]=e}),t},wk.include=function(e,t){var r=!1;return null===e?r:mk&&e.indexOf===mk?-1!=e.indexOf(t):(wk.each(e,function(e){if(r||(r=e===t))return yk}),r)},wk.includes=function(e,t){return-1!==e.indexOf(t)},wk.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},wk.isObject=function(e){return e===Object(e)&&!wk.isArray(e)},wk.isEmptyObject=function(e){if(wk.isObject(e)){for(var t in e)if(sk.call(e,t))return!1;return!0}return!1},wk.isUndefined=function(e){return void 0===e},wk.isString=function(e){return"[object String]"==ok.call(e)},wk.isDate=function(e){return"[object Date]"==ok.call(e)},wk.isNumber=function(e){return"[object Number]"==ok.call(e)},wk.isElement=function(e){return!(!e||1!==e.nodeType)},wk.encodeDates=function(e){return wk.each(e,function(t,r){wk.isDate(t)?e[r]=wk.formatDate(t):wk.isObject(t)&&(e[r]=wk.encodeDates(t))}),e},wk.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},wk.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},wk.strip_empty_properties=function(e){var t={};return wk.each(e,function(e,r){wk.isString(e)&&e.length>0&&(t[r]=e)}),t},wk.truncate=function(e,t){var r;return"string"===typeof e?r=e.slice(0,t):wk.isArray(e)?(r=[],wk.each(e,function(e){r.push(wk.truncate(e,t))})):wk.isObject(e)?(r={},wk.each(e,function(e,n){r[n]=wk.truncate(e,t)})):r=e,r},wk.JSONEncode=function(){return function(e){var t=e,r=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"===typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},n=function(e,t){var i="",o=" ",s=0,a="",c="",u=0,l=i,h=[],d=t[e];switch(d&&"object"===typeof d&&"function"===typeof d.toJSON&&(d=d.toJSON(e)),typeof d){case"string":return r(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(i+=o,h=[],"[object Array]"===ok.apply(d)){for(u=d.length,s=0;s<u;s+=1)h[s]=n(s,d)||"null";return c=0===h.length?"[]":i?"[\n"+i+h.join(",\n"+i)+"\n"+l+"]":"["+h.join(",")+"]",i=l,c}for(a in d)sk.call(d,a)&&(c=n(a,d),c&&h.push(r(a)+(i?": ":":")+c));return c=0===h.length?"{}":i?"{"+h.join(",")+l+"}":"{"+h.join(",")+"}",i=l,c}};return n("",{"":t})}}(),wk.JSONDecode=function(){var e,t,r,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},o=function(t){var n=new SyntaxError(t);throw n.at=e,n.text=r,n},s=function(n){return n&&n!==t&&o("Expected '"+n+"' instead of '"+t+"'"),t=r.charAt(e),e+=1,t},a=function(){var e,r="";"-"===t&&(r="-",s("-"));while(t>="0"&&t<="9")r+=t,s();if("."===t){r+=".";while(s()&&t>="0"&&t<="9")r+=t}if("e"===t||"E"===t){r+=t,s(),"-"!==t&&"+"!==t||(r+=t,s());while(t>="0"&&t<="9")r+=t,s()}if(e=+r,isFinite(e))return e;o("Bad number")},c=function(){var e,r,n,a="";if('"'===t)while(s()){if('"'===t)return s(),a;if("\\"===t)if(s(),"u"===t){for(n=0,r=0;r<4;r+=1){if(e=parseInt(s(),16),!isFinite(e))break;n=16*n+e}a+=String.fromCharCode(n)}else{if("string"!==typeof i[t])break;a+=i[t]}else a+=t}o("Bad string")},u=function(){while(t&&t<=" ")s()},l=function(){switch(t){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}o('Unexpected "'+t+'"')},h=function(){var e=[];if("["===t){if(s("["),u(),"]"===t)return s("]"),e;while(t){if(e.push(n()),u(),"]"===t)return s("]"),e;s(","),u()}}o("Bad array")},d=function(){var e,r={};if("{"===t){if(s("{"),u(),"}"===t)return s("}"),r;while(t){if(e=c(),u(),s(":"),Object.hasOwnProperty.call(r,e)&&o('Duplicate key "'+e+'"'),r[e]=n(),u(),"}"===t)return s("}"),r;s(","),u()}}o("Bad object")};return n=function(){switch(u(),t){case"{":return d();case"[":return h();case'"':return c();case"-":return a();default:return t>="0"&&t<="9"?a():l()}},function(i){var s;return r=i,e=0,t=" ",s=n(),u(),t&&o("Syntax error"),s}}(),wk.base64Encode=function(e){var t,r,n,i,o,s,a,c,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l=0,h=0,d="",p=[];if(!e)return e;e=wk.utf8Encode(e);do{t=e.charCodeAt(l++),r=e.charCodeAt(l++),n=e.charCodeAt(l++),c=t<<16|r<<8|n,i=c>>18&63,o=c>>12&63,s=c>>6&63,a=63&c,p[h++]=u.charAt(i)+u.charAt(o)+u.charAt(s)+u.charAt(a)}while(l<e.length);switch(d=p.join(""),e.length%3){case 1:d=d.slice(0,-2)+"==";break;case 2:d=d.slice(0,-1)+"=";break}return d},wk.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var t,r,n,i="",o=0;for(t=r=0,o=e.length,n=0;n<o;n++){var s=e.charCodeAt(n),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(i+=e.substring(t,r)),i+=a,t=r=n+1)}return r>t&&(i+=e.substring(t,e.length)),i},wk.UUID=function(){try{return Oi["crypto"]["randomUUID"]()}catch(CA){for(var e=new Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",wk.map(e,function(e){return e.toString(16)}).join("")}};var Ck=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];wk.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<Ck.length;t++)if(-1!==e.indexOf(Ck[t]))return!0;return!1},wk.HTTPBuildQuery=function(e,t){var r,n,i=[];return wk.isUndefined(t)&&(t="&"),wk.each(e,function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r}),i.join(t)},wk.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r="[\\?&]"+t+"=([^&#]*)",n=new RegExp(r),i=n.exec(e);if(null===i||i&&"string"!==typeof i[1]&&i[1].length)return"";var o=i[1];try{o=decodeURIComponent(o)}catch(CA){bk.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},wk.cookie={get:function(e){for(var t=e+"=",r=uk.cookie.split(";"),n=0;n<r.length;n++){var i=r[n];while(" "==i.charAt(0))i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=wk.JSONDecode(wk.cookie.get(e))||{}}catch(CA){}return t},set_seconds:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=qk(uk.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+1e3*r),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure"),uk.cookie=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u},set:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=qk(uk.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+24*r*60*60*1e3),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure");var d=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u;return uk.cookie=d,d},remove:function(e,t,r){wk.cookie.set(e,"",-1,t,!1,!1,r)}};var Ek=function(e){var t=!0;try{var r="__mplss_"+jk(8),n="xyz";e.setItem(r,n),e.getItem(r)!==n&&(t=!1),e.removeItem(r)}catch(CA){t=!1}return t},Ak=null,Ok=function(e,t){return null===Ak||t?Ak=Ek(e||Oi.localStorage):Ak},Ik=null,Tk=function(e,t){return null===Ik||t?Ik=Ek(e||Oi.sessionStorage):Ik};function Mk(e,t,r){var n=function(e){bk.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||bk.error(t+" unsupported"),i},error:n,get:function(t){try{return e.getItem(t)}catch(CA){n(CA)}return null},parse:function(t){try{return wk.JSONDecode(e.getItem(t))||{}}catch(CA){}return null},set:function(t,r){try{e.setItem(t,r)}catch(CA){n(CA)}},remove:function(t){try{e.removeItem(t)}catch(CA){n(CA)}}}}var Rk=null,Pk=null;try{Rk=Oi.localStorage,Pk=Oi.sessionStorage}catch(EA){}wk.localStorage=Mk(Rk,"localStorage",Ok),wk.sessionStorage=Mk(Pk,"sessionStorage",Tk),wk.register_event=function(){var e=function(e,r,n,i,o){if(e)if(e.addEventListener&&!i)e.addEventListener(r,n,!!o);else{var s="on"+r,a=e[s];e[s]=t(e,n,a)}else bk.error("No valid element provided to register_event")};function t(e,t,n){var i=function(i){if(i=i||r(Oi.event),i){var o,s,a=!0;return wk.isFunction(n)&&(o=n(i)),s=t.call(e,i),!1!==o&&!1!==s||(a=!1),a}};return i}function r(e){return e&&(e.preventDefault=r.preventDefault,e.stopPropagation=r.stopPropagation),e}return r.preventDefault=function(){this.returnValue=!1},r.stopPropagation=function(){this.cancelBubble=!0},e}();var Dk=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');wk.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(e,r){var n=" "+r+" ";return(" "+e.className+" ").replace(t," ").indexOf(n)>=0}function n(t){if(!uk.getElementsByTagName)return[];var n,i,o,s,a,c,u,l,h,d,p=t.split(" "),f=[uk];for(c=0;c<p.length;c++)if(n=p[c].replace(/^\s+/,"").replace(/\s+$/,""),n.indexOf("#")>-1){i=n.split("#"),o=i[0];var m=i[1],g=uk.getElementById(m);if(!g||o&&g.nodeName.toLowerCase()!=o)return[];f=[g]}else if(n.indexOf(".")>-1){i=n.split("."),o=i[0];var v=i[1];for(o||(o="*"),s=[],a=0,u=0;u<f.length;u++)for(h="*"==o?e(f[u]):f[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];for(f=[],d=0,u=0;u<s.length;u++)s[u].className&&wk.isString(s[u].className)&&r(s[u],v)&&(f[d++]=s[u])}else{var y=n.match(Dk);if(y){o=y[1];var w,b=y[2],_=y[3],k=y[4];for(o||(o="*"),s=[],a=0,u=0;u<f.length;u++)for(h="*"==o?e(f[u]):f[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];switch(f=[],d=0,_){case"=":w=function(e){return e.getAttribute(b)==k};break;case"~":w=function(e){return e.getAttribute(b).match(new RegExp("\\b"+k+"\\b"))};break;case"|":w=function(e){return e.getAttribute(b).match(new RegExp("^"+k+"-?"))};break;case"^":w=function(e){return 0===e.getAttribute(b).indexOf(k)};break;case"$":w=function(e){return e.getAttribute(b).lastIndexOf(k)==e.getAttribute(b).length-k.length};break;case"*":w=function(e){return e.getAttribute(b).indexOf(k)>-1};break;default:w=function(e){return e.getAttribute(b)}}for(f=[],d=0,u=0;u<s.length;u++)w(s[u])&&(f[d++]=s[u])}else{for(o=n,s=[],a=0,u=0;u<f.length;u++)for(h=f[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];f=s}}return f}return function(e){return wk.isElement(e)?[e]:wk.isObject(e)&&!wk.isUndefined(e.length)?e:n.call(this,e)}}();var Lk=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],Bk=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];wk.info={campaignParams:function(e){var t="",r={};return wk.each(Lk,function(n){t=wk.getQueryParam(uk.URL,n),t.length?r[n]=t:void 0!==e&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return wk.each(Bk,function(r){e=wk.getQueryParam(uk.URL,r),e.length&&(t[r]=e)}),t},marketingParams:function(){return wk.extend(wk.info.campaignParams(),wk.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=wk.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n["$search_engine"]=t;var i=wk.getQueryParam(e,r);i.length&&(n["mp_keyword"]=i)}return n},browser:function(e,t,r){return t=t||"",r||wk.includes(e," OPR/")?wk.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":wk.includes(e,"IEMobile")||wk.includes(e,"WPDesktop")?"Internet Explorer Mobile":wk.includes(e,"SamsungBrowser/")?"Samsung Internet":wk.includes(e,"Edge")||wk.includes(e,"Edg/")?"Microsoft Edge":wk.includes(e,"FBIOS")?"Facebook Mobile":wk.includes(e,"Whale/")?"Whale Browser":wk.includes(e,"Chrome")?"Chrome":wk.includes(e,"CriOS")?"Chrome iOS":wk.includes(e,"UCWEB")||wk.includes(e,"UCBrowser")?"UC Browser":wk.includes(e,"FxiOS")?"Firefox iOS":wk.includes(t,"Apple")?wk.includes(e,"Mobile")?"Mobile Safari":"Safari":wk.includes(e,"Android")?"Android Mobile":wk.includes(e,"Konqueror")?"Konqueror":wk.includes(e,"Firefox")?"Firefox":wk.includes(e,"MSIE")||wk.includes(e,"Trident/")?"Internet Explorer":wk.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n=wk.info.browser(e,t,r),i={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/},o=i[n];if(void 0===o)return null;var s=e.match(o);return s?parseFloat(s[s.length-2]):null},os:function(){var e=dk;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return Oi.location.href},properties:function(e){return"object"!==typeof e&&(e={}),wk.extend(wk.strip_empty_properties({$os:wk.info.os(),$browser:wk.info.browser(dk,ck.vendor,lk),$referrer:uk.referrer,$referring_domain:wk.info.referringDomain(uk.referrer),$device:wk.info.device(dk)}),{$current_url:wk.info.currentUrl(),$browser_version:wk.info.browserVersion(dk,ck.vendor,lk),$screen_height:hk.height,$screen_width:hk.width,mp_lib:"web",$lib_version:Mi.LIB_VERSION,$insert_id:jk(),time:wk.timestamp()/1e3},wk.strip_empty_properties(e))},people_properties:function(){return wk.extend(wk.strip_empty_properties({$os:wk.info.os(),$browser:wk.info.browser(dk,ck.vendor,lk)}),{$browser_version:wk.info.browserVersion(dk,ck.vendor,lk)})},mpPageViewProperties:function(){return wk.strip_empty_properties({current_page_title:uk.title,current_domain:Oi.location.hostname,current_url_path:Oi.location.pathname,current_url_protocol:Oi.location.protocol,current_url_search:Oi.location.search})}};var Nk=function(e,t){var r=null,n=[];return function(i){var o=this;return n.push(i),r||(r=new K_(function(i){setTimeout(function(){var t=e.apply(o,[n]);r=null,n=[],i(t)},t)})),r}},jk=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},Fk=function(){var e=wk.UUID().replace(/-/g,""),t=wk.UUID().replace(/-/g,"").substring(0,16),r="01";return"00-"+e+"-"+t+"-"+r},Uk=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,zk=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,qk=function(e){var t=zk,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=Uk);var i=e.match(t);return i?i[0]:""},Hk=function(){var e=Oi.navigator["onLine"];return wk.isUndefined(e)||e},$k=function(){},Wk=function(e,t){for(var r=!1,n=0;n<t.length;n++)if(e.match(t[n])){r=!0;break}return r},Vk=null,Yk=null;"undefined"!==typeof JSON&&(Vk=JSON.stringify,Yk=JSON.parse),Vk=Vk||wk.JSONEncode,Yk=Yk||wk.JSONDecode;var Xk=function(e,t,r){if(!Oi.CompressionStream)return!1;var n=wk.info.browser(e,t,r),i=wk.info.browserVersion(e,t,r);return!(("Safari"===n||"Mobile Safari"===n)&&i>=16.4&&i<16.6)};wk["info"]=wk.info,wk["info"]["browser"]=wk.info.browser,wk["info"]["browserVersion"]=wk.info.browserVersion,wk["info"]["device"]=wk.info.device,wk["info"]["properties"]=wk.info.properties,wk["isBlockedUA"]=wk.isBlockedUA,wk["isEmptyObject"]=wk.isEmptyObject,wk["isObject"]=wk.isObject,wk["JSONDecode"]=wk.JSONDecode,wk["JSONEncode"]=wk.JSONEncode,wk["toArray"]=wk.toArray,wk["NPO"]=G_;var Jk="mixpanelBrowserDb",Gk="mixpanelRecordingEvents",Kk="mixpanelRecordingRegistry",Zk=1,Qk=[Gk,Kk],eS=function(e){this.dbPromise=null,this.storeName=e};eS.prototype._openDb=function(){return new K_(function(e,t){var r=Oi.indexedDB.open(Jk,Zk);r["onerror"]=function(){t(r.error)},r["onsuccess"]=function(){e(r.result)},r["onupgradeneeded"]=function(e){var t=e.target.result;Qk.forEach(function(e){t.createObjectStore(e)})}})},eS.prototype.init=function(){return Oi.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof Oi["IDBDatabase"]?K_.resolve():K_.reject(e)})):K_.reject("indexedDB is not supported in this browser")},eS.prototype.isInitialized=function(){return!!this.dbPromise},eS.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new K_(function(i,o){var s=n.transaction(r,e);s.oncomplete=function(){i(s)},s.onabort=s.onerror=function(){o(s.error)},t(s.objectStore(r))})};return this.dbPromise.then(n).catch(function(e){return e&&"InvalidStateError"===e["name"]?(this.dbPromise=this._openDb(),this.dbPromise.then(n)):K_.reject(e)}.bind(this))},eS.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},eS.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},eS.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},eS.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var tS="__mp_opt_in_out_";function rS(e,t){fS(!0,e,t)}function nS(e,t){fS(!1,e,t)}function iS(e,t){return"1"===dS(e,t)}function oS(e,t){if(pS(t))return bk.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===dS(e,t);return r&&bk.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function sS(e){return mS(e,function(e){return this.get_config(e)})}function aS(e){return mS(e,function(e){return this._get_config(e)})}function cS(e){return mS(e,function(e){return this._get_config(e)})}function uS(e,t){t=t||{},lS(t).remove(hS(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function lS(e){return e=e||{},"localStorage"===e.persistenceType?wk.localStorage:wk.cookie}function hS(e,t){return t=t||{},(t.persistencePrefix||tS)+e}function dS(e,t){return lS(t).get(hS(e,t))}function pS(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||Oi,r=t["navigator"]||{},n=!1;return wk.each([r["doNotTrack"],r["msDoNotTrack"],t["doNotTrack"]],function(e){wk.includes([!0,1,"1","yes"],e)&&(n=!0)}),n}function fS(e,t,r){wk.isString(t)&&t.length?(r=r||{},lS(r).set(hS(t,r),e?1:0,wk.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):bk.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function mS(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=oS(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(CA){bk.error("Unexpected error when checking tracking opt-out status: "+CA)}if(!r)return e.apply(this,arguments);var c=arguments[arguments.length-1];"function"===typeof c&&c(0)}}var gS=kk("lock"),vS=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||Oi.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||K_};vS.prototype.withLock=function(e,t){var r=this.promiseImpl;return new r(wk.bind(function(r,n){var i=t||(new Date).getTime()+"|"+Math.random(),o=(new Date).getTime(),s=this.storageKey,a=this.pollIntervalMS,c=this.timeoutMS,u=this.storage,l=s+":X",h=s+":Y",d=s+":Z",p=function(e){if((new Date).getTime()-o>c)return gS.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),u.removeItem(d),u.removeItem(h),void g();setTimeout(function(){try{e()}catch(CA){n(CA)}},a*(Math.random()+.1))},f=function(e,t){e()?t():p(function(){f(e,t)})},m=function(){var e=u.getItem(h);return(!e||e===i)&&(u.setItem(h,i),u.getItem(h)===i||(Ok(u,!0)||n(new Error("localStorage support dropped while acquiring lock")),!1))},g=function(){u.setItem(l,i),f(m,function(){u.getItem(l)!==i?p(function(){u.getItem(h)===i?f(function(){return!u.getItem(d)},v):g()}):v()})},v=function(){u.setItem(d,"1");var t=function(){u.removeItem(d),u.getItem(h)===i&&u.removeItem(h),u.getItem(l)===i&&u.removeItem(l)};e().then(function(e){t(),r(e)}).catch(function(e){t(),n(e)})};try{if(!Ok(u,!0))throw new Error("localStorage support check failed");g()}catch(CA){n(CA)}},this))};var yS=function(e){this.storage=e||Oi.localStorage};yS.prototype.init=function(){return K_.resolve()},yS.prototype.isInitialized=function(){return!0},yS.prototype.setItem=function(e,t){return new K_(wk.bind(function(r,n){try{this.storage.setItem(e,Vk(t))}catch(i){n(i)}r()},this))},yS.prototype.getItem=function(e){return new K_(wk.bind(function(t,r){var n;try{n=Yk(this.storage.getItem(e))}catch(i){r(i)}t(n)},this))},yS.prototype.removeItem=function(e){return new K_(wk.bind(function(t,r){try{this.storage.removeItem(e)}catch(n){r(n)}t()},this))};var wS=kk("batch"),bS=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new yS,this.lock=new vS(e,{storage:t.sharedLockStorage||Oi.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||wk.bind(wS.error,wS),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=Nk(wk.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=wk.bind(function(e){return this._enqueuePersisted([e])},this)};bS.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?K_.resolve():this.queueStorage.init().then(wk.bind(function(){this.initialized=!0},this)).catch(wk.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},bS.prototype.enqueue=function(e,t){var r={id:jk(),flushAfter:(new Date).getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),K_.resolve(!0))},bS.prototype._enqueuePersisted=function(e){var t=wk.bind(function(){return this.ensureInit().then(wk.bind(function(){return this.readFromStorage()},this)).then(wk.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(wk.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(wk.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(wk.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},bS.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(wk.bind(function(){return this.readFromStorage()},this)).then(wk.bind(function(r){if(r.length){var n={};wk.each(t,function(e){n[e["id"]]=!0});for(var i=0;i<r.length;i++){var o=r[i];if((new Date).getTime()>o["flushAfter"]&&!n[o["id"]]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t},this)):K_.resolve(t)};var _S=function(e,t){var r=[];return wk.each(e,function(e){e["id"]&&!t[e["id"]]&&r.push(e)}),r};bS.prototype.removeItemsByID=function(e){var t={};if(wk.each(e,function(e){t[e]=!0}),this.memQueue=_S(this.memQueue,t),this.usePersistence){var r=wk.bind(function(){return this.ensureInit().then(wk.bind(function(){return this.readFromStorage()},this)).then(wk.bind(function(e){return e=_S(e,t),this.saveToStorage(e)},this)).then(wk.bind(function(){return this.readFromStorage()},this)).then(wk.bind(function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n["id"]&&t[n["id"]])throw new Error("Item not removed from storage")}return!0},this)).catch(wk.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(wk.bind(function(e){return this.reportError("Error acquiring storage lock",e),!Ok(this.lock.storage,!0)&&r().then(wk.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(wk.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))}return K_.resolve(!0)};var kS=function(e,t){var r=[];return wk.each(e,function(e){var n=e["id"];if(n in t){var i=t[n];null!==i&&(e["payload"]=i,r.push(e))}else r.push(e)}),r};bS.prototype.updatePayloads=function(e){return this.memQueue=kS(this.memQueue,e),this.usePersistence?this.lock.withLock(wk.bind(function(){return this.ensureInit().then(wk.bind(function(){return this.readFromStorage()},this)).then(wk.bind(function(t){return t=kS(t,e),this.saveToStorage(t)},this)).catch(wk.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(wk.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):K_.resolve(!0)},bS.prototype.readFromStorage=function(){return this.ensureInit().then(wk.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(wk.bind(function(e){return e&&(wk.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(wk.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},bS.prototype.saveToStorage=function(e){return this.ensureInit().then(wk.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(wk.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},bS.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(wk.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):K_.resolve()};var SS=6e5,xS=kk("batch"),CS=function(e,t){this.errorReporter=t.errorReporter,this.queue=new bS(e,{errorReporter:wk.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig["batch_size"],this.flushInterval=this.libConfig["batch_flush_interval_ms"],this.stopped=!this.libConfig["batch_autostart"],this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null};CS.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},CS.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},CS.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},CS.prototype.clear=function(){return this.queue.clear()},CS.prototype.resetBatchSize=function(){this.batchSize=this.libConfig["batch_size"]},CS.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig["batch_flush_interval_ms"])},CS.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(wk.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},CS.prototype.sendRequestPromise=function(e,t){return new K_(wk.bind(function(r){this.sendRequest(e,t,r)},this))},CS.prototype.flush=function(e){if(this.requestInProgress)return xS.log("Flush: Request already in progress"),K_.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig["batch_request_timeout_ms"],r=(new Date).getTime(),n=this.batchSize;return this.queue.fillBatch(n).then(wk.bind(function(i){var o=i.length===n,s=[],a={};if(wk.each(i,function(e){var t=e["payload"];if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t["event"]&&t["properties"]&&(t["properties"]=wk.extend({},t["properties"],{mp_sent_by_lib_version:Mi.LIB_VERSION}));var r=!0,n=e["id"];n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&s.push(t)}a[e["id"]]=t},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),K_.resolve();var c=wk.bind(function(){return this.queue.removeItemsByID(wk.map(i,function(e){return e["id"]})).then(wk.bind(function(e){return wk.each(i,wk.bind(function(e){var t=e["id"];t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})},this)),e?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o?(this.resetFlush(),K_.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),K_.resolve())},this))},this),u=wk.bind(function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(wk.isObject(o)&&"timeout"===o.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(wk.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&!Hk()||"timeout"===o.error)){var s=2*this.flushInterval;return o.retryAfter&&(s=1e3*parseInt(o.retryAfter,10)||s),s=Math.min(SS,s),this.reportError("Error; retry in "+s+" ms"),this.scheduleFlush(s),K_.resolve()}if(wk.isObject(o)&&413===o.httpStatusCode){if(i.length>1){var u=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,u,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),K_.resolve()}return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),c()}return c()}catch(CA){this.reportError("Error handling API response",CA),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(l.transport="sendBeacon"),xS.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(u)},this)).catch(wk.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},CS.prototype.reportError=function(e,t){if(xS.error.apply(xS.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){xS.error(t)}};var ES=function(e){var t=Date.now();return!e||t>e["maxExpires"]||t>e["idleExpires"]},AS=250,OS=function(e,t){if(!wk.isArray(e))return e&&t.critical("record_allowed_iframe_origins must be an array of origin strings, cross-origin recording will be disabled."),[];for(var r=[],n=0;n<e.length;n++)try{var i=new URL(e[n]).origin;if("null"===i){t.critical(e[n]+" has an opaque origin. Skipping this entry.");continue}r.push(i)}catch(o){t.critical(e[n]+" is not a valid origin URL. Skipping this entry.")}return r},IS="change",TS="click",MS="hashchange",RS="input",PS="load",DS="mp_locationchange",LS="popstate",BS="scrollend",NS="scroll",jS="select",FS="submit",US="toggle",zS="visibilitychange",qS=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],HS=["mp-include"],$S=["mp-no-track"],WS=$S.concat(["mp-sensitive"]),VS=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],YS={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},XS={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},JS={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},GS=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],KS=5,ZS=kk("autocapture");function QS(e){for(var t={},r=ex(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function ex(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function tx(e){if(e.previousElementSibling)return e.previousElementSibling;do{e=e.previousSibling}while(e&&!cx(e));return e}function rx(e,t,r,n,i,o){var s={$classes:ex(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s["$id"]=a),mx(e,t,i,o)&&wk.each(VS.concat(n),function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);gx(n)&&(s["$attr-"+t]=n)}});var c=1,u=1,l=e;while(l=tx(l))c++,l.tagName===e.tagName&&u++;return s["$nth_child"]=c,s["$nth_of_type"]=u,s}function nx(e,t){var r=t.allowElementCallback,n=t.allowSelectors||[],i=t.blockAttrs||[],o=t.blockElementCallback,s=t.blockSelectors||[],a=t.captureTextContent||!1,c=t.captureExtraAttrs||[],u=t.capturedForHeatMap||!1,l={};wk.each(i,function(e){l[e]=!0});var h=null,d="undefined"===typeof e.target?e.srcElement:e.target;if(lx(d)&&(d=d.parentNode),px(d,e)&&sx(d,e,r,n)&&!ax(d,e,o,s)){var p=[d],f=d;while(f.parentNode&&!ux(f,"body"))p.push(f.parentNode),f=f.parentNode;var m,g=[],v=!1;if(wk.each(p,function(t){var i=mx(t,e,r,n);l["href"]||"a"!==t.tagName.toLowerCase()||(m=t.getAttribute("href"),m=i&&gx(m)&&m),ax(t,e,o,s)&&(v=!0),g.push(rx(t,e,l,c,r,n))},this),!v){var y=uk["documentElement"];if(h={$event_type:e.type,$host:Oi.location.host,$pathname:Oi.location.pathname,$elements:g,$el_attr__href:m,$viewportHeight:Math.max(y["clientHeight"],Oi["innerHeight"]||0),$viewportWidth:Math.max(y["clientWidth"],Oi["innerWidth"]||0),$pageHeight:uk["body"]["offsetHeight"]||0,$pageWidth:uk["body"]["offsetWidth"]||0},wk.each(c,function(e){if(!l[e]&&d.hasAttribute(e)){var t=d.getAttribute(e);gx(t)&&(h["$el_attr__"+e]=t)}}),a&&(w=ix(d,e,r,n),w&&w.length&&(h["$el_text"]=w)),e.type===TS&&(wk.each(qS,function(t){t in e&&(h["$"+t]=e[t])}),u&&(h["$captured_for_heatmap"]=!0),d=ox(e)),a){var w=ix(d,e,r,n);w&&w.length&&(h["$el_text"]=w)}if(d){if(!sx(d,e,r,n)||ax(d,e,o,s))return null;var b=rx(d,e,l,c,r,n);h["$target"]=b,h["$el_classes"]=b["$classes"],wk.extend(h,wk.strip_empty_properties({$el_id:b["$id"],$el_tag_name:b["$tag_name"]}))}}}return h}function ix(e,t,r,n){var i="";return mx(e,t,r,n)&&e.childNodes&&e.childNodes.length&&wk.each(e.childNodes,function(e){lx(e)&&e.textContent&&(i+=wk.trim(e.textContent).split(/(\s+)/).filter(gx).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),wk.trim(i)}function ox(e){for(var t=e.target,r=e["composedPath"](),n=0;n<r.length;n++){var i=r[n];if(ux(i,"a")||ux(i,"button")||ux(i,"input")||ux(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}function sx(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(CA){return ZS.critical("Error while checking element in allowElementCallback",CA),!1}if(!n.length)return!0;for(var i=0;i<n.length;i++){var o=n[i];try{if(e["matches"](o))return!0}catch(CA){ZS.critical("Error while checking selector: "+o,CA)}}return!1}function ax(e,t,r,n){var i;if(r)try{if(r(e,t))return!0}catch(CA){return ZS.critical("Error while checking element in blockElementCallback",CA),!0}if(n&&n.length)for(i=0;i<n.length;i++){var o=n[i];try{if(e["matches"](o))return!0}catch(CA){ZS.critical("Error while checking selector: "+o,CA)}}var s=QS(e);for(i=0;i<$S.length;i++)if(s[$S[i]])return!0;return!1}function cx(e){return e&&1===e.nodeType}function ux(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function lx(e){return e&&3===e.nodeType}function hx(){try{var e=uk.createElement("div");return!!e["matches"]}catch(CA){return!1}}function dx(){return"undefined"!==typeof WeakSet}function px(e,t){if(!e||ux(e,"html")||!cx(e))return!1;var r=e.tagName.toLowerCase();switch(r){case"form":return t.type===FS;case"input":return-1===["button","submit"].indexOf(e.getAttribute("type"))?t.type===IS:t.type===TS;case"select":case"textarea":return t.type===IS;default:return t.type===TS}}function fx(e){var t=(e.name||e.id||"").toString().toLowerCase();if("string"===typeof t){var r=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(r.test(t.replace(/[^a-zA-Z0-9]/g,"")))return!0}return!1}function mx(e,t,r,n){var i;if(!sx(e,t,r,n))return!1;for(var o=e;o.parentNode&&!ux(o,"body");o=o.parentNode){var s=QS(o);for(i=0;i<WS.length;i++)if(s[WS[i]])return!1}var a=QS(e);for(i=0;i<HS.length;i++)if(a[HS[i]])return!0;if(ux(e,"input")||ux(e,"select")||ux(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var c=e.type||"";if("string"===typeof c)switch(c.toLowerCase()){case"hidden":return!1;case"password":return!1}return!fx(e)}function gx(e){if(null===e||wk.isUndefined(e))return!1;if("string"===typeof e){e=wk.trim(e);var t=/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/;if(t.test((e||"").replace(/[- ]/g,"")))return!1;var r=/(^\d{3}-?\d{2}-?\d{4}$)/;if(r.test(e))return!1}return!0}function vx(e){var t="onscrollend"in Oi,r=Sk(e),n=BS;if(!t){var i=null,o=100;r=Sk(function(){clearTimeout(i),i=setTimeout(e,o)}),n=NS}return{listener:r,eventType:n}}function yx(e){for(var t=0;t<GS.length;t++)if(e.hasAttribute(GS[t]))return!0;return!1}function wx(e){var t=e.getAttribute("role");if(!t)return!1;var r=t.trim().split(/\s+/)[0].toLowerCase();return YS[r]}function bx(e){var t=e.tagName.toLowerCase();return"button"===t||"input"===t||"select"===t||"textarea"===t||"details"===t||"dialog"===t||(!!e.isContentEditable||(!!(e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend)||(!!yx(e)||(!!wx(e)||(!("a"!==t||!e.hasAttribute("href"))||!!e.hasAttribute("tabindex"))))))}function _x(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(XS[t])return!0;if(bx(e))return!1;var r=e.parentElement,n=0;while(r&&n<KS){if(bx(r))return!1;if(r.getRootNode&&r.getRootNode()!==uk){var i=r.getRootNode();if(i.host&&bx(i.host))return!1}r=r.parentElement,n++}return!!JS[t]}function kx(e){return"composedPath"in e?e["composedPath"]():[]}function Sx(e){var t=kx(e);return t&&t.length>0?t[0]:e["target"]||e["srcElement"]}var xx=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",Cx="data-rr-is-password",Ex=["password","email","tel","hidden"];function Ax(e){return e?Array.isArray(e)?e:[e]:[]}function Ox(e){var t={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},r=e.get_config("record_mask_input_selector"),n=e.get_config("record_unmask_input_selector"),i=e.get_config("record_mask_all_inputs");t.input.maskingSelector=Ax(r).join(","),t.input.unmaskingSelector=Ax(n).join(","),void 0!==i&&(t.input.maskAll=i);var o=e.get_config("record_mask_text_selector"),s=e.get_config("record_unmask_text_selector"),a=e.get_config("record_mask_all_text"),c=e.get_config("record_mask_text_class"),u=Ax(o);if(c)if(c instanceof RegExp)t.text._legacyClassRegex=c;else{var l="."+c;-1===u.indexOf(l)&&u.push(l)}return t.text.maskingSelector=u.join(","),t.text.unmaskingSelector=Ax(s).join(","),void 0===a&&void 0!==o?t.text.maskAll=!1:void 0!==a&&(t.text.maskAll=a),t}function Ix(e,t){return!!t&&!!e.closest(t)}function Tx(e,t){var r=(e.getAttribute("type")||"").toLowerCase();if(-1!==Ex.indexOf(r))return!0;var n=(e.getAttribute("autocomplete")||"").toLowerCase();return!(!n||""===n||"off"===n)||(!!e.hasAttribute(Cx)||(!!fx(e)||(t.input.maskAll?!Ix(e,t.input.unmaskingSelector):!!Ix(e,t.input.maskingSelector)||!!Ix(e,xx))))}function Mx(e,t){return!!e&&(!(!t.text._legacyClassRegex||!_v(e,t.text._legacyClassRegex))||(t.text.maskAll?!Ix(e,t.text.unmaskingSelector):!!Ix(e,t.text.maskingSelector)||!!Ix(e,xx)))}var Rx=kk("network-plugin");function Px(e){return Math.round(Date.now()-e.performance.now())}var Dx={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],ignoreRequestFn:function(){return!1},recordHeaders:{request:[],response:[]},recordBodyUrls:{request:[],response:[]},recordInitialRequests:!1};function Lx(e){return"navigation"===e.entryType}function Bx(e){return"resource"===e.entryType}function Nx(e,t){for(var r=e.length,n=r-1;n>=0;n-=1)if(t(e[n]))return e[n]}function jx(e,t,r){if(!(t in e)||"function"!==typeof e[t])return function(){};var n=e[t],i=r(n);return e[t]=i,function(){e[t]=n}}var Fx=1048576;function Ux(e){return e&&"string"===typeof e&&e.length>Fx?(Rx.error("Body truncated from "+e.length+" to "+Fx+" characters"),e.substring(0,Fx)+"... [truncated]"):e}function zx(e,t,r){if(!t.PerformanceObserver)return Rx.error("PerformanceObserver not supported"),function(){};if(r.recordInitialRequests){var n=t.performance.getEntries().filter(function(e){return Lx(e)||Bx(e)&&r.initiatorTypes.includes(e.initiatorType)});e({requests:n.map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:Px(t)}}),isInitial:!0})}var i=new t.PerformanceObserver(function(n){var i=n.getEntries().filter(function(e){return Bx(e)&&r.initiatorTypes.includes(e.initiatorType)&&"xmlhttprequest"!==e.initiatorType&&"fetch"!==e.initiatorType});e({requests:i.map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:Px(t)}})})});return i.observe({entryTypes:["navigation","resource"]}),function(){i.disconnect()}}function qx(e,t,r){return!(!t[e]||0===t[e].length)&&t[e].includes(r.toLowerCase())}function Hx(e,t,r){return!(!t[e]||0===t[e].length)&&Wk(r,t[e])}function $x(e){if(null===e||void 0===e)return null;var t;if("string"===typeof e)t=e;else if(e instanceof Document)t=e.textContent;else if(e instanceof FormData)t=wk.HTTPBuildQuery(e);else{if(!wk.isObject(e))return"Cannot read body of type "+typeof e;try{t=JSON.stringify(e)}catch(r){return"Failed to stringify response object"}}return Ux(t)}function Wx(e){return new Promise(function(t){var r=setTimeout(function(){t("Timeout while trying to read body")},500);try{e.clone().text().then(function(e){clearTimeout(r),t(Ux(e))},function(e){clearTimeout(r),t("Failed to read body: "+String(e))})}catch(n){clearTimeout(r),t("Failed to read body: "+String(n))}})}function Vx(e,t,r,n,i,o){if(void 0===o&&(o=0),o>10)return Rx.error("Cannot find performance entry"),Promise.resolve(null);var s=e.performance.getEntriesByName(r),a=Nx(s,function(e){return Bx(e)&&e.initiatorType===t&&(!n||e.startTime>=n)&&(!i||e.startTime<=i)});return a?Promise.resolve(a):new Promise(function(e){setTimeout(e,50*o)}).then(function(){return Vx(e,t,r,n,i,o+1)})}function Yx(e,t,r){if(!r.initiatorTypes.includes("xmlhttprequest"))return function(){};var n=jx(t.XMLHttpRequest.prototype,"open",function(n){return function(i,o,s,a,c){void 0===s&&(s=!0);var u,l,h=this,d=new Request(o,{method:i}),p={},f={},m=h.setRequestHeader.bind(h);h.setRequestHeader=function(e,t){return qx("request",r.recordHeaders,e)&&(f[e]=t),m(e,t)},p.requestHeaders=f;var g=h.send.bind(h);h.send=function(e){return Hx("request",r.recordBodyUrls,d.url)&&(p.requestBody=$x(e)),u=t.performance.now(),g(e)},h.addEventListener("readystatechange",function(){if(h.readyState===h.DONE){l=t.performance.now();var n={},i=h.getAllResponseHeaders();if(i){var o=i.trim().split(/[\r\n]+/);o.forEach(function(e){if(e){var t=e.indexOf(": ");if(-1!==t){var i=e.substring(0,t),o=e.substring(t+2);i&&qx("response",r.recordHeaders,i)&&(n[i]=o)}}})}p.responseHeaders=n,Hx("response",r.recordBodyUrls,d.url)&&(p.responseBody=$x(h.response)),Vx(t,"xmlhttprequest",d.url,u,l).then(function(r){if(r){var n={url:r.name,method:d.method,initiatorType:r.initiatorType,status:h.status,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:Px(t),requestHeaders:p.requestHeaders,requestBody:p.requestBody,responseHeaders:p.responseHeaders,responseBody:p.responseBody};e({requests:[n]})}else Rx.error("Failed to get performance entry for XHR request to "+d.url)}).catch(function(e){Rx.error("Error recording XHR request to "+d.url+": "+String(e))})}}),n.call(h,i,o,s,a,c)}});return function(){n()}}function Xx(e,t,r){if(!r.initiatorTypes.includes("fetch"))return function(){};var n=jx(t,"fetch",function(n){return function(){var i,o,s,a,c=new Request(arguments[0],arguments[1]),u={},l=Promise.resolve(void 0),h=Promise.resolve(void 0);try{var d={};c.headers.forEach(function(e,t){qx("request",r.recordHeaders,t)&&(d[t]=e)}),u.requestHeaders=d,Hx("request",r.recordBodyUrls,c.url)&&(l=Wx(c).then(function(e){u.requestBody=e})),o=t.performance.now(),a=n.apply(t,arguments).then(function(e){i=e,s=t.performance.now();var n={};return i.headers.forEach(function(e,t){qx("response",r.recordHeaders,t)&&(n[t]=e)}),u.responseHeaders=n,Hx("response",r.recordBodyUrls,c.url)&&(h=Wx(i).then(function(e){u.responseBody=e})),i})}catch(p){a=Promise.reject(p)}return Promise.all([l,h,a]).then(function(){return Vx(t,"fetch",c.url,o,s)}).then(function(r){if(r){var n={url:r.name,method:c.method,initiatorType:r.initiatorType,status:i?i.status:void 0,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:Px(t),requestHeaders:u.requestHeaders,requestBody:u.requestBody,responseHeaders:u.responseHeaders,responseBody:u.responseBody};e({requests:[n]})}else Rx.error("Failed to get performance entry for fetch request to "+c.url)}).catch(function(e){Rx.error("Error recording fetch request to "+c.url+": "+String(e))}),a}});return function(){n()}}function Jx(e,t,r){if(!("performance"in t))return function(){};var n=Object.assign({},Dx.recordHeaders,r.recordHeaders||{}),i=Object.assign({},Dx.recordBodyUrls,r.recordBodyUrls||{});r=Object.assign({},r,{recordHeaders:n,recordBodyUrls:i});var o=Object.assign({},Dx,r),s=function(t){var r=t.requests.filter(function(e){var t=Wk(e.url,o.ignoreRequestUrls||[]);return!t&&!o.ignoreRequestFn(e)});(r.length>0||t.isInitial)&&e(Object.assign({},t,{requests:r}))},a=zx(s,t,o),c=Yx(s,t,o),u=Xx(s,t,o);return function(){a(),c(),u()}}var Gx="rrweb/network@1.mp",Kx=function(e){return{name:Gx,observer:Jx,options:e}},Zx=kk("recorder"),Qx=Oi["CompressionStream"],eC={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},tC=new Set([Am.MouseMove,Am.MouseInteraction,Am.Scroll,Am.ViewportResize,Am.Input,Am.TouchMove,Am.MediaInteraction,Am.Drag,Am.Selection]);function rC(e){return e.type===Em.IncrementalSnapshot&&tC.has(e.data.source)}var nC=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||$k,this._onMaxLengthReached=e.onMaxLengthReached||$k,this._onBatchSent=e.onBatchSent||$k,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.lastEventTimestamp=e.lastEventTimestamp||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=Q_,this.recordMinMs=0;var t=Ok(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new eS(Gk),this.batcher=new CS(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:eC,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:AS,sharedLockTimeoutMS:1e4})};nC.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(e["$device_id"]=t);var r=this._mixpanel.get_property("$user_id");return r&&(e["$user_id"]=r),e},nC.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch(function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}.bind(this)).then(function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))}.bind(this))},nC.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},nC.prototype.get_config=function(e){return this.getConfig(e)},nC.prototype.startRecording=function(e){if(null!==this._rrwebRecord)if(null===this._stopRecording){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>Q_&&(this.recordMaxMs=Q_,Zx.critical("record_max_ms cannot be greater than "+Q_+"ms. Capping value.")),this.maxExpires||(this.maxExpires=(new Date).getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=(new Date).getTime(),this.batchStartUrl=wk.info.currentUrl(),this.replayStartUrl=wk.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=(new Date).getTime()+e}.bind(this);t();var r=this.getConfig("record_block_selector");""!==r&&null!==r||(r=void 0);var n=Ox(this._mixpanel),i=[];if(this.getConfig("record_network")){var o=this.getConfig("record_network_options")||{},s=(o.ignoreRequestUrls||[]).slice();s.push(this._getApiRoute()),o.ignoreRequestUrls=s,i.push(Kx(o))}this.getConfig("record_console")&&i.push(N_({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}));var a=OS(this.getConfig("record_allowed_iframe_origins"),Zx);try{this._stopRecording=this._rrwebRecord({emit:function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(rC(e)&&(this.batcher.stopped&&(new Date).getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(null===this.lastEventTimestamp||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp))}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(Tx,n),maskTextFn:this._getMaskFn(Mx,n),recordCrossOriginIframes:a.length>0,allowedIframeOrigins:a,recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:i})}catch(CA){this.reportError("Unexpected error when starting rrweb recording.",CA)}if("function"!==typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();var c=this.maxExpires-(new Date).getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),c)}else Zx.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},nC.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(CA){this.reportError("Error with rrweb stopRecording",CA)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},nC.prototype.isRrwebStopped=function(){return null===this._stopRecording},nC.prototype.flushEventsWithOptOut=function(e,t,r){var n=function(e){0===e&&(this.stopRecording(),r({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(e,t,r,n)},nC.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},nC.deserialize=function(e,t){var r=new nC(wk.extend({},t,{replayId:e["replayId"],batchStartUrl:e["batchStartUrl"],replayStartUrl:e["replayStartUrl"],idleExpires:e["idleExpires"],maxExpires:e["maxExpires"],replayStartTime:e["replayStartTime"],lastEventTimestamp:e["lastEventTimestamp"],seqNo:e["seqNo"],sharedLockStorage:t.sharedLockStorage}));return r},nC.prototype._getApiRoute=function(){return this.getConfig("api_routes")["record"]},nC.prototype._sendRequest=function(e,t,r,n){var i=function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=wk.info.currentUrl()),this._onBatchSent(),n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}.bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");Oi["fetch"](o+"/"+this._getApiRoute()+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then(function(e){e.json().then(function(t){i(e,t)}).catch(function(e){n({error:e})})}).catch(function(e){n({error:e,httpStatusCode:0})})},nC.prototype._flushEvents=sS(function(e,t,r){var n=e.length;if(n>0){for(var i=this.replayId,o=1/0,s=-1/0,a=!1,c=0;c<n;c++)o=Math.min(o,e[c].timestamp),s=Math.max(s,e[c].timestamp),e[c].type===Em.FullSnapshot&&(a=!0);if(0===this.seqNo){if(!a)return r({error:"First batch does not contain a full snapshot. Aborting recording."}),void this.stopRecording(!0);this.replayStartTime=o}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=o);var u=s-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:Mi.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:i,replay_length_ms:u,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},h=JSON.stringify(e);if(Object.assign(l,this.getUserIdInfo()),Xk(dk,ck.vendor,lk)){var d=new Blob([h],{type:"application/json"}).stream(),p=d.pipeThrough(new Qx("gzip"));new Response(p).blob().then(function(e){l["format"]="gzip",this._sendRequest(i,l,e,r)}.bind(this))}else l["format"]="body",this._sendRequest(i,l,h,r)}}),nC.prototype.reportError=function(e,t){Zx.error.apply(Zx.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(t){Zx.error(t)}},nC.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?(new Date).getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},nC.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>ek?(Zx.critical("record_min_ms cannot be greater than "+ek+"ms. Capping value."),ek):e},nC.prototype._getMaskFn=function(e,t){return function(r,n){if(!r.trim().length)return"";var i=!0;try{i=e(n,t)}catch(CA){this.reportError("Error checking if text should be masked, defaulting to masked",CA)}if(i){var o=Math.min(r.length,1e4);return"*".repeat(o)}return r}.bind(this)};var iC=function(e){this.idb=new eS(Kk),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};iC.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},iC.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},iC.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return K_.resolve();var t=e["tabId"];return t?this.idb.init().then(function(){return this.idb.setItem(t,e)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),K_.resolve())},iC.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(e){return ES(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):K_.resolve(null)},iC.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},iC.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(e){if(e)return e["maxExpires"]=0,this.setActiveRecording(e)}.bind(this)).catch(this.handleError.bind(this))},iC.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):K_.resolve()},iC.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(e){var t=e.filter(function(e){return ES(e)}).map(function(e){var t=nC.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return t.unloadPersistedData().then(function(){return this.idb.removeItem(e["tabId"])}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return K_.all(t)}.bind(this)).catch(this.handleError.bind(this)):K_.resolve([])};var oC=kk("recorder"),sC=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||Kg,this.sharedLockStorage=r,this.recordingRegistry=new iC({mixpanelInstance:this.mixpanelInstance,errorReporter:oC.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};function aC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}sC.prototype.startRecording=function(e){if(e=e||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=function(){oC.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),r=function(){oC.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),n=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this["__flushPromise"]=this.activeRecording.batcher._flushPromise}.bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:n,onIdleTimeout:t,onMaxLengthReached:r,replayId:wk.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=nC.deserialize(e.activeSerializedRecording,i):this.activeRecording=new nC(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}oC.log("Recording already in progress, skipping startRecording.")},sC.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then(function(){return this.recordingRegistry.clearActiveRecording()}.bind(this)).then(function(){this.stopRecordingInProgress=!1}.bind(this))},sC.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},sC.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return K_.resolve()},sC.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),K_.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(oC.log("No resumable recording found."),null)}.bind(this))},sC.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},sC.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},sC.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(sC.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),Oi[Pi]=sC;var cC,uC={exports:{}};uC.exports;function lC(){return cC||(cC=1,function(e){(function(t,r){e.exports=r()})(0,function(){function e(e){for(var t=[],r=0,n=e.length;r<n;r++)-1===t.indexOf(e[r])&&t.push(e[r]);return t}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var t={},r={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,r){return void 0===r?e<t:e<t&&t<r},"<=":function(e,t,r){return void 0===r?e<=t:e<=t&&t<=r},"!!":function(e){return t.truthy(e)},"!":function(e){return!t.truthy(e)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!(!t||"undefined"===typeof t.indexOf)&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,r){if(r<0){var n=String(e).substr(t);return n.substr(0,n.length+r)}return String(e).substr(t,r)},"+":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)+parseFloat(t,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)*parseFloat(t,10)})},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(e,t){return e.concat(t)},[])},var:function(e,t){var r=void 0===t?null:t,n=this;if("undefined"===typeof e||""===e||null===e)return n;for(var i=String(e).split("."),o=0;o<i.length;o++){if(null===n||void 0===n)return r;if(n=n[i[o]],void 0===n)return r}return n},missing:function(){for(var e=[],r=Array.isArray(arguments[0])?arguments[0]:arguments,n=0;n<r.length;n++){var i=r[n],o=t.apply({var:i},this);null!==o&&""!==o||e.push(i)}return e},missing_some:function(e,r){var n=t.apply({missing:r},this);return r.length-n.length>=e?[]:n}};return t.is_logic=function(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},t.truthy=function(e){return(!Array.isArray(e)||0!==e.length)&&!!e},t.get_operator=function(e){return Object.keys(e)[0]},t.get_values=function(e){return e[t.get_operator(e)]},t.apply=function(e,n){if(Array.isArray(e))return e.map(function(e){return t.apply(e,n)});if(!t.is_logic(e))return e;var i,o,s,a,c,u=t.get_operator(e),l=e[u];if(Array.isArray(l)||(l=[l]),"if"===u||"?:"==u){for(i=0;i<l.length-1;i+=2)if(t.truthy(t.apply(l[i],n)))return t.apply(l[i+1],n);return l.length===i+1?t.apply(l[i],n):null}if("and"===u){for(i=0;i<l.length;i+=1)if(o=t.apply(l[i],n),!t.truthy(o))return o;return o}if("or"===u){for(i=0;i<l.length;i+=1)if(o=t.apply(l[i],n),t.truthy(o))return o;return o}if("filter"===u)return a=t.apply(l[0],n),s=l[1],Array.isArray(a)?a.filter(function(e){return t.truthy(t.apply(s,e))}):[];if("map"===u)return a=t.apply(l[0],n),s=l[1],Array.isArray(a)?a.map(function(e){return t.apply(s,e)}):[];if("reduce"===u)return a=t.apply(l[0],n),s=l[1],c="undefined"!==typeof l[2]?t.apply(l[2],n):null,Array.isArray(a)?a.reduce(function(e,r){return t.apply(s,{current:r,accumulator:e})},c):c;if("all"===u){if(a=t.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(!t.truthy(t.apply(s,a[i])))return!1;return!0}if("none"===u){if(a=t.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!0;for(i=0;i<a.length;i+=1)if(t.truthy(t.apply(s,a[i])))return!1;return!0}if("some"===u){if(a=t.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(t.truthy(t.apply(s,a[i])))return!0;return!1}if(l=l.map(function(e){return t.apply(e,n)}),r.hasOwnProperty(u)&&"function"===typeof r[u])return r[u].apply(n,l);if(u.indexOf(".")>0){var h=String(u).split("."),d=r;for(i=0;i<h.length;i++){if(!d.hasOwnProperty(h[i]))throw new Error("Unrecognized operation "+u+" (failed at "+h.slice(0,i+1).join(".")+")");d=d[h[i]]}return d.apply(n,l)}throw new Error("Unrecognized operation "+u)},t.uses_data=function(r){var n=[];if(t.is_logic(r)){var i=t.get_operator(r),o=r[i];Array.isArray(o)||(o=[o]),"var"===i?n.push(o[0]):o.forEach(function(e){n.push.apply(n,t.uses_data(e))})}return e(n)},t.add_operation=function(e,t){r[e]=t},t.rm_operation=function(e){delete r[e]},t.rule_like=function(e,r){if(r===e)return!0;if("@"===r)return!0;if("number"===r)return"number"===typeof e;if("string"===r)return"string"===typeof e;if("array"===r)return Array.isArray(e)&&!t.is_logic(e);if(t.is_logic(r)){if(t.is_logic(e)){var n=t.get_operator(r),i=t.get_operator(e);if("@"===n||n===i)return t.rule_like(t.get_values(e,!1),t.get_values(r,!1))}return!1}if(Array.isArray(r)){if(Array.isArray(e)){if(r.length!==e.length)return!1;for(var o=0;o<r.length;o+=1)if(!t.rule_like(e[o],r[o]))return!1;return!0}return!1}return!1},t})}(uC)),uC.exports}var hC=lC(),dC=aC(hC),pC=function(e,t,r){if(e!==r.event_name)return{matches:!1};var n=r.property_filters,i=!0;if(n&&!wk.isEmptyObject(n))try{i=dC.apply(n,t||{})}catch(o){return{matches:!1,error:o.toString()}}return{matches:i}},fC={};fC["eventMatchesCriteria"]=pC,Oi[Ri]=Promise.resolve(fC);var mC=30,gC=1e3,vC=4,yC=!1;function wC(){this.clicks=[]}function bC(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}wC.prototype.isRageClick=function(e,t){t=t||{};var r=t["threshold_px"]||mC,n=t["timeout_ms"]||gC,i=t["click_count"]||vC,o=t["interactive_elements_only"]||yC;if(o){var s=Sx(e);if(!s||_x(s))return!1}var a=Date.now(),c=e["pageX"],u=e["pageY"],l=this.clicks[this.clicks.length-1];if(l&&a-l.timestamp<n&&Math.sqrt(Math.pow(c-l.x,2)+Math.pow(u-l.y,2))<r){if(this.clicks.push({x:c,y:u,timestamp:a}),this.clicks.length>=i)return this.clicks=[],!0}else this.clicks=[{x:c,y:u,timestamp:a}];return!1},bC.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return Sx(e)},bC.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=kx(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},bC.prototype.observeShadowRoot=function(e){if(this.observedShadowRoots&&!this.observedShadowRoots.has(e)){var t=this;try{this.observedShadowRoots.add(e);var r=new window.MutationObserver(function(){t.changeCallback()});r.observe(e,this.observerConfig),this.shadowObservers.push(r)}catch(n){ZS.critical("Error while observing shadow root",n)}}},bC.prototype.start=function(){this.observedShadowRoots||(dx()?this.observedShadowRoots=new WeakSet:ZS.critical("Shadow DOM observation unavailable: WeakSet not supported"))},bC.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(t){ZS.critical("Error while disconnecting shadow DOM observer",t)}this.shadowObservers=[],this.observedShadowRoots=null}};var _C=500,kC=[IS,RS,FS,jS,US],SC=[BS],xC=[MS],CC={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function EC(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}EC.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e["target"]||e["srcElement"]),!(!t||_x(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},EC.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},EC.prototype.getDeadClicks=function(e){if(0===this.pendingClicks.length)return[];var t=e["timeout_ms"],r=Date.now(),n=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],o=0;o<n.length;o++){var s=n[o];r-s.timestamp>=t?this.hasChangesAfter(s.timestamp)||i.push(s):this.pendingClicks.push(s)}return i},EC.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},EC.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},EC.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},EC.prototype.processRecursively=function(e){if(this.isTracking&&this.onDeadClickCallback){var t=e["timeout_ms"],r=this;this.processingTimeout=setTimeout(function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n<t.length;n++)r.onDeadClickCallback(t[n].event);r.pendingClicks.length>0?r.processRecursively(e):r.processingActive=!1}},t)}else this.processingActive=!1},EC.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;kC.forEach(function(t){var r=function(){e.recordChangeEvent()};document.addEventListener(t,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:r,options:{capture:!0,passive:!0}})}),xC.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),SC.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:r,options:{passive:!0}})});var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,CC)}catch(r){ZS.critical("Error while setting up mutation observer",r)}if(window.customElements)try{this.shadowDOMObserver=new bC(function(){e.recordChangeEvent()},CC),this.shadowDOMObserver.start()}catch(r){ZS.critical("Error while setting up shadow DOM observer",r),this.shadowDOMObserver=null}}},EC.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(r){ZS.critical("Error while removing event listener",r)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(r){ZS.critical("Error while disconnecting mutation observer",r)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(r){ZS.critical("Error while stopping shadow DOM observer",r)}this.shadowDOMObserver=null}}};var AC="autocapture",OC="track_pageview",IC="full-url",TC="url-with-path-and-query-string",MC="url-with-path",RC="allow_element_callback",PC="allow_selectors",DC="allow_url_regexes",LC="block_attrs",BC="block_element_callback",NC="block_selectors",jC="block_url_regexes",FC="capture_extra_attrs",UC="capture_text_content",zC="scroll_capture_all",qC="scroll_depth_percent_checkpoints",HC="click",$C="dead_click",WC="input",VC="pageview",YC="rage_click",XC="scroll",JC="page_leave",GC="submit",KC={};KC[PC]=[],KC[DC]=[],KC[LC]=[],KC[BC]=null,KC[NC]=[],KC[jC]=[],KC[FC]=[],KC[UC]=!1,KC[zC]=!1,KC[qC]=[25,50,75,100],KC[HC]=!0,KC[$C]=!0,KC[WC]=!0,KC[VC]=IC,KC[YC]=!0,KC[XC]=!0,KC[JC]=!1,KC[GC]=!0;var ZC={$mp_autocapture:!0},QC="$mp_click",eE="$mp_dead_click",tE="$mp_input_change",rE="$mp_rage_click",nE="$mp_scroll",iE="$mp_submit",oE="$mp_page_leave",sE=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};sE.prototype.init=function(){hx()?(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking()):ZS.critical("Autocapture unavailable: missing required DOM APIs")},sE.prototype.getFullConfig=function(){var e=this.mp.get_config(AC);return e?wk.isObject(e)?wk.extend({},KC,e):KC:{}},sE.prototype.getConfig=function(e){return this.getFullConfig()[e]},sE.prototype.currentUrlBlocked=function(){var e=wk.info.currentUrl(),t=this.getConfig(DC)||[];if(t.length)try{return!Wk(e,t)}catch(CA){return ZS.critical("Error while checking block URL regexes: ",CA),!0}var r=this.getConfig(jC)||[];if(!r||!r.length)return!1;try{return Wk(e,r)}catch(CA){return ZS.critical("Error while checking block URL regexes: ",CA),!0}},sE.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(AC)?this.getConfig(VC):this.mp.get_config(OC)},sE.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===QC&&!this.getConfig(HC)||t===rE&&!this._getClickTrackingConfig(YC)||t===eE&&!this._getClickTrackingConfig($C)),n=nx(e,{allowElementCallback:this.getConfig(RC),allowSelectors:this.getConfig(PC),blockAttrs:this.getConfig(LC),blockElementCallback:this.getConfig(BC),blockSelectors:this.getConfig(NC),captureExtraAttrs:this.getConfig(FC),captureTextContent:this.getConfig(UC),capturedForHeatMap:r});n&&(wk.extend(n,ZC),this.mp.track(t,n))}},sE.prototype.initPageListeners=function(){if(Oi.removeEventListener(LS,this.listenerPopstate),Oi.removeEventListener(MS,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(JC)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){Oi.dispatchEvent(new Event(DS))},this.listenerHashchange=function(){Oi.dispatchEvent(new Event(DS))},Oi.addEventListener(LS,this.listenerPopstate),Oi.addEventListener(MS,this.listenerHashchange);var e=Oi.history.pushState;"function"===typeof e&&(Oi.history.pushState=function(t,r,n){e.call(Oi.history,t,r,n),Oi.dispatchEvent(new Event(DS))});var t=Oi.history.replaceState;"function"===typeof t&&(Oi.history.replaceState=function(e,r,n){t.call(Oi.history,e,r,n),Oi.dispatchEvent(new Event(DS))})}},sE.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"===typeof t?t:{}:null},sE.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(JC)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var n=Math.max(uk.documentElement.clientHeight,Oi.innerHeight||0),i=Math.round(Math.max(this.maxScrollViewDepth-n,0)/(r-n)*100),o=Math.round(n/r*100);r<=n&&(i=100,o=100);var s=wk.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:i,$fold_line_percentage:o,$scroll_height:r,$event_type:e.type,$current_url:t||wk.info.currentUrl(),$viewportHeight:n,$viewportWidth:Math.max(uk.documentElement.clientWidth,Oi.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},ZC);this.mp.track(oE,s,{transport:"sendBeacon"})}},sE.prototype._initScrollDepthTracking=function(){if(Oi.removeEventListener(NS,this.listenerScrollDepth),Oi.removeEventListener(BS,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){ZS.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(uk.documentElement.clientHeight,Oi.innerHeight||0);var e=function(){if(!this.currentUrlBlocked()){var e=Math.max(uk.documentElement.clientHeight,Oi.innerHeight||0)+Oi.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=uk.body.scrollHeight}}.bind(this),t=vx(e);this.listenerScrollDepth=t.listener,Oi.addEventListener(t.eventType,this.listenerScrollDepth)}},sE.prototype.initClickTracking=function(){Oi.removeEventListener(TS,this.listenerClick),(this.getConfig(HC)||this.mp.get_config("record_heatmap_data"))&&(ZS.log("Initializing click tracking"),this.listenerClick=function(e){(this.getConfig(HC)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,QC)}.bind(this),Oi.addEventListener(TS,this.listenerClick))},sE.prototype.initDeadClickTracking=function(){var e=this._getClickTrackingConfig($C);e||this.mp.get_config("record_heatmap_data")?(ZS.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new EC(function(e){this.trackDomEvent(e,eE)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig($C);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r["timeout_ms"]||(r["timeout_ms"]=_C),this._deadClickTracker.trackClick(e,r)}}.bind(this),Oi.addEventListener(TS,this.listenerDeadClick))):this.stopDeadClickTracking()},sE.prototype.initInputTracking=function(){Oi.removeEventListener(IS,this.listenerChange),this.getConfig(WC)&&(ZS.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(WC)&&this.trackDomEvent(e,tE)}.bind(this),Oi.addEventListener(IS,this.listenerChange))},sE.prototype.initPageviewTracking=function(){if(Oi.removeEventListener(DS,this.listenerLocationchange),this.pageviewTrackingConfig()){ZS.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(ZC)),t&&(e=wk.info.currentUrl()),this.listenerLocationchange=Sk(function(){if(!this.currentUrlBlocked()){var t=wk.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();if(i===IC?r=t!==e:i===TC?r=t.split("#")[0]!==e.split("#")[0]:i===MC&&(r=n),r){var o=this.mp.track_pageview(ZC);o&&(e=t),n&&(this.lastScrollCheckpoint=0,ZS.log("Path change: re-initializing scroll depth checkpoints"))}}}.bind(this)),Oi.addEventListener(DS,this.listenerLocationchange)}},sE.prototype.initRageClickTracking=function(){Oi.removeEventListener(TS,this.listenerRageClick);var e=this._getClickTrackingConfig(YC);(e||this.mp.get_config("record_heatmap_data"))&&(ZS.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new wC),this.listenerRageClick=function(e){var t=this._getClickTrackingConfig(YC);(t||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,rE))}.bind(this),Oi.addEventListener(TS,this.listenerRageClick))},sE.prototype.initScrollTracking=function(){if(Oi.removeEventListener(BS,this.listenerScroll),Oi.removeEventListener(NS,this.listenerScroll),this.getConfig(XC)){ZS.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=function(){if(this.getConfig(XC)&&!this.currentUrlBlocked()){var e=this.getConfig(zC),t=(this.getConfig(qC)||[]).slice().sort(function(e,t){return e-t}),r=Oi.scrollY,n=wk.extend({$scroll_top:r},ZC);try{var i=uk.body.scrollHeight,o=Math.round(r/(i-Oi.innerHeight)*100);if(n["$scroll_height"]=i,n["$scroll_percentage"]=o,o>this.lastScrollCheckpoint)for(var s=0;s<t.length;s++){var a=t[s];o>=a&&this.lastScrollCheckpoint<a&&(n["$scroll_checkpoint"]=a,this.lastScrollCheckpoint=a,e=!0)}}catch(CA){ZS.critical("Error while calculating scroll percentage",CA)}e&&this.mp.track(nE,n)}}.bind(this),t=vx(e);this.listenerScroll=t.listener,Oi.addEventListener(t.eventType,this.listenerScroll)}},sE.prototype.initSubmitTracking=function(){Oi.removeEventListener(FS,this.listenerSubmit),this.getConfig(GC)&&(ZS.log("Initializing submit tracking"),this.listenerSubmit=function(e){this.getConfig(GC)&&this.trackDomEvent(e,iE)}.bind(this),Oi.addEventListener(FS,this.listenerSubmit))},sE.prototype.initPageLeaveTracking=function(){if(uk.removeEventListener(zS,this.listenerPageLeaveVisibilitychange),Oi.removeEventListener(DS,this.listenerPageLeaveLocationchange),Oi.removeEventListener(PS,this.listenerPageLoad),this.getConfig(JC)||this.mp.get_config("record_heatmap_data")){ZS.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=wk.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=uk.body.scrollHeight}.bind(this),Oi.addEventListener(PS,this.listenerPageLoad),this.listenerPageLeaveLocationchange=Sk(function(t){if(!this.currentUrlBlocked()){var r=wk.info.currentUrl(),n=r!==e;n&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(uk.documentElement.clientHeight,Oi.innerHeight||0),this.previousScrollHeight=uk.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),Oi.addEventListener(DS,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(t){uk.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}.bind(this),uk.addEventListener(zS,this.listenerPageLeaveVisibilitychange)}},sE.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(Oi.removeEventListener(TS,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},xk(sE);var aE=function(e,t){return Oi[Ri]&&"function"===typeof Oi[Ri].then||(Oi[Ri]=new Promise(function(r){e(t,r)}).then(function(){var e=Oi[Ri];if(e&&"function"===typeof e.then)return e;throw new Error("targeting failed to load")}).catch(function(e){throw delete Oi[Ri],e})),Oi[Ri]},cE=kk("flags"),uE="flags",lE="context",hE={};hE[lE]={};var dE=function(e,t){return e+":"+t},pE=function(e){return e.split(":")[0]},fE=function(e){this.fetch=Oi["fetch"],this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc,this.loadExtraBundle=e.loadExtraBundle||function(){},this.targetingSrc=e.targetingSrc||""};fE.prototype.init=function(){this.minApisSupported()?(this.flags=null,this.fetchFlags().catch(function(){cE.error("Error fetching flags during init")}),this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={}):cE.critical("Feature Flags unavailable: missing minimum required APIs")},fE.prototype.getFullConfig=function(){var e=this.getMpConfig(uE);return e?wk.isObject(e)?wk.extend({},hE,e):hE:{}},fE.prototype.getConfig=function(e){return this.getFullConfig()[e]},fE.prototype.isSystemEnabled=function(){return!!this.getMpConfig(uE)},fE.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return cE.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(uE);wk.isObject(r)||(r={});var n=t&&t["replace"]?{}:this.getConfig(lE);r[lE]=wk.extend({},n,e);var i={};return i[uE]=r,this.setMpConfig(i),this.fetchFlags().catch(function(){cE.error("Error fetching flags during updateContext")})},fE.prototype.areFlagsReady=function(){return this.isSystemEnabled()||cE.error("Feature Flags not enabled"),!!this.flags},fE.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id"),r=Fk();cE.log("Fetching flags for distinct ID: "+e);var n=wk.extend({distinct_id:e,device_id:t},this.getConfig(lE)),i=new URLSearchParams;i.set("context",JSON.stringify(n)),i.set("token",this.getMpConfig("token")),i.set("mp_lib","web"),i.set("$lib_version",Mi.LIB_VERSION);var o=this.getFullApiRoute()+"?"+i.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(Oi,o,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r}}).then(function(e){return this.markFetchComplete(),e.json()}.bind(this)).then(function(e){var t=e["flags"];if(!t)throw new Error("No flags in API response");var n=new Map,i={};wk.each(t,function(e,t){var r=!1,i=t+":";if(wk.each(this.activatedFirstTimeEvents,function(e,t){t.startsWith(i)&&(r=!0)}),r){var o=this.flags&&this.flags.get(t);o&&n.set(t,o)}else n.set(t,{key:e["variant_key"],value:e["variant_value"],experiment_id:e["experiment_id"],is_experiment_active:e["is_experiment_active"],is_qa_tester:e["is_qa_tester"]})},this);var o=e["pending_first_time_events"];o&&o.length>0&&wk.each(o,function(e){var t=e["flag_key"],r=dE(t,e["first_time_event_hash"]);this.activatedFirstTimeEvents[r]||(i[r]={flag_key:t,flag_id:e["flag_id"],project_id:e["project_id"],first_time_event_hash:e["first_time_event_hash"],event_name:e["event_name"],property_filters:e["property_filters"],pending_variant:e["pending_variant"]})},this),this.activatedFirstTimeEvents&&wk.each(this.activatedFirstTimeEvents,function(e,t){var r=pE(t);e&&!n.has(r)&&this.flags&&this.flags.has(r)&&n.set(r,this.flags.get(r))},this),this.flags=n,this.pendingFirstTimeEvents=i,this._traceparent=r,this._loadTargetingIfNeeded()}.bind(this)).catch(function(e){throw this._fetchInProgressStartTime&&this.markFetchComplete(),cE.error(e),e}.bind(this)),this.fetchPromise},fE.prototype.loadFlags=function(){return this.isSystemEnabled()?this.trackedFeatures?this._fetchInProgressStartTime?this.fetchPromise:this.fetchFlags():(cE.error("loadFlags called before init"),Promise.resolve()):Promise.resolve()},fE.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):cE.error("Fetch in progress started time not set, cannot mark fetch complete")},fE.prototype._loadTargetingIfNeeded=function(){var e=!1;wk.each(this.pendingFirstTimeEvents,function(t){t["property_filters"]&&!wk.isEmptyObject(t["property_filters"])&&(e=!0)}),e&&this.getTargeting().then(function(){cE.log("targeting loaded for property filter evaluation")})},fE.prototype.getTargeting=function(){return aE(this.loadExtraBundle.bind(this),this.targetingSrc).catch(function(e){cE.error("Failed to load targeting: "+e)}.bind(this))},fE.prototype.checkFirstTimeEvents=function(e,t){this.pendingFirstTimeEvents&&!wk.isEmptyObject(this.pendingFirstTimeEvents)&&(Oi[Ri]&&wk.isFunction(Oi[Ri].then)?Oi[Ri].then(function(r){this._processFirstTimeEventCheck(e,t,r)}.bind(this)).catch(function(){this._processFirstTimeEventCheck(e,t,null)}.bind(this)):this._processFirstTimeEventCheck(e,t,null))},fE.prototype._processFirstTimeEventCheck=function(e,t,r){wk.each(this.pendingFirstTimeEvents,function(n,i){if(!this.activatedFirstTimeEvents[i]){var o,s=n["flag_key"];if(r||!n["property_filters"]||wk.isEmptyObject(n["property_filters"])){if(r){var a={event_name:n["event_name"],property_filters:n["property_filters"]};o=r["eventMatchesCriteria"](e,t,a)}else o={matches:e===n["event_name"],error:null};if(o.error)cE.error('Error checking first-time event for flag "'+s+'": '+o.error);else if(o.matches){cE.log('First-time event matched for flag "'+s+'": '+e);var c={key:n["pending_variant"]["variant_key"],value:n["pending_variant"]["variant_value"],experiment_id:n["pending_variant"]["experiment_id"],is_experiment_active:n["pending_variant"]["is_experiment_active"]};this.flags.set(s,c),this.activatedFirstTimeEvents[i]=!0,this.recordFirstTimeEvent(n["flag_id"],n["project_id"],n["first_time_event_hash"])}}else cE.warn('Skipping event check for "'+s+'" - property filters require targeting library')}},this)},fE.prototype.getFirstTimeEventApiRoute=function(e){return this.getFullApiRoute()+"/"+e+"/first-time-events"},fE.prototype.recordFirstTimeEvent=function(e,t,r){var n=this.getMpProperty("distinct_id"),i=Fk(),o=new URLSearchParams;o.set("mp_lib","web"),o.set("$lib_version",Mi.LIB_VERSION);var s=this.getFirstTimeEventApiRoute(e)+"?"+o.toString(),a={distinct_id:n,project_id:t,first_time_event_hash:r};cE.log("Recording first-time event for flag: "+e),this.fetch.call(Oi,s,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:i},body:JSON.stringify(a)}).catch(function(t){cE.error("Failed to record first-time event for flag "+e+": "+t)})},fE.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then(function(){return this.getVariantSync(e,t)}.bind(this)).catch(function(e){return cE.error(e),t}):new Promise(function(e){cE.critical("Feature Flags not initialized"),e(t)})},fE.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return cE.log("Flags not loaded yet"),t;var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(cE.log('No flag found: "'+e+'"'),t)},fE.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e["value"]}).catch(function(e){return cE.error(e),t})},fE.prototype.getFeatureData=function(e,t){return cE.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,t)},fE.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t})["value"]},fE.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,t)}.bind(this)).catch(function(e){return cE.error(e),t})},fE.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(cE.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},fE.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t["key"],$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};"undefined"!==t["experiment_id"]&&(r["$experiment_id"]=t["experiment_id"]),"undefined"!==t["is_experiment_active"]&&(r["$is_experiment_active"]=t["is_experiment_active"]),"undefined"!==t["is_qa_tester"]&&(r["$is_qa_tester"]=t["is_qa_tester"]),this.track("$experiment_started",r)}},fE.prototype.whenReady=function(){return this.fetchPromise?this.fetchPromise:Promise.resolve()},fE.prototype.minApisSupported=function(){return!!this.fetch&&"undefined"!==typeof Promise&&"undefined"!==typeof Map&&"undefined"!==typeof Set},xk(fE),fE.prototype["are_flags_ready"]=fE.prototype.areFlagsReady,fE.prototype["get_variant"]=fE.prototype.getVariant,fE.prototype["get_variant_sync"]=fE.prototype.getVariantSync,fE.prototype["get_variant_value"]=fE.prototype.getVariantValue,fE.prototype["get_variant_value_sync"]=fE.prototype.getVariantValueSync,fE.prototype["is_enabled"]=fE.prototype.isEnabled,fE.prototype["is_enabled_sync"]=fE.prototype.isEnabledSync,fE.prototype["load_flags"]=fE.prototype.loadFlags,fE.prototype["update_context"]=fE.prototype.updateContext,fE.prototype["when_ready"]=fE.prototype.whenReady,fE.prototype["get_feature_data"]=fE.prototype.getFeatureData,fE.prototype["getTargeting"]=fE.prototype.getTargeting;var mE=kk("recorder"),gE="mp_iframe_handshake_request",vE="mp_iframe_handshake_response",yE=function(e){this.mixpanelInstance=e.mixpanelInstance,this.getMpConfig=e.getConfigFunc,this.getTabId=e.getTabIdFunc,this.reportError=e.reportErrorFunc,this.getDistinctId=e.getDistinctIdFunc,this.loadExtraBundle=e.loadExtraBundle,this.recorderSrc=e.recorderSrc,this.targetingSrc=e.targetingSrc,this.libBasePath=e.libBasePath,this._recorder=null,this._parentReplayId=null,this._parentFrameRetryInterval=null};yE.prototype.shouldLoadRecorder=function(){if(this.getMpConfig("disable_persistence"))return bk.log("Load recorder check skipped due to disable_persistence config"),K_.resolve(!1);var e=new eS(Kk),t=this.getTabId();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r<e.length;r++)if(ES(e[r])||e[r]["tabId"]===t)return!0;return!1}).catch(wk.bind(function(e){return this.reportError("Error checking recording registry",e),!1},this))},yE.prototype.checkAndStartSessionRecording=function(e,t){if(!Oi["MutationObserver"])return bk.critical("Browser does not support MutationObserver; skipping session recording"),K_.resolve();var r=wk.bind(function(e){return new K_(wk.bind(function(t){var r=Sk(wk.bind(function(){this._recorder=this._recorder||new Oi[Pi](this.mixpanelInstance),this._recorder["resumeRecording"](e),t()},this));if(wk.isUndefined(Oi[Pi])){var n=this.recorderSrc||this.libBasePath+Di;this.loadExtraBundle(n,r)}else r()},this))},this),n=OS(this.getMpConfig("record_allowed_iframe_origins"),mE),i=n.length>0;if(i&&(this._setupParentFrameListener(n),Oi.parent!==Oi))return this._setupChildFrameListener(n,r),this._sendParentFrameRequestWithRetry(n),K_.resolve();var o=wk.isUndefined(t)?this.getMpConfig("record_sessions_percent"):t,s=o>0&&100*Math.random()<=o;return e||s?r(!0):this.shouldLoadRecorder().then(wk.bind(function(e){return e?r(!1):K_.resolve()},this))},yE.prototype.isRecording=function(){if(!this._recorder||!wk.isFunction(this._recorder["isRecording"]))return!1;try{return this._recorder["isRecording"]()}catch(e){return this.reportError("Error checking if recording is active",e),!1}},yE.prototype.startRecordingOnEvent=function(e,t){var r=this.isRecording(),n=this.getMpConfig("recording_event_triggers");if(!r&&n){var i=n[e];if(i&&"number"===typeof i["percentage"]){var o=i["percentage"],s=i["property_filters"];if(s&&!wk.isEmptyObject(s)){var a=this.targetingSrc||this.libBasePath+Li;aE(this.loadExtraBundle,a).then(function(r){try{var n=r["eventMatchesCriteria"](e,t,{event_name:e,property_filters:s});n["matches"]&&this.checkAndStartSessionRecording(!1,o)}catch(CA){bk.critical("Could not parse recording event trigger properties logic:",CA)}}.bind(this)).catch(function(e){bk.critical("Failed to load targeting library:",e)})}else this.checkAndStartSessionRecording(!1,o)}}},yE.prototype.stopSessionRecording=function(){return this._recorder?this._recorder["stopRecording"]():K_.resolve()},yE.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder["pauseRecording"]():K_.resolve()},yE.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder["resumeRecording"]():K_.resolve()},yE.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig("record_heatmap_data")},yE.prototype.getSessionRecordingProperties=function(){var e={},t=this.getSessionReplayId();return t&&(e["$mp_replay_id"]=t),e},yE.prototype.getSessionReplayUrl=function(){var e=null,t=this.getSessionReplayId();if(t){var r=wk.HTTPBuildQuery({replay_id:t,distinct_id:this.getDistinctId(),token:this.getMpConfig("token")});e="https://mixpanel.com/projects/replay-redirect?"+r}return e},yE.prototype.getSessionReplayId=function(){if(this._parentReplayId)return this._parentReplayId;var e=null;return this._recorder&&(e=this._recorder["replayId"]),e||null},yE.prototype.getRecorder=function(){return this._recorder},yE.prototype._setupChildFrameListener=function(e,t){if(!this._childFrameMessageHandler){var r=this;this._childFrameMessageHandler=function(n){if(-1!==e.indexOf(n.origin)){var i=n.data;i&&i["type"]===vE&&i["token"]===r.getMpConfig("token")&&i["replayId"]&&(r._parentReplayId=i["replayId"],i["distinctId"]&&r.mixpanelInstance["identify"](i["distinctId"]),r._parentFrameRetryActive=!1,Oi.removeEventListener("message",r._childFrameMessageHandler),r._childFrameMessageHandler=null,t(!0))}},Oi.addEventListener("message",this._childFrameMessageHandler)}},yE.prototype._sendParentFrameRequest=function(e){var t={};t["type"]=gE,t["token"]=this.getMpConfig("token");for(var r=0;r<e.length;r++)try{Oi.parent.postMessage(t,e[r])}catch(n){}},yE.prototype._sendParentFrameRequestWithRetry=function(e){var t=this,r=10,n=0,i=50;function o(){setTimeout(function(){!t._parentFrameRetryActive||t._parentReplayId||++n>=r||(t._sendParentFrameRequest(e),i*=2,o())},i)}this._parentFrameRetryActive=!0,this._sendParentFrameRequest(e),o()},yE.prototype._setupParentFrameListener=function(e){if(!this._parentFrameMessageHandler){var t=this;this._parentFrameMessageHandler=function(r){if(-1!==e.indexOf(r.origin)){var n=r.data;if(n&&n["type"]===gE&&n["token"]===t.getMpConfig("token")){var i=t.getSessionReplayId();if(i){var o={};o["type"]=vE,o["token"]=t.getMpConfig("token"),o["replayId"]=i,o["distinctId"]=t.getDistinctId(),r.source.postMessage(o,r.origin)}}}},Oi.addEventListener("message",this._parentFrameMessageHandler)}},xk(yE);var wE=function(){};wE.prototype.create_properties=function(){},wE.prototype.event_handler=function(){},wE.prototype.after_track_handler=function(){},wE.prototype.init=function(e){return this.mp=e,this},wE.prototype.track=function(e,t,r,n){var i=this,o=wk.dom_query(e);if(0!==o.length)return wk.each(o,function(e){wk.register_event(e,this.override_event,function(e){var o={},s=i.create_properties(r,this),a=i.mp.get_config("track_links_timeout");i.event_handler(e,this,o),window.setTimeout(i.track_callback(n,s,o,!0),a),i.mp.track(t,s,i.track_callback(n,s,o))})},this),!0;bk.error("The DOM query ("+e+") returned 0 elements")},wE.prototype.track_callback=function(e,t,r,n){n=n||!1;var i=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(n,t)||i.after_track_handler(t,r,n))}},wE.prototype.create_properties=function(e,t){var r;return r="function"===typeof e?e(t):wk.extend({},e),r};var bE=function(){this.override_event="click"};wk.inherit(bE,wE),bE.prototype.create_properties=function(e,t){var r=bE.superclass.create_properties.apply(this,arguments);return t.href&&(r["url"]=t.href),r},bE.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},bE.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var _E=function(){this.override_event="submit"};wk.inherit(_E,wE),_E.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},_E.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var kE="$set",SE="$set_once",xE="$unset",CE="$add",EE="$append",AE="$union",OE="$remove",IE="$delete",TE={set_action:function(e,t){var r={},n={};return wk.isObject(e)?wk.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[kE]=n,r},unset_action:function(e){var t={},r=[];return wk.isArray(e)||(e=[e]),wk.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[xE]=r,t},set_once_action:function(e,t){var r={},n={};return wk.isObject(e)?wk.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[SE]=n,r},union_action:function(e,t){var r={},n={};return wk.isObject(e)?wk.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=wk.isArray(e)?e:[e])},this):n[e]=wk.isArray(t)?t:[t],r[AE]=n,r},append_action:function(e,t){var r={},n={};return wk.isObject(e)?wk.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[EE]=n,r},remove_action:function(e,t){var r={},n={};return wk.isObject(e)?wk.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[OE]=n,r},delete_action:function(){var e={};return e[IE]="",e}},ME=function(){};wk.extend(ME.prototype,TE),ME.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},ME.prototype.set=cS(function(e,t,r){var n=this.set_action(e,t);return wk.isObject(e)&&(r=t),this._send_request(n,r)}),ME.prototype.set_once=cS(function(e,t,r){var n=this.set_once_action(e,t);return wk.isObject(e)&&(r=t),this._send_request(n,r)}),ME.prototype.unset=cS(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),ME.prototype.union=cS(function(e,t,r){wk.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),ME.prototype["delete"]=cS(function(e){var t=this.delete_action();return this._send_request(t,e)}),ME.prototype.remove=cS(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),ME.prototype._send_request=function(e,t){e["$group_key"]=this._group_key,e["$group_id"]=this._group_id,e["$token"]=this._get_config("token");var r=wk.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes")["groups"],batcher:this._mixpanel.request_batchers.groups},t)},ME.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},ME.prototype._get_config=function(e){return this._mixpanel.get_config(e)},ME.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},ME.prototype["remove"]=ME.prototype.remove,ME.prototype["set"]=ME.prototype.set,ME.prototype["set_once"]=ME.prototype.set_once,ME.prototype["union"]=ME.prototype.union,ME.prototype["unset"]=ME.prototype.unset,ME.prototype["toString"]=ME.prototype.toString;var RE=function(){};wk.extend(RE.prototype,TE),RE.prototype._init=function(e){this._mixpanel=e},RE.prototype.set=aS(function(e,t,r){var n=this.set_action(e,t);return wk.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel["persistence"].update_referrer_info(document.referrer),n[kE]=wk.extend({},wk.info.people_properties(),n[kE]),this._send_request(n,r)}),RE.prototype.set_once=aS(function(e,t,r){var n=this.set_once_action(e,t);return wk.isObject(e)&&(r=t),this._send_request(n,r)}),RE.prototype.unset=aS(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),RE.prototype.increment=aS(function(e,t,r){var n={},i={};return wk.isObject(e)?(wk.each(e,function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void bk.error("Invalid increment value passed to mixpanel.people.increment - must be a number");i[t]=e}},this),r=t):(wk.isUndefined(t)&&(t=1),i[e]=t),n[CE]=i,this._send_request(n,r)}),RE.prototype.append=aS(function(e,t,r){wk.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),RE.prototype.remove=aS(function(e,t,r){wk.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),RE.prototype.union=aS(function(e,t,r){wk.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),RE.prototype.track_charge=aS(function(){bk.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),RE.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},RE.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}bk.error("mixpanel.people.delete_user() requires you to call identify() first")},RE.prototype.toString=function(){return this._mixpanel.toString()+".people"},RE.prototype._send_request=function(e,t){e["$token"]=this._get_config("token"),e["$distinct_id"]=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e["$device_id"]=r),n&&(e["$user_id"]=n),i&&(e["$had_persisted_distinct_id"]=i);var o=wk.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes")["engage"],batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),wk.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),wk.truncate(o,255))},RE.prototype._get_config=function(e){return this._mixpanel.get_config(e)},RE.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},RE.prototype._enqueue=function(e){kE in e?this._mixpanel["persistence"]._add_to_people_queue(kE,e):SE in e?this._mixpanel["persistence"]._add_to_people_queue(SE,e):xE in e?this._mixpanel["persistence"]._add_to_people_queue(xE,e):CE in e?this._mixpanel["persistence"]._add_to_people_queue(CE,e):EE in e?this._mixpanel["persistence"]._add_to_people_queue(EE,e):OE in e?this._mixpanel["persistence"]._add_to_people_queue(OE,e):AE in e?this._mixpanel["persistence"]._add_to_people_queue(AE,e):bk.error("Invalid call to _enqueue():",e)},RE.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=wk.extend({},this._mixpanel["persistence"].load_queue(e)),s=o;wk.isUndefined(o)||!wk.isObject(o)||wk.isEmptyObject(o)||(i._mixpanel["persistence"]._pop_from_people_queue(e,o),i._mixpanel["persistence"].save(),n&&(s=n(o)),t.call(i,s,function(t,n){0===t&&i._mixpanel["persistence"]._add_to_people_queue(e,o),wk.isUndefined(r)||r(t,n)}))},RE.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(kE,this.set,e),this._flush_one_queue(SE,this.set_once,n),this._flush_one_queue(xE,this.unset,o,function(e){return wk.keys(e)}),this._flush_one_queue(CE,this.increment,t),this._flush_one_queue(AE,this.union,i);var c=this._mixpanel["persistence"].load_queue(EE);if(!wk.isUndefined(c)&&wk.isArray(c)&&c.length)for(var u,l=function(e,t){0===e&&a._mixpanel["persistence"]._add_to_people_queue(EE,u),wk.isUndefined(r)||r(e,t)},h=c.length-1;h>=0;h--)c=this._mixpanel["persistence"].load_queue(EE),u=c.pop(),a._mixpanel["persistence"].save(),wk.isEmptyObject(u)||a.append(u,l);var d=this._mixpanel["persistence"].load_queue(OE);if(!wk.isUndefined(d)&&wk.isArray(d)&&d.length)for(var p,f=function(e,t){0===e&&a._mixpanel["persistence"]._add_to_people_queue(OE,p),wk.isUndefined(s)||s(e,t)},m=d.length-1;m>=0;m--)d=this._mixpanel["persistence"].load_queue(OE),p=d.pop(),a._mixpanel["persistence"].save(),wk.isEmptyObject(p)||a.remove(p,f)},RE.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},RE.prototype["set"]=RE.prototype.set,RE.prototype["set_once"]=RE.prototype.set_once,RE.prototype["unset"]=RE.prototype.unset,RE.prototype["increment"]=RE.prototype.increment,RE.prototype["append"]=RE.prototype.append,RE.prototype["remove"]=RE.prototype.remove,RE.prototype["union"]=RE.prototype.union,RE.prototype["track_charge"]=RE.prototype.track_charge,RE.prototype["clear_charges"]=RE.prototype.clear_charges,RE.prototype["delete_user"]=RE.prototype.delete_user,RE.prototype["toString"]=RE.prototype.toString;var PE,DE="__mps",LE="__mpso",BE="__mpus",NE="__mpa",jE="__mpap",FE="__mpr",UE="__mpu",zE="$people_distinct_id",qE="__alias",HE="__timers",$E=[DE,LE,BE,NE,jE,FE,UE,zE,qE,HE],WE=function(e){this["props"]={},this.campaign_params_saved=!1,e["persistence_name"]?this.name="mp_"+e["persistence_name"]:this.name="mp_"+e["token"]+"_mixpanel";var t=e["persistence"];"cookie"!==t&&"localStorage"!==t&&(bk.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e["persistence"]="cookie"),"localStorage"===t&&wk.localStorage.is_supported()?this.storage=wk.localStorage:this.storage=wk.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};WE.prototype.properties=function(){var e={};return this.load(),wk.each(this["props"],function(t,r){wk.include($E,r)||(e[r]=t)}),e},WE.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this["props"]=wk.extend({},e))}},WE.prototype.upgrade=function(){var e,t;this.storage===wk.localStorage?(e=wk.cookie.parse(this.name),wk.cookie.remove(this.name),wk.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===wk.cookie&&(t=wk.localStorage.parse(this.name),wk.localStorage.remove(this.name),t&&this.register_once(t))},WE.prototype.save=function(){this.disabled||this.storage.set(this.name,Vk(this["props"]),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},WE.prototype.load_prop=function(e){return this.load(),this["props"][e]},WE.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},WE.prototype.clear=function(){this.remove(),this["props"]={}},WE.prototype.register_once=function(e,t,r){return!!wk.isObject(e)&&("undefined"===typeof t&&(t="None"),this.expire_days="undefined"===typeof r?this.default_expiry:r,this.load(),wk.each(e,function(e,r){this["props"].hasOwnProperty(r)&&this["props"][r]!==t||(this["props"][r]=e)},this),this.save(),!0)},WE.prototype.register=function(e,t){return!!wk.isObject(e)&&(this.expire_days="undefined"===typeof t?this.default_expiry:t,this.load(),wk.extend(this["props"],e),this.save(),!0)},WE.prototype.unregister=function(e){this.load(),e in this["props"]&&(delete this["props"][e],this.save())},WE.prototype.update_search_keyword=function(e){this.register(wk.info.searchInfo(e))},WE.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:wk.info.referringDomain(e)||"$direct"},"")},WE.prototype.get_referrer_info=function(){return wk.strip_empty_properties({$initial_referrer:this["props"]["$initial_referrer"],$initial_referring_domain:this["props"]["$initial_referring_domain"]})},WE.prototype.update_config=function(e){this.default_expiry=this.expire_days=e["cookie_expiration"],this.set_disabled(e["disable_persistence"]),this.set_cookie_domain(e["cookie_domain"]),this.set_cross_site(e["cross_site_cookie"]),this.set_cross_subdomain(e["cross_subdomain_cookie"]),this.set_secure(e["secure_cookie"])},WE.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},WE.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},WE.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},WE.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},WE.prototype.get_cross_subdomain=function(){return this.cross_subdomain},WE.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},WE.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(kE),o=this._get_or_create_queue(SE),s=this._get_or_create_queue(xE),a=this._get_or_create_queue(CE),c=this._get_or_create_queue(AE),u=this._get_or_create_queue(OE,[]),l=this._get_or_create_queue(EE,[]);r===DE?(wk.extend(i,n),this._pop_from_people_queue(CE,n),this._pop_from_people_queue(AE,n),this._pop_from_people_queue(xE,n)):r===LE?(wk.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(xE,n)):r===BE?wk.each(n,function(e){wk.each([i,o,a,c],function(t){e in t&&delete t[e]}),wk.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===NE?(wk.each(n,function(e,t){t in i?i[t]+=e:(t in a||(a[t]=0),a[t]+=e)},this),this._pop_from_people_queue(xE,n)):r===UE?(wk.each(n,function(e,t){wk.isArray(e)&&(t in c||(c[t]=[]),wk.each(e,function(e){wk.include(c[t],e)||c[t].push(e)}))}),this._pop_from_people_queue(xE,n)):r===FE?(u.push(n),this._pop_from_people_queue(EE,n)):r===jE&&(l.push(n),this._pop_from_people_queue(xE,n)),bk.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),bk.log(t),this.save()},WE.prototype._pop_from_people_queue=function(e,t){var r=this["props"][this._get_queue_key(e)];wk.isUndefined(r)||wk.each(t,function(t,n){e===EE||e===OE?wk.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},WE.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},WE.prototype._get_queue_key=function(e){return e===kE?DE:e===SE?LE:e===xE?BE:e===CE?NE:e===EE?jE:e===OE?FE:e===AE?UE:void bk.error("Invalid queue:",e)},WE.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=wk.isUndefined(t)?{}:t,this["props"][r]||(this["props"][r]=t)},WE.prototype.set_event_timer=function(e,t){var r=this.load_prop(HE)||{};r[e]=t,this["props"][HE]=r,this.save()},WE.prototype.remove_event_timer=function(e){var t=this.load_prop(HE)||{},r=t[e];return wk.isUndefined(r)||(delete this["props"][HE][e],this.save()),r};var VE,YE=function(e,t){throw new Error(e+" not available in this build.")},XE=0,JE=1,GE="mixpanel",KE="base64",ZE="json",QE="$device:",eA="strict",tA="fallback",rA="disabled",nA=Oi.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,iA=!nA&&-1===dk.indexOf("MSIE")&&-1===dk.indexOf("Mozilla"),oA=null;ck["sendBeacon"]&&(oA=function(){return ck["sendBeacon"].apply(ck,arguments)});var sA={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},aA={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:sA,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:KE,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:$k,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:$k,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_allowed_iframe_origins:[],record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,recording_event_triggers:{},record_idle_timeout_ms:18e5,record_mask_inputs:!0,record_max_ms:Q_,record_min_ms:0,record_network:!1,record_network_options:{},record_sessions_percent:0,recorder_src:null,targeting_src:null,lib_base_path:"https://cdn.mxpnl.com/libs/",remote_settings_mode:rA},cA=!1,uA=function(){},lA=function(e,t,r){var n,i=r===GE?VE:VE[r];if(i&&PE===XE)n=i;else{if(i&&!wk.isArray(i))return void bk.error("You have already initialized "+r);n=new uA}if(n._cached_groups={},n._init(e,t,r),n["people"]=new RE,n["people"]._init(n),!n.get_config("skip_first_touch_marketing")){var o=wk.info.campaignParams(null),s={},a=!1;wk.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&n["people"].set_once(s)}Mi.DEBUG=Mi.DEBUG||n.get_config("debug");var c=PE===XE?"module":"snippet";return Oi.dispatchEvent(new Oi.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:n,source:c,token:e,name:r,info:wk.info}})),!wk.isUndefined(i)&&wk.isArray(i)&&(n._execute_array.call(n["people"],i["people"]),n._execute_array(i)),n};uA.prototype.init=function(e,t,r){if(wk.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==GE){var n=lA(e,t,r);return VE[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},uA.prototype._init=function(e,t,r){t=t||{},this["__loaded"]=!0,this["config"]={};var n={};if(!("api_payload_format"in t)){var i=t["api_host"]||aA["api_host"];i.match(/\.mixpanel\.com/)&&(n["api_payload_format"]=ZE)}if(this.hooks={},this.set_config(wk.extend({},aA,n,t,{name:r,token:e,callback_fn:(r===GE?r:GE+"."+r)+"._jsc"})),this.recorderManager=new yE({mixpanelInstance:this,getConfigFunc:wk.bind(this.get_config,this),setConfigFunc:wk.bind(this.set_config,this),getTabIdFunc:wk.bind(this.get_tab_id,this),reportErrorFunc:wk.bind(this.report_error,this),getDistinctIdFunc:wk.bind(this.get_distinct_id,this),recorderSrc:this.get_config("recorder_src"),targetingSrc:this.get_config("targeting_src"),libBasePath:this.get_config("lib_base_path"),loadExtraBundle:YE}),this["_jsc"]=$k,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(wk.localStorage.is_supported(!0)&&nA){if(this.init_batchers(),oA&&Oi.addEventListener){var o=wk.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);Oi.addEventListener("pagehide",function(e){e["persisted"]&&o()}),Oi.addEventListener("visibilitychange",function(){"hidden"===uk["visibilityState"]&&o()})}}else this._batch_requests=!1,bk.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),wk.each(this.get_batcher_configs(),function(e){bk.log("Clearing batch queue "+e.queue_key),wk.localStorage.remove(e.queue_key)});this["persistence"]=this["cookie"]=new WE(this["config"]),this.unpersisted_superprops={},this._gdpr_init();var s=wk.UUID();this.get_distinct_id()||this.register_once({distinct_id:QE+s,$device_id:s},""),this.flags=new fE({getFullApiRoute:wk.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes")["flags"]},this),getConfigFunc:wk.bind(this.get_config,this),setConfigFunc:wk.bind(this.set_config,this),getPropertyFunc:wk.bind(this.get_property,this),trackingFunc:wk.bind(this.track,this),loadExtraBundle:YE,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+Li}),this.flags.init(),this["flags"]=this.flags,this.autocapture=new sE(this),this.autocapture.init(),this._init_tab_id();var a=this.get_config("remote_settings_mode");this.__session_recording_init_promise=a===eA||a===tA?this._fetch_remote_settings(a).then(wk.bind(function(){return this._check_and_start_session_recording()},this)):this._check_and_start_session_recording()},uA.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))bk.log("Tab ID initialization skipped due to disable_persistence config");else if(wk.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,r="mp_gen_new_tab_id_"+e;!wk.sessionStorage.get(r)&&wk.sessionStorage.get(t)||wk.sessionStorage.set(t,"$tab-"+wk.UUID()),wk.sessionStorage.set(r,"1"),this.tab_id=wk.sessionStorage.get(t),Oi.addEventListener("beforeunload",function(){wk.sessionStorage.remove(r)})}catch(CA){this.report_error("Error initializing tab id",CA)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},uA.prototype.get_tab_id=function(){return this.tab_id||null},uA.prototype._check_and_start_session_recording=sS(function(e){return this.recorderManager.checkAndStartSessionRecording(e)}),uA.prototype._start_recording_on_event=function(e,t){return this.recorderManager.startRecordingOnEvent(e,t)},uA.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)},uA.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()},uA.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()},uA.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()},uA.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()},uA.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()},uA.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()},uA.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()},uA.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise},uA.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this["people"].set_once(this["persistence"].get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=wk.info.campaignParams(null);wk.each(e,function(e,t){this.unregister(t)}.bind(this))}},uA.prototype._set_default_superprops=function(){this["persistence"].update_search_keyword(uk.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(wk.info.campaignParams()),this.get_config("save_referrer")&&this["persistence"].update_referrer_info(uk.referrer)},uA.prototype._dom_loaded=function(){wk.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||wk.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},uA.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!cA)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},uA.prototype._prepare_callback=function(e,t){if(wk.isUndefined(e))return null;if(nA){var r=function(r){e(r,t)};return r}var n=this["_jsc"],i=""+Math.floor(1e8*Math.random()),o=this.get_config("callback_fn")+"["+i+"]";return n[i]=function(r){delete n[i],e(r,t)},o},uA.prototype._send_request=function(e,t,r,n){var i=!0;if(iA)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;n||!wk.isFunction(r)&&"string"!==typeof r||(n=r,r=null),r=wk.extend(o,r||{}),nA||(r.method="GET");var a="POST"===r.method,c=oA&&a&&"sendbeacon"===r.transport.toLowerCase(),u=r.verbose;t["verbose"]&&(u=!0),this.get_config("test")&&(t["test"]=1),u&&(t["verbose"]=1),this.get_config("img")&&(t["img"]=1),nA||(n?t["callback"]=n:(u||this.get_config("test"))&&(t["callback"]="(function(){})")),t["ip"]=this.get_config("ip")?1:0,t["_"]=(new Date).getTime().toString(),a&&(s="data="+encodeURIComponent(t["data"]),delete t["data"]),wk.extend(t,this.get_config("api_extra_query_params")),e+="?"+wk.HTTPBuildQuery(t);var l=this;if("img"in t){var h=uk.createElement("img");h.src=e,uk.body.appendChild(h)}else if(c){try{i=oA(e,s)}catch(v){l.report_error(v),i=!1}try{n&&n(i?1:0)}catch(v){l.report_error(v)}}else if(nA)try{var d=new XMLHttpRequest;d.open(r.method,e,!0);var p=this.get_config("xhr_headers");if(a&&(p["Content-Type"]="application/x-www-form-urlencoded"),wk.each(p,function(e,t){d.setRequestHeader(t,e)}),r.timeout_ms&&"undefined"!==typeof d.timeout){d.timeout=r.timeout_ms;var f=(new Date).getTime()}d.withCredentials=!0,d.onreadystatechange=function(){var e;if(4===d.readyState)if(200===d.status){if(n)if(u){var t;try{t=wk.JSONDecode(d.responseText)}catch(v){if(l.report_error(v),!r.ignore_json_errors)return;t=d.responseText}n(t)}else n(Number(d.responseText))}else if(e=d.timeout&&!d.status&&(new Date).getTime()-f>=d.timeout?"timeout":"Bad HTTP status: "+d.status+" "+d.statusText,l.report_error(e),n)if(u){var i=d["responseHeaders"]||{};n({status:0,httpStatusCode:d["status"],error:e,retryAfter:i["Retry-After"]})}else n(0)},d.send(s)}catch(v){l.report_error(v),i=!1}else{var m=uk.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e;var g=uk.getElementsByTagName("script")[0];g.parentNode.insertBefore(m,g)}return i},uA.prototype._fetch_remote_settings=function(e){var t=this,r=function(){"strict"===e&&t.set_config({record_sessions_percent:0})};if(!Oi["AbortController"])return bk.critical("Remote settings unavailable: missing minimum required APIs"),r(),Promise.resolve();var n=this.get_api_host("settings")+"/"+this.get_config("api_routes")["settings"],i={$lib_version:Mi.LIB_VERSION,mp_lib:"web",sdk_config:"1"},o=wk.HTTPBuildQuery(i),s=n+"?"+o,a=new AbortController,c=setTimeout(function(){a.abort()},500),u={method:"GET",headers:{Authorization:"Basic "+btoa(t.get_config("token")+":")},signal:a.signal};return Oi["fetch"](s,u).then(function(e){return clearTimeout(c),e["ok"]?e.json():(bk.critical("Network response was not ok"),void r())}).then(function(e){if(e&&e["sdk_config"]&&e["sdk_config"]["config"]){var n=e["sdk_config"]["config"],i={};wk.each(n,function(e,t){aA.hasOwnProperty(t)&&(i[t]=e)}),wk.isEmptyObject(i)?(bk.critical("No valid config keys found in remote settings."),r()):t.set_config(i)}else r()}).catch(function(e){clearTimeout(c),bk.critical("Failed to fetch remote settings",e),r()})},uA.prototype._execute_array=function(e){var t,r=[],n=[],i=[];wk.each(e,function(e){e&&(t=e[0],wk.isArray(t)?i.push(e):"function"===typeof e?e.call(this):wk.isArray(e)&&"alias"===t?r.push(e):wk.isArray(e)&&-1!==t.indexOf("track")&&"function"===typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){wk.each(e,function(e){if(wk.isArray(e[0])){var r=t;wk.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};o(r,this),o(n,this),o(i,this)},uA.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},uA.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},uA.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=wk.bind(function(e){return new CS(e.queue_key,{libConfig:this["config"],errorReporter:this.get_config("error_reporter"),sendRequestFunc:wk.bind(function(t,r,n){var i=this.get_config("api_routes");this._send_request(this.get_api_host(e.api_name)+"/"+i[e.api_name],this._encode_data_for_request(t),r,this._prepare_callback(n,t))},this),beforeSendHook:wk.bind(function(t){var r=this._run_hook("before_send_"+e.type,t);return r?r[0]:null},this),stopAllBatchingFunc:wk.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},uA.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,wk.each(this.request_batchers,function(e){e.start()}))},uA.prototype.stop_batch_senders=function(){this._batch_requests=!1,wk.each(this.request_batchers,function(e){e.stop(),e.clear()})},uA.prototype.push=function(e){this._execute_array([e])},uA.prototype.enable=function(e){var t,r,n,i;if("undefined"===typeof e)this._flags.disable_all_events=!1;else{for(t={},r=[],n=0;n<e.length;n++)t[e[n]]=!0;for(i=0;i<this.__disabled_events.length;i++)t[this.__disabled_events[i]]||r.push(this.__disabled_events[i]);this.__disabled_events=r}},uA.prototype.disable=function(e){"undefined"===typeof e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},uA.prototype._encode_data_for_request=function(e){var t=Vk(e);return this.get_config("api_payload_format")===KE&&(t=wk.base64Encode(t)),{data:t}},uA.prototype._track_or_batch=function(e,t){var r=wk.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||$k;var a=!0,c=wk.bind(function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r),r&&(r=r[0])),r?(bk.log("MIXPANEL REQUEST:"),bk.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!o?i.enqueue(r).then(function(e){e?t(1,r):c()}):a=c(),a&&r},uA.prototype.track=sS(function(e,t,r,n){var i;if(!r||!r.skip_hooks){if(i=this._run_hook("before_track",e,t),null===i)return;e=i[0],t=i[1]}n||"function"!==typeof r||(n=r,r=null),r=r||{};var o=r["transport"];o&&(r.transport=o);var s=r["send_immediately"];if("function"!==typeof n&&(n=$k),wk.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){t=wk.extend({},t),t["token"]=this.get_config("token");var a=this["persistence"].remove_event_timer(e);if(!wk.isUndefined(a)){var c=(new Date).getTime()-a;t["$duration"]=parseFloat((c/1e3).toFixed(3))}this._set_default_superprops();var u=this.get_config("track_marketing")?wk.info.marketingParams():{};t=wk.extend({},wk.info.properties({mp_loader:this.get_config("mp_loader")}),u,this["persistence"].properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var l=this.get_config("property_blacklist");wk.isArray(l)?wk.each(l,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+l),this._start_recording_on_event(e,t);var h={event:e,properties:t};return i=this._track_or_batch({type:"events",data:h,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes")["track"],batcher:this.request_batchers.events,should_send_immediately:s,send_request_options:r},n),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(e,t),i}n(0)}}),uA.prototype.set_group=sS(function(e,t,r){wk.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this["people"].set(e,t,r)}),uA.prototype.add_group=sS(function(e,t,r){var n=this.get_property(e),i={};return void 0===n?(i[e]=[t],this.register(i)):-1===n.indexOf(t)&&(n.push(t),i[e]=n,this.register(i)),this["people"].union(e,t,r)}),uA.prototype.remove_group=sS(function(e,t,r){var n=this.get_property(e);if(void 0!==n){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this["people"].remove(e,t,r)}),uA.prototype.track_with_groups=sS(function(e,t,r,n){var i=wk.extend({},t||{});return wk.each(r,function(e,t){null!==e&&void 0!==e&&(i[t]=e)}),this.track(e,i,n)}),uA.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},uA.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},uA.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return void 0!==n&&n._group_key===e&&n._group_id===t||(n=new ME,n._init(this,e,t),this._cached_groups[r]=n),n},uA.prototype.track_pageview=sS(function(e,t){"object"!==typeof e&&(e={}),t=t||{};var r=t["event_name"]||"$mp_web_page_view",n=wk.extend(wk.info.mpPageViewProperties(),wk.info.campaignParams(),wk.info.clickParams()),i=wk.extend({},n,e);return this.track(r,i)}),uA.prototype.track_links=function(){return this._track_dom.call(this,bE,arguments)},uA.prototype.track_forms=function(){return this._track_dom.call(this,_E,arguments)},uA.prototype.time_event=function(e){wk.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this["persistence"].set_event_timer(e,(new Date).getTime())};var hA={persistent:!0},dA=function(e){var t;return t=wk.isObject(e)?e:wk.isUndefined(e)?{}:{days:e},wk.extend({},hA,t)};uA.prototype.register=function(e,t){var r=this._run_hook("before_register",e,t);if(null!==r){e=r[0],t=r[1];var n=dA(t);n["persistent"]?this["persistence"].register(e,n["days"]):wk.extend(this.unpersisted_superprops,e)}},uA.prototype.register_once=function(e,t,r){var n=this._run_hook("before_register_once",e,t,r);if(null!==n){e=n[0],t=n[1],r=n[2];var i=dA(r);i["persistent"]?this["persistence"].register_once(e,t,i["days"]):("undefined"===typeof t&&(t="None"),wk.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))}},uA.prototype.unregister=function(e,t){var r=this._run_hook("before_unregister",e,t);null!==r&&(e=r[0],t=r[1],t=dA(t),t["persistent"]?this["persistence"].unregister(e):delete this.unpersisted_superprops[e])},uA.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},uA.prototype.identify=function(e,t,r,n,i,o,s,a){var c=this._run_hook("before_identify",e);if(null===c)return-1;e=c[0];var u=this.get_distinct_id();if(e&&u!==e){if("string"===typeof e&&0===e.indexOf(QE))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var l=u;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}e!==u&&e!==this.get_property(qE)&&(this.unregister(qE),this.register({distinct_id:e})),this._flags.identify_called=!0,this["people"]._flush(t,r,n,i,o,s,a),e!==u&&this.track("$identify",{distinct_id:e,$anon_distinct_id:u},{skip_hooks:!0}),e!==u&&this.flags.fetchFlags().catch(function(){bk.error("[flags] Error fetching flags during identify")})},uA.prototype.reset=function(){this.stop_session_recording(),this["persistence"].clear(),this._flags.identify_called=!1;var e=wk.UUID();this.register_once({distinct_id:QE+e,$device_id:e},""),this._check_and_start_session_recording()},uA.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},uA.prototype.alias=function(e,t){if(e===this.get_property(zE))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return wk.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(qE,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},uA.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},uA.prototype.set_config=function(e){if(wk.isObject(e)){wk.extend(this["config"],e);var t=e["batch_size"];t&&wk.each(this.request_batchers,function(e){e.resetBatchSize()}),this.get_config("persistence_name")||(this["config"]["persistence_name"]=this["config"]["cookie_name"]),this.get_config("disable_persistence")||(this["config"]["disable_persistence"]=this["config"]["disable_cookie"]),this["persistence"]&&this["persistence"].update_config(this["config"]),Mi.DEBUG=Mi.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),wk.isObject(e["hooks"])&&(this.hooks={},wk.each(e["hooks"],function(e,t){if(wk.isFunction(e))this.hooks[t]=[e];else if(wk.isArray(e)){this.hooks[t]=[];for(var r=0;r<e.length;r++)wk.isFunction(e[r])||bk.critical("Invalid hook added. Hook is not a function"),this.hooks[t].push(e[r])}else bk.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this))}},uA.prototype.get_config=function(e){return this["config"][e]},uA.prototype._run_hook=function(e){var t=ik.call(arguments,1);return wk.each(this.hooks[e],function(r){if(null===t)return null;var n=r.apply(this,t);"undefined"===typeof n?(this.report_error(e+" hook did not return a valid value"),t=null):(wk.isArray(n)||(n=[n]),t.splice.apply(t,[0,n.length].concat(n)))},this),t},uA.prototype.get_property=function(e){return this["persistence"].load_prop([e])},uA.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},uA.prototype.toString=function(){var e=this.get_config("name");return e!==GE&&(e=GE+"."+e),e},uA.prototype._event_is_disabled=function(e){return wk.isBlockedUA(dk)||this._flags.disable_all_events||wk.include(this.__disabled_events,e)},uA.prototype._gdpr_init=function(){var e="localStorage"===this.get_config("opt_out_tracking_persistence_type");e&&wk.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!wk.cookie.get("mp_optout")||(wk.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},uA.prototype._gdpr_update_persistence=function(e){var t;if(e&&e["clear_persistence"])t=!0;else{if(!e||!e["enable_persistence"])return;t=!1}this.get_config("disable_persistence")||this["persistence"].disabled===t||this["persistence"].set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},uA.prototype._gdpr_call_func=function(e,t){return t=wk.extend({track:wk.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),wk.localStorage.is_supported()||(t["persistence_type"]="cookie"),e(this.get_config("token"),{track:t["track"],trackEventName:t["track_event_name"],trackProperties:t["track_properties"],persistenceType:t["persistence_type"],persistencePrefix:t["cookie_prefix"],cookieDomain:t["cookie_domain"],cookieExpiration:t["cookie_expiration"],crossSiteCookie:t["cross_site_cookie"],crossSubdomainCookie:t["cross_subdomain_cookie"],secureCookie:t["secure_cookie"],ignoreDnt:t["ignore_dnt"]})},uA.prototype.opt_in_tracking=function(e){e=wk.extend({enable_persistence:!0},e),this._gdpr_call_func(rS,e),this._gdpr_update_persistence(e)},uA.prototype.opt_out_tracking=function(e){e=wk.extend({clear_persistence:!0,delete_user:!0},e),e["delete_user"]&&this["people"]&&this["people"]._identify_called()&&(this["people"].delete_user(),this["people"].clear_charges()),this._gdpr_call_func(nS,e),this._gdpr_update_persistence(e)},uA.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(iS,e)},uA.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(oS,e)},uA.prototype.clear_opt_in_out_tracking=function(e){e=wk.extend({enable_persistence:!0},e),this._gdpr_call_func(uS,e),this._gdpr_update_persistence(e)},uA.prototype.report_error=function(e,t){bk.error.apply(bk.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){bk.error(t)}},uA.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)},uA.prototype.remove_hook=function(e,t){var r;this.hooks[e]&&(r=this.hooks[e].indexOf(t),-1!==r?this.hooks[e].splice(r,1):bk.log("remove_hook failed. Matching hook was not found"))},uA.prototype["init"]=uA.prototype.init,uA.prototype["reset"]=uA.prototype.reset,uA.prototype["enable"]=uA.prototype.enable,uA.prototype["disable"]=uA.prototype.disable,uA.prototype["time_event"]=uA.prototype.time_event,uA.prototype["track"]=uA.prototype.track,uA.prototype["track_links"]=uA.prototype.track_links,uA.prototype["track_forms"]=uA.prototype.track_forms,uA.prototype["track_pageview"]=uA.prototype.track_pageview,uA.prototype["register"]=uA.prototype.register,uA.prototype["register_once"]=uA.prototype.register_once,uA.prototype["unregister"]=uA.prototype.unregister,uA.prototype["identify"]=uA.prototype.identify,uA.prototype["alias"]=uA.prototype.alias,uA.prototype["name_tag"]=uA.prototype.name_tag,uA.prototype["set_config"]=uA.prototype.set_config,uA.prototype["get_config"]=uA.prototype.get_config,uA.prototype["get_api_host"]=uA.prototype.get_api_host,uA.prototype["get_property"]=uA.prototype.get_property,uA.prototype["get_distinct_id"]=uA.prototype.get_distinct_id,uA.prototype["toString"]=uA.prototype.toString,uA.prototype["opt_out_tracking"]=uA.prototype.opt_out_tracking,uA.prototype["opt_in_tracking"]=uA.prototype.opt_in_tracking,uA.prototype["has_opted_out_tracking"]=uA.prototype.has_opted_out_tracking,uA.prototype["has_opted_in_tracking"]=uA.prototype.has_opted_in_tracking,uA.prototype["clear_opt_in_out_tracking"]=uA.prototype.clear_opt_in_out_tracking,uA.prototype["get_group"]=uA.prototype.get_group,uA.prototype["set_group"]=uA.prototype.set_group,uA.prototype["add_group"]=uA.prototype.add_group,uA.prototype["remove_group"]=uA.prototype.remove_group,uA.prototype["add_hook"]=uA.prototype.add_hook,uA.prototype["remove_hook"]=uA.prototype.remove_hook,uA.prototype["track_with_groups"]=uA.prototype.track_with_groups,uA.prototype["start_batch_senders"]=uA.prototype.start_batch_senders,uA.prototype["stop_batch_senders"]=uA.prototype.stop_batch_senders,uA.prototype["start_session_recording"]=uA.prototype.start_session_recording,uA.prototype["stop_session_recording"]=uA.prototype.stop_session_recording,uA.prototype["pause_session_recording"]=uA.prototype.pause_session_recording,uA.prototype["resume_session_recording"]=uA.prototype.resume_session_recording,uA.prototype["get_session_recording_properties"]=uA.prototype.get_session_recording_properties,uA.prototype["get_session_replay_url"]=uA.prototype.get_session_replay_url,uA.prototype["get_tab_id"]=uA.prototype.get_tab_id,uA.prototype["DEFAULT_API_ROUTES"]=sA,uA.prototype["__get_recorder"]=uA.prototype.__get_recorder,uA.prototype["__get_recording_init_promise"]=uA.prototype.__get_recording_init_promise,WE.prototype["properties"]=WE.prototype.properties,WE.prototype["update_search_keyword"]=WE.prototype.update_search_keyword,WE.prototype["update_referrer_info"]=WE.prototype.update_referrer_info,WE.prototype["get_cross_subdomain"]=WE.prototype.get_cross_subdomain,WE.prototype["clear"]=WE.prototype.clear;var pA={},fA=function(){wk.each(pA,function(e,t){t!==GE&&(VE[t]=e)}),VE["_"]=wk},mA=function(){VE["init"]=function(e,t,r){if(r)return VE[r]||(VE[r]=pA[r]=lA(e,t,r),VE[r]._loaded()),VE[r];var n=VE;pA[GE]?n=pA[GE]:e&&(n=lA(e,t,GE),n._loaded(),pA[GE]=n),VE=n,PE===JE&&(Oi[GE]=VE),fA()}},gA=function(){function e(){e.done||(e.done=!0,cA=!0,iA=!1,wk.each(pA,function(e){e._dom_loaded()}))}function t(){try{uk.documentElement.doScroll("left")}catch(r){return void setTimeout(t,1)}e()}if(uk.addEventListener)"complete"===uk.readyState?e():uk.addEventListener("DOMContentLoaded",e,!1);else if(uk.attachEvent){uk.attachEvent("onreadystatechange",e);var r=!1;try{r=null===Oi.frameElement}catch(n){}uk.documentElement.doScroll&&r&&t()}wk.register_event(Oi,"load",e,!0)};function vA(e){return YE=e,PE=XE,VE=new uA,mA(),VE["init"](),gA(),VE}function yA(e,t){t()}var wA=vA(yA);const bA="@mixpanelIdentificationData",_A=e=>{let t={};return e?.name?(t["$name"]=e?.name,delete e.name):(t["$first_name"]=e?.first_name,t["$last_name"]=e?.last_name,delete e?.first_name,delete e?.last_name),e?.email&&(t["$email"]=e?.email,delete e?.email),e?.phone&&(t["$phone"]=e?.phone,delete e?.phone),t=Object.assign({},t,e),t},kA={setMixpanelIdentificationData:e=>{(0,h.setLocalStorageItem)(bA,e)},getMixpanelIdentificationData:()=>(0,h.getLocalStorageItem)(bA),hasMixpanelIdentificationData:()=>!!kA.getMixpanelIdentificationData(),init:(e,t)=>{wA.init(e,Object.assign({},t,{ignore_dnt:!0}))},initIdentify:(e,t,r,n)=>{const i=r||kA.getMixpanelIdentificationData(),o=_A(i);if("production"===e&&o){kA.init(t,n);const e=window.location.hostname;let r=`${e}`;o?.company&&(r+=`.${o?.company?.name}`),o?.employee_code&&(r+=`.${o?.employee_code}`),(o?.name||o?.first_name&&o?.last_name)&&(r+=o?.name?`.${o.name}`:`.${o?.first_name}.${o?.last_name}`),wA.identify(r),wA.people.set({...o,company_domain:e})}},trackEvent:(e,t,r)=>{"production"===e&&wA.track(t,r)}};var SA=kA,xA={}}(),__webpack_exports__}()});
|
|
39
|
+
function zr(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return e=>e in t}const qr=Object.assign,Hr=Object.prototype.hasOwnProperty,$r=(e,t)=>Hr.call(e,t),Wr=Array.isArray,Vr=e=>"[object Map]"===Kr(e),Yr=e=>"string"===typeof e,Xr=e=>"symbol"===typeof e,Jr=e=>null!==e&&"object"===typeof e,Gr=Object.prototype.toString,Kr=e=>Gr.call(e),Zr=e=>Kr(e).slice(8,-1),Qr=e=>Yr(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,en=e=>{const t=Object.create(null);return r=>{const n=t[r];return n||(t[r]=e(r))}},tn=/-\w/g,rn=(en(e=>e.replace(tn,e=>e.slice(1).toUpperCase())),/\B([A-Z])/g),nn=(en(e=>e.replace(rn,"-$1").toLowerCase()),en(e=>e.charAt(0).toUpperCase()+e.slice(1))),on=(en(e=>{const t=e?`on${nn(e)}`:"";return t}),(e,t)=>!Object.is(e,t));let sn;let an,cn,un=0;function ln(){un++}function hn(){if(--un>0)return;if(cn){let e=cn;cn=void 0;while(e){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;while(an){let r=an;an=void 0;while(r){const n=r.next;if(r.next=void 0,r.flags&=-9,1&r.flags)try{r.trigger()}catch(t){e||(e=t)}r=n}}if(e)throw e}let dn=!0;const pn=[];function fn(){pn.push(dn),dn=!1}function mn(){const e=pn.pop();dn=void 0===e||e}class gn{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class vn{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!sn||!dn||sn===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==sn)t=this.activeLink=new gn(sn,this),sn.deps?(t.prevDep=sn.depsTail,sn.depsTail.nextDep=t,sn.depsTail=t):sn.deps=sn.depsTail=t,yn(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=sn.depsTail,t.nextDep=void 0,sn.depsTail.nextDep=t,sn.depsTail=t,sn.deps===t&&(sn.deps=e)}return t}trigger(e){this.version++,this.notify(e)}notify(e){ln();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{hn()}}}function yn(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)yn(e)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const wn=new WeakMap,bn=Symbol(""),_n=Symbol(""),kn=Symbol("");function Sn(e,t,r){if(dn&&sn){let t=wn.get(e);t||wn.set(e,t=new Map);let n=t.get(r);n||(t.set(r,n=new vn),n.map=t,n.key=r),n.track()}}function xn(e,t,r,n,i,o){const s=wn.get(e);if(!s)return void 0;const a=e=>{e&&e.trigger()};if(ln(),"clear"===t)s.forEach(a);else{const i=Wr(e),o=i&&Qr(r);if(i&&"length"===r){const e=Number(n);s.forEach((t,r)=>{("length"===r||r===kn||!Xr(r)&&r>=e)&&a(t)})}else switch((void 0!==r||s.has(void 0))&&a(s.get(r)),o&&a(s.get(kn)),t){case"add":i?o&&a(s.get("length")):(a(s.get(bn)),Vr(e)&&a(s.get(_n)));break;case"delete":i||(a(s.get(bn)),Vr(e)&&a(s.get(_n)));break;case"set":Vr(e)&&a(s.get(bn));break}}hn()}function Cn(e,t){const r=wn.get(e);return r&&r.get(t)}function En(e){const t=hi(e);return t===e?t:(Sn(t,"iterate",kn),ui(e)?t:t.map(di))}function An(e){return Sn(e=hi(e),"iterate",kn),e}function On(e,t){return ci(e)?ai(e)?pi(di(t)):pi(t):di(t)}const In={__proto__:null,[Symbol.iterator](){return Tn(this,Symbol.iterator,e=>On(this,e))},concat(...e){return En(this).concat(...e.map(e=>Wr(e)?En(e):e))},entries(){return Tn(this,"entries",e=>(e[1]=On(this,e[1]),e))},every(e,t){return Rn(this,"every",e,t,void 0,arguments)},filter(e,t){return Rn(this,"filter",e,t,e=>e.map(e=>On(this,e)),arguments)},find(e,t){return Rn(this,"find",e,t,e=>On(this,e),arguments)},findIndex(e,t){return Rn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Rn(this,"findLast",e,t,e=>On(this,e),arguments)},findLastIndex(e,t){return Rn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Rn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Dn(this,"includes",e)},indexOf(...e){return Dn(this,"indexOf",e)},join(e){return En(this).join(e)},lastIndexOf(...e){return Dn(this,"lastIndexOf",e)},map(e,t){return Rn(this,"map",e,t,void 0,arguments)},pop(){return Ln(this,"pop")},push(...e){return Ln(this,"push",e)},reduce(e,...t){return Pn(this,"reduce",e,t)},reduceRight(e,...t){return Pn(this,"reduceRight",e,t)},shift(){return Ln(this,"shift")},some(e,t){return Rn(this,"some",e,t,void 0,arguments)},splice(...e){return Ln(this,"splice",e)},toReversed(){return En(this).toReversed()},toSorted(e){return En(this).toSorted(e)},toSpliced(...e){return En(this).toSpliced(...e)},unshift(...e){return Ln(this,"unshift",e)},values(){return Tn(this,"values",e=>On(this,e))}};function Tn(e,t,r){const n=An(e),i=n[t]();return n===e||ui(e)||(i._next=i.next,i.next=()=>{const e=i._next();return e.done||(e.value=r(e.value)),e}),i}const Mn=Array.prototype;function Rn(e,t,r,n,i,o){const s=An(e),a=s!==e&&!ui(e),c=s[t];if(c!==Mn[t]){const t=c.apply(e,o);return a?di(t):t}let u=r;s!==e&&(a?u=function(t,n){return r.call(this,On(e,t),n,e)}:r.length>2&&(u=function(t,n){return r.call(this,t,n,e)}));const l=c.call(s,u,n);return a&&i?i(l):l}function Pn(e,t,r,n){const i=An(e),o=i!==e&&!ui(e);let s=r,a=!1;i!==e&&(o?(a=0===n.length,s=function(t,n,i){return a&&(a=!1,t=On(e,t)),r.call(this,t,On(e,n),i,e)}):r.length>3&&(s=function(t,n,i){return r.call(this,t,n,i,e)}));const c=i[t](s,...n);return a?On(e,c):c}function Dn(e,t,r){const n=hi(e);Sn(n,"iterate",kn);const i=n[t](...r);return-1!==i&&!1!==i||!li(r[0])?i:(r[0]=hi(r[0]),n[t](...r))}function Ln(e,t,r=[]){fn(),ln();const n=hi(e)[t].apply(e,r);return hn(),mn(),n}const Bn=zr("__proto__,__v_isRef,__isVue"),Nn=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(Xr));function jn(e){Xr(e)||(e=String(e));const t=hi(this);return Sn(t,"has",e),t.hasOwnProperty(e)}class Fn{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,r){if("__v_skip"===t)return e["__v_skip"];const n=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!n;if("__v_isReadonly"===t)return n;if("__v_isShallow"===t)return i;if("__v_raw"===t)return r===(n?i?ti:ei:i?Qn:Zn).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const o=Wr(e);if(!n){let e;if(o&&(e=In[t]))return e;if("hasOwnProperty"===t)return jn}const s=Reflect.get(e,t,fi(e)?e:r);if(Xr(t)?Nn.has(t):Bn(t))return s;if(n||Sn(e,"get",t),i)return s;if(fi(s)){const e=o&&Qr(t)?s:s.value;return n&&Jr(e)?oi(e):e}return Jr(s)?n?oi(s):ii(s):s}}class Un extends Fn{constructor(e=!1){super(!1,e)}set(e,t,r,n){let i=e[t];const o=Wr(e)&&Qr(t);if(!this._isShallow){const e=ci(i);if(ui(r)||ci(r)||(i=hi(i),r=hi(r)),!o&&fi(i)&&!fi(r))return e||(i.value=r),!0}const s=o?Number(t)<e.length:$r(e,t),a=Reflect.set(e,t,r,fi(e)?e:n);return e===hi(n)&&(s?on(r,i)&&xn(e,"set",t,r,i):xn(e,"add",t,r)),a}deleteProperty(e,t){const r=$r(e,t),n=e[t],i=Reflect.deleteProperty(e,t);return i&&r&&xn(e,"delete",t,void 0,n),i}has(e,t){const r=Reflect.has(e,t);return Xr(t)&&Nn.has(t)||Sn(e,"has",t),r}ownKeys(e){return Sn(e,"iterate",Wr(e)?"length":bn),Reflect.ownKeys(e)}}class zn extends Fn{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const qn=new Un,Hn=new zn,$n=e=>e,Wn=e=>Reflect.getPrototypeOf(e);function Vn(e,t,r){return function(...n){const i=this["__v_raw"],o=hi(i),s=Vr(o),a="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,u=i[e](...n),l=r?$n:t?pi:di;return!t&&Sn(o,"iterate",c?_n:bn),qr(Object.create(u),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:a?[l(e[0]),l(e[1])]:l(e),done:t}}})}}function Yn(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function Xn(e,t){const r={get(r){const n=this["__v_raw"],i=hi(n),o=hi(r);e||(on(r,o)&&Sn(i,"get",r),Sn(i,"get",o));const{has:s}=Wn(i),a=t?$n:e?pi:di;return s.call(i,r)?a(n.get(r)):s.call(i,o)?a(n.get(o)):void(n!==i&&n.get(r))},get size(){const t=this["__v_raw"];return!e&&Sn(hi(t),"iterate",bn),t.size},has(t){const r=this["__v_raw"],n=hi(r),i=hi(t);return e||(on(t,i)&&Sn(n,"has",t),Sn(n,"has",i)),t===i?r.has(t):r.has(t)||r.has(i)},forEach(r,n){const i=this,o=i["__v_raw"],s=hi(o),a=t?$n:e?pi:di;return!e&&Sn(s,"iterate",bn),o.forEach((e,t)=>r.call(n,a(e),a(t),i))}};qr(r,e?{add:Yn("add"),set:Yn("set"),delete:Yn("delete"),clear:Yn("clear")}:{add(e){const r=hi(this),n=Wn(r),i=hi(e),o=t||ui(e)||ci(e)?e:i,s=n.has.call(r,o)||on(e,o)&&n.has.call(r,e)||on(i,o)&&n.has.call(r,i);return s||(r.add(o),xn(r,"add",o,o)),this},set(e,r){t||ui(r)||ci(r)||(r=hi(r));const n=hi(this),{has:i,get:o}=Wn(n);let s=i.call(n,e);s||(e=hi(e),s=i.call(n,e));const a=o.call(n,e);return n.set(e,r),s?on(r,a)&&xn(n,"set",e,r,a):xn(n,"add",e,r),this},delete(e){const t=hi(this),{has:r,get:n}=Wn(t);let i=r.call(t,e);i||(e=hi(e),i=r.call(t,e));const o=n?n.call(t,e):void 0,s=t.delete(e);return i&&xn(t,"delete",e,void 0,o),s},clear(){const e=hi(this),t=0!==e.size,r=void 0,n=e.clear();return t&&xn(e,"clear",void 0,void 0,r),n}});const n=["keys","values","entries",Symbol.iterator];return n.forEach(n=>{r[n]=Vn(n,e,t)}),r}function Jn(e,t){const r=Xn(e,t);return(t,n,i)=>"__v_isReactive"===n?!e:"__v_isReadonly"===n?e:"__v_raw"===n?t:Reflect.get($r(r,n)&&n in t?r:t,n,i)}const Gn={get:Jn(!1,!1)},Kn={get:Jn(!0,!1)};const Zn=new WeakMap,Qn=new WeakMap,ei=new WeakMap,ti=new WeakMap;function ri(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ni(e){return e["__v_skip"]||!Object.isExtensible(e)?0:ri(Zr(e))}function ii(e){return ci(e)?e:si(e,!1,qn,Gn,Zn)}function oi(e){return si(e,!0,Hn,Kn,ei)}function si(e,t,r,n,i){if(!Jr(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const o=ni(e);if(0===o)return e;const s=i.get(e);if(s)return s;const a=new Proxy(e,2===o?n:r);return i.set(e,a),a}function ai(e){return ci(e)?ai(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function ci(e){return!(!e||!e["__v_isReadonly"])}function ui(e){return!(!e||!e["__v_isShallow"])}function li(e){return!!e&&!!e["__v_raw"]}function hi(e){const t=e&&e["__v_raw"];return t?hi(t):e}const di=e=>Jr(e)?ii(e):e,pi=e=>Jr(e)?oi(e):e;function fi(e){return!!e&&!0===e["__v_isRef"]}function mi(e){return fi(e)?e.value:e}function gi(e){const t=Wr(e)?new Array(e.length):{};for(const r in e)t[r]=yi(e,r);return t}class vi{constructor(e,t,r){this._object=e,this._defaultValue=r,this["__v_isRef"]=!0,this._value=void 0,this._key=Xr(t)?t:String(t),this._raw=hi(e);let n=!0,i=e;if(!Wr(e)||Xr(this._key)||!Qr(this._key))do{n=!li(i)||ui(i)}while(n&&(i=i["__v_raw"]));this._shallow=n}get value(){let e=this._object[this._key];return this._shallow&&(e=mi(e)),this._value=void 0===e?this._defaultValue:e}set value(e){if(this._shallow&&fi(this._raw[this._key])){const t=this._object[this._key];if(fi(t))return void(t.value=e)}this._object[this._key]=e}get dep(){return Cn(this._raw,this._key)}}function yi(e,t,r){return new vi(e,t,r)}function wi(e,t,r){const n=ii({isLoading:!1,isSuccessful:!1,hasError:!1,response:null,error:null});return n.isLoading=!0,n.error=null,e.request(t).then(r).then(e=>{n.response=e,n.isSuccessful=!0}).catch(e=>{n.error=e?.data,n.hasError=!0}).finally(()=>{n.isLoading=!1}),n}function bi(e,t,r){const n=ii({response:null,error:null,isLoading:!1,isSuccessful:!1,hasError:!1}),i=async i=>{const o=e.request(i?{...t,...i}:t);n.isLoading=!0;try{const e=await o.then(r);return n.response=e,n.error=null,n.isSuccessful=!0,n.hasError=!1,e}catch(s){throw n.response=null,n.error=s?.data,n.isSuccessful=!1,n.hasError=!0,new Error(s?.data)}finally{n.isLoading=!1}};return{...gi(n),execute:i}}const _i=(e,t,r)=>{if(Array.isArray(e)){const n=[];return e.forEach(e=>{n.push(_i(e,t,r))}),n}return e.___group_name=h.getObjectProperty(e,t,""),e.___identity=h.getObjectProperty(e,r,""),e};class ki{eventTarget;constructor(e=""){this.eventTarget=document.appendChild(document.createComment(e))}on(e,t){this.eventTarget.addEventListener(e,t)}once(e,t){this.eventTarget.addEventListener(e,t,{once:!0})}off(e,t){this.eventTarget.removeEventListener(e,t)}emit(e,t){const r=new CustomEvent(e,{detail:t});return this.eventTarget.dispatchEvent(r)}}const Si=new ki("shr-event-bus");var xi=__webpack_require__(2242),Ci=__webpack_require__.n(xi);class Ei{pusher;setupPusherConnection(e,t){this.pusher=new(Ci())(e,t)}}var Ai,Oi=new Ei;if("undefined"===typeof window){var Ii={hostname:""};Ai={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:Ii,referrer:""},screen:{width:0,height:0},location:Ii,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else Ai=window;var Ti={DEBUG:!1,LIB_VERSION:"2.78.0"},Mi="__mp_targeting",Ri="__mp_recorder",Pi="__MP_RECORDER_FILENAME__",Di="__MP_TARGETING_FILENAME__";function Li(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Bi(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(u){return void r(u)}a.done?t(c):Promise.resolve(c).then(n,i)}function Ni(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){Bi(o,n,i,s,a,"next",e)}function a(e){Bi(o,n,i,s,a,"throw",e)}s(void 0)})}}function ji(e,t,r){return ji=Ki()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=Function.bind.apply(e,n),o=new i;return r&&Yi(o,r.prototype),o},ji.apply(null,arguments)}function Fi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ui(e,t,r){return t&&Fi(e.prototype,t),e}function zi(){return zi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zi.apply(this,arguments)}function qi(e){return qi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},qi(e)}function Hi(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yi(e,t)}function $i(e,t){return null!=t&&"undefined"!==typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Wi(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function Vi(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function Yi(e,t){return Yi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Yi(e,t)}function Xi(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Ji(e,t){if(e){if("string"===typeof e)return Li(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Li(e,t):void 0}}function Gi(e){var t="function"===typeof Map?new Map:void 0;return Gi=function(e){if(null===e||!Wi(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return ji(e,arguments,qi(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Yi(r,e)},Gi(e)}function Ki(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(yk){}return(Ki=function(){return!!e})()}function Zi(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=Ji(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Qi(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return c([e,t])}}function c(o){if(r)throw new TypeError("Generator is already executing.");while(s)try{if(r=1,n&&(i=2&o[0]?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function eo(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var to,ro=Object.defineProperty,no=function(e,t,r){return t in e?ro(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},io=function(e,t,r){return no(e,"symbol"!==("undefined"===typeof t?"undefined":Xi(t))?t+"":t,r)},oo=Object.defineProperty,so=function(e,t,r){return t in e?oo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},ao=function(e,t,r){return so(e,"symbol"!==("undefined"===typeof t?"undefined":Xi(t))?t+"":t,r)},co=function(e){return e[e["Document"]=0]="Document",e[e["DocumentType"]=1]="DocumentType",e[e["Element"]=2]="Element",e[e["Text"]=3]="Text",e[e["CDATA"]=4]="CDATA",e[e["Comment"]=5]="Comment",e}(co||{}),uo={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},lo={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ho={},po=function(){return!!globalThis.Zone};function fo(e){if(ho[e])return ho[e];var t=globalThis[e],r=t.prototype,n=e in uo?uo[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in lo?lo[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"===typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!po())return ho[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;return document.body.removeChild(a),u?ho[e]=u:r}catch(l){return r}}var mo={};function go(e,t,r){var n,i=e+"."+String(r);if(mo[i])return mo[i].call(t);var o=fo(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(mo[i]=s,s.call(t)):t[r]}var vo={};function yo(e,t,r){var n=e+"."+String(r);if(vo[n])return vo[n].bind(t);var i=fo(e),o=i[r];return"function"!==typeof o?t[r]:(vo[n]=o,o.bind(t))}function wo(e){return go("Node",e,"childNodes")}function bo(e){return go("Node",e,"parentNode")}function _o(e){return go("Node",e,"parentElement")}function ko(e){return go("Node",e,"textContent")}function So(e,t){return yo("Node",e,"contains")(t)}function xo(e){return yo("Node",e,"getRootNode")()}function Co(e){return e&&"host"in e?go("ShadowRoot",e,"host"):null}function Eo(e){return e.styleSheets}function Ao(e){return e&&"shadowRoot"in e?go("Element",e,"shadowRoot"):null}function Oo(e,t){return go("Element",e,"querySelector")(t)}function Io(e,t){return go("Element",e,"querySelectorAll")(t)}function To(){return fo("MutationObserver").constructor}function Mo(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"===typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(o){return function(){}}}var Ro={childNodes:wo,parentNode:bo,parentElement:_o,textContent:ko,contains:So,getRootNode:xo,host:Co,styleSheets:Eo,shadowRoot:Ao,querySelector:Oo,querySelectorAll:Io,mutationObserver:To,patch:Mo};function Po(e){return e.nodeType===e.ELEMENT_NODE}function Do(e){var t=e&&"host"in e&&"mode"in e&&Ro.host(e)||null;return Boolean(t&&"shadowRoot"in t&&Ro.shadowRoot(t)===e)}function Lo(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Bo(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function No(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function jo(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href);var n=Array.from(t,function(e){return Fo(e,r)}).join("");return Bo(n)}catch(i){return null}}function Fo(e,t){if(zo(e)){var r;try{r=jo(e.styleSheet)||No(e)}catch(i){r=e.cssText}return e.styleSheet.href?rs(r,e.styleSheet.href):r}var n=e.cssText;return qo(e)&&e.selectorText.includes(":")&&(n=Uo(n)),t?rs(n,t):n}function Uo(e){var t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function zo(e){return"styleSheet"in e}function qo(e){return"selectorText"in e}var Ho=function(){function e(){ao(this,"idNodeMap",new Map),ao(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){var t;if(!e)return-1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e,t){var r=this;void 0===t&&(t=!1);var n=this.getId(e);this.idNodeMap.delete(n),t&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(e){return r.removeNodeFromMap(e,t)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function $o(){return new Ho}function Wo(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",c=i&&Vo(i);return(r[n.toLowerCase()]||c&&r[c])&&(a=s?s(a,t):"*".repeat(a.length)),a}function Vo(e){return e.toLowerCase()}var Yo="__rrweb_original__";function Xo(e){var t=e.getContext("2d");if(!t)return!0;for(var r=50,n=0;n<e.width;n+=r)for(var i=0;i<e.height;i+=r){var o=t.getImageData,s=Yo in o?o[Yo]:o,a=new Uint32Array(s.call(t,n,i,Math.min(r,e.width-n),Math.min(r,e.height-i)).data.buffer);if(a.some(function(e){return 0!==e}))return!1}return!0}function Jo(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Vo(t):null}function Go(e,t){var r;try{r=new URL(e,null!=t?t:window.location.href)}catch(s){return null}var n,i=/\.([0-9a-z]+)(?:$)/i,o=r.pathname.match(i);return null!=(n=null==o?void 0:o[1])?n:null}function Ko(e){var t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}var Zo=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Qo=/^(?:[a-z+]+:)?\/\//i,es=/^www\..*/i,ts=/^(data:)([^,]*),(.*)/i;function rs(e,t){return(e||"").replace(Zo,function(e,r,n,i,o,s){var a=n||o||s,c=r||i||"";if(!a)return e;if(Qo.test(a)||es.test(a))return"url("+c+a+c+")";if(ts.test(a))return"url("+c+a+c+")";if("/"===a[0])return"url("+c+(Ko(t)+a)+c+")";var u=t.split("/"),l=a.split("/");u.pop();for(var h,d=Zi(l);!(h=d()).done;){var p=h.value;"."!==p&&(".."===p?u.pop():u.push(p))}return"url("+c+u.join("/")+c+")"})}function ns(e,t){return void 0===t&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function is(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),i=[],o=0;if(n.length>1&&e&&"string"===typeof e)for(var s=ns(e,r),a=s.length/e.length,c=1;c<n.length;c++)if(n[c].textContent&&"string"===typeof n[c].textContent){for(var u=ns(n[c].textContent,r),l=100,h=3;h<u.length;h++)if(!u[h].match(/[a-zA-Z0-9]/)&&-1===u.indexOf(u.substring(0,h),1))break;for(;h<u.length;h++){var d=u.substring(0,h),p=s.split(d),f=-1;if(2===p.length)f=p[0].length;else if(p.length>2&&""===p[0]&&""!==n[c-1].textContent)f=s.indexOf(d,1);else if(1===p.length){if(d=d.substring(0,d.length-1),p=s.split(d),p.length<=1)return i.push(e),i;h=l+1}else h===u.length-1&&(f=s.indexOf(d));if(p.length>=2&&h>l){var m=n[c-1].textContent;if(m&&"string"===typeof m){var g=ns(m).length;f=s.indexOf(d,g)}-1===f&&(f=p[0].length)}if(-1!==f){for(var v=Math.floor(f/a);v>0&&v<e.length;){if(o+=1,o>50*n.length)return i.push(e),i;var y=ns(e.substring(0,v),r);if(y.length===f){i.push(e.substring(0,v)),e=e.substring(v),s=s.substring(f);break}y.length<f?v+=Math.max(1,Math.floor((f-y.length)/a)):v-=Math.max(1,Math.floor((y.length-f)*a))}break}}}return i.push(e),i}function os(e,t){return is(e,t).join("/* rr_split */")}var ss,as,cs=1,us=new RegExp("[^a-z0-9-_:]"),ls=-2;function hs(){return cs++}function ds(e){if($i(e,HTMLFormElement))return"form";var t=Vo(e.tagName);return us.test(t)?"div":t}var ps=/^[^ \t\n\r\u000c]+/,fs=/^[, \t\n\r\u000c]+/;function ms(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}var i=[];while(1){if(n(fs),r>=t.length)break;var o=n(ps);if(","===o.slice(-1))o=vs(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=vs(e,o);var a=!1;while(1){var c=t.charAt(r);if(""===c){i.push((o+s).trim());break}if(a)")"===c&&(a=!1);else{if(","===c){r+=1,i.push((o+s).trim());break}"("===c&&(a=!0)}s+=c,r+=1}}}return i.join(", ")}var gs=new WeakMap;function vs(e,t){return t&&""!==t.trim()?ws(e,t):t}function ys(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function ws(e,t){var r=gs.get(e);if(r||(r=e.createElement("a"),gs.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function bs(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?vs(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?ms(e,n):"style"===r?rs(n,ws(e)):"object"===t&&"data"===r?vs(e,n):n:vs(e,n):n}function _s(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function ks(e,t,r){try{if("string"===typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch(o){}return!1}function Ss(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&Ss(Ro.parentNode(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&Ss(Ro.parentNode(e),t,r)}function xs(e,t,r,n){var i;if(Po(e)){if(i=e,!Ro.childNodes(i).length)return!1}else{if(null===Ro.parentElement(e))return!1;i=Ro.parentElement(e)}try{if("string"===typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(Ss(i,t,n))return!0;if(r)if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}catch(o){}return!1}function Cs(e,t,r){var n=e.contentWindow;if(n){var i,o=!1;try{i=n.document.readyState}catch(c){return}if("complete"===i){var s="about:blank";if(n.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout(function(){o||(t(),o=!0)},r);e.addEventListener("load",function(){clearTimeout(a),o=!0,t()})}}}function Es(e,t,r){var n,i=!1;try{n=e.sheet}catch(s){return}if(!n){var o=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(o),i=!0,t()})}}function As(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.needsMask,a=t.inlineStylesheet,c=t.maskInputOptions,u=void 0===c?{}:c,l=t.maskTextFn,h=t.maskInputFn,d=t.dataURLOptions,p=void 0===d?{}:d,f=t.inlineImages,m=t.recordCanvas,g=t.keepIframeSrcFn,v=t.newlyAddedElement,y=void 0!==v&&v,w=t.cssCaptured,b=void 0!==w&&w,_=Os(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:co.Document,childNodes:[],compatMode:e.compatMode}:{type:co.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:co.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:_};case e.ELEMENT_NODE:return Ts(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:u,maskInputFn:h,dataURLOptions:p,inlineImages:f,recordCanvas:m,keepIframeSrcFn:g,newlyAddedElement:y,rootId:_});case e.TEXT_NODE:return Is(e,{doc:r,needsMask:s,maskTextFn:l,rootId:_,cssCaptured:b});case e.CDATA_SECTION_NODE:return{type:co.CDATA,textContent:"",rootId:_};case e.COMMENT_NODE:return{type:co.Comment,textContent:Ro.textContent(e)||"",rootId:_};default:return!1}}function Os(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}function Is(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,s=Ro.parentNode(e),a=s&&s.tagName,c="",u="STYLE"===a||void 0,l="SCRIPT"===a||void 0;return l?c="SCRIPT_PLACEHOLDER":o||(c=Ro.textContent(e),u&&c&&(c=rs(c,ws(t.doc)))),!u&&!l&&c&&r&&(c=n?n(c,Ro.parentElement(e)):c.replace(/[\S]/g,"*")),{type:co.Text,textContent:c||"",rootId:i}}function Ts(e,t){for(var r,n=t.doc,i=t.blockClass,o=t.blockSelector,s=t.inlineStylesheet,a=t.maskInputOptions,c=void 0===a?{}:a,u=t.maskInputFn,l=t.dataURLOptions,h=void 0===l?{}:l,d=t.inlineImages,p=t.recordCanvas,f=t.keepIframeSrcFn,m=t.newlyAddedElement,g=void 0!==m&&m,v=t.rootId,y=ks(e,i,o),w=ds(e),b={},_=e.attributes.length,k=0;k<_;k++){var S=e.attributes[k];_s(w,S.name,S.value)||(b[S.name]=bs(n,w,Vo(S.name),S.value))}if("link"===w&&s){var x=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),C=null;x&&(C=jo(x)),C&&(delete b.rel,delete b.href,b._cssText=C)}if("style"===w&&e.sheet){var E=jo(e.sheet);E&&(e.childNodes.length>1&&(E=os(E,e)),b._cssText=E)}if("input"===w||"textarea"===w||"select"===w){var A=e.value,O=e.checked;"radio"!==b.type&&"checkbox"!==b.type&&"submit"!==b.type&&"button"!==b.type&&A?b.value=Wo({element:e,type:Jo(e),tagName:w,value:A,maskInputOptions:c,maskInputFn:u}):O&&(b.checked=O)}if("option"===w&&(e.selected&&!c["select"]?b.selected=!0:delete b.selected),"dialog"===w&&e.open&&(b.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===w&&p)if("2d"===e.__context)Xo(e)||(b.rr_dataURL=e.toDataURL(h.type,h.quality));else if(!("__context"in e)){var I=e.toDataURL(h.type,h.quality),T=n.createElement("canvas");T.width=e.width,T.height=e.height;var M=T.toDataURL(h.type,h.quality);I!==M&&(b.rr_dataURL=I)}if("img"===w&&d){ss||(ss=n.createElement("canvas"),as=ss.getContext("2d"));var R=e,P=R.currentSrc||R.getAttribute("src")||"<unknown-src>",D=R.crossOrigin,L=function(){R.removeEventListener("load",L);try{ss.width=R.naturalWidth,ss.height=R.naturalHeight,as.drawImage(R,0,0),b.rr_dataURL=ss.toDataURL(h.type,h.quality)}catch(e){if("anonymous"!==R.crossOrigin)return R.crossOrigin="anonymous",void(R.complete&&0!==R.naturalWidth?L():R.addEventListener("load",L));console.warn("Cannot inline img src="+P+"! Error: "+e)}"anonymous"===R.crossOrigin&&(D?b.crossOrigin=D:R.removeAttribute("crossorigin"))};R.complete&&0!==R.naturalWidth?L():R.addEventListener("load",L)}if("audio"===w||"video"===w){var B=b;B.rr_mediaState=e.paused?"paused":"played",B.rr_mediaCurrentTime=e.currentTime,B.rr_mediaPlaybackRate=e.playbackRate,B.rr_mediaMuted=e.muted,B.rr_mediaLoop=e.loop,B.rr_mediaVolume=e.volume}if(g||(e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop)),y){var N=e.getBoundingClientRect(),j=N.width,F=N.height;b={class:b.class,rr_width:j+"px",rr_height:F+"px"}}"iframe"!==w||f(b.src)||(e.contentDocument||(b.rr_src=b.src),delete b.src);try{customElements.get(w)&&(r=!0)}catch(U){}return{type:co.Element,tagName:w,attributes:b,childNodes:[],isSVG:ys(e)||void 0,needBlock:y,rootId:v,isCustom:r}}function Ms(e){return void 0===e||null===e?"":e.toLowerCase()}function Rs(e,t){if(t.comment&&e.type===co.Comment)return!0;if(e.type===co.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"===typeof e.attributes.href&&"js"===Go(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Ms(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Ms(e.attributes.name)||"icon"===Ms(e.attributes.rel)||"apple-touch-icon"===Ms(e.attributes.rel)||"shortcut icon"===Ms(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Ms(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Ms(e.attributes.property).match(/^(og|twitter|fb):/)||Ms(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Ms(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Ms(e.attributes.name)||"googlebot"===Ms(e.attributes.name)||"bingbot"===Ms(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Ms(e.attributes.name)||"generator"===Ms(e.attributes.name)||"framework"===Ms(e.attributes.name)||"publisher"===Ms(e.attributes.name)||"progid"===Ms(e.attributes.name)||Ms(e.attributes.property).match(/^article:/)||Ms(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Ms(e.attributes.name)||"yandex-verification"===Ms(e.attributes.name)||"csrf-token"===Ms(e.attributes.name)||"p:domain_verify"===Ms(e.attributes.name)||"verify-v1"===Ms(e.attributes.name)||"verification"===Ms(e.attributes.name)||"shopify-checkout-api-token"===Ms(e.attributes.name)))return!0}}return!1}function Ps(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,c=t.skipChild,u=void 0!==c&&c,l=t.inlineStylesheet,h=void 0===l||l,d=t.maskInputOptions,p=void 0===d?{}:d,f=t.maskTextFn,m=t.maskInputFn,g=t.slimDOMOptions,v=t.dataURLOptions,y=void 0===v?{}:v,w=t.inlineImages,b=void 0!==w&&w,_=t.recordCanvas,k=void 0!==_&&_,S=t.onSerialize,x=t.onIframeLoad,C=t.iframeLoadTimeout,E=void 0===C?5e3:C,A=t.onStylesheetLoad,O=t.stylesheetLoadTimeout,I=void 0===O?5e3:O,T=t.keepIframeSrcFn,M=void 0===T?function(){return!1}:T,R=t.newlyAddedElement,P=void 0!==R&&R,D=t.cssCaptured,L=void 0!==D&&D,B=t.needsMask,N=t.preserveWhiteSpace,j=void 0===N||N;if(!B){var F=void 0===B;B=xs(e,s,a,F)}var U,z=As(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:B,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,keepIframeSrcFn:M,newlyAddedElement:P,cssCaptured:L});if(!z)return console.warn(e,"not serialized"),null;U=n.hasNode(e)?n.getId(e):Rs(z,g)||!j&&z.type===co.Text&&!z.textContent.replace(/^\s+|\s+$/gm,"").length?ls:hs();var q=Object.assign(z,{id:U});if(n.add(e,q),U===ls)return null;S&&S(e);var H=!u;if(q.type===co.Element){H=H&&!q.needBlock,delete q.needBlock;var $=Ro.shadowRoot(e);$&&Lo($)&&(q.isShadowHost=!0)}if((q.type===co.Document||q.type===co.Element)&&H){g.headWhitespace&&q.type===co.Element&&"head"===q.tagName&&(j=!1);var W={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:B,maskTextClass:s,maskTextSelector:a,skipChild:u,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:A,stylesheetLoadTimeout:I,keepIframeSrcFn:M,cssCaptured:!1};if(q.type===co.Element&&"textarea"===q.tagName&&void 0!==q.attributes.value);else{q.type===co.Element&&void 0!==q.attributes._cssText&&"string"===typeof q.attributes._cssText&&(W.cssCaptured=!0);for(var V,Y=Zi(Array.from(Ro.childNodes(e)));!(V=Y()).done;){var X=V.value,J=Ps(X,W);J&&q.childNodes.push(J)}}var G=null;if(Po(e)&&(G=Ro.shadowRoot(e)))for(var K,Z=Zi(Array.from(Ro.childNodes(G)));!(K=Z()).done;){var Q=K.value,ee=Ps(Q,W);ee&&(Lo(G)&&(ee.isShadow=!0),q.childNodes.push(ee))}}var te=Ro.parentNode(e);return te&&Do(te)&&Lo(te)&&(q.isShadow=!0),q.type===co.Element&&"iframe"===q.tagName&&Cs(e,function(){var t=e.contentDocument;if(t&&x){var r=Ps(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:B,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:A,stylesheetLoadTimeout:I,keepIframeSrcFn:M});r&&x(e,r)}},E),q.type===co.Element&&"link"===q.tagName&&"string"===typeof q.attributes.rel&&("stylesheet"===q.attributes.rel||"preload"===q.attributes.rel&&"string"===typeof q.attributes.href&&"css"===Go(q.attributes.href))&&Es(e,function(){if(A){var t=Ps(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:B,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:A,stylesheetLoadTimeout:I,keepIframeSrcFn:M});t&&A(e,t)}},I),q}function Ds(e,t){var r=t||{},n=r.mirror,i=void 0===n?new Ho:n,o=r.blockClass,s=void 0===o?"rr-block":o,a=r.blockSelector,c=void 0===a?null:a,u=r.maskTextClass,l=void 0===u?"rr-mask":u,h=r.maskTextSelector,d=void 0===h?null:h,p=r.inlineStylesheet,f=void 0===p||p,m=r.inlineImages,g=void 0!==m&&m,v=r.recordCanvas,y=void 0!==v&&v,w=r.maskAllInputs,b=void 0!==w&&w,_=r.maskTextFn,k=r.maskInputFn,S=r.slimDOM,x=void 0!==S&&S,C=r.dataURLOptions,E=r.preserveWhiteSpace,A=r.onSerialize,O=r.onIframeLoad,I=r.iframeLoadTimeout,T=r.onStylesheetLoad,M=r.stylesheetLoadTimeout,R=r.keepIframeSrcFn,P=void 0===R?function(){return!1}:R,D=!0===b?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:!1===b?{password:!0}:b,L=!0===x||"all"===x?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===x,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===x?{}:x;return Ps(e,{doc:e,mirror:i,blockClass:s,blockSelector:c,maskTextClass:l,maskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:D,maskTextFn:_,maskInputFn:k,slimDOMOptions:L,dataURLOptions:C,inlineImages:g,recordCanvas:y,preserveWhiteSpace:E,onSerialize:A,onIframeLoad:O,iframeLoadTimeout:I,onStylesheetLoad:T,stylesheetLoadTimeout:M,keepIframeSrcFn:P,newlyAddedElement:!1})}function Ls(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function Bs(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return $i(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var Ns={exports:{}},js=String,Fs=function(){return{isColorSupported:!1,reset:js,bold:js,dim:js,italic:js,underline:js,inverse:js,hidden:js,strikethrough:js,black:js,red:js,green:js,yellow:js,blue:js,magenta:js,cyan:js,white:js,gray:js,bgBlack:js,bgRed:js,bgGreen:js,bgYellow:js,bgBlue:js,bgMagenta:js,bgCyan:js,bgWhite:js}};Ns.exports=Fs(),Ns.exports.createColors=Fs;var Us=Ns.exports,zs={},qs=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"})),Hs=Bs(qs),$s=Us,Ws=Hs,Vs=function(e){function t(r,n,i,o,s,a){var c;return c=e.call(this,r)||this,c.name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),"undefined"!==typeof n&&"undefined"!==typeof i&&("number"===typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}Hi(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>","undefined"!==typeof this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=$s.isColorSupported),Ws&&e&&(r=Ws(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=$s.createColors(!0),l=u.bold,h=u.gray,d=u.red;n=function(e){return l(d(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(Gi(Error)),Ys=Vs;Vs.default=Vs;var Xs={};Xs.isClean=Symbol("isClean"),Xs.my=Symbol("my");var Js={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Gs(e){return e[0].toUpperCase()+e.slice(1)}var Ks=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if("undefined"!==typeof e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");var n=e.parent,i=0;while(n&&"root"!==n.type)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){var t=e.nodes.length-1;while(t>0){if("comment"!==e.nodes[t].type)break;t-=1}for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&(n=e.raws[t],"undefined"!==typeof n))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Js[r];var o=e.root();if(o.rawCache||(o.rawCache={}),"undefined"!==typeof o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s="raw"+Gs(r);return this[s]?n=this[s](o,e):o.walk(function(e){if(n=e.raws[t],"undefined"!==typeof n)return!1}),"undefined"===typeof n&&(n=Js[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&"undefined"!==typeof e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&(t=e.raws.between,"undefined"!==typeof t))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&"undefined"!==typeof r.raws.before)return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if("undefined"!==typeof e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,"undefined"!==typeof t))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&"undefined"!==typeof r.raws.before){var i=r.raws.before.split("\n");return t=i[i.length-1],t=t.replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,"undefined"!==typeof t))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),Zs=Ks;Ks.default=Ks;var Qs=Zs;function ea(e,t){var r=new Qs(t);r.stringify(e)}var ta=ea;ea.default=ea;var ra=Xs.isClean,na=Xs.my,ia=Ys,oa=Zs,sa=ta;function aa(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o="undefined"===typeof i?"undefined":Xi(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return aa(e,r)}):("object"===o&&null!==i&&(i=aa(i)),r[n]=i)}return r}var ca=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[ra]=!1,this[na]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Zi(e[t]);!(r=n()).done;){var i=r.value;"function"===typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=aa(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new ia(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[ra]){this[ra]=!1;var e=this;while(e=e.parent)e[ra]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();var n=t.indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"===typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){var r=new oa;return r.raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=Zi(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){var e=this;while(e.parent&&"document"!==e.parent.type)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return"object"===("undefined"===typeof e?"undefined":Xi(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===("undefined"===typeof s?"undefined":Xi(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=sa),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},Ui(e,[{key:"proxyOf",get:function(){return this}}]),e}(),ua=ca;ca.default=ca;var la=ua,ha=function(e){function t(t){var r;return t&&"undefined"!==typeof t.value&&"string"!==typeof t.value&&(t=zi({},t,{value:String(t.value)})),r=e.call(this,t)||this,r.type="decl",r}return Hi(t,e),Ui(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(la),da=ha;ha.default=ha;var pa="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",fa=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=pa[64*Math.random()|0];return t},ma={nanoid:fa},ga=Hs.SourceMapConsumer,va=Hs.SourceMapGenerator,ya=Hs.existsSync,wa=Hs.readFileSync,ba=Hs.dirname,_a=Hs.join;function ka(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var Sa=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=ba(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new ga(this.text)),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(e)||i.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return ka(e.substr(RegExp.lastMatch.length));var o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===("undefined"===typeof e?"undefined":Xi(e))&&("string"===typeof e.mappings||"string"===typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=ba(e),ya(e))return this.mapFile=e,wa(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"===typeof t)return t;if("function"!==typeof t){if($i(t,ga))return va.fromSourceMap(t).toString();if($i(t,va))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=_a(ba(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),xa=Sa;Sa.default=Sa;var Ca=Hs.SourceMapConsumer,Ea=Hs.SourceMapGenerator,Aa=Hs.fileURLToPath,Oa=Hs.pathToFileURL,Ia=Hs.isAbsolute,Ta=Hs.resolve,Ma=ma.nanoid,Ra=Hs,Pa=Ys,Da=xa,La=Symbol("fromOffsetCache"),Ba=Boolean(Ca&&Ea),Na=Boolean(Ta&&Ia),ja=function(){function e(e,t){if(void 0===t&&(t={}),null===e||"undefined"===typeof e||"object"===("undefined"===typeof e?"undefined":Xi(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Na||/^\w+:\/\//.test(t.from)||Ia(t.from)?this.file=t.from:this.file=Ta(t.from)),Na&&Ba){var r=new Da(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+Ma(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===("undefined"===typeof t?"undefined":Xi(t))){var a=t,c=r;if("number"===typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"===typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var d=this.origin(t,r,o,s);return i=d?new Pa(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new Pa(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin),i.input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(Oa&&(i.input.url=Oa(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[La])r=this[La];else{var n=this.css.split("\n");r=new Array(n.length);for(var i=0,o=0,s=n.length;o<s;o++)r[o]=i,i+=n[o].length+1;this[La]=r}t=r[r.length-1];var a=0;if(e>=t)a=r.length-1;else{var c,u=r.length-2;while(a<u)if(c=a+(u-a>>1),e<r[c])u=c-1;else{if(!(e>=r[c+1])){a=c;break}a=c+1}}return{col:e-r[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Ta(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"===typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=Ia(a.source)?Oa(a.source):new URL(a.source,this.map.consumer().sourceRoot||Oa(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!Aa)throw new Error("file: protocol is not available in this PostCSS build");c.file=Aa(o)}var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=zi({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Ui(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Fa=ja;ja.default=ja,Ra&&Ra.registerInput&&Ra.registerInput(ja);var Ua=Hs.SourceMapConsumer,za=Hs.SourceMapGenerator,qa=Hs.dirname,Ha=Hs.relative,$a=Hs.resolve,Wa=Hs.sep,Va=Hs.pathToFileURL,Ya=Fa,Xa=Boolean(Ua&&za),Ja=Boolean(qa&&$a&&Ha&&Wa),Ga=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"===typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"===typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=Zi(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||qa(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Ua(r.text),o.sourcesContent&&(o.sourcesContent=null)):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),Ja&&Xa&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=za.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new za({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new za({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),t=a.match(/\n/g),t?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}},h="decl"===c.type||"atrule"===c.type&&!c.nodes;h&&c===l.last&&!l.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||("undefined"!==typeof this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if("undefined"!==typeof this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return("undefined"===typeof e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return"undefined"!==typeof this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return"undefined"!==typeof this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?qa(this.opts.to):".";"string"===typeof this.mapOpts.annotation&&(r=qa($a(r,this.mapOpts.annotation)));var n=Ha(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new Ya(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Va){var r=Va(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===Wa&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Ka=Ga,Za=ua,Qa=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="comment",r}return Hi(t,e),t}(Za),ec=Qa;Qa.default=Qa;var tc,rc,nc,ic,oc=Xs.isClean,sc=Xs.my,ac=da,cc=ec,uc=ua;function lc(e){return e.map(function(e){return e.nodes&&(e.nodes=lc(e.nodes)),delete e.source,e})}function hc(e){if(e[oc]=!1,e.proxyOf.nodes)for(var t,r=Zi(e.proxyOf.nodes);!(t=r()).done;){var n=t.value;hc(n)}}var dc=function(e){function t(){return e.apply(this,arguments)||this}Hi(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Zi(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=Zi(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=Zi(this.nodes);!(r=n()).done;){var i=r.value;i.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){var t,r,n=this.getIterator();while(this.indexes[n]<this.proxyOf.nodes.length){if(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1===r)break;this.indexes[n]+=1}return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"===typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"===typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"===typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=Zi(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)r=this.indexes[c],n<r&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=Zi(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)r=this.indexes[u],n<=r&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"===typeof e)e=lc(tc(e).nodes);else if("undefined"===typeof e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=Zi(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=Zi(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if("undefined"===typeof e.value)throw new Error("Value field is missed in node creation");"string"!==typeof e.value&&(e.value=String(e.value)),e=[new ac(e)]}else if(e.selector)e=[new rc(e)];else if(e.name)e=[new nc(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new cc(e)]}var l=e.map(function(e){return e[sc]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[oc]&&hc(e),"undefined"===typeof e.raws.before&&r&&"undefined"!==typeof r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return l},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=Zi(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=Zi(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=Zi(this.proxyOf.nodes);!(e=t()).done;){var r=e.value;r.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(i){throw t.addToError(i)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?$i(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?$i(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?$i(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},Ui(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(uc);dc.registerParse=function(e){tc=e},dc.registerRule=function(e){rc=e},dc.registerAtRule=function(e){nc=e},dc.registerRoot=function(e){ic=e};var pc=dc;dc.default=dc,dc.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,nc.prototype):"rule"===e.type?Object.setPrototypeOf(e,rc.prototype):"decl"===e.type?Object.setPrototypeOf(e,ac.prototype):"comment"===e.type?Object.setPrototypeOf(e,cc.prototype):"root"===e.type&&Object.setPrototypeOf(e,ic.prototype),e[sc]=!0,e.nodes&&e.nodes.forEach(function(e){dc.rebuild(e)})};var fc,mc,gc=pc,vc=function(e){function t(t){var r;return r=e.call(this,zi({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}Hi(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new fc(new mc,this,e);return t.stringify()},t}(gc);vc.registerLazyResult=function(e){fc=e},vc.registerProcessor=function(e){mc=e};var yc=vc;vc.default=vc;var wc=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),bc=wc;wc.default=wc;var _c=bc,kc=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new _c(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},Ui(e,[{key:"content",get:function(){return this.css}}]),e}(),Sc=kc;kc.default=kc;var xc="'".charCodeAt(0),Cc='"'.charCodeAt(0),Ec="\\".charCodeAt(0),Ac="/".charCodeAt(0),Oc="\n".charCodeAt(0),Ic=" ".charCodeAt(0),Tc="\f".charCodeAt(0),Mc="\t".charCodeAt(0),Rc="\r".charCodeAt(0),Pc="[".charCodeAt(0),Dc="]".charCodeAt(0),Lc="(".charCodeAt(0),Bc=")".charCodeAt(0),Nc="{".charCodeAt(0),jc="}".charCodeAt(0),Fc=";".charCodeAt(0),Uc="*".charCodeAt(0),zc=":".charCodeAt(0),qc="@".charCodeAt(0),Hc=/[\t\n\f\r "#'()/;[\\\]{}]/g,$c=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Wc=/.[\r\n"'(/\\]/,Vc=/[\da-f]/i,Yc=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,d=e.css.valueOf(),p=t.ignoreErrors,f=d.length,m=0,g=[],v=[];function y(){return m}function w(t){throw e.error("Unclosed "+t,m)}function b(){return 0===v.length&&m>=f}function _(e){if(v.length)return v.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(m),r){case Oc:case Ic:case Mc:case Rc:case Tc:n=m;do{n+=1,r=d.charCodeAt(n)}while(r===Ic||r===Oc||r===Mc||r===Rc||r===Tc);h=["space",d.slice(m,n)],m=n-1;break;case Pc:case Dc:case Nc:case jc:case zc:case Fc:case Bc:var y=String.fromCharCode(r);h=[y,y,m];break;case Lc:if(u=g.length?g.pop()[1]:"",l=d.charCodeAt(m+1),"url"===u&&l!==xc&&l!==Cc&&l!==Ic&&l!==Oc&&l!==Mc&&l!==Tc&&l!==Rc){n=m;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=m;break}w("bracket")}c=n;while(d.charCodeAt(c-1)===Ec)c-=1,a=!a}while(a);h=["brackets",d.slice(m,n+1),m,n],m=n}else n=d.indexOf(")",m+1),o=d.slice(m,n+1),-1===n||Wc.test(o)?h=["(","(",m]:(h=["brackets",o,m,n],m=n);break;case xc:case Cc:i=r===xc?"'":'"',n=m;do{if(a=!1,n=d.indexOf(i,n+1),-1===n){if(p||t){n=m+1;break}w("string")}c=n;while(d.charCodeAt(c-1)===Ec)c-=1,a=!a}while(a);h=["string",d.slice(m,n+1),m,n],m=n;break;case qc:Hc.lastIndex=m+1,Hc.test(d),n=0===Hc.lastIndex?d.length-1:Hc.lastIndex-2,h=["at-word",d.slice(m,n+1),m,n],m=n;break;case Ec:n=m,s=!0;while(d.charCodeAt(n+1)===Ec)n+=1,s=!s;if(r=d.charCodeAt(n+1),s&&r!==Ac&&r!==Ic&&r!==Oc&&r!==Mc&&r!==Rc&&r!==Tc&&(n+=1,Vc.test(d.charAt(n)))){while(Vc.test(d.charAt(n+1)))n+=1;d.charCodeAt(n+1)===Ic&&(n+=1)}h=["word",d.slice(m,n+1),m,n],m=n;break;default:r===Ac&&d.charCodeAt(m+1)===Uc?(n=d.indexOf("*/",m+2)+1,0===n&&(p||t?n=d.length:w("comment")),h=["comment",d.slice(m,n+1),m,n],m=n):($c.lastIndex=m+1,$c.test(d),n=0===$c.lastIndex?d.length-1:$c.lastIndex-2,h=["word",d.slice(m,n+1),m,n],g.push(h),m=n);break}return m++,h}}function k(e){v.push(e)}return{back:k,endOfFile:b,nextToken:_,position:y}},Xc=pc,Jc=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}Hi(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(Xc),Gc=Jc;Jc.default=Jc,Xc.registerAtRule(Jc);var Kc,Zc,Qc=pc,eu=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}Hi(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=Zi(i);!(o=s()).done;){var a=o.value;a.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){void 0===e&&(e={});var t=new Kc(new Zc,this,e);return t.stringify()},t}(Qc);eu.registerLazyResult=function(e){Kc=e},eu.registerProcessor=function(e){Zc=e};var tu=eu;eu.default=eu,Qc.registerRoot(eu);var ru={comma:function(e){return ru.split(e,[","],!0)},space:function(e){var t=[" ","\n","\t"];return ru.split(e,t)},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=Zi(e);!(n=h()).done;){var d=n.value;l?l=!1:"\\"===d?l=!0:c?d===u&&(c=!1):'"'===d||"'"===d?(c=!0,u=d):"("===d?a+=1:")"===d?a>0&&(a-=1):0===a&&t.includes(d)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=d}return(r||""!==o)&&i.push(o.trim()),i}},nu=ru;ru.default=ru;var iu=pc,ou=nu,su=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return Hi(t,e),Ui(t,[{key:"selectors",get:function(){return ou.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(iu),au=su;su.default=su,iu.registerRule(su);var cu=da,uu=Yc,lu=ec,hu=Gc,du=tu,pu=au,fu={empty:!0,space:!0};function mu(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var gu=function(){function e(e){this.input=e,this.root=new du,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new hu;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);var o=!1,s=!1,a=[],c=[];while(!this.tokenizer.endOfFile()){if(e=this.tokenizer.nextToken(),t=e[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){n=a.length-1,r=a[n];while(r&&"space"===r[0])r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0;i--)if(r=e[i],"space"!==r[0]&&(n+=1,2===n))break;throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=Zi(e.entries());!(i=s()).done;){var a=i.value,c=a[0],u=a[1];if(t=u,r=t[0],"("===r&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new lu;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=uu(this.input)},t.decl=function(e,t){var r=new cu;this.init(r,e[0][2]);var n,i=e[e.length-1];";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||mu(e)),r.source.end.offset++;while("word"!==e[0][0])1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];r.source.start=this.getPosition(e[0][2]),r.prop="";while(e.length){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}r.raws.between="";while(e.length){if(n=e.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));var s,a=[];while(e.length){if(s=e[0][0],"space"!==s&&"comment"!==s)break;a.push(e.shift())}this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(n=e[c],"!important"===n[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u," !important"!==u&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var p=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==p)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}var f=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});f&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new pu;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;while(c){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)while(a.length){if(c=a[a.length-1][0],"space"!==c&&"comment"!==c)break;this.tokenizer.back(a.pop())}this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){var e;while(!this.tokenizer.endOfFile())switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)i=r[h],o=i[0],"space"!==o||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",fu[a]||fu[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new pu;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t&&"comment"!==t)break;r=e.pop()[1]+r}return r},t.spacesAndCommentsFromStart=function(e){var t,r="";while(e.length){if(t=e[0][0],"space"!==t&&"comment"!==t)break;r+=e.shift()[1]}return r},t.spacesFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t)break;r=e.pop()[1]+r}return r},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),vu=gu,yu=pc,wu=vu,bu=Fa;function _u(e,t){var r=new bu(e,t),n=new wu(r);try{n.parse()}catch(i){throw i}return n.root}var ku=_u;_u.default=_u,yu.registerParse(_u);var Su=Xs.isClean,xu=Xs.my,Cu=Ka,Eu=ta,Au=pc,Ou=yc,Iu=Sc,Tu=ku,Mu=tu,Ru={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Pu={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Du={Once:!0,postcssPlugin:!0,prepare:!0},Lu=0;function Bu(e){return"object"===("undefined"===typeof e?"undefined":Xi(e))&&"function"===typeof e.then}function Nu(e){var t=!1,r=Ru[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,Lu,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,Lu,r+"Exit"]:[r,r+"Exit"]}function ju(e){var t;return t="document"===e.type?["Document",Lu,"DocumentExit"]:"root"===e.type?["Root",Lu,"RootExit"]:Nu(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Fu(e){return e[Su]=!1,e.nodes&&e.nodes.forEach(function(e){return Fu(e)}),e}var Uu={},zu=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==("undefined"===typeof r?"undefined":Xi(r))||null===r||"root"!==r.type&&"document"!==r.type)if($i(r,e)||$i(r,Iu))i=Fu(r.root),r.map&&("undefined"===typeof n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=Tu;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[xu]&&Au.rebuild(i)}else i=Fu(r);this.result=new Iu(t,i,n),this.helpers=zi({},Uu,{postcss:Uu,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===("undefined"===typeof e?"undefined":Xi(e))&&e.prepare?zi({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion);}else e.plugin=r.postcssPlugin,e.setMessage()}catch(n){console&&console.error&&console.error(n)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=Zi(this.plugins);!(t=n()).done;){var i=t.value;if("object"===("undefined"===typeof i?"undefined":Xi(i)))for(var o in i){if(!Pu[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Du[o])if("object"===Xi(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"===typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return Ni(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return Qi(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],n=e.runOnRoot(r),!Bu(n))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,n];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,p.label=7;case 7:if(o[Su])return[3,14];o[Su]=!0,s=[ju(o)],p.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!Bu(a))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,a];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i,s;return Qi(this,function(a){switch(a.label){case 0:t=d.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=Zi(e.listeners.OnceExit),p.label=15;case 15:return(d=h()).done?[3,18]:[5,eo(l())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===("undefined"===typeof e?"undefined":Xi(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return Bu(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"===typeof e)return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Eu;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Cu(t,this.result.root,this.result.opts),n=r.generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=Zi(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(Bu(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[Su])i[Su]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=Zi(i.nodes);!(o=s()).done;){var a=o.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,i)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Zi(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(c){throw this.handleError(c,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Bu(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(h){throw this.handleError(h,r)}}if(0!==t.iterator){var a,c=t.iterator;while(a=r.nodes[r.indexes[c]])if(r.indexes[c]+=1,!a[Su])return a[Su]=!0,void e.push(ju(a));t.iterator=0,delete r.indexes[c]}var u=t.events;while(t.eventIndex<u.length){var l=u[t.eventIndex];if(t.eventIndex+=1,l===Lu)return void(r.nodes&&r.nodes.length&&(r[Su]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[Su]=!0;for(var r,n=Nu(e),i=Zi(n);!(r=i()).done;){var o=r.value;if(o===Lu)e.nodes&&e.each(function(e){e[Su]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Ui(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();zu.registerPostcss=function(e){Uu=e};var qu=zu;zu.default=zu,Mu.registerLazyResult(zu),Ou.registerLazyResult(zu);var Hu=Ka,$u=ta,Wu=ku,Vu=Sc,Yu=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=$u;this.result=new Vu(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new Hu(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},Ui(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=Wu;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Xu=Yu;Yu.default=Yu;var Ju=Xu,Gu=qu,Ku=yc,Zu=tu,Qu=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=Zi(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===("undefined"===typeof i?"undefined":Xi(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===("undefined"===typeof i?"undefined":Xi(i))&&i.postcssPlugin)r.push(i);else if("function"===typeof i)r.push(i);else{if("object"!==("undefined"===typeof i?"undefined":Xi(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Gu(this,e,t):new Ju(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),el=Qu;Qu.default=Qu,Zu.registerProcessor(Qu),Ku.registerProcessor(Qu);var tl=da,rl=xa,nl=ec,il=Gc,ol=Fa,sl=tu,al=au;function cl(e,t){if(Array.isArray(e))return e.map(function(e){return cl(e)});var r=e.inputs,n=Vi(e,["inputs"]);if(r){t=[];for(var i,o=Zi(r);!(i=o()).done;){var s=i.value,a=zi({},s,{__proto__:ol.prototype});a.map&&(a.map=zi({},a.map,{__proto__:rl.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return cl(e,t)})),n.source){var c=n.source,u=c.inputId,l=Vi(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new sl(n);if("decl"===n.type)return new tl(n);if("rule"===n.type)return new al(n);if("comment"===n.type)return new nl(n);if("atrule"===n.type)return new il(n);throw new Error("Unknown node type: "+e.type)}var ul=cl;cl.default=cl;var ll=Ys,hl=da,dl=qu,pl=pc,fl=el,ml=ta,gl=ul,vl=yc,yl=bc,wl=ec,bl=Gc,_l=Sc,kl=Fa,Sl=ku,xl=nu,Cl=au,El=tu,Al=ua;function Ol(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new fl(t)}Ol.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new fl).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return Ol([i(r)]).process(e,t)},i},Ol.stringify=ml,Ol.parse=Sl,Ol.fromJSON=gl,Ol.list=xl,Ol.comment=function(e){return new wl(e)},Ol.atRule=function(e){return new bl(e)},Ol.decl=function(e){return new hl(e)},Ol.rule=function(e){return new Cl(e)},Ol.root=function(e){return new El(e)},Ol.document=function(e){return new vl(e)},Ol.CssSyntaxError=ll,Ol.Declaration=hl,Ol.Container=pl,Ol.Processor=fl,Ol.Document=vl,Ol.Comment=wl,Ol.Warning=yl,Ol.AtRule=bl,Ol.Result=_l,Ol.Input=kl,Ol.Rule=Cl,Ol.Root=El,Ol.Node=Al,dl.registerPostcss(Ol);var Il=Ol;Ol.default=Ol;var Tl=Ls(Il);Tl.stringify,Tl.fromJSON,Tl.plugin,Tl.parse,Tl.list,Tl.document,Tl.comment,Tl.atRule,Tl.rule,Tl.decl,Tl.root,Tl.CssSyntaxError,Tl.Declaration,Tl.Container,Tl.Processor,Tl.Document,Tl.Comment,Tl.Warning,Tl.AtRule,Tl.Result,Tl.Input,Tl.Rule,Tl.Root,Tl.Node;var Ml=Object.defineProperty,Rl=function(e,t,r){return t in e?Ml(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Pl=function(e,t,r){return Rl(e,"symbol"!==("undefined"===typeof t?"undefined":Xi(t))?t+"":t,r)};function Dl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function Ll(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return $i(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var Bl={exports:{}},Nl=String,jl=function(){return{isColorSupported:!1,reset:Nl,bold:Nl,dim:Nl,italic:Nl,underline:Nl,inverse:Nl,hidden:Nl,strikethrough:Nl,black:Nl,red:Nl,green:Nl,yellow:Nl,blue:Nl,magenta:Nl,cyan:Nl,white:Nl,gray:Nl,bgBlack:Nl,bgRed:Nl,bgGreen:Nl,bgYellow:Nl,bgBlue:Nl,bgMagenta:Nl,bgCyan:Nl,bgWhite:Nl}};Bl.exports=jl(),Bl.exports.createColors=jl;var Fl=Bl.exports,Ul={},zl=Object.freeze(Object.defineProperty({__proto__:null,default:Ul},Symbol.toStringTag,{value:"Module"})),ql=Ll(zl),Hl=Fl,$l=ql,Wl=function(e){function t(r,n,i,o,s,a){var c;return c=e.call(this,r)||this,c.name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),"undefined"!==typeof n&&"undefined"!==typeof i&&("number"===typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}Hi(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>","undefined"!==typeof this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=Hl.isColorSupported),$l&&e&&(r=$l(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=Hl.createColors(!0),l=u.bold,h=u.gray,d=u.red;n=function(e){return l(d(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(Gi(Error)),Vl=Wl;Wl.default=Wl;var Yl={};Yl.isClean=Symbol("isClean"),Yl.my=Symbol("my");var Xl={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Jl(e){return e[0].toUpperCase()+e.slice(1)}var Gl=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if("undefined"!==typeof e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");var n=e.parent,i=0;while(n&&"root"!==n.type)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){var t=e.nodes.length-1;while(t>0){if("comment"!==e.nodes[t].type)break;t-=1}for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&(n=e.raws[t],"undefined"!==typeof n))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Xl[r];var o=e.root();if(o.rawCache||(o.rawCache={}),"undefined"!==typeof o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s="raw"+Jl(r);return this[s]?n=this[s](o,e):o.walk(function(e){if(n=e.raws[t],"undefined"!==typeof n)return!1}),"undefined"===typeof n&&(n=Xl[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&"undefined"!==typeof e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&(t=e.raws.between,"undefined"!==typeof t))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&"undefined"!==typeof r.raws.before)return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if("undefined"!==typeof e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,"undefined"!==typeof t))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&"undefined"!==typeof r.raws.before){var i=r.raws.before.split("\n");return t=i[i.length-1],t=t.replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,"undefined"!==typeof t))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),Kl=Gl;Gl.default=Gl;var Zl=Kl;function Ql(e,t){var r=new Zl(t);r.stringify(e)}var eh=Ql;Ql.default=Ql;var th=Yl.isClean,rh=Yl.my,nh=Vl,ih=Kl,oh=eh;function sh(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o="undefined"===typeof i?"undefined":Xi(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return sh(e,r)}):("object"===o&&null!==i&&(i=sh(i)),r[n]=i)}return r}var ah=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[th]=!1,this[rh]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Zi(e[t]);!(r=n()).done;){var i=r.value;"function"===typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=sh(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new nh(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[th]){this[th]=!1;var e=this;while(e=e.parent)e[th]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();var n=t.indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"===typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){var r=new ih;return r.raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=Zi(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){var e=this;while(e.parent&&"document"!==e.parent.type)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return"object"===("undefined"===typeof e?"undefined":Xi(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===("undefined"===typeof s?"undefined":Xi(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=oh),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},Ui(e,[{key:"proxyOf",get:function(){return this}}]),e}(),ch=ah;ah.default=ah;var uh=ch,lh=function(e){function t(t){var r;return t&&"undefined"!==typeof t.value&&"string"!==typeof t.value&&(t=zi({},t,{value:String(t.value)})),r=e.call(this,t)||this,r.type="decl",r}return Hi(t,e),Ui(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(uh),hh=lh;lh.default=lh;var dh="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",ph=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=dh[64*Math.random()|0];return t},fh={nanoid:ph},mh=ql.SourceMapConsumer,gh=ql.SourceMapGenerator,vh=ql.existsSync,yh=ql.readFileSync,wh=ql.dirname,bh=ql.join;function _h(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var kh=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=wh(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new mh(this.text)),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(e)||i.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return _h(e.substr(RegExp.lastMatch.length));var o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===("undefined"===typeof e?"undefined":Xi(e))&&("string"===typeof e.mappings||"string"===typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=wh(e),vh(e))return this.mapFile=e,yh(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"===typeof t)return t;if("function"!==typeof t){if($i(t,mh))return gh.fromSourceMap(t).toString();if($i(t,gh))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=bh(wh(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Sh=kh;kh.default=kh;var xh=ql.SourceMapConsumer,Ch=ql.SourceMapGenerator,Eh=ql.fileURLToPath,Ah=ql.pathToFileURL,Oh=ql.isAbsolute,Ih=ql.resolve,Th=fh.nanoid,Mh=ql,Rh=Vl,Ph=Sh,Dh=Symbol("fromOffsetCache"),Lh=Boolean(xh&&Ch),Bh=Boolean(Ih&&Oh),Nh=function(){function e(e,t){if(void 0===t&&(t={}),null===e||"undefined"===typeof e||"object"===("undefined"===typeof e?"undefined":Xi(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Bh||/^\w+:\/\//.test(t.from)||Oh(t.from)?this.file=t.from:this.file=Ih(t.from)),Bh&&Lh){var r=new Ph(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+Th(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===("undefined"===typeof t?"undefined":Xi(t))){var a=t,c=r;if("number"===typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"===typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var d=this.origin(t,r,o,s);return i=d?new Rh(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new Rh(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin),i.input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(Ah&&(i.input.url=Ah(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[Dh])r=this[Dh];else{var n=this.css.split("\n");r=new Array(n.length);for(var i=0,o=0,s=n.length;o<s;o++)r[o]=i,i+=n[o].length+1;this[Dh]=r}t=r[r.length-1];var a=0;if(e>=t)a=r.length-1;else{var c,u=r.length-2;while(a<u)if(c=a+(u-a>>1),e<r[c])u=c-1;else{if(!(e>=r[c+1])){a=c;break}a=c+1}}return{col:e-r[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Ih(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"===typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=Oh(a.source)?Ah(a.source):new URL(a.source,this.map.consumer().sourceRoot||Ah(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!Eh)throw new Error("file: protocol is not available in this PostCSS build");c.file=Eh(o)}var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=zi({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Ui(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),jh=Nh;Nh.default=Nh,Mh&&Mh.registerInput&&Mh.registerInput(Nh);var Fh=ql.SourceMapConsumer,Uh=ql.SourceMapGenerator,zh=ql.dirname,qh=ql.relative,Hh=ql.resolve,$h=ql.sep,Wh=ql.pathToFileURL,Vh=jh,Yh=Boolean(Fh&&Uh),Xh=Boolean(zh&&Hh&&qh&&$h),Jh=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"===typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"===typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=Zi(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||zh(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Fh(r.text),o.sourcesContent&&(o.sourcesContent=null)):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),Xh&&Yh&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Uh.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Uh({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new Uh({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),t=a.match(/\n/g),t?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}},h="decl"===c.type||"atrule"===c.type&&!c.nodes;h&&c===l.last&&!l.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||("undefined"!==typeof this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if("undefined"!==typeof this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return("undefined"===typeof e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return"undefined"!==typeof this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return"undefined"!==typeof this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?zh(this.opts.to):".";"string"===typeof this.mapOpts.annotation&&(r=zh(Hh(r,this.mapOpts.annotation)));var n=qh(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new Vh(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Wh){var r=Wh(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===$h&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Gh=Jh,Kh=ch,Zh=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="comment",r}return Hi(t,e),t}(Kh),Qh=Zh;Zh.default=Zh;var ed,td,rd,nd,id=Yl.isClean,od=Yl.my,sd=hh,ad=Qh,cd=ch;function ud(e){return e.map(function(e){return e.nodes&&(e.nodes=ud(e.nodes)),delete e.source,e})}function ld(e){if(e[id]=!1,e.proxyOf.nodes)for(var t,r=Zi(e.proxyOf.nodes);!(t=r()).done;){var n=t.value;ld(n)}}var hd=function(e){function t(){return e.apply(this,arguments)||this}Hi(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Zi(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=Zi(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=Zi(this.nodes);!(r=n()).done;){var i=r.value;i.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){var t,r,n=this.getIterator();while(this.indexes[n]<this.proxyOf.nodes.length){if(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1===r)break;this.indexes[n]+=1}return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"===typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"===typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"===typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=Zi(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)r=this.indexes[c],n<r&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=Zi(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)r=this.indexes[u],n<=r&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"===typeof e)e=ud(ed(e).nodes);else if("undefined"===typeof e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=Zi(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=Zi(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if("undefined"===typeof e.value)throw new Error("Value field is missed in node creation");"string"!==typeof e.value&&(e.value=String(e.value)),e=[new sd(e)]}else if(e.selector)e=[new td(e)];else if(e.name)e=[new rd(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new ad(e)]}var l=e.map(function(e){return e[od]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[id]&&ld(e),"undefined"===typeof e.raws.before&&r&&"undefined"!==typeof r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return l},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=Zi(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=Zi(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=Zi(this.proxyOf.nodes);!(e=t()).done;){var r=e.value;r.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(i){throw t.addToError(i)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?$i(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?$i(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?$i(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},Ui(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(cd);hd.registerParse=function(e){ed=e},hd.registerRule=function(e){td=e},hd.registerAtRule=function(e){rd=e},hd.registerRoot=function(e){nd=e};var dd=hd;hd.default=hd,hd.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,rd.prototype):"rule"===e.type?Object.setPrototypeOf(e,td.prototype):"decl"===e.type?Object.setPrototypeOf(e,sd.prototype):"comment"===e.type?Object.setPrototypeOf(e,ad.prototype):"root"===e.type&&Object.setPrototypeOf(e,nd.prototype),e[od]=!0,e.nodes&&e.nodes.forEach(function(e){hd.rebuild(e)})};var pd,fd,md=dd,gd=function(e){function t(t){var r;return r=e.call(this,zi({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}Hi(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new pd(new fd,this,e);return t.stringify()},t}(md);gd.registerLazyResult=function(e){pd=e},gd.registerProcessor=function(e){fd=e};var vd=gd;gd.default=gd;var yd=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),wd=yd;yd.default=yd;var bd=wd,_d=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new bd(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},Ui(e,[{key:"content",get:function(){return this.css}}]),e}(),kd=_d;_d.default=_d;var Sd="'".charCodeAt(0),xd='"'.charCodeAt(0),Cd="\\".charCodeAt(0),Ed="/".charCodeAt(0),Ad="\n".charCodeAt(0),Od=" ".charCodeAt(0),Id="\f".charCodeAt(0),Td="\t".charCodeAt(0),Md="\r".charCodeAt(0),Rd="[".charCodeAt(0),Pd="]".charCodeAt(0),Dd="(".charCodeAt(0),Ld=")".charCodeAt(0),Bd="{".charCodeAt(0),Nd="}".charCodeAt(0),jd=";".charCodeAt(0),Fd="*".charCodeAt(0),Ud=":".charCodeAt(0),zd="@".charCodeAt(0),qd=/[\t\n\f\r "#'()/;[\\\]{}]/g,Hd=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,$d=/.[\r\n"'(/\\]/,Wd=/[\da-f]/i,Vd=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,d=e.css.valueOf(),p=t.ignoreErrors,f=d.length,m=0,g=[],v=[];function y(){return m}function w(t){throw e.error("Unclosed "+t,m)}function b(){return 0===v.length&&m>=f}function _(e){if(v.length)return v.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(m),r){case Ad:case Od:case Td:case Md:case Id:n=m;do{n+=1,r=d.charCodeAt(n)}while(r===Od||r===Ad||r===Td||r===Md||r===Id);h=["space",d.slice(m,n)],m=n-1;break;case Rd:case Pd:case Bd:case Nd:case Ud:case jd:case Ld:var y=String.fromCharCode(r);h=[y,y,m];break;case Dd:if(u=g.length?g.pop()[1]:"",l=d.charCodeAt(m+1),"url"===u&&l!==Sd&&l!==xd&&l!==Od&&l!==Ad&&l!==Td&&l!==Id&&l!==Md){n=m;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=m;break}w("bracket")}c=n;while(d.charCodeAt(c-1)===Cd)c-=1,a=!a}while(a);h=["brackets",d.slice(m,n+1),m,n],m=n}else n=d.indexOf(")",m+1),o=d.slice(m,n+1),-1===n||$d.test(o)?h=["(","(",m]:(h=["brackets",o,m,n],m=n);break;case Sd:case xd:i=r===Sd?"'":'"',n=m;do{if(a=!1,n=d.indexOf(i,n+1),-1===n){if(p||t){n=m+1;break}w("string")}c=n;while(d.charCodeAt(c-1)===Cd)c-=1,a=!a}while(a);h=["string",d.slice(m,n+1),m,n],m=n;break;case zd:qd.lastIndex=m+1,qd.test(d),n=0===qd.lastIndex?d.length-1:qd.lastIndex-2,h=["at-word",d.slice(m,n+1),m,n],m=n;break;case Cd:n=m,s=!0;while(d.charCodeAt(n+1)===Cd)n+=1,s=!s;if(r=d.charCodeAt(n+1),s&&r!==Ed&&r!==Od&&r!==Ad&&r!==Td&&r!==Md&&r!==Id&&(n+=1,Wd.test(d.charAt(n)))){while(Wd.test(d.charAt(n+1)))n+=1;d.charCodeAt(n+1)===Od&&(n+=1)}h=["word",d.slice(m,n+1),m,n],m=n;break;default:r===Ed&&d.charCodeAt(m+1)===Fd?(n=d.indexOf("*/",m+2)+1,0===n&&(p||t?n=d.length:w("comment")),h=["comment",d.slice(m,n+1),m,n],m=n):(Hd.lastIndex=m+1,Hd.test(d),n=0===Hd.lastIndex?d.length-1:Hd.lastIndex-2,h=["word",d.slice(m,n+1),m,n],g.push(h),m=n);break}return m++,h}}function k(e){v.push(e)}return{back:k,endOfFile:b,nextToken:_,position:y}},Yd=dd,Xd=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}Hi(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(Yd),Jd=Xd;Xd.default=Xd,Yd.registerAtRule(Xd);var Gd,Kd,Zd=dd,Qd=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}Hi(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=Zi(i);!(o=s()).done;){var a=o.value;a.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){void 0===e&&(e={});var t=new Gd(new Kd,this,e);return t.stringify()},t}(Zd);Qd.registerLazyResult=function(e){Gd=e},Qd.registerProcessor=function(e){Kd=e};var ep=Qd;Qd.default=Qd,Zd.registerRoot(Qd);var tp={comma:function(e){return tp.split(e,[","],!0)},space:function(e){var t=[" ","\n","\t"];return tp.split(e,t)},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=Zi(e);!(n=h()).done;){var d=n.value;l?l=!1:"\\"===d?l=!0:c?d===u&&(c=!1):'"'===d||"'"===d?(c=!0,u=d):"("===d?a+=1:")"===d?a>0&&(a-=1):0===a&&t.includes(d)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=d}return(r||""!==o)&&i.push(o.trim()),i}},rp=tp;tp.default=tp;var np=dd,ip=rp,op=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return Hi(t,e),Ui(t,[{key:"selectors",get:function(){return ip.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(np),sp=op;op.default=op,np.registerRule(op);var ap=hh,cp=Vd,up=Qh,lp=Jd,hp=ep,dp=sp,pp={empty:!0,space:!0};function fp(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var mp=function(){function e(e){this.input=e,this.root=new hp,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new lp;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);var o=!1,s=!1,a=[],c=[];while(!this.tokenizer.endOfFile()){if(e=this.tokenizer.nextToken(),t=e[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){n=a.length-1,r=a[n];while(r&&"space"===r[0])r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0;i--)if(r=e[i],"space"!==r[0]&&(n+=1,2===n))break;throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=Zi(e.entries());!(i=s()).done;){var a=i.value,c=a[0],u=a[1];if(t=u,r=t[0],"("===r&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new up;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=cp(this.input)},t.decl=function(e,t){var r=new ap;this.init(r,e[0][2]);var n,i=e[e.length-1];";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||fp(e)),r.source.end.offset++;while("word"!==e[0][0])1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];r.source.start=this.getPosition(e[0][2]),r.prop="";while(e.length){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}r.raws.between="";while(e.length){if(n=e.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));var s,a=[];while(e.length){if(s=e[0][0],"space"!==s&&"comment"!==s)break;a.push(e.shift())}this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(n=e[c],"!important"===n[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u," !important"!==u&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var p=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==p)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}var f=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});f&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new dp;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;while(c){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)while(a.length){if(c=a[a.length-1][0],"space"!==c&&"comment"!==c)break;this.tokenizer.back(a.pop())}this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){var e;while(!this.tokenizer.endOfFile())switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)i=r[h],o=i[0],"space"!==o||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",pp[a]||pp[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new dp;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t&&"comment"!==t)break;r=e.pop()[1]+r}return r},t.spacesAndCommentsFromStart=function(e){var t,r="";while(e.length){if(t=e[0][0],"space"!==t&&"comment"!==t)break;r+=e.shift()[1]}return r},t.spacesFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t)break;r=e.pop()[1]+r}return r},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),gp=mp,vp=dd,yp=gp,wp=jh;function bp(e,t){var r=new wp(e,t),n=new yp(r);try{n.parse()}catch(i){throw i}return n.root}var _p=bp;bp.default=bp,vp.registerParse(bp);var kp=Yl.isClean,Sp=Yl.my,xp=Gh,Cp=eh,Ep=dd,Ap=vd,Op=kd,Ip=_p,Tp=ep,Mp={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Rp={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Pp={Once:!0,postcssPlugin:!0,prepare:!0},Dp=0;function Lp(e){return"object"===("undefined"===typeof e?"undefined":Xi(e))&&"function"===typeof e.then}function Bp(e){var t=!1,r=Mp[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,Dp,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,Dp,r+"Exit"]:[r,r+"Exit"]}function Np(e){var t;return t="document"===e.type?["Document",Dp,"DocumentExit"]:"root"===e.type?["Root",Dp,"RootExit"]:Bp(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function jp(e){return e[kp]=!1,e.nodes&&e.nodes.forEach(function(e){return jp(e)}),e}var Fp={},Up=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==("undefined"===typeof r?"undefined":Xi(r))||null===r||"root"!==r.type&&"document"!==r.type)if($i(r,e)||$i(r,Op))i=jp(r.root),r.map&&("undefined"===typeof n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=Ip;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[Sp]&&Ep.rebuild(i)}else i=jp(r);this.result=new Op(t,i,n),this.helpers=zi({},Fp,{postcss:Fp,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===("undefined"===typeof e?"undefined":Xi(e))&&e.prepare?zi({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion);}else e.plugin=r.postcssPlugin,e.setMessage()}catch(n){console&&console.error&&console.error(n)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=Zi(this.plugins);!(t=n()).done;){var i=t.value;if("object"===("undefined"===typeof i?"undefined":Xi(i)))for(var o in i){if(!Rp[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Pp[o])if("object"===Xi(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"===typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return Ni(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return Qi(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],n=e.runOnRoot(r),!Lp(n))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,n];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,p.label=7;case 7:if(o[kp])return[3,14];o[kp]=!0,s=[Np(o)],p.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!Lp(a))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,a];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i,s;return Qi(this,function(a){switch(a.label){case 0:t=d.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=Zi(e.listeners.OnceExit),p.label=15;case 15:return(d=h()).done?[3,18]:[5,eo(l())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===("undefined"===typeof e?"undefined":Xi(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return Lp(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"===typeof e)return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Cp;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new xp(t,this.result.root,this.result.opts),n=r.generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=Zi(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(Lp(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[kp])i[kp]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=Zi(i.nodes);!(o=s()).done;){var a=o.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,i)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Zi(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(c){throw this.handleError(c,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Lp(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(h){throw this.handleError(h,r)}}if(0!==t.iterator){var a,c=t.iterator;while(a=r.nodes[r.indexes[c]])if(r.indexes[c]+=1,!a[kp])return a[kp]=!0,void e.push(Np(a));t.iterator=0,delete r.indexes[c]}var u=t.events;while(t.eventIndex<u.length){var l=u[t.eventIndex];if(t.eventIndex+=1,l===Dp)return void(r.nodes&&r.nodes.length&&(r[kp]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[kp]=!0;for(var r,n=Bp(e),i=Zi(n);!(r=i()).done;){var o=r.value;if(o===Dp)e.nodes&&e.each(function(e){e[kp]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Ui(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();Up.registerPostcss=function(e){Fp=e};var zp=Up;Up.default=Up,Tp.registerLazyResult(Up),Ap.registerLazyResult(Up);var qp=Gh,Hp=eh,$p=_p,Wp=kd,Vp=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=Hp;this.result=new Wp(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new qp(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},Ui(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=$p;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Yp=Vp;Vp.default=Vp;var Xp=Yp,Jp=zp,Gp=vd,Kp=ep,Zp=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=Zi(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===("undefined"===typeof i?"undefined":Xi(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===("undefined"===typeof i?"undefined":Xi(i))&&i.postcssPlugin)r.push(i);else if("function"===typeof i)r.push(i);else{if("object"!==("undefined"===typeof i?"undefined":Xi(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Jp(this,e,t):new Xp(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),Qp=Zp;Zp.default=Zp,Kp.registerProcessor(Zp),Gp.registerProcessor(Zp);var ef=hh,tf=Sh,rf=Qh,nf=Jd,of=jh,sf=ep,af=sp;function cf(e,t){if(Array.isArray(e))return e.map(function(e){return cf(e)});var r=e.inputs,n=Vi(e,["inputs"]);if(r){t=[];for(var i,o=Zi(r);!(i=o()).done;){var s=i.value,a=zi({},s,{__proto__:of.prototype});a.map&&(a.map=zi({},a.map,{__proto__:tf.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return cf(e,t)})),n.source){var c=n.source,u=c.inputId,l=Vi(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new sf(n);if("decl"===n.type)return new ef(n);if("rule"===n.type)return new af(n);if("comment"===n.type)return new rf(n);if("atrule"===n.type)return new nf(n);throw new Error("Unknown node type: "+e.type)}var uf=cf;cf.default=cf;var lf=Vl,hf=hh,df=zp,pf=dd,ff=Qp,mf=eh,gf=uf,vf=vd,yf=wd,wf=Qh,bf=Jd,_f=kd,kf=jh,Sf=_p,xf=rp,Cf=sp,Ef=ep,Af=ch;function Of(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new ff(t)}Of.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new ff).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return Of([i(r)]).process(e,t)},i},Of.stringify=mf,Of.parse=Sf,Of.fromJSON=gf,Of.list=xf,Of.comment=function(e){return new wf(e)},Of.atRule=function(e){return new bf(e)},Of.decl=function(e){return new hf(e)},Of.rule=function(e){return new Cf(e)},Of.root=function(e){return new Ef(e)},Of.document=function(e){return new vf(e)},Of.CssSyntaxError=lf,Of.Declaration=hf,Of.Container=pf,Of.Processor=ff,Of.Document=vf,Of.Comment=wf,Of.Warning=yf,Of.AtRule=bf,Of.Result=_f,Of.Input=kf,Of.Rule=Cf,Of.Root=Ef,Of.Node=Af,df.registerPostcss(Of);var If=Of;Of.default=Of;var Tf=Dl(If);Tf.stringify,Tf.fromJSON,Tf.plugin,Tf.parse,Tf.list,Tf.document,Tf.comment,Tf.atRule,Tf.rule,Tf.decl,Tf.root,Tf.CssSyntaxError,Tf.Declaration,Tf.Container,Tf.Processor,Tf.Document,Tf.Comment,Tf.Warning,Tf.AtRule,Tf.Result,Tf.Input,Tf.Rule,Tf.Root,Tf.Node;var Mf=function(){function e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Pl(this,"parentElement",null),Pl(this,"parentNode",null),Pl(this,"ownerDocument"),Pl(this,"firstChild",null),Pl(this,"lastChild",null),Pl(this,"previousSibling",null),Pl(this,"nextSibling",null),Pl(this,"ELEMENT_NODE",1),Pl(this,"TEXT_NODE",3),Pl(this,"nodeType"),Pl(this,"nodeName"),Pl(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!$i(t,e))return!1;if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;while(t.parentNode){if(t.parentNode===this)return!0;t=t.parentNode}return!1},t.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},Ui(e,[{key:"childNodes",get:function(){var e=[],t=this.firstChild;while(t)e.push(t),t=t.nextSibling;return e}}]),e}(),Rf={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Pf={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Df={},Lf=function(){return!!globalThis.Zone};function Bf(e){if(Df[e])return Df[e];var t=globalThis[e],r=t.prototype,n=e in Rf?Rf[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in Pf?Pf[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"===typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!Lf())return Df[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;return document.body.removeChild(a),u?Df[e]=u:r}catch(l){return r}}var Nf={};function jf(e,t,r){var n,i=e+"."+String(r);if(Nf[i])return Nf[i].call(t);var o=Bf(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(Nf[i]=s,s.call(t)):t[r]}var Ff={};function Uf(e,t,r){var n=e+"."+String(r);if(Ff[n])return Ff[n].bind(t);var i=Bf(e),o=i[r];return"function"!==typeof o?t[r]:(Ff[n]=o,o.bind(t))}function zf(e){return jf("Node",e,"childNodes")}function qf(e){return jf("Node",e,"parentNode")}function Hf(e){return jf("Node",e,"parentElement")}function $f(e){return jf("Node",e,"textContent")}function Wf(e,t){return Uf("Node",e,"contains")(t)}function Vf(e){return Uf("Node",e,"getRootNode")()}function Yf(e){return e&&"host"in e?jf("ShadowRoot",e,"host"):null}function Xf(e){return e.styleSheets}function Jf(e){return e&&"shadowRoot"in e?jf("Element",e,"shadowRoot"):null}function Gf(e,t){return jf("Element",e,"querySelector")(t)}function Kf(e,t){return jf("Element",e,"querySelectorAll")(t)}function Zf(){return Bf("MutationObserver").constructor}function Qf(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"===typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(o){return function(){}}}var em={childNodes:zf,parentNode:qf,parentElement:Hf,textContent:$f,contains:Wf,getRootNode:Vf,host:Yf,styleSheets:Xf,shadowRoot:Jf,querySelector:Gf,querySelectorAll:Kf,mutationObserver:Zf,patch:Qf};function tm(e,t,r){void 0===r&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}}var rm="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",nm={map:{},getId:function(){return console.error(rm),-1},getNode:function(){return console.error(rm),null},removeNodeFromMap:function(){console.error(rm)},has:function(){return console.error(rm),!1},reset:function(){console.error(rm)}};function im(e,t,r){void 0===r&&(r={});var n=null,i=0;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var c=Date.now();i||!1!==r.leading||(i=c);var u=t-(c-i),l=this;u<=0||u>t?(n&&(clearTimeout(n),n=null),i=c,e.apply(l,s)):n||!1===r.trailing||(n=setTimeout(function(){i=!1===r.leading?0:Date.now(),n=null,e.apply(l,s)},u))}}function om(e,t,r,n,i){void 0===i&&(i=window);var o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout(function(){r.set.call(t,e)},0),o&&o.set&&o.set.call(this,e)}}),function(){return om(e,t,o||{},!0)}}"undefined"!==typeof window&&window.Proxy&&window.Reflect&&(nm=new Proxy(nm,{get:function(e,t,r){return"map"===t&&console.error(rm),Reflect.get(e,t,r)}}));var sm=Date.now;function am(e){var t,r,n,i,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:o.documentElement.scrollLeft||(null==o?void 0:o.body)&&(null==(t=em.parentElement(o.body))?void 0:t.scrollLeft)||(null==(r=null==o?void 0:o.body)?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==o?void 0:o.documentElement.scrollTop)||(null==o?void 0:o.body)&&(null==(n=em.parentElement(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function cm(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function um(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function lm(e){if(!e)return null;var t=e.nodeType===e.ELEMENT_NODE?e:em.parentElement(e);return t}function hm(e,t,r,n){if(!e)return!1;var i=lm(e);if(!i)return!1;try{if("string"===typeof t){if(i.classList.contains(t))return!0;if(n&&null!==i.closest("."+t))return!0}else if(Ss(i,t,n))return!0}catch(o){}if(r){if(i.matches(r))return!0;if(n&&null!==i.closest(r))return!0}return!1}function dm(e,t){return-1!==t.getId(e)}function pm(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||t.getId(e)===ls}function fm(e,t){if(Do(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=em.parentNode(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||fm(n,t))}function mm(e){return Boolean(e.changedTouches)}function gm(e){void 0===e&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function vm(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function ym(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function wm(e){return!!e&&($i(e,Mf)&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(em.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(sm=function(){return(new Date).getTime()});var bm=function(){function e(){io(this,"id",1),io(this,"styleIDMap",new WeakMap),io(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r);var r},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},t.remove=function(e){var t=this.styleIDMap.get(e);return void 0!==t&&(this.styleIDMap.delete(e),this.idStyleMap.delete(t),!0)},e}();function _m(e){var t,r=null;return"getRootNode"in e&&(null==(t=em.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&em.host(em.getRootNode(e))&&(r=em.host(em.getRootNode(e))),r}function km(e){var t,r=e;while(t=_m(r))r=t;return r}function Sm(e){var t=e.ownerDocument;if(!t)return!1;var r=km(e);return em.contains(t,r)}function xm(e){var t=e.ownerDocument;return!!t&&(em.contains(t,e)||Sm(e))}var Cm=function(e){return e[e["DomContentLoaded"]=0]="DomContentLoaded",e[e["Load"]=1]="Load",e[e["FullSnapshot"]=2]="FullSnapshot",e[e["IncrementalSnapshot"]=3]="IncrementalSnapshot",e[e["Meta"]=4]="Meta",e[e["Custom"]=5]="Custom",e[e["Plugin"]=6]="Plugin",e}(Cm||{}),Em=function(e){return e[e["Mutation"]=0]="Mutation",e[e["MouseMove"]=1]="MouseMove",e[e["MouseInteraction"]=2]="MouseInteraction",e[e["Scroll"]=3]="Scroll",e[e["ViewportResize"]=4]="ViewportResize",e[e["Input"]=5]="Input",e[e["TouchMove"]=6]="TouchMove",e[e["MediaInteraction"]=7]="MediaInteraction",e[e["StyleSheetRule"]=8]="StyleSheetRule",e[e["CanvasMutation"]=9]="CanvasMutation",e[e["Font"]=10]="Font",e[e["Log"]=11]="Log",e[e["Drag"]=12]="Drag",e[e["StyleDeclaration"]=13]="StyleDeclaration",e[e["Selection"]=14]="Selection",e[e["AdoptedStyleSheet"]=15]="AdoptedStyleSheet",e[e["CustomElement"]=16]="CustomElement",e}(Em||{}),Am=function(e){return e[e["MouseUp"]=0]="MouseUp",e[e["MouseDown"]=1]="MouseDown",e[e["Click"]=2]="Click",e[e["ContextMenu"]=3]="ContextMenu",e[e["DblClick"]=4]="DblClick",e[e["Focus"]=5]="Focus",e[e["Blur"]=6]="Blur",e[e["TouchStart"]=7]="TouchStart",e[e["TouchMove_Departed"]=8]="TouchMove_Departed",e[e["TouchEnd"]=9]="TouchEnd",e[e["TouchCancel"]=10]="TouchCancel",e}(Am||{}),Om=function(e){return e[e["Mouse"]=0]="Mouse",e[e["Pen"]=1]="Pen",e[e["Touch"]=2]="Touch",e}(Om||{}),Im=function(e){return e[e["2D"]=0]="2D",e[e["WebGL"]=1]="WebGL",e[e["WebGL2"]=2]="WebGL2",e}(Im||{}),Tm=function(e){return e[e["Play"]=0]="Play",e[e["Pause"]=1]="Pause",e[e["Seeked"]=2]="Seeked",e[e["VolumeChange"]=3]="VolumeChange",e[e["RateChange"]=4]="RateChange",e}(Tm||{}),Mm=function(e){return e[e["Document"]=0]="Document",e[e["DocumentType"]=1]="DocumentType",e[e["Element"]=2]="Element",e[e["Text"]=3]="Text",e[e["CDATA"]=4]="CDATA",e[e["Comment"]=5]="Comment",e}(Mm||{});function Rm(e){return"__ln"in e}var Pm,Dm=function(){function e(){io(this,"length",0),io(this,"head",null),io(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t},t.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Rm(e.previousSibling)){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&Rm(e.nextSibling)&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++},t.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},e}(),Lm=function(e,t){return e+"@"+t},Bm=function(){function e(){var e=this;io(this,"frozen",!1),io(this,"locked",!1),io(this,"texts",[]),io(this,"attributes",[]),io(this,"attributeMap",new WeakMap),io(this,"removes",[]),io(this,"mapRemoves",[]),io(this,"movedMap",{}),io(this,"addedSet",new Set),io(this,"movedSet",new Set),io(this,"droppedSet",new Set),io(this,"removesSubTreeCache",new Set),io(this,"mutationCb"),io(this,"blockClass"),io(this,"blockSelector"),io(this,"maskTextClass"),io(this,"maskTextSelector"),io(this,"inlineStylesheet"),io(this,"maskInputOptions"),io(this,"maskTextFn"),io(this,"maskInputFn"),io(this,"keepIframeSrcFn"),io(this,"recordCanvas"),io(this,"inlineImages"),io(this,"slimDOMOptions"),io(this,"dataURLOptions"),io(this,"doc"),io(this,"mirror"),io(this,"iframeManager"),io(this,"stylesheetManager"),io(this,"shadowDomManager"),io(this,"canvasManager"),io(this,"processedNodeManager"),io(this,"unattachedDoc"),io(this,"processMutations",function(t){t.forEach(e.processMutation),e.emit()}),io(this,"emit",function(){if(!e.frozen&&!e.locked){var t=[],r=new Set,n=new Dm,i=function(t){var r=t,n=ls;while(n===ls)r=r&&r.nextSibling,n=r&&e.mirror.getId(r);return n},o=function(o){var s=em.parentNode(o);if(s&&xm(o)){var a=!1;if(o.nodeType===Node.TEXT_NODE){var c=s.tagName;if("TEXTAREA"===c)return;"STYLE"===c&&e.addedSet.has(s)&&(a=!0)}var u=Do(s)?e.mirror.getId(_m(o)):e.mirror.getId(s),l=i(o);if(-1===u||-1===l)return n.addNode(o);var h=Ps(o,{doc:e.doc,mirror:e.mirror,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,dataURLOptions:e.dataURLOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(t){vm(t,e.mirror)&&e.iframeManager.addIframe(t),ym(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),wm(o)&&e.shadowDomManager.addShadowRoot(em.shadowRoot(o),e.doc)},onIframeLoad:function(t,r){e.iframeManager.attachIframe(t,r),e.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:function(t,r){e.stylesheetManager.attachLinkElement(t,r)},cssCaptured:a});h&&(t.push({parentId:u,nextId:l,node:h}),r.add(h.id))}};while(e.mapRemoves.length){var s=e.mapRemoves.shift();e.cleanupRemovedNode(s),e.mirror.removeNodeFromMap(s)}for(var a,c=Zi(e.movedSet);!(a=c()).done;){var u=a.value;Fm(e.removesSubTreeCache,u,e.mirror)&&!e.movedSet.has(em.parentNode(u))||o(u)}for(var l,h=Zi(e.addedSet);!(l=h()).done;){var d=l.value;zm(e.droppedSet,d)||Fm(e.removesSubTreeCache,d,e.mirror)?zm(e.movedSet,d)?o(d):e.droppedSet.add(d):o(d)}var p=null;while(n.length){var f=null;if(p){var m=e.mirror.getId(em.parentNode(p.value)),g=i(p.value);-1!==m&&-1!==g&&(f=p)}if(!f){var v=n.tail;while(v){var y=v;if(v=v.previous,y){var w=e.mirror.getId(em.parentNode(y.value)),b=i(y.value);if(-1===b)continue;if(-1!==w){f=y;break}var _=y.value,k=em.parentNode(_);if(k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var S=em.host(k),x=e.mirror.getId(S);if(-1!==x){f=y;break}}}}}if(!f){while(n.head)n.removeNode(n.head.value);break}p=f.previous,n.removeNode(f.value),o(f.value)}var C={texts:e.texts.map(function(t){var r=t.node,n=em.parentNode(r);return n&&"TEXTAREA"===n.tagName&&e.genTextAreaValueMutation(n),{id:e.mirror.getId(r),value:t.value}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),attributes:e.attributes.map(function(t){var r=t.attributes;if("string"===typeof r.style){var n=JSON.stringify(t.styleDiff),i=JSON.stringify(t._unchangedStyles);n.length<r.style.length&&(n+i).split("var(").length===r.style.split("var(").length&&(r.style=t.styleDiff)}return{id:e.mirror.getId(t.node),attributes:r}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),removes:e.removes,adds:t};(C.texts.length||C.attributes.length||C.removes.length||C.adds.length)&&(e.texts=[],e.attributes=[],e.attributeMap=new WeakMap,e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.removesSubTreeCache=new Set,e.movedMap={},e.mutationCb(C))}}),io(this,"genTextAreaValueMutation",function(t){var r=e.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(r),e.attributeMap.set(t,r));var n=Array.from(em.childNodes(t),function(e){return em.textContent(e)||""}).join("");r.attributes.value=Wo({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:Jo(t),value:n,maskInputFn:e.maskInputFn})}),io(this,"processMutation",function(t){if(!pm(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=em.textContent(t.target);hm(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:xs(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,lm(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break;case"attributes":var n=t.target,i=t.attributeName,o=t.target.getAttribute(i);if("value"===i){var s=Jo(n);o=Wo({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:s,value:o,maskInputFn:e.maskInputFn})}if(hm(t.target,e.blockClass,e.blockSelector,!1)||o===t.oldValue)return;var a=e.attributeMap.get(t.target);if("IFRAME"===n.tagName&&"src"===i&&!e.keepIframeSrcFn(o)){if(n.contentDocument)return;i="rr_src"}if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(a),e.attributeMap.set(t.target,a)),"type"===i&&"INPUT"===n.tagName&&"password"===(t.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!_s(n.tagName,i))if(a.attributes[i]=bs(e.doc,Vo(n.tagName),Vo(i),o),"style"===i){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch(v){e.unattachedDoc=e.doc}var c=e.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(var u,l=Zi(Array.from(n.style));!(u=l()).done;){var h=u.value,d=n.style.getPropertyValue(h),p=n.style.getPropertyPriority(h);d!==c.style.getPropertyValue(h)||p!==c.style.getPropertyPriority(h)?a.styleDiff[h]=""===p?d:[d,p]:a._unchangedStyles[h]=[d,p]}for(var f,m=Zi(Array.from(c.style));!(f=m()).done;){var g=f.value;""===n.style.getPropertyValue(g)&&(a.styleDiff[g]=!1)}}else"open"===i&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?a.attributes["rr_open_mode"]="modal":a.attributes["rr_open_mode"]="non-modal");break;case"childList":if(hm(t.target,e.blockClass,e.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName)return void e.genTextAreaValueMutation(t.target);t.addedNodes.forEach(function(r){return e.genAdds(r,t.target)}),t.removedNodes.forEach(function(r){var n=e.mirror.getId(r),i=Do(t.target)?e.mirror.getId(em.host(t.target)):e.mirror.getId(t.target);hm(t.target,e.blockClass,e.blockSelector,!1)||pm(r,e.mirror,e.slimDOMOptions)||!dm(r,e.mirror)||(e.addedSet.has(r)?(Nm(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||fm(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[Lm(n,i)]?Nm(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!(!Do(t.target)||!Lo(t.target))||void 0}),jm(r,e.removesSubTreeCache))),e.mapRemoves.push(r))});break}}),io(this,"genAdds",function(t,r){if(!e.processedNodeManager.inOtherBuffer(t,e)&&!e.addedSet.has(t)&&!e.movedSet.has(t)){if(e.mirror.hasNode(t)){if(pm(t,e.mirror,e.slimDOMOptions))return;e.movedSet.add(t);var n=null;r&&e.mirror.hasNode(r)&&(n=e.mirror.getId(r)),n&&-1!==n&&(e.movedMap[Lm(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);hm(t,e.blockClass,e.blockSelector,!1)||(em.childNodes(t).forEach(function(t){return e.genAdds(t)}),wm(t)&&em.childNodes(em.shadowRoot(t)).forEach(function(r){e.processedNodeManager.add(r,e),e.genAdds(r,t)}))}}),io(this,"cleanupRemovedNode",function(t){if("IFRAME"===t.nodeName)try{e.iframeManager.removeIframe(t)}catch(r){}else try{e.stylesheetManager.cleanupStylesheetsForRemovedNode(t)}catch(r){}t.childNodes.forEach(function(t){e.cleanupRemovedNode(t)})})}var t=e.prototype;return t.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(r){t[r]=e[r]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t.getDoc=function(){return this.doc},e}();function Nm(e,t){e.delete(t),em.childNodes(t).forEach(function(t){return Nm(e,t)})}function jm(e,t){var r=[e];while(r.length){var n=r.pop();t.has(n)||(t.add(n),em.childNodes(n).forEach(function(e){return r.push(e)}))}}function Fm(e,t,r){return 0!==e.size&&Um(e,t)}function Um(e,t,r){var n=em.parentNode(t);return!!n&&e.has(n)}function zm(e,t){return 0!==e.size&&qm(e,t)}function qm(e,t){var r=em.parentNode(t);return!!r&&(!!e.has(r)||qm(e,r))}function Hm(e){Pm=e}function $m(){Pm=void 0}var Wm=function(e){if(!Pm)return e;var t=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];try{return e.apply(void 0,[].concat(r))}catch(i){if(Pm&&!0===Pm(i))return;throw i}};return t},Vm=[];function Ym(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(r){}return e&&e.target}function Xm(e,t){var r=new Bm;Vm.push(r),r.init(e);var n=new(Zf())(Wm(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function Jm(e){for(var t=Vm.length-1;t>=0;t--){var r=Vm[t];r.getDoc()===e&&Vm.splice(t,1)}}function Gm(e){var t=e.mousemoveCb,r=e.sampling,n=e.doc,i=e.mirror;if(!1===r.mousemove)return function(){};var o,s="number"===typeof r.mousemove?r.mousemove:50,a="number"===typeof r.mousemoveCallback?r.mousemoveCallback:500,c=[],u=im(Wm(function(e){var r=Date.now()-o;t(c.map(function(e){return e.timeOffset-=r,e}),e),c=[],o=null}),a),l=Wm(im(Wm(function(e){var t=Ym(e),r=mm(e)?e.changedTouches[0]:e,n=r.clientX,s=r.clientY;o||(o=sm()),c.push({x:n,y:s,id:i.getId(t),timeOffset:sm()-o}),u("undefined"!==typeof DragEvent&&$i(e,DragEvent)?Em.Drag:$i(e,MouseEvent)?Em.MouseMove:Em.TouchMove)}),s,{trailing:!1})),h=[tm("mousemove",l,n),tm("touchmove",l,n),tm("drag",l,n)];return Wm(function(){h.forEach(function(e){return e()})})}function Km(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;if(!1===s.mouseInteraction)return function(){};var a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,c=[],u=null,l=function(e){return function(r){var s=Ym(r);if(!hm(s,i,o,!0)){var a=null,c=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=Om.Mouse;break;case"touch":a=Om.Touch;break;case"pen":a=Om.Pen;break}a===Om.Touch?Am[e]===Am.MouseDown?c="TouchStart":Am[e]===Am.MouseUp&&(c="TouchEnd"):Om.Pen}else mm(r)&&(a=Om.Touch);null!==a?(u=a,(c.startsWith("Touch")&&a===Om.Touch||c.startsWith("Mouse")&&a===Om.Mouse)&&(a=null)):Am[e]===Am.Click&&(a=u,u=null);var l=mm(r)?r.changedTouches[0]:r;if(l){var h=n.getId(s),d=l.clientX,p=l.clientY;Wm(t)(zi({type:Am[c],id:h,x:d,y:p},null!==a&&{pointerType:a}))}}}};return Object.keys(Am).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}).forEach(function(e){var t=Vo(e),n=l(e);if(window.PointerEvent)switch(Am[e]){case Am.MouseDown:case Am.MouseUp:t=t.replace("mouse","pointer");break;case Am.TouchStart:case Am.TouchEnd:return}c.push(tm(t,n,r))}),Wm(function(){c.forEach(function(e){return e()})})}function Zm(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling,a=Wm(im(Wm(function(e){var s=Ym(e);if(s&&!hm(s,i,o,!0)){var a=n.getId(s);if(s===r&&r.defaultView){var c=am(r.defaultView);t({id:a,x:c.left,y:c.top})}else t({id:a,x:s.scrollLeft,y:s.scrollTop})}}),s.scroll||100));return tm("scroll",a,r)}function Qm(e,t){var r=e.viewportResizeCb,n=t.win,i=-1,o=-1,s=Wm(im(Wm(function(){var e=cm(),t=um();i===e&&o===t||(r({width:Number(t),height:Number(e)}),i=e,o=t)}),200));return tm("resize",s,n)}var eg=["INPUT","TEXTAREA","SELECT"],tg=new WeakMap;function rg(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,c=e.maskInputOptions,u=e.maskInputFn,l=e.sampling,h=e.userTriggeredOnInput;function d(e){var t=Ym(e),n=e.isTrusted,l=t&&t.tagName;if(t&&"OPTION"===l&&(t=em.parentElement(t)),t&&l&&!(eg.indexOf(l)<0)&&!hm(t,i,o,!0)&&!(t.classList.contains(s)||a&&t.matches(a))){var d=t.value,f=!1,m=Jo(t)||"";"radio"===m||"checkbox"===m?f=t.checked:(c[l.toLowerCase()]||c[m])&&(d=Wo({element:t,maskInputOptions:c,tagName:l,type:m,value:d,maskInputFn:u})),p(t,h?{text:d,isChecked:f,userTriggered:n}:{text:d,isChecked:f});var g=t.name;"radio"===m&&g&&f&&r.querySelectorAll('input[type="radio"][name="'+g+'"]').forEach(function(e){if(e!==t){var r=e.value;p(e,h?{text:r,isChecked:!f,userTriggered:!1}:{text:r,isChecked:!f})}})}}function p(e,r){var i=tg.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){tg.set(e,r);var o=n.getId(e);Wm(t)(zi({},r,{id:o}))}}var f="last"===l.input?["change"]:["input","change"],m=f.map(function(e){return tm(e,Wm(d),r)}),g=r.defaultView;if(!g)return function(){m.forEach(function(e){return e()})};var v,y=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,"value"),w=[[g.HTMLInputElement.prototype,"value"],[g.HTMLInputElement.prototype,"checked"],[g.HTMLSelectElement.prototype,"value"],[g.HTMLTextAreaElement.prototype,"value"],[g.HTMLSelectElement.prototype,"selectedIndex"],[g.HTMLOptionElement.prototype,"selected"]];y&&y.set&&(v=m).push.apply(v,[].concat(w.map(function(e){return om(e[0],e[1],{set:function(){Wm(d)({target:this,isTrusted:!1})}},!1,g)})));return Wm(function(){m.forEach(function(e){return e()})})}function ng(e){var t=[];function r(e,t){if(fg("CSSGroupingRule")&&$i(e.parentRule,CSSGroupingRule)||fg("CSSMediaRule")&&$i(e.parentRule,CSSMediaRule)||fg("CSSSupportsRule")&&$i(e.parentRule,CSSSupportsRule)||fg("CSSConditionRule")&&$i(e.parentRule,CSSConditionRule)){var r=Array.from(e.parentRule.cssRules),n=r.indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){var i=Array.from(e.parentStyleSheet.cssRules),o=i.indexOf(e);t.unshift(o)}return t}return r(e,t)}function ig(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function og(e,t){var r=e.styleSheetRuleCb,n=e.mirror,i=e.stylesheetManager,o=t.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var s=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:Wm(function(e,t,o){var s=o[0],a=o[1],c=ig(t,n,i.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,adds:[{rule:s,index:a}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.addRule=function(e,t,r){void 0===r&&(r=this.cssRules.length);var n=e+" { "+t+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])};var a,c,u=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(u,{apply:Wm(function(e,t,o){var s=o[0],a=ig(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,removes:[{index:s}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.removeRule=function(e){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},o.CSSStyleSheet.prototype.replace&&(a=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:Wm(function(e,t,o){var s=o[0],a=ig(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,replace:s}),e.apply(t,o)})})),o.CSSStyleSheet.prototype.replaceSync&&(c=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:Wm(function(e,t,o){var s=o[0],a=ig(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,replaceSync:s}),e.apply(t,o)})}));var l={};mg("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(mg("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),mg("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),mg("CSSSupportsRule")&&(l.CSSSupportsRule=o.CSSSupportsRule));var h={};return Object.entries(l).forEach(function(e){var t=e[0],o=e[1];h[t]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(h[t].insertRule,{apply:Wm(function(e,t,o){var s=o[0],a=o[1],c=ig(t.parentStyleSheet,n,i.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,adds:[{rule:s,index:[].concat(ng(t),[a||0])}]}),e.apply(t,o)})}),o.prototype.deleteRule=new Proxy(h[t].deleteRule,{apply:Wm(function(e,t,o){var s=o[0],a=ig(t.parentStyleSheet,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,removes:[{index:[].concat(ng(t),[s])}]}),e.apply(t,o)})})}),Wm(function(){o.CSSStyleSheet.prototype.insertRule=s,o.CSSStyleSheet.prototype.deleteRule=u,a&&(o.CSSStyleSheet.prototype.replace=a),c&&(o.CSSStyleSheet.prototype.replaceSync=c),Object.entries(l).forEach(function(e){var t=e[0],r=e[1];r.prototype.insertRule=h[t].insertRule,r.prototype.deleteRule=h[t].deleteRule})})}function sg(e,t){var r,n,i,o=e.mirror,s=e.stylesheetManager,a=null;a="#document"===t.nodeName?o.getId(t):o.getId(em.host(t));var c="#document"===t.nodeName?null==(r=t.defaultView)?void 0:r.Document:null==(i=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:i.ShadowRoot,u=(null==c?void 0:c.prototype)?Object.getOwnPropertyDescriptor(null==c?void 0:c.prototype,"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&c&&u?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:function(){var e;return null==(e=u.get)?void 0:e.call(this)},set:function(e){var t,r=null==(t=u.set)?void 0:t.call(this,e);if(null!==a&&-1!==a)try{s.adoptStyleSheets(e,a)}catch(n){}return r}}),Wm(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})})):function(){}}function ag(e,t){var r=e.styleDeclarationCb,n=e.mirror,i=e.ignoreCSSAttributes,o=e.stylesheetManager,s=t.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:Wm(function(e,t,s){var c,u=s[0],l=s[1],h=s[2];if(i.has(u))return a.apply(t,[u,l,h]);var d=ig(null==(c=t.parentRule)?void 0:c.parentStyleSheet,n,o.styleMirror),p=d.id,f=d.styleId;return(p&&-1!==p||f&&-1!==f)&&r({id:p,styleId:f,set:{property:u,value:l,priority:h},index:ng(t.parentRule)}),e.apply(t,s)})});var c=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:Wm(function(e,t,s){var a,u=s[0];if(i.has(u))return c.apply(t,[u]);var l=ig(null==(a=t.parentRule)?void 0:a.parentStyleSheet,n,o.styleMirror),h=l.id,d=l.styleId;return(h&&-1!==h||d&&-1!==d)&&r({id:h,styleId:d,remove:{property:u},index:ng(t.parentRule)}),e.apply(t,s)})}),Wm(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=c})}function cg(e){var t=e.mediaInteractionCb,r=e.blockClass,n=e.blockSelector,i=e.mirror,o=e.sampling,s=e.doc,a=Wm(function(e){return im(Wm(function(o){var s=Ym(o);if(s&&!hm(s,r,n,!0)){var a=s.currentTime,c=s.volume,u=s.muted,l=s.playbackRate,h=s.loop;t({type:e,id:i.getId(s),currentTime:a,volume:c,muted:u,playbackRate:l,loop:h})}}),o.media||500)}),c=[tm("play",a(Tm.Play),s),tm("pause",a(Tm.Pause),s),tm("seeked",a(Tm.Seeked),s),tm("volumechange",a(Tm.VolumeChange),s),tm("ratechange",a(Tm.RateChange),s)];return Wm(function(){c.forEach(function(e){return e()})})}function ug(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var i=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,r){var n=new s(e,t,r);return o.set(n,{family:e,buffer:"string"!==typeof t,descriptors:r,fontSource:"string"===typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var a=Qf(r.fonts,"add",function(e){return function(r){return setTimeout(Wm(function(){var e=o.get(r);e&&(t(e),o.delete(r))}),0),e.apply(this,[r])}});return i.push(function(){n.FontFace=s}),i.push(a),Wm(function(){i.forEach(function(e){return e()})})}function lg(e){var t=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.selectionCb,s=!0,a=Wm(function(){var e=t.getSelection();if(!(!e||s&&(null==e?void 0:e.isCollapsed))){s=e.isCollapsed||!1;for(var a=[],c=e.rangeCount||0,u=0;u<c;u++){var l=e.getRangeAt(u),h=l.startContainer,d=l.startOffset,p=l.endContainer,f=l.endOffset,m=hm(h,n,i,!0)||hm(p,n,i,!0);m||a.push({start:r.getId(h),startOffset:d,end:r.getId(p),endOffset:f})}o({ranges:a})}});return a(),tm("selectionchange",a)}function hg(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;if(!n||!n.customElements)return function(){};var i=Qf(n.customElements,"define",function(e){return function(t,n,i){try{r({define:{name:t}})}catch(o){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,n,i])}});return i}function dg(e,t){var r=e.mutationCb,n=e.mousemoveCb,i=e.mouseInteractionCb,o=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,c=e.mediaInteractionCb,u=e.styleSheetRuleCb,l=e.styleDeclarationCb,h=e.canvasMutationCb,d=e.fontCb,p=e.selectionCb,f=e.customElementCb;e.mutationCb=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var o;t.mutation&&(o=t).mutation.apply(o,[].concat(n));r.apply(void 0,[].concat(n))},e.mousemoveCb=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o;t.mousemove&&(o=t).mousemove.apply(o,[].concat(r));n.apply(void 0,[].concat(r))},e.mouseInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o;t.mouseInteraction&&(o=t).mouseInteraction.apply(o,[].concat(r));i.apply(void 0,[].concat(r))},e.scrollCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.scroll&&(i=t).scroll.apply(i,[].concat(r));o.apply(void 0,[].concat(r))},e.viewportResizeCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.viewportResize&&(i=t).viewportResize.apply(i,[].concat(r));s.apply(void 0,[].concat(r))},e.inputCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.input&&(i=t).input.apply(i,[].concat(r));a.apply(void 0,[].concat(r))},e.mediaInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.mediaInteaction&&(i=t).mediaInteaction.apply(i,[].concat(r));c.apply(void 0,[].concat(r))},e.styleSheetRuleCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleSheetRule&&(i=t).styleSheetRule.apply(i,[].concat(r));u.apply(void 0,[].concat(r))},e.styleDeclarationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleDeclaration&&(i=t).styleDeclaration.apply(i,[].concat(r));l.apply(void 0,[].concat(r))},e.canvasMutationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.canvasMutation&&(i=t).canvasMutation.apply(i,[].concat(r));h.apply(void 0,[].concat(r))},e.fontCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.font&&(i=t).font.apply(i,[].concat(r));d.apply(void 0,[].concat(r))},e.selectionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.selection&&(i=t).selection.apply(i,[].concat(r));p.apply(void 0,[].concat(r))},e.customElementCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.customElement&&(i=t).customElement.apply(i,[].concat(r));f.apply(void 0,[].concat(r))}}function pg(e,t){void 0===t&&(t={});var r,n=e.doc.defaultView;if(!n)return function(){};dg(e,t),e.recordDOM&&(r=Xm(e,e.doc));var i=Gm(e),o=Km(e),s=Zm(e),a=Qm(e,{win:n}),c=rg(e),u=cg(e),l=function(){},h=function(){},d=function(){},p=function(){};e.recordDOM&&(l=og(e,{win:n}),h=sg(e,e.doc),d=ag(e,{win:n}),e.collectFonts&&(p=ug(e)));for(var f,m=lg(e),g=hg(e),v=[],y=Zi(e.plugins);!(f=y()).done;){var w=f.value;v.push(w.observer(w.callback,n,w.options))}return Wm(function(){Vm.forEach(function(e){return e.reset()}),null==r||r.disconnect(),i(),o(),s(),a(),c(),u(),l(),h(),d(),p(),m(),g(),v.forEach(function(e){return e()})})}function fg(e){return"undefined"!==typeof window[e]}function mg(e){return Boolean("undefined"!==typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var gg=function(){function e(e){io(this,"iframeIdToRemoteIdMap",new WeakMap),io(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var t=e.prototype;return t.getId=function(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s},t.getIds=function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getId(e,t,n,i)})},t.getRemoteId=function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);if("number"!==typeof t)return t;var i=n.get(t);return i||-1},t.getRemoteIds=function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getRemoteId(e,t,n)})},t.reset=function(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},t.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},t.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},e}(),vg=function(){function e(e){io(this,"iframes",new WeakMap),io(this,"crossOriginIframeMap",new WeakMap),io(this,"crossOriginIframeMirror",new gg(hs)),io(this,"crossOriginIframeStyleMirror"),io(this,"crossOriginIframeRootIdMap",new WeakMap),io(this,"iframeContentDocumentMap",new WeakMap),io(this,"iframeObserverCleanupMap",new WeakMap),io(this,"mirror"),io(this,"mutationCb"),io(this,"wrappedEmit"),io(this,"loadListener"),io(this,"stylesheetManager"),io(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new gg(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},t.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},t.setObserverCleanup=function(e,t){this.iframeObserverCleanupMap.set(e,t)},t.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},t.removeIframe=function(e){var t=this.iframeContentDocumentMap.get(e);t&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(t),this.mirror.removeNodeFromMap(t,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var r=this.iframeObserverCleanupMap.get(e);if(r){try{r()}catch(n){}this.iframeObserverCleanupMap.delete(e)}},t.addLoadListener=function(e){this.loadListener=e},t.attachIframe=function(e,t){var r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin){var r=e.source;if(r){var n=this.crossOriginIframeMap.get(e.source);if(n){var i=this.transformCrossOriginEvent(n,t.data.event);i&&this.wrappedEmit(i,t.data.isCheckout)}}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case Cm.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:Cm.IncrementalSnapshot,data:{source:Em.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case Cm.Meta:case Cm.Load:case Cm.DomContentLoaded:return!1;case Cm.Plugin:return t;case Cm.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Cm.IncrementalSnapshot:switch(t.data.source){case Em.Mutation:return t.data.adds.forEach(function(t){n.replaceIds(t,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(t.node,e);var r=n.crossOriginIframeRootIdMap.get(e);r&&n.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(function(t){n.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(function(t){n.replaceIds(t,e,["id"])}),t.data.texts.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case Em.Drag:case Em.TouchMove:case Em.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case Em.ViewportResize:return!1;case Em.MediaInteraction:case Em.MouseInteraction:case Em.Scroll:case Em.CanvasMutation:case Em.Input:return this.replaceIds(t.data,e,["id"]),t;case Em.StyleSheetRule:case Em.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Em.Font:return t;case Em.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case Em.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(function(t){n.replaceStyleIds(t,e,["styleId"])}),t}}return!1},t.replace=function(e,t,r,n){for(var i,o=Zi(n);!(i=o()).done;){var s=i.value;(Array.isArray(t[s])||"number"===typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]))}return t},t.replaceIds=function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)},t.replaceStyleIds=function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)},t.replaceIdOnNode=function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){r.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var r=this;e.type===Mm.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),yg=function(){function e(e){io(this,"shadowDoms",new WeakSet),io(this,"mutationCb"),io(this,"scrollCb"),io(this,"bypassOptions"),io(this,"mirror"),io(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(e,t){var r=this;if(Lo(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=Xm(zi({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(Zm(zi({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(em.host(e))),r.restoreHandlers.push(sg({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))},0)}},t.observeAttachShadow=function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},t.patchAttachShadow=function(e,t){var r=this;this.restoreHandlers.push(Qf(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=em.shadowRoot(this);return o&&xm(this)&&r.addShadowRoot(o,t),i}}))},t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),wg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bg="undefined"===typeof Uint8Array?[]:new Uint8Array(256),_g=0;_g<wg.length;_g++)bg[wg.charCodeAt(_g)]=_g;var kg=function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=wg[r[t]>>2],i+=wg[(3&r[t])<<4|r[t+1]>>4],i+=wg[(15&r[t+1])<<2|r[t+2]>>6],i+=wg[63&r[t+2]];return n%3===2?i=i.substring(0,i.length-1)+"=":n%3===1&&(i=i.substring(0,i.length-2)+"=="),i},Sg=new Map;function xg(e,t){var r=Sg.get(e);return r||(r=new Map,Sg.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var Cg=function(e,t,r){if(e&&(Og(e,t)||"object"===("undefined"===typeof e?"undefined":Xi(e)))){var n=e.constructor.name,i=xg(r,n),o=i.indexOf(e);return-1===o&&(o=i.length,i.push(e)),o}};function Eg(e,t,r){if($i(e,Array))return e.map(function(e){return Eg(e,t,r)});if(null===e)return e;if($i(e,Float32Array)||$i(e,Float64Array)||$i(e,Int32Array)||$i(e,Uint32Array)||$i(e,Uint8Array)||$i(e,Uint16Array)||$i(e,Int16Array)||$i(e,Int8Array)||$i(e,Uint8ClampedArray)){var n=e.constructor.name;return{rr_type:n,args:[Object.values(e)]}}if($i(e,ArrayBuffer)){var i=e.constructor.name,o=kg(e);return{rr_type:i,base64:o}}if($i(e,DataView)){var s=e.constructor.name;return{rr_type:s,args:[Eg(e.buffer,t,r),e.byteOffset,e.byteLength]}}if($i(e,HTMLImageElement)){var a=e.constructor.name,c=e.src;return{rr_type:a,src:c}}if($i(e,HTMLCanvasElement)){var u="HTMLImageElement",l=e.toDataURL();return{rr_type:u,src:l}}if($i(e,ImageData)){var h=e.constructor.name;return{rr_type:h,args:[Eg(e.data,t,r),e.width,e.height]}}if(Og(e,t)||"object"===("undefined"===typeof e?"undefined":Xi(e))){var d=e.constructor.name,p=Cg(e,t,r);return{rr_type:d,index:p}}return e}var Ag=function(e,t,r){return e.map(function(e){return Eg(e,t,r)})},Og=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],n=r.filter(function(e){return"function"===typeof t[e]});return Boolean(n.find(function(r){return $i(e,t[r])}))};function Ig(e,t,r,n){for(var i,o=function(){var o=i.value;try{if("function"!==typeof t.CanvasRenderingContext2D.prototype[o])return"continue";var a=Qf(t.CanvasRenderingContext2D.prototype,o,function(i){return function(){for(var s=this,a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];return hm(this.canvas,r,n,!0)||setTimeout(function(){var r=Ag(c,t,s);e(s.canvas,{type:Im["2D"],property:o,args:r})},0),i.apply(this,c)}});s.push(a)}catch(u){var c=om(t.CanvasRenderingContext2D.prototype,o,{set:function(t){e(this.canvas,{type:Im["2D"],property:o,args:[t],setter:!0})}});s.push(c)}},s=[],a=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),c=Zi(a);!(i=c()).done;)o();return function(){s.forEach(function(e){return e()})}}function Tg(e){return"experimental-webgl"===e?"webgl":e}function Mg(e,t,r,n){var i=[];try{var o=Qf(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];if(!hm(this,t,r,!0)){var c=Tg(i);if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c))if(s[0]&&"object"===Xi(s[0])){var u=s[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[].concat([i],s))}});i.push(o)}catch(s){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach(function(e){return e()})}}function Rg(e,t,r,n,i,o){for(var s,a=function(){var a=s.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))return"continue";try{if("function"!==typeof e[a])return"continue";var u=Qf(e,a,function(e){return function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];var l=e.apply(this,c);if(Cg(l,o,this),"tagName"in this.canvas&&!hm(this.canvas,n,i,!0)){var h=Ag(c,o,this),d={type:t,property:a,args:h};r(this.canvas,d)}return l}});c.push(u)}catch(h){var l=om(e,a,{set:function(e){r(this.canvas,{type:t,property:a,args:[e],setter:!0})}});c.push(l)}},c=[],u=Object.getOwnPropertyNames(e),l=Zi(u);!(s=l()).done;)a();return c}function Pg(e,t,r,n){var i,o,s=[];((i=s).push.apply(i,[].concat(Rg(t.WebGLRenderingContext.prototype,Im.WebGL,e,r,n,t))),"undefined"!==typeof t.WebGL2RenderingContext)&&(o=s).push.apply(o,[].concat(Rg(t.WebGL2RenderingContext.prototype,Im.WebGL2,e,r,n,t)));return function(){s.forEach(function(e){return e()})}}var Dg="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Lg=function(e){return Uint8Array.from(atob(e),function(e){return e.charCodeAt(0)})},Bg="undefined"!==typeof window&&window.Blob&&new Blob([Lg(Dg)],{type:"text/javascript;charset=utf-8"});function Ng(e){var t;try{if(t=Bg&&(window.URL||window.webkitURL).createObjectURL(Bg),!t)throw"";var r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch(n){return new Worker("data:text/javascript;base64,"+Dg,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var jg,Fg,Ug,zg=function(){function e(e){var t=this;io(this,"pendingCanvasMutations",new Map),io(this,"rafStamps",{latestId:0,invokeId:null}),io(this,"mirror"),io(this,"mutationCb"),io(this,"resetObservers"),io(this,"frozen",!1),io(this,"locked",!1),io(this,"processMutation",function(e,r){var n=t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId;!n&&t.rafStamps.invokeId||(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(e)||t.pendingCanvasMutations.set(e,[]),t.pendingCanvasMutations.get(e).push(r)});var r=e.sampling,n=void 0===r?"all":r,i=e.win,o=e.blockClass,s=e.blockSelector,a=e.recordCanvas,c=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&"all"===n&&this.initCanvasMutationObserver(i,o,s),a&&"number"===typeof n&&this.initCanvasFPSObserver(n,i,o,s,{dataURLOptions:c})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(e,t,r,n,i){var o=this,s=Mg(t,r,n,!0),a=new Map,c=new Ng;c.onmessage=function(e){var t=e.data.id;if(a.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,i=r.type,s=r.width,c=r.height;o.mutationCb({id:t,type:Im["2D"],commands:[{property:"clearRect",args:[0,0,s,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})}};var u,l=1e3/e,h=0,d=function(){var e=[];return t.document.querySelectorAll("canvas").forEach(function(t){hm(t,r,n,!0)||e.push(t)}),e},p=function(e){if(h&&e-h<l)u=requestAnimationFrame(p);else{h=e;var t=o;d().forEach(Ni(function(e){var r,n,o,s;return Qi(this,function(u){switch(u.label){case 0:return n=t.mirror.getId(e),a.get(n)?[2]:0===e.width||0===e.height?[2]:(a.set(n,!0),["webgl","webgl2"].includes(e.__context)&&(o=e.getContext(e.__context),!1===(null==(r=null==o?void 0:o.getContextAttributes())?void 0:r.preserveDrawingBuffer)&&o.clear(o.COLOR_BUFFER_BIT)),[4,createImageBitmap(e)]);case 1:return s=u.sent(),c.postMessage({id:n,bitmap:s,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[s]),[2]}})})),u=requestAnimationFrame(p)}};u=requestAnimationFrame(p),this.resetObservers=function(){s(),cancelAnimationFrame(u)}},t.initCanvasMutationObserver=function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n=Mg(e,t,r,!1),i=Ig(this.processMutation.bind(this),e,t,r),o=Pg(this.processMutation.bind(this),e,t,r);this.resetObservers=function(){n(),i(),o()}},t.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.startRAFTimestamping=function(){var e=this,t=function(r){e.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)},t.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,r){var n=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var n=r.map(function(e){e.type;var t=Vi(e,["type"]);return t}),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),qg=function(){function e(e){io(this,"trackedLinkElements",new WeakSet),io(this,"mutationCb"),io(this,"adoptedStyleSheetCb"),io(this,"styleMirror",new bm),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},t.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},t.adoptStyleSheets=function(e,t){var r,n=function(){var e=i.value,t=void 0;r.styleMirror.has(e)?t=r.styleMirror.getId(e):(t=r.styleMirror.add(e),s.push({styleId:t,rules:Array.from(e.rules||CSSRule,function(t,r){return{rule:Fo(t,e.href),index:r}})})),o.styleIds.push(t)};if(0!==e.length){for(var i,o={id:t,styleIds:[]},s=[],a=Zi(e);!(i=a()).done;)r=this,n();s.length>0&&(o.styles=s),this.adoptedStyleSheetCb(o)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.cleanupStylesheetsForRemovedNode=function(e){var t=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var r=e;if(r.adoptedStyleSheets)for(var n,i=Zi(r.adoptedStyleSheets);!(n=i()).done;){var o=n.value;this.styleMirror.remove(o)}}if("STYLE"===e.nodeName){var s=e;s.sheet&&this.styleMirror.remove(s.sheet)}if("LINK"===e.nodeName&&"stylesheet"===e.rel){var a=e;a.sheet&&this.styleMirror.remove(a.sheet)}e.childNodes&&e.childNodes.forEach(function(e){t.cleanupStylesheetsForRemovedNode(e)})}catch(c){}},t.trackStylesheetInLinkElement=function(e){},e}(),Hg=function(){function e(){io(this,"nodeMap",new WeakMap),io(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some(function(e){return e!==t})},t.add=function(e,t){var r=this;this.active||(this.active=!0,requestAnimationFrame(function(){r.nodeMap=new WeakMap,r.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},t.destroy=function(){},e}();function $g(e){try{var t=new URL(e).origin;return"null"!==t?t:null}catch(r){return null}}function Wg(e){if(!Array.isArray(e)||0===e.length)throw new Error("[rrweb] allowedIframeOrigins must be a non-empty array of origin strings.");for(var t=new Set,r=0;r<e.length;r++){var n=e[r];if("string"!==typeof n)throw new Error("[rrweb] allowedIframeOrigins["+r+"] must be a string, got "+("undefined"===typeof n?"undefined":Xi(n))+".");var i=$g(n);i&&t.add(i)}return Object.freeze(t)}var Vg=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var Yg=document.createElement("iframe");document.body.appendChild(Yg),Array.from=(null==(to=Yg.contentWindow)?void 0:to.Array.from)||Array.from,document.body.removeChild(Yg)}}catch(xA){console.debug("Unable to override Array.from",xA)}var Xg,Jg=$o();function Gg(e){void 0===e&&(e={});var t,r=e.emit,n=e.checkoutEveryNms,i=e.checkoutEveryNth,o=e.blockClass,s=void 0===o?"rr-block":o,a=e.blockSelector,c=void 0===a?null:a,u=e.ignoreClass,l=void 0===u?"rr-ignore":u,h=e.ignoreSelector,d=void 0===h?null:h,p=e.maskTextClass,f=void 0===p?"rr-mask":p,m=e.maskTextSelector,g=void 0===m?null:m,v=e.inlineStylesheet,y=void 0===v||v,w=e.maskAllInputs,b=e.maskInputOptions,_=e.slimDOMOptions,k=e.maskInputFn,S=e.maskTextFn,x=e.hooks,C=e.packFn,E=e.sampling,A=void 0===E?{}:E,O=e.dataURLOptions,I=void 0===O?{}:O,T=e.mousemoveWait,M=e.recordDOM,R=void 0===M||M,P=e.recordCanvas,D=void 0!==P&&P,L=e.recordCrossOriginIframes,B=void 0!==L&&L,N=e.allowedIframeOrigins,j=e.recordAfter,F=void 0===j?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":j,U=e.userTriggeredOnInput,z=void 0!==U&&U,q=e.collectFonts,H=void 0!==q&&q,$=e.inlineImages,W=void 0!==$&&$,V=e.plugins,Y=e.keepIframeSrcFn,X=void 0===Y?function(){return!1}:Y,J=e.ignoreCSSAttributes,G=void 0===J?new Set([]):J,K=e.errorHandler;Hm(K),B&&N&&N.length>0&&(t=Wg(N),0===t.size&&(t=void 0));var Z=!B||window.parent===window,Q=!1;if(!Z)try{window.parent.document&&(Q=!1)}catch(we){Q=!0}if(Z&&!r)throw new Error("emit function is required");if(!Z&&!Q)return function(){};void 0!==T&&void 0===A.mousemove&&(A.mousemove=T),Jg.reset();var ee,te=!0===w?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:void 0!==b?b:{password:!0},re=!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===_,headMetaDescKeywords:"all"===_,headTitleMutations:"all"===_}:_||{};gm();var ne=0,ie=function(e){for(var t,r=Zi(V||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return C&&!Q&&(e=C(e)),e};jg=function(e,o){var s,a=e;if(a.timestamp=sm(),!(null==(s=Vm[0])?void 0:s.isFrozen())||a.type===Cm.FullSnapshot||a.type===Cm.IncrementalSnapshot&&a.data.source===Em.Mutation||Vm.forEach(function(e){return e.unfreeze()}),Z)null==r||r(ie(a),o);else if(Q){var c={type:"rrweb",event:ie(a),origin:window.location.origin,isCheckout:o};if(t)for(var u,l=Zi(t);!(u=l()).done;){var h=u.value;window.parent.postMessage(c,h)}else window.parent.postMessage(c,"*")}if(a.type===Cm.FullSnapshot)ee=a,ne=0;else if(a.type===Cm.IncrementalSnapshot){if(a.data.source===Em.Mutation&&a.data.isAttachIframe)return;ne++;var d=i&&ne>=i,p=n&&a.timestamp-ee.timestamp>n;(d||p)&&Fg(!0)}};for(var oe,se=function(e){jg({type:Cm.IncrementalSnapshot,data:zi({source:Em.Mutation},e)})},ae=function(e){return jg({type:Cm.IncrementalSnapshot,data:zi({source:Em.Scroll},e)})},ce=function(e){return jg({type:Cm.IncrementalSnapshot,data:zi({source:Em.CanvasMutation},e)})},ue=function(e){return jg({type:Cm.IncrementalSnapshot,data:zi({source:Em.AdoptedStyleSheet},e)})},le=new qg({mutationCb:se,adoptedStyleSheetCb:ue}),he=new vg({mirror:Jg,mutationCb:se,stylesheetManager:le,recordCrossOriginIframes:B,wrappedEmit:jg}),de=Zi(V||[]);!(oe=de()).done;){var pe=oe.value;pe.getMirror&&pe.getMirror({nodeMirror:Jg,crossOriginIframeMirror:he.crossOriginIframeMirror,crossOriginIframeStyleMirror:he.crossOriginIframeStyleMirror})}var fe=new Hg;Ug=new zg({recordCanvas:D,mutationCb:ce,win:window,blockClass:s,blockSelector:c,mirror:Jg,sampling:A.canvas,dataURLOptions:I});var me=new yg({mutationCb:se,scrollCb:ae,bypassOptions:{blockClass:s,blockSelector:c,maskTextClass:f,maskTextSelector:g,inlineStylesheet:y,maskInputOptions:te,dataURLOptions:I,maskTextFn:S,maskInputFn:k,recordCanvas:D,inlineImages:W,sampling:A,slimDOMOptions:re,iframeManager:he,stylesheetManager:le,canvasManager:Ug,keepIframeSrcFn:X,processedNodeManager:fe},mirror:Jg});Fg=function(e){if(void 0===e&&(e=!1),R){jg({type:Cm.Meta,data:{href:window.location.href,width:um(),height:cm()}},e),le.reset(),me.init(),Vm.forEach(function(e){return e.lock()});var t=Ds(document,{mirror:Jg,blockClass:s,blockSelector:c,maskTextClass:f,maskTextSelector:g,inlineStylesheet:y,maskAllInputs:te,maskTextFn:S,maskInputFn:k,slimDOM:re,dataURLOptions:I,recordCanvas:D,inlineImages:W,onSerialize:function(e){vm(e,Jg)&&he.addIframe(e),ym(e,Jg)&&le.trackLinkElement(e),wm(e)&&me.addShadowRoot(em.shadowRoot(e),document)},onIframeLoad:function(e,t){he.attachIframe(e,t),me.observeAttachShadow(e)},onStylesheetLoad:function(e,t){le.attachLinkElement(e,t)},keepIframeSrcFn:X});if(!t)return console.warn("Failed to snapshot the document");jg({type:Cm.FullSnapshot,data:{node:t,initialOffset:am(window)}},e),Vm.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&le.adoptStyleSheets(document.adoptedStyleSheets,Jg.getId(document))}};try{var ge=[],ve=function(e){var t;return Wm(pg)({mutationCb:se,mousemoveCb:function(e,t){return jg({type:Cm.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return jg({type:Cm.IncrementalSnapshot,data:zi({source:Em.MouseInteraction},e)})},scrollCb:ae,viewportResizeCb:function(e){return jg({type:Cm.IncrementalSnapshot,data:zi({source:Em.ViewportResize},e)})},inputCb:function(e){return jg({type:Cm.IncrementalSnapshot,data:zi({source:Em.Input},e)})},mediaInteractionCb:function(e){return jg({type:Cm.IncrementalSnapshot,data:zi({source:Em.MediaInteraction},e)})},styleSheetRuleCb:function(e){return jg({type:Cm.IncrementalSnapshot,data:zi({source:Em.StyleSheetRule},e)})},styleDeclarationCb:function(e){return jg({type:Cm.IncrementalSnapshot,data:zi({source:Em.StyleDeclaration},e)})},canvasMutationCb:ce,fontCb:function(e){return jg({type:Cm.IncrementalSnapshot,data:zi({source:Em.Font},e)})},selectionCb:function(e){jg({type:Cm.IncrementalSnapshot,data:zi({source:Em.Selection},e)})},customElementCb:function(e){jg({type:Cm.IncrementalSnapshot,data:zi({source:Em.CustomElement},e)})},blockClass:s,ignoreClass:l,ignoreSelector:d,maskTextClass:f,maskTextSelector:g,maskInputOptions:te,inlineStylesheet:y,sampling:A,recordDOM:R,recordCanvas:D,inlineImages:W,userTriggeredOnInput:z,collectFonts:H,doc:e,maskInputFn:k,maskTextFn:S,keepIframeSrcFn:X,blockSelector:c,slimDOMOptions:re,dataURLOptions:I,mirror:Jg,iframeManager:he,stylesheetManager:le,shadowDomManager:me,processedNodeManager:fe,canvasManager:Ug,ignoreCSSAttributes:G,plugins:(null==(t=null==V?void 0:V.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return jg({type:Cm.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},x)};he.addLoadListener(function(e){try{var t=e.contentDocument,r=ve(t);ge.push(r);var n=he.getObserverCleanup(e);he.setObserverCleanup(e,function(){if(n)try{n()}catch(we){}try{r();var e=ge.indexOf(r);-1!==e&&ge.splice(e,1),Jm(t)}catch(we){}})}catch(i){console.warn(i)}});var ye=function(){Fg(),ge.push(ve(document)),Vg=!0};return"interactive"===document.readyState||"complete"===document.readyState?ye():(ge.push(tm("DOMContentLoaded",function(){jg({type:Cm.DomContentLoaded,data:{}}),"DOMContentLoaded"===F&&ye()})),ge.push(tm("load",function(){jg({type:Cm.Load,data:{}}),"load"===F&&ye()},window))),function(){ge.forEach(function(e){try{e()}catch(r){var t=String(r).toLowerCase();t.includes("cross-origin")||console.warn(r)}}),fe.destroy(),Vg=!1,$m()}}catch(be){console.warn(be)}}Gg.addCustomEvent=function(e,t){if(!Vg)throw new Error("please add custom event after start recording");jg({type:Cm.Custom,data:{tag:e,payload:t}})},Gg.freezePage=function(){Vm.forEach(function(e){return e.freeze()})},Gg.takeFullSnapshot=function(e){if(!Vg)throw new Error("please take full snapshot after start recording");Fg(e)},Gg.mirror=Jg,function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(Xg||(Xg={})),Gg.addCustomEvent,Gg.freezePage,Gg.takeFullSnapshot;var Kg={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Zg={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Qg={},ev=function(){return!!globalThis.Zone};function tv(e){if(Qg[e])return Qg[e];var t=globalThis[e],r=t.prototype,n=e in Kg?Kg[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in Zg?Zg[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"===typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!ev())return Qg[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;return document.body.removeChild(a),u?Qg[e]=u:r}catch(l){return r}}var rv={};function nv(e,t,r){var n,i=e+"."+String(r);if(rv[i])return rv[i].call(t);var o=tv(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(rv[i]=s,s.call(t)):t[r]}var iv={};function ov(e,t,r){var n=e+"."+String(r);if(iv[n])return iv[n].bind(t);var i=tv(e),o=i[r];return"function"!==typeof o?t[r]:(iv[n]=o,o.bind(t))}function sv(e){return nv("Node",e,"childNodes")}function av(e){return nv("Node",e,"parentNode")}function cv(e){return nv("Node",e,"parentElement")}function uv(e){return nv("Node",e,"textContent")}function lv(e,t){return ov("Node",e,"contains")(t)}function hv(e){return ov("Node",e,"getRootNode")()}function dv(e){return e&&"host"in e?nv("ShadowRoot",e,"host"):null}function pv(e){return e.styleSheets}function fv(e){return e&&"shadowRoot"in e?nv("Element",e,"shadowRoot"):null}function mv(e,t){return nv("Element",e,"querySelector")(t)}function gv(e,t){return nv("Element",e,"querySelectorAll")(t)}function vv(){return tv("MutationObserver").constructor}function yv(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"===typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(o){return function(){}}}var wv={childNodes:sv,parentNode:av,parentElement:cv,textContent:uv,contains:lv,getRootNode:hv,host:dv,styleSheets:pv,shadowRoot:fv,querySelector:mv,querySelectorAll:gv,mutationObserver:vv,patch:yv};function bv(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return bv(wv.parentNode(e),t);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return bv(wv.parentNode(e),t)}function _v(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function kv(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return $i(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var Sv={exports:{}},xv=String,Cv=function(){return{isColorSupported:!1,reset:xv,bold:xv,dim:xv,italic:xv,underline:xv,inverse:xv,hidden:xv,strikethrough:xv,black:xv,red:xv,green:xv,yellow:xv,blue:xv,magenta:xv,cyan:xv,white:xv,gray:xv,bgBlack:xv,bgRed:xv,bgGreen:xv,bgYellow:xv,bgBlue:xv,bgMagenta:xv,bgCyan:xv,bgWhite:xv}};Sv.exports=Cv(),Sv.exports.createColors=Cv;var Ev=Sv.exports,Av={},Ov=Object.freeze(Object.defineProperty({__proto__:null,default:Av},Symbol.toStringTag,{value:"Module"})),Iv=kv(Ov),Tv=Ev,Mv=Iv,Rv=function(e){function t(r,n,i,o,s,a){var c;return c=e.call(this,r)||this,c.name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),"undefined"!==typeof n&&"undefined"!==typeof i&&("number"===typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}Hi(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>","undefined"!==typeof this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=Tv.isColorSupported),Mv&&e&&(r=Mv(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=Tv.createColors(!0),l=u.bold,h=u.gray,d=u.red;n=function(e){return l(d(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(Gi(Error)),Pv=Rv;Rv.default=Rv;var Dv={};Dv.isClean=Symbol("isClean"),Dv.my=Symbol("my");var Lv={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Bv(e){return e[0].toUpperCase()+e.slice(1)}var Nv=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if("undefined"!==typeof e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");var n=e.parent,i=0;while(n&&"root"!==n.type)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){var t=e.nodes.length-1;while(t>0){if("comment"!==e.nodes[t].type)break;t-=1}for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&(n=e.raws[t],"undefined"!==typeof n))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Lv[r];var o=e.root();if(o.rawCache||(o.rawCache={}),"undefined"!==typeof o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s="raw"+Bv(r);return this[s]?n=this[s](o,e):o.walk(function(e){if(n=e.raws[t],"undefined"!==typeof n)return!1}),"undefined"===typeof n&&(n=Lv[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&"undefined"!==typeof e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if("undefined"!==typeof e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),"undefined"===typeof r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&(t=e.raws.between,"undefined"!==typeof t))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&"undefined"!==typeof r.raws.before)return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if("undefined"!==typeof e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,"undefined"!==typeof t))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&"undefined"!==typeof r.raws.before){var i=r.raws.before.split("\n");return t=i[i.length-1],t=t.replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,"undefined"!==typeof t))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),jv=Nv;Nv.default=Nv;var Fv=jv;function Uv(e,t){var r=new Fv(t);r.stringify(e)}var zv=Uv;Uv.default=Uv;var qv=Dv.isClean,Hv=Dv.my,$v=Pv,Wv=jv,Vv=zv;function Yv(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o="undefined"===typeof i?"undefined":Xi(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return Yv(e,r)}):("object"===o&&null!==i&&(i=Yv(i)),r[n]=i)}return r}var Xv=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[qv]=!1,this[Hv]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Zi(e[t]);!(r=n()).done;){var i=r.value;"function"===typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=Yv(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new $v(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[qv]){this[qv]=!1;var e=this;while(e=e.parent)e[qv]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();var n=t.indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"===typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){var r=new Wv;return r.raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=Zi(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){var e=this;while(e.parent&&"document"!==e.parent.type)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return"object"===("undefined"===typeof e?"undefined":Xi(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===("undefined"===typeof s?"undefined":Xi(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=Vv),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},Ui(e,[{key:"proxyOf",get:function(){return this}}]),e}(),Jv=Xv;Xv.default=Xv;var Gv=Jv,Kv=function(e){function t(t){var r;return t&&"undefined"!==typeof t.value&&"string"!==typeof t.value&&(t=zi({},t,{value:String(t.value)})),r=e.call(this,t)||this,r.type="decl",r}return Hi(t,e),Ui(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(Gv),Zv=Kv;Kv.default=Kv;var Qv="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",ey=function(e){void 0===e&&(e=21);var t="",r=e;while(r--)t+=Qv[64*Math.random()|0];return t},ty={nanoid:ey},ry=Iv.SourceMapConsumer,ny=Iv.SourceMapGenerator,iy=Iv.existsSync,oy=Iv.readFileSync,sy=Iv.dirname,ay=Iv.join;function cy(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var uy=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=sy(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new ry(this.text)),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/;if(n.test(e)||i.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return cy(e.substr(RegExp.lastMatch.length));var o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===("undefined"===typeof e?"undefined":Xi(e))&&("string"===typeof e.mappings||"string"===typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=sy(e),iy(e))return this.mapFile=e,oy(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"===typeof t)return t;if("function"!==typeof t){if($i(t,ry))return ny.fromSourceMap(t).toString();if($i(t,ny))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=ay(sy(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),ly=uy;uy.default=uy;var hy=Iv.SourceMapConsumer,dy=Iv.SourceMapGenerator,py=Iv.fileURLToPath,fy=Iv.pathToFileURL,my=Iv.isAbsolute,gy=Iv.resolve,vy=ty.nanoid,yy=Iv,wy=Pv,by=ly,_y=Symbol("fromOffsetCache"),ky=Boolean(hy&&dy),Sy=Boolean(gy&&my),xy=function(){function e(e,t){if(void 0===t&&(t={}),null===e||"undefined"===typeof e||"object"===("undefined"===typeof e?"undefined":Xi(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Sy||/^\w+:\/\//.test(t.from)||my(t.from)?this.file=t.from:this.file=gy(t.from)),Sy&&ky){var r=new by(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+vy(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===("undefined"===typeof t?"undefined":Xi(t))){var a=t,c=r;if("number"===typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"===typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var d=this.origin(t,r,o,s);return i=d?new wy(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new wy(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin),i.input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(fy&&(i.input.url=fy(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,r;if(this[_y])r=this[_y];else{var n=this.css.split("\n");r=new Array(n.length);for(var i=0,o=0,s=n.length;o<s;o++)r[o]=i,i+=n[o].length+1;this[_y]=r}t=r[r.length-1];var a=0;if(e>=t)a=r.length-1;else{var c,u=r.length-2;while(a<u)if(c=a+(u-a>>1),e<r[c])u=c-1;else{if(!(e>=r[c+1])){a=c;break}a=c+1}}return{col:e-r[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:gy(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"===typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=my(a.source)?fy(a.source):new URL(a.source,this.map.consumer().sourceRoot||fy(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!py)throw new Error("file: protocol is not available in this PostCSS build");c.file=py(o)}var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=zi({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Ui(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Cy=xy;xy.default=xy,yy&&yy.registerInput&&yy.registerInput(xy);var Ey=Iv.SourceMapConsumer,Ay=Iv.SourceMapGenerator,Oy=Iv.dirname,Iy=Iv.relative,Ty=Iv.resolve,My=Iv.sep,Ry=Iv.pathToFileURL,Py=Cy,Dy=Boolean(Ey&&Ay),Ly=Boolean(Oy&&Ty&&Iy&&My),By=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"===typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"===typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=Zi(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||Oy(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Ey(r.text),o.sourcesContent&&(o.sourcesContent=null)):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),Ly&&Dy&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Ay.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Ay({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new Ay({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),t=a.match(/\n/g),t?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}},h="decl"===c.type||"atrule"===c.type&&!c.nodes;h&&c===l.last&&!l.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||("undefined"!==typeof this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if("undefined"!==typeof this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return("undefined"===typeof e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return"undefined"!==typeof this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return"undefined"!==typeof this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?Oy(this.opts.to):".";"string"===typeof this.mapOpts.annotation&&(r=Oy(Ty(r,this.mapOpts.annotation)));var n=Iy(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new Py(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Ry){var r=Ry(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===My&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Ny=By,jy=Jv,Fy=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="comment",r}return Hi(t,e),t}(jy),Uy=Fy;Fy.default=Fy;var zy,qy,Hy,$y,Wy=Dv.isClean,Vy=Dv.my,Yy=Zv,Xy=Uy,Jy=Jv;function Gy(e){return e.map(function(e){return e.nodes&&(e.nodes=Gy(e.nodes)),delete e.source,e})}function Ky(e){if(e[Wy]=!1,e.proxyOf.nodes)for(var t,r=Zi(e.proxyOf.nodes);!(t=r()).done;){var n=t.value;Ky(n)}}var Zy=function(e){function t(){return e.apply(this,arguments)||this}Hi(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Zi(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=Zi(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=Zi(this.nodes);!(r=n()).done;){var i=r.value;i.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){var t,r,n=this.getIterator();while(this.indexes[n]<this.proxyOf.nodes.length){if(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1===r)break;this.indexes[n]+=1}return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"===typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"===typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"===typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=Zi(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)r=this.indexes[c],n<r&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=Zi(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)r=this.indexes[u],n<=r&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"===typeof e)e=Gy(zy(e).nodes);else if("undefined"===typeof e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=Zi(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=Zi(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if("undefined"===typeof e.value)throw new Error("Value field is missed in node creation");"string"!==typeof e.value&&(e.value=String(e.value)),e=[new Yy(e)]}else if(e.selector)e=[new qy(e)];else if(e.name)e=[new Hy(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Xy(e)]}var l=e.map(function(e){return e[Vy]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[Wy]&&Ky(e),"undefined"===typeof e.raws.before&&r&&"undefined"!==typeof r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return l},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=Zi(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=Zi(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=Zi(this.proxyOf.nodes);!(e=t()).done;){var r=e.value;r.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(i){throw t.addToError(i)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?$i(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?$i(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?$i(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},Ui(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(Jy);Zy.registerParse=function(e){zy=e},Zy.registerRule=function(e){qy=e},Zy.registerAtRule=function(e){Hy=e},Zy.registerRoot=function(e){$y=e};var Qy=Zy;Zy.default=Zy,Zy.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Hy.prototype):"rule"===e.type?Object.setPrototypeOf(e,qy.prototype):"decl"===e.type?Object.setPrototypeOf(e,Yy.prototype):"comment"===e.type?Object.setPrototypeOf(e,Xy.prototype):"root"===e.type&&Object.setPrototypeOf(e,$y.prototype),e[Vy]=!0,e.nodes&&e.nodes.forEach(function(e){Zy.rebuild(e)})};var ew,tw,rw=Qy,nw=function(e){function t(t){var r;return r=e.call(this,zi({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}Hi(t,e);var r=t.prototype;return r.toResult=function(e){void 0===e&&(e={});var t=new ew(new tw,this,e);return t.stringify()},t}(rw);nw.registerLazyResult=function(e){ew=e},nw.registerProcessor=function(e){tw=e};var iw=nw;nw.default=nw;var ow=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),sw=ow;ow.default=ow;var aw=sw,cw=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new aw(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},Ui(e,[{key:"content",get:function(){return this.css}}]),e}(),uw=cw;cw.default=cw;var lw="'".charCodeAt(0),hw='"'.charCodeAt(0),dw="\\".charCodeAt(0),pw="/".charCodeAt(0),fw="\n".charCodeAt(0),mw=" ".charCodeAt(0),gw="\f".charCodeAt(0),vw="\t".charCodeAt(0),yw="\r".charCodeAt(0),ww="[".charCodeAt(0),bw="]".charCodeAt(0),_w="(".charCodeAt(0),kw=")".charCodeAt(0),Sw="{".charCodeAt(0),xw="}".charCodeAt(0),Cw=";".charCodeAt(0),Ew="*".charCodeAt(0),Aw=":".charCodeAt(0),Ow="@".charCodeAt(0),Iw=/[\t\n\f\r "#'()/;[\\\]{}]/g,Tw=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Mw=/.[\r\n"'(/\\]/,Rw=/[\da-f]/i,Pw=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,d=e.css.valueOf(),p=t.ignoreErrors,f=d.length,m=0,g=[],v=[];function y(){return m}function w(t){throw e.error("Unclosed "+t,m)}function b(){return 0===v.length&&m>=f}function _(e){if(v.length)return v.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(m),r){case fw:case mw:case vw:case yw:case gw:n=m;do{n+=1,r=d.charCodeAt(n)}while(r===mw||r===fw||r===vw||r===yw||r===gw);h=["space",d.slice(m,n)],m=n-1;break;case ww:case bw:case Sw:case xw:case Aw:case Cw:case kw:var y=String.fromCharCode(r);h=[y,y,m];break;case _w:if(u=g.length?g.pop()[1]:"",l=d.charCodeAt(m+1),"url"===u&&l!==lw&&l!==hw&&l!==mw&&l!==fw&&l!==vw&&l!==gw&&l!==yw){n=m;do{if(a=!1,n=d.indexOf(")",n+1),-1===n){if(p||t){n=m;break}w("bracket")}c=n;while(d.charCodeAt(c-1)===dw)c-=1,a=!a}while(a);h=["brackets",d.slice(m,n+1),m,n],m=n}else n=d.indexOf(")",m+1),o=d.slice(m,n+1),-1===n||Mw.test(o)?h=["(","(",m]:(h=["brackets",o,m,n],m=n);break;case lw:case hw:i=r===lw?"'":'"',n=m;do{if(a=!1,n=d.indexOf(i,n+1),-1===n){if(p||t){n=m+1;break}w("string")}c=n;while(d.charCodeAt(c-1)===dw)c-=1,a=!a}while(a);h=["string",d.slice(m,n+1),m,n],m=n;break;case Ow:Iw.lastIndex=m+1,Iw.test(d),n=0===Iw.lastIndex?d.length-1:Iw.lastIndex-2,h=["at-word",d.slice(m,n+1),m,n],m=n;break;case dw:n=m,s=!0;while(d.charCodeAt(n+1)===dw)n+=1,s=!s;if(r=d.charCodeAt(n+1),s&&r!==pw&&r!==mw&&r!==fw&&r!==vw&&r!==yw&&r!==gw&&(n+=1,Rw.test(d.charAt(n)))){while(Rw.test(d.charAt(n+1)))n+=1;d.charCodeAt(n+1)===mw&&(n+=1)}h=["word",d.slice(m,n+1),m,n],m=n;break;default:r===pw&&d.charCodeAt(m+1)===Ew?(n=d.indexOf("*/",m+2)+1,0===n&&(p||t?n=d.length:w("comment")),h=["comment",d.slice(m,n+1),m,n],m=n):(Tw.lastIndex=m+1,Tw.test(d),n=0===Tw.lastIndex?d.length-1:Tw.lastIndex-2,h=["word",d.slice(m,n+1),m,n],g.push(h),m=n);break}return m++,h}}function k(e){v.push(e)}return{back:k,endOfFile:b,nextToken:_,position:y}},Dw=Qy,Lw=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}Hi(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(Dw),Bw=Lw;Lw.default=Lw,Dw.registerAtRule(Lw);var Nw,jw,Fw=Qy,Uw=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}Hi(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=Zi(i);!(o=s()).done;){var a=o.value;a.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){void 0===e&&(e={});var t=new Nw(new jw,this,e);return t.stringify()},t}(Fw);Uw.registerLazyResult=function(e){Nw=e},Uw.registerProcessor=function(e){jw=e};var zw=Uw;Uw.default=Uw,Fw.registerRoot(Uw);var qw={comma:function(e){return qw.split(e,[","],!0)},space:function(e){var t=[" ","\n","\t"];return qw.split(e,t)},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=Zi(e);!(n=h()).done;){var d=n.value;l?l=!1:"\\"===d?l=!0:c?d===u&&(c=!1):'"'===d||"'"===d?(c=!0,u=d):"("===d?a+=1:")"===d?a>0&&(a-=1):0===a&&t.includes(d)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=d}return(r||""!==o)&&i.push(o.trim()),i}},Hw=qw;qw.default=qw;var $w=Qy,Ww=Hw,Vw=function(e){function t(t){var r;return r=e.call(this,t)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return Hi(t,e),Ui(t,[{key:"selectors",get:function(){return Ww.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}($w),Yw=Vw;Vw.default=Vw,$w.registerRule(Vw);var Xw=Zv,Jw=Pw,Gw=Uy,Kw=Bw,Zw=zw,Qw=Yw,eb={empty:!0,space:!0};function tb(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var rb=function(){function e(e){this.input=e,this.root=new Zw,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new Kw;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);var o=!1,s=!1,a=[],c=[];while(!this.tokenizer.endOfFile()){if(e=this.tokenizer.nextToken(),t=e[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){n=a.length-1,r=a[n];while(r&&"space"===r[0])r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0;i--)if(r=e[i],"space"!==r[0]&&(n+=1,2===n))break;throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=Zi(e.entries());!(i=s()).done;){var a=i.value,c=a[0],u=a[1];if(t=u,r=t[0],"("===r&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new Gw;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=Jw(this.input)},t.decl=function(e,t){var r=new Xw;this.init(r,e[0][2]);var n,i=e[e.length-1];";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||tb(e)),r.source.end.offset++;while("word"!==e[0][0])1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];r.source.start=this.getPosition(e[0][2]),r.prop="";while(e.length){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}r.raws.between="";while(e.length){if(n=e.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));var s,a=[];while(e.length){if(s=e[0][0],"space"!==s&&"comment"!==s)break;a.push(e.shift())}this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(n=e[c],"!important"===n[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u," !important"!==u&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var p=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==p)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}var f=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});f&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new Qw;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;while(c){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)while(a.length){if(c=a[a.length-1][0],"space"!==c&&"comment"!==c)break;this.tokenizer.back(a.pop())}this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){var e;while(!this.tokenizer.endOfFile())switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)i=r[h],o=i[0],"space"!==o||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",eb[a]||eb[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new Qw;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t&&"comment"!==t)break;r=e.pop()[1]+r}return r},t.spacesAndCommentsFromStart=function(e){var t,r="";while(e.length){if(t=e[0][0],"space"!==t&&"comment"!==t)break;r+=e.shift()[1]}return r},t.spacesFromEnd=function(e){var t,r="";while(e.length){if(t=e[e.length-1][0],"space"!==t)break;r=e.pop()[1]+r}return r},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),nb=rb,ib=Qy,ob=nb,sb=Cy;function ab(e,t){var r=new sb(e,t),n=new ob(r);try{n.parse()}catch(i){throw i}return n.root}var cb=ab;ab.default=ab,ib.registerParse(ab);var ub=Dv.isClean,lb=Dv.my,hb=Ny,db=zv,pb=Qy,fb=iw,mb=uw,gb=cb,vb=zw,yb={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},wb={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},bb={Once:!0,postcssPlugin:!0,prepare:!0},_b=0;function kb(e){return"object"===("undefined"===typeof e?"undefined":Xi(e))&&"function"===typeof e.then}function Sb(e){var t=!1,r=yb[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,_b,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,_b,r+"Exit"]:[r,r+"Exit"]}function xb(e){var t;return t="document"===e.type?["Document",_b,"DocumentExit"]:"root"===e.type?["Root",_b,"RootExit"]:Sb(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Cb(e){return e[ub]=!1,e.nodes&&e.nodes.forEach(function(e){return Cb(e)}),e}var Eb={},Ab=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==("undefined"===typeof r?"undefined":Xi(r))||null===r||"root"!==r.type&&"document"!==r.type)if($i(r,e)||$i(r,mb))i=Cb(r.root),r.map&&("undefined"===typeof n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=gb;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[lb]&&pb.rebuild(i)}else i=Cb(r);this.result=new mb(t,i,n),this.helpers=zi({},Eb,{postcss:Eb,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===("undefined"===typeof e?"undefined":Xi(e))&&e.prepare?zi({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion);}else e.plugin=r.postcssPlugin,e.setMessage()}catch(xA){console&&console.error&&console.error(xA)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=Zi(this.plugins);!(t=n()).done;){var i=t.value;if("object"===("undefined"===typeof i?"undefined":Xi(i)))for(var o in i){if(!wb[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!bb[o])if("object"===Xi(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"===typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return Ni(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return Qi(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],n=e.runOnRoot(r),!kb(n))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,n];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,p.label=7;case 7:if(o[ub])return[3,14];o[ub]=!0,s=[xb(o)],p.label=8;case 8:if(!(s.length>0))return[3,13];if(a=e.visitTick(s),!kb(a))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,a];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i,s;return Qi(this,function(a){switch(a.label){case 0:t=d.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=Zi(e.listeners.OnceExit),p.label=15;case 15:return(d=h()).done?[3,18]:[5,eo(l())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===("undefined"===typeof e?"undefined":Xi(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return kb(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"===typeof e)return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=db;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new hb(t,this.result.root,this.result.opts),n=r.generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=Zi(this.plugins);!(e=t()).done;){var r=e.value,n=this.runOnRoot(r);if(kb(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){var i=this.result.root;while(!i[ub])i[ub]=!0,this.walkSync(i);if(this.listeners.OnceExit)if("document"===i.type)for(var o,s=Zi(i.nodes);!(o=s()).done;){var a=o.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,i)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Zi(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(c){throw this.handleError(c,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(kb(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(h){throw this.handleError(h,r)}}if(0!==t.iterator){var a,c=t.iterator;while(a=r.nodes[r.indexes[c]])if(r.indexes[c]+=1,!a[ub])return a[ub]=!0,void e.push(xb(a));t.iterator=0,delete r.indexes[c]}var u=t.events;while(t.eventIndex<u.length){var l=u[t.eventIndex];if(t.eventIndex+=1,l===_b)return void(r.nodes&&r.nodes.length&&(r[ub]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[ub]=!0;for(var r,n=Sb(e),i=Zi(n);!(r=i()).done;){var o=r.value;if(o===_b)e.nodes&&e.each(function(e){e[ub]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Ui(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();Ab.registerPostcss=function(e){Eb=e};var Ob=Ab;Ab.default=Ab,vb.registerLazyResult(Ab),fb.registerLazyResult(Ab);var Ib=Ny,Tb=zv,Mb=cb,Rb=uw,Pb=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=Tb;this.result=new Rb(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new Ib(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},Ui(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=Mb;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Db=Pb;Pb.default=Pb;var Lb=Db,Bb=Ob,Nb=iw,jb=zw,Fb=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=Zi(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===("undefined"===typeof i?"undefined":Xi(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===("undefined"===typeof i?"undefined":Xi(i))&&i.postcssPlugin)r.push(i);else if("function"===typeof i)r.push(i);else{if("object"!==("undefined"===typeof i?"undefined":Xi(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Bb(this,e,t):new Lb(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),Ub=Fb;Fb.default=Fb,jb.registerProcessor(Fb),Nb.registerProcessor(Fb);var zb=Zv,qb=ly,Hb=Uy,$b=Bw,Wb=Cy,Vb=zw,Yb=Yw;function Xb(e,t){if(Array.isArray(e))return e.map(function(e){return Xb(e)});var r=e.inputs,n=Vi(e,["inputs"]);if(r){t=[];for(var i,o=Zi(r);!(i=o()).done;){var s=i.value,a=zi({},s,{__proto__:Wb.prototype});a.map&&(a.map=zi({},a.map,{__proto__:qb.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return Xb(e,t)})),n.source){var c=n.source,u=c.inputId,l=Vi(c,["inputId"]);n.source=l,null!=u&&(n.source.input=t[u])}if("root"===n.type)return new Vb(n);if("decl"===n.type)return new zb(n);if("rule"===n.type)return new Yb(n);if("comment"===n.type)return new Hb(n);if("atrule"===n.type)return new $b(n);throw new Error("Unknown node type: "+e.type)}var Jb=Xb;Xb.default=Xb;var Gb=Pv,Kb=Zv,Zb=Ob,Qb=Qy,e_=Ub,t_=zv,r_=Jb,n_=iw,i_=sw,o_=Uy,s_=Bw,a_=uw,c_=Cy,u_=cb,l_=Hw,h_=Yw,d_=zw,p_=Jv;function f_(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new e_(t)}f_.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new e_).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return f_([i(r)]).process(e,t)},i},f_.stringify=t_,f_.parse=u_,f_.fromJSON=r_,f_.list=l_,f_.comment=function(e){return new o_(e)},f_.atRule=function(e){return new s_(e)},f_.decl=function(e){return new Kb(e)},f_.rule=function(e){return new h_(e)},f_.root=function(e){return new d_(e)},f_.document=function(e){return new n_(e)},f_.CssSyntaxError=Gb,f_.Declaration=Kb,f_.Container=Qb,f_.Processor=e_,f_.Document=n_,f_.Comment=o_,f_.Warning=i_,f_.AtRule=s_,f_.Result=a_,f_.Input=c_,f_.Rule=h_,f_.Root=d_,f_.Node=p_,Zb.registerPostcss(f_);var m_=f_;f_.default=f_;var g_=_v(m_);g_.stringify,g_.fromJSON,g_.plugin,g_.parse,g_.list,g_.document,g_.comment,g_.atRule,g_.rule,g_.decl,g_.root,g_.CssSyntaxError,g_.Declaration,g_.Container,g_.Processor,g_.Document,g_.Comment,g_.Warning,g_.AtRule,g_.Result,g_.Input,g_.Rule,g_.Root,g_.Node;var v_=Object.defineProperty,y_=function(e,t,r){return t in e?v_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},w_=function(e,t,r){return y_(e,"symbol"!==("undefined"===typeof t?"undefined":Xi(t))?t+"":t,r)};function b_(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"===typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(o){return function(){}}}var __=function(){function e(e){w_(this,"fileName"),w_(this,"functionName"),w_(this,"lineNumber"),w_(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}var t=e.prototype;return t.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},e}(),k_=/(^|@)\S+:\d+/,S_=/^\s*at .*(\S+:\d+|\(native\))/m,x_=/^(eval@)?(\[native code])?$/,C_={parse:function(e){return e?"undefined"!==typeof e.stacktrace||"undefined"!==typeof e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(S_)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/,r=t.exec(e.replace(/[()]/g,""));if(!r)throw new Error("Cannot parse given url: "+e);return[r[1],r[2]||void 0,r[3]||void 0]},parseV8OrIE:function(e){var t=e.stack.split("\n").filter(function(e){return!!e.match(S_)},this);return t.map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/);t=r?t.replace(r[0],""):t;var n=t.split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:n.pop()),o=n.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0];return new __({functionName:o,fileName:s,lineNumber:i[1],columnNumber:i[2]})},this)},parseFFOrSafari:function(e){var t=e.stack.split("\n").filter(function(e){return!e.match(x_)},this);return t.map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new __({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new __({functionName:n,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],i=2,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new __({fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[],i=0,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new __({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera11:function(e){var t=e.stack.split("\n").filter(function(e){return!!e.match(k_)&&!e.match(/^Error created at/)},this);return t.map(function(e){var t=e.split("@"),r=this.extractLocation(t.pop()),n=t.shift()||"",i=n.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new __({functionName:i,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function E_(e){if(!e||!e.outerHTML)return"";var t="";while(e.parentElement){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,i=[];if(n.children&&n.children.length>0)for(var o=0;o<n.children.length;o++){var s=n.children[o];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===r&&i.push(s)}i.length>1&&(r+=":eq("+i.indexOf(e)+")"),t=r+(t?">"+t:""),e=n}return t}function A_(e){return"[object Object]"===Object.prototype.toString.call(e)}function O_(e,t){if(0===t)return!0;for(var r,n=Object.keys(e),i=Zi(n);!(r=i()).done;){var o=r.value;if(A_(e[o])&&O_(e[o],t-1))return!0}return!1}function I_(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],i=[];return JSON.stringify(e,function(e,t){if(n.length>0){var r=n.indexOf(this);~r?n.splice(r+1):n.push(this),~r?i.splice(r,1/0,e):i.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(o(t))return s(t);if("bigint"===("undefined"===typeof t?"undefined":Xi(t)))return t.toString()+"n";if($i(t,Event)){var a={};for(var c in t){var u=t[c];Array.isArray(u)?a[c]=E_(u.length?u[0]:null):a[c]=u}return a}return $i(t,Node)?$i(t,HTMLElement)?t?t.outerHTML:"":t.nodeName:$i(t,Error)?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t});function o(e){return!!(A_(e)&&Object.keys(e).length>r.numOfKeysLimit)||("function"===typeof e||!(!A_(e)||!O_(e,r.depthOfLimit)))}function s(e){var t=e.toString();return r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t=t.slice(0,r.stringLengthLimit)+"..."),t}}var T_={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function M_(e,t,r){var n,i=r?Object.assign({},T_,r):T_,o=i.logger;if(!o)return function(){};n="string"===typeof o?t[o]:o;var s=0,a=!1,c=[];if(i.level.includes("error")){var u=function(t){var r=t.message,n=t.error,o=C_.parse(n).map(function(e){return e.toString()}),s=[I_(r,i.stringifyOptions)];e({level:"error",trace:o,payload:s})};t.addEventListener("error",u),c.push(function(){t.removeEventListener("error",u)});var l=function(t){var r,n;$i(t.reason,Error)?(r=t.reason,n=[I_("Uncaught (in promise) "+r.name+": "+r.message,i.stringifyOptions)]):(r=new Error,n=[I_("Uncaught (in promise)",i.stringifyOptions),I_(t.reason,i.stringifyOptions)]);var o=C_.parse(r).map(function(e){return e.toString()});e({level:"error",trace:o,payload:n})};t.addEventListener("unhandledrejection",l),c.push(function(){t.removeEventListener("unhandledrejection",l)})}for(var h,d=Zi(i.level);!(h=d()).done;){var p=h.value;c.push(f(n,p))}return function(){c.forEach(function(e){return e()})};function f(t,r){var n=this;return t[r]?b_(t,r,function(t){var o=n;return function(){for(var n=arguments.length,c=new Array(n),u=0;u<n;u++)c[u]=arguments[u];if(t.apply(o,c),("assert"!==r||!c[0])&&!a){a=!0;try{var l=C_.parse(new Error).map(function(e){return e.toString()}).splice(1),h="assert"===r?c.slice(1):c,d=h.map(function(e){return I_(e,i.stringifyOptions)});s++,s<i.lengthThreshold?e({level:r,trace:l,payload:d}):s===i.lengthThreshold&&e({level:"warn",trace:[],payload:[I_("The number of log records reached the threshold.")]})}catch(p){t.apply(void 0,[].concat(["rrweb logger error:",p],c))}finally{a=!1}}}}):function(){}}}var R_,P_,D_,L_="rrweb/console@1",B_=function(e){return{name:L_,observer:M_,options:e}},N_=Ai["setImmediate"],j_=Object.prototype.toString,F_="undefined"!==typeof N_?function(e){return N_(e)}:setTimeout;try{Object.defineProperty({},"x",{}),R_=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(xA){R_=function(e,t,r){return e[t]=r,e}}function U_(e,t){D_.add(e,t),P_||(P_=F_(D_.drain))}function z_(e){var t,r=typeof e;return null===e||"object"!==r&&"function"!==r||(t=e.then),"function"===typeof t&&t}function q_(){for(var e=0;e<this.chain.length;e++)H_(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function H_(e,t,r){var n,i;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg),n===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=z_(n))?i.call(n,r.resolve,r.reject):r.resolve(n))}catch(xA){r.reject(xA)}}function $_(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=z_(e))?U_(function(){var n=new Y_(r);try{t.call(e,function(){$_.apply(n,arguments)},function(){W_.apply(n,arguments)})}catch(xA){W_.call(n,xA)}}):(r.msg=e,r.state=1,r.chain.length>0&&U_(q_,r))}catch(xA){W_.call(new Y_(r),xA)}}}function W_(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&U_(q_,t))}function V_(e,t,r,n){for(var i=0;i<t.length;i++)(function(i){e.resolve(t[i]).then(function(e){r(i,e)},n)})(i)}function Y_(e){this.def=e,this.triggered=!1}function X_(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function J_(e){if("function"!==typeof e)throw TypeError("Not a function");if(0!==this["__NPO__"])throw TypeError("Not a promise");this["__NPO__"]=1;var t=new X_(this);this["then"]=function(e,r){var n={success:"function"!==typeof e||e,failure:"function"===typeof r&&r};return n.promise=new this.constructor(function(e,t){if("function"!==typeof e||"function"!==typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t}),t.chain.push(n),0!==t.state&&U_(q_,t),n.promise},this["catch"]=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){$_.call(t,e)},function(e){W_.call(t,e)})}catch(xA){W_.call(t,xA)}}D_=function(){var e,t,r;function n(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(i,o){r=new n(i,o),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;e=t=P_=void 0;while(r)r.fn.call(r.self),r=r.next}}}();var G_,K_=R_({},"constructor",J_,!1);J_.prototype=K_,R_(K_,"__NPO__",0,!1),R_(J_,"resolve",function(e){var t=this;return e&&"object"===typeof e&&1===e["__NPO__"]?e:new t(function(t,r){if("function"!==typeof t||"function"!==typeof r)throw TypeError("Not a function");t(e)})}),R_(J_,"reject",function(e){return new this(function(t,r){if("function"!==typeof t||"function"!==typeof r)throw TypeError("Not a function");r(e)})}),R_(J_,"all",function(e){var t=this;return"[object Array]"!==j_.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(r,n){if("function"!==typeof r||"function"!==typeof n)throw TypeError("Not a function");var i=e.length,o=Array(i),s=0;V_(t,e,function(e,t){o[e]=t,++s===i&&r(o)},n)})}),R_(J_,"race",function(e){var t=this;return"[object Array]"!==j_.call(e)?t.reject(TypeError("Not an array")):new t(function(r,n){if("function"!==typeof r||"function"!==typeof n)throw TypeError("Not a function");V_(t,e,function(e,t){r(t)},n)})}),G_="undefined"!==typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:J_;var Z_=864e5,Q_=8e3,ek=Array.prototype,tk=Function.prototype,rk=Object.prototype,nk=ek.slice,ik=rk.toString,ok=rk.hasOwnProperty,sk=Ai.console,ak=Ai.navigator,ck=Ai.document,uk=Ai.opera,lk=Ai.screen,hk=ak.userAgent,dk=tk.bind,pk=ek.forEach,fk=ek.indexOf,mk=ek.map,gk=Array.isArray,vk={},yk={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},wk={log:function(){if(Ti.DEBUG&&!yk.isUndefined(sk)&&sk)try{sk.log.apply(sk,arguments)}catch(xA){yk.each(arguments,function(e){sk.log(e)})}},warn:function(){if(Ti.DEBUG&&!yk.isUndefined(sk)&&sk){var e=["Mixpanel warning:"].concat(yk.toArray(arguments));try{sk.warn.apply(sk,e)}catch(xA){yk.each(e,function(e){sk.warn(e)})}}},error:function(){if(Ti.DEBUG&&!yk.isUndefined(sk)&&sk){var e=["Mixpanel error:"].concat(yk.toArray(arguments));try{sk.error.apply(sk,e)}catch(xA){yk.each(e,function(e){sk.error(e)})}}},critical:function(){if(!yk.isUndefined(sk)&&sk){var e=["Mixpanel error:"].concat(yk.toArray(arguments));try{sk.error.apply(sk,e)}catch(xA){yk.each(e,function(e){sk.error(e)})}}}},bk=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(wk,arguments)}},_k=function(e){return{log:bk(wk.log,e),error:bk(wk.error,e),critical:bk(wk.critical,e)}},kk=function(e){return function(){try{return e.apply(this,arguments)}catch(t){wk.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),Ti.DEBUG&&wk.critical(t)}}},Sk=function(e){var t=e.prototype;for(var r in t)"function"===typeof t[r]&&(t[r]=kk(t[r]))};yk.bind=function(e,t){var r,n;if(dk&&e.bind===dk)return dk.apply(e,nk.call(arguments,1));if(!yk.isFunction(e))throw new TypeError;return r=nk.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(nk.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(nk.call(arguments)));return Object(s)===s?s:o},n},yk.each=function(e,t,r){if(null!==e&&void 0!==e)if(pk&&e.forEach===pk)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n,e)===vk)return}else for(var o in e)if(ok.call(e,o)&&t.call(r,e[o],o,e)===vk)return},yk.extend=function(e){return yk.each(nk.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},yk.isArray=gk||function(e){return"[object Array]"===ik.call(e)},yk.isFunction=function(e){return"function"===typeof e},yk.isArguments=function(e){return!(!e||!ok.call(e,"callee"))},yk.toArray=function(e){return e?e.toArray?e.toArray():yk.isArray(e)||yk.isArguments(e)?nk.call(e):yk.values(e):[]},yk.map=function(e,t,r){if(mk&&e.map===mk)return e.map(t,r);var n=[];return yk.each(e,function(e){n.push(t.call(r,e))}),n},yk.keys=function(e){var t=[];return null===e||yk.each(e,function(e,r){t[t.length]=r}),t},yk.values=function(e){var t=[];return null===e||yk.each(e,function(e){t[t.length]=e}),t},yk.include=function(e,t){var r=!1;return null===e?r:fk&&e.indexOf===fk?-1!=e.indexOf(t):(yk.each(e,function(e){if(r||(r=e===t))return vk}),r)},yk.includes=function(e,t){return-1!==e.indexOf(t)},yk.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},yk.isObject=function(e){return e===Object(e)&&!yk.isArray(e)},yk.isEmptyObject=function(e){if(yk.isObject(e)){for(var t in e)if(ok.call(e,t))return!1;return!0}return!1},yk.isUndefined=function(e){return void 0===e},yk.isString=function(e){return"[object String]"==ik.call(e)},yk.isDate=function(e){return"[object Date]"==ik.call(e)},yk.isNumber=function(e){return"[object Number]"==ik.call(e)},yk.isElement=function(e){return!(!e||1!==e.nodeType)},yk.encodeDates=function(e){return yk.each(e,function(t,r){yk.isDate(t)?e[r]=yk.formatDate(t):yk.isObject(t)&&(e[r]=yk.encodeDates(t))}),e},yk.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},yk.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},yk.strip_empty_properties=function(e){var t={};return yk.each(e,function(e,r){yk.isString(e)&&e.length>0&&(t[r]=e)}),t},yk.truncate=function(e,t){var r;return"string"===typeof e?r=e.slice(0,t):yk.isArray(e)?(r=[],yk.each(e,function(e){r.push(yk.truncate(e,t))})):yk.isObject(e)?(r={},yk.each(e,function(e,n){r[n]=yk.truncate(e,t)})):r=e,r},yk.JSONEncode=function(){return function(e){var t=e,r=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"===typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},n=function(e,t){var i="",o=" ",s=0,a="",c="",u=0,l=i,h=[],d=t[e];switch(d&&"object"===typeof d&&"function"===typeof d.toJSON&&(d=d.toJSON(e)),typeof d){case"string":return r(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(i+=o,h=[],"[object Array]"===ik.apply(d)){for(u=d.length,s=0;s<u;s+=1)h[s]=n(s,d)||"null";return c=0===h.length?"[]":i?"[\n"+i+h.join(",\n"+i)+"\n"+l+"]":"["+h.join(",")+"]",i=l,c}for(a in d)ok.call(d,a)&&(c=n(a,d),c&&h.push(r(a)+(i?": ":":")+c));return c=0===h.length?"{}":i?"{"+h.join(",")+l+"}":"{"+h.join(",")+"}",i=l,c}};return n("",{"":t})}}(),yk.JSONDecode=function(){var e,t,r,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},o=function(t){var n=new SyntaxError(t);throw n.at=e,n.text=r,n},s=function(n){return n&&n!==t&&o("Expected '"+n+"' instead of '"+t+"'"),t=r.charAt(e),e+=1,t},a=function(){var e,r="";"-"===t&&(r="-",s("-"));while(t>="0"&&t<="9")r+=t,s();if("."===t){r+=".";while(s()&&t>="0"&&t<="9")r+=t}if("e"===t||"E"===t){r+=t,s(),"-"!==t&&"+"!==t||(r+=t,s());while(t>="0"&&t<="9")r+=t,s()}if(e=+r,isFinite(e))return e;o("Bad number")},c=function(){var e,r,n,a="";if('"'===t)while(s()){if('"'===t)return s(),a;if("\\"===t)if(s(),"u"===t){for(n=0,r=0;r<4;r+=1){if(e=parseInt(s(),16),!isFinite(e))break;n=16*n+e}a+=String.fromCharCode(n)}else{if("string"!==typeof i[t])break;a+=i[t]}else a+=t}o("Bad string")},u=function(){while(t&&t<=" ")s()},l=function(){switch(t){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}o('Unexpected "'+t+'"')},h=function(){var e=[];if("["===t){if(s("["),u(),"]"===t)return s("]"),e;while(t){if(e.push(n()),u(),"]"===t)return s("]"),e;s(","),u()}}o("Bad array")},d=function(){var e,r={};if("{"===t){if(s("{"),u(),"}"===t)return s("}"),r;while(t){if(e=c(),u(),s(":"),Object.hasOwnProperty.call(r,e)&&o('Duplicate key "'+e+'"'),r[e]=n(),u(),"}"===t)return s("}"),r;s(","),u()}}o("Bad object")};return n=function(){switch(u(),t){case"{":return d();case"[":return h();case'"':return c();case"-":return a();default:return t>="0"&&t<="9"?a():l()}},function(i){var s;return r=i,e=0,t=" ",s=n(),u(),t&&o("Syntax error"),s}}(),yk.base64Encode=function(e){var t,r,n,i,o,s,a,c,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l=0,h=0,d="",p=[];if(!e)return e;e=yk.utf8Encode(e);do{t=e.charCodeAt(l++),r=e.charCodeAt(l++),n=e.charCodeAt(l++),c=t<<16|r<<8|n,i=c>>18&63,o=c>>12&63,s=c>>6&63,a=63&c,p[h++]=u.charAt(i)+u.charAt(o)+u.charAt(s)+u.charAt(a)}while(l<e.length);switch(d=p.join(""),e.length%3){case 1:d=d.slice(0,-2)+"==";break;case 2:d=d.slice(0,-1)+"=";break}return d},yk.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var t,r,n,i="",o=0;for(t=r=0,o=e.length,n=0;n<o;n++){var s=e.charCodeAt(n),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(i+=e.substring(t,r)),i+=a,t=r=n+1)}return r>t&&(i+=e.substring(t,e.length)),i},yk.UUID=function(){try{return Ai["crypto"]["randomUUID"]()}catch(xA){for(var e=new Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",yk.map(e,function(e){return e.toString(16)}).join("")}};var xk=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];yk.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<xk.length;t++)if(-1!==e.indexOf(xk[t]))return!0;return!1},yk.HTTPBuildQuery=function(e,t){var r,n,i=[];return yk.isUndefined(t)&&(t="&"),yk.each(e,function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r}),i.join(t)},yk.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r="[\\?&]"+t+"=([^&#]*)",n=new RegExp(r),i=n.exec(e);if(null===i||i&&"string"!==typeof i[1]&&i[1].length)return"";var o=i[1];try{o=decodeURIComponent(o)}catch(xA){wk.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},yk.cookie={get:function(e){for(var t=e+"=",r=ck.cookie.split(";"),n=0;n<r.length;n++){var i=r[n];while(" "==i.charAt(0))i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=yk.JSONDecode(yk.cookie.get(e))||{}}catch(xA){}return t},set_seconds:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=zk(ck.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+1e3*r),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure"),ck.cookie=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u},set:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=zk(ck.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+24*r*60*60*1e3),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure");var d=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u;return ck.cookie=d,d},remove:function(e,t,r){yk.cookie.set(e,"",-1,t,!1,!1,r)}};var Ck=function(e){var t=!0;try{var r="__mplss_"+Nk(8),n="xyz";e.setItem(r,n),e.getItem(r)!==n&&(t=!1),e.removeItem(r)}catch(xA){t=!1}return t},Ek=null,Ak=function(e,t){return null===Ek||t?Ek=Ck(e||Ai.localStorage):Ek},Ok=null,Ik=function(e,t){return null===Ok||t?Ok=Ck(e||Ai.sessionStorage):Ok};function Tk(e,t,r){var n=function(e){wk.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||wk.error(t+" unsupported"),i},error:n,get:function(t){try{return e.getItem(t)}catch(xA){n(xA)}return null},parse:function(t){try{return yk.JSONDecode(e.getItem(t))||{}}catch(xA){}return null},set:function(t,r){try{e.setItem(t,r)}catch(xA){n(xA)}},remove:function(t){try{e.removeItem(t)}catch(xA){n(xA)}}}}var Mk=null,Rk=null;try{Mk=Ai.localStorage,Rk=Ai.sessionStorage}catch(CA){}yk.localStorage=Tk(Mk,"localStorage",Ak),yk.sessionStorage=Tk(Rk,"sessionStorage",Ik),yk.register_event=function(){var e=function(e,r,n,i,o){if(e)if(e.addEventListener&&!i)e.addEventListener(r,n,!!o);else{var s="on"+r,a=e[s];e[s]=t(e,n,a)}else wk.error("No valid element provided to register_event")};function t(e,t,n){var i=function(i){if(i=i||r(Ai.event),i){var o,s,a=!0;return yk.isFunction(n)&&(o=n(i)),s=t.call(e,i),!1!==o&&!1!==s||(a=!1),a}};return i}function r(e){return e&&(e.preventDefault=r.preventDefault,e.stopPropagation=r.stopPropagation),e}return r.preventDefault=function(){this.returnValue=!1},r.stopPropagation=function(){this.cancelBubble=!0},e}();var Pk=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');yk.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(e,r){var n=" "+r+" ";return(" "+e.className+" ").replace(t," ").indexOf(n)>=0}function n(t){if(!ck.getElementsByTagName)return[];var n,i,o,s,a,c,u,l,h,d,p=t.split(" "),f=[ck];for(c=0;c<p.length;c++)if(n=p[c].replace(/^\s+/,"").replace(/\s+$/,""),n.indexOf("#")>-1){i=n.split("#"),o=i[0];var m=i[1],g=ck.getElementById(m);if(!g||o&&g.nodeName.toLowerCase()!=o)return[];f=[g]}else if(n.indexOf(".")>-1){i=n.split("."),o=i[0];var v=i[1];for(o||(o="*"),s=[],a=0,u=0;u<f.length;u++)for(h="*"==o?e(f[u]):f[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];for(f=[],d=0,u=0;u<s.length;u++)s[u].className&&yk.isString(s[u].className)&&r(s[u],v)&&(f[d++]=s[u])}else{var y=n.match(Pk);if(y){o=y[1];var w,b=y[2],_=y[3],k=y[4];for(o||(o="*"),s=[],a=0,u=0;u<f.length;u++)for(h="*"==o?e(f[u]):f[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];switch(f=[],d=0,_){case"=":w=function(e){return e.getAttribute(b)==k};break;case"~":w=function(e){return e.getAttribute(b).match(new RegExp("\\b"+k+"\\b"))};break;case"|":w=function(e){return e.getAttribute(b).match(new RegExp("^"+k+"-?"))};break;case"^":w=function(e){return 0===e.getAttribute(b).indexOf(k)};break;case"$":w=function(e){return e.getAttribute(b).lastIndexOf(k)==e.getAttribute(b).length-k.length};break;case"*":w=function(e){return e.getAttribute(b).indexOf(k)>-1};break;default:w=function(e){return e.getAttribute(b)}}for(f=[],d=0,u=0;u<s.length;u++)w(s[u])&&(f[d++]=s[u])}else{for(o=n,s=[],a=0,u=0;u<f.length;u++)for(h=f[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];f=s}}return f}return function(e){return yk.isElement(e)?[e]:yk.isObject(e)&&!yk.isUndefined(e.length)?e:n.call(this,e)}}();var Dk=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],Lk=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];yk.info={campaignParams:function(e){var t="",r={};return yk.each(Dk,function(n){t=yk.getQueryParam(ck.URL,n),t.length?r[n]=t:void 0!==e&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return yk.each(Lk,function(r){e=yk.getQueryParam(ck.URL,r),e.length&&(t[r]=e)}),t},marketingParams:function(){return yk.extend(yk.info.campaignParams(),yk.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=yk.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n["$search_engine"]=t;var i=yk.getQueryParam(e,r);i.length&&(n["mp_keyword"]=i)}return n},browser:function(e,t,r){return t=t||"",r||yk.includes(e," OPR/")?yk.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":yk.includes(e,"IEMobile")||yk.includes(e,"WPDesktop")?"Internet Explorer Mobile":yk.includes(e,"SamsungBrowser/")?"Samsung Internet":yk.includes(e,"Edge")||yk.includes(e,"Edg/")?"Microsoft Edge":yk.includes(e,"FBIOS")?"Facebook Mobile":yk.includes(e,"Whale/")?"Whale Browser":yk.includes(e,"Chrome")?"Chrome":yk.includes(e,"CriOS")?"Chrome iOS":yk.includes(e,"UCWEB")||yk.includes(e,"UCBrowser")?"UC Browser":yk.includes(e,"FxiOS")?"Firefox iOS":yk.includes(t,"Apple")?yk.includes(e,"Mobile")?"Mobile Safari":"Safari":yk.includes(e,"Android")?"Android Mobile":yk.includes(e,"Konqueror")?"Konqueror":yk.includes(e,"Firefox")?"Firefox":yk.includes(e,"MSIE")||yk.includes(e,"Trident/")?"Internet Explorer":yk.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n=yk.info.browser(e,t,r),i={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/},o=i[n];if(void 0===o)return null;var s=e.match(o);return s?parseFloat(s[s.length-2]):null},os:function(){var e=hk;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return Ai.location.href},properties:function(e){return"object"!==typeof e&&(e={}),yk.extend(yk.strip_empty_properties({$os:yk.info.os(),$browser:yk.info.browser(hk,ak.vendor,uk),$referrer:ck.referrer,$referring_domain:yk.info.referringDomain(ck.referrer),$device:yk.info.device(hk)}),{$current_url:yk.info.currentUrl(),$browser_version:yk.info.browserVersion(hk,ak.vendor,uk),$screen_height:lk.height,$screen_width:lk.width,mp_lib:"web",$lib_version:Ti.LIB_VERSION,$insert_id:Nk(),time:yk.timestamp()/1e3},yk.strip_empty_properties(e))},people_properties:function(){return yk.extend(yk.strip_empty_properties({$os:yk.info.os(),$browser:yk.info.browser(hk,ak.vendor,uk)}),{$browser_version:yk.info.browserVersion(hk,ak.vendor,uk)})},mpPageViewProperties:function(){return yk.strip_empty_properties({current_page_title:ck.title,current_domain:Ai.location.hostname,current_url_path:Ai.location.pathname,current_url_protocol:Ai.location.protocol,current_url_search:Ai.location.search})}};var Bk=function(e,t){var r=null,n=[];return function(i){var o=this;return n.push(i),r||(r=new G_(function(i){setTimeout(function(){var t=e.apply(o,[n]);r=null,n=[],i(t)},t)})),r}},Nk=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},jk=function(){var e=yk.UUID().replace(/-/g,""),t=yk.UUID().replace(/-/g,"").substring(0,16),r="01";return"00-"+e+"-"+t+"-"+r},Fk=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Uk=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,zk=function(e){var t=Uk,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=Fk);var i=e.match(t);return i?i[0]:""},qk=function(){var e=Ai.navigator["onLine"];return yk.isUndefined(e)||e},Hk=function(){},$k=function(e,t){for(var r=!1,n=0;n<t.length;n++)if(e.match(t[n])){r=!0;break}return r},Wk=null,Vk=null;"undefined"!==typeof JSON&&(Wk=JSON.stringify,Vk=JSON.parse),Wk=Wk||yk.JSONEncode,Vk=Vk||yk.JSONDecode;var Yk=function(e,t,r){if(!Ai.CompressionStream)return!1;var n=yk.info.browser(e,t,r),i=yk.info.browserVersion(e,t,r);return!(("Safari"===n||"Mobile Safari"===n)&&i>=16.4&&i<16.6)};yk["info"]=yk.info,yk["info"]["browser"]=yk.info.browser,yk["info"]["browserVersion"]=yk.info.browserVersion,yk["info"]["device"]=yk.info.device,yk["info"]["properties"]=yk.info.properties,yk["isBlockedUA"]=yk.isBlockedUA,yk["isEmptyObject"]=yk.isEmptyObject,yk["isObject"]=yk.isObject,yk["JSONDecode"]=yk.JSONDecode,yk["JSONEncode"]=yk.JSONEncode,yk["toArray"]=yk.toArray,yk["NPO"]=J_;var Xk="mixpanelBrowserDb",Jk="mixpanelRecordingEvents",Gk="mixpanelRecordingRegistry",Kk=1,Zk=[Jk,Gk],Qk=function(e){this.dbPromise=null,this.storeName=e};Qk.prototype._openDb=function(){return new G_(function(e,t){var r=Ai.indexedDB.open(Xk,Kk);r["onerror"]=function(){t(r.error)},r["onsuccess"]=function(){e(r.result)},r["onupgradeneeded"]=function(e){var t=e.target.result;Zk.forEach(function(e){t.createObjectStore(e)})}})},Qk.prototype.init=function(){return Ai.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof Ai["IDBDatabase"]?G_.resolve():G_.reject(e)})):G_.reject("indexedDB is not supported in this browser")},Qk.prototype.isInitialized=function(){return!!this.dbPromise},Qk.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new G_(function(i,o){var s=n.transaction(r,e);s.oncomplete=function(){i(s)},s.onabort=s.onerror=function(){o(s.error)},t(s.objectStore(r))})};return this.dbPromise.then(n).catch(function(e){return e&&"InvalidStateError"===e["name"]?(this.dbPromise=this._openDb(),this.dbPromise.then(n)):G_.reject(e)}.bind(this))},Qk.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},Qk.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},Qk.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},Qk.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var eS="__mp_opt_in_out_";function tS(e,t){pS(!0,e,t)}function rS(e,t){pS(!1,e,t)}function nS(e,t){return"1"===hS(e,t)}function iS(e,t){if(dS(t))return wk.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===hS(e,t);return r&&wk.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function oS(e){return fS(e,function(e){return this.get_config(e)})}function sS(e){return fS(e,function(e){return this._get_config(e)})}function aS(e){return fS(e,function(e){return this._get_config(e)})}function cS(e,t){t=t||{},uS(t).remove(lS(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function uS(e){return e=e||{},"localStorage"===e.persistenceType?yk.localStorage:yk.cookie}function lS(e,t){return t=t||{},(t.persistencePrefix||eS)+e}function hS(e,t){return uS(t).get(lS(e,t))}function dS(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||Ai,r=t["navigator"]||{},n=!1;return yk.each([r["doNotTrack"],r["msDoNotTrack"],t["doNotTrack"]],function(e){yk.includes([!0,1,"1","yes"],e)&&(n=!0)}),n}function pS(e,t,r){yk.isString(t)&&t.length?(r=r||{},uS(r).set(lS(t,r),e?1:0,yk.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):wk.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function fS(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=iS(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(xA){wk.error("Unexpected error when checking tracking opt-out status: "+xA)}if(!r)return e.apply(this,arguments);var c=arguments[arguments.length-1];"function"===typeof c&&c(0)}}var mS=_k("lock"),gS=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||Ai.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||G_};gS.prototype.withLock=function(e,t){var r=this.promiseImpl;return new r(yk.bind(function(r,n){var i=t||(new Date).getTime()+"|"+Math.random(),o=(new Date).getTime(),s=this.storageKey,a=this.pollIntervalMS,c=this.timeoutMS,u=this.storage,l=s+":X",h=s+":Y",d=s+":Z",p=function(e){if((new Date).getTime()-o>c)return mS.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),u.removeItem(d),u.removeItem(h),void g();setTimeout(function(){try{e()}catch(xA){n(xA)}},a*(Math.random()+.1))},f=function(e,t){e()?t():p(function(){f(e,t)})},m=function(){var e=u.getItem(h);return(!e||e===i)&&(u.setItem(h,i),u.getItem(h)===i||(Ak(u,!0)||n(new Error("localStorage support dropped while acquiring lock")),!1))},g=function(){u.setItem(l,i),f(m,function(){u.getItem(l)!==i?p(function(){u.getItem(h)===i?f(function(){return!u.getItem(d)},v):g()}):v()})},v=function(){u.setItem(d,"1");var t=function(){u.removeItem(d),u.getItem(h)===i&&u.removeItem(h),u.getItem(l)===i&&u.removeItem(l)};e().then(function(e){t(),r(e)}).catch(function(e){t(),n(e)})};try{if(!Ak(u,!0))throw new Error("localStorage support check failed");g()}catch(xA){n(xA)}},this))};var vS=function(e){this.storage=e||Ai.localStorage};vS.prototype.init=function(){return G_.resolve()},vS.prototype.isInitialized=function(){return!0},vS.prototype.setItem=function(e,t){return new G_(yk.bind(function(r,n){try{this.storage.setItem(e,Wk(t))}catch(i){n(i)}r()},this))},vS.prototype.getItem=function(e){return new G_(yk.bind(function(t,r){var n;try{n=Vk(this.storage.getItem(e))}catch(i){r(i)}t(n)},this))},vS.prototype.removeItem=function(e){return new G_(yk.bind(function(t,r){try{this.storage.removeItem(e)}catch(n){r(n)}t()},this))};var yS=_k("batch"),wS=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new vS,this.lock=new gS(e,{storage:t.sharedLockStorage||Ai.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||yk.bind(yS.error,yS),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=Bk(yk.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=yk.bind(function(e){return this._enqueuePersisted([e])},this)};wS.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?G_.resolve():this.queueStorage.init().then(yk.bind(function(){this.initialized=!0},this)).catch(yk.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},wS.prototype.enqueue=function(e,t){var r={id:Nk(),flushAfter:(new Date).getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),G_.resolve(!0))},wS.prototype._enqueuePersisted=function(e){var t=yk.bind(function(){return this.ensureInit().then(yk.bind(function(){return this.readFromStorage()},this)).then(yk.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(yk.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(yk.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(yk.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},wS.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(yk.bind(function(){return this.readFromStorage()},this)).then(yk.bind(function(r){if(r.length){var n={};yk.each(t,function(e){n[e["id"]]=!0});for(var i=0;i<r.length;i++){var o=r[i];if((new Date).getTime()>o["flushAfter"]&&!n[o["id"]]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t},this)):G_.resolve(t)};var bS=function(e,t){var r=[];return yk.each(e,function(e){e["id"]&&!t[e["id"]]&&r.push(e)}),r};wS.prototype.removeItemsByID=function(e){var t={};if(yk.each(e,function(e){t[e]=!0}),this.memQueue=bS(this.memQueue,t),this.usePersistence){var r=yk.bind(function(){return this.ensureInit().then(yk.bind(function(){return this.readFromStorage()},this)).then(yk.bind(function(e){return e=bS(e,t),this.saveToStorage(e)},this)).then(yk.bind(function(){return this.readFromStorage()},this)).then(yk.bind(function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n["id"]&&t[n["id"]])throw new Error("Item not removed from storage")}return!0},this)).catch(yk.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(yk.bind(function(e){return this.reportError("Error acquiring storage lock",e),!Ak(this.lock.storage,!0)&&r().then(yk.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(yk.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))}return G_.resolve(!0)};var _S=function(e,t){var r=[];return yk.each(e,function(e){var n=e["id"];if(n in t){var i=t[n];null!==i&&(e["payload"]=i,r.push(e))}else r.push(e)}),r};wS.prototype.updatePayloads=function(e){return this.memQueue=_S(this.memQueue,e),this.usePersistence?this.lock.withLock(yk.bind(function(){return this.ensureInit().then(yk.bind(function(){return this.readFromStorage()},this)).then(yk.bind(function(t){return t=_S(t,e),this.saveToStorage(t)},this)).catch(yk.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(yk.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):G_.resolve(!0)},wS.prototype.readFromStorage=function(){return this.ensureInit().then(yk.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(yk.bind(function(e){return e&&(yk.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(yk.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},wS.prototype.saveToStorage=function(e){return this.ensureInit().then(yk.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(yk.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},wS.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(yk.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):G_.resolve()};var kS=6e5,SS=_k("batch"),xS=function(e,t){this.errorReporter=t.errorReporter,this.queue=new wS(e,{errorReporter:yk.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig["batch_size"],this.flushInterval=this.libConfig["batch_flush_interval_ms"],this.stopped=!this.libConfig["batch_autostart"],this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null};xS.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},xS.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},xS.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},xS.prototype.clear=function(){return this.queue.clear()},xS.prototype.resetBatchSize=function(){this.batchSize=this.libConfig["batch_size"]},xS.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig["batch_flush_interval_ms"])},xS.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(yk.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},xS.prototype.sendRequestPromise=function(e,t){return new G_(yk.bind(function(r){this.sendRequest(e,t,r)},this))},xS.prototype.flush=function(e){if(this.requestInProgress)return SS.log("Flush: Request already in progress"),G_.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig["batch_request_timeout_ms"],r=(new Date).getTime(),n=this.batchSize;return this.queue.fillBatch(n).then(yk.bind(function(i){var o=i.length===n,s=[],a={};if(yk.each(i,function(e){var t=e["payload"];if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t["event"]&&t["properties"]&&(t["properties"]=yk.extend({},t["properties"],{mp_sent_by_lib_version:Ti.LIB_VERSION}));var r=!0,n=e["id"];n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&s.push(t)}a[e["id"]]=t},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),G_.resolve();var c=yk.bind(function(){return this.queue.removeItemsByID(yk.map(i,function(e){return e["id"]})).then(yk.bind(function(e){return yk.each(i,yk.bind(function(e){var t=e["id"];t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})},this)),e?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o?(this.resetFlush(),G_.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),G_.resolve())},this))},this),u=yk.bind(function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(yk.isObject(o)&&"timeout"===o.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(yk.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&!qk()||"timeout"===o.error)){var s=2*this.flushInterval;return o.retryAfter&&(s=1e3*parseInt(o.retryAfter,10)||s),s=Math.min(kS,s),this.reportError("Error; retry in "+s+" ms"),this.scheduleFlush(s),G_.resolve()}if(yk.isObject(o)&&413===o.httpStatusCode){if(i.length>1){var u=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,u,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),G_.resolve()}return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),c()}return c()}catch(xA){this.reportError("Error handling API response",xA),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(l.transport="sendBeacon"),SS.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(u)},this)).catch(yk.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},xS.prototype.reportError=function(e,t){if(SS.error.apply(SS.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){SS.error(t)}};var CS=function(e){var t=Date.now();return!e||t>e["maxExpires"]||t>e["idleExpires"]},ES=250,AS=function(e,t){if(!yk.isArray(e))return e&&t.critical("record_allowed_iframe_origins must be an array of origin strings, cross-origin recording will be disabled."),[];for(var r=[],n=0;n<e.length;n++)try{var i=new URL(e[n]).origin;if("null"===i){t.critical(e[n]+" has an opaque origin. Skipping this entry.");continue}r.push(i)}catch(o){t.critical(e[n]+" is not a valid origin URL. Skipping this entry.")}return r},OS="change",IS="click",TS="hashchange",MS="input",RS="load",PS="mp_locationchange",DS="popstate",LS="scrollend",BS="scroll",NS="select",jS="submit",FS="toggle",US="visibilitychange",zS=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],qS=["mp-include"],HS=["mp-no-track"],$S=HS.concat(["mp-sensitive"]),WS=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],VS={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},YS={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},XS={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},JS=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],GS=5,KS=_k("autocapture");function ZS(e){for(var t={},r=QS(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function QS(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function ex(e){if(e.previousElementSibling)return e.previousElementSibling;do{e=e.previousSibling}while(e&&!ax(e));return e}function tx(e,t,r,n,i,o){var s={$classes:QS(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s["$id"]=a),fx(e,t,i,o)&&yk.each(WS.concat(n),function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);mx(n)&&(s["$attr-"+t]=n)}});var c=1,u=1,l=e;while(l=ex(l))c++,l.tagName===e.tagName&&u++;return s["$nth_child"]=c,s["$nth_of_type"]=u,s}function rx(e,t){var r=t.allowElementCallback,n=t.allowSelectors||[],i=t.blockAttrs||[],o=t.blockElementCallback,s=t.blockSelectors||[],a=t.captureTextContent||!1,c=t.captureExtraAttrs||[],u=t.capturedForHeatMap||!1,l={};yk.each(i,function(e){l[e]=!0});var h=null,d="undefined"===typeof e.target?e.srcElement:e.target;if(ux(d)&&(d=d.parentNode),dx(d,e)&&ox(d,e,r,n)&&!sx(d,e,o,s)){var p=[d],f=d;while(f.parentNode&&!cx(f,"body"))p.push(f.parentNode),f=f.parentNode;var m,g=[],v=!1;if(yk.each(p,function(t){var i=fx(t,e,r,n);l["href"]||"a"!==t.tagName.toLowerCase()||(m=t.getAttribute("href"),m=i&&mx(m)&&m),sx(t,e,o,s)&&(v=!0),g.push(tx(t,e,l,c,r,n))},this),!v){var y=ck["documentElement"];if(h={$event_type:e.type,$host:Ai.location.host,$pathname:Ai.location.pathname,$elements:g,$el_attr__href:m,$viewportHeight:Math.max(y["clientHeight"],Ai["innerHeight"]||0),$viewportWidth:Math.max(y["clientWidth"],Ai["innerWidth"]||0),$pageHeight:ck["body"]["offsetHeight"]||0,$pageWidth:ck["body"]["offsetWidth"]||0},yk.each(c,function(e){if(!l[e]&&d.hasAttribute(e)){var t=d.getAttribute(e);mx(t)&&(h["$el_attr__"+e]=t)}}),a&&(w=nx(d,e,r,n),w&&w.length&&(h["$el_text"]=w)),e.type===IS&&(yk.each(zS,function(t){t in e&&(h["$"+t]=e[t])}),u&&(h["$captured_for_heatmap"]=!0),d=ix(e)),a){var w=nx(d,e,r,n);w&&w.length&&(h["$el_text"]=w)}if(d){if(!ox(d,e,r,n)||sx(d,e,o,s))return null;var b=tx(d,e,l,c,r,n);h["$target"]=b,h["$el_classes"]=b["$classes"],yk.extend(h,yk.strip_empty_properties({$el_id:b["$id"],$el_tag_name:b["$tag_name"]}))}}}return h}function nx(e,t,r,n){var i="";return fx(e,t,r,n)&&e.childNodes&&e.childNodes.length&&yk.each(e.childNodes,function(e){ux(e)&&e.textContent&&(i+=yk.trim(e.textContent).split(/(\s+)/).filter(mx).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),yk.trim(i)}function ix(e){for(var t=e.target,r=e["composedPath"](),n=0;n<r.length;n++){var i=r[n];if(cx(i,"a")||cx(i,"button")||cx(i,"input")||cx(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}function ox(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(xA){return KS.critical("Error while checking element in allowElementCallback",xA),!1}if(!n.length)return!0;for(var i=0;i<n.length;i++){var o=n[i];try{if(e["matches"](o))return!0}catch(xA){KS.critical("Error while checking selector: "+o,xA)}}return!1}function sx(e,t,r,n){var i;if(r)try{if(r(e,t))return!0}catch(xA){return KS.critical("Error while checking element in blockElementCallback",xA),!0}if(n&&n.length)for(i=0;i<n.length;i++){var o=n[i];try{if(e["matches"](o))return!0}catch(xA){KS.critical("Error while checking selector: "+o,xA)}}var s=ZS(e);for(i=0;i<HS.length;i++)if(s[HS[i]])return!0;return!1}function ax(e){return e&&1===e.nodeType}function cx(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function ux(e){return e&&3===e.nodeType}function lx(){try{var e=ck.createElement("div");return!!e["matches"]}catch(xA){return!1}}function hx(){return"undefined"!==typeof WeakSet}function dx(e,t){if(!e||cx(e,"html")||!ax(e))return!1;var r=e.tagName.toLowerCase();switch(r){case"form":return t.type===jS;case"input":return-1===["button","submit"].indexOf(e.getAttribute("type"))?t.type===OS:t.type===IS;case"select":case"textarea":return t.type===OS;default:return t.type===IS}}function px(e){var t=(e.name||e.id||"").toString().toLowerCase();if("string"===typeof t){var r=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(r.test(t.replace(/[^a-zA-Z0-9]/g,"")))return!0}return!1}function fx(e,t,r,n){var i;if(!ox(e,t,r,n))return!1;for(var o=e;o.parentNode&&!cx(o,"body");o=o.parentNode){var s=ZS(o);for(i=0;i<$S.length;i++)if(s[$S[i]])return!1}var a=ZS(e);for(i=0;i<qS.length;i++)if(a[qS[i]])return!0;if(cx(e,"input")||cx(e,"select")||cx(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var c=e.type||"";if("string"===typeof c)switch(c.toLowerCase()){case"hidden":return!1;case"password":return!1}return!px(e)}function mx(e){if(null===e||yk.isUndefined(e))return!1;if("string"===typeof e){e=yk.trim(e);var t=/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/;if(t.test((e||"").replace(/[- ]/g,"")))return!1;var r=/(^\d{3}-?\d{2}-?\d{4}$)/;if(r.test(e))return!1}return!0}function gx(e){var t="onscrollend"in Ai,r=kk(e),n=LS;if(!t){var i=null,o=100;r=kk(function(){clearTimeout(i),i=setTimeout(e,o)}),n=BS}return{listener:r,eventType:n}}function vx(e){for(var t=0;t<JS.length;t++)if(e.hasAttribute(JS[t]))return!0;return!1}function yx(e){var t=e.getAttribute("role");if(!t)return!1;var r=t.trim().split(/\s+/)[0].toLowerCase();return VS[r]}function wx(e){var t=e.tagName.toLowerCase();return"button"===t||"input"===t||"select"===t||"textarea"===t||"details"===t||"dialog"===t||(!!e.isContentEditable||(!!(e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend)||(!!vx(e)||(!!yx(e)||(!("a"!==t||!e.hasAttribute("href"))||!!e.hasAttribute("tabindex"))))))}function bx(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(YS[t])return!0;if(wx(e))return!1;var r=e.parentElement,n=0;while(r&&n<GS){if(wx(r))return!1;if(r.getRootNode&&r.getRootNode()!==ck){var i=r.getRootNode();if(i.host&&wx(i.host))return!1}r=r.parentElement,n++}return!!XS[t]}function _x(e){return"composedPath"in e?e["composedPath"]():[]}function kx(e){var t=_x(e);return t&&t.length>0?t[0]:e["target"]||e["srcElement"]}var Sx=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",xx="data-rr-is-password",Cx=["password","email","tel","hidden"];function Ex(e){return e?Array.isArray(e)?e:[e]:[]}function Ax(e){var t={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},r=e.get_config("record_mask_input_selector"),n=e.get_config("record_unmask_input_selector"),i=e.get_config("record_mask_all_inputs");t.input.maskingSelector=Ex(r).join(","),t.input.unmaskingSelector=Ex(n).join(","),void 0!==i&&(t.input.maskAll=i);var o=e.get_config("record_mask_text_selector"),s=e.get_config("record_unmask_text_selector"),a=e.get_config("record_mask_all_text"),c=e.get_config("record_mask_text_class"),u=Ex(o);if(c)if(c instanceof RegExp)t.text._legacyClassRegex=c;else{var l="."+c;-1===u.indexOf(l)&&u.push(l)}return t.text.maskingSelector=u.join(","),t.text.unmaskingSelector=Ex(s).join(","),void 0===a&&void 0!==o?t.text.maskAll=!1:void 0!==a&&(t.text.maskAll=a),t}function Ox(e,t){return!!t&&!!e.closest(t)}function Ix(e,t){var r=(e.getAttribute("type")||"").toLowerCase();if(-1!==Cx.indexOf(r))return!0;var n=(e.getAttribute("autocomplete")||"").toLowerCase();return!(!n||""===n||"off"===n)||(!!e.hasAttribute(xx)||(!!px(e)||(t.input.maskAll?!Ox(e,t.input.unmaskingSelector):!!Ox(e,t.input.maskingSelector)||!!Ox(e,Sx))))}function Tx(e,t){return!!e&&(!(!t.text._legacyClassRegex||!bv(e,t.text._legacyClassRegex))||(t.text.maskAll?!Ox(e,t.text.unmaskingSelector):!!Ox(e,t.text.maskingSelector)||!!Ox(e,Sx)))}var Mx=_k("network-plugin");function Rx(e){return Math.round(Date.now()-e.performance.now())}var Px={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],ignoreRequestFn:function(){return!1},recordHeaders:{request:[],response:[]},recordBodyUrls:{request:[],response:[]},recordInitialRequests:!1};function Dx(e){return"navigation"===e.entryType}function Lx(e){return"resource"===e.entryType}function Bx(e,t){for(var r=e.length,n=r-1;n>=0;n-=1)if(t(e[n]))return e[n]}function Nx(e,t,r){if(!(t in e)||"function"!==typeof e[t])return function(){};var n=e[t],i=r(n);return e[t]=i,function(){e[t]=n}}var jx=1048576;function Fx(e){return e&&"string"===typeof e&&e.length>jx?(Mx.error("Body truncated from "+e.length+" to "+jx+" characters"),e.substring(0,jx)+"... [truncated]"):e}function Ux(e,t,r){if(!t.PerformanceObserver)return Mx.error("PerformanceObserver not supported"),function(){};if(r.recordInitialRequests){var n=t.performance.getEntries().filter(function(e){return Dx(e)||Lx(e)&&r.initiatorTypes.includes(e.initiatorType)});e({requests:n.map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:Rx(t)}}),isInitial:!0})}var i=new t.PerformanceObserver(function(n){var i=n.getEntries().filter(function(e){return Lx(e)&&r.initiatorTypes.includes(e.initiatorType)&&"xmlhttprequest"!==e.initiatorType&&"fetch"!==e.initiatorType});e({requests:i.map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:Rx(t)}})})});return i.observe({entryTypes:["navigation","resource"]}),function(){i.disconnect()}}function zx(e,t,r){return!(!t[e]||0===t[e].length)&&t[e].includes(r.toLowerCase())}function qx(e,t,r){return!(!t[e]||0===t[e].length)&&$k(r,t[e])}function Hx(e){if(null===e||void 0===e)return null;var t;if("string"===typeof e)t=e;else if(e instanceof Document)t=e.textContent;else if(e instanceof FormData)t=yk.HTTPBuildQuery(e);else{if(!yk.isObject(e))return"Cannot read body of type "+typeof e;try{t=JSON.stringify(e)}catch(r){return"Failed to stringify response object"}}return Fx(t)}function $x(e){return new Promise(function(t){var r=setTimeout(function(){t("Timeout while trying to read body")},500);try{e.clone().text().then(function(e){clearTimeout(r),t(Fx(e))},function(e){clearTimeout(r),t("Failed to read body: "+String(e))})}catch(n){clearTimeout(r),t("Failed to read body: "+String(n))}})}function Wx(e,t,r,n,i,o){if(void 0===o&&(o=0),o>10)return Mx.error("Cannot find performance entry"),Promise.resolve(null);var s=e.performance.getEntriesByName(r),a=Bx(s,function(e){return Lx(e)&&e.initiatorType===t&&(!n||e.startTime>=n)&&(!i||e.startTime<=i)});return a?Promise.resolve(a):new Promise(function(e){setTimeout(e,50*o)}).then(function(){return Wx(e,t,r,n,i,o+1)})}function Vx(e,t,r){if(!r.initiatorTypes.includes("xmlhttprequest"))return function(){};var n=Nx(t.XMLHttpRequest.prototype,"open",function(n){return function(i,o,s,a,c){void 0===s&&(s=!0);var u,l,h=this,d=new Request(o,{method:i}),p={},f={},m=h.setRequestHeader.bind(h);h.setRequestHeader=function(e,t){return zx("request",r.recordHeaders,e)&&(f[e]=t),m(e,t)},p.requestHeaders=f;var g=h.send.bind(h);h.send=function(e){return qx("request",r.recordBodyUrls,d.url)&&(p.requestBody=Hx(e)),u=t.performance.now(),g(e)},h.addEventListener("readystatechange",function(){if(h.readyState===h.DONE){l=t.performance.now();var n={},i=h.getAllResponseHeaders();if(i){var o=i.trim().split(/[\r\n]+/);o.forEach(function(e){if(e){var t=e.indexOf(": ");if(-1!==t){var i=e.substring(0,t),o=e.substring(t+2);i&&zx("response",r.recordHeaders,i)&&(n[i]=o)}}})}p.responseHeaders=n,qx("response",r.recordBodyUrls,d.url)&&(p.responseBody=Hx(h.response)),Wx(t,"xmlhttprequest",d.url,u,l).then(function(r){if(r){var n={url:r.name,method:d.method,initiatorType:r.initiatorType,status:h.status,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:Rx(t),requestHeaders:p.requestHeaders,requestBody:p.requestBody,responseHeaders:p.responseHeaders,responseBody:p.responseBody};e({requests:[n]})}else Mx.error("Failed to get performance entry for XHR request to "+d.url)}).catch(function(e){Mx.error("Error recording XHR request to "+d.url+": "+String(e))})}}),n.call(h,i,o,s,a,c)}});return function(){n()}}function Yx(e,t,r){if(!r.initiatorTypes.includes("fetch"))return function(){};var n=Nx(t,"fetch",function(n){return function(){var i,o,s,a,c=new Request(arguments[0],arguments[1]),u={},l=Promise.resolve(void 0),h=Promise.resolve(void 0);try{var d={};c.headers.forEach(function(e,t){zx("request",r.recordHeaders,t)&&(d[t]=e)}),u.requestHeaders=d,qx("request",r.recordBodyUrls,c.url)&&(l=$x(c).then(function(e){u.requestBody=e})),o=t.performance.now(),a=n.apply(t,arguments).then(function(e){i=e,s=t.performance.now();var n={};return i.headers.forEach(function(e,t){zx("response",r.recordHeaders,t)&&(n[t]=e)}),u.responseHeaders=n,qx("response",r.recordBodyUrls,c.url)&&(h=$x(i).then(function(e){u.responseBody=e})),i})}catch(p){a=Promise.reject(p)}return Promise.all([l,h,a]).then(function(){return Wx(t,"fetch",c.url,o,s)}).then(function(r){if(r){var n={url:r.name,method:c.method,initiatorType:r.initiatorType,status:i?i.status:void 0,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:Rx(t),requestHeaders:u.requestHeaders,requestBody:u.requestBody,responseHeaders:u.responseHeaders,responseBody:u.responseBody};e({requests:[n]})}else Mx.error("Failed to get performance entry for fetch request to "+c.url)}).catch(function(e){Mx.error("Error recording fetch request to "+c.url+": "+String(e))}),a}});return function(){n()}}function Xx(e,t,r){if(!("performance"in t))return function(){};var n=Object.assign({},Px.recordHeaders,r.recordHeaders||{}),i=Object.assign({},Px.recordBodyUrls,r.recordBodyUrls||{});r=Object.assign({},r,{recordHeaders:n,recordBodyUrls:i});var o=Object.assign({},Px,r),s=function(t){var r=t.requests.filter(function(e){var t=$k(e.url,o.ignoreRequestUrls||[]);return!t&&!o.ignoreRequestFn(e)});(r.length>0||t.isInitial)&&e(Object.assign({},t,{requests:r}))},a=Ux(s,t,o),c=Vx(s,t,o),u=Yx(s,t,o);return function(){a(),c(),u()}}var Jx="rrweb/network@1.mp",Gx=function(e){return{name:Jx,observer:Xx,options:e}},Kx=_k("recorder"),Zx=Ai["CompressionStream"],Qx={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},eC=new Set([Em.MouseMove,Em.MouseInteraction,Em.Scroll,Em.ViewportResize,Em.Input,Em.TouchMove,Em.MediaInteraction,Em.Drag,Em.Selection]);function tC(e){return e.type===Cm.IncrementalSnapshot&&eC.has(e.data.source)}var rC=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||Hk,this._onMaxLengthReached=e.onMaxLengthReached||Hk,this._onBatchSent=e.onBatchSent||Hk,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.lastEventTimestamp=e.lastEventTimestamp||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=Z_,this.recordMinMs=0;var t=Ak(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new Qk(Jk),this.batcher=new xS(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Qx,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:ES,sharedLockTimeoutMS:1e4})};rC.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(e["$device_id"]=t);var r=this._mixpanel.get_property("$user_id");return r&&(e["$user_id"]=r),e},rC.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch(function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}.bind(this)).then(function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))}.bind(this))},rC.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},rC.prototype.get_config=function(e){return this.getConfig(e)},rC.prototype.startRecording=function(e){if(null!==this._rrwebRecord)if(null===this._stopRecording){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>Z_&&(this.recordMaxMs=Z_,Kx.critical("record_max_ms cannot be greater than "+Z_+"ms. Capping value.")),this.maxExpires||(this.maxExpires=(new Date).getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=(new Date).getTime(),this.batchStartUrl=yk.info.currentUrl(),this.replayStartUrl=yk.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=(new Date).getTime()+e}.bind(this);t();var r=this.getConfig("record_block_selector");""!==r&&null!==r||(r=void 0);var n=Ax(this._mixpanel),i=[];if(this.getConfig("record_network")){var o=this.getConfig("record_network_options")||{},s=(o.ignoreRequestUrls||[]).slice();s.push(this._getApiRoute()),o.ignoreRequestUrls=s,i.push(Gx(o))}this.getConfig("record_console")&&i.push(B_({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}));var a=AS(this.getConfig("record_allowed_iframe_origins"),Kx);try{this._stopRecording=this._rrwebRecord({emit:function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(tC(e)&&(this.batcher.stopped&&(new Date).getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(null===this.lastEventTimestamp||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp))}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(Ix,n),maskTextFn:this._getMaskFn(Tx,n),recordCrossOriginIframes:a.length>0,allowedIframeOrigins:a,recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:i})}catch(xA){this.reportError("Unexpected error when starting rrweb recording.",xA)}if("function"!==typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();var c=this.maxExpires-(new Date).getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),c)}else Kx.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},rC.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(xA){this.reportError("Error with rrweb stopRecording",xA)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},rC.prototype.isRrwebStopped=function(){return null===this._stopRecording},rC.prototype.flushEventsWithOptOut=function(e,t,r){var n=function(e){0===e&&(this.stopRecording(),r({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(e,t,r,n)},rC.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},rC.deserialize=function(e,t){var r=new rC(yk.extend({},t,{replayId:e["replayId"],batchStartUrl:e["batchStartUrl"],replayStartUrl:e["replayStartUrl"],idleExpires:e["idleExpires"],maxExpires:e["maxExpires"],replayStartTime:e["replayStartTime"],lastEventTimestamp:e["lastEventTimestamp"],seqNo:e["seqNo"],sharedLockStorage:t.sharedLockStorage}));return r},rC.prototype._getApiRoute=function(){return this.getConfig("api_routes")["record"]},rC.prototype._sendRequest=function(e,t,r,n){var i=function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=yk.info.currentUrl()),this._onBatchSent(),n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}.bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");Ai["fetch"](o+"/"+this._getApiRoute()+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then(function(e){e.json().then(function(t){i(e,t)}).catch(function(e){n({error:e})})}).catch(function(e){n({error:e,httpStatusCode:0})})},rC.prototype._flushEvents=oS(function(e,t,r){var n=e.length;if(n>0){for(var i=this.replayId,o=1/0,s=-1/0,a=!1,c=0;c<n;c++)o=Math.min(o,e[c].timestamp),s=Math.max(s,e[c].timestamp),e[c].type===Cm.FullSnapshot&&(a=!0);if(0===this.seqNo){if(!a)return r({error:"First batch does not contain a full snapshot. Aborting recording."}),void this.stopRecording(!0);this.replayStartTime=o}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=o);var u=s-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:Ti.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:i,replay_length_ms:u,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},h=JSON.stringify(e);if(Object.assign(l,this.getUserIdInfo()),Yk(hk,ak.vendor,uk)){var d=new Blob([h],{type:"application/json"}).stream(),p=d.pipeThrough(new Zx("gzip"));new Response(p).blob().then(function(e){l["format"]="gzip",this._sendRequest(i,l,e,r)}.bind(this))}else l["format"]="body",this._sendRequest(i,l,h,r)}}),rC.prototype.reportError=function(e,t){Kx.error.apply(Kx.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(t){Kx.error(t)}},rC.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?(new Date).getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},rC.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>Q_?(Kx.critical("record_min_ms cannot be greater than "+Q_+"ms. Capping value."),Q_):e},rC.prototype._getMaskFn=function(e,t){return function(r,n){if(!r.trim().length)return"";var i=!0;try{i=e(n,t)}catch(xA){this.reportError("Error checking if text should be masked, defaulting to masked",xA)}if(i){var o=Math.min(r.length,1e4);return"*".repeat(o)}return r}.bind(this)};var nC=function(e){this.idb=new Qk(Gk),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};nC.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},nC.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},nC.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return G_.resolve();var t=e["tabId"];return t?this.idb.init().then(function(){return this.idb.setItem(t,e)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),G_.resolve())},nC.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(e){return CS(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):G_.resolve(null)},nC.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},nC.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(e){if(e)return e["maxExpires"]=0,this.setActiveRecording(e)}.bind(this)).catch(this.handleError.bind(this))},nC.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):G_.resolve()},nC.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(e){var t=e.filter(function(e){return CS(e)}).map(function(e){var t=rC.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return t.unloadPersistedData().then(function(){return this.idb.removeItem(e["tabId"])}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return G_.all(t)}.bind(this)).catch(this.handleError.bind(this)):G_.resolve([])};var iC=_k("recorder"),oC=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||Gg,this.sharedLockStorage=r,this.recordingRegistry=new nC({mixpanelInstance:this.mixpanelInstance,errorReporter:iC.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};function sC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}oC.prototype.startRecording=function(e){if(e=e||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=function(){iC.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),r=function(){iC.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),n=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this["__flushPromise"]=this.activeRecording.batcher._flushPromise}.bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:n,onIdleTimeout:t,onMaxLengthReached:r,replayId:yk.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=rC.deserialize(e.activeSerializedRecording,i):this.activeRecording=new rC(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}iC.log("Recording already in progress, skipping startRecording.")},oC.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then(function(){return this.recordingRegistry.clearActiveRecording()}.bind(this)).then(function(){this.stopRecordingInProgress=!1}.bind(this))},oC.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},oC.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return G_.resolve()},oC.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),G_.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(iC.log("No resumable recording found."),null)}.bind(this))},oC.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},oC.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},oC.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(oC.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),Ai[Ri]=oC;var aC,cC={exports:{}};cC.exports;function uC(){return aC||(aC=1,function(e){(function(t,r){e.exports=r()})(0,function(){function e(e){for(var t=[],r=0,n=e.length;r<n;r++)-1===t.indexOf(e[r])&&t.push(e[r]);return t}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var t={},r={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,r){return void 0===r?e<t:e<t&&t<r},"<=":function(e,t,r){return void 0===r?e<=t:e<=t&&t<=r},"!!":function(e){return t.truthy(e)},"!":function(e){return!t.truthy(e)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!(!t||"undefined"===typeof t.indexOf)&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,r){if(r<0){var n=String(e).substr(t);return n.substr(0,n.length+r)}return String(e).substr(t,r)},"+":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)+parseFloat(t,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)*parseFloat(t,10)})},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(e,t){return e.concat(t)},[])},var:function(e,t){var r=void 0===t?null:t,n=this;if("undefined"===typeof e||""===e||null===e)return n;for(var i=String(e).split("."),o=0;o<i.length;o++){if(null===n||void 0===n)return r;if(n=n[i[o]],void 0===n)return r}return n},missing:function(){for(var e=[],r=Array.isArray(arguments[0])?arguments[0]:arguments,n=0;n<r.length;n++){var i=r[n],o=t.apply({var:i},this);null!==o&&""!==o||e.push(i)}return e},missing_some:function(e,r){var n=t.apply({missing:r},this);return r.length-n.length>=e?[]:n}};return t.is_logic=function(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},t.truthy=function(e){return(!Array.isArray(e)||0!==e.length)&&!!e},t.get_operator=function(e){return Object.keys(e)[0]},t.get_values=function(e){return e[t.get_operator(e)]},t.apply=function(e,n){if(Array.isArray(e))return e.map(function(e){return t.apply(e,n)});if(!t.is_logic(e))return e;var i,o,s,a,c,u=t.get_operator(e),l=e[u];if(Array.isArray(l)||(l=[l]),"if"===u||"?:"==u){for(i=0;i<l.length-1;i+=2)if(t.truthy(t.apply(l[i],n)))return t.apply(l[i+1],n);return l.length===i+1?t.apply(l[i],n):null}if("and"===u){for(i=0;i<l.length;i+=1)if(o=t.apply(l[i],n),!t.truthy(o))return o;return o}if("or"===u){for(i=0;i<l.length;i+=1)if(o=t.apply(l[i],n),t.truthy(o))return o;return o}if("filter"===u)return a=t.apply(l[0],n),s=l[1],Array.isArray(a)?a.filter(function(e){return t.truthy(t.apply(s,e))}):[];if("map"===u)return a=t.apply(l[0],n),s=l[1],Array.isArray(a)?a.map(function(e){return t.apply(s,e)}):[];if("reduce"===u)return a=t.apply(l[0],n),s=l[1],c="undefined"!==typeof l[2]?t.apply(l[2],n):null,Array.isArray(a)?a.reduce(function(e,r){return t.apply(s,{current:r,accumulator:e})},c):c;if("all"===u){if(a=t.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(!t.truthy(t.apply(s,a[i])))return!1;return!0}if("none"===u){if(a=t.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!0;for(i=0;i<a.length;i+=1)if(t.truthy(t.apply(s,a[i])))return!1;return!0}if("some"===u){if(a=t.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(t.truthy(t.apply(s,a[i])))return!0;return!1}if(l=l.map(function(e){return t.apply(e,n)}),r.hasOwnProperty(u)&&"function"===typeof r[u])return r[u].apply(n,l);if(u.indexOf(".")>0){var h=String(u).split("."),d=r;for(i=0;i<h.length;i++){if(!d.hasOwnProperty(h[i]))throw new Error("Unrecognized operation "+u+" (failed at "+h.slice(0,i+1).join(".")+")");d=d[h[i]]}return d.apply(n,l)}throw new Error("Unrecognized operation "+u)},t.uses_data=function(r){var n=[];if(t.is_logic(r)){var i=t.get_operator(r),o=r[i];Array.isArray(o)||(o=[o]),"var"===i?n.push(o[0]):o.forEach(function(e){n.push.apply(n,t.uses_data(e))})}return e(n)},t.add_operation=function(e,t){r[e]=t},t.rm_operation=function(e){delete r[e]},t.rule_like=function(e,r){if(r===e)return!0;if("@"===r)return!0;if("number"===r)return"number"===typeof e;if("string"===r)return"string"===typeof e;if("array"===r)return Array.isArray(e)&&!t.is_logic(e);if(t.is_logic(r)){if(t.is_logic(e)){var n=t.get_operator(r),i=t.get_operator(e);if("@"===n||n===i)return t.rule_like(t.get_values(e,!1),t.get_values(r,!1))}return!1}if(Array.isArray(r)){if(Array.isArray(e)){if(r.length!==e.length)return!1;for(var o=0;o<r.length;o+=1)if(!t.rule_like(e[o],r[o]))return!1;return!0}return!1}return!1},t})}(cC)),cC.exports}var lC=uC(),hC=sC(lC),dC=function(e,t,r){if(e!==r.event_name)return{matches:!1};var n=r.property_filters,i=!0;if(n&&!yk.isEmptyObject(n))try{i=hC.apply(n,t||{})}catch(o){return{matches:!1,error:o.toString()}}return{matches:i}},pC={};pC["eventMatchesCriteria"]=dC,Ai[Mi]=Promise.resolve(pC);var fC=30,mC=1e3,gC=4,vC=!1;function yC(){this.clicks=[]}function wC(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}yC.prototype.isRageClick=function(e,t){t=t||{};var r=t["threshold_px"]||fC,n=t["timeout_ms"]||mC,i=t["click_count"]||gC,o=t["interactive_elements_only"]||vC;if(o){var s=kx(e);if(!s||bx(s))return!1}var a=Date.now(),c=e["pageX"],u=e["pageY"],l=this.clicks[this.clicks.length-1];if(l&&a-l.timestamp<n&&Math.sqrt(Math.pow(c-l.x,2)+Math.pow(u-l.y,2))<r){if(this.clicks.push({x:c,y:u,timestamp:a}),this.clicks.length>=i)return this.clicks=[],!0}else this.clicks=[{x:c,y:u,timestamp:a}];return!1},wC.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return kx(e)},wC.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=_x(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},wC.prototype.observeShadowRoot=function(e){if(this.observedShadowRoots&&!this.observedShadowRoots.has(e)){var t=this;try{this.observedShadowRoots.add(e);var r=new window.MutationObserver(function(){t.changeCallback()});r.observe(e,this.observerConfig),this.shadowObservers.push(r)}catch(n){KS.critical("Error while observing shadow root",n)}}},wC.prototype.start=function(){this.observedShadowRoots||(hx()?this.observedShadowRoots=new WeakSet:KS.critical("Shadow DOM observation unavailable: WeakSet not supported"))},wC.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(t){KS.critical("Error while disconnecting shadow DOM observer",t)}this.shadowObservers=[],this.observedShadowRoots=null}};var bC=500,_C=[OS,MS,jS,NS,FS],kC=[LS],SC=[TS],xC={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function CC(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}CC.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e["target"]||e["srcElement"]),!(!t||bx(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},CC.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},CC.prototype.getDeadClicks=function(e){if(0===this.pendingClicks.length)return[];var t=e["timeout_ms"],r=Date.now(),n=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],o=0;o<n.length;o++){var s=n[o];r-s.timestamp>=t?this.hasChangesAfter(s.timestamp)||i.push(s):this.pendingClicks.push(s)}return i},CC.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},CC.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},CC.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},CC.prototype.processRecursively=function(e){if(this.isTracking&&this.onDeadClickCallback){var t=e["timeout_ms"],r=this;this.processingTimeout=setTimeout(function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n<t.length;n++)r.onDeadClickCallback(t[n].event);r.pendingClicks.length>0?r.processRecursively(e):r.processingActive=!1}},t)}else this.processingActive=!1},CC.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;_C.forEach(function(t){var r=function(){e.recordChangeEvent()};document.addEventListener(t,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:r,options:{capture:!0,passive:!0}})}),SC.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),kC.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:r,options:{passive:!0}})});var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,xC)}catch(r){KS.critical("Error while setting up mutation observer",r)}if(window.customElements)try{this.shadowDOMObserver=new wC(function(){e.recordChangeEvent()},xC),this.shadowDOMObserver.start()}catch(r){KS.critical("Error while setting up shadow DOM observer",r),this.shadowDOMObserver=null}}},CC.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(r){KS.critical("Error while removing event listener",r)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(r){KS.critical("Error while disconnecting mutation observer",r)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(r){KS.critical("Error while stopping shadow DOM observer",r)}this.shadowDOMObserver=null}}};var EC="autocapture",AC="track_pageview",OC="full-url",IC="url-with-path-and-query-string",TC="url-with-path",MC="allow_element_callback",RC="allow_selectors",PC="allow_url_regexes",DC="block_attrs",LC="block_element_callback",BC="block_selectors",NC="block_url_regexes",jC="capture_extra_attrs",FC="capture_text_content",UC="scroll_capture_all",zC="scroll_depth_percent_checkpoints",qC="click",HC="dead_click",$C="input",WC="pageview",VC="rage_click",YC="scroll",XC="page_leave",JC="submit",GC={};GC[RC]=[],GC[PC]=[],GC[DC]=[],GC[LC]=null,GC[BC]=[],GC[NC]=[],GC[jC]=[],GC[FC]=!1,GC[UC]=!1,GC[zC]=[25,50,75,100],GC[qC]=!0,GC[HC]=!0,GC[$C]=!0,GC[WC]=OC,GC[VC]=!0,GC[YC]=!0,GC[XC]=!1,GC[JC]=!0;var KC={$mp_autocapture:!0},ZC="$mp_click",QC="$mp_dead_click",eE="$mp_input_change",tE="$mp_rage_click",rE="$mp_scroll",nE="$mp_submit",iE="$mp_page_leave",oE=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};oE.prototype.init=function(){lx()?(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking()):KS.critical("Autocapture unavailable: missing required DOM APIs")},oE.prototype.getFullConfig=function(){var e=this.mp.get_config(EC);return e?yk.isObject(e)?yk.extend({},GC,e):GC:{}},oE.prototype.getConfig=function(e){return this.getFullConfig()[e]},oE.prototype.currentUrlBlocked=function(){var e=yk.info.currentUrl(),t=this.getConfig(PC)||[];if(t.length)try{return!$k(e,t)}catch(xA){return KS.critical("Error while checking block URL regexes: ",xA),!0}var r=this.getConfig(NC)||[];if(!r||!r.length)return!1;try{return $k(e,r)}catch(xA){return KS.critical("Error while checking block URL regexes: ",xA),!0}},oE.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(EC)?this.getConfig(WC):this.mp.get_config(AC)},oE.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===ZC&&!this.getConfig(qC)||t===tE&&!this._getClickTrackingConfig(VC)||t===QC&&!this._getClickTrackingConfig(HC)),n=rx(e,{allowElementCallback:this.getConfig(MC),allowSelectors:this.getConfig(RC),blockAttrs:this.getConfig(DC),blockElementCallback:this.getConfig(LC),blockSelectors:this.getConfig(BC),captureExtraAttrs:this.getConfig(jC),captureTextContent:this.getConfig(FC),capturedForHeatMap:r});n&&(yk.extend(n,KC),this.mp.track(t,n))}},oE.prototype.initPageListeners=function(){if(Ai.removeEventListener(DS,this.listenerPopstate),Ai.removeEventListener(TS,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(XC)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){Ai.dispatchEvent(new Event(PS))},this.listenerHashchange=function(){Ai.dispatchEvent(new Event(PS))},Ai.addEventListener(DS,this.listenerPopstate),Ai.addEventListener(TS,this.listenerHashchange);var e=Ai.history.pushState;"function"===typeof e&&(Ai.history.pushState=function(t,r,n){e.call(Ai.history,t,r,n),Ai.dispatchEvent(new Event(PS))});var t=Ai.history.replaceState;"function"===typeof t&&(Ai.history.replaceState=function(e,r,n){t.call(Ai.history,e,r,n),Ai.dispatchEvent(new Event(PS))})}},oE.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"===typeof t?t:{}:null},oE.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(XC)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var n=Math.max(ck.documentElement.clientHeight,Ai.innerHeight||0),i=Math.round(Math.max(this.maxScrollViewDepth-n,0)/(r-n)*100),o=Math.round(n/r*100);r<=n&&(i=100,o=100);var s=yk.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:i,$fold_line_percentage:o,$scroll_height:r,$event_type:e.type,$current_url:t||yk.info.currentUrl(),$viewportHeight:n,$viewportWidth:Math.max(ck.documentElement.clientWidth,Ai.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},KC);this.mp.track(iE,s,{transport:"sendBeacon"})}},oE.prototype._initScrollDepthTracking=function(){if(Ai.removeEventListener(BS,this.listenerScrollDepth),Ai.removeEventListener(LS,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){KS.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(ck.documentElement.clientHeight,Ai.innerHeight||0);var e=function(){if(!this.currentUrlBlocked()){var e=Math.max(ck.documentElement.clientHeight,Ai.innerHeight||0)+Ai.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=ck.body.scrollHeight}}.bind(this),t=gx(e);this.listenerScrollDepth=t.listener,Ai.addEventListener(t.eventType,this.listenerScrollDepth)}},oE.prototype.initClickTracking=function(){Ai.removeEventListener(IS,this.listenerClick),(this.getConfig(qC)||this.mp.get_config("record_heatmap_data"))&&(KS.log("Initializing click tracking"),this.listenerClick=function(e){(this.getConfig(qC)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,ZC)}.bind(this),Ai.addEventListener(IS,this.listenerClick))},oE.prototype.initDeadClickTracking=function(){var e=this._getClickTrackingConfig(HC);e||this.mp.get_config("record_heatmap_data")?(KS.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new CC(function(e){this.trackDomEvent(e,QC)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig(HC);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r["timeout_ms"]||(r["timeout_ms"]=bC),this._deadClickTracker.trackClick(e,r)}}.bind(this),Ai.addEventListener(IS,this.listenerDeadClick))):this.stopDeadClickTracking()},oE.prototype.initInputTracking=function(){Ai.removeEventListener(OS,this.listenerChange),this.getConfig($C)&&(KS.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig($C)&&this.trackDomEvent(e,eE)}.bind(this),Ai.addEventListener(OS,this.listenerChange))},oE.prototype.initPageviewTracking=function(){if(Ai.removeEventListener(PS,this.listenerLocationchange),this.pageviewTrackingConfig()){KS.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(KC)),t&&(e=yk.info.currentUrl()),this.listenerLocationchange=kk(function(){if(!this.currentUrlBlocked()){var t=yk.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();if(i===OC?r=t!==e:i===IC?r=t.split("#")[0]!==e.split("#")[0]:i===TC&&(r=n),r){var o=this.mp.track_pageview(KC);o&&(e=t),n&&(this.lastScrollCheckpoint=0,KS.log("Path change: re-initializing scroll depth checkpoints"))}}}.bind(this)),Ai.addEventListener(PS,this.listenerLocationchange)}},oE.prototype.initRageClickTracking=function(){Ai.removeEventListener(IS,this.listenerRageClick);var e=this._getClickTrackingConfig(VC);(e||this.mp.get_config("record_heatmap_data"))&&(KS.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new yC),this.listenerRageClick=function(e){var t=this._getClickTrackingConfig(VC);(t||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,tE))}.bind(this),Ai.addEventListener(IS,this.listenerRageClick))},oE.prototype.initScrollTracking=function(){if(Ai.removeEventListener(LS,this.listenerScroll),Ai.removeEventListener(BS,this.listenerScroll),this.getConfig(YC)){KS.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=function(){if(this.getConfig(YC)&&!this.currentUrlBlocked()){var e=this.getConfig(UC),t=(this.getConfig(zC)||[]).slice().sort(function(e,t){return e-t}),r=Ai.scrollY,n=yk.extend({$scroll_top:r},KC);try{var i=ck.body.scrollHeight,o=Math.round(r/(i-Ai.innerHeight)*100);if(n["$scroll_height"]=i,n["$scroll_percentage"]=o,o>this.lastScrollCheckpoint)for(var s=0;s<t.length;s++){var a=t[s];o>=a&&this.lastScrollCheckpoint<a&&(n["$scroll_checkpoint"]=a,this.lastScrollCheckpoint=a,e=!0)}}catch(xA){KS.critical("Error while calculating scroll percentage",xA)}e&&this.mp.track(rE,n)}}.bind(this),t=gx(e);this.listenerScroll=t.listener,Ai.addEventListener(t.eventType,this.listenerScroll)}},oE.prototype.initSubmitTracking=function(){Ai.removeEventListener(jS,this.listenerSubmit),this.getConfig(JC)&&(KS.log("Initializing submit tracking"),this.listenerSubmit=function(e){this.getConfig(JC)&&this.trackDomEvent(e,nE)}.bind(this),Ai.addEventListener(jS,this.listenerSubmit))},oE.prototype.initPageLeaveTracking=function(){if(ck.removeEventListener(US,this.listenerPageLeaveVisibilitychange),Ai.removeEventListener(PS,this.listenerPageLeaveLocationchange),Ai.removeEventListener(RS,this.listenerPageLoad),this.getConfig(XC)||this.mp.get_config("record_heatmap_data")){KS.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=yk.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=ck.body.scrollHeight}.bind(this),Ai.addEventListener(RS,this.listenerPageLoad),this.listenerPageLeaveLocationchange=kk(function(t){if(!this.currentUrlBlocked()){var r=yk.info.currentUrl(),n=r!==e;n&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(ck.documentElement.clientHeight,Ai.innerHeight||0),this.previousScrollHeight=ck.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),Ai.addEventListener(PS,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(t){ck.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}.bind(this),ck.addEventListener(US,this.listenerPageLeaveVisibilitychange)}},oE.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(Ai.removeEventListener(IS,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},Sk(oE);var sE=function(e,t){return Ai[Mi]&&"function"===typeof Ai[Mi].then||(Ai[Mi]=new Promise(function(r){e(t,r)}).then(function(){var e=Ai[Mi];if(e&&"function"===typeof e.then)return e;throw new Error("targeting failed to load")}).catch(function(e){throw delete Ai[Mi],e})),Ai[Mi]},aE=_k("flags"),cE="flags",uE="context",lE={};lE[uE]={};var hE=function(e,t){return e+":"+t},dE=function(e){return e.split(":")[0]},pE=function(e){this.fetch=Ai["fetch"],this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc,this.loadExtraBundle=e.loadExtraBundle||function(){},this.targetingSrc=e.targetingSrc||""};pE.prototype.init=function(){this.minApisSupported()?(this.flags=null,this.fetchFlags().catch(function(){aE.error("Error fetching flags during init")}),this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={}):aE.critical("Feature Flags unavailable: missing minimum required APIs")},pE.prototype.getFullConfig=function(){var e=this.getMpConfig(cE);return e?yk.isObject(e)?yk.extend({},lE,e):lE:{}},pE.prototype.getConfig=function(e){return this.getFullConfig()[e]},pE.prototype.isSystemEnabled=function(){return!!this.getMpConfig(cE)},pE.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return aE.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(cE);yk.isObject(r)||(r={});var n=t&&t["replace"]?{}:this.getConfig(uE);r[uE]=yk.extend({},n,e);var i={};return i[cE]=r,this.setMpConfig(i),this.fetchFlags().catch(function(){aE.error("Error fetching flags during updateContext")})},pE.prototype.areFlagsReady=function(){return this.isSystemEnabled()||aE.error("Feature Flags not enabled"),!!this.flags},pE.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id"),r=jk();aE.log("Fetching flags for distinct ID: "+e);var n=yk.extend({distinct_id:e,device_id:t},this.getConfig(uE)),i=new URLSearchParams;i.set("context",JSON.stringify(n)),i.set("token",this.getMpConfig("token")),i.set("mp_lib","web"),i.set("$lib_version",Ti.LIB_VERSION);var o=this.getFullApiRoute()+"?"+i.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(Ai,o,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r}}).then(function(e){return this.markFetchComplete(),e.json()}.bind(this)).then(function(e){var t=e["flags"];if(!t)throw new Error("No flags in API response");var n=new Map,i={};yk.each(t,function(e,t){var r=!1,i=t+":";if(yk.each(this.activatedFirstTimeEvents,function(e,t){t.startsWith(i)&&(r=!0)}),r){var o=this.flags&&this.flags.get(t);o&&n.set(t,o)}else n.set(t,{key:e["variant_key"],value:e["variant_value"],experiment_id:e["experiment_id"],is_experiment_active:e["is_experiment_active"],is_qa_tester:e["is_qa_tester"]})},this);var o=e["pending_first_time_events"];o&&o.length>0&&yk.each(o,function(e){var t=e["flag_key"],r=hE(t,e["first_time_event_hash"]);this.activatedFirstTimeEvents[r]||(i[r]={flag_key:t,flag_id:e["flag_id"],project_id:e["project_id"],first_time_event_hash:e["first_time_event_hash"],event_name:e["event_name"],property_filters:e["property_filters"],pending_variant:e["pending_variant"]})},this),this.activatedFirstTimeEvents&&yk.each(this.activatedFirstTimeEvents,function(e,t){var r=dE(t);e&&!n.has(r)&&this.flags&&this.flags.has(r)&&n.set(r,this.flags.get(r))},this),this.flags=n,this.pendingFirstTimeEvents=i,this._traceparent=r,this._loadTargetingIfNeeded()}.bind(this)).catch(function(e){throw this._fetchInProgressStartTime&&this.markFetchComplete(),aE.error(e),e}.bind(this)),this.fetchPromise},pE.prototype.loadFlags=function(){return this.isSystemEnabled()?this.trackedFeatures?this._fetchInProgressStartTime?this.fetchPromise:this.fetchFlags():(aE.error("loadFlags called before init"),Promise.resolve()):Promise.resolve()},pE.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):aE.error("Fetch in progress started time not set, cannot mark fetch complete")},pE.prototype._loadTargetingIfNeeded=function(){var e=!1;yk.each(this.pendingFirstTimeEvents,function(t){t["property_filters"]&&!yk.isEmptyObject(t["property_filters"])&&(e=!0)}),e&&this.getTargeting().then(function(){aE.log("targeting loaded for property filter evaluation")})},pE.prototype.getTargeting=function(){return sE(this.loadExtraBundle.bind(this),this.targetingSrc).catch(function(e){aE.error("Failed to load targeting: "+e)}.bind(this))},pE.prototype.checkFirstTimeEvents=function(e,t){this.pendingFirstTimeEvents&&!yk.isEmptyObject(this.pendingFirstTimeEvents)&&(Ai[Mi]&&yk.isFunction(Ai[Mi].then)?Ai[Mi].then(function(r){this._processFirstTimeEventCheck(e,t,r)}.bind(this)).catch(function(){this._processFirstTimeEventCheck(e,t,null)}.bind(this)):this._processFirstTimeEventCheck(e,t,null))},pE.prototype._processFirstTimeEventCheck=function(e,t,r){yk.each(this.pendingFirstTimeEvents,function(n,i){if(!this.activatedFirstTimeEvents[i]){var o,s=n["flag_key"];if(r||!n["property_filters"]||yk.isEmptyObject(n["property_filters"])){if(r){var a={event_name:n["event_name"],property_filters:n["property_filters"]};o=r["eventMatchesCriteria"](e,t,a)}else o={matches:e===n["event_name"],error:null};if(o.error)aE.error('Error checking first-time event for flag "'+s+'": '+o.error);else if(o.matches){aE.log('First-time event matched for flag "'+s+'": '+e);var c={key:n["pending_variant"]["variant_key"],value:n["pending_variant"]["variant_value"],experiment_id:n["pending_variant"]["experiment_id"],is_experiment_active:n["pending_variant"]["is_experiment_active"]};this.flags.set(s,c),this.activatedFirstTimeEvents[i]=!0,this.recordFirstTimeEvent(n["flag_id"],n["project_id"],n["first_time_event_hash"])}}else aE.warn('Skipping event check for "'+s+'" - property filters require targeting library')}},this)},pE.prototype.getFirstTimeEventApiRoute=function(e){return this.getFullApiRoute()+"/"+e+"/first-time-events"},pE.prototype.recordFirstTimeEvent=function(e,t,r){var n=this.getMpProperty("distinct_id"),i=jk(),o=new URLSearchParams;o.set("mp_lib","web"),o.set("$lib_version",Ti.LIB_VERSION);var s=this.getFirstTimeEventApiRoute(e)+"?"+o.toString(),a={distinct_id:n,project_id:t,first_time_event_hash:r};aE.log("Recording first-time event for flag: "+e),this.fetch.call(Ai,s,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:i},body:JSON.stringify(a)}).catch(function(t){aE.error("Failed to record first-time event for flag "+e+": "+t)})},pE.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then(function(){return this.getVariantSync(e,t)}.bind(this)).catch(function(e){return aE.error(e),t}):new Promise(function(e){aE.critical("Feature Flags not initialized"),e(t)})},pE.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return aE.log("Flags not loaded yet"),t;var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(aE.log('No flag found: "'+e+'"'),t)},pE.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e["value"]}).catch(function(e){return aE.error(e),t})},pE.prototype.getFeatureData=function(e,t){return aE.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,t)},pE.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t})["value"]},pE.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,t)}.bind(this)).catch(function(e){return aE.error(e),t})},pE.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(aE.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},pE.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t["key"],$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};"undefined"!==t["experiment_id"]&&(r["$experiment_id"]=t["experiment_id"]),"undefined"!==t["is_experiment_active"]&&(r["$is_experiment_active"]=t["is_experiment_active"]),"undefined"!==t["is_qa_tester"]&&(r["$is_qa_tester"]=t["is_qa_tester"]),this.track("$experiment_started",r)}},pE.prototype.whenReady=function(){return this.fetchPromise?this.fetchPromise:Promise.resolve()},pE.prototype.minApisSupported=function(){return!!this.fetch&&"undefined"!==typeof Promise&&"undefined"!==typeof Map&&"undefined"!==typeof Set},Sk(pE),pE.prototype["are_flags_ready"]=pE.prototype.areFlagsReady,pE.prototype["get_variant"]=pE.prototype.getVariant,pE.prototype["get_variant_sync"]=pE.prototype.getVariantSync,pE.prototype["get_variant_value"]=pE.prototype.getVariantValue,pE.prototype["get_variant_value_sync"]=pE.prototype.getVariantValueSync,pE.prototype["is_enabled"]=pE.prototype.isEnabled,pE.prototype["is_enabled_sync"]=pE.prototype.isEnabledSync,pE.prototype["load_flags"]=pE.prototype.loadFlags,pE.prototype["update_context"]=pE.prototype.updateContext,pE.prototype["when_ready"]=pE.prototype.whenReady,pE.prototype["get_feature_data"]=pE.prototype.getFeatureData,pE.prototype["getTargeting"]=pE.prototype.getTargeting;var fE=_k("recorder"),mE="mp_iframe_handshake_request",gE="mp_iframe_handshake_response",vE=function(e){this.mixpanelInstance=e.mixpanelInstance,this.getMpConfig=e.getConfigFunc,this.getTabId=e.getTabIdFunc,this.reportError=e.reportErrorFunc,this.getDistinctId=e.getDistinctIdFunc,this.loadExtraBundle=e.loadExtraBundle,this.recorderSrc=e.recorderSrc,this.targetingSrc=e.targetingSrc,this.libBasePath=e.libBasePath,this._recorder=null,this._parentReplayId=null,this._parentFrameRetryInterval=null};vE.prototype.shouldLoadRecorder=function(){if(this.getMpConfig("disable_persistence"))return wk.log("Load recorder check skipped due to disable_persistence config"),G_.resolve(!1);var e=new Qk(Gk),t=this.getTabId();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r<e.length;r++)if(CS(e[r])||e[r]["tabId"]===t)return!0;return!1}).catch(yk.bind(function(e){return this.reportError("Error checking recording registry",e),!1},this))},vE.prototype.checkAndStartSessionRecording=function(e,t){if(!Ai["MutationObserver"])return wk.critical("Browser does not support MutationObserver; skipping session recording"),G_.resolve();var r=yk.bind(function(e){return new G_(yk.bind(function(t){var r=kk(yk.bind(function(){this._recorder=this._recorder||new Ai[Ri](this.mixpanelInstance),this._recorder["resumeRecording"](e),t()},this));if(yk.isUndefined(Ai[Ri])){var n=this.recorderSrc||this.libBasePath+Pi;this.loadExtraBundle(n,r)}else r()},this))},this),n=AS(this.getMpConfig("record_allowed_iframe_origins"),fE),i=n.length>0;if(i&&(this._setupParentFrameListener(n),Ai.parent!==Ai))return this._setupChildFrameListener(n,r),this._sendParentFrameRequestWithRetry(n),G_.resolve();var o=yk.isUndefined(t)?this.getMpConfig("record_sessions_percent"):t,s=o>0&&100*Math.random()<=o;return e||s?r(!0):this.shouldLoadRecorder().then(yk.bind(function(e){return e?r(!1):G_.resolve()},this))},vE.prototype.isRecording=function(){if(!this._recorder||!yk.isFunction(this._recorder["isRecording"]))return!1;try{return this._recorder["isRecording"]()}catch(e){return this.reportError("Error checking if recording is active",e),!1}},vE.prototype.startRecordingOnEvent=function(e,t){var r=this.isRecording(),n=this.getMpConfig("recording_event_triggers");if(!r&&n){var i=n[e];if(i&&"number"===typeof i["percentage"]){var o=i["percentage"],s=i["property_filters"];if(s&&!yk.isEmptyObject(s)){var a=this.targetingSrc||this.libBasePath+Di;sE(this.loadExtraBundle,a).then(function(r){try{var n=r["eventMatchesCriteria"](e,t,{event_name:e,property_filters:s});n["matches"]&&this.checkAndStartSessionRecording(!1,o)}catch(xA){wk.critical("Could not parse recording event trigger properties logic:",xA)}}.bind(this)).catch(function(e){wk.critical("Failed to load targeting library:",e)})}else this.checkAndStartSessionRecording(!1,o)}}},vE.prototype.stopSessionRecording=function(){return this._recorder?this._recorder["stopRecording"]():G_.resolve()},vE.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder["pauseRecording"]():G_.resolve()},vE.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder["resumeRecording"]():G_.resolve()},vE.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig("record_heatmap_data")},vE.prototype.getSessionRecordingProperties=function(){var e={},t=this.getSessionReplayId();return t&&(e["$mp_replay_id"]=t),e},vE.prototype.getSessionReplayUrl=function(){var e=null,t=this.getSessionReplayId();if(t){var r=yk.HTTPBuildQuery({replay_id:t,distinct_id:this.getDistinctId(),token:this.getMpConfig("token")});e="https://mixpanel.com/projects/replay-redirect?"+r}return e},vE.prototype.getSessionReplayId=function(){if(this._parentReplayId)return this._parentReplayId;var e=null;return this._recorder&&(e=this._recorder["replayId"]),e||null},vE.prototype.getRecorder=function(){return this._recorder},vE.prototype._setupChildFrameListener=function(e,t){if(!this._childFrameMessageHandler){var r=this;this._childFrameMessageHandler=function(n){if(-1!==e.indexOf(n.origin)){var i=n.data;i&&i["type"]===gE&&i["token"]===r.getMpConfig("token")&&i["replayId"]&&(r._parentReplayId=i["replayId"],i["distinctId"]&&r.mixpanelInstance["identify"](i["distinctId"]),r._parentFrameRetryActive=!1,Ai.removeEventListener("message",r._childFrameMessageHandler),r._childFrameMessageHandler=null,t(!0))}},Ai.addEventListener("message",this._childFrameMessageHandler)}},vE.prototype._sendParentFrameRequest=function(e){var t={};t["type"]=mE,t["token"]=this.getMpConfig("token");for(var r=0;r<e.length;r++)try{Ai.parent.postMessage(t,e[r])}catch(n){}},vE.prototype._sendParentFrameRequestWithRetry=function(e){var t=this,r=10,n=0,i=50;function o(){setTimeout(function(){!t._parentFrameRetryActive||t._parentReplayId||++n>=r||(t._sendParentFrameRequest(e),i*=2,o())},i)}this._parentFrameRetryActive=!0,this._sendParentFrameRequest(e),o()},vE.prototype._setupParentFrameListener=function(e){if(!this._parentFrameMessageHandler){var t=this;this._parentFrameMessageHandler=function(r){if(-1!==e.indexOf(r.origin)){var n=r.data;if(n&&n["type"]===mE&&n["token"]===t.getMpConfig("token")){var i=t.getSessionReplayId();if(i){var o={};o["type"]=gE,o["token"]=t.getMpConfig("token"),o["replayId"]=i,o["distinctId"]=t.getDistinctId(),r.source.postMessage(o,r.origin)}}}},Ai.addEventListener("message",this._parentFrameMessageHandler)}},Sk(vE);var yE=function(){};yE.prototype.create_properties=function(){},yE.prototype.event_handler=function(){},yE.prototype.after_track_handler=function(){},yE.prototype.init=function(e){return this.mp=e,this},yE.prototype.track=function(e,t,r,n){var i=this,o=yk.dom_query(e);if(0!==o.length)return yk.each(o,function(e){yk.register_event(e,this.override_event,function(e){var o={},s=i.create_properties(r,this),a=i.mp.get_config("track_links_timeout");i.event_handler(e,this,o),window.setTimeout(i.track_callback(n,s,o,!0),a),i.mp.track(t,s,i.track_callback(n,s,o))})},this),!0;wk.error("The DOM query ("+e+") returned 0 elements")},yE.prototype.track_callback=function(e,t,r,n){n=n||!1;var i=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(n,t)||i.after_track_handler(t,r,n))}},yE.prototype.create_properties=function(e,t){var r;return r="function"===typeof e?e(t):yk.extend({},e),r};var wE=function(){this.override_event="click"};yk.inherit(wE,yE),wE.prototype.create_properties=function(e,t){var r=wE.superclass.create_properties.apply(this,arguments);return t.href&&(r["url"]=t.href),r},wE.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},wE.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var bE=function(){this.override_event="submit"};yk.inherit(bE,yE),bE.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},bE.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var _E="$set",kE="$set_once",SE="$unset",xE="$add",CE="$append",EE="$union",AE="$remove",OE="$delete",IE={set_action:function(e,t){var r={},n={};return yk.isObject(e)?yk.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[_E]=n,r},unset_action:function(e){var t={},r=[];return yk.isArray(e)||(e=[e]),yk.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[SE]=r,t},set_once_action:function(e,t){var r={},n={};return yk.isObject(e)?yk.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[kE]=n,r},union_action:function(e,t){var r={},n={};return yk.isObject(e)?yk.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=yk.isArray(e)?e:[e])},this):n[e]=yk.isArray(t)?t:[t],r[EE]=n,r},append_action:function(e,t){var r={},n={};return yk.isObject(e)?yk.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[CE]=n,r},remove_action:function(e,t){var r={},n={};return yk.isObject(e)?yk.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[AE]=n,r},delete_action:function(){var e={};return e[OE]="",e}},TE=function(){};yk.extend(TE.prototype,IE),TE.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},TE.prototype.set=aS(function(e,t,r){var n=this.set_action(e,t);return yk.isObject(e)&&(r=t),this._send_request(n,r)}),TE.prototype.set_once=aS(function(e,t,r){var n=this.set_once_action(e,t);return yk.isObject(e)&&(r=t),this._send_request(n,r)}),TE.prototype.unset=aS(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),TE.prototype.union=aS(function(e,t,r){yk.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),TE.prototype["delete"]=aS(function(e){var t=this.delete_action();return this._send_request(t,e)}),TE.prototype.remove=aS(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),TE.prototype._send_request=function(e,t){e["$group_key"]=this._group_key,e["$group_id"]=this._group_id,e["$token"]=this._get_config("token");var r=yk.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes")["groups"],batcher:this._mixpanel.request_batchers.groups},t)},TE.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},TE.prototype._get_config=function(e){return this._mixpanel.get_config(e)},TE.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},TE.prototype["remove"]=TE.prototype.remove,TE.prototype["set"]=TE.prototype.set,TE.prototype["set_once"]=TE.prototype.set_once,TE.prototype["union"]=TE.prototype.union,TE.prototype["unset"]=TE.prototype.unset,TE.prototype["toString"]=TE.prototype.toString;var ME=function(){};yk.extend(ME.prototype,IE),ME.prototype._init=function(e){this._mixpanel=e},ME.prototype.set=sS(function(e,t,r){var n=this.set_action(e,t);return yk.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel["persistence"].update_referrer_info(document.referrer),n[_E]=yk.extend({},yk.info.people_properties(),n[_E]),this._send_request(n,r)}),ME.prototype.set_once=sS(function(e,t,r){var n=this.set_once_action(e,t);return yk.isObject(e)&&(r=t),this._send_request(n,r)}),ME.prototype.unset=sS(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),ME.prototype.increment=sS(function(e,t,r){var n={},i={};return yk.isObject(e)?(yk.each(e,function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void wk.error("Invalid increment value passed to mixpanel.people.increment - must be a number");i[t]=e}},this),r=t):(yk.isUndefined(t)&&(t=1),i[e]=t),n[xE]=i,this._send_request(n,r)}),ME.prototype.append=sS(function(e,t,r){yk.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),ME.prototype.remove=sS(function(e,t,r){yk.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),ME.prototype.union=sS(function(e,t,r){yk.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),ME.prototype.track_charge=sS(function(){wk.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),ME.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},ME.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}wk.error("mixpanel.people.delete_user() requires you to call identify() first")},ME.prototype.toString=function(){return this._mixpanel.toString()+".people"},ME.prototype._send_request=function(e,t){e["$token"]=this._get_config("token"),e["$distinct_id"]=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e["$device_id"]=r),n&&(e["$user_id"]=n),i&&(e["$had_persisted_distinct_id"]=i);var o=yk.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes")["engage"],batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),yk.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),yk.truncate(o,255))},ME.prototype._get_config=function(e){return this._mixpanel.get_config(e)},ME.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},ME.prototype._enqueue=function(e){_E in e?this._mixpanel["persistence"]._add_to_people_queue(_E,e):kE in e?this._mixpanel["persistence"]._add_to_people_queue(kE,e):SE in e?this._mixpanel["persistence"]._add_to_people_queue(SE,e):xE in e?this._mixpanel["persistence"]._add_to_people_queue(xE,e):CE in e?this._mixpanel["persistence"]._add_to_people_queue(CE,e):AE in e?this._mixpanel["persistence"]._add_to_people_queue(AE,e):EE in e?this._mixpanel["persistence"]._add_to_people_queue(EE,e):wk.error("Invalid call to _enqueue():",e)},ME.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=yk.extend({},this._mixpanel["persistence"].load_queue(e)),s=o;yk.isUndefined(o)||!yk.isObject(o)||yk.isEmptyObject(o)||(i._mixpanel["persistence"]._pop_from_people_queue(e,o),i._mixpanel["persistence"].save(),n&&(s=n(o)),t.call(i,s,function(t,n){0===t&&i._mixpanel["persistence"]._add_to_people_queue(e,o),yk.isUndefined(r)||r(t,n)}))},ME.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(_E,this.set,e),this._flush_one_queue(kE,this.set_once,n),this._flush_one_queue(SE,this.unset,o,function(e){return yk.keys(e)}),this._flush_one_queue(xE,this.increment,t),this._flush_one_queue(EE,this.union,i);var c=this._mixpanel["persistence"].load_queue(CE);if(!yk.isUndefined(c)&&yk.isArray(c)&&c.length)for(var u,l=function(e,t){0===e&&a._mixpanel["persistence"]._add_to_people_queue(CE,u),yk.isUndefined(r)||r(e,t)},h=c.length-1;h>=0;h--)c=this._mixpanel["persistence"].load_queue(CE),u=c.pop(),a._mixpanel["persistence"].save(),yk.isEmptyObject(u)||a.append(u,l);var d=this._mixpanel["persistence"].load_queue(AE);if(!yk.isUndefined(d)&&yk.isArray(d)&&d.length)for(var p,f=function(e,t){0===e&&a._mixpanel["persistence"]._add_to_people_queue(AE,p),yk.isUndefined(s)||s(e,t)},m=d.length-1;m>=0;m--)d=this._mixpanel["persistence"].load_queue(AE),p=d.pop(),a._mixpanel["persistence"].save(),yk.isEmptyObject(p)||a.remove(p,f)},ME.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},ME.prototype["set"]=ME.prototype.set,ME.prototype["set_once"]=ME.prototype.set_once,ME.prototype["unset"]=ME.prototype.unset,ME.prototype["increment"]=ME.prototype.increment,ME.prototype["append"]=ME.prototype.append,ME.prototype["remove"]=ME.prototype.remove,ME.prototype["union"]=ME.prototype.union,ME.prototype["track_charge"]=ME.prototype.track_charge,ME.prototype["clear_charges"]=ME.prototype.clear_charges,ME.prototype["delete_user"]=ME.prototype.delete_user,ME.prototype["toString"]=ME.prototype.toString;var RE,PE="__mps",DE="__mpso",LE="__mpus",BE="__mpa",NE="__mpap",jE="__mpr",FE="__mpu",UE="$people_distinct_id",zE="__alias",qE="__timers",HE=[PE,DE,LE,BE,NE,jE,FE,UE,zE,qE],$E=function(e){this["props"]={},this.campaign_params_saved=!1,e["persistence_name"]?this.name="mp_"+e["persistence_name"]:this.name="mp_"+e["token"]+"_mixpanel";var t=e["persistence"];"cookie"!==t&&"localStorage"!==t&&(wk.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e["persistence"]="cookie"),"localStorage"===t&&yk.localStorage.is_supported()?this.storage=yk.localStorage:this.storage=yk.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};$E.prototype.properties=function(){var e={};return this.load(),yk.each(this["props"],function(t,r){yk.include(HE,r)||(e[r]=t)}),e},$E.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this["props"]=yk.extend({},e))}},$E.prototype.upgrade=function(){var e,t;this.storage===yk.localStorage?(e=yk.cookie.parse(this.name),yk.cookie.remove(this.name),yk.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===yk.cookie&&(t=yk.localStorage.parse(this.name),yk.localStorage.remove(this.name),t&&this.register_once(t))},$E.prototype.save=function(){this.disabled||this.storage.set(this.name,Wk(this["props"]),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},$E.prototype.load_prop=function(e){return this.load(),this["props"][e]},$E.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},$E.prototype.clear=function(){this.remove(),this["props"]={}},$E.prototype.register_once=function(e,t,r){return!!yk.isObject(e)&&("undefined"===typeof t&&(t="None"),this.expire_days="undefined"===typeof r?this.default_expiry:r,this.load(),yk.each(e,function(e,r){this["props"].hasOwnProperty(r)&&this["props"][r]!==t||(this["props"][r]=e)},this),this.save(),!0)},$E.prototype.register=function(e,t){return!!yk.isObject(e)&&(this.expire_days="undefined"===typeof t?this.default_expiry:t,this.load(),yk.extend(this["props"],e),this.save(),!0)},$E.prototype.unregister=function(e){this.load(),e in this["props"]&&(delete this["props"][e],this.save())},$E.prototype.update_search_keyword=function(e){this.register(yk.info.searchInfo(e))},$E.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:yk.info.referringDomain(e)||"$direct"},"")},$E.prototype.get_referrer_info=function(){return yk.strip_empty_properties({$initial_referrer:this["props"]["$initial_referrer"],$initial_referring_domain:this["props"]["$initial_referring_domain"]})},$E.prototype.update_config=function(e){this.default_expiry=this.expire_days=e["cookie_expiration"],this.set_disabled(e["disable_persistence"]),this.set_cookie_domain(e["cookie_domain"]),this.set_cross_site(e["cross_site_cookie"]),this.set_cross_subdomain(e["cross_subdomain_cookie"]),this.set_secure(e["secure_cookie"])},$E.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},$E.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},$E.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},$E.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},$E.prototype.get_cross_subdomain=function(){return this.cross_subdomain},$E.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},$E.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(_E),o=this._get_or_create_queue(kE),s=this._get_or_create_queue(SE),a=this._get_or_create_queue(xE),c=this._get_or_create_queue(EE),u=this._get_or_create_queue(AE,[]),l=this._get_or_create_queue(CE,[]);r===PE?(yk.extend(i,n),this._pop_from_people_queue(xE,n),this._pop_from_people_queue(EE,n),this._pop_from_people_queue(SE,n)):r===DE?(yk.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(SE,n)):r===LE?yk.each(n,function(e){yk.each([i,o,a,c],function(t){e in t&&delete t[e]}),yk.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===BE?(yk.each(n,function(e,t){t in i?i[t]+=e:(t in a||(a[t]=0),a[t]+=e)},this),this._pop_from_people_queue(SE,n)):r===FE?(yk.each(n,function(e,t){yk.isArray(e)&&(t in c||(c[t]=[]),yk.each(e,function(e){yk.include(c[t],e)||c[t].push(e)}))}),this._pop_from_people_queue(SE,n)):r===jE?(u.push(n),this._pop_from_people_queue(CE,n)):r===NE&&(l.push(n),this._pop_from_people_queue(SE,n)),wk.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),wk.log(t),this.save()},$E.prototype._pop_from_people_queue=function(e,t){var r=this["props"][this._get_queue_key(e)];yk.isUndefined(r)||yk.each(t,function(t,n){e===CE||e===AE?yk.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},$E.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},$E.prototype._get_queue_key=function(e){return e===_E?PE:e===kE?DE:e===SE?LE:e===xE?BE:e===CE?NE:e===AE?jE:e===EE?FE:void wk.error("Invalid queue:",e)},$E.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=yk.isUndefined(t)?{}:t,this["props"][r]||(this["props"][r]=t)},$E.prototype.set_event_timer=function(e,t){var r=this.load_prop(qE)||{};r[e]=t,this["props"][qE]=r,this.save()},$E.prototype.remove_event_timer=function(e){var t=this.load_prop(qE)||{},r=t[e];return yk.isUndefined(r)||(delete this["props"][qE][e],this.save()),r};var WE,VE=function(e,t){throw new Error(e+" not available in this build.")},YE=0,XE=1,JE="mixpanel",GE="base64",KE="json",ZE="$device:",QE="strict",eA="fallback",tA="disabled",rA=Ai.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,nA=!rA&&-1===hk.indexOf("MSIE")&&-1===hk.indexOf("Mozilla"),iA=null;ak["sendBeacon"]&&(iA=function(){return ak["sendBeacon"].apply(ak,arguments)});var oA={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},sA={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:oA,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:GE,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Hk,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Hk,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_allowed_iframe_origins:[],record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,recording_event_triggers:{},record_idle_timeout_ms:18e5,record_mask_inputs:!0,record_max_ms:Z_,record_min_ms:0,record_network:!1,record_network_options:{},record_sessions_percent:0,recorder_src:null,targeting_src:null,lib_base_path:"https://cdn.mxpnl.com/libs/",remote_settings_mode:tA},aA=!1,cA=function(){},uA=function(e,t,r){var n,i=r===JE?WE:WE[r];if(i&&RE===YE)n=i;else{if(i&&!yk.isArray(i))return void wk.error("You have already initialized "+r);n=new cA}if(n._cached_groups={},n._init(e,t,r),n["people"]=new ME,n["people"]._init(n),!n.get_config("skip_first_touch_marketing")){var o=yk.info.campaignParams(null),s={},a=!1;yk.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&n["people"].set_once(s)}Ti.DEBUG=Ti.DEBUG||n.get_config("debug");var c=RE===YE?"module":"snippet";return Ai.dispatchEvent(new Ai.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:n,source:c,token:e,name:r,info:yk.info}})),!yk.isUndefined(i)&&yk.isArray(i)&&(n._execute_array.call(n["people"],i["people"]),n._execute_array(i)),n};cA.prototype.init=function(e,t,r){if(yk.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==JE){var n=uA(e,t,r);return WE[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},cA.prototype._init=function(e,t,r){t=t||{},this["__loaded"]=!0,this["config"]={};var n={};if(!("api_payload_format"in t)){var i=t["api_host"]||sA["api_host"];i.match(/\.mixpanel\.com/)&&(n["api_payload_format"]=KE)}if(this.hooks={},this.set_config(yk.extend({},sA,n,t,{name:r,token:e,callback_fn:(r===JE?r:JE+"."+r)+"._jsc"})),this.recorderManager=new vE({mixpanelInstance:this,getConfigFunc:yk.bind(this.get_config,this),setConfigFunc:yk.bind(this.set_config,this),getTabIdFunc:yk.bind(this.get_tab_id,this),reportErrorFunc:yk.bind(this.report_error,this),getDistinctIdFunc:yk.bind(this.get_distinct_id,this),recorderSrc:this.get_config("recorder_src"),targetingSrc:this.get_config("targeting_src"),libBasePath:this.get_config("lib_base_path"),loadExtraBundle:VE}),this["_jsc"]=Hk,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(yk.localStorage.is_supported(!0)&&rA){if(this.init_batchers(),iA&&Ai.addEventListener){var o=yk.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);Ai.addEventListener("pagehide",function(e){e["persisted"]&&o()}),Ai.addEventListener("visibilitychange",function(){"hidden"===ck["visibilityState"]&&o()})}}else this._batch_requests=!1,wk.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),yk.each(this.get_batcher_configs(),function(e){wk.log("Clearing batch queue "+e.queue_key),yk.localStorage.remove(e.queue_key)});this["persistence"]=this["cookie"]=new $E(this["config"]),this.unpersisted_superprops={},this._gdpr_init();var s=yk.UUID();this.get_distinct_id()||this.register_once({distinct_id:ZE+s,$device_id:s},""),this.flags=new pE({getFullApiRoute:yk.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes")["flags"]},this),getConfigFunc:yk.bind(this.get_config,this),setConfigFunc:yk.bind(this.set_config,this),getPropertyFunc:yk.bind(this.get_property,this),trackingFunc:yk.bind(this.track,this),loadExtraBundle:VE,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+Di}),this.flags.init(),this["flags"]=this.flags,this.autocapture=new oE(this),this.autocapture.init(),this._init_tab_id();var a=this.get_config("remote_settings_mode");this.__session_recording_init_promise=a===QE||a===eA?this._fetch_remote_settings(a).then(yk.bind(function(){return this._check_and_start_session_recording()},this)):this._check_and_start_session_recording()},cA.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))wk.log("Tab ID initialization skipped due to disable_persistence config");else if(yk.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,r="mp_gen_new_tab_id_"+e;!yk.sessionStorage.get(r)&&yk.sessionStorage.get(t)||yk.sessionStorage.set(t,"$tab-"+yk.UUID()),yk.sessionStorage.set(r,"1"),this.tab_id=yk.sessionStorage.get(t),Ai.addEventListener("beforeunload",function(){yk.sessionStorage.remove(r)})}catch(xA){this.report_error("Error initializing tab id",xA)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},cA.prototype.get_tab_id=function(){return this.tab_id||null},cA.prototype._check_and_start_session_recording=oS(function(e){return this.recorderManager.checkAndStartSessionRecording(e)}),cA.prototype._start_recording_on_event=function(e,t){return this.recorderManager.startRecordingOnEvent(e,t)},cA.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)},cA.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()},cA.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()},cA.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()},cA.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()},cA.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()},cA.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()},cA.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()},cA.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise},cA.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this["people"].set_once(this["persistence"].get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=yk.info.campaignParams(null);yk.each(e,function(e,t){this.unregister(t)}.bind(this))}},cA.prototype._set_default_superprops=function(){this["persistence"].update_search_keyword(ck.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(yk.info.campaignParams()),this.get_config("save_referrer")&&this["persistence"].update_referrer_info(ck.referrer)},cA.prototype._dom_loaded=function(){yk.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||yk.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},cA.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!aA)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},cA.prototype._prepare_callback=function(e,t){if(yk.isUndefined(e))return null;if(rA){var r=function(r){e(r,t)};return r}var n=this["_jsc"],i=""+Math.floor(1e8*Math.random()),o=this.get_config("callback_fn")+"["+i+"]";return n[i]=function(r){delete n[i],e(r,t)},o},cA.prototype._send_request=function(e,t,r,n){var i=!0;if(nA)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;n||!yk.isFunction(r)&&"string"!==typeof r||(n=r,r=null),r=yk.extend(o,r||{}),rA||(r.method="GET");var a="POST"===r.method,c=iA&&a&&"sendbeacon"===r.transport.toLowerCase(),u=r.verbose;t["verbose"]&&(u=!0),this.get_config("test")&&(t["test"]=1),u&&(t["verbose"]=1),this.get_config("img")&&(t["img"]=1),rA||(n?t["callback"]=n:(u||this.get_config("test"))&&(t["callback"]="(function(){})")),t["ip"]=this.get_config("ip")?1:0,t["_"]=(new Date).getTime().toString(),a&&(s="data="+encodeURIComponent(t["data"]),delete t["data"]),yk.extend(t,this.get_config("api_extra_query_params")),e+="?"+yk.HTTPBuildQuery(t);var l=this;if("img"in t){var h=ck.createElement("img");h.src=e,ck.body.appendChild(h)}else if(c){try{i=iA(e,s)}catch(v){l.report_error(v),i=!1}try{n&&n(i?1:0)}catch(v){l.report_error(v)}}else if(rA)try{var d=new XMLHttpRequest;d.open(r.method,e,!0);var p=this.get_config("xhr_headers");if(a&&(p["Content-Type"]="application/x-www-form-urlencoded"),yk.each(p,function(e,t){d.setRequestHeader(t,e)}),r.timeout_ms&&"undefined"!==typeof d.timeout){d.timeout=r.timeout_ms;var f=(new Date).getTime()}d.withCredentials=!0,d.onreadystatechange=function(){var e;if(4===d.readyState)if(200===d.status){if(n)if(u){var t;try{t=yk.JSONDecode(d.responseText)}catch(v){if(l.report_error(v),!r.ignore_json_errors)return;t=d.responseText}n(t)}else n(Number(d.responseText))}else if(e=d.timeout&&!d.status&&(new Date).getTime()-f>=d.timeout?"timeout":"Bad HTTP status: "+d.status+" "+d.statusText,l.report_error(e),n)if(u){var i=d["responseHeaders"]||{};n({status:0,httpStatusCode:d["status"],error:e,retryAfter:i["Retry-After"]})}else n(0)},d.send(s)}catch(v){l.report_error(v),i=!1}else{var m=ck.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e;var g=ck.getElementsByTagName("script")[0];g.parentNode.insertBefore(m,g)}return i},cA.prototype._fetch_remote_settings=function(e){var t=this,r=function(){"strict"===e&&t.set_config({record_sessions_percent:0})};if(!Ai["AbortController"])return wk.critical("Remote settings unavailable: missing minimum required APIs"),r(),Promise.resolve();var n=this.get_api_host("settings")+"/"+this.get_config("api_routes")["settings"],i={$lib_version:Ti.LIB_VERSION,mp_lib:"web",sdk_config:"1"},o=yk.HTTPBuildQuery(i),s=n+"?"+o,a=new AbortController,c=setTimeout(function(){a.abort()},500),u={method:"GET",headers:{Authorization:"Basic "+btoa(t.get_config("token")+":")},signal:a.signal};return Ai["fetch"](s,u).then(function(e){return clearTimeout(c),e["ok"]?e.json():(wk.critical("Network response was not ok"),void r())}).then(function(e){if(e&&e["sdk_config"]&&e["sdk_config"]["config"]){var n=e["sdk_config"]["config"],i={};yk.each(n,function(e,t){sA.hasOwnProperty(t)&&(i[t]=e)}),yk.isEmptyObject(i)?(wk.critical("No valid config keys found in remote settings."),r()):t.set_config(i)}else r()}).catch(function(e){clearTimeout(c),wk.critical("Failed to fetch remote settings",e),r()})},cA.prototype._execute_array=function(e){var t,r=[],n=[],i=[];yk.each(e,function(e){e&&(t=e[0],yk.isArray(t)?i.push(e):"function"===typeof e?e.call(this):yk.isArray(e)&&"alias"===t?r.push(e):yk.isArray(e)&&-1!==t.indexOf("track")&&"function"===typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){yk.each(e,function(e){if(yk.isArray(e[0])){var r=t;yk.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};o(r,this),o(n,this),o(i,this)},cA.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},cA.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},cA.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=yk.bind(function(e){return new xS(e.queue_key,{libConfig:this["config"],errorReporter:this.get_config("error_reporter"),sendRequestFunc:yk.bind(function(t,r,n){var i=this.get_config("api_routes");this._send_request(this.get_api_host(e.api_name)+"/"+i[e.api_name],this._encode_data_for_request(t),r,this._prepare_callback(n,t))},this),beforeSendHook:yk.bind(function(t){var r=this._run_hook("before_send_"+e.type,t);return r?r[0]:null},this),stopAllBatchingFunc:yk.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},cA.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,yk.each(this.request_batchers,function(e){e.start()}))},cA.prototype.stop_batch_senders=function(){this._batch_requests=!1,yk.each(this.request_batchers,function(e){e.stop(),e.clear()})},cA.prototype.push=function(e){this._execute_array([e])},cA.prototype.enable=function(e){var t,r,n,i;if("undefined"===typeof e)this._flags.disable_all_events=!1;else{for(t={},r=[],n=0;n<e.length;n++)t[e[n]]=!0;for(i=0;i<this.__disabled_events.length;i++)t[this.__disabled_events[i]]||r.push(this.__disabled_events[i]);this.__disabled_events=r}},cA.prototype.disable=function(e){"undefined"===typeof e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},cA.prototype._encode_data_for_request=function(e){var t=Wk(e);return this.get_config("api_payload_format")===GE&&(t=yk.base64Encode(t)),{data:t}},cA.prototype._track_or_batch=function(e,t){var r=yk.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||Hk;var a=!0,c=yk.bind(function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r),r&&(r=r[0])),r?(wk.log("MIXPANEL REQUEST:"),wk.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!o?i.enqueue(r).then(function(e){e?t(1,r):c()}):a=c(),a&&r},cA.prototype.track=oS(function(e,t,r,n){var i;if(!r||!r.skip_hooks){if(i=this._run_hook("before_track",e,t),null===i)return;e=i[0],t=i[1]}n||"function"!==typeof r||(n=r,r=null),r=r||{};var o=r["transport"];o&&(r.transport=o);var s=r["send_immediately"];if("function"!==typeof n&&(n=Hk),yk.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){t=yk.extend({},t),t["token"]=this.get_config("token");var a=this["persistence"].remove_event_timer(e);if(!yk.isUndefined(a)){var c=(new Date).getTime()-a;t["$duration"]=parseFloat((c/1e3).toFixed(3))}this._set_default_superprops();var u=this.get_config("track_marketing")?yk.info.marketingParams():{};t=yk.extend({},yk.info.properties({mp_loader:this.get_config("mp_loader")}),u,this["persistence"].properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var l=this.get_config("property_blacklist");yk.isArray(l)?yk.each(l,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+l),this._start_recording_on_event(e,t);var h={event:e,properties:t};return i=this._track_or_batch({type:"events",data:h,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes")["track"],batcher:this.request_batchers.events,should_send_immediately:s,send_request_options:r},n),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(e,t),i}n(0)}}),cA.prototype.set_group=oS(function(e,t,r){yk.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this["people"].set(e,t,r)}),cA.prototype.add_group=oS(function(e,t,r){var n=this.get_property(e),i={};return void 0===n?(i[e]=[t],this.register(i)):-1===n.indexOf(t)&&(n.push(t),i[e]=n,this.register(i)),this["people"].union(e,t,r)}),cA.prototype.remove_group=oS(function(e,t,r){var n=this.get_property(e);if(void 0!==n){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this["people"].remove(e,t,r)}),cA.prototype.track_with_groups=oS(function(e,t,r,n){var i=yk.extend({},t||{});return yk.each(r,function(e,t){null!==e&&void 0!==e&&(i[t]=e)}),this.track(e,i,n)}),cA.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},cA.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},cA.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return void 0!==n&&n._group_key===e&&n._group_id===t||(n=new TE,n._init(this,e,t),this._cached_groups[r]=n),n},cA.prototype.track_pageview=oS(function(e,t){"object"!==typeof e&&(e={}),t=t||{};var r=t["event_name"]||"$mp_web_page_view",n=yk.extend(yk.info.mpPageViewProperties(),yk.info.campaignParams(),yk.info.clickParams()),i=yk.extend({},n,e);return this.track(r,i)}),cA.prototype.track_links=function(){return this._track_dom.call(this,wE,arguments)},cA.prototype.track_forms=function(){return this._track_dom.call(this,bE,arguments)},cA.prototype.time_event=function(e){yk.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this["persistence"].set_event_timer(e,(new Date).getTime())};var lA={persistent:!0},hA=function(e){var t;return t=yk.isObject(e)?e:yk.isUndefined(e)?{}:{days:e},yk.extend({},lA,t)};cA.prototype.register=function(e,t){var r=this._run_hook("before_register",e,t);if(null!==r){e=r[0],t=r[1];var n=hA(t);n["persistent"]?this["persistence"].register(e,n["days"]):yk.extend(this.unpersisted_superprops,e)}},cA.prototype.register_once=function(e,t,r){var n=this._run_hook("before_register_once",e,t,r);if(null!==n){e=n[0],t=n[1],r=n[2];var i=hA(r);i["persistent"]?this["persistence"].register_once(e,t,i["days"]):("undefined"===typeof t&&(t="None"),yk.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))}},cA.prototype.unregister=function(e,t){var r=this._run_hook("before_unregister",e,t);null!==r&&(e=r[0],t=r[1],t=hA(t),t["persistent"]?this["persistence"].unregister(e):delete this.unpersisted_superprops[e])},cA.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},cA.prototype.identify=function(e,t,r,n,i,o,s,a){var c=this._run_hook("before_identify",e);if(null===c)return-1;e=c[0];var u=this.get_distinct_id();if(e&&u!==e){if("string"===typeof e&&0===e.indexOf(ZE))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var l=u;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}e!==u&&e!==this.get_property(zE)&&(this.unregister(zE),this.register({distinct_id:e})),this._flags.identify_called=!0,this["people"]._flush(t,r,n,i,o,s,a),e!==u&&this.track("$identify",{distinct_id:e,$anon_distinct_id:u},{skip_hooks:!0}),e!==u&&this.flags.fetchFlags().catch(function(){wk.error("[flags] Error fetching flags during identify")})},cA.prototype.reset=function(){this.stop_session_recording(),this["persistence"].clear(),this._flags.identify_called=!1;var e=yk.UUID();this.register_once({distinct_id:ZE+e,$device_id:e},""),this._check_and_start_session_recording()},cA.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},cA.prototype.alias=function(e,t){if(e===this.get_property(UE))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return yk.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(zE,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},cA.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},cA.prototype.set_config=function(e){if(yk.isObject(e)){yk.extend(this["config"],e);var t=e["batch_size"];t&&yk.each(this.request_batchers,function(e){e.resetBatchSize()}),this.get_config("persistence_name")||(this["config"]["persistence_name"]=this["config"]["cookie_name"]),this.get_config("disable_persistence")||(this["config"]["disable_persistence"]=this["config"]["disable_cookie"]),this["persistence"]&&this["persistence"].update_config(this["config"]),Ti.DEBUG=Ti.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),yk.isObject(e["hooks"])&&(this.hooks={},yk.each(e["hooks"],function(e,t){if(yk.isFunction(e))this.hooks[t]=[e];else if(yk.isArray(e)){this.hooks[t]=[];for(var r=0;r<e.length;r++)yk.isFunction(e[r])||wk.critical("Invalid hook added. Hook is not a function"),this.hooks[t].push(e[r])}else wk.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this))}},cA.prototype.get_config=function(e){return this["config"][e]},cA.prototype._run_hook=function(e){var t=nk.call(arguments,1);return yk.each(this.hooks[e],function(r){if(null===t)return null;var n=r.apply(this,t);"undefined"===typeof n?(this.report_error(e+" hook did not return a valid value"),t=null):(yk.isArray(n)||(n=[n]),t.splice.apply(t,[0,n.length].concat(n)))},this),t},cA.prototype.get_property=function(e){return this["persistence"].load_prop([e])},cA.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},cA.prototype.toString=function(){var e=this.get_config("name");return e!==JE&&(e=JE+"."+e),e},cA.prototype._event_is_disabled=function(e){return yk.isBlockedUA(hk)||this._flags.disable_all_events||yk.include(this.__disabled_events,e)},cA.prototype._gdpr_init=function(){var e="localStorage"===this.get_config("opt_out_tracking_persistence_type");e&&yk.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!yk.cookie.get("mp_optout")||(yk.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},cA.prototype._gdpr_update_persistence=function(e){var t;if(e&&e["clear_persistence"])t=!0;else{if(!e||!e["enable_persistence"])return;t=!1}this.get_config("disable_persistence")||this["persistence"].disabled===t||this["persistence"].set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},cA.prototype._gdpr_call_func=function(e,t){return t=yk.extend({track:yk.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),yk.localStorage.is_supported()||(t["persistence_type"]="cookie"),e(this.get_config("token"),{track:t["track"],trackEventName:t["track_event_name"],trackProperties:t["track_properties"],persistenceType:t["persistence_type"],persistencePrefix:t["cookie_prefix"],cookieDomain:t["cookie_domain"],cookieExpiration:t["cookie_expiration"],crossSiteCookie:t["cross_site_cookie"],crossSubdomainCookie:t["cross_subdomain_cookie"],secureCookie:t["secure_cookie"],ignoreDnt:t["ignore_dnt"]})},cA.prototype.opt_in_tracking=function(e){e=yk.extend({enable_persistence:!0},e),this._gdpr_call_func(tS,e),this._gdpr_update_persistence(e)},cA.prototype.opt_out_tracking=function(e){e=yk.extend({clear_persistence:!0,delete_user:!0},e),e["delete_user"]&&this["people"]&&this["people"]._identify_called()&&(this["people"].delete_user(),this["people"].clear_charges()),this._gdpr_call_func(rS,e),this._gdpr_update_persistence(e)},cA.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(nS,e)},cA.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(iS,e)},cA.prototype.clear_opt_in_out_tracking=function(e){e=yk.extend({enable_persistence:!0},e),this._gdpr_call_func(cS,e),this._gdpr_update_persistence(e)},cA.prototype.report_error=function(e,t){wk.error.apply(wk.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){wk.error(t)}},cA.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)},cA.prototype.remove_hook=function(e,t){var r;this.hooks[e]&&(r=this.hooks[e].indexOf(t),-1!==r?this.hooks[e].splice(r,1):wk.log("remove_hook failed. Matching hook was not found"))},cA.prototype["init"]=cA.prototype.init,cA.prototype["reset"]=cA.prototype.reset,cA.prototype["enable"]=cA.prototype.enable,cA.prototype["disable"]=cA.prototype.disable,cA.prototype["time_event"]=cA.prototype.time_event,cA.prototype["track"]=cA.prototype.track,cA.prototype["track_links"]=cA.prototype.track_links,cA.prototype["track_forms"]=cA.prototype.track_forms,cA.prototype["track_pageview"]=cA.prototype.track_pageview,cA.prototype["register"]=cA.prototype.register,cA.prototype["register_once"]=cA.prototype.register_once,cA.prototype["unregister"]=cA.prototype.unregister,cA.prototype["identify"]=cA.prototype.identify,cA.prototype["alias"]=cA.prototype.alias,cA.prototype["name_tag"]=cA.prototype.name_tag,cA.prototype["set_config"]=cA.prototype.set_config,cA.prototype["get_config"]=cA.prototype.get_config,cA.prototype["get_api_host"]=cA.prototype.get_api_host,cA.prototype["get_property"]=cA.prototype.get_property,cA.prototype["get_distinct_id"]=cA.prototype.get_distinct_id,cA.prototype["toString"]=cA.prototype.toString,cA.prototype["opt_out_tracking"]=cA.prototype.opt_out_tracking,cA.prototype["opt_in_tracking"]=cA.prototype.opt_in_tracking,cA.prototype["has_opted_out_tracking"]=cA.prototype.has_opted_out_tracking,cA.prototype["has_opted_in_tracking"]=cA.prototype.has_opted_in_tracking,cA.prototype["clear_opt_in_out_tracking"]=cA.prototype.clear_opt_in_out_tracking,cA.prototype["get_group"]=cA.prototype.get_group,cA.prototype["set_group"]=cA.prototype.set_group,cA.prototype["add_group"]=cA.prototype.add_group,cA.prototype["remove_group"]=cA.prototype.remove_group,cA.prototype["add_hook"]=cA.prototype.add_hook,cA.prototype["remove_hook"]=cA.prototype.remove_hook,cA.prototype["track_with_groups"]=cA.prototype.track_with_groups,cA.prototype["start_batch_senders"]=cA.prototype.start_batch_senders,cA.prototype["stop_batch_senders"]=cA.prototype.stop_batch_senders,cA.prototype["start_session_recording"]=cA.prototype.start_session_recording,cA.prototype["stop_session_recording"]=cA.prototype.stop_session_recording,cA.prototype["pause_session_recording"]=cA.prototype.pause_session_recording,cA.prototype["resume_session_recording"]=cA.prototype.resume_session_recording,cA.prototype["get_session_recording_properties"]=cA.prototype.get_session_recording_properties,cA.prototype["get_session_replay_url"]=cA.prototype.get_session_replay_url,cA.prototype["get_tab_id"]=cA.prototype.get_tab_id,cA.prototype["DEFAULT_API_ROUTES"]=oA,cA.prototype["__get_recorder"]=cA.prototype.__get_recorder,cA.prototype["__get_recording_init_promise"]=cA.prototype.__get_recording_init_promise,$E.prototype["properties"]=$E.prototype.properties,$E.prototype["update_search_keyword"]=$E.prototype.update_search_keyword,$E.prototype["update_referrer_info"]=$E.prototype.update_referrer_info,$E.prototype["get_cross_subdomain"]=$E.prototype.get_cross_subdomain,$E.prototype["clear"]=$E.prototype.clear;var dA={},pA=function(){yk.each(dA,function(e,t){t!==JE&&(WE[t]=e)}),WE["_"]=yk},fA=function(){WE["init"]=function(e,t,r){if(r)return WE[r]||(WE[r]=dA[r]=uA(e,t,r),WE[r]._loaded()),WE[r];var n=WE;dA[JE]?n=dA[JE]:e&&(n=uA(e,t,JE),n._loaded(),dA[JE]=n),WE=n,RE===XE&&(Ai[JE]=WE),pA()}},mA=function(){function e(){e.done||(e.done=!0,aA=!0,nA=!1,yk.each(dA,function(e){e._dom_loaded()}))}function t(){try{ck.documentElement.doScroll("left")}catch(r){return void setTimeout(t,1)}e()}if(ck.addEventListener)"complete"===ck.readyState?e():ck.addEventListener("DOMContentLoaded",e,!1);else if(ck.attachEvent){ck.attachEvent("onreadystatechange",e);var r=!1;try{r=null===Ai.frameElement}catch(n){}ck.documentElement.doScroll&&r&&t()}yk.register_event(Ai,"load",e,!0)};function gA(e){return VE=e,RE=YE,WE=new cA,fA(),WE["init"](),mA(),WE}function vA(e,t){t()}var yA=gA(vA);const wA="@mixpanelIdentificationData",bA=e=>{let t={};return e?.name?(t["$name"]=e?.name,delete e.name):(t["$first_name"]=e?.first_name,t["$last_name"]=e?.last_name,delete e?.first_name,delete e?.last_name),e?.email&&(t["$email"]=e?.email,delete e?.email),e?.phone&&(t["$phone"]=e?.phone,delete e?.phone),t=Object.assign({},t,e),t},_A={setMixpanelIdentificationData:e=>{(0,h.setLocalStorageItem)(wA,e)},getMixpanelIdentificationData:()=>(0,h.getLocalStorageItem)(wA),hasMixpanelIdentificationData:()=>!!_A.getMixpanelIdentificationData(),init:(e,t)=>{yA.init(e,Object.assign({},t,{ignore_dnt:!0}))},initIdentify:(e,t,r,n)=>{const i=r||_A.getMixpanelIdentificationData(),o=bA(i);if("production"===e&&o){_A.init(t,n);const e=window.location.hostname;let r=`${e}`;o?.company&&(r+=`.${o?.company?.name}`),o?.employee_code&&(r+=`.${o?.employee_code}`),(o?.name||o?.first_name&&o?.last_name)&&(r+=o?.name?`.${o.name}`:`.${o?.first_name}.${o?.last_name}`),yA.identify(r),yA.people.set({...o,company_domain:e})}},trackEvent:(e,t,r)=>{"production"===e&&yA.track(t,r)}};var kA=_A,SA={}}(),__webpack_exports__}()});
|