/*! For license information please see common-98278153d5a862c6d369.js.LICENSE.txt */
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4e553aaa-71f1-40e2-a034-243acca39ae5",e._sentryDebugIdIdentifier="sentry-dbid-4e553aaa-71f1-40e2-a034-243acca39ae5")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1af6106dcda49101605bfe83451457c726f76a7c"},(()=>{var e,t,n={21001:()=>{window.addEventListener("appinstalled",(()=>{dataLayer.push({event:"shortcut_create"})}))},7850:()=>{"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw-cache-lalal.js")},55289:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(31601),o=n.n(r),i=n(76314),a=n.n(i)()(o());a.push([e.id,".JKDZS4U_{background-color:var(--color-white);box-shadow:0 10px 20px #0000000d;height:64px;left:50%;max-width:608px;opacity:0;padding:16px;position:fixed;top:0;transition:opacity .2s,visibility .2s,transform .2s;visibility:hidden;width:100%}@media screen and (max-width:600px){.JKDZS4U_{padding:8px}}.JKDZS4U_.f0m78Olp{opacity:1;visibility:visible}.T8PHB91S{align-items:flex-start;display:flex;flex:1 1 auto;flex-basis:70%;flex-direction:column;overflow:auto;padding:0 12px;scrollbar-color:var(--color-black-15) var(--color-white);scrollbar-width:thin}@media screen and (max-width:600px){.T8PHB91S{padding:0 8px}}.T8PHB91S::-webkit-scrollbar{background-color:var(--color-white);width:5px}.T8PHB91S::-webkit-scrollbar-thumb{background-color:var(--color-black-15);border-radius:20px}.NO2cGe_S{font-size:12px;line-height:17px}.jnvq33df{font-size:12px;font-weight:100;max-height:36px;overflow-wrap:break-word}.N0w3aghb{align-items:center;background-color:initial;border:none;cursor:pointer;display:flex;height:24px;justify-content:center;margin-left:10px;position:relative;width:24px}.N0w3aghb>i{background-color:var(--color-black-40);height:1px;position:absolute;transition:background-color .1s;width:20px}.N0w3aghb>i:first-child{transform:rotate(45deg)}.N0w3aghb>i:last-child{transform:rotate(-45deg)}.N0w3aghb:hover>i{background-color:var(--color-black-90)}.ftMTJpRR{background-color:var(--color-yellow-100);bottom:0;display:block;height:2px;left:0;position:absolute;transform:scaleX(0);transform-origin:left;transition:transform 2.9s linear;width:100%}.nJqP23JG>.ftMTJpRR{transform:scaleX(1)}",""]),a.locals={notify:"JKDZS4U_",show:"f0m78Olp",message:"T8PHB91S",title:"NO2cGe_S",description:"jnvq33df",close:"N0w3aghb",line:"ftMTJpRR",showLine:"nJqP23JG"};const s=a},45769:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(31601),o=n.n(r),i=n(76314),a=n.n(i)()(o());a.push([e.id,".eVPjpKMo{height:0;position:fixed;width:0;z-index:var(--z-index-toast)}",""]),a.locals={root:"eVPjpKMo"};const s=a},55592:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(31601),o=n.n(r),i=n(76314),a=n.n(i)()(o());a.push([e.id,".GHBoZZ20{margin:0;object-fit:cover;overflow:hidden;padding:0}.GHBoZZ20.e4_mU1IZ{height:20px;width:20px}.GHBoZZ20.V_Ivn4tG{height:24px;width:24px}.GHBoZZ20.iYtZL8DM{border-radius:50%}",""]),a.locals={icon:"GHBoZZ20",medium:"e4_mU1IZ",large:"V_Ivn4tG",rounded:"iYtZL8DM"};const s=a},43493:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(31601),o=n.n(r),i=n(76314),a=n.n(i)()(o());a.push([e.id,".lGftmtMh{padding:12px 8px}",""]),a.locals={supportWarning:"lGftmtMh"};const s=a},8798:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(31601),o=n.n(r),i=n(76314),a=n.n(i)()(o());a.push([e.id,".X7mjDzNc{background-color:var(--color-bg-content-primary);border-radius:8px;padding:8px 8px 14px}",""]),a.locals={skeleton:"X7mjDzNc"};const s=a},27145:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(31601),o=n.n(r),i=n(76314),a=n.n(i)()(o());a.push([e.id,'.p2kV6HH_{align-items:center;display:flex;justify-content:center;width:100%}.t4wH5xiI{background-color:var(--color-bg-disabled)}.t4wH5xiI,.tUeOPnHY{color:var(--color-text-disabled)}.tUeOPnHY{background-color:var(--color-bg-tertiary-alpha)}.RhtiSyMb{border-radius:4px;height:16px}.wj7fEoAL{border-radius:8px}.vU4hEmko{height:32px;width:32px}.vU4hEmko,.dxUJOkXs{border-radius:100vh}.dxUJOkXs{height:3rem}.PgfKn0_j{animation:mWeP8iCc 2s ease-in-out .5s infinite}.wpTYnnfW{overflow:hidden;position:relative}.wpTYnnfW:before{animation:s41vVZiV 2s linear 1s infinite;background:linear-gradient(90deg,#0000,var(--color-black-5),#0000);bottom:0;content:"";left:0;position:absolute;right:0;top:0;transform:translateX(-200%)}@keyframes mWeP8iCc{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes s41vVZiV{0%{transform:translateX(-200%)}to{transform:translateX(200%)}}',""]),a.locals={main:"p2kV6HH_",default:"t4wH5xiI",tertiary:"tUeOPnHY",text:"RhtiSyMb",rounded:"wj7fEoAL",circular:"vU4hEmko",ellipse:"dxUJOkXs",pulse:"PgfKn0_j",pulsar:"mWeP8iCc",wave:"wpTYnnfW",linearMove:"s41vVZiV"};const s=a},62628:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(31601),o=n.n(r),i=n(76314),a=n.n(i)()(o());a.push([e.id,".YbfN8FuI{display:flex}.qmM1gj4l{justify-content:flex-start}.q7O6kqoV{justify-content:center}.qxta1Fl8{justify-content:flex-end}.nw1fHAMW{justify-content:space-between}.VcdU8uBL{align-items:flex-start}.bQu9IxYs{align-items:center}.OVV7w7xt{align-items:flex-end}.mLOptriC{align-items:unset}.DIM8o3gK{align-items:stretch}.zgeRNmHo{flex-direction:row}.UiqDa2hV{flex-direction:row-reverse}.xr_Khzq6{flex-direction:column}.Jzliu5Dl{flex-direction:column-reverse}.R9QgKPYo{flex-direction:row}@media screen and (max-width:1278px){.R9QgKPYo{flex-direction:column}}.RVXZ5CrU{gap:4px}.nj3AJTRN{column-gap:4px}.jrtPBJsy{gap:8px}.sTNewL4R{column-gap:8px}.pRWNtLtu{row-gap:8px}.IwZZYAav{gap:10px}.tUfINiMB{column-gap:10px}.lj71pE8r{row-gap:10px}.RrglcMSi{gap:12px}.prkGWuAL{gap:16px}.q5SxK0Vg{column-gap:16px}.arKqgQ7o{row-gap:16px}._7Ljaa_l{gap:20px}.mqRQFd2X{column-gap:20px}.wAYFo2QU{row-gap:20px}.lUe08WP1{gap:24px}.dtuUEl38{gap:36px}.B1EbRHoD{column-gap:36px}.uT4CSvoY{row-gap:36px}.CwCaCV8W{gap:40px}.HzosQl08{column-gap:40px}.u_PjA4iJ{row-gap:40px}.Bee3q8J2{gap:56px}.mX9QWLVq{column-gap:56px}.mqog4gpY{row-gap:56px}.tvWtVEam{width:100%}.KMds_vZj{height:100%}.ZSBQ2caQ{flex-wrap:wrap}.ZZgZsncX{flex-wrap:nowrap}",""]),a.locals={flex:"YbfN8FuI",justifyStart:"qmM1gj4l",justifyCenter:"q7O6kqoV",justifyEnd:"qxta1Fl8",justifyBetween:"nw1fHAMW",alignStart:"VcdU8uBL",alignCenter:"bQu9IxYs",alignEnd:"OVV7w7xt",alignUnset:"mLOptriC",alignStretch:"DIM8o3gK",row:"zgeRNmHo",rowReverse:"UiqDa2hV",column:"xr_Khzq6",columnReverse:"Jzliu5Dl",rowColumnLgScreen:"R9QgKPYo",gap4:"RVXZ5CrU",gap4Column:"nj3AJTRN",gap8:"jrtPBJsy",gap8Column:"sTNewL4R",gap8Row:"pRWNtLtu",gap10:"IwZZYAav",gap10Column:"tUfINiMB",gap10Row:"lj71pE8r",gap12:"RrglcMSi",gap16:"prkGWuAL",gap16Column:"q5SxK0Vg",gap16Row:"arKqgQ7o",gap20:"_7Ljaa_l",gap20Column:"mqRQFd2X",gap20Row:"wAYFo2QU",gap24:"lUe08WP1",gap36:"dtuUEl38",gap36Column:"B1EbRHoD",gap36Row:"uT4CSvoY",gap40:"CwCaCV8W",gap40Column:"HzosQl08",gap40Row:"u_PjA4iJ",gap56:"Bee3q8J2",gap56Column:"mX9QWLVq",gap56Row:"mqog4gpY",fullWidth:"tvWtVEam",fullHeight:"KMds_vZj",wrap:"ZSBQ2caQ",nowrap:"ZZgZsncX"};const s=a},29066:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(31601),o=n.n(r),i=n(76314),a=n.n(i)()(o());a.push([e.id,".ZwYRBeLm{display:flex;gap:var(--gapSize);--gapSize:0px}.FfNA4QJU{justify-content:flex-start}.ZjeeDbj8{justify-content:center}.nBKP8R7A{justify-content:flex-end}.nkVb0e2p{justify-content:space-between}.afqCpYDn{align-items:flex-start}.UQlQwljK{align-items:center}.Xm2cfu8N{align-items:flex-end}.VDuukpST{align-items:stretch}.mPElNPU8{flex-direction:row}._AlErJUH{flex-direction:column}._CJhmDHq{width:100%}.eYkGNHDJ{height:100%}.QNyYOyt9{flex-wrap:wrap}.Au3JfqZc{flex-wrap:nowrap}",""]),a.locals={flex:"ZwYRBeLm",justifyStart:"FfNA4QJU",justifyCenter:"ZjeeDbj8",justifyEnd:"nBKP8R7A",justifyBetween:"nkVb0e2p",alignStart:"afqCpYDn",alignCenter:"UQlQwljK",alignEnd:"Xm2cfu8N",alignStretch:"VDuukpST",directionRow:"mPElNPU8",directionColumn:"_AlErJUH",fullWidth:"_CJhmDHq",fullHeight:"eYkGNHDJ",wrap:"QNyYOyt9",nowrap:"Au3JfqZc"};const s=a},82633:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(31601),o=n.n(r),i=n(76314),a=n.n(i)()(o());a.push([e.id,".lM1Q7Cuq,.MT8SdW1i{font-style:normal;font-weight:400}.MT8SdW1i{font-size:48px;letter-spacing:-1px;line-height:52px}@media screen and (max-width:460px){.MT8SdW1i{font-size:32px;letter-spacing:-.4px;line-height:36px}}.koOEnBa7{font-size:32px;letter-spacing:-.4px;line-height:36px}@media screen and (max-width:460px){.koOEnBa7{font-size:24px;line-height:32px}}.lt1_sQfw{font-size:24px;line-height:32px}.lt1_sQfw,.IIkpXQzy{letter-spacing:-.4px}.IIkpXQzy{font-size:18px;line-height:24px}.TGiVYFki{font-size:14px;line-height:20px}.TGiVYFki,.gpo9k0dd{letter-spacing:-.3px}.gpo9k0dd{font-size:12px;line-height:16px}.j2ZtGme9{font-weight:300}.R5qXhc8Y{font-weight:400}._cM4bBDM{font-weight:500}.nwrU85zK{font-weight:600}.E100OxxQ{font-weight:700}.sFZiDTU5{color:var(--color-text-primary)}.qDMzntmP{color:var(--color-text-secondary)}.KRm6WIxr{color:var(--color-text-tertiary)}.ezRL5WMy{color:var(--color-text-contrast)}.OHYplC3v{color:var(--color-text-disabled)}.SMOEU4sv{color:var(--color-text-black)}.eyg6LCmf{color:var(--color-text-white)}.llUKfmjk{color:var(--color-red-100)}.QY_9Kro9{color:var(--color-blue-100)}.YEkf8fJi{color:var(--color-accent-negative)}.RLs2WlEz{color:var(--color-yellow-100)}.T2cpzXqi{text-align:center}.PITh1_Z0{text-align:left}.idLUw_I3{text-align:right}",""]),a.locals={main:"lM1Q7Cuq",xxlarge:"MT8SdW1i",xlarge:"koOEnBa7",large:"lt1_sQfw",medium:"IIkpXQzy",small:"TGiVYFki",tiny:"gpo9k0dd",lightWeight:"j2ZtGme9",normalWeight:"R5qXhc8Y",mediumWeight:"_cM4bBDM",semiBoldWeight:"nwrU85zK",boldWeight:"E100OxxQ",primary:"sFZiDTU5",secondary:"qDMzntmP",tertiary:"KRm6WIxr",contrast:"ezRL5WMy",disabled:"OHYplC3v",black:"SMOEU4sv",white:"eyg6LCmf",red:"llUKfmjk",blue:"QY_9Kro9",negative:"YEkf8fJi",yellow:"RLs2WlEz",center:"T2cpzXqi",left:"PITh1_Z0",right:"idLUw_I3"};const s=a},76314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},31601:e=>{"use strict";e.exports=function(e){return e[1]}},4146:(e,t,n)=>{"use strict";var r=n(44363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var y=a[g];if(!(i[y]||r&&r[y]||m&&m[y]||s&&s[y])){var v=p(n,y);try{c(t,y,v)}catch(e){}}}}return t}},45228:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))n.call(i,c)&&(s[c]=i[c]);if(t){a=t(i);for(var u=0;u<a.length;u++)r.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s}},22551:(e,t,n)=>{"use strict";var r=n(96540),o=n(45228),i=n(69982);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function s(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var l=!1,c=null,u=!1,d=null,p={onError:function(e){l=!0,c=e}};function f(e,t,n,r,o,i,a,u,d){l=!1,c=null,s.apply(p,arguments)}var h=null,m=null,g=null;function y(e,t,n){var r=e.type||"unknown-event";e.currentTarget=g(n),function(e,t,n,r,o,i,s,p,h){if(f.apply(this,arguments),l){if(!l)throw Error(a(198));var m=c;l=!1,c=null,u||(u=!0,d=m)}}(r,t,void 0,e),e.currentTarget=null}var v=null,b={};function w(){if(v)for(var e in b){var t=b[e],n=v.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!_[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in _[n]=t,n=t.eventTypes){var o=void 0,i=n[r],s=t,l=r;if(E.hasOwnProperty(l))throw Error(a(99,l));E[l]=i;var c=i.phasedRegistrationNames;if(c){for(o in c)c.hasOwnProperty(o)&&S(c[o],s,l);o=!0}else i.registrationName?(S(i.registrationName,s,l),o=!0):o=!1;if(!o)throw Error(a(98,r,e))}}}}function S(e,t,n){if(k[e])throw Error(a(100,e));k[e]=t,T[e]=t.eventTypes[n].dependencies}var _=[],E={},k={},T={};function x(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!b.hasOwnProperty(t)||b[t]!==r){if(b[t])throw Error(a(102,t));b[t]=r,n=!0}}n&&w()}var C=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),I=null,R=null,O=null;function P(e){if(e=m(e)){if("function"!=typeof I)throw Error(a(280));var t=e.stateNode;t&&(t=h(t),I(e.stateNode,e.type,t))}}function A(e){R?O?O.push(e):O=[e]:R=e}function L(){if(R){var e=R,t=O;if(O=R=null,P(e),t)for(e=0;e<t.length;e++)P(t[e])}}function N(e,t){return e(t)}function M(e,t,n,r,o){return e(t,n,r,o)}function D(){}var F=N,j=!1,U=!1;function B(){null===R&&null===O||(D(),L())}function z(e,t,n){if(U)return e(t,n);U=!0;try{return F(e,t,n)}finally{U=!1,B()}}var q=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,W=Object.prototype.hasOwnProperty,$={},V={};function H(e,t,n,r,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var G={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){G[e]=new H(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];G[t]=new H(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){G[e]=new H(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){G[e]=new H(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){G[e]=new H(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){G[e]=new H(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){G[e]=new H(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){G[e]=new H(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){G[e]=new H(e,5,!1,e.toLowerCase(),null,!1)}));var K=/[\-:]([a-z])/g;function Y(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(K,Y);G[t]=new H(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(K,Y);G[t]=new H(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(K,Y);G[t]=new H(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){G[e]=new H(e,1,!1,e.toLowerCase(),null,!1)})),G.xlinkHref=new H("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){G[e]=new H(e,1,!1,e.toLowerCase(),null,!0)}));var J=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function X(e,t,n,r){var o=G.hasOwnProperty(t)?G[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!W.call(V,e)||!W.call($,e)&&(q.test(e)?V[e]=!0:($[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}J.hasOwnProperty("ReactCurrentDispatcher")||(J.ReactCurrentDispatcher={current:null}),J.hasOwnProperty("ReactCurrentBatchConfig")||(J.ReactCurrentBatchConfig={suspense:null});var Q=/^(.*)[\\\/]/,Z="function"==typeof Symbol&&Symbol.for,ee=Z?Symbol.for("react.element"):60103,te=Z?Symbol.for("react.portal"):60106,ne=Z?Symbol.for("react.fragment"):60107,re=Z?Symbol.for("react.strict_mode"):60108,oe=Z?Symbol.for("react.profiler"):60114,ie=Z?Symbol.for("react.provider"):60109,ae=Z?Symbol.for("react.context"):60110,se=Z?Symbol.for("react.concurrent_mode"):60111,le=Z?Symbol.for("react.forward_ref"):60112,ce=Z?Symbol.for("react.suspense"):60113,ue=Z?Symbol.for("react.suspense_list"):60120,de=Z?Symbol.for("react.memo"):60115,pe=Z?Symbol.for("react.lazy"):60116,fe=Z?Symbol.for("react.block"):60121,he="function"==typeof Symbol&&Symbol.iterator;function me(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=he&&e[he]||e["@@iterator"])?e:null}function ge(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case oe:return"Profiler";case re:return"StrictMode";case ce:return"Suspense";case ue:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case ie:return"Context.Provider";case le:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case de:return ge(e.type);case fe:return ge(e.render);case pe:if(e=1===e._status?e._result:null)return ge(e)}return null}function ye(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,o=e._debugSource,i=ge(e.type);n=null,r&&(n=ge(r.type)),r=i,i="",o?i=" (at "+o.fileName.replace(Q,"")+":"+o.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n    in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}function ve(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=be(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Se(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=be(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function _e(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ve(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ke(e,t){null!=(t=t.checked)&&X(e,"checked",t,!1)}function Te(e,t){ke(e,t);var n=ve(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Ce(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ce(e,t.type,ve(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function xe(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Ce(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Ie(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Re(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ve(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Oe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Pe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ve(n)}}function Ae(e,t){var n=ve(t.value),r=ve(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Le(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Ne="http://www.w3.org/1999/xhtml",Me="http://www.w3.org/2000/svg";function De(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Fe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?De(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var je,Ue,Be=(Ue=function(e,t){if(e.namespaceURI!==Me||"innerHTML"in e)e.innerHTML=t;else{for((je=je||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=je.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return Ue(e,t)}))}:Ue);function ze(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function qe(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var We={animationend:qe("Animation","AnimationEnd"),animationiteration:qe("Animation","AnimationIteration"),animationstart:qe("Animation","AnimationStart"),transitionend:qe("Transition","TransitionEnd")},$e={},Ve={};function He(e){if($e[e])return $e[e];if(!We[e])return e;var t,n=We[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ve)return $e[e]=n[t];return e}C&&(Ve=document.createElement("div").style,"AnimationEvent"in window||(delete We.animationend.animation,delete We.animationiteration.animation,delete We.animationstart.animation),"TransitionEvent"in window||delete We.transitionend.transition);var Ge=He("animationend"),Ke=He("animationiteration"),Ye=He("animationstart"),Je=He("transitionend"),Xe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Qe=new("function"==typeof WeakMap?WeakMap:Map);function Ze(e){var t=Qe.get(e);return void 0===t&&(t=new Map,Qe.set(e,t)),t}function et(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function tt(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function nt(e){if(et(e)!==e)throw Error(a(188))}function rt(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=et(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return nt(o),e;if(i===r)return nt(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function ot(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function it(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var at=null;function st(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)y(e,t[r],n[r]);else t&&y(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function lt(e){if(null!==e&&(at=ot(at,e)),e=at,at=null,e){if(it(e,st),at)throw Error(a(95));if(u)throw e=d,u=!1,d=null,e}}function ct(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ut(e){if(!C)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var dt=[];function pt(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>dt.length&&dt.push(e)}function ft(e,t,n,r){if(dt.length){var o=dt.pop();return o.topLevelType=e,o.eventSystemFlags=r,o.nativeEvent=t,o.targetInst=n,o}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function ht(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Ln(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=ct(e.nativeEvent);r=e.topLevelType;var i=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var s=null,l=0;l<_.length;l++){var c=_[l];c&&(c=c.extractEvents(r,t,i,o,a))&&(s=ot(s,c))}lt(s)}}function mt(e,t,n){if(!n.has(e)){switch(e){case"scroll":Yt(t,"scroll",!0);break;case"focus":case"blur":Yt(t,"focus",!0),Yt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ut(e)&&Yt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Xe.indexOf(e)&&Kt(e,t)}n.set(e,null)}}var gt,yt,vt,bt=!1,wt=[],St=null,_t=null,Et=null,kt=new Map,Tt=new Map,xt=[],Ct="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),It="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Rt(e,t,n,r,o){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:o,container:r}}function Ot(e,t){switch(e){case"focus":case"blur":St=null;break;case"dragenter":case"dragleave":_t=null;break;case"mouseover":case"mouseout":Et=null;break;case"pointerover":case"pointerout":kt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tt.delete(t.pointerId)}}function Pt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=Rt(t,n,r,o,i),null!==t&&(null!==(t=Nn(t))&&yt(t)),e):(e.eventSystemFlags|=r,e)}function At(e){var t=Ln(e.target);if(null!==t){var n=et(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=tt(n)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,(function(){vt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Lt(e){if(null!==e.blockedOn)return!1;var t=Zt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=Nn(t);return null!==n&&yt(n),e.blockedOn=t,!1}return!0}function Nt(e,t,n){Lt(e)&&n.delete(t)}function Mt(){for(bt=!1;0<wt.length;){var e=wt[0];if(null!==e.blockedOn){null!==(e=Nn(e.blockedOn))&&gt(e);break}var t=Zt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:wt.shift()}null!==St&&Lt(St)&&(St=null),null!==_t&&Lt(_t)&&(_t=null),null!==Et&&Lt(Et)&&(Et=null),kt.forEach(Nt),Tt.forEach(Nt)}function Dt(e,t){e.blockedOn===t&&(e.blockedOn=null,bt||(bt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Mt)))}function Ft(e){function t(t){return Dt(t,e)}if(0<wt.length){Dt(wt[0],e);for(var n=1;n<wt.length;n++){var r=wt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==St&&Dt(St,e),null!==_t&&Dt(_t,e),null!==Et&&Dt(Et,e),kt.forEach(t),Tt.forEach(t),n=0;n<xt.length;n++)(r=xt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<xt.length&&null===(n=xt[0]).blockedOn;)At(n),null===n.blockedOn&&xt.shift()}var jt={},Ut=new Map,Bt=new Map,zt=["abort","abort",Ge,"animationEnd",Ke,"animationIteration",Ye,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Je,"transitionEnd","waiting","waiting"];function qt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1],i="on"+(o[0].toUpperCase()+o.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[r],eventPriority:t},Bt.set(r,t),Ut.set(r,i),jt[o]=i}}qt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),qt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),qt(zt,2);for(var Wt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),$t=0;$t<Wt.length;$t++)Bt.set(Wt[$t],0);var Vt=i.unstable_UserBlockingPriority,Ht=i.unstable_runWithPriority,Gt=!0;function Kt(e,t){Yt(t,e,!1)}function Yt(e,t,n){var r=Bt.get(t);switch(void 0===r?2:r){case 0:r=Jt.bind(null,t,1,e);break;case 1:r=Xt.bind(null,t,1,e);break;default:r=Qt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Jt(e,t,n,r){j||D();var o=Qt,i=j;j=!0;try{M(o,e,t,n,r)}finally{(j=i)||B()}}function Xt(e,t,n,r){Ht(Vt,Qt.bind(null,e,t,n,r))}function Qt(e,t,n,r){if(Gt)if(0<wt.length&&-1<Ct.indexOf(e))e=Rt(null,e,t,n,r),wt.push(e);else{var o=Zt(e,t,n,r);if(null===o)Ot(e,r);else if(-1<Ct.indexOf(e))e=Rt(o,e,t,n,r),wt.push(e);else if(!function(e,t,n,r,o){switch(t){case"focus":return St=Pt(St,e,t,n,r,o),!0;case"dragenter":return _t=Pt(_t,e,t,n,r,o),!0;case"mouseover":return Et=Pt(Et,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return kt.set(i,Pt(kt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Tt.set(i,Pt(Tt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r)){Ot(e,r),e=ft(e,r,null,t);try{z(ht,e)}finally{pt(e)}}}}function Zt(e,t,n,r){if(null!==(n=Ln(n=ct(r)))){var o=et(n);if(null===o)n=null;else{var i=o.tag;if(13===i){if(null!==(n=tt(o)))return n;n=null}else if(3===i){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null)}}e=ft(e,r,n,t);try{z(ht,e)}finally{pt(e)}return null}var en={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},tn=["Webkit","ms","Moz","O"];function nn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||en.hasOwnProperty(e)&&en[e]?(""+t).trim():t+"px"}function rn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=nn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(en).forEach((function(e){tn.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),en[t]=en[e]}))}));var on=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function an(e,t){if(t){if(on[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62,""))}}function sn(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ln=Ne;function cn(e,t){var n=Ze(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=T[t];for(var r=0;r<t.length;r++)mt(t[r],e,n)}function un(){}function dn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function pn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fn(e,t){var n,r=pn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=pn(r)}}function hn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function mn(){for(var e=window,t=dn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=dn((e=t.contentWindow).document)}return t}function gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var yn="$",vn="/$",bn="$?",wn="$!",Sn=null,_n=null;function En(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function kn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Tn="function"==typeof setTimeout?setTimeout:void 0,xn="function"==typeof clearTimeout?clearTimeout:void 0;function Cn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function In(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===yn||n===wn||n===bn){if(0===t)return e;t--}else n===vn&&t++}e=e.previousSibling}return null}var Rn=Math.random().toString(36).slice(2),On="__reactInternalInstance$"+Rn,Pn="__reactEventHandlers$"+Rn,An="__reactContainere$"+Rn;function Ln(e){var t=e[On];if(t)return t;for(var n=e.parentNode;n;){if(t=n[An]||n[On]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=In(e);null!==e;){if(n=e[On])return n;e=In(e)}return t}n=(e=n).parentNode}return null}function Nn(e){return!(e=e[On]||e[An])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Mn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Dn(e){return e[Pn]||null}function Fn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function jn(e,t){var n=e.stateNode;if(!n)return null;var r=h(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}function Un(e,t,n){(t=jn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=ot(n._dispatchListeners,t),n._dispatchInstances=ot(n._dispatchInstances,e))}function Bn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Fn(t);for(t=n.length;0<t--;)Un(n[t],"captured",e);for(t=0;t<n.length;t++)Un(n[t],"bubbled",e)}}function zn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=jn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=ot(n._dispatchListeners,t),n._dispatchInstances=ot(n._dispatchInstances,e))}function qn(e){e&&e.dispatchConfig.registrationName&&zn(e._targetInst,null,e)}function Wn(e){it(e,Bn)}var $n=null,Vn=null,Hn=null;function Gn(){if(Hn)return Hn;var e,t,n=Vn,r=n.length,o="value"in $n?$n.value:$n.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Hn=o.slice(e,1<t?1-t:void 0)}function Kn(){return!0}function Yn(){return!1}function Jn(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Kn:Yn,this.isPropagationStopped=Yn,this}function Xn(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function Qn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Zn(e){e.eventPool=[],e.getPooled=Xn,e.release=Qn}o(Jn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Kn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Kn)},persist:function(){this.isPersistent=Kn},isPersistent:Yn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Yn,this._dispatchInstances=this._dispatchListeners=null}}),Jn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Jn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,Zn(n),n},Zn(Jn);var er=Jn.extend({data:null}),tr=Jn.extend({data:null}),nr=[9,13,27,32],rr=C&&"CompositionEvent"in window,or=null;C&&"documentMode"in document&&(or=document.documentMode);var ir=C&&"TextEvent"in window&&!or,ar=C&&(!rr||or&&8<or&&11>=or),sr=String.fromCharCode(32),lr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},cr=!1;function ur(e,t){switch(e){case"keyup":return-1!==nr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function dr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var pr=!1;var fr={eventTypes:lr,extractEvents:function(e,t,n,r){var o;if(rr)e:{switch(e){case"compositionstart":var i=lr.compositionStart;break e;case"compositionend":i=lr.compositionEnd;break e;case"compositionupdate":i=lr.compositionUpdate;break e}i=void 0}else pr?ur(e,n)&&(i=lr.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=lr.compositionStart);return i?(ar&&"ko"!==n.locale&&(pr||i!==lr.compositionStart?i===lr.compositionEnd&&pr&&(o=Gn()):(Vn="value"in($n=r)?$n.value:$n.textContent,pr=!0)),i=er.getPooled(i,t,n,r),o?i.data=o:null!==(o=dr(n))&&(i.data=o),Wn(i),o=i):o=null,(e=ir?function(e,t){switch(e){case"compositionend":return dr(t);case"keypress":return 32!==t.which?null:(cr=!0,sr);case"textInput":return(e=t.data)===sr&&cr?null:e;default:return null}}(e,n):function(e,t){if(pr)return"compositionend"===e||!rr&&ur(e,t)?(e=Gn(),Hn=Vn=$n=null,pr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ar&&"ko"!==t.locale?null:t.data}}(e,n))?((t=tr.getPooled(lr.beforeInput,t,n,r)).data=e,Wn(t)):t=null,null===o?t:null===t?o:[o,t]}},hr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!hr[e.type]:"textarea"===t}var gr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function yr(e,t,n){return(e=Jn.getPooled(gr.change,e,t,n)).type="change",A(n),Wn(e),e}var vr=null,br=null;function wr(e){lt(e)}function Sr(e){if(Se(Mn(e)))return e}function _r(e,t){if("change"===e)return t}var Er=!1;function kr(){vr&&(vr.detachEvent("onpropertychange",Tr),br=vr=null)}function Tr(e){if("value"===e.propertyName&&Sr(br))if(e=yr(br,e,ct(e)),j)lt(e);else{j=!0;try{N(wr,e)}finally{j=!1,B()}}}function xr(e,t,n){"focus"===e?(kr(),br=n,(vr=t).attachEvent("onpropertychange",Tr)):"blur"===e&&kr()}function Cr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Sr(br)}function Ir(e,t){if("click"===e)return Sr(t)}function Rr(e,t){if("input"===e||"change"===e)return Sr(t)}C&&(Er=ut("input")&&(!document.documentMode||9<document.documentMode));var Or={eventTypes:gr,_isInputEventSupported:Er,extractEvents:function(e,t,n,r){var o=t?Mn(t):window,i=o.nodeName&&o.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===o.type)var a=_r;else if(mr(o))if(Er)a=Rr;else{a=Cr;var s=xr}else(i=o.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(a=Ir);if(a&&(a=a(e,t)))return yr(a,n,r);s&&s(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&Ce(o,"number",o.value)}},Pr=Jn.extend({view:null,detail:null}),Ar={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Lr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Ar[e])&&!!t[e]}function Nr(){return Lr}var Mr=0,Dr=0,Fr=!1,jr=!1,Ur=Pr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Nr,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Mr;return Mr=e.screenX,Fr?"mousemove"===e.type?e.screenX-t:0:(Fr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Dr;return Dr=e.screenY,jr?"mousemove"===e.type?e.screenY-t:0:(jr=!0,0)}}),Br=Ur.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),zr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},qr={eventTypes:zr,extractEvents:function(e,t,n,r,o){var i="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(i&&0==(32&o)&&(n.relatedTarget||n.fromElement)||!a&&!i)return null;(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?Ln(t):null)&&(t!==et(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var s=Ur,l=zr.mouseLeave,c=zr.mouseEnter,u="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=Br,l=zr.pointerLeave,c=zr.pointerEnter,u="pointer");if(e=null==a?i:Mn(a),i=null==t?i:Mn(t),(l=s.getPooled(l,a,n,r)).type=u+"leave",l.target=e,l.relatedTarget=i,(n=s.getPooled(c,t,n,r)).type=u+"enter",n.target=i,n.relatedTarget=e,u=t,(r=a)&&u)e:{for(c=u,a=0,e=s=r;e;e=Fn(e))a++;for(e=0,t=c;t;t=Fn(t))e++;for(;0<a-e;)s=Fn(s),a--;for(;0<e-a;)c=Fn(c),e--;for(;a--;){if(s===c||s===c.alternate)break e;s=Fn(s),c=Fn(c)}s=null}else s=null;for(c=s,s=[];r&&r!==c&&(null===(a=r.alternate)||a!==c);)s.push(r),r=Fn(r);for(r=[];u&&u!==c&&(null===(a=u.alternate)||a!==c);)r.push(u),u=Fn(u);for(u=0;u<s.length;u++)zn(s[u],"bubbled",l);for(u=r.length;0<u--;)zn(r[u],"captured",n);return 0==(64&o)?[l]:[l,n]}};var Wr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},$r=Object.prototype.hasOwnProperty;function Vr(e,t){if(Wr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!$r.call(t,n[r])||!Wr(e[n[r]],t[n[r]]))return!1;return!0}var Hr=C&&"documentMode"in document&&11>=document.documentMode,Gr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Kr=null,Yr=null,Jr=null,Xr=!1;function Qr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Xr||null==Kr||Kr!==dn(n)?null:("selectionStart"in(n=Kr)&&gn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Jr&&Vr(Jr,n)?null:(Jr=n,(e=Jn.getPooled(Gr.select,Yr,e,t)).type="select",e.target=Kr,Wn(e),e))}var Zr={eventTypes:Gr,extractEvents:function(e,t,n,r,o,i){if(!(i=!(o=i||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{o=Ze(o),i=T.onSelect;for(var a=0;a<i.length;a++)if(!o.has(i[a])){o=!1;break e}o=!0}i=!o}if(i)return null;switch(o=t?Mn(t):window,e){case"focus":(mr(o)||"true"===o.contentEditable)&&(Kr=o,Yr=t,Jr=null);break;case"blur":Jr=Yr=Kr=null;break;case"mousedown":Xr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Xr=!1,Qr(n,r);case"selectionchange":if(Hr)break;case"keydown":case"keyup":return Qr(n,r)}return null}},eo=Jn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),to=Jn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),no=Pr.extend({relatedTarget:null});function ro(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var oo={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},io={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ao=Pr.extend({key:function(e){if(e.key){var t=oo[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ro(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?io[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Nr,charCode:function(e){return"keypress"===e.type?ro(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ro(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),so=Ur.extend({dataTransfer:null}),lo=Pr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Nr}),co=Jn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),uo=Ur.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),po={eventTypes:jt,extractEvents:function(e,t,n,r){var o=Ut.get(e);if(!o)return null;switch(e){case"keypress":if(0===ro(n))return null;case"keydown":case"keyup":e=ao;break;case"blur":case"focus":e=no;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Ur;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=so;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=lo;break;case Ge:case Ke:case Ye:e=eo;break;case Je:e=co;break;case"scroll":e=Pr;break;case"wheel":e=uo;break;case"copy":case"cut":case"paste":e=to;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Br;break;default:e=Jn}return Wn(t=e.getPooled(o,t,n,r)),t}};if(v)throw Error(a(101));v=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),h=Dn,m=Nn,g=Mn,x({SimpleEventPlugin:po,EnterLeaveEventPlugin:qr,ChangeEventPlugin:Or,SelectEventPlugin:Zr,BeforeInputEventPlugin:fr});var fo=[],ho=-1;function mo(e){0>ho||(e.current=fo[ho],fo[ho]=null,ho--)}function go(e,t){ho++,fo[ho]=e.current,e.current=t}var yo={},vo={current:yo},bo={current:!1},wo=yo;function So(e,t){var n=e.type.contextTypes;if(!n)return yo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function _o(e){return null!=(e=e.childContextTypes)}function Eo(){mo(bo),mo(vo)}function ko(e,t,n){if(vo.current!==yo)throw Error(a(168));go(vo,t),go(bo,n)}function To(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,ge(t)||"Unknown",i));return o({},n,{},r)}function xo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yo,wo=vo.current,go(vo,e),go(bo,bo.current),!0}function Co(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=To(e,t,wo),r.__reactInternalMemoizedMergedChildContext=e,mo(bo),mo(vo),go(vo,e)):mo(bo),go(bo,n)}var Io=i.unstable_runWithPriority,Ro=i.unstable_scheduleCallback,Oo=i.unstable_cancelCallback,Po=i.unstable_requestPaint,Ao=i.unstable_now,Lo=i.unstable_getCurrentPriorityLevel,No=i.unstable_ImmediatePriority,Mo=i.unstable_UserBlockingPriority,Do=i.unstable_NormalPriority,Fo=i.unstable_LowPriority,jo=i.unstable_IdlePriority,Uo={},Bo=i.unstable_shouldYield,zo=void 0!==Po?Po:function(){},qo=null,Wo=null,$o=!1,Vo=Ao(),Ho=1e4>Vo?Ao:function(){return Ao()-Vo};function Go(){switch(Lo()){case No:return 99;case Mo:return 98;case Do:return 97;case Fo:return 96;case jo:return 95;default:throw Error(a(332))}}function Ko(e){switch(e){case 99:return No;case 98:return Mo;case 97:return Do;case 96:return Fo;case 95:return jo;default:throw Error(a(332))}}function Yo(e,t){return e=Ko(e),Io(e,t)}function Jo(e,t,n){return e=Ko(e),Ro(e,t,n)}function Xo(e){return null===qo?(qo=[e],Wo=Ro(No,Zo)):qo.push(e),Uo}function Qo(){if(null!==Wo){var e=Wo;Wo=null,Oo(e)}Zo()}function Zo(){if(!$o&&null!==qo){$o=!0;var e=0;try{var t=qo;Yo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),qo=null}catch(t){throw null!==qo&&(qo=qo.slice(e+1)),Ro(No,Qo),t}finally{$o=!1}}}function ei(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function ti(e,t){if(e&&e.defaultProps)for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var ni={current:null},ri=null,oi=null,ii=null;function ai(){ii=oi=ri=null}function si(e){var t=ni.current;mo(ni),e.type._context._currentValue=t}function li(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function ci(e,t){ri=e,ii=oi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Da=!0),e.firstContext=null)}function ui(e,t){if(ii!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ii=e,t=1073741823),t={context:e,observedBits:t,next:null},null===oi){if(null===ri)throw Error(a(308));oi=t,ri.dependencies={expirationTime:0,firstContext:t,responders:null}}else oi=oi.next=t;return e._currentValue}var di=!1;function pi(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function fi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function hi(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function mi(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function gi(e,t){var n=e.alternate;null!==n&&fi(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function yi(e,t,n,r){var i=e.updateQueue;di=!1;var a=i.baseQueue,s=i.shared.pending;if(null!==s){if(null!==a){var l=a.next;a.next=s.next,s.next=l}a=s,i.shared.pending=null,null!==(l=e.alternate)&&(null!==(l=l.updateQueue)&&(l.baseQueue=s))}if(null!==a){l=a.next;var c=i.baseState,u=0,d=null,p=null,f=null;if(null!==l)for(var h=l;;){if((s=h.expirationTime)<r){var m={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===f?(p=f=m,d=c):f=f.next=m,s>u&&(u=s)}else{null!==f&&(f=f.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),_l(s,h.suspenseConfig);e:{var g=e,y=h;switch(s=t,m=n,y.tag){case 1:if("function"==typeof(g=y.payload)){c=g.call(m,c,s);break e}c=g;break e;case 3:g.effectTag=-4097&g.effectTag|64;case 0:if(null==(s="function"==typeof(g=y.payload)?g.call(m,c,s):g))break e;c=o({},c,s);break e;case 2:di=!0}}null!==h.callback&&(e.effectTag|=32,null===(s=i.effects)?i.effects=[h]:s.push(h))}if(null===(h=h.next)||h===l){if(null===(s=i.shared.pending))break;h=a.next=s.next,s.next=l,i.baseQueue=a=s,i.shared.pending=null}}null===f?d=c:f.next=p,i.baseState=d,i.baseQueue=f,El(u),e.expirationTime=u,e.memoizedState=c}}function vi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=o,o=n,"function"!=typeof r)throw Error(a(191,r));r.call(o)}}}var bi=J.ReactCurrentBatchConfig,wi=(new r.Component).refs;function Si(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var _i={isMounted:function(e){return!!(e=e._reactInternalFiber)&&et(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=cl(),o=bi.suspense;(o=hi(r=ul(r,e,o),o)).payload=t,null!=n&&(o.callback=n),mi(e,o),dl(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=cl(),o=bi.suspense;(o=hi(r=ul(r,e,o),o)).tag=1,o.payload=t,null!=n&&(o.callback=n),mi(e,o),dl(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=cl(),r=bi.suspense;(r=hi(n=ul(n,e,r),r)).tag=2,null!=t&&(r.callback=t),mi(e,r),dl(e,n)}};function Ei(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Vr(n,r)||!Vr(o,i))}function ki(e,t,n){var r=!1,o=yo,i=t.contextType;return"object"==typeof i&&null!==i?i=ui(i):(o=_o(t)?wo:vo.current,i=(r=null!=(r=t.contextTypes))?So(e,o):yo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=_i,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ti(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&_i.enqueueReplaceState(t,t.state,null)}function xi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=wi,pi(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=ui(i):(i=_o(t)?wo:vo.current,o.context=So(e,i)),yi(e,n,o,r),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Si(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&_i.enqueueReplaceState(o,o.state,null),yi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}var Ci=Array.isArray;function Ii(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===wi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Ri(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Oi(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Wl(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Hl(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=Ii(e,t,n),r.return=e,r):((r=$l(n.type,n.key,n.props,null,e.mode,r)).ref=Ii(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Gl(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Vl(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Hl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=$l(t.type,t.key,t.props,null,e.mode,n)).ref=Ii(e,null,t),n.return=e,n;case te:return(t=Gl(t,e.mode,n)).return=e,t}if(Ci(t)||me(t))return(t=Vl(t,e.mode,n,null)).return=e,t;Ri(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===o?n.type===ne?d(e,t,n.props.children,r,o):c(e,t,n,r):null;case te:return n.key===o?u(e,t,n,r):null}if(Ci(n)||me(n))return null!==o?null:d(e,t,n,r,null);Ri(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?d(t,e,r.props.children,o,r.key):c(t,e,r,o);case te:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(Ci(r)||me(r))return d(t,e=e.get(n)||null,r,o,null);Ri(t,r)}return null}function m(o,a,s,l){for(var c=null,u=null,d=a,m=a=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var y=f(o,d,s[m],l);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(o,d),a=i(y,a,m),null===u?c=y:u.sibling=y,u=y,d=g}if(m===s.length)return n(o,d),c;if(null===d){for(;m<s.length;m++)null!==(d=p(o,s[m],l))&&(a=i(d,a,m),null===u?c=d:u.sibling=d,u=d);return c}for(d=r(o,d);m<s.length;m++)null!==(g=h(d,o,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=i(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(o,e)})),c}function g(o,s,l,c){var u=me(l);if("function"!=typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var d=u=null,m=s,g=s=0,y=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(y=m,m=null):y=m.sibling;var b=f(o,m,v.value,c);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(o,m),s=i(b,s,g),null===d?u=b:d.sibling=b,d=b,m=y}if(v.done)return n(o,m),u;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=p(o,v.value,c))&&(s=i(v,s,g),null===d?u=v:d.sibling=v,d=v);return u}for(m=r(o,m);!v.done;g++,v=l.next())null!==(v=h(m,o,g,v.value,c))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),s=i(v,s,g),null===d?u=v:d.sibling=v,d=v);return e&&m.forEach((function(e){return t(o,e)})),u}return function(e,r,i,l){var c="object"==typeof i&&null!==i&&i.type===ne&&null===i.key;c&&(i=i.props.children);var u="object"==typeof i&&null!==i;if(u)switch(i.$$typeof){case ee:e:{for(u=i.key,c=r;null!==c;){if(c.key===u){if(7===c.tag){if(i.type===ne){n(e,c.sibling),(r=o(c,i.props.children)).return=e,e=r;break e}}else if(c.elementType===i.type){n(e,c.sibling),(r=o(c,i.props)).ref=Ii(e,c,i),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}i.type===ne?((r=Vl(i.props.children,e.mode,l,i.key)).return=e,e=r):((l=$l(i.type,i.key,i.props,null,e.mode,l)).ref=Ii(e,r,i),l.return=e,e=l)}return s(e);case te:e:{for(c=i.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Gl(i,e.mode,l)).return=e,e=r}return s(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Hl(i,e.mode,l)).return=e,e=r),s(e);if(Ci(i))return m(e,r,i,l);if(me(i))return g(e,r,i,l);if(u&&Ri(e,i),void 0===i&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Pi=Oi(!0),Ai=Oi(!1),Li={},Ni={current:Li},Mi={current:Li},Di={current:Li};function Fi(e){if(e===Li)throw Error(a(174));return e}function ji(e,t){switch(go(Di,t),go(Mi,e),go(Ni,Li),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fe(null,"");break;default:t=Fe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}mo(Ni),go(Ni,t)}function Ui(){mo(Ni),mo(Mi),mo(Di)}function Bi(e){Fi(Di.current);var t=Fi(Ni.current),n=Fe(t,e.type);t!==n&&(go(Mi,e),go(Ni,n))}function zi(e){Mi.current===e&&(mo(Ni),mo(Mi))}var qi={current:0};function Wi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===bn||n.data===wn))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function $i(e,t){return{responder:e,props:t}}var Vi=J.ReactCurrentDispatcher,Hi=J.ReactCurrentBatchConfig,Gi=0,Ki=null,Yi=null,Ji=null,Xi=!1;function Qi(){throw Error(a(321))}function Zi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Wr(e[n],t[n]))return!1;return!0}function ea(e,t,n,r,o,i){if(Gi=i,Ki=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Vi.current=null===e||null===e.memoizedState?Ea:ka,e=n(r,o),t.expirationTime===Gi){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(a(301));i+=1,Ji=Yi=null,t.updateQueue=null,Vi.current=Ta,e=n(r,o)}while(t.expirationTime===Gi)}if(Vi.current=_a,t=null!==Yi&&null!==Yi.next,Gi=0,Ji=Yi=Ki=null,Xi=!1,t)throw Error(a(300));return e}function ta(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ji?Ki.memoizedState=Ji=e:Ji=Ji.next=e,Ji}function na(){if(null===Yi){var e=Ki.alternate;e=null!==e?e.memoizedState:null}else e=Yi.next;var t=null===Ji?Ki.memoizedState:Ji.next;if(null!==t)Ji=t,Yi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Yi=e).memoizedState,baseState:Yi.baseState,baseQueue:Yi.baseQueue,queue:Yi.queue,next:null},null===Ji?Ki.memoizedState=Ji=e:Ji=Ji.next=e}return Ji}function ra(e,t){return"function"==typeof t?t(e):t}function oa(e){var t=na(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Yi,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var l=s=i=null,c=o;do{var u=c.expirationTime;if(u<Gi){var d={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(s=l=d,i=r):l=l.next=d,u>Ki.expirationTime&&(Ki.expirationTime=u,El(u))}else null!==l&&(l=l.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),_l(u,c.suspenseConfig),r=c.eagerReducer===e?c.eagerState:e(r,c.action);c=c.next}while(null!==c&&c!==o);null===l?i=r:l.next=s,Wr(r,t.memoizedState)||(Da=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ia(e){var t=na(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);Wr(i,t.memoizedState)||(Da=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function aa(e){var t=ta();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ra,lastRenderedState:e}).dispatch=Sa.bind(null,Ki,e),[t.memoizedState,e]}function sa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Ki.updateQueue)?(t={lastEffect:null},Ki.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function la(){return na().memoizedState}function ca(e,t,n,r){var o=ta();Ki.effectTag|=e,o.memoizedState=sa(1|t,n,void 0,void 0===r?null:r)}function ua(e,t,n,r){var o=na();r=void 0===r?null:r;var i=void 0;if(null!==Yi){var a=Yi.memoizedState;if(i=a.destroy,null!==r&&Zi(r,a.deps))return void sa(t,n,i,r)}Ki.effectTag|=e,o.memoizedState=sa(1|t,n,i,r)}function da(e,t){return ca(516,4,e,t)}function pa(e,t){return ua(516,4,e,t)}function fa(e,t){return ua(4,2,e,t)}function ha(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ma(e,t,n){return n=null!=n?n.concat([e]):null,ua(4,2,ha.bind(null,t,e),n)}function ga(){}function ya(e,t){return ta().memoizedState=[e,void 0===t?null:t],e}function va(e,t){var n=na();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Zi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ba(e,t){var n=na();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Zi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function wa(e,t,n){var r=Go();Yo(98>r?98:r,(function(){e(!0)})),Yo(97<r?97:r,(function(){var r=Hi.suspense;Hi.suspense=void 0===t?null:t;try{e(!1),n()}finally{Hi.suspense=r}}))}function Sa(e,t,n){var r=cl(),o=bi.suspense;o={expirationTime:r=ul(r,e,o),suspenseConfig:o,action:n,eagerReducer:null,eagerState:null,next:null};var i=t.pending;if(null===i?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===Ki||null!==i&&i===Ki)Xi=!0,o.expirationTime=Gi,Ki.expirationTime=Gi;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.eagerReducer=i,o.eagerState=s,Wr(s,a))return}catch(e){}dl(e,r)}}var _a={readContext:ui,useCallback:Qi,useContext:Qi,useEffect:Qi,useImperativeHandle:Qi,useLayoutEffect:Qi,useMemo:Qi,useReducer:Qi,useRef:Qi,useState:Qi,useDebugValue:Qi,useResponder:Qi,useDeferredValue:Qi,useTransition:Qi},Ea={readContext:ui,useCallback:ya,useContext:ui,useEffect:da,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ca(4,2,ha.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ca(4,2,e,t)},useMemo:function(e,t){var n=ta();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ta();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Sa.bind(null,Ki,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ta().memoizedState=e},useState:aa,useDebugValue:ga,useResponder:$i,useDeferredValue:function(e,t){var n=aa(e),r=n[0],o=n[1];return da((function(){var n=Hi.suspense;Hi.suspense=void 0===t?null:t;try{o(e)}finally{Hi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=aa(!1),n=t[0];return t=t[1],[ya(wa.bind(null,t,e),[t,e]),n]}},ka={readContext:ui,useCallback:va,useContext:ui,useEffect:pa,useImperativeHandle:ma,useLayoutEffect:fa,useMemo:ba,useReducer:oa,useRef:la,useState:function(){return oa(ra)},useDebugValue:ga,useResponder:$i,useDeferredValue:function(e,t){var n=oa(ra),r=n[0],o=n[1];return pa((function(){var n=Hi.suspense;Hi.suspense=void 0===t?null:t;try{o(e)}finally{Hi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=oa(ra),n=t[0];return t=t[1],[va(wa.bind(null,t,e),[t,e]),n]}},Ta={readContext:ui,useCallback:va,useContext:ui,useEffect:pa,useImperativeHandle:ma,useLayoutEffect:fa,useMemo:ba,useReducer:ia,useRef:la,useState:function(){return ia(ra)},useDebugValue:ga,useResponder:$i,useDeferredValue:function(e,t){var n=ia(ra),r=n[0],o=n[1];return pa((function(){var n=Hi.suspense;Hi.suspense=void 0===t?null:t;try{o(e)}finally{Hi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ia(ra),n=t[0];return t=t[1],[va(wa.bind(null,t,e),[t,e]),n]}},xa=null,Ca=null,Ia=!1;function Ra(e,t){var n=zl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Oa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Pa(e){if(Ia){var t=Ca;if(t){var n=t;if(!Oa(e,t)){if(!(t=Cn(n.nextSibling))||!Oa(e,t))return e.effectTag=-1025&e.effectTag|2,Ia=!1,void(xa=e);Ra(xa,n)}xa=e,Ca=Cn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Ia=!1,xa=e}}function Aa(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;xa=e}function La(e){if(e!==xa)return!1;if(!Ia)return Aa(e),Ia=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!kn(t,e.memoizedProps))for(t=Ca;t;)Ra(e,t),t=Cn(t.nextSibling);if(Aa(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if(n===vn){if(0===t){Ca=Cn(e.nextSibling);break e}t--}else n!==yn&&n!==wn&&n!==bn||t++}e=e.nextSibling}Ca=null}}else Ca=xa?Cn(e.stateNode.nextSibling):null;return!0}function Na(){Ca=xa=null,Ia=!1}var Ma=J.ReactCurrentOwner,Da=!1;function Fa(e,t,n,r){t.child=null===e?Ai(t,null,n,r):Pi(t,e.child,n,r)}function ja(e,t,n,r,o){n=n.render;var i=t.ref;return ci(t,o),r=ea(e,t,n,r,i,o),null===e||Da?(t.effectTag|=1,Fa(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),ts(e,t,o))}function Ua(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||ql(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=$l(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ba(e,t,a,r,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:Vr)(o,r)&&e.ref===t.ref)?ts(e,t,i):(t.effectTag|=1,(e=Wl(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ba(e,t,n,r,o,i){return null!==e&&Vr(e.memoizedProps,r)&&e.ref===t.ref&&(Da=!1,o<i)?(t.expirationTime=e.expirationTime,ts(e,t,i)):qa(e,t,n,r,i)}function za(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function qa(e,t,n,r,o){var i=_o(n)?wo:vo.current;return i=So(t,i),ci(t,o),n=ea(e,t,n,r,i,o),null===e||Da?(t.effectTag|=1,Fa(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),ts(e,t,o))}function Wa(e,t,n,r,o){if(_o(n)){var i=!0;xo(t)}else i=!1;if(ci(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),ki(t,n,r),xi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=ui(c):c=So(t,c=_o(n)?wo:vo.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&Ti(t,a,r,c),di=!1;var p=t.memoizedState;a.state=p,yi(t,r,a,o),l=t.memoizedState,s!==r||p!==l||bo.current||di?("function"==typeof u&&(Si(t,n,u,r),l=t.memoizedState),(s=di||Ei(t,n,s,r,p,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,fi(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:ti(t.type,s),l=a.context,"object"==typeof(c=n.contextType)&&null!==c?c=ui(c):c=So(t,c=_o(n)?wo:vo.current),(d="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&Ti(t,a,r,c),di=!1,l=t.memoizedState,a.state=l,yi(t,r,a,o),p=t.memoizedState,s!==r||l!==p||bo.current||di?("function"==typeof u&&(Si(t,n,u,r),p=t.memoizedState),(u=di||Ei(t,n,s,r,l,p,c))?(d||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,c)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return $a(e,t,n,r,i,o)}function $a(e,t,n,r,o,i){za(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return o&&Co(t,n,!1),ts(e,t,i);r=t.stateNode,Ma.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=Pi(t,e.child,null,i),t.child=Pi(t,null,s,i)):Fa(e,t,s,i),t.memoizedState=r.state,o&&Co(t,n,!0),t.child}function Va(e){var t=e.stateNode;t.pendingContext?ko(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ko(0,t.context,!1),ji(e,t.containerInfo)}var Ha,Ga,Ka,Ya,Ja={dehydrated:null,retryTime:0};function Xa(e,t,n){var r,o=t.mode,i=t.pendingProps,a=qi.current,s=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&a)&&(null===e||null!==e.memoizedState)),r?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),go(qi,1&a),null===e){if(void 0!==i.fallback&&Pa(t),s){if(s=i.fallback,(i=Vl(null,o,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Vl(s,o,n,null)).return=t,i.sibling=n,t.memoizedState=Ja,t.child=i,n}return o=i.children,t.memoizedState=null,t.child=Ai(t,null,o,n)}if(null!==e.memoizedState){if(o=(e=e.child).sibling,s){if(i=i.fallback,(n=Wl(e,e.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(o=Wl(o,i)).return=t,n.sibling=o,n.childExpirationTime=0,t.memoizedState=Ja,t.child=n,o}return n=Pi(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=i.fallback,(i=Vl(null,o,0,null)).return=t,i.child=e,null!==e&&(e.return=i),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Vl(s,o,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=Ja,t.child=i,n}return t.memoizedState=null,t.child=Pi(t,e,i.children,n)}function Qa(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),li(e.return,t)}function Za(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=o,a.lastEffect=i)}function es(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Fa(e,t,r.children,n),0!=(2&(r=qi.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Qa(e,n);else if(19===e.tag)Qa(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(go(qi,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Wi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Za(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Wi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Za(t,!0,n,null,i,t.lastEffect);break;case"together":Za(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ts(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&El(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Wl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Wl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ns(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function rs(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return _o(t.type)&&Eo(),null;case 3:return Ui(),mo(bo),mo(vo),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!La(t)||(t.effectTag|=4),Ga(t),null;case 5:zi(t),n=Fi(Di.current);var i=t.type;if(null!==e&&null!=t.stateNode)Ka(e,t,i,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Fi(Ni.current),La(t)){r=t.stateNode,i=t.type;var s=t.memoizedProps;switch(r[On]=t,r[Pn]=s,i){case"iframe":case"object":case"embed":Kt("load",r);break;case"video":case"audio":for(e=0;e<Xe.length;e++)Kt(Xe[e],r);break;case"source":Kt("error",r);break;case"img":case"image":case"link":Kt("error",r),Kt("load",r);break;case"form":Kt("reset",r),Kt("submit",r);break;case"details":Kt("toggle",r);break;case"input":Ee(r,s),Kt("invalid",r),cn(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Kt("invalid",r),cn(n,"onChange");break;case"textarea":Pe(r,s),Kt("invalid",r),cn(n,"onChange")}for(var l in an(i,s),e=null,s)if(s.hasOwnProperty(l)){var c=s[l];"children"===l?"string"==typeof c?r.textContent!==c&&(e=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(e=["children",""+c]):k.hasOwnProperty(l)&&null!=c&&cn(n,l)}switch(i){case"input":we(r),xe(r,s,!0);break;case"textarea":we(r),Le(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=un)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(l=9===n.nodeType?n:n.ownerDocument,e===ln&&(e=De(i)),e===ln?"script"===i?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(i,{is:r.is}):(e=l.createElement(i),"select"===i&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,i),e[On]=t,e[Pn]=r,Ha(e,t,!1,!1),t.stateNode=e,l=sn(i,r),i){case"iframe":case"object":case"embed":Kt("load",e),c=r;break;case"video":case"audio":for(c=0;c<Xe.length;c++)Kt(Xe[c],e);c=r;break;case"source":Kt("error",e),c=r;break;case"img":case"image":case"link":Kt("error",e),Kt("load",e),c=r;break;case"form":Kt("reset",e),Kt("submit",e),c=r;break;case"details":Kt("toggle",e),c=r;break;case"input":Ee(e,r),c=_e(e,r),Kt("invalid",e),cn(n,"onChange");break;case"option":c=Ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},c=o({},r,{value:void 0}),Kt("invalid",e),cn(n,"onChange");break;case"textarea":Pe(e,r),c=Oe(e,r),Kt("invalid",e),cn(n,"onChange");break;default:c=r}an(i,c);var u=c;for(s in u)if(u.hasOwnProperty(s)){var d=u[s];"style"===s?rn(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&Be(e,d):"children"===s?"string"==typeof d?("textarea"!==i||""!==d)&&ze(e,d):"number"==typeof d&&ze(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(k.hasOwnProperty(s)?null!=d&&cn(n,s):null!=d&&X(e,s,d,l))}switch(i){case"input":we(e),xe(e,r,!1);break;case"textarea":we(e),Le(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ve(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Re(e,!!r.multiple,n,!1):null!=r.defaultValue&&Re(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof c.onClick&&(e.onclick=un)}En(i,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ya(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Fi(Di.current),Fi(Ni.current),La(t)?(n=t.stateNode,r=t.memoizedProps,n[On]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[On]=t,t.stateNode=n)}return null;case 13:return mo(qi),r=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&La(t):(r=null!==(i=e.memoizedState),n||null===i||null!==(i=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=i,i.nextEffect=s):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&qi.current)?Ws===Ls&&(Ws=Ds):(Ws!==Ls&&Ws!==Ds||(Ws=Fs),0!==Ks&&null!==Bs&&(Jl(Bs,qs),Xl(Bs,Ks)))),(n||r)&&(t.effectTag|=4),null);case 4:return Ui(),Ga(t),null;case 10:return si(t),null;case 19:if(mo(qi),null===(r=t.memoizedState))return null;if(i=0!=(64&t.effectTag),null===(s=r.rendering)){if(i)ns(r,!1);else if(Ws!==Ls||null!==e&&0!=(64&e.effectTag))for(s=t.child;null!==s;){if(null!==(e=Wi(s))){for(t.effectTag|=64,ns(r,!1),null!==(i=e.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)s=n,(i=r).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(e=i.alternate)?(i.childExpirationTime=0,i.expirationTime=s,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,s=e.dependencies,i.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return go(qi,1&qi.current|2),t.child}s=s.sibling}}else{if(!i)if(null!==(e=Wi(s))){if(t.effectTag|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),ns(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Ho()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,i=!0,ns(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Ho()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Ho(),n.sibling=null,t=qi.current,go(qi,i?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function os(e){switch(e.tag){case 1:_o(e.type)&&Eo();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Ui(),mo(bo),mo(vo),0!=(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return zi(e),null;case 13:return mo(qi),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return mo(qi),null;case 4:return Ui(),null;case 10:return si(e),null;default:return null}}function is(e,t){return{value:e,source:t,stack:ye(t)}}Ha=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ga=function(){},Ka=function(e,t,n,r,i){var a=e.memoizedProps;if(a!==r){var s,l,c=t.stateNode;switch(Fi(Ni.current),e=null,n){case"input":a=_e(c,a),r=_e(c,r),e=[];break;case"option":a=Ie(c,a),r=Ie(c,r),e=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),e=[];break;case"textarea":a=Oe(c,a),r=Oe(c,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(c.onclick=un)}for(s in an(n,r),n=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(l in c=a[s])c.hasOwnProperty(l)&&(n||(n={}),n[l]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(k.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in r){var u=r[s];if(c=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&u!==c&&(null!=u||null!=c))if("style"===s)if(c){for(l in c)!c.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in u)u.hasOwnProperty(l)&&c[l]!==u[l]&&(n||(n={}),n[l]=u[l])}else n||(e||(e=[]),e.push(s,n)),n=u;else"dangerouslySetInnerHTML"===s?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(e=e||[]).push(s,u)):"children"===s?c===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(s,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(k.hasOwnProperty(s)?(null!=u&&cn(i,s),e||c===u||(e=[])):(e=e||[]).push(s,u))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}},Ya=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var as="function"==typeof WeakSet?WeakSet:Set;function ss(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ye(n)),null!==n&&ge(n.type),t=t.value,null!==e&&1===e.tag&&ge(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function ls(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Ml(e,t)}else t.current=null}function cs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:ti(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return}throw Error(a(163))}function us(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function ds(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ps(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void ds(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:ti(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&vi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}vi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&En(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Ft(n)))))}throw Error(a(163))}function fs(e,t,n){switch("function"==typeof Ul&&Ul(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Yo(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var o=t;try{n()}catch(e){Ml(o,e)}}e=e.next}while(e!==r)}))}break;case 1:ls(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Ml(e,t)}}(t,n);break;case 5:ls(t);break;case 4:bs(e,t,n)}}function hs(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&hs(t)}function ms(e){return 5===e.tag||3===e.tag||4===e.tag}function gs(e){e:{for(var t=e.return;null!==t;){if(ms(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(ze(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ms(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?ys(e,n,t):vs(e,n,t)}function ys(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=un));else if(4!==r&&null!==(e=e.child))for(ys(e,t,n),e=e.sibling;null!==e;)ys(e,t,n),e=e.sibling}function vs(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(vs(e,t,n),e=e.sibling;null!==e;)vs(e,t,n),e=e.sibling}function bs(e,t,n){for(var r,o,i=t,s=!1;;){if(!s){s=i.return;e:for(;;){if(null===s)throw Error(a(160));switch(r=s.stateNode,s.tag){case 5:o=!1;break e;case 3:case 4:r=r.containerInfo,o=!0;break e}s=s.return}s=!0}if(5===i.tag||6===i.tag){e:for(var l=e,c=i,u=n,d=c;;)if(fs(l,d,u),null!==d.child&&4!==d.tag)d.child.return=d,d=d.child;else{if(d===c)break e;for(;null===d.sibling;){if(null===d.return||d.return===c)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}o?(l=r,c=i.stateNode,8===l.nodeType?l.parentNode.removeChild(c):l.removeChild(c)):r.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){r=i.stateNode.containerInfo,o=!0,i.child.return=i,i=i.child;continue}}else if(fs(e,i,n),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(s=!1)}i.sibling.return=i.return,i=i.sibling}}function ws(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void us(3,t);case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Pn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&ke(n,r),sn(e,o),t=sn(e,r),o=0;o<i.length;o+=2){var s=i[o],l=i[o+1];"style"===s?rn(n,l):"dangerouslySetInnerHTML"===s?Be(n,l):"children"===s?ze(n,l):X(n,s,l,t)}switch(e){case"input":Te(n,r);break;case"textarea":Ae(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Re(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Re(n,!!r.multiple,r.defaultValue,!0):Re(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Ft(t.containerInfo)));case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Js=Ho()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,r?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,o=null!=(o=e.memoizedProps.style)&&o.hasOwnProperty("display")?o.display:null,i.style.display=nn("display",o));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void Ss(t);case 19:return void Ss(t)}throw Error(a(163))}function Ss(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new as),t.forEach((function(t){var r=Fl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var _s="function"==typeof WeakMap?WeakMap:Map;function Es(e,t,n){(n=hi(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Zs||(Zs=!0,el=r),ss(e,t)},n}function ks(e,t,n){(n=hi(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return ss(e,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===tl?tl=new Set([this]):tl.add(this),ss(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var Ts,xs=Math.ceil,Cs=J.ReactCurrentDispatcher,Is=J.ReactCurrentOwner,Rs=0,Os=8,Ps=16,As=32,Ls=0,Ns=1,Ms=2,Ds=3,Fs=4,js=5,Us=Rs,Bs=null,zs=null,qs=0,Ws=Ls,$s=null,Vs=1073741823,Hs=1073741823,Gs=null,Ks=0,Ys=!1,Js=0,Xs=500,Qs=null,Zs=!1,el=null,tl=null,nl=!1,rl=null,ol=90,il=null,al=0,sl=null,ll=0;function cl(){return(Us&(Ps|As))!==Rs?1073741821-(Ho()/10|0):0!==ll?ll:ll=1073741821-(Ho()/10|0)}function ul(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=Go();if(0==(4&t))return 99===r?1073741823:1073741822;if((Us&Ps)!==Rs)return qs;if(null!==n)e=ei(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=ei(e,150,100);break;case 97:case 96:e=ei(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==Bs&&e===qs&&--e,e}function dl(e,t){if(50<al)throw al=0,sl=null,Error(a(185));if(null!==(e=pl(e,t))){var n=Go();1073741823===t?(Us&Os)!==Rs&&(Us&(Ps|As))===Rs?gl(e):(hl(e),Us===Rs&&Qo()):hl(e),(4&Us)===Rs||98!==n&&99!==n||(null===il?il=new Map([[e,t]]):(void 0===(n=il.get(e))||n>t)&&il.set(e,t))}}function pl(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,o=null;if(null===r&&3===e.tag)o=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){o=r.stateNode;break}r=r.return}return null!==o&&(Bs===o&&(El(t),Ws===Fs&&Jl(o,qs)),Xl(o,t)),o}function fl(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Yl(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function hl(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Xo(gl.bind(null,e));else{var t=fl(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=cl();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=r)return;n!==Uo&&Oo(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Xo(gl.bind(null,e)):Jo(r,ml.bind(null,e),{timeout:10*(1073741821-t)-Ho()}),e.callbackNode=t}}}function ml(e,t){if(ll=0,t)return Ql(e,t=cl()),hl(e),null;var n=fl(e);if(0!==n){if(t=e.callbackNode,(Us&(Ps|As))!==Rs)throw Error(a(327));if(Al(),e===Bs&&n===qs||bl(e,n),null!==zs){var r=Us;Us|=Ps;for(var o=Sl();;)try{Tl();break}catch(t){wl(e,t)}if(ai(),Us=r,Cs.current=o,Ws===Ns)throw t=$s,bl(e,n),Jl(e,n),hl(e),t;if(null===zs)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Ws,Bs=null,r){case Ls:case Ns:throw Error(a(345));case Ms:Ql(e,2<n?2:n);break;case Ds:if(Jl(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Il(o)),1073741823===Vs&&10<(o=Js+Xs-Ho())){if(Ys){var i=e.lastPingedTime;if(0===i||i>=n){e.lastPingedTime=n,bl(e,n);break}}if(0!==(i=fl(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=Tn(Rl.bind(null,e),o);break}Rl(e);break;case Fs:if(Jl(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Il(o)),Ys&&(0===(o=e.lastPingedTime)||o>=n)){e.lastPingedTime=n,bl(e,n);break}if(0!==(o=fl(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Hs?r=10*(1073741821-Hs)-Ho():1073741823===Vs?r=0:(r=10*(1073741821-Vs)-5e3,0>(r=(o=Ho())-r)&&(r=0),(n=10*(1073741821-n)-o)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xs(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=Tn(Rl.bind(null,e),r);break}Rl(e);break;case js:if(1073741823!==Vs&&null!==Gs){i=Vs;var s=Gs;if(0>=(r=0|s.busyMinDurationMs)?r=0:(o=0|s.busyDelayMs,r=(i=Ho()-(10*(1073741821-i)-(0|s.timeoutMs||5e3)))<=o?0:o+r-i),10<r){Jl(e,n),e.timeoutHandle=Tn(Rl.bind(null,e),r);break}}Rl(e);break;default:throw Error(a(329))}if(hl(e),e.callbackNode===t)return ml.bind(null,e)}}return null}function gl(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,(Us&(Ps|As))!==Rs)throw Error(a(327));if(Al(),e===Bs&&t===qs||bl(e,t),null!==zs){var n=Us;Us|=Ps;for(var r=Sl();;)try{kl();break}catch(t){wl(e,t)}if(ai(),Us=n,Cs.current=r,Ws===Ns)throw n=$s,bl(e,t),Jl(e,t),hl(e),n;if(null!==zs)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Bs=null,Rl(e),hl(e)}return null}function yl(e,t){var n=Us;Us|=1;try{return e(t)}finally{(Us=n)===Rs&&Qo()}}function vl(e,t){var n=Us;Us&=-2,Us|=Os;try{return e(t)}finally{(Us=n)===Rs&&Qo()}}function bl(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,xn(n)),null!==zs)for(n=zs.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&Eo();break;case 3:Ui(),mo(bo),mo(vo);break;case 5:zi(r);break;case 4:Ui();break;case 13:case 19:mo(qi);break;case 10:si(r)}n=n.return}Bs=e,zs=Wl(e.current,null),qs=t,Ws=Ls,$s=null,Hs=Vs=1073741823,Gs=null,Ks=0,Ys=!1}function wl(e,t){for(;;){try{if(ai(),Vi.current=_a,Xi)for(var n=Ki.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Gi=0,Ji=Yi=Ki=null,Xi=!1,null===zs||null===zs.return)return Ws=Ns,$s=t,zs=null;e:{var o=e,i=zs.return,a=zs,s=t;if(t=qs,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var l=s;if(0==(2&a.mode)){var c=a.alternate;c?(a.updateQueue=c.updateQueue,a.memoizedState=c.memoizedState,a.expirationTime=c.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var u=0!=(1&qi.current),d=i;do{var p;if(p=13===d.tag){var f=d.memoizedState;if(null!==f)p=null!==f.dehydrated;else{var h=d.memoizedProps;p=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!u)}}if(p){var m=d.updateQueue;if(null===m){var g=new Set;g.add(l),d.updateQueue=g}else m.add(l);if(0==(2&d.mode)){if(d.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var y=hi(1073741823,null);y.tag=2,mi(a,y)}a.expirationTime=1073741823;break e}s=void 0,a=t;var v=o.pingCache;if(null===v?(v=o.pingCache=new _s,s=new Set,v.set(l,s)):void 0===(s=v.get(l))&&(s=new Set,v.set(l,s)),!s.has(a)){s.add(a);var b=Dl.bind(null,o,l,a);l.then(b,b)}d.effectTag|=4096,d.expirationTime=t;break e}d=d.return}while(null!==d);s=Error((ge(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ye(a))}Ws!==js&&(Ws=Ms),s=is(s,a),d=i;do{switch(d.tag){case 3:l=s,d.effectTag|=4096,d.expirationTime=t,gi(d,Es(d,l,t));break e;case 1:l=s;var w=d.type,S=d.stateNode;if(0==(64&d.effectTag)&&("function"==typeof w.getDerivedStateFromError||null!==S&&"function"==typeof S.componentDidCatch&&(null===tl||!tl.has(S)))){d.effectTag|=4096,d.expirationTime=t,gi(d,ks(d,l,t));break e}}d=d.return}while(null!==d)}zs=Cl(zs)}catch(e){t=e;continue}break}}function Sl(){var e=Cs.current;return Cs.current=_a,null===e?_a:e}function _l(e,t){e<Vs&&2<e&&(Vs=e),null!==t&&e<Hs&&2<e&&(Hs=e,Gs=t)}function El(e){e>Ks&&(Ks=e)}function kl(){for(;null!==zs;)zs=xl(zs)}function Tl(){for(;null!==zs&&!Bo();)zs=xl(zs)}function xl(e){var t=Ts(e.alternate,e,qs);return e.memoizedProps=e.pendingProps,null===t&&(t=Cl(e)),Is.current=null,t}function Cl(e){zs=e;do{var t=zs.alternate;if(e=zs.return,0==(2048&zs.effectTag)){if(t=rs(t,zs,qs),1===qs||1!==zs.childExpirationTime){for(var n=0,r=zs.child;null!==r;){var o=r.expirationTime,i=r.childExpirationTime;o>n&&(n=o),i>n&&(n=i),r=r.sibling}zs.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=zs.firstEffect),null!==zs.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=zs.firstEffect),e.lastEffect=zs.lastEffect),1<zs.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=zs:e.firstEffect=zs,e.lastEffect=zs))}else{if(null!==(t=os(zs)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=zs.sibling))return t;zs=e}while(null!==zs);return Ws===Ls&&(Ws=js),null}function Il(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function Rl(e){var t=Go();return Yo(99,Ol.bind(null,e,t)),null}function Ol(e,t){do{Al()}while(null!==rl);if((Us&(Ps|As))!==Rs)throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var o=Il(n);if(e.firstPendingTime=o,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Bs&&(zs=Bs=null,qs=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){var i=Us;Us|=As,Is.current=null,Sn=Gt;var s=mn();if(gn(s)){if("selectionStart"in s)var l={start:s.selectionStart,end:s.selectionEnd};else e:{var c=(l=(l=s.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection();if(c&&0!==c.rangeCount){l=c.anchorNode;var u=c.anchorOffset,d=c.focusNode;c=c.focusOffset;try{l.nodeType,d.nodeType}catch(e){l=null;break e}var p=0,f=-1,h=-1,m=0,g=0,y=s,v=null;t:for(;;){for(var b;y!==l||0!==u&&3!==y.nodeType||(f=p+u),y!==d||0!==c&&3!==y.nodeType||(h=p+c),3===y.nodeType&&(p+=y.nodeValue.length),null!==(b=y.firstChild);)v=y,y=b;for(;;){if(y===s)break t;if(v===l&&++m===u&&(f=p),v===d&&++g===c&&(h=p),null!==(b=y.nextSibling))break;v=(y=v).parentNode}y=b}l=-1===f||-1===h?null:{start:f,end:h}}else l=null}l=l||{start:0,end:0}}else l=null;_n={activeElementDetached:null,focusedElem:s,selectionRange:l},Gt=!1,Qs=o;do{try{Pl()}catch(e){if(null===Qs)throw Error(a(330));Ml(Qs,e),Qs=Qs.nextEffect}}while(null!==Qs);Qs=o;do{try{for(s=e,l=t;null!==Qs;){var w=Qs.effectTag;if(16&w&&ze(Qs.stateNode,""),128&w){var S=Qs.alternate;if(null!==S){var _=S.ref;null!==_&&("function"==typeof _?_(null):_.current=null)}}switch(1038&w){case 2:gs(Qs),Qs.effectTag&=-3;break;case 6:gs(Qs),Qs.effectTag&=-3,ws(Qs.alternate,Qs);break;case 1024:Qs.effectTag&=-1025;break;case 1028:Qs.effectTag&=-1025,ws(Qs.alternate,Qs);break;case 4:ws(Qs.alternate,Qs);break;case 8:bs(s,u=Qs,l),hs(u)}Qs=Qs.nextEffect}}catch(e){if(null===Qs)throw Error(a(330));Ml(Qs,e),Qs=Qs.nextEffect}}while(null!==Qs);if(_=_n,S=mn(),w=_.focusedElem,l=_.selectionRange,S!==w&&w&&w.ownerDocument&&hn(w.ownerDocument.documentElement,w)){null!==l&&gn(w)&&(S=l.start,void 0===(_=l.end)&&(_=S),"selectionStart"in w?(w.selectionStart=S,w.selectionEnd=Math.min(_,w.value.length)):(_=(S=w.ownerDocument||document)&&S.defaultView||window).getSelection&&(_=_.getSelection(),u=w.textContent.length,s=Math.min(l.start,u),l=void 0===l.end?s:Math.min(l.end,u),!_.extend&&s>l&&(u=l,l=s,s=u),u=fn(w,s),d=fn(w,l),u&&d&&(1!==_.rangeCount||_.anchorNode!==u.node||_.anchorOffset!==u.offset||_.focusNode!==d.node||_.focusOffset!==d.offset)&&((S=S.createRange()).setStart(u.node,u.offset),_.removeAllRanges(),s>l?(_.addRange(S),_.extend(d.node,d.offset)):(S.setEnd(d.node,d.offset),_.addRange(S))))),S=[];for(_=w;_=_.parentNode;)1===_.nodeType&&S.push({element:_,left:_.scrollLeft,top:_.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<S.length;w++)(_=S[w]).element.scrollLeft=_.left,_.element.scrollTop=_.top}Gt=!!Sn,_n=Sn=null,e.current=n,Qs=o;do{try{for(w=e;null!==Qs;){var E=Qs.effectTag;if(36&E&&ps(w,Qs.alternate,Qs),128&E){S=void 0;var k=Qs.ref;if(null!==k){var T=Qs.stateNode;Qs.tag,S=T,"function"==typeof k?k(S):k.current=S}}Qs=Qs.nextEffect}}catch(e){if(null===Qs)throw Error(a(330));Ml(Qs,e),Qs=Qs.nextEffect}}while(null!==Qs);Qs=null,zo(),Us=i}else e.current=n;if(nl)nl=!1,rl=e,ol=t;else for(Qs=o;null!==Qs;)t=Qs.nextEffect,Qs.nextEffect=null,Qs=t;if(0===(t=e.firstPendingTime)&&(tl=null),1073741823===t?e===sl?al++:(al=0,sl=e):al=0,"function"==typeof jl&&jl(n.stateNode,r),hl(e),Zs)throw Zs=!1,e=el,el=null,e;return(Us&Os)!==Rs||Qo(),null}function Pl(){for(;null!==Qs;){var e=Qs.effectTag;0!=(256&e)&&cs(Qs.alternate,Qs),0==(512&e)||nl||(nl=!0,Jo(97,(function(){return Al(),null}))),Qs=Qs.nextEffect}}function Al(){if(90!==ol){var e=97<ol?97:ol;return ol=90,Yo(e,Ll)}}function Ll(){if(null===rl)return!1;var e=rl;if(rl=null,(Us&(Ps|As))!==Rs)throw Error(a(331));var t=Us;for(Us|=As,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:us(5,n),ds(5,n)}}catch(t){if(null===e)throw Error(a(330));Ml(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return Us=t,Qo(),!0}function Nl(e,t,n){mi(e,t=Es(e,t=is(n,t),1073741823)),null!==(e=pl(e,1073741823))&&hl(e)}function Ml(e,t){if(3===e.tag)Nl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Nl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===tl||!tl.has(r))){mi(n,e=ks(n,e=is(t,e),1073741823)),null!==(n=pl(n,1073741823))&&hl(n);break}}n=n.return}}function Dl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Bs===e&&qs===n?Ws===Fs||Ws===Ds&&1073741823===Vs&&Ho()-Js<Xs?bl(e,qs):Ys=!0:Yl(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,hl(e)))}function Fl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=ul(t=cl(),e,null)),null!==(e=pl(e,t))&&hl(e)}Ts=function(e,t,n){var r=t.expirationTime;if(null!==e){var o=t.pendingProps;if(e.memoizedProps!==o||bo.current)Da=!0;else{if(r<n){switch(Da=!1,t.tag){case 3:Va(t),Na();break;case 5:if(Bi(t),4&t.mode&&1!==n&&o.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:_o(t.type)&&xo(t);break;case 4:ji(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,o=t.type._context,go(ni,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Xa(e,t,n):(go(qi,1&qi.current),null!==(t=ts(e,t,n))?t.sibling:null);go(qi,1&qi.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return es(e,t,n);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),go(qi,qi.current),!r)return null}return ts(e,t,n)}Da=!1}}else Da=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,o=So(t,vo.current),ci(t,n),o=ea(null,t,r,e,o,n),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,_o(r)){var i=!0;xo(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,pi(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&Si(t,r,s,e),o.updater=_i,t.stateNode=o,o._reactInternalFiber=t,xi(t,r,e,n),t=$a(null,t,r,!0,i,n)}else t.tag=0,Fa(null,t,o,n),t=t.child;return t;case 16:e:{if(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(o),1!==o._status)throw o._result;switch(o=o._result,t.type=o,i=t.tag=function(e){if("function"==typeof e)return ql(e)?1:0;if(null!=e){if((e=e.$$typeof)===le)return 11;if(e===de)return 14}return 2}(o),e=ti(o,e),i){case 0:t=qa(null,t,o,e,n);break e;case 1:t=Wa(null,t,o,e,n);break e;case 11:t=ja(null,t,o,e,n);break e;case 14:t=Ua(null,t,o,ti(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,qa(e,t,r,o=t.elementType===r?o:ti(r,o),n);case 1:return r=t.type,o=t.pendingProps,Wa(e,t,r,o=t.elementType===r?o:ti(r,o),n);case 3:if(Va(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,fi(e,t),yi(t,r,null,n),(r=t.memoizedState.element)===o)Na(),t=ts(e,t,n);else{if((o=t.stateNode.hydrate)&&(Ca=Cn(t.stateNode.containerInfo.firstChild),xa=t,o=Ia=!0),o)for(n=Ai(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Fa(e,t,r,n),Na();t=t.child}return t;case 5:return Bi(t),null===e&&Pa(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,kn(r,o)?s=null:null!==i&&kn(r,i)&&(t.effectTag|=16),za(e,t),4&t.mode&&1!==n&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Fa(e,t,s,n),t=t.child),t;case 6:return null===e&&Pa(t),null;case 13:return Xa(e,t,n);case 4:return ji(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Pi(t,null,r,n):Fa(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,ja(e,t,r,o=t.elementType===r?o:ti(r,o),n);case 7:return Fa(e,t,t.pendingProps,n),t.child;case 8:case 12:return Fa(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value;var l=t.type._context;if(go(ni,l._currentValue),l._currentValue=i,null!==s)if(l=s.value,0===(i=Wr(l,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,i):1073741823))){if(s.children===o.children&&!bo.current){t=ts(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){s=l.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&0!=(u.observedBits&i)){1===l.tag&&((u=hi(n,null)).tag=2,mi(l,u)),l.expirationTime<n&&(l.expirationTime=n),null!==(u=l.alternate)&&u.expirationTime<n&&(u.expirationTime=n),li(l.return,n),c.expirationTime<n&&(c.expirationTime=n);break}u=u.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Fa(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ci(t,n),r=r(o=ui(o,i.unstable_observedBits)),t.effectTag|=1,Fa(e,t,r,n),t.child;case 14:return i=ti(o=t.type,t.pendingProps),Ua(e,t,o,i=ti(o.type,i),r,n);case 15:return Ba(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ti(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,_o(r)?(e=!0,xo(t)):e=!1,ci(t,n),ki(t,r,o),xi(t,r,o,n),$a(null,t,r,!0,e,n);case 19:return es(e,t,n)}throw Error(a(156,t.tag))};var jl=null,Ul=null;function Bl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function zl(e,t,n,r){return new Bl(e,t,n,r)}function ql(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Wl(e,t){var n=e.alternate;return null===n?((n=zl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $l(e,t,n,r,o,i){var s=2;if(r=e,"function"==typeof e)ql(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case ne:return Vl(n.children,o,i,t);case se:s=8,o|=7;break;case re:s=8,o|=1;break;case oe:return(e=zl(12,n,t,8|o)).elementType=oe,e.type=oe,e.expirationTime=i,e;case ce:return(e=zl(13,n,t,o)).type=ce,e.elementType=ce,e.expirationTime=i,e;case ue:return(e=zl(19,n,t,o)).elementType=ue,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ie:s=10;break e;case ae:s=9;break e;case le:s=11;break e;case de:s=14;break e;case pe:s=16,r=null;break e;case fe:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=zl(s,n,t,o)).elementType=e,t.type=r,t.expirationTime=i,t}function Vl(e,t,n,r){return(e=zl(7,e,r,t)).expirationTime=n,e}function Hl(e,t,n){return(e=zl(6,e,null,t)).expirationTime=n,e}function Gl(e,t,n){return(t=zl(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Kl(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Yl(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Jl(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Xl(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Ql(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Zl(e,t,n,r){var o=t.current,i=cl(),s=bi.suspense;i=ul(i,o,s);e:if(n){t:{if(et(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(_o(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var c=n.type;if(_o(c)){n=To(n,c,l);break e}}n=l}else n=yo;return null===t.context?t.context=n:t.pendingContext=n,(t=hi(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),mi(o,t),dl(o,i),i}function ec(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function tc(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function nc(e,t){tc(e,t),(e=e.alternate)&&tc(e,t)}function rc(e,t,n){var r=new Kl(e,t,n=null!=n&&!0===n.hydrate),o=zl(3,null,null,2===t?7:1===t?3:0);r.current=o,o.stateNode=r,pi(o),e[An]=r.current,n&&0!==t&&function(e,t){var n=Ze(t);Ct.forEach((function(e){mt(e,t,n)})),It.forEach((function(e){mt(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function oc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ic(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof o){var s=o;o=function(){var e=ec(a);s.call(e)}}Zl(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new rc(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var l=o;o=function(){var e=ec(a);l.call(e)}}vl((function(){Zl(t,a,e,o)}))}return ec(a)}function ac(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!oc(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}rc.prototype.render=function(e){Zl(e,this._internalRoot,null,null)},rc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Zl(null,e,null,(function(){t[An]=null}))},gt=function(e){if(13===e.tag){var t=ei(cl(),150,100);dl(e,t),nc(e,t)}},yt=function(e){13===e.tag&&(dl(e,3),nc(e,3))},vt=function(e){if(13===e.tag){var t=cl();dl(e,t=ul(t,e,null)),nc(e,t)}},I=function(e,t,n){switch(t){case"input":if(Te(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Dn(r);if(!o)throw Error(a(90));Se(r),Te(r,o)}}}break;case"textarea":Ae(e,n);break;case"select":null!=(t=n.value)&&Re(e,!!n.multiple,t,!1)}},N=yl,M=function(e,t,n,r,o){var i=Us;Us|=4;try{return Yo(98,e.bind(null,t,n,r,o))}finally{(Us=i)===Rs&&Qo()}},D=function(){(Us&(1|Ps|As))===Rs&&(function(){if(null!==il){var e=il;il=null,e.forEach((function(e,t){Ql(t,e),hl(t)})),Qo()}}(),Al())},F=function(e,t){var n=Us;Us|=2;try{return e(t)}finally{(Us=n)===Rs&&Qo()}};var sc={Events:[Nn,Mn,Dn,x,E,Wn,function(e){it(e,qn)},A,L,Qt,lt,Al,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);jl=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},Ul=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}})(o({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:J.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=rt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:Ln,bundleType:0,version:"16.13.1",rendererPackageName:"react-dom"}),t.unstable_batchedUpdates=yl},40961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(22551)},22799:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case o:return t}}}function _(e){return S(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return _(e)||S(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return S(e)===c},t.isContextProvider=function(e){return S(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return S(e)===p},t.isFragment=function(e){return S(e)===i},t.isLazy=function(e){return S(e)===g},t.isMemo=function(e){return S(e)===m},t.isPortal=function(e){return S(e)===o},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=S},44363:(e,t,n)=>{"use strict";e.exports=n(22799)},15287:(e,t,n)=>{"use strict";var r=n(45228),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,s=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,u=o?Symbol.for("react.provider"):60109,d=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.forward_ref"):60112,f=o?Symbol.for("react.suspense"):60113,h=o?Symbol.for("react.memo"):60115,m=o?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function w(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||v}function S(){}function _(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||v}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(y(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},S.prototype=w.prototype;var E=_.prototype=new S;E.constructor=_,r(E,w.prototype),E.isPureReactComponent=!0;var k={current:null},T=Object.prototype.hasOwnProperty,x={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var r,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)T.call(t,r)&&!x.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:k.current}}function I(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var R=/\/+/g,O=[];function P(e,t,n,r){if(O.length){var o=O.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function A(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>O.length&&O.push(e)}function L(e,t,n,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var s=!1;if(null===e)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case i:case a:s=!0}}if(s)return n(r,e,""===t?"."+M(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;l<e.length;l++){var c=t+M(o=e[l],l);s+=L(o,c,n,r)}else if(null===e||"object"!=typeof e?c=null:c="function"==typeof(c=g&&e[g]||e["@@iterator"])?c:null,"function"==typeof c)for(e=c.call(e),l=0;!(o=e.next()).done;)s+=L(o=o.value,c=t+M(o,l++),n,r);else if("object"===o)throw n=""+e,Error(y(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return s}function N(e,t,n){return null==e?0:L(e,"",t,n)}function M(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function D(e,t){e.func.call(e.context,t,e.count++)}function F(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?j(e,r,n,(function(e){return e})):null!=e&&(I(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(R,"$&/")+"/")+n)),r.push(e))}function j(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(R,"$&/")+"/"),N(e,F,t=P(t,i,r,o)),A(t)}var U={current:null};function B(){var e=U.current;if(null===e)throw Error(y(321));return e}var z={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:k,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return j(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;N(e,D,t=P(null,null,t,n)),A(t)},count:function(e){return N(e,(function(){return null}),null)},toArray:function(e){var t=[];return j(e,t,null,(function(e){return e})),t},only:function(e){if(!I(e))throw Error(y(143));return e}},t.Component=w,t.Fragment=s,t.Profiler=c,t.PureComponent=_,t.StrictMode=l,t.Suspense=f,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,t.cloneElement=function(e,t,n){if(null==e)throw Error(y(267,e));var o=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=k.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)T.call(t,u)&&!x.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];o.children=c}return{$$typeof:i,type:e.type,key:a,ref:s,props:o,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:p,render:e}},t.isValidElement=I,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return B().useCallback(e,t)},t.useContext=function(e,t){return B().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return B().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return B().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return B().useLayoutEffect(e,t)},t.useMemo=function(e,t){return B().useMemo(e,t)},t.useReducer=function(e,t,n){return B().useReducer(e,t,n)},t.useRef=function(e){return B().useRef(e)},t.useState=function(e){return B().useState(e)},t.version="16.13.1"},96540:(e,t,n)=>{"use strict";e.exports=n(15287)},7463:(e,t)=>{"use strict";var n,r,o,i,a;if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,l=null,c=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(c,0),e}},u=Date.now();t.unstable_now=function(){return Date.now()-u},n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(c,0))},r=function(e,t){l=setTimeout(e,t)},o=function(){clearTimeout(l)},i=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,p=window.Date,f=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var g=p.now();t.unstable_now=function(){return p.now()-g}}var y=!1,v=null,b=-1,w=5,S=0;i=function(){return t.unstable_now()>=S},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var _=new MessageChannel,E=_.port2;_.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();S=e+w;try{v(!0,e)?E.postMessage(null):(y=!1,v=null)}catch(e){throw E.postMessage(null),e}}else y=!1},n=function(e){v=e,y||(y=!0,E.postMessage(null))},r=function(e,n){b=f((function(){e(t.unstable_now())}),n)},o=function(){h(b),b=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<C(o,t)))break e;e[r]=t,e[n]=o,n=r}}function T(e){return void 0===(e=e[0])?null:e}function x(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],s=i+1,l=e[s];if(void 0!==a&&0>C(a,n))void 0!==l&&0>C(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==l&&0>C(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var I=[],R=[],O=1,P=null,A=3,L=!1,N=!1,M=!1;function D(e){for(var t=T(R);null!==t;){if(null===t.callback)x(R);else{if(!(t.startTime<=e))break;x(R),t.sortIndex=t.expirationTime,k(I,t)}t=T(R)}}function F(e){if(M=!1,D(e),!N)if(null!==T(I))N=!0,n(j);else{var t=T(R);null!==t&&r(F,t.startTime-e)}}function j(e,n){N=!1,M&&(M=!1,o()),L=!0;var a=A;try{for(D(n),P=T(I);null!==P&&(!(P.expirationTime>n)||e&&!i());){var s=P.callback;if(null!==s){P.callback=null,A=P.priorityLevel;var l=s(P.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?P.callback=l:P===T(I)&&x(I),D(n)}else x(I);P=T(I)}if(null!==P)var c=!0;else{var u=T(R);null!==u&&r(F,u.startTime-n),c=!1}return c}finally{P=null,A=a,L=!1}}function U(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){N||L||(N=!0,n(j))},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_getFirstCallbackNode=function(){return T(I)},t.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=A;A=e;try{return t()}finally{A=n}},t.unstable_scheduleCallback=function(e,i,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var l=a.delay;l="number"==typeof l&&0<l?s+l:s,a="number"==typeof a.timeout?a.timeout:U(e)}else a=U(e),l=s;return e={id:O++,callback:i,priorityLevel:e,startTime:l,expirationTime:a=l+a,sortIndex:-1},l>s?(e.sortIndex=l,k(R,e),null===T(I)&&e===T(R)&&(M?o():M=!0,r(F,l-s))):(e.sortIndex=a,k(I,e),N||L||(N=!0,n(j))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();D(e);var n=T(I);return n!==P&&null!==P&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<P.expirationTime||i()},t.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;try{return e.apply(this,arguments)}finally{A=n}}}},69982:(e,t,n)=>{"use strict";e.exports=n(7463)},85072:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},a=[],s=0;s<e.length;s++){var l=e[s],c=r.base?l[0]+r.base:l[0],u=i[c]||0,d="".concat(c," ").concat(u);i[c]=u+1;var p=n(d),f={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)t[p].references++,t[p].updater(f);else{var h=o(f,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:h,references:1})}a.push(d)}return a}function o(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var s=n(i[a]);t[s].references--}for(var l=r(e,o),c=0;c<i.length;c++){var u=n(i[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}i=l}}},77659:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},10540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},55056:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},97825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},41113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},9423:(e,t,n)=>{"use strict";e=n.hmd(e);!function(e){var t,n=e.Symbol;"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable"}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:e)}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return n[e](i,i.exports,o),i.loaded=!0,i.exports}o.m=n,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>(623===e?"PreviewPlayerComponent":e)+"-"+{623:"fb432267c23b476e1148",993:"a60956bcde961cc13248"}[e]+".js",o.miniCssF=e=>e+"-b6ddadaecfa066a21398.css",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="lalalai.web.www:",o.l=(n,r,i,a)=>{if(e[n])e[n].push(r);else{var s,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==n||d.getAttribute("data-webpack")==t+i){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",t+i),s.src=n),e[n]=[r];var p=(t,r)=>{s.onerror=s.onload=null,clearTimeout(f);var o=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(r))),t)return t(r)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.p="https://s.lalal.ai/bundles/",(()=>{if("undefined"!=typeof document){var e=e=>new Promise(((t,n)=>{var r=o.miniCssF(e),i=o.p+r;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var o=(a=n[r]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(o===e||o===t))return a}var i=document.getElementsByTagName("style");for(r=0;r<i.length;r++){var a;if((o=(a=i[r]).getAttribute("data-href"))===e||o===t)return a}})(r,i))return t();((e,t,n,r,o)=>{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.onerror=i.onload=n=>{if(i.onerror=i.onload=null,"load"===n.type)r();else{var a=n&&n.type,s=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+a+": "+s+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=a,l.request=s,i.parentNode&&i.parentNode.removeChild(i),o(l)}},i.href=t,n?n.parentNode.insertBefore(i,n.nextSibling):document.head.appendChild(i)})(e,i,null,t,n)})),t={76:0};o.f.miniCss=(n,r)=>{t[n]?r.push(t[n]):0!==t[n]&&{623:1}[n]&&r.push(t[n]=e(n).then((()=>{t[n]=0}),(e=>{throw delete t[n],e})))}}})(),(()=>{var e={76:0};o.f.j=(t,n)=>{var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=i);var a=o.p+o.u(t),s=new Error;o.l(a,(n=>{if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",s.name="ChunkLoadError",s.type=i,s.request=a,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,i,a=n[0],s=n[1],l=n[2],c=0;if(a.some((t=>0!==e[t]))){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);if(l)l(o)}for(t&&t(n);c<a.length;c++)i=a[c],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunklalalai_web_www=self.webpackChunklalalai_web_www||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),o.nc=void 0,(()=>{"use strict";var e={};o.r(e),o.d(e,{hasBrowserEnv:()=>Fn,hasStandardBrowserEnv:()=>jn,hasStandardBrowserWebWorkerEnv:()=>Bn,origin:()=>zn});var t=Symbol.for("immer-nothing"),n=Symbol.for("immer-draftable"),r=Symbol.for("immer-state");function i(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var a=Object.getPrototypeOf;function s(e){return!!e&&!!e[r]}function l(e){return!!e&&(u(e)||Array.isArray(e)||!!e[n]||!!e.constructor?.[n]||m(e)||g(e))}var c=Object.prototype.constructor.toString();function u(e){if(!e||"object"!=typeof e)return!1;const t=a(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===c}function d(e,t){0===p(e)?Reflect.ownKeys(e).forEach((n=>{t(n,e[n],e)})):e.forEach(((n,r)=>t(r,n,e)))}function p(e){const t=e[r];return t?t.type_:Array.isArray(e)?1:m(e)?2:g(e)?3:0}function f(e,t){return 2===p(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function h(e,t,n){const r=p(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function m(e){return e instanceof Map}function g(e){return e instanceof Set}function y(e){return e.copy_||e.base_}function v(e,t){if(m(e))return new Map(e);if(g(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=u(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[r];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(a(e),t)}{const t=a(e);if(null!==t&&n)return{...e};const r=Object.create(t);return Object.assign(r,e)}}function b(e,t=!1){return S(e)||s(e)||!l(e)||(p(e)>1&&(e.set=e.add=e.clear=e.delete=w),Object.freeze(e),t&&Object.entries(e).forEach((([e,t])=>b(t,!0)))),e}function w(){i(2)}function S(e){return Object.isFrozen(e)}var _,E={};function k(e){const t=E[e];return t||i(0),t}function T(){return _}function x(e,t){t&&(k("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function C(e){I(e),e.drafts_.forEach(O),e.drafts_=null}function I(e){e===_&&(_=e.parent_)}function R(e){return _={drafts_:[],parent_:_,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function O(e){const t=e[r];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function P(e,n){n.unfinalizedDrafts_=n.drafts_.length;const o=n.drafts_[0];return void 0!==e&&e!==o?(o[r].modified_&&(C(n),i(4)),l(e)&&(e=A(n,e),n.parent_||N(n,e)),n.patches_&&k("Patches").generateReplacementPatches_(o[r].base_,e,n.patches_,n.inversePatches_)):e=A(n,o,[]),C(n),n.patches_&&n.patchListener_(n.patches_,n.inversePatches_),e!==t?e:void 0}function A(e,t,n){if(S(t))return t;const o=t[r];if(!o)return d(t,((r,i)=>L(e,o,t,r,i,n))),t;if(o.scope_!==e)return t;if(!o.modified_)return N(e,o.base_,!0),o.base_;if(!o.finalized_){o.finalized_=!0,o.scope_.unfinalizedDrafts_--;const t=o.copy_;let r=t,i=!1;3===o.type_&&(r=new Set(t),t.clear(),i=!0),d(r,((r,a)=>L(e,o,t,r,a,n,i))),N(e,t,!1),n&&e.patches_&&k("Patches").generatePatches_(o,n,e.patches_,e.inversePatches_)}return o.copy_}function L(e,t,n,r,o,i,a){if(s(o)){const a=A(e,o,i&&t&&3!==t.type_&&!f(t.assigned_,r)?i.concat(r):void 0);if(h(n,r,a),!s(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(l(o)&&!S(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;A(e,o),t&&t.scope_.parent_||"symbol"==typeof r||!Object.prototype.propertyIsEnumerable.call(n,r)||N(e,o)}}function N(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&b(t,n)}var M={get(e,t){if(t===r)return e;const n=y(e);if(!f(n,t))return function(e,t,n){const r=j(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const o=n[t];return e.finalized_||!l(o)?o:o===F(e.base_,t)?(B(e),e.copy_[t]=z(o,e)):o},has:(e,t)=>t in y(e),ownKeys:e=>Reflect.ownKeys(y(e)),set(e,t,n){const o=j(y(e),t);if(o?.set)return o.set.call(e.draft_,n),!0;if(!e.modified_){const o=F(y(e),t),s=o?.[r];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((i=n)===(a=o)?0!==i||1/i==1/a:i!=i&&a!=a)&&(void 0!==n||f(e.base_,t)))return!0;B(e),U(e)}var i,a;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==F(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,B(e),U(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=y(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){i(11)},getPrototypeOf:e=>a(e.base_),setPrototypeOf(){i(12)}},D={};function F(e,t){const n=e[r];return(n?y(n):e)[t]}function j(e,t){if(!(t in e))return;let n=a(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=a(n)}}function U(e){e.modified_||(e.modified_=!0,e.parent_&&U(e.parent_))}function B(e){e.copy_||(e.copy_=v(e.base_,e.scope_.immer_.useStrictShallowCopy_))}d(M,((e,t)=>{D[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),D.deleteProperty=function(e,t){return D.set.call(this,e,t,void 0)},D.set=function(e,t,n){return M.set.call(this,e[0],t,n,e[0])};function z(e,t){const n=m(e)?k("MapSet").proxyMap_(e,t):g(e)?k("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:T(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=M;n&&(o=[r],i=D);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}(e,t);return(t?t.scope_:T()).drafts_.push(n),n}function q(e){return s(e)||i(10),W(e)}function W(e){if(!l(e)||S(e))return e;const t=e[r];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=v(e,t.scope_.immer_.useStrictShallowCopy_)}else n=v(e,!0);return d(n,((e,t)=>{h(n,e,W(t))})),t&&(t.finalized_=!1),n}var $=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,n,r)=>{if("function"==typeof e&&"function"!=typeof n){const t=n;n=e;const r=this;return function(e=t,...o){return r.produce(e,(e=>n.call(this,e,...o)))}}let o;if("function"!=typeof n&&i(6),void 0!==r&&"function"!=typeof r&&i(7),l(e)){const t=R(this),i=z(e,void 0);let a=!0;try{o=n(i),a=!1}finally{a?C(t):I(t)}return x(t,r),P(o,t)}if(!e||"object"!=typeof e){if(o=n(e),void 0===o&&(o=e),o===t&&(o=void 0),this.autoFreeze_&&b(o,!0),r){const t=[],n=[];k("Patches").generateReplacementPatches_(e,o,t,n),r(t,n)}return o}i(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;return[this.produce(e,t,((e,t)=>{n=e,r=t})),n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){l(e)||i(8),s(e)&&(e=q(e));const t=R(this),n=z(e,void 0);return n[r].isManual_=!0,I(t),n}finishDraft(e,t){const n=e&&e[r];n&&n.isManual_||i(9);const{scope_:o}=n;return x(o,t),P(void 0,o)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=k("Patches").applyPatches_;return s(e)?r(e,t):this.produce(e,(e=>r(e,t)))}},V=$.produce;$.produceWithPatches.bind($),$.setAutoFreeze.bind($),$.setUseStrictShallowCopy.bind($),$.applyPatches.bind($),$.createDraft.bind($),$.finishDraft.bind($);function H(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}var G=e=>Array.isArray(e)?e:[e];function K(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const n=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}Symbol(),Object.getPrototypeOf({});var Y="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}},J=0,X=1;function Q(){return{s:J,v:void 0,o:null,p:null}}function Z(e,t={}){let n=Q();const{resultEqualityCheck:r}=t;let o,i=0;function a(){let t=n;const{length:a}=arguments;for(let e=0,n=a;e<n;e++){const n=arguments[e];if("function"==typeof n||"object"==typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t=Q(),e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t=Q(),e.set(n,t)):t=r}}const s=t;let l;if(t.s===X)l=t.v;else if(l=e.apply(null,arguments),i++,r){const e=o?.deref?.()??o;null!=e&&r(e,l)&&(l=e,0!==i&&i--);o="object"==typeof l&&null!==l||"function"==typeof l?new Y(l):l}return s.s=X,s.v=l,l}return a.clearCache=()=>{n=Q(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function ee(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,o=0,i={},a=e.pop();"object"==typeof a&&(i=a,a=e.pop()),H(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const s={...n,...i},{memoize:l,memoizeOptions:c=[],argsMemoize:u=Z,argsMemoizeOptions:d=[],devModeChecks:p={}}=s,f=G(c),h=G(d),m=K(e),g=l((function(){return r++,a.apply(null,arguments)}),...f);const y=u((function(){o++;const e=function(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}(m,arguments);return t=g.apply(null,e),t}),...h);return Object.assign(y,{resultFunc:a,memoizedResultFunc:g,dependencies:m,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:l,argsMemoize:u})};return Object.assign(r,{withTypes:()=>r}),r}var te=ee(Z),ne=Object.assign(((e,t=te)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>ne});function re(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function oe(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function ie(e){return re(e)&&"type"in e&&"string"==typeof e.type}((...e)=>{const t=ee(...e),n=Object.assign(((...e)=>{const n=t(...e),r=(e,...t)=>n(s(e)?q(e):e,...t);return Object.assign(r,n),r}),{withTypes:()=>n})})(Z),"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__,"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var ae=e=>e&&"function"==typeof e.match;function se(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(ct(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>ie(t)&&t.type===e,n}function le(e,t){for(const n of e)if(t(n))return n}Symbol.species;function ce(e){return l(e)?V(e,(()=>{})):e}function ue(e,t,n){if(e.has(t)){let r=e.get(t);return n.update&&(r=n.update(r,t,e),e.set(t,r)),r}if(!n.insert)throw new Error(ct(10));const r=n.insert(t,e);return e.set(t,r),r}var de=e=>t=>{setTimeout(t,e)};"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:de(10);function pe(e){const t={},n=[];let r;const o={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(ct(28));if(r in t)throw new Error(ct(29));return t[r]=n,o},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(r=e,o)};return e(o),[t,n,r]}var fe=(e=21)=>{let t="",n=e;for(;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},he=(e,t)=>ae(e)?e.match(t):e(t);function me(...e){return t=>e.some((e=>he(e,t)))}function ge(...e){return t=>e.every((e=>he(e,t)))}function ye(e,t){if(!e||!e.meta)return!1;const n="string"==typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function ve(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function be(...e){return 0===e.length?e=>ye(e,["rejected"]):ve(e)?me(...e.map((e=>e.rejected))):be()(e[0])}function we(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||ve(e)?ge(be(...e),t):we()(e[0])}var Se=["name","message","stack","code"],_e=class{constructor(e,t){this.payload=e,this.meta=t}_type},Ee=class{constructor(e,t){this.payload=e,this.meta=t}_type},ke=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of Se)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},Te=(()=>{function e(e,t,n){const r=se(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),o=se(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),i=se(e+"/rejected",((e,t,r,o,i)=>({payload:o,error:(n&&n.serializeError||ke)(e||"Rejected"),meta:{...i||{},arg:r,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===e?.name,condition:"ConditionError"===e?.name}})));return Object.assign((function(e){return(a,s,l)=>{const c=n?.idGenerator?n.idGenerator(e):fe(),u=new AbortController;let d,p;function f(e){p=e,u.abort()}const h=async function(){let h;try{let i=n?.condition?.(e,{getState:s,extra:l});if(null!==(m=i)&&"object"==typeof m&&"function"==typeof m.then&&(i=await i),!1===i||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=new Promise(((e,t)=>{d=()=>{t({name:"AbortError",message:p||"Aborted"})},u.signal.addEventListener("abort",d)}));a(o(c,e,n?.getPendingMeta?.({requestId:c,arg:e},{getState:s,extra:l}))),h=await Promise.race([g,Promise.resolve(t(e,{dispatch:a,getState:s,extra:l,requestId:c,signal:u.signal,abort:f,rejectWithValue:(e,t)=>new _e(e,t),fulfillWithValue:(e,t)=>new Ee(e,t)})).then((t=>{if(t instanceof _e)throw t;return t instanceof Ee?r(t.payload,c,e,t.meta):r(t,c,e)}))])}catch(t){h=t instanceof _e?i(null,c,e,t.payload,t.meta):i(t,c,e)}finally{d&&u.signal.removeEventListener("abort",d)}var m;return n&&!n.dispatchConditionRejection&&i.match(h)&&h.meta.condition||a(h),h}();return Object.assign(h,{abort:f,requestId:c,arg:e,unwrap:()=>h.then(xe)})}}),{pending:o,rejected:i,fulfilled:r,settled:me(i,r),typePrefix:e})}return e.withTypes=()=>e,e})();function xe(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var Ce=Symbol.for("rtk-slice-createasyncthunk");function Ie(e,t){return`${e}/${t}`}function Re({creators:e}={}){const t=e?.asyncThunk?.[Ce];return function(e){const{name:n,reducerPath:r=n}=e;if(!n)throw new Error(ct(11));const o=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},i=Object.keys(o),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(ct(12));if(n in a.sliceCaseReducersByType)throw new Error(ct(13));return a.sliceCaseReducersByType[n]=t,c},addMatcher:(e,t)=>(a.sliceMatchers.push({matcher:e,reducer:t}),c),exposeAction:(e,t)=>(a.actionCreators[e]=t,c),exposeCaseReducer:(e,t)=>(a.sliceCaseReducersByName[e]=t,c)};function u(){const[t={},n=[],r]="function"==typeof e.extraReducers?pe(e.extraReducers):[e.extraReducers],o={...t,...a.sliceCaseReducersByType};return function(e,t){let n,[r,o,i]=pe(t);if("function"==typeof e)n=()=>ce(e());else{const t=ce(e);n=()=>t}function a(e=n(),t){let a=[r[t.type],...o.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===a.filter((e=>!!e)).length&&(a=[i]),a.reduce(((e,n)=>{if(n){if(s(e)){const r=n(e,t);return void 0===r?e:r}if(l(e))return V(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(ct(9))}return r}}return e}),e)}return a.getInitialState=n,a}(e.initialState,(e=>{for(let t in o)e.addCase(t,o[t]);for(let t of a.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}))}i.forEach((r=>{const i=o[r],a={reducerName:r,type:Ie(n,r),createNotation:"function"==typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(i)?function({type:e,reducerName:t,createNotation:n},r,o){let i,a;if("reducer"in r){if(n&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(r))throw new Error(ct(17));i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?se(e,a):se(e))}(a,i,c):function({type:e,reducerName:t},n,r,o){if(!o)throw new Error(ct(18));const{payloadCreator:i,fulfilled:a,pending:s,rejected:l,settled:c,options:u}=n,d=o(e,i,u);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a);s&&r.addCase(d.pending,s);l&&r.addCase(d.rejected,l);c&&r.addMatcher(d.settled,c);r.exposeCaseReducer(t,{fulfilled:a||Ae,pending:s||Ae,rejected:l||Ae,settled:c||Ae})}(a,i,c,t)}));const d=e=>e,p=new Map;let f;function h(e,t){return f||(f=u()),f(e,t)}function m(){return f||(f=u()),f.getInitialState()}function g(t,n=!1){function r(e){let r=e[t];return void 0===r&&n&&(r=m()),r}function o(t=d){const r=ue(p,n,{insert:()=>new WeakMap});return ue(r,t,{insert:()=>{const r={};for(const[o,i]of Object.entries(e.selectors??{}))r[o]=Oe(i,t,m,n);return r}})}return{reducerPath:t,getSelectors:o,get selectors(){return o(r)},selectSlice:r}}const y={name:n,reducer:h,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:m,...g(r),injectInto(e,{reducerPath:t,...n}={}){const o=t??r;return e.inject({reducerPath:o,reducer:h},n),{...y,...g(o,!0)}}};return y}}function Oe(e,t,n,r){function o(o,...i){let a=t(o);return void 0===a&&r&&(a=n()),e(a,...i)}return o.unwrapped=e,o}var Pe=Re();function Ae(){}var Le="listener",Ne="completed",Me="cancelled",De=`task-${Me}`,Fe=`task-${Ne}`,je=`${Le}-${Me}`,Ue=`${Le}-${Ne}`,Be=class{constructor(e){this.code=e,this.message=`task ${Me} (reason: ${e})`}name="TaskAbortError";message},ze=(e,t)=>{if("function"!=typeof e)throw new Error(ct(32))},qe=()=>{},We=(e,t=qe)=>(e.catch(t),e),$e=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Ve=(e,t)=>{const n=e.signal;n.aborted||("reason"in n||Object.defineProperty(n,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},He=e=>{if(e.aborted){const{reason:t}=e;throw new Be(t)}};function Ge(e,t){let n=qe;return new Promise(((r,o)=>{const i=()=>o(new Be(e.reason));e.aborted?i():(n=$e(e,i),t.finally((()=>n())).then(r,o))})).finally((()=>{n=qe}))}var Ke=e=>t=>We(Ge(e,t).then((t=>(He(e),t)))),Ye=e=>{const t=Ke(e);return e=>t(new Promise((t=>setTimeout(t,e))))},{assign:Je}=Object,Xe={},Qe="listenerMiddleware",Ze=(e,t)=>(n,r)=>{ze(n);const o=new AbortController;var i;i=o,$e(e,(()=>Ve(i,e.reason)));const a=(async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(e){return{status:e instanceof Be?"cancelled":"rejected",error:e}}finally{t?.()}})((async()=>{He(e),He(o.signal);const t=await n({pause:Ke(o.signal),delay:Ye(o.signal),signal:o.signal});return He(o.signal),t}),(()=>Ve(o,Fe)));return r?.autoJoin&&t.push(a.catch(qe)),{result:Ke(e)(a),cancel(){Ve(o,De)}}},et=(e,t)=>(n,r)=>We((async(n,r)=>{He(t);let o=()=>{};const i=[new Promise(((t,r)=>{let i=e({predicate:n,effect:(e,n)=>{n.unsubscribe(),t([e,n.getState(),n.getOriginalState()])}});o=()=>{i(),r()}}))];null!=r&&i.push(new Promise((e=>setTimeout(e,r,null))));try{const e=await Ge(t,Promise.race(i));return He(t),e}finally{o()}})(n,r)),tt=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:i}=e;if(t)o=se(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(ct(21));return ze(i),{predicate:o,type:t,effect:i}},nt=Object.assign((e=>{const{type:t,predicate:n,effect:r}=tt(e);return{id:fe(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(ct(22))}}}),{withTypes:()=>nt}),rt=e=>{e.pending.forEach((e=>{Ve(e,je)}))},ot=(e,t,n)=>{try{e(t,n)}catch(e){setTimeout((()=>{throw e}),0)}},it=Object.assign(se(`${Qe}/add`),{withTypes:()=>it}),at=se(`${Qe}/removeAll`),st=Object.assign(se(`${Qe}/remove`),{withTypes:()=>st}),lt=(...e)=>{console.error(`${Qe}/error`,...e)};Symbol.for("rtk-state-proxy-original");function ct(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const ut={STARTER:"Starter",LITE:"Lite",PLUS:"Plus",PRO:"Pro",SPECIAL_OFFER:"SpecialOffer",BUSINESS750:"Business750_b",BUSINESS3000:"Business3000_l",BUSINESS5000:"Business5000_l",LITE_MONTH:"LiteMonth",LITE_YEAR:"LiteYear"},dt=Object.freeze({[ut.STARTER]:"#price-pay-starter",[ut.LITE]:"#price-pay-lite",[ut.PLUS]:"#price-pay-plus",[ut.PRO]:"#price-pay-pro",[ut.SPECIAL_OFFER]:"#price-pay-offer",[ut.BUSINESS750]:"#business-pay-750",[ut.BUSINESS3000]:"#business-pay-3000",[ut.BUSINESS5000]:"#business-pay-5000",[ut.LITE_MONTH]:"#price-pay-litemonth",[ut.LITE_YEAR]:"#price-pay-liteyear"}),pt=Object.freeze({buttonsWrapper:".pricing__pay-block",paymentButton:".js-open-button",autoChargeCheckbox:".js-checkbox-autocharge",closeButton:".js-close-button",stripeButton:".js-stripe-button",paypalButton:".js-paypal-button",subscriptionUpgrade:".js-subscription-upgrade-btn",footnoteSymbol:".js-footnote-symbol",footnote:".js-footnote"});var ft=function(){return ft=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ft.apply(this,arguments)},ht=ft({},window.__OMPaymentTranslate__),mt=ft({},window.__OMAppTranslate__);const gt="flex",yt="none";function vt(){window.__widgetStore__.dispatch(ip())}function bt(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=document.querySelector(dt[ut.STARTER]),r=document.querySelector(dt[ut.LITE_YEAR]),o=document.querySelector(dt[ut.LITE_MONTH]);if(!n||!r||!o)return;const i=document.querySelector(pt.subscriptionUpgrade),a=n.querySelector(pt.paymentButton),s=o.querySelector(pt.stripeButton),l=r.querySelector(pt.stripeButton);if(e&&(a.disabled=!0,s.disabled=!0,l.disabled=!0),e){if(e===ut.LITE_MONTH){const e=document.querySelector(pt.footnoteSymbol),t=document.querySelector(pt.footnote);return i.addEventListener("click",vt),a.style.display=yt,l.style.display=yt,s.style.display=gt,i.style.display=gt,s.textContent=ht.currentPlanTitle,e.style.display=gt,void(t.style.display=gt)}s.style.display=yt,l.style.display=gt,l.textContent=ht.currentPlanTitle}else{if(a.style.display=gt,s.style.display=gt,l.style.display=gt,a.disabled=t,!t)return;a.textContent=ht.currentPlanTitle}}var wt=["batch_not_avaliable","exceeded_duration","max_duration","exceeded_size","exceeded_fast_minutes","unknown"],St="app";Object.freeze({SPACE:32,TAB:9,ENTER:13});const{mild:_t="Mild",normal:Et="Normal",aggressive:kt="Agressive"}=window.__OMAppTranslate__.noiseCancellingLevels||{},Tt={mild:0,normal:1,agressive:2};function xt(e){let t=null;if(!document.cookie)return t;let n=document.cookie.split(";");for(let r of n){let n=r.trim();if(n.startsWith("".concat(e,"="))){t=decodeURIComponent(n.substring(e.length+1));break}}return t}function Ct(){return((arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)/1048576).toFixed(2)||0}function It(e){const t=encodeURIComponent(e);let n="";for(let e in t){const r=t.charAt(e);/[!'()*]/.test(r)?n+="%"+r.charCodeAt(0).toString(16).toUpperCase():n+=r}return n}function Rt(){return"blocked_"+(Math.floor(2147483647*Math.random())+"."+Math.floor(Date.now()/1e3)).toString()}function Ot(){const e=xt("_ga");if(!e){const e=Rt();let t=new Date;t.setFullYear(t.getFullYear()+2);const n="_ga = GA1.1.".concat(e,"; expires=.").concat(t,"; path=/;");return document.cookie=n,e}return e.split(".").slice(-2).join(".")}function Pt(e,t){return parseInt(t)-parseInt(e)||-1}const At=function(e){const t=window.__widgetStore__;if(Object.keys(t)){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];t.dispatch(e(...r))}};function Lt(e,t){return function(){return e.apply(t,arguments)}}const{toString:Nt}=Object.prototype,{getPrototypeOf:Mt}=Object,Dt=(Ft=Object.create(null),e=>{const t=Nt.call(e);return Ft[t]||(Ft[t]=t.slice(8,-1).toLowerCase())});var Ft;const jt=e=>(e=e.toLowerCase(),t=>Dt(t)===e),Ut=e=>t=>typeof t===e,{isArray:Bt}=Array,zt=Ut("undefined");const qt=jt("ArrayBuffer");const Wt=Ut("string"),$t=Ut("function"),Vt=Ut("number"),Ht=e=>null!==e&&"object"==typeof e,Gt=e=>{if("object"!==Dt(e))return!1;const t=Mt(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Kt=jt("Date"),Yt=jt("File"),Jt=jt("Blob"),Xt=jt("FileList"),Qt=jt("URLSearchParams"),[Zt,en,tn,nn]=["ReadableStream","Request","Response","Headers"].map(jt);function rn(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),Bt(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function on(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const an="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,sn=e=>!zt(e)&&e!==an;const ln=(cn="undefined"!=typeof Uint8Array&&Mt(Uint8Array),e=>cn&&e instanceof cn);var cn;const un=jt("HTMLFormElement"),dn=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),pn=jt("RegExp"),fn=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};rn(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},hn="abcdefghijklmnopqrstuvwxyz",mn="0123456789",gn={DIGIT:mn,ALPHA:hn,ALPHA_DIGIT:hn+hn.toUpperCase()+mn};const yn=jt("AsyncFunction"),vn={isArray:Bt,isArrayBuffer:qt,isBuffer:function(e){return null!==e&&!zt(e)&&null!==e.constructor&&!zt(e.constructor)&&$t(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||$t(e.append)&&("formdata"===(t=Dt(e))||"object"===t&&$t(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&qt(e.buffer),t},isString:Wt,isNumber:Vt,isBoolean:e=>!0===e||!1===e,isObject:Ht,isPlainObject:Gt,isReadableStream:Zt,isRequest:en,isResponse:tn,isHeaders:nn,isUndefined:zt,isDate:Kt,isFile:Yt,isBlob:Jt,isRegExp:pn,isFunction:$t,isStream:e=>Ht(e)&&$t(e.pipe),isURLSearchParams:Qt,isTypedArray:ln,isFileList:Xt,forEach:rn,merge:function e(){const{caseless:t}=sn(this)&&this||{},n={},r=(r,o)=>{const i=t&&on(n,o)||o;Gt(n[i])&&Gt(r)?n[i]=e(n[i],r):Gt(r)?n[i]=e({},r):Bt(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&rn(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(rn(t,((t,r)=>{n&&$t(t)?e[r]=Lt(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&Mt(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Dt,kindOfTest:jt,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Bt(e))return e;let t=e.length;if(!Vt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:un,hasOwnProperty:dn,hasOwnProp:dn,reduceDescriptors:fn,freezeMethods:e=>{fn(e,((t,n)=>{if($t(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];$t(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return Bt(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:on,global:an,isContextDefined:sn,ALPHABET:gn,generateString:(e=16,t=gn.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&$t(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Ht(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=Bt(e)?[]:{};return rn(e,((e,t)=>{const i=n(e,r+1);!zt(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:yn,isThenable:e=>e&&(Ht(e)||$t(e))&&$t(e.then)&&$t(e.catch)};function bn(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}vn.inherits(bn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:vn.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const wn=bn.prototype,Sn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Sn[e]={value:e}})),Object.defineProperties(bn,Sn),Object.defineProperty(wn,"isAxiosError",{value:!0}),bn.from=(e,t,n,r,o,i)=>{const a=Object.create(wn);return vn.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),bn.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const _n=bn;function En(e){return vn.isPlainObject(e)||vn.isArray(e)}function kn(e){return vn.endsWith(e,"[]")?e.slice(0,-2):e}function Tn(e,t,n){return e?e.concat(t).map((function(e,t){return e=kn(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const xn=vn.toFlatObject(vn,{},null,(function(e){return/^is[A-Z]/.test(e)}));const Cn=function(e,t,n){if(!vn.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=vn.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!vn.isUndefined(t[e])}));const r=n.metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&vn.isSpecCompliantForm(t);if(!vn.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(vn.isDate(e))return e.toISOString();if(!s&&vn.isBlob(e))throw new _n("Blob is not supported. Use a Buffer instead.");return vn.isArrayBuffer(e)||vn.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(vn.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(vn.isArray(e)&&function(e){return vn.isArray(e)&&!e.some(En)}(e)||(vn.isFileList(e)||vn.endsWith(n,"[]"))&&(s=vn.toArray(e)))return n=kn(n),s.forEach((function(e,r){!vn.isUndefined(e)&&null!==e&&t.append(!0===a?Tn([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!En(e)||(t.append(Tn(o,n,i),l(e)),!1)}const u=[],d=Object.assign(xn,{defaultVisitor:c,convertValue:l,isVisitable:En});if(!vn.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!vn.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),vn.forEach(n,(function(n,i){!0===(!(vn.isUndefined(n)||null===n)&&o.call(t,n,vn.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t};function In(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Rn(e,t){this._pairs=[],e&&Cn(e,this,t)}const On=Rn.prototype;On.append=function(e,t){this._pairs.push([e,t])},On.toString=function(e){const t=e?function(t){return e.call(this,t,In)}:In;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Pn=Rn;function An(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ln(e,t,n){if(!t)return e;const r=n&&n.encode||An,o=n&&n.serialize;let i;if(i=o?o(t,n):vn.isURLSearchParams(t)?t.toString():new Pn(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const Nn=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){vn.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Mn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Dn={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Pn,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Fn="undefined"!=typeof window&&"undefined"!=typeof document,jn=(Un="undefined"!=typeof navigator&&navigator.product,Fn&&["ReactNative","NativeScript","NS"].indexOf(Un)<0);var Un;const Bn="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,zn=Fn&&window.location.href||"http://localhost",qn={...e,...Dn};const Wn=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&vn.isArray(r)?r.length:i,s)return vn.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&vn.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&vn.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(vn.isFormData(e)&&vn.isFunction(e.entries)){const n={};return vn.forEachEntry(e,((e,r)=>{t(function(e){return vn.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const $n={transitional:Mn,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=vn.isObject(e);o&&vn.isHTMLForm(e)&&(e=new FormData(e));if(vn.isFormData(e))return r?JSON.stringify(Wn(e)):e;if(vn.isArrayBuffer(e)||vn.isBuffer(e)||vn.isStream(e)||vn.isFile(e)||vn.isBlob(e)||vn.isReadableStream(e))return e;if(vn.isArrayBufferView(e))return e.buffer;if(vn.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Cn(e,new qn.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return qn.isNode&&vn.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=vn.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Cn(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(vn.isString(e))try{return(t||JSON.parse)(e),vn.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||$n.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(vn.isResponse(e)||vn.isReadableStream(e))return e;if(e&&vn.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw _n.from(e,_n.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qn.classes.FormData,Blob:qn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};vn.forEach(["delete","get","head","post","put","patch"],(e=>{$n.headers[e]={}}));const Vn=$n,Hn=vn.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Gn=Symbol("internals");function Kn(e){return e&&String(e).trim().toLowerCase()}function Yn(e){return!1===e||null==e?e:vn.isArray(e)?e.map(Yn):String(e)}function Jn(e,t,n,r,o){return vn.isFunction(r)?r.call(this,t,n):(o&&(t=n),vn.isString(t)?vn.isString(r)?-1!==t.indexOf(r):vn.isRegExp(r)?r.test(t):void 0:void 0)}class Xn{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Kn(t);if(!o)throw new Error("header name must be a non-empty string");const i=vn.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Yn(e))}const i=(e,t)=>vn.forEach(e,((e,n)=>o(e,n,t)));if(vn.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(vn.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Hn[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(vn.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=Kn(e)){const n=vn.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(vn.isFunction(t))return t.call(this,e,n);if(vn.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Kn(e)){const n=vn.findKey(this,e);return!(!n||void 0===this[n]||t&&!Jn(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Kn(e)){const o=vn.findKey(n,e);!o||t&&!Jn(0,n[o],o,t)||(delete n[o],r=!0)}}return vn.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Jn(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return vn.forEach(this,((r,o)=>{const i=vn.findKey(n,o);if(i)return t[i]=Yn(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Yn(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return vn.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&vn.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Gn]=this[Gn]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Kn(e);t[r]||(!function(e,t){const n=vn.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return vn.isArray(e)?e.forEach(r):r(e),this}}Xn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),vn.reduceDescriptors(Xn.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),vn.freezeMethods(Xn);const Qn=Xn;function Zn(e,t){const n=this||Vn,r=t||n,o=Qn.from(r.headers);let i=r.data;return vn.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function er(e){return!(!e||!e.__CANCEL__)}function tr(e,t,n){_n.call(this,null==e?"canceled":e,_n.ERR_CANCELED,t,n),this.name="CanceledError"}vn.inherits(tr,_n,{__CANCEL__:!0});const nr=tr;function rr(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new _n("Request failed with status code "+n.status,[_n.ERR_BAD_REQUEST,_n.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const or=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}};const ir=function(e,t){let n=0;const r=1e3/t;let o=null;return function(){const t=!0===this,i=Date.now();if(t||i-n>r)return o&&(clearTimeout(o),o=null),n=i,e.apply(null,arguments);o||(o=setTimeout((()=>(o=null,n=Date.now(),e.apply(null,arguments))),r-(i-n)))}},ar=(e,t,n=3)=>{let r=0;const o=or(50,250);return ir((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;const c={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a};c[t?"download":"upload"]=!0,e(c)}),n)},sr=qn.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=vn.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},lr=qn.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];vn.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),vn.isString(r)&&a.push("path="+r),vn.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function cr(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const ur=e=>e instanceof Qn?{...e}:e;function dr(e,t){t=t||{};const n={};function r(e,t,n){return vn.isPlainObject(e)&&vn.isPlainObject(t)?vn.merge.call({caseless:n},e,t):vn.isPlainObject(t)?vn.merge({},t):vn.isArray(t)?t.slice():t}function o(e,t,n){return vn.isUndefined(t)?vn.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!vn.isUndefined(t))return r(void 0,t)}function a(e,t){return vn.isUndefined(t)?vn.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(ur(e),ur(t),!0)};return vn.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);vn.isUndefined(a)&&i!==s||(n[r]=a)})),n}const pr=e=>{const t=dr({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Qn.from(s),t.url=Ln(cr(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),vn.isFormData(r))if(qn.hasStandardBrowserEnv||qn.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(qn.hasStandardBrowserEnv&&(o&&vn.isFunction(o)&&(o=o(t)),o||!1!==o&&sr(t.url))){const e=i&&a&&lr.read(a);e&&s.set(i,e)}return t},fr="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=pr(e);let o=r.data;const i=Qn.from(r.headers).normalize();let a,{responseType:s}=r;function l(){r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let c=new XMLHttpRequest;function u(){if(!c)return;const r=Qn.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());rr((function(e){t(e),l()}),(function(e){n(e),l()}),{data:s&&"text"!==s&&"json"!==s?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:r,config:e,request:c}),c=null}c.open(r.method.toUpperCase(),r.url,!0),c.timeout=r.timeout,"onloadend"in c?c.onloadend=u:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(u)},c.onabort=function(){c&&(n(new _n("Request aborted",_n.ECONNABORTED,r,c)),c=null)},c.onerror=function(){n(new _n("Network Error",_n.ERR_NETWORK,r,c)),c=null},c.ontimeout=function(){let e=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const t=r.transitional||Mn;r.timeoutErrorMessage&&(e=r.timeoutErrorMessage),n(new _n(e,t.clarifyTimeoutError?_n.ETIMEDOUT:_n.ECONNABORTED,r,c)),c=null},void 0===o&&i.setContentType(null),"setRequestHeader"in c&&vn.forEach(i.toJSON(),(function(e,t){c.setRequestHeader(t,e)})),vn.isUndefined(r.withCredentials)||(c.withCredentials=!!r.withCredentials),s&&"json"!==s&&(c.responseType=r.responseType),"function"==typeof r.onDownloadProgress&&c.addEventListener("progress",ar(r.onDownloadProgress,!0)),"function"==typeof r.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",ar(r.onUploadProgress)),(r.cancelToken||r.signal)&&(a=t=>{c&&(n(!t||t.type?new nr(null,e,c):t),c.abort(),c=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const d=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);d&&-1===qn.protocols.indexOf(d)?n(new _n("Unsupported protocol "+d+":",_n.ERR_BAD_REQUEST,e)):c.send(o||null)}))},hr=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof _n?t:new nr(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new _n(`timeout ${t} of ms exceeded`,_n.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]},mr=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},gr=new TextEncoder,yr=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of e)yield*mr(ArrayBuffer.isView(n)?n:await gr.encode(String(n)),t)}(e,t);let i=0;return new ReadableStream({type:"bytes",async pull(e){const{done:t,value:a}=await o.next();if(t)return e.close(),void r();let s=a.byteLength;n&&n(i+=s),e.enqueue(new Uint8Array(a))},cancel:e=>(r(e),o.return())},{highWaterMark:2})},vr=(e,t)=>{const n=null!=e;return r=>setTimeout((()=>t({lengthComputable:n,total:e,loaded:r})))},br="undefined"!=typeof fetch,wr=br&&"undefined"!=typeof ReadableStream,Sr=wr&&(()=>{let e=!1;const t=new Request(qn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),_r=wr&&!!(()=>{try{return vn.isReadableStream(new Response("").body)}catch(e){}})(),Er={stream:_r&&(e=>e.body)};var kr;br&&(kr=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Er[e]&&(Er[e]=vn.isFunction(kr[e])?t=>t[e]():(t,n)=>{throw new _n(`Response type '${e}' is not supported`,_n.ERR_NOT_SUPPORT,n)})})));const Tr=async(e,t)=>{const n=vn.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:vn.isBlob(e)?e.size:vn.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:vn.isArrayBufferView(e)?e.byteLength:(vn.isURLSearchParams(e)&&(e+=""),vn.isString(e)?(await(new TextEncoder).encode(e)).byteLength:void 0))(t):n},xr=br&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=pr(e);c=c?(c+"").toLowerCase():"text";let f,h,[m,g]=o||i||a?hr([o,i],a):[];const y=()=>{!f&&setTimeout((()=>{m&&m.unsubscribe()})),f=!0};let v;try{if(l&&Sr&&"get"!==n&&"head"!==n&&0!==(v=await Tr(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});vn.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body&&(r=yr(n.body,65536,vr(v,ar(l))))}vn.isString(d)||(d=d?"cors":"omit"),h=new Request(t,{...p,signal:m,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",withCredentials:d});let o=await fetch(h);const i=_r&&("stream"===c||"response"===c);if(_r&&(s||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=vn.toFiniteNumber(o.headers.get("content-length"));o=new Response(yr(o.body,65536,s&&vr(t,ar(s,!0)),i&&y),e)}c=c||"text";let a=await Er[vn.findKey(Er,c)||"text"](o,e);return!i&&y(),g&&g(),await new Promise(((t,n)=>{rr(t,n,{data:a,headers:Qn.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:h})}))}catch(t){if(y(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new _n("Network Error",_n.ERR_NETWORK,e,h),{cause:t.cause||t});throw _n.from(t,t&&t.code,e,h)}}),Cr={http:null,xhr:fr,fetch:xr};vn.forEach(Cr,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ir=e=>`- ${e}`,Rr=e=>vn.isFunction(e)||null===e||!1===e,Or=e=>{e=vn.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!Rr(n)&&(r=Cr[(t=String(n)).toLowerCase()],void 0===r))throw new _n(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(Ir).join("\n"):" "+Ir(e[0]):"as no adapter specified";throw new _n("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function Pr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new nr(null,e)}function Ar(e){Pr(e),e.headers=Qn.from(e.headers),e.data=Zn.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Or(e.adapter||Vn.adapter)(e).then((function(t){return Pr(e),t.data=Zn.call(e,e.transformResponse,t),t.headers=Qn.from(t.headers),t}),(function(t){return er(t)||(Pr(e),t&&t.response&&(t.response.data=Zn.call(e,e.transformResponse,t.response),t.response.headers=Qn.from(t.response.headers))),Promise.reject(t)}))}const Lr="1.7.0",Nr={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Nr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Mr={};Nr.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new _n(r(o," has been removed"+(t?" in "+t:"")),_n.ERR_DEPRECATED);return t&&!Mr[o]&&(Mr[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};const Dr={assertOptions:function(e,t,n){if("object"!=typeof e)throw new _n("options must be an object",_n.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new _n("option "+i+" must be "+n,_n.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new _n("Unknown option "+i,_n.ERR_BAD_OPTION)}},validators:Nr},Fr=Dr.validators;class jr{constructor(e){this.defaults=e,this.interceptors={request:new Nn,response:new Nn}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=dr(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Dr.assertOptions(n,{silentJSONParsing:Fr.transitional(Fr.boolean),forcedJSONParsing:Fr.transitional(Fr.boolean),clarifyTimeoutError:Fr.transitional(Fr.boolean)},!1),null!=r&&(vn.isFunction(r)?t.paramsSerializer={serialize:r}:Dr.assertOptions(r,{encode:Fr.function,serialize:Fr.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&vn.merge(o.common,o[t.method]);o&&vn.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Qn.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[Ar.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let p=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{c=Ar.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return Ln(cr((e=dr(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}vn.forEach(["delete","get","head","options"],(function(e){jr.prototype[e]=function(t,n){return this.request(dr(n||{},{method:e,url:t,data:(n||{}).data}))}})),vn.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(dr(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}jr.prototype[e]=t(),jr.prototype[e+"Form"]=t(!0)}));const Ur=jr;class Br{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new nr(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Br((function(t){e=t})),cancel:e}}}const zr=Br;const qr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(qr).forEach((([e,t])=>{qr[t]=e}));const Wr=qr;const $r=function e(t){const n=new Ur(t),r=Lt(Ur.prototype.request,n);return vn.extend(r,Ur.prototype,n,{allOwnKeys:!0}),vn.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(dr(t,n))},r}(Vn);$r.Axios=Ur,$r.CanceledError=nr,$r.CancelToken=zr,$r.isCancel=er,$r.VERSION=Lr,$r.toFormData=Cn,$r.AxiosError=_n,$r.Cancel=$r.CanceledError,$r.all=function(e){return Promise.all(e)},$r.spread=function(e){return function(t){return e.apply(null,t)}},$r.isAxiosError=function(e){return vn.isObject(e)&&!0===e.isAxiosError},$r.mergeConfig=dr,$r.AxiosHeaders=Qn,$r.formToJSON=e=>Wn(vn.isHTMLForm(e)?new FormData(e):e),$r.getAdapter=Or,$r.HttpStatusCode=Wr,$r.default=$r;const Vr=$r;const Hr={WIDGET_ID:"lalal-widget",FILES_INFO:"lalal-files",SPLITTED_FILES_ARCHIVE:"lalal-splitted-files-archive",STATUS:"lalal-status",STATUS_BAR:"lalal-status-bar",PREVIEW_START:"lalal-start-date",STEM_TYPE:"lalal-stem",DELAY_START:"lalal-delay-start",SERVER_POLLING_START:"lalal-server-polling-start",PENDING_TRANSACTION:"lalal-pending-transaction",MISSING_PREVIEW_FLAG:"lalal-missing-preview-flag",SMART_BANNER_WAS_CLOSED_FLAG:"lalal-smart-banner-was-closed-flag",SPLITTER_TYPE:"lalal-splitter-type",SPLITTER_TYPE_REPLACED_WITH:"lalal-splitter-replaced-with",COUNTRIES_LIST:"lalal-countries-list",ENHANCED_PROCESSING:"lalal-enhanced-processing",NOISE_CANCELLING_LEVEL:"lalal-noise-cancelling-level",SEGMENT:"lalal-segment",CURRENT_PLAN:"lalal-current-plan",OUTPUT_FORMAT:"lalal-output-format",MULTIVOCAL:"lalal-multivocal",FEEDBACK:"lalal-feedback",PROCESSING_LEVEL:"lalal-processing-level"},Gr={"X-Request-Id":"lalalai"},Kr={onUploadProgress:e=>{const t=e.loaded,n=e.total,r=Math.round(100*t/n);localStorage.setItem(Hr.STATUS_BAR,r.toString()),window.__widgetStore__.dispatch(Os(r))}},Yr=Vr.create({baseURL:"/",withCredentials:!1}),Jr=Object.freeze({networkErrorReadyState:4,networkErrorRequestStatus:0,canceledByUser:"Canceled by user"});let Xr=Vr.CancelToken.source();const Qr={uploadFile:async e=>await Yr.post("api/upload/",e,{...Kr,cancelToken:Xr.token,headers:{...Gr,"X-CSRFToken":xt("csrftoken"),"Content-Type":"binary/octet-stream","Content-Disposition":"attachment; filename*=UTF-8''".concat(It(e.name))}}),async preview(e){let{fileId:t,stem:n,isDereverbEnabled:r,isEnhancedProcessingEnabled:o,multivocal:i,noiseCancellingLevel:a=1,splitterType:s="",token:l=""}=e;const c=new FormData;return c.append("id",t),c.append("noise_cancelling_level",a),c.append("stem",n),c.append("splitter",s),c.append("dereverb_enabled",r),c.append("enhanced_processing_enabled",o),c.append("multivocal",i),c.append("with_segments",!0),c.append("turnstile-response",l),await Yr.post("api/preview/",c,{headers:{...Gr,"X-CSRFToken":xt("csrftoken")}})},async split(e,t){const n=new FormData;return n.append("params",e),n.append("with_segments",t),await Yr.post("api/split/",n,{headers:{...Gr,"X-CSRFToken":xt("csrftoken")}})},async check(e){const t=new FormData;return t.append("id",e),await Yr.post("api/check/",t,{headers:{...Gr,"X-CSRFToken":xt("csrftoken")}})},async checkConstraints(e){const t=new FormData;return t.append("params",e),await Yr.post("api/constraints/",t,{headers:{...Gr,"X-CSRFToken":xt("csrftoken")}})},async cancelTask(e){const t=new FormData;t.append("id",e),await Yr.post("api/cancel/",t,{headers:{...Gr,"X-CSRFToken":xt("csrftoken")}})},cancelUpload(){Xr.cancel(Jr.canceledByUser),Xr=Vr.CancelToken.source()},async sendProcessingFeedback(e){let{splitId:t,id:n,taskType:r,rating:o,splitter:i,stem:a,isDereverbEnabled:s,isEnhancedProcessingEnabled:l,multivocal:c,noiseCancellingLevel:u,isPaidUser:d}=e;const p=new FormData;return p.append("split_id",t),p.append("source_id",n),p.append("task_type",r),p.append("rating",o),p.append("splitter",i),p.append("stem",a),p.append("dereverb_enabled",s),p.append("enhanced_processing_enabled",l),p.append("multivocal",c),p.append("noise_cancelling_level",u),p.append("has_paid_license",d),await Yr.post("splitter/feedback/",p,{headers:{...Gr,"X-CSRFToken":xt("csrftoken")}})}},Zr=Qr;function eo(e){const t=new FormData;for(const n in e)t.append(n,e[n]);return t}const{Axios:to,AxiosError:no,CanceledError:ro,isCancel:oo,CancelToken:io,VERSION:ao,all:so,Cancel:lo,isAxiosError:co,spread:uo,toFormData:po,AxiosHeaders:fo,HttpStatusCode:ho,formToJSON:mo,getAdapter:go,mergeConfig:yo}=Vr;var vo="payment";const bo={SUCCESS:"success",ERROR:"error",PROGRESS:"progress",CREATED:"created",PENDING:"pending",VALID:"valid",INVALID:"invalid"},wo={DELAY_TIME:60,REFRESH_TIME:2e3,CHECK_AUTH_TIME:2e4,CALLBACK_TIMEOUT:10,EVENT_TIMEOUT:15},So={init(){return this.overlay=document.querySelector(".overlay"),this.wrapper=document.querySelector(".waiting-modal__wrapper"),this.modalWindow=document.querySelector(".waiting-modal"),this.modalMessageWindow=document.querySelector(".waiting-modal__message"),this.submitBtn=document.querySelector(".waiting-modal__btn"),this.delayStartDate=null,this.deltaDate=null,this.intervalId=null,this._showMessageWindow=null,this.lsNameDelayStart=Hr.DELAY_START,this.delayTime=wo.DELAY_TIME,this.refreshTime=wo.REFRESH_TIME,this},open(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&localStorage.setItem(this.lsNameDelayStart,Math.floor(Date.now()/1e3)),this.intervalId=setInterval(this._onTimeUpdate.bind(this),this.refreshTime),this.overlay.classList.add("overlay--shown"),this.wrapper.classList.add("waiting-modal--is-opened"),this.modalWindow.style.removeProperty("display"),this.modalWindow.classList.add("waiting-modal--is-opened"),document.body.classList.add("scroll-lock")},_onTimeUpdate(){this.delayStartDate=localStorage.getItem(this.lsNameDelayStart),this.delayStartDate&&(this.deltaDate=Pt(this.delayStartDate,Math.floor(Date.now()/1e3)),this.deltaDate>=this.delayTime&&(this.showMessageWindow.call(this),clearInterval(this.intervalId)))},showMessageWindow(){this.modalWindow.classList.remove("waiting-modal--is-opened"),this.modalWindow.style.display="none",this.modalMessageWindow.style.display="flex",this.modalMessageWindow.classList.add("waiting-modal--is-opened"),this._showMessageWindow=this.closeMessageWindow.bind(this),this.submitBtn.addEventListener("click",this._showMessageWindow)},closeMessageWindow(){this.overlay.classList.remove("overlay--shown"),this.wrapper.classList.remove("waiting-modal--is-opened"),this.modalMessageWindow.classList.remove("waiting-modal--is-opened"),document.body.classList.remove("scroll-lock"),this.submitBtn.removeEventListener("click",this._showMessageWindow),this._showMessageWindow=null},closeAll(){this.closeMessageWindow(),this.modalMessageWindow.style.display="none",this.modalWindow.classList.remove("waiting-modal--is-opened"),this.modalWindow.style.display="none",clearInterval(this.intervalId)}};function _o(){return window.__OMWaitingModal__=Object.create(So).init(),window.__OMWaitingModal__}var Eo=function(){return Eo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Eo.apply(this,arguments)},ko=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},To=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},xo={createBillingSession:function(e,t){return ko(this,void 0,void 0,(function(){return To(this,(function(n){switch(n.label){case 0:return[4,Yr.post(t,e,{headers:Eo(Eo({},Gr),{"X-CSRFToken":xt("csrftoken")})})];case 1:return[2,n.sent()]}}))}))},checkTransactionStatus:function(e){return ko(this,void 0,void 0,(function(){return To(this,(function(t){switch(t.label){case 0:return[4,Yr.get("/billing/transaction-status/".concat(e?"?transaction_id=".concat(e):""))];case 1:return[2,t.sent()]}}))}))}},Co=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},Io=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},Ro=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Oo=Te("".concat(vo,"/checkTransactionStatus"),(function(e,t){return Co(void 0,[e,t],void 0,(function(e,t){var n,r,o,i,a,s,l=e.transactionId,c=t.dispatch,u=t.rejectWithValue,d=t.getState;return Io(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,xo.checkTransactionStatus(l)];case 1:if(n=e.sent(),r=n.data,200!==(o=Ro(n,["data"])).status)throw new Error("Response status: ".concat(o.status,". Response text: ").concat(o.statusText,". Code #23"));if(r.status.toLowerCase()===bo.ERROR)throw new Error("".concat(r.error,". Code #23.1"));return"created"===r.transaction_status||"pending"===r.transaction_status?(c((e=>t=>{const n=localStorage.getItem(Hr.DELAY_START);if(n){if(!(Pt(n,Math.floor(Date.now()/1e3))>wo.DELAY_TIME||(setTimeout((()=>{t(Oo({transactionId:e}))}),wo.CHECK_AUTH_TIME),localStorage.setItem(Hr.PENDING_TRANSACTION,e),window.__OMWaitingModal__))){const e=_o();null==e||e.open(!0)}}else{t(Oo({transactionId:e}));const n=_o();null==n||n.open(!0)}})(l)),[2,{transactionStatus:r.transaction_status}]):(i=np.getAuthStatus(d()),c(sc()),null===(s=window.__OMWaitingModal__)||void 0===s||s.closeAll(),[2,{transactionStatus:r.transaction_status,isAuth:i}]);case 2:return a=e.sent(),console.group("=== Error checking transaction status ==="),console.error(a),console.groupEnd(),a instanceof Error?[2,u(a.toString())]:[2,u("Unknown error occured.")];case 3:return[2]}}))}))}));const Po=Object.freeze({paypal:"/billing/paypal/order/create/",stripe:"/billing/stripe/session/"});function Ao(e){let{userEmail:t="",type:n="",price:r="",currency:o="",userCountry:i="",paymentSource:a="",stem:s="",autocharge:l=!1}=e;const c=new FormData;return c.append("email",t),c.append("option",n),c.append("amount",r),c.append("currency",o),c.append("country",i),c.append("google_cid",Ot()),c.append("payment_source",a),c.append("stem",s),c.append("autocharge",l),c}var Lo=function(e){return e.processingSettings};var No={getStem:function(e){return Lo(e).stem},getSplitter:function(e){return Lo(e).splitterType},getNoiseCancelling:function(e){return Lo(e).noiseCancellingLevel},getEnhancedProcessing:function(e){return Lo(e).isEnhancedProcessingEnabled},getDereverberation:function(e){return Lo(e).isDereverbEnabled},getMultivocal:function(e){return Lo(e).multivocal},getSelectedSplitterByStems:function(e){return Lo(e).selectedSplitterByStems},getOutputFormat:function(e){return Lo(e).outputFormat},getPreviewStem:function(e){return Lo(e).previewSettings.stem},getPreviewSplitter:function(e){return Lo(e).previewSettings.splitterType},getPreviewNoiseCancelling:function(e){return Lo(e).previewSettings.noiseCancellingLevel},getPreviewEnhancedProcessing:function(e){return Lo(e).previewSettings.isEnhancedProcessingEnabled},getPreviewDereverberation:function(e){return Lo(e).previewSettings.isDereverbEnabled},getPreviewMultivocal:function(e){return Lo(e).previewSettings.multivocal},wasPreviewSettingsChanged:function(e){var t=Lo(e),n=t.splitterType,r=t.stem,o=t.isDereverbEnabled,i=t.isEnhancedProcessingEnabled,a=t.noiseCancellingLevel,s=t.multivocal,l=t.previewSettings;return l.splitterType!==n||l.stem!==r||l.noiseCancellingLevel!==a||l.isDereverbEnabled!==o||l.multivocal!==s||i!==l.isEnhancedProcessingEnabled}},Mo=["vocals","voice"];const Do=Object.freeze({vocals:"vocals",drum:"drum",bass:"bass",voice:"voice",electricGuitar:"electric_guitar",acousticGuitar:"acoustic_guitar",piano:"piano",synthesizer:"synthesizer",strings:"strings",wind:"wind"}),Fo={formats:".opus,.flac,.webm,.weba,.wav,.ogg,.m4a,.oga,.mp2,.mp4,.mp3,.aiff,.wma,.au,.aac,.ac3,.dts,.mkv,.avi",maxSizeFileUploadFree:1073741824,maxSizeFileUpload:2147483648,minBatchFilesQuantity:1,maxBatchFilesQuantity:20,processingInterval:600,serverPollingInterval:1e4,maxServerPollingTime:300,linksAlive:86400,registrationFlagLifeTime:864e5,splitResultsAlive:604800,maxNumNotify:5,orionSupportingStems:[Do.vocals,Do.drum,Do.bass,Do.voice,Do.electricGuitar,Do.acousticGuitar,Do.piano],perseusSupportingStems:[Do.vocals,Do.voice],deEchoSupportingStems:[Do.vocals,Do.voice],stems:{vocals:Do.vocals,drum:Do.drum,bass:Do.bass,voice:Do.voice,electric_guitar:Do.electricGuitar,acoustic_guitar:Do.acousticGuitar,piano:Do.piano,synthesizer:Do.synthesizer,strings:Do.strings,wind:Do.wind},betaStems:[Do.synthesizer,Do.strings,Do.wind],specialCountries:["AF","AI","BI","BN","BZ","CD","CF","CG","CK","CM","CU","DJ","ER","ET","FJ","FK","FM","GD","GT","GU","GW","HT","IQ","KH","KI","KN","KP","LK","LR","LY","MF","MH","MM","MV","MW","MZ","NA","NR","O1","PG","PH","PM","PW","RW","SA","SB","SC","SD","SH","SL","SO","SS","SV","SY","TH","TV","TZ","UG","US","VA","VC","VE","WS","ZW"],bonusPrograms:{instagramSubscription:"instagram_subscription_promo",redditSubscription:"reddit_subscription_promo",youtubeSubscription:"youtube_subscription_promo"}};var jo,Uo,Bo;!function(e){e.splitterType="lalal-splitter-type",e.enhancedProcessing="lalal-enhanced-processing",e.noiseCancellingLevel="lalal-noise-cancelling-level",e.stem="lalal-stem",e.outputFormat="lalal-output-format",e.multivocal="lalal-multivocal",e.processingLevel="lalal-processing-level"}(jo||(jo={})),function(e){e.dereverberationFlag="lalal-dereverberation-flag"}(Uo||(Uo={})),function(e){e.splitterType="splitterType",e.stem="stem",e.noiseCancellingLevel="noiseCancellingLevel",e.isEnhancedProcessingEnabled="isEnhancedProcessingEnabled",e.isDereverbEnabled="isDereverbEnabled",e.multivocal="multivocal"}(Bo||(Bo={}));var zo=[{name:Bo.splitterType,lsName:jo.splitterType,defaultValue:"orion"},{name:Bo.stem,lsName:jo.stem,defaultValue:"vocals"},{name:Bo.noiseCancellingLevel,lsName:jo.noiseCancellingLevel,defaultValue:1},{name:Bo.isEnhancedProcessingEnabled,lsName:jo.enhancedProcessing,defaultValue:!0},{name:Bo.multivocal,lsName:jo.multivocal,defaultValue:""}];var qo,Wo,$o,Vo=function(){var e=localStorage.getItem(jo.processingLevel);e&&(localStorage.removeItem(jo.processingLevel),localStorage.setItem(jo.noiseCancellingLevel,e));var t=zo.reduce((function(e,t){var n=localStorage.getItem(t.lsName);return n?(e[t.name]=n,e):(localStorage.setItem(t.lsName,t.defaultValue.toString()),e[t.name]=t.defaultValue,e)}),{}),n=sessionStorage.getItem(Uo.dereverberationFlag);t.isDereverbEnabled=!1,n&&(t.isDereverbEnabled=JSON.parse(n));var r=Object.values(Do).reduce((function(e,t){return Fo.perseusSupportingStems.includes(t)?(e[t]="perseus",e):Fo.orionSupportingStems.includes(t)?(e[t]="orion",e):(e[t]="phoenix",e)}),{});return t.stem&&t.splitterType&&(r[t.stem]=t.splitterType),!localStorage.getItem(Hr.SPLITTER_TYPE_REPLACED_WITH)&&Mo.includes(t.stem)&&(localStorage.setItem(Hr.SPLITTER_TYPE_REPLACED_WITH,"perseus"),localStorage.setItem(Hr.SPLITTER_TYPE,"perseus"),t.splitterType="perseus",r.vocals="perseus"),{splitterType:t.splitterType,stem:t.stem,noiseCancellingLevel:Number(t.noiseCancellingLevel),isEnhancedProcessingEnabled:JSON.parse(t.isEnhancedProcessingEnabled.toString()),multivocal:t.multivocal,selectedSplitterByStems:r,isDereverbEnabled:JSON.parse(t.isDereverbEnabled.toString())}}(),Ho=Vo.splitterType,Go=Vo.stem,Ko=Vo.isEnhancedProcessingEnabled,Yo=Vo.isDereverbEnabled,Jo=Vo.noiseCancellingLevel,Xo=Vo.selectedSplitterByStems,Qo=Vo.multivocal,Zo=Pe({name:"processingSettings",initialState:{splitterType:Ho,stem:Go,isEnhancedProcessingEnabled:Ko,isDereverbEnabled:Yo,noiseCancellingLevel:Jo,selectedSplitterByStems:Xo,outputFormat:localStorage.getItem(Hr.OUTPUT_FORMAT)||"",multivocal:Qo,previewSettings:{splitterType:Ho,stem:Go,isEnhancedProcessingEnabled:Ko,isDereverbEnabled:Yo,noiseCancellingLevel:Jo,multivocal:Qo}},reducers:{setSplitter:function(e,t){var n=t.payload;e.splitterType=n,e.selectedSplitterByStems[e.stem]=n},setNoiseCancelling:function(e,t){var n=t.payload;e.noiseCancellingLevel=n},setStem:function(e,t){var n=t.payload;e.stem=n},setDereverberation:function(e,t){var n=t.payload;e.isDereverbEnabled=n},setEnhancedProcessing:function(e,t){var n=t.payload;e.isEnhancedProcessingEnabled=n},setMultivocal:function(e,t){var n=t.payload;e.multivocal=n},setOutputFormat:function(e,t){var n=t.payload;e.outputFormat=n},setPreviewSplitter:function(e,t){var n=t.payload;e.previewSettings.splitterType=n},setPreviewNoiseCancelling:function(e,t){var n=t.payload;e.previewSettings.noiseCancellingLevel=n},setPreviewStem:function(e,t){var n=t.payload;e.previewSettings.stem=n},setPreviewDereverberation:function(e,t){var n=t.payload;e.previewSettings.isDereverbEnabled=n},setPreviewEnhancedProcessing:function(e,t){var n=t.payload;e.previewSettings.isEnhancedProcessingEnabled=n},setPreviewMultivocal:function(e,t){var n=t.payload;e.previewSettings.multivocal=n}}}),ei=Zo.actions,ti=ei.setEnhancedProcessing,ni=ei.setNoiseCancelling,ri=ei.setOutputFormat,oi=ei.setSplitter,ii=ei.setStem,ai=ei.setMultivocal,si=((qo={})[oi.toString()]={localStorageKey:jo.splitterType,stateSelector:No.getSplitter},qo[ii.toString()]={localStorageKey:jo.stem,stateSelector:No.getStem},qo[ni.toString()]={localStorageKey:jo.noiseCancellingLevel,stateSelector:No.getNoiseCancelling},qo[ti.toString()]={localStorageKey:jo.enhancedProcessing,stateSelector:No.getEnhancedProcessing},qo[ai.toString()]={localStorageKey:jo.multivocal,stateSelector:No.getMultivocal},qo[ri.toString()]={localStorageKey:Hr.OUTPUT_FORMAT,stateSelector:No.getOutputFormat},["vocals","drum","bass","voice","electric_guitar","acoustic_guitar","piano"]);!function(e){e[e.mild=0]="mild",e[e.normal=1]="normal",e[e.aggressive=2]="aggressive"}(Wo||(Wo={}));Zo.actions,($o=Zo.actions).setStem,$o.setSplitter,$o.setNoiseCancelling,$o.setEnhancedProcessing,$o.setPreviewEnhancedProcessing,$o.setDereverberation,$o.setMultivocal,$o.setPreviewDereverberation,$o.setPreviewNoiseCancelling,$o.setPreviewSplitter,$o.setPreviewStem,$o.setOutputFormat,$o.setPreviewMultivocal;var li=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},ci=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},ui=Te("".concat(vo,"/createOrder"),(function(e,t){return li(void 0,[e,t],void 0,(function(e,t){var n,r,o,i,a,s,l,c=e.type,u=e.price,d=e.currency,p=e.paymentType,f=e.paymentSource,h=void 0===f?"":f,m=t.dispatch,g=t.rejectWithValue,y=t.getState;return ci(this,(function(e){switch(e.label){case 0:n=y().user,r=n.email,o=n.selectedCountry,i=No.getStem(y()),window.dataLayer&&window.dataLayer.push({event:"payment_start",value:u,currency:d.toUpperCase(),plan:c}),e.label=1;case 1:return e.trys.push([1,3,,4]),a=Ao({userEmail:r,type:c,price:u,currency:d,userCountry:o,paymentSource:h,stem:i}),[4,xo.createBillingSession(a,Po[p])];case 2:if((s=e.sent().data).status===bo.ERROR||!s.redirect_to)throw new Error("Unable to start payment session. ".concat(null==s?void 0:s.error," Error type: ").concat(p," payment error."));return setTimeout((function(){window.location.href=s.redirect_to})),[2,s];case 3:return l=e.sent(),console.group("=== Order creating error || ".concat(p,"  ===")),console.error(l),console.groupEnd(),window.dataLayer&&window.dataLayer.push({event:"payment_finish",status:"failure",value:u,currency:d.toUpperCase(),plan:c}),l instanceof Error?(m(xi.addNotify({type:"error",title:"",text:l.toString(),delay:0})),[2,g(l.toString())]):[2];case 4:return[2]}}))}))}));new Date;const di=!0;var pi,fi=Pe({name:vo,initialState:{selectedPaymentPlanType:di?"SpecialOffer":"Pro",currentWindow:"remainingLimits",purchaseRequestStatus:"initial",activateRequestStatus:"initial",isPaymentFetching:!1,isSplitProcessStarted:!1,isPaymentChoiceDisabled:!1,isPaymentInPending:!1,isVatAvailable:!1},reducers:{showPaymentWindow:function(e,t){var n=t.payload;e.currentWindow=n},setPurchaseRequestStatus:function(e,t){var n=t.payload;e.purchaseRequestStatus=n},setActivateRequestStatus:function(e,t){var n=t.payload;e.activateRequestStatus=n},setIsPaymentFetching:function(e,t){var n=t.payload;e.isPaymentFetching=n},setIsSplitProcessStarted:function(e,t){var n=t.payload;e.isSplitProcessStarted=n},setIsPaymentChoiceDisabled:function(e,t){var n=t.payload;e.isPaymentChoiceDisabled=n},setIsPaymentInPending:function(e,t){var n=t.payload;e.isPaymentInPending=n},setIsVatAvailable:function(e,t){var n=t.payload;e.isVatAvailable=n}},extraReducers:function(e){!function(e){e.addCase(ui.pending,(function(e){e.isPaymentChoiceDisabled=!0,e.purchaseRequestStatus="fetching"})),e.addCase(ui.fulfilled,(function(e){e.isPaymentChoiceDisabled=!1,e.purchaseRequestStatus="success"})),e.addCase(ui.rejected,(function(e){e.isPaymentChoiceDisabled=!1,e.purchaseRequestStatus="failed"}))}(e),function(e){e.addCase(Oo.fulfilled,(function(e,t){var n=t.payload.transactionStatus;e.isPaymentInPending=["created","pending"].includes(n),"completed"===n&&(localStorage.removeItem(Hr.PENDING_TRANSACTION),localStorage.removeItem(Hr.DELAY_START),e.isPaymentFetching=!1)}))}(e),e.addCase(ac.fulfilled,(function(e){e.currentWindow="remainingLimits"})),e.addCase(ac.rejected,(function(e){e.currentWindow="paymentPlansView"})),e.addCase(vd.fulfilled,(function(e){e.currentWindow="paymentPlansView"}))}}),hi=(fi.actions,(pi=fi.actions).showPaymentWindow),mi=(pi.setPurchaseRequestStatus,pi.setActivateRequestStatus,pi.setIsPaymentFetching),gi=pi.setIsSplitProcessStarted,yi=pi.setIsPaymentChoiceDisabled,vi=(pi.setIsPaymentInPending,pi.setIsVatAvailable,function(){return vi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},vi.apply(this,arguments)}),bi=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},wi=function(e){return 12+64*e+12*e},Si={notifyInit:function(e){e.initNotify=!0},addNotify:function(e,t){var n=t.payload,r=e.listNotify.length,o=e.listNotify.some((function(e){return e.type===n.type&&e.text===n.text}));r<Fo.maxNumNotify&&!o&&(e.listNotify.push(vi(vi({},n),{id:e.nextNotifyId,posY:wi(r)})),e.nextNotifyId=e.nextNotifyId+1)},deleteNotify:function(e,t){var n=t.payload;e.listNotify=e.listNotify.reduce((function(e,t,r){return t.id!==n?bi(bi([],e,!0),[vi(vi({},t),{posY:wi(r)})],!1):e}),[])},deleteAllNotify:function(e,t){var n=t.payload;e.isDeleteAll=n}},_i=window.__OMPaymentTranslate__.notifyMessage||{},Ei=_i.paymentSuccess,ki=_i.paymentUnauthSuccess,Ti=Pe({name:"notify",initialState:{initNotify:!1,listNotify:[],nextNotifyId:0,isDeleteAll:!1},reducers:Si,extraReducers:function(e){e.addCase(Oo.fulfilled,(function(e,t){var n=t.payload,r=n.transactionStatus,o=n.isAuth;if("completed"===r){var i=ki;o&&(i=Ei),Si.addNotify(e,{payload:{type:"success",title:"",text:i,delay:1e4},type:"notify/addNotify"})}})),e.addMatcher(we(ac,vd),(function(e,t){t.payload.message&&Si.addNotify(e,{payload:{type:"error",title:"",text:t.payload.message,delay:0},type:"notify/addNotify"})})),e.addMatcher(we(fa),(function(e,t){t.payload.message!==Jr.canceledByUser&&t.payload.message&&Si.addNotify(e,{payload:{type:"error",title:"",text:t.payload.message,delay:0},type:"notify/addNotify"})}))}}),xi=Ti.actions,Ci=function(e){return e.notify},Ii=(te([function(e){return Ci(e).listNotify}],(function(e){return e.slice().sort((function(e,t){return e.id-t.id}))})),o(96540)),Ri=o(40961);o(4146),o(44363),"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?Ii.useLayoutEffect:Ii.useEffect;o(9423);var Oi=function(){return Math.random().toString(36).substring(7).split("").join(".")};Oi(),Oi();var Pi;Pi=Ri.unstable_batchedUpdates;function Ai(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Ai(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Li(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ai(e))&&(r&&(r+=" "),r+=t);return r}var Ni=o(85072),Mi=o.n(Ni),Di=o(97825),Fi=o.n(Di),ji=o(77659),Ui=o.n(ji),Bi=o(55056),zi=o.n(Bi),qi=o(10540),Wi=o.n(qi),$i=o(41113),Vi=o.n($i),Hi=o(29066),Gi={};Gi.styleTagTransform=Vi(),Gi.setAttributes=zi(),Gi.insert=Ui().bind(null,"head"),Gi.domAPI=Fi(),Gi.insertStyleElement=Wi();Mi()(Hi.A,Gi);const Ki=Hi.A&&Hi.A.locals?Hi.A.locals:void 0;var Yi=function(){return Yi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Yi.apply(this,arguments)},Ji=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Xi={start:Ki.justifyStart,center:Ki.justifyCenter,end:Ki.justifyEnd,between:Ki.justifyBetween},Qi={start:Ki.alignStart,center:Ki.alignCenter,end:Ki.alignEnd,stretch:Ki.alignStretch},Zi={row:Ki.directionRow,column:Ki.directionColumn},ea=(0,Ii.forwardRef)((function(e,t){var n=e.as,r=e.className,o=e.children,i=e.justify,a=e.align,s=void 0===a?"center":a,l=e.direction,c=e.wrap,u=e.gap,d=e.fullWidth,p=e.fullHeight,f=Ji(e,["as","className","children","justify","align","direction","wrap","gap","fullWidth","fullHeight"]),h=n||"div",m=Li(Ki.flex,d&&Ki.fullWidth,p&&Ki.fullHeight,i&&Xi[i],Qi[s],l&&Zi[l],c&&Ki[c],r),g=u;"number"==typeof g&&(g="".concat(g,"px"));var y=Yi(Yi({},f.style),{"--gapSize":g});return Ii.createElement(h,Yi({className:m},f,{style:y,ref:t}),o)})),ta=function(){return ta=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ta.apply(this,arguments)},na=((0,Ii.forwardRef)((function(e,t){return Ii.createElement(ea,ta({},e,{ref:t}))})),function(){return na=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},na.apply(this,arguments)}),ra=((0,Ii.forwardRef)((function(e,t){var n=e.align,r=void 0===n?"start":n;return Ii.createElement(ea,na({},e,{direction:"column",align:r,ref:t}))})),function(){return ra=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ra.apply(this,arguments)}),oa=ra({},window.__OMAppTranslate__);Object.freeze({notifyTitle:oa.notifyTitle||{}});var ia=o(55289),aa={};aa.styleTagTransform=Vi(),aa.setAttributes=zi(),aa.insert=Ui().bind(null,"head"),aa.domAPI=Fi(),aa.insertStyleElement=Wi();Mi()(ia.A,aa);ia.A&&ia.A.locals&&ia.A.locals;var sa=o(45769),la={};la.styleTagTransform=Vi(),la.setAttributes=zi(),la.insert=Ui().bind(null,"head"),la.domAPI=Fi(),la.insertStyleElement=Wi();Mi()(sa.A,la);sa.A&&sa.A.locals&&sa.A.locals;document.body;function ca(e,t){return"perseus"===e&&Mo.includes(t)?"perseus":"orion"===e&&si.includes(t)?"orion":"phoenix"}var ua=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},da=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},pa=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},fa=Te("".concat(St,"/uploadFile"),(function(e,t){return ua(void 0,[e,t],void 0,(function(e,t){e.isMultipleUpload;var n,r,o,i,a,s,l,c,u,d,p,f=e.file,h=e.fileId,m=(e.widgetId,t.getState),g=t.rejectWithValue;return da(this,(function(e){switch(e.label){case 0:localStorage.removeItem(Hr.PREVIEW_START),n=m(),r=No.getStem(n),o=No.getSplitter(n),e.label=1;case 1:return e.trys.push([1,3,,4]),null===(u=null===window||void 0===window?void 0:window.dataLayer)||void 0===u||u.push({event:"upload_start"}),[4,Zr.uploadFile(f)];case 2:return i=e.sent(),a=i.data,s=pa(i,["data"]),a?a.status.toLowerCase()!==bo.SUCCESS?[2,g({data:{fileId:h},message:"".concat(a.error,". Code #3")})]:(null===(d=null===window||void 0===window?void 0:window.dataLayer)||void 0===d||d.push({event:"upload_finish",status:"success"}),l={id:a.id,status:"UPLOADED",name:a.name,size:Ct(a.size),duration:a.duration,stem:r,splitter:ca(o,r),audioInfo:[],taskType:null==a?void 0:a.task_type},[2,{fileId:h,fileInfo:l}]):[2,g({data:{fileId:h},message:"".concat(mt.emptyServerResponseUpload,". Request status: ").concat(s.status,". Status text: ").concat(s.statusText,". Code #2")})];case 3:return function(e){var t,n;e instanceof no&&(e.response||(null===(t=e.request)||void 0===t?void 0:t.readyState)!==Jr.networkErrorReadyState||(null===(n=e.request)||void 0===n?void 0:n.status)!==Jr.networkErrorRequestStatus||location.reload())}(c=e.sent()),console.group("=== Error loading file ==="),console.error(c),console.groupEnd(),null===(p=null===window||void 0===window?void 0:window.dataLayer)||void 0===p||p.push({event:"upload_finish",status:"failure"}),c instanceof Error?[2,g({data:{fileId:h},message:c.message})]:[2,g({message:"Unknown error",data:{fileId:h}})];case 4:return[2]}}))}))})),ha=function(){return ha=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ha.apply(this,arguments)},ma=JSON.parse(localStorage.getItem(Hr.FILES_INFO)||"[]"),ga=function(){return ga=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ga.apply(this,arguments)},ya=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},va={addFile:function(e,t){var n=t.payload;e.fileList.push(n)},removeUploadingFileByName:function(e,t){var n=t.payload;e.fileList=e.fileList.filter((function(e){return e.name!==n||!["WAITING","UPLOADING"].includes(e.status)}))},removeFileById:function(e,t){var n=t.payload;e.fileList=e.fileList.filter((function(e){return e.id!==n}))},addFileList:function(e,t){var n=t.payload;e.fileList=ya(ya([],e.fileList,!0),n,!0)},updateFileStatus:function(e,t){var n=t.payload,r=n.isUnified,o=void 0!==r&&r,i=n.fileId,a=n.status;e.fileList=o?e.fileList.map((function(e){return e.status=a,e})):e.fileList.map((function(e){return e.id===i?(e.status=a,e):e}))},overwriteFileList:function(e,t){var n=t.payload;e.fileList=n},clearFileList:function(e){e.fileList=[]},clearFileSources:function(e,t){var n,r,o=t.payload;e.fileList.length-1<o||(e.fileList[o].audioInfo=null===(r=null===(n=e.fileList[o])||void 0===n?void 0:n.audioInfo)||void 0===r?void 0:r.map((function(e){return ga(ga({},e),{src:"",playlistSrc:"",waveform:"",size:0})})))},setFileStem:function(e,t){var n=t.payload,r=n.stem,o=n.fileId,i=void 0===o?"":o,a=n.isUnified;if(void 0!==a&&a){var s=e.fileList.map((function(e){return e.stem=r,e}));e.fileList=s}else e.fileList=e.fileList.map((function(e){return i===e.id&&(e.stem=r),e}))},setFileSplitter:function(e,t){var n=t.payload,r=n.isUnified,o=void 0!==r&&r,i=n.fileId,a=void 0===i?"":i,s=n.splitter;e.fileList=o?e.fileList.map((function(e){return e.splitter=s,e})):e.fileList.map((function(e){return e.id===a&&(e.splitter=s),e}))},setFilesArchive:function(e,t){var n=t.payload;e.filesArchive=n},removeUploadingFiles:function(e){e.fileList=e.fileList.filter((function(e){return!["WAITING","UPLOADING"].includes(e.status)}))},removeRejectedFiles:function(e){e.fileList=e.fileList.filter((function(e){return"REJECTED"!==e.status}))},updateFileInfoById:function(e,t){var n=t.payload,r=n.fileId,o=n.fileInfo;e.fileList=e.fileList.map((function(e){return e.id===r&&(e=ga(ga({},e),o)),e}))}},ba=Pe({name:"files",initialState:{fileList:ma,filesArchive:{size:"",url:"",status:null}},reducers:va,extraReducers:function(e){!function(e){e.addCase(fa.pending,(function(e,t){e.fileList=e.fileList.map((function(e){return e.id===t.meta.arg.fileId&&(e.status="UPLOADING"),e}))})),e.addCase(fa.fulfilled,(function(e,t){e.fileList=e.fileList.map((function(e){return e.id===t.payload.fileId&&(e=ha(ha({},e),t.payload.fileInfo)),e}))})),e.addCase(fa.rejected,(function(e,t){var n,r,o=(null===(r=null===(n=t.payload)||void 0===n?void 0:n.data)||void 0===r?void 0:r.fileId)||t.meta.arg.fileId;e.fileList=e.fileList.map((function(e){return e.id===o&&(e.status="REJECTED"),e})),t.meta.arg.isMultipleUpload||(e.fileList=[])}))}(e)}}),wa=function(e){return e.files};function Sa(e){return function(t){return t.filter((function(t){return e.includes(t.status)}))}}var _a,Ea=te((function(e){return wa(e).fileList}),(function(e){return e.reduce((function(e,t){return"WAITING"===t.status||"UPLOADING"===t.status?e:t.duration?e+t.duration:e}),0)})),ka=te((function(e){return wa(e).fileList}),Sa(["UPLOADED","DONE","PREVIEW","SPLIT"])),Ta=te((function(e){return wa(e).fileList}),Sa(["UPLOADING","WAITING","REJECTED"])),xa=function(){return xa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xa.apply(this,arguments)},Ca=xa({getArchiveInfo:function(e){return function(e){return e.files}(e).filesArchive}},{getDuration:Ea,getPreparedFiles:ka,getUploadFiles:Ta}),Ia=((_a=ba.actions).addFile,_a.clearFileList),Ra=_a.overwriteFileList,Oa=_a.clearFileSources,Pa=_a.setFilesArchive,Aa=(_a.setFileSplitter,_a.updateFileStatus),La=(_a.setFileStem,_a.addFileList,_a.removeUploadingFiles),Na=(_a.removeUploadingFileByName,_a.removeRejectedFiles);_a.removeFileById,_a.updateFileInfoById;const Ma=Object.freeze({DISPOSABLE_EMAIL:"disposable_email",FILE_CLEANNED_UP:"file_not_found",APPLE_MIGRATION_LOGIN_ERROR:"apple_migration_login_error",TOKEN_GENERATION_LIMIT:"token_generation_limit",TOKEN_VERIFICATION_LIMIT:"token_verification_limit",TOKEN_EXPIRED:"token_expired",TOKEN_INVALID:"token_invalid",TOO_MANY_FAILED_ATTEMPTS:"too_many_failed_attempts",KEY_HAS_OWNER:"key_has_owner",INVALID_VAT:"invalid_vat",INVALID_EMAIL:"invalid_email",INVALID_CAPTCHA:"captcha_invalid"}),Da={ARCHIVE:"archive",BATCH:"batch"},Fa={WAITING:"WAITING",UPLOADING:"UPLOADING",UPLOADED:"UPLOADED",PREVIEW:"PREVIEW",SPLIT:"SPLIT",DONE:"DONE",REJECTED:"REJECTED"},ja={DEFAULT:"default",UPLOADING:"uploading",BATCH_UPLOADING:"batch-uploading",BATCH_UPLOAD_FINISH:"batch-upload-finish",PROCESSING_INITIALIZATION:"processing-initialization",PROCESSING:"processing",PREVIEW:"preview",SPLIT:"split",BATCH_SPLIT:"batch-split",DONE:"done",BATCH_DONE:"batch-done",BATCH:"batch"};function Ua(e){switch(e){case"finish":return ja.PREVIEW;case"full-processing":return ja.SPLIT;case"full-finish":return ja.DONE;default:return e}}const Ba=ja,za=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const i=JSON.parse(localStorage.getItem(Hr.FILES_INFO)),a=t.includes(Ba.BATCH),s=r-Fo.linksAlive>=Fo.splitResultsAlive,l=i&&(t===Ba.BATCH_DONE||t===Ba.DONE);if(t===Ba.PROCESSING_INITIALIZATION)return e(As({status:"default"})),void e(Ha());if(l&&s)return e(As({status:"default",withReset:!0})),void e(Ha());if([Ba.BATCH_UPLOAD_FINISH,Ba.PREVIEW].includes(t)&&o&&e(xi.addNotify({type:"default",title:"",text:a?n.notifyMessage.error.missingFileInfoBatch:n.notifyMessage.error.missingFileInfo,delay:0})),l){e(Ra(i));const t=JSON.parse(localStorage.getItem(Hr.SPLITTED_FILES_ARCHIVE));return t&&e(Pa(t)),a?void e(As({status:"batch-done"})):void(r&&e(As({status:"done"})))}e(As({status:"default",withReset:!0})),e(Ha())},qa=function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];const a=(null==t?void 0:t.status)===bo.SUCCESS,s=localStorage.getItem(Hr.SERVER_POLLING_START),l=!t||!s||(null==t?void 0:t.status)===bo.ERROR||!o||Pt(s,Math.floor(Date.now()/1e3))>=Fo.maxServerPollingTime;a||l?a?e(Pa({status:"DONE",url:null==t?void 0:t.url,size:null==t?void 0:t.size})):(e(Pa({status:"REJECTED",url:null,size:null})),r&&!i&&e(xi.addNotify({type:"error",title:"",text:"".concat(n.notifyMessage.error.archiveCreatingError," ").concat(null==t?void 0:t.error,". Code #6.5"),delay:0}))):e(Pa({status:"WAITING"}))};const Wa=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=localStorage.getItem(Hr.STEM_TYPE)||"";console.group("=== Error checking task ==="),console.error(t),console.groupEnd(),localStorage.setItem(Hr.STATUS_BAR,"0"),localStorage.setItem(Hr.STATUS,Ba.DEFAULT),localStorage.removeItem(Hr.FILES_INFO),localStorage.removeItem(Hr.MISSING_PREVIEW_FLAG),localStorage.removeItem(Hr.SPLITTED_FILES_ARCHIVE),localStorage.removeItem(Hr.PREVIEW_START),localStorage.removeItem(Hr.SERVER_POLLING_START),e(As({status:"default",withReset:!0})),e(Rs(!0)),e(Ts(!0)),e(Os(0)),e(Ia()),e(La()),n&&dataLayer.push({event:"preview_finish",status:"failure",splitter_type:ca(localStorage.getItem(Hr.SPLITTER_TYPE),r),stem:r}),e(xi.addNotify({type:"error",title:"",text:t.toString(),delay:0}))};var $a=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},Va=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},Ha=Te("".concat(St,"/resetAllProgress"),(function(e,t){return $a(void 0,[e,t],void 0,(function(e,t){var n=t.dispatch;return Va(this,(function(e){return localStorage.removeItem(Hr.FILES_INFO),localStorage.removeItem(Hr.PREVIEW_START),n(Ia()),[2]}))}))}));function Ga(e){var t,n=e.fileId,r=e.fileData,o=e.isDone,i=void 0!==o&&o,a=r||{},s=a.player,l=a.split,c=a.preview,u=a.duration,d=a.name,p=a.splitter,f=a.stem,h=null===(t=r.task)||void 0===t?void 0:t.split_id,m=r.task_type,g=c,y="PREVIEW";i&&(y="DONE",g=s||l);var v=g||{},b=v.stem_track_playlist,w=void 0===b?"":b,S=v.stem_track_size,_=void 0===S?0:S,E=v.stem_waveform,k=void 0===E?"":E,T=v.stem_track,x=void 0===T?"":T,C=v.stem_track_playlist_1,I=void 0===C?"":C,R=v.stem_track_size_1,O=void 0===R?0:R,P=v.stem_waveform_1,A=void 0===P?"":P,L=v.stem_track_1,N=void 0===L?"":L,M=v.back_track_playlist,D=void 0===M?"":M,F=v.back_track_size,j=void 0===F?0:F,U=v.back_waveform,B=void 0===U?"":U,z=v.back_track,q=void 0===z?"":z,W=I&&A||N,$=[];return $.push({stemLabel:W?"lead_vocals":f,size:Ct(_),src:x,playlistSrc:w,waveform:k}),W&&$.push({src:N,size:Ct(O),stemLabel:"back_vocals",playlistSrc:I,waveform:A}),$.push({stemLabel:"no_".concat(f),size:Ct(j),src:q,playlistSrc:D,waveform:B}),{id:n,size:Ct(r.size),status:y,name:d,stem:f,duration:u,splitter:p,audioInfo:$,splitId:h,taskType:m}}var Ka=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},Ya=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},Ja=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Xa=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},Qa=Te("".concat(St,"/checkBatchStatusPreparation"),(function(e,t){return Ka(void 0,[e,t],void 0,(function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,y,v,b,w,S=e.isArchivationActive,_=void 0!==S&&S,E=e.isInit,k=void 0!==E&&E,T=e.isReturn,x=void 0!==T&&T,C=t.dispatch,I=t.getState;return Ya(this,(function(e){switch(e.label){case 0:if(n=No.getDereverberation(I()),r=JSON.parse(localStorage.getItem(Hr.FILES_INFO)||"[]"),o=null==r?void 0:r.reduce((function(e,t){return Xa(Xa([],e,!0),[t.id],!1)}),[]).join(),i=localStorage.getItem(Hr.SPLITTER_TYPE),!o)return a=new Error("".concat(mt.notifyMessage.error.missingTaskInfo,". Code #6")),Wa(C,a,!1),[2];s=Ua(localStorage.getItem(Hr.STATUS)||""),e.label=1;case 1:return e.trys.push([1,3,,4]),C(Rs(!1)),[4,Zr.check(o)];case 2:if(l=e.sent(),c=l.data,u=Ja(l,["data"]),C(Rs(!0)),!c)throw new Error("".concat(mt.notifyMessage.error.checkServerError," Request status: ").concat(u.status,". Status text: ").concat(u.statusText,". Code #6.1:"));if(c.status.toLowerCase()===bo.ERROR||0===(null===(g=Object.keys(c.result))||void 0===g?void 0:g.length))throw new Error("".concat(mt.notifyMessage.error.checkServerError," ").concat(null==c?void 0:c.error,". Files IDs: ").concat(o,". Code #6.2"));for(p in d=[],c.result)if(p!==Da.ARCHIVE&&p!==Da.BATCH){if(f=c.result[p],h=null,f.status.toLowerCase()===bo.ERROR)throw new Error("".concat((null==f?void 0:f.code)||"",". ").concat(f.error,"; ID: ").concat(p,". Code #6.3"));f.task&&0===(null===(y=Object.keys(f.task))||void 0===y?void 0:y.length)||s===Ba.BATCH_UPLOAD_FINISH?h={id:p,status:Fa.UPLOADED,name:f.name,size:Ct(f.size),duration:f.duration,stem:f.stem,splitter:f.splitter}:f.task.state.toLowerCase()===bo.PROGRESS?h={id:p,status:Fa.SPLIT,progress:f.task.progress,name:f.name,size:Ct(f.size),duration:f.duration,stem:f.stem,splitter:f.splitter}:f.task.state.toLowerCase()===bo.SUCCESS?h=Ga({fileId:p,fileData:f,isDone:!0}):f.task.state.toLowerCase()===bo.ERROR&&(!f.task.error.includes("The task has been cancelled")&&C(xi.addNotify({type:"error",title:"",text:"".concat(f.task.error,"; File: ").concat(null==f?void 0:f.name," ID: ").concat(p,". Code #6.4"),delay:0})),h={id:p,status:Fa.REJECTED,name:null==f?void 0:f.name,size:Ct((null==f?void 0:f.size)||0),duration:null==f?void 0:f.duration,stem:null==f?void 0:f.stem,splitter:i}),h&&d.push(h)}return(null==(t=d)?void 0:t.every((e=>e.status===Fa.REJECTED)))?(C(As({status:"default",withReset:!0})),C(Ha()),gl("failure",r,n),[2]):(_||C(Ra(d.sort(((e,t)=>e.name>t.name?1:e.name<t.name?-1:0)))),s!==Ba.BATCH_UPLOAD_FINISH&&function(e){return null==e?void 0:e.every((e=>e.status===Fa.DONE||e.status===Fa.REJECTED))}(d)&&!_&&(C(As({status:"batch-done",withReset:!0})),C(sc()),k||(gl("success",d,n),localStorage.setItem(Hr.SERVER_POLLING_START,Math.floor(Date.now()/1e3).toString()))),qa(C,null===(v=c.result)||void 0===v?void 0:v.archive,mt,_,d.length,k),[3,4]);case 3:return(m=e.sent())instanceof no&&!m.response&&(null===(b=m.request)||void 0===b?void 0:b.readyState)===Jr.networkErrorReadyState&&(null===(w=m.request)||void 0===w?void 0:w.status)===Jr.networkErrorRequestStatus?(location.reload(),[2]):(C(Pa({status:"REJECTED",url:"",size:""})),m instanceof Error?m.message.includes(Ma.FILE_CLEANNED_UP)?(za(C,s,mt,null,x),[2]):(Wa(C,m,!1),gl("failure",r,n),[3,4]):[2]);case 4:return[2]}var t}))}))}));function Za(e,t){return[Do.vocals,Do.voice].includes(e)?t:""}var es=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},ts=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},ns=Te("app/checkFullPreparation",(function(e,t){return es(void 0,[e,t],void 0,(function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,y,v,b,w,S,_=e.widgetId,E=e.isArchivationActive,k=t.dispatch,T=t.getState;return ts(this,(function(e){switch(e.label){case 0:if(n=JSON.parse(localStorage.getItem(Hr.FILES_INFO)||"[]")[0],r=null==n?void 0:n.id,o=null==n?void 0:n.stem,i=No.getDereverberation(T()),_!==parseInt(localStorage.getItem(Hr.WIDGET_ID)||"0"))return[2];!localStorage.getItem(Hr.SERVER_POLLING_START)&&!E&&localStorage.setItem(Hr.SERVER_POLLING_START,Math.floor(Date.now()/1e3).toString()),e.label=1;case 1:return e.trys.push([1,3,,4]),k(Rs(!1)),[4,Zr.check(r)];case 2:if(a=e.sent().data,k(Rs(!0)),a.status.toLowerCase()===bo.ERROR||!a.result[r]||!a.result[r].task)throw new Error("".concat((null===(d=a.result[r])||void 0===d?void 0:d.code)||""," ").concat((null==a?void 0:a.error)||(null===(f=null===(p=a.result)||void 0===p?void 0:p[r])||void 0===f?void 0:f.error),"; Task ID: ").concat(r,"; Code #7"));if((s=a.result[r]).status.toLowerCase()===bo.ERROR||(null===(h=null==s?void 0:s.task.state)||void 0===h?void 0:h.toLowerCase())===bo.ERROR)throw new Error("".concat((null==s?void 0:s.code)||"",". ").concat(s.error||(null===(m=null==s?void 0:s.task)||void 0===m?void 0:m.error),"; Task ID: ").concat(r,"; Code #7.1"));return qa(k,null===(g=a.result)||void 0===g?void 0:g.archive,mt,E,Fo.minBatchFilesQuantity),E?[2]:(s.status.toLowerCase()===bo.SUCCESS&&(null===(y=s.task.state)||void 0===y?void 0:y.toLowerCase())===bo.SUCCESS?(l=Pt(localStorage.getItem(Hr.PREVIEW_START),Math.floor(Date.now()/1e3)),k(sc()),localStorage.setItem(Hr.STATUS_BAR,"0"),localStorage.setItem(Hr.STATUS,Ba.DONE),k(As({status:"done"})),c=Ga({fileId:r,fileData:s,isDone:!0}),k(Ra([c])),window.dataLayer&&window.dataLayer.push({event:"split_finish",status:"success",duration:l,splitter_type:ca(localStorage.getItem(Hr.SPLITTER_TYPE),s.stem),stem:s.stem,dereverberation:Za(s.stem,i)}),k(xi.addNotify({type:"success",title:"",text:mt.notifyMessage.ok.success,delay:3e3}))):(null===(v=s.task.state)||void 0===v?void 0:v.toLowerCase())===bo.PROGRESS&&(localStorage.setItem(Hr.STATUS_BAR,s.task.progress),k(Os(s.task.progress))),[3,4]);case 3:return u=e.sent(),console.group("=== Check full preparation Error ==="),console.error(u),console.groupEnd(),k(Pa({status:"REJECTED",url:"",size:""})),u instanceof no&&!u.response&&(null===(b=u.request)||void 0===b?void 0:b.readyState)===Jr.networkErrorReadyState&&(null===(w=u.request)||void 0===w?void 0:w.status)===Jr.networkErrorRequestStatus?(location.reload(),[2]):u instanceof Error?u.message.includes(Ma.FILE_CLEANNED_UP)?(za(k,localStorage.getItem(Hr.STATUS),mt),[2]):(Wa(k,u,!1),window.dataLayer&&(null===(S=null===window||void 0===window?void 0:window.dataLayer)||void 0===S||S.push({event:"split_finish",status:"failure",splitter_type:ca(localStorage.getItem(Hr.SPLITTER_TYPE),o),stem:o})),[3,4]):[2];case 4:return[2]}}))}))})),rs=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},os=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},is=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},as=Te("".concat(St,"/checkInitInfo"),(function(e,t){return rs(void 0,[e,t],void 0,(function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h=t.dispatch,m=t.getState;return os(this,(function(e){switch(e.label){case 0:if(n=Ca.getPreparedFiles(m()),r=null===(p=n[0])||void 0===p?void 0:p.id,o=Ua(localStorage.getItem(Hr.STATUS)||""),!r)return[2];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,Zr.check(r)];case 2:if(i=e.sent(),a=i.data,200!==(s=is(i,["data"])).status)throw new Error("Response status: ".concat(s.status,". Response text: ").concat(s.statusText,". Code #24"));if(a.status.toLowerCase()===bo.ERROR)throw new Error("".concat(a.error,"; ID: ").concat(r,"; Code #1.1"));if(l=a.result[r],!l||l.status.toLowerCase()===bo.ERROR||l.task.state.toLowerCase()!==bo.SUCCESS)throw new Error("".concat(a.error||l.error,"; ID: ").concat(r,"; ").concat((null==l?void 0:l.code)||""," Code #1.2"));return c=o===Ba.DONE,u=Ga({fileId:r,fileData:l,isDone:c}),h(Ra([u])),qa(h,null===(f=a.result)||void 0===f?void 0:f.archive,mt,!1,Fo.minBatchFilesQuantity,!0),[3,4];case 3:return(d=e.sent())instanceof Error?d.message.includes(Ma.FILE_CLEANNED_UP)?(za(h,o,mt),[2]):(Wa(h,d,!1),[3,4]):[2];case 4:return[2]}}))}))})),ss=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},ls=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},cs=Te("".concat(St,"/checkStatusPreparation"),(function(e,t){return ss(void 0,[e,t],void 0,(function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,y,v=e.widgetId,b=e.fileId,w=void 0===b?"":b,S=e.isReturnedToPreview,_=void 0!==S&&S,E=t.getState,k=t.dispatch;return ls(this,(function(e){switch(e.label){case 0:if(n=Ca.getPreparedFiles(E()),r=w||(null===(d=n[0])||void 0===d?void 0:d.id),v.toString()!==localStorage.getItem(Hr.WIDGET_ID)&&!_||!r)return[2];o=No.getDereverberation(E()),e.label=1;case 1:return e.trys.push([1,3,,4]),k(Rs(!1)),[4,Zr.check(r)];case 2:if(i=e.sent().data,k(Rs(!0)),!i||!i.result||i.status.toLowerCase()===bo.ERROR)throw new Error("".concat(mt.notifyMessage.error.checkServerError,". ").concat(i.error,". Task ID: ").concat(r,"; Code #4"));if(0===(null===(p=Object.keys(i.result))||void 0===p?void 0:p.length)||!i.result[r])return a=new Error("".concat(mt.notifyMessage.error.missingTaskInfo,". Code #4.1")),Wa(k,a),[2];if((s=i.result[r]).status.toLowerCase()===bo.ERROR||(null===(h=null===(f=null==s?void 0:s.task)||void 0===f?void 0:f.state)||void 0===h?void 0:h.toLowerCase())===bo.ERROR)throw new Error("".concat((null==s?void 0:s.code)||"",". ").concat((null==s?void 0:s.error)||(null===(m=null==s?void 0:s.task)||void 0===m?void 0:m.error),"; Task ID: ").concat(r,"; Code #4.2"));return s.task.state.toLowerCase()===bo.PROGRESS?(localStorage.setItem(Hr.STATUS_BAR,s.task.progress),k(Os(s.task.progress)),[2]):(l=Ga({fileId:r,fileData:s,isDone:!1}),k(Ra([l])),k(sc()),k(Os(0)),localStorage.setItem(Hr.STATUS_BAR,"0"),localStorage.setItem(Hr.STATUS,Ba.PREVIEW),k(As({status:"preview"})),_?[2]:(c=Pt(localStorage.getItem(Hr.PREVIEW_START),Math.floor(Date.now()/1e3)),window.dataLayer&&window.dataLayer.push({event:"preview_finish",status:"success",duration:c,splitter_type:ca(localStorage.getItem(Hr.SPLITTER_TYPE),s.stem),stem:s.stem,dereverberation:Za(s.stem,o)}),localStorage.removeItem(Hr.MISSING_PREVIEW_FLAG),[3,4]));case 3:return(u=e.sent())instanceof no&&!u.response&&(null===(g=u.request)||void 0===g?void 0:g.readyState)===Jr.networkErrorReadyState&&(null===(y=u.request)||void 0===y?void 0:y.status)===Jr.networkErrorRequestStatus?(location.reload(),[2]):u instanceof Error?u.message.includes(Ma.FILE_CLEANNED_UP)?(za(k,localStorage.getItem(Hr.STATUS),mt,null,_),[2]):(Wa(k,u),[3,4]):[2];case 4:return[2]}}))}))})),us=me(Qa.pending,ns.pending,as.pending,cs.pending),ds=me(Qa.fulfilled,ns.fulfilled,as.fulfilled,cs.fulfilled),ps=me(Qa.rejected,ns.rejected,as.rejected,cs.rejected);function fs(){let e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,i=arguments.length>6?arguments[6]:void 0,a=arguments.length>7?arguments[7]:void 0,s=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(((l,c)=>{const u={id:l,stem:e[c],splitter:ca(t[c],e[c]),dereverb_enabled:r,noise_cancelling_level:n,enhanced_processing_enabled:o,multivocal:a};i&&(u.encoder_format=i),s.push(u)})),s}var hs=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},ms=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},gs=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},ys=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},vs=Te("".concat(St,"/checkConstraints"),(function(e,t){return hs(void 0,[e,t],void 0,(function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,y,v,b,w,S,_,E,k,T,x,C=t.dispatch,I=t.getState;return ms(this,(function(e){switch(e.label){case 0:if(n=localStorage.getItem(Hr.STATUS),r=!1,n&&(r=n.includes(Ba.BATCH)),o=function(e){const{mild:t,normal:n,agressive:r}=Tt;return null===e?n:e>r?r:e<t?n:e}(Number(localStorage.getItem(Hr.NOISE_CANCELLING_LEVEL))),i=I().processingSettings,a=i.isDereverbEnabled,s=i.isEnhancedProcessingEnabled,l=i.outputFormat,c=i.multivocal,u=JSON.parse(localStorage.getItem(Hr.FILES_INFO)||"[]"),d=null==u?void 0:u.reduce((function(e,t){return ys(ys([],e,!0),[t.id],!1)}),[]),p=r?null==u?void 0:u.reduce((function(e,t){return ys(ys([],e,!0),[t.stem],!1)}),[]):[localStorage.getItem(Hr.STEM_TYPE)],f=r?null==u?void 0:u.reduce((function(e,t){return ys(ys([],e,!0),[t.splitter],!1)}),[]):[localStorage.getItem(Hr.SPLITTER_TYPE)],!d&&!p&&d.length!==p.length)return h=new Error("".concat(mt.missingTaskInfo,". Code #9")),Wa(C,h,!1),[2];m=fs(d,p,f,o,a,s,l,c),g=JSON.stringify(m),e.label=1;case 1:return e.trys.push([1,3,,4]),C(Ts(!1)),[4,Zr.checkConstraints(g)];case 2:if(y=e.sent(),v=y.data,b=gs(y,["data"]),C(Ts(!0)),!v)throw new Error("".concat(mt.limitCheckServerError,". Request status: ").concat(b.status,". Status text: ").concat(b.statusText,". Code #9.1"));if(v.status.toLowerCase()===bo.ERROR)throw C(Cs({status:!0,code:"unknown",requiredValue:"",availableValue:""})),C(Is(!1)),C(xs(!0)),new Error("".concat(v.error,". Code #9.2"));if(0===v.details.length)return C(Cs({status:!1,code:null,requiredValue:"",availableValue:""})),C(Is(!1)),C(xs(!0)),[2];for(w=function(e){var t=v.details.find((function(t){return t.code===e}));if(t)return C(Cs({status:!0,code:t.code,requiredValue:(null===(T=t.params)||void 0===T?void 0:T.required)||"",availableValue:(null===(x=t.params)||void 0===x?void 0:x.available)||""})),C(xs(!0)),{value:void 0}},S=0,_=wt;S<_.length;S++)if("object"==typeof(E=w(_[S])))return[2,E.value];return C(Cs({status:!0,code:"unknown",requiredValue:"",availableValue:""})),C(Is(!1)),[3,4];case 3:return k=e.sent(),console.group("=== Error checking constraints ==="),console.error(k),console.groupEnd(),[3,4];case 4:return[2]}}))}))}));function bs(){var e;null===(e=window.__OMPlayers__)||void 0===e||e.forEach((e=>e.stop()))}var ws,Ss=function(){return Ss=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ss.apply(this,arguments)},_s={setIsInit:function(e,t){var n=t.payload;e.isInit=n},setConstraint:function(e,t){var n=t.payload,r=e.constraint,o=r.wasChecked,i=r.canCheck;e.constraint=Ss(Ss({},n),{wasChecked:o,canCheck:i})},setCanCheckConstraint:function(e,t){var n=t.payload;e.constraint.canCheck=n},setWasCheckedConstraint:function(e,t){var n=t.payload;e.constraint.wasChecked=n},setIsRemainingButtonDisabled:function(e,t){var n=t.payload;e.isRemainingButtonDisabled=n},setIsAbleCheckStatusPreparation:function(e,t){var n=t.payload;e.isAbleCheckStatusPreparation=n},setStatusBar:function(e,t){var n=t.payload;e.statusBar=n},setGlobalWidgetId:function(e,t){var n=t.payload;e.globalWidgetId=n},setPlayerStatus:function(e,t){var n=t.payload,r=n.status,o=n.widgetPriority;e.playerStatus[o]=r},setAppStatus:function(e,t){var n=t.payload,r=n.status,o=n.withReset,i=void 0!==o&&o;e.appStatus=r,i&&(localStorage.setItem(Hr.STATUS,r),e.isRemainingButtonDisabled=!0,e.constraint={canCheck:e.constraint.canCheck,status:!1,code:null,requiredValue:"",availableValue:"",wasChecked:!1},bs(),e.playerStatus={primary:"stop",secondary:"stop"},window.__OMPlayers__=[])}},Es=Pe({name:St,initialState:{appStatus:"default",globalWidgetId:"",isInit:!1,constraint:{status:!1,wasChecked:!1,canCheck:!1,code:null,requiredValue:"",availableValue:""},isRemainingButtonDisabled:!0,isAbleCheckStatusPreparation:!0,statusBar:0,playerStatus:{primary:"stop",secondary:"stop"},checkRequestStatus:"initial",checkConstraintsRequestStatus:"initial",uploadFileRequestStatus:"initial",startPreviewRequestStatus:"initial",startSplitRequestStatus:"initial"},reducers:_s,extraReducers:function(e){!function(e){e.addCase($s.pending,(function(e){e.startSplitRequestStatus="fetching"})),e.addCase($s.fulfilled,(function(e){e.startSplitRequestStatus="success"})),e.addCase($s.rejected,(function(e){e.startSplitRequestStatus="failed"}))}(e),function(e){e.addCase(vs.pending,(function(e){e.checkConstraintsRequestStatus="fetching"})),e.addCase(vs.fulfilled,(function(e){e.checkConstraintsRequestStatus="success"})),e.addCase(vs.rejected,(function(e){e.checkConstraintsRequestStatus="failed"}))}(e),function(e){e.addCase(fa.pending,(function(e,t){var n=t.meta.arg,r=n.isMultipleUpload,o=n.widgetId;e.uploadFileRequestStatus="fetching",e.isRemainingButtonDisabled=!0,e.globalWidgetId=o,localStorage.setItem(Hr.WIDGET_ID,o),e.statusBar=0,localStorage.setItem(Hr.STATUS_BAR,"0");var i=r?"batch-uploading":"uploading";e.appStatus!==i&&(e.appStatus=i,localStorage.setItem(Hr.STATUS,i))})),e.addCase(fa.fulfilled,(function(e,t){e.uploadFileRequestStatus="success",e.statusBar=0,localStorage.setItem(Hr.STATUS_BAR,"0"),t.meta.arg.isMultipleUpload||(e.appStatus="processing-initialization",localStorage.setItem(Hr.STATUS,Ba.PROCESSING_INITIALIZATION),localStorage.setItem(Hr.PREVIEW_START,Math.floor(Date.now()/1e3).toString()))})),e.addCase(fa.rejected,(function(e,t){e.uploadFileRequestStatus="failed",t.meta.arg.isMultipleUpload||(e.appStatus="default",localStorage.setItem(Hr.STATUS,"default"),e.statusBar=0,localStorage.setItem(Hr.STATUS_BAR,"0"))}))}(e),function(e){e.addMatcher(us,(function(e){e.checkRequestStatus="fetching"})),e.addMatcher(ds,(function(e){e.checkRequestStatus="success"})),e.addMatcher(ps,(function(e){e.checkRequestStatus="failed"}))}(e)}}),ks=(ws=Es.actions).setIsInit,Ts=ws.setCanCheckConstraint,xs=ws.setWasCheckedConstraint,Cs=ws.setConstraint,Is=ws.setIsRemainingButtonDisabled,Rs=ws.setIsAbleCheckStatusPreparation,Os=ws.setStatusBar,Ps=ws.setGlobalWidgetId,As=(ws.setPlayerStatus,ws.setAppStatus),Ls=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},Ns=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},Ms=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Te("".concat(St,"/cancelTask"),(function(e,t){return Ls(void 0,[e,t],void 0,(function(e,t){var n,r,o=t.dispatch;return Ns(this,(function(t){return n=JSON.parse(localStorage.getItem(Hr.FILES_INFO)||"null"),Zr.cancelUpload(),localStorage.removeItem(Hr.MISSING_PREVIEW_FLAG),localStorage.removeItem(Hr.SERVER_POLLING_START),localStorage.removeItem(Hr.SPLITTED_FILES_ARCHIVE),localStorage.setItem(Hr.STATUS_BAR,"0"),o(Os(0)),o(xi.addNotify({type:"warning",title:"",text:e,delay:3e3})),n&&(r=n.reduce((function(e,t){return Ms(Ms([],e,!0),[t.id],!1)}),[]).join())?(Zr.cancelTask(r),[2]):[2]}))}))}));var Ds=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},Fs=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},js=(Te("".concat(St,"/initWidget"),(function(e,t){return Ds(void 0,[e,t],void 0,(function(e,t){var n,r,o,i,a,s,l,c,u,d,p=e.status,f=void 0===p||p,h=e.widgetId,m=t.dispatch,g=t.getState;return Fs(this,(function(e){return m(ks(f)),n=Ca.getPreparedFiles(g()),r=function(){const e=Pt(localStorage.getItem(Hr.PREVIEW_START),Math.floor(Date.now()/1e3)),t=Ua(localStorage.getItem(Hr.STATUS)),n=localStorage.getItem(Hr.WIDGET_ID),r=t.includes(Ba.BATCH);return{deltaDate:e,currentWidgetStatus:t,mainWidgetId:n,isMultiple:r}}(),o=r.deltaDate,i=r.mainWidgetId,a=r.currentWidgetStatus,s=r.isMultiple,l=n?null===(d=n[0])||void 0===d?void 0:d.id:null,c=i===h.toString(),m(Ps(i)),u=localStorage.getItem(Hr.PENDING_TRANSACTION),c&&u&&m(Oo({transactionId:u})),localStorage.removeItem(Hr.COUNTRIES_LIST),a!==Ba.DEFAULT&&!n||!l?(m(As({status:"default",withReset:!0})),localStorage.removeItem(Hr.PREVIEW_START),localStorage.removeItem(Hr.SPLITTED_FILES_ARCHIVE),localStorage.removeItem(Hr.SERVER_POLLING_START),[2]):o>=Fo.linksAlive?(za(m,a,mt,o),[2]):(m(As({status:a})),m(Os(Number(localStorage.getItem(Hr.STATUS_BAR)))),a===Ba.DEFAULT?[2]:[Ba.DONE,Ba.PREVIEW].includes(a)?(m(as()),[2]):a===Ba.SPLIT?(m(ns({widgetId:h,isArchivationActive:!1})),[2]):(s&&a!==Ba.BATCH_UPLOADING&&m(Qa({isArchivationActive:!1,isInit:!0,isReturn:!1})),[2]))}))}))})),{orion:["drum","vocals","piano","acoustic_guitar","electric_guitar"],phoenix:["drum","bass","vocals","piano"],perseus:["vocals"]});function Us(e,t,n){return js[n].includes(e)?t:null}function Bs(e){var t=e.stem,n=e.multivocal;return"vocals"===t?n:null}function zs(e,t){return e===Do.voice?t:null}var qs=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},Ws=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},$s=Te("".concat(St,"/startPreview"),(function(e,t){return qs(void 0,[e,t],void 0,(function(e,t){var n,r,o,i,a,s,l,c=e.fileId,u=e.isVoiceCleanerPage,d=e.stem,p=e.noiseCancellingLevel,f=e.isEnhancedProcessingEnabled,h=e.isDereverbEnabled,m=e.splitterType,g=e.multivocal,y=e.token,v=t.dispatch;return Ws(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,Zr.preview({fileId:c,stem:d,noiseCancellingLevel:p,splitterType:m,isDereverbEnabled:h,isEnhancedProcessingEnabled:f,multivocal:g,token:y})];case 1:if((n=e.sent().data).status.toLowerCase()!==bo.SUCCESS)throw new Error("".concat(n.error,". Code #1"));return localStorage.setItem(Hr.STATUS_BAR,"0"),v(Os(0)),localStorage.setItem(Hr.STATUS,Ba.PROCESSING),v(As({status:"processing"})),v(Oa(0)),(r=JSON.parse(localStorage.getItem(Hr.FEEDBACK)||"{}")).preview=null,localStorage.setItem(Hr.FEEDBACK,JSON.stringify(r)),null===(i=null===window||void 0===window?void 0:window.dataLayer)||void 0===i||i.push({event:"preview_start",status:"success",process_level:p,splitter_type:m,stem:u?"voice_cleaner":d,dereverberation:Za(d,h),enhanced_processing:Us(d,f,m),noise_cancelling_level:zs(d,p),multivocal:Bs({stem:d,multivocal:g})}),localStorage.setItem(Hr.PREVIEW_START,Math.floor(Date.now()/1e3).toString()),[3,3];case 2:return o=e.sent(),console.group("=== Error start preview ==="),console.error(o),console.groupEnd(),null===(a=null===window||void 0===window?void 0:window.dataLayer)||void 0===a||a.push({event:"preview_start",status:"failure",process_level:p,splitter_type:m,stem:u?"voice_cleaner":d,dereverberation:Za(d,h),enhanced_processing:Us(d,f,m),noise_cancelling_level:zs(d,p),multivocal:Bs({stem:d,multivocal:g})}),v(Ia()),o instanceof no&&(o.response||(null===(s=o.request)||void 0===s?void 0:s.readyState)!==Jr.networkErrorReadyState||(null===(l=o.request)||void 0===l?void 0:l.status)!==Jr.networkErrorRequestStatus||location.reload()),o instanceof Error?(o.message!==Jr.canceledByUser&&v(xi.addNotify({type:"error",title:"",text:o.toString(),delay:0})),[3,3]):[2];case 3:return[2]}}))}))}));const Vs="/pricing/",Hs="/producthunt/",Gs="/voice-cleaner/",Ks="lalalai_segment",Ys=[Vs,Hs,"/",Gs,"/echo-reverb-remover/","/lead-back-vocals-remover/"],Js=[Vs,Hs,"/",Gs];var Xs=function(){return Xs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Xs.apply(this,arguments)},Qs=Xs({},window.__OMLocaleInfo__),Zs={email:"",isUsedFree:!1,isStarterPlan:!1,limits:{durationLeft:0,subscriptionMinutes:0,oneTimeBillMinutes:0},referralInfo:Object.freeze({activations:0,bonuses:0,link:""}),bonusProgramsInfo:[],userActivationKey:null,selectedCountry:Qs.userCountry,subscriptionStatus:"",subscriptionPlan:"",subscriptionEndDate:"",subscriptionMinutesResetDate:"",willCancelAtEndPeriod:!1,segment:Number(xt(Ks)),autocharge:null},el=function(){return el=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},el.apply(this,arguments)},tl=function(){return tl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},tl.apply(this,arguments)},nl={logout:function(){return Zs},changeUserInfo:function(e,t){var n=t.payload;return tl(tl({},e),n)},changeUserLimits:function(e,t){var n=t.payload,r=void 0===n?{}:n,o=r.durationLeft,i=r.subscriptionMinutes,a=r.oneTimeBillMinutes;e.limits.durationLeft=null!=o?o:0,e.limits.subscriptionMinutes=null!=i?i:0,e.limits.oneTimeBillMinutes=null!=a?a:0},setUserSegment:function(e,t){var n=t.payload;e.segment=n},setUserCountry:function(e,t){var n=t.payload;e.selectedCountry=n}},rl=Pe({name:"user",initialState:Zs,reducers:nl,extraReducers:function(e){e.addCase(ac.fulfilled,(function(e,t){var n=t.payload.userData;return el(el({},e),n)})),e.addCase(vd.fulfilled,(function(){return Zs}))}});rl.actions;const ol={active:"active",suspended:"suspended"};function il(e){const t=Math.round(60*e);return[Math.floor(t/60),t%60]}var al=function(e){return e.user};te([function(e){return al(e).limits.durationLeft},Ca.getDuration,function(e){return al(e).subscriptionStatus}],(function(e,t,n){if(n===ol.active)return!0;var r=il(e);return 60*r[0]+r[1]>=t}));var sl=function(e){return al(e).isStarterPlan},ll=function(){return ll=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ll.apply(this,arguments)},cl=ll({},window.__OMAppTranslate__),ul=ll({},window.__OMPaymentTranslate__),dl=(Object.freeze({referral:cl.referral||{},userProfile:cl.userProfile||{},activationKeyDescription:ul.artivationKeyDescription,starterPlan:ul.paymentPlans.starter||{},toFullProcessBlock:ul.toFullProcessBlock||{}}),function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}),pl=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},fl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},hl=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Te("".concat(St,"/startSplit"),(function(e,t){return dl(void 0,[e,t],void 0,(function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,y,v=e.isMultiple,b=e.isEnhancedProcessingEnabled,w=e.isDereverbEnabled,S=e.noiseCancellingLevel,_=e.widgetId,E=e.outputFormat,k=e.multivocal,T=t.dispatch,x=t.getState;return pl(this,(function(e){switch(e.label){case 0:if(n=sl(x()),r=JSON.parse(localStorage.getItem(Hr.FILES_INFO)||"[]"),o=null==r?void 0:r.reduce((function(e,t){return hl(hl([],e,!0),[t.id],!1)}),[]),i=v?null==r?void 0:r.reduce((function(e,t){return hl(hl([],e,!0),[t.stem],!1)}),[]):[localStorage.getItem(Hr.STEM_TYPE)],a=v?null==r?void 0:r.reduce((function(e,t){return hl(hl([],e,!0),[t.splitter],!1)}),[]):[localStorage.getItem(Hr.SPLITTER_TYPE)],!o&&!i&&o.length!==i.length)return console.group("=== Use License Error ==="),console.error(mt.notifyMessage.error.noParams),console.groupEnd(),T(xi.addNotify({type:"error",title:"",text:mt.notifyMessage.error.noParams,delay:0})),T(gi(!1)),T(hi("remainingLimits")),[2];s=fs(o,i,a,S,w,b,E,k),l=JSON.stringify(s),e.label=1;case 1:return e.trys.push([1,3,,4]),T(Na()),T(gi(!0)),[4,Zr.split(l,n)];case 2:if(c=e.sent(),u=c.data,d=fl(c,["data"]),T(gi(!1)),!(d.status<400))throw new Error("Response text: ".concat(d.statusText,". Response status: ").concat(d.status,". Code #19"));if(u.status.toLowerCase()===bo.SUCCESS)p=v&&!n?"batch-split":"split",T(Os(0)),localStorage.setItem(Hr.STATUS_BAR,"0"),T(As({status:p,withReset:!0})),localStorage.setItem(Hr.STATUS,p),localStorage.setItem(Hr.WIDGET_ID,_),T(Ps(_.toString())),!v&&T(Aa({status:"SPLIT",isUnified:!0})),ml(v,"success",S,i,a,w,b),localStorage.setItem(Hr.PREVIEW_START,Math.floor(Date.now()/1e3).toString()),(f=JSON.parse(localStorage.getItem(Hr.FEEDBACK)||"{}")).split=null,localStorage.setItem(Hr.FEEDBACK,JSON.stringify(f));else if(u.status.toLowerCase()===bo.ERROR)throw new Error("".concat((null==u?void 0:u.code)||"",". ").concat(u.error,". Code #13"));return[3,4];case 3:return(h=e.sent())instanceof no&&(m=h.request.status===Jr.networkErrorRequestStatus,g=(null===(y=h.request)||void 0===y?void 0:y.readyState)===Jr.networkErrorReadyState&&m,!h.response&&g)?(location.reload(),[2]):(console.group("=== Use License Error ==="),console.error(h),console.groupEnd(),T(gi(!1)),T(hi("remainingLimits")),h instanceof Error?h.message.includes(Ma.FILE_CLEANNED_UP)?(za(T,localStorage.getItem(Hr.STATUS),mt,null),[2]):(T(xi.addNotify({type:"error",title:"",text:h.toString(),delay:0})),T(As({status:"default",withReset:!0})),T(Ha()),ml(v,"failure",S,i,a,w,b),[3,4]):[2]);case 4:return[2]}}))}))}));function ml(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"";e&&dataLayer.push({event:"batch_split_start",status:t,quantity:r.length}),r&&r.forEach(((e,r)=>{dataLayer.push({event:"split_start",status:t,splitter_type:ca(o[r],e),stem:e,dereverberation:Za(e,i),noise_cancelling_level:zs(e,n),enhanced_processing:Us(e,a,ca(o[r],e)),multivocal:Bs({stem:e,multivocal:s})})}))}function gl(e,t,n){t&&t.forEach((t=>{const r=Za(t.stem,n);t.status===Fa.DONE?dataLayer.push({event:"split_finish",status:"success",splitter_type:null==t?void 0:t.splitter,stem:t.stem,dereverberation:r}):t.status!==Fa.REJECTED&&"failure"!==e||dataLayer.push({event:"split_finish",status:"failure",splitter_type:ca(null==t?void 0:t.splitter,null==t?void 0:t.stem),stem:null==t?void 0:t.stem,dereverberation:r})})),dataLayer.push({event:"batch_split_finish",status:e,quantity:t.length})}var yl=Object.freeze({CLICK:"referral-click",REGISTRATION:"referral-registration",REGISTRATION_EXPIRATION:180}),vl=function(){if(!xt(yl.CLICK))return!1;var e=new Date;e.setMonth(e.getDay()+yl.REGISTRATION_EXPIRATION);var t,n=[yl.REGISTRATION,"=","true","; expires=.",e,"; path=/;"].join("");return document.cookie=n,t=yl.CLICK,document.cookie=t+"=; Max-Age=-99999999;",!0};function bl(e){var t;const n=document.querySelector(e);return null==n||null===(t=n.content)||void 0===t?void 0:t.cloneNode(!0)}const wl="hidden";function Sl(e,t,n){e.addEventListener("transitionend",(function r(){e.removeEventListener("transitionend",r),e.replaceChildren(t),e.classList.remove(wl),null==n||n()})),e.classList.add(wl)}const _l=".terms__wrapper_article";function El(e){const t=bl(e);if(!t)return;Sl(document.querySelector(_l),t)}function kl(e){const t=[...e.querySelectorAll(".collapse__header")];t.forEach((e=>e.addEventListener("click",(function(){e.classList.contains("active")?e.classList.remove("active"):(t.forEach((e=>{e.classList.remove("active")})),e.classList.add("active"))}))))}const Tl="#questions";function xl(e){const t=bl(e);if(!t)return;const n=document.querySelector(Tl);Sl(n,t,(()=>kl(n)))}var Cl,Il=Pe({name:"modal",initialState:{isLoginPopupOpen:!1,isActivationPopupOpen:!1,isPreviewBuyPageOpen:!1},reducers:{setIsLoginPopupOpen:function(e,t){var n=t.payload;e.isLoginPopupOpen=n},setIsActivationPopupOpen:function(e,t){var n=t.payload;e.isActivationPopupOpen=n},setIsPreviewBuyPageOpen:function(e,t){var n=t.payload;e.isPreviewBuyPageOpen=n}}}),Rl=((Cl=Il.actions).setIsActivationPopupOpen,Cl.setIsPreviewBuyPageOpen,Cl.setIsLoginPopupOpen);const Ol=Object.freeze({paypal:"paypal",stripe:"stripe"}),Pl={initPaymentBlock:function(e){let{selectorNode:t}=e;return this.selectorNode=t,this.node=document.querySelector(t),this.node?(this.buttonsWrapper=this.node.querySelector(pt.buttonsWrapper),this.openButton=this.node.querySelector(pt.paymentButton),this.closeButton=this.node.querySelector(pt.closeButton),this._triggerStartPayment=null,this._handleOpenButton=null,this.isRendered=!1,this.isBusiness=this.node.classList.contains("b-solutions__pricing_card"),this.closeButton&&(this.closeButton.addEventListener("click",this._handleCloseButtonClick.bind(this)),this._addOpenButtonListener(this._handleOpenButtonClick)),this):this},_addOpenButtonListener:function(e){this._handleOpenButton=e.bind(this),this.openButton.addEventListener("click",this._handleOpenButton)},_handleOpenButtonClick:function(){this.openButton.classList.add("button--hide"),this.buttonsWrapper.classList.add("pricing__pay-block--show"),this.isBusiness&&this.node.classList.remove("b-solutions__pricing_card--max-height"),this.isRendered||(this.isRendered=!0,dataLayer.push({event:"view_item"}))},_handleCloseButtonClick:function(){this.openButton&&this.buttonsWrapper&&(this.openButton.classList.remove("button--hide"),this.buttonsWrapper.classList.remove("pricing__pay-block--show"),this.isBusiness&&this.node.classList.add("b-solutions__pricing_card--max-height"))},addCallbackStartPayment:function(e){"function"==typeof e?this._triggerStartPayment=e:(console.group("=== PaymentBlock Error: Adding a callback to the start of payment ==="),console.error("".concat(e," is not a Function")),console.groupEnd())},hideBlock:function(){this._handleCloseButtonClick()}},Al=Pl,Ll=Object.create(Al);Ll.init=function(e){let{selectorNode:t,type:n,price:r,currency:o,lastPrice:i,hasStockPrice:a=!1}=e;if(this.initPaymentBlock({selectorNode:t}),this.type=n,this.price=r,this.currency=o,this.lastPrice=i,this.hasStockPrice=a,this.isRendered=!1,this.stripeButton=null,this.paypalButton=null,this.allStripeButtons=document.getElementsByClassName("om-pay-button"),this.stripeButton=null,this.paypalButton=null,this.autoChargeCheckbox=null,this.autoChargeValue=!1,this.node){var s,l,c,u;if(this.stripeButton=this.node.querySelector(pt.stripeButton),this.paypalButton=this.node.querySelector(pt.paypalButton),this.autoChargeCheckbox=this.node.querySelector(pt.autoChargeCheckbox),this.autoChargeValue=null===(s=this.autoChargeCheckbox)||void 0===s?void 0:s.checked,this.autoChargeValue){var d,p;const e=this.paypalButton.closest(".tooltip");null===(d=this.paypalButton)||void 0===d||d.classList.add("button--disabled"),this.paypalButton.style="pointer-events:none;",null==e||e.classList.remove("tooltip--disabled"),null===(p=this.openButton)||void 0===p||p.click()}null===(l=this.stripeButton)||void 0===l||l.addEventListener("click",this.handlestripeButtonClick.bind(this,Ol.stripe)),null===(c=this.paypalButton)||void 0===c||c.addEventListener("click",this.handlePaypalButtonClick.bind(this)),null===(u=this.autoChargeCheckbox)||void 0===u||u.addEventListener("change",this.handleAutochargeChange.bind(this))}return this},Ll.disablePayButtons=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];[...this.allStripeButtons].forEach((t=>t.disabled=e))},Ll.updatePaymentView=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.disablePayButtons(e),this.stripeButton.classList.add("button--fetching"),At(mi,e),At(yi,e),e&&this._triggerStartPayment&&this._triggerStartPayment(this)},Ll.createOrder=async function(e){const t=window.__widgetStore__.getState().user.email||"",n=localStorage.getItem(Hr.STEM_TYPE)||"";try{const r=Ao({userEmail:t,type:this.type,price:this.price,currency:this.currency,userCountry:Qs.userCountry,paymentSource:"Pricing",stem:n,autocharge:this.autoChargeValue}),o=await fetch(Po[e],{method:"POST",body:r,headers:{"X-CSRFToken":xt("csrftoken")}}),i=await o.json();if("error"===i.status||!i.redirect_to)throw new Error("Unable to start payment session. ".concat(null==i?void 0:i.error," Error type: ").concat(e," payment error."));setTimeout((()=>{window.location.href=i.redirect_to}))}catch(t){var r;console.group("=== Error create checkout session / ".concat(e," ===")),console.error(t),console.groupEnd(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";dataLayer.push({event:"payment_finish",status:"failure",value:e,currency:t.toUpperCase(),plan:n})}(this.price,this.currency,this.type),null===(r=window)||void 0===r||r.__widgetStore__.dispatch(xi.addNotify,{type:"error",title:null,text:t.toString(),delay:0})}},Ll.handlestripeButtonClick=async function(e){this.updatePaymentView(!0),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";dataLayer.push({event:"payment_start",value:e,currency:t.toUpperCase(),plan:n})}(this.price,this.currency,this.type),await this.createOrder(e),this.updatePaymentView(!1)},Ll.handlePaypalButtonClick=function(){localStorage.setItem(Hr.CURRENT_PLAN,this.type)},Ll.handleAutochargeChange=function(e){const t=e.currentTarget.checked,n=window.__widgetStore__;if(n){!n.getState().auth.isAuth&&t&&n.dispatch(Rl(!0))}this.autoChargeValue=t;const r=this.paypalButton.closest(".tooltip");if(t)return this.paypalButton.classList.add("button--disabled"),this.paypalButton.style="pointer-events:none;",void r.classList.remove("tooltip--disabled");this.paypalButton.classList.remove("button--disabled"),this.paypalButton.style="pointer-events:auto;",r.classList.add("tooltip--disabled")};const Nl=Ll,Ml={...window.__OMPrices__.plan},Dl={init:function(e){return this._paymentList=e,this._paymentList.forEach((e=>e.addCallbackStartPayment(this._handlePaymentStart.bind(this)))),this},_handlePaymentStart:function(e){this._paymentList.forEach((t=>{t.type!==e.type&&t.hideBlock()}))},closeAllPaymentBlock:function(){this._paymentList.forEach((e=>e.hideBlock()))}};function Fl(){window.__OMPaymentInspector__=Object.create(Dl).init([Object.create(Nl).init({selectorNode:dt[ut.LITE],type:ut.LITE,price:Ml[ut.LITE].amount,lastPrice:Ml[ut.LITE].amount,currency:Ml[ut.LITE].currency,hasStockPrice:!1}),Object.create(Nl).init({selectorNode:dt[ut.PRO],type:ut.PRO,price:Ml[ut.PRO].amount,lastPrice:Ml[ut.PRO].amount,currency:Ml[ut.PRO].currency,hasStockPrice:!1}),Object.create(Nl).init({selectorNode:dt[ut.PLUS],type:ut.PLUS,price:Ml[ut.PLUS].amount,lastPrice:Ml[ut.PLUS].stockPrice,currency:Ml[ut.PLUS].currency,hasStockPrice:!0}),Object.create(Nl).init({selectorNode:dt[ut.LITE_YEAR],type:ut.LITE_YEAR,price:Ml[ut.LITE_YEAR].amount,lastPrice:Ml[ut.LITE_YEAR].stockPrice,currency:Ml[ut.LITE_YEAR].currency,hasStockPrice:!0}),Object.create(Nl).init({selectorNode:dt[ut.LITE_MONTH],type:ut.LITE_MONTH,price:Ml[ut.LITE_MONTH].amount,lastPrice:Ml[ut.LITE_MONTH].stockPrice,currency:Ml[ut.LITE_MONTH].currency,hasStockPrice:!0}),Object.create(Nl).init({selectorNode:dt[ut.SPECIAL_OFFER],type:ut.SPECIAL_OFFER,price:Ml[ut.SPECIAL_OFFER].amount,lastPrice:Ml[ut.SPECIAL_OFFER].stockPrice,currency:Ml[ut.SPECIAL_OFFER].currency,hasStockPrice:!0}),Object.create(Nl).init({selectorNode:dt[ut.BUSINESS750],type:ut.BUSINESS750,price:Ml[ut.BUSINESS750].amount,lastPrice:Ml[ut.BUSINESS750].amount,currency:Ml[ut.BUSINESS750].currency,hasStockPrice:!0}),Object.create(Nl).init({selectorNode:dt[ut.BUSINESS3000],type:ut.BUSINESS3000,price:Ml[ut.BUSINESS3000].amount,lastPrice:Ml[ut.BUSINESS3000].amount,currency:Ml[ut.BUSINESS3000].currency,hasStockPrice:!1}),Object.create(Nl).init({selectorNode:dt[ut.BUSINESS5000],type:ut.BUSINESS5000,price:Ml[ut.BUSINESS5000].amount,lastPrice:Ml[ut.BUSINESS5000].amount,currency:Ml[ut.BUSINESS5000].currency,hasStockPrice:!1})])}window.__OMPaymentInspector__||Fl();const jl=".packages-tabs";function Ul(e,t,n){const r=bl(e);if(!r)return;Sl(document.querySelector(jl),r,(()=>{Fl(),bt(t,n)}))}const Bl="#faq-packages-template",zl="#faq-packages-guides-template",ql="#packages-pricing-template",Wl="#announce-template",$l=".header",Vl="/guides/faq/";const Hl="#subscription-pricing-template",Gl="#faq-subscription-template",Kl="#faq-subscription-guides-template";function Yl(e){let{subscriptionOption:t,isStarterPlan:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{subscriptionOption:null,isStarterPlan:!1};0!==e?function(){const{pathname:e}=window.location;if(Ys.includes(e)&&Ul(ql),Js.includes(e)&&xl(Bl),e===Vl&&El(zl),!di)return;const t=window.__OM__AnnounceLine||{};if(t.node)return;const n=bl(Wl);n&&(document.querySelector($l).prepend(n),t.init())}():function(e,t){const{pathname:n}=window.location;Ys.includes(n)&&Ul(Hl,e,t),Js.includes(n)&&xl(Gl);const r=window.__OM__AnnounceLine||{};r.node&&r.remove(),"/guides/faq/"===n&&El(Kl)}(t,n)}var Jl=function(){return Jl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Jl.apply(this,arguments)},Xl=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},Ql=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},Zl=window.__OMConstants__,ec={signUp:function(e,t,n){return Xl(this,void 0,void 0,(function(){var r,o;return Ql(this,(function(i){switch(i.label){case 0:return r={email:e,auth_type:t,google_cid:Ot(),"turnstile-response":n},o=eo(r),[4,Yr.post("auth/signin/",o,{headers:Jl(Jl({},Gr),{"X-CSRFToken":xt("csrftoken")})})];case 1:return[2,i.sent()]}}))}))},check:function(e){return Xl(this,void 0,void 0,(function(){return Ql(this,(function(t){switch(t.label){case 0:return[4,Yr.get("auth/profile/".concat(e?"?key=".concat(e):""),{headers:Jl({},Gr)})];case 1:return[2,t.sent()]}}))}))},login:function(e,t){return Xl(this,void 0,void 0,(function(){var n;return Ql(this,(function(r){switch(r.label){case 0:return n=eo({email:e,code:t}),[4,Yr.post("auth/login/",n,{headers:Jl(Jl({},Gr),{"X-CSRFToken":xt("csrftoken")})})];case 1:return[2,r.sent()]}}))}))},logout:function(){return Xl(this,void 0,void 0,(function(){return Ql(this,(function(e){switch(e.label){case 0:return[4,Yr.post("auth/logout/",null,{headers:Jl(Jl({},Gr),{"X-CSRFToken":xt("csrftoken")})})];case 1:return[2,e.sent()]}}))}))},addBonusProgram:function(){return Xl(this,arguments,void 0,(function(e,t){var n;return void 0===e&&(e=""),void 0===t&&(t=""),Ql(this,(function(r){switch(r.label){case 0:return(n=new FormData).append("bonus_program",e),n.append("email",t),[4,Yr.post("/bonus-programs/join-user/",n,{headers:Jl(Jl({},Gr),{"X-CSRFToken":xt("csrftoken")})})];case 1:return[2,r.sent()]}}))}))},sendRemind:function(){return Xl(this,arguments,void 0,(function(e){var t;return void 0===e&&(e=""),Ql(this,(function(n){switch(n.label){case 0:return(t=new FormData).append("email",e),[4,Yr.post("/desktop/remind-download/",t,{headers:Jl(Jl({},Gr),{"X-CSRFToken":xt("csrftoken")})})];case 1:return[2,n.sent()]}}))}))},getReferralInfo:function(){return Xl(this,void 0,void 0,(function(){var e;return Ql(this,(function(t){switch(t.label){case 0:return(e=xt("referral-click"))?[4,Yr.get("referrals/get-email/?code=".concat(e))]:[3,2];case 1:return[2,t.sent()];case 2:return[2]}}))}))},authWithGoogleWidget:function(e){return Xl(this,void 0,void 0,(function(){return Ql(this,(function(t){switch(t.label){case 0:return Zl?[4,Yr.post(Zl.GOOGLE_APP_LOGIN_URI,e,{headers:Jl(Jl({},Gr),{"X-CSRFToken":xt("csrftoken")})})]:[2];case 1:return[2,t.sent()]}}))}))},getStripeLink:function(){return Xl(this,void 0,void 0,(function(){return Ql(this,(function(e){switch(e.label){case 0:return"billing/stripe/subscription/manage/",[4,Yr.post("billing/stripe/subscription/manage/",{},{headers:Jl(Jl({},Gr),{"X-CSRFToken":xt("csrftoken")})})];case 1:return[2,e.sent()]}}))}))}},tc=function(){return tc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},tc.apply(this,arguments)};var nc="auth",rc=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},oc=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},ic=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},ac=Te("".concat(nc,"/checkAuth"),(function(e,t){return rc(void 0,[e,t],void 0,(function(e,t){var n,r,o,i,a,s,l,c,u=e.licenseKey,d=e.canShowError,p=void 0!==d&&d,f=t.rejectWithValue;return oc(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,ec.check(u)];case 1:return n=e.sent(),r=n.data,200!==ic(n,["data"]).status||r.status===bo.ERROR?(t={error:r.error,code:r.code,canShowError:p},d=!t.code,o=d&&!t.canShowError?"":d?"".concat(t.error,". Code #25"):t.code===Ma.KEY_HAS_OWNER?ht.notifyMessage.usedActivationKeyError:t.code===Ma.APPLE_MIGRATION_LOGIN_ERROR?ht.notifyMessage.appleMigrationLoginError:void 0,[2,f({message:o})]):(i=localStorage.getItem(Hr.SEGMENT),a=xt(Ks),(s=i!==a)&&localStorage.setItem(Hr.SEGMENT,a),l=function(e,t){var n,r,o,i,a,s,l=tc({email:e.email,isUsedFree:!e.has_paid_license,isStarterPlan:e.is_starter,referralInfo:e.referral_info,bonusProgramsInfo:e.bonus_programs_info,userActivationKey:null!==(n=e.activation_key)&&void 0!==n?n:null,limits:{durationLeft:e.limits.duration_left,subscriptionMinutes:null!==(o=null===(r=null==e?void 0:e.subscription)||void 0===r?void 0:r.duration_left)&&void 0!==o?o:0,oneTimeBillMinutes:e.one_time_limits.duration_left}},t&&{segment:t}),c={subscriptionStatus:"",subscriptionEndDate:"",subscriptionMinutesResetDate:"",subscriptionPlan:"",willCancelAtEndPeriod:!1};if(e.subscription&&0!==(null===(i=Object.keys(e.subscription))||void 0===i?void 0:i.length)){var u=null!==(a=e.subscription.next_reset_limits_date)&&void 0!==a?a:"",d=null!==(s=e.subscription.current_period_end)&&void 0!==s?s:"";c.subscriptionStatus=e.subscription_status,c.subscriptionEndDate=d,c.subscriptionMinutesResetDate=u,c.subscriptionPlan=e.subscription.option,c.willCancelAtEndPeriod=e.subscription.cancel_at_period_end}var p=e.autocharge?{option:e.autocharge.option,canEnableWithoutStripe:e.autocharge.can_enable_without_stripe,status:e.autocharge.status}:null;return tc(tc(tc({},l),c),{autocharge:p})}(r,s&&a),function(e){let{afterRequestSegment:t,savedSegment:n,shouldUpdateLsSegment:r,subscriptionOption:o,isStarterPlan:i}=e;const a=n+t,s=1===(a.match(/0/g)||[]).length&&1===(a.match(/[1-9]/g)||[]).length;r&&s&&Yl(Number(t),{subscriptionOption:o,isStarterPlan:i})}({afterRequestSegment:a,savedSegment:i,shouldUpdateLsSegment:s,subscriptionOption:l.subscriptionPlan,isStarterPlan:l.isStarterPlan}),[2,{userData:l,isSignup:r.is_signup}]);case 2:return c=e.sent(),console.group("=== Authorization check failed ==="),console.error(c),console.groupEnd(),c instanceof Error?[2,f({message:c.toString()})]:[2,f({message:"Unknown error occured."})];case 3:return[2]}var t,d}))}))})),sc=function(e){return void 0===e&&(e={}),ac(e)},lc=function(e){e.addCase(ac.pending,(function(e){e.authCheckStatus="fetching"})),e.addCase(ac.fulfilled,(function(e,t){var n,r,o,i,a=t.payload,s=a.userData,l=a.isSignup;e.isAuth=!0,e.authCheckStatus="success",vl()&&(e.referrerInfo={}),l&&(e.isSnackbarVisible=!0,e.isFallingEmojisActive=!0,dataLayer.push({event:"registration",status:"success"})),bt(s.subscriptionPlan,s.isStarterPlan),window.google&&(null===(i=null===(o=null===(r=null===(n=window.google)||void 0===n?void 0:n.accounts)||void 0===r?void 0:r.id)||void 0===o?void 0:o.cancel)||void 0===i||i.call(o))})),e.addCase(ac.rejected,(function(e,t){var n,r;e.authCheckStatus="failed",(null===(n=t.payload)||void 0===n?void 0:n.message)&&!(null===(r=t.payload)||void 0===r?void 0:r.message.includes("Code #25"))||bt()}))},cc=30,uc=5e3,dc=Object.freeze({WELCOME_SCREEN_INDEX:1,ENTER_EMAIL_SCREEN_INDEX:2,ENTER_OTP_SCREEN_INDEX:3}),pc={isAuth:!1,authCheckStatus:"initial",referrerInfo:{referrerEmail:"",referrerBonus:""},loginPopupScreen:dc.WELCOME_SCREEN_INDEX,mailForSignup:"",isSubscribeCheckboxChecked:!0,isErrorLoginForm:!1,signInRequestStatus:"initial",authByOtpRequestStatus:"initial",otpGenerateTimeout:cc,otpTimeoutStart:0,isOtpFormDisabled:!1,notification:null,isFallingEmojisActive:!1,isSnackbarVisible:!1};const fc=["21_SAVAGE","BAD_BUNNY","DRAKE","ELVIS_PRESLEY","EMINEM","FRANK_SINATRA","KANYE_WEST","LADY_GAGA","LOUIS_ARMSTRONG","MORGAN_WALLEN","PESO_PLUMA","QUEEN","SZA","TAYLOR_SWIFT","THE_WEEKND","ZACH_BRYAN"];var hc=function(){return hc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},hc.apply(this,arguments)},mc=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},gc=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}};var yc=function(){return yc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},yc.apply(this,arguments)},vc=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},bc=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}};let wc=Vr.CancelToken.source();const Sc={uploadFile:async(e,t)=>await Yr.post("api/upload/",e,{onUploadProgress:t,cancelToken:wc.token,headers:{...Gr,"X-CSRFToken":xt("csrftoken"),"Content-Type":"binary/octet-stream","Content-Disposition":"attachment; filename*=UTF-8''".concat(It(e.name))}}),async voiceChangerPreview(e){let{fileId:t,voice:n,isAccentEnabled:r=!0,isTonalityEnabled:o=!0,token:i=""}=e;const a={id:t,voice:n,preview:!0,dry_run:!1,with_segments:!0,accent_enhance:r,pitch_shifting:o,"turnstile-response":i};return await Yr.post("api/change_voice/",a,{headers:{...Gr,"X-CSRFToken":xt("csrftoken")}})},async checkConstraints(e){let{fileId:t,voice:n,isAccentEnabled:r=!0,isTonalityEnabled:o=!0}=e;const i={id:t,voice:n,preview:!1,dry_run:!0,accent_enhance:r,pitch_shifting:o};return await Yr.post("api/change_voice/",i,{headers:{...Gr,"X-CSRFToken":xt("csrftoken")}})},async voiceChangerProcess(e){let{fileId:t,voice:n,isAccentEnabled:r=!0,isTonalityEnabled:o=!0}=e;const i={id:t,voice:n,preview:!1,dry_run:!1,accent_enhance:r,pitch_shifting:o};return await Yr.post("api/change_voice/",i,{headers:{...Gr,"X-CSRFToken":xt("csrftoken")}})},async check(e){const t=new FormData;return t.append("id",e),await Yr.post("api/check/",t,{headers:{...Gr,"X-CSRFToken":xt("csrftoken")}})},getCustomVoicePacks:function(){return vc(this,void 0,void 0,(function(){return bc(this,(function(e){switch(e.label){case 0:return[4,Yr.get("api/voice_packs/list",{headers:yc(yc({},Gr),{"X-CSRFToken":xt("csrftoken")})})];case 1:return[2,e.sent()]}}))}))},deleteCustomVoicePack:function(e){return mc(this,void 0,void 0,(function(){var t;return gc(this,(function(n){switch(n.label){case 0:return(t=new FormData).append("id",e),[4,Yr.post("api/voice_packs/delete/",t,{headers:hc(hc({},Gr),{"X-CSRFToken":xt("csrftoken")})})];case 1:return[2,n.sent()]}}))}))},async cancelTask(e){const t=new FormData;t.append("id",e),await Yr.post("api/cancel/",t,{headers:{...Gr,"X-CSRFToken":xt("csrftoken")}})},cancelUpload(){wc.cancel(Jr.canceledByUser),wc=Vr.CancelToken.source()}},_c=e=>e.voiceChanger,Ec={getWidgetId:e=>_c(e).widgetId,getInitStatus:e=>_c(e).init,getCurrentStep:e=>_c(e).step,getUploadingProgress:e=>_c(e).uploading,getProcessingProgress:e=>_c(e).progress,getProcessingStartTime:e=>_c(e).processingStartTime,getSelectedVoicePack:e=>_c(e).pack,getIsStatusChecking:e=>_c(e).isStatusChecking,getCheckConstraintStatus:e=>_c(e).isConstraintChecked,getFileId:e=>_c(e).fileId,getCurrentTaskId:e=>_c(e).taskId,getFileInfo:e=>_c(e).fileInfo,getPreview:e=>_c(e).preview,getConstraint:e=>_c(e).constraint,getResult:e=>_c(e).result,getPreviewPlayerStatus:e=>_c(e).previewPlayerStatus,getIsAccentEnabled:e=>_c(e).isAccentEnabled,getIsTonalityEnabled:e=>_c(e).isTonalityEnabled,getCustomVoicePacksInfo:e=>_c(e).customVoicePacks,getCustomVoicePacks:e=>_c(e).customVoicePacks.packs,getCustomVoicePacksRequestStatus:e=>_c(e).customVoicePacks.statusOfGetRequest,getPreviewSettingsChanged:e=>{const{preview:t,isAccentEnabled:n,pack:r,isTonalityEnabled:o}=_c(e);return!!t&&(r!==(null==t?void 0:t.voice)||n!==(null==t?void 0:t.accent)||o!==(null==t?void 0:t.tonality))}},kc="voice-changer",Tc=Object.freeze({widgetId:"".concat(kc,"-id"),step:"".concat(kc,"-step"),pack:"".concat(kc,"-pack"),fileId:"".concat(kc,"-file-id"),taskId:"".concat(kc,"-task-id"),uploading:"".concat(kc,"-uploading"),progress:"".concat(kc,"-progress"),processingStartTime:"".concat(kc,"-processing-start"),fileInfo:"".concat(kc,"-file-info"),preview:"".concat(kc,"-preview"),result:"".concat(kc,"-result"),accent:"".concat(kc,"-accent"),tonality:"".concat(kc,"-tonality")}),xc={...window.__OMVoiceChangerTranslate__},Cc=Object.freeze({text:"text",rounded:"rounded",circular:"circular",ellipse:"ellipse"}),Ic=Object.freeze({default:"default",pulse:"pulse",wave:"wave"}),Rc=Object.freeze({default:"default",tertiary:"tertiary"});var Oc=o(27145),Pc={};Pc.styleTagTransform=Vi(),Pc.setAttributes=zi(),Pc.insert=Ui().bind(null,"head"),Pc.domAPI=Fi(),Pc.insertStyleElement=Wi();Mi()(Oc.A,Pc);const Ac=Oc.A&&Oc.A.locals?Oc.A.locals:void 0;function Lc(e){let{variant:t=Cc.text,animation:n=Ic.pulse,width:r,height:o,className:i,color:a=Rc.default,label:s}=e;const l=Li(Ac.main,i,Ac[n],Ac[t],Ac[a]),c=t===Cc.circular?{width:r||o,height:r||o}:{width:r,height:o};return Ii.createElement("div",{className:l,style:c},s)}Lc.variants=Cc,Lc.animations=Ic,Lc.colors=Rc;var Nc=o(62628),Mc={};Mc.styleTagTransform=Vi(),Mc.setAttributes=zi(),Mc.insert=Ui().bind(null,"head"),Mc.domAPI=Fi(),Mc.insertStyleElement=Wi();Mi()(Nc.A,Mc);const Dc=Nc.A&&Nc.A.locals?Nc.A.locals:void 0;function Fc(){return Fc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fc.apply(this,arguments)}const jc=Object.freeze({start:"justifyStart",center:"justifyCenter",end:"justifyEnd",between:"justifyBetween"}),Uc=Object.freeze({start:"alignStart",center:"alignCenter",end:"alignEnd",unset:"alignUnset",stretch:"alignStretch"}),Bc=Object.freeze({gap4:"gap4",gap4Column:"gap4Column",gap8:"gap8",gap8Column:"gap8Column",gap8Row:"gap8Row",gap10:"gap10",gap10Column:"gap10Column",gap10Row:"gap10Row",gap12:"gap12",gap16:"gap16",gap16Column:"gap16Column",gap16Row:"gap16Row",gap20:"gap20",gap20Column:"gap20Column",gap20Row:"gap20Row",gap24:"gap24",gap24Column:"gap24Column",gap24Row:"gap24Row",gap32:"gap32",gap32Row:"gap32Row",gap32Column:"gap32Column",gap40:"gap40",gap40Column:"gap40Column",gap40Row:"gap40Row",gap36:"gap36",gap36Column:"gap36Column",gap36Row:"gap36Row",gap56:"gap56",gap56Column:"gap56Column",gap56Row:"gap56Row"}),zc=Object.freeze({wrap:"wrap",nowrap:"nowrap"}),qc=Object.freeze({row:"row",rowReverse:"rowReverse",column:"column",columnReverse:"columnReverse",rowColumnLgScreen:"rowColumnLgScreen"}),Wc=(0,Ii.forwardRef)((function(e,t){let{className:n,children:r,justify:o,align:i=Uc.center,direction:a,wrap:s,gap:l,fullWidth:c,fullHeight:u,...d}=e;const p=Li(Dc.flex,c&&Dc.fullWidth,u&&Dc.fullHeight,Dc[i],o&&Dc[o],a&&Dc[a],s&&Dc[s],l&&Dc[l],n);return Ii.createElement("div",Fc({className:p},d,{ref:t}),r)}));Wc.gapVariants=Bc,Wc.alignVariants=Uc,Wc.justifyVariants=jc,Wc.wrapVariants=zc,Wc.directionVariants=qc;var $c=o(8798),Vc={};Vc.styleTagTransform=Vi(),Vc.setAttributes=zi(),Vc.insert=Ui().bind(null,"head"),Vc.domAPI=Fi(),Vc.insertStyleElement=Wi();Mi()($c.A,Vc);$c.A&&$c.A.locals&&$c.A.locals;var Hc=o(82633),Gc={};Gc.styleTagTransform=Vi(),Gc.setAttributes=zi(),Gc.insert=Ui().bind(null,"head"),Gc.domAPI=Fi(),Gc.insertStyleElement=Wi();Mi()(Hc.A,Gc);const Kc=Hc.A&&Hc.A.locals?Hc.A.locals:void 0;Kc.mediumWeight,Kc.normalWeight,Kc.boldWeight,Kc.lightWeight,Kc.semiBoldWeight;var Yc=o(43493),Jc={};Jc.styleTagTransform=Vi(),Jc.setAttributes=zi(),Jc.insert=Ui().bind(null,"head"),Jc.domAPI=Fi(),Jc.insertStyleElement=Wi();Mi()(Yc.A,Jc);Yc.A&&Yc.A.locals&&Yc.A.locals;const Xc=Object.freeze({stop:"stop",play:"play",pause:"pause"}),Qc=Object.freeze({start:"start",uploading:"uploading",previewProcessing:"previewProcessing",processingInitialization:"processingInitialization",preview:"preview",resultProcessing:"resultProcessing",result:"result"}),Zc={widgetId:function(){const e=window.crypto||window.msCrypto;let t=new Uint32Array(1);return e.getRandomValues(t),t[0]}(),init:!1,step:Qc.start,pack:fc[0],fileId:null,taskId:null,isStatusChecking:!1,isConstraintChecked:!1,uploading:0,progress:0,processingStartTime:0,fileInfo:null,preview:null,constraint:null,result:null,previewPlayerStatus:Xc.stop,isAccentEnabled:!0,isTonalityEnabled:!0,customVoicePacks:{packs:[],statusOfGetRequest:"initial",statusOfDeleteRequest:"initial"}};var eu=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},tu=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},nu=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},ru=Te("voiceChanger/deleteCustomVoicePack",(function(e,t){return eu(void 0,[e,t],void 0,(function(e,t){var n,r,o,i,a=t.rejectWithValue;return tu(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,Sc.deleteCustomVoicePack(e)];case 1:if(n=t.sent(),r=n.data,200!==(o=nu(n,["data"])).status||"error"===r.status)throw new Error("Response status: ".concat(o.status,". Response text: ").concat(o.statusText,". Cannot delete custom voice pack"));return[2,e];case 2:return(i=t.sent())instanceof Error?(console.group("=== Delete custom voice packs error ==="),console.error(i.message),console.groupEnd(),[2,a(i.message)]):(console.group("=== Delete custom voice packs error ==="),console.error("Unknown Error"),console.groupEnd(),[2,a("Unknown Error")]);case 3:return[2]}}))}))}));var ou=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},iu=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},au=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},su=Te("voiceChanger/getCustomVoicePacks",(function(e,t){return ou(void 0,[e,t],void 0,(function(e,t){var n,r,o,i,a=t.rejectWithValue;return iu(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,Sc.getCustomVoicePacks()];case 1:if(n=e.sent(),r=n.data,200!==(o=au(n,["data"])).status||"error"===r.status)throw new Error("Response status: ".concat(o.status,". Response text: ").concat(o.statusText,". Cannot get custom voice packs"));return[2,(t=r.packs,t.map((function(e){return{id:e.pack_id,name:e.name,created:e.created}})))];case 2:return(i=e.sent())instanceof Error?(console.group("=== Get custom voice packs error ==="),console.error(i.message),console.groupEnd(),[2,a(i.message)]):(console.group("=== Get custom voice packs error ==="),console.error("Unknown Error"),console.groupEnd(),[2,a("Unknown Error")]);case 3:return[2]}var t}))}))})),lu=function(){return lu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},lu.apply(this,arguments)},cu=!xc.voicePacks;const uu=["size","duration"],du=["voice","changed"],pu=["voice","link"];function fu(e,t){for(const n of t)if(!(n in e))return!1;return!0}function hu(e){return e||null}function mu(e){if(!e)return 0;const t=parseInt(e,10);return isNaN(t)?0:t}const gu={[Tc.step]:{key:Tc.step,stateField:"step",selector:Ec.getCurrentStep,stringify:e=>e,parse:function(e){return e?Object.values(Qc).includes(e)?e:(console.warn("Voice Changer step is deprecated"),Qc.start):Qc.start}},[Tc.pack]:{key:Tc.pack,stateField:"pack",selector:Ec.getSelectedVoicePack,stringify:e=>e,parse:function(e){return e||fc[0]}},[Tc.fileId]:{key:Tc.fileId,stateField:"fileId",selector:Ec.getFileId,stringify:e=>e||"",parse:hu},[Tc.taskId]:{key:Tc.taskId,stateField:"taskId",selector:Ec.getCurrentTaskId,stringify:e=>e||"",parse:hu},[Tc.uploading]:{key:Tc.uploading,stateField:"uploading",selector:Ec.getUploadingProgress,stringify:e=>"".concat(e),parse:mu},[Tc.progress]:{key:Tc.progress,stateField:"progress",selector:Ec.getProcessingProgress,stringify:e=>"".concat(e),parse:mu},[Tc.processingStartTime]:{key:Tc.processingStartTime,stateField:"processingStartTime",selector:Ec.getProcessingStartTime,stringify:e=>"".concat(e),parse:mu},[Tc.fileInfo]:{key:Tc.fileInfo,stateField:"fileInfo",selector:Ec.getFileInfo,stringify:e=>e?JSON.stringify(e):"",parse:function(e){try{const t=JSON.parse(e);return fu(t,uu)?t:null}catch(e){return null}}},[Tc.preview]:{key:Tc.preview,stateField:"preview",selector:Ec.getPreview,stringify:e=>e?JSON.stringify(e):"",parse:function(e){try{const t=JSON.parse(e);return fu(t,du)?t:null}catch(e){return null}}},[Tc.result]:{key:Tc.result,stateField:"result",selector:Ec.getResult,stringify:e=>e?JSON.stringify(e):"",parse:function(e){try{const t=JSON.parse(e);return fu(t,pu)?t:null}catch(e){return null}}},[Tc.accent]:{key:Tc.accent,stateField:"isAccentEnabled",selector:Ec.getIsAccentEnabled,stringify:e=>"".concat(e),parse:e=>!e||JSON.parse(e)},[Tc.tonality]:{key:Tc.tonality,stateField:"isTonalityEnabled",selector:Ec.getIsTonalityEnabled,stringify:e=>"".concat(e),parse:e=>!e||JSON.parse(e)}},yu=e=>{const{parse:t}=gu[e];return t(localStorage.getItem(e))};const vu=Pe({name:"voiceChanger",initialState:(bu=Zc,{...bu,step:yu(Tc.step),pack:yu(Tc.pack),fileId:yu(Tc.fileId),taskId:yu(Tc.taskId),uploading:yu(Tc.uploading),progress:yu(Tc.progress),fileInfo:yu(Tc.fileInfo),preview:yu(Tc.preview),result:yu(Tc.result),processingStartTime:yu(Tc.processingStartTime),isAccentEnabled:yu(Tc.accent),isTonalityEnabled:yu(Tc.tonality)}),reducers:{init:(e,t)=>{let{payload:n}=t;return{...e,...n,init:!0}},sync:(e,t)=>{let{payload:n}=t;return{...e,...n}},selectVoicePack:(e,t)=>{let{payload:n}=t;e.pack=n},startUploading:e=>{e.step=Qc.uploading,e.uploading=0,e.fileId=null},updateUploadingProgress:(e,t)=>{let{payload:n}=t;e.uploading=n},uploadingDone:(e,t)=>{let{payload:n}=t;e.fileId=n,e.step=Qc.processingInitialization,e.processingStartTime=Math.floor(Date.now()/1e3)},uploadCanceled:e=>{e.step=Qc.start,e.fileId=null,e.uploading=0},startPreviewProcessing:(e,t)=>{let{payload:n}=t;e.taskId=n,e.progress=0,e.step=Qc.previewProcessing,e.previewPlayerStatus=Xc.stop,e.preview=null,e.isConstraintChecked=!1},startResultProcessing:(e,t)=>{let{payload:n}=t;e.taskId=n,e.progress=0,e.step=Qc.resultProcessing,e.previewPlayerStatus=Xc.stop,e.result=null,e.processingStartTime=Math.floor(Date.now()/1e3)},checkProcessingStart:e=>{e.isStatusChecking=!0},checkProcessingEnd:e=>{e.isStatusChecking=!1},updateProcessingProgress:(e,t)=>{let{payload:n}=t;e.progress=n},setNewPreviewChanges:e=>{e.step=Qc.processingInitialization,e.processingStartTime=Math.floor(Date.now()/1e3)},setFileInfo:(e,t)=>{let{payload:n}=t;e.fileInfo=n},setPreview:(e,t)=>{let{payload:n}=t;e.step=Qc.preview,e.progress=0,e.preview=n},setResult:(e,t)=>{let{payload:n}=t;e.step=Qc.result,e.progress=0,e.result=n},setConstraint:(e,t)=>{let{payload:n}=t;e.constraint=n,e.isConstraintChecked=!0},taskCanceled:e=>{if(null===e.preview)return{...Zc,init:!0,pack:e.pack};e.step=Qc.preview,e.taskId=null,e.progress=0,e.result=null,e.processingStartTime=0},changerPreviewPlayerStatus:(e,t)=>{let{payload:n}=t;e.previewPlayerStatus=n},backToPreview:e=>{if(!e.preview)return{...Zc,init:!0,pack:e.pack};e.result=null,e.step=Qc.preview},backToStart:e=>({...Zc,init:!0,pack:e.pack,isAccentEnabled:e.isAccentEnabled,isTonalityEnabled:e.isTonalityEnabled,customVoicePacks:{...e.customVoicePacks}}),setIsAccentEnabled:(e,t)=>{let{payload:n}=t;e.isAccentEnabled=n},setIsTonalityEnabled:(e,t)=>{let{payload:n}=t;e.isTonalityEnabled=n},setCustomVoicePacks:(e,t)=>{let{payload:n}=t;e.customVoicePacks.packs=n}},extraReducers:function(e){!function(e){e.addCase(su.pending,(function(e){e.customVoicePacks.statusOfGetRequest="fetching"})),e.addCase(su.fulfilled,(function(e,t){var n=t.payload;e.customVoicePacks.statusOfGetRequest="success",e.customVoicePacks.packs=n})),e.addCase(su.rejected,(function(e){e.customVoicePacks.statusOfGetRequest="failed"}))}(e),function(e){e.addCase(ru.pending,(function(e){e.customVoicePacks.statusOfDeleteRequest="fetching"})),e.addCase(ru.fulfilled,(function(e,t){var n,r=t.payload;e.customVoicePacks.statusOfDeleteRequest="success",localStorage.getItem(Tc.pack)===r&&localStorage.removeItem(Tc.pack),e.customVoicePacks.packs=null===(n=e.customVoicePacks.packs)||void 0===n?void 0:n.filter((function(e){return e.id!==r}))})),e.addCase(ru.rejected,(function(e){e.customVoicePacks.statusOfDeleteRequest="failed"}))}(e),e.addCase(ac.rejected,(function(e){var t,n=localStorage.getItem(Tc.pack);n&&!cu&&(null===(t=xc.voicePacks[n])||void 0===t?void 0:t.name)||(e.pack=fc[0])})),e.addCase(vd.fulfilled,(function(e){var t,n=e.pack,r=localStorage.getItem(Tc.pack);return r&&!cu&&(null===(t=xc.voicePacks[r])||void 0===t?void 0:t.name)||(n=fc[0]),lu(lu({},Zc),{init:!0,pack:n,isAccentEnabled:e.isAccentEnabled,isTonalityEnabled:e.isTonalityEnabled})}))}});var bu;const{taskCanceled:wu}=vu.actions,Su=Te("voiceChanger/cancelTask",(async(e,t)=>{let{dispatch:n,getState:r}=t;const o=Ec.getCurrentTaskId(r());await Sc.cancelTask(o),n(wu())})),{uploadCanceled:_u,backToStart:Eu}=vu.actions,ku=Te("voiceChanger/cancelUploading",(async(e,t)=>{let{dispatch:n,rejectWithValue:r}=t;try{await Sc.cancelUpload(),n(_u())}catch(e){return n(Eu()),r({message:e.message})}})),Tu={batchNotAvaliable:"batch_not_avaliable",duration:"exceeded_duration",maxDuration:"max_duration",size:"exceeded_size",unknown:"unknown"},{setConstraint:xu}=vu.actions,Cu=Te("voiceChanger/checkConstraints",(async(e,t)=>{let{fileId:n,voicePack:r,isAccentEnabled:o,isTonalityEnabled:i}=e,{dispatch:a,rejectWithValue:s}=t;try{var l;const{data:e,...t}=await Sc.checkConstraints({fileId:n,voice:r,isAccentEnabled:o,isTonalityEnabled:i});if(!e)throw new Error("".concat(xc.errors.limitCheckServerError,". Request status: ").concat(t.status,". Status text: ").concat(t.statusText,". Code #9.1"));if(e.status.toLowerCase()===bo.ERROR)throw a(xu({code:Tu.unknown,requiredValue:"",availableValue:""})),new Error("".concat(e.error,". Code #9.2"));if(0===(null===(l=e.details)||void 0===l?void 0:l.length))return void a(xu(null));for(let t in Tu){var c;let n=null===(c=e.details)||void 0===c?void 0:c.find((e=>e.code===Tu[t]));var u,d;if(n)return void a(xu({code:n.code,requiredValue:(null===(u=n.params)||void 0===u?void 0:u.required)||"",availableValue:(null===(d=n.params)||void 0===d?void 0:d.available)||""}))}a(xu({code:Tu.unknown,requiredValue:"",availableValue:""}))}catch(e){return s({message:e.message})}}));function Iu(e){const t={size:e.size,duration:e.duration};return e.split&&(t.size=e.split.back_track_size),t}function Ru(e){const{preview:t,presets:n}=e||{},{back_waveform:r,back_track_playlist:o,back_track:i}=t||{},{accent_enhance:a,pitch_shifting:s,voice:l}=n.preview||{},c={voice:l,accent:a,tonality:s};return r?{changed:o,waveform:r,...c}:{changed:i,...c}}function Ou(e){return{voice:e.stem,link:e.split.back_track}}function Pu(e,t){!function(e,t){if(!e||!e.result||e.status.toLowerCase()===bo.ERROR)throw new Error("An error occurred while checking the task on the server. ".concat(e.error,". Task ID: ").concat(t,"; Code #4"))}(e,t),function(e,t){var n;if(0===(null===(n=Object.keys(e.result))||void 0===n?void 0:n.length)||!e.result[t])throw new Error("There is no task at the entrance. Please refresh the page. Code #4.1")}(e,t);const n=e.result[t];return function(e,t){var n,r;if(e.status.toLowerCase()===bo.ERROR||(null==e||null===(n=e.task)||void 0===n||null===(n=n.state)||void 0===n?void 0:n.toLowerCase())===bo.ERROR)throw new Error("".concat((null==e?void 0:e.code)||"",". ").concat((null==e?void 0:e.error)||(null==e||null===(r=e.task)||void 0===r?void 0:r.error),"; Task ID: ").concat(t,"; Code #4.2"))}(n,t),n}const{setFileInfo:Au,setPreview:Lu}=vu.actions,Nu=Te("voiceChanger/checkPreviewExists",(async(e,t)=>{let{dispatch:n,rejectWithValue:r,getState:o}=t;try{const e=o(),t=Ec.getCurrentTaskId(e),{data:r}=await Sc.check(t),i=Pu(r,t),a=Iu(i),s=Ru(i);n(Au(a)),n(Lu(s))}catch(e){return r({message:e.message})}})),{checkProcessingStart:Mu,checkProcessingEnd:Du,updateProcessingProgress:Fu,setFileInfo:ju,setPreview:Uu,setResult:Bu,taskCanceled:zu,backToStart:qu}=vu.actions,Wu=Te("voiceChanger/checkProcessingStatus",(async(e,t)=>{let{dispatch:n,rejectWithValue:r,getState:o}=t;const i=o(),a=Ec.getSelectedVoicePack(i),s=Ec.getCurrentStep(o())===Qc.resultProcessing;try{const e=o(),t=Ec.getWidgetId(e),r=localStorage.getItem(Tc.widgetId);if(t.toString()!==r)return;n(Mu());const i=Ec.getCurrentTaskId(e),{data:l}=await Sc.check(i);n(Du());const c=Pu(l,i);if(c.task.state.toLowerCase()===bo.PROGRESS)return void n(Fu(c.task.progress));const u=Iu(c);if(n(ju(u)),s&&c.split){const e=Ou(c);return n(Bu(e)),void dataLayer.push({event:"vch_full_processing_finish",status:"success",voice_pack:a})}const d=Ru(c);n(Uu(d)),dataLayer.push({event:"vch_preview_finish",status:"success",voice_pack:a})}catch(e){return e.message.includes(Ma.FILE_CLEANNED_UP)?void n(qu()):(n(zu()),dataLayer.push({event:s?"vch_full_processing_finish":"vch_preview_finish",status:"failure",voice_pack:a}),r({message:e.message}))}}));var $u=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},Vu=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},Hu=vu.actions.startPreviewProcessing,Gu=Te("voiceChanger/getPreview",(function(e,t){return $u(void 0,[e,t],void 0,(function(e,t){var n,r,o=e.fileId,i=e.voicePack,a=e.isAccentEnabled,s=e.isTonalityEnabled,l=e.token,c=void 0===l?"":l,u=t.dispatch,d=t.rejectWithValue;return Vu(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,Sc.voiceChangerPreview({fileId:o,voice:i,isAccentEnabled:a,isTonalityEnabled:s,token:c})];case 1:if((n=e.sent().data).status.toLowerCase()!==bo.SUCCESS)throw new Error(n.error);return window.dataLayer&&window.dataLayer.push({event:"vch_preview_start",status:"success",voice_pack:i,accent_enhance:a,tonality_enhance:s}),u(Hu(n.id)),[3,3];case 2:return r=e.sent(),window.dataLayer&&window.dataLayer.push({event:"vch_preview_start",status:"failure",voice_pack:i,accent_enhance:a,tonality_enhance:s}),r instanceof Error?[2,d({message:r.message})]:[2];case 3:return[2]}}))}))}));const{init:Ku}=vu.actions,Yu=[Qc.start,Qc.uploading],Ju=[Qc.previewProcessing,Qc.preview],Xu=Te("voiceChanger/initWidget",(async(e,t)=>{let{dispatch:n,getState:r}=t;const o={...Zc},i=r(),a=Ec.getCurrentStep(i),s=Ec.getSelectedVoicePack(i),l=Ec.getFileId(i),c=Ec.getCurrentTaskId(i),u=Ec.getFileInfo(i),d=Ec.getResult(i),p=Ec.getProcessingStartTime(i),f=Ec.getIsAccentEnabled(i),h=Ec.getIsTonalityEnabled(i);o.pack=s,o.isAccentEnabled=f,o.isTonalityEnabled=h;const m=Pt(p,Math.floor(Date.now()/1e3));if(a===Qc.processingInitialization&&m>=Fo.linksAlive)n(Ku(o));else try{const e=l&&c,t=Yu.includes(a),r=a===Qc.processingInitialization,i=Ju.includes(a);if(r&&l)return o.fileId=l,o.step=a,void n(Ku(o));if(!e||t)return void n(Ku(o));const{data:s}=await Sc.check(c),u=Pu(s,c);if(o.step=a,o.fileId=l,o.taskId=c,o.fileInfo=Iu(u),u.task.state.toLowerCase()===bo.PROGRESS)return o.progress=u.task.progress,o.step=Qc.previewProcessing,!i&&u.preview&&(o.step=Qc.resultProcessing,o.preview=Ru(u)),void n(Ku(o));o.step=Qc.preview,o.preview=Ru(u),!i&&u.split&&(o.step=Qc.result,o.result=Ou(u)),n(Ku(o))}catch(e){if(!(e.message.includes(Ma.FILE_CLEANNED_UP)&&a===Qc.result&&p&&d&&u))return void n(Ku(o));if(m-Fo.linksAlive>=Fo.splitResultsAlive)return void n(Ku(o));o.step=a,o.fileId=l,o.taskId=c,o.fileInfo=u,o.result=d,o.processingStartTime=p,n(Ku(o))}})),{startResultProcessing:Qu}=vu.actions,Zu=Te("voiceChanger/startProcess",(async(e,t)=>{let{fileId:n,voicePack:r,isAccentEnabled:o,isTonalityEnabled:i}=e,{dispatch:a,rejectWithValue:s}=t;try{const{data:e}=await Sc.voiceChangerProcess({fileId:n,voice:r,isAccentEnabled:o,isTonalityEnabled:i});if(e.status.toLowerCase()!==bo.SUCCESS)throw new Error(e.error);dataLayer.push({event:"vch_full_processing_start",status:"success",accent_enhance:o,tonality_enhance:i,voice_pack:r}),a(Qu(e.id))}catch(e){return dataLayer.push({event:"vch_full_processing_start",status:"failure",accent_enhance:o,tonality_enhance:i,voice_pack:r}),s({message:e.message})}})),{startUploading:ed,updateUploadingProgress:td,uploadingDone:nd,backToStart:rd}=vu.actions,od=Te("voiceChanger/uploadFile",(async(e,t)=>{let{file:n}=e,{dispatch:r,rejectWithValue:o}=t;r(ed()),dataLayer.push({event:"vch_upload_start"});const i=e=>{const t=e.loaded,n=e.total,o=Math.round(100*t/n);r(td(o))};try{const{data:e,...t}=await Sc.uploadFile(n,i);if(!e)throw new Error("Server did not send task id. Request status: ".concat(t.status,". Status text: ").concat(t.statusText,". Code #2"));if(e.status.toLowerCase()!==bo.SUCCESS)throw new Error("".concat(e.error,". Code #3"));r(nd(e.id)),dataLayer.push({event:"vch_upload_finish",status:"success"})}catch(e){return dataLayer.push({event:"vch_upload_finish",status:"failure"}),r(rd()),o({message:e.message})}})),{sync:id}=vu.actions,ad=((e={})=>{const t=new Map,{extra:n,onError:r=lt}=e;ze(r);const o=e=>{let n=le(Array.from(t.values()),(t=>t.effect===e.effect));return n||(n=nt(e)),(e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),t?.cancelActive&&rt(e)}))(n)};Object.assign(o,{withTypes:()=>o});const i=e=>{const{type:n,effect:r,predicate:o}=tt(e),i=le(Array.from(t.values()),(e=>("string"==typeof n?e.type===n:e.predicate===o)&&e.effect===r));return i&&(i.unsubscribe(),e.cancelActive&&rt(i)),!!i};Object.assign(i,{withTypes:()=>i});const a=async(e,i,a,s)=>{const l=new AbortController,c=et(o,l.signal),u=[];try{e.pending.add(l),await Promise.resolve(e.effect(i,Je({},a,{getOriginalState:s,condition:(e,t)=>c(e,t).then(Boolean),take:c,delay:Ye(l.signal),pause:Ke(l.signal),extra:n,signal:l.signal,fork:Ze(l.signal,u),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach(((e,t,n)=>{e!==l&&(Ve(e,je),n.delete(e))}))},cancel:()=>{Ve(l,je),e.pending.delete(l)},throwIfCancelled:()=>{He(l.signal)}})))}catch(e){e instanceof Be||ot(r,e,{raisedBy:"effect"})}finally{await Promise.all(u),Ve(l,Ue),e.pending.delete(l)}},s=(e=>()=>{e.forEach(rt),e.clear()})(t);return{middleware:e=>n=>l=>{if(!ie(l))return n(l);if(it.match(l))return o(l.payload);if(at.match(l))return void s();if(st.match(l))return i(l.payload);let c=e.getState();const u=()=>{if(c===Xe)throw new Error(ct(23));return c};let d;try{if(d=n(l),t.size>0){const n=e.getState(),o=Array.from(t.values());for(const t of o){let o=!1;try{o=t.predicate(l,n,c)}catch(e){o=!1,ot(r,e,{raisedBy:"predicate"})}o&&a(t,l,e,u)}}}finally{c=Xe}return d},startListening:o,stopListening:i,clearListeners:s}})();for(const{key:e,selector:t,stringify:n}of Object.values(gu))ad.startListening({predicate:sd(t),effect:ld(t,e,n)});function sd(e){return function(t,n,r){return!id.match(t)&&(!!Ec.getInitStatus(n)&&e(n)!==e(r))}}function ld(e,t,n){return function(r,o){let{getState:i}=o;const a=e(i());localStorage.setItem(t,n(a))}}const cd=vu.actions,ud={initWidget:Xu,uploadFile:od,cancelUploading:ku,getPreview:Gu,startProcess:Zu,checkProcessingStatus:Wu,checkPreviewExists:Nu,checkConstraints:Cu,cancelTask:Su,getCustomVoicePacks:su},{sync:dd}=cd;var pd=o(55592),fd={};fd.styleTagTransform=Vi(),fd.setAttributes=zi(),fd.insert=Ui().bind(null,"head"),fd.domAPI=Fi(),fd.insertStyleElement=Wi();Mi()(pd.A,fd);const hd=pd.A&&pd.A.locals?pd.A.locals:void 0,md=Object.freeze({medium:Symbol("medium"),large:Symbol("large")});Object.freeze({[md.medium]:hd.medium,[md.large]:hd.large});var gd=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},yd=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},vd=Te("".concat(nc,"/logout"),(function(e,t){return gd(void 0,[e,t],void 0,(function(e,t){var n,r,o,i=t.rejectWithValue,a=t.getState,s=t.dispatch;return yd(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,ec.logout()];case 1:if(200!==(n=e.sent()).status)throw new Error("Response status: ".concat(n.status,". Response text: ").concat(n.statusText,". Code #24"));return"uploading"===(r=Ec.getCurrentStep(a()))&&s(ud.cancelUploading()),"resultProcessing"!==r&&"previewProcessing"!==r||s(ud.cancelTask()),function(){const e=document.querySelector(dt[ut.STARTER]);if(!e)return;const t=e.querySelector(pt.paymentButton);t.disabled=!1;const n=document.querySelector(dt[ut.LITE_YEAR]),r=document.querySelector(dt[ut.LITE_MONTH]);if(!n||!r)return;const o=r.querySelector(pt.stripeButton),i=n.querySelector(pt.stripeButton),a=document.querySelector(pt.subscriptionUpgrade),s=document.querySelector(pt.footnoteSymbol),l=document.querySelector(pt.footnote),{subscribe:c,getFree:u}=ht.toFullProcessBlock.activeLicense.button;t.style.display="",o.style.display="",i.style.display="",a.style.display=yt,t.textContent=u,o.textContent=c,i.textContent=c,s.style.display=yt,l.style.display=yt,t.disabled="",o.disabled="",i.disabled=""}(),[2];case 2:return o=e.sent(),console.group("=== Logout error ==="),console.error(o),console.groupEnd(),o instanceof Error?[2,i({message:o.toString()})]:[2,i({message:"Unknown error occured."})];case 3:return[2]}}))}))})),bd=function(){return bd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bd.apply(this,arguments)},wd=function(){return wd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wd.apply(this,arguments)},Sd={setIsAuth:function(e,t){var n=t.payload;e.isAuth=n},setAuthCheckStatus:function(e,t){var n=t.payload;e.authCheckStatus=n},setReferrerInfo:function(e,t){var n=t.payload;e.referrerInfo=n},resetLoginForm:function(e){e.signInRequestStatus="initial",e.authByOtpRequestStatus="initial",e.isOtpFormDisabled=!1,e.notification=null},addMailForSignup:function(e,t){var n=t.payload;e.mailForSignup=n},setSubscribeChecked:function(e,t){var n=t.payload;e.isSubscribeCheckboxChecked=n},setNextLoginScreen:function(e){e.loginPopupScreen+=1},setPreviousLoginScreen:function(e){e.loginPopupScreen-=1,e.signInRequestStatus="initial",e.authByOtpRequestStatus="initial",e.otpTimeoutStart=0},setLoginPopupScreen:function(e,t){var n=t.payload;e.loginPopupScreen=n},startSignInWithEmail:function(e){e.signInRequestStatus="fetching",e.authByOtpRequestStatus="initial",e.otpTimeoutStart=0},successSignInWithEmail:function(e,t){var n=t.payload;e.mailForSignup=n,e.signInRequestStatus="success",e.otpTimeoutStart=Date.now()},failedSignInWithEmail:function(e){e.signInRequestStatus="failed",e.isErrorLoginForm=!0},startLoginWithOtpCode:function(e){e.authByOtpRequestStatus="fetching",e.isOtpFormDisabled=!0},successLoginWithOtpCode:function(e){e.authByOtpRequestStatus="success"},failedLoginWithOtpCode:function(e){e.authByOtpRequestStatus="failed",e.isOtpFormDisabled=!1},setAuthByOtpRequestStatus:function(e,t){var n=t.payload;e.authByOtpRequestStatus=n},startOtpTimeout:function(e){e.otpTimeoutStart=Date.now()},setOtpGenerateTimeout:function(e,t){var n=t.payload;e.otpGenerateTimeout=n},setIsOtpFormDisabled:function(e,t){var n=t.payload;e.isOtpFormDisabled=n},setAuthInfo:function(e){return wd(wd({},pc),{isAuth:!0,authCheckStatus:"success",referrerInfo:e.referrerInfo})},showSnackbar:function(e){e.isSnackbarVisible=!0},hideSnackbar:function(e){e.isSnackbarVisible=!1},activateEmojiFalling:function(e){e.isFallingEmojisActive=!0},stopEmojiFalling:function(e){e.isFallingEmojisActive=!1},setNotification:function(e,t){var n=t.payload;e.notification=n},closeNotification:function(e){e.notification=null},setIsErrorLoginForm:function(e,t){var n=t.payload;e.isErrorLoginForm=n},logout:function(e){return wd(wd({},pc),{authCheckStatus:e.authCheckStatus})}},_d=Pe({name:"auth",initialState:pc,reducers:Sd,extraReducers:function(e){lc(e),function(e){e.addCase(vd.fulfilled,(function(e){return bd(bd({},pc),{authCheckStatus:e.authCheckStatus})}))}(e)}}),Ed=_d.actions,kd=mt.socialLogin;Object.freeze({google:{name:"Google",link:"/auth/google/login/?next=".concat(window.location.pathname),title:"".concat(kd," Google")},facebook:{name:"Facebook",link:"/auth/facebook/login/?next=".concat(window.location.pathname),title:"".concat(kd," Facebook")},apple:{name:"Apple",link:"/auth/apple/login/?next=".concat(window.location.pathname),title:"".concat(kd," Apple")}}),Object.freeze({google:{title:"Google",link:"/auth/google/login/?next=".concat(window.location.pathname),name:"google"},facebook:{title:"Facebook",link:"/auth/facebook/login/?next=".concat(window.location.pathname),name:"facebook"},apple:{title:"Apple",link:"/auth/apple/login/?next=".concat(window.location.pathname),name:"apple"},email:{title:"Email",name:"email"}});var Td=Object.freeze({login:mt.userProfile.login,socialLogin:mt.socialLogin,loginWindow:mt.loginWindow,agreeWithPrivacyPolicyText:mt.agreeWithPrivacyPolicyText,subscribeToUpdates:mt.subscribeToUpdates,privacyPolicyURL:ht.privacyPolicyURL,policyLabel:ht.freeForm.payItem.policyLabel,notifyMessage:mt.notifyMessage||{},paymentNotifyMessage:ht.notifyMessage||{},userProfile:mt.userProfile||{}}),xd=function(){return xd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xd.apply(this,arguments)},Cd=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},Id=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},Rd=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Od=_d.actions,Pd=Od.startLoginWithOtpCode,Ad=Od.successLoginWithOtpCode,Ld=Od.failedLoginWithOtpCode,Nd=Od.setIsOtpFormDisabled,Md=Od.setOtpGenerateTimeout,Dd=Od.setNotification,Fd={},jd=(Te("".concat(nc,"/loginWithOtpCode"),(function(e,t){return Cd(void 0,[e,t],void 0,(function(e,t){var n,r,o,i,a,s,l,c,u,d,p=e.email,f=e.code,h=t.dispatch;return Id(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),h(Pd(void 0)),[4,ec.login(p,f)];case 1:if(n=e.sent(),r=n.data,200!==(o=Rd(n,["data"])).status)throw new Error("Response status: ".concat(o.status,". Response text: ").concat(o.statusText,". Code #24"));if(r.status===bo.ERROR){if(!(null===(c=null==r?void 0:r.details)||void 0===c?void 0:c.length))throw new Error("".concat(r.error,". Email: ").concat(p,". Code #21"));throw i=r.code,a=Rd(r,["code"]),s=new Error(i),Fd=xd({},a),s}return h(Ad(void 0)),setTimeout((function(){h(sc()),function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=window.innerWidth>document.documentElement.clientWidth;if(e){if(t){const e=+(window.innerWidth-document.documentElement.clientWidth);document.body.style.paddingRight="".concat(e,"px")}document.body.style.overflowY="hidden"}else document.body.removeAttribute("style")}(!1),h(Rl(!1)),h(Ed.resetLoginForm())}),3e3),[3,3];case 2:if(l=e.sent(),h(Ld(void 0)),!(l instanceof Error))return[2];switch(l.message){case Ma.TOKEN_INVALID:h(Dd({text:Td.paymentNotifyMessage.tokenInvalidError,variant:"error",delay:0}));break;case Ma.TOKEN_EXPIRED:h(Dd({text:Td.paymentNotifyMessage.tokenExpiredError,variant:"warning",delay:0})),h(Nd(!0));break;case Ma.TOKEN_VERIFICATION_LIMIT:h(Dd({text:Td.paymentNotifyMessage.tokenVerificationLimitError,variant:"warning",delay:0})),h(Nd(!0));break;case Ma.TOO_MANY_FAILED_ATTEMPTS:h(Dd({text:Td.paymentNotifyMessage.tooManyFailedAttempts,variant:"warning",delay:0})),h(Nd(!0)),(null===(u=null==Fd?void 0:Fd.params)||void 0===u?void 0:u.remaining_timeout)&&h(Md(+(null===(d=null==Fd?void 0:Fd.params)||void 0===d?void 0:d.remaining_timeout))),h(Md(cc));break;default:console.group("=== Login error ==="),console.error(l.message),console.groupEnd(),h(Dd({text:l.message,variant:"error",delay:0}))}return[3,3];case 3:return[2]}}))}))})),function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}),Ud=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},Bd=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},zd=(Te("".concat(nc,"/sendBonusProgramParticipation"),(function(e,t){return jd(void 0,[e,t],void 0,(function(e,t){var n,r,o,i,a=e.bonusProgram,s=e.userEmail,l=e.needCheckLimits,c=void 0===l||l,u=t.dispatch;return Ud(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,ec.addBonusProgram(a,s)];case 1:if(n=e.sent(),r=n.data,200!==(o=Bd(n,["data"])).status)throw new Error("Response text: ".concat(o.statusText,". Response status: ").concat(o.status,". Code #26"));if(r.status!==bo.SUCCESS)throw new Error("".concat(r.error,". Code #26.1"));return c&&u(sc()),[3,3];case 2:return i=e.sent(),console.group("=== Bonus program participation failed ==="),console.error(i),console.groupEnd(),i instanceof Error?(u(xi.addNotify({type:"error",title:"",text:i.toString()})),[3,3]):[2];case 3:return[2]}}))}))})),function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}),qd=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},Wd=_d.actions.setReferrerInfo,$d=(Te("".concat(nc,"/setReferrerInfoInit"),(function(e,t){return zd(void 0,[e,t],void 0,(function(e,t){var n,r=t.dispatch;return qd(this,(function(e){switch(e.label){case 0:return[4,ec.getReferralInfo()];case 1:return(n=(e.sent()||{}).data)&&"success"===n.status&&r(Wd({referrerEmail:n.email,referrerBonus:n.follower_bonus})),[2]}}))}))})),function(){return $d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$d.apply(this,arguments)}),Vd=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},Hd=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},Gd=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Kd=_d.actions,Yd=Kd.startSignInWithEmail,Jd=Kd.successSignInWithEmail,Xd=Kd.failedSignInWithEmail,Qd=Kd.setOtpGenerateTimeout,Zd=Kd.setNotification,ep={},tp=(Te("".concat(nc,"/signInWithEmail"),(function(e,t){return Vd(void 0,[e,t],void 0,(function(e,t){var n,r,o,i,a,s,l,c,u,d,p=e.email,f=e.turnstile,h=e.token,m=void 0===h?"":h,g=t.dispatch;return Hd(this,(function(e){switch(e.label){case 0:g(Yd(void 0)),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,ec.signUp(p,"otp",m)];case 2:if(n=e.sent(),r=n.data,o=Gd(n,["data"]),g(Qd(cc)),200!==o.status)throw null==f||f.reset(),new Error("Response status: ".concat(o.status,". Response text: ").concat(o.statusText,". Code #22"));if(r.status===bo.ERROR){if(null==f||f.reset(),!(null===(c=null==r?void 0:r.details)||void 0===c?void 0:c.length))throw new Error("".concat(r.error,". Email: ").concat(p,". Code #21"));throw i=r.code,a=Gd(r,["code"]),s=new Error(i),ep=$d({},a),s}return g(Jd(p)),g(Zd({text:Td.paymentNotifyMessage.successfullOtpGeneration,variant:"success",delay:uc})),window.dataLayer&&window.dataLayer.push({event:"authorization",status:"success",auth_type:"email"}),[3,4];case 3:if(l=e.sent(),g(Xd(void 0)),!(l instanceof Error))return[2];switch(l.message){case Ma.APPLE_MIGRATION_LOGIN_ERROR:g(Zd({text:Td.paymentNotifyMessage.appleMigrationLoginError,variant:"error",delay:0})),g(Qd(cc));break;case Ma.DISPOSABLE_EMAIL:g(Zd({text:Td.paymentNotifyMessage.disposableEmail,variant:"error",delay:uc})),g(Qd(cc));break;case Ma.TOKEN_GENERATION_LIMIT:g(Zd({text:Td.paymentNotifyMessage.tokenGenerationLimit,variant:"error",delay:0})),(null===(u=null==ep?void 0:ep.params)||void 0===u?void 0:u.remaining_timeout)&&g(Qd(+(null===(d=null==ep?void 0:ep.params)||void 0===d?void 0:d.remaining_timeout))),g(Qd(cc));break;case Ma.INVALID_EMAIL:g(Zd({text:Td.paymentNotifyMessage.invalidDomain,variant:"error",delay:uc})),g(Qd(cc));break;case Ma.INVALID_CAPTCHA:g(Zd({text:mt.notifyMessage.error.turnstileFailed,variant:"error",delay:uc})),g(Qd(cc));break;default:console.group("=== Registration error ==="),console.error(l.message),console.groupEnd(),g(Zd({text:l.message.toString(),variant:"error",delay:0})),window.dataLayer&&window.dataLayer.push({event:"authorization",status:"failure",auth_type:"email"})}return[3,4];case 4:return[2]}}))}))})),function(e){return e.auth}),np={getAuthStatus:function(e){return tp(e).isAuth},getAuthCheckStatus:function(e){return tp(e).authCheckStatus},getIsAuthCheckInit:function(e){return"initial"===tp(e).authCheckStatus},getIsAuthCheckFetching:function(e){return"fetching"===tp(e).authCheckStatus},getIsAuthChecked:function(e){return"success"===tp(e).authCheckStatus||"failed"===tp(e).authCheckStatus},getLoginScreen:function(e){return tp(e).loginPopupScreen},getSignInStatus:function(e){return tp(e).signInRequestStatus},getAuthByOtpStatus:function(e){return tp(e).authByOtpRequestStatus},getSubscribeChecked:function(e){return tp(e).isSubscribeCheckboxChecked},getLoginFormErrorStatus:function(e){return tp(e).isErrorLoginForm},getOtpGenerateTimeout:function(e){return tp(e).otpGenerateTimeout},getOtpTimeoutStart:function(e){return tp(e).otpTimeoutStart},getOtpInputDisabled:function(e){return tp(e).isOtpFormDisabled},getEmailForLogin:function(e){return tp(e).mailForSignup},getNotification:function(e){return tp(e).notification},getSnackbarStatus:function(e){return tp(e).isSnackbarVisible},getFallingEmojiStatus:function(e){return tp(e).isFallingEmojisActive},getCanSendProfileUpdateRequest:function(e){return!tp(e).isAuth&&"success"!==tp(e).authCheckStatus},getReferrerEmail:function(e){return tp(e).referrerInfo.referrerEmail},getReferrerBonus:function(e){return tp(e).referrerInfo.referrerBonus}};var rp=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},op=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},ip=Te("".concat(nc,"/redirectToStripe"),(function(e,t){return rp(void 0,[e,t],void 0,(function(e,t){var n,r,o,i,a=t.dispatch;return op(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,ec.getStripeLink()];case 1:if(n=e.sent(),r=n.data,o=n.status,r.status===bo.ERROR||200!==o)throw new Error(mt.userProfile.getStripeLinkErrorMessage);return setTimeout((function(){window.location.href=r.redirect_to})),[3,3];case 2:return(i=e.sent())instanceof Error?(a(xi.addNotify({type:"error",title:"",text:i.toString()})),[3,3]):[2];case 3:return[2]}}))}))}));function ap(){const e=window.location.search.replace("?","").split("&").reduce((function(e,t){let n=t.split("=");return e[decodeURIComponent(n[0])]=decodeURIComponent(n[1]),e}),{});null!=e&&e.gclid&&async function(e){try{const{...t}=await ec.sendClickIdParam({gclid:e});if(200!==t.status)throw new Error("Response status: ".concat(t.status,". Response text: ").concat(t.statusText,". Code #30"))}catch(e){console.group("=== Error device setup  ==="),console.error(e),console.groupEnd()}}(e.gclid)}document.addEventListener("DOMContentLoaded",(function(){ap()}));o(7850);const sp="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,lp="8.8.0",cp=globalThis;function up(e,t,n){const r=n||cp,o=r.__SENTRY__=r.__SENTRY__||{},i=o[lp]=o[lp]||{};return i[e]||(i[e]=t())}const dp=["debug","info","warn","error","log","assert","trace"],pp={};function fp(e){if(!("console"in cp))return e();const t=cp.console,n={},r=Object.keys(pp);r.forEach((e=>{const r=pp[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}const hp=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return sp?dp.forEach((n=>{t[n]=(...t)=>{e&&fp((()=>{cp.console[n](`Sentry Logger [${n}]:`,...t)}))}})):dp.forEach((e=>{t[e]=()=>{}})),t}(),mp=Object.prototype.toString;function gp(e){switch(mp.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return xp(e,Error)}}function yp(e,t){return mp.call(e)===`[object ${t}]`}function vp(e){return yp(e,"ErrorEvent")}function bp(e){return yp(e,"DOMError")}function wp(e){return yp(e,"String")}function Sp(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function _p(e){return null===e||Sp(e)||"object"!=typeof e&&"function"!=typeof e}function Ep(e){return yp(e,"Object")}function kp(e){return"undefined"!=typeof Event&&xp(e,Event)}function Tp(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function xp(e,t){try{return e instanceof t}catch(e){return!1}}function Cp(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}const Ip=cp,Rp=80;function Op(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let i=0,a=0;const s=" > ",l=s.length;let c;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||Rp;for(;n&&i++<r&&(c=Pp(n,u),!("html"===c||i>1&&a+o.length*l+c.length>=d));)o.push(c),a+=c.length,n=n.parentNode;return o.reverse().join(s)}catch(e){return"<unknown>"}}function Pp(e,t){const n=e,r=[];let o,i,a,s,l;if(!n||!n.tagName)return"";if(Ip.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const c=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(c&&c.length)c.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),o=n.className,o&&wp(o))for(i=o.split(/\s+/),l=0;l<i.length;l++)r.push(`.${i[l]}`);const u=["aria-label","type","name","title","alt"];for(l=0;l<u.length;l++)a=u[l],s=n.getAttribute(a),s&&r.push(`[${a}="${s}"]`);return r.join("")}function Ap(e){if(!Ip.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function Lp(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function Np(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const r=e[t];try{Cp(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function Mp(e,t,n=!1){return!!wp(e)&&(yp(t,"RegExp")?t.test(e):!!wp(t)&&(n?e===t:e.includes(t)))}function Dp(e,t=[],n=!1){return t.some((t=>Mp(e,t,n)))}function Fp(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);"function"==typeof o&&Up(o,r),e[t]=o}function jp(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){sp&&hp.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Up(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,jp(e,"__sentry_original__",t)}catch(e){}}function Bp(e){return e.__sentry_original__}function zp(e){if(gp(e))return{message:e.message,name:e.name,stack:e.stack,...Wp(e)};if(kp(e)){const t={type:e.type,target:qp(e.target),currentTarget:qp(e.currentTarget),...Wp(e)};return"undefined"!=typeof CustomEvent&&xp(e,CustomEvent)&&(t.detail=e.detail),t}return e}function qp(e){try{return t=e,"undefined"!=typeof Element&&xp(t,Element)?Op(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}var t}function Wp(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function $p(e){return Vp(e,new Map)}function Vp(e,t){if(function(e){if(!Ep(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.keys(e))void 0!==e[n]&&(r[n]=Vp(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(Vp(e,t))})),r}return e}function Hp(){const e=cp,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function Gp(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Kp(e){const{message:t,event_id:n}=e;if(t)return t;const r=Gp(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Yp(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function Jp(e,t){const n=Gp(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function Xp(e){if(e&&e.__sentry_captured__)return!0;try{jp(e,"__sentry_captured__",!0)}catch(e){}return!1}function Qp(e){return Array.isArray(e)?e:[e]}const Zp="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,ef=[];function tf(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;t.forEach((e=>{e.isDefaultInstance=!0})),r=Array.isArray(n)?[...t,...n]:"function"==typeof n?Qp(n(t)):t;const o=function(e){const t={};return e.forEach((e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.keys(t).map((e=>t[e]))}(r),i=function(e,t){for(let n=0;n<e.length;n++)if(!0===t(e[n]))return n;return-1}(o,(e=>"Debug"===e.name));if(-1!==i){const[e]=o.splice(i,1);o.push(e)}return o}function nf(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function rf(e,t,n){if(n[t.name])Zp&&hp.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===ef.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),ef.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,r)=>n(t,r,e)))}if("function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign(((t,r)=>n(t,r,e)),{id:t.name});e.addEventProcessor(r)}Zp&&hp.log(`Integration installed: ${t.name}`)}}const of=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],af=(e={})=>({name:"InboundFilters",processEvent(t,n,r){const o=r.getOptions(),i=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:of],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,o);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e))return Zp&&hp.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${Kp(e)}`),!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return function(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch(e){}n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`));return t}(e).some((e=>Dp(e,t)))}(e,t.ignoreErrors))return Zp&&hp.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Kp(e)}`),!0;if(function(e){if(e.type)return!1;if(!e.exception||!e.exception.values||0===e.exception.values.length)return!1;return!e.message&&!e.exception.values.some((e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))}(e))return Zp&&hp.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${Kp(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&Dp(n,t)}(e,t.ignoreTransactions))return Zp&&hp.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${Kp(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const n=sf(e);return!!n&&Dp(n,t)}(e,t.denyUrls))return Zp&&hp.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Kp(e)}.\nUrl: ${sf(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=sf(e);return!n||Dp(n,t)}(e,t.allowUrls))return Zp&&hp.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Kp(e)}.\nUrl: ${sf(e)}`),!0;return!1}(t,i)?null:t}});function sf(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return Zp&&hp.error(`Cannot extract url for event ${Kp(e)}`),null}}function lf(){return cf(cp),cp}function cf(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||lp,t[lp]=t[lp]||{}}function uf(){return{traceId:Hp(),spanId:Hp().substring(16)}}const df=1e3;function pf(){return Date.now()/df}const ff=function(){const{performance:e}=cp;if(!e||!e.now)return pf;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/df}();let hf;const mf=(()=>{const{performance:e}=cp;if(!e||!e.now)return void(hf="none");const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,a=e.timing&&e.timing.navigationStart,s="number"==typeof a?Math.abs(a+n-r):t;return i||s<t?o<=s?(hf="timeOrigin",e.timeOrigin):(hf="navigationStart",a):(hf="dateNow",r)})();function gf(e){const t=ff(),n={sid:Hp(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return $p({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&yf(n,e),n}function yf(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||ff(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Hp()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}const vf="_sentrySpan";function bf(e,t){t?jp(e,vf,t):delete e[vf]}function wf(e){return e[vf]}class Sf{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=uf()}clone(){const e=new Sf;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,bf(e,wf(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&yf(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[n,r]=t instanceof _f?[t.getScopeData(),t.getRequestSession()]:Ep(t)?[e,e.requestSession]:[],{tags:o,extra:i,user:a,contexts:s,level:l,fingerprint:c=[],propagationContext:u}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...s},a&&Object.keys(a).length&&(this._user=a),l&&(this._level=l),c.length&&(this._fingerprint=c),u&&(this._propagationContext=u),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,bf(this,void 0),this._attachments=[],this._propagationContext=uf(),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:pf(),...e},o=this._breadcrumbs;return o.push(r),this._breadcrumbs=o.length>n?o.slice(-n):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:wf(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:Hp();if(!this._client)return hp.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:Hp();if(!this._client)return hp.warn("No client configured on scope - will not capture message!"),r;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Hp();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(hp.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const _f=Sf;class Ef{constructor(e,t){let n,r;n=e||new _f,r=t||new _f,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return Tp(n)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}_popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}}function kf(){const e=cf(lf());return e.stack=e.stack||new Ef(up("defaultCurrentScope",(()=>new _f)),up("defaultIsolationScope",(()=>new _f)))}function Tf(e){return kf().withScope(e)}function xf(e,t){const n=kf();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function Cf(e){return kf().withScope((()=>e(kf().getIsolationScope())))}function If(e){const t=cf(e);return t.acs?t.acs:{withIsolationScope:Cf,withScope:Tf,withSetScope:xf,withSetIsolationScope:(e,t)=>Cf(t),getCurrentScope:()=>kf().getScope(),getIsolationScope:()=>kf().getIsolationScope()}}function Rf(){return If(lf()).getCurrentScope()}function Of(){return If(lf()).getIsolationScope()}function Pf(...e){const t=If(lf());if(2===e.length){const[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function Af(){return Rf().getClient()}let Lf;const Nf=new WeakMap,Mf=()=>({name:"FunctionToString",setupOnce(){Lf=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Bp(this),n=Nf.has(Af())&&void 0!==t?t:this;return Lf.apply(n,e)}}catch(e){}},setup(e){Nf.set(e,!0)}}),Df=50,Ff="?",jf=/\(error: (.*)\)/,Uf=/captureMessage|captureException/;function Bf(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0,r=0)=>{const o=[],i=e.split("\n");for(let e=n;e<i.length;e++){const n=i[e];if(n.length>1024)continue;const a=jf.test(n)?n.replace(jf,"$1"):n;if(!a.match(/\S*Error: /)){for(const e of t){const t=e(a);if(t){o.push(t);break}}if(o.length>=Df+r)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop();t.reverse(),Uf.test(t[t.length-1].function||"")&&(t.pop(),Uf.test(t[t.length-1].function||"")&&t.pop());return t.slice(0,Df).map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||Ff})))}(o.slice(r))}}const zf="<anonymous>";function qf(e){try{return e&&"function"==typeof e&&e.name||zf}catch(e){return zf}}function Wf(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach((t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)})),e}catch(e){return}}}const $f=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(function(e,t){if(!t)return!1;if(function(e,t){const n=e.message,r=t.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!Hf(e,t))return!1;if(!Vf(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const n=Gf(t),r=Gf(e);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!Hf(e,t))return!1;if(!Vf(e,t))return!1;return!0}(e,t))return!0;return!1}(t,e))return Zp&&hp.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};function Vf(e,t){let n=Wf(e),r=Wf(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){const t=r[e],o=n[e];if(t.filename!==o.filename||t.lineno!==o.lineno||t.colno!==o.colno||t.function!==o.function)return!1}return!0}function Hf(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function Gf(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Kf(e,t){!0===t.debug&&(Zp?hp.enable():fp((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})));Rf().update(t.initialScope);const n=new e(t);!function(e){Rf().setClient(e)}(n),n.init()}const Yf="production";function Jf(e,t=100,n=1/0){try{return Qf("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Xf(e,t=3,n=102400){const r=Jf(e,t);return o=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>n?Xf(e,t-1,n):r;var o}function Qf(e,t,n=1/0,r=1/0,o=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[i,a]=o;if(null==t||["number","boolean","string"].includes(typeof t)&&!Number.isNaN(t))return t;const s=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(Cp(t))return"[VueViewModel]";if(Ep(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${qf(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const r=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}var n}(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;const l="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===l)return s.replace("object ","");if(i(t))return"[Circular ~]";const c=t;if(c&&"function"==typeof c.toJSON)try{return Qf("",c.toJSON(),l-1,r,o)}catch(e){}const u=Array.isArray(t)?[]:{};let d=0;const p=zp(t);for(const e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(d>=r){u[e]="[MaxProperties ~]";break}const t=p[e];u[e]=Qf(e,t,l-1,r,o),d++}return a(t),u}var Zf;function eh(e){return new nh((t=>{t(e)}))}function th(e){return new nh(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(Zf||(Zf={}));class nh{constructor(e){nh.prototype.__init.call(this),nh.prototype.__init2.call(this),nh.prototype.__init3.call(this),nh.prototype.__init4.call(this),this._state=Zf.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new nh(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new nh(((t,n)=>{let r,o;return this.then((t=>{o=!1,r=t,e&&e()}),(t=>{o=!0,r=t,e&&e()})).then((()=>{o?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(Zf.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Zf.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===Zf.PENDING&&(Tp(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===Zf.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===Zf.RESOLVED&&e[1](this._value),this._state===Zf.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function rh(e,t,n,r=0){return new nh(((o,i)=>{const a=e[r];if(null===t||"function"!=typeof a)o(t);else{const s=a({...t},n);Zp&&a.id&&null===s&&hp.log(`Event processor "${a.id}" dropped event`),Tp(s)?s.then((t=>rh(e,t,n,r+1).then(o))).then(null,i):rh(e,s,n,r+1).then(o).then(null,i)}}))}const oh="sentry.source",ih="sentry.sample_rate",ah="sentry.op",sh="sentry.origin",lh="sentry.idle_span_finish_reason",ch="sentry.measurement_unit",uh="sentry.measurement_value",dh="sentry.exclusive_time",ph="baggage",fh="sentry-",hh=/^sentry-/,mh=8192;function gh(e){const t=function(e){if(!e||!wp(e)&&!Array.isArray(e))return;if(Array.isArray(e))return e.reduce(((e,t)=>{const n=vh(t);for(const t of Object.keys(n))e[t]=n[t];return e}),{});return vh(e)}(e);if(!t)return;const n=Object.entries(t).reduce(((e,[t,n])=>{if(t.match(hh)){e[t.slice(fh.length)]=n}return e}),{});return Object.keys(n).length>0?n:void 0}function yh(e){if(!e)return;return function(e){if(0===Object.keys(e).length)return;return Object.entries(e).reduce(((e,[t,n],r)=>{const o=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,i=0===r?o:`${e},${o}`;return i.length>mh?(sp&&hp.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):i}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`${fh}${t}`]=n),e)),{}))}function vh(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(e[t]=n,e)),{})}const bh=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function wh(e,t){const n=function(e){if(!e)return;const t=e.match(bh);if(!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}(e),r=gh(t),{traceId:o,parentSpanId:i,parentSampled:a}=n||{};return n?{traceId:o||Hp(),parentSpanId:i||Hp().substring(16),spanId:Hp().substring(16),sampled:a,dsc:r||{}}:{traceId:o||Hp(),spanId:Hp().substring(16)}}function Sh(e=Hp(),t=Hp().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}const _h="_sentryMetrics";function Eh(e){const t=e[_h];if(!t)return;const n={};for(const[,[e,r]]of t)n[e]||(n[e]=[]),n[e].push($p(r));return n}const kh=0,Th=1,xh=2;function Ch(e,t){e.setAttribute("http.response.status_code",t);const n=function(e){if(e<400&&e>=100)return{code:Th};if(e>=400&&e<500)switch(e){case 401:return{code:xh,message:"unauthenticated"};case 403:return{code:xh,message:"permission_denied"};case 404:return{code:xh,message:"not_found"};case 409:return{code:xh,message:"already_exists"};case 413:return{code:xh,message:"failed_precondition"};case 429:return{code:xh,message:"resource_exhausted"};case 499:return{code:xh,message:"cancelled"};default:return{code:xh,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:xh,message:"unimplemented"};case 503:return{code:xh,message:"unavailable"};case 504:return{code:xh,message:"deadline_exceeded"};default:return{code:xh,message:"internal_error"}}return{code:xh,message:"unknown_error"}}(t);"unknown_error"!==n.message&&e.setStatus(n)}const Ih=1;function Rh(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:i,status:a,origin:s}=Nh(e);return $p({parent_span_id:i,span_id:t,trace_id:n,data:r,op:o,status:a,origin:s})}function Oh(e){const{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:r}=Nh(e);return $p({parent_span_id:r,span_id:t,trace_id:n})}function Ph(e){const{traceId:t,spanId:n}=e.spanContext();return Sh(t,n,Mh(e))}function Ah(e){return"number"==typeof e?Lh(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Lh(e.getTime()):ff()}function Lh(e){return e>9999999999?e/1e3:e}function Nh(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:r,startTime:o,name:i,endTime:a,parentSpanId:s,status:l}=e;return $p({span_id:t,trace_id:n,data:r,description:i,parent_span_id:s,start_timestamp:Ah(o),timestamp:Ah(a)||void 0,status:Dh(l),op:r[ah],origin:r[sh],_metrics_summary:Eh(e)})}return{span_id:t,trace_id:n}}catch(e){return{}}}function Mh(e){const{traceFlags:t}=e.spanContext();return t===Ih}function Dh(e){if(e&&e.code!==kh)return e.code===Th?"ok":e.message||"unknown_error"}const Fh="_sentryChildSpans",jh="_sentryRootSpan";function Uh(e,t){const n=e[jh]||e;jp(t,jh,n),e[Fh]?e[Fh].add(t):jp(e,Fh,new Set([t]))}function Bh(e){const t=new Set;return function e(n){if(!t.has(n)&&Mh(n)){t.add(n);const r=n[Fh]?Array.from(n[Fh]):[];for(const t of r)e(t)}}(e),Array.from(t)}function zh(e){return e[jh]||e}function qh(){const e=If(lf());return e.getActiveSpan?e.getActiveSpan():wf(Rf())}const Wh="_frozenDsc";function $h(e,t){jp(e,Wh,t)}function Vh(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o=$p({environment:n.environment||Yf,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",o),o}function Hh(e){const t=Af();if(!t)return{};const n=Vh(Nh(e).trace_id||"",t),r=zh(e);if(!r)return n;const o=r[Wh];if(o)return o;const i=Nh(r),a=i.data||{},s=a[ih];null!=s&&(n.sample_rate=`${s}`);const l=a[oh];return l&&"url"!==l&&(n.transaction=i.description),n.sampled=String(Mh(r)),t.emit("createDsc",n),n}function Gh(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;!function(e,t){const{extra:n,tags:r,user:o,contexts:i,level:a,transactionName:s}=t,l=$p(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const c=$p(r);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});const u=$p(o);u&&Object.keys(u).length&&(e.user={...u,...e.user});const d=$p(i);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts});a&&(e.level=a);s&&"transaction"!==e.type&&(e.transaction=s)}(e,t),r&&function(e,t){e.contexts={trace:Oh(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Hh(t),...e.sdkProcessingMetadata};const n=zh(t),r=Nh(n).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}(e,r),function(e,t){e.fingerprint=e.fingerprint?Qp(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,i)}function Kh(e,t){const{extra:n,tags:r,user:o,contexts:i,level:a,sdkProcessingMetadata:s,breadcrumbs:l,fingerprint:c,eventProcessors:u,attachments:d,propagationContext:p,transactionName:f,span:h}=t;Yh(e,"extra",n),Yh(e,"tags",r),Yh(e,"user",o),Yh(e,"contexts",i),Yh(e,"sdkProcessingMetadata",s),a&&(e.level=a),f&&(e.transactionName=f),h&&(e.span=h),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function Yh(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function Jh(e,t,n,r,o,i){const{normalizeDepth:a=3,normalizeMaxBreadth:s=1e3}=e,l={...t,event_id:t.event_id||n.event_id||Hp(),timestamp:t.timestamp||pf()},c=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:o,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:Yf);void 0===e.release&&void 0!==r&&(e.release=r);void 0===e.dist&&void 0!==o&&(e.dist=o);e.message&&(e.message=Lp(e.message,i));const a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=Lp(a.value,i));const s=e.request;s&&s.url&&(s.url=Lp(s.url,i))}(l,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(l,c),void 0===t.type&&function(e,t){const n=cp._sentryDebugIds;if(!n)return;let r;const o=Xh.get(t);o?r=o:(r=new Map,Xh.set(t,r));const i=Object.keys(n).reduce(((e,o)=>{let i;const a=r.get(o);a?i=a:(i=t(o),r.set(o,i));for(let t=i.length-1;t>=0;t--){const r=i[t];if(r.filename){e[r.filename]=n[o];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=i[e.filename])}))}))}catch(e){}}(l,e.stackParser);const u=function(e,t){if(!t)return e;const n=e?e.clone():new _f;return n.update(t),n}(r,n.captureContext);n.mechanism&&Jp(l,n.mechanism);const d=o?o.getEventProcessors():[],p=up("globalScope",(()=>new _f)).getScopeData();if(i){Kh(p,i.getScopeData())}if(u){Kh(p,u.getScopeData())}const f=[...n.attachments||[],...p.attachments];f.length&&(n.attachments=f),Gh(l,p);return rh([...d,...p.eventProcessors],l,n).then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof a&&a>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:Jf(e.data,t,n)}})))},...e.user&&{user:Jf(e.user,t,n)},...e.contexts&&{contexts:Jf(e.contexts,t,n)},...e.extra&&{extra:Jf(e.extra,t,n)}};e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Jf(e.contexts.trace.data,t,n)));e.spans&&(r.spans=e.spans.map((e=>({...e,...e.data&&{data:Jf(e.data,t,n)}}))));return r}(e,a,s):e)))}const Xh=new WeakMap;function Qh(e){if(e)return function(e){return e instanceof _f||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>Zh.includes(e)))}(e)?{captureContext:e}:e}const Zh=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function em(e,t){return Rf().captureException(e,Qh(t))}function tm(e,t){return Rf().captureEvent(e,t)}function nm(e){const t=Af(),n=Of(),r=Rf(),{release:o,environment:i=Yf}=t&&t.getOptions()||{},{userAgent:a}=cp.navigator||{},s=gf({release:o,environment:i,user:r.getUser()||n.getUser(),...a&&{userAgent:a},...e}),l=n.getSession();return l&&"ok"===l.status&&yf(l,{status:"exited"}),rm(),n.setSession(s),r.setSession(s),s}function rm(){const e=Of(),t=Rf(),n=t.getSession()||e.getSession();n&&function(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),yf(e,n)}(n),om(),e.setSession(),t.setSession()}function om(){const e=Of(),t=Rf(),n=Af(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function im(e=!1){e?rm():om()}const am=cp;function sm(){if(!("fetch"in am))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function lm(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}const cm={},um={};function dm(e,t){cm[e]=cm[e]||[],cm[e].push(t)}function pm(e,t){um[e]||(t(),um[e]=!0)}function fm(e,t){const n=e&&cm[e];if(n)for(const r of n)try{r(t)}catch(t){sp&&hp.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${qf(r)}\nError:`,t)}}const hm=cp;const mm=cp;let gm;function ym(e){const t="history";dm(t,e),pm(t,vm)}function vm(){if(!function(){const e=hm.chrome,t=e&&e.app&&e.app.runtime,n="history"in hm&&!!hm.history.pushState&&!!hm.history.replaceState;return!t&&n}())return;const e=mm.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=gm,t=String(n);gm=t;fm("history",{from:e,to:t})}return e.apply(this,t)}}mm.onpopstate=function(...t){const n=mm.location.href,r=gm;gm=n;if(fm("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},Fp(mm.history,"pushState",t),Fp(mm.history,"replaceState",t)}const bm=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function wm(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:a,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${a}`}function Sm(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function _m(e){const t="string"==typeof e?function(e){const t=bm.exec(e);if(!t)return void fp((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[n,r,o="",i,a="",s]=t.slice(1);let l="",c=s;const u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){const e=c.match(/^\d+/);e&&(c=e[0])}return Sm({host:i,pass:o,path:l,projectId:c,port:a,protocol:n,publicKey:r})}(e):Sm(e);if(t&&function(e){if(!sp)return!0;const{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(hp.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(hp.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(hp.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(hp.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}function Em(e,t=[]){return[e,t]}function km(e,t){const[n,r]=e;return[n,[...r,t]]}function Tm(e,t){const n=e[1];for(const e of n){if(t(e,e[0].type))return!0}return!1}function xm(e){return cp.__SENTRY__&&cp.__SENTRY__.encodePolyfill?cp.__SENTRY__.encodePolyfill(e):(new TextEncoder).encode(e)}function Cm(e){const[t,n]=e;let r=JSON.stringify(t);function o(e){"string"==typeof r?r="string"==typeof e?r+e:[xm(r),e]:r.push("string"==typeof e?xm(e):e)}for(const e of n){const[t,n]=e;if(o(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(Jf(n))}o(e)}}return"string"==typeof r?r:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(r)}function Im(e){return[{type:"span"},e]}function Rm(e){const t="string"==typeof e.data?xm(e.data):e.data;return[$p({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const Om={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Pm(e){return Om[e]}function Am(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Lm(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:wm(r)},...o&&{trace:$p({...o})}}}class Nm extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}const Mm="7";function Dm(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Fm(e,t){return n={sentry_key:e.publicKey,sentry_version:Mm,...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(n).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`)).join("&");var n}function jm(e,t,n){return t||`${function(e){return`${Dm(e)}${e.projectId}/envelope/`}(e)}?${Fm(e,n)}`}function Um(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t)||t<0||t>1))return t;Zp&&hp.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`)}const Bm="Not capturing exception because it's already been captured.";class zm{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=_m(e.dsn):Zp&&hp.warn("No DSN provided, client will not send events."),this._dsn){const t=jm(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){const r=Hp();if(Xp(e))return Zp&&hp.log(Bm),r;const o={event_id:r,...t};return this._process(this.eventFromException(e,o).then((e=>this._captureEvent(e,o,n)))),o.event_id}captureMessage(e,t,n,r){const o={event_id:Hp(),...n},i=Sp(e)?e:String(e),a=_p(e)?this.eventFromMessage(i,t,o):this.eventFromException(e,o);return this._process(a.then((e=>this._captureEvent(e,o,r)))),o.event_id}captureEvent(e,t,n){const r=Hp();if(t&&t.originalException&&Xp(t.originalException))return Zp&&hp.log(Bm),r;const o={event_id:r,...t},i=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,o,i||n)),o.event_id}captureSession(e){"string"!=typeof e.release?Zp&&hp.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),yf(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))):eh(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.emit("close"),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];rf(this,e,this._integrations),t||nf(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){const o=Am(n),i=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const a=Lm(e,o,r,t);return delete e.sdkProcessingMetadata,Em(a,[[{type:i},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=km(n,Rm(e));const r=this.sendEnvelope(n);r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=function(e,t,n,r){const o=Am(n);return Em({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:wm(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const n=`${e}:${t}`;Zp&&hp.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,(e=>(Zp&&hp.error("Error while sending event:",e),e))):(Zp&&hp.error("Transport disabled"),eh({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach((t=>{t&&rf(e,t,n)})),n}(this,e),nf(this,e)}_updateSessionFromEvent(e,t){let n=!1,r=!1;const o=t.exception&&t.exception.values;if(o){r=!0;for(const e of o){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const i="ok"===e.status;(i&&0===e.errors||i&&n)&&(yf(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new nh((t=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r=Of()){const o=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),Jh(o,e,t,n,this,r).then((e=>{if(null===e)return e;const t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){const{traceId:n,spanId:r,parentSpanId:o,dsc:i}=t;e.contexts={trace:$p({trace_id:n,span_id:r,parent_span_id:o}),...e.contexts};const a=i||Vh(n,this);e.sdkProcessingMetadata={dynamicSamplingContext:a,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if(Zp){const t=e;"log"===t.logLevel?hp.log(t.message):hp.warn(t)}}))}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:o}=r,i=Wm(e),a=qm(e),s=e.type||"error",l=`before send for type \`${s}\``,c=void 0===o?void 0:Um(o);if(a&&"number"==typeof c&&Math.random()>c)return this.recordDroppedEvent("sample_rate","error",e),th(new Nm(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const u="replay_event"===s?"replay":s,d=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,d).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,e),new Nm("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const o=function(e,t,n){const{beforeSend:r,beforeSendTransaction:o,beforeSendSpan:i}=e;if(qm(t)&&r)return r(t,n);if(Wm(t)){if(t.spans&&i){const e=[];for(const n of t.spans){const t=i(n);t&&e.push(t)}t.spans=e}if(o)return o(t,n)}return t}(r,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Tp(e))return e.then((e=>{if(!Ep(e)&&null!==e)throw new Nm(n);return e}),(e=>{throw new Nm(`${t} rejected with ${e}`)}));if(!Ep(e)&&null!==e)throw new Nm(n);return e}(o,l)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",u,e),new Nm(`${l} returned \`null\`, will not send event.`,"log");const o=n&&n.getSession();!i&&o&&this._updateSessionFromEvent(o,r);const a=r.transaction_info;if(i&&a&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...a,source:e}}return this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof Nm)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Nm(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}}function qm(e){return void 0===e.type}function Wm(e){return"transaction"===e.type}const $m="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Vm(e,t){const n=Km(e,t),r={type:t&&t.name,value:Jm(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Hm(e,t,n,r){const o=Af(),i=o&&o.getOptions().normalizeDepth,a=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}return}(t),s={__serialized__:Xf(t,i)};if(a)return{exception:{values:[Vm(e,a)]},extra:s};const l={exception:{values:[{type:kp(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Zm(t,{isUnhandledRejection:r})}]},extra:s};if(n){const t=Km(e,n);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}function Gm(e,t){return{exception:{values:[Vm(e,t)]}}}function Km(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e&&Ym.test(e.message))return 1;return 0}(t),o=function(e){if("number"==typeof e.framesToPop)return e.framesToPop;return 0}(t);try{return e(n,r,o)}catch(e){}return[]}const Ym=/Minified React error #\d+;/i;function Jm(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function Xm(e,t,n,r,o){let i;if(vp(t)&&t.error){return Gm(e,t.error)}if(bp(t)||yp(t,"DOMException")){const o=t;if("stack"in t)i=Gm(e,t);else{const t=o.name||(bp(o)?"DOMError":"DOMException"),a=o.message?`${t}: ${o.message}`:t;i=Qm(e,a,n,r),Yp(i,a)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}if(gp(t))return Gm(e,t);if(Ep(t)||kp(t)){return i=Hm(e,t,n,o),Jp(i,{synthetic:!0}),i}return i=Qm(e,t,n,r),Yp(i,`${t}`,void 0),Jp(i,{synthetic:!0}),i}function Qm(e,t,n,r){const o={};if(r&&n){const r=Km(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(Sp(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return o.logentry={message:e,params:n},o}return o.message=t,o}function Zm(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(zp(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Lp(n[0],t);for(let e=n.length;e>0;e--){const r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:Lp(r,t)}return""}(e),r=t?"promise rejection":"exception";if(vp(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if(kp(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}const eg=cp;let tg=0;function ng(){return tg>0}function rg(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if(Bp(e))return e}catch(t){return e}const r=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const o=r.map((e=>rg(e,t)));return e.apply(this,o)}catch(e){throw tg++,setTimeout((()=>{tg--})),Pf((n=>{n.addEventProcessor((e=>(t.mechanism&&(Yp(e,void 0,void 0),Jp(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),em(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}Up(r,e),jp(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}class og extends zm{constructor(e){const t={parentSpanIsAlwaysRootSpan:!0,...e};!function(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${r}:@sentry/${e}`,version:lp}))),version:lp}),e._metadata=o}(t,"browser",["browser"],eg.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&eg.document&&eg.document.addEventListener("visibilitychange",(()=>{"hidden"===eg.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){const o=Xm(e,t,n&&n.syntheticException||void 0,r);return Jp(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),eh(o)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,o){const i=Qm(e,t,r&&r.syntheticException||void 0,o);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),eh(i)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void($m&&hp.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:wm(r)}},i=function(e){return[{type:"user_report"},e]}(e);return Em(o,[i])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void($m&&hp.log("No outcomes to send"));if(!this._dsn)return void($m&&hp.log("No dsn provided, will not send outcomes"));$m&&hp.log("Sending outcomes:",e);const t=(n=e,Em((r=this._options.tunnel&&wm(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:o||pf(),discarded_events:n}]]));var n,r,o;this.sendEnvelope(t)}}const ig=1e3;let ag,sg,lg;function cg(e){dm("dom",e),pm("dom",ug)}function ug(){if(!mm.document)return;const e=fm.bind(null,"dom"),t=dg(e,!0);mm.document.addEventListener("click",t,!1),mm.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=mm[t]&&mm[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Fp(n,"addEventListener",(function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this,i=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},a=i[n]=i[n]||{refCount:0};if(!a.handler){const r=dg(e);a.handler=r,t.call(this,n,r,o)}a.refCount++}catch(e){}return t.call(this,n,r,o)}})),Fp(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this,o=n.__sentry_instrumentation_handlers__||{},i=o[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete o[t]),0===Object.keys(o).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}function dg(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch(e){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;jp(n,"_sentryCaptured",!0),r&&!r._sentryId&&jp(r,"_sentryId",Hp());const o="keypress"===n.type?"input":n.type;if(!function(e){if(e.type!==sg)return!1;try{if(!e.target||e.target._sentryId!==lg)return!1}catch(e){}return!0}(n)){e({event:n,name:o,global:t}),sg=n.type,lg=r?r._sentryId:void 0}clearTimeout(ag),ag=mm.setTimeout((()=>{lg=void 0,sg=void 0}),ig)}}const pg="__sentry_xhr_v3__";function fg(e){dm("xhr",e),pm("xhr",hg)}function hg(){if(!mm.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;Fp(e,"open",(function(e){return function(...t){const n=1e3*ff(),r=wp(t[0])?t[0].toUpperCase():void 0,o=function(e){if(wp(e))return e;try{return e.toString()}catch(e){}return}(t[1]);if(!r||!o)return e.apply(this,t);this[pg]={method:r,url:o,request_headers:{}},"POST"===r&&o.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const i=()=>{const e=this[pg];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}fm("xhr",{endTimestamp:1e3*ff(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?Fp(this,"onreadystatechange",(function(e){return function(...t){return i(),e.apply(this,t)}})):this.addEventListener("readystatechange",i),Fp(this,"setRequestHeader",(function(e){return function(...t){const[n,r]=t,o=this[pg];return o&&wp(n)&&wp(r)&&(o.request_headers[n.toLowerCase()]=r),e.apply(this,t)}})),e.apply(this,t)}})),Fp(e,"send",(function(e){return function(...t){const n=this[pg];if(!n)return e.apply(this,t);void 0!==t[0]&&(n.body=t[0]);return fm("xhr",{startTimestamp:1e3*ff(),xhr:this}),e.apply(this,t)}}))}const mg=100;function gg(e,t){const n=Af(),r=Of();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=mg}=n.getOptions();if(i<=0)return;const a={timestamp:pf(),...e},s=o?fp((()=>o(a,t))):a;null!==s&&(n.emit&&n.emit("beforeAddBreadcrumb",s,t),r.addBreadcrumb(s,i))}function yg(){"console"in cp&&dp.forEach((function(e){e in cp.console&&Fp(cp.console,e,(function(t){return pp[e]=t,function(...t){fm("console",{args:t,level:e});const n=pp[e];n&&n.apply(cp.console,t)}}))}))}function vg(e){const t="fetch";dm(t,e),pm(t,bg)}function bg(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!sm())return!1;if(lm(am.fetch))return!0;let e=!1;const t=am.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=lm(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){sp&&hp.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e})()&&Fp(cp,"fetch",(function(e){return function(...t){const{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:Sg(t),method:wg(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Sg(t),method:wg(t,"method")?String(t.method).toUpperCase():"GET"}}(t),o={args:t,fetchData:{method:n,url:r},startTimestamp:1e3*ff()};return fm("fetch",{...o}),e.apply(cp,t).then((e=>(fm("fetch",{...o,endTimestamp:1e3*ff(),response:e}),e)),(e=>{throw fm("fetch",{...o,endTimestamp:1e3*ff(),error:e}),e}))}}))}function wg(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Sg(e){return"string"==typeof e?e:e?wg(e,"url")?e.url:e.toString?e.toString():"":""}const _g=["fatal","error","warning","log","info","debug"];function Eg(e){return"warn"===e?"warning":_g.includes(e)?e:"log"}function kg(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const Tg=1024,xg=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){t.console&&function(e){const t="console";dm(t,e),pm(t,yg)}(function(e){return function(t){if(Af()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:Eg(t.level),message:Np(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${Np(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}gg(n,{input:t.args,level:t.level})}}(e)),t.dom&&cg(function(e,t){return function(n){if(Af()!==e)return;let r,o,i="object"==typeof t?t.serializeAttribute:void 0,a="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;a&&a>Tg&&($m&&hp.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=Tg),"string"==typeof i&&(i=[i]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=Op(t,{keyAttrs:i,maxStringLength:a}),o=Ap(t)}catch(e){r="<unknown>"}if(0===r.length)return;const s={category:`ui.${n.name}`,message:r};o&&(s.data={"ui.component_name":o}),gg(s,{event:n.event,name:n.name,global:n.global})}}(e,t.dom)),t.xhr&&fg(function(e){return function(t){if(Af()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,o=t.xhr[pg];if(!n||!r||!o)return;const{method:i,url:a,status_code:s,body:l}=o;gg({category:"xhr",data:{method:i,url:a,status_code:s},type:"http"},{xhr:t.xhr,input:l,startTimestamp:n,endTimestamp:r})}}(e)),t.fetch&&vg(function(e){return function(t){if(Af()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){gg({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r})}else{const e=t.response;gg({category:"fetch",data:{...t.fetchData,status_code:e&&e.status},type:"http"},{input:t.args,response:e,startTimestamp:n,endTimestamp:r})}}}(e)),t.history&&ym(function(e){return function(t){if(Af()!==e)return;let n=t.from,r=t.to;const o=kg(eg.location.href);let i=n?kg(n):void 0;const a=kg(r);i&&i.path||(i=o),o.protocol===a.protocol&&o.host===a.host&&(r=a.relative),o.protocol===i.protocol&&o.host===i.host&&(n=i.relative),gg({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){Af()===e&&gg({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Kp(t)},{event:t})}}(e))}}};const Cg=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Ig=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&Fp(eg,"setTimeout",Rg),t.setInterval&&Fp(eg,"setInterval",Rg),t.requestAnimationFrame&&Fp(eg,"requestAnimationFrame",Og),t.XMLHttpRequest&&"XMLHttpRequest"in eg&&Fp(XMLHttpRequest.prototype,"send",Pg);const e=t.eventTarget;if(e){(Array.isArray(e)?e:Cg).forEach(Ag)}}}};function Rg(e){return function(...t){const n=t[0];return t[0]=rg(n,{mechanism:{data:{function:qf(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Og(e){return function(t){return e.apply(this,[rg(t,{mechanism:{data:{function:"requestAnimationFrame",handler:qf(e)},handled:!1,type:"instrument"}})])}}function Pg(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&Fp(n,e,(function(t){const n={mechanism:{data:{function:e,handler:qf(t)},handled:!1,type:"instrument"}},r=Bp(t);return r&&(n.mechanism.data.handler=qf(r)),rg(t,n)}))})),e.apply(this,t)}}function Ag(e){const t=eg,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Fp(n,"addEventListener",(function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=rg(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:qf(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,rg(r,{mechanism:{data:{function:"addEventListener",handler:qf(r),target:e},handled:!1,type:"instrument"}}),o])}})),Fp(n,"removeEventListener",(function(e){return function(t,n,r){const o=n;try{const n=o&&o.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(e){}return e.call(this,t,o,r)}})))}let Lg=null;function Ng(e){const t="error";dm(t,e),pm(t,Mg)}function Mg(){Lg=cp.onerror,cp.onerror=function(e,t,n,r,o){return fm("error",{column:r,error:o,line:n,msg:e,url:t}),!(!Lg||Lg.__SENTRY_LOADER__)&&Lg.apply(this,arguments)},cp.onerror.__SENTRY_INSTRUMENTED__=!0}let Dg=null;function Fg(e){const t="unhandledrejection";dm(t,e),pm(t,jg)}function jg(){Dg=cp.onunhandledrejection,cp.onunhandledrejection=function(e){return fm("unhandledrejection",e),!(Dg&&!Dg.__SENTRY_LOADER__)||Dg.apply(this,arguments)},cp.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Ug=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){Ng((t=>{const{stackParser:n,attachStacktrace:r}=zg();if(Af()!==e||ng())return;const{msg:o,url:i,line:a,column:s,error:l}=t,c=function(e,t,n,r){const o=e.exception=e.exception||{},i=o.values=o.values||[],a=i[0]=i[0]||{},s=a.stacktrace=a.stacktrace||{},l=s.frames=s.frames||[],c=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=wp(t)&&t.length>0?t:function(){try{return Ip.document.location.href}catch(e){return""}}();0===l.length&&l.push({colno:c,filename:d,function:Ff,in_app:!0,lineno:u});return e}(Xm(n,l||o,void 0,r,!1),i,a,s);c.level="error",tm(c,{originalException:l,mechanism:{handled:!1,type:"onerror"}})}))}(e),Bg("onerror")),t.onunhandledrejection&&(!function(e){Fg((t=>{const{stackParser:n,attachStacktrace:r}=zg();if(Af()!==e||ng())return;const o=function(e){if(_p(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}(t),i=_p(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:Xm(n,o,void 0,r,!0);i.level="error",tm(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(e),Bg("onunhandledrejection"))}}};function Bg(e){$m&&hp.log(`Global Handler attached: ${e}`)}function zg(){const e=Af();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const qg=()=>({name:"HttpContext",preprocessEvent(e){if(!eg.navigator&&!eg.location&&!eg.document)return;const t=e.request&&e.request.url||eg.location&&eg.location.href,{referrer:n}=eg.document||{},{userAgent:r}=eg.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...e.request,...t&&{url:t},headers:o};e.request=i}});function Wg(e,t,n=250,r,o,i,a){if(!(i.exception&&i.exception.values&&a&&xp(a.originalException,Error)))return;const s=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;var l,c;s&&(i.exception.values=(l=$g(e,t,o,a.originalException,r,i.exception.values,s,0),c=n,l.map((e=>(e.value&&(e.value=Lp(e.value,c)),e)))))}function $g(e,t,n,r,o,i,a,s){if(i.length>=n+1)return i;let l=[...i];if(xp(r[o],Error)){Vg(a,s);const i=e(t,r[o]),c=l.length;Hg(i,o,c,s),l=$g(e,t,n,r[o],o,[i,...l],i,c)}return Array.isArray(r.errors)&&r.errors.forEach(((r,i)=>{if(xp(r,Error)){Vg(a,s);const c=e(t,r),u=l.length;Hg(c,`errors[${i}]`,u,s),l=$g(e,t,n,r,o,[c,...l],c,u)}})),l}function Vg(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function Hg(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}const Gg=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,o){const i=o.getOptions();Wg(Vm,i.stackParser,i.maxValueLength,n,t,e,r)}}};function Kg(e,t,n,r){const o={filename:e,function:"<anonymous>"===t?Ff:t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}const Yg=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Jg=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Xg=/\((\S*)(?::(\d+))(?::(\d+))\)/,Qg=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Zg=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ey=Bf(...[[30,e=>{const t=Yg.exec(e);if(t){const[,e,n,r]=t;return Kg(e,Ff,+n,+r)}const n=Jg.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){const e=Xg.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}const[e,t]=ty(n[1]||Ff,n[2]);return Kg(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],[50,e=>{const t=Qg.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=Zg.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||Ff;return[n,e]=ty(n,e),Kg(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]]),ty=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:Ff,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},ny="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,ry={};function oy(e){const t=ry[e];if(t)return t;let n=mm[e];if(lm(n))return ry[e]=n.bind(mm);const r=mm.document;if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(t)}catch(t){ny&&hp.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?ry[e]=n.bind(mm):n}function iy(e){ry[e]=void 0}function ay(...e){return oy("setTimeout")(...e)}function sy(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return th(new Nm("Not adding Promise because buffer limit was reached."));const o=r();return-1===t.indexOf(o)&&t.push(o),o.then((()=>n(o))).then(null,(()=>n(o).then(null,(()=>{})))),o},drain:function(e){return new nh(((n,r)=>{let o=t.length;if(!o)return n(!0);const i=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{eh(e).then((()=>{--o||(clearTimeout(i),n(!0))}),r)}))}))}}}const ly=6e4;function cy(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}function uy(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},i=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(i)for(const e of i.trim().split(",")){const[t,n,,,i]=e.split(":",5),a=parseInt(t,10),s=1e3*(isNaN(a)?60:a);if(n)for(const e of n.split(";"))"metric_bucket"===e&&i&&!i.split(";").includes("custom")||(o[e]=r+s);else o.all=r+s}else a?o.all=r+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?ly:r-t}(a,r):429===t&&(o.all=r+6e4);return o}const dy=64;function py(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function fy(e,t=oy("fetch")){let n=0,r=0;return function(e,t,n=sy(e.bufferSize||dy)){let r={};return{send:function(o){const i=[];if(Tm(o,((t,n)=>{const o=Pm(n);if(cy(r,o)){const r=py(t,n);e.recordDroppedEvent("ratelimit_backoff",o,r)}else i.push(t)})),0===i.length)return eh({});const a=Em(o[0],i),s=t=>{Tm(a,((n,r)=>{const o=py(n,r);e.recordDroppedEvent(t,Pm(r),o)}))};return n.add((()=>t({body:Cm(a)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&Zp&&hp.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=uy(r,e),e)),(e=>{throw s("network_error"),e})))).then((e=>e),(e=>{if(e instanceof Nm)return Zp&&hp.error("Skipped sending event because buffer is full."),s("queue_overflow"),eh({});throw e}))},flush:e=>n.drain(e)}}(e,(function(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return iy("fetch"),th("No fetch implementation available");try{return t(e.url,a).then((e=>(n-=i,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return iy("fetch"),n-=i,r--,th(e)}}))}function hy(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=e||function(){const e=Af();return e&&e.getOptions()}();return!!t&&(t.enableTracing||"tracesSampleRate"in t||"tracesSampler"in t)}class my{constructor(e={}){this._traceId=e.traceId||Hp(),this._spanId=e.spanId||Hp().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}}function gy(e){if(!e||0===e.length)return;const t={};return e.forEach((e=>{const n=e.attributes||{},r=n[ch],o=n[uh];"string"==typeof r&&"number"==typeof o&&(t[e.name]={value:o,unit:r})})),t}const yy="_sentryScope",vy="_sentryIsolationScope";function by(e){return{scope:e[yy],isolationScope:e[vy]}}class wy{constructor(e={}){this._traceId=e.traceId||Hp(),this._spanId=e.spanId||Hp().substring(16),this._startTime=e.startTimestamp||ff(),this._attributes={},this.setAttributes({[sh]:"manual",[ah]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?Ih:0}}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach((t=>this.setAttribute(t,e[t])))}updateStartTime(e){this._startTime=Ah(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this}end(e){this._endTime||(this._endTime=Ah(e),function(e){if(!Zp)return;const{description:t="< unknown name >",op:n="< unknown op >"}=Nh(e),{spanId:r}=e.spanContext(),o=`[Tracing] Finishing "${n}" ${zh(e)===e?"root ":""}span "${t}" with ID ${r}`;hp.log(o)}(this),this._onSpanEnded())}getSpanJSON(){return $p({data:this._attributes,description:this._name,op:this._attributes[ah],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Dh(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[sh],_metrics_summary:Eh(this),profile_id:this._attributes["sentry.profile_id"],exclusive_time:this._attributes[dh],measurements:gy(this._events),is_segment:this._isStandaloneSpan&&zh(this)===this||void 0,segment_id:this._isStandaloneSpan?zh(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){Zp&&hp.log("[Tracing] Adding an event to span:",e);const r=Sy(t)?t:n||ff(),o=Sy(t)?{}:t||{},i={name:e,time:Ah(r),attributes:o};return this._events.push(i),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=Af();e&&e.emit("spanEnd",this);if(!(this._isStandaloneSpan||this===zh(this)))return;if(this._isStandaloneSpan)return void function(e){const t=Af();if(!t)return;const n=e[1];if(!n||0===n.length)return void t.recordDroppedEvent("before_send","span");const r=t.getTransport();r&&r.send(e).then(null,(e=>{Zp&&hp.error("Error while sending span:",e)}))}(function(e,t){const n=Hh(e[0]),r=t&&t.getDsn(),o=t&&t.getOptions().tunnel,i={sent_at:(new Date).toISOString(),...function(e){return!!e.trace_id&&!!e.public_key}(n)&&{trace:n},...!!o&&r&&{dsn:wm(r)}},a=t&&t.getOptions().beforeSendSpan,s=a?e=>a(Nh(e)):e=>Nh(e),l=[];for(const t of e){const e=s(t);e&&l.push(Im(e))}return Em(i,l)}([this],e));const t=this._convertSpanToTransaction();if(t){(by(this).scope||Rf()).captureEvent(t)}}_convertSpanToTransaction(){if(!_y(Nh(this)))return;this._name||(Zp&&hp.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:e,isolationScope:t}=by(this),n=(e||Rf()).getClient()||Af();if(!0!==this._sampled)return Zp&&hp.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(n&&n.recordDroppedEvent("sample_rate","transaction"));const r=Bh(this).filter((e=>e!==this&&!function(e){return e instanceof wy&&e.isStandaloneSpan()}(e))).map((e=>Nh(e))).filter(_y),o=this._attributes[oh],i={contexts:{trace:Rh(this)},spans:r.length>1e3?r.sort(((e,t)=>e.start_timestamp-t.start_timestamp)).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...$p({dynamicSamplingContext:Hh(this)})},_metrics_summary:Eh(this),...o&&{transaction_info:{source:o}}},a=gy(this._events);return a&&Object.keys(a).length&&(Zp&&hp.log("[Measurements] Adding measurements to transaction event",JSON.stringify(a,void 0,2)),i.measurements=a),i}}function Sy(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function _y(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}const Ey="__SENTRY_SUPPRESS_TRACING__";function ky(e){const t=Iy();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=Cy(e),r=e.scope||Rf(),o=Oy(r);return e.onlyIfParent&&!o?new my:xy({parentSpan:o,spanContext:n,forceTransaction:e.forceTransaction,scope:r})}function Ty(e,t){const n=Iy();return n.withActiveSpan?n.withActiveSpan(e,t):Pf((n=>(bf(n,e||void 0),t(n))))}function xy({parentSpan:e,spanContext:t,forceTransaction:n,scope:r}){if(!hy())return new my;const o=Of();let i;if(e&&!n)i=function(e,t,n){const{spanId:r,traceId:o}=e.spanContext(),i=!t.getScopeData().sdkProcessingMetadata[Ey]&&Mh(e),a=i?new wy({...n,parentSpanId:r,traceId:o,sampled:i}):new my({traceId:o});Uh(e,a);const s=Af();s&&(s.emit("spanStart",a),n.endTimestamp&&s.emit("spanEnd",a));return a}(e,r,t),Uh(e,i);else if(e){const n=Hh(e),{traceId:o,spanId:a}=e.spanContext(),s=Mh(e);i=Ry({traceId:o,parentSpanId:a,...t},r,s),$h(i,n)}else{const{traceId:e,dsc:n,parentSpanId:a,sampled:s}={...o.getPropagationContext(),...r.getPropagationContext()};i=Ry({traceId:e,parentSpanId:a,...t},r,s),n&&$h(i,n)}return function(e){if(!Zp)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=Nh(e),{spanId:o}=e.spanContext(),i=Mh(e),a=zh(e),s=a===e,l=`[Tracing] Starting ${i?"sampled":"unsampled"} ${s?"root ":""}span`,c=[`op: ${n}`,`name: ${t}`,`ID: ${o}`];if(r&&c.push(`parent ID: ${r}`),!s){const{op:e,description:t}=Nh(a);c.push(`root ID: ${a.spanContext().spanId}`),e&&c.push(`root op: ${e}`),t&&c.push(`root description: ${t}`)}hp.log(`${l}\n  ${c.join("\n  ")}`)}(i),function(e,t,n){e&&(jp(e,vy,n),jp(e,yy,t))}(i,r,o),i}function Cy(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const n={...t};return n.startTimestamp=Ah(e.startTime),delete n.startTime,n}return t}function Iy(){return If(lf())}function Ry(e,t,n){const r=Af(),o=r&&r.getOptions()||{},{name:i="",attributes:a}=e,[s,l]=t.getScopeData().sdkProcessingMetadata[Ey]?[!1]:function(e,t){if(!hy(e))return[!1];let n;n="function"==typeof e.tracesSampler?e.tracesSampler(t):void 0!==t.parentSampled?t.parentSampled:void 0!==e.tracesSampleRate?e.tracesSampleRate:1;const r=Um(n);return void 0===r?(Zp&&hp.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):r?Math.random()<r?[!0,r]:(Zp&&hp.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[!1,r]):(Zp&&hp.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,r])}(o,{name:i,parentSampled:n,attributes:a,transactionContext:{name:i,parentSampled:n}}),c=new wy({...e,attributes:{[oh]:"custom",...e.attributes},sampled:s});return void 0!==l&&c.setAttribute(ih,l),r&&r.emit("spanStart",c),c}function Oy(e){const t=wf(e);if(!t)return;const n=Af();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?zh(t):t}const Py=(e,t,n,r)=>{let o,i;return a=>{t.value>=0&&(a||r)&&(i=t.value-(o||0),(i||void 0===o)&&(o=t.value,t.delta=i,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t)))}},Ay=()=>mm.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],Ly=()=>{const e=Ay();return e&&e.activationStart||0},Ny=(e,t)=>{const n=Ay();let r="navigate";n&&(mm.document&&mm.document.prerendering||Ly()>0?r="prerender":mm.document&&mm.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-")));return{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},My=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},Dy=e=>{const t=t=>{("pagehide"===t.type||mm.document&&"hidden"===mm.document.visibilityState)&&e(t)};mm.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},Fy=e=>{let t=!1;return n=>{t||(e(n),t=!0)}};let jy=-1;const Uy=e=>{"hidden"===mm.document.visibilityState&&jy>-1&&(jy="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("visibilitychange",Uy,!0),removeEventListener("prerenderingchange",Uy,!0))},By=()=>(mm.document&&jy<0&&(jy="hidden"!==mm.document.visibilityState||mm.document.prerendering?1/0:0,addEventListener("visibilitychange",Uy,!0),addEventListener("prerenderingchange",Uy,!0)),{get firstHiddenTime(){return jy}}),zy=e=>{mm.document&&mm.document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},qy=[1800,3e3],Wy=[.1,.25],$y=(e,t={})=>{((e,t={})=>{zy((()=>{const n=By(),r=Ny("FCP");let o;const i=My("paint",(e=>{e.forEach((e=>{"first-contentful-paint"===e.name&&(i.disconnect(),e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-Ly(),0),r.entries.push(e),o(!0)))}))}));i&&(o=Py(e,r,qy,t.reportAllChanges))}))})(Fy((()=>{const n=Ny("CLS",0);let r,o=0,i=[];const a=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=i[0],n=i[i.length-1];o&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,i.push(e)):(o=e.value,i=[e])}})),o>n.value&&(n.value=o,n.entries=i,r())},s=My("layout-shift",a);s&&(r=Py(e,n,Wy,t.reportAllChanges),Dy((()=>{a(s.takeRecords()),r(!0)})),setTimeout(r,0))})))},Vy=[100,300],Hy=(e,t={})=>{zy((()=>{const n=By(),r=Ny("FID");let o;const i=e=>{e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),o(!0))},a=e=>{e.forEach(i)},s=My("first-input",a);o=Py(e,r,Vy,t.reportAllChanges),s&&Dy(Fy((()=>{a(s.takeRecords()),s.disconnect()})))}))};let Gy=0,Ky=1/0,Yy=0;const Jy=e=>{e.forEach((e=>{e.interactionId&&(Ky=Math.min(Ky,e.interactionId),Yy=Math.max(Yy,e.interactionId),Gy=Yy?(Yy-Ky)/7+1:0)}))};let Xy;const Qy=()=>{"interactionCount"in performance||Xy||(Xy=My("event",Jy,{type:"event",buffered:!0,durationThreshold:0}))},Zy=[200,500],ev=()=>(Xy?Gy:performance.interactionCount||0)-0,tv=[],nv={},rv=e=>{const t=tv[tv.length-1],n=nv[e.interactionId];if(n||tv.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};nv[t.id]=t,tv.push(t)}tv.sort(((e,t)=>t.latency-e.latency)),tv.splice(10).forEach((e=>{delete nv[e.id]}))}},ov=(e,t={})=>{zy((()=>{Qy();const n=Ny("INP");let r;const o=e=>{e.forEach((e=>{if(e.interactionId&&rv(e),"first-input"===e.entryType){!tv.some((t=>t.entries.some((t=>e.duration===t.duration&&e.startTime===t.startTime))))&&rv(e)}}));const t=(()=>{const e=Math.min(tv.length-1,Math.floor(ev()/50));return tv[e]})();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())},i=My("event",o,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});r=Py(e,n,Zy,t.reportAllChanges),i&&("PerformanceEventTiming"in mm&&"interactionId"in PerformanceEventTiming.prototype&&i.observe({type:"first-input",buffered:!0}),Dy((()=>{o(i.takeRecords()),n.value<0&&ev()>0&&(n.value=0,n.entries=[]),r(!0)})))}))},iv=[2500,4e3],av={},sv=(e,t={})=>{zy((()=>{const n=By(),r=Ny("LCP");let o;const i=e=>{const t=e[e.length-1];t&&t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-Ly(),0),r.entries=[t],o())},a=My("largest-contentful-paint",i);if(a){o=Py(e,r,iv,t.reportAllChanges);const n=Fy((()=>{av[r.id]||(i(a.takeRecords()),a.disconnect(),av[r.id]=!0,o(!0))}));["keydown","click"].forEach((e=>{mm.document&&addEventListener(e,(()=>setTimeout(n,0)),!0)})),Dy(n)}}))},lv=[800,1800],cv=e=>{mm.document&&mm.document.prerendering?zy((()=>cv(e))):mm.document&&"complete"!==mm.document.readyState?addEventListener("load",(()=>cv(e)),!0):setTimeout(e,0)},uv=(e,t={})=>{const n=Ny("TTFB"),r=Py(e,n,lv,t.reportAllChanges);cv((()=>{const e=Ay();if(e){const t=e.responseStart;if(t<=0||t>performance.now())return;n.value=Math.max(t-Ly(),0),n.entries=[e],r(!0)}}))},dv={},pv={};let fv,hv,mv,gv,yv;function vv(e,t=!1){return xv("lcp",e,Ev,mv,t)}function bv(e,t){return Cv(e,t),pv[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);My(e,(t=>{wv(e,{entries:t})}),t)}(e),pv[e]=!0),Iv(e,t)}function wv(e,t){const n=dv[e];if(n&&n.length)for(const r of n)try{r(t)}catch(t){ny&&hp.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${qf(r)}\nError:`,t)}}function Sv(){return $y((e=>{wv("cls",{metric:e}),fv=e}),{reportAllChanges:!0})}function _v(){return Hy((e=>{wv("fid",{metric:e}),hv=e}))}function Ev(){return sv((e=>{wv("lcp",{metric:e}),mv=e}),{reportAllChanges:!0})}function kv(){return uv((e=>{wv("ttfb",{metric:e}),gv=e}))}function Tv(){return ov((e=>{wv("inp",{metric:e}),yv=e}))}function xv(e,t,n,r,o=!1){let i;return Cv(e,t),pv[e]||(i=n(),pv[e]=!0),r&&t({metric:r}),Iv(e,t,o?i:void 0)}function Cv(e,t){dv[e]=dv[e]||[],dv[e].push(t)}function Iv(e,t,n){return()=>{n&&n();const r=dv[e];if(!r)return;const o=r.indexOf(t);-1!==o&&r.splice(o,1)}}function Rv(e){return"number"==typeof e&&isFinite(e)}function Ov(e,t,n,{...r}){const o=Nh(e).start_timestamp;return o&&o>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),Ty(e,(()=>{const e=ky({startTime:t,...r});return e&&e.end(n),e}))}function Pv(){return mm&&mm.addEventListener&&mm.performance}function Av(e){return e/1e3}const Lv=2147483647;let Nv,Mv,Dv=0,Fv={};function jv(){const e=Pv();if(e&&mf){e.mark&&mm.performance.mark("sentry-tracing-init");const t=xv("fid",(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=Av(mf),r=Av(t.startTime);ny&&hp.log("[Measurements] Adding FID"),Fv.fid={value:e.value,unit:"millisecond"},Fv["mark.fid"]={value:n+r,unit:"second"}}),_v,hv),n=function(e,t=!1){return xv("cls",e,Sv,fv,t)}((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(ny&&hp.log("[Measurements] Adding CLS"),Fv.cls={value:e.value,unit:""},Mv=t)}),!0),r=vv((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(ny&&hp.log("[Measurements] Adding LCP"),Fv.lcp={value:e.value,unit:"millisecond"},Nv=t)}),!0),o=function(e){return xv("ttfb",e,kv,gv)}((({metric:e})=>{e.entries[e.entries.length-1]&&(ny&&hp.log("[Measurements] Adding TTFB"),Fv.ttfb={value:e.value,unit:"millisecond"})}));return()=>{t(),n(),r(),o()}}return()=>{}}function Uv(e){const t=Pv();if(!t||!mm.performance.getEntries||!mf)return;ny&&hp.log("[Tracing] Adding & adjusting spans using Performance API");const n=Av(mf),r=t.getEntries(),{op:o,start_timestamp:i}=Nh(e);if(r.slice(Dv).forEach((t=>{const r=Av(t.startTime),a=Av(t.duration);if(!("navigation"===o&&i&&n+r<i))switch(t.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((r=>{Bv(e,t,r,n)})),Bv(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),Bv(e,t,"fetch",n,"cache","domainLookupStart"),Bv(e,t,"domainLookup",n,"DNS"),function(e,t,n){t.responseEnd&&(Ov(e,n+Av(t.requestStart),n+Av(t.responseEnd),{op:"browser",name:"request",attributes:{[sh]:"auto.ui.browser.metrics"}}),Ov(e,n+Av(t.responseStart),n+Av(t.responseEnd),{op:"browser",name:"response",attributes:{[sh]:"auto.ui.browser.metrics"}}))}(e,t,n)}(e,t,n);break;case"mark":case"paint":case"measure":{!function(e,t,n,r,o){const i=o+n,a=i+r;Ov(e,i,a,{name:t.name,op:t.entryType,attributes:{[sh]:"auto.resource.browser.metrics"}})}(e,t,r,a,n);const o=By(),i=t.startTime<o.firstHiddenTime;"first-paint"===t.name&&i&&(ny&&hp.log("[Measurements] Adding FP"),Fv.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&i&&(ny&&hp.log("[Measurements] Adding FCP"),Fv.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":!function(e,t,n,r,o,i){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const a=kg(n),s={[sh]:"auto.resource.browser.metrics"};zv(s,t,"transferSize","http.response_transfer_size"),zv(s,t,"encodedBodySize","http.response_content_length"),zv(s,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(s["resource.render_blocking_status"]=t.renderBlockingStatus);a.protocol&&(s["url.scheme"]=a.protocol.split(":").pop());a.host&&(s["server.address"]=a.host);s["url.same_origin"]=n.includes(mm.location.origin);const l=i+r,c=l+o;Ov(e,l,c,{name:n.replace(mm.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:s})}(e,t,t.name,r,a,n)}})),Dv=Math.max(r.length-1,0),function(e){const t=mm.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),Rv(n.rtt)&&(Fv["connection.rtt"]={value:n.rtt,unit:"millisecond"}));Rv(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`);Rv(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===o){!function(e){const t=Ay();if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(ny&&hp.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(Fv),["fcp","fp","lcp"].forEach((e=>{if(!Fv[e]||!i||n>=i)return;const t=Fv[e].value,r=n+Av(t),o=Math.abs(1e3*(r-i)),a=o-t;ny&&hp.log(`[Measurements] Normalized ${e} from ${t} to ${o} (${a})`),Fv[e].value=o}));const t=Fv["mark.fid"];t&&Fv.fid&&(Ov(e,t.value,t.value+Av(Fv.fid.value),{name:"first input delay",op:"ui.action",attributes:{[sh]:"auto.ui.browser.metrics"}}),delete Fv["mark.fid"]),"fcp"in Fv||delete Fv.cls,Object.keys(Fv).forEach((e=>{!function(e,t,n){const r=qh(),o=r&&zh(r);o&&o.addEvent(e,{[uh]:t,[ch]:n})}(e,Fv[e].value,Fv[e].unit)})),function(e){Nv&&(ny&&hp.log("[Measurements] Adding LCP Data"),Nv.element&&e.setAttribute("lcp.element",Op(Nv.element)),Nv.id&&e.setAttribute("lcp.id",Nv.id),Nv.url&&e.setAttribute("lcp.url",Nv.url.trim().slice(0,200)),e.setAttribute("lcp.size",Nv.size));Mv&&Mv.sources&&(ny&&hp.log("[Measurements] Adding CLS Data"),Mv.sources.forEach(((t,n)=>e.setAttribute(`cls.source.${n+1}`,Op(t.node)))))}(e)}Nv=void 0,Mv=void 0,Fv={}}function Bv(e,t,n,r,o,i){const a=i?t[i]:t[`${n}End`],s=t[`${n}Start`];s&&a&&Ov(e,r+Av(s),r+Av(a),{op:"browser",name:o||n,attributes:{[sh]:"auto.ui.browser.metrics"}})}function zv(e,t,n,r){const o=t[n];null!=o&&o<Lv&&(e[r]=o)}function qv(){if(Pv()&&mf){const t=(e=({metric:e})=>{const t=Af();if(!t||null==e.value)return;const n=e.entries.find((t=>t.duration===e.value&&Wv[t.name]));if(!n)return;const r=Wv[n.name],o=t.getOptions(),i=Av(mf+n.startTime),a=Av(e.value),s=Rf(),l=qh(),c=l?zh(l):void 0,u=c?Nh(c).description:void 0,d=s.getUser(),p=t.getIntegrationByName("Replay"),f=p&&p.getReplayId(),h=void 0!==d?d.email||d.id||d.ip_address:void 0;let m;try{m=s.getScopeData().contexts.profile.profile_id}catch(e){}const g=ky({name:Op(n.target),op:`ui.interaction.${r}`,attributes:$p({release:o.release,environment:o.environment,transaction:u,[dh]:e.value,user:h||void 0,profile_id:m||void 0,replay_id:f||void 0}),startTime:i,experimental:{standalone:!0}});g.addEvent("inp",{[ch]:"millisecond",[uh]:e.value}),g.end(i+a)},xv("inp",e,Tv,yv));return()=>{t()}}var e;return()=>{}}const Wv={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};const $v={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},Vv="heartbeatFailed",Hv="idleTimeout",Gv="finalTimeout",Kv="externalFinish";function Yv(e,t={}){const n=new Map;let r,o=!1,i=Kv,a=!t.disableAutoFinish;const{idleTimeout:s=$v.idleTimeout,finalTimeout:l=$v.finalTimeout,childSpanTimeout:c=$v.childSpanTimeout,beforeSpanEnd:u}=t,d=Af();if(!d||!hy())return new my;const p=Rf(),f=qh(),h=function(e){const t=ky(e);return bf(Rf(),t),Zp&&hp.log("[Tracing] Started span is an idle span"),t}(e);function m(){r&&(clearTimeout(r),r=void 0)}function g(e){m(),r=setTimeout((()=>{!o&&0===n.size&&a&&(i=Hv,h.end(e))}),s)}function y(e){r=setTimeout((()=>{!o&&a&&(i=Vv,h.end(e))}),c)}function v(e){o=!0,n.clear(),bf(p,f);const t=Nh(h),{start_timestamp:r}=t;if(!r)return;(t.data||{})[lh]||h.setAttribute(lh,i),hp.log(`[Tracing] Idle span "${t.op}" finished`);const a=Bh(h).filter((e=>e!==h));let c=0;a.forEach((t=>{t.isRecording()&&(t.setStatus({code:xh,message:"cancelled"}),t.end(e),Zp&&hp.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));const n=Nh(t),{timestamp:r=0,start_timestamp:o=0}=n,i=o<=e,a=r-o<=(l+s)/1e3;if(Zp){const e=JSON.stringify(t,void 0,2);i?a||hp.log("[Tracing] Discarding span since it finished after idle span final timeout",e):hp.log("[Tracing] Discarding span since it happened after idle span was finished",e)}a&&i||(!function(e,t){e[Fh]&&e[Fh].delete(t)}(h,t),c++)})),c>0&&h.setAttribute("sentry.idle_span_discarded_spans",c)}return h.end=new Proxy(h.end,{apply(e,t,n){u&&u(h);const[r,...o]=n,i=Ah(r||ff()),a=Bh(h).filter((e=>e!==h));if(!a.length)return v(i),Reflect.apply(e,t,[i,...o]);const s=a.map((e=>Nh(e).timestamp)).filter((e=>!!e)),c=s.length?Math.max(...s):void 0,d=Nh(h).start_timestamp,p=Math.min(d?d+l/1e3:1/0,Math.max(d||-1/0,Math.min(i,c||1/0)));return v(p),Reflect.apply(e,t,[p,...o])}}),d.on("spanStart",(e=>{if(o||e===h||Nh(e).timestamp)return;var t;Bh(h).includes(e)&&(t=e.spanContext().spanId,m(),n.set(t,!0),y(ff()+c/1e3))})),d.on("spanEnd",(e=>{var t;o||(t=e.spanContext().spanId,n.has(t)&&n.delete(t),0===n.size&&g(ff()+s/1e3))})),d.on("idleSpanEnableAutoFinish",(e=>{e===h&&(a=!0,g(),n.size&&y())})),t.disableAutoFinish||g(),setTimeout((()=>{o||(h.setStatus({code:xh,message:"deadline_exceeded"}),i=Gv,h.end())}),l),h}let Jv=!1;function Xv(){const e=qh(),t=e&&zh(e);if(t){const e="internal_error";Zp&&hp.log(`[Tracing] Root span: ${e} -> Global error occured`),t.setStatus({code:xh,message:e})}}function Qv(e,t,n,r,o="auto.http.browser"){if(!e.fetchData)return;const i=hy()&&t(e.fetchData.url);if(e.endTimestamp&&i){const t=e.fetchData.__span;if(!t)return;const n=r[t];return void(n&&(!function(e,t){if(t.response){Ch(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:xh,message:"internal_error"});e.end()}(n,e),delete r[t]))}const a=Rf(),s=Af(),{method:l,url:c}=e.fetchData,u=function(e){try{return new URL(e).href}catch(e){return}}(c),d=u?kg(u).host:void 0,p=!!qh(),f=i&&p?ky({name:`${l} ${c}`,attributes:{url:c,type:"fetch","http.method":l,"http.url":u,"server.address":d,[sh]:o,[ah]:"http.client"}}):new my;if(e.fetchData.__span=f.spanContext().spanId,r[f.spanContext().spanId]=f,n(e.fetchData.url)&&s){const t=e.args[0];e.args[1]=e.args[1]||{};const n=e.args[1];n.headers=function(e,t,n,r,o){const i=Of(),{traceId:a,spanId:s,sampled:l,dsc:c}={...i.getPropagationContext(),...n.getPropagationContext()},u=o?Ph(o):Sh(a,s,l),d=yh(c||(o?Hh(o):Vh(a,t))),p=r.headers||("undefined"!=typeof Request&&xp(e,Request)?e.headers:void 0);if(p){if("undefined"!=typeof Headers&&xp(p,Headers)){const e=new Headers(p);return e.append("sentry-trace",u),d&&e.append(ph,d),e}if(Array.isArray(p)){const e=[...p,["sentry-trace",u]];return d&&e.push([ph,d]),e}{const e="baggage"in p?p.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),d&&t.push(d),{...p,"sentry-trace":u,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":u,baggage:d}}(t,s,a,n,hy()&&p?f:void 0)}return f}Xv.tag="sentry_tracingErrorCallback";const Zv={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0};function eb(e){const{traceFetch:t,traceXHR:n,shouldCreateSpanForRequest:r,enableHTTPTimings:o,tracePropagationTargets:i}={traceFetch:Zv.traceFetch,traceXHR:Zv.traceXHR,...e},a="function"==typeof r?r:e=>!0,s=e=>function(e,t){const n=eg.location&&eg.location.href;if(n){let r,o;try{r=new URL(e,n),o=new URL(n).origin}catch(e){return!1}const i=r.origin===o;return t?Dp(r.toString(),t)||i&&Dp(r.pathname,t):i}{const n=!!e.match(/^\/(?!\/)/);return t?Dp(e,t):n}}(e,i),l={};t&&vg((e=>{const t=Qv(e,a,s,l);if(t){const n=rb(e.fetchData.url),r=n?kg(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r})}o&&t&&tb(t)})),n&&fg((e=>{const t=function(e,t,n,r){const o=e.xhr,i=o&&o[pg];if(!o||o.__sentry_own_request__||!i)return;const a=hy()&&t(i.url);if(e.endTimestamp&&a){const e=o.__sentry_xhr_span_id__;if(!e)return;const t=r[e];return void(t&&void 0!==i.status_code&&(Ch(t,i.status_code),t.end(),delete r[e]))}const s=rb(i.url),l=s?kg(s).host:void 0,c=!!qh(),u=a&&c?ky({name:`${i.method} ${i.url}`,attributes:{type:"xhr","http.method":i.method,"http.url":s,url:i.url,"server.address":l,[sh]:"auto.http.browser",[ah]:"http.client"}}):new my;o.__sentry_xhr_span_id__=u.spanContext().spanId,r[o.__sentry_xhr_span_id__]=u;const d=Af();o.setRequestHeader&&n(i.url)&&d&&function(e,t,n){const r=Rf(),o=Of(),{traceId:i,spanId:a,sampled:s,dsc:l}={...o.getPropagationContext(),...r.getPropagationContext()},c=n&&hy()?Ph(n):Sh(i,a,s),u=yh(l||(n?Hh(n):Vh(i,t)));!function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(ph,n)}catch(e){}}(e,c,u)}(o,d,hy()&&c?u:void 0);return u}(e,a,s,l);o&&t&&tb(t)}))}function tb(e){const{url:t}=Nh(e).data||{};if(!t||"string"!=typeof t)return;const n=bv("resource",(({entries:r})=>{r.forEach((r=>{if(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}(r)&&r.name.endsWith(t)){(function(e){const{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(const o of e){if("/"===o){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=o}r===e&&(t=r);return{name:t,version:n}}(e.nextHopProtocol),r=[];if(r.push(["network.protocol.version",n],["network.protocol.name",t]),!mf)return r;return[...r,["http.request.redirect_start",nb(e.redirectStart)],["http.request.fetch_start",nb(e.fetchStart)],["http.request.domain_lookup_start",nb(e.domainLookupStart)],["http.request.domain_lookup_end",nb(e.domainLookupEnd)],["http.request.connect_start",nb(e.connectStart)],["http.request.secure_connection_start",nb(e.secureConnectionStart)],["http.request.connection_end",nb(e.connectEnd)],["http.request.request_start",nb(e.requestStart)],["http.request.response_start",nb(e.responseStart)],["http.request.response_end",nb(e.responseEnd)]]})(r).forEach((t=>e.setAttribute(...t))),setTimeout(n)}}))}))}function nb(e=0){return((mf||performance.timeOrigin)+e)/1e3}function rb(e){try{return new URL(e,eg.location.origin).href}catch(e){return}}const ob={...$v,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!0,_experiments:{},...Zv};function ib(e){const t=(n=`meta[name=${e}]`,Ip.document&&Ip.document.querySelector?Ip.document.querySelector(n):null);var n;return t?t.getAttribute("content"):void 0}function ab(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=i(n)):"call"!==o&&"optionalCall"!==o||(n=i(((...e)=>n.call(t,...e))),t=void 0)}return n}function sb(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,n)||function(e,t){if(!t)return!1;return lb(e)===lb(t)}(e,r)}function lb(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function cb(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function ub(){return"undefined"!=typeof window&&(!cb()||void 0!==cp.process&&"renderer"===cp.process.type)}const db=cp,pb="sentryReplaySession",fb="replay_event",hb="Unable to send Replay",mb=15e4,gb=5e3,yb=2e7,vb=36e5;function bb(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=i(n)):"call"!==o&&"optionalCall"!==o||(n=i(((...e)=>n.call(t,...e))),t=void 0)}return n}var wb;function Sb(e){const t=bb([e,"optionalAccess",e=>e.host]);return Boolean(bb([t,"optionalAccess",e=>e.shadowRoot])===e)}function _b(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Eb(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,kb).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function kb(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=Eb(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(e.cssText);return t||e.cssText}!function(e){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"}(wb||(wb={}));class Tb{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;const t=bb([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]);return r=()=>-1,null!=(n=t)?n:r();var n,r}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function xb({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function Cb({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function Ib(e){return e.toLowerCase()}function Rb(e){return e.toUpperCase()}const Ob="__rrweb_original__";function Pb(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Ib(t):null}function Ab(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}let Lb=1;const Nb=new RegExp("[^a-z0-9-_:]"),Mb=-2;function Db(){return Lb++}let Fb,jb;const Ub=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Bb=/^(?:[a-z+]+:)?\/\//i,zb=/^www\..*/i,qb=/^(data:)([^,]*),(.*)/i;function Wb(e,t){return(e||"").replace(Ub,((e,n,r,o,i,a)=>{const s=r||i||a,l=n||o||"";if(!s)return e;if(Bb.test(s)||zb.test(s))return`url(${l}${s}${l})`;if(qb.test(s))return`url(${l}${s}${l})`;if("/"===s[0])return`url(${l}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+s}${l})`;const c=t.split("/"),u=s.split("/");c.pop();for(const e of u)"."!==e&&(".."===e?c.pop():c.push(e));return`url(${l}${c.join("/")}${l})`}))}const $b=/^[^ \t\n\r\u000c]+/,Vb=/^[, \t\n\r\u000c]+/;function Hb(e,t){if(!t||""===t.trim())return t;const n=e.createElement("a");return n.href=t,n.href}function Gb(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function Kb(){const e=document.createElement("a");return e.href="",e.href}function Yb(e,t,n,r,o,i){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?Hb(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const o=e.exec(t.substring(n));return o?(r=o[0],n+=r.length,r):""}const o=[];for(;r(Vb),!(n>=t.length);){let i=r($b);if(","===i.slice(-1))i=Hb(e,i.substring(0,i.length-1)),o.push(i);else{let r="";i=Hb(e,i);let a=!1;for(;;){const e=t.charAt(n);if(""===e){o.push((i+r).trim());break}if(a)")"===e&&(a=!1);else{if(","===e){n+=1,o.push((i+r).trim());break}"("===e&&(a=!0)}r+=e,n+=1}}}return o.join(", ")}(e,r):"style"===n?Wb(r,Kb()):"object"===t&&"data"===n?Hb(e,r):"function"==typeof i?i(n,r,o):r:Hb(e,r):r}function Jb(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function Xb(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Xb(e.parentNode,t,n,r+1):-1}function Qb(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch(e){return!1}}}function Zb(e,t,n,r,o,i){try{const a=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===a)return!1;if("INPUT"===a.tagName){const e=a.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let s=-1,l=-1;if(i){if(l=Xb(a,Qb(r,o)),l<0)return!0;s=Xb(a,Qb(t,n),l>=0?l:1/0)}else{if(s=Xb(a,Qb(t,n)),s<0)return!1;l=Xb(a,Qb(r,o),s>=0?s:1/0)}return s>=0?!(l>=0)||s<=l:!(l>=0)&&!!i}catch(e){}return!!i}function ew(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:s,maskAttributeFn:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:h={},maskTextFn:m,maskInputFn:g,dataURLOptions:y={},inlineImages:v,recordCanvas:b,keepIframeSrcFn:w,newlyAddedElement:S=!1}=t,_=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:wb.Document,childNodes:[],compatMode:e.compatMode}:{type:wb.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:wb.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:_};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:i,inlineStylesheet:a,maskInputOptions:s={},maskAttributeFn:l,maskInputFn:c,dataURLOptions:u={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:f,newlyAddedElement:h=!1,rootId:m,maskAllText:g,maskTextClass:y,unmaskTextClass:v,maskTextSelector:b,unmaskTextSelector:w}=t,S=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,r,o,i),_=function(e){if(e instanceof HTMLFormElement)return"form";const t=Ib(e.tagName);return Nb.test(t)?"div":t}(e);let E={};const k=e.attributes.length;for(let t=0;t<k;t++){const r=e.attributes[t];r.name&&!Jb(_,r.name,r.value)&&(E[r.name]=Yb(n,_,Ib(r.name),r.value,e,l))}if("link"===_&&a){const t=Array.from(n.styleSheets).find((t=>t.href===e.href));let r=null;t&&(r=Eb(t)),r&&(delete E.rel,delete E.href,E._cssText=Wb(r,t.href))}if("style"===_&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=Eb(e.sheet);t&&(E._cssText=Wb(t,Kb()))}if("input"===_||"textarea"===_||"select"===_||"option"===_){const t=e,n=Pb(t),r=Ab(t,Rb(_),n),o=t.checked;if("submit"!==n&&"button"!==n&&r){const e=Zb(t,y,b,v,w,xb({type:n,tagName:Rb(_),maskInputOptions:s}));E.value=Cb({isMasked:e,element:t,value:r,maskInputFn:c})}o&&(E.checked=o)}"option"===_&&(e.selected&&!s.select?E.selected=!0:delete E.selected);if("canvas"===_&&p)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){const o=t.getImageData,i=Ob in o?o[Ob]:o;if(new Uint32Array(i.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(E.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const t=e.toDataURL(u.type,u.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height;t!==n.toDataURL(u.type,u.quality)&&(E.rr_dataURL=t)}if("img"===_&&d){Fb||(Fb=n.createElement("canvas"),jb=Fb.getContext("2d"));const t=e,r=t.crossOrigin;t.crossOrigin="anonymous";const o=()=>{t.removeEventListener("load",o);try{Fb.width=t.naturalWidth,Fb.height=t.naturalHeight,jb.drawImage(t,0,0),E.rr_dataURL=Fb.toDataURL(u.type,u.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}r?E.crossOrigin=r:t.removeAttribute("crossorigin")};t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o)}"audio"!==_&&"video"!==_||(E.rr_mediaState=e.paused?"paused":"played",E.rr_mediaCurrentTime=e.currentTime);h||(e.scrollLeft&&(E.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(E.rr_scrollTop=e.scrollTop));if(S){const{width:t,height:n}=e.getBoundingClientRect();E={class:E.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==_||f(E.src)||(e.contentDocument||(E.rr_src=E.src),delete E.src);let T;try{customElements.get(_)&&(T=!0)}catch(e){}return{type:wb.Element,tagName:_,attributes:E,childNodes:[],isSVG:Gb(e)||void 0,needBlock:S,rootId:m,isCustom:T}}(e,{doc:n,blockClass:o,blockSelector:i,unblockSelector:a,inlineStylesheet:f,maskAttributeFn:l,maskInputOptions:h,maskInputFn:g,dataURLOptions:y,inlineImages:v,recordCanvas:b,keepIframeSrcFn:w,newlyAddedElement:S,rootId:_,maskAllText:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p});case e.TEXT_NODE:return function(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:i,unmaskTextSelector:a,maskTextFn:s,maskInputOptions:l,maskInputFn:c,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const f="STYLE"===d||void 0,h="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(f&&p){try{e.nextSibling||e.previousSibling||bb([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(p=Eb(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=Wb(p,Kb())}h&&(p="SCRIPT_PLACEHOLDER");const g=Zb(e,r,i,o,a,n);f||h||m||!p||!g||(p=s?s(p,e.parentElement):p.replace(/[\S]/g,"*"));m&&p&&(l.textarea||g)&&(p=c?c(p,e.parentNode):p.replace(/[\S]/g,"*"));if("OPTION"===d&&p){p=Cb({isMasked:Zb(e,r,i,o,a,xb({type:null,tagName:d,maskInputOptions:l})),element:e,value:p,maskInputFn:c})}return{type:wb.Text,textContent:p||"",isStyle:f,rootId:u}}(e,{maskAllText:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:m,maskInputOptions:h,maskInputFn:g,rootId:_});case e.CDATA_SECTION_NODE:return{type:wb.CDATA,textContent:"",rootId:_};case e.COMMENT_NODE:return{type:wb.Comment,textContent:e.textContent||"",rootId:_};default:return!1}}function tw(e){return null==e?"":e.toLowerCase()}function nw(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:p=!1,inlineStylesheet:f=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b={},inlineImages:w=!1,recordCanvas:S=!1,onSerialize:_,onIframeLoad:E,iframeLoadTimeout:k=5e3,onStylesheetLoad:T,stylesheetLoadTimeout:x=5e3,keepIframeSrcFn:C=(()=>!1),newlyAddedElement:I=!1}=t;let{preserveWhiteSpace:R=!0}=t;const O=ew(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:s,unblockSelector:a,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,dataURLOptions:b,inlineImages:w,recordCanvas:S,keepIframeSrcFn:C,newlyAddedElement:I});if(!O)return console.warn(e,"not serialized"),null;let P;P=r.hasNode(e)?r.getId(e):!function(e,t){if(t.comment&&e.type===wb.Comment)return!0;if(e.type===wb.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(tw(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===tw(e.attributes.name)||"icon"===tw(e.attributes.rel)||"apple-touch-icon"===tw(e.attributes.rel)||"shortcut icon"===tw(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&tw(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(tw(e.attributes.property).match(/^(og|twitter|fb):/)||tw(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===tw(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===tw(e.attributes.name)||"googlebot"===tw(e.attributes.name)||"bingbot"===tw(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===tw(e.attributes.name)||"generator"===tw(e.attributes.name)||"framework"===tw(e.attributes.name)||"publisher"===tw(e.attributes.name)||"progid"===tw(e.attributes.name)||tw(e.attributes.property).match(/^article:/)||tw(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===tw(e.attributes.name)||"yandex-verification"===tw(e.attributes.name)||"csrf-token"===tw(e.attributes.name)||"p:domain_verify"===tw(e.attributes.name)||"verify-v1"===tw(e.attributes.name)||"verification"===tw(e.attributes.name)||"shopify-checkout-api-token"===tw(e.attributes.name)))return!0}}return!1}(O,v)&&(R||O.type!==wb.Text||O.isStyle||O.textContent.replace(/^\s+|\s+$/gm,"").length)?Db():Mb;const A=Object.assign(O,{id:P});if(r.add(e,A),P===Mb)return null;_&&_(e);let L=!p;if(A.type===wb.Element){L=L&&!A.needBlock,delete A.needBlock;const t=e.shadowRoot;t&&_b(t)&&(A.isShadowHost=!0)}if((A.type===wb.Document||A.type===wb.Element)&&L){v.headWhitespace&&A.type===wb.Element&&"head"===A.tagName&&(R=!1);const t={doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:s,unblockSelector:a,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:p,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:w,recordCanvas:S,preserveWhiteSpace:R,onSerialize:_,onIframeLoad:E,iframeLoadTimeout:k,onStylesheetLoad:T,stylesheetLoadTimeout:x,keepIframeSrcFn:C};for(const n of Array.from(e.childNodes)){const e=nw(n,t);e&&A.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=nw(n,t);r&&(_b(e.shadowRoot)&&(r.isShadow=!0),A.childNodes.push(r))}}return e.parentNode&&Sb(e.parentNode)&&_b(e.parentNode)&&(A.isShadow=!0),A.type===wb.Element&&"iframe"===A.tagName&&function(e,t,n){const r=e.contentWindow;if(!r)return;let o,i=!1;try{o=r.document.readyState}catch(e){return}if("complete"!==o){const r=setTimeout((()=>{i||(t(),i=!0)}),n);return void e.addEventListener("load",(()=>{clearTimeout(r),i=!0,t()}))}const a="about:blank";if(r.location.href!==a||e.src===a||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=e.contentDocument;if(t&&E){const n=nw(t,{doc:t,mirror:r,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:w,recordCanvas:S,preserveWhiteSpace:R,onSerialize:_,onIframeLoad:E,iframeLoadTimeout:k,onStylesheetLoad:T,stylesheetLoadTimeout:x,keepIframeSrcFn:C});n&&E(e,n)}}),k),A.type===wb.Element&&"link"===A.tagName&&"stylesheet"===A.attributes.rel&&function(e,t,n){let r,o=!1;try{r=e.sheet}catch(e){return}if(r)return;const i=setTimeout((()=>{o||(t(),o=!0)}),n);e.addEventListener("load",(()=>{clearTimeout(i),o=!0,t()}))}(e,(()=>{if(T){const t=nw(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:w,recordCanvas:S,preserveWhiteSpace:R,onSerialize:_,onIframeLoad:E,iframeLoadTimeout:k,onStylesheetLoad:T,stylesheetLoadTimeout:x,keepIframeSrcFn:C});t&&T(e,t)}}),x),A}function rw(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=i(n)):"call"!==o&&"optionalCall"!==o||(n=i(((...e)=>n.call(t,...e))),t=void 0)}return n}function ow(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const iw="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.";let aw={map:{},getId:()=>(console.error(iw),-1),getNode:()=>(console.error(iw),null),removeNodeFromMap(){console.error(iw)},has:()=>(console.error(iw),!1),reset(){console.error(iw)}};function sw(e,t,n={}){let r=null,o=0;return function(...i){const a=Date.now();o||!1!==n.leading||(o=a);const s=t-(a-o),l=this;s<=0||s>t?(r&&(!function(...e){Cw("clearTimeout")(...e)}(r),r=null),o=a,e.apply(l,i)):r||!1===n.trailing||(r=Iw((()=>{o=!1===n.leading?0:Date.now(),r=null,e.apply(l,i)}),s))}}function lw(e,t,n,r,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){Iw((()=>{n.set.call(this,e)}),0),i&&i.set&&i.set.call(this,e)}}),()=>lw(e,t,i||{},!0)}function cw(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(aw=new Proxy(aw,{get:(e,t,n)=>("map"===t&&console.error(iw),Reflect.get(e,t,n))}));let uw=Date.now;function dw(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:rw([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||rw([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||rw([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:rw([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||rw([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||rw([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function pw(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function fw(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function hw(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}function mw(e,t,n,r,o){if(!e)return!1;const i=hw(e);if(!i)return!1;const a=Qb(t,n);if(!o){const e=r&&i.matches(r);return a(i)&&!e}const s=Xb(i,a);let l=-1;return!(s<0)&&(r&&(l=Xb(i,Qb(null,r))),s>-1&&l<0||s<l)}function gw(e,t){return t.getId(e)===Mb}function yw(e,t){if(Sb(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||yw(e.parentNode,t))}function vw(e){return Boolean(e.changedTouches)}function bw(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function ww(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Sw(e){return Boolean(rw([e,"optionalAccess",e=>e.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(uw=()=>(new Date).getTime());class _w{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return t=this.styleIDMap.get(e),n=()=>-1,null!=t?t:n();var t,n}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Ew(e){let t=null;return rw([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function kw(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=Ew(n);)n=t;return n}(e);return t.contains(n)}function Tw(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||kw(e))}const xw={};function Cw(e){const t=xw[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return xw[e]=r.bind(window)}function Iw(...e){return Cw("setTimeout")(...e)}var Rw=(e=>(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))(Rw||{}),Ow=(e=>(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))(Ow||{}),Pw=(e=>(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))(Pw||{}),Aw=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Aw||{});function Lw(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=i(n)):"call"!==o&&"optionalCall"!==o||(n=i(((...e)=>n.call(t,...e))),t=void 0)}return n}function Nw(e){return"__ln"in e}class Mw{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=Lw([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Nw(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&Nw(e.nextSibling)&&e.nextSibling.__ln.previous){const 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++}removeNode(e){const 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--)}}const Dw=(e,t)=>`${e}@${t}`;class Fw{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new Mw,r=e=>{let t=e,n=Mb;for(;n===Mb;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},o=o=>{if(!o.parentNode||!Tw(o))return;const i=Sb(o.parentNode)?this.mirror.getId(Ew(o)):this.mirror.getId(o.parentNode),a=r(o);if(-1===i||-1===a)return n.addNode(o);const s=nw(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{bw(e,this.mirror)&&this.iframeManager.addIframe(e),ww(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Sw(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});s&&(e.push({parentId:i,nextId:a,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)Uw(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||o(e);for(const e of this.addedSet)zw(this.droppedSet,e)||Uw(this.removes,e,this.mirror)?zw(this.movedSet,e)?o(e):this.droppedSet.add(e):o(e);let i=null;for(;n.length;){let e=null;if(i){const t=this.mirror.getId(i.value.parentNode),n=r(i.value);-1!==t&&-1!==n&&(e=i)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}i=e.previous,n.removeNode(e.value),o(e.value)}const a={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(a.texts.length||a.attributes.length||a.removes.length||a.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=e=>{if(!gw(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;mw(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:Zb(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,hw(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){const n=Pb(t),o=t.tagName;r=Ab(t,o,n);const i=xb({maskInputOptions:this.maskInputOptions,tagName:o,type:n});r=Cb({isMasked:Zb(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,i),element:t,value:r,maskInputFn:this.maskInputFn})}if(mw(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let o=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(t.contentDocument)return;n="rr_src"}if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!Jb(t.tagName,n)&&(o.attributes[n]=Yb(this.doc,Ib(t.tagName),Ib(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const r=t.style.getPropertyValue(e),i=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||i!==n.style.getPropertyPriority(e)?o.styleDiff[e]=""===i?r:[r,i]:o._unchangedStyles[e]=[r,i]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(o.styleDiff[e]=!1)}break}case"childList":if(mw(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),r=Sb(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);mw(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||gw(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(jw(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||yw(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Dw(n,r)]?jw(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!Sb(e.target)||!_b(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(gw(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[Dw(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);mw(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),Sw(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function jw(e,t){e.delete(t),t.childNodes.forEach((t=>jw(e,t)))}function Uw(e,t,n){return 0!==e.length&&Bw(e,t,n)}function Bw(e,t,n){const{parentNode:r}=t;if(!r)return!1;const o=n.getId(r);return!!e.some((e=>e.id===o))||Bw(e,r,n)}function zw(e,t){return 0!==e.size&&qw(e,t)}function qw(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||qw(e,n))}let Ww;function $w(e){Ww=e}function Vw(){Ww=void 0}const Hw=e=>{if(!Ww)return e;return(...t)=>{try{return e(...t)}catch(e){if(Ww&&!0===Ww(e))return()=>{};throw e}}};function Gw(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=i(n)):"call"!==o&&"optionalCall"!==o||(n=i(((...e)=>n.call(t,...e))),t=void 0)}return n}const Kw=[];function Yw(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function Jw(e,t){const n=new Fw;Kw.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const o=Gw([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);o&&window[o]&&(r=window[o]);const i=new r(Hw((t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function Xw({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:a}){if(!1===a.mouseInteraction)return()=>{};const s=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,l=[];let c=null;return Object.keys(Pw).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e])).forEach((a=>{let s=Ib(a);const u=(t=>a=>{const s=Yw(a);if(mw(s,r,o,i,!0))return;let l=null,u=t;if("pointerType"in a){switch(a.pointerType){case"mouse":l=Aw.Mouse;break;case"touch":l=Aw.Touch;break;case"pen":l=Aw.Pen}l===Aw.Touch?Pw[t]===Pw.MouseDown?u="TouchStart":Pw[t]===Pw.MouseUp&&(u="TouchEnd"):Aw.Pen}else vw(a)&&(l=Aw.Touch);null!==l?(c=l,(u.startsWith("Touch")&&l===Aw.Touch||u.startsWith("Mouse")&&l===Aw.Mouse)&&(l=null)):Pw[t]===Pw.Click&&(l=c,c=null);const d=vw(a)?a.changedTouches[0]:a;if(!d)return;const p=n.getId(s),{clientX:f,clientY:h}=d;Hw(e)({type:Pw[u],id:p,x:f,y:h,...null!==l&&{pointerType:l}})})(a);if(window.PointerEvent)switch(Pw[a]){case Pw.MouseDown:case Pw.MouseUp:s=s.replace("mouse","pointer");break;case Pw.TouchStart:case Pw.TouchEnd:return}l.push(ow(s,u,t))})),Hw((()=>{l.forEach((e=>e()))}))}function Qw({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:a}){return ow("scroll",Hw(sw(Hw((a=>{const s=Yw(a);if(!s||mw(s,r,o,i,!0))return;const l=n.getId(s);if(s===t&&t.defaultView){const n=dw(t.defaultView);e({id:l,x:n.left,y:n.top})}else e({id:l,x:s.scrollLeft,y:s.scrollTop})})),a.scroll||100)),t)}const Zw=["INPUT","TEXTAREA","SELECT"],eS=new WeakMap;function tS({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,ignoreClass:a,ignoreSelector:s,maskInputOptions:l,maskInputFn:c,sampling:u,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:m}){function g(e){let n=Yw(e);const u=e.isTrusted,g=n&&Rb(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||Zw.indexOf(g)<0||mw(n,r,o,i,!0))return;const v=n;if(v.classList.contains(a)||s&&v.matches(s))return;const b=Pb(n);let w=Ab(v,g,b),S=!1;const _=xb({maskInputOptions:l,tagName:g,type:b}),E=Zb(n,p,h,f,m,_);"radio"!==b&&"checkbox"!==b||(S=n.checked),w=Cb({isMasked:E,element:n,value:w,maskInputFn:c}),y(n,d?{text:w,isChecked:S,userTriggered:u}:{text:w,isChecked:S});const k=n.name;"radio"===b&&k&&S&&t.querySelectorAll(`input[type="radio"][name="${k}"]`).forEach((e=>{if(e!==n){const t=Cb({isMasked:E,element:e,value:Ab(e,g,b),maskInputFn:c});y(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}}))}function y(t,r){const o=eS.get(t);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){eS.set(t,r);const o=n.getId(t);Hw(e)({...r,id:o})}}const v=("last"===u.input?["change"]:["input","change"]).map((e=>ow(e,Hw(g),t))),b=t.defaultView;if(!b)return()=>{v.forEach((e=>e()))};const w=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),S=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return w&&w.set&&v.push(...S.map((e=>lw(e[0],e[1],{set(){Hw(g)({target:this,isTrusted:!1})}},!1,b)))),Hw((()=>{v.forEach((e=>e()))}))}function nS(e){return function(e,t){if(aS("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||aS("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||aS("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||aS("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function rS(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function oS({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const o="#document"===n.nodeName?Gw([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):Gw([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),i=Gw([o,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(Gw([o,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&o&&i?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return Gw([i,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=Gw([i,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),Hw((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))):()=>{}}function iS(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};const r=Jw(e,e.doc),o=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const o="number"==typeof t.mousemove?t.mousemove:50,i="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let a,s=[];const l=sw(Hw((t=>{const n=Date.now()-a;e(s.map((e=>(e.timeOffset-=n,e))),t),s=[],a=null})),i),c=Hw(sw(Hw((e=>{const t=Yw(e),{clientX:n,clientY:o}=vw(e)?e.changedTouches[0]:e;a||(a=uw()),s.push({x:n,y:o,id:r.getId(t),timeOffset:uw()-a}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?Ow.Drag:e instanceof MouseEvent?Ow.MouseMove:Ow.TouchMove)})),o,{trailing:!1})),u=[ow("mousemove",c,n),ow("touchmove",c,n),ow("drag",c,n)];return Hw((()=>{u.forEach((e=>e()))}))}(e),i=Xw(e),a=Qw(e),s=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return ow("resize",Hw(sw(Hw((()=>{const t=pw(),o=fw();n===t&&r===o||(e({width:Number(o),height:Number(t)}),n=t,r=o)})),200)),t)}(e,{win:n}),l=tS(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:i,doc:a}){const s=Hw((a=>sw(Hw((i=>{const s=Yw(i);if(!s||mw(s,t,n,r,!0))return;const{currentTime:l,volume:c,muted:u,playbackRate:d}=s;e({type:a,id:o.getId(s),currentTime:l,volume:c,muted:u,playbackRate:d})})),i.media||500))),l=[ow("play",s(0),a),ow("pause",s(1),a),ow("seeked",s(2),a),ow("volumechange",s(3),a),ow("ratechange",s(4),a)];return Hw((()=>{l.forEach((e=>e()))}))}(e),u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:Hw(((r,o,i)=>{const[a,s]=i,{id:l,styleId:c}=rS(o,t,n.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:a,index:s}]}),r.apply(o,i)}))});const i=r.CSSStyleSheet.prototype.deleteRule;let a,s;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:Hw(((r,o,i)=>{const[a]=i,{id:s,styleId:l}=rS(o,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:a}]}),r.apply(o,i)}))}),r.CSSStyleSheet.prototype.replace&&(a=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:Hw(((r,o,i)=>{const[a]=i,{id:s,styleId:l}=rS(o,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replace:a}),r.apply(o,i)}))})),r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:Hw(((r,o,i)=>{const[a]=i,{id:s,styleId:l}=rS(o,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replaceSync:a}),r.apply(o,i)}))}));const l={};sS("CSSGroupingRule")?l.CSSGroupingRule=r.CSSGroupingRule:(sS("CSSMediaRule")&&(l.CSSMediaRule=r.CSSMediaRule),sS("CSSConditionRule")&&(l.CSSConditionRule=r.CSSConditionRule),sS("CSSSupportsRule")&&(l.CSSSupportsRule=r.CSSSupportsRule));const c={};return Object.entries(l).forEach((([r,o])=>{c[r]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(c[r].insertRule,{apply:Hw(((r,o,i)=>{const[a,s]=i,{id:l,styleId:c}=rS(o.parentStyleSheet,t,n.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:a,index:[...nS(o),s||0]}]}),r.apply(o,i)}))}),o.prototype.deleteRule=new Proxy(c[r].deleteRule,{apply:Hw(((r,o,i)=>{const[a]=i,{id:s,styleId:l}=rS(o.parentStyleSheet,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:[...nS(o),a]}]}),r.apply(o,i)}))})})),Hw((()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=i,a&&(r.CSSStyleSheet.prototype.replace=a),s&&(r.CSSStyleSheet.prototype.replaceSync=s),Object.entries(l).forEach((([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule}))}))}(e,{win:n}),d=oS(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:Hw(((o,a,s)=>{const[l,c,u]=s;if(n.has(l))return i.apply(a,[l,c,u]);const{id:d,styleId:p}=rS(Gw([a,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:l,value:c,priority:u},index:nS(a.parentRule)}),o.apply(a,s)}))});const a=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:Hw(((o,i,s)=>{const[l]=s;if(n.has(l))return a.apply(i,[l]);const{id:c,styleId:u}=rS(Gw([i,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,remove:{property:l},index:nS(i.parentRule)}),o.apply(i,s)}))}),Hw((()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=a}))}(e,{win:n}),f=e.collectFonts?function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,i=n.FontFace;n.FontFace=function(e,t,n){const r=new i(e,t,n);return o.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const a=cw(t.fonts,"add",(function(t){return function(n){return Iw(Hw((()=>{const t=o.get(n);t&&(e(t),o.delete(n))})),0),t.apply(this,[n])}}));return r.push((()=>{n.FontFace=i})),r.push(a),Hw((()=>{r.forEach((e=>e()))}))}(e):()=>{},h=function(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,selectionCb:a}=e;let s=!0;const l=Hw((()=>{const e=t.getSelection();if(!e||s&&Gw([e,"optionalAccess",e=>e.isCollapsed]))return;s=e.isCollapsed||!1;const l=[],c=e.rangeCount||0;for(let t=0;t<c;t++){const a=e.getRangeAt(t),{startContainer:s,startOffset:c,endContainer:u,endOffset:d}=a;mw(s,r,o,i,!0)||mw(u,r,o,i,!0)||l.push({start:n.getId(s),startOffset:c,end:n.getId(u),endOffset:d})}a({ranges:l})}));return l(),ow("selectionchange",l)}(e),m=function({doc:e,customElementCb:t}){const n=e.defaultView;if(!n||!n.customElements)return()=>{};const r=cw(n.customElements,"define",(function(e){return function(n,r,o){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,r,o])}}));return r}(e),g=[];for(const t of e.plugins)g.push(t.observer(t.callback,n,t.options));return Hw((()=>{Kw.forEach((e=>e.reset())),r.disconnect(),o(),i(),a(),s(),l(),c(),u(),d(),p(),f(),h(),m(),g.forEach((e=>e()))}))}function aS(e){return void 0!==window[e]}function sS(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class lS{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const o=n||this.getIdToRemoteIdMap(e),i=r||this.getRemoteIdToIdMap(e);let a=o.get(t);return a||(a=this.generateIdFn(),o.set(t,a),i.set(a,t)),a}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,n,r)))}getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const o=r.get(t);return o||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,n)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function cS(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=i(n)):"call"!==o&&"optionalCall"!==o||(n=i(((...e)=>n.call(t,...e))),t=void 0)}return n}class uS{constructor(){this.crossOriginIframeMirror=new lS(Db),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class dS{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new lS(Db),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new lS(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),cS([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case Rw.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:Rw.IncrementalSnapshot,data:{source:Ow.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Rw.Meta:case Rw.Load:case Rw.DomContentLoaded:return!1;case Rw.Plugin:return t;case Rw.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Rw.IncrementalSnapshot:switch(t.data.source){case Ow.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Ow.Drag:case Ow.TouchMove:case Ow.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Ow.ViewportResize:return!1;case Ow.MediaInteraction:case Ow.MouseInteraction:case Ow.Scroll:case Ow.CanvasMutation:case Ow.Input:return this.replaceIds(t.data,e,["id"]),t;case Ow.StyleSheetRule:case Ow.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Ow.Font:return t;case Ow.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case Ow.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),cS([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t((t=>{this.replaceStyleIds(t,e,["styleId"])}))]),t}}return!1}replace(e,t,n,r){for(const o of r)(Array.isArray(t[o])||"number"==typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(n,t[o]):t[o]=e.getId(n,t[o]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===wb.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class pS{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class fS{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!_b(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const n=Jw({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(Qw({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),Iw((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(oS({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(cw(e.prototype,"attachShadow",(function(e){return function(r){const o=e.call(this,r);return this.shadowRoot&&Tw(this)&&n.addShadowRoot(this.shadowRoot,t),o}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class hS{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class mS{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new _w,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},r=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:kb(e),index:t})))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class gS{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){!function(...e){Cw("requestAnimationFrame")(...e)}((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let yS,vS;const bS=new Tb;function wS(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:a=null,ignoreClass:s="rr-ignore",ignoreSelector:l=null,maskAllText:c=!1,maskTextClass:u="rr-mask",unmaskTextClass:d=null,maskTextSelector:p=null,unmaskTextSelector:f=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:y,maskAttributeFn:v,maskInputFn:b,maskTextFn:w,maxCanvasSize:S=null,packFn:_,sampling:E={},dataURLOptions:k={},mousemoveWait:T,recordCanvas:x=!1,recordCrossOriginIframes:C=!1,recordAfter:I=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:R=!1,collectFonts:O=!1,inlineImages:P=!1,plugins:A,keepIframeSrcFn:L=(()=>!1),ignoreCSSAttributes:N=new Set([]),errorHandler:M,onMutation:D,getCanvasManager:F}=e;$w(M);const j=!C||window.parent===window;let U=!1;if(!j)try{window.parent.document&&(U=!1)}catch(e){U=!0}if(j&&!t)throw new Error("emit function is required");void 0!==T&&void 0===E.mousemove&&(E.mousemove=T),bS.reset();const B=!0===m?{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,radio:!0,checkbox:!0}:void 0!==g?g:{},z=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};let q;!function(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),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let W=0;const $=e=>{for(const t of A||[])t.eventProcessor&&(e=t.eventProcessor(e));return _&&!U&&(e=_(e)),e};yS=(e,o)=>{const i=e;if(i.timestamp=uw(),!ab([Kw,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])||i.type===Rw.FullSnapshot||i.type===Rw.IncrementalSnapshot&&i.data.source===Ow.Mutation||Kw.forEach((e=>e.unfreeze())),j)ab([t,"optionalCall",e=>e($(i),o)]);else if(U){const e={type:"rrweb",event:$(i),origin:window.location.origin,isCheckout:o};window.parent.postMessage(e,"*")}if(i.type===Rw.FullSnapshot)q=i,W=0;else if(i.type===Rw.IncrementalSnapshot){if(i.data.source===Ow.Mutation&&i.data.isAttachIframe)return;W++;const e=r&&W>=r,t=n&&q&&i.timestamp-q.timestamp>n;(e||t)&&Z(!0)}};const V=e=>{yS({type:Rw.IncrementalSnapshot,data:{source:Ow.Mutation,...e}})},H=e=>yS({type:Rw.IncrementalSnapshot,data:{source:Ow.Scroll,...e}}),G=e=>yS({type:Rw.IncrementalSnapshot,data:{source:Ow.CanvasMutation,...e}}),K=new mS({mutationCb:V,adoptedStyleSheetCb:e=>yS({type:Rw.IncrementalSnapshot,data:{source:Ow.AdoptedStyleSheet,...e}})}),Y="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new uS:new dS({mirror:bS,mutationCb:V,stylesheetManager:K,recordCrossOriginIframes:C,wrappedEmit:yS});for(const e of A||[])e.getMirror&&e.getMirror({nodeMirror:bS,crossOriginIframeMirror:Y.crossOriginIframeMirror,crossOriginIframeStyleMirror:Y.crossOriginIframeStyleMirror});const J=new gS,X=function(e,t){try{return e?e(t):new hS}catch(e){return console.warn("Unable to initialize CanvasManager"),new hS}}(F,{mirror:bS,win:window,mutationCb:e=>yS({type:Rw.IncrementalSnapshot,data:{source:Ow.CanvasMutation,...e}}),recordCanvas:x,blockClass:o,blockSelector:i,unblockSelector:a,maxCanvasSize:S,sampling:E.canvas,dataURLOptions:k,errorHandler:M}),Q="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new pS:new fS({mutationCb:V,scrollCb:H,bypassOptions:{onMutation:D,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:B,dataURLOptions:k,maskAttributeFn:v,maskTextFn:w,maskInputFn:b,recordCanvas:x,inlineImages:P,sampling:E,slimDOMOptions:z,iframeManager:Y,stylesheetManager:K,canvasManager:X,keepIframeSrcFn:L,processedNodeManager:J},mirror:bS}),Z=(e=!1)=>{yS({type:Rw.Meta,data:{href:window.location.href,width:fw(),height:pw()}},e),K.reset(),Q.init(),Kw.forEach((e=>e.lock()));const t=function(e,t){const{mirror:n=new Tb,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:i=null,maskAllText:a=!1,maskTextClass:s="rr-mask",unmaskTextClass:l=null,maskTextSelector:c=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:f=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:v=!1,dataURLOptions:b,preserveWhiteSpace:w,onSerialize:S,onIframeLoad:_,iframeLoadTimeout:E,onStylesheetLoad:k,stylesheetLoadTimeout:T,keepIframeSrcFn:x=(()=>!1)}=t||{};return nw(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:s,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{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}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:b,inlineImages:p,recordCanvas:f,preserveWhiteSpace:w,onSerialize:S,onIframeLoad:_,iframeLoadTimeout:E,onStylesheetLoad:k,stylesheetLoadTimeout:T,keepIframeSrcFn:x,newlyAddedElement:!1})}(document,{mirror:bS,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:h,maskAllInputs:B,maskAttributeFn:v,maskInputFn:b,maskTextFn:w,slimDOM:z,dataURLOptions:k,recordCanvas:x,inlineImages:P,onSerialize:e=>{bw(e,bS)&&Y.addIframe(e),ww(e,bS)&&K.trackLinkElement(e),Sw(e)&&Q.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Y.attachIframe(e,t),Q.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{K.attachLinkElement(e,t)},keepIframeSrcFn:L});if(!t)return console.warn("Failed to snapshot the document");yS({type:Rw.FullSnapshot,data:{node:t,initialOffset:dw(window)}}),Kw.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&K.adoptStyleSheets(document.adoptedStyleSheets,bS.getId(document))};vS=Z;try{const e=[],t=e=>Hw(iS)({onMutation:D,mutationCb:V,mousemoveCb:(e,t)=>yS({type:Rw.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>yS({type:Rw.IncrementalSnapshot,data:{source:Ow.MouseInteraction,...e}}),scrollCb:H,viewportResizeCb:e=>yS({type:Rw.IncrementalSnapshot,data:{source:Ow.ViewportResize,...e}}),inputCb:e=>yS({type:Rw.IncrementalSnapshot,data:{source:Ow.Input,...e}}),mediaInteractionCb:e=>yS({type:Rw.IncrementalSnapshot,data:{source:Ow.MediaInteraction,...e}}),styleSheetRuleCb:e=>yS({type:Rw.IncrementalSnapshot,data:{source:Ow.StyleSheetRule,...e}}),styleDeclarationCb:e=>yS({type:Rw.IncrementalSnapshot,data:{source:Ow.StyleDeclaration,...e}}),canvasMutationCb:G,fontCb:e=>yS({type:Rw.IncrementalSnapshot,data:{source:Ow.Font,...e}}),selectionCb:e=>{yS({type:Rw.IncrementalSnapshot,data:{source:Ow.Selection,...e}})},customElementCb:e=>{yS({type:Rw.IncrementalSnapshot,data:{source:Ow.CustomElement,...e}})},blockClass:o,ignoreClass:s,ignoreSelector:l,maskAllText:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,maskInputOptions:B,inlineStylesheet:h,sampling:E,recordCanvas:x,inlineImages:P,userTriggeredOnInput:R,collectFonts:O,doc:e,maskAttributeFn:v,maskInputFn:b,maskTextFn:w,keepIframeSrcFn:L,blockSelector:i,unblockSelector:a,slimDOMOptions:z,dataURLOptions:k,mirror:bS,iframeManager:Y,stylesheetManager:K,shadowDomManager:Q,processedNodeManager:J,canvasManager:X,ignoreCSSAttributes:N,plugins:ab([A,"optionalAccess",e=>e.filter,"call",e=>e((e=>e.observer)),"optionalAccess",e=>e.map,"call",e=>e((e=>({observer:e.observer,options:e.options,callback:t=>yS({type:Rw.Plugin,data:{plugin:e.name,payload:t}})})))])||[]},{});Y.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}));const n=()=>{Z(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(ow("DOMContentLoaded",(()=>{yS({type:Rw.DomContentLoaded,data:{}}),"DOMContentLoaded"===I&&n()}))),e.push(ow("load",(()=>{yS({type:Rw.Load,data:{}}),"load"===I&&n()}),window))),()=>{e.forEach((e=>e())),J.destroy(),vS=void 0,Vw()}}catch(e){console.warn(e)}}wS.mirror=bS,wS.takeFullSnapshot=function(e){if(!vS)throw new Error("please take full snapshot after start recording");vS(e)};const SS=3;function _S(e){return e>9999999999?e:1e3*e}function ES(e){return e>9999999999?e/1e3:e}function kS(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:Rw.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:Jf(t,10,1e3)}}),"console"===t.category))))}const TS="button,a";function xS(e){return e.closest(TS)||e}function CS(e){const t=IS(e);return t&&t instanceof Element?xS(t):t}function IS(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let RS;function OS(e){return RS||(RS=[],Fp(db,"open",(function(e){return function(...t){if(RS)try{RS.forEach((e=>e()))}catch(e){}return e.apply(db,t)}}))),RS.push(e),()=>{const t=RS?RS.indexOf(e):-1;t>-1&&RS.splice(t,1)}}class PS{constructor(e,t,n=kS){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=OS((()=>{this._lastMutation=LS()}));this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){if(!AS.includes(e.tagName))return!0;if("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||""))return!0;if("A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))return!0;if(t&&e.matches(t))return!0;return!1}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const n={timestamp:ES(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=ES(e)}registerScroll(e=Date.now()){this._lastScroll=ES(e)}registerClick(e){const t=xS(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=LS();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}));for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,o=!n&&!r,{clickCount:i,clickBreadcrumb:a}=e;if(o){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:db.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:i||1}};this._addBreadcrumbEvent(t,o)}else if(i>1){const e={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:db.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=ay((()=>this._checkClicks()),1e3)}}const AS=["A","BUTTON","INPUT"];function LS(){return Date.now()/1e3}function NS(e,t){try{if(!function(e){return e.type===SS}(t))return;const{source:n}=t.data;if(n===Ow.Mutation&&e.registerMutation(t.timestamp),n===Ow.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===Ow.MouseInteraction}(t)){const{type:n,id:r}=t.data,o=wS.mirror.getNode(r);o instanceof HTMLElement&&n===Pw.Click&&e.registerClick(o)}}catch(e){}}function MS(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var DS;!function(e){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"}(DS||(DS={}));const FS=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function jS(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(FS.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}const US=e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,r=null;try{r=t?CS(e.event):IS(e.event),n=Op(r,{maxStringLength:200})||"<unknown>"}catch(e){n="<unknown>"}return{target:r,message:n}}(e);return MS({category:`ui.${e.name}`,...BS(t,n)})}(t);if(!n)return;const r="click"===t.name,o=r?t.event:void 0;var i,a,s;!(r&&e.clickDetector&&o&&o.target)||o.altKey||o.metaKey||o.ctrlKey||o.shiftKey||(i=e.clickDetector,a=n,s=CS(t.event),i.handleClick(a,s)),kS(e,n)};function BS(e,t){const n=wS.mirror.getId(e),r=n&&wS.mirror.getNode(n),o=r&&wS.mirror.getMeta(r),i=o&&function(e){return e.type===DS.Element}(o)?o:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map((e=>e.type===DS.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:jS(i.attributes)}}:{}}}function zS(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i,target:a}=e;if(!a||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(a)||!i)return null;const s=t||r||o,l=1===i.length;if(!s&&l)return null;const c=Op(a,{maxStringLength:200})||"<unknown>",u=BS(a,c);return MS({category:"ui.keyDown",message:c,data:{...u.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i}})}(t);n&&kS(e,n)}const qS={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:i,decodedBodySize:a,encodedBodySize:s,responseStatus:l,transferSize:c}=e;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:`${t}.${n}`,start:$S(i),end:$S(o),name:r,data:{size:c,statusCode:l,decodedBodySize:a,encodedBodySize:s}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:o}=e,i=$S(o);return{type:n,name:r,start:i,end:i+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:i,encodedBodySize:a,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,domInteractive:c,loadEventStart:u,loadEventEnd:d,redirectCount:p,startTime:f,transferSize:h,type:m}=e;if(0===o)return null;return{type:`${t}.${m}`,start:$S(f),end:$S(i),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:a,duration:o,domInteractive:c,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,loadEventStart:u,loadEventEnd:d,domComplete:i,redirectCount:p}}}};function WS(e){return qS[e.entryType]?qS[e.entryType](e):null}function $S(e){return((mf||db.performance.timeOrigin)+e)/1e3}function VS(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const r=[];return["navigation","paint","resource"].forEach((e=>{r.push(bv(e,n))})),r.push(vv((({metric:t})=>{e.replayPerformanceEntries.push(function(e){const t=e.entries,n=t[t.length-1],r=n?n.element:void 0,o=e.value,i=$S(o);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:i,end:i,data:{value:o,size:o,nodeId:r?wS.mirror.getId(r):void 0}}}(t))}))),()=>{r.forEach((e=>e()))}}const HS="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,GS='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(J)return J.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function KS(e,t){HS&&(hp.info(e),t&&JS(e))}function YS(e,t){HS&&(hp.info(e),t&&ay((()=>{JS(e)}),0))}function JS(e){gg({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}class XS extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class QS{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>yb)throw new XS;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?_S(e):null}}class ZS{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){KS("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,o)=>{const i=({data:t})=>{const a=t;if(a.method===e&&a.id===n){if(this._worker.removeEventListener("message",i),!a.success)return HS&&hp.error("[Replay]",a.response),void o(new Error("Error in compression worker"));r(a.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class e_{constructor(e){this._worker=new ZS(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=_S(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>yb?Promise.reject(new XS):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{HS&&hp.warn('[Replay] Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class t_{constructor(e){this._fallback=new QS,this._compression=new e_(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void KS("[Replay] Failed to load the compression worker, falling back to simple buffer")}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t}=this._fallback,n=[];for(const t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n)}catch(e){HS&&hp.warn("[Replay] Failed to add events when switching buffers.",e)}}}function n_({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const e=new Blob([GS]);return URL.createObjectURL(e)}();return""}();if(!t)return;KS("[Replay] Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new t_(n)}catch(e){KS("[Replay] Failed to create compression worker")}}(t);if(e)return e}return KS("[Replay] Using simple buffer"),new QS}function r_(){try{return"sessionStorage"in db&&!!db.sessionStorage}catch(e){return!1}}function o_(e){!function(){if(!r_())return;try{db.sessionStorage.removeItem(pb)}catch(e){}}(),e.session=void 0}function i_(e){return void 0!==e&&Math.random()<e}function a_(e){const t=Date.now();return{id:e.id||Hp(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function s_(e){if(r_())try{db.sessionStorage.setItem(pb,JSON.stringify(e))}catch(e){}}function l_({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const o=function(e,t){return i_(e)?"session":!!t&&"buffer"}(e,t),i=a_({sampled:o,previousSessionId:r});return n&&s_(i),i}function c_(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function u_(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return c_(e.started,t,r)||c_(e.lastActivity,n,r)}function d_(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!u_(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function p_({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:n,previousSessionId:r},o){const i=o.stickySession&&function(e){if(!r_())return null;try{const t=db.sessionStorage.getItem(pb);if(!t)return null;const n=JSON.parse(t);return YS("[Replay] Loading existing session",e),a_(n)}catch(e){return null}}(e);return i?d_(i,{sessionIdleExpire:t,maxReplayDuration:n})?(YS("[Replay] Session in sessionStorage is expired, creating new one..."),l_(o,{previousSessionId:i.id})):i:(YS("[Replay] Creating new session",e),l_(o,{previousSessionId:r}))}function f_(e,t,n){return!!m_(e,t)&&(h_(e,t,n),!0)}async function h_(e,t,n){if(!e.eventBuffer)return null;try{n&&"buffer"===e.recordingMode&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);const r=function(e,t){try{if("function"==typeof t&&function(e){return e.type===Rw.Custom}(e))return t(e)}catch(e){return HS&&hp.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",e),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!r)return;return await e.eventBuffer.addEvent(r)}catch(t){const n=t&&t instanceof XS?"addEventSizeExceeded":"addEvent";HS&&hp.error(t),await e.stop({reason:n});const r=Af();r&&r.recordDroppedEvent("internal_sdk_error","replay")}}function m_(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=_S(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(YS(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1))}function g_(e){return!e.type}function y_(e){return"transaction"===e.type}function v_(e){return"feedback"===e.type}function b_(e){return(t,n)=>{if(!e.isEnabled()||!g_(t)&&!y_(t))return;const r=n&&n.statusCode;!r||r<200||r>=300||(y_(t)?function(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,t):function(e,t){const n=e.getContext();t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id);if("buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();if("function"==typeof r&&!r(t))return;ay((()=>{e.sendBufferedReplayOrFlush()}))}(e,t))}}function w_(e){return t=>{e.isEnabled()&&g_(t)&&function(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0].value;if("string"!=typeof n)return;if(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i)){kS(e,MS({category:"replay.hydrate-error"}))}}(e,t)}}function S_(e){const t=Af();t&&t.on("beforeAddBreadcrumb",(t=>function(e,t){if(!e.isEnabled()||!__(t))return;const n=function(e){if(!__(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))return null;if("console"===e.category)return function(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return MS(e);let n=!1;const r=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>gb?(n=!0,`${e.slice(0,gb)}…`):e;if("object"==typeof e)try{const t=Jf(e,7);return JSON.stringify(t).length>gb?(n=!0,`${JSON.stringify(t,null,2).slice(0,gb)}…`):t}catch(e){}return e}));return MS({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e);return MS(e)}(t);n&&kS(e,n)}(e,t)))}function __(e){return!!e.category}function E_(e){return Object.assign(((t,n)=>{if(!e.isEnabled())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!g_(t)&&!y_(t)&&!v_(t))return t;if(!e.checkAndHandleExpiredSession())return t;if(v_(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:Rw.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}(e,t),t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length||!t.originalException||!t.originalException.__rrweb__)}(t,n)&&!e.getOptions()._experiments.captureExceptions)return HS&&hp.log("[Replay] Ignoring error from rrweb internals",t),null;const r=function(e,t){return"buffer"===e.recordingMode&&t.message!==hb&&!(!t.exception||t.type)&&i_(e.getOptions().errorSampleRate)}(e,t);return(r||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t}),{id:"Replay"})}function k_(e,t){return t.map((({type:t,start:n,end:r,name:o,data:i})=>{const a=e.throttledAddEvent({type:Rw.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:o,startTimestamp:n,endTimestamp:r,data:i}}});return"string"==typeof a?Promise.resolve(null):a}))}function T_(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(k_(e,[n]),!1))))}}function x_(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!HS||!e.getOptions()._experiments.traceInternals)&&sb(t,Af())}(e,t.name)||e.addUpdate((()=>(k_(e,[t]),!0))))}function C_(e){if(!e)return;const t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=M_(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function I_(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function R_(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[M_(e)];if(!e)return[void 0]}catch(t){return HS&&hp.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return HS&&hp.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function O_(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function P_(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:i,statusCode:a,request:s,response:l}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:$p({method:i,statusCode:a,request:s,response:l})}}function A_(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function L_(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:o,warnings:i}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>mb,n=function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){const t=e.slice(0,mb);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(e){}return{body:e}}(n);return r.body=o,i&&i.length>0&&(r._meta={warnings:i}),r}function N_(e,t){return Object.keys(e).reduce(((n,r)=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=e[r]),n}),{})}function M_(e){return new URLSearchParams(e).toString()}function D_(e,t){const n=function(e,t=db.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(db.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;if(!e.endsWith("/")&&r.endsWith("/"))return r.slice(0,-1);return r}(e);return Dp(n,t)}async function F_(e,t,n){try{const r=await async function(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r}=t,{url:a,method:s,status_code:l=0,request_body_size:c,response_body_size:u}=e.data,d=D_(a,n.networkDetailAllowUrls)&&!D_(a,n.networkDetailDenyUrls),p=d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const o=n?function(e,t){if(1===e.length&&"string"!=typeof e[0])return B_(e[0],t);if(2===e.length)return B_(e[1],t);return{}}(n,t):{};if(!e)return L_(o,r,void 0);const i=j_(n),[a,s]=R_(i),l=L_(o,r,a);if(s)return O_(l,s);return l}(n,t.input,c):A_(c),f=await async function(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,o){if(!e&&void 0!==o)return A_(o);const i=r?U_(r.headers,n):{};if(!r||!t&&void 0!==o)return L_(i,o,void 0);const[a,s]=await async function(e){const t=function(e){try{return e.clone()}catch(e){HS&&hp.warn("[Replay] Failed to clone response body",e)}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise(((t,n)=>{const r=ay((()=>n(new Error("Timeout while trying to read response body"))),500);(async function(e){return await e.text()})(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(r)))}))}(t);return[e]}catch(e){return HS&&hp.warn("[Replay] Failed to get text body from response",e),[void 0,"BODY_PARSE_ERROR"]}}(r),l=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:o}){try{const i=e&&e.length&&void 0===n?C_(e):n;return r?L_(o,i,t?e:void 0):A_(i)}catch(e){return HS&&hp.warn("[Replay] Failed to serialize response body",e),L_(o,n,void 0)}}(a,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:i});if(s)return O_(l,s);return l}(d,n,t.response,u);return{startTimestamp:o,endTimestamp:i,url:a,method:s,statusCode:l,request:p,response:f}}(e,t,n),o=P_("resource.fetch",r);x_(n.replay,o)}catch(e){HS&&hp.error("[Replay] Failed to capture fetch breadcrumb",e)}}function j_(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function U_(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function B_(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?U_(n,t):Array.isArray(n)?{}:N_(n,t):{}}async function z_(e,t,n){try{const r=function(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r,input:a,xhr:s}=t,{url:l,method:c,status_code:u=0,request_body_size:d,response_body_size:p}=e.data;if(!l)return null;if(!s||!D_(l,n.networkDetailAllowUrls)||D_(l,n.networkDetailDenyUrls)){return{startTimestamp:o,endTimestamp:i,url:l,method:c,statusCode:u,request:A_(d),response:A_(p)}}const f=s[pg],h=f?N_(f.request_headers,n.networkRequestHeaders):{},m=N_(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return e[n.toLowerCase()]=r,e}),{})}(s),n.networkResponseHeaders),[g,y]=n.networkCaptureBodies?R_(a):[void 0],[v,b]=n.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return HS&&hp.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return HS&&hp.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return HS&&hp.warn("[Replay] Failed to get xhr response body",...t),[void 0]}(s):[void 0],w=L_(h,d,g),S=L_(m,p,v);return{startTimestamp:o,endTimestamp:i,url:l,method:c,statusCode:u,request:y?O_(w,y):w,response:b?O_(S,b):S}}(e,t,n),o=P_("resource.xhr",r);x_(n.replay,o)}catch(e){HS&&hp.error("[Replay] Failed to capture xhr breadcrumb",e)}}function q_(e,t){const{xhr:n,input:r}=t;if(!n)return;const o=C_(r),i=n.getResponseHeader("content-length")?I_(n.getResponseHeader("content-length")):function(e,t){try{return C_("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch(e){return}}(n.response,n.responseType);void 0!==o&&(e.data.request_body_size=o),void 0!==i&&(e.data.response_body_size=i)}function W_(e){const t=Af();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:a}=e.getOptions(),s={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:a};t&&t.on("beforeAddBreadcrumb",((e,t)=>function(e,t,n){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(n)&&(q_(t,n),z_(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(n)&&(!function(e,t){const{input:n,response:r}=t,o=C_(n?j_(n):void 0),i=r?I_(r.headers.get("content-length")):void 0;void 0!==o&&(e.data.request_body_size=o),void 0!==i&&(e.data.response_body_size=i)}(t,n),F_(t,n,e))}catch(e){HS&&hp.warn("Error when enriching network breadcrumb")}}(s,e,t)))}catch(e){}}function $_(e){const t=Af();cg(US(e)),ym(T_(e)),S_(e),W_(e);const n=E_(e);var r;r=n,Of().addEventProcessor(r),t&&(t.on("beforeSendEvent",w_(e)),t.on("afterSendEvent",b_(e)),t.on("createDsc",(t=>{const n=e.getSessionId();if(n&&e.isEnabled()&&"session"===e.recordingMode){e.checkAndHandleExpiredSession()&&(t.replay_id=n)}})),t.on("spanStart",(t=>{e.lastActiveSpan=t})),t.on("spanEnd",(t=>{e.lastActiveSpan=t})),t.on("beforeSendFeedback",((t,n)=>{const r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)})))}function V_(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function H_(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(HS&&hp.warn("[Replay] Received replay event after session expired."));const o=r||!t;t=!0,e.clickDetector&&NS(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&o&&e.setInitialState(),!f_(e,n,o))return!0;if(!o)return!1;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;f_(e,function(e){const t=e.getOptions();return{type:Rw.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,o),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){const t=e.eventBuffer.getEarliestTimestamp();t&&(KS(`[Replay] Updating session start time to earliest event in buffer to ${new Date(t)}`,e.getOptions()._experiments.traceInternals),e.session.started=t,e.getOptions().stickySession&&s_(e.session))}return"session"===e.recordingMode&&e.flush(),!0}))}}async function G_({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:i}){const a=function({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:s,errorIds:l,traceIds:c,initialTimestamp:u}=r,d=Af(),p=Rf(),f=d&&d.getTransport(),h=d&&d.getDsn();if(!(d&&f&&h&&i.sampled))return eh({});const m={type:fb,replay_start_timestamp:u/1e3,timestamp:o/1e3,error_ids:l,trace_ids:c,urls:s,replay_id:t,segment_id:n,replay_type:i.sampled},g=await async function({client:e,scope:t,replayId:n,event:r}){const o={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,o);const i=await Jh(e.getOptions(),r,o,t,e,Of());if(!i)return null;i.platform=i.platform||"javascript";const a=e.getSdkMetadata(),{name:s,version:l}=a&&a.sdk||{};return i.sdk={...i.sdk,name:s||"sentry.javascript.unknown",version:l||"0.0.0"},i}({scope:p,client:d,replayId:t,event:m});if(!g)return d.recordDroppedEvent("event_processor","replay",m),KS("An event processor returned `null`, will not send event."),eh({});delete g.sdkProcessingMetadata;const y=function(e,t,n,r){return Em(Lm(e,Am(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(g,a,h,d.getOptions().tunnel);let v;try{v=await f.send(y)}catch(e){const t=new Error(hb);try{t.cause=e}catch(e){}throw t}if("number"==typeof v.statusCode&&(v.statusCode<200||v.statusCode>=300))throw new K_(v.statusCode);const b=uy({},v);if(cy(b,"replay"))throw new Y_(b);return v}class K_ extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class Y_ extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function J_(e,t={count:0,interval:5e3}){const{recordingData:n,options:r}=e;var o,i;if(n.length)try{return await G_(e),!0}catch(n){if(n instanceof K_||n instanceof Y_)throw n;if(o="Replays",i={_retryCount:t.count},Of().setContext(o,i),HS&&r._experiments&&r._experiments.captureExceptions&&em(n),t.count>=3){const e=new Error(`${hb} - max retries exceeded`);try{e.cause=n}catch(e){}throw e}return t.interval*=++t.count,new Promise(((n,r)=>{ay((async()=>{try{await J_(e,t),n(!0)}catch(e){r(e)}}),t.interval)}))}}const X_="__THROTTLED";function Q_(e,t,n){const r=new Map;let o=!1;return(...i)=>{const a=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach(((e,n)=>{n<t&&r.delete(n)}))})(a),[...r.values()].reduce(((e,t)=>e+t),0)>=t){const e=o;return o=!0,e?"__SKIPPED":X_}o=!1;const s=r.get(a)||0;return r.set(a,s+1),e(...i)}}class Z_{constructor({options:e,recordingOptions:t}){Z_.prototype.__init.call(this),Z_.prototype.__init2.call(this),Z_.prototype.__init3.call(this),Z_.prototype.__init4.call(this),Z_.prototype.__init5.call(this),Z_.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let r,o,i;const a=n&&n.maxWait?Math.max(n.maxWait,t):0;function s(){return l(),r=e(),r}function l(){void 0!==o&&clearTimeout(o),void 0!==i&&clearTimeout(i),o=i=void 0}function c(){return o&&clearTimeout(o),o=ay(s,t),a&&void 0===i&&(i=ay(s,a)),r}return c.cancel=l,c.flush=function(){return void 0!==o||void 0!==i?s():r},c}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=Q_(((e,t)=>function(e,t,n){return m_(e,t)?h_(e,t,n):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),o=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;o&&(this.clickDetector=new PS(this,o))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;this._requiresManualStart=r,r||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",YS(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");YS("[Replay] Starting replay in session mode",this._options._experiments.traceInternals),this._updateUserActivity();const e=p_({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");YS("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const e=p_({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=wS({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:H_(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{KS("[Replay] Stopping Replay"+(t?` triggered by ${t}`:""),this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,o_(this)}catch(e){this._handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),KS("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),KS("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();KS("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&c_(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${db.location.pathname}${db.location.hash}${db.location.search}`,t=`${db.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===X_){const e=MS({category:"replay.throttled"});this.addUpdate((()=>!f_(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastActiveSpan||qh(),t=e&&zh(e),n=(t&&Nh(t).data||{})[oh];if(t&&n&&["route","custom"].includes(n))return Nh(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=n_({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){HS&&hp.error("[Replay]",e),HS&&this._options._experiments&&this._options._experiments.captureExceptions&&em(e)}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=p_({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!d_(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{db.document.addEventListener("visibilitychange",this._handleVisibilityChange),db.addEventListener("blur",this._handleWindowBlur),db.addEventListener("focus",this._handleWindowFocus),db.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||($_(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=VS(this)}_removeListeners(){try{db.document.removeEventListener("visibilitychange",this._handleVisibilityChange),db.removeEventListener("blur",this._handleWindowBlur),db.removeEventListener("focus",this._handleWindowFocus),db.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===db.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=MS({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=MS({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{zS(this,e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;u_(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):KS("[Replay] Document has become active, but session has expired")}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:Rw.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){const e=(t=this.performanceEntries,t.map(WS).filter(Boolean)).concat(this.replayPerformanceEntries);var t;return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(k_(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await async function(e){try{return Promise.all(k_(e,[V_(db.performance.memory)]))}catch(e){return[]}}(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await J_({replayId:e,recordingData:o,segmentId:r,eventContext:n,session:this.session,options:this.getOptions(),timestamp:t})}catch(e){this._handleException(e),this.stop({reason:"sendReplay"});const t=Af();t&&t.recordDroppedEvent("send_error","replay")}}else HS&&hp.error("[Replay] No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(HS&&hp.error("[Replay] Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,o=n>this._options.maxReplayDuration+5e3;if(r||o)return KS(`[Replay] Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),void(r&&this._debouncedFlush());const i=this.eventBuffer;if(i&&0===this.session.segmentId&&!i.hasCheckout&&KS("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock)return this._flushLock=this._runFlush(),await this._flushLock,void(this._flushLock=void 0);try{await this._flushLock}catch(e){HS&&hp.error(e)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&s_(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,n=this._options.mutationLimit,r=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||r){const e=MS({category:"replay.mutations",data:{count:t,limit:r}});this._createCustomBreadcrumb(e)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function eE(e,t){return[...e,...t].join(",")}const tE='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',nE=["content-length","content-type","accept"];let rE=!1;class oE{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:o=!0,useCompression:i=!0,workerUrl:a,_experiments:s={},maskAllText:l=!0,maskAllInputs:c=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:f=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:y=!0,networkRequestHeaders:v=[],networkResponseHeaders:b=[],mask:w=[],maskAttributes:S=["title","placeholder"],unmask:_=[],block:E=[],unblock:k=[],ignore:T=[],maskFn:x,beforeAddRecordingEvent:C,beforeErrorSampling:I}={}){this.name=oE.id;const R=function({mask:e,unmask:t,block:n,unblock:r,ignore:o}){return{maskTextSelector:eE(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:eE(t,[]),blockSelector:eE(n,[".sentry-block","[data-sentry-block]",'base[href="/"]']),unblockSelector:eE(r,[]),ignoreSelector:eE(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:w,unmask:_,block:E,unblock:k,ignore:T});if(this._recordingOptions={maskAllInputs:c,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:x,maskInputFn:x,maskAttributeFn:(e,t,n)=>function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:i}){return r?o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?i:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i:i}({maskAttributes:S,maskAllText:l,privacyOptions:R,key:e,value:t,el:n}),...R,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,vb),stickySession:o,useCompression:i,workerUrl:a,blockAllMedia:u,maskAllInputs:c,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:f,slowClickIgnoreSelectors:h,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:y,networkRequestHeaders:iE(v),networkResponseHeaders:iE(b),beforeAddRecordingEvent:C,beforeErrorSampling:I,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${tE}`:tE),this._isInitialized&&ub())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return rE}set _isInitialized(e){rE=e}setupOnce(){ub()&&(this._setup(),setTimeout((()=>this._initialize())))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const e=function(e){const t=Af(),n=t&&t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...$p(e)};if(!n)return fp((()=>{console.warn("SDK client is not available.")})),r;const o=Um(n.replaysSessionSampleRate),i=Um(n.replaysOnErrorSampleRate);null==o&&null==i&&fp((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}));null!=o&&(r.sessionSampleRate=o);null!=i&&(r.errorSampleRate=i);return r}(this._initialOptions);this._replay=new Z_({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const e=Af().getIntegrationByName("ReplayCanvas");if(!e)return;this._replay._canvas=e.getOptions()}catch(e){}}}function iE(e){return[...nE,...e.map((e=>e.toLowerCase()))]}oE.__initStatic();!function(e={}){const t=function(e={}){return{defaultIntegrations:[af(),Mf(),Ig(),xg(),Ug(),Gg(),$f(),qg()],release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:eg.SENTRY_RELEASE&&eg.SENTRY_RELEASE.id?eg.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0,...e}}(e);if(function(){const e=eg[eg.chrome?"chrome":"browser"],t=e&&e.runtime&&e.runtime.id,n=eg.location&&eg.location.href||"",r=!!t&&eg===eg.top&&["chrome-extension:","moz-extension:","ms-browser-extension:"].some((e=>n.startsWith(`${e}//`)));return!!t&&!r}())return void fp((()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}));$m&&(sm()||hp.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:(r=t.stackParser||ey,Array.isArray(r)?Bf(...r):r),integrations:tf(t),transport:t.transport||fy};var r;Kf(og,n),t.autoSessionTracking&&function(){if(void 0===eg.document)return void($m&&hp.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));nm({ignoreDuration:!0}),im(),ym((({from:e,to:t})=>{void 0!==e&&e!==t&&(nm({ignoreDuration:!0}),im())}))}()}({dsn:"https://ba34b648e421b9a3574df9883d48d7fd@o354938.ingest.us.sentry.io/4507412430585856",integrations:[((e={})=>{Jv||(Jv=!0,Ng(Xv),Fg(Xv));const{enableInp:t,enableLongTask:n,_experiments:{enableInteractions:r},beforeStartSpan:o,idleTimeout:i,finalTimeout:a,childSpanTimeout:s,markBackgroundSpan:l,traceFetch:c,traceXHR:u,shouldCreateSpanForRequest:d,enableHTTPTimings:p,instrumentPageLoad:f,instrumentNavigation:h}={...ob,...e},m=jv();t&&qv(),n&&bv("longtask",(({entries:e})=>{for(const t of e){if(!qh())return;const e=Av(mf+t.startTime),n=Av(t.duration),r=ky({name:"Main UI thread blocked",op:"ui.long-task",startTime:e,attributes:{[sh]:"auto.ui.browser.metrics"}});r&&r.end(e+n)}})),r&&bv("event",(({entries:e})=>{for(const t of e){if(!qh())return;if("click"===t.name){const e=Av(mf+t.startTime),n=Av(t.duration),r={name:Op(t.target),op:`ui.interaction.${t.name}`,startTime:e,attributes:{[sh]:"auto.ui.browser.metrics"}},o=Ap(t.target);o&&(r.attributes["ui.component_name"]=o);const i=ky(r);i&&i.end(e+n)}}}));const g={name:void 0,source:void 0};function y(e,t){const n="pageload"===t.op,r=o?o(t):t,l=r.attributes||{};t.name!==r.name&&(l[oh]="custom",r.attributes=l),g.name=r.name,g.source=l[oh];const c=Yv(r,{idleTimeout:i,finalTimeout:a,childSpanTimeout:s,disableAutoFinish:n,beforeSpanEnd:e=>{m(),Uv(e)}});function u(){["interactive","complete"].includes(eg.document.readyState)&&e.emit("idleSpanEnableAutoFinish",c)}return n&&eg.document&&(eg.document.addEventListener("readystatechange",(()=>{u()})),u()),c}return{name:"BrowserTracing",afterAllSetup(e){let t,n=eg.location&&eg.location.href;e.on("startNavigationSpan",(n=>{Af()===e&&(t&&($m&&hp.log(`[Tracing] Finishing current root span with op: ${Nh(t).op}`),t.end()),t=y(e,{op:"navigation",...n}))})),e.on("startPageLoadSpan",((n,r={})=>{if(Af()!==e)return;t&&($m&&hp.log(`[Tracing] Finishing current root span with op: ${Nh(t).op}`),t.end());const o=wh(r.sentryTrace||ib("sentry-trace"),r.baggage||ib("baggage"));Rf().setPropagationContext(o),t=y(e,{op:"pageload",...n})})),e.on("spanEnd",(e=>{const t=Nh(e).op;if(e!==zh(e)||"navigation"!==t&&"pageload"!==t)return;const n=Rf(),r=n.getPropagationContext();n.setPropagationContext({...r,sampled:void 0!==r.sampled?r.sampled:Mh(e),dsc:r.dsc||Hh(e)})})),eg.location&&(f&&function(e,t,n){e.emit("startPageLoadSpan",t,n),Rf().setTransactionName(t.name);const r=qh();r&&Nh(r).op}(e,{name:eg.location.pathname,startTime:mf?mf/1e3:void 0,attributes:{[oh]:"url",[sh]:"auto.pageload.browser"}}),h&&ym((({to:t,from:r})=>{void 0===r&&n&&-1!==n.indexOf(t)?n=void 0:r!==t&&(n=void 0,function(e,t){Of().setPropagationContext(uf()),Rf().setPropagationContext(uf()),e.emit("startNavigationSpan",t),Rf().setTransactionName(t.name);const n=qh();n&&Nh(n).op}(e,{name:eg.location.pathname,attributes:{[oh]:"url",[sh]:"auto.navigation.browser"}}))}))),l&&(eg&&eg.document?eg.document.addEventListener("visibilitychange",(()=>{const e=qh();if(!e)return;const t=zh(e);if(eg.document.hidden&&t){const e="cancelled",{op:n,status:r}=Nh(t);$m&&hp.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:xh,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}})):$m&&hp.warn("[Tracing] Could not set up background tab detection due to lack of global document")),r&&function(e,t,n,r){let o;const i=()=>{const i="ui.action.click",a=qh(),s=a&&zh(a);if(s){const e=Nh(s).op;if(["navigation","pageload"].includes(e))return void($m&&hp.warn(`[Tracing] Did not create ${i} span because a pageload or navigation span is in progress.`))}o&&(o.setAttribute(lh,"interactionInterrupted"),o.end(),o=void 0),r.name?o=Yv({name:r.name,op:i,attributes:{[oh]:r.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:n}):$m&&hp.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`)};eg.document&&addEventListener("click",i,{once:!1,capture:!0})}(i,a,s,g),eb({traceFetch:c,traceXHR:u,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:d,enableHTTPTimings:p})}}})(),(e=>new oE(e))()],tracesSampleRate:.01,replaysSessionSampleRate:0,replaysOnErrorSampleRate:.03,ignoreErrors:[/^window.changeNetWork*/,"The player is buffering",/Cannot resume a closed AudioContext/,/signal is aborted without reason/,/AudioDestinationNode is not initialized/,/Can't find variable: fbq/],environment:"production"});o(21001);function aE(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let o=!0;return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];o&&(o=!1,setTimeout((()=>{o=!0,n.forEach((e=>e(...r)))}),e))}}const sE={targetNode:document.querySelector("#packages"),mobileTargetNode:document.querySelector("#price-pay-pro"),nodeUrl:"/pricing",mobileMenu:document.querySelector(".mobile-menu"),lineNode:document.querySelector(".announce"),headerNode:document.querySelector(".header"),topIndent:90,mobileScreenWidth:992},{mobileMenu:lE,headerNode:cE}=sE||{},uE=function(){let e=!0;return t=>{const{targetNode:n,mobileTargetNode:r,nodeUrl:o,topIndent:i}=t,a=window.innerWidth,s=a<=992;let l=0;e&&(l=a<=600?500:400,e=!1),n&&r?window.scroll({left:0,top:s?n.offsetTop+r.offsetTop+i+l:n.offsetTop-i,behavior:"smooth"}):window.location=o}}();let dE=0;const pE="announce--furled",fE="header--shifted-up",hE="mobile-menu--shifted-down",mE="announce--paused";if(!window.__OM__AnnounceLine){const e=function(){const e={},t=aE(120,(function(t){if(t&&t.preventDefault(),!cE||!e.node||!lE)return;const n=window.scrollY>=0?window.scrollY:0;if(n>=e.node.getBoundingClientRect().top+n&&n>dE){if(dE=n,e.node.classList.contains(pE))return;return e.node.classList.add(pE),e.node.classList.add(mE),cE.classList.add(fE),void lE.classList.add(hE)}dE=n,e.node.classList.contains(pE)&&(e.node.classList.remove(pE),e.node.classList.remove(mE),cE.classList.remove(fE),lE.classList.remove(hE))}));function n(){!function(){const e=document.querySelector("#first-tab-button"),t=document.querySelector("#second-tab-button");e&&t&&(e.checked=!0,t.checked="")}(),uE(sE),dataLayer.push({event:"sale_item_click",item_type:"announce_line"})}return e.init=function(){e.node=document.querySelector(".announce"),window.innerWidth>991&&window.addEventListener("scroll",t),e.node&&e.node.addEventListener("click",n)},e.remove=function(){window.removeEventListener("scroll",t),e.node.removeEventListener("click",n),e.node.remove(),e.node=null,cE.classList.remove(fE)},e}();e.init(),window.__OM__AnnounceLine=e}const gE=document.querySelector(".header"),yE=gE.querySelector("#main-mobile-menu-checkbox"),vE=gE.querySelector("#main-article-menu"),bE=gE.querySelector(".mobile-menu__lang-selector_button"),wE=document.querySelector(".footer-lang-selector-btn-js"),SE=gE.querySelector(".mobile-menu__lang-selector"),_E=gE.querySelector(".mobile-menu__header_back-button"),EE=gE.querySelector(".js-header-logo"),kE=gE.querySelector(".mobile-menu-button__label"),TE=gE.querySelector(".header__logo_text"),xE=document.querySelector(".body"),CE=10,IE=766,RE="header--fix";function OE(e){e&&e.preventDefault();const t=window.scrollY,n=gE.classList.contains(RE),r=t>CE;r&&n||!r&&!n||(r?gE.classList.add(RE):gE.classList.remove(RE))}function PE(){vE&&vE.classList.toggle("article-menu__nav--hidden"),SE&&SE.classList.toggle("mobile-menu__lang-selector--show"),EE&&EE.classList.toggle("header__logo--hidden"),_E&&_E.classList.toggle("mobile-menu__header_back-button--show")}function AE(){window.innerWidth<=IE&&(yE.checked=!0,xE.classList.add("body--overflow"),vE&&vE.classList.add("article-menu__nav--hidden"),SE&&SE.classList.add("mobile-menu__lang-selector--show"),EE&&EE.classList.add("header__logo--hidden"),_E&&_E.classList.add("mobile-menu__header_back-button--show"))}OE(),function(){const e=document.querySelector(".body");[...document.querySelectorAll(".".concat("mobile-menu-button__checkbox"))].forEach((t=>null==t?void 0:t.addEventListener("change",(function(n){t.checked?e.classList.add("body--overflow"):e.classList.remove("body--overflow"),n.preventDefault()}))))}(),bE&&bE.addEventListener("click",PE),wE&&wE.addEventListener("click",AE),_E&&_E.addEventListener("click",PE),document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelector(".referral-invitation");if(e){const t={childList:!0};new MutationObserver((function(t){for(const n of t)"childList"===n.type&&e.querySelector(".referral-invitation__wrap")&&(kE.classList.add("mobile-menu-button__label--white"),TE.classList.add("header__logo_text--white"))})).observe(e,t)}}));const LE=Object.freeze({animationend:"animationend",click:"click",mouseenter:"mouseenter",mouseleave:"mouseleave",paste:"paste",scroll:"scroll",resize:"resize",change:"change"}),NE=Object.freeze({unknown:"",ios:"ios",android:"android",windows:"windows",macos:"macos",unix:"unix",linux:"linux"}),ME=Object.freeze({android:/android/i,ios:/iPhone|iPad|iPod/i,macos:/macintosh|mac os x/i,windows:/windows|win32/i,unix:/x11/i,linux:/linux/i}),DE=Object.freeze({[NE.ios]:"https://apps.apple.com/app/apple-store/id6448799140?pt=125490925&ct=smart_banner&mt=8",[NE.android]:"https://play.google.com/store/apps/details?id=com.omnisale.lalal.ai&utm_source=lalal&utm_medium=referral&utm_campaign=smart_banner"});const FE=".banner__closeButton",jE="#smart-banner",UE=".banner",BE=".banner__getLink";window.addEventListener("scroll",aE(100,OE)),window.addEventListener("load",(function(){try{const e=localStorage.getItem(Hr.SMART_BANNER_WAS_CLOSED_FLAG);if(JSON.parse(e))return;const t=function(){const e=navigator.userAgent.toLowerCase(),t=window.navigator.maxTouchPoints;return!window.MSStream&&!ME.unix.test(e)&&!ME.linux.test(e)&&t&&t>0||ME.ios.test(e)?NE.ios:ME.android.test(e)?NE.android:ME.macos.test(e)?NE.macos:ME.windows.test(e)?NE.windows:ME.unix.test(e)||ME.linux.test(e)?NE.unix:NE.unknown}();if(![NE.ios,NE.android].includes(t))return;const n=DE[t];if(!n)return;const r=function(e){try{const t=document.querySelector(jE);if(!t)throw new Error("There is no smart banner template");const n=t.content.cloneNode(!0);return n.querySelector(FE).addEventListener(LE.click,(function(){document.querySelector(UE).remove(),localStorage.setItem(Hr.SMART_BANNER_WAS_CLOSED_FLAG,"true")})),n.querySelector(BE).href=e,n}catch(e){console.warn(e)}}(n),o=document.querySelector(".suggestions");if(!o)throw new Error("There is no suggestions container");o.prepend(r)}catch(e){console.warn(e)}}))})()})();
//# sourceMappingURL=common-98278153d5a862c6d369.js.map