1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{48711:function(t,e,n){"use strict";n.d(e,{Z:function(){return $}});var r=function(){function t(t){var e=this;this._insertTag=function(t){var n;n=0===e.tags.length?e.insertionPoint?e.insertionPoint.nextSibling:e.prepend?e.container.firstChild:e.before:e.tags[e.tags.length-1].nextSibling,e.container.insertBefore(t,n),e.tags.push(t)},this.isSpeedy=void 0===t.speedy||t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(t){t.forEach(this._insertTag)},e.insert=function(t){if(this.ctr%(this.isSpeedy?65e3:1)==0){var e;this._insertTag(((e=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&e.setAttribute("nonce",this.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e))}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(n);try{r.insertRule(t,r.cssRules.length)}catch(t){}}else n.appendChild(document.createTextNode(t));this.ctr++}
vendor: 6,281 bytes, line 1
1,e.flush=function(){this.tags.forEach(function(t){var e;return null==(e=t.parentNode)?void 0:e.removeChild(t)}),this.tags=[],this.ctr=0},t}(),i=Math.abs,s=String.fromCharCode,o=Object.assign;function a(t,e,n){return t.replace(e,n)}function c(t,e){return t.indexOf(e)}function u(t,e){return 0|t.charCodeAt(e)}function l(t,e,n){return t.slice(e,n)}function d(t){return t.length}function h(t,e){return e.push(t),t}var f=1,p=1,m=0,g=0,y=0,v="";function _(t,e,n,r,i,s,o){return{value:t,root:e,parent:n,type:r,props:i,children:s,line:f,column:p,length:o,return:""}}function b(t,e){return o(_("",null,null,"",null,null,0),t,{length:-t.length},e)}function S(){return y=g<m?u(v,g++):0,p++,10===y&&(p=1,f++),y}function E(){return u(v,g)}function k(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function w(t){return f=p=1,m=d(v=t),g=0,[]}function x(t){var e,n;return(e=g-1,n=function t(e){for(;S();)switch(y){case e:return g;case 34:case 39:34!==e&&39!==e&&t(y);break;case 40:41===e&&t(e);break;case 92:S()}return g}(91===t?t+2:40===t?t+1:t),l(v,e,n)).trim()}var T="-ms-",C="-moz-",O="-webkit-",I="comm",R="rule",M="decl",A="@keyframes";function D(t,e){for(var n="",r=t.length,i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function P(t,e,n,r){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case M:return t.return=t.return||t.value;case I:return"";case A:return t.return=t.value+"{"+D(t.children,r)+"}";case R:t.value=t.props.join(",")}return d(n=D(t.children,r))?t.return=t.value+"{"+n+"}":""}function N(t,e,n,r,s,o,c,u,d,h,f){for(var p=s-1,m=0===s?o:[""],g=m.length,y=0,v=0,b=0;y<r;++y)for(var S=0,E=l(t,p+1,p=i(v=c[y])),k=t;S<g;++S)(k=(v>0?m[S]+" "+E:a(E,/&\f/g,m[S])).trim())&&(d[b++]=k);return _(t,e,n,0===s?R:u,d,h,f)}function L(t,e,n,r){return _(t,e,n,M,l(t,0,r),l(t,r+1,-1),r)}var j=function(t,e,n){for(var r=0,i=0;r=i,i=E(),38===r&&12===i&&(e[n]=1),!k(i);)S();return l(v,t,g)},F=function(t,e){var n=-1,r=44;do switch(k(r)){case 0:38===r&&12===E()&&(e[n]=1),t[n]+=j(g-1,e,n);break;case 2:t[n]+=x(r);break;case 4:if(44===r){t[++n]=58===E()?"&\f":"",e[n]=t[n].length;break}default:t[n]+=s(r)}while(r=S());return t},B=function(t,e){var n;return n=F(w(t),e),v="",n},U=new WeakMap,q=function(t){if("rule"===t.type&&t.parent&&!(t.length<1)){for(var e=t.value,n=t.parent,r=t.column===n.column&&t.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==t.props.length||58===e.charCodeAt(0)||U.get(n))&&!r){U.set(t,!0);for(var i=[],s=B(e,i),o=n.props,a=0,c=0;a<s.length;a++)for(var u=0;u<o.length;u++,c++)t.props[c]=i[a]?s[a].replace(/&\f/g,o[u]):o[u]+" "+s[a]}}},H=function(t){if("decl"===t.type){var e=t.value;108===e.charCodeAt(0)&&98===e.charCodeAt(2)&&(t.return="",t.value="")}},z=[function(t,e,n,r){if(t.length>-1&&!t.return)switch(t.type){case M:t.return=function t(e,n){switch(45^u(e,0)?(((n<<2^u(e,0))<<2^u(e,1))<<2^u(e,2))<<2^u(e,3):0){case 5103:return O+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return O+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return O+e+C+e+T+e+e;case 6828:case 4268:return O+e+T+e+e;case 6165:return O+e+T+"flex-"+e+e;case 5187:return O+e+a(e,/(\w+).+(:[^]+)/,O+"box-$1$2"+T+"flex-$1$2")+e;case 5443:return O+e+T+"flex-item-"+a(e,/flex-|-self/,"")+e;case 4675:return O+e+T+"flex-line-pack"+a(e,/align-content|flex-|-self/,"")+e;case 5548:return O+e+T+a(e,"shrink","negative")+e;case 5292:return O+e+T+a(e,"basis","preferred-size")+e;case 6060:return O+"box-"+a(e,"-grow","")+O+e+T+a(e,"grow","positive")+e;case 4554:return O+a(e,/([^-])(transform)/g,"$1"+O+"$2")+e;case 6187:return a(a(a(e,/(zoom-|grab)/,O+"$1"),/(image-set)/,O+"$1"),e,"")+e;case 5495:case 3959:return a(e,/(image-set\([^]*)/,O+"$1$`$1");case 4968:return a(a(e,/(.+:)(flex-)?(.*)/,O+"box-pack:$3"+T+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+O+e+e;case 4095:case 3583:case 4068:case 2532:return a(e,/(.+)-inline(.+)/,O+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(e)-1-n>6)switch(u(e,n+1)){case 109:if(45!==u(e,n+4))break;case 102:return a(e,/(.+:)(.+)-([^]+)/,"$1"+O+"$2-$3$1"+C+(108==u(e,n+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?t(a(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(115!==u(e,n+1))break;case 6444:switch(u(e,d(e)-3-(~c(e,"!important")&&10))){case 107:return a(e,":",":"+O)+e;case 101:return a(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+O+(45===u(e,14)?"inline-":"")+"box$3$1"+O+"$2$3$1"+T+"$2box$3")+e}break;case 5936:switch(u(e,n+11)){case 114:return O+e+T+a(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return O+e+T+a(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return O+e+T+a(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return O+e+T+e+e}return e}(t.value,t.length);break;case A:return D([b(t,{value:a(t.value,"@","@"+O)})],r);case R:if(t.length)return t.props.map(function(e){var n;switch(n=e,(n=/(::plac\w+|:read-\w+)/.exec(n))?n[0]:n){case":read-only":case":read-write":return D([b(t,{props:[a(e,/:(read-\w+)/,":"+C+"$1")]})],r);case"::placeholder":return D([b(t,{props:[a(e,/:(plac\w+)/,":"+O+"input-$1")]}),b(t,{props:[a(e,/:(plac\w+)/,":"+C+"$1")]}),b(t,{props:[a(e,/:(plac\w+)/,T+"input-$1")]})],r)}return""}).join("")}}],$=function(t){var e,n,i,o,m,b=t.key;if("css"===b){var T=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(T,function(t){-1!==t.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(t),t.setAttribute("data-s",""))})}var C=t.stylisPlugins||z,O={},R=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+b+' "]'),function(t){for(var e=t.getAttribute("data-emotion").split(" "),n=1;n<e.length;n++)O[e[n]]=!0;R.push(t)});var M=(n=(e=[q,H].concat(C,[P,(i=function(t){m.insert(t)},function(t){!t.root&&(t=t.return)&&i(t)})])).length,function(t,r,i,s){for(var o="",a=0;a<n;a++)o+=e[a](t,r,i,s)||"";return o}
1),A=function(t){var e,n;return D((n=function t(e,n,r,i,o,m,b,w,T){for(var C,O=0,R=0,M=b,A=0,D=0,P=0,j=1,F=1,B=1,U=0,q="",H=o,z=m,$=i,W=q;F;)switch(P=U,U=S()){case 40:if(108!=P&&58==u(W,M-1)){-1!=c(W+=a(x(U),"&","&\f"),"&\f")&&(B=-1);break}case 34:case 39:case 91:W+=x(U);break;case 9:case 10:case 13:case 32:W+=function(t){for(;y=E();)if(y<33)S();else break;return k(t)>2||k(y)>3?"":" "}(P);break;case 92:W+=function(t,e){for(var n;--e&&S()&&!(y<48)&&!(y>102)&&(!(y>57)||!(y<65))&&(!(y>70)||!(y<97)););return n=g+(e<6&&32==E()&&32==S()),l(v,t,n)}(g-1,7);continue;case 47:switch(E()){case 42:case 47:h(_(C=function(t,e){for(;S();)if(t+y===57)break;else if(t+y===84&&47===E())break;return"/*"+l(v,e,g-1)+"*"+s(47===t?t:S())}(S(),g),n,r,I,s(y),l(C,2,-2),0),T);break;default:W+="/"}break;case 123*j:w[O++]=d(W)*B;case 125*j:case 59:case 0:switch(U){case 0:case 125:F=0;case 59+R:-1==B&&(W=a(W,/\f/g,"")),D>0&&d(W)-M&&h(D>32?L(W+";",i,r,M-1):L(a(W," ","")+";",i,r,M-2),T);break;case 59:W+=";";default:if(h($=N(W,n,r,O,R,o,w,q,H=[],z=[],M),m),123===U){if(0===R)t(W,n,$,$,H,m,M,w,z);else switch(99===A&&110===u(W,3)?100:A){case 100:case 108:case 109:case 115:t(e,$,$,i&&h(N(e,$,$,0,0,o,w,q,o,H=[],M),z),o,z,M,w,i?H:z);break;default:t(W,$,$,$,[""],z,0,w,z)}}}O=R=D=0,j=B=1,q=W="",M=b;break;case 58:M=1+d(W),D=P;default:if(j<1){if(123==U)--j;else if(125==U&&0==j++&&125==(y=g>0?u(v,--g):0,p--,10===y&&(p=1,f--),y))continue}switch(W+=s(U),U*j){case 38:B=R>0?1:(W+="\f",-1);break;case 44:w[O++]=(d(W)-1)*B,B=1;break;case 64:45===E()&&(W+=x(S())),A=E(),R=M=d(q=W+=function(t){for(;!k(E());)S();return l(v,t,g)}(g)),U++;break;case 45:45===P&&2==d(W)&&(j=0)}}return m}("",null,null,null,[""],e=w(e=t),0,[0],e),v="",n),M)},j={key:b,sheet:new r({key:b,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:O,registered:{},insert:function(t,e,n,r){m=n,A(t?t+"{"+e.styles+"}":e.styles),r&&(j.inserted[e.name]=!0)}};return j.sheet.hydrate(R),j}},20442:function(t,e,n){"use strict";n.d(e,{E:function(){return _},T:function(){return h},a:function(){return p},c:function(){return y},h:function(){return m},w:function(){return d}});var r=n(67294),i=n(48711),s=n(87462),o=function(t){var e=new WeakMap;return function(n){if(e.has(n))return e.get(n);var r=t(n);return e.set(n,r),r}},a=n(70444),c=n(15953),u=n(27278),l=r.createContext("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null);l.Provider;var d=function(t){return(0,r.forwardRef)(function(e,n){return t(e,(0,r.useContext)(l),n)})},h=r.createContext({}),f=o(function(t){return o(function(e){return"function"==typeof e?e(t):(0,s.Z)({},t,e)})}),p=function(t){var e=r.useContext(h);return t.theme!==e&&(e=f(e)(t.theme)),r.createElement(h.Provider,{value:e},t.children)},m={}.hasOwnProperty,g="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",y=function(t,e){var n={};for(var r in e)m.call(e,r)&&(n[r]=e[r]);return n[g]=t,n},v=function(t){var e=t.cache,n=t.serialized,r=t.isStringTag;return(0,a.hC)(e,n,r),(0,u.L)(function(){return(0,a.My)(e,n,r)}),null},_=d(function(t,e,n){var i=t.css;"string"==typeof i&&void 0!==e.registered[i]&&(i=e.registered[i]);var s=t[g],o=[i],u="";"string"==typeof t.className?u=(0,a.fp)(e.registered,o,t.className):null!=t.className&&(u=t.className+" ");var l=(0,c.O)(o,void 0,r.useContext(h));u+=e.key+"-"+l.name;var d={};for(var f in t)m.call(t,f)&&"css"!==f&&f!==g&&(d[f]=t[f]);return d.className=u,n&&(d.ref=n),r.createElement(r.Fragment,null,r.createElement(v,{cache:e,serialized:l,isStringTag:"string"==typeof s}),r.createElement(s,d))})},70917:function(t,e,n){"use strict";n.d(e,{F4:function(){return f},xB:function(){return d}});var r,i,s=n(20442),o=n(67294),a=n(70444),c=n(27278),u=n(15953);n(48711),n(8679);var l=function(t,e){var n=arguments;if(null==e||!s.h.call(e,"css"))return o.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=s.E,i[1]=(0,s.c)(t,e);for(var a=2;a<r;a++)i[a]=n[a];return o.createElement.apply(null,i)};r=l||(l={}),i||(i=r.JSX||(r.JSX={}));var d=(0,s.w)(function(t,e){var n=t.styles,r=(0,u.O)([n],void 0,o.useContext(s.T)),i=o.useRef();return(0,c.j)(function(){var t=e.key+"-global",n=new e.sheet.constructor({key:t,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),s=!1,o=document.querySelector('style[data-emotion="'+t+" "+r.name+'"]');return e.sheet.tags.length&&(n.before=e.sheet.tags[0]),null!==o&&(s=!0,o.setAttribute("data-emotion",t),n.hydrate([o])),i.current=[n,s],function(){n.flush()}},[e]),(0,c.j)(function(){var t=i.current,n=t[0];if(t[1]){t[1]=!1;return}if(void 0!==r.next&&(0,a.My)(e,r.next,!0),n.tags.length){var s=n.tags[n.tags.length-1].nextElementSibling;n.before=s,n.flush()}e.insert("",r,n,!1)},[e,r.name]),null});function h(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return(0,u.O)(e)}function f(){var t=h.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},15953:function(t,e,n){"use strict";n.d(e,{O:function(){return p}});var r,i,s={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGr
1idRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,c=function(t){return 45===t.charCodeAt(1)},u=function(t){return null!=t&&"boolean"!=typeof t},l=(r=Object.create(null),function(t){return void 0===r[t]&&(r[t]=c(t)?t:t.replace(o,"-$&").toLowerCase()),r[t]}),d=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(a,function(t,e,n){return i={name:e,styles:n,next:i},e})}return 1===s[t]||c(t)||"number"!=typeof e||0===e?e:e+"px"};function h(t,e,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return i={name:n.name,styles:n.styles,next:i},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)i={name:r.name,styles:r.styles,next:i},r=r.next;return n.styles+";"}return function(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=h(t,e,n[i])+";";else for(var s in n){var o=n[s];if("object"!=typeof o)null!=e&&void 0!==e[o]?r+=s+"{"+e[o]+"}":u(o)&&(r+=l(s)+":"+d(s,o)+";");else if(Array.isArray(o)&&"string"==typeof o[0]&&(null==e||void 0===e[o[0]]))for(var a=0;a<o.length;a++)u(o[a])&&(r+=l(s)+":"+d(s,o[a])+";");else{var c=h(t,e,o);switch(s){case"animation":case"animationName":r+=l(s)+":"+c+";";break;default:r+=s+"{"+c+"}"}}}return r}(t,e,n);case"function":if(void 0!==t){var s=i,o=n(t);return i=s,h(t,e,o)}}if(null==e)return n;var a=e[n];return void 0!==a?a:n}var f=/label:\s*([^\s;{]+)\s*(;|$)/g;function p(t,e,n){if(1===t.length&&"object"==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var r,s=!0,o="";i=void 0;var a=t[0];null==a||void 0===a.raw?(s=!1,o+=h(n,e,a)):o+=a[0];for(var c=1;c<t.length;c++)o+=h(n,e,t[c]),s&&(o+=a[c]);f.lastIndex=0;for(var u="";null!==(r=f.exec(o));)u+="-"+r[1];return{name:function(t){for(var e,n=0,r=0,i=t.length;i>=4;++r,i-=4)e=(65535&(e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))*1540483477+((e>>>16)*59797<<16),e^=e>>>24,n=(65535&e)*1540483477+((e>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(i){case 3:n^=(255&t.charCodeAt(r+2))<<16;case 2:n^=(255&t.charCodeAt(r+1))<<8;case 1:n^=255&t.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(o)+u,styles:o,next:i}}},27278:function(t,e,n){"use strict";n.d(e,{L:function(){return o},j:function(){return a}});var r,i=n(67294),s=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,o=s||function(t){return t()},a=s||i.useLayoutEffect},70444:function(t,e,n){"use strict";function r(t,e,n){var r="";return n.split(" ").forEach(function(n){void 0!==t[n]?e.push(t[n]+";"):n&&(r+=n+" ")}),r}n.d(e,{My:function(){return s},fp:function(){return r},hC:function(){return i}});var i=function(t,e,n){var r=t.key+"-"+e.name;!1===n&&void 0===t.registered[r]&&(t.registered[r]=e.styles)},s=function(t,e,n){i(t,e,n);var r=t.key+"-"+e.name;if(void 0===t.inserted[e.name]){var s=e;do t.insert(e===s?"."+r:"",s,t.sheet,!0),s=s.next;while(void 0!==s)}}},3241:function(t,e,n){"use strict";n.d(e,{Me:function(){return tp},N4:function(){return tf},T1:function(){return th},O2:function(){return td},rZ:function(){return tl}});var r=n(67294),i=n(20442),s=n(70917);let o={dark:["#C1C2C5","#A6A7AB","#909296","#5c5f66","#373A40","#2C2E33","#25262b","#1A1B1E","#141517","#101113"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]};var a=Object.defineProperty,c=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,d=(t,e,n)=>e in t?a(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,h=(t,e)=>{for(var n in e||(e={}))u.call(e,n)&&d(t,n,e[n]);if(c)for(var n of c(e))l.call(e,n)&&d(t,n,e[n]);return t};function f(t){return e=>"number"==typeof t.primaryShade?t.primaryShade:t.primaryShade[e||t.colorScheme]}function p(t){let e=f(t);return(n,r,i=!0,s=!0)=>
1{if("string"==typeof n&&n.includes(".")){let[e,i]=n.split("."),o=parseInt(i,10);if(e in t.colors&&o>=0&&o<10)return t.colors[e]["number"!=typeof r||s?o:r]}let o="number"==typeof r?r:e();return n in t.colors?t.colors[n][o]:i?t.colors[t.primaryColor][o]:n}}function m(t){let e="";for(let n=1;n<t.length-1;n+=1)e+=`${t[n]} ${n/(t.length-1)*100}%, `;return`${t[0]} 0%, ${e}${t[t.length-1]} 100%`}function g(t){let e=p(t),n=f(t);return r=>{let i={from:(null==r?void 0:r.from)||t.defaultGradient.from,to:(null==r?void 0:r.to)||t.defaultGradient.to,deg:(null==r?void 0:r.deg)||t.defaultGradient.deg};return`linear-gradient(${i.deg}deg, ${e(i.from,n(),!1)} 0%, ${e(i.to,n(),!1)} 100%)`}}var y=n(58);function v(t){return/^#?([0-9A-F]{3}){1,2}$/i.test(t)?function(t){let e=t.replace("#","");if(3===e.length){let t=e.split("");e=[t[0],t[0],t[1],t[1],t[2],t[2]].join("")}let n=parseInt(e,16);return{r:n>>16&255,g:n>>8&255,b:255&n,a:1}}(t):t.startsWith("rgb")?function(t){let[e,n,r,i]=t.replace(/[^0-9,.]/g,"").split(",").map(Number);return{r:e,g:n,b:r,a:i||1}}(t):{r:0,g:0,b:0,a:1}}function _(t,e){if("string"!=typeof t||e>1||e<0)return"rgba(0, 0, 0, 1)";if(t.startsWith("var(--"))return t;let{r:n,g:r,b:i}=v(t);return`rgba(${n}, ${r}, ${i}, ${e})`}var b=n(96768);let S={fontStyles:function(t){return()=>({fontFamily:t.fontFamily||"sans-serif"})},themeColor:p,focusStyles:function(t){return e=>({WebkitTapHighlightColor:"transparent",[e||"&:focus"]:h({},"always"===t.focusRing||"auto"===t.focusRing?t.focusRingStyles.styles(t):t.focusRingStyles.resetStyles(t)),[e?e.replace(":focus",":focus:not(:focus-visible)"):"&:focus:not(:focus-visible)"]:h({},"auto"===t.focusRing||"never"===t.focusRing?t.focusRingStyles.resetStyles(t):null)})},linearGradient:function(t,...e){return`linear-gradient(${t}deg, ${m(e)})`},radialGradient:function(...t){return`radial-gradient(circle, ${m(t)})`},smallerThan:y.I4,largerThan:y.u4,rgba:_,cover:function(t=0){return{position:"absolute",top:(0,b.h)(t),right:(0,b.h)(t),left:(0,b.h)(t),bottom:(0,b.h)(t)}},darken:function(t,e){if("string"==typeof t&&t.startsWith("var(--"))return t;let{r:n,g:r,b:i,a:s}=v(t),o=1-e,a=t=>Math.round(t*o);return`rgba(${a(n)}, ${a(r)}, ${a(i)}, ${s})`},lighten:function(t,e){if("string"==typeof t&&t.startsWith("var(--"))return t;let{r:n,g:r,b:i,a:s}=v(t),o=t=>Math.round(t+(255-t)*e);return`rgba(${o(n)}, ${o(r)}, ${o(i)}, ${s})`},radius:function(t){return e=>{if("number"==typeof e)return(0,b.h)(e);let n="number"==typeof t.defaultRadius?t.defaultRadius:t.radius[t.defaultRadius]||t.defaultRadius;return t.radius[e]||e||n}},variant:function(t){let e=p(t),n=f(t),r=g(t);return({variant:i,color:s,gradient:o,primaryFallback:a})=>{let c=function(t,e){if("string"==typeof t&&t.includes(".")){let[n,r]=t.split("."),i=parseInt(r,10);if(n in e.colors&&i>=0&&i<10)return{isSplittedColor:!0,key:n,shade:i}}return{isSplittedColor:!1}}(s,t);switch(i){case"light":return{border:"transparent",background:_(e(s,"dark"===t.colorScheme?8:0,a,!1),"dark"===t.colorScheme?.2:1),color:"dark"===s?"dark"===t.colorScheme?t.colors.dark[0]:t.colors.dark[9]:e(s,"dark"===t.colorScheme?2:n("light")),hover:_(e(s,"dark"===t.colorScheme?7:1,a,!1),"dark"===t.colorScheme?.25:.65)};case"subtle":return{border:"transparent",background:"transparent",color:"dark"===s?"dark"===t.colorScheme?t.colors.dark[0]:t.colors.dark[9]:e(s,"dark"===t.colorScheme?2:n("light")),hover:_(e(s,"dark"===t.colorScheme?8:0,a,!1),"dark"===t.colorScheme?.2:1)};case"outline":return{border:e(s,"dark"===t.colorScheme?5:n("light")),background:"transparent",color:e(s,"dark"===t.colorScheme?5:n("light")),hover:"dark"===t.colorScheme?_(e(s,5,a,!1),.05):_(e(s,0,a,!1),.35)};case"default":return{border:"dark"===t.colorScheme?t.colors.dark[4]:t.colors.gray[4],background:"dark"===t.colorScheme?t.colors.dark[6]:t.white,color:"dark"===t.colorScheme?t.white:t.black,hover:"dark"===t.colorScheme?t.colors.dark[5]:t.colors.gray[0]};case"white":return{border:"transparent",background:t.white,color:e(s,n()),hover:null};case"transparent":return{border:"transparent",color:"dark"===s?"dark"===t.colorScheme?t.colors.dark[0]:t.colors.dark[9]:e(s,"dark"===t.colorScheme?2:n("light")),background:"transparent",hover:null};case"gradient":return{background:r(o),color:t.white,border:"transparent",hover:null};default:{let r=n(),i=c.isSplittedColor?c.shade:r,o=c.isSplittedColor?c.key:s;return{border:"transparent",background:e(o,i,a),color:t.white,hover:e(o,9===i?8:i+1)}}}}},primaryShade:f,hover:function(t){return{"@media (hover: hover)":{"&:hover":t},"@media (hover: none)":{"&:active":t}}},gradient:g,primaryColor:function(t){return e=>{let n=f(t)(e);return t.colors[t.primaryColor][n]}},placeholderStyles:function(t){return()=>({userSelect:"none",color:"dark"===t.colorScheme?t.colors.dark[3]:t.colors.gray[5]})},dimmed:function(t){return()=>"dark"===t.colorScheme?t.colors.dark[2]:t.colors.gray[6]}};var E=Object.defineProperty,k=Object.defineProperties,w=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,O=(t,e,n)=>e in t?E(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,I=(t,e)=>{for(var n in e||(e={}))T.call(e,n)&&O(t,n,e[n]);if(x)for(var n of x(e))C.call(e,n)&&O(t,n,e[n]);return t},R=(t,e)=>k(t,w(e));function M(t){return R(I({},t),{fn:{fontStyles:S.fontStyles(t),themeColor:S.themeColor(t),focusStyles:S.focusStyles(t),largerThan:S.largerThan(t),smallerThan:S.smallerThan(t),radialGradient:S.radialGradient,linearGradient:S.linearGradient,gradient:S.gradient(t),rgba:S.rgba,cover:S.cover,lighten:S.lighten,darken:S.darken,primaryShade:S.primaryShade(t),radius:S.radius(t),variant:S.variant(t),hover:S.hover,primaryColor:S.primaryColor(t),placeholderStyles:S.placeholderStyles(t),dimmed:S.dimmed(t)}})}Object.keys(o);let A=M({dir:"ltr",primaryShade:{light:6,dark:8},focusRing:"auto",loader:"oval",colorScheme:"light",white:"#fff",black:"#000",defaultRadius:"sm",transitionTimingFunction:"ease",colors:o,lineHeight:1.55,fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",primaryColor:"blue",respectReducedMotion:!0,cursorType:"default",defaultGradient:{from:"indigo",to:"cyan",deg:45},shadows:{xs:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.1)",sm:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 0.625rem 0.9375rem -0.3125rem, rgba(0, 0, 0, 0.04) 0 0.4375rem 0.4375rem -0.3125rem",md:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 1.25rem 1.5625rem -0.3125rem, rgba(0, 0, 0, 0.04) 0 0.625rem 0.625rem -0.3125rem",lg:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 1.75rem 1.4375rem -0.4375rem, rgba(0, 0, 0, 0.04) 0 0.75rem 0.75rem -0.4375rem",xl:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 2.25rem 1.75rem -0.4375rem, rgba(0, 0, 0, 0.04) 0 1.0625rem 1.0625rem -0.4375rem"},fontSizes:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem"},radius:{xs:"0.125rem",sm:"0.25rem",md:"0.5rem",lg:"1rem",xl:"2rem"},spacing:{xs:"0.625rem",sm:"0.75rem",md:"1rem",lg:"1.25rem",xl:"1.5rem"},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},headings:{fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontWeight:700,sizes:{h1:{fontSize:"2.125rem",lineHeight:1.3,fontWeight:void 0},h2:{fontSize:"1.625rem",lineHeight:1.35,fontWeight:void 0},h3:{fontSize:"1.375rem",lineHeight:1.4,fontWeight:void 0},h4:{fontSize:"1.125rem",lineHeight:1.45,fontWeight:void 0},h5:{fontSize:"1rem",lineHeight:1.5,fontWeight:void 0},h6:{fontSize:"0.875rem",lineHeight:1.5,fontWeight:void 0}}},other:{},components:{},activeStyles:{transform:"translateY(0.0625rem)"},datesLocale:"en",globalStyles:void 0,focusRingStyles:{styles:t=>({outlineOffset:"0.125rem",outline:`0.125rem solid ${t.colors[t.primaryColor]["dark"===t.colorScheme?7:5]}`}),resetStyles:()=>({outline:"none"}),inputStyles:t=>({outline:"none",borderColor:t.colors[t.primaryColor]["object"==typeof t.primaryShade?t.primaryShade[t.colorScheme]:t.primaryShade]})}});var D=Object.defineProperty,P=Object.defineProperties,N=Object.getOwnPropertyDescriptors,L=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable,B=(t,e,n)=>e in t?D(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,U=(t,e)=>{for(var n in e||(e={}))j.call(e,n)&&B(t,n,e[n]);if(L)for(var n of L(e))F.call(e,n)&&B(t,n,e[n]);return t},q=(t,e)=>P(t,N(e));function H({theme:t}){return r.createElement(s.xB,{styles:{"*, *::before, *::after":{boxSizing:"border-box"},html:{colorScheme:"dark"===t.colorScheme?"dark":"light"},body:q(U({},t.fn.fontStyles()),{backgroundColor:"dark"===t.colorScheme?t.colors.dark[7]:t.white,color:"dark"===t.colorScheme?t.colors.dark[0]:t.black,lineHeight:t.lineHeight,fontSize:t.fontSizes.md,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"})}})}function z(t,e,n,r=b.h){Object.keys(e).forEach(i=>
1{t[`--mantine-${n}-${i}`]=r(e[i])})}function $({theme:t}){let e={"--mantine-color-white":t.white,"--mantine-color-black":t.black,"--mantine-transition-timing-function":t.transitionTimingFunction,"--mantine-line-height":`${t.lineHeight}`,"--mantine-font-family":t.fontFamily,"--mantine-font-family-monospace":t.fontFamilyMonospace,"--mantine-font-family-headings":t.headings.fontFamily,"--mantine-heading-font-weight":`${t.headings.fontWeight}`};z(e,t.shadows,"shadow"),z(e,t.fontSizes,"font-size"),z(e,t.radius,"radius"),z(e,t.spacing,"spacing"),z(e,t.breakpoints,"breakpoints",b.em),Object.keys(t.colors).forEach(n=>{t.colors[n].forEach((t,r)=>{e[`--mantine-color-${n}-${r}`]=t})});let n=t.headings.sizes;return Object.keys(n).forEach(t=>{e[`--mantine-${t}-font-size`]=n[t].fontSize,e[`--mantine-${t}-line-height`]=`${n[t].lineHeight}`}),r.createElement(s.xB,{styles:{":root":e}})}var W=Object.defineProperty,Q=Object.defineProperties,G=Object.getOwnPropertyDescriptors,X=Object.getOwnPropertySymbols,J=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,V=(t,e,n)=>e in t?W(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,K=(t,e)=>{for(var n in e||(e={}))J.call(e,n)&&V(t,n,e[n]);if(X)for(var n of X(e))Z.call(e,n)&&V(t,n,e[n]);return t},Y=(t,e)=>Q(t,G(e)),tt=n(66896);let te={html:{fontFamily:"sans-serif",lineHeight:"1.15",textSizeAdjust:"100%"},body:{margin:0},"article, aside, footer, header, nav, section, figcaption, figure, main":{display:"block"},h1:{fontSize:"2em"},hr:{boxSizing:"content-box",height:0,overflow:"visible"},pre:{fontFamily:"monospace, monospace",fontSize:"1em"},a:{background:"transparent",textDecorationSkip:"objects"},"a:active, a:hover":{outlineWidth:0},"abbr[title]":{borderBottom:"none",textDecoration:"underline"},"b, strong":{fontWeight:"bolder"},"code, kbp, samp":{fontFamily:"monospace, monospace",fontSize:"1em"},dfn:{fontStyle:"italic"},mark:{backgroundColor:"#ff0",color:"#000"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sup:{top:"-0.5em"},sub:{bottom:"-0.25em"},"audio, video":{display:"inline-block"},"audio:not([controls])":{display:"none",height:0},img:{borderStyle:"none",verticalAlign:"middle"},"svg:not(:root)":{overflow:"hidden"},"button, input, optgroup, select, textarea":{fontFamily:"sans-serif",fontSize:"100%",lineHeight:"1.15",margin:0},"button, input":{overflow:"visible"},"button, select":{textTransform:"none"},"button, [type=reset], [type=submit]":{WebkitAppearance:"button"},"button::-moz-focus-inner, [type=button]::-moz-focus-inner, [type=reset]::-moz-focus-inner, [type=submit]::-moz-focus-inner":{borderStyle:"none",padding:0},"button:-moz-focusring, [type=button]:-moz-focusring, [type=reset]:-moz-focusring, [type=submit]:-moz-focusring":{outline:`${(0,b.h)(1)} dotted ButtonText`},legend:{boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:0,whiteSpace:"normal"},progress:{display:"inline-block",verticalAlign:"baseline"},textarea:{overflow:"auto"},"[type=checkbox], [type=radio]":{boxSizing:"border-box",padding:0},"[type=number]::-webkit-inner-spin-button, [type=number]::-webkit-outer-spin-button":{height:"auto"},"[type=search]":{appearance:"none"},"[type=search]::-webkit-search-cancel-button, [type=search]::-webkit-search-decoration":{appearance:"none"},"::-webkit-file-upload-button":{appearance:"button",font:"inherit"},"details, menu":{display:"block"},summary:{display:"list-item"},canvas:{display:"inline-block"},template:{display:"none"}};function tn(){return r.createElement(s.xB,{styles:te})}var tr=Object.defineProperty,ti=Object.getOwnPropertySymbols,ts=Object.prototype.hasOwnProperty,to=Object.prototype.propertyIsEnumerable,ta=(t,e,n)=>e in t?tr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,tc=(t,e)=>{for(var n in e||(e={}))ts.call(e,n)&&ta(t,n,e[n]);if(ti)for(var n of ti(e))to.call(e,n)&&ta(t,n,e[n]);return t};let tu=(0,r.createContext)({theme:A});function tl(){var t;return(null==(t=(0,r.useContext)(tu))?void 0:t.theme)||A}function td(t){let e=tl(),n=t=>{var n,r,i,s;return{styles:(null==(n=e.components[t])?void 0:n.styles)||{},classNames:(null==(r=e.components[t])?void 0:r.classNames)||{},variants:null==(i=e.components[t])?void 0:i.variants,sizes:null==(s=e.components[t])?void 0:s.sizes}};return Array.isArray(t)?t.map(n):[n(t)]}function th(){var t;return null==(t=(0,r.useContext)(tu))?void 0:t.emotionCache}function tf(t,e,n){var r;let i=tl(),s=null==(r=i.components[t])?void 0:r.defaultProps,o="function"==typeof s?s(i):s;return tc(tc(tc({},e),o),(0,tt.L)(n))}function tp({theme:t,emotionCache:e,withNormalizeCSS:n=!1,withGlobalStyles:o=!1,withCSSVariables:a=!1,inherit:c=!1,children:u}){let l=(0,r.useContext)(tu),d=M(function(t,e){var n;if(!e)return t;let r=Object.keys(t).reduce((n,r)=>{if("headings"===r&&e.headings){let r=e.headings.sizes?Object.keys(t.headings.sizes).reduce((n,r)=>(n[r]=K(K({},t.headings.sizes[r]),e.headings.sizes[r]),n),{}):t.headings.sizes;return Y(K({},n),{headings:Y(K(K({},t.headings),e.headings),{sizes:r})})}if("breakpoints"===r&&e.breakpoints){let r=K(K({},t.breakpoints),e.breakpoints);return Y(K({},n),{breakpoints:Object.fromEntries(Object.entries(r).sort((t,e)=>(0,y.oI)(t[1])-(0,y.oI)(e[1])))})}return n[r]="object"==typeof e[r]?K(K({},t[r]),e[r]):"number"==typeof e[r]||"boolean"==typeof e[r]||"function"==typeof e[r]?e[r]:e[r]||t[r],n},{});if((null==e?void 0:e.fontFamily)&&!(null==(n=null==e?void 0:e.headings)?void 0:n.fontFamily)&&(r.headings.fontFamily=e.fontFamily),!(r.primaryColor in r.colors))throw Error("MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more â https://mantine.dev/theming/colors/#primary-color");return r}(A,c?tc(tc({},l.theme),t):t));return r.createElement(i.a,{theme:d},r.createElement(tu.Provider,{value:{theme:d,emotionCache:e}},n&&r.createElement(tn,null),o&&r.createElement(H,{theme:d}),a&&r.createElement($,{theme:d}),"function"==typeof d.globalStyles&&r.createElement(s.xB,{styles:d.globalStyles(d)}),u))}tp.displayName="@mantine/core/MantineProvider"},58:function(t,e,n){"use strict";n.d(e,{I4:function(){return a},oI:function(){return s},u4:function(){return o}});var r=n(96768),i=n(14258);function s(t){return"number"==typeof t?t:"string"==typeof t&&t.includes("rem")?16*Number(t.replace("rem","")):"string"==typeof t&&t.includes("em")?16*Number(t.replace("em","")):Number(t)}function o(t){return e=>`@media (min-width: ${(0,r.em)(s((0,i.a)({size:e,sizes:t.breakpoints})))})`}function a(t){return e=>`@media (max-width: ${(0,r.em)(s((0,i.a)({size:e,sizes:t.breakpoints}))-1)})`}},66896:function(t,e,n){"use strict";function r(t){return Object.keys(t).reduce((e,n)=>(void 0!==t[n]&&(e[n]=t[n]),e),{})}n.d(e,{L:function(){return r}})},14258:function(t,e,n){"use strict";n.d(e,{a:function(){return i}});var r=n(96768);function i({size:t,sizes:e,units:n}){return t in e?e[t]:"number"==typeof t?"em"===n?(0,r.em)(t):(0,r.h)(t):t||e.md}},96768:function(t,e,n){"use strict";function r(t){return e=>{if("number"==typeof e)return`${e/16}${t}`;if("string"==typeof e){let n=e.replace("px","");if(!Number.isNaN(Number(n)))return`${Number(n)/16}${t}`}return e}}n.d(e,{em:function(){return s},h:function(){return i}});let i=r("rem"),s=r("em")},38296:function(t,e){"use strict";e.SX=void 0,e.SX=function(){window.dataLayer.push(arguments)}},8679:function(t,e,n){"use strict";var r=n(21296),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function c(t){return r.isMemo(t)?o:a[t.$$typeof]||i}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=o;var u=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;
1t.exports=function t(e,n,r){if("string"!=typeof n){if(p){var i=f(n);i&&i!==p&&t(e,i,r)}var o=l(n);d&&(o=o.concat(d(n)));for(var a=c(e),m=c(n),g=0;g<o.length;++g){var y=o[g];if(!s[y]&&!(r&&r[y])&&!(m&&m[y])&&!(a&&a[y])){var v=h(n,y);try{u(e,y,v)}catch(t){}}}}return e}},96103:function(t,e){"use strict";/** @license React v16.13.1 2 * react-is.production.min.js 3 * 4 * Copyright (c) Facebook, Inc. and its affiliates. 5 * 6 * This source code is licensed under the MIT license found in the 7 * LICENSE file in the root directory of this source tree. 8 */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,s=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,p=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,_=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function S(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case l:case d:case s:case a:case o:case f:return t;default:switch(t=t&&t.$$typeof){case u:case h:case g:case m:case c:return t;default:return e}}case i:return e}}}function E(t){return S(t)===d}e.AsyncMode=l,e.ConcurrentMode=d,e.ContextConsumer=u,e.ContextProvider=c,e.Element=r,e.ForwardRef=h,e.Fragment=s,e.Lazy=g,e.Memo=m,e.Portal=i,e.Profiler=a,e.StrictMode=o,e.Suspense=f,e.isAsyncMode=function(t){return E(t)||S(t)===l},e.isConcurrentMode=E,e.isContextConsumer=function(t){return S(t)===u},e.isContextProvider=function(t){return S(t)===c},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},e.isForwardRef=function(t){return S(t)===h},e.isFragment=function(t){return S(t)===s},e.isLazy=function(t){return S(t)===g},e.isMemo=function(t){return S(t)===m},e.isPortal=function(t){return S(t)===i},e.isProfiler=function(t){return S(t)===a},e.isStrictMode=function(t){return S(t)===o},e.isSuspense=function(t){return S(t)===f},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===s||t===d||t===a||t===o||t===f||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===g||t.$$typeof===m||t.$$typeof===c||t.$$typeof===u||t.$$typeof===h||t.$$typeof===v||t.$$typeof===_||t.$$typeof===b||t.$$typeof===y)},e.typeOf=S},21296:function(t,e,n){"use strict";t.exports=n(96103)},83454:function(t,e,n){"use strict";var r,i;t.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(77663)},6840:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(70035)}])},38179:function(t,e,n){"use strict";n.d(e,{J:function(){return r}});let r="production"},72281:function(t,e,n){"use strict";n.d(e,{X:function(){return r}});let r=!1},70556:function(t,e,n){"use strict";n.d(e,{RP:function(){return function t(e,n,r){let c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new i.cW((i,u)=>{let l=e[c];if(null===n||"function"!=typeof l)i(n);else{let d=l({...n},r);a.X&&l.id&&null===d&&s.kg.log('Event processor "'.concat(l.id,'" dropped event')),(0,o.J8)(d)?d.then(n=>t(e,n,r,c+1).then(i)).then(null,u):t(e,d,r,c+1).then(i).then(null,u)}})}},cc:function(){return u},fH:function(){return c}});var r=n(90021),i=n(37884),s=n(25120),o=n(22135),a=n(72281);function c(){return(0,r.Y)("globalEventProcessors",()=>[])}function u(t){c().push(t)}},30128:function(t,e,n){"use strict";n.d(e,{$e:function(){return p},Tb:function(){return l},cg:function(){return S},eN:function(){return d},nZ:function(){return y},n_:function(){return h},s3:function(){return g},v:function(){return f},yj:function(){return v},yl:function(){return m}});var r=n(25120),i=n(90021),s=n(38179),o=n(72281),a=n(33859),c=n(31261),u=n(82913);function l(t,e){return(0,a.Gd)().captureException(t,(0,u.U0)(e))}function d(t,e){return(0,a.Gd)().captureEvent(t,e)}function h(t,e){(0,a.Gd)().addBreadcrumb(t,e)}function f(t,e){(0,a.Gd)().setContext(t,e)}function p(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];let r=(0,a.Gd)();if(2===e.length){let[t,n]=e;return t?r.withScope(()=>(r.getStackTop().scope=t,n(t))):r.withScope(n)}return r.withScope(e[0])}async function m(t){let e=g();return e?e.flush(t):(o.X&&r.kg.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}function g(){return(0,a.Gd)().getClient()}function y(){return(0,a.Gd)().getScope()}function v(t){let e=g(),n=(0,a.aF)(),r=y(),{release:o,environment:u=s.J}=e&&e.getOptions()||{},{userAgent:l}=i.GLOBAL_OBJ.navigator||{},d=(0,c.Hv)({release:o,environment:u,user:r.getUser()||n.getUser(),...l&&{userAgent:l},...t}),h=n.getSession();return h&&"ok"===h.status&&(0,c.CT)(h,{status:"exited"}),_(),n.setSession(d),r.setSession(d),d}function _(){let t=(0,a.aF)(),e=y(),n=e.getSession()||t.getSession();n&&(0,c.RJ)(n),b(),t.setSession(),e.setSession()}function b(){let t=(0,a.aF)(),e=y(),n=g(),r=e.getSession()||t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function S(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t){_();return}b()}},33859:function(t,e,n){"use strict";n.d(e,{Gd:function(){return y},Ok:function(){return _},aF:function(){return v},cu:function(){return m}});var r=n(22135),i=n(78002),s=n(28754),o=n(25120),a=n(90021),c=n(38179),u=n(72281),l=n(19839),d=n(31261),h=n(16759);let f=parseFloat(h.J);class p{isOlderThan(t){return this._version<t}bindClient(t){let e=this.getStackTop();
8e.client=t,e.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){let t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(t){let e;let n=this.pushScope();try{e=t(n)}catch(t){throw this.popScope(),t}return(0,r.J8)(e)?e.then(t=>(this.popScope(),t),t=>{throw this.popScope(),t}):(this.popScope(),e)}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]}captureException(t,e){let n=this._lastEventId=e&&e.event_id?e.event_id:(0,i.DM)(),r=Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:r,...e,event_id:n}),n}captureMessage(t,e,n){let r=this._lastEventId=n&&n.event_id?n.event_id:(0,i.DM)(),s=Error(t);return this.getScope().captureMessage(t,e,{originalException:t,syntheticException:s,...n,event_id:r}),r}captureEvent(t,e){let n=e&&e.event_id?e.event_id:(0,i.DM)();return t.type||(this._lastEventId=n),this.getScope().captureEvent(t,{...e,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,e){let{scope:n,client:r}=this.getStackTop();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=100}=r.getOptions&&r.getOptions()||{};if(a<=0)return;let c=(0,s.yW)(),u={timestamp:c,...t},l=i?(0,o.Cf)(()=>i(u,e)):u;null!==l&&(r.emit&&r.emit("beforeAddBreadcrumb",l,e),n.addBreadcrumb(l,a))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,e){this.getScope().setTag(t,e),this.getIsolationScope().setTag(t,e)}setExtra(t,e){this.getScope().setExtra(t,e),this.getIsolationScope().setExtra(t,e)}setContext(t,e){this.getScope().setContext(t,e),this.getIsolationScope().setContext(t,e)}configureScope(t){let{scope:e,client:n}=this.getStackTop();n&&t(e)}run(t){let e=g(this);try{t(this)}finally{g(e)}}getIntegration(t){let e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return u.X&&o.kg.warn("Cannot retrieve integration ".concat(t.id," from the current Hub")),null}}startTransaction(t,e){let n=this._callExtensionMethod("startTransaction",t,e);if(u.X&&!n){let t=this.getClient();t?o.kg.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):o.kg.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t)return this.endSession();this._sendSessionUpdate()}endSession(){let t=this.getStackTop(),e=t.scope,n=e.getSession();n&&(0,d.RJ)(n),this._sendSessionUpdate(),e.setSession()}startSession(t){let{scope:e,client:n}=this.getStackTop(),{release:r,environment:i=c.J}=n&&n.getOptions()||{},{userAgent:s}=a.GLOBAL_OBJ.navigator||{},o=(0,d.Hv)({release:r,environment:i,user:e.getUser(),...s&&{userAgent:s},...t}),u=e.getSession&&e.getSession();return u&&"ok"===u.status&&(0,d.CT)(u,{status:"exited"}),this.endSession(),e.setSession(o),o}shouldSendDefaultPii(){let t=this.getClient(),e=t&&t.getOptions();return!!(e&&e.sendDefaultPii)}_sendSessionUpdate(){let{scope:t,client:e}=this.getStackTop(),n=t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}_callExtensionMethod(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let i=m(),s=i.__SENTRY__;if(s&&s.extensions&&"function"==typeof s.extensions[t])return s.extensions[t].apply(this,n);u.X&&o.kg.warn("Extension method ".concat(t," couldn't be found, doing nothing."))}constructor(t,e,n,r=f){let i,s;this._version=r,e?i=e:(i=new l.sX).setClient(t),n?s=n:(s=new l.sX).setClient(t),this._stack=[{scope:i}],t&&this.bindClient(t),this._isolationScope=s}}function m(){return a.GLOBAL_OBJ.__SENTRY__=a.GLOBAL_OBJ.__SENTRY__||{extensions:{},hub:void 0},a.GLOBAL_OBJ}function g(t){let e=m(),n=b(e);return S(e,t),n}function y(){let t=m();if(t.__SENTRY__&&t.__SENTRY__.acs){let e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m();return(!(t&&t.__SENTRY__&&t.__SENTRY__.hub)||b(t).isOlderThan(f))&&S(t,
8new p),b(t)}(t)}function v(){return y().getIsolationScope()}function _(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=m();return n.__SENTRY__&&n.__SENTRY__.acs?n.__SENTRY__.acs.runWithAsyncContext(t,e):t()}function b(t){return(0,a.Y)("hub",()=>new p,t)}function S(t,e){if(!t)return!1;let n=t.__SENTRY__=t.__SENTRY__||{};return n.hub=e,!0}},19839:function(t,e,n){"use strict";let r;n.d(e,{lW:function(){return h},sX:function(){return d}});var i=n(22135),s=n(28754),o=n(78002),a=n(25120),c=n(70556),u=n(31261),l=n(13065);class d{static clone(t){return t?t.clone():new d}clone(){let t=new d;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&(0,u.CT)(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let e="function"==typeof t?t(this):t;if(e instanceof d){let t=e.getScopeData();this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&Object.keys(t.user).length&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint.length&&(this._fingerprint=t.fingerprint),e.getRequestSession()&&(this._requestSession=e.getRequestSession()),t.propagationContext&&(this._propagationContext=t.propagationContext)}else(0,i.PO)(e)&&(this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext));return 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._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=f(),this}addBreadcrumb(t,e){let n="number"==typeof e?e:100;if(n<=0)return this;let r={timestamp:(0,s.yW)(),...t},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){let t=this.getScopeData();return t.attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){let{_breadcrumbs:t,_attachments:e,_contexts:n,_tags:r,_extra:i,_user:s,_level:o,_fingerprint:a,_eventProcessors:c,_propagationContext:u,_sdkProcessingMetadata:l,_transactionName:d,_span:h}=this;return{breadcrumbs:t,attachments:e,contexts:n,tags:r,extra:i,user:s,level:o,fingerprint:a||[],eventProcessors:c,prop
8agationContext:u,sdkProcessingMetadata:l,transactionName:d,span:h}}applyToEvent(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];(0,l.gi)(t,this.getScopeData());let r=[...n,...(0,c.fH)(),...this._eventProcessors];return(0,c.RP)(r,t,e)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){let n=e&&e.event_id?e.event_id:(0,o.DM)();if(!this._client)return a.kg.warn("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){let r=n&&n.event_id?n.event_id:(0,o.DM)();if(!this._client)return a.kg.warn("No client configured on scope - will not capture message!"),r;let i=Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureEvent(t,e){let n=e&&e.event_id?e.event_id:(0,o.DM)();return this._client?this._client.captureEvent(t,{...e,event_id:n},this):a.kg.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=f()}}function h(){return r||(r=new d),r}function f(){return{traceId:(0,o.DM)(),spanId:(0,o.DM)().substring(16)}}},31261:function(t,e,n){"use strict";n.d(e,{CT:function(){return a},Hv:function(){return o},RJ:function(){return c}});var r=n(28754),i=n(78002),s=n(49432);function o(t){let e=(0,r.ph)(),n={sid:(0,i.DM)(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>(0,s.Jr)({sid:"".concat(n.sid),init:n.init,started:new Date(1e3*n.started).toISOString(),timestamp:new Date(1e3*n.timestamp).toISOString(),status:n.status,errors:n.errors,did:"number"==typeof n.did||"string"==typeof n.did?"".concat(n.did):void 0,duration:n.duration,abnormal_mechanism:n.abnormal_mechanism,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})};return t&&a(n,t),n}function a(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e.user||(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||(0,r.ph)(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:(0,i.DM)()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did="".concat(e.did)),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{let e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function c(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),a(t,n)}},33762:function(t,e,n){"use strict";n.d(e,{_:function(){return c},j:function(){return u}});var r=n(49432),i=n(38179),s=n(30128),o=n(69390),a=n(89182);function c(t,e,n){let s=e.getOptions(),{publicKey:o}=e.getDsn()||{},{segment:a}=n&&n.getUser()||{},c=(0,r.Jr)({environment:s.environment||i.J,release:s.release,user_segment:a,public_key:o,trace_id:t});return e.emit&&e.emit("createDsc",c),c}function u(t){let e=(0,s.s3)();if(!e)return{};let n=c((0,a.XU)(t).trace_id||"",e,(0,s.nZ)()),r=(0,o.G)(t);if(!r)return n;let i=r&&r._frozenDynamicSamplingContext;if(i)return i;let{sampleRate:u,source:l}=r.metadata;null!=u&&(n.sample_rate="".concat(u));let d=(0,a.XU)(r);return l&&"url"!==l&&(n.transaction=d.description),n.sampled=String((0,a.Tt)(r)),e.emit&&e.emit("createDsc",n),n}},20349:function(t,e,n){"use strict";n.d(e,{HN:function(){return h},I1:function(){return y},qp:function(){return d},GK:function(){return l}});var r=n(49432),i=n(33859),s=n(89182),o=n(33762),a=n(30128),c=n(22135),u=n(96980);function l(t,e){let n=p(t);return(0,i.Ok)(()=>(0,a.$e)(t.scope,r=>{let o=(0,i.Gd)(),a=r.getSpan(),u=t.onlyIfParent&&!a,l=u?void 0:f(o,{parentSpan:a,spanContext:n,forceTransaction:t.forceTransaction,scope:r});return function(t,e){var n;let r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};try{r=t()}catch(t){throw e(t),i(),t}return n=r,(0,c.J8)(n)?n.then(t=>(i(),t),t=>{throw e(t),i(),t}):(i(),n)}(()=>e(l),()=>{if(l){let{status:t}=(0,s.XU)(l);t&&"ok"!==t||l.setStatus("internal_error")}},()=>l&&l.end())}))}function d(t){if(!(0,u.z)())return;let e=p(t),n=(0,i.Gd)(),r=t.scope?t.scope.getSpan():h(),s=t.onlyIfParent&&!r;if(s)return;let o=t.scope||(0,a.nZ)(),c=o.clone();return f(n,{parentSpan:r,spanContext:e,forceTransaction:t.forceTransaction,scope:c})}function h(){return(0,a.nZ)().getSpan()}function f(t,e){var n;let a,{parentSpan:c,spanContext:l,forceTransaction:d,scope:h}=e;if(!(0,u.z)())return;let f=(0,i.aF)();if(c&&!d)a=c.startChild(l);else if(c){let e=(0,o.j)(c),{traceId:n,spanId:r}=c.spanContext(),i=(0,s.Tt)(c);a=t.startTransaction({traceId:n,parentSpanId:r,parentSampled:i,...l,metadata:{dynamicSamplingContext:e,...l.metadata}})}else{let{traceId:e,dsc:n,parentSpanId:r,sampled:i}={...f.getPropagationContext(),...h.getPropagationContext()};a=t.startTransaction({traceId:e,parentSpanId:r,parentSampled:i,...l,metadata:{dynamicSamplingContext:n,...l.metadata}})}return h.setSpan(a),(n=a)&&((0,r.xp)(n,g,f),(0,r.xp)(n,m,h)),a}function p(t){if(t.startTime){let e={...t};return e.startTimestamp=(0,s.$k)(t.startTime),delete e.startTime,e}return t}let m="_sentryScope",g="_sentryIsolationScope";function y(t){return{scope:t[m],isolationScope:t[g]}}},13065:function(t,e,n){"use strict";n.d(e,{gi:function(){return c},yo:function(){return u}});var r=n(49432),i=n(78002),s=n(33762),o=n(69390),a=n(89182);function c(t,e){let{fingerprint:n,span:c,breadcrumbs:u,sdkProcessingMetadata:l}=e;(function(t,e){let{extra:n,tags:i,user:s,contexts:o,level:a,transactionName:c}=e,u=(0,r.Jr)(n);u&&Object.keys(u).length&&(t.extra={...u,...t.extra});let l=(0,r.Jr)(i);l&&Object.keys(l).length&&(t.tags={...l,...t.tags});let d=(0,r.Jr)(s);d&&Object.keys(d).length&&(t.user={...d,...t.user});let h=(0,r.Jr)(o);h&&Object.keys(h).length&&(t.contexts={...h,...t.contexts}),a&&(t.level=a),c&&(t.transaction=c)})(t,e),c&&function(t,e){t.contexts={trace:(0,a.wy)(e),...t.contexts};let n=(0,o.G)(e);if(n){t.sdkProcessingMetadata={dynamicSamplingContext:(0,s.j)(e),...t.sdkProcessingMetadata};let r=(0,a.XU)(n).description;r&&(t.tags={transaction:r,...t.tags})}}(t,c),t.fingerprint=t.fingerprint?(0,i.lE)(t.fingerprint):[],n&&(t.fingerprint=t.fingerprint.concat(n)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint,function(t,e){let n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,u),t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...l}}function u(t,e){let{extra:n,tags:r,user:i,contexts:s,level:o,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:d,attachments:h,propagationContext:f,transactionName:p,span:m}=e;l(t,"extra",n),l(t,"tags",r),l(t,"user",i),l(t,"contexts",s),l(t,"sdkProcessingMetadata",a),o&&(t.level=o),p&&(t.transactionName=p),m&&(t.span=m),c.length&&(t.breadcrumbs=[...t.breadcrumbs,...c]),u.length&&(t.fingerprint=[...t.fingerprint,...u]),d.length&&(t.eventProcessors=[...t.eventProcessors,...d]),h.length&&(t.attachments=[...t.attachments,...h]
8),t.propagationContext={...t.propagationContext,...f}}function l(t,e,n){if(n&&Object.keys(n).length)for(let r in t[e]={...t[e]},n)Object.prototype.hasOwnProperty.call(n,r)&&(t[e][r]=n[r])}},69390:function(t,e,n){"use strict";function r(t){return t.transaction}n.d(e,{G:function(){return r}})},96980:function(t,e,n){"use strict";n.d(e,{z:function(){return i}});var r=n(30128);function i(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let e=(0,r.s3)(),n=t||e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}},82913:function(t,e,n){"use strict";n.d(e,{R:function(){return f},U0:function(){return m}});var r=n(78002),i=n(28754),s=n(35086),o=n(90021),a=n(679),c=n(38179),u=n(70556),l=n(19839),d=n(13065),h=n(89182);function f(t,e,n,f,m,g){let{normalizeDepth:y=3,normalizeMaxBreadth:v=1e3}=t,_={...e,event_id:e.event_id||n.event_id||(0,r.DM)(),timestamp:e.timestamp||(0,i.yW)()},b=n.integrations||t.integrations.map(t=>t.name);(function(t,e){let{environment:n,release:r,dist:i,maxValueLength:o=250}=e;"environment"in t||(t.environment="environment"in e?n:c.J),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=(0,s.$G)(t.message,o));let a=t.exception&&t.exception.values&&t.exception.values[0];a&&a.value&&(a.value=(0,s.$G)(a.value,o));let u=t.request;u&&u.url&&(u.url=(0,s.$G)(u.url,o))})(_,t),b.length>0&&(_.sdk=_.sdk||{},_.sdk.integrations=[..._.sdk.integrations||[],...b]),void 0===e.type&&function(t,e){let n;let r=o.GLOBAL_OBJ._sentryDebugIds;if(!r)return;let i=p.get(e);i?n=i:(n=new Map,p.set(e,n));let s=Object.keys(r).reduce((t,i)=>{let s;let o=n.get(i);o?s=o:(s=e(i),n.set(i,s));for(let e=s.length-1;e>=0;e--){let n=s[e];if(n.filename){t[n.filename]=r[i];break}}return t},{});try{t.exception.values.forEach(t=>{t.stacktrace.frames.forEach(t=>{t.filename&&(t.debug_id=s[t.filename])})})}catch(t){}}(_,t.stackParser);let S=function(t,e){if(!e)return t;let n=t?t.clone():new l.sX;return n.update(e),n}(f,n.captureContext);n.mechanism&&(0,r.EG)(_,n.mechanism);let E=m&&m.getEventProcessors?m.getEventProcessors():[],k=(0,l.lW)().getScopeData();if(g){let t=g.getScopeData();(0,d.yo)(k,t)}if(S){let t=S.getScopeData();(0,d.yo)(k,t)}let w=[...n.attachments||[],...k.attachments];w.length&&(n.attachments=w),(0,d.gi)(_,k);let x=[...E,...(0,u.fH)(),...k.eventProcessors],T=(0,u.RP)(x,_,n);return T.then(t=>(t&&function(t){let e={};try{t.exception.values.forEach(t=>{t.stacktrace.frames.forEach(t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)})})}catch(t){}if(0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];let n=t.debug_meta.images;Object.keys(e).forEach(t=>{n.push({type:"sourcemap",code_file:t,debug_id:e[t]})})}(t),"number"==typeof y&&y>0)?function(t,e,n){if(!t)return null;let r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:(0,a.Fv)(t.data,e,n)}}))},...t.user&&{user:(0,a.Fv)(t.user,e,n)},...t.contexts&&{contexts:(0,a.Fv)(t.contexts,e,n)},...t.extra&&{extra:(0,a.Fv)(t.extra,e,n)}};return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=(0,a.Fv)(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(t=>{let r=(0,h.XU)(t).data;return r&&(t.data=(0,a.Fv)(r,e,n)),t})),r}(t,y,v):t)}let p=new WeakMap;function m(t){return t?t instanceof l.sX||"function"==typeof t||Object.keys(t).some(t=>g.includes(t))?{captureContext:t}:t:void 0}let g=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},89182:function(t,e,n){"use strict";n.d(e,{$k:function(){return l},Hb:function(){return u},Tt:function(){return f},XU:function(){return h},i0:function(){return a},ve:function(){return o},wy:function(){return c}});var r=n(49432),i=n(49210),s=n(28754);let o=0,a=1;function c(t){let{spanId:e,traceId:n}=t.spanContext(),{data:i,op:s,parent_span_id:o,status:a,tags:c,origin:u}=h(t);return(0,r.Jr)({data:i,op:s,parent_span_id:o,span_id:e,status:a,tags:c,trace_id:n,origin:u})}function u(t){let{traceId:e,spanId:n}=t.spanContext(),r=f(t);return(0,i.$p)(e,n,r)}function l(t){return"number"==typeof t?d(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?d(t.getTime()):(0,s.ph)()}function d(t){return t>9999999999?t/1e3:t}function h(t){return"function"==typeof t.getSpanJSON?t.getSpanJSON():"function"==typeof t.toJSON?t.toJSON():{}}function f(t){let{traceFlags:e}=t.spanContext();return!!(e&a)}},16759:function(t,e,n){"use strict";n.d(e,{J:function(){return r}});let r="7.120.4"},27221:function(t,e,n){"use strict";n.d(e,{X:function(){return r}});let r=!1},92386:function(t,e,n){"use strict";let r,i,s,o,a,c,u,l,d,h,f,p,m,g,y,v,_,b,S,E,k,w,x;var T,C,O,I,R,M,A,D,P,N,L={};n.r(L),n.d(L,{FunctionToString:function(){return te},InboundFilters:function(){return ta},LinkedErrors:function(){return tm}});var j={};n.r(j),n.d(j,{Breadcrumbs:function(){return em},Dedupe:function(){return ew},GlobalHandlers:function(){return t$},HttpContext:function(){return eS},LinkedErrors:function(){return ev},TryCatch:function(){return tZ}});var F=n(16759);function B(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[e],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"npm",i=t._metadata||{};i.sdk||(i.sdk={name:"sentry.javascript.".concat(e),packages:n.map(t=>({name:"".concat(r,":@sentry/").concat(t),version:F.J})),version:F.J}),t._metadata=i}
8var U=n(96980),q=n(49432),H=n(30128),z=n(78002),$=n(25120),W=n(72281),Q=n(70556),G=n(33859);let X=[];function J(t,e){for(let n of e)n&&n.afterAllSetup&&n.afterAllSetup(t)}function Z(t,e,n){if(n[e.name]){W.X&&$.kg.log("Integration skipped because it was already installed: ".concat(e.name));return}if(n[e.name]=e,-1===X.indexOf(e.name)&&(e.setupOnce(Q.cc,G.Gd),X.push(e.name)),e.setup&&"function"==typeof e.setup&&e.setup(t),t.on&&"function"==typeof e.preprocessEvent){let n=e.preprocessEvent.bind(e);t.on("preprocessEvent",(e,r)=>n(e,r,t))}if(t.addEventProcessor&&"function"==typeof e.processEvent){let n=e.processEvent.bind(e),r=(e,r)=>n(e,r,t);r.id=e.name,t.addEventProcessor(r)}W.X&&$.kg.log("Integration installed: ".concat(e.name))}function V(t,e){let n=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return e(...n)};return n.id=t,n}let K="FunctionToString",Y=new WeakMap,tt=()=>({name:K,setupOnce(){r=Function.prototype.toString;try{Function.prototype.toString=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];let i=(0,q.HK)(this),s=Y.has((0,H.s3)())&&void 0!==i?i:this;return r.apply(s,e)}}catch(t){}},setup(t){Y.set(t,!0)}}),te=V(K,tt);var tn=n(35086);let tr=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],ti=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],ts="InboundFilters",to=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{name:ts,setupOnce(){},processEvent(e,n,r){var i;let s=r.getOptions(),o=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:tr],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:ti],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(t,s);return(o.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(e)?(W.X&&$.kg.warn("Event dropped due to being internal Sentry Error.\nEvent: ".concat((0,z.jH)(e))),0):(i=o.ignoreErrors,!e.type&&i&&i.length&&(function(t){let e;let n=[];t.message&&n.push(t.message);try{e=t.exception.values[t.exception.values.length-1]}catch(t){}return e&&e.value&&(n.push(e.value),e.type&&n.push("".concat(e.type,": ").concat(e.value))),W.X&&0===n.length&&$.kg.error("Could not extract message for event ".concat((0,z.jH)(t))),n})(e).some(t=>(0,tn.U0)(t,i)))?(W.X&&$.kg.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: ".concat((0,z.jH)(e))),0):!function(t,e){if("transaction"!==t.type||!e||!e.length)return!1;let n=t.transaction;return!!n&&(0,tn.U0)(n,e)}(e,o.ignoreTransactions)?!function(t,e){if(!e||!e.length)return!1;let n=tc(t);return!!n&&(0,tn.U0)(n,e)}(e,o.denyUrls)?function(t,e){if(!e||!e.length)return!0;let n=tc(t);return!n||(0,tn.U0)(n,e)}(e,o.allowUrls)||(W.X&&$.kg.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: ".concat((0,z.jH)(e),".\nUrl: ").concat(tc(e))),0):(W.X&&$.kg.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: ".concat((0,z.jH)(e),".\nUrl: ").concat(tc(e))),0):(W.X&&$.kg.warn("Event dropped due to being matched by `ignoreTransactions` option.\nEvent: ".concat((0,z.jH)(e))),0))?e:null}}},ta=V(ts,to);function tc(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch(t){}return e?function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(let e=t.length-1;e>=0;e--){let n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(e):null}catch(e){return W.X&&$.kg.error("Cannot extract url for event ".concat((0,z.jH)(t))),null}}var tu=n(22135);function tl(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:250,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0;if(!s.exception||!s.exception.values||!o||!(0,tu.V9)(o.originalException,Error))return;let a=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;a&&(s.exception.values=(function t(e,n,r,i,s,o,a,c){if(o.length>=r+1)return o;let u=[...o];if((0,tu.V9)(i[s],Error)){td(a,c);let o=e(n,i[s]),l=u.length;th(o,s,l,c),u=t(e,n,r,i[s],s,[o,...u],o,l)}
8return Array.isArray(i.errors)&&i.errors.forEach((i,o)=>{if((0,tu.V9)(i,Error)){td(a,c);let l=e(n,i),d=u.length;th(l,"errors[".concat(o,"]"),d,c),u=t(e,n,r,i,s,[l,...u],l,d)}}),u})(t,e,i,o.originalException,r,s.exception.values,a,0).map(t=>(t.value&&(t.value=(0,tn.$G)(t.value,n)),t)))}function td(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,..."AggregateError"===t.type&&{is_exception_group:!0},exception_id:e}}function th(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}function tf(t,e){let n={type:e.name||e.constructor.name,value:e.message},r=t(e.stack||"",1);return r.length&&(n.stacktrace={frames:r}),n}let tp="LinkedErrors",tm=V(tp,function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.limit||5,n=t.key||"cause";return{name:tp,setupOnce(){},preprocessEvent(t,r,i){let s=i.getOptions();tl(tf,s.stackParser,s.maxValueLength,n,e,t,r)}}});var tg=n(90021);let ty=tg.GLOBAL_OBJ,tv=0;function t_(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if("function"!=typeof t)return t;try{let e=t.__sentry_wrapped__;if(e){if("function"==typeof e)return e;return t}if((0,q.HK)(t))return t}catch(e){return t}let r=function(){let r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);let i=r.map(t=>t_(t,e));return t.apply(this,i)}catch(t){throw tv++,setTimeout(()=>{tv--}),(0,H.$e)(n=>{n.addEventProcessor(t=>(e.mechanism&&((0,z.Db)(t,void 0,void 0),(0,z.EG)(t,e.mechanism)),t.extra={...t.extra,arguments:r},t)),(0,H.Tb)(t)}),t}};try{for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e])}catch(t){}(0,q.$Q)(r,t),(0,q.xp)(t,"__sentry_wrapped__",r);try{let e=Object.getOwnPropertyDescriptor(r,"name");e.configurable&&Object.defineProperty(r,"name",{get:()=>t.name})}catch(t){}return r}var tb=n(47708),tS=n(59598);let tE={},tk={};function tw(t,e){tE[t]=tE[t]||[],tE[t].push(e)}function tx(t,e){tk[t]||(e(),tk[t]=!0)}function tT(t,e){let n=t&&tE[t];if(n)for(let r of n)try{r(e)}catch(e){tb.X&&$.kg.error("Error while triggering instrumentation handler.\nType: ".concat(t,"\nName: ").concat((0,tS.$P)(r),"\nError:"),e)}}let tC=null;function tO(t){let e="error";tw(e,t),tx(e,tI)}function tI(){tC=tg.GLOBAL_OBJ.onerror,tg.GLOBAL_OBJ.onerror=function(t,e,n,r,i){return tT("error",{column:r,error:i,line:n,msg:t,url:e}),!!tC&&!tC.__SENTRY_LOADER__&&tC.apply(this,arguments)},tg.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}let tR=null;function tM(t){let e="unhandledrejection";tw(e,t),tx(e,tA)}function tA(){tR=tg.GLOBAL_OBJ.onunhandledrejection,tg.GLOBAL_OBJ.onunhandledrejection=function(t){return tT("unhandledrejection",t),!tR||!!tR.__SENTRY_LOADER__||tR.apply(this,arguments)},tg.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var tD=n(56212),tP=n(679),tN=n(37884);function tL(t,e){let n=tF(t,e),r={type:e&&e.name,value:function(t){let e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function tj(t,e){return{exception:{values:[tL(t,e)]}}}function tF(t,e){let n=e.stacktrace||e.stack||"",r=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(tB.test(t.message))return 1}return 0}(e);try{return t(n,r)}catch(t){}return[]}let tB=/Minified React error #\d+;/i;function tU(t,e,n,r,i){let s;if((0,tu.VW)(e)&&e.error)return tj(t,e.error);if((0,tu.TX)(e)||(0,tu.fm)(e)){if("stack"in e)s=tj(t,e);else{let i=e.name||((0,tu.TX)(e)?"DOMError":"DOMException"),o=e.message?"".concat(i,": ").concat(e.message):i;s=tq(t,o,n,r),(0,z.Db)(s,o)}return"code"in e&&(s.tags={...s.tags,"DOMException.code":"".concat(e.code)}),s}return(0,tu.VZ)(e)?tj(t,e):((0,tu.PO)(e)||(0,tu.cO)(e)?s=function(t,e,n,r){let i=(0,H.s3)(),s=i&&i.getOptions().normalizeDepth,o={exception:{values:[{type:(0,tu.cO)(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:function(t,e){let{isUnhandledRejection:n}=e,r=(0,q.zf)(t),i=n?"promise rejection":"exception";if((0,tu.VW)(t))return"Event `ErrorEvent` captured as ".concat(i," with message `").concat(t.message,"`");
8if((0,tu.cO)(t)){let e=function(t){try{let e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch(t){}}(t);return"Event `".concat(e,"` (type=").concat(t.type,") captured as ").concat(i)}return"Object captured as ".concat(i," with keys: ").concat(r)}(e,{isUnhandledRejection:r})}]},extra:{__serialized__:(0,tP.Qy)(e,s)}};if(n){let e=tF(t,n);e.length&&(o.exception.values[0].stacktrace={frames:e})}return o}(t,e,n,i):(s=tq(t,e,n,r),(0,z.Db)(s,"".concat(e),void 0)),(0,z.EG)(s,{synthetic:!0}),s)}function tq(t,e,n,r){let i={};if(r&&n){let r=tF(t,n);r.length&&(i.exception={values:[{value:e,stacktrace:{frames:r}}]})}if((0,tu.Le)(e)){let{__sentry_template_string__:t,__sentry_template_values__:n}=e;return i.logentry={message:t,params:n},i}return i.message=e,i}let tH="GlobalHandlers",tz=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={onerror:!0,onunhandledrejection:!0,...t};return{name:tH,setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&tO(e=>{let{stackParser:n,attachStacktrace:r}=tQ();if((0,H.s3)()!==t||tv>0)return;let{msg:i,url:s,line:o,column:a,error:c}=e,u=void 0===c&&(0,tu.HD)(i)?function(t,e,n,r){let i=(0,tu.VW)(t)?t.message:t,s="Error",o=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);o&&(s=o[1],i=o[2]);let a={exception:{values:[{type:s,value:i}]}};return tW(a,e,n,r)}(i,s,o,a):tW(tU(n,c||i,void 0,r,!1),s,o,a);u.level="error",(0,H.eN)(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})}),e.onunhandledrejection&&tM(e=>{let{stackParser:n,attachStacktrace:r}=tQ();if((0,H.s3)()!==t||tv>0)return;let i=function(t){if((0,tu.pt)(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(t){}return t}(e),s=(0,tu.pt)(i)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: ".concat(String(i))}]}}:tU(n,i,void 0,r,!0);s.level="error",(0,H.eN)(s,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}}},t$=V(tH,tz);function tW(t,e,n,r){let i=t.exception=t.exception||{},s=i.values=i.values||[],o=s[0]=s[0]||{},a=o.stacktrace=o.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,d=(0,tu.HD)(e)&&e.length>0?e:(0,tD.l4)();return 0===c.length&&c.push({colno:u,filename:d,function:"?",in_app:!0,lineno:l}),t}function tQ(){let t=(0,H.s3)(),e=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return e}let tG=["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"],tX="TryCatch",tJ=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:tX,setupOnce(){e.setTimeout&&(0,q.hl)(ty,"setTimeout",tV),e.setInterval&&(0,q.hl)(ty,"setInterval",tV),e.requestAnimationFrame&&(0,q.hl)(ty,"requestAnimationFrame",tK),e.XMLHttpRequest&&"XMLHttpRequest"in ty&&(0,q.hl)(XMLHttpRequest.prototype,"send",tY);let t=e.eventTarget;if(t){let e=Array.isArray(t)?t:tG;e.forEach(t0)}}}},tZ=V(tX,tJ);function tV(t){return function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];let i=n[0];return n[0]=t_(i,{mechanism:{data:{function:(0,tS.$P)(t)},handled:!1,type:"instrument"}}),t.apply(this,n)}}function tK(t){return function(e){return t.apply(this,[t_(e,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,tS.$P)(t)},handled:!1,type:"instrument"}})])}}function tY(t){return function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];let i=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(t=>{t in i&&"function"==typeof i[t]&&(0,q.hl)(i,t,function(e){let n={mechanism:{data:{function:t,handler:(0,tS.$P)(e)},handled:!1,type:"instrument"}},r=(0,q.HK)(e);return r&&(n.mechanism.data.handler=(0,tS.$P)(r)),t_(e,n)})}),t.apply(this,n)}}function t0(t){let e=ty[t]&&ty[t].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&((0,q.hl)(e,"addEventListener",function(e){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=t_(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,tS.$P)(r),target:t},handled:!1,type:"instrument"}}))}catch(t){}return e.apply(this,[n,t_(r,{mechanism:{data:{function:"addEventListener",handler:(0,tS.$P)(r),target:t},handled:!1,type:"instrument"}}),i])}}),(0,q.hl)(e,"removeEventListener",function(t){return function(e,n,r){try{let i=n&&n.__sentry_wrapped__;i&&t.call(this,e,i,r)}catch(t){}return t.call(this,e,n,r)}}))}function t1(){"console"in tg.GLOBAL_OBJ&&$.RU.forEach(function(t){t in tg.G
8LOBAL_OBJ.console&&(0,q.hl)(tg.GLOBAL_OBJ.console,t,function(e){return $.LD[t]=e,function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];tT("console",{args:n,level:t});let i=$.LD[t];i&&i.apply(tg.GLOBAL_OBJ.console,n)}})})}let t2=tg.GLOBAL_OBJ;function t5(t){tw("dom",t),tx("dom",t3)}function t3(){if(!t2.document)return;let t=tT.bind(null,"dom"),e=t4(t,!0);t2.document.addEventListener("click",e,!1),t2.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(e=>{let n=t2[e]&&t2[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,q.hl)(n,"addEventListener",function(e){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=r[n]=r[n]||{refCount:0};if(!s.handler){let r=t4(t);s.handler=r,e.call(this,n,r,i)}s.refCount++}catch(t){}return e.call(this,n,r,i)}}),(0,q.hl)(n,"removeEventListener",function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[e];i&&(i.refCount--,i.refCount<=0&&(t.call(this,e,i.handler,r),i.handler=void 0,delete n[e]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,r)}}))})}function t4(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n=>{if(!n||n._sentryCaptured)return;let r=function(t){try{return t.target}catch(t){return null}}(n);if("keypress"===n.type&&(!r||!r.tagName||"INPUT"!==r.tagName&&"TEXTAREA"!==r.tagName&&!r.isContentEditable))return;(0,q.xp)(n,"_sentryCaptured",!0),r&&!r._sentryId&&(0,q.xp)(r,"_sentryId",(0,z.DM)());let a="keypress"===n.type?"input":n.type;!function(t){if(t.type!==s)return!1;try{if(!t.target||t.target._sentryId!==o)return!1}catch(t){}return!0}(n)&&(t({event:n,name:a,global:e}),s=n.type,o=r?r._sentryId:void 0),clearTimeout(i),i=t2.setTimeout(()=>{o=void 0,s=void 0},1e3)}}let t6=tg.GLOBAL_OBJ,t8="__sentry_xhr_v3__";function t9(t){tw("xhr",t),tx("xhr",t7)}function t7(){if(!t6.XMLHttpRequest)return;let t=XMLHttpRequest.prototype;(0,q.hl)(t,"open",function(t){return function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];let i=Date.now(),s=(0,tu.HD)(n[0])?n[0].toUpperCase():void 0,o=function(t){if((0,tu.HD)(t))return t;try{return t.toString()}catch(t){}}(n[1]);if(!s||!o)return t.apply(this,n);this[t8]={method:s,url:o,request_headers:{}},"POST"===s&&o.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let a=()=>{let t=this[t8];if(t&&4===this.readyState){try{t.status_code=this.status}catch(t){}let e={args:[s,o],endTimestamp:Date.now(),startTimestamp:i,xhr:this};tT("xhr",e)}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,q.hl)(this,"onreadystatechange",function(t){return function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return a(),t.apply(this,n)}}):this.addEventListener("readystatechange",a),(0,q.hl)(this,"setRequestHeader",function(t){return function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];let[i,s]=n,o=this[t8];return o&&(0,tu.HD)(i)&&(0,tu.HD)(s)&&(o.request_headers[i.toLowerCase()]=s),t.apply(this,n)}}),t.apply(this,n)}}),(0,q.hl)(t,"send",function(t){return function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];let i=this[t8];if(!i)return t.apply(this,n);void 0!==n[0]&&(i.body=n[0]);let s={args:[i.method,i.url],startTimestamp:Date.now(),xhr:this};return tT("xhr",s),t.apply(this,n)}})}let et=(0,tg.R)();function ee(){if(!("fetch"in et))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function en(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function er(t){let e="fetch";tw(e,t),tx(e,ei)}function ei(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!ee())return!1;if(en(et.fetch))return!0;let t=!1,e=et.document;if(e&&"function"==typeof e.createElement)try{let n=e.createElement("iframe");
8n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=en(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){tb.X&&$.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t})()&&(0,q.hl)(tg.GLOBAL_OBJ,"fetch",function(t){return function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];let{method:i,url:s}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){let[e,n]=t;return{url:eo(e),method:es(n,"method")?String(n.method).toUpperCase():"GET"}}let e=t[0];return{url:eo(e),method:es(e,"method")?String(e.method).toUpperCase():"GET"}}(n),o={args:n,fetchData:{method:i,url:s},startTimestamp:Date.now()};return tT("fetch",{...o}),t.apply(tg.GLOBAL_OBJ,n).then(t=>{let e={...o,endTimestamp:Date.now(),response:t};return tT("fetch",e),t},t=>{let e={...o,endTimestamp:Date.now(),error:t};throw tT("fetch",e),t})}})}function es(t,e){return!!t&&"object"==typeof t&&!!t[e]}function eo(t){return"string"==typeof t?t:t?es(t,"url")?t.url:t.toString?t.toString():"":""}let ea=(0,tg.R)(),ec=tg.GLOBAL_OBJ;function eu(t){let e="history";tw(e,t),tx(e,el)}function el(){if(!function(){let t=ea.chrome,e=t&&t.app&&t.app.runtime,n="history"in ea&&!!ea.history.pushState&&!!ea.history.replaceState;return!e&&n}())return;let t=ec.onpopstate;function e(t){return function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];let i=n.length>2?n[2]:void 0;if(i){let t=a,e=String(i);a=e,tT("history",{from:t,to:e})}return t.apply(this,n)}}ec.onpopstate=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];let i=ec.location.href,s=a;if(a=i,tT("history",{from:s,to:i}),t)try{return t.apply(this,n)}catch(t){}},(0,q.hl)(ec.history,"pushState",e),(0,q.hl)(ec.history,"replaceState",e)}let ed=["fatal","error","warning","log","info","debug"];function eh(t){if(!t)return{};let e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};let n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}let ef="Breadcrumbs",ep=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:ef,setupOnce(){},setup(t){var n;e.console&&function(t){let e="console";tw(e,t),tx(e,t1)}(function(e){var n;if((0,H.s3)()!==t)return;let r={category:"console",data:{arguments:e.args,logger:"console"},level:"warn"===(n=e.level)?"warning":ed.includes(n)?n:"log",message:(0,tn.nK)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;r.message="Assertion failed: ".concat((0,tn.nK)(e.args.slice(1)," ")||"console.assert"),r.data.arguments=e.args.slice(1)}(0,H.n_)(r,{input:e.args,level:e.level})}),e.dom&&t5((n=e.dom,function(e){let r,i;if((0,H.s3)()!==t)return;let s="object"==typeof n?n.serializeAttribute:void 0,o="object"==typeof n&&"number"==typeof n.maxStringLength?n.maxStringLength:void 0;o&&o>1024&&(o=1024),"string"==typeof s&&(s=[s]);try{let t=e.event,n=t&&t.target?t.target:t;r=(0,tD.Rt)(n,{keyAttrs:s,maxStringLength:o}),i=(0,tD.iY)(n)}catch(t){r="<unknown>"}if(0===r.length)return;let a={category:"ui.".concat(e.name),message:r};i&&(a.data={"ui.component_name":i}),(0,H.n_)(a,{event:e.event,name:e.name,global:e.global})})),e.xhr&&t9(function(e){if((0,H.s3)()!==t)return;let{startTimestamp:n,endTimestamp:r}=e,i=e.xhr[t8];if(!n||!r||!i)return;let{method:s,url:o,status_code:a,body:c}=i,u={xhr:e.xhr,input:c,startTimestamp:n,endTimestamp:r};(0,H.n_)({category:"xhr",data:{method:s,url:o,status_code:a},type:"http"},u)}),e.fetch&&er(function(e){if((0,H.s3)()!==t)return;let{startTimestamp:n,endTimestamp:r}=e;if(!(!r||e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method)){if(e.error){let t=e.fetchData,i={data:e.error,input:e.args,startTimestamp:n,endTimestamp:r};(0,H.n_)({category:"fetch",data:t,level:"error",type:"http"},i)}else{let t=e.response,i={...e.fetchData,status_code:t&&t.status},s={input:e.args,response:t,startTimestamp:n,endTimestamp:r};(0,H.n_)({category:"fetch",data:i,type:"http"},s)}}}),e.history&&eu(function(e){if((0,H.s3)()!==t)return;let n=e.from,r=e.to,i=eh(ty.location.href),s=n?eh(n):void 0,o=eh(r);s&&s.path||(s=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===s.protocol&&i.host===s.host&&(n=s.relative),(0,H.n_)({category:"navigation",data:{from:n,to:r}})}),e.sentry&&t.on&&t.on("beforeSendEvent",function(e){(0,H.s3)()===t&&(0,H.n_)({category:"sentry.".concat("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,z.jH)(e)},{event:e})})}}},em=V(ef,ep),eg="LinkedErrors",ey=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.limit||5,n=t.key||"cause";return{name:eg,setupOnce(){},preprocessEvent(t,r,i){let s=i.getOptions();tl(tL,s.stackParser,s.maxValueLength,n,e,t,r)}}},ev=V(eg,ey),e_="HttpContext",eb=()=>({name:e_,setupOnce(){},preprocessEvent(t){if(!ty.navigator&&!ty.location&&!ty.document)return;let e=t.request&&t.request.url||ty.location&&ty.location.href,{referrer:n}=ty.document||{},{userAgent:r}=ty.navigator||{},i={...t.request&&t.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},s={...t.request,...e&&{url:e},headers:i};t.request=s}}),eS=V(e_,eb),eE="Dedupe",ek=()=>{let t;return{name:eE,setupOnce(){},processEvent(e){if(e.type)return e;try{var n;if((n=t)&&(function(t,e){let n=t.message,r=e.message;return!!((n||r)&&(!n||r)&&(n||!r)&&n===r&&eT(t,e)&&ex(t,e))}(e,n)||function(t,e){let n=eC(e),r=eC(t);return!!(n&&r&&n.type===r.type&&n.value===r.value&&eT(t,e)&&ex(t,e))}(e,n)))return null}catch(t){}return t=e}}},ew=V(eE,ek);function ex(t,e){let n=eO(t),r=eO(e);if(!n&&!r)return!0;
8if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let t=0;t<r.length;t++){let e=r[t],i=n[t];if(e.filename!==i.filename||e.lineno!==i.lineno||e.colno!==i.colno||e.function!==i.function)return!1}return!0}function eT(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(t){return!1}}function eC(t){return t.exception&&t.exception.values&&t.exception.values[0]}function eO(t){let e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(t){}}let eI={};ty.Sentry&&ty.Sentry.Integrations&&(eI=ty.Sentry.Integrations);let eR={...eI,...L,...j},eM=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function eA(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{host:n,path:r,pass:i,port:s,projectId:o,protocol:a,publicKey:c}=t;return"".concat(a,"://").concat(c).concat(e&&i?":".concat(i):"")+"@".concat(n).concat(s?":".concat(s):"","/").concat(r?"".concat(r,"/"):r).concat(o)}function eD(t){let e=eM.exec(t);if(!e){(0,$.Cf)(()=>{console.error("Invalid Sentry Dsn: ".concat(t))});return}let[n,r,i="",s,o="",a]=e.slice(1),c="",u=a,l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){let t=u.match(/^\d+/);t&&(u=t[0])}return eP({host:s,pass:i,path:c,projectId:u,port:o,protocol:n,publicKey:r})}function eP(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function eN(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[t,e]}function eL(t,e){let n=t[1];for(let t of n){let n=t[0].type,r=e(t,n);if(r)return!0}return!1}function ej(t,e){let n=e||new TextEncoder;return n.encode(t)}let eF={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 eB(t){if(!t||!t.sdk)return;let{name:e,version:n}=t.sdk;return{name:e,version:n}}function eU(t,e,n,r){let i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:eA(r)},...i&&{trace:(0,q.Jr)({...i})}}}class eq extends Error{constructor(t,e="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=e}}var eH=n(31261),ez=n(33762),e$=n(82913);let eW="Not capturing exception because it's already been captured.";class eQ{captureException(t,e,n){if((0,z.YO)(t)){W.X&&$.kg.log(eW);return}let r=e&&e.event_id;return this._process(this.eventFromException(t,e).then(t=>this._captureEvent(t,e,n)).then(t=>{r=t})),r}captureMessage(t,e,n,r){let i=n&&n.event_id,s=(0,tu.Le)(t)?t:String(t),o=(0,tu.pt)(t)?this.eventFromMessage(s,e,n):this.eventFromException(t,n);return this._process(o.then(t=>this._captureEvent(t,n,r)).then(t=>{i=t})),i}captureEvent(t,e,n){if(e&&e.originalException&&(0,z.YO)(e.originalException)){W.X&&$.kg.log(eW);return}let r=e&&e.event_id,i=t.sdkProcessingMetadata||{},s=i.capturedSpanScope;return this._process(this._captureEvent(t,e,s||n).then(t=>{r=t})),r}captureSession(t){"string"!=typeof t.release?W.X&&$.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),(0,eH.CT)(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){let e=this._transport;return e?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(n=>e.flush(t).then(t=>n&&t))):(0,tN.WD)(!0)}close(t){return this.flush(t).then(t=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),t))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch(e){return W.X&&$.kg.warn("Cannot retrieve integration ".concat(t.id," from the current Client")),null}}addIntegration(t){let e=this._integrations[t.name];Z(this,t,this._integrations),e||J(this,[t])}sendEvent(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};
8this.emit("beforeSendEvent",t,e);let n=function(t,e,n,r){var i;let s=eB(n),o=t.type&&"replay_event"!==t.type?t.type:"event";(i=n&&n.sdk)&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||i.name,t.sdk.version=t.sdk.version||i.version,t.sdk.integrations=[...t.sdk.integrations||[],...i.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...i.packages||[]]);let a=eU(t,s,r,e);delete t.sdkProcessingMetadata;let c=[{type:o},t];return eN(a,[c])}(t,this._dsn,this._options._metadata,this._options.tunnel);for(let t of e.attachments||[])n=function(t,e){let[n,r]=t;return[n,[...r,e]]}(n,function(t,e){let n="string"==typeof t.data?ej(t.data,e):t.data;return[(0,q.Jr)({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}(t,this._options.transportOptions&&this._options.transportOptions.textEncoder));let r=this._sendEnvelope(n);r&&r.then(e=>this.emit("afterSendEvent",t,e),null)}sendSession(t){let e=function(t,e,n,r){let i=eB(n),s={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&e&&{dsn:eA(e)}},o="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return eN(s,[o])}(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}recordDroppedEvent(t,e,n){if(this._options.sendClientReports){let r="number"==typeof n?n:1,i="".concat(t,":").concat(e);W.X&&$.kg.log('Recording outcome: "'.concat(i,'"').concat(r>1?" (".concat(r," times)"):"")),this._outcomes[i]=(this._outcomes[i]||0)+r}}captureAggregateMetrics(t){W.X&&$.kg.log("Flushing aggregated metrics, number of metrics: ".concat(t.length));let e=function(t,e,n,r){let i={sent_at:new Date().toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&e&&(i.dsn=eA(e));let s=function(t){let e=function(t){let e="";for(let n of t){let t=Object.entries(n.tags),r=t.length>0?"|#".concat(t.map(t=>{let[e,n]=t;return"".concat(e,":").concat(n)}).join(",")):"";e+="".concat(n.name,"@").concat(n.unit,":").concat(n.metric,"|").concat(n.metricType).concat(r,"|T").concat(n.timestamp,"\n")}return e}(t),n={type:"statsd",length:e.length};return[n,e]}(t);return eN(i,[s])}(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}on(t,e){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(e)}emit(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this._hooks[t]&&this._hooks[t].forEach(t=>t(...n))}_setupIntegrations(){let{integrations:t}=this._options;this._integrations=function(t,e){let n={};return e.forEach(e=>{e&&Z(t,e,n)}),n}(this,t),J(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,e){let n=!1,r=!1,i=e.exception&&e.exception.values;if(i)for(let t of(r=!0,i)){let e=t.mechanism;if(e&&!1===e.handled){n=!0;break}}let s="ok"===t.status,o=s&&0===t.errors||s&&n;o&&((0,eH.CT)(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new tN.cW(e=>{let n=0,r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),e(!0)):(n+=1,t&&n>=t&&(clearInterval(r),e(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(0,G.aF)(),i=this.getOptions(),s=Object.keys(this._integrations);return!e.integrations&&s.length>0&&(e.integrations=s),this.emit("preprocessEvent",t,e),(0,e$.R)(i,t,e,n,this,r).then(t=>{if(null===t)return t;let e={...r.getPropagationContext(),...n?n.getPropagationContext():void 0},i=t.contexts&&t.contexts.trace;if(!i&&e){let{traceId:r,spanId:i,parentSpanId:s,dsc:o}=e;t.contexts={trace:{trace_id:r,span_id:i,parent_span_id:s},...t.contexts};let a=o||(0,ez._)(r,this,n);t.sdkProcessingMetadata={dynamicSamplingContext:a,...t.sdkProcessingMetadata}}return t})}_captureEvent(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return this._processEvent(t,e,n).then(t=>t.event_id,t=>{W.X&&("log"===t.logLevel?$.kg.log(t.message):$.kg.warn(t))})}_processEvent(t,e,n){let r=this.getOptions(),{sampleRate:i}=r,s=eX(t),o=eG(t),a=t.type||"error",c="before send for type `".concat(a,"`");if(o&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),(0,tN.$2)(new eq("Discarding event because it's not included in the random sample (sampling rate = ".concat(i,")"),"log"));let u="replay_event"===a?"replay":a,l=t.sdkProcessingMetadata||{},d=l.capturedSpanIsolationScope;return this._prepareEvent(t,e,n,d).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,t),new eq("An event processor returned `null`, will not send event.","log");let i=e.data&&!0===e.data.__sentry__;if(i)return n;let s=function(t,e,n){let{beforeSend:r,beforeSendTransaction:i}=t;if(eG(e)&&r)return r(e,n);if(eX(e)&&i){if(e.spans){let t=e.spans.length;e.sdkProcessingMetadata={...e.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return i(e,n)}return e}(r,n,e);return function(t,e){let n="".concat(e," must return `null` or a valid event.");if((0,tu.J8)(t))return t.then(t=>{if(!(0,tu.PO)(t)&&null!==t)throw new eq(n);return t},t=>{throw new eq("".concat(e," rejected with ").concat(t))});if(!(0,tu.PO)(t)&&null!==t)throw new eq(n);return t}(s,c)}).then(r=>{if(null===r){if(this.recordDroppedEvent("before_send",u,t),s){let e=t.spans||[],n=1+e.length;this.recordDroppedEvent("before_send","span",n)}throw new eq("".concat(c," returned `null`, will not send event."),"log")}let i=n&&n.getSession();if(!s&&i&&this._updateSessionFromEvent(i,r),s){let t=r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0,e=r.spans?r.spans.length:0,n=t-e;n>0&&this.recordDroppedEvent("before_send","span",n)}let o=r.transaction_info;return s&&o&&r.transaction!==t.transaction&&(r.transaction_info={...o,source:"custom"}),this.sendEvent(r,e),r}).then(null,t=>{if(t instanceof eq)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new eq("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ".concat(t))})}_process(t){this._numProcessing++,t.then(t=>(this._numProcessing--,t),t=>(this._numProcessing--,t))}
8_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,t=>{W.X&&$.kg.error("Error while sending event:",t)});W.X&&$.kg.error("Transport disabled")}_clearOutcomes(){let t=this._outcomes;return this._outcomes={},Object.keys(t).map(e=>{let[n,r]=e.split(":");return{reason:n,category:r,quantity:t[e]}})}constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=function(t){let e="string"==typeof t?eD(t):eP(t);if(e&&function(t){if(!tb.X)return!0;let{port:e,projectId:n,protocol:r}=t,i=["protocol","publicKey","host","projectId"].find(e=>!t[e]&&($.kg.error("Invalid Sentry Dsn: ".concat(e," missing")),!0));return!i&&(n.match(/^\d+$/)?"http"===r||"https"===r?!(e&&isNaN(parseInt(e,10)))||($.kg.error("Invalid Sentry Dsn: Invalid port ".concat(e)),!1):($.kg.error("Invalid Sentry Dsn: Invalid protocol ".concat(r)),!1):($.kg.error("Invalid Sentry Dsn: Invalid projectId ".concat(n)),!1))}(e))return e}(t.dsn):W.X&&$.kg.warn("No DSN provided, client will not send events."),this._dsn){let e=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="string"==typeof e?e:e.tunnel,r="string"!=typeof e&&e._metadata?e._metadata.sdk:void 0;return n||"".concat("".concat(function(t){let e=t.protocol?"".concat(t.protocol,":"):"",n=t.port?":".concat(t.port):"";return"".concat(e,"//").concat(t.host).concat(n).concat(t.path?"/".concat(t.path):"","/api/")}(t)).concat(t.projectId,"/envelope/"),"?").concat((0,q._j)({sentry_key:t.publicKey,sentry_version:"7",...r&&{sentry_client:"".concat(r.name,"/").concat(r.version)}}))}(this._dsn,t);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}}}function eG(t){return void 0===t.type}function eX(t){return"transaction"===t.type}var eJ=n(28754),eZ=n(43772);class eV extends eQ{eventFromException(t,e){return function(t,e,n,r){let i=n&&n.syntheticException||void 0,s=tU(t,e,i,r);return(0,z.EG)(s),s.level="error",n&&n.event_id&&(s.event_id=n.event_id),(0,tN.WD)(s)}(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2?arguments[2]:void 0;return function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,s=r&&r.syntheticException||void 0,o=tq(t,e,s,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),(0,tN.WD)(o)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled())return;let e=function(t,e){let{metadata:n,tunnel:r,dsn:i}=e,s={event_id:t.event_id,sent_at:new Date().toISOString(),...n&&n.sdk&&{sdk:{name:n.sdk.name,version:n.sdk.version}},...!!r&&!!i&&{dsn:eA(i)}},o=[{type:"user_report"},t];return eN(s,[o])}(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(e)}_prepareEvent(t,e,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n)}_flushOutcomes(){let t=this._clearOutcomes();if(0===t.length||!this._dsn)return;let e=function(t,e,n){let r=[{type:"client_report"},{timestamp:(0,eJ.yW)(),discarded_events:t}];return eN(e?{dsn:e}:{},[r])}(t,this._options.tunnel&&eA(this._dsn));this._sendEnvelope(e)}constructor(t){let e=ty.SENTRY_SDK_SOURCE||(0,eZ.S)();B(t,"browser",["browser"],e),super(t),t.sendClientReports&&ty.document&&ty.document.addEventListener("visibilitychange",()=>{"hidden"===ty.document.visibilityState&&this._flushOutcomes()})}}function eK(t,e,n,r){let i={filename:t,function:e,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}let eY=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,e0=/\((\S*)(?::(\d+))(?::(\d+))\)/,e1=[30,t=>{let e=eY.exec(t);if(e){let t=e[2]&&0===e[2].indexOf("eval");if(t){let t=e0.exec(e[2]);t&&(e[2]=t[1],e[3]=t[2],e[4]=t[3])}let[n,r]=e9(e[1]||"?",e[2]);return eK(r,n,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],e2=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,e5=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,e3=[50,t=>{let e=e2.exec(t);if(e){let t=e[3]&&e[3].indexOf(" > eval")>-1;if(t){let t=e5.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let n=e[3],r=e[1]||"?";return[r,n]=e9(r,n),eK(n,r,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],e4=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,e6=[40,t=>{let e=e4.exec(t);return e?eK(e[2],e[1]||"?",+e[3],e[4]?+e[4]:void 0):void 0}
8],e8=(0,tS.pE)(...[e1,e3,e6]),e9=(t,e)=>{let n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:"?",n?"safari-extension:".concat(e):"safari-web-extension:".concat(e)]:[t,e]};function e7(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();return(t[e]||t.all||0)>n}function nt(t,e){let{statusCode:n,headers:r}=e,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now(),s={...t},o=r&&r["x-sentry-rate-limits"],a=r&&r["retry-after"];if(o)for(let t of o.trim().split(",")){let[e,n,,,r]=t.split(":",5),o=parseInt(e,10),a=(isNaN(o)?60:o)*1e3;if(n)for(let t of n.split(";"))"metric_bucket"===t?(!r||r.split(";").includes("custom"))&&(s[t]=i+a):s[t]=i+a;else s.all=i+a}else a?s.all=i+function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now(),n=parseInt("".concat(t),10);if(!isNaN(n))return 1e3*n;let r=Date.parse("".concat(t));return isNaN(r)?6e4:r-e}(a,i):429===n&&(s.all=i+6e4);return s}function ne(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(t){let e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(r){if(!(void 0===t||e.length<t))return(0,tN.$2)(new eq("Not adding Promise because buffer limit was reached."));let i=r();return -1===e.indexOf(i)&&e.push(i),i.then(()=>n(i)).then(null,()=>n(i).then(null,()=>{})),i},drain:function(t){return new tN.cW((n,r)=>{let i=e.length;if(!i)return n(!0);let s=setTimeout(()=>{t&&t>0&&n(!1)},t);e.forEach(t=>{(0,tN.WD)(t).then(()=>{--i||(clearTimeout(s),n(!0))},r)})})}}}(t.bufferSize||30),r={};function i(i){let s=[];if(eL(i,(e,n)=>{let i=eF[n];if(e7(r,i)){let r=nn(e,n);t.recordDroppedEvent("ratelimit_backoff",i,r)}else s.push(e)}),0===s.length)return(0,tN.WD)();let o=eN(i[0],s),a=e=>{eL(o,(n,r)=>{let i=nn(n,r);t.recordDroppedEvent(e,eF[r],i)})};return n.add(()=>e({body:function(t,e){let[n,r]=t,i=JSON.stringify(n);function s(t){"string"==typeof i?i="string"==typeof t?i+t:[ej(i,e),t]:i.push("string"==typeof t?ej(t,e):t)}for(let t of r){let[e,n]=t;if(s("\n".concat(JSON.stringify(e),"\n")),"string"==typeof n||n instanceof Uint8Array)s(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify((0,tP.Fv)(n))}s(t)}}return"string"==typeof i?i:function(t){let e=t.reduce((t,e)=>t+e.length,0),n=new Uint8Array(e),r=0;for(let e of t)n.set(e,r),r+=e.length;return n}(i)}(o,t.textEncoder)}).then(t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&W.X&&$.kg.warn("Sentry responded with status code ".concat(t.statusCode," to sent event.")),r=nt(r,t),t),t=>{throw a("network_error"),t})).then(t=>t,t=>{if(t instanceof eq)return W.X&&$.kg.error("Skipped sending event because buffer is full."),a("queue_overflow"),(0,tN.WD)();throw t})}return i.__sentry__baseTransport__=!0,{send:i,flush:t=>n.drain(t)}}function nn(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}function nr(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){if(k)return k;if(en(ty.fetch))return k=ty.fetch.bind(ty);let t=ty.document,e=ty.fetch;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);let r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(t){}return k=e.bind(ty)}(),n=0,r=0;return ne(t,function(i){let s=i.body.length;n+=s,r++;let o={body:i.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{return e(t.url,o).then(t=>(n-=s,r--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}}))}catch(t){return k=void 0,n-=s,r--,(0,tN.$2)(t)}})}function ni(t){return ne(t,function(e){return new tN.cW((n,r)=>{let i=new XMLHttpRequest;for(let e in i.onerror=r,i.onreadystatechange=()=>{4===i.readyState&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",t.url),t.headers)Object.prototype.hasOwnProperty.call(t.headers,e)&&i.setRequestHeader(e,t.headers[e]);i.send(e.body)})})}
8let ns=[to(),tt(),tJ(),ep(),tz(),ey(),ek(),eb()];var no=n(83454),na=n(89182);function nc(t){let e=c?c.get(t):void 0;if(!e)return;let n={};for(let[,[t,r]]of e)n[t]||(n[t]=[]),n[t].push((0,q.Jr)(r));return n}let nu="sentry.source",nl="sentry.sample_rate",nd="sentry.op",nh="sentry.origin";var nf=n(69390);function np(t,e){t.setTag("http.status_code",String(e)),t.setData("http.response.status_code",e);let n=function(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(e);"unknown_error"!==n&&t.setStatus(n)}(T=D||(D={})).Ok="ok",T.DeadlineExceeded="deadline_exceeded",T.Unauthenticated="unauthenticated",T.PermissionDenied="permission_denied",T.NotFound="not_found",T.ResourceExhausted="resource_exhausted",T.InvalidArgument="invalid_argument",T.Unimplemented="unimplemented",T.Unavailable="unavailable",T.InternalError="internal_error",T.UnknownError="unknown_error",T.Cancelled="cancelled",T.AlreadyExists="already_exists",T.FailedPrecondition="failed_precondition",T.Aborted="aborted",T.OutOfRange="out_of_range",T.DataLoss="data_loss";class nm{add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}constructor(t=1e3){this._maxlen=t,this.spans=[]}}class ng{get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[nd]}set op(t){this.setAttribute(nd,t)}get origin(){return this._attributes[nh]}set origin(t){this.setAttribute(nh,t)}spanContext(){let{_spanId:t,_traceId:e,_sampled:n}=this;return{spanId:t,traceId:e,traceFlags:n?na.i0:na.ve}}startChild(t){let e=new ng({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});e.spanRecorder=this.spanRecorder,e.spanRecorder&&e.spanRecorder.add(e);let n=(0,nf.G)(this);if(e.transaction=n,W.X&&n){let r=t&&t.op||"< unknown op >",i=(0,na.XU)(e).description||"< unknown name >",s=n.spanContext().spanId,o="[Tracing] Starting '".concat(r,"' span on transaction '").concat(i,"' (").concat(s,").");$.kg.log(o),this._logMessage=o}return e}setTag(t,e){return this.tags={...this.tags,[t]:e},this}setData(t,e){return this.data={...this.data,[t]:e},this}setAttribute(t,e){void 0===e?delete this._attributes[t]:this._attributes[t]=e}setAttributes(t){Object.keys(t).forEach(e=>this.setAttribute(e,t[e]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return np(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return"ok"===this._status}finish(t){return this.end(t)}end(t){if(this._endTime)return;let e=(0,nf.G)(this);if(W.X&&e&&e.spanContext().spanId!==this._spanId){let t=this._logMessage;t&&$.kg.log(t.replace("Starting","Finishing"))}this._endTime=(0,na.$k)(t)}toTraceparent(){return(0,na.Hb)(this)}toContext(){return(0,q.Jr)({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return(0,na.wy)(this)}getSpanJSON(){return(0,q.Jr)({data:this._getData(),description:this._name,op:this._attributes[nd],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[nh],_metrics_summary:nc(this),profile_id:this._attributes.profile_id,exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}
8toJSON(){return this.getSpanJSON()}_getData(){let{data:t,_attributes:e}=this,n=Object.keys(t).length>0,r=Object.keys(e).length>0;return n||r?n&&r?{...t,...e}:n?t:e:void 0}constructor(t={}){this._traceId=t.traceId||(0,z.DM)(),this._spanId=t.spanId||(0,z.DM)().substring(16),this._startTime=t.startTimestamp||(0,eJ.ph)(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[nh]:t.origin||"manual",[nd]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp),void 0!==t.exclusiveTime&&(this._exclusiveTime=t.exclusiveTime),this._measurements=t.measurements?{...t.measurements}:{}}}var ny=n(20349);class nv extends ng{get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[nu]&&{source:this._attributes[nu]},...this._attributes[nl]&&{sampleRate:this._attributes[nl]}}}set metadata(t){this._metadata=t}setName(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"custom";this._name=t,this.setAttribute(nu,e)}updateName(t){return this._name=t,this}initSpanRecorder(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;this.spanRecorder||(this.spanRecorder=new nm(t)),this.spanRecorder.add(this)}setContext(t,e){null===e?delete this._contexts[t]:this._contexts[t]=e}setMeasurement(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";this._measurements[t]={value:e,unit:n}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){let e=(0,na.$k)(t),n=this._finishTransaction(e);if(n)return this._hub.captureEvent(n)}toContext(){let t=super.toContext();return(0,q.Jr)({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return(0,ez.j)(this)}setHub(t){this._hub=t}getProfileId(){if(void 0!==this._contexts&&void 0!==this._contexts.profile)return this._contexts.profile.profile_id}_finishTransaction(t){if(void 0!==this._endTime)return;this._name||(W.X&&$.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(t);let e=this._hub.getClient();if(e&&e.emit&&e.emit("finishTransaction",this),!0!==this._sampled){W.X&&$.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","transaction");return}let n=this.spanRecorder?this.spanRecorder.spans.filter(t=>t!==this&&(0,na.XU)(t).timestamp):[];if(this._trimEnd&&n.length>0){let t=n.map(t=>(0,na.XU)(t).timestamp).filter(Boolean);this._endTime=t.reduce((t,e)=>t>e?t:e)}let{scope:r,isolationScope:i}=(0,ny.I1)(this),{metadata:s}=this,{source:o}=s,a={contexts:{...this._contexts,trace:(0,na.wy)(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...s,capturedSpanScope:r,capturedSpanIsolationScope:i,...(0,q.Jr)({dynamicSamplingContext:(0,ez.j)(this)})},_metrics_summary:nc(this),...o&&{transaction_info:{source:o}}},c=Object.keys(this._measurements).length>0;return c&&(W.X&&$.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),a.measurements=this._measurements),W.X&&$.kg.log("[Tracing] Finishing ".concat(this.op," transaction: ").concat(this._name,".")),a}constructor(t,e){super(t),this._contexts={},this._hub=e||(0,G.Gd)(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;let n=this._metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}}let n_={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3};class nb extends nm{add(t){if(t.spanContext().spanId!==this.transactionSpanId){var e=this;let n=t.end;t.end=function(){for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];return e._popActivity(t.spanContext().spanId),n.apply(t,i)},void 0===(0,na.XU)(t).timestamp&&this._pushActivity(t.spanContext().spanId)}super.add(t)}constructor(t,e,n,r){super(r),this._pushActivity=t,this._popActivity=e,this.transactionSpanId=n}}class nS extends nv{end(t){let e=(0,na.$k)(t);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this._finishReason),this.spanRecorder){for(let t of(W.X&&$.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op),this._beforeFinishCallbacks))t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter(t=>{if(t.spanContext().spanId===this.spanContext().spanId)return!0;!(0,na.XU)(t).timestamp&&(t.setStatus("cancelled"),t.end(e),W.X&&$.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));let{start_timestamp:n,timestamp:r}=(0,na.XU)(t),i=n&&n<e,s=(this._finalTimeout+this._idleTimeout)/1e3,o=r&&n&&r-n<s;if(W.X){let e=JSON.stringify(t,void 0,2);i?o||$.kg.log("[Tracing] discarding Span since it finished after Transaction final timeout",e):$.kg.log("[Tracing] discarding Span since it happened after Transaction was finished",e)}return i&&o}),W.X&&$.kg.log("[Tracing] flushing IdleTransaction")}else W.X&&$.kg.log("[Tracing] No active IdleTransaction");if(this._onScope){let t=this._idleHub.getScope();t.getTransaction()===this&&t.setSpan(void 0)}return super.end(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){this.spanRecorder||(this.spanRecorder=new nb(t=>{this._finished||this._pushActivity(t)},t=>{this._finished||this._popActivity(t)},this.spanContext().spanId,t),W.X&&$.kg.log("Starting heartbeat"),this._pingHeartbeat()),this.spanRecorder.add(this)}cancelIdleTimeout(t){let{restartOnChildSpanChange:e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{restartOnChildSpanChange:!0};this._idleTimeoutCanceledPermanently=!1===e,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason="cancelled",this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(W.X&&$.kg.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason="idleTimeout",this.end(t))},this._idleTimeout)}
8_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),W.X&&$.kg.log("[Tracing] pushActivity: ".concat(t)),this.activities[t]=!0,W.X&&$.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(W.X&&$.kg.log("[Tracing] popActivity ".concat(t)),delete this.activities[t],W.X&&$.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){let t=(0,eJ.ph)();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason="cancelled",this.end(t)):this._restartIdleTimeout(t+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;let t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(W.X&&$.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason="heartbeatFailed",this.end()):this._pingHeartbeat()}_pingHeartbeat(){W.X&&$.kg.log("pinging Heartbeat -> current counter: ".concat(this._heartbeatCounter)),setTimeout(()=>{this._beat()},this._heartbeatInterval)}constructor(t,e,n=n_.idleTimeout,r=n_.finalTimeout,i=n_.heartbeatInterval,s=!1,o=!1){super(t,e),this._idleHub=e,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=i,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason="externalFinish",this._autoFinishAllowed=!o,s&&(W.X&&$.kg.log("Setting idle transaction on scope. Span ID: ".concat(this.spanContext().spanId)),e.getScope().setSpan(this)),o||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason="finalTimeout",this.end())},this._finalTimeout)}}function nE(t){let e=t||(0,G.Gd)(),n=e.getScope();return n.getTransaction()}let nk=!1;function nw(){let t=nE();if(t){let e="internal_error";W.X&&$.kg.log("[Tracing] Transaction: ".concat(e," -> Global error occured")),t.setStatus(e)}}function nx(t,e,n){let r;return(0,U.z)(e)?void 0!==t.sampled?t.setAttribute(nl,Number(t.sampled)):("function"==typeof e.tracesSampler?(r=e.tracesSampler(n),t.setAttribute(nl,Number(r))):void 0!==n.parentSampled?r=n.parentSampled:void 0!==e.tracesSampleRate?(r=e.tracesSampleRate,t.setAttribute(nl,Number(r))):(r=1,t.setAttribute(nl,r)),nT(r))?r?(t.sampled=Math.random()<r,t.sampled)?W.X&&$.kg.log("[Tracing] starting ".concat(t.op," transaction - ").concat((0,na.XU)(t).description)):W.X&&$.kg.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ".concat(Number(r),")")):(W.X&&$.kg.log("[Tracing] Discarding transaction because ".concat("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),t.sampled=!1):(W.X&&$.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1):t.sampled=!1,t}function nT(t){return(0,tu.i2)(t)||!("number"==typeof t||"boolean"==typeof t)?(W.X&&$.kg.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ".concat(JSON.stringify(t)," of type ").concat(JSON.stringify(typeof t),".")),!1):!(t<0)&&!(t>1)||(W.X&&$.kg.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ".concat(t,".")),!1)}function nC(){let t=this.getScope(),e=t.getSpan();return e?{"sentry-trace":(0,na.Hb)(e)}:{}}function nO(t,e){let n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",s=t.instrumenter||"sentry";i!==s&&(W.X&&$.kg.error("A transaction was started with instrumenter=`".concat(s,"`, but the SDK is configured with the `").concat(i,"` instrumenter.\nThe transaction will not be sampled. Please use the ").concat(i," instrumentation to start transactions.")),t.sampled=!1);let o=new nv(t,this);return(o=nx(o,r,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...e})).isRecording()&&o.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",o),o}function nI(t,e,n,r,i,s,o){let a=arguments.length>7&&void 0!==arguments[7]&&arguments[7],c=t.getClient(),u=c&&c.getOptions()||{},l=new nS(e,t,n,r,o,i,a);return(l=nx(l,u,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...s})).isRecording()&&l.initSpanRecorder(u._experiments&&u._experiments.maxSpans),c&&c.emit&&c.emit("startTransaction",l),l}function nR(){let t=(0,G.cu)();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=nO),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=nC),nk||(nk=!0,tO(nw),tM(nw)))}nw.tag="sentry_tracingErrorCallback";var nM=n(49210);let nA=tg.GLOBAL_OBJ;function nD(){nA.document&&nA.document.addEventListener("visibilitychange",()=>{let t=nE();if(nA.document.hidden&&t){let{op:e,status:n}=(0,na.XU)(t);n||t.setStatus("cancelled"),t.setTag("visibilitychange","document.hidden"),t.end()}})}let nP=(t,e,n)=>{let r,i;return s=>{e.value>=0&&(s||n)&&((i=e.value-(r||0))||void 0===r)&&(r=e.value,e.delta=i,t(e))}},nN=()=>"v3-".concat(Date.now(),"-").concat(Math.floor(Math.random()*(9e12-1))+1e12),nL=()=>{let t=nA.performance.timing,e=nA.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==e?"back_forward":1===e?"reload":"navigate"};for(let e in t)"navigationStart"!==e&&"toJSON"!==e&&(n[e]=Math.max(t[e]-t.navigationStart,0));return n},nj=()=>nA.__WEB_VITALS_POLYFILL__?nA.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||nL()):nA.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],nF=()=>{let t=nj();return t&&t.activationStart||0},nB=(t,e)=>{let n=nj(),r="navigate";return n&&(r=nA.document&&nA.document.prerendering||nF()>0?"prerender":n.type.replace(/_/g,"-")),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:nN(),navigationType:r}},nU=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){let r=new PerformanceObserver(t=>{e(t.getEntries())});return r.observe({type:t,buffered:!0,...n}),r}}catch(t){}},nq=(t,e)=>{let n=r=>{("pagehide"===r.type||"hidden"===nA.document.visibilityState)&&(t(r),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};nA.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},nH=function(t){let e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=nB("CLS",0),i=0,s=[],o=t=>{t.forEach(t=>{if(!t.hadRecentInput){let n=s[0],o=s[s.length-1];i&&0!==s.length&&t.startTime-o.startTime<1e3&&t.startTime-n.startTime<5e3?(i+=t.value,s.push(t)):(i=t.value,s=[t]),i>r.value&&(r.value=i,r.entries=s,e&&e())}})},a=nU("layout-shift",o);if(a){e=nP(t,r,n.reportAllChanges);let i=()=>{o(a.takeRecords()),e(!0)};return nq(i),i}},nz=-1,n$=()=>{nA.document&&nA.document.visibilityState&&(nz="hidden"!==nA.document.visibilityState||nA.document.prerendering?1/0:0)},nW=()=>{nq(t=>{let{timeStamp:e}=t;nz=e},!0)},nQ=()=>(nz<0&&(n$(),nW()),{get firstHiddenTime(){return nz}}),nG=t=>{let e;let n=nQ(),r=nB("FID"),i=t=>{t.startTime<n.firstHiddenTime&&(r.value=t.processingStart-t.startTime,r.entries.push(t),e(!0))},s=t=>{t.forEach(i)}
8,o=nU("first-input",s);e=nP(t,r),o&&nq(()=>{s(o.takeRecords()),o.disconnect()},!0)},nX=0,nJ=1/0,nZ=0,nV=t=>{t.forEach(t=>{t.interactionId&&(nJ=Math.min(nJ,t.interactionId),nX=(nZ=Math.max(nZ,t.interactionId))?(nZ-nJ)/7+1:0)})},nK=()=>u?nX:performance.interactionCount||0,nY=()=>{"interactionCount"in performance||u||(u=nU("event",nV,{type:"event",buffered:!0,durationThreshold:0}))},n0=()=>nK(),n1=[],n2={},n5=t=>{let e=n1[n1.length-1],n=n2[t.interactionId];if(n||n1.length<10||t.duration>e.latency){if(n)n.entries.push(t),n.latency=Math.max(n.latency,t.duration);else{let e={id:t.interactionId,latency:t.duration,entries:[t]};n2[e.id]=e,n1.push(e)}n1.sort((t,e)=>e.latency-t.latency),n1.splice(10).forEach(t=>{delete n2[t.id]})}},n3=()=>{let t=Math.min(n1.length-1,Math.floor(n0()/50));return n1[t]},n4=(t,e)=>{let n;e=e||{},nY();let r=nB("INP"),i=t=>{t.forEach(t=>{if(t.interactionId&&n5(t),"first-input"===t.entryType){let e=!n1.some(e=>e.entries.some(e=>t.duration===e.duration&&t.startTime===e.startTime));e&&n5(t)}});let e=n3();e&&e.latency!==r.value&&(r.value=e.latency,r.entries=e.entries,n())},s=nU("event",i,{durationThreshold:e.durationThreshold||40});n=nP(t,r,e.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),nq(()=>{i(s.takeRecords()),r.value<0&&n0()>0&&(r.value=0,r.entries=[]),n(!0)}))},n6={},n8=t=>{let e;let n=nQ(),r=nB("LCP"),i=t=>{let i=t[t.length-1];if(i){let t=Math.max(i.startTime-nF(),0);t<n.firstHiddenTime&&(r.value=t,r.entries=[i],e())}},s=nU("largest-contentful-paint",i);if(s){e=nP(t,r);let n=()=>{n6[r.id]||(i(s.takeRecords()),s.disconnect(),n6[r.id]=!0,e(!0))};return["keydown","click"].forEach(t=>{nA.document&&addEventListener(t,n,{once:!0,capture:!0})}),nq(n,!0),n}},n9=t=>{nA.document&&(nA.document.prerendering?addEventListener("prerenderingchange",()=>n9(t),!0):"complete"!==nA.document.readyState?addEventListener("load",()=>n9(t),!0):setTimeout(t,0))},n7=(t,e)=>{e=e||{};let n=nB("TTFB"),r=nP(t,n,e.reportAllChanges);n9(()=>{let t=nj();if(t){if(n.value=Math.max(t.responseStart-nF(),0),n.value<0||n.value>performance.now())return;n.entries=[t],r(!0)}})},rt={},re={};function rn(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return rl("lcp",t,ra,h,e)}function rr(t,e){return rd(t,e),re[t]||(function(t){let e={};"event"===t&&(e.durationThreshold=0),nU(t,e=>{ri(t,{entries:e})},e)}(t),re[t]=!0),rh(t,e)}function ri(t,e){let n=rt[t];if(n&&n.length)for(let t of n)try{t(e)}catch(t){}}function rs(){return nH(t=>{ri("cls",{metric:t}),l=t},{reportAllChanges:!0})}function ro(){return nG(t=>{ri("fid",{metric:t}),d=t})}function ra(){return n8(t=>{ri("lcp",{metric:t}),h=t})}function rc(){return n7(t=>{ri("ttfb",{metric:t}),f=t})}function ru(){return n4(t=>{ri("inp",{metric:t}),p=t})}function rl(t,e,n,r){let i,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return rd(t,e),re[t]||(i=n(),re[t]=!0),r&&e({metric:r}),rh(t,e,s?i:void 0)}function rd(t,e){rt[t]=rt[t]||[],rt[t].push(e)}function rh(t,e,n){return()=>{n&&n();let r=rt[t];if(!r)return;let i=r.indexOf(e);-1!==i&&r.splice(i,1)}}function rf(t){return[{type:"span"},t]}function rp(t){return"number"==typeof t&&isFinite(t)}function rm(t,e){let{startTimestamp:n,...r}=e;return n&&t.startTimestamp>n&&(t.startTimestamp=n),t.startChild({startTimestamp:n,...r})}function rg(t){return t/1e3}function ry(){return nA&&nA.addEventListener&&nA.performance}let rv=0,r_={};function rb(){let t=ry();if(t&&eJ.Z1){t.mark&&nA.performance.mark("sentry-tracing-init");let e=rl("fid",t=>{let{metric:e}=t,n=e.entries[e.entries.length-1];if(!n)return;let r=rg(eJ.Z1),i=rg(n.startTime);r_.fid={value:e.value,unit:"millisecond"},r_["mark.fid"]={value:r+i,unit:"second"}},ro,d),n=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return rl("cls",t,rs,l,e)}(t=>{let{metric:e}=t,n=e.entries[e.entries.length-1];n&&(r_.cls={value:e.value,unit:""},g=n)},!0),r=rn(t=>{let{metric:e}=t,n=e.entries[e.entries.length-1];n&&(r_.lcp={value:e.value,unit:"millisecond"},m=n)},!0),i=rl("ttfb",t=>{let{metric:e}=t,n=e.entries[e.entries.length-1];n&&(r_.ttfb={value:e.value,unit:"millisecond"})},rc,f);return()=>{e(),n(),r(),i()}}return()=>void 0}function rS(){rr("longtask",t=>{let{entries:e}=t;for(let t of e){let e=nE();if(!e)return;let n=rg(eJ.Z1+t.startTime),r=rg(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}})}
8function rE(){rr("event",t=>{let{entries:e}=t;for(let t of e){let e=nE();if(!e)return;if("click"===t.name){let n=rg(eJ.Z1+t.startTime),r=rg(t.duration),i={description:(0,tD.Rt)(t.target),op:"ui.interaction.".concat(t.name),origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r},s=(0,tD.iY)(t.target);s&&(i.attributes={"ui.component_name":s}),e.startChild(i)}}})}function rk(t,e){let n=ry();if(n&&eJ.Z1){let n=rl("inp",n=>{let r,{metric:i}=n;if(void 0===i.value)return;let s=i.entries.find(t=>t.duration===i.value&&void 0!==rw[t.name]),o=(0,H.s3)();if(!s||!o)return;let a=rw[s.name],c=o.getOptions(),u=rg(eJ.Z1+s.startTime),l=rg(i.value),d=void 0!==s.interactionId?t[s.interactionId]:void 0;if(void 0===d)return;let{routeName:h,parentContext:f,activeTransaction:p,user:m,replayId:g}=d,y=void 0!==m?m.email||m.id||m.ip_address:void 0,v=void 0!==p?p.getProfileId():void 0,_=new ng({startTimestamp:u,endTimestamp:u+l,op:"ui.interaction.".concat(a),name:(0,tD.Rt)(s.target),attributes:{release:c.release,environment:c.environment,transaction:h,...void 0!==y&&""!==y?{user:y}:{},...void 0!==v?{profile_id:v}:{},...void 0!==g?{replay_id:g}:{}},exclusiveTime:i.value,measurements:{inp:{value:i.value,unit:"millisecond"}}}),b=!!(0,U.z)(c)&&!!nT(r=void 0!==f&&"function"==typeof c.tracesSampler?c.tracesSampler({transactionContext:f,name:f.name,parentSampled:f.parentSampled,attributes:{...f.data,...f.attributes},location:nA.location}):void 0!==f&&void 0!==f.sampled?f.sampled:void 0!==c.tracesSampleRate?c.tracesSampleRate:1)&&(!0===r?e:!1===r?0:r*e);if(b&&Math.random()<b){let t=_?function(t,e){let n={sent_at:new Date().toISOString()};e&&(n.dsn=eA(e));let r=t.map(rf);return eN(n,r)}([_],o.getDsn()):void 0,e=o&&o.getTransport();e&&t&&e.send(t).then(null,t=>{});return}},ru,p);return()=>{n()}}return()=>void 0}let rw={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"};function rx(t){let e=ry();if(!e||!nA.performance.getEntries||!eJ.Z1)return;let n=rg(eJ.Z1),r=e.getEntries(),{op:i,start_timestamp:s}=(0,na.XU)(t);if(r.slice(rv).forEach(e=>{let r=rg(e.startTime),i=rg(e.duration);if("navigation"!==t.op||!s||!(n+r<s))switch(e.entryType){case"navigation":["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{rT(t,e,r,n)}),rT(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),rT(t,e,"fetch",n,"cache","domainLookupStart"),rT(t,e,"domainLookup",n,"DNS"),e.responseEnd&&(rm(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+rg(e.requestStart),endTimestamp:n+rg(e.responseEnd)}),rm(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+rg(e.responseStart),endTimestamp:n+rg(e.responseEnd)}));break;case"mark":case"paint":case"measure":{(function(t,e,n,r,i){let s=i+n;rm(t,{description:e.name,endTimestamp:s+r,op:e.entryType,origin:"auto.resource.browser.metrics",startTimestamp:s})})(t,e,r,i,n);let s=nQ(),o=e.startTime<s.firstHiddenTime;"first-paint"===e.name&&o&&(r_.fp={value:e.startTime,unit:"millisecond"}),"first-contentful-paint"===e.name&&o&&(r_.fcp={value:e.startTime,unit:"millisecond"});break}case"resource":(function(t,e,n,r,i,s){if("xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType)return;let o=eh(n),a={};rC(a,e,"transferSize","http.response_transfer_size"),rC(a,e,"encodedBodySize","http.response_content_length"),rC(a,e,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in e&&(a["resource.render_blocking_status"]=e.renderBlockingStatus),o.protocol&&(a["url.scheme"]=o.protocol.split(":").pop()),o.host&&(a["server.address"]=o.host),a["url.same_origin"]=n.includes(nA.location.origin);let c=s+r,u=c+i;rm(t,{description:n.replace(nA.location.origin,""),endTimestamp:u,op:e.initiatorType?"resource.".concat(e.initiatorType):"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:c,data:a})})(t,e,e.name,r,i,n)}}),rv=Math.max(r.length-1,0),function(t){let e=nA.navigator;if(!e)return;let n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),rp(n.rtt)&&(r_["connection.rtt"]={value:n.rtt,unit:"millisecond"})),rp(e.deviceMemory)&&t.setTag("deviceMemory","".concat(e.deviceMemory," GB")),rp(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}(t),"pageload"===i){(function(t){let e=nj();if(!e)return;let{responseStart:n,requestStart:r}=e;r<=n&&(t["ttfb.requestTime"]={value:n-r,unit:"millisecond"})})(r_),["fcp","fp","lcp"].forEach(t=>{if(!r_[t]||!s||n>=s)return;let e=r_[t].value,r=n+rg(e);r_[t].value=Math.abs((r-s)*1e3)});let e=r_["mark.fid"];
8e&&r_.fid&&(rm(t,{description:"first input delay",endTimestamp:e.value+rg(r_.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:e.value}),delete r_["mark.fid"]),"fcp"in r_||delete r_.cls,Object.keys(r_).forEach(t=>{!function(t,e,n){let r=nE();r&&r.setMeasurement(t,e,n)}(t,r_[t].value,r_[t].unit)}),m&&(m.element&&t.setTag("lcp.element",(0,tD.Rt)(m.element)),m.id&&t.setTag("lcp.id",m.id),m.url&&t.setTag("lcp.url",m.url.trim().slice(0,200)),t.setTag("lcp.size",m.size)),g&&g.sources&&g.sources.forEach((e,n)=>t.setTag("cls.source.".concat(n+1),(0,tD.Rt)(e.node)))}m=void 0,g=void 0,r_={}}function rT(t,e,n,r,i,s){let o=s?e[s]:e["".concat(n,"End")],a=e["".concat(n,"Start")];a&&o&&rm(t,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+rg(a),endTimestamp:r+rg(o)})}function rC(t,e,n,r){let i=e[n];null!=i&&i<2147483647&&(t[r]=i)}var rO=n(42122);let rI=["localhost",/^\/(?!\/)/],rR={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:rI,tracePropagationTargets:rI};function rM(t){let{traceFetch:e,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:s,enableHTTPTimings:o}={traceFetch:rR.traceFetch,traceXHR:rR.traceXHR,...t},a="function"==typeof s?s:t=>!0,c=t=>{var e;return e=r||i,(0,tn.U0)(t,e||rI)},u={};e&&er(t=>{let e=function(t,e,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"auto.http.browser";if(!(0,U.z)()||!t.fetchData)return;let s=e(t.fetchData.url);if(t.endTimestamp&&s){let e=t.fetchData.__span;if(!e)return;let n=r[e];n&&(function(t,e){if(e.response){np(t,e.response.status);let n=e.response&&e.response.headers&&e.response.headers.get("content-length");if(n){let e=parseInt(n);e>0&&t.setAttribute("http.response_content_length",e)}}else e.error&&t.setStatus("internal_error");t.end()}(n,t),delete r[e]);return}let o=(0,H.nZ)(),a=(0,H.s3)(),{method:c,url:u}=t.fetchData,l=function(t){try{let e=new URL(t);return e.href}catch(t){return}}(u),d=l?eh(l).host:void 0,h=s?(0,ny.qp)({name:"".concat(c," ").concat(u),onlyIfParent:!0,attributes:{url:u,type:"fetch","http.method":c,"http.url":l,"server.address":d,[nh]:i},op:"http.client"}):void 0;if(h&&(t.fetchData.__span=h.spanContext().spanId,r[h.spanContext().spanId]=h),n(t.fetchData.url)&&a){let e=t.args[0];t.args[1]=t.args[1]||{};let n=t.args[1];n.headers=function(t,e,n,r,i){let s=i||n.getSpan(),o=(0,G.aF)(),{traceId:a,spanId:c,sampled:u,dsc:l}={...o.getPropagationContext(),...n.getPropagationContext()},d=s?(0,na.Hb)(s):(0,nM.$p)(a,c,u),h=(0,rO.IQ)(l||(s?(0,ez.j)(s):(0,ez._)(a,e,n))),f=r.headers||("undefined"!=typeof Request&&(0,tu.V9)(t,Request)?t.headers:void 0);if(!f)return{"sentry-trace":d,baggage:h};if("undefined"!=typeof Headers&&(0,tu.V9)(f,Headers)){let t=new Headers(f);return t.append("sentry-trace",d),h&&t.append(rO.bU,h),t}if(Array.isArray(f)){let t=[...f,["sentry-trace",d]];return h&&t.push([rO.bU,h]),t}{let t="baggage"in f?f.baggage:void 0,e=[];return Array.isArray(t)?e.push(...t):t&&e.push(t),h&&e.push(h),{...f,"sentry-trace":d,baggage:e.length>0?e.join(","):void 0}}}(e,a,o,n,h)}return h}(t,a,c,u);if(e){let n=rP(t.fetchData.url),r=n?eh(n).host:void 0;e.setAttributes({"http.url":n,"server.address":r})}o&&e&&rA(e)}),n&&t9(t=>{let e=function(t,e,n,r){let i=t.xhr,s=i&&i[t8];
8if(!(0,U.z)()||!i||i.__sentry_own_request__||!s)return;let o=e(s.url);if(t.endTimestamp&&o){let t=i.__sentry_xhr_span_id__;if(!t)return;let e=r[t];e&&void 0!==s.status_code&&(np(e,s.status_code),e.end(),delete r[t]);return}let a=(0,H.nZ)(),c=(0,G.aF)(),u=rP(s.url),l=u?eh(u).host:void 0,d=o?(0,ny.qp)({name:"".concat(s.method," ").concat(s.url),onlyIfParent:!0,attributes:{type:"xhr","http.method":s.method,"http.url":u,url:s.url,"server.address":l,[nh]:"auto.http.browser"},op:"http.client"}):void 0;d&&(i.__sentry_xhr_span_id__=d.spanContext().spanId,r[i.__sentry_xhr_span_id__]=d);let h=(0,H.s3)();if(i.setRequestHeader&&n(s.url)&&h){let{traceId:t,spanId:e,sampled:n,dsc:r}={...c.getPropagationContext(),...a.getPropagationContext()},s=d?(0,na.Hb)(d):(0,nM.$p)(t,e,n),o=(0,rO.IQ)(r||(d?(0,ez.j)(d):(0,ez._)(t,h,a)));(function(t,e,n){try{t.setRequestHeader("sentry-trace",e),n&&t.setRequestHeader(rO.bU,n)}catch(t){}})(i,s,o)}return d}(t,a,c,u);o&&e&&rA(e)})}function rA(t){let{url:e}=(0,na.XU)(t).data||{};if(!e||"string"!=typeof e)return;let n=rr("resource",r=>{let{entries:i}=r;i.forEach(r=>{if("resource"===r.entryType&&"initiatorType"in r&&"string"==typeof r.nextHopProtocol&&("fetch"===r.initiatorType||"xmlhttprequest"===r.initiatorType)&&r.name.endsWith(e)){let e=function(t){let{name:e,version:n}=function(t){let e="unknown",n="unknown",r="";for(let i of t){if("/"===i){[e,n]=t.split("/");break}if(!isNaN(Number(i))){e="h"===r?"http":r,n=t.split(r)[1];break}r+=i}return r===t&&(e=r),{name:e,version:n}}(t.nextHopProtocol),r=[];return(r.push(["network.protocol.version",n],["network.protocol.name",e]),eJ.Z1)?[...r,["http.request.redirect_start",rD(t.redirectStart)],["http.request.fetch_start",rD(t.fetchStart)],["http.request.domain_lookup_start",rD(t.domainLookupStart)],["http.request.domain_lookup_end",rD(t.domainLookupEnd)],["http.request.connect_start",rD(t.connectStart)],["http.request.secure_connection_start",rD(t.secureConnectionStart)],["http.request.connection_end",rD(t.connectEnd)],["http.request.request_start",rD(t.requestStart)],["http.request.response_start",rD(t.responseStart)],["http.request.response_end",rD(t.responseEnd)]]:r}(r);e.forEach(e=>t.setAttribute(...e)),setTimeout(n)}})})}function rD(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return((eJ.Z1||performance.timeOrigin)+t)/1e3}function rP(t){try{let e=new URL(t,nA.location.origin);return e.href}catch(t){return}}let rN={...n_,markBackgroundTransactions:!0,routingInstrumentation:function(t){let e,n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!nA||!nA.location)return;let i=nA.location.href;n&&(e=t({name:nA.location.pathname,startTimestamp:eJ.Z1?eJ.Z1/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),r&&eu(n=>{let{to:r,from:s}=n;if(void 0===s&&i&&-1!==i.indexOf(r)){i=void 0;return}s!==r&&(i=void 0,e&&e.end(),e=t({name:nA.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...rR};class rL{setupOnce(t,e){this._getCurrentHub=e;let n=e(),r=n.getClient(),i=r&&r.getOptions(),{routingInstrumentation:s,startTransactionOnLocationChange:o,startTransactionOnPageLoad:a,markBackgroundTransactions:c,traceFetch:u,traceXHR:l,shouldCreateSpanForRequest:d,enableHTTPTimings:h,_experiments:f}=this.options,p=i&&i.tracePropagationTargets,m=p||this.options.tracePropagationTargets;s(t=>{let n=this._createRouteTransaction(t);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,t,e),n},a,o),c&&nD(),f.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),rM({traceFetch:u,traceXHR:l,tracePropagationTargets:m,shouldCreateSpanForRequest:d,enableHTTPTimings:h})}_createRouteTransaction(t){let e;if(!this._getCurrentHub)return;let n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:i,finalTimeout:s,heartbeatInterval:o}=this.options,a="pageload"===t.op;if(a){let n=a?rj("sentry-trace"):"",r=a?rj("baggage"):void 0,{traceId:i,dsc:s,parentSpanId:o,sampled:c}=(0,nM.pT)(n,r);e={traceId:i,parentSpanId:o,parentSampled:c,...t,metadata:{...t.metadata,dynamicSamplingContext:s},trimEnd:!0}}else e={trimEnd:!0,...t};let c="function"==typeof r?r(e):e,u=void 0===c?{...e,sampled:!1}:c;u.metadata=u.name!==e.name?{...u.metadata,source:"custom"}:u.metadata,this._latestRoute.name=u.name,this._latestRoute.context=u,u.sampled;let{location:l}=nA,d=nI(n,u,i,s,!0,{location:l},o,a);return a&&nA.document&&(nA.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(nA.document.readyState)&&d.sendAutoFinishSignal()}),["interactive","complete"].includes(nA.document.readyState)&&d.sendAutoFinishSignal()),d.registerBeforeFinishCallback(t=>{this._collectWebVitals(),rx(t)}),d}_registerInteractionListener(){let t;let e=()=>{let{idleTimeout:e,finalTimeout:n,heartbeatInterval:r}=this.options,i=nE();if(i&&i.op&&["navigation","pageload"].includes(i.op)||(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this._getCurrentHub)||!this._latestRoute.name)return;let s=this._getCurrentHub(),{location:o}=nA,a={name:this._latestRoute.name,op:"ui.action.click",trimEnd:!0,data:{[nu]:this._latestRoute.context?function(t){let e=t.attributes&&t.attributes[nu],n=t.data&&t.data[nu],r=t.metadata&&t.metadata.source;return e||n||r}(this._latestRoute.context):"url"}};t=nI(s,a,e,n,!0,{location:o},r)};["click"].forEach(t=>{nA.document&&addEventListener(t,e,{once:!1,capture:!0})})}_registerInpInteractionListener(){let t=t=>{let{entries:e}=t,n=(0,H.s3)(),r=void 0!==n&&void 0!==n.getIntegrationByName?n.getIntegrationByName("Replay"):void 0,i=void 0!==r?r.getReplayId():void 0,s=nE(),o=(0,H.nZ)(),a=void 0!==o?o.getUser():void 0;e.forEach(t=>{if("duration"in t){let e=t.interactionId;if(void 0===e)return;let n=this._interactionIdToRouteNameMapping[e],r=t.duration,o=t.startTime,c=Object.keys(this._interactionIdToRouteNameMapping),u=c.length>0?c.reduce((t,e)=>this._interactionIdToRouteNameMapping[t].duration<this._interactionIdToRouteNameMapping[e].duration?t:e):void 0;if("first-input"===t.entryType){let t=c.map(t=>this._interactionIdToRouteNameMapping[t]).some(t=>t.duration===r&&t.startTime===o);if(t)return}if(e){if(n)n.duration=Math.max(n.duration,r);else if(c.length<10||void 0===u||r>this._interactionIdToRouteNameMapping[u].duration){let t=this._latestRoute.name,n=this._latestRoute.context;t&&n&&(u&&Object.keys(this._interactionIdToRouteNameMapping).length>=10&&delete this._interactionIdToRouteNameMapping[u],this._interactionIdToRouteNameMapping[e]={routeName:t,duration:r,parentContext:n,user:a,activeTransaction:s,replayId:i,startTime:o})}}}})};rr("event",t),rr("first-input",t)}constructor(t){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,nR(),this.options={...rN,...t},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=rb(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&rk(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&rS(),this.options._experiments.enableInteractions&&rE(),this._latestRoute={name:void 0,context:void 0}}}function rj(t){let e=(0,tD.qT)("meta[name=".concat(t,"]"));return e?e.getAttribute("content"):void 0}let rF={...n_,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroun
8dSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...rR},rB=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};nR(),!t.tracePropagationTargets&&t.tracingOrigins&&(t.tracePropagationTargets=t.tracingOrigins);let e={...rF,...t},n=rb(),r={};e.enableInp&&rk(r,e.interactionsSampleRate),e.enableLongTask&&rS(),e._experiments.enableInteractions&&rE();let i={name:void 0,context:void 0};function s(t){let r;let s=(0,G.Gd)(),{beforeStartSpan:o,idleTimeout:a,finalTimeout:c,heartbeatInterval:u}=e,l="pageload"===t.op;if(l){let e=l?rH("sentry-trace"):"",n=l?rH("baggage"):void 0,{traceId:i,dsc:s,parentSpanId:o,sampled:a}=(0,nM.pT)(e,n);r={traceId:i,parentSpanId:o,parentSampled:a,...t,metadata:{...t.metadata,dynamicSamplingContext:s},trimEnd:!0}}else r={trimEnd:!0,...t};let d=o?o(r):r;d.metadata=d.name!==r.name?{...d.metadata,source:"custom"}:d.metadata,i.name=d.name,i.context=d,d.sampled;let{location:h}=nA,f=nI(s,d,a,c,!0,{location:h},u,l);return l&&nA.document&&(nA.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(nA.document.readyState)&&f.sendAutoFinishSignal()}),["interactive","complete"].includes(nA.document.readyState)&&f.sendAutoFinishSignal()),f.registerBeforeFinishCallback(t=>{n(),rx(t)}),f}return{name:"BrowserTracing",setupOnce:()=>{},afterAllSetup(t){let n;let o=t.getOptions(),{markBackgroundSpan:a,traceFetch:c,traceXHR:u,shouldCreateSpanForRequest:l,enableHTTPTimings:d,_experiments:h}=e,f=o&&o.tracePropagationTargets,p=f||e.tracePropagationTargets,m=nA.location&&nA.location.href;if(t.on&&(t.on("startNavigationSpan",t=>{n&&n.end(),n=s({op:"navigation",...t})}),t.on("startPageLoadSpan",t=>{n&&n.end(),n=s({op:"pageload",...t})})),e.instrumentPageLoad&&t.emit&&nA.location){let e={name:nA.location.pathname,startTimestamp:eJ.Z1?eJ.Z1/1e3:void 0,origin:"auto.pageload.browser",attributes:{[nu]:"url"}};rU(t,e)}e.instrumentNavigation&&t.emit&&nA.location&&eu(e=>{let{to:n,from:r}=e;if(void 0===r&&m&&-1!==m.indexOf(n)){m=void 0;return}if(r!==n){m=void 0;let e={name:nA.location.pathname,origin:"auto.navigation.browser",attributes:{[nu]:"url"}};rq(t,e)}}),a&&nD(),h.enableInteractions&&function(t,e){let n;let r=()=>{let{idleTimeout:r,finalTimeout:i,heartbeatInterval:s}=t,o=nE();if(o&&o.op&&["navigation","pageload"].includes(o.op)||(n&&(n.setFinishReason("interactionInterrupted"),n.end(),n=void 0),!e.name))return;let{location:a}=nA,c={name:e.name,op:"ui.action.click",trimEnd:!0,data:{[nu]:e.context?function(t){let e=t.attributes&&t.attributes[nu],n=t.data&&t.data[nu],r=t.metadata&&t.metadata.source;return e||n||r}(e.context):"url"}};n=nI((0,G.Gd)(),c,r,i,!0,{location:a},s)};["click"].forEach(t=>{nA.document&&addEventListener(t,r,{once:!1,capture:!0})})}(e,i),e.enableInp&&function(t,e){let n=n=>{let{entries:r}=n,i=(0,H.s3)(),s=void 0!==i&&void 0!==i.getIntegrationByName?i.getIntegrationByName("Replay"):void 0,o=void 0!==s?s.getReplayId():void 0,a=nE(),c=(0,H.nZ)(),u=void 0!==c?c.getUser():void 0;r.forEach(n=>{if("duration"in n){let r=n.interactionId;if(void 0===r)return;let i=t[r],s=n.duration,c=n.startTime,l=Object.keys(t),d=l.length>0?l.reduce((e,n)=>t[e].duration<t[n].duration?e:n):void 0;if("first-input"===n.entryType){let e=l.map(e=>t[e]).some(t=>t.duration===s&&t.startTime===c);if(e)return}if(r){if(i)i.duration=Math.max(i.duration,s);else if(l.length<10||void 0===d||s>t[d].duration){let n=e.name,i=e.context;n&&i&&(d&&Object.keys(t).length>=10&&delete t[d],t[r]={routeName:n,duration:s,parentContext:i,user:u,activeTransaction:a,replayId:o,startTime:c})}}}})};rr("event",n),rr("first-input",n)}(r,i),rM({traceFetch:c,traceXHR:u,tracePropagationTargets:p,shouldCreateSpanForRequest:l,enableHTTPTimings:d})},options:e}};function rU(t,e){if(!t.emit)return;t.emit("startPageLoadSpan",e);let n=(0,ny.HN)(),r=n&&(0,na.XU)(n).op;return"pageload"===r?n:void 0}function rq(t,e){if(!t.emit)return;t.emit("startNavigationSpan",e);let n=(0,ny.HN)(),r=n&&(0,na.XU)(n).op;return"navigation"===r?n:void 0}function rH(t){let e=(0,tD.qT)("meta[name=".concat(t,"]"));return e?e.getAttribute("content"):void 0}let rz={"routing.instrumentation":"next-app-router"};var r$=n(11163),rW=n.n(r$),rQ=n(27221);let rG={"routing.instrumentation":"next-pages-router"},rX=(0,H.s3)();function rJ(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,s=!ty.document.getElementById("__NEXT_DATA__");s?function(t){let e,n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,o=ty.location.pathname;if(n){let n={name:o,op:"pageload",origin:"auto.pageload.nextjs.app_router_instrumentation",tags:rz,startTimestamp:eJ.Z1?eJ.Z1/1e3:void 0,metadata:{source:"url"}};e=t(n),i(n)}r&&er(n=>{if(void 0!==n.endTimestamp||"GET"!==n.fetchData.method)return;let r=function(t){if(!t[0]||"object"!=typeof t[0]||void 0===t[0].searchParams||!t[1]||"object"!=typeof t[1]||!("headers"in t[1]))return null;try{let e=t[0],n=t[1].headers;if("1"!==n.RSC||"1"===n["Next-Router-Prefetch"])return null;return{targetPathname:e.pathname}}catch(t){return null}}(n.args);if(null===r)return;let i=r.targetPathname,a={...rz,from:o};o=i,e&&e.end();let c={name:i,op:"navigation",origin:"auto.navigation.nextjs.app_router_instrumentation",tags:a,metadata:{source:"url"}};t(c),s(c)})}(t,e,n,r||(()=>void 0),i||(()=>void 0)):function(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,{route:s,params:o,sentryTrace:a,baggage:c}=function(){let t;let e=ty.document.getElementById("__NEXT_DATA__");if(e&&e.innerHTML)try{t=JSON.parse(e.innerHTML)}catch(t){rQ.X&&$.kg.warn("Could not extract __NEXT_DATA__")}if(!t)return{};let n={},{page:r,query:i,props:s}=t;return n.route=r,n.params=i,s&&s.pageProps&&(n.sentryTrace=s.pageProps._sentryTraceData,n.baggage=s.pageProps._sentryBaggage),n}(),{traceparentData:u,dynamicSamplingContext:l,propagationContext:d}=(0,nM.KA)(a,c);if((0,H.nZ)().setPropagationContext(d),x=s||ty.location.pathname,e){let e={name:x,op:"pageload",origin:"auto.pageload.nextjs.pages_router_instrumentation",tags:rG,startTimestamp:eJ.Z1?eJ.Z1/1e3:void 0,...o&&rX&&rX.getOptions().sendDefaultPii&&{data:o},...u,metadata:{source:s?"route":"url",dynamicSamplingContext:u&&!l?{}:l}};w=t(e),r(e)}n&&rW().events.on("routeChangeStart",e=>{let n,r;
8let s=e.split(/[\?#]/,1)[0],o=function(t){let e=(ty.__BUILD_MANIFEST||{}).sortedPages;if(e)return e.find(e=>{let n=function(t){let e=t.split("/"),n="";e[e.length-1].match(/^\[\[\.\.\..+\]\]$/)&&(e.pop(),n="(?:/(.+?))?");let r=e.map(t=>t.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return new RegExp("^".concat(r).concat(n,"(?:/)?$"))}(e);return t.match(n)})}(s);o?(n=o,r="route"):(n=s,r="url");let a={...rG,from:x};x=n,w&&w.end();let c={name:n,op:"navigation",origin:"auto.navigation.nextjs.pages_router_instrumentation",tags:a,metadata:{source:r}},u=t(c);if(i(c),u){let t=u.startChild({op:"ui.nextjs.route-change",origin:"auto.ui.nextjs.pages_router_instrumentation",description:"Next.js Route Change"}),e=()=>{t.end(),rW().events.off("routeChangeComplete",e)};rW().events.on("routeChangeComplete",e)}})}(t,e,n,r||(()=>void 0),i||(()=>void 0))}class rZ extends rL{constructor(t){super({tracingOrigins:[...rR.tracingOrigins,/^(api\/)/],routingInstrumentation:rJ,...t})}}function rV(t){let e=rB({tracingOrigins:[...rR.tracingOrigins,/^(api\/)/],...t,instrumentNavigation:!1,instrumentPageLoad:!1}),n={...e.options,instrumentPageLoad:!0,instrumentNavigation:!0,...t};return{...e,options:n,afterAllSetup(t){let r=e=>{rU(t,e)},i=e=>{rq(t,e)};rJ(()=>void 0,!1,n.instrumentNavigation,r,i),e.afterAllSetup(t),rJ(()=>void 0,n.instrumentPageLoad,!1,r,i)}}}function rK(t){let e;let n=t[0],r=1;for(;r<t.length;){let i=t[r],s=t[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(e=n,n=s(n)):("call"===i||"optionalCall"===i)&&(n=s(function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return n.call(e,...r)}),e=void 0)}return n}let rY=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function r0(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];let r="",i=!1;for(let t=e.length-1;t>=-1&&!i;t--){let n=t>=0?e[t]:"/";n&&(r="".concat(n,"/").concat(r),i="/"===n.charAt(0))}return r=(function(t,e){let n=0;for(let e=t.length-1;e>=0;e--){let r=t[e];"."===r?t.splice(e,1):".."===r?(t.splice(e,1),n++):n&&(t.splice(e,1),n--)}if(e)for(;n--;n)t.unshift("..");return t})(r.split("/").filter(t=>!!t),!i).join("/"),(i?"/":"")+r||"."}function r1(t){let e=0;for(;e<t.length&&""===t[e];e++);let n=t.length-1;for(;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}let r2="RewriteFrames",r5=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.root,n=t.prefix||"app:///",r=t.iteratee||(t=>{if(!t.filename)return t;let r=/^[a-zA-Z]:\\/.test(t.filename)||t.filename.includes("\\")&&!t.filename.includes("/"),i=/^\//.test(t.filename);if(r||i){var s;let i;let o=r?t.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):t.filename,a=e?function(t,e){t=r0(t).slice(1),e=r0(e).slice(1);let n=r1(t.split("/")),r=r1(e.split("/")),i=Math.min(n.length,r.length),s=i;for(let t=0;t<i;t++)if(n[t]!==r[t]){s=t;break}let o=[];for(let t=s;t<n.length;t++)o.push("..");return(o=o.concat(r.slice(s))).join("/")}(e,o):(i=function(t){let e=t.length>1024?"<truncated>".concat(t.slice(-1024)):t,n=rY.exec(e);return n?n.slice(1):[]}(o)[2],s&&i.slice(-1*s.length)===s&&(i=i.slice(0,i.length-s.length)),i);t.filename="".concat(n).concat(a)}return t});return{name:r2,setupOnce(){},processEvent(t){let e=t;return t.exception&&Array.isArray(t.exception.values)&&(e=function(t){try{return{...t,exception:{...t.exception,values:t.exception.values.map(t=>{var e;return{...t,...t.stacktrace&&{stacktrace:{...e=t.stacktrace,frames:e&&e.frames&&e.frames.map(t=>r(t))}}}})}}}catch(e){return t}}(e)),e}}};V(r2,r5);let r3=tg.GLOBAL_OBJ,r4=t=>{let e=r3.__rewriteFramesAssetPrefixPath__||"";return r5({iteratee:t=>{try{let{origin:n}=new URL(t.filename);t.filename=rK([t,"access",t=>t.filename,"optionalAccess",t=>t.replace,"call",t=>t(n,"app://"),"access",t=>t.replace,"call",t=>t(e,"")])}catch(t){}return t.filename&&t.filename.startsWith("app:///_next")&&(t.filename=decodeURI(t.filename)),t.filename&&t.filename.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(t.in_app=!1),t},...t})},r6=tg.GLOBAL_OBJ;function r8(t){let e=t.find(t=>"BrowserTracing"===t.name);if(!e)return t;if(e.afterAllSetup&&e.options){let{options:n}=e;t[t.indexOf(e)]=rV(n)}if(!(e instanceof rZ)){let n=e.options;delete n.routingInstrumentation,delete n.tracingOrigins,t[t.indexOf(e)]=new rZ(n)}return t}function r9(t){return"/"===t[t.length-1]?t.slice(0,-1):t}({...eR});
8var r7=n(70704);function it(){return!(0,r7.KV)()||void 0!==tg.GLOBAL_OBJ.process&&"renderer"===tg.GLOBAL_OBJ.process.type}let ie=tg.GLOBAL_OBJ,ir="sentryReplaySession",ii="Unable to send Replay";function is(t){let e;let n=t[0],r=1;for(;r<t.length;){let i=t[r],s=t[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(e=n,n=s(n)):("call"===i||"optionalCall"===i)&&(n=s(function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return n.call(e,...r)}),e=void 0)}return n}function io(t){let e=is([t,"optionalAccess",t=>t.host]);return is([e,"optionalAccess",t=>t.shadowRoot])===t}function ia(t){return"[object ShadowRoot]"===Object.prototype.toString.call(t)}function ic(t){try{var e;let n=t.rules||t.cssRules;return n?((e=Array.from(n,iu).join("")).includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e):null}catch(t){return null}}function iu(t){let e;if("styleSheet"in t)try{e=ic(t.styleSheet)||function(t){let{cssText:e}=t;if(e.split('"').length<3)return e;let n=["@import","url(".concat(JSON.stringify(t.href),")")];return""===t.layerName?n.push("layer"):t.layerName&&n.push("layer(".concat(t.layerName,")")),t.supportsText&&n.push("supports(".concat(t.supportsText,")")),t.media.length&&n.push(t.media.mediaText),n.join(" ")+";"}(t)}catch(t){}else if("selectorText"in t&&t.selectorText.includes(":"))return t.cssText.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2");return e||t.cssText}(C=P||(P={}))[C.Document=0]="Document",C[C.DocumentType=1]="DocumentType",C[C.Element=2]="Element",C[C.Text=3]="Text",C[C.CDATA=4]="CDATA",C[C.Comment=5]="Comment";class il{getId(t){if(!t)return -1;let e=is([this,"access",t=>t.getMeta,"call",e=>e(t),"optionalAccess",t=>t.id]);return()=>-1,null!=e?e:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let e=this.getId(t);this.idNodeMap.delete(e),t.childNodes&&t.childNodes.forEach(t=>this.removeNodeFromMap(t))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,e){let n=e.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,e)}replace(t,e){let n=this.getNode(t);if(n){let t=this.nodeMetaMap.get(n);t&&this.nodeMetaMap.set(e,t)}this.idNodeMap.set(t,e)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function id(t){let{maskInputOptions:e,tagName:n,type:r}=t;return"OPTION"===n&&(n="SELECT"),!!(e[n.toLowerCase()]||r&&e[r]||"password"===r||"INPUT"===n&&!r&&e.text)}function ih(t){let{isMasked:e,element:n,value:r,maskInputFn:i}=t,s=r||"";return e?(i&&(s=i(s,n)),"*".repeat(s.length)):s}function ip(t){return t.toLowerCase()}function im(t){return t.toUpperCase()}let ig="__rrweb_original__";function iy(t){let e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?ip(e):null}function iv(t,e,n){return"INPUT"===e&&("radio"===n||"checkbox"===n)?t.getAttribute("value")||"":t.value}let i_=1,ib=RegExp("[^a-z0-9-_:]");function iS(){return i_++}let iE=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ik=/^(?:[a-z+]+:)?\/\//i,iw=/^www\..*/i,ix=/^(data:)([^,]*),(.*)/i;function iT(t,e){return(t||"").replace(iE,(t,n,r,i,s,o)=>{let a=r||s||o,c=n||i||"";if(!a)return t;if(ik.test(a)||iw.test(a)||ix.test(a))return"url(".concat(c).concat(a).concat(c,")");if("/"===a[0])return"url(".concat(c).concat((e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]+a).concat(c,")");let u=e.split("/"),l=a.split("/");for(let t of(u.pop(),l))"."!==t&&(".."===t?u.pop():u.push(t));return"url(".concat(c).concat(u.join("/")).concat(c,")")})}let iC=/^[^ \t\n\r\u000c]+/,iO=/^[, \t\n\r\u000c]+/;function iI(t,e){if(!e||""===e.trim())return e;let n=t.createElement("a");return n.href=e,n.href}function iR(){let t=document.createElement("a");return t.href="",t.href}function iM(t,e,n,r,i,s){return r?"src"!==n&&("href"!==n||"use"===e&&"#"===r[0])&&("xlink:href"!==n||"#"===r[0])&&("background"!==n||"table"!==e&&"td"!==e&&"th"!==e)?"srcset"===n?function(t,e){if(""===e.trim())return e;let n=0;function r(t){let r;let i=t.exec(e.substring(n));return i?(r=i[0],n+=r.length,r):""}let i=[];for(;r(iO),!(n>=e.length);){let s=r(iC);if(","===s.slice(-1))s=iI(t,s.substring(0,s.length-1)),i.push(s);else{let r="";s=iI(t,s);let o=!1;for(;;){let t=e.charAt(n);if(""===t){i.push((s+r).trim());break}if(o)")"===t&&(o=!1);else{if(","===t){n+=1,i.push((s+r).trim());break}"("===t&&(o=!0)}r+=t,n+=1}}}return i.join(", ")}(t,r):"style"===n?iT(r,iR()):"object"===e&&"data"===n?iI(t,r):"function"==typeof s?s(n,r,i):r:iI(t,r):r}function iA(t,e,n){return("video"===t||"audio"===t)&&"autoplay"===e}function iD(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;
8return!t||t.nodeType!==t.ELEMENT_NODE||r>n?-1:e(t)?r:iD(t.parentNode,e,n,r+1)}function iP(t,e){return n=>{if(null===n)return!1;try{if(t){if("string"==typeof t){if(n.matches(".".concat(t)))return!0}else if(function(t,e){for(let n=t.classList.length;n--;){let r=t.classList[n];if(e.test(r))return!0}return!1}(n,t))return!0}if(e&&n.matches(e))return!0;return!1}catch(t){return!1}}}function iN(t,e,n,r,i,s){try{let o=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;if(null===o)return!1;if("INPUT"===o.tagName){let t=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(t))return!0}let a=-1,c=-1;if(s){if((c=iD(o,iP(r,i)))<0)return!0;a=iD(o,iP(e,n),c>=0?c:1/0)}else{if((a=iD(o,iP(e,n)))<0)return!1;c=iD(o,iP(r,i),a>=0?a:1/0)}return a>=0?!(c>=0)||a<=c:!(c>=0)&&!!s}catch(t){}return!!s}function iL(t){return null==t?"":t.toLowerCase()}function ij(t,e){let n;let{doc:r,mirror:i,blockClass:s,blockSelector:o,unblockSelector:a,maskAllText:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:h,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:m={},maskAttributeFn:g,maskTextFn:_,maskInputFn:b,slimDOMOptions:S,dataURLOptions:E={},inlineImages:k=!1,recordCanvas:w=!1,onSerialize:x,onIframeLoad:T,iframeLoadTimeout:C=5e3,onStylesheetLoad:O,stylesheetLoadTimeout:I=5e3,keepIframeSrcFn:R=()=>!1,newlyAddedElement:M=!1}=e,{preserveWhiteSpace:A=!0}=e,D=function(t,e){let{doc:n,mirror:r,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:f,maskInputOptions:p={},maskTextFn:m,maskInputFn:g,dataURLOptions:_={},inlineImages:b,recordCanvas:S,keepIframeSrcFn:E,newlyAddedElement:k=!1}=e,w=function(t,e){if(!e.hasNode(t))return;let n=e.getId(t);return 1===n?void 0:n}(n,r);switch(t.nodeType){case t.DOCUMENT_NODE:if("CSS1Compat"!==t.compatMode)return{type:P.Document,childNodes:[],compatMode:t.compatMode};return{type:P.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:P.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:w};case t.ELEMENT_NODE:return function(t,e){let n;let{doc:r,blockClass:i,blockSelector:s,unblockSelector:o,inlineStylesheet:a,maskInputOptions:c={},maskAttributeFn:u,maskInputFn:l,dataURLOptions:d={},inlineImages:h,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:m=!1,rootId:g,maskAllText:_,maskTextClass:b,unmaskTextClass:S,maskTextSelector:E,unmaskTextSelector:k}=e,w=function(t,e,n,r){try{if(r&&t.matches(r))return!1;if("string"==typeof e){if(t.classList.contains(e))return!0}else for(let n=t.classList.length;n--;){let r=t.classList[n];if(e.test(r))return!0}if(n)return t.matches(n)}catch(t){}return!1}(t,i,s,o),x=function(t){if(t instanceof HTMLFormElement)return"form";let e=ip(t.tagName);return ib.test(e)?"div":e}(t),T={},C=t.attributes.length;for(let e=0;e<C;e++){let n=t.attributes[e];n.name&&!iA(x,n.name,n.value)&&(T[n.name]=iM(r,x,ip(n.name),n.value,t,u))}if("link"===x&&a){let e=Array.from(r.styleSheets).find(e=>e.href===t.href),n=null;e&&(n=ic(e)),n&&(delete T.rel,delete T.href,T._cssText=iT(n,e.href))}if("style"===x&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){let e=ic(t.sheet);e&&(T._cssText=iT(e,iR()))}if("input"===x||"textarea"===x||"select"===x||"option"===x){let e=iy(t),n=iv(t,im(x),e),r=t.checked;if("submit"!==e&&"button"!==e&&n){let r=iN(t,b,E,S,k,id({type:e,tagName:im(x),maskInputOptions:c}));T.value=ih({isMasked:r,element:t,value:n,maskInputFn:l})}r&&(T.checked=r)}if("option"===x&&(t.selected&&!c.select?T.selected=!0:delete T.selected),"canvas"===x&&f){if("2d"===t.__context)!function(t){let e=t.getContext("2d");if(!e)return!0;for(let n=0;n<t.width;n+=50)for(let r=0;r<t.height;r+=50){let i=e.getImageData,s=ig in i?i[ig]:i,o=new Uint32Array(s.call(e,n,r,Math.min(50,t.width-n),Math.min(50,t.height-r)).data.buffer);if(o.some(t=>0!==t))return!1}return!0}(t)&&(T.rr_dataURL=t.toDataURL(d.type,d.quality));else if(!("__context"in t)){let e=t.toDataURL(d.type,d.quality),n=document.createElement("canvas");n.width=t.width,n.height=t.height;let r=n.toDataURL(d.type,d.quality);e!==r&&(T.rr_dataURL=e)}}if("img"===x&&h){y||(v=(y=r.createElement("canvas")).getContext("2d"));let e=t.crossOrigin;t.crossOrigin="anonymous";let n=()=>{t.removeEventListener("load",n);
8try{y.width=t.naturalWidth,y.height=t.naturalHeight,v.drawImage(t,0,0),T.rr_dataURL=y.toDataURL(d.type,d.quality)}catch(e){console.warn("Cannot inline img src=".concat(t.currentSrc,"! Error: ").concat(e))}e?T.crossOrigin=e:t.removeAttribute("crossorigin")};t.complete&&0!==t.naturalWidth?n():t.addEventListener("load",n)}if(("audio"===x||"video"===x)&&(T.rr_mediaState=t.paused?"paused":"played",T.rr_mediaCurrentTime=t.currentTime),!m&&(t.scrollLeft&&(T.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(T.rr_scrollTop=t.scrollTop)),w){let{width:e,height:n}=t.getBoundingClientRect();T={class:T.class,rr_width:"".concat(e,"px"),rr_height:"".concat(n,"px")}}"iframe"!==x||p(T.src)||(t.contentDocument||(T.rr_src=T.src),delete T.src);try{customElements.get(x)&&(n=!0)}catch(t){}return{type:P.Element,tagName:x,attributes:T,childNodes:[],isSVG:!!("svg"===t.tagName||t.ownerSVGElement)||void 0,needBlock:w,rootId:g,isCustom:n}}(t,{doc:n,blockClass:i,blockSelector:s,unblockSelector:o,inlineStylesheet:f,maskAttributeFn:c,maskInputOptions:p,maskInputFn:g,dataURLOptions:_,inlineImages:b,recordCanvas:S,keepIframeSrcFn:E,newlyAddedElement:k,rootId:w,maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:h});case t.TEXT_NODE:return function(t,e){let{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:s,unmaskTextSelector:o,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:l}=e,d=t.parentNode&&t.parentNode.tagName,h=t.textContent,f="STYLE"===d||void 0,p="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(f&&h){try{t.nextSibling||t.previousSibling||is([t,"access",t=>t.parentNode,"access",t=>t.sheet,"optionalAccess",t=>t.cssRules])&&(h=ic(t.parentNode.sheet))}catch(e){console.warn("Cannot get CSS styles from text's parentNode. Error: ".concat(e),t)}h=iT(h,iR())}p&&(h="SCRIPT_PLACEHOLDER");let g=iN(t,r,s,i,o,n);if(f||p||m||!h||!g||(h=a?a(h,t.parentElement):h.replace(/[\S]/g,"*")),m&&h&&(c.textarea||g)&&(h=u?u(h,t.parentNode):h.replace(/[\S]/g,"*")),"OPTION"===d&&h){let e=id({type:null,tagName:d,maskInputOptions:c});h=ih({isMasked:iN(t,r,s,i,o,e),element:t,value:h,maskInputFn:u})}return{type:P.Text,textContent:h||"",isStyle:f,rootId:l}}(t,{maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:h,maskTextFn:m,maskInputOptions:p,maskInputFn:g,rootId:w});case t.CDATA_SECTION_NODE:return{type:P.CDATA,textContent:"",rootId:w};case t.COMMENT_NODE:return{type:P.Comment,textContent:t.textContent||"",rootId:w};default:return!1}}(t,{doc:r,mirror:i,blockClass:s,blockSelector:o,maskAllText:c,unblockSelector:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:g,maskTextFn:_,maskInputFn:b,dataURLOptions:E,inlineImages:k,recordCanvas:w,keepIframeSrcFn:R,newlyAddedElement:M});if(!D)return console.warn(t,"not serialized"),null;n=i.hasNode(t)?i.getId(t):!function(t,e){if(e.comment&&t.type===P.Comment)return!0;if(t.type===P.Element){if(e.script&&("script"===t.tagName||"link"===t.tagName&&("preload"===t.attributes.rel||"modulepreload"===t.attributes.rel)&&"script"===t.attributes.as||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&t.attributes.href.endsWith(".js"))||e.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(iL(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===iL(t.attributes.name)||"icon"===iL(t.attributes.rel)||"apple-touch-icon"===iL(t.attributes.rel)||"shortcut icon"===iL(t.attributes.rel))))return!0;if("meta"===t.tagName){if(e.headMetaDescKeywords&&iL(t.attributes.name).match(/^description|keywords$/)||e.headMetaSocial&&(iL(t.attributes.property).match(/^(og|twitter|fb):/)||iL(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===iL(t.attributes.name)))return!0;if(e.headMetaRobots&&("robots"===iL(t.attributes.name)||"googlebot"===iL(t.attributes.name)||"bingbot"===iL(t.attributes.name)))return!0;if(e.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;else if(e.headMetaAuthorship&&("author"===iL(t.attributes.name)||"generator"===iL(t.attributes.name)||"framework"===iL(t.attributes.name)||"publisher"===iL(t.attributes.name)||"progid"===iL(t.attributes.name)||iL(t.attributes.property).match(/^article:/)||iL(t.attributes.property).match(/^product:/)))return!0;else if(e.headMetaVerification&&("google-site-verification"===iL(t.attributes.name)||"yandex-verification"===iL(t.attributes.name)||"csrf-token"===iL(t.attributes.name)||"p:domain_verify"===iL(t.attributes.name)||"verify-v1"===iL(t.attributes.name)||"verification"===iL(t.attributes.name)||"shopify-checkout-api-token"===iL(t.attributes.name)))return!0}}return!1}(D,S)&&(A||D.type!==P.Text||D.isStyle||D.textContent.replace(/^\s+|\s+$/gm,"").length)?iS():-2;let N=Object.assign(D,{id:n});if(i.add(t,N),-2===n)return null;x&&x(t);let L=!f;if(N.type===P.Element){L=L&&!N.needBlock,delete N.needBlock;let e=t.shadowRoot;e&&ia(e)&&(N.isShadowHost=!0)}if((N.type===P.Document||N.type===P.Element)&&L){S.headWhitespace&&N.type===P.Element&&"head"===N.tagName&&(A=!1);let e={doc:r,mirror:i,blockClass:s,blockSelector:o,maskAllText:c,unblockSelector:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:h,skipChild:f,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:g,maskTextFn:_,maskInputFn:b,slimDOMOptions:S,dataURLOptions:E,inlineImages:k,recordCanvas:w,preserveWhiteSpace:A,onSerialize:x,onIframeLoad:T,iframeLoadTimeout:C,onStylesheetLoad:O,stylesheetLoadTimeout:I,keepIframeSrcFn:R};for(let n of Array.from(t.childNodes)){let t=ij(n,e);t&&N.childNodes.push(t)}if(t.nodeType===t.ELEMENT_NODE&&t.shadowRoot)for(let n of Array.from(t.shadowRoot.childNodes)){let r=ij(n,e);r&&(ia(t.shadowRoot)&&(r.isShadow=!0),N.childNodes.push(r))}}return t.parentNode&&io(t.parentNode)&&ia(t.parentNode)&&(N.isShadow=!0),N.type===P.Element&&"iframe"===N.tagName&&function(t,e,n){let r;let i=t.contentWindow;if(!i)return;let s=!1;try{r=i.document.readyState}catch(t){return}if("complete"!==r){let r=setTimeout(()=>{s||(e(),s=!0)},n);t.addEventListener("load",()=>{clearTimeout(r),s=!0,e()});return}let o="about:blank";if(i.location.href!==o||t.src===o||""===t.src)return setTimeout(e,0),t.addEventListener("load",e);t.addEventListener("load",e)}(t,()=>{let e=t.contentDocument;if(e&&T){let n=ij(e,{doc:e,mirror:i,blockClass:s,blockSelector:o,unblockSelector:a,maskAllText:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:g,maskTextFn:_,maskInputFn:b,slimDOMOptions:S,dataURLOptions:E,inlineImages:k,recordCanvas:w,preserveWhiteSpace:A,onSerialize:x,onIframeLoad:T,iframeLoadTimeout:C,onStylesheetLoad:O,stylesheetLoadTimeout:I,keepIframeSrcFn:R});n&&T(t,n)}},C),N.type===P.Element&&"link"===N.tagName&&"stylesheet"===N.attributes.rel&&function(t,e,n){let r,i=!1;try{r=t.sheet}catch(t){return}if(r)return;let s=setTimeout(()=>{i||(e(),i=!0)},n);t.addEventListener("load",()=>{clearTimeout(s),i=!0,e()})}(t,()=>{if(O){let e=ij(t,{doc:r,mirror:i,blockClass:s,blockSelector:o,unblockSelector:a,maskAllText:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:g,maskTextFn:_,maskInputFn:b,slimDOMOptions:S,dataURLOptions:E,inlineImages:k,recordCanvas:w,preserveWhiteSpace:A,onSerialize:x,onIframeLoad:T,iframeLoadTimeout:C,onStylesheetLoad:O,stylesheetLoadTimeout:I,keepIframeSrcFn:R});e&&O(t,e)}},I),N}function iF(t){let e;let n=t[0],r=1;for(;r<t.length;){let i=t[r],s=t[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(e=n,n=s(n)):("call"===i||"optionalCall"===i)&&(n=s(function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return n.call(e,...r)}),e=void 0)}return n}function iB(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,r={capture:!0,passive:!0};return n.addEventListener(t,e,r),()=>n.removeEventListener(t,e,r)}let iU="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.",iq={map:{},getId:()=>(console.error(iU),-1),getNode:()=>(console.error(iU),null),removeNodeFromMap(){console.error(iU)},has:()=>(console.error(iU),!1),reset(){console.error(iU)}};function iH(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null,i=0;return function(){for(var s=arguments.length,o=Array(s),a=0;a<s;a++)o[a]=arguments[a];let c=Date.now();i||!1!==n.leading||(i=c);let u=e-(c-i),l=this;u<=0||u>
8e?(r&&(function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];i4("clearTimeout")(...e)}(r),r=null),i=c,t.apply(l,o)):r||!1===n.trailing||(r=i6(()=>{i=!1===n.leading?0:Date.now(),r=null,t.apply(l,o)},u))}}function iz(t,e,n){try{if(!(e in t))return()=>{};let r=t[e],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=i,()=>{t[e]=r}}catch(t){return()=>{}}}window.Proxy&&window.Reflect&&(iq=new Proxy(iq,{get:(t,e,n)=>("map"===e&&console.error(iU),Reflect.get(t,e,n))}));let i$=Date.now;function iW(t){let e=t.document;return{left:e.scrollingElement?e.scrollingElement.scrollLeft:void 0!==t.pageXOffset?t.pageXOffset:iF([e,"optionalAccess",t=>t.documentElement,"access",t=>t.scrollLeft])||iF([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.parentElement,"optionalAccess",t=>t.scrollLeft])||iF([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.scrollLeft])||0,top:e.scrollingElement?e.scrollingElement.scrollTop:void 0!==t.pageYOffset?t.pageYOffset:iF([e,"optionalAccess",t=>t.documentElement,"access",t=>t.scrollTop])||iF([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.parentElement,"optionalAccess",t=>t.scrollTop])||iF([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.scrollTop])||0}}function iQ(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function iG(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function iX(t){if(!t)return null;let e=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;return e}function iJ(t,e,n,r,i){if(!t)return!1;let s=iX(t);if(!s)return!1;let o=iP(e,n);if(!i){let t=r&&s.matches(r);return o(s)&&!t}let a=iD(s,o),c=-1;return!(a<0)&&(r&&(c=iD(s,iP(null,r))),a>-1&&c<0||a<c)}function iZ(t,e){return -2===e.getId(t)}function iV(t){return!!t.changedTouches}function iK(t,e){return!!("IFRAME"===t.nodeName&&e.getMeta(t))}function iY(t,e){return!!("LINK"===t.nodeName&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&"stylesheet"===t.getAttribute("rel")&&e.getMeta(t))}function i0(t){return!!iF([t,"optionalAccess",t=>t.shadowRoot])}/[1-9][0-9]{12}/.test(Date.now().toString())||(i$=()=>new Date().getTime());class i1{getId(t){var e;return e=this.styleIDMap.get(t),null!=e?e:-1}has(t){return this.styleIDMap.has(t)}add(t,e){let n;return this.has(t)?this.getId(t):(n=void 0===e?this.id++:e,this.styleIDMap.set(t,n),this.idStyleMap.set(n,t),n)}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}}function i2(t){let e=null;return iF([t,"access",t=>t.getRootNode,"optionalCall",t=>t(),"optionalAccess",t=>t.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&t.getRootNode().host&&(e=t.getRootNode().host),e}function i5(t){let e=t.ownerDocument;return!!e&&(e.contains(t)||function(t){let e=t.ownerDocument;if(!e)return!1;let n=function(t){let e,n=t;for(;e=i2(n);)n=e;return n}(t);return e.contains(n)}(t))}let i3={};function i4(t){let e=i3[t];if(e)return e;let n=window.document,r=window[t];if(n&&"function"==typeof n.createElement)try{let e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e);let i=e.contentWindow;i&&i[t]&&(r=i[t]),n.head.removeChild(e)}catch(t){}return i3[t]=r.bind(window)}function i6(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return i4("setTimeout")(...e)}var i8=((O=i8||{})[O.DomContentLoaded=0]="DomContentLoaded",O[O.Load=1]="Load",O[O.FullSnapshot=2]="FullSnapshot",O[O.IncrementalSnapshot=3]="IncrementalSnapshot",O[O.Meta=4]="Meta",O[O.Custom=5]="Custom",O[O.Plugin=6]="Plugin",O),i9=((I=i9||{})[I.Mutation=0]="Mutation",I[I.MouseMove=1]="MouseMove",I[I.MouseInteraction=2]="MouseInteraction",I[I.Scroll=3]="Scroll",I[I.ViewportResize=4]="ViewportResize",I[I.Input=5]="Input",I[I.TouchMove=6]="TouchMove",I[I.MediaInteraction=7]="MediaInteraction",I[I.StyleSheetRule=8]="StyleSheetRule",I[I.CanvasMutation=9]="CanvasMutation",I[I.Font=10]="Font",I[I.Log=11]="Log",I[I.Drag=12]="Drag",I[I.StyleDeclaration=13]="StyleDeclaration",I[I.Selection=14]="Selection",I[I.AdoptedStyleSheet=15]="AdoptedStyleSheet",I[I.CustomElement=16]="CustomElement",I),i7=((R=i7||{})[R.MouseUp=0]="MouseUp",R[R.MouseDown=1]="MouseDown",R[R.Click=2]="Click",R[R.C
8ontextMenu=3]="ContextMenu",R[R.DblClick=4]="DblClick",R[R.Focus=5]="Focus",R[R.Blur=6]="Blur",R[R.TouchStart=7]="TouchStart",R[R.TouchMove_Departed=8]="TouchMove_Departed",R[R.TouchEnd=9]="TouchEnd",R[R.TouchCancel=10]="TouchCancel",R),st=((M=st||{})[M.Mouse=0]="Mouse",M[M.Pen=1]="Pen",M[M.Touch=2]="Touch",M);class se{get(t){if(t>=this.length)throw Error("Position outside of list range");let e=this.head;for(let n=0;n<t;n++)e=function(t){let e;let n=t[0],r=1;for(;r<t.length;){let i=t[r],s=t[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(e=n,n=s(n)):("call"===i||"optionalCall"===i)&&(n=s(function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return n.call(e,...r)}),e=void 0)}return n}([e,"optionalAccess",t=>t.next])||null;return e}addNode(t){let e={value:t,previous:null,next:null};if(t.__ln=e,t.previousSibling&&"__ln"in t.previousSibling){let n=t.previousSibling.__ln.next;e.next=n,e.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=e,n&&(n.previous=e)}else if(t.nextSibling&&"__ln"in t.nextSibling&&t.nextSibling.__ln.previous){let n=t.nextSibling.__ln.previous;e.previous=n,e.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=e,n&&(n.next=e)}else this.head&&(this.head.previous=e),e.next=this.head,this.head=e;null===e.next&&(this.tail=e),this.length++}removeNode(t){let e=t.__ln;this.head&&(e.previous?(e.previous.next=e.next,e.next?e.next.previous=e.previous:this.tail=e.previous):(this.head=e.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}constructor(){this.length=0,this.head=null,this.tail=null}}let sn=(t,e)=>"".concat(t,"@").concat(e);class sr{init(t){["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(e=>{this[e]=t[e]})}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()}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=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let t=[],e=new Set,n=new se,r=t=>{let e=t,n=-2;for(;-2===n;)n=(e=e&&e.nextSibling)&&this.mirror.getId(e);return n},i=i=>{if(!i.parentNode||!i5(i))return;let s=io(i.parentNode)?this.mirror.getId(i2(i)):this.mirror.getId(i.parentNode),o=r(i);if(-1===s||-1===o)return n.addNode(i);let a=ij(i,{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:t=>{iK(t,this.mirror)&&this.iframeManager.addIframe(t),iY(t,this.mirror)&&this.stylesheetManager.trackLinkElement(t),i0(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(t,e)=>{this.iframeManager.attachIframe(t,e),this.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:(t,e)=>{this.stylesheetManager.attachLinkElement(t,e)}});a&&(t.push({parentId:s,nextId:o,node:a}),e.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let t of this.movedSet)(!ss(this.removes,t,this.mirror)||this.movedSet.has(t.parentNode))&&i(t);for(let t of this.addedSet)so(this.droppedSet,t)||ss(this.removes,t,this.mirror)?so(this.movedSet,t)?i(t):this.droppedSet.add(t):i(t);let s=null;for(;n.length;){let t=null;if(s){let e=this.mirror.getId(s.value.parentNode),n=r(s.value);-1!==e&&-1!==n&&(t=s)}if(!t){let e=n.tail;for(;e;){let n=e;if(e=e.previous,n){let e=this.mirror.getId(n.value.parentNode),i=r(n.value);if(-1===i)continue;if(-1!==e){t=n;break}{let e=n.value;if(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let r=e.parentNode.host,i=this.mirror.getId(r);if(-1!==i){t=n;break}}}}}}if(!t){for(;n.head;)n.removeNode(n.head.value);break}s=t.previous,n.removeNode(t.value),i(t.value)}let o={texts:this.texts.map(t=>({id:this.mirror.getId(t.node),value:t.value})).filter(t=>!e.has(t.id)).filter(t=>this.mirror.has(t.id)),attributes:this.attributes.map(t=>{let{attributes:e}=t;if("string"==typeof e.style){let n=JSON.stringify(t.styleDiff),r=JSON.stringify(t._unchangedStyles);n.length<e.style.length&&(n+r).split("var(").length===e.style.split("var(").length&&(e.style=t.styleDiff)}return{id:this.mirror.getId(t.node),attributes:e}}).filter(t=>!e.has(t.id)).filter(t=>this.mirror.has(t.id)),removes:this.removes,adds:t};(o.texts.length||o.attributes.length||o.removes.length||o.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(o))},this.processMutation=t=>{if(!iZ(t.target,this.mirror))switch(t.type){case"characterData":{let e=t.target.textContent;iJ(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||e===t.oldValue||this.texts.push({value:iN(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&e?this.maskTextFn?this.maskTextFn(e,iX(t.target)):e.replace(/[\S]/g,"*"):e,node:t.target});break}case"attributes":{let e=t.target,n=t.attributeName,r=t.target.getAttribute(n);if("value"===n){let n=iy(e),i=e.tagName;r=iv(e,i,n);let s=id({maskInputOptions:this.maskInputOptions,tagName:i,type:n}),o=iN(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,s);r=ih({isMasked:o,element:e,value:r,maskInputFn:this.maskInputFn})}if(iJ(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===t.oldValue)return;let i=this.attributeMap.get(t.target);
8if("IFRAME"===e.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(e.contentDocument)return;n="rr_src"}if(i||(i={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(t.target,i)),"type"===n&&"INPUT"===e.tagName&&"password"===(t.oldValue||"").toLowerCase()&&e.setAttribute("data-rr-is-password","true"),!iA(e.tagName,n)&&(i.attributes[n]=iM(this.doc,ip(e.tagName),ip(n),r,e,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){this.unattachedDoc=this.doc}let n=this.unattachedDoc.createElement("span");for(let r of(t.oldValue&&n.setAttribute("style",t.oldValue),Array.from(e.style))){let t=e.style.getPropertyValue(r),s=e.style.getPropertyPriority(r);t!==n.style.getPropertyValue(r)||s!==n.style.getPropertyPriority(r)?""===s?i.styleDiff[r]=t:i.styleDiff[r]=[t,s]:i._unchangedStyles[r]=[t,s]}for(let t of Array.from(n.style))""===e.style.getPropertyValue(t)&&(i.styleDiff[t]=!1)}break}case"childList":if(iJ(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(e=>this.genAdds(e,t.target)),t.removedNodes.forEach(e=>{let n=this.mirror.getId(e),r=io(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);iJ(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||iZ(e,this.mirror)||-1===this.mirror.getId(e)||(this.addedSet.has(e)?(si(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(t.target)&&-1===n||function t(e,n){if(io(e))return!1;let r=n.getId(e);return!n.has(r)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||t(e.parentNode,n))}(t.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[sn(n,r)]?si(this.movedSet,e):this.removes.push({parentId:r,id:n,isShadow:!!(io(t.target)&&ia(t.target))||void 0})),this.mapRemoves.push(e))})}},this.genAdds=(t,e)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(iZ(t,this.mirror))return;this.movedSet.add(t);let n=null;e&&this.mirror.hasNode(e)&&(n=this.mirror.getId(e)),n&&-1!==n&&(this.movedMap[sn(this.mirror.getId(t),n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);!iJ(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(t.childNodes.forEach(t=>this.genAdds(t)),i0(t)&&t.shadowRoot.childNodes.forEach(e=>{this.processedNodeManager.add(e,this),this.genAdds(e,t)}))}}}}function si(t,e){t.delete(e),e.childNodes.forEach(e=>si(t,e))}function ss(t,e,n){return 0!==t.length&&function t(e,n,r){let{parentNode:i}=n;if(!i)return!1;let s=r.getId(i);return!!e.some(t=>t.id===s)||t(e,i,r)}(t,e,n)}function so(t,e){return 0!==t.size&&function t(e,n){let{parentNode:r}=n;return!!r&&(!!e.has(r)||t(e,r))}(t,e)}let sa=t=>_?function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];try{return t(...n)}catch(t){if(_&&!0===_(t))return()=>{};throw t}}:t;function sc(t){let e;let n=t[0],r=1;for(;r<t.length;){let i=t[r],s=t[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(e=n,n=s(n)):("call"===i||"optionalCall"===i)&&(n=s(function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return n.call(e,...r)}),e=void 0)}return n}let su=[];function sl(t){try{if("composedPath"in t){let e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch(t){}return t&&t.target}function sd(t,e){let n=new sr;su.push(n),n.init(t);let r=window.MutationObserver||window.__rrMutationObserver,i=sc([window,"optionalAccess",t=>t.Zone,"optionalAccess",t=>t.__symbol__,"optionalCall",t=>t("MutationObserver")]);i&&window[i]&&(r=window[i]);let s=new r(sa(e=>{t.onMutation&&!1===t.onMutation(e)||n.processMutations.bind(n)(e)}));return s.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function sh(t){let{scrollCb:e,doc:n,mirror:r,blockClass:i,blockSelector:s,unblockSelector:o,sampling:a}=t,c=sa(iH(sa(t=>{let a=sl(t);if(!a||iJ(a,i,s,o,!0))return;let c=r.getId(a);if(a===n&&n.defaultView){let t=iW(n.defaultView);e({id:c,x:t.left,y:t.top})}else e({id:c,x:a.scrollLeft,y:a.scrollTop})}),a.scroll||100));return iB("scroll",c,n)}let sf=["INPUT","TEXTAREA","SELECT"],sp=new WeakMap;function sm(t){return function(t,e){if(s_("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||s_("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||s_("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||s_("CSSConditionRule")&&t.parentRule instanceof CSSConditionRule){let n=Array.from(t.parentRule.cssRules),r=n.indexOf(t);e.unshift(r)}else if(t.parentStyleSheet){let n=Array.from(t.parentStyleSheet.cssRules),r=n.indexOf(t);e.unshift(r)}return e}(t,[])}function sg(t,e,n){let r,i;return t?(t.ownerNode?r=e.getId(t.ownerNode):i=n.getId(t),{styleId:i,id:r}):{}}function sy(t,e){let{mirror:n,stylesheetManager:r}=t,i=null;i="#document"===e.nodeName?n.getId(e):n.getId(e.host);let s="#document"===e.nodeName?sc([e,"access",t=>t.defaultView,"optionalAccess",t=>t.Document]):sc([e,"access",t=>t.ownerDocument,"optionalAccess",t=>t.defaultView,"optionalAccess",t=>t.ShadowRoot]),o=sc([s,"optionalAccess",t=>t.prototype])?Object.getOwnPropertyDescriptor(sc([s,"optionalAccess",t=>t.prototype]),"adoptedStyleSheets"):void 0;return null!==i&&-1!==i&&s&&o?(Object.defineProperty(e,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return sc([o,"access",t=>t.get,"optionalAccess",t=>t.call,"call",t=>t(this)])},set(t){let e=sc([o,"access",t=>t.set,"optionalAccess",t=>t.call,"call",e=>e(this,t)]);if(null!==i&&-1!==i)try{r.adoptStyleSheets(t,i)}catch(t){}return e}}),sa(()=>{Object.defineProperty(e,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function sv(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1];let e=t.doc.defaultView;if(!e)return()=>{};let n=sd(t,t.doc),r=function(t){let e,{mousemoveCb:n,sampling:r,doc:i,mirror:s}=t;if(!1===r.mousemove)return()=>{};let o="number"==typeof r.mousemove?r.mousemove:50,a="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500,c=[],u=iH(sa(t=>{let r=Date.now()-e;n(c.map(t=>(t.timeOffset-=r,t)),t),c=[],e=null}),a),l=sa(iH(sa(t=>{let n=sl(t),{clientX:r,clientY:i}=iV(t)?t.changedTouches[0]:t;e||(e=i$()),c.push({x:r,y:i,id:s.getId(n),timeOffset:i$()-e}),u("undefined"!=typeof DragEvent&&t instanceof DragEvent?i9.Drag:t instanceof MouseEvent?i9.MouseMove:i9.TouchMove)}),o,{trailing:!1})),d=[iB("mousemove",l,i),iB("touchmove",l,i),iB("drag",l,i)];return sa(()=>{d.forEach(t=>t())})}(t),i=function(t){let{mouseInteractionCb:e,doc:n,mirror:r,blockClass:i,blockSelector:s,unblockSelector:o,sampling:a}=t;if(!1===a.mouseInteraction)return()=>{};let c=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,u=[],l=null,d=t=>n=>{let a=sl(n);if(iJ(a,i,s,o,!0))return;let c=null,u=t;
8if("pointerType"in n){switch(n.pointerType){case"mouse":c=st.Mouse;break;case"touch":c=st.Touch;break;case"pen":c=st.Pen}c===st.Touch?i7[t]===i7.MouseDown?u="TouchStart":i7[t]===i7.MouseUp&&(u="TouchEnd"):st.Pen}else iV(n)&&(c=st.Touch);null!==c?(l=c,(u.startsWith("Touch")&&c===st.Touch||u.startsWith("Mouse")&&c===st.Mouse)&&(c=null)):i7[t]===i7.Click&&(c=l,l=null);let d=iV(n)?n.changedTouches[0]:n;if(!d)return;let h=r.getId(a),{clientX:f,clientY:p}=d;sa(e)({type:i7[u],id:h,x:f,y:p,...null!==c&&{pointerType:c}})};return Object.keys(i7).filter(t=>Number.isNaN(Number(t))&&!t.endsWith("_Departed")&&!1!==c[t]).forEach(t=>{let e=ip(t),r=d(t);if(window.PointerEvent)switch(i7[t]){case i7.MouseDown:case i7.MouseUp:e=e.replace("mouse","pointer");break;case i7.TouchStart:case i7.TouchEnd:return}u.push(iB(e,r,n))}),sa(()=>{u.forEach(t=>t())})}(t),s=sh(t),o=function(t,e){let{viewportResizeCb:n}=t,{win:r}=e,i=-1,s=-1,o=sa(iH(sa(()=>{let t=iQ(),e=iG();(i!==t||s!==e)&&(n({width:Number(e),height:Number(t)}),i=t,s=e)}),200));return iB("resize",o,r)}(t,{win:e}),a=function(t){let{inputCb:e,doc:n,mirror:r,blockClass:i,blockSelector:s,unblockSelector:o,ignoreClass:a,ignoreSelector:c,maskInputOptions:u,maskInputFn:l,sampling:d,userTriggeredOnInput:h,maskTextClass:f,unmaskTextClass:p,maskTextSelector:m,unmaskTextSelector:g}=t;function y(t){let e=sl(t),r=t.isTrusted,d=e&&im(e.tagName);if("OPTION"===d&&(e=e.parentElement),!e||!d||0>sf.indexOf(d)||iJ(e,i,s,o,!0))return;let y=e;if(y.classList.contains(a)||c&&y.matches(c))return;let _=iy(e),b=iv(y,d,_),S=!1,E=id({maskInputOptions:u,tagName:d,type:_}),k=iN(e,f,m,p,g,E);("radio"===_||"checkbox"===_)&&(S=e.checked),b=ih({isMasked:k,element:e,value:b,maskInputFn:l}),v(e,h?{text:b,isChecked:S,userTriggered:r}:{text:b,isChecked:S});let w=e.name;"radio"===_&&w&&S&&n.querySelectorAll('input[type="radio"][name="'.concat(w,'"]')).forEach(t=>{if(t!==e){let e=ih({isMasked:k,element:t,value:iv(t,d,_),maskInputFn:l});v(t,h?{text:e,isChecked:!S,userTriggered:!1}:{text:e,isChecked:!S})}})}function v(t,n){let i=sp.get(t);if(!i||i.text!==n.text||i.isChecked!==n.isChecked){sp.set(t,n);let i=r.getId(t);sa(e)({...n,id:i})}}let _="last"===d.input?["change"]:["input","change"],b=_.map(t=>iB(t,sa(y),n)),S=n.defaultView;if(!S)return()=>{b.forEach(t=>t())};let E=S.Object.getOwnPropertyDescriptor(S.HTMLInputElement.prototype,"value"),k=[[S.HTMLInputElement.prototype,"value"],[S.HTMLInputElement.prototype,"checked"],[S.HTMLSelectElement.prototype,"value"],[S.HTMLTextAreaElement.prototype,"value"],[S.HTMLSelectElement.prototype,"selectedIndex"],[S.HTMLOptionElement.prototype,"selected"]];return E&&E.set&&b.push(...k.map(t=>(function t(e,n,r,i){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window,o=s.Object.getOwnPropertyDescriptor(e,n);return s.Object.defineProperty(e,n,i?r:{set(t){i6(()=>{r.set.call(this,t)},0),o&&o.set&&o.set.call(this,t)}}),()=>t(e,n,o||{},!0)})(t[0],t[1],{set(){sa(y)({target:this,isTrusted:!1})}},!1,S))),sa(()=>{b.forEach(t=>t())})}(t),c=function(t){let{mediaInteractionCb:e,blockClass:n,blockSelector:r,unblockSelector:i,mirror:s,sampling:o,doc:a}=t,c=sa(t=>iH(sa(o=>{let a=sl(o);if(!a||iJ(a,n,r,i,!0))return;let{currentTime:c,volume:u,muted:l,playbackRate:d}=a;e({type:t,id:s.getId(a),currentTime:c,volume:u,muted:l,playbackRate:d})}),o.media||500)),u=[iB("play",c(0),a),iB("pause",c(1),a),iB("seeked",c(2),a),iB("volumechange",c(3),a),iB("ratechange",c(4),a)];return sa(()=>{u.forEach(t=>t())})}(t),u=function(t,e){let n,r,{styleSheetRuleCb:i,mirror:s,stylesheetManager:o}=t,{win:a}=e;if(!a.CSSStyleSheet||!a.CSSStyleSheet.prototype)return()=>{};let c=a.CSSStyleSheet.prototype.insertRule;a.CSSStyleSheet.prototype.insertRule=new Proxy(c,{apply:sa((t,e,n)=>{let[r,a]=n,{id:c,styleId:u}=sg(e,s,o.styleMirror);return(c&&-1!==c||u&&-1!==u)&&i({id:c,styleId:u,adds:[{rule:r,index:a}]}),t.apply(e,n)})});let u=a.CSSStyleSheet.prototype.deleteRule;a.CSSStyleSheet.prototype.deleteRule=new Proxy(u,{apply:sa((t,e,n)=>{let[r]=n,{id:a,styleId:c}=sg(e,s,o.styleMirror);return(a&&-1!==a||c&&-1!==c)&&i({id:a,styleId:c,removes:[{index:r}]}),t.apply(e,n)})}
8),a.CSSStyleSheet.prototype.replace&&(n=a.CSSStyleSheet.prototype.replace,a.CSSStyleSheet.prototype.replace=new Proxy(n,{apply:sa((t,e,n)=>{let[r]=n,{id:a,styleId:c}=sg(e,s,o.styleMirror);return(a&&-1!==a||c&&-1!==c)&&i({id:a,styleId:c,replace:r}),t.apply(e,n)})})),a.CSSStyleSheet.prototype.replaceSync&&(r=a.CSSStyleSheet.prototype.replaceSync,a.CSSStyleSheet.prototype.replaceSync=new Proxy(r,{apply:sa((t,e,n)=>{let[r]=n,{id:a,styleId:c}=sg(e,s,o.styleMirror);return(a&&-1!==a||c&&-1!==c)&&i({id:a,styleId:c,replaceSync:r}),t.apply(e,n)})}));let l={};sb("CSSGroupingRule")?l.CSSGroupingRule=a.CSSGroupingRule:(sb("CSSMediaRule")&&(l.CSSMediaRule=a.CSSMediaRule),sb("CSSConditionRule")&&(l.CSSConditionRule=a.CSSConditionRule),sb("CSSSupportsRule")&&(l.CSSSupportsRule=a.CSSSupportsRule));let d={};return Object.entries(l).forEach(t=>{let[e,n]=t;d[e]={insertRule:n.prototype.insertRule,deleteRule:n.prototype.deleteRule},n.prototype.insertRule=new Proxy(d[e].insertRule,{apply:sa((t,e,n)=>{let[r,a]=n,{id:c,styleId:u}=sg(e.parentStyleSheet,s,o.styleMirror);return(c&&-1!==c||u&&-1!==u)&&i({id:c,styleId:u,adds:[{rule:r,index:[...sm(e),a||0]}]}),t.apply(e,n)})}),n.prototype.deleteRule=new Proxy(d[e].deleteRule,{apply:sa((t,e,n)=>{let[r]=n,{id:a,styleId:c}=sg(e.parentStyleSheet,s,o.styleMirror);return(a&&-1!==a||c&&-1!==c)&&i({id:a,styleId:c,removes:[{index:[...sm(e),r]}]}),t.apply(e,n)})})}),sa(()=>{a.CSSStyleSheet.prototype.insertRule=c,a.CSSStyleSheet.prototype.deleteRule=u,n&&(a.CSSStyleSheet.prototype.replace=n),r&&(a.CSSStyleSheet.prototype.replaceSync=r),Object.entries(l).forEach(t=>{let[e,n]=t;n.prototype.insertRule=d[e].insertRule,n.prototype.deleteRule=d[e].deleteRule})})}(t,{win:e}),l=sy(t,t.doc),d=function(t,e){let{styleDeclarationCb:n,mirror:r,ignoreCSSAttributes:i,stylesheetManager:s}=t,{win:o}=e,a=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:sa((t,e,o)=>{let[c,u,l]=o;if(i.has(c))return a.apply(e,[c,u,l]);let{id:d,styleId:h}=sg(sc([e,"access",t=>t.parentRule,"optionalAccess",t=>t.parentStyleSheet]),r,s.styleMirror);return(d&&-1!==d||h&&-1!==h)&&n({id:d,styleId:h,set:{property:c,value:u,priority:l},index:sm(e.parentRule)}),t.apply(e,o)})});let c=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:sa((t,e,o)=>{let[a]=o;if(i.has(a))return c.apply(e,[a]);let{id:u,styleId:l}=sg(sc([e,"access",t=>t.parentRule,"optionalAccess",t=>t.parentStyleSheet]),r,s.styleMirror);return(u&&-1!==u||l&&-1!==l)&&n({id:u,styleId:l,remove:{property:a},index:sm(e.parentRule)}),t.apply(e,o)})}),sa(()=>{o.CSSStyleDeclaration.prototype.setProperty=a,o.CSSStyleDeclaration.prototype.removeProperty=c})}(t,{win:e}),h=t.collectFonts?function(t){let{fontCb:e,doc:n}=t,r=n.defaultView;if(!r)return()=>{};let i=[],s=new WeakMap,o=r.FontFace;r.FontFace=function(t,e,n){let r=new o(t,e,n);return s.set(r,{family:t,buffer:"string"!=typeof e,descriptors:n,fontSource:"string"==typeof e?e:JSON.stringify(Array.from(new Uint8Array(e)))}),r};let a=iz(n.fonts,"add",function(t){return function(n){return i6(sa(()=>{let t=s.get(n);t&&(e(t),s.delete(n))}),0),t.apply(this,[n])}});return i.push(()=>{r.FontFace=o}),i.push(a),sa(()=>{i.forEach(t=>t())})}(t):()=>{},f=function(t){let{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,selectionCb:o}=t,a=!0,c=sa(()=>{let t=e.getSelection();if(!t||a&&sc([t,"optionalAccess",t=>t.isCollapsed]))return;a=t.isCollapsed||!1;let c=[],u=t.rangeCount||0;for(let e=0;e<u;e++){let o=t.getRangeAt(e),{startContainer:a,startOffset:u,endContainer:l,endOffset:d}=o,h=iJ(a,r,i,s,!0)||iJ(l,r,i,s,!0);h||c.push({start:n.getId(a),startOffset:u,end:n.getId(l),endOffset:d})}o({ranges:c})});return c(),iB("selectionchange",c)}(t),p=function(t){let{doc:e,customElementCb:n}=t,r=e.defaultView;if(!r||!r.customElements)return()=>{};let i=iz(r.customElements,"define",function(t){return function(e,r,i){try{n({define:{name:e}})}catch(t){}return t.apply(this,[e,r,i])}});return i}(t),m=[];for(let n of t.plugins)m.push(n.observer(n.callback,e,n.options));return sa(()=>{su.forEach(t=>t.reset()),n.disconnect(),r(),i(),s(),o(),a(),c(),u(),l(),d(),h(),f(),p(),m.forEach(t=>t())})}function s_(t){return void 0!==window[t]}
8function sb(t){return!!(void 0!==window[t]&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class sS{getId(t,e,n,r){let i=n||this.getIdToRemoteIdMap(t),s=r||this.getRemoteIdToIdMap(t),o=i.get(e);return o||(o=this.generateIdFn(),i.set(e,o),s.set(o,e)),o}getIds(t,e){let n=this.getIdToRemoteIdMap(t),r=this.getRemoteIdToIdMap(t);return e.map(e=>this.getId(t,e,n,r))}getRemoteId(t,e,n){let r=n||this.getRemoteIdToIdMap(t);if("number"!=typeof e)return e;let i=r.get(e);return i||-1}getRemoteIds(t,e){let n=this.getRemoteIdToIdMap(t);return e.map(e=>this.getRemoteId(t,e,n))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let e=this.iframeIdToRemoteIdMap.get(t);return e||(e=new Map,this.iframeIdToRemoteIdMap.set(t,e)),e}getRemoteIdToIdMap(t){let e=this.iframeRemoteIdToIdMap.get(t);return e||(e=new Map,this.iframeRemoteIdToIdMap.set(t,e)),e}constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}}function sE(t){let e;let n=t[0],r=1;for(;r<t.length;){let i=t[r],s=t[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(e=n,n=s(n)):("call"===i||"optionalCall"===i)&&(n=s(function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return n.call(e,...r)}),e=void 0)}return n}class sk{addIframe(){}addLoadListener(){}attachIframe(){}constructor(){this.crossOriginIframeMirror=new sS(iS),this.crossOriginIframeRootIdMap=new WeakMap}}class sw{addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,e){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),sE([this,"access",t=>t.loadListener,"optionalCall",e=>e(t)]),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;let e=t.source;if(!e)return;let n=this.crossOriginIframeMap.get(t.source);if(!n)return;let r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(t,e){switch(e.type){case i8.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(e.data.node,t);let n=e.data.node.id;return this.crossOriginIframeRootIdMap.set(t,n),this.patchRootIdOnNode(e.data.node,n),{timestamp:e.timestamp,type:i8.IncrementalSnapshot,data:{source:i9.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case i8.Meta:case i8.Load:case i8.DomContentLoaded:break;case i8.Plugin:return e;case i8.Custom:return this.replaceIds(e.data.payload,t,["id","parentId","previousId","nextId"]),e;case i8.IncrementalSnapshot:switch(e.data.source){case i9.Mutation:return e.data.adds.forEach(e=>{this.replaceIds(e,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(e.node,t);let n=this.crossOriginIframeRootIdMap.get(t);n&&this.patchRootIdOnNode(e.node,n)}),e.data.removes.forEach(e=>{this.replaceIds(e,t,["parentId","id"])}),e.data.attributes.forEach(e=>{this.replaceIds(e,t,["id"])}),e.data.texts.forEach(e=>{this.replaceIds(e,t,["id"])}),e;case i9.Drag:case i9.TouchMove:case i9.MouseMove:return e.data.positions.forEach(e=>{this.replaceIds(e,t,["id"])}),e;case i9.ViewportResize:return!1;case i9.MediaInteraction:case i9.MouseInteraction:case i9.Scroll:case i9.CanvasMutation:case i9.Input:return this.replaceIds(e.data,t,["id"]),e;case i9.StyleSheetRule:case i9.StyleDeclaration:return this.replaceIds(e.data,t,["id"]),this.replaceStyleIds(e.data,t,["styleId"]),e;case i9.Font:return e;
8case i9.Selection:return e.data.ranges.forEach(e=>{this.replaceIds(e,t,["start","end"])}),e;case i9.AdoptedStyleSheet:return this.replaceIds(e.data,t,["id"]),this.replaceStyleIds(e.data,t,["styleIds"]),sE([e,"access",t=>t.data,"access",t=>t.styles,"optionalAccess",t=>t.forEach,"call",e=>e(e=>{this.replaceStyleIds(e,t,["styleId"])})]),e}}return!1}replace(t,e,n,r){for(let i of r)(Array.isArray(e[i])||"number"==typeof e[i])&&(Array.isArray(e[i])?e[i]=t.getIds(n,e[i]):e[i]=t.getId(n,e[i]));return e}replaceIds(t,e,n){return this.replace(this.crossOriginIframeMirror,t,e,n)}replaceStyleIds(t,e,n){return this.replace(this.crossOriginIframeStyleMirror,t,e,n)}replaceIdOnNode(t,e){this.replaceIds(t,e,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(t=>{this.replaceIdOnNode(t,e)})}patchRootIdOnNode(t,e){t.type===P.Document||t.rootId||(t.rootId=e),"childNodes"in t&&t.childNodes.forEach(t=>{this.patchRootIdOnNode(t,e)})}constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new sS(iS),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new sS(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}}class sx{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class sT{init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,e){if(!ia(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);let n=sd({...this.bypassOptions,doc:e,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(sh({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),i6(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(sy({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){t.contentWindow&&t.contentDocument&&this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,e){let n=this;this.restoreHandlers.push(iz(t.prototype,"attachShadow",function(t){return function(r){let i=t.call(this,r);return this.shadowRoot&&i5(this)&&n.addShadowRoot(this.shadowRoot,e),i}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}}class sC{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class sO{attachLinkElement(t,e){"_cssText"in e.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:e.id,attributes:e.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,e){if(0===t.length)return;let n={id:e,styleIds:[]},r=[];for(let e of t){let t;this.styleMirror.has(e)?t=this.styleMirror.getId(e):(t=this.styleMirror.add(e),r.push({styleId:t,rules:Array.from(e.rules||CSSRule,(t,e)=>({rule:iu(t),index:e}))})),n.styleIds.push(t)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new i1,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}}class sI{periodicallyClear(){!function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];i4("requestAnimationFrame")(...e)}(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(t,e){let n=this.nodeMap.get(t);return n&&Array.from(n).some(t=>t!==e)}add(t,e){this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(e))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}}let sR=new il;function sM(){let t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
8,{emit:n,checkoutEveryNms:r,checkoutEveryNth:i,blockClass:s="rr-block",blockSelector:o=null,unblockSelector:a=null,ignoreClass:c="rr-ignore",ignoreSelector:u=null,maskAllText:l=!1,maskTextClass:d="rr-mask",unmaskTextClass:h=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:m=!0,maskAllInputs:g,maskInputOptions:y,slimDOMOptions:v,maskAttributeFn:E,maskInputFn:k,maskTextFn:w,maxCanvasSize:x=null,packFn:T,sampling:C={},dataURLOptions:O={},mousemoveWait:I,recordCanvas:R=!1,recordCrossOriginIframes:M=!1,recordAfter:A="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:D=!1,collectFonts:P=!1,inlineImages:N=!1,plugins:L,keepIframeSrcFn:j=()=>!1,ignoreCSSAttributes:F=new Set([]),errorHandler:B,onMutation:U,getCanvasManager:q}=e;_=B;let H=!M||window.parent===window,z=!1;if(!H)try{window.parent.document&&(z=!1)}catch(t){z=!0}if(H&&!n)throw Error("emit function is required");void 0!==I&&void 0===C.mousemove&&(C.mousemove=I),sR.reset();let $=!0===g?{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!==y?y:{},W=!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===v,headMetaDescKeywords:"all"===v}:v||{};!function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;if("NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),!Node.prototype.contains){var e=this;Node.prototype.contains=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=n[0];if(!(0 in n))throw TypeError("1 argument is required");do if(e===i)return!0;while(i=i&&i.parentNode);return!1}}}();let Q=0,G=t=>{for(let e of L||[])e.eventProcessor&&(t=e.eventProcessor(t));return T&&!z&&(t=T(t)),t};b=(e,s)=>{if(e.timestamp=i$(),rK([su,"access",t=>t[0],"optionalAccess",t=>t.isFrozen,"call",t=>t()])&&e.type!==i8.FullSnapshot&&!(e.type===i8.IncrementalSnapshot&&e.data.source===i9.Mutation)&&su.forEach(t=>t.unfreeze()),H)rK([n,"optionalCall",t=>t(G(e),s)]);else if(z){let t={type:"rrweb",event:G(e),origin:window.location.origin,isCheckout:s};window.parent.postMessage(t,"*")}if(e.type===i8.FullSnapshot)t=e,Q=0;else if(e.type===i8.IncrementalSnapshot){if(e.data.source===i9.Mutation&&e.data.isAttachIframe)return;Q++;let n=i&&Q>=i,s=r&&t&&e.timestamp-t.timestamp>r;(n||s)&&tn(!0)}};let X=t=>{b({type:i8.IncrementalSnapshot,data:{source:i9.Mutation,...t}})},J=t=>b({type:i8.IncrementalSnapshot,data:{source:i9.Scroll,...t}}),Z=t=>b({type:i8.IncrementalSnapshot,data:{source:i9.CanvasMutation,...t}}),V=new sO({mutationCb:X,adoptedStyleSheetCb:t=>b({type:i8.IncrementalSnapshot,data:{source:i9.AdoptedStyleSheet,...t}})}),K="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new sk:new sw({mirror:sR,mutationCb:X,stylesheetManager:V,recordCrossOriginIframes:M,wrappedEmit:b});for(let t of L||[])t.getMirror&&t.getMirror({nodeMirror:sR,crossOriginIframeMirror:K.crossOriginIframeMirror,crossOriginIframeStyleMirror:K.crossOriginIframeStyleMirror});let Y=new sI,tt=function(t,e){try{return t?t(e):new sC}catch(t){return console.warn("Unable to initialize CanvasManager"),new sC}}(q,{mirror:sR,win:window,mutationCb:t=>b({type:i8.IncrementalSnapshot,data:{source:i9.CanvasMutation,...t}}),recordCanvas:R,blockClass:s,blockSelector:o,unblockSelector:a,maxCanvasSize:x,sampling:C.canvas,dataURLOptions:O,errorHandler:B}),te="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new sx:new sT({mutationCb:X,scrollCb:J,bypassOptions:{onMutation:U,blockClass:s,blockSelector:o,unblockSelector:a,maskAllText:l,maskTextClass:d,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:$,dataURLOptions:O,maskAttributeFn:E,maskTextFn:w,maskInputFn:k,recordCanvas:R,inlineImages:N,sampling:C,slimDOMOptions:W,iframeManager:K,stylesheetManager:V,canvasManager:tt,keepIframeSrcFn:j,processedNodeManager:Y},mirror:sR}),tn=function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];b({type:i8.Meta,data:{href:window.location.href,width:iG(),height:iQ()}},t),V.reset(),te.init(),su.forEach(t=>t.lock());let e=function(t,e){let{mirror:n=new il,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:s=null,maskAllText:o=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:l=null,inlineStylesheet:d=!0,inl
8ineImages:h=!1,recordCanvas:f=!1,maskAllInputs:p=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:v=!1,dataURLOptions:_,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:k,onStylesheetLoad:w,stylesheetLoadTimeout:x,keepIframeSrcFn:T=()=>!1}=e||{},C=!0===p?{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===p?{}:p,O=!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;return ij(t,{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,maskAllText:o,maskTextClass:a,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:C,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:O,dataURLOptions:_,inlineImages:h,recordCanvas:f,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:k,onStylesheetLoad:w,stylesheetLoadTimeout:x,keepIframeSrcFn:T,newlyAddedElement:!1})}(document,{mirror:sR,blockClass:s,blockSelector:o,unblockSelector:a,maskAllText:l,maskTextClass:d,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskAllInputs:$,maskAttributeFn:E,maskInputFn:k,maskTextFn:w,slimDOM:W,dataURLOptions:O,recordCanvas:R,inlineImages:N,onSerialize:t=>{iK(t,sR)&&K.addIframe(t),iY(t,sR)&&V.trackLinkElement(t),i0(t)&&te.addShadowRoot(t.shadowRoot,document)},onIframeLoad:(t,e)=>{K.attachIframe(t,e),te.observeAttachShadow(t)},onStylesheetLoad:(t,e)=>{V.attachLinkElement(t,e)},keepIframeSrcFn:j});if(!e)return console.warn("Failed to snapshot the document");b({type:i8.FullSnapshot,data:{node:e,initialOffset:iW(window)}}),su.forEach(t=>t.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&V.adoptStyleSheets(document.adoptedStyleSheets,sR.getId(document))};S=tn;try{let t=[],e=t=>sa(sv)({onMutation:U,mutationCb:X,mousemoveCb:(t,e)=>b({type:i8.IncrementalSnapshot,data:{source:e,positions:t}}),mouseInteractionCb:t=>b({type:i8.IncrementalSnapshot,data:{source:i9.MouseInteraction,...t}}),scrollCb:J,viewportResizeCb:t=>b({type:i8.IncrementalSnapshot,data:{source:i9.ViewportResize,...t}}),inputCb:t=>b({type:i8.IncrementalSnapshot,data:{source:i9.Input,...t}}),mediaInteractionCb:t=>b({type:i8.IncrementalSnapshot,data:{source:i9.MediaInteraction,...t}}),styleSheetRuleCb:t=>b({type:i8.IncrementalSnapshot,data:{source:i9.StyleSheetRule,...t}}),styleDeclarationCb:t=>b({type:i8.IncrementalSnapshot,data:{source:i9.StyleDeclaration,...t}}),canvasMutationCb:Z,fontCb:t=>b({type:i8.IncrementalSnapshot,data:{source:i9.Font,...t}}),selectionCb:t=>{b({type:i8.IncrementalSnapshot,data:{source:i9.Selection,...t}})},customElementCb:t=>{b({type:i8.IncrementalSnapshot,data:{source:i9.CustomElement,...t}})},blockClass:s,ignoreClass:c,ignoreSelector:u,maskAllText:l,maskTextClass:d,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:$,inlineStylesheet:m,sampling:C,recordCanvas:R,inlineImages:N,userTriggeredOnInput:D,collectFonts:P,doc:t,maskAttributeFn:E,maskInputFn:k,maskTextFn:w,keepIframeSrcFn:j,blockSelector:o,unblockSelector:a,slimDOMOptions:W,dataURLOptions:O,mirror:sR,iframeManager:K,stylesheetManager:V,shadowDomManager:te,processedNodeManager:Y,canvasManager:tt,ignoreCSSAttributes:F,plugins:rK([L,"optionalAccess",t=>t.filter,"call",t=>t(t=>t.observer),"optionalAccess",t=>t.map,"call",t=>t(t=>({observer:t.observer,options:t.options,callback:e=>b({type:i8.Plugin,data:{plugin:t.name,payload:e}})}))])||[]},{});K.addLoadListener(n=>{try{t.push(e(n.contentDocument))}catch(t){console.warn(t)}});let n=()=>{tn(),t.push(e(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(t.push(iB("DOMContentLoaded",()=>{b({type:i8.DomContentLoaded,data:{}}),"DOMContentLoaded"===A&&n()})),t.push(iB("load",()=>{b({type:i8.Load,data:{}}),"load"===A&&n()},window))),()=>{t.forEach(t=>t()),Y.destroy(),S=void 0,_=void 0}}catch(t){console.warn(t)}}function sA(t){return t>9999999999?t:1e3*t}function sD(t){return t>9999999999?t/1e3:t}function sP(t,e){"sentry.transaction"!==e.category&&(["ui.click","ui.input"].includes(e.category)?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate(()=>(t.throttledAddEvent({type:i8.Custom,timestamp:1e3*(e.timestamp||0),data:{tag:"breadcrumb",payload:(0,tP.Fv)(e,10,1e3)}}),"console"===e.category)))}function sN(t){let e=t.closest("button,a");return e||t}function sL(t){let e=sj(t);return e&&e instanceof Element?sN(e):e}function sj(t){return"object"==typeof t&&t&&"target"in t?t.target:t}sM.mirror=sR,sM.takeFullSnapshot=function(t){if(!S)throw Error("please take full snapshot after start recording");S(t)};class sF{addListeners(){var t;let e=(t=()=>{this._lastMutation=sU()},E||(E=[],(0,q.hl)(ie,"open",function(t){return function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];
8if(E)try{E.forEach(t=>t())}catch(t){}return t.apply(ie,n)}})),E.push(t),()=>{let e=E?E.indexOf(t):-1;e>-1&&E.splice(e,1)});this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,e){var n;if(n=this._ignoreSelector,!sB.includes(e.tagName)||"INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||"")||"A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target"))||n&&e.matches(n)||!(t.data&&"number"==typeof t.data.nodeId&&t.timestamp))return;let r={timestamp:sD(t.timestamp),clickBreadcrumb:t,clickCount:0,node:e};this._clicks.some(t=>t.node===r.node&&1>Math.abs(t.timestamp-r.timestamp))||(this._clicks.push(r),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastMutation=sD(t)}registerScroll(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastScroll=sD(t)}registerClick(t){let e=sN(t);this._handleMultiClick(e)}_handleMultiClick(t){this._getClicks(t).forEach(t=>{t.clickCount++})}_getClicks(t){return this._clicks.filter(e=>e.node===t)}_checkClicks(){let t=[],e=sU();for(let n of(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<=e&&t.push(n)}),t)){let t=this._clicks.indexOf(n);t>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(t,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){let e=this._replay,n=t.scrollAfter&&t.scrollAfter<=this._scollTimeout,r=t.mutationAfter&&t.mutationAfter<=this._threshold,{clickCount:i,clickBreadcrumb:s}=t;if(!n&&!r){let n=1e3*Math.min(t.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.slowClickDetected",data:{...s.data,url:ie.location.href,route:e.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:i||1}};this._addBreadcrumbEvent(e,o);return}if(i>1){let t={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:ie.location.href,route:e.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(e,t)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}constructor(t,e,n=sP){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=e.timeout/1e3,this._threshold=e.threshold/1e3,this._scollTimeout=e.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=e.ignoreSelector,this._addBreadcrumbEvent=n}}let sB=["A","BUTTON","INPUT"];function sU(){return Date.now()/1e3}function sq(t){return{timestamp:Date.now()/1e3,type:"default",...t}}(A=N||(N={}))[A.Document=0]="Document",A[A.DocumentType=1]="DocumentType",A[A.Element=2]="Element",A[A.Text=3]="Text",A[A.CDATA=4]="CDATA",A[A.Comment=5]="Comment";let sH=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]),sz=t=>e=>{if(!t.isEnabled())return;let n=function(t){let{target:e,message:n}=function(t){let e;let n="click"===t.name,r=null;try{r=n?sL(t.event):sj(t.event),e=(0,tD.Rt)(r,{maxStringLength:200})||"<unknown>"}catch(t){e="<unknown>"}return{target:r,message:e}}(t);return sq({category:"ui.".concat(t.name),...s$(e,n)})}(e);if(!n)return;let r="click"===e.name,i=r?e.event:void 0;r&&t.clickDetector&&i&&i.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&function(t,e,n){t.handleClick(e,n)}(t.clickDetector,n,sL(e.event)),sP(t,n)};function s$(t,e){let n=sM.mirror.getId(t),r=n&&sM.mirror.getNode(n),i=r&&sM.mirror.getMeta(r),s=i&&i.type===N.Element?i:null;return{message:e,data:s?{nodeId:n,node:{id:n,tagName:s.tagName,textContent:Array.from(s.childNodes).map(t=>
8t.type===N.Text&&t.textContent).filter(Boolean).map(t=>t.trim()).join(""),attributes:function(t){let e={};for(let n in t)if(sH.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),e[r]=t[n]}return e}(s.attributes)}}:{}}}let sW={resource:function(t){let{entryType:e,initiatorType:n,name:r,responseEnd:i,startTime:s,decodedBodySize:o,encodedBodySize:a,responseStatus:c,transferSize:u}=t;return["fetch","xmlhttprequest"].includes(n)?null:{type:"".concat(e,".").concat(n),start:sG(s),end:sG(i),name:r,data:{size:u,statusCode:c,decodedBodySize:o,encodedBodySize:a}}},paint:function(t){let{duration:e,entryType:n,name:r,startTime:i}=t,s=sG(i);return{type:n,name:r,start:s,end:s+e,data:void 0}},navigation:function(t){let{entryType:e,name:n,decodedBodySize:r,duration:i,domComplete:s,encodedBodySize:o,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:l,loadEventEnd:d,redirectCount:h,startTime:f,transferSize:p,type:m}=t;return 0===i?null:{type:"".concat(e,".").concat(m),start:sG(f),end:sG(s),name:n,data:{size:p,decodedBodySize:r,encodedBodySize:o,duration:i,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:d,domComplete:s,redirectCount:h}}}};function sQ(t){return sW[t.entryType]?sW[t.entryType](t):null}function sG(t){return((eJ.Z1||ie.performance.timeOrigin)+t)/1e3}class sX extends Error{constructor(){super("Event buffer exceeded maximum size of ".concat(2e7,"."))}}class sJ{get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){let e=JSON.stringify(t).length;if(this._totalSize+=e,this._totalSize>2e7)throw new sX;this.events.push(t)}finish(){return new Promise(t=>{let e=this.events;this.clear(),t(JSON.stringify(e))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let t=this.events.map(t=>t.timestamp).sort()[0];return t?sA(t):null}constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}}class sZ{ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((t,e)=>{this._worker.addEventListener("message",n=>{let{data:r}=n;r.success?t():e()},{once:!0}),this._worker.addEventListener("error",t=>{e(t)},{once:!0})})),this._ensureReadyPromise}destroy(){this._worker.terminate()}postMessage(t,e){let n=this._getAndIncrementId();return new Promise((r,i)=>{let s=e=>{let{data:o}=e;if(o.method===t&&o.id===n){if(this._worker.removeEventListener("message",s),!o.success){i(Error("Error in compression worker"));return}r(o.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:n,method:t,arg:e})})}_getAndIncrementId(){return this._id++}constructor(t){this._worker=t,this._id=0}}class sV{get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){let e=sA(t.timestamp);(!this._earliestTimestamp||e<this._earliestTimestamp)&&(this._earliestTimestamp=e);let n=JSON.stringify(t);return(this._totalSize+=n.length,this._totalSize>2e7)?Promise.reject(new sX):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){let t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}constructor(t){this._worker=new sZ(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}}class sK{get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}
8ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:t,hasCheckout:e}=this._fallback,n=[];for(let e of t)n.push(this._compression.addEvent(e));this._compression.hasCheckout=e,this._used=this._compression;try{await Promise.all(n)}catch(t){}}constructor(t){this._fallback=new sJ,this._compression=new sV(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}}function sY(){try{return"sessionStorage"in ie&&!!ie.sessionStorage}catch(t){return!1}}function s0(t){return void 0!==t&&Math.random()<t}function s1(t){let e=Date.now(),n=t.id||(0,z.DM)(),r=t.started||e,i=t.lastActivity||e,s=t.segmentId||0,o=t.sampled,a=t.previousSessionId;return{id:n,started:r,lastActivity:i,segmentId:s,sampled:o,previousSessionId:a}}function s2(t){if(sY())try{ie.sessionStorage.setItem(ir,JSON.stringify(t))}catch(t){}}function s5(t){let{sessionSampleRate:e,allowBuffering:n,stickySession:r=!1}=t,{previousSessionId:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=s0(e)?"session":!!n&&"buffer",o=s1({sampled:s,previousSessionId:i});return r&&s2(o),o}function s3(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:+new Date;return null===t||void 0===e||e<0||0!==e&&t+e<=n}function s4(t,e){let{maxReplayDuration:n,sessionIdleExpire:r,targetTime:i=Date.now()}=e;return s3(t.started,n,i)||s3(t.lastActivity,r,i)}function s6(t,e){let{sessionIdleExpire:n,maxReplayDuration:r}=e;return!!s4(t,{sessionIdleExpire:n,maxReplayDuration:r})&&("buffer"!==t.sampled||0!==t.segmentId)}function s8(t,e){let{traceInternals:n,sessionIdleExpire:r,maxReplayDuration:i,previousSessionId:s}=t,o=e.stickySession&&function(t){if(!sY())return null;try{let t=ie.sessionStorage.getItem(ir);if(!t)return null;let e=JSON.parse(t);return s1(e)}catch(t){return null}}(0);return o?s6(o,{sessionIdleExpire:r,maxReplayDuration:i})?s5(e,{previousSessionId:o.id}):o:s5(e,{previousSessionId:s})}function s9(t,e,n){return!!ot(t,e)&&(s7(t,e,n),!0)}async function s7(t,e,n){if(!t.eventBuffer)return null;try{n&&"buffer"===t.recordingMode&&t.eventBuffer.clear(),n&&(t.eventBuffer.hasCheckout=!0);let r=t.getOptions(),i=function(t,e){try{if("function"==typeof e&&t.type===i8.Custom)return e(t)}catch(t){return null}return t}(e,r.beforeAddRecordingEvent);if(!i)return;return await t.eventBuffer.addEvent(i)}catch(r){let e=r&&r instanceof sX?"addEventSizeExceeded":"addEvent";await t.stop({reason:e});let n=(0,H.s3)();n&&n.recordDroppedEvent("internal_sdk_error","replay")}}function ot(t,e){if(!t.eventBuffer||t.isPaused()||!t.isEnabled())return!1;let n=sA(e.timestamp);return!(n+t.timeouts.sessionIdlePause<Date.now())&&(!(n>t.getContext().initialTimestamp+t.getOptions().maxReplayDuration)||(t.getOptions()._experiments.traceInternals,!1))}function oe(t){return"transaction"===t.type}function on(t){return"feedback"===t.type}function or(t){let e=function(){let t=(0,H.s3)();if(!t)return!1;let e=t.getTransport();return!!e&&(e.send.__sentry__baseTransport__||!1)}();return(n,r)=>{if(!t.isEnabled()||n.type&&!oe(n))return;let i=r&&r.statusCode;if(!e||i&&!(i<200)&&!(i>=300)){if(oe(n)){!function(t,e){let n=t.getContext();e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(e.contexts.trace.trace_id)}(t,n);return}!function(t,e){let n=t.getContext();if(e.event_id&&n.errorIds.size<100&&n.errorIds.add(e.event_id),"buffer"!==t.recordingMode||!e.tags||!e.tags.replayId)return;let{beforeErrorSampling:r}=t.getOptions();("function"!=typeof r||r(e))&&setTimeout(()=>{t.sendBufferedReplayOrFlush()})}(t,n)}}}function oi(t,e){return e.map(e=>{let{type:n,start:r,end:i,name:s,data:o}=e,a=t.throttledAddEvent({type:i8.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:s,startTimestamp:r,endTimestamp:i,data:o}}});return"string"==typeof a?Promise.resolve(null):a})}function os(t,e){t.isEnabled()&&null!==e&&!function(t,e){let n=e&&void 0!==e.getClient?e.getClient():e,r=n&&n.getDsn(),i=n&&n.getOptions().tunnel;return!!r&&t.includes(r.host)||!!i&&r9(t)===r9(i)}(e.name,(0,H.s3)())&&t.addUpdate(()=>(oi(t,[e]),!0))}function oo(t,e){if(t)try{if("string"==typeof t)return e.encode(t).length;if(t instanceof URLSearchParams)return e.encode(t.toString()).length;if(t instanceof FormData){let n=op(t);return e.encode(n).length}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength}catch(t){}}function oa(t){if(!t)return;let e=parseInt(t,10);return isNaN(e)?void 0:e}function oc(t){try{if("string"==typeof t)return[t];if(t instanceof URLSearchParams)return[t.toString()];if(t instanceof FormData)return[op(t)];if(!t)return[void 0]}catch(t){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}function ou(t,e){if(!t)return{headers:{},size:void 0,_meta:{warnings:[e]}};let n={...t._meta},r=n.warnings||[];return n.warnings=[...r,e],t._meta=n,t}function ol(t,e){if(!e)return null;let{startTimestamp:n,endTimestamp:r,url:i,method:s,statusCode:o,request:a,response:c}=e,u={type:t,start:n/1e3,end:r/1e3,name:i,data:(0,q.Jr)({method:s,statusCode:o,request:a,response:c})};return u}function od(t){return{headers:{},size:t,_meta:{warnings:["URL_SKIPPED"]}}}function oh(t,e,n){if(!e&&0===Object.keys(t).length)return;if(!e)return{headers:t};if(!n)return{headers:t,size:e};let r={headers:t,size:e},{body:i,warnings:s}=function(t){if(!t||"string"!=typeof t)return{body:t};let e=t.length>15e4,n=function(t){let e=t[0],n=t[t.length-1];return"["===e&&"]"===n||"{"===e&&"}"===n}(t);if(e){let e=t.slice(0,15e4);return n?{body:e,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:"".concat(e,"â¦"),warnings:["TEXT_TRUNCATED"]}}if(n)try{let e=JSON.parse(t);return{body:e}}catch(t){}return{body:t}}(n);return r.body=i,s&&s.length>0&&(r._meta={warnings:s}),r}function of(t,e){return Object.keys(t).reduce((n,r)=>{let i=r.toLowerCase();return e.includes(i)&&t[r]&&(n[i]=t[r]),n},{})}function op(t){return new URLSearchParams(t).toString()}function om(t,e){let n=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ie.document.baseURI;if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith(ie.location.origin))return t;let n=new URL(t,e);if(n.origin!==new URL(e).origin)return t;let r=n.href;return!t.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}(t);return(0,tn.U0)(n,e)}async function og(t,e,n){try{let r=await oy(t,e,n),i=ol("resource.fetch",r);os(n.replay,i)}catch(t){}}async function oy(t,e,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:s=r}=e,{url:o,method:a,status_code:c=0,request_body_size:u,response_body_size:l}=t.data,d=om(o,n.networkDetailAllowUrls)&&!om(o,n.networkDetailDenyUrls),h=d?function(t,e,n){let{networkCaptureBodies:r,networkRequestHeaders:i}=t,s=e?1===e.length&&"string"!=typeof e[0]?oE(e[0],i):2===e.length?oE(e[1],i):{}:{};if(!r)return oh(s,n,void 0);let o=ob(e),[a,c]=oc(o),u=oh(s,n,a);return c?ou(u,c):u}(n,e.input,u):od(u),f=await ov(d,n,e.response,l);return{startTimestamp:i,endTimestamp:s,url:o,method:a,statusCode:c,request:h,response:f}}async function ov(t,e,n,r){let{networkCaptureBodies:i,textEncoder:s,networkResponseHeaders:o}=e;if(!t&&void 0!==r)return od(r);let a=n?oS(n.headers,o):{};if(!n||!i&&void 0!==r)return oh(a,r,void 0);let[c,u]=await o_(n),l=function(t,e){let{networkCaptureBodies:n,textEncoder:r,responseBodySize:i,captureDetails:s,headers:o}=e;try{let e=t&&t.length&&void 0===i?oo(t,r):i;if(!s)return od(e);if(n)return oh(o,e,t);return oh(o,e,void 0)}catch(t){return oh(o,i,void 0)}}(c,{networkCaptureBodies:i,textEncoder:s,responseBodySize:r,captureDetails:t,headers:a});return u?ou(l,u):l}async function o_(t){let e=function(t){try{return t.clone()}catch(t){}}(t);if(!e)return[void 0,"BODY_PARSE_ERROR"];try{let t=await new Promise((t,n)=>{let r=setTimeout(()=>n(Error("Timeout while trying to read response body")),500);ok(e).then(e=>t(e),t=>n(t)).finally(()=>clearTimeout(r))});return[t]}catch(t){return[void 0,"BODY_PARSE_ERROR"]}}function ob(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(2===t.length&&"object"==typeof t[1])return t[1].body}function oS(t,e){let n={};
8return e.forEach(e=>{t.get(e)&&(n[e]=t.get(e))}),n}function oE(t,e){if(!t)return{};let n=t.headers;return n?n instanceof Headers?oS(n,e):Array.isArray(n)?{}:of(n,e):{}}async function ok(t){return await t.text()}async function ow(t,e,n){try{let r=function(t,e,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:s=r,input:o,xhr:a}=e,{url:c,method:u,status_code:l=0,request_body_size:d,response_body_size:h}=t.data;if(!c)return null;if(!a||!om(c,n.networkDetailAllowUrls)||om(c,n.networkDetailDenyUrls)){let t=od(d),e=od(h);return{startTimestamp:i,endTimestamp:s,url:c,method:u,statusCode:l,request:t,response:e}}let f=a[t8],p=f?of(f.request_headers,n.networkRequestHeaders):{},m=of(function(t){let e=t.getAllResponseHeaders();return e?e.split("\r\n").reduce((t,e)=>{let[n,r]=e.split(": ");return t[n.toLowerCase()]=r,t},{}):{}}(a),n.networkResponseHeaders),[g,y]=n.networkCaptureBodies?oc(o):[void 0],[v,_]=n.networkCaptureBodies?function(t){let e=[];try{return[t.responseText]}catch(t){e.push(t)}try{return function(t,e){try{if("string"==typeof t)return[t];if(t instanceof Document)return[t.body.outerHTML];if("json"===e&&t&&"object"==typeof t)return[JSON.stringify(t)];if(!t)return[void 0]}catch(t){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}(t.response,t.responseType)}catch(t){e.push(t)}return[void 0]}(a):[void 0],b=oh(p,d,g),S=oh(m,h,v);return{startTimestamp:i,endTimestamp:s,url:c,method:u,statusCode:l,request:y?ou(b,y):b,response:_?ou(S,_):S}}(t,e,n),i=ol("resource.xhr",r);os(n.replay,i)}catch(t){}}let ox=null,oT=t=>e=>{if(!t.isEnabled())return;let n=function(t){let e=t.getLastBreadcrumb&&t.getLastBreadcrumb();return ox!==e&&e?(ox=e,!e.category||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))?null:"console"===e.category?function(t){let e=t.data&&t.data.arguments;if(!Array.isArray(e)||0===e.length)return sq(t);let n=!1,r=e.map(t=>{if(!t)return t;if("string"==typeof t)return t.length>5e3?(n=!0,"".concat(t.slice(0,5e3),"â¦")):t;if("object"==typeof t)try{let e=(0,tP.Fv)(t,7),r=JSON.stringify(e);if(r.length>5e3)return n=!0,"".concat(JSON.stringify(e,null,2).slice(0,5e3),"â¦");return e}catch(t){}return t});return sq({...t,data:{...t.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e):sq(e):null}(e);n&&sP(t,n)};async function oC(t){try{return Promise.all(oi(t,[function(t){let{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}=t,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}}}}(ie.performance.memory)]))}catch(t){return[]}}async function oO(t){let{client:e,scope:n,replayId:r,event:i}=t,s="object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations),o={event_id:r,integrations:s};e.emit&&e.emit("preprocessEvent",i,o);let a=await (0,e$.R)(e.getOptions(),i,o,n,e,(0,G.aF)());if(!a)return null;a.platform=a.platform||"javascript";let c=e.getSdkMetadata&&e.getSdkMetadata(),{name:u,version:l}=c&&c.sdk||{};return a.sdk={...a.sdk,name:u||"sentry.javascript.unknown",version:l||"0.0.0"},a}async function oI(t){var e;let n,{recordingData:r,replayId:i,segmentId:s,eventContext:o,timestamp:a,session:c}=t,u=function(t){let e,{recordingData:n,headers:r}=t,i="".concat(JSON.stringify(r),"\n");if("string"==typeof n)e="".concat(i).concat(n);else{let t=new TextEncoder,r=t.encode(i);(e=new Uint8Array(r.length+n.length)).set(r),e.set(n,r.length)}return e}({recordingData:r,headers:{segment_id:s}}),{urls:l,errorIds:d,traceIds:h,initialTimestamp:f}=o,p=(0,H.s3)(),m=(0,H.nZ)(),g=p&&p.getTransport(),y=p&&p.getDsn();if(!p||!g||!y||!c.sampled)return;let v={type:"replay_event",replay_start_timestamp:f/1e3,timestamp:a/1e3,error_ids:d,trace_ids:h,urls:l,replay_id:i,segment_id:s,replay_type:c.sampled},_=await oO({scope:m,client:p,replayId:i,event:v});if(!_){p.recordDroppedEvent("event_processor","replay",v);return}delete _.sdkProcessingMetadata;let b=(e=p.getOptions().tunnel,eN(eU(_,eB(_),e,y),[[{type:"replay_event"},_],[{type:"replay_recording",length:"string"==typeof u?new TextEncoder().encode(u).length:u.length},u]]));try{n=await g.send(b)}catch(e){let t=Error(ii);try{t.cause=e}catch(t){}throw t}if(!n)return n;if("number"==typeof n.statusCode&&(n.statusCode<200||n.statusCode>=300))throw new oR(n.statusCode);let S=nt({},n);if(e7(S,"replay"))throw new oM(S);return n}
8class oR extends Error{constructor(t){super("Transport returned status code ".concat(t))}}class oM extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function oA(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{count:0,interval:5e3},{recordingData:n,options:r}=t;if(n.length)try{return await oI(t),!0}catch(n){if(n instanceof oR||n instanceof oM)throw n;if((0,H.v)("Replays",{_retryCount:e.count}),e.count>=3){let t=Error("".concat(ii," - max retries exceeded"));try{t.cause=n}catch(t){}throw t}return e.interval*=++e.count,new Promise((n,r)=>{setTimeout(async()=>{try{await oA(t,e),n(!0)}catch(t){r(t)}},e.interval)})}}let oD="__THROTTLED";class oP{getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}initializeSampling(t){let{errorSampleRate:e,sessionSampleRate:n}=this._options;if(!(e<=0)||!(n<=0)){if(this._initializeSessionForSampling(t),!this.session){this._handleException(Error("Unable to initialize and create session"));return}!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",this.recordingMode,this._options._experiments.traceInternals,this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode)throw Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw Error("Replay buffering is in progress, call `flush()` to save the replay");this._options._experiments.traceInternals,this._updateUserActivity();let t=s8({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw Error("Replay recording is already in progress");this._options._experiments.traceInternals;let t=s8({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{var t;let e;let n=this._canvas;this._stopRecording=sM({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:(t=this,e=!1,(n,r)=>{if(!t.checkAndHandleExpiredSession())return;let i=r||!e;e=!0,t.clickDetector&&function(t,e){try{if(3!==e.type)return;let{source:n}=e.data;if(n===i9.Mutation&&t.registerMutation(e.timestamp),n===i9.Scroll&&t.registerScroll(e.timestamp),e.data.source===i9.MouseInteraction){let{type:n,id:r}=e.data,i=sM.mirror.getNode(r);i instanceof HTMLElement&&n===i7.Click&&t.registerClick(i)}}catch(t){}}(t.clickDetector,n),t.addUpdate(()=>{if("buffer"===t.recordingMode&&i&&t.setInitialState(),!s9(t,n,i))return!0;if(!i)return!1;if(i&&t.session&&0===t.session.segmentId&&s9(t,function(t){let e=t.getOptions();return{type:i8.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:t.isRecordingCanvas(),sessionSampleRate:e.sessionSampleRate,errorSampleRate:e.errorSampleRate,useCompressionOption:e.useCompression,blockAllMedia:e.blockAllMedia,maskAllText:e.maskAllText,maskAllInputs:e.maskAllInputs,useCompression:!!t.eventBuffer&&"worker"===t.eventBuffer.type,networkDetailHasUrls:e.networkDetailAllowUrls.length>0,networkCaptureBodies:e.networkCaptureBodies,networkRequestHasHeaders:e.networkRequestHeaders.length>0,networkResponseHasHeaders:e.networkResponseHeaders.length>0}}}}(t),!1),t.session&&t.session.previousSessionId)return!0;if("buffer"===t.recordingMode&&t.session&&t.eventBuffer){let e=t.eventBuffer.getEarliestTimestamp();e&&(t.getOptions()._experiments.traceInternals,t.session.started=e,t.getOptions().stickySession&&s2(t.session))}return"session"===t.recordingMode&&t.flush(),!0})}),onMutation:this._onMutationHandler,...n?{recordCanvas:n.recordCanvas,getCanvasManager:n.getCanvasManager,sampling:n.sampling,dataURLOptions:n.dataURLOptions}:{}})}catch(t){this._handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this._handleException(t),!1}}async stop(){let{forceFlush:t=!1,reason:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._isEnabled){this._isEnabled=!1;try{this._options._experiments.traceInternals,this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,function(){if(sY())try{ie.sessionStorage.removeItem(ir)}catch(t){}}(),this.session=void 0}catch(t){this._handleException(t)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),this._options._experiments.traceInternals)}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),this._options._experiments.traceInternals)}async sendBufferedReplayOrFlush(){let{continueRecording:t=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("session"===this.recordingMode)return this.flushImmediate();let e=Date.now();this._options._experiments.traceInternals,await this.flushImmediate();let n=this.stopRecording();t&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(e),this._updateSessionActivity(e),this._maybeSaveSession()),this.startRecording())}addUpdate(t){let e=t();"buffer"!==this.recordingMode&&!0!==e&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}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}
8checkAndHandleExpiredSession(){if(this._lastActivity&&s3(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled){this.pause();return}return!!this._checkSession()}setInitialState(){let t="".concat(ie.location.pathname).concat(ie.location.hash).concat(ie.location.search),e="".concat(ie.location.origin).concat(t);this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=e,this._context.initialTimestamp=Date.now(),this._context.urls.push(e)}throttledAddEvent(t,e){let n=this._throttledAddEvent(t,e);if(n===oD){let t=sq({category:"replay.throttled"});this.addUpdate(()=>!s9(this,{type:5,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t,metric:!0}}))}return n}getCurrentRoute(){let t=this.lastTransaction||(0,H.nZ)().getTransaction(),e=t&&(0,na.XU)(t).data||{},n=e[nu];if(t&&n&&["route","custom"].includes(n))return(0,na.XU)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function(t){let{useCompression:e,workerUrl:n}=t;if(e&&window.Worker){let t=function(t){try{let e=t||("undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":function(){let t=new Blob(['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))}
vendor: 4,465 bytes, line 8
8,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,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}}},L=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;
8++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)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=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(L(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}();function q(t,n){n||(n={});var r=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}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return 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&&O(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)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(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=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(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(G)return G.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)}const N=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 B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[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});']);return URL.createObjectURL(t)}());if(!e)return;let n=new Worker(e);return new sK(n)}catch(t){}}(n);if(t)return t}return new sJ}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(t){}_initializeSessionForSampling(t){let e=this._options.errorSampleRate>0,n=s8({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:e});this.session=n}_checkSession(){if(!this.session)return!1;let t=this.session;return!s6(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(t),!1)}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{ie.document.addEventListener("visibilitychange",this._handleVisibilityChange),ie.addEventListener("blur",this._handleWindowBlur),ie.addEventListener("focus",this._handleWindowFocus),ie.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(function(t){let e=(0,H.nZ)(),n=(0,H.s3)();e.addScopeListener(oT(t)),t5(sz(t)),eu(e=>{if(!t.isEnabled())return;let n=function(t){let{from:e,to:n}=t,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:e}}}(e);null!==n&&(t.getContext().urls.push(n.name),t.triggerUserActivity(),t.addUpdate(()=>(oi(t,[n]),!1)))}),function(t){let e=(0,H.s3)();try{let n=new TextEncoder,{networkDetailAllowUrls:r,networkDetailDenyUrls:i,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:a}=t.getOptions(),c={replay:t,textEncoder:n,networkDetailAllowUrls:r,networkDetailDenyUrls:i,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:a};e&&e.on?e.on("beforeAddBreadcrumb",(t,e)=>(function(t,e,n){if(e.data)try{var r,i;"xhr"===e.category&&(r=n)&&r.xhr&&(function(t,e,n){let{xhr:r,input:i}=e;if(!r)return;let s=oo(i,n.textEncoder),o=r.getResponseHeader("content-length")?oa(r.getResponseHeader("content-length")):function(t,e,n){try{let r="json"===e&&t&&"object"==typeof t?JSON.stringify(t):t;return oo(r,n)}catch(t){return}}(r.response,r.responseType,n.textEncoder);void 0!==s&&(t.data.request_body_size=s),void 0!==o&&(t.data.response_body_size=o)}(e,n,t),ow(e,n,t)),"fetch"===e.category&&(i=n)&&i.response&&(function(t,e,n){let{input
8:r,response:i}=e,s=r?ob(r):void 0,o=oo(s,n.textEncoder),a=i?oa(i.headers.get("content-length")):void 0;void 0!==o&&(t.data.request_body_size=o),void 0!==a&&(t.data.response_body_size=a)}(e,n,t),og(e,n,t))}catch(t){}})(c,t,e)):(er(e=>{if(!t.isEnabled())return;let n=function(t){let{startTimestamp:e,endTimestamp:n,fetchData:r,response:i}=t;if(!n)return null;let{method:s,url:o}=r;return{type:"resource.fetch",start:e/1e3,end:n/1e3,name:o,data:{method:s,statusCode:i?i.status:void 0}}}(e);os(t,n)}),t9(e=>{if(!t.isEnabled())return;let n=function(t){let{startTimestamp:e,endTimestamp:n,xhr:r}=t,i=r[t8];if(!e||!n||!i)return null;let{method:s,url:o,status_code:a}=i;return void 0===o?null:{type:"resource.xhr",name:o,start:e/1e3,end:n/1e3,data:{method:s,statusCode:a}}}(e);os(t,n)}))}catch(t){}}(t);let r=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e?or(t):void 0;return Object.assign((e,r)=>{if(!t.isEnabled())return e;if("replay_event"===e.type)return delete e.breadcrumbs,e;if(e.type&&!oe(e)&&!on(e))return e;let i=t.checkAndHandleExpiredSession();if(!i)return e;if(on(e))return t.flush(),e.contexts.feedback.replay_id=t.getSessionId(),t.triggerUserActivity(),t.addUpdate(()=>!e.timestamp||(t.throttledAddEvent({type:i8.Custom,timestamp:1e3*e.timestamp,data:{tag:"breadcrumb",payload:{timestamp:e.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:e.event_id}}}}),!1)),e;if(!e.type&&e.exception&&e.exception.values&&e.exception.values.length&&r.originalException&&r.originalException.__rrweb__&&!t.getOptions()._experiments.captureExceptions)return null;let s="buffer"===t.recordingMode&&e.message!==ii&&!!e.exception&&!e.type&&s0(t.getOptions().errorSampleRate),o=s||"session"===t.recordingMode;return o&&(e.tags={...e.tags,replayId:t.getSessionId()}),n&&n(e,{statusCode:200}),e},{id:"Replay"})}(t,!(n&&n.on));n&&n.addEventProcessor?n.addEventProcessor(r):function(t){let e=(0,H.s3)();e&&e.addEventProcessor&&e.addEventProcessor(t)}(r),n&&n.on&&(n.on("beforeSendEvent",e=>{t.isEnabled()&&!e.type&&function(t,e){let n=e.exception&&e.exception.values&&e.exception.values[0].value;if("string"==typeof n&&(n.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){let e=sq({category:"replay.hydrate-error"});sP(t,e)}}(t,e)}),n.on("afterSendEvent",or(t)),n.on("createDsc",e=>{let n=t.getSessionId();if(n&&t.isEnabled()&&"session"===t.recordingMode){let r=t.checkAndHandleExpiredSession();r&&(e.replay_id=n)}}),n.on("startTransaction",e=>{t.lastTransaction=e}),n.on("finishTransaction",e=>{t.lastTransaction=e}),n.on("beforeSendFeedback",(e,n)=>{let r=t.getSessionId();n&&n.includeReplay&&t.isEnabled()&&r&&e.contexts&&e.contexts.feedback&&(e.contexts.feedback.replay_id=r)}))}(this),this._hasInitializedCoreListeners=!0)}catch(t){this._handleException(t)}this._performanceCleanupCallback=function(t){function e(e){t.performanceEntries.includes(e)||t.performanceEntries.push(e)}function n(t){let{entries:n}=t;n.forEach(e)}let r=[];return["navigation","paint","resource"].forEach(t=>{r.push(rr(t,n))}),r.push(rn(e=>{let{metric:n}=e;t.replayPerformanceEntries.push(function(t){let e=t.entries,n=e[e.length-1],r=n?n.element:void 0,i=t.value,s=sG(i),o={type:"largest-contentful-paint",name:"largest-contentful-paint",start:s,end:s,data:{value:i,size:i,nodeId:r?sM.mirror.getId(r):void 0}};return o}(n))})),()=>{r.forEach(t=>t())}}(this)}_removeListeners(){try{ie.document.removeEventListener("visibilitychange",this._handleVisibilityChange),ie.removeEventListener("blur",this._handleWindowBlur),ie.removeEventListener("focus",this._handleWindowFocus),ie.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this._handleException(t)}}__init(){this._handleVisibilityChange=()=>{"visible"===ie.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{let t=sq({category:"ui.blur"});
8this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{let t=sq({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{!function(t,e){if(!t.isEnabled())return;t.updateUserActivity();let n=function(t){var e;let{metaKey:n,shiftKey:r,ctrlKey:i,altKey:s,key:o,target:a}=t;if(!a||"INPUT"===(e=a).tagName||"TEXTAREA"===e.tagName||e.isContentEditable||!o)return null;let c=1===o.length;if(!(n||i||s)&&c)return null;let u=(0,tD.Rt)(a,{maxStringLength:200})||"<unknown>",l=s$(a,u);return sq({category:"ui.keyDown",message:u,data:{...l.data,metaKey:n,shiftKey:r,ctrlKey:i,altKey:s,key:o}})}(e);n&&sP(t,n)}(this,t)}}_doChangeToBackgroundTasks(t){if(!this.session)return;let e=s4(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire});e||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;let e=this.checkAndHandleExpiredSession();e&&t&&this._createCustomBreadcrumb(t)}_updateUserActivity(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastActivity=t}_updateSessionActivity(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:i8.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=this.performanceEntries.map(sQ).filter(Boolean).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(oi(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:t,eventBuffer:e}=this;if(!t||!e||t.segmentId)return;let n=e.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){let t={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(),t}async _runFlush(){let t=this.getSessionId();if(this.session&&this.eventBuffer&&t&&(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents)&&(await oC(this),this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let e=Date.now();if(e-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw Error("Session is too long, not sending replay");let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await oA({replayId:t,recordingData:i,segmentId:r,eventContext:n,session:this.session,options:this.getOptions(),timestamp:e})}catch(e){this._handleException(e),this.stop({reason:"sendReplay"});let t=(0,H.s3)();t&&t.recordDroppedEvent("send_error","replay")}}__init5(){var t=this;this._flush=async function(){let{force:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!t._isEnabled&&!e||!t.checkAndHandleExpiredSession()||!t.session)return;let n=t.session.started,r=Date.now(),i=r-n;t._debouncedFlush.cancel();let s=i<t._options.minReplayDuration,o=i>t._options.maxReplayDuration+5e3;if(s||o){"[Replay] Session duration (".concat(Math.floor(i/1e3),"s) is too ").concat(s?"short":"long",", not sending replay."),t._options._experiments.traceInternals,s&&t._debouncedFlush();return}let a=t.eventBuffer;if(a&&0===t.session.segmentId&&!a.hasCheckout&&t._options._experiments.traceInternals,!t._flushLock){t._flushLock=t._runFlush(),await t._flushLock,t._flushLock=void 0;return}try{await t._flushLock}catch(t){}finally{t._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&s2(this.session)}__init6(){this._onMutationHandler=t=>{let e=t.length,n=this._options.mutationLimit,r=this._options.mutationBreadcrumbLimit,i=n&&e>n;if(e>r||i){let t=sq({category:"replay.mutations",data:{count:e,limit:i}});this._createCustomBreadcrumb(t)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}constructor({options:t,recordingOptions:e}){oP.prototype.__init.call(this),oP.prototype.__init2.call(this),oP.prototype.__init3.call(this),oP.prototype.__init4.call(this),oP.prototype.__init5.call(this),oP.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._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=e,this._options=t,this._debouncedFlush=function(t,e,n){let r,i,s;let o=n&&n.maxWait?Math.max(n.maxWait,e):0;function a(){return c(),r=t()}function c(){void 0!==i&&clearTimeout(i),void 0!==s&&clearTimeout(s),i=s=void 0}function u(){return i&&clearTimeout(i),i=setTimeout(a,e),o&&void 0===s&&(s=setTimeout(a,o)),r}return u.cancel=c,u.flush=function(){return void 0!==i||void 0!==s?a():r},u}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(t,e,n){let r=new Map,i=t=>{let e=t-5;r.forEach((t,n)=>{n<e&&r.delete(n)})},s=()=>[...r.values()].reduce((t,e)=>t+e,0),o=!1;return function(){for(var e=arguments.length,n=Array(e),a=0;a<e;a++)n[a]=arguments[a];let c=Math.floor(Date.now()/1e3);if(i(c),s()>
8=300){let t=o;return o=!0,t?"__SKIPPED":oD}o=!1;let u=r.get(c)||0;return r.set(c,u+1),t(...n)}}((t,e)=>ot(this,t)?s7(this,t,e):Promise.resolve(null),0,0);let{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;i&&(this.clickDetector=new sF(this,i))}}function oN(t,e,n,r){let i="string"==typeof r?r.split(","):[],s=[...t,...i,...e];return void 0!==n&&("string"==typeof n&&s.push(".".concat(n)),(0,$.Cf)(()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")})),s.join(",")}let oL='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',oj=["content-length","content-type","accept"],oF=!1;class oB{static __initStatic(){this.id="Replay"}get _isInitialized(){return oF}set _isInitialized(t){oF=t}setupOnce(){it()&&(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(t){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){let t=function(t){let e=(0,H.s3)(),n=e&&e.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...(0,q.Jr)(t)};return n?(null==t.sessionSampleRate&&null==t.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&(0,$.Cf)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),"number"==typeof n.replaysSessionSampleRate&&(r.sessionSampleRate=n.replaysSessionSampleRate),"number"==typeof n.replaysOnErrorSampleRate&&(r.errorSampleRate=n.replaysOnErrorSampleRate)):(0,$.Cf)(()=>{console.warn("SDK client is not available.")}),r}(this._initialOptions);this._replay=new oP({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{let t=(0,H.s3)(),e=t.getIntegrationByName("ReplayCanvas");if(!e)return;this._replay._canvas=e.getOptions()}catch(t){}}constructor({flushMinDelay:t=5e3,flushMaxDelay:e=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:i=!0,useCompression:s=!0,workerUrl:o,_experiments:a={},sessionSampleRate:c,errorSampleRate:u,maskAllText:l=!0,maskAllInputs:d=!0,blockAllMedia:h=!0,mutationBreadcrumbLimit:f=750,mutationLimit:p=1e4,slowClickTimeout:m=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:y=[],networkDetailDenyUrls:v=[],networkCaptureBodies:_=!0,networkRequestHeaders:b=[],networkResponseHeaders:S=[],mask:E=[],maskAttributes:k=["title","placeholder"],unmask:w=[],block:x=[],unblock:T=[],ignore:C=[],maskFn:O,beforeAddRecordingEvent:I,beforeErrorSampling:R,blockClass:M,blockSelector:A,maskInputOptions:D,maskTextClass:P,maskTextSelector:N,ignoreClass:L}={}){this.name=oB.id;let j=function(t){let{mask:e,unmask:n,block:r,unblock:i,ignore:s,blockClass:o,blockSelector:a,maskTextClass:c,maskTextSelector:u,ignoreClass:l}=t,d=oN(e,[".sentry-mask","[data-sentry-mask]"],c,u),h=oN(n,[".sentry-unmask","[data-sentry-unmask]"]),f={maskTextSelector:d,unmaskTextSelector:h,blockSelector:oN(r,[".sentry-block","[data-sentry-block]",'base[href="/"]'],o,a),unblockSelector:oN(i,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:oN(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],l)};return o instanceof RegExp&&(f.blockClass=o),c instanceof RegExp&&(f.maskTextClass=c),f}({mask:E,unmask:w,block:x,unblock:T,ignore:C,blockClass:M,blockSelector:A,maskTextClass:P,maskTextSelector:N,ignoreClass:L});if(this._recordingOptions={maskAllInputs:d,maskAllText:l,maskInputOptions:{...D||{},password:!0},maskTextFn:O,maskInputFn:O,maskAttributeFn:(t,e,n)=>(function(t){let{el:e,key:n,maskAttributes:r,maskAllText:i,privacyOptions:s,value:o}=t;return!i||s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?o:r.includes(n)||"value"===n&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o})({maskAttributes:k,maskAllText:l,privacyOptions:j,key:t,value:e,el:n}),...j,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:t=>{try{t.__rrweb__=!0}catch(t){}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:e,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,3
86e5),stickySession:i,sessionSampleRate:c,errorSampleRate:u,useCompression:s,workerUrl:o,blockAllMedia:h,maskAllInputs:d,maskAllText:l,mutationBreadcrumbLimit:f,mutationLimit:p,slowClickTimeout:m,slowClickIgnoreSelectors:g,networkDetailAllowUrls:y,networkDetailDenyUrls:v,networkCaptureBodies:_,networkRequestHeaders:oU(b),networkResponseHeaders:oU(S),beforeAddRecordingEvent:I,beforeErrorSampling:R,_experiments:a},"number"==typeof c&&(console.warn("[Replay] You are passing `sessionSampleRate` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure `replaysSessionSampleRate` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ".concat(c," })")),this._initialOptions.sessionSampleRate=c),"number"==typeof u&&(console.warn("[Replay] You are passing `errorSampleRate` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure `replaysOnErrorSampleRate` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ".concat(u," })")),this._initialOptions.errorSampleRate=u),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?"".concat(this._recordingOptions.blockSelector,",").concat(oL):oL),this._isInitialized&&it())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}}function oU(t){return[...oj,...t.map(t=>t.toLowerCase())]}oB.__initStatic();var oq=window;oq.__sentryRewritesTunnelPath__="/monitoring",oq.SENTRY_RELEASE={id:"HxtyvPQT7OzQ5pG05Df69"},oq.__sentryBasePath=void 0,oq.__rewriteFramesAssetPrefixPath__="",function(t){let e={environment:function(t){let e=t?no.env.NEXT_PUBLIC_VERCEL_ENV:no.env.VERCEL_ENV;return e?"vercel-".concat(e):void 0}(!0)||"production",defaultIntegrations:function(t){let e=[...ns,r4()];return("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&(0,U.z)(t)&&e.push(rV()),e}(t),...t};(function(t){let{integrations:e}=t;e&&(Array.isArray(e)?t.integrations=r8(e):t.integrations=t=>{let n=e(t);return r8(n)})})(e),function(t){let e=r6.__sentryRewritesTunnelPath__;if(e&&t.dsn){let n=eD(t.dsn);if(!n)return;let r=n.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(r){let i=r[1],s=r[2],o="".concat(e,"?o=").concat(i,"&p=").concat(n.projectId);s&&(o+="&r=".concat(s)),t.tunnel=o,rQ.X&&$.kg.info('Tunneling events to "'.concat(o,'"'))}else rQ.X&&$.kg.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(e),B(e,"nextjs",["nextjs","react"]),function(t){let e={...t};B(e,"react"),function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};void 0===t.defaultIntegrations&&(t.defaultIntegrations=[...ns]),void 0===t.release&&("string"==typeof __SENTRY_RELEASE__&&(t.release=__SENTRY_RELEASE__),ty.SENTRY_RELEASE&&ty.SENTRY_RELEASE.id&&(t.release=ty.SENTRY_RELEASE.id)),void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0);let e={...t,stackParser:(0,tS.Sq)(t.stackParser||e8),integrations:function(t){let e;let n=t.defaultIntegrations||[],r=t.integrations;n.forEach(t=>{t.isDefaultInstance=!0}),e=Array.isArray(r)?[...n,...r]:"function"==typeof r?(0,z.lE)(r(n)):n;let i=function(t){let e={};return t.forEach(t=>{let{name:n}=t,r=e[n];r&&!r.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)}),Object.keys(e).map(t=>e[t])}(e),s=function(t,e){for(let n=0;n<t.length;n++)if(!0===e(t[n]))return n;return -1}(i,t=>"Debug"===t.name);if(-1!==s){let[t]=i.splice(s,1);i.push(t)}return i}(t),transport:t.transport||(ee()?nr:ni)};(function(t,e){!0===e.debug&&(W.X?$.kg.enable():(0,$.Cf)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));let n=(0,H.nZ)();n.update(e.initialScope);let r=new t(e);(function(t){let e=(0,G.Gd)(),n=e.getStackTop();n.client=t,n.scope.setClient(t)})(r),r.init?r.init():r.setupIntegrations&&r.setupIntegrations()})(eV,e),t.autoSessionTracking&&void 0!==ty.document&&((0,H.yj)({ignoreDuration:!0}),(0,H.cg)(),eu(t=>{let{from:e,to:n}=t;void 0!==e&&e!==n&&((0,H.yj)({ignoreDuration:!0}),(0,H.cg)())}))}(e)}(e);let n=(0,H.nZ)();n.setTag("runtime","browser");let r=t=>"transaction"===t.type&&"/404"===t.transaction?null:t;r.id="NextClient404Filter",n.addEventProcessor(r)}({dsn:"https://[email protected]/11",tracesSampleRate:1,debug:!1,replaysOnErrorSampleRate:1,replaysSessionSampleRate:.1,integrations:[new oB({maskAllText:!0,blockAllMedia:!0})]})},42122:function(t,e,n){"use strict";n.d(e,{EN:function(){return u},IQ:function(){return l},bU:function(){return o}});var r=n(47708),i=n(22135),s=n(25120);let o="baggage",a="sentry-",c=/^sentry-/;function u(t){if(!(0,i.HD)(t)&&!Array.isArray(t))return;let e={};if(Array.isArray(t))e=t.reduce((t,e)=>{let n=d(e);for(let e of Object.keys(n))t[e]=n[e];return t},{});else{if(!t)return;e=d(t)}let n=Object.entries(e).reduce((t,e)=>
8{let[n,r]=e;if(n.match(c)){let e=n.slice(a.length);t[e]=r}return t},{});return Object.keys(n).length>0?n:void 0}function l(t){if(!t)return;let e=Object.entries(t).reduce((t,e)=>{let[n,r]=e;return r&&(t["".concat(a).concat(n)]=r),t},{});return function(t){if(0!==Object.keys(t).length)return Object.entries(t).reduce((t,e,n)=>{let[i,o]=e,a="".concat(encodeURIComponent(i),"=").concat(encodeURIComponent(o)),c=0===n?a:"".concat(t,",").concat(a);return c.length>8192?(r.X&&s.kg.warn("Not adding key: ".concat(i," with val: ").concat(o," to baggage header due to exceeding baggage size limits.")),t):c},"")}(e)}function d(t){return t.split(",").map(t=>t.split("=").map(t=>decodeURIComponent(t.trim()))).reduce((t,e)=>{let[n,r]=e;return t[n]=r,t},{})}},56212:function(t,e,n){"use strict";n.d(e,{Rt:function(){return o},iY:function(){return u},l4:function(){return a},qT:function(){return c}});var r=n(22135),i=n(90021);let s=(0,i.R)();function o(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return"<unknown>";try{let n,i=t,o=[],a=0,c=0,u=Array.isArray(e)?e:e.keyAttrs,l=!Array.isArray(e)&&e.maxStringLength||80;for(;i&&a++<5&&(n=function(t,e){let n,i,o,a,c;let u=[];if(!t||!t.tagName)return"";if(s.HTMLElement&&t instanceof HTMLElement&&t.dataset&&t.dataset.sentryComponent)return t.dataset.sentryComponent;u.push(t.tagName.toLowerCase());let l=e&&e.length?e.filter(e=>t.getAttribute(e)).map(e=>[e,t.getAttribute(e)]):null;if(l&&l.length)l.forEach(t=>{u.push("[".concat(t[0],'="').concat(t[1],'"]'))});else if(t.id&&u.push("#".concat(t.id)),(n=t.className)&&(0,r.HD)(n))for(c=0,i=n.split(/\s+/);c<i.length;c++)u.push(".".concat(i[c]));let d=["aria-label","type","name","title","alt"];for(c=0;c<d.length;c++)o=d[c],(a=t.getAttribute(o))&&u.push("[".concat(o,'="').concat(a,'"]'));return u.join("")}(i,u),"html"!==n&&(!(a>1)||!(c+3*o.length+n.length>=l)));)o.push(n),c+=n.length,i=i.parentNode;return o.reverse().join(" > ")}catch(t){return"<unknown>"}}function a(){try{return s.document.location.href}catch(t){return""}}function c(t){return s.document&&s.document.querySelector?s.document.querySelector(t):null}function u(t){if(!s.HTMLElement)return null;let e=t;for(let t=0;t<5&&e;t++){if(e instanceof HTMLElement&&e.dataset.sentryComponent)return e.dataset.sentryComponent;e=e.parentNode}return null}},47708:function(t,e,n){"use strict";n.d(e,{X:function(){return r}});let r=!1},43772:function(t,e,n){"use strict";function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){return"npm"}n.d(e,{S:function(){return i},n:function(){return r}})},22135:function(t,e,n){"use strict";n.d(e,{Cy:function(){return y},HD:function(){return u},J8:function(){return g},Kj:function(){return m},Le:function(){return l},PO:function(){return h},TX:function(){return a},V9:function(){return _},VW:function(){return o},VZ:function(){return i},cO:function(){return f},fm:function(){return c},i2:function(){return v},kK:function(){return p},pt:function(){return d},y1:function(){return b}});let r=Object.prototype.toString;function i(t){switch(r.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return _(t,Error)}}function s(t,e){return r.call(t)==="[object ".concat(e,"]")}function o(t){return s(t,"ErrorEvent")}function a(t){return s(t,"DOMError")}function c(t){return s(t,"DOMException")}function u(t){return s(t,"String")}function l(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function d(t){return null===t||l(t)||"object"!=typeof t&&"function"!=typeof t}function h(t){return s(t,"Object")}function f(t){return"undefined"!=typeof Event&&_(t,Event)}function p(t){return"undefined"!=typeof Element&&_(t,Element)}function m(t){return s(t,"RegExp")}function g(t){return!!(t&&t.then&&"function"==typeof t.then)}function y(t){return h(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function v(t){return"number"==typeof t&&t!=t}function _(t,e){try{return t instanceof e}catch(t){return!1}}function b(t){return!!("object"==typeof t&&null!==t&&(t.__isVue||t._isVue))}},25120:function(t,e,n){"use strict";n.d(e,{Cf:function(){return a},LD:function(){return o},RU:function(){return s},kg:function(){return c}});var r=n(47708),i=n(90021);let s=["debug","info","warn","error","log","assert","trace"],o={};function a(t){if(!("console"in i.GLOBAL_OBJ))return t();let e=i.GLOBAL_OBJ.console,n={},r=Object.keys(o);r.forEach(t=>{let r=o[t];n[t]=e[t],e[t]=r});try{return t()}finally{r.forEach(t=>{e[t]=n[t]})}}let c=function(){let t=!1,e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};
8return r.X?s.forEach(n=>{e[n]=function(){for(var e=arguments.length,r=Array(e),s=0;s<e;s++)r[s]=arguments[s];t&&a(()=>{i.GLOBAL_OBJ.console[n]("".concat("Sentry Logger ","[").concat(n,"]:"),...r)})}}):s.forEach(t=>{e[t]=()=>void 0}),e}()},78002:function(t,e,n){"use strict";n.d(e,{DM:function(){return s},Db:function(){return c},EG:function(){return u},YO:function(){return l},jH:function(){return a},lE:function(){return d}});var r=n(49432),i=n(90021);function s(){let t=i.GLOBAL_OBJ,e=t.crypto||t.msCrypto,n=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{let t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(t){}return"10000000100040008000100000000000".replace(/[018]/g,t=>(t^(15&n())>>t/4).toString(16))}function o(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function a(t){let{message:e,event_id:n}=t;if(e)return e;let r=o(t);return r?r.type&&r.value?"".concat(r.type,": ").concat(r.value):r.type||r.value||n||"<unknown>":n||"<unknown>"}function c(t,e,n){let r=t.exception=t.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=e||""),s.type||(s.type=n||"Error")}function u(t,e){let n=o(t);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){let t={...r&&r.data,...e.data};n.mechanism.data=t}}function l(t){if(t&&t.__sentry_captured__)return!0;try{(0,r.xp)(t,"__sentry_captured__",!0)}catch(t){}return!1}function d(t){return Array.isArray(t)?t:[t]}},70704:function(t,e,n){"use strict";n.d(e,{KV:function(){return s}});var r=n(43772);t=n.hmd(t);var i=n(83454);function s(){return!(0,r.n)()&&"[object process]"===Object.prototype.toString.call(void 0!==i?i:0)}},679:function(t,e,n){"use strict";n.d(e,{Fv:function(){return o},Qy:function(){return function t(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400,i=o(e,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?t(e,n-1,r):i}}});var r=n(22135),i=n(49432),s=n(59598);function o(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Infinity;try{return function t(e,o){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Infinity,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Infinity,u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){let t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t<e.length;t++){let r=e[t];if(r===n)return!0}return e.push(n),!1},function(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}]}(),[l,d]=u;if(null==o||["number","boolean","string"].includes(typeof o)&&!(0,r.i2)(o))return o;let h=function(t,e){try{if("domain"===t&&e&&"object"==typeof e&&e._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if(void 0!==n.g&&e===n.g)return"[Global]";if(e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if((0,r.y1)(e))return"[VueViewModel]";if((0,r.Cy)(e))return"[SyntheticEvent]";if("number"==typeof e&&e!=e)return"[NaN]";if("function"==typeof e)return"[Function: ".concat((0,s.$P)(e),"]");if("symbol"==typeof e)return"[".concat(String(e),"]");if("bigint"==typeof e)return"[BigInt: ".concat(String(e),"]");let i=function(t){let e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}(e);if(/^HTML(\w*)Element$/.test(i))return"[HTMLElement: ".concat(i,"]");return"[object ".concat(i,"]")}catch(t){return"**non-serializable** (".concat(t,")")}}(e,o);if(!h.startsWith("[object "))return h;if(o.__sentry_skip_normalization__)return o;let f="number"==typeof o.__sentry_override_normalization_depth__?o.__sentry_override_normalization_depth__:a;if(0===f)return h.replace("object ","");if(l(o))return"[Circular ~]";if(o&&"function"==typeof o.toJSON)try{let e=o.toJSON();return t("",e,f-1,c,u)}catch(t){}let p=Array.isArray(o)?[]:{},m=0,g=(0,i.Sh)(o);for(let e in g){if(!Object.prototype.hasOwnProperty.call(g,e))continue;if(m>=c){p[e]="[MaxProperties ~]";break}let n=g[e];p[e]=t(e,n,f-1,c,u),m++}return d(o),p}("",t,e,o)}catch(t){return{ERROR:"**non-serializable** (".concat(t,")")}}}},49432:function(t,e,n){"use strict";n.d(e,{$Q:function(){return l},HK:function(){return d},Jr:function(){return y},Sh:function(){return f},_j:function(){return h},hl:function(){return c},xp:function(){return u},zf:function(){return g}});var r=n(56212),i=n(47708),s=n(22135),o=n(25120),a=n(35086);function c(t,e,n){if(!(e in t))return;let r=t[e],i=n(r);"function"==typeof i&&l(i,r),t[e]=i}function u(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(n){i.X&&o.kg.log('Failed to add non-enumerable property "'.concat(e,'" to object'),t)}}function l(t,e){try{let n=e.prototype||{};t.prototype=e.prototype=n,u(t,"__sentry_original__",e)}catch(t){}}function d(t){return t.__sentry_original__}function h(t){return Object.keys(t).map(e=>"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t[e]))).join("&")}function f(t){if((0,s.VZ)(t))return{message:t.message,name:t.name,stack:t.stack,...m(t)};if(!(0,s.cO)(t))return t;{let e={type:t.type,target:p(t.target),currentTarget:p(t.currentTarget),...m
8(t)};return"undefined"!=typeof CustomEvent&&(0,s.V9)(t,CustomEvent)&&(e.detail=t.detail),e}}function p(t){try{return(0,s.kK)(t)?(0,r.Rt)(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}}function m(t){if("object"!=typeof t||null===t)return{};{let e={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}}function g(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,n=Object.keys(f(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return(0,a.$G)(n[0],e);for(let t=n.length;t>0;t--){let r=n.slice(0,t).join(", ");if(!(r.length>e)){if(t===n.length)return r;return(0,a.$G)(r,e)}}return""}function y(t){let e=new Map;return function t(e,n){if(function(t){if(!(0,s.PO)(t))return!1;try{let e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch(t){return!0}}(e)){let r=n.get(e);if(void 0!==r)return r;let i={};for(let r of(n.set(e,i),Object.keys(e)))void 0!==e[r]&&(i[r]=t(e[r],n));return i}if(Array.isArray(e)){let r=n.get(e);if(void 0!==r)return r;let i=[];return n.set(e,i),e.forEach(e=>{i.push(t(e,n))}),i}return e}(t,e)}},59598:function(t,e,n){"use strict";n.d(e,{$P:function(){return c},Sq:function(){return o},pE:function(){return s}});let r=/\(error: (.*)\)/,i=/captureMessage|captureException/;function s(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];let s=e.sort((t,e)=>t[0]-e[0]).map(t=>t[1]);return function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],o=t.split("\n");for(let t=e;t<o.length;t++){let e=o[t];if(e.length>1024)continue;let i=r.test(e)?e.replace(r,"$1"):e;if(!i.match(/\S*Error: /)){for(let t of s){let e=t(i);if(e){n.push(e);break}}if(n.length>=50)break}}return function(t){if(!t.length)return[];let e=Array.from(t);return/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop(),e.reverse(),i.test(e[e.length-1].function||"")&&(e.pop(),i.test(e[e.length-1].function||"")&&e.pop()),e.slice(0,50).map(t=>({...t,filename:t.filename||e[e.length-1].filename,function:t.function||"?"}))}(n)}}function o(t){return Array.isArray(t)?s(...t):t}let a="<anonymous>";function c(t){try{if(!t||"function"!=typeof t)return a;return t.name||a}catch(t){return a}}},35086:function(t,e,n){"use strict";n.d(e,{$G:function(){return i},U0:function(){return o},nK:function(){return s}});var r=n(22135);function i(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"!=typeof t||0===e?t:t.length<=e?t:"".concat(t.slice(0,e),"...")}function s(t,e){if(!Array.isArray(t))return"";let n=[];for(let e=0;e<t.length;e++){let i=t[e];try{(0,r.y1)(i)?n.push("[VueViewModel]"):n.push(String(i))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function o(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.some(e=>(function(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!(0,r.HD)(t)&&((0,r.Kj)(e)?e.test(t):!!(0,r.HD)(e)&&(n?t===e:t.includes(e)))})(t,e,n))}},37884:function(t,e,n){"use strict";n.d(e,{$2:function(){return a},WD:function(){return o},cW:function(){return c}});var r,i,s=n(22135);function o(t){return new c(e=>{e(t)})}function a(t){return new c((e,n)=>{n(t)})}(r=i||(i={}))[r.PENDING=0]="PENDING",r[r.RESOLVED=1]="RESOLVED",r[r.REJECTED=2]="REJECTED";class c{then(t,e){return new c((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this._executeHandlers()})}catch(t){return this.then(t=>t,t)}finally(t){return new c((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{if(i){n(r);return}e(r)})})}__init(){this._resolve=t=>{this._setResult(i.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(i.REJECTED,t)}}__init3(){this._setResult=(t,e)=>{if(this._state===i.PENDING){if((0,s.J8)(e)){e.then(this._resolve,this._reject);return}this._state=t,this._value=e,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===i.PENDING)return;let t=this._handlers.slice();this._handlers=[],t.forEach(t=>{t[0]||(this._state===i.RESOLVED&&t[1](this._value),this._state===i.REJECTED&&t[2](this._value),t[0]=!0)})}}constructor(t){c.prototype.__init.call(this),c.prototype.__init2.call(this),c.prototype.__init3.call(this),c.prototype.__init4.call(this),this._state=i.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}}},28754:function(t,e,n){"use strict";n.d(e,{Z1:function(){return o},ph:function(){return s},yW:function(){return i}});var r=n(90021);function i(){return Date.now()/1e3}let s=function(){let{performance:t}=r.GLOBAL_OBJ;if(!t||!t.now)return i;let e=Date.now()-t.now(),n=void 0==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/1e3}(),o=(()=>{let{performance:t}=r.GLOBAL_OBJ;if(!t||!t.now)return;let e=t.now(),n=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+e-n):36e5,s=t.timing&&t.timing.navigationStart,o="number"==typeof s?Math.abs(s+e-n):36e5;return i<36e5||o<36e5?i<=o?t.timeOrigin:s:n})()},49210:function(t,e,n){"use strict";n.d(e,{$p:function(){return u},KA:function(){return a},pT:function(){return c}});var r=n(42122),i=n(78002);let s=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function o(t){let e;if(!t)return;let n=t.match(s);if(n)return"1"===n[3]?e=!0:"0"===n[3]&&(e=!1),{traceId:n[1],parentSampled:e,parentSpanId:n[2]}}function a(t,e){let n=o(t),s=(0,r.EN)(e),{traceId:a,parentSpanId:c,parentSampled:u}=n||{};return n?{traceparentData:n,dynamicSamplingContext:s||{},propagationContext:{traceId:a||(0,i.DM)(),parentSpanId:c||(0,i.DM)().substring(16),spanId:(0,i.DM)().substring(16),sampled:u,dsc:s||{}}}:{traceparentData:n,dynamicSamplingContext:void 0,propagationContext:{traceId:a||(0,i.DM)(),spanId:(0,i.DM)().substring(16)}}}function c(t,e){let n=o(t),s=(0,r.EN)(e),{traceId:a,parentSpanId:c,parentSampled:u}=n||{};return n?{traceId:a||(0,i.DM)(),parentSpanId:c||(0,i.DM)().substring(16),spanId:(0,i.DM)().substring(16),sampled:u,dsc:s||{}}:{traceId:a||(0,i.DM)(),spanId:(0,i.DM)().substring(16)}}function u(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,i.DM)(),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,i.DM)().substring(16),n=arguments.length>2?arguments[2]:void 0,r="";return void 0!==n&&(r=n?"-1":"-0"),"".concat(t,"-").concat(e).concat(r)}},90021:function(t,e,n){"use strict";function r(t){return t&&t.Math==Math?t:void 0}n.d(e,{GLOBAL_OBJ:function(){return i},R:function(){return s},Y:function(){return o}});let i="object"==typeof globalThis&&r(globalThis)||r(window)||"object"==typeof self&&r(self)||"object"==typeof n.g&&r(n.g)||function(){return this}()||{};function s(){return i}function o(t,e,n){let r=n||i,s=r.__SENTRY__=r.__SENTRY__||{},o=s[t]||(s[t]=e());return o}},70035:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return _}});var r=n(85893);n(76092);var i=n(88767),s=n(67294);let o=(0,s.createContext)(null),a={didCatch:!1,error:null};class c extends s.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=a}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){let{error:t}=this.state;if(null!==t){for(var e,n,r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];null===(e=(n=this.props).onReset)||void 0===e||e.call(n,{args:i,reason:"imperative-api"}),this.setState(a)}}componentDidCatch(t,e){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,t,e)}componentDidUpdate(t,e){let{didCatch:n}=this.state,{resetKeys:r}=this.props;if(n&&null!==e.error&&function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.length!==e.length||t.some((t,n)=>!Object.is(t,e[n]))}(t.resetKeys,r)){var i,s;null===(i=(s=this.props).onReset)||void 0===i||i.call(s,{next:r,prev:t.resetKeys,reason:"keys"}),this.setState(a)}}render(){let{children:t,fallbackRender:e,FallbackComponent:n,fallback:r}=this.props,{didCatch:i,error:a}=this.state,c=t;if(i){let t={error:a,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof e)c=e(t);else if(n)c=(0,s.createElement)(n,t);else if(void 0!==r)c=r;else throw a}return(0,s.createElement)(o.Provider,{value:{didCatch:i,error:a,resetErrorBoundary:this.resetErrorBoundary}},c)}}var u=n(79166);n(28760);var l=n(11163),d=n.n(l),h=n(74865),f=n.n(h);n(77602);var p=n(38296),m=n(3241);f().configure({showSpinner:!1}),d().events.on("routeChangeStart",()=>f().start()),d().events.on("routeChangeComplete",()=>f().done()),d().events.on("routeChangeError",()=>f().done());let g=new i.QueryClient;function y(t){let{error:e,resetErrorBoundary:n}=t;return(0,r.jsx)("div",{role:"alert",className:"d-flex justify-content-center align-items-center vh-100",children:(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("p",{children:"Something went wrong:"}),(0,r.jsx)("pre",{style:{color:"red"},children:e.message}),(0,r.jsx)(u.Z,{variant:"primary",onClick:()=>n(),content:"Try again",type:"button"})]})})}let v=t=>{let{children:e}=t;return(0,r.jsx)(r.Fragment,{children:e})};function _(t){let{Component:e,pageProps:n}=t,{reset:o}=(0,i.useQueryErrorResetBoundary)(),a=(0,l.useRouter)(),u=(null==e?void 0:e.provider)||v;return(0,s.useEffect)(()=>{let t=t=>{(0,p.SX)("config","G-Y4WEWEYKN5",{page_path:t})};return a.events.on("routeChangeComplete",t),()=>{a.events.off("routeChangeComplete",t)}},[a.events]),(0,r.jsx)(c,{onReset:o,fallbackRender:y,children:(0,r.jsx)(s.Suspense,{fallback:(0,r.jsx)("h1",{children:"Loading projects..."}),children:(0,r.jsx)(i.QueryClientProvider,{client:g,children:(0,r.jsx)(m.Me,{withGlobalStyles:!0,withNormalizeCSS:!0,children:(0,r.jsx)(u,{children:(0,r.jsx)(e,{...n})})})})})})}},79166:function(t,e,n){"use strict";var r=n(85893);n(67294),e.Z=function(t){let{content:e,variant:n,classes:i,...s}=t;return(0,r.jsx)("button",{"data-testid":"button",...s,className:"btn btn-".concat(n," ").concat(i),children:e})}},28760:function(){},77602:function(){},76092:function(){},77663:function(t){!function(){var e={229:function(t){var e,n,r,i=t.exports={};function s(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===s||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:s}
8catch(t){e=s}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(t){n=o}}();var c=[],u=!1,l=-1;function d(){u&&r&&(u=!1,r.length?c=r.concat(c):l=-1,c.length&&h())}function h(){if(!u){var t=a(d);u=!0;for(var e=c.length;e;){for(r=c,c=[];++l<e;)r&&r[l].run();l=-1,e=c.length}r=null,u=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function p(){}i.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new f(t,e)),1!==c.length||u||a(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(t){return[]},i.binding=function(t){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var s=n[t]={exports:{}},o=!0;try{e[t](s,s.exports,r),o=!1}finally{o&&delete n[t]}return s.exports}r.ab="//";var i=r(229);t.exports=i}()},11163:function(t,e,n){t.exports=n(96885)},74865:function(t,e,n){var r,i;void 0!==(i="function"==typeof(r=function(){var t,e,n,r={};r.version="0.2.0";var i=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function s(t,e,n){return t<e?e:t>n?n:t}r.configure=function(t){var e,n;for(e in t)void 0!==(n=t[e])&&t.hasOwnProperty(e)&&(i[e]=n);return this},r.status=null,r.set=function(t){var e=r.isStarted();t=s(t,i.minimum,1),r.status=1===t?null:t;var n=r.render(!e),c=n.querySelector(i.barSelector),u=i.speed,l=i.easing;return n.offsetWidth,o(function(e){var s,o;""===i.positionUsing&&(i.positionUsing=r.getPositioningCSS()),a(c,(s=t,(o="translate3d"===i.positionUsing?{transform:"translate3d("+(-1+s)*100+"%,0,0)"}:"translate"===i.positionUsing?{transform:"translate("+(-1+s)*100+"%,0)"}:{"margin-left":(-1+s)*100+"%"}).transition="all "+u+"ms "+l,o)),1===t?(a(n,{transition:"none",opacity:1}),n.offsetWidth,setTimeout(function(){a(n,{transition:"all "+u+"ms linear",opacity:0}),setTimeout(function(){r.remove(),e()},u)},u)):setTimeout(e,u)}),this},r.isStarted=function(){return"number"==typeof r.status},r.start=function(){r.status||r.set(0);var t=function(){setTimeout(function(){r.status&&(r.trickle(),t())},i.trickleSpeed)};return i.trickle&&t(),this},r.done=function(t){return t||r.status?r.inc(.3+.5*Math.random()).set(1):this},r.inc=function(t){var e=r.status;return e?("number"!=typeof t&&(t=(1-e)*s(Math.random()*e,.1,.95)),e=s(e+t,0,.994),r.set(e)):r.start()},r.trickle=function(){return r.inc(Math.random()*i.trickleRate)},t=0,e=0,r.promise=function(n){return n&&"resolved"!==n.state()&&(0===e&&r.start(),t++,e++,n.al
8ways(function(){0==--e?(t=0,r.done()):r.set((t-e)/t)})),this},r.render=function(t){if(r.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var e=document.createElement("div");e.id="nprogress",e.innerHTML=i.template;var n,s,o=e.querySelector(i.barSelector),c=t?"-100":(-1+(r.status||0))*100,l=document.querySelector(i.parent);return a(o,{transition:"all 0 linear",transform:"translate3d("+c+"%,0,0)"}),!i.showSpinner&&(s=e.querySelector(i.spinnerSelector))&&h(s),l!=document.body&&u(l,"nprogress-custom-parent"),l.appendChild(e),e},r.remove=function(){l(document.documentElement,"nprogress-busy"),l(document.querySelector(i.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&h(t)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective" in t?"translate3d":e+"Transform" in t?"translate":"margin"};var o=(n=[],function(t){n.push(t),1==n.length&&function t(){var e=n.shift();e&&e(t)}()}),a=function(){var t=["Webkit","O","Moz","ms"],e={};function n(n,r,i){var s;r=e[s=(s=r).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()})]||(e[s]=function(e){var n=document.body.style;if(e in n)return e;for(var r,i=t.length,s=e.charAt(0).toUpperCase()+e.slice(1);i--;)if((r=t[i]+s)in n)return r;return e}(s)),n.style[r]=i}return function(t,e){var r,i,s=arguments;if(2==s.length)for(r in e)void 0!==(i=e[r])&&e.hasOwnProperty(r)&&n(t,r,i);else n(t,s[1],s[2])}}();function c(t,e){return("string"==typeof t?t:d(t)).indexOf(" "+e+" ")>=0}function u(t,e){var n=d(t),r=n+e;c(n,e)||(t.className=r.substring(1))}function l(t,e){var n,r=d(t);c(t,e)&&(n=r.replace(" "+e+" "," "),t.className=n.substring(1,n.length-1))}function d(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function h(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return r})?r.call(e,n,e,t):r)&&(t.exports=i)},59852:function(t,e,n){"use strict";n.d(e,{j:function(){return o}});var r=n(75068),i=n(52943),s=n(52288),o=new(function(t){function e(){var e;return(e=t.call(this)||this).setup=function(t){var e;if(!s.sk&&(null==(e=window)?void 0:e.addEventListener)){var n=function(){return t()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},e}(0,r.Z)(e,t);var n=e.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var t;null==(t=this.cleanup)||t.call(this),this.cleanup=void 0}},n.setEventListener=function(t){var e,n=this;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t(function(t){"boolean"==typeof t?n.setFocused(t):n.onFocus()})},n.setFocused=function(t){this.focused=t,t&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(t){t()})},n.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},e}(i.l))},46747:function(t,e,n){"use strict";n.d(e,{QueryClient:function(){return r.S}});var r=n(89043),i=n(86755);n.o(i,"QueryClientProvider")&&n.d(e,{QueryClientProvider:function(){return i.QueryClientProvider}}),n.o(i,"useMutation")&&n.d(e,{useMutation:function(){return i.useMutation}}),n.o(i,"useQueries")&&n.d(e,{useQueries:function(){return i.useQueries}}),n.o(i,"useQuery")&&n.d(e,{useQuery:function(){return i.useQuery}}),n.o(i,"useQueryClient")&&n.d(e,{useQueryClient:function(){return i.useQueryClient}}),n.o(i,"useQueryErrorResetBoundary")&&n.d(e,{useQueryErrorResetBoundary:function(){return i.useQueryErrorResetBoundary}})},41909:function(t,e,n){"use strict";n.d(e,{E:function(){return s},j:function(){return i}});var r=console;function i(){return r}function s(t){r=t}},81262:function(t,e,n){"use strict";n.d(e,{R:function(){return u},m:function(){return c}});var r=n(87462),i=n(41909),s=n(101),o=n(21216),a=n(52288),c=function(){function t(t){this.options=(0,r.Z)({},t.defaultOptions,t.options),this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.observers=[],this.state=t.state||u(),this.meta=t.meta}var e=t.prototype;return e.setState=function(t){this.dispatch({type:"setState",state:t})},e.addObserver=function(t){-1===this.observers.indexOf(t)&&this.observers.push(t)},e.removeObserver=function(t){this.observers=this.observers.filter(function(e){return e!==t})},e.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(a.ZT).catch(a.ZT)):Promise.resolve()},e.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},e.execute=function(){var t,e=this,n="loading"===this.state.status,r=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),r=r.then(function(){null==e.mutationCache.config.onMutate||e.mutationCache.config.onMutate(e.state.variables,e)}).then(function(){return null==e.options.onMutate?void 0:e.options.onMutate(e.state.variables)}).then(function(t){t!==e.state.context&&e.dispatch({type:"loading",context:t,variables:e.state.variables})})),r.then(function(){return e.executeMutation()}).then(function(n){t=n,null==e.mutationCache.config.onSuccess||e.mutationCache.config.onSuccess(t,e.state.variables,e.state.context,e)}).then(function(){return null==e.options.onSuccess?void 0:e.options.onSuccess(t,e.state.variables,e.state.context)}).then(function(){return null==e.options.onSettled?void 0:e.options.onSettled(t,null,e.state.variables,e.state.context)}).then(function(){return e.dispatch({type:"success",data:t}),t}).catch(function(t){return null==e.mutationCache.config.onError||e.mutationCache.config.onError(t,e.state.variables,e.state.context,e),(0,i.j)().error(t),Promise.resolve().then(function(){return null==e.options.onError?void 0:e.options.onError(t,e.state.variables,e.state.context)}).then(function(){return null==e.options.onSettled?void 0:e.options.onSettled(void 0,t,e.state.variables,e.state.context)}).then(function(){throw e.dispatch({type:"error",error:t}),t})})},e.executeMutation=function(){var t,e=this;return this.retryer=new o.m4({fn:function(){return e.options.mutationFn?e.options.mutationFn(e.state.variables):Promise.reject("No mutationFn found")},onFail:function(){e.dispatch({type:"failed"})},onPause:function(){e.dispatch({type:"pause"})},onContinue:function(){e.dispatch({type:"continue"})},retry:null!=(t=this.options.retry)?t:0,retryDelay:this.options.retryDelay}),this.retryer.promise},e.dispatch=function(t){var e=this;this.state=function(t,e){switch(e.type){case"failed":return(0,r.Z)({},t,{failureCount:t.failureCount+1});case"pause":return(0,r.Z)({},t,{isPaused:!0});case"continue":return(0,r.Z)({},t,{isPaused:!1});case"loading":return(0,r.Z)({},t,{context:e.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:e.variables});case"success":return(0,r.Z)({},t,{data:e.data,error:null,status:"success",isPaused:!1});case"error":return(0,r.Z)({},t,{data:void 0,error:e.error,failureCount:t.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,r.Z)({},t,e.state);default:return t}}
8(this.state,t),s.V.batch(function(){e.observers.forEach(function(e){e.onMutationUpdate(t)}),e.mutationCache.notify(e)})},t}();function u(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}},101:function(t,e,n){"use strict";n.d(e,{V:function(){return i}});var r=n(52288),i=new(function(){function t(){this.queue=[],this.transactions=0,this.notifyFn=function(t){t()},this.batchNotifyFn=function(t){t()}}var e=t.prototype;return e.batch=function(t){var e;this.transactions++;try{e=t()}finally{this.transactions--,this.transactions||this.flush()}return e},e.schedule=function(t){var e=this;this.transactions?this.queue.push(t):(0,r.A4)(function(){e.notifyFn(t)})},e.batchCalls=function(t){var e=this;return function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];e.schedule(function(){t.apply(void 0,r)})}},e.flush=function(){var t=this,e=this.queue;this.queue=[],e.length&&(0,r.A4)(function(){t.batchNotifyFn(function(){e.forEach(function(e){t.notifyFn(e)})})})},e.setNotifyFunction=function(t){this.notifyFn=t},e.setBatchNotifyFunction=function(t){this.batchNotifyFn=t},t}())},40068:function(t,e,n){"use strict";n.d(e,{N:function(){return o}});var r=n(75068),i=n(52943),s=n(52288),o=new(function(t){function e(){var e;return(e=t.call(this)||this).setup=function(t){var e;if(!s.sk&&(null==(e=window)?void 0:e.addEventListener)){var n=function(){return t()};return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n)}}},e}(0,r.Z)(e,t);var n=e.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var t;null==(t=this.cleanup)||t.call(this),this.cleanup=void 0}},n.setEventListener=function(t){var e,n=this;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t(function(t){"boolean"==typeof t?n.setOnline(t):n.onOnline()})},n.setOnline=function(t){this.online=t,t&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(t){t()})},n.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},e}(i.l))},89043:function(t,e,n){"use strict";n.d(e,{S:function(){return y}});var r=n(87462),i=n(52288),s=n(75068),o=n(101),a=n(41909),c=n(21216),u=function(){function t(t){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=t.meta,this.scheduleGc()}var e=t.prototype;return e.setOptions=function(t){var e;this.options=(0,r.Z)({},this.defaultOptions,t),this.meta=null==t?void 0:t.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(e=this.options.cacheTime)?e:3e5)},e.setDefaultOptions=function(t){this.defaultOptions=t},e.scheduleGc=function(){var t=this;this.clearGcTimeout(),(0,i.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){t.optionalRemove()},this.cacheTime))},e.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},e.optionalRemove=function(){!this.observers.length&&(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},e.setData=function(t,e){var n,r,s=this.state.data,o=(0,i.SE)(t,s);return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,s,o))?o=s:!1!==this.options.structuralSharing&&(o=(0,i.Q$)(s,o)),this.dispatch({data:o,type:"success",dataUpdatedAt:null==e?void 0:e.updatedAt}),o},e.setState=function(t,e){this.dispatch({type:"setState",state:t,setStateOptions:e})},e.cancel=function(t){var e,n=this.promise;return null==(e=this.retryer)||e.cancel(t),n?n.then(i.ZT).catch(i.ZT):Promise.resolve()},e.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},e.reset=function(){this.destroy(),this.setState(this.initialState)},e.isActive=function(){return this.observers.some(function(t){return!1!==t.options.enabled})},e.isFetching=function(){return this.state.isFetching},e.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(t){return t.getCurrentResult().isStale})},e.isStaleByTime=function(t){return void 0===t&&(t=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,i.Kp)(this.state.dataUpdatedAt,t)}
8,e.onFocus=function(){var t,e=this.observers.find(function(t){return t.shouldFetchOnWindowFocus()});e&&e.refetch(),null==(t=this.retryer)||t.continue()},e.onOnline=function(){var t,e=this.observers.find(function(t){return t.shouldFetchOnReconnect()});e&&e.refetch(),null==(t=this.retryer)||t.continue()},e.addObserver=function(t){-1===this.observers.indexOf(t)&&(this.observers.push(t),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))},e.removeObserver=function(t){-1!==this.observers.indexOf(t)&&(this.observers=this.observers.filter(function(e){return e!==t}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:t}))},e.getObserversCount=function(){return this.observers.length},e.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},e.fetch=function(t,e){var n,r,s,o,u,l,d=this;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(null==e?void 0:e.cancelRefetch))this.cancel({silent:!0});else if(this.promise)return null==(n=this.retryer)||n.continueRetry(),this.promise}if(t&&this.setOptions(t),!this.options.queryFn){var h=this.observers.find(function(t){return t.options.queryFn});h&&this.setOptions(h.options)}var f=(0,i.mc)(this.queryKey),p=(0,i.G9)(),m={queryKey:f,pageParam:void 0,meta:this.meta};Object.defineProperty(m,"signal",{enumerable:!0,get:function(){if(p)return d.abortSignalConsumed=!0,p.signal}});var g={fetchOptions:e,options:this.options,queryKey:f,state:this.state,fetchFn:function(){return d.options.queryFn?(d.abortSignalConsumed=!1,d.options.queryFn(m)):Promise.reject("Missing queryFn")},meta:this.meta};return(null==(o=this.options.behavior)?void 0:o.onFetch)&&(null==(r=this.options.behavior)||r.onFetch(g)),this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(u=g.fetchOptions)?void 0:u.meta)||this.dispatch({type:"fetch",meta:null==(s=g.fetchOptions)?void 0:s.meta}),this.retryer=new c.m4({fn:g.fetchFn,abort:null==p?void 0:null==(l=p.abort)?void 0:l.bind(p),onSuccess:function(t){d.setData(t),null==d.cache.config.onSuccess||d.cache.config.onSuccess(t,d),0===d.cacheTime&&d.optionalRemove()},onError:function(t){(0,c.DV)(t)&&t.silent||d.dispatch({type:"error",error:t}),(0,c.DV)(t)||(null==d.cache.config.onError||d.cache.config.onError(t,d),(0,a.j)().error(t)),0===d.cacheTime&&d.optionalRemove()},onFail:function(){d.dispatch({type:"failed"})},onPause:function(){d.dispatch({type:"pause"})},onContinue:function(){d.dispatch({type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay}),this.promise=this.retryer.promise,this.promise},e.dispatch=function(t){var e=this;this.state=this.reducer(this.state,t),o.V.batch(function(){e.observers.forEach(function(e){e.onQueryUpdate(t)}),e.cache.notify({query:e,type:"queryUpdated",action:t})})},e.getDefaultState=function(t){var e="function"==typeof t.initialData?t.initialData():t.initialData,n=void 0!==t.initialData?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0,r=void 0!==e;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?"success":"idle"}},e.reducer=function(t,e){var n,i;switch(e.type){case"failed":return(0,r.Z)({},t,{fetchFailureCount:t.fetchFailureCount+1});case"pause":return(0,r.Z)({},t,{isPaused:!0});case"continue":return(0,r.Z)({},t,{isPaused:!1});case"fetch":return(0,r.Z)({},t,{fetchFailureCount:0,fetchMeta:null!=(n=e.meta)?n:null,isFetching:!0,isPaused:!1},!t.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,r.Z)({},t,{data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(i=e.dataUpdatedAt)?i:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var s=e.error;if((0,c.DV)(s)&&s.revert&&this.revertState)return(0,r.Z)({},this.revertState);return(0,r.Z)({}
8,t,{error:s,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,r.Z)({},t,{isInvalidated:!0});case"setState":return(0,r.Z)({},t,e.state);default:return t}},t}(),l=n(52943),d=function(t){function e(e){var n;return(n=t.call(this)||this).config=e||{},n.queries=[],n.queriesMap={},n}(0,s.Z)(e,t);var n=e.prototype;return n.build=function(t,e,n){var r,s=e.queryKey,o=null!=(r=e.queryHash)?r:(0,i.Rm)(s,e),a=this.get(o);return a||(a=new u({cache:this,queryKey:s,queryHash:o,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(s),meta:e.meta}),this.add(a)),a},n.add=function(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"queryAdded",query:t}))},n.remove=function(t){var e=this.queriesMap[t.queryHash];e&&(t.destroy(),this.queries=this.queries.filter(function(e){return e!==t}),e===t&&delete this.queriesMap[t.queryHash],this.notify({type:"queryRemoved",query:t}))},n.clear=function(){var t=this;o.V.batch(function(){t.queries.forEach(function(e){t.remove(e)})})},n.get=function(t){return this.queriesMap[t]},n.getAll=function(){return this.queries},n.find=function(t,e){var n=(0,i.I6)(t,e)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find(function(t){return(0,i._x)(n,t)})},n.findAll=function(t,e){var n=(0,i.I6)(t,e)[0];return Object.keys(n).length>0?this.queries.filter(function(t){return(0,i._x)(n,t)}):this.queries},n.notify=function(t){var e=this;o.V.batch(function(){e.listeners.forEach(function(e){e(t)})})},n.onFocus=function(){var t=this;o.V.batch(function(){t.queries.forEach(function(t){t.onFocus()})})},n.onOnline=function(){var t=this;o.V.batch(function(){t.queries.forEach(function(t){t.onOnline()})})},e}(l.l),h=n(81262),f=function(t){function e(e){var n;return(n=t.call(this)||this).config=e||{},n.mutations=[],n.mutationId=0,n}(0,s.Z)(e,t);var n=e.prototype;return n.build=function(t,e,n){var r=new h.m({mutationCache:this,mutationId:++this.mutationId,options:t.defaultMutationOptions(e),state:n,defaultOptions:e.mutationKey?t.getMutationDefaults(e.mutationKey):void 0,meta:e.meta});return this.add(r),r},n.add=function(t){this.mutations.push(t),this.notify(t)},n.remove=function(t){this.mutations=this.mutations.filter(function(e){return e!==t}),t.cancel(),this.notify(t)},n.clear=function(){var t=this;o.V.batch(function(){t.mutations.forEach(function(e){t.remove(e)})})},n.getAll=function(){return this.mutations},n.find=function(t){return void 0===t.exact&&(t.exact=!0),this.mutations.find(function(e){return(0,i.X7)(t,e)})},n.findAll=function(t){return this.mutations.filter(function(e){return(0,i.X7)(t,e)})},n.notify=function(t){var e=this;o.V.batch(function(){e.listeners.forEach(function(e){e(t)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var t=this.mutations.filter(function(t){return t.state.isPau
8sed});return o.V.batch(function(){return t.reduce(function(t,e){return t.then(function(){return e.continue().catch(i.ZT)})},Promise.resolve())})},e}(l.l),p=n(59852),m=n(40068);function g(t,e){return null==t.getNextPageParam?void 0:t.getNextPageParam(e[e.length-1],e)}var y=function(){function t(t){void 0===t&&(t={}),this.queryCache=t.queryCache||new d,this.mutationCache=t.mutationCache||new f,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var e=t.prototype;return e.mount=function(){var t=this;this.unsubscribeFocus=p.j.subscribe(function(){p.j.isFocused()&&m.N.isOnline()&&(t.mutationCache.onFocus(),t.queryCache.onFocus())}),this.unsubscribeOnline=m.N.subscribe(function(){p.j.isFocused()&&m.N.isOnline()&&(t.mutationCache.onOnline(),t.queryCache.onOnline())})},e.unmount=function(){var t,e;null==(t=this.unsubscribeFocus)||t.call(this),null==(e=this.unsubscribeOnline)||e.call(this)},e.isFetching=function(t,e){var n=(0,i.I6)(t,e)[0];return n.fetching=!0,this.queryCache.findAll(n).length},e.isMutating=function(t){return this.mutationCache.findAll((0,r.Z)({},t,{fetching:!0})).length},e.getQueryData=function(t,e){var n;return null==(n=this.queryCache.find(t,e))?void 0:n.state.data},e.getQueriesData=function(t){return this.getQueryCache().findAll(t).map(function(t){return[t.queryKey,t.state.data]})},e.setQueryData=function(t,e,n){var r=(0,i._v)(t),s=this.defaultQueryOptions(r);return this.queryCache.build(this,s).setData(e,n)},e.setQueriesData=function(t,e,n){var r=this;return o.V.batch(function(){return r.getQueryCache().findAll(t).map(function(t){var i=t.queryKey;return[i,r.setQueryData(i,e,n)]})})},e.getQueryState=function(t,e){var n;return null==(n=this.queryCache.find(t,e))?void 0:n.state},e.removeQueries=function(t,e){var n=(0,i.I6)(t,e)[0],r=this.queryCache;o.V.batch(function(){r.findAll(n).forEach(function(t){r.remove(t)})})},e.resetQueries=function(t,e,n){var s=this,a=(0,i.I6)(t,e,n),c=a[0],u=a[1],l=this.queryCache,d=(0,r.Z)({},c,{active:!0});return o.V.batch(function(){return l.findAll(c).forEach(function(t){t.reset()}),s.refetchQueries(d,u)})},e.cancelQueries=function(t,e,n){var r=this,s=(0,i.I6)(t,e,n),a=s[0],c=s[1],u=void 0===c?{}:c;return void 0===u.revert&&(u.revert=!0),Promise.all(o.V.batch(function(){return r.queryCache.findAll(a).map(function(t){return t.cancel(u)})})).then(i.ZT).catch(i.ZT)},e.invalidateQueries=function(t,e,n){var s,a,c,u=this,l=(0,i.I6)(t,e,n),d=l[0],h=l[1],f=(0,r.Z)({},d,{active:null==(s=null!=(a=d.refetchActive)?a:d.active)||s,inactive:null!=(c=d.refetchInactive)&&c});return o.V.batch(function(){return u.queryCache.findAll(d).forEach(function(t){t.invalidate()}),u.refetchQueries(f,h)})},e.refetchQueries=function(t,e,n){var s=this,a=(0,i.I6)(t,e,n),c=a[0],u=a[1],l=Promise.all(o.V.batch(function(){return s.queryCache.findAll(c).map(function(t){return t.fetch(void 0,(0,r.Z)({},u,{meta:{refetchPage:null==c?void 0:c.refetchPage}}))})})).then(i.ZT);return(null==u?void 0:u.throwOnError)||(l=l.catch(i.ZT)),l},e.fetchQuery=function(t,e,n){var r=(0,i._v)(t,e,n),s=this.defaultQueryOptions(r);void 0===s.retry&&(s.retry=!1);var o=this.queryCache.build(this,s);return o.isStaleByTime(s.staleTime)?o.fetch(s):Promise.resolve(o.state.data)},e.prefetchQuery=function(t,e,n){return this.fetchQuery(t,e,n).then(i.ZT).catch(i.ZT)},e.fetchInfiniteQuery=function(t,e,n){var r=(0,i._v)(t,e,n);return r.behavior={onFetch:function(t){t.fetchFn=function(){var e,n,r,s,o,a,u,l=null==(e=t.fetchOptions)?void 0:null==(n=e.meta)?void 0:n.refetchPage,d=null==(r=t.fetchOptions)?void 0:null==(s=r.meta)?void 0:s.fetchMore,h=null==d?void 0:d.pageParam,f=(null==d?void 0:d.direction)==="forward",p=(null==d?void 0:d.direction)==="backward",m=(null==(o=t.state.data)?void 0:o.pages)||[],y=(null==(a=t.state.data)?void 0:a.pageParams)||[],v=(0,i.G9)(),_=null==v?void 0:v.signal,b=y,S=!1,E=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},k=function(t,e,n,r){return b=r?[e].concat(b):[].concat(b,[e]),r?[n].concat(t):[].concat(t,[n])},w=function(e,n,r,i){if(S)return Promise.reject("Cancelled");if(void 0===r&&!n&&e.length)return Promise.resolve(e);var s=E({queryKey:t.queryKey,signal:_,pageParam:r,meta:t.meta}),o=Promise.resolve(s).then(function(t){return k(e,r,t,i)});return(0,c.LE)(s)&&(o.cancel=s.cancel),o};if(m.length){if(f){var x=void 0!==h,T=x?h:g(t.options,m);u=w(m,x,T)}else if(p){var C,O=void 0!==h,I=O?h:null==(C=t.options).getPreviousPageParam?void 0:C.getPreviousPageParam(m[0],m);u=w(m,O,I,!0)}else!function(){b=[];var e=void 0===t.options.getNextPageParam;u=!l||!m[0]||l(m[0],0,m)?w([],e,y[0]):Promise.resolve(k([],y[0],m[0]));for(var n=function(n){u=u.then(function(r){if(!l||!m[n]||l(m[n],n,m)){var i=e?y[n]:g(t.options,r);return w(r,e,i)}return Promise.resolve(k(r,y[n],m[n]))})},r=1;r<m.length;r++)n(r)}()}else u=w([]);var R=u.then(function(t){return{pages:t,pageParams:b}});return R.cancel=function(){S=!0,null==v||v.abort(),(0,c.LE)(u)&&u.cancel()},R}}},this.fetchQuery(r)},e.prefetchInfiniteQuery=function(t,e,n){return this.fetchInfiniteQuery(t,e,n).then(i.ZT).catch(i.ZT)},e.cancelMutations=function(){var t=this;return Promise.all(o.V.batch(function(){return t.mutationCache.getAll().map(function(t){return t.cancel()})})).then(i.ZT).catch(i.ZT)},e.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},e.executeMutation=function(t){return this.mutationCache.build(this,t).execute()},e.getQueryCache=function(){return this.queryCache},e.getMutationCache=function(){return this.mutationCache},e.getDefaultOptions=function(){return this.defaultOptions},e.setDefaultOptions=function(t){this.defaultOptions=t},e.setQueryDefaults=function(t,e){var n=this.queryDefaults.find(function(e){return(0,i.yF)(t)===(0,i.yF)(e.queryKey)});n?n.defaultOptions=e:this.queryDefaults.push({queryKey:t,defaultOptions:e})},e.getQueryDefaults=function(t){var e;return t?null==(e=this.queryDefaults.find(function(e){return(0,i.to)(t,e.queryKey)}))?void 0:e.defaultOptions:void 0},e.setMutationDefaults=function(t,e){var n=this.mutationDefaults.find(function(e){return(0,i.yF)(t)===(0,i.yF)(e.mutationKey)});n?n.defaultOptions=e:this.mutationDefaults.push({mutationKey:t,defaultOptions:e})},e.getMutationDefaults=function(t){var e;return t?null==(e=this.mutationDefaults.find(function(e){return(0,i.to)(t,e.mutationKey)}))?void 0:e.defaultOptions:void 0},e.defaultQueryOptions=function(t){if(null==t?void 0:t._defaulted)return t;var e=(0,r.Z)({},this.defaultOptions.queries,this.getQueryDefaults(null==t?void 0:t.queryKey),t,{_defaulted:!0});return!e.queryHash&&e.queryKey&&(e.queryHash=(0,i.Rm)(e.queryKey,e)),e},e.defaultQueryObserverOptions=function(t){return this.defaultQueryOptions(t)},e.defaultMutationOptions=function(t){return(null==t?void 0:t._defaulted)?t:(0,r.Z)({},this.defaultOptions.mutations,this.getMutationDefaults(null==t?void 0:t.mutationKey),t,{_defaulted:!0})},e.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},t}()},21216:function(t,e,n){"use strict";n.d(e,{DV:function(){return u},LE:function(){return a},m4:function(){return l}});var r=n(59852),i=n(40068),s=n(52288);function o(t){return Math.min(1e3*Math.pow(2,t),3e4)}function a(t){return"function"==typeof(null==t?void 0:t.cancel)}var c=function(t){this.revert=null==t?void 0:t.revert,this.silent=null==t?void 0:t.silent};function u(t){return t instanceof c}var l=function(t){var e,n,u,l,d=this,h=!1;this.abort=t.abort,this.cancel=function(t){return null==e?void 0:e(t)},this.cancelRetry=function(){h=!0},this.continueRetry=function(){h=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(t,e){u=t,l=e});var f=function(e){d.isResolved||(d.isResolved=!0,null==t.onSuccess||t.onSuccess(e),null==n||n(),u(e))},p=function(e){d.isResolved||(d.isResolved=!0,null==t.onError||t.onError(e),null==n||n(),l(e))};!function u(){var l;if(!d.isResolved){try{l=t.fn()}catch(t){l=Promise.reject(t)}e=function(t){if(!d.isResolved&&(p(new c(t)),null==d.abort||d.abort(),a(l)))try{l.cancel()}catch(t){}},d.isTransportCancelable=a(l),Promise.resolve(l).then(f).catch(function(e){if(!d.isResolved){var a,c,l=null!=(a=t.retry)?a:3,f=null!=(c=t.retryDelay)?c:o,m="function"==typeof f?f(d.failureCount,e):f,g=!0===l||"number"==typeof l&&d.failureCount<l||"function"==typeof l&&l(d.failureCount,e);if(h||!g){p(e);return}d.failureCount++,null==t.onFail||t.onFail(d.failureCount,e),(0,s.Gh)(m).then(function(){if(!r.j.isFocused()||!i.N.isOnline())return new Promise(function(e){n=e,d.isPaused=!0,null==t.onPause||t.onPause()}).then(function(){n=void 0,d.isPaused=!1,null==t.onContinue||t.onContinue()})}).then(function(){h?p(e):u()})}})}}()}},52943:function(t,e,n){"use strict";n.d(e,{l:function(){return r}});var r=function(){function t(){this.listeners=[]}var e=t.prototype;return e.subscribe=function(t){var e=this,n=t||function(){};return this.listeners.push(n),this.onSubscribe(),function(){e.listeners=e.listeners.filter(function(t){return t!==n}),e.onUnsubscribe()}},e.hasListeners=function(){return this.listeners.length>0},e.onSubscribe=function(){},e.onUnsubscribe=function(){},t}()},86755:function(){},52288:function(t,e,n){"use strict";n.d(e,{A4:function(){return x},G9:function(){return T},Gh:function(){return w},I6:function(){return p},Kp:function(){return d},PN:function(){return a},Q$:function(){return function t(e,n){if(e===n)return e;var r=Array.isArray(e)&&Array.isArray(n);if(r||S(e)&&S(n)){for(var i=r?e.length:Object.keys(e).length,s=r?n:Object.keys(n),o=s.length,a=r?[]:{},c=0,u=0;u<o;u++){var l=r?u:s[u];a[l]=t(e[l],n[l]),a[l]===e[l]&&c++}return i===o&&c===i?e:a}return n}},Rc:function(){return l},Rm:function(){return y},SE:function(){return o},VS:function(){return b},X7:function(){return g},ZT:function(){return s},_v:function(){return h},_x:function(){return m},e5:function(){return u},lV:function(){return f},mc:function(){return c},sk:function(){return i},to:function(){return _},yF:function(){return v}});var r=n(87462),i="undefined"==typeof window;function s(){}function o(t,e){return"function"==typeof t?t(e):t}function a(t){return"number"==typeof t&&t>=0&&t!==1/0}function c(t){return Array.isArray(t)?t:[t]}function u(t,e){return t.filter(function(t){return -1===e.indexOf(t)})}function l(t,e,n){var r=t.slice(0);return r[e]=n,r}function d(t,e){return Math.max(t+(e||0)-Date.now(),0)}function h(t,e,n){return k(t)?"function"==typeof e?(0,r.Z)({},n,{queryKey:t,queryFn:e}):(0,r.Z)({},e,{queryKey:t}):t}function f(t,e,n){return k(t)?"function"==typeof e?(0,r.Z)({},n,{mutationKey:t,mutationFn:e}):(0,r.Z)({},e,{mutationKey:t}):"function"==typeof t?(0,r.Z)({},e,{mutationFn:t}):(0,r.Z)({},t)}function p(t,e,n){return k(t)?[(0,r.Z)({},e,{queryKey:t}),n]:[t||{},e]}
8function m(t,e){var n=t.active,r=t.exact,i=t.fetching,s=t.inactive,o=t.predicate,a=t.queryKey,c=t.stale;if(k(a)){if(r){if(e.queryHash!==y(a,e.options))return!1}else if(!_(e.queryKey,a))return!1}var u=!0===n&&!0===s||null==n&&null==s?"all":!1===n&&!1===s?"none":(null!=n?n:!s)?"active":"inactive";if("none"===u)return!1;if("all"!==u){var l=e.isActive();if("active"===u&&!l||"inactive"===u&&l)return!1}return("boolean"!=typeof c||e.isStale()===c)&&("boolean"!=typeof i||e.isFetching()===i)&&(!o||!!o(e))}function g(t,e){var n=t.exact,r=t.fetching,i=t.predicate,s=t.mutationKey;if(k(s)){if(!e.options.mutationKey)return!1;if(n){if(v(e.options.mutationKey)!==v(s))return!1}else if(!_(e.options.mutationKey,s))return!1}return("boolean"!=typeof r||"loading"===e.state.status===r)&&(!i||!!i(e))}function y(t,e){return((null==e?void 0:e.queryKeyHashFn)||v)(t)}function v(t){return JSON.stringify(c(t),function(t,e){return S(e)?Object.keys(e).sort().reduce(function(t,n){return t[n]=e[n],t},{}):e})}function _(t,e){return function t(e,n){return e===n||typeof e==typeof n&&!!e&&!!n&&"object"==typeof e&&"object"==typeof n&&!Object.keys(n).some(function(r){return!t(e[r],n[r])})}(c(t),c(e))}function b(t,e){if(t&&!e||e&&!t)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}function S(t){if(!E(t))return!1;var e=t.constructor;if(void 0===e)return!0;var n=e.prototype;return!!(E(n)&&n.hasOwnProperty("isPrototypeOf"))}function E(t){return"[object Object]"===Object.prototype.toString.call(t)}function k(t){return"string"==typeof t||Array.isArray(t)}function w(t){return new Promise(function(e){setTimeout(e,t)})}function x(t){Promise.resolve().then(t).catch(function(t){return setTimeout(function(){throw t})})}function T(){if("function"==typeof AbortController)return new AbortController}},88767:function(t,e,n){"use strict";n.d(e,{QueryClient:function(){return r.QueryClient},QueryClientProvider:function(){return i.QueryClientProvider},useMutation:function(){return i.useMutation},useQueries:function(){return i.useQueries},useQuery:function(){return i.useQuery},useQueryClient:function(){return i.useQueryClient},useQueryErrorResetBoundary:function(){return i.useQueryErrorResetBoundary}});var r=n(46747);n.o(r,"QueryClientProvider")&&n.d(e,{QueryClientProvider:function(){return r.QueryClientProvider}}),n.o(r,"useMutation")&&n.d(e,{useMutation:function(){return r.useMutation}}),n.o(r,"useQueries")&&n.d(e,{useQueries:function(){return r.useQueries}}),n.o(r,"useQuery")&&n.d(e,{useQuery:function(){return r.useQuery}}),n.o(r,"useQueryClient")&&n.d(e,{useQueryClient:function(){return r.useQueryClient}}),n.o(r,"useQueryErrorResetBoundary")&&n.d(e,{useQueryErrorResetBoundary:function(){return r.useQueryErrorResetBoundary}});var i=n(35552)},35552:function(t,e,n){"use strict";n.d(e,{QueryClientProvider:function(){return f},useMutation:function(){return k},useQueries:function(){return D},useQuery:function(){return M},useQueryClient:function(){return h},useQueryErrorResetBoundary:function(){return m}});var r,i=n(101),s=n(73935).unstable_batchedUpdates;i.V.setBatchNotifyFunction(s);var o=n(41909),a=console;(0,o.E)(a);var c=n(67294),u=c.createContext(void 0),l=c.createContext(!1);function d(t){return t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=u),window.ReactQueryClientContext):u}var h=function(){var t=c.useContext(d(c.useContext(l)));if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},f=function(t){var e=t.client,n=t.contextSharing,r=void 0!==n&&n,i=t.children;c.useEffect(function(){return e.mount(),function(){e.unmount()}},[e]);var s=d(r);return c.createElement(l.Provider,{value:r},c.createElement(s.Provider,{value:e},i))},p=c.createContext((r=!1,{clearReset:function(){r=!1},reset:function(){r=!0},isReset:function(){return r}})),m=function(){return c.useContext(p)},g=n(87462),y=n(52288),v=n(75068),_=n(81262),b=n(52943),S=function(t){function e(e,n){var r;return(r=t.call(this)||this).client=e,r.setOptions(n),r.bindMethods(),r.updateResult(),r}(0,v.Z)(e,t);var n=e.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(t){this.options=this.client.defaultMutationOptions(t)},n.onUnsubscribe=function(){if(!this.listeners.length){var t;null==(t=this.currentMutation)||t.removeObserver(this)}},n.onMutationUpdate=function(t){this.updateResult();var e={listeners:!0};"success"===t.type?e.onSuccess=!0:"error"===t.type&&(e.onError=!0),this.notify(e)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(t,e){return this.mutateOptions=e,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,(0,g.Z)({},this.options,{variables:void 0!==t?t:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var t=this.currentMutation?this.currentMutation.state:(0,_.R)(),e=(0,g.Z)({},t,{isLoading:"loading"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset});this.currentResult=e},n.notify=function(t){var e=this;i.V.batch(function(){e.mutateOptions&&(t.onSuccess?(null==e.mutateOptions.onSuccess||e.mutateOptions.onSuccess(e.currentResult.data,e.currentResult.variables,e.currentResult.context),null==e.mutateOptions.onSettled||e.mutateOptions.onSettled(e.currentResult.data,null,e.currentResult.variables,e.currentResult.context)):t.onError&&(null==e.mutateOptions.onError||e.mutateOptions.onError(e.currentResult.error,e.currentResult.variables,e.currentResult.context),null==e.mutateOptions.onSettled||e.mutateOptions.onSettled(void 0,e.currentResult.error,e.currentResult.variables,e.currentResult.context))),t.listeners&&e.listeners.forEac
8h(function(t){t(e.currentResult)})})},e}(b.l);function E(t,e,n){return"function"==typeof e?e.apply(void 0,n):"boolean"==typeof e?e:!!t}function k(t,e,n){var r=c.useRef(!1),s=c.useState(0)[1],o=(0,y.lV)(t,e,n),a=h(),u=c.useRef();u.current?u.current.setOptions(o):u.current=new S(a,o);var l=u.current.getCurrentResult();c.useEffect(function(){r.current=!0;var t=u.current.subscribe(i.V.batchCalls(function(){r.current&&s(function(t){return t+1})}));return function(){r.current=!1,t()}},[]);var d=c.useCallback(function(t,e){u.current.mutate(t,e).catch(y.ZT)},[]);if(l.error&&E(void 0,u.current.options.useErrorBoundary,[l.error]))throw l.error;return(0,g.Z)({},l,{mutate:d,mutateAsync:l.mutate})}var w=n(59852),x=n(21216),T=function(t){function e(e,n){var r;return(r=t.call(this)||this).client=e,r.options=n,r.trackedProps=[],r.selectError=null,r.bindMethods(),r.setOptions(n),r}(0,v.Z)(e,t);var n=e.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),C(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return O(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return O(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(t,e){var n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var i=this.hasListeners();i&&I(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(e),i&&(this.currentQuery!==r||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();var s=this.computeRefetchInterval();i&&(this.currentQuery!==r||this.options.enabled!==n.enabled||s!==this.currentRefetchInterval)&&this.updateRefetchInterval(s)},n.getOptimisticResult=function(t){var e=this.client.defaultQueryObserverOptions(t),n=this.client.getQueryCache().build(this.client,e);return this.createResult(n,e)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(t,e){var n=this,r={},i=function(t){n.trackedProps.includes(t)||n.trackedProps.push(t)};return Object.keys(t).forEach(function(e){Object.defineProperty(r,e,{configurable:!1,enumerable:!0,get:function(){return i(e),t[e]}})}),(e.useErrorBoundary||e.suspense)&&i("error"),r},n.getNextResult=function(t){var e=this;return new Promise(function(n,r){var i=e.subscribe(function(e){e.isFetching||(i(),e.isError&&(null==t?void 0:t.throwOnError)?r(e.error):n(e))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(t){return this.fetch((0,g.Z)({},t,{meta:{refetchPage:null==t?void 0:t.refetchPage}}))},n.fetchOptimistic=function(t){var e=this,n=this.client.defaultQueryObserverOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then(function(){return e.createResult(r,n)})},n.fetch=function(t){var e=this;return this.executeFetch(t).then(function(){return e.updateResult(),e.currentResult})},n.executeFetch=function(t){this.updateQuery();var e=this.currentQuery.fetch(this.options,t);return(null==t?void 0:t.throwOnError)||(e=e.catch(y.ZT)),e},n.updateStaleTimeout=function(){var t=this;if(this.clearStaleTimeout(),!y.sk&&!this.currentResult.isStale&&(0,y.PN)(this.options.staleTime)){var e=(0,y.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(function(){t.currentResult.isStale||t.updateResult()},e+1)}},n.computeRefetchInterval=function(){var t;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(t=this.options.refetchInterval)&&t},n.updateRefetchInterval=function(t){var e=this;this.clearRefetchInterval(),this.currentRefetchInterval=t,!y.sk&&!1!==this.options.enabled&&(0,y.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(function(){(e.options.refetchIntervalInBackgroun
8d||w.j.isFocused())&&e.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(t,e){var n,r,i=this.currentQuery,s=this.options,a=this.currentResult,c=this.currentResultState,u=this.currentResultOptions,l=t!==i,d=l?t.state:this.currentQueryInitialState,h=l?this.currentResult:this.previousQueryResult,f=t.state,p=f.dataUpdatedAt,m=f.error,g=f.errorUpdatedAt,v=f.isFetching,_=f.status,b=!1,S=!1;if(e.optimisticResults){var E=this.hasListeners(),k=!E&&C(t,e),w=E&&I(t,i,e,s);(k||w)&&(v=!0,p||(_="loading"))}if(e.keepPreviousData&&!f.dataUpdateCount&&(null==h?void 0:h.isSuccess)&&"error"!==_)n=h.data,p=h.dataUpdatedAt,_=h.status,b=!0;else if(e.select&&void 0!==f.data){if(a&&f.data===(null==c?void 0:c.data)&&e.select===this.selectFn)n=this.selectResult;else try{this.selectFn=e.select,n=e.select(f.data),!1!==e.structuralSharing&&(n=(0,y.Q$)(null==a?void 0:a.data,n)),this.selectResult=n,this.selectError=null}catch(t){(0,o.j)().error(t),this.selectError=t}}else n=f.data;if(void 0!==e.placeholderData&&void 0===n&&("loading"===_||"idle"===_)){if((null==a?void 0:a.isPlaceholderData)&&e.placeholderData===(null==u?void 0:u.placeholderData))r=a.data;else if(r="function"==typeof e.placeholderData?e.placeholderData():e.placeholderData,e.select&&void 0!==r)try{r=e.select(r),!1!==e.structuralSharing&&(r=(0,y.Q$)(null==a?void 0:a.data,r)),this.selectError=null}catch(t){(0,o.j)().error(t),this.selectError=t}void 0!==r&&(_="success",n=r,S=!0)}return this.selectError&&(m=this.selectError,n=this.selectResult,g=Date.now(),_="error"),{status:_,isLoading:"loading"===_,isSuccess:"success"===_,isError:"error"===_,isIdle:"idle"===_,data:n,dataUpdatedAt:p,error:m,errorUpdatedAt:g,failureCount:f.fetchFailureCount,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>d.dataUpdateCount||f.errorUpdateCount>d.errorUpdateCount,isFetching:v,isRefetching:v&&"loading"!==_,isLoadingError:"error"===_&&0===f.dataUpdatedAt,isPlaceholderData:S,isPreviousData:b,isRefetchError:"error"===_&&0!==f.dataUpdatedAt,isStale:R(t,e),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(t,e){if(!e)return!0;var n=this.options,r=n.notifyOnChangeProps,i=n.notifyOnChangePropsExclusions;if(!r&&!i||"tracked"===r&&!this.trackedProps.length)return!0;var s="tracked"===r?this.trackedProps:r;return Object.keys(t).some(function(n){var r=t[n]!==e[n],o=null==s?void 0:s.some(function(t){return t===n}),a=null==i?void 0:i.some(function(t){return t===n});return r&&!a&&(!s||o)})},n.updateResult=function(t){var e=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,y.VS)(this.currentResult,e)){var n={cache:!0};(null==t?void 0:t.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,e)&&(n.listeners=!0),this.notify((0,g.Z)({},n,t))}},n.updateQuery=function(){var t=this.client.getQueryCache().build(this.client,this.options);if(t!==this.currentQuery){var e=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==e||e.removeObserver(this),t.addObserver(this))}},n.onQueryUpdate=function(t){var e={};"success"===t.type?e.onSuccess=!0:"error"!==t.type||(0,x.DV)(t.error)||(e.onError=!0),this.updateResult(e),this.hasListeners()&&this.updateTimers()},n.notify=function(t){var e=this;i.V.batch(function(){t.onSuccess?(null==e.options.onSuccess||e.options.onSuccess(e.currentResult.data),null==e.options.onSettled||e.options.onSettled(e.currentResult.data,null)):t.onError&&(null==e.options.onError||e.options.onError(e.currentResult.error),null==e.options.onSettled||e.options.onSettled(void 0,e.currentResult.error)),t.listeners&&e.listeners.forEac
8h(function(t){t(e.currentResult)}),t.cache&&e.client.getQueryCache().notify({query:e.currentQuery,type:"observerResultsUpdated"})})},e}(b.l);function C(t,e){return!1!==e.enabled&&!t.state.dataUpdatedAt&&!("error"===t.state.status&&!1===e.retryOnMount)||t.state.dataUpdatedAt>0&&O(t,e,e.refetchOnMount)}function O(t,e,n){if(!1!==e.enabled){var r="function"==typeof n?n(t):n;return"always"===r||!1!==r&&R(t,e)}return!1}function I(t,e,n,r){return!1!==n.enabled&&(t!==e||!1===r.enabled)&&(!n.suspense||"error"!==t.state.status)&&R(t,n)}function R(t,e){return t.isStaleByTime(e.staleTime)}function M(t,e,n){return function(t,e){var n=c.useRef(!1),r=c.useState(0)[1],s=h(),o=m(),a=s.defaultQueryObserverOptions(t);a.optimisticResults=!0,a.onError&&(a.onError=i.V.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=i.V.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=i.V.batchCalls(a.onSettled)),a.suspense&&("number"!=typeof a.staleTime&&(a.staleTime=1e3),0===a.cacheTime&&(a.cacheTime=1)),(a.suspense||a.useErrorBoundary)&&!o.isReset()&&(a.retryOnMount=!1);var u=c.useState(function(){return new e(s,a)})[0],l=u.getOptimisticResult(a);if(c.useEffect(function(){n.current=!0,o.clearReset();var t=u.subscribe(i.V.batchCalls(function(){n.current&&r(function(t){return t+1})}));return u.updateResult(),function(){n.current=!1,t()}},[o,u]),c.useEffect(function(){u.setOptions(a,{listeners:!1})},[a,u]),a.suspense&&l.isLoading)throw u.fetchOptimistic(a).then(function(t){var e=t.data;null==a.onSuccess||a.onSuccess(e),null==a.onSettled||a.onSettled(e,null)}
8).catch(function(t){o.clearReset(),null==a.onError||a.onError(t),null==a.onSettled||a.onSettled(void 0,t)});if(l.isError&&!o.isReset()&&!l.isFetching&&E(a.suspense,a.useErrorBoundary,[l.error,u.getCurrentQuery()]))throw l.error;return"tracked"===a.notifyOnChangeProps&&(l=u.trackResult(l,a)),l}((0,y._v)(t,e,n),T)}var A=function(t){function e(e,n){var r;return(r=t.call(this)||this).client=e,r.queries=[],r.result=[],r.observers=[],r.observersMap={},n&&r.setQueries(n),r}(0,v.Z)(e,t);var n=e.prototype;return n.onSubscribe=function(){var t=this;1===this.listeners.length&&this.observers.forEach(function(e){e.subscribe(function(n){t.onUpdate(e,n)})})},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.destroy=function(){this.listeners=[],this.observers.forEach(function(t){t.destroy()})},n.setQueries=function(t,e){this.queries=t,this.updateObservers(e)},n.getCurrentResult=function(){return this.result},n.getOptimisticResult=function(t){return this.findMatchingObservers(t).map(function(t){return t.observer.getOptimisticResult(t.defaultedQueryOptions)})},n.findMatchingObservers=function(t){var e=this,n=this.observers,r=t.map(function(t){return e.client.defaultQueryObserverOptions(t)}),i=r.flatMap(function(t){var e=n.find(function(e){return e.options.queryHash===t.queryHash});return null!=e?[{defaultedQueryOptions:t,observer:e}]:[]}),s=i.map(function(t){return t.defaultedQueryOptions.queryHash}),o=r.filter(function(t){return!s.includes(t.queryHash)}),a=n.filter(function(t){return!i.some(function(e){return e.observer===t})}),c=o.map(function(t,n){if(t.keepPreviousData){var r=a[n];if(void 0!==r)return{defaultedQueryOptions:t,observer:r}}return{defaultedQueryOptions:t,observer:e.getObserver(t)}});return i.concat(c).sort(function(t,e){return r.indexOf(t.defaultedQueryOptions)-r.indexOf(e.defaultedQueryOptions)})},n.getObserver=function(t){var e=this.client.defaultQueryObserverOptions(t),n=this.observersMap[e.queryHash];return null!=n?n:new T(this.client,e)},n.updateObservers=function(t){var e=this;i.V.batch(function(){var n=e.observers,r=e.findMatchingObservers(e.queries);r.forEach(function(e){return e.observer.setOptions(e.defaultedQueryOptions,t)});var i=r.map(function(t){return t.observer}),s=Object.fromEntries(i.map(function(t){return[t.options.queryHash,t]})),o=i.map(function(t){return t.getCurrentResult()}),a=i.some(function(t,e){return t!==n[e]});(n.length!==i.length||a)&&(e.observers=i,e.observersMap=s,e.result=
8o,e.hasListeners()&&((0,y.e5)(n,i).forEach(function(t){t.destroy()}),(0,y.e5)(i,n).forEach(function(t){t.subscribe(function(n){e.onUpdate(t,n)})}),e.notify()))})},n.onUpdate=function(t,e){var n=this.observers.indexOf(t);-1!==n&&(this.result=(0,y.Rc)(this.result,n,e),this.notify())},n.notify=function(){var t=this;i.V.batch(function(){t.listeners.forEach(function(e){e(t.result)})})},e}(b.l);function D(t){var e=c.useRef(!1),n=c.useState(0)[1],r=h(),s=(0,c.useMemo)(function(){return t.map(function(t){var e=r.defaultQueryObserverOptions(t);return e.optimisticResults=!0,e})},[t,r]),o=c.useState(function(){return new A(r,s)})[0],a=o.getOptimisticResult(s);return c.useEffect(function(){e.current=!0;var t=o.subscribe(i.V.batchCalls(function(){e.current&&n(function(t){return t+1})}));return function(){e.current=!1,t()}},[o]),c.useEffect(function(){o.setQueries(s,{listeners:!1})},[s,o]),a}},87462:function(t,e,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(null,arguments)}n.d(e,{Z:function(){return r}})},75068:function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,r(t,e)}n.d(e,{Z:function(){return i}})}},function(t){var e=function(e){return t(t.s=e)};t.O(0,[9774,179],function(){return e(92386),e(6840),e(96885)}),_N_E=t.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.