PageSourceSearch

https://premast.com/_next/static/chunks/pages/_app-0c37c774d2de56dd.js

js premast.com collected 2026-09-24 11:10:31 UTC 794,263 bytes, 67 lines download raw bytes

1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a=(new t.Error).stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="b15066d0-79a6-422d-ad77-fe360ea87035",t._sentryDebugIdIdentifier="sentry-dbid-b15066d0-79a6-422d-ad77-fe360ea87035")}catch(t){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{84898:function(t,a,l){"use strict";l.r(a),l.d(a,{blue:function(){return x},blueDark:function(){return eh},cyan:function(){return E},cyanDark:function(){return ef},geekblue:function(){return B},geekblueDark:function(){return eg},generate:function(){return generate},gold:function(){return _},goldDark:function(){return ec},gray:function(){return er},green:function(){return k},greenDark:function(){return ep},grey:function(){return J},greyDark:function(){return ey},lime:function(){return w},limeDark:function(){return ed},magenta:function(){return U},magentaDark:function(){return ev},orange:function(){return g},orangeDark:function(){return el},presetDarkPalettes:function(){return e_},presetPalettes:function(){return en},presetPrimaryColors:function(){return p},purple:function(){return H},purpleDark:function(){return em},red:function(){return f},redDark:function(){return ei},volcano:function(){return h},volcanoDark:function(){return ea},yellow:function(){return S},yellowDark:function(){return eu}});var c=l(15063),d=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function getHue(t,a,l){var c;return(c=Math.round(t.h)>=60&&240>=Math.round(t.h)?l?Math.round(t.h)-2*a:Math.round(t.h)+2*a:l?Math.round(t.h)+2*a:Math.round(t.h)-2*a)<0?c+=360:c>=360&&(c-=360),c}function getSaturation(t,a,l){var c;return 0===t.h&&0===t.s?t.s:((c=l?t.s-.16*a:4===a?t.s+.16:t.s+.05*a)>1&&(c=1),l&&5===a&&c>.1&&(c=.1),c<.06&&(c=.06),Math.round(100*c)/100)}function getValue(t,a,l){return Math.round(100*Math.max(0,Math.min(1,l?t.v+.05*a:t.v-.15*a)))/100}function generate(t){for(var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=[],p=new c.FastColor(t),f=p.toHsv(),h=5;h>0;h-=1){var g=new c.FastColor({h:getHue(f,h,!0),s:getSaturation(f,h,!0),v:getValue(f,h,!0)});l.push(g)}l.push(p);for(var _=1;_<=4;_+=1){var S=new c.FastColor({h:getHue(f,_),s:getSaturation(f,_),v:getValue(f,_)});l.push(S)}return"dark"===a.theme?d.map(function(t){var d=t.index,p=t.amount;return new c.FastColor(a.backgroundColor||"#141414").mix(l[d],p).toHexString()}):l.map(function(t){return t.toHexString()})}var p={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},f=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];f.primary=f[5];var h=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];h.primary=h[5];var g=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];g.primary=g[5];var _=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];_.primary=_[5];var S=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];S.primary=S[5];var w=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];w.primary=w[5];var k=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];k.primary=k[5];var E=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];E.primary=E[5];var x=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];x.primary=x[5];var B=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];B.primary=B[5];var H=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];H.primary=H[5];var U=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];U.primary=U[5];var J=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];J.primary=J[5];var er=J,en={red:f,volcano:h,orange:g,gold:_,yellow:S,lime:w,green:k,cyan:E,blue:x,geekblue:B,purple:H,magenta:U,grey:J},ei=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];ei.primary=ei[5];var ea=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];ea.primary=ea[5];var el=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];el.primary=el[5];var ec=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];ec.primary=ec[5];var eu=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];eu.primary=eu[5];var ed=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];ed.primary=ed[5];var ep=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];ep.primary=ep[5];var ef=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];ef.primary=ef[5];var eh=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3
1c89e8","#65a9f3","#8dc5f8","#b7dcfa"];eh.primary=eh[5];var eg=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];eg.primary=eg[5];var em=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];em.primary=em[5];var ev=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];ev.primary=ev[5];var ey=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];ey.primary=ey[5];var e_={red:ei,volcano:ea,orange:el,gold:ec,yellow:eu,lime:ed,green:ep,cyan:ef,blue:eh,geekblue:eg,purple:em,magenta:ev,grey:ey}},83262:function(t,a,l){"use strict";l.r(a),l.d(a,{genCalc:function(){return util_calc},genStyleUtils:function(){return util_genStyleUtils},mergeToken:function(){return merge},statistic:function(){return ei},statisticToken:function(){return util_statistic}});var c=l(71002),d=l(97685),p=l(4942),f=l(1413),h=l(67294),g=l(861),_=l(15671),S=l(43144),w=l(97326),k=l(60136),E=l(29388),x=(0,S.Z)(function AbstractCalculator(){(0,_.Z)(this,AbstractCalculator)}),B="CALC_UNIT",H=RegExp(B,"g");function unit(t){return"number"==typeof t?"".concat(t).concat(B):t}var U=function(t){(0,k.Z)(CSSCalculator,t);var a=(0,E.Z)(CSSCalculator);function CSSCalculator(t,l){(0,_.Z)(this,CSSCalculator),d=a.call(this),(0,p.Z)((0,w.Z)(d),"result",""),(0,p.Z)((0,w.Z)(d),"unitlessCssVar",void 0),(0,p.Z)((0,w.Z)(d),"lowPriority",void 0);var d,f=(0,c.Z)(t);return d.unitlessCssVar=l,t instanceof CSSCalculator?d.result="(".concat(t.result,")"):"number"===f?d.result=unit(t):"string"===f&&(d.result=t),d}return(0,S.Z)(CSSCalculator,[{key:"add",value:function(t){return t instanceof CSSCalculator?this.result="".concat(this.result," + ").concat(t.getResult()):("number"==typeof t||"string"==typeof t)&&(this.result="".concat(this.result," + ").concat(unit(t))),this.lowPriority=!0,this}},{key:"sub",value:function(t){return t instanceof CSSCalculator?this.result="".concat(this.result," - ").concat(t.getResult()):("number"==typeof t||"string"==typeof t)&&(this.result="".concat(this.result," - ").concat(unit(t))),this.lowPriority=!0,this}},{key:"mul",value:function(t){return this.lowPriority&&(this.result="(".concat(this.result,")")),t instanceof CSSCalculator?this.result="".concat(this.result," * ").concat(t.getResult(!0)):("number"==typeof t||"string"==typeof t)&&(this.result="".concat(this.result," * ").concat(t)),this.lowPriority=!1,this}},{key:"div",value:function(t){return this.lowPriority&&(this.result="(".concat(this.result,")")),t instanceof CSSCalculator?this.result="".concat(this.result," / ").concat(t.getResult(!0)):("number"==typeof t||"string"==typeof t)&&(this.result="".concat(this.result," / ").concat(t)),this.lowPriority=!1,this}},{key:"getResult",value:function(t){return this.lowPriority||t?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(t){var a=this,l=(t||{}).unit,c=!0;return("boolean"==typeof l?c=l:Array.from(this.unitlessCssVar).some(function(t){return a.result.includes(t)})&&(c=!1),this.result=this.result.replace(H,c?"px":""),void 0!==this.lowPriority)?"calc(".concat(this.result,")"):this.result}}]),CSSCalculator}(x),J=function(t){(0,k.Z)(NumCalculator,t);var a=(0,E.Z)(NumCalculator);function NumCalculator(t){var l;return(0,_.Z)(this,NumCalculator),l=a.call(this),(0,p.Z)((0,w.Z)(l),"result",0),t instanceof NumCalculator?l.result=t.result:"number"==typeof t&&(l.result=t),l}return(0,S.Z)(NumCalculator,[{key:"add",value:function(t){return t instanceof NumCalculator?this.result+=t.result:"number"==typeof t&&(this.result+=t),this}},{key:"sub",value:function(t){return t instanceof NumCalculator?this.result-=t.result:"number"==typeof t&&(this.result-=t),this}},{key:"mul",value:function(t){return t instanceof NumCalculator?this.result*=t.result:"number"==typeof t&&(this.result*=t),this}},{key:"div",value:function(t){return t instanceof NumCalculator?this.result/=t.result:"number"==typeof t&&(this.result/=t),this}},{key:"equal",value:function(){return this.result}}]),NumCalculator}(x),util_calc=function(t,a){var l="css"===t?U:J;return function(t){return new l(t,a)}},util_getCompVarPrefix=function(t,a){return"".concat([a,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(
1Boolean).join("-"))};l(56790);var util_getComponentToken=function(t,a,l,c){var p=(0,f.Z)({},a[t]);null!=c&&c.deprecatedTokens&&c.deprecatedTokens.forEach(function(t){var a,l=(0,d.Z)(t,2),c=l[0],f=l[1];(null!=p&&p[c]||null!=p&&p[f])&&(null!==(a=p[f])&&void 0!==a||(p[f]=null==p?void 0:p[c]))});var h=(0,f.Z)((0,f.Z)({},l),p);return Object.keys(h).forEach(function(t){h[t]===a[t]&&delete h[t]}),h},er="undefined"!=typeof CSSINJS_STATISTIC,en=!0;function merge(){for(var t=arguments.length,a=Array(t),l=0;l<t;l++)a[l]=arguments[l];if(!er)return Object.assign.apply(Object,[{}].concat(a));en=!1;var d={};return a.forEach(function(t){"object"===(0,c.Z)(t)&&Object.keys(t).forEach(function(a){Object.defineProperty(d,a,{configurable:!0,enumerable:!0,get:function(){return t[a]}})})}),en=!0,d}var ei={};function noop(){}var util_statistic=function(t){var a,l=t,c=noop;return er&&"undefined"!=typeof Proxy&&(a=new Set,l=new Proxy(t,{get:function(t,l){if(en){var c;null===(c=a)||void 0===c||c.add(l)}return t[l]}}),c=function(t,l){var c;ei[t]={global:Array.from(a),component:(0,f.Z)((0,f.Z)({},null===(c=ei[t])||void 0===c?void 0:c.component),l)}}),{token:l,keys:a,flush:c}},util_getDefaultComponentToken=function(t,a,l){if("function"==typeof l){var c;return l(merge(a,null!==(c=a[t])&&void 0!==c?c:{}))}return null!=l?l:{}},ea=new(function(){function ArrayKeyMap(){(0,_.Z)(this,ArrayKeyMap),(0,p.Z)(this,"map",new Map),(0,p.Z)(this,"objectIDMap",new WeakMap),(0,p.Z)(this,"nextID",0),(0,p.Z)(this,"lastAccessBeat",new Map),(0,p.Z)(this,"accessBeat",0)}return(0,S.Z)(ArrayKeyMap,[{key:"set",value:function(t,a){this.clear();var l=this.getCompositeKey(t);this.map.set(l,a),this.lastAccessBeat.set(l,Date.now())}},{key:"get",value:function(t){var a=this.getCompositeKey(t),l=this.map.get(a);return this.lastAccessBeat.set(a,Date.now()),this.accessBeat+=1,l}},{key:"getCompositeKey",value:function(t){var a=this;return t.map(function(t){return t&&"object"===(0,c.Z)(t)?"obj_".concat(a.getObjectID(t)):"".concat((0,c.Z)(t),"_").concat(t)}).join("|")}},{key:"getObjectID",value:function(t){if(this.objectIDMap.has(t))return this.objectIDMap.get(t);var a=this.nextID;return this.objectIDMap.set(t,a),this.nextID+=1,a}},{key:"clear",value:function(){var t=this;if(this.accessBeat>1e4){var a=Date.now();this.lastAccessBeat.forEach(function(l,c){a-l>6e5&&(t.map.delete(c),t.lastAccessBeat.delete(c))}),this.accessBeat=0}}}]),ArrayKeyMap}()),hooks_useCSP=function(){return{}},util_genStyleUtils=function(t){var a=t.useCSP,l=void 0===a?hooks_useCSP:a,_=t.useToken,S=t.usePrefix,w=t.getResetStyles,k=t.getCommonStyle,E=t.getCompUnitless;function genComponentStyleHook(a,p,E){var x=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},B=Array.isArray(a)?a:[a,a],H=(0,d.Z)(B,1)[0],U=B.join("-"),J=t.layer||{name:"antd"};return function(t){var a,d,B=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,er=_(),en=er.theme,ei=er.realToken,el=er.hashId,ec=er.token,eu=er.cssVar,ed=S(),ep=ed.rootPrefixCls,ef=ed.iconPrefixCls,eh=l(),eg=eu?"css":"js",em=(a=function(){var t=new Set;return eu&&Object.keys(x.unitless||{}).forEach(function(a){t.add((0,g.token2CSSVar)(a,eu.prefix)),t.add((0,g.token2CSSVar)(a,util_getCompVarPrefix(H,eu.prefix)))}),util_calc(eg,t)},d=[eg,H,null==eu?void 0:eu.prefix],h.useMemo(function(){var t=ea.get(d);if(t)return t;var l=a();return ea.set(d,l),l},d)),ev="js"===eg?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,a=Array(t),l=0;l<t;l++)a[l]=arguments[l];return"max(".concat(a.map(function(t){return(0,g.unit)(t)}).join(","),")")},min:function(){for(var t=arguments.length,a=Array(t),l=0;l<t;l++)a[l]=arguments[l];return"min(".concat(a.map(function(t){return(0,g.unit)(t)}).join(","),")")}},ey=ev.max,e_=ev.min,eb={theme:en,token:ec,hashId:el,nonce:function(){return eh.nonce},clientOnly:x.clientOnly,layer:J,order:x.order||-999};return"function"==typeof w&&(0,g.useStyleRegister)((0,f.Z)((0,f.Z)({},eb),{},{clientOnly:!1,path:["Shared",ep]}),function(){return w(ec,{prefix:{rootPrefixCls:ep,iconPrefixCls:ef},csp:eh})}),[(0,g.useStyleRegister)((0,f.Z)((0,f.Z)({},eb),{},{path:[U,t,ef]}),function(){if(!1===x.injectStyle)return[];var a=util_statistic(ec),l=a.token,d=a.flush,f=util_getDefaultComponentToken(H,ei,E),h=".".concat(t),_=util_getComponentToken(H,ei,f,{deprecatedTokens:x.deprecatedTokens}
1);eu&&f&&"object"===(0,c.Z)(f)&&Object.keys(f).forEach(function(t){f[t]="var(".concat((0,g.token2CSSVar)(t,util_getCompVarPrefix(H,eu.prefix)),")")});var S=merge(l,{componentCls:h,prefixCls:t,iconCls:".".concat(ef),antCls:".".concat(ep),calc:em,max:ey,min:e_},eu?f:_),w=p(S,{hashId:el,prefixCls:t,rootPrefixCls:ep,iconPrefixCls:ef});d(H,_);var U="function"==typeof k?k(S,t,B,x.resetFont):null;return[!1===x.resetStyle?null:U,w]}),el]}}return{genStyleHooks:function(t,a,l,c){var S,w,k,x,B,H,U=Array.isArray(t)?t[0]:t;function prefixToken(t){return"".concat(String(U)).concat(t.slice(0,1).toUpperCase()).concat(t.slice(1))}var J=(null==c?void 0:c.unitless)||{},er="function"==typeof E?E(t):{},en=(0,f.Z)((0,f.Z)({},er),{},(0,p.Z)({},prefixToken("zIndexPopup"),!0));Object.keys(J).forEach(function(t){en[prefixToken(t)]=J[t]});var ei=(0,f.Z)((0,f.Z)({},c),{},{unitless:en,prefixToken:prefixToken}),ea=genComponentStyleHook(t,a,l,ei),el=(S=ei.unitless,k=void 0===(w=ei.injectStyle)||w,x=ei.prefixToken,B=ei.ignore,H=function(t){var a=t.rootCls,c=t.cssVar,d=void 0===c?{}:c,p=_().realToken;return(0,g.useCSSVarRegister)({path:[U],prefix:d.prefix,key:d.key,unitless:S,ignore:B,token:p,scope:a},function(){var t=util_getDefaultComponentToken(U,p,l),a=util_getComponentToken(U,p,t,{deprecatedTokens:null==ei?void 0:ei.deprecatedTokens});return Object.keys(t).forEach(function(t){a[x(t)]=a[t],delete a[t]}),a}),null},function(t){var a=_().cssVar;return[function(l){return k&&a?h.createElement(h.Fragment,null,h.createElement(H,{rootCls:t,cssVar:a,component:U}),l):l},null==a?void 0:a.key]});return function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,l=ea(t,a),c=(0,d.Z)(l,2)[1],p=el(a),f=(0,d.Z)(p,2);return[f[0],c,f[1]]}},genSubStyleComponent:function(t,a,l){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},d=genComponentStyleHook(t,a,l,(0,f.Z)({resetStyle:!1,order:-998},c));return function(t){var a=t.prefixCls,l=t.rootCls,c=void 0===l?a:l;return d(a,c),null}},genComponentStyleHook:genComponentStyleHook}}},861:function(t,a,l){"use strict";l.r(a),l.d(a,{Keyframes:function(){return e6},NaNLinter:function(){return NaNLinter},StyleContext:function(){return el},StyleProvider:function(){return StyleProvider},Theme:function(){return ew},_experimental:function(){return e7},createCache:function(){return createCache},createTheme:function(){return createTheme},extractStyle:function(){return extractStyle},genCalc:function(){return calc},getComputedToken:function(){return getComputedToken},legacyLogicalPropertiesTransformer:function(){return e4},legacyNotSelectorLinter:function(){return legacyNotSelectorLinter},logicalPropertiesLinter:function(){return logicalPropertiesLinter},parentSelectorLinter:function(){return parentSelectorLinter},px2remTransformer:function(){return px2rem},token2CSSVar:function(){return token2CSSVar},unit:function(){return util_unit},useCSSVarRegister:function(){return hooks_useCSSVarRegister},useCacheToken:function(){return useCacheToken},useStyleRegister:function(){return useStyleRegister}});var c,d,p=l(97685),f=l(4942),h=l(74902),g=l(1413),hash_browser_esm=function(t){for(var a,l=0,c=0,d=t.length;d>=4;++c,d-=4)a=(65535&(a=255&t.charCodeAt(c)|(255&t.charCodeAt(++c))<<8|(255&t.charCodeAt(++c))<<16|(255&t.charCodeAt(++c))<<24))*1540483477+((a>>>16)*59797<<16),a^=a>>>24,l=(65535&a)*1540483477+((a>>>16)*59797<<16)^(65535&l)*1540483477+((l>>>16)*59797<<16);switch(d){case 3:l^=(255&t.charCodeAt(c+2))<<16;case 2:l^=(255&t.charCodeAt(c+1))<<8;case 1:l^=255&t.charCodeAt(c),l=(65535&l)*1540483477+((l>>>16)*59797<<16)}return l^=l>>>13,(((l=(65535&l)*1540483477+((l>>>16)*59797<<16))^l>>>15)>>>0).toString(36)},_=l(44958),S=l(67294),w=l.t(S,2),k=l(91),E=l(56982),x=l(91881),B=l(15671),H=l(43144);function pathKey(t){return t.join("%")}var U=function(){function Entity(t){(0,B.Z)(this,Entity),(0,f.Z)(this,"instanceId",void 0),(0,f.Z)(this,"cache",new Map),this.instanceId=t}return(0,H.Z)(Entity,[{key:"get",value:function(t){return this.opGet(pathKey(t))}},{key:"opGet",value:function(t){return this.cache.get(t)||null}},{key:"update",value:function(t,a){return this.opUpdate(pathKey(t),a)}},{key:"opUpdate",value:function(t,a){var l=a(this.cache.get(t));null===l?this.cache.delete(t):this.cache.set(t,l)}}]),Entity}(),J=["children"],er="data-token-hash",en="data-css-hash",ei="__cssinjs_instance__";function createCache(){var t=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var a=document.body.querySelectorAll("style[".concat(en,"]"))||[],l=d
1ocument.head.firstChild;Array.from(a).forEach(function(a){a[ei]=a[ei]||t,a[ei]===t&&document.head.insertBefore(a,l)});var c={};Array.from(document.querySelectorAll("style[".concat(en,"]"))).forEach(function(a){var l,d=a.getAttribute(en);c[d]?a[ei]===t&&(null===(l=a.parentNode)||void 0===l||l.removeChild(a)):c[d]=!0})}return new U(t)}var ea=S.createContext({hashPriority:"low",cache:createCache(),defaultCache:!0}),StyleProvider=function(t){var a=t.children,l=(0,k.Z)(t,J),c=S.useContext(ea),d=(0,E.Z)(function(){var t=(0,g.Z)({},c);Object.keys(l).forEach(function(a){var c=l[a];void 0!==l[a]&&(t[a]=c)});var a=l.cache;return t.cache=t.cache||createCache(),t.defaultCache=!a&&c.defaultCache,t},[c,l],function(t,a){return!(0,x.Z)(t[0],a[0],!0)||!(0,x.Z)(t[1],a[1],!0)});return S.createElement(ea.Provider,{value:d},a)},el=ea,ec=l(71002),eu=l(98924),ed=l(97326),ep=l(60136),ef=l(29388),eh=(0,H.Z)(function AbstractCalculator(){(0,B.Z)(this,AbstractCalculator)}),eg="CALC_UNIT",em=RegExp(eg,"g");function unit(t){return"number"==typeof t?"".concat(t).concat(eg):t}var ev=function(t){(0,ep.Z)(CSSCalculator,t);var a=(0,ef.Z)(CSSCalculator);function CSSCalculator(t,l){(0,B.Z)(this,CSSCalculator),c=a.call(this),(0,f.Z)((0,ed.Z)(c),"result",""),(0,f.Z)((0,ed.Z)(c),"unitlessCssVar",void 0),(0,f.Z)((0,ed.Z)(c),"lowPriority",void 0);var c,d=(0,ec.Z)(t);return c.unitlessCssVar=l,t instanceof CSSCalculator?c.result="(".concat(t.result,")"):"number"===d?c.result=unit(t):"string"===d&&(c.result=t),c}return(0,H.Z)(CSSCalculator,[{key:"add",value:function(t){return t instanceof CSSCalculator?this.result="".concat(this.result," + ").concat(t.getResult()):("number"==typeof t||"string"==typeof t)&&(this.result="".concat(this.result," + ").concat(unit(t))),this.lowPriority=!0,this}},{key:"sub",value:function(t){return t instanceof CSSCalculator?this.result="".concat(this.result," - ").concat(t.getResult()):("number"==typeof t||"string"==typeof t)&&(this.result="".concat(this.result," - ").concat(unit(t))),this.lowPriority=!0,this}},{key:"mul",value:function(t){return this.lowPriority&&(this.result="(".concat(this.result,")")),t instanceof CSSCalculator?this.result="".concat(this.result," * ").concat(t.getResult(!0)):("number"==typeof t||"string"==typeof t)&&(this.result="".concat(this.result," * ").concat(t)),this.lowPriority=!1,this}},{key:"div",value:function(t){return this.lowPriority&&(this.result="(".concat(this.result,")")),t instanceof CSSCalculator?this.result="".concat(this.result," / ").concat(t.getResult(!0)):("number"==typeof t||"string"==typeof t)&&(this.result="".concat(this.result," / ").concat(t)),this.lowPriority=!1,this}},{key:"getResult",value:function(t){return this.lowPriority||t?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(t){var a=this,l=(t||{}).unit,c=!0;return("boolean"==typeof l?c=l:Array.from(this.unitlessCssVar).some(function(t){return a.result.includes(t)})&&(c=!1),this.result=this.result.replace(em,c?"px":""),void 0!==this.lowPriority)?"calc(".concat(this.result,")"):this.result}}]),CSSCalculator}(eh),ey=function(t){(0,ep.Z)(NumCalculator,t);var a=(0,ef.Z)(NumCalculator);function NumCalculator(t){var l;return(0,B.Z)(this,NumCalculator),l=a.call(this),(0,f.Z)((0,ed.Z)(l),"result",0),t instanceof NumCalculator?l.result=t.result:"number"==typeof t&&(l.result=t),l}return(0,H.Z)(NumCalculator,[{key:"add",value:function(t){return t instanceof NumCalculator?this.result+=t.result:"number"==typeof t&&(this.result+=t),this}},{key:"sub",value:function(t){return t instanceof NumCalculator?this.result-=t.result:"number"==typeof t&&(this.result-=t),this}},{key:"mul",value:function(t){return t instanceof NumCalculator?this.result*=t.result:"number"==typeof t&&(this.result*=t),this}},{key:"div",value:function(t){return t instanceof NumCalculator?this.result/=t.result:"number"==typeof t&&(this.result/=t),this}},{key:"equal",value:function(){return this.result}}]),NumCalculator}(eh),calc=function(t,a){var l="css"===t?ev:ey;return function(t){return new l(t,a)}},e_=function(){function ThemeCache(){(0,B.Z)(this,ThemeCache),(0,f.Z)(this,"cac
1he",void 0),(0,f.Z)(this,"keys",void 0),(0,f.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,H.Z)(ThemeCache,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(t){var a,l,c=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d={map:this.cache};return t.forEach(function(t){if(d){var a;d=null===(a=d)||void 0===a||null===(a=a.map)||void 0===a?void 0:a.get(t)}else d=void 0}),null!==(a=d)&&void 0!==a&&a.value&&c&&(d.value[1]=this.cacheCallTimes++),null===(l=d)||void 0===l?void 0:l.value}},{key:"get",value:function(t){var a;return null===(a=this.internalGet(t,!0))||void 0===a?void 0:a[0]}},{key:"has",value:function(t){return!!this.internalGet(t)}},{key:"set",value:function(t,a){var l=this;if(!this.has(t)){if(this.size()+1>ThemeCache.MAX_CACHE_SIZE+ThemeCache.MAX_CACHE_OFFSET){var c=this.keys.reduce(function(t,a){var c=(0,p.Z)(t,2)[1];return l.internalGet(a)[1]<c?[a,l.internalGet(a)[1]]:t},[this.keys[0],this.cacheCallTimes]),d=(0,p.Z)(c,1)[0];this.delete(d)}this.keys.push(t)}var f=this.cache;t.forEach(function(c,d){if(d===t.length-1)f.set(c,{value:[a,l.cacheCallTimes++]});else{var p=f.get(c);p?p.map||(p.map=new Map):f.set(c,{map:new Map}),f=f.get(c).map}})}},{key:"deleteByPath",value:function(t,a){var l,c=t.get(a[0]);if(1===a.length)return c.map?t.set(a[0],{map:c.map}):t.delete(a[0]),null===(l=c.value)||void 0===l?void 0:l[0];var d=this.deleteByPath(c.map,a.slice(1));return c.map&&0!==c.map.size||c.value||t.delete(a[0]),d}},{key:"delete",value:function(t){if(this.has(t))return this.keys=this.keys.filter(function(a){return!function(t,a){if(t.length!==a.length)return!1;for(var l=0;l<t.length;l++)if(t[l]!==a[l])return!1;return!0}(a,t)}),this.deleteByPath(this.cache,t)}}]),ThemeCache}();(0,f.Z)(e_,"MAX_CACHE_SIZE",20),(0,f.Z)(e_,"MAX_CACHE_OFFSET",5);var eb=l(80334),eS=0,ew=function(){function Theme(t){(0,B.Z)(this,Theme),(0,f.Z)(this,"derivatives",void 0),(0,f.Z)(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=eS,0===t.length&&(0,eb.Kp)(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),eS+=1}return(0,H.Z)(Theme,[{key:"getDerivativeToken",value:function(t){return this.derivatives.reduce(function(a,l){return l(t,a)},void 0)}}]),Theme}(),ek=new e_;function createTheme(t){var a=Array.isArray(t)?t:[t];return ek.has(a)||ek.set(a,new ew(a)),ek.get(a)}var eE=new WeakMap,eC={},ex=new WeakMap;function flattenToken(t){var a=ex.get(t)||"";return a||(Object.keys(t).forEach(function(l){var c=t[l];a+=l,c instanceof ew?a+=c.id:c&&"object"===(0,ec.Z)(c)?a+=flattenToken(c):a+=c}),a=hash_browser_esm(a),ex.set(t,a)),a}function token2key(t,a){return hash_browser_esm("".concat(a,"_").concat(flattenToken(t)))}var eT="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),eI="_bAmBoO_";function supportSelector(t,a,l){if((0,eu.Z)()){(0,_.hq)(t,eT);var c,d,p=document.createElement("div");p.style.position="fixed",p.style.left="0",p.style.top="0",null==a||a(p),document.body.appendChild(p);var f=l?l(p):null===(c=getComputedStyle(p).content)||void 0===c?void 0:c.includes(eI);return null===(d=p.parentNode)||void 0===d||d.removeChild(p),(0,_.jL)(eT),f}return!1}var eO=void 0,eR=void 0,eM=(0,eu.Z)();function util_unit(t){return"number"==typeof t?"".concat(t,"px"):t}function toStyleStr(t,a,l){var c,d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},p=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(p)return t;var h=(0,g.Z)((0,g.Z)({},d),{},(c={},(0,f.Z)(c,er,a),(0,f.Z)(c,en,l),c)),_=Object.keys(h).map(function(t){var a=h[t];return a?"".concat(t,'="').concat(a,'"'):null}).filter(function(t){return t}).join(" ");return"<style ".concat(_,">").concat(t,"</style>")}var token2CSSVar=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(a?"".concat(a,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},transformToken=function(t,a,l){var c,d={},f={};return Object.entries(t).forEach(function(t){var a=(0,p.Z)(t,2),c=a[0],h=a[1];if(null!=l&&null!==(g=l.preserve)&&void 0!==g&&g[c])f[c]=h;else if(("string"==typeof h||"number"==typeof h)&&!(null!=l&&null!==(_=l.ignore)&&void 0!==_&&_[c])){var g,_,S,w=token2CSSVar(c,null==l?void 0:l.prefix);d[w]="number"!=typeof h||null!=l&&null!==(S=l.unitless)&&void 0!==S&&S[c]?String(h):"".concat(h,"px"),f[c]="var(".concat(w,")")}}),[f,(c={scope:null==l?void 0:l.scope},Object.keys(d).length?".".concat(a).concat(null!=c&&c.scope?".".concat(c.scope):"","{").concat(Object.entries(d).map(function(t){var a=(0,p.Z)(t,2),l=a[0],c=a[1];return"".concat(l,":").concat(c,";")}).join(""),"}"):"")]},eP=l(8410),eA=(0,g.Z)({},w).useInsertionEffect,eF=eA?function(t,a,l){return eA(function(){return t(),a()},l)}:function(t,a,l){S.useMemo(t,l),(0,eP.Z)(function(){return a(!0)},l)},eD=void 0!==(0,g.Z)({},w).useInsertionEffect?function(t){var a=[],l=!1;return S.useEffect(function(){return l=!1,function(){l=!0,a.length&&a.forEach(function(t){return t()})}},t),function(t){l||a.push(t)}}:function(){return function(t){t()}};function useGlobalCache(t,a,l,c,d){var f=S.useContext(el).cache,g=pathKey([t].concat((0,h.Z)(a))),_=eD([g]),buildCache=function(t){f.opUpdate(g,function(a){var c=(0,p.Z)(a||[void 0,void 0],2),d=c[0],f=[void 0===d?0:d,c[1]||l()];return t?t(f):f})};S.useMemo(function(){buildCache()},[g]);var w=f.opGet(g)[1];return eF(function(){null==d||d(w)},function(t){return buildCache(function(a){var l=(0,p.Z)(a,2),c=l[0],f=l[1];return t&&0===c&&(null==d||d(w)),[c+1,f]}),function(){f.opUpdate(g,function(a){var l=(0,p.Z)(a||[],2),d=l[0],h=void 0===d?0:d,S=l[1];return 0==h-1?(_(function(){(t||!f.opGet(g))&&(null==c||c(S,!1))}),null):[h-1,S]})}},[g]),w}var eN={},eL=new Map,getComputedToken=function(t,a,l,c){var d=l.getDerivativeToken(t),p=(0,g.Z)((0,g.Z)({},d),a);return c&&(p=c(p)),p},ej="token";function useCacheToken(t,a){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=(0,S.useContext)(el),d=c.cache.instanceId,f=c.container,w=l.salt,k=void 0===w?"":w,E=l.override,x=void 0===E?eN:E,B=l.formatToken,H=l.getComputedToken,U=l.cssVar,J=function(t,a){for(var l=eE,c=0;c<a.length;c+=1){var d=a[c];l.has(d)||l.set(d,new WeakMap),l=l.get(d)}return l.has(eC)||l.set(eC,t()),l.get(eC)}(function(){return Object.assign.apply(Object,[{}].concat((0,h.Z)(a)))},a),ea=flattenToken(J),ec=flattenToken(x),eu=U?flattenToken(U):"";return useGlobalCache(ej,[k,t.id,ea,ec,eu],function(){var a,l=H?H(J,x,t):getComputedToken(J,x,t,B),c=(0,g.Z)({},l),d="";if(U){var f=transformToken(l,U.key,{prefix:U.prefix,ignore:U.ignore,unitless:U.unitless,preserve:U.preserve}),h=(0,p.Z)(f,2);l=h[0],d=h[1]}var _=token2key(l,k);l._tokenKey=_,c._tokenKey=token2key(c,k);var S=null!==(a=null==U?void 0:U.key)&&void 0!==a?a:_;l._themeKey=S,eL.set(S,(eL.get(S)||0)+1);var w="".concat("css","-").concat(hash_browser_esm(_));return l._hashId=w,[l,w,c,d,(null==U?void 0:U.key)||""]},function(t){var a,l,c;a=t[0]._themeKey,eL.set(a,(eL.get(a)||0)-1),c=(l=Array.from(eL.keys())).filter(function(t){return 0>=(eL.get(t)||0)}),l.length-c.length>
10&&c.forEach(function(t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(er,'="').concat(t,'"]')).forEach(function(t){if(t[ei]===d){var a;null===(a=t.parentNode)||void 0===a||a.removeChild(t)}}),eL.delete(t)})},function(t){var a=(0,p.Z)(t,4),l=a[0],c=a[3];if(U&&c){var h=(0,_.hq)(c,hash_browser_esm("css-variables-".concat(l._themeKey)),{mark:en,prepend:"queue",attachTo:f,priority:-999});h[ei]=d,h.setAttribute(er,l._themeKey)}})}var e$=l(87462),eB={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},eH="comm",eW="rule",eq="decl",eV=Math.abs,ez=String.fromCharCode;function replace(t,a,l){return t.replace(a,l)}function charat(t,a){return 0|t.charCodeAt(a)}function substr(t,a,l){return t.slice(a,l)}function strlen(t){return t.length}function Utility_append(t,a){return a.push(t),t}function serialize(t,a){for(var l="",c=0;c<t.length;c++)l+=a(t[c],c,t,a)||"";return l}function stringify(t,a,l,c){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case"@namespace":case eq:return t.return=t.return||t.value;case eH:return"";case"@keyframes":return t.return=t.value+"{"+serialize(t.children,c)+"}";case eW:if(!strlen(t.value=t.props.join(",")))return""}return strlen(l=serialize(t.children,c))?t.return=t.value+"{"+l+"}":""}var eU=1,eZ=1,eG=0,eQ=0,eK=0,eX="";function node(t,a,l,c,d,p,f,h){return{value:t,root:a,parent:l,type:c,props:d,children:p,line:eU,column:eZ,length:f,return:"",siblings:h}}function next(){return eK=eQ<eG?charat(eX,eQ++):0,eZ++,10===eK&&(eZ=1,eU++),eK}function peek(){return charat(eX,eQ)}function token(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 delimit(t){var a,l;return(a=eQ-1,l=function delimiter(t){for(;next();)switch(eK){case t:return eQ;case 34:case 39:34!==t&&39!==t&&delimiter(eK);break;case 40:41===t&&delimiter(t);break;case 92:next()}return eQ}(91===t?t+2:40===t?t+1:t),substr(eX,a,l)).trim()}function ruleset(t,a,l,c,d,p,f,h,g,_,S,w){for(var k=d-1,E=0===d?p:[""],x=E.length,B=0,H=0,U=0;B<c;++B)for(var J=0,er=substr(t,k+1,k=eV(H=f[B])),en=t;J<x;++J)(en=(H>0?E[J]+" "+er:replace(er,/&\f/g,E[J])).trim())&&(g[U++]=en);return node(t,a,l,0===d?eW:h,g,_,S,w)}function declaration(t,a,l,c,d){return node(t,a,l,eq,substr(t,0,c),substr(t,c+1,-1),c,d)}function utils_lintWarning(t,a){var l=a.path,c=a.parentSelectors;(0,eb.ZP)(!1,"[Ant Design CSS-in-JS] ".concat(l?"Error in ".concat(l,": "):"").concat(t).concat(c.length?" Selector: ".concat(c.join(" | ")):""))}function isConcatSelector(t){var a;return((null===(a=t.match(/:not\(([^)]*)\)/))||void 0===a?void 0:a[1])||"").split(/(\[[^[]*])|(?=[.#])/).filter(function(t){return t}).length>1}var legacyNotSelectorLinter=function(t,a,l){var c=l.parentSelectors.reduce(function(t,a){return t?a.includes("&")?a.replace(/&/g,t):"".concat(t," ").concat(a):a},"").match(/:not\([^)]*\)/g)||[];c.length>0&&c.some(isConcatSelector)&&utils_lintWarning("Concat ':not' selector not support in legacy browsers.",l)},logicalPropertiesLinter=function(t,a,l){switch(t){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":utils_lintWarning("You seem to be using non-logical property '".concat(t,"' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),l);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if("string"==typeof a){var c=a.split(" ").map(function(t){return t.trim()});4===c.length&&c[1]!==c[3]&&utils_lintWarning("You seem to be using '".concat(t,"' property with different left ").concat(t," and right ").concat(t,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),l)}return;case"clear":case"textAlign":("left"===a||"right"===a)&&utils_lintWarning("You seem to be using non-logical value '".concat(a,"' of ").concat(t,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),l);return;case"borderRadius":"string"==typeof a&&a.split("/").map(function(t){return t.trim()}).reduce(function(t,a){if(t)return t;var l=a.split(" ").map(function(t){return t.trim()});return l.length>=2&&l[0]!==l[1]||3===l.length&&l[1]!==l[2]||4===l.length&&l[2]!==l[3]||t},!1)&&utils_lintWarning("You seem to be using non-logical value '".concat(a,"' of ").concat(t,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),l);return}},NaNLinter=function(t,a,l){("string"==typeof a&&/NaN/g.test(a)||Number.isNaN(a))&&utils_lintWarning("Unexpected 'NaN' in property '".concat(t,": ").concat(a,"'."),l)},parentSelectorLinter=function(t,a,l){l.parentSelectors.some(function(t){return t.split(",").some(function(t){return t.split("&").length>2})})&&utils_lintWarning("Should not use more than one `&` in a selector.",l)},eJ="data-ant-cssinjs-cache-path",eY="_FILE_STYLE__",e0=!0,e1="_multi_value_";function normalizeStyle(t){var a,l,c;return serialize((c=function parse(t,a,l,c,d,p,f,h,g){for(var _,S,w,k=0,E=0,x=f,B=0,H=0,U=0,J=1,er=1,en=1,ei=0,ea="",el=d,ec=p,eu=c,ed=ea;er;)switch(U=ei,ei=next()){case 40:if(108!=U&&58==charat(ed,x-1)){-1!=(S=ed+=replace(delimit(ei),"&","&\f"),w=eV(k?h[k-1]:0),S.indexOf("&\f",w))&&(en=-1);break}case 34:case 39:case 91:ed+=delimit(ei);break;case 9:case 10:case 13:case 32:ed+=function(t){for(;eK=peek();)if(eK<33)next();else break;return token(t)>2||token(eK)>3?"":" "}(U);break;case 92:ed+=function(t,a){for(var l;--a&&next()&&!(eK<48)&&!(eK>102)&&(!(eK>57)||!(eK<65))&&(!(eK>70)||!(eK<97)););return l=eQ+(a<6&&32==peek()&&32==next()),substr(eX,t,l)}(eQ-1,7);continue;case 47:switch(peek()){case 42:case 47:Utility_append(node(_=function(t,a){for(;next();)if(t+eK===57)break;else if(t+eK===84&&47===peek())break;return"/*"+substr(eX,a,eQ-1)+"*"+ez(47===t?t:next())}(next(),eQ),a,l,eH,ez(eK),substr(_,2,-2),0,g),g),(5==token(U||1)||5==token(peek()||1))&&strlen(ed)&&" "!==substr(ed,-1,void 0)&&(ed+=" ");break;default:ed+="/"}break;case 123*J:h[k++]=strlen(ed)*en;case 125*J:case 59:case 0:switch(ei){case 0:case 125:er=0;case 59+E:-1==en&&(ed=replace(ed,/\f/g,"")),H>0&&(strlen(ed)-x||0===J&&47===U)&&Utility_append(H>32?declaration(ed+";",c,l,x-1,g):declaration(replace(ed," ","")+";",c,l,x-2,g),g);break;case 59:ed+=";";default:if(Utility_append(eu=ruleset(ed,a,l,k,E,d,h,ea,el=[],ec=[],x,p),p),123===ei){if(0===E)parse(ed,a,eu,eu,el,p,x,h,ec);else{switch(B){case 99:if(110===charat(ed,3))break;case 108:if(97===charat(ed,2))break;default:E=0;case 100:case 109:case 115:}E?parse(t,eu,eu,c&&Utility_append(ruleset(t,eu,eu,0,0,d,h,ea,d,el=[],x,ec),ec),d,ec,x,h,c?el:ec):parse(ed,eu,eu,eu,[""],ec,0,h,ec)}}}k=E=H=0,J=en=1,ea=ed="",x=f;break;case 58:x=1+strlen(ed),H=U;default:if(J<1){if(123==ei)--J;else if(125==ei&&0==J++&&125==(eK=eQ>0?charat(eX,--eQ):0,eZ--,10===eK&&(eZ=1,eU--),eK))continue}switch(ed+=ez(ei),ei*J){case 38:en=E>0?1:(ed+="\f",-1);break;case 44:h[k++]=(strlen(ed)-1)*en,en=1;break;
1case 64:45===peek()&&(ed+=delimit(next())),B=peek(),E=x=strlen(ea=ed+=function(t){for(;!token(peek());)next();return substr(eX,t,eQ)}(eQ)),ei++;break;case 45:45===U&&2==strlen(ed)&&(J=0)}}return p}("",null,null,null,[""],(l=a=t,eU=eZ=1,eG=strlen(eX=l),eQ=0,a=[]),0,[0],a),eX="",c),stringify).replace(/\{%%%\:[^;];}/g,";")}function injectSelectorHash(t,a,l){if(!a)return t;var c=".".concat(a),d="low"===l?":where(".concat(c,")"):c;return t.split(",").map(function(t){var a,l=t.trim().split(/\s+/),c=l[0]||"",p=(null===(a=c.match(/^\w+/))||void 0===a?void 0:a[0])||"";return[c="".concat(p).concat(d).concat(c.slice(p.length))].concat((0,h.Z)(l.slice(1))).join(" ")}).join(",")}var parseStyle=function parseStyle(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},c=l.root,d=l.injectHash,f=l.parentSelectors,_=a.hashId,S=a.layer,w=(a.path,a.hashPriority),k=a.transformers,E=void 0===k?[]:k;a.linters;var x="",B={};function parseKeyframes(t){var l=t.getName(_);if(!B[l]){var c=parseStyle(t.style,a,{root:!1,parentSelectors:f}),d=(0,p.Z)(c,1)[0];B[l]="@keyframes ".concat(t.getName(_)).concat(d)}}return(function flattenList(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?flattenList(t,a):t&&a.push(t)}),a})(Array.isArray(t)?t:[t]).forEach(function(t){var l="string"!=typeof t||c?t:{};if("string"==typeof l)x+="".concat(l,"\n");else if(l._keyframe)parseKeyframes(l);else{var S=E.reduce(function(t,a){var l;return(null==a||null===(l=a.visit)||void 0===l?void 0:l.call(a,t))||t},l);Object.keys(S).forEach(function(t){var l=S[t];if("object"!==(0,ec.Z)(l)||!l||"animationName"===t&&l._keyframe||"object"===(0,ec.Z)(l)&&l&&("_skip_check_"in l||e1 in l)){function appendStyle(t,a){var l=t.replace(/[A-Z]/g,function(t){return"-".concat(t.toLowerCase())}),c=a;eB[t]||"number"!=typeof c||0===c||(c="".concat(c,"px")),"animationName"===t&&null!=a&&a._keyframe&&(parseKeyframes(a),c=a.getName(_)),x+="".concat(l,":").concat(c,";")}var k,E=null!==(k=null==l?void 0:l.value)&&void 0!==k?k:l;"object"===(0,ec.Z)(l)&&null!=l&&l[e1]&&Array.isArray(E)?E.forEach(function(a){appendStyle(t,a)}):appendStyle(t,E)}else{var H=!1,U=t.trim(),J=!1;(c||d)&&_?U.startsWith("@")?H=!0:U="&"===U?injectSelectorHash("",_,w):injectSelectorHash(t,_,w):c&&!_&&("&"===U||""===U)&&(U="",J=!0);var er=parseStyle(l,a,{root:J,injectHash:H,parentSelectors:[].concat((0,h.Z)(f),[U])}),en=(0,p.Z)(er,2),ei=en[0],ea=en[1];B=(0,g.Z)((0,g.Z)({},B),ea),x+="".concat(U).concat(ei)}})}}),c?S&&(x&&(x="@layer ".concat(S.name," {").concat(x,"}")),S.dependencies&&(B["@layer ".concat(S.name)]=S.dependencies.map(function(t){return"@layer ".concat(t,", ").concat(S.name,";")}).join("\n"))):x="{".concat(x,"}"),[x,B]};function uniqueHash(t,a){return hash_browser_esm("".concat(t.join("%")).concat(a))}function Empty(){return null}var e2="style";function useStyleRegister(t,a){var l=t.token,d=t.path,w=t.hashId,k=t.layer,E=t.nonce,x=t.clientOnly,B=t.order,H=void 0===B?0:B,U=S.useContext(el),J=U.autoClear,ea=(U.mock,U.defaultCache),ec=U.hashPriority,ed=U.container,ep=U.ssrInline,ef=U.transformers,eh=U.linters,eg=U.cache,em=U.layer,ev=l._tokenKey,ey=[ev];em&&ey.push("layer"),ey.push.apply(ey,(0,h.Z)(d));var e_=useGlobalCache(e2,ey,function(){var t=ey.join("|");if(function(){if(!c&&(c={},(0,eu.Z)())){var t,a=document.createElement("div");a.className=eJ,a.style.position="fixed",a.style.visibility="hidden",a.style.top="-9999px",document.body.appendChild(a);var l=getComputedStyle(a).content||"";(l=l.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(t){var a=t.split(":"),l=(0,p.Z)(a,2),d=l[0],f=l[1];c[d]=f});var d=document.querySelector("style[".concat(eJ,"]"));d&&(e0=!1,null===(t=d.parentNode)||void 0===t||t.removeChild(d)),document.body.removeChild(a)}}(),c[t]){var l=function(t){var a=c[t],l=null;if(a&&(0,eu.Z)()){if(e0)l=eY;else{var d=document.querySelector("style[".concat(en,'="').concat(c[t],'"]'));d?l=d.innerHTML:delete c[t]}}return[l,a]}(t),f=(0,p.Z)(l,2),h=f[0],g=f[1];if(h)return[h,ev,g,{},x,H]}var _=parseStyle(a(),{hashId:w,hashPriority:ec,layer:em?k:void 0,path:d.join("-"),transformers:ef,linters:eh}),S=(0,p.Z)(_,2),E=S[0],B=S[1],U=normalizeStyle(E),J=uniqueHash(ey,U);return[U,ev,J,B,x,H]},function(t,a){var l=(0,p.Z)(t,3)[2];(a||J)&&eM&&(0,_.jL)(l,{mark:en})},function(t){var a=(0,p.Z)(t,4),l=a[0],c=(a[1],a[2]),d=a[3];if(eM&&l!==eY){var f={mark:en,prepend:!em&&"queue",attachTo:ed,priority:H},h="function"==typeof E?E():E;h&&(f.csp={nonce:h});var S=[],w=[];
1Object.keys(d).forEach(function(t){t.startsWith("@layer")?S.push(t):w.push(t)}),S.forEach(function(t){(0,_.hq)(normalizeStyle(d[t]),"_layer-".concat(t),(0,g.Z)((0,g.Z)({},f),{},{prepend:!0}))});var k=(0,_.hq)(l,c,f);k[ei]=eg.instanceId,k.setAttribute(er,ev),w.forEach(function(t){(0,_.hq)(normalizeStyle(d[t]),"_effect-".concat(t),f)})}}),eb=(0,p.Z)(e_,3),eS=eb[0],ew=eb[1],ek=eb[2];return function(t){var a,l;return a=ep&&!eM&&ea?S.createElement("style",(0,e$.Z)({},(l={},(0,f.Z)(l,er,ew),(0,f.Z)(l,en,ek),l),{dangerouslySetInnerHTML:{__html:eS}})):S.createElement(Empty,null),S.createElement(S.Fragment,null,a,t)}}var e3="cssVar",hooks_useCSSVarRegister=function(t,a){var l=t.key,c=t.prefix,d=t.unitless,f=t.ignore,g=t.token,w=t.scope,k=void 0===w?"":w,E=(0,S.useContext)(el),x=E.cache.instanceId,B=E.container,H=g._tokenKey,U=[].concat((0,h.Z)(t.path),[l,k,H]);return useGlobalCache(e3,U,function(){var t=transformToken(a(),l,{prefix:c,unitless:d,ignore:f,scope:k}),h=(0,p.Z)(t,2),g=h[0],_=h[1],S=uniqueHash(U,_);return[g,_,S,l]},function(t){var a=(0,p.Z)(t,3)[2];eM&&(0,_.jL)(a,{mark:en})},function(t){var a=(0,p.Z)(t,3),c=a[1],d=a[2];if(c){var f=(0,_.hq)(c,d,{mark:en,prepend:"queue",attachTo:B,priority:-999});f[ei]=x,f.setAttribute(er,l)}})},e5=(d={},(0,f.Z)(d,e2,function(t,a,l){var c=(0,p.Z)(t,6),d=c[0],f=c[1],h=c[2],g=c[3],_=c[4],S=c[5],w=(l||{}).plain;if(_)return null;var k=d,E={"data-rc-order":"prependQueue","data-rc-priority":"".concat(S)};return k=toStyleStr(d,f,h,E,w),g&&Object.keys(g).forEach(function(t){if(!a[t]){a[t]=!0;var l=toStyleStr(normalizeStyle(g[t]),f,"_effect-".concat(t),E,w);t.startsWith("@layer")?k=l+k:k+=l}}),[S,h,k]}),(0,f.Z)(d,ej,function(t,a,l){var c=(0,p.Z)(t,5),d=c[2],f=c[3],h=c[4],g=(l||{}).plain;if(!f)return null;var _=d._tokenKey,S=toStyleStr(f,h,_,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},g);return[-999,_,S]}),(0,f.Z)(d,e3,function(t,a,l){var c=(0,p.Z)(t,4),d=c[1],f=c[2],h=c[3],g=(l||{}).plain;if(!d)return null;var _=toStyleStr(d,h,f,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},g);return[-999,f,_]}),d);function isNotNull(t){return null!==t}function extractStyle(t,a){var l="boolean"==typeof a?{plain:a}:a||{},c=l.plain,d=void 0!==c&&c,h=l.types,g=void 0===h?["style","token","cssVar"]:h,_=new RegExp("^(".concat(("string"==typeof g?[g]:g).join("|"),")%")),S=Array.from(t.cache.keys()).filter(function(t){return _.test(t)}),w={},k={},E="";return S.map(function(a){var l=a.replace(_,"").replace(/%/g,"|"),c=a.split("%"),f=(0,e5[(0,p.Z)(c,1)[0]])(t.cache.get(a)[1],w,{plain:d});if(!f)return null;var h=(0,p.Z)(f,3),g=h[0],S=h[1],E=h[2];return a.startsWith("style")&&(k[l]=S),[g,E]}).filter(isNotNull).sort(function(t,a){return(0,p.Z)(t,1)[0]-(0,p.Z)(a,1)[0]}).forEach(function(t){var a=(0,p.Z)(t,2)[1];E+=a}),E+=toStyleStr(".".concat(eJ,'{content:"').concat(Object.keys(k).map(function(t){var a=k[t];return"".concat(t,":").concat(a)}).join(";"),'";}'),void 0,void 0,(0,f.Z)({},eJ,eJ),d)}var e6=function(){function Keyframe(t,a){(0,B.Z)(this,Keyframe),(0,f.Z)(this,"name",void 0),(0,f.Z)(this,"style",void 0),(0,f.Z)(this,"_keyframe",!0),this.name=t,this.style=a}return(0,H.Z)(Keyframe,[{key:"getName",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t?"".concat(t,"-").concat(this.name):this.name}}]),Keyframe}();function noSplit(t){return t.notSplit=!0,t}var e8={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:noSplit(["borderTop","borderBottom"]),borderBlockStart:noSplit(["borderTop"]),borderBlockEnd:noSplit(["borderBottom"]),borderInline:noSplit(["borderLeft","borderRight"]),borderInlineStart:noSplit(["borderLeft"]),borderInlineEnd:noSplit(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function wrapImportantAndSkipCheck(t,a){var l=t;return a&&(l="".concat(l," !important")),{_skip_check_:!0,value:l}}var e4={visit:function(t){var a={};return Object.keys(t).forEach(function(l){var c=t[l],d=e8[l];if(d&&("number"==typeof c||"string"==typeof c)){var f=function(t){if("number"==typeof t)return[[t],!1];var a=String(t).trim(),l=a.match(/(.*)(!important)/),c=(l?l[1]:a).trim().split(/\s+/),d=[],p=0;return[c.reduce(function(t,a){if(a.includes("(")||a.includes(")")){var l=a.split("(").length-1,c=a.split(")").length-1;p+=l-c}return p>=0&&d.push(a),0===p&&(t.push(d.join(" ")),d=[]),t},[]),!!l]}(c),h=(0,p.Z)(f,2),g=h[0],_=h[1];d.length&&d.notSplit?d.forEach(function(t){a[t]=wrapImportantAndSkipCheck(c,_)}):1===d.length?a[d[0]]=wrapImportantAndSkipCheck(g[0],_):2===d.length?d.forEach(function(t,l){var c;a[t]=wrapImportantAndSkipCheck(null!==(c=g[l])&&void 0!==c?c:g[0],_)}):4===d.length?d.forEach(function(t,l){var c,d;a[t]=wrapImportantAndSkipCheck(null!==(c=null!==(d=g[l])&&void 0!==d?d:g[l-2])&&void 0!==c?c:g[0],_)}):a[l]=c}else a[l]=c}),a}},e9=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g,px2rem=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.rootValue,l=void 0===a?16:a,c=t.precision,d=void 0===c?5:c,f=t.mediaQuery,h=void 0!==f&&f,pxReplace=function(t,a){if(!a)return t;var c,p=parseFloat(a);if(p<=1)return t;var f=10*Math.round(Math.floor(p/l*(c=Math.pow(10,d+1)))/10)/c;return"".concat(f,"rem")};return{visit:function(t){var a=(0,g.Z)({},t);return Object.entries(t).forEach(function(t){var l=(0,p.Z)(t,2),c=l[0],d=l[1];if("string"==typeof d&&d.includes("px")){var f=d.replace(e9,pxReplace);a[c]=f}eB[c]||"number"!=typeof d||0===d||(a[c]="".concat(d,"px").replace(e9,pxReplace));var g=c.trim();g.startsWith("@")&&g.includes("px")&&h&&(a[c.replace(e9,pxReplace)]=a[c],delete a[c])}),a}}},e7={supportModernCSS:function(){return void 0===eO&&(eO=supportSelector(":where(.".concat(eT,') { content: "').concat(eI,'"!important; }'),function(t){t.className=eT})),eO&&(void 0===eR&&(eR=supportSelector(".".concat(eT," { inset-block: 93px !important; }"),function(t){t.className=eT},function(t){return"93px"===getComputedStyle(t).bottom})),eR)}}},15063:function(t,a,l){"use strict";l.r(a),l.d(a,{FastColor:function(){return FastColor}});var c=l(4942);let d=Math.round;function splitColorStr(t,a){let l=t.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],c=l.map(t=>parseFloat(t));for(let t=0;t<3;t+=1)c[t]=a(c[t]||0,l[t]||"",t);return l[3]?c[3]=l[3].includes("%")?c[3]/100:c[3]:c[3]=1,c}let parseHSVorHSL=(t,a,l)=>0===l?t:t/100;function limitRange(t,a){let l=a||255;return t>l?l:t<0?0:t}let FastColor=class FastColor{constructor(t){function matchFormat(a){return a[0]in t&&a[1]in t&&a[2]in t}if((0,c.Z)(this,"isValid",!0),(0,c.Z)(this,"r",0),(0,c.Z)(this,"g",0),(0,c.Z)(this,"b",0),(0,c.Z)(this,"a",1),(0,c.Z)(this,"_h",void 0),(0,c.Z)(this,"_s",void 0),(0,c.Z)(this,"_l",void 0),(0,c.Z)(this,"_v",void 0),(0,c.Z)(this,"_max",void 0),(0,c.Z)(this,"_min",void 0),(0,c.Z)(this,"_brightness",void 0),t){if("string"==typeof t){let a=t.trim();function matchPrefix(t){return a.startsWith(t)}/^#?[A-F\d]{3,8}$/i.test(a)?this.fromHexString(a):matchPrefix("rgb")?this.fromRgbString(a):matchPrefix("hsl")?this.fromHslString(a):(matchPrefix("hsv")||matchPrefix("hsb"))&&this.fromHsvString(a)}else if(t instanceof FastColor)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(matchFormat("rgb"))this.r=limitRange(t.r),this.g=limitRange(t.g),this.b=limitRange(t.b),this.a="number"==typeof t.a?limitRange(t.a,1):1;else if(matchFormat("hsl"))this.fromHsl(t);else if(matchFormat("hsv"))this.fromHsv(t);else throw Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){let a=this.toHsv();return a.h=t,this._c(a)}getLuminance(){function adjustGamma(t){let a=t/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}let t=adjustGamma(this.r),a=adjustGamma(this.g),l=adjustGamma(this.b);return .2126*t+.7152*a+.0722*l}getHue(){if(void 0===this._h){let t=this.getMax()-this.getMin();0===t?this._h=0:this._h=d(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(void 0===this._s){let t=this.getMax()-this.getMin();0===t?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(t=10){let a=this.getHue(),l=this.getSaturation(),c=this.getLightness()-t/100;return c<0&&(c=0),this._c({h:a,s:l,l:c,a:this.a})}lighten(t=10){let a=this.getHue(),l=this.getSaturation(),c=this.getLightness()+t/100;return c>1&&(c=1),this._c({h:a,s:l,l:c,a:this.a})}mix(t,a=50){let l=this._c(t),c=a/100,calc=t=>(l[t]-this[t])*c+this[t],p={r:d(calc("r")),g:d(calc("g")),b:d(calc("b")),a:d(100*calc("a"))/100};return this._c(p)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}
1onBackground(t){let a=this._c(t),l=this.a+a.a*(1-this.a),calc=t=>d((this[t]*this.a+a[t]*a.a*(1-this.a))/l);return this._c({r:calc("r"),g:calc("g"),b:calc("b"),a:l})}isDark(){return 128>this.getBrightness()}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#",a=(this.r||0).toString(16);t+=2===a.length?a:"0"+a;let l=(this.g||0).toString(16);t+=2===l.length?l:"0"+l;let c=(this.b||0).toString(16);if(t+=2===c.length?c:"0"+c,"number"==typeof this.a&&this.a>=0&&this.a<1){let a=d(255*this.a).toString(16);t+=2===a.length?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let t=this.getHue(),a=d(100*this.getSaturation()),l=d(100*this.getLightness());return 1!==this.a?`hsla(${t},${a}%,${l}%,${this.a})`:`hsl(${t},${a}%,${l}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,a,l){let c=this.clone();return c[t]=limitRange(a,l),c}_c(t){return new this.constructor(t)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){let a=t.replace("#","");function connectNum(t,l){return parseInt(a[t]+a[l||t],16)}a.length<6?(this.r=connectNum(0),this.g=connectNum(1),this.b=connectNum(2),this.a=a[3]?connectNum(3)/255:1):(this.r=connectNum(0,1),this.g=connectNum(2,3),this.b=connectNum(4,5),this.a=a[6]?connectNum(6,7)/255:1)}fromHsl({h:t,s:a,l,a:c}){if(this._h=t%360,this._s=a,this._l=l,this.a="number"==typeof c?c:1,a<=0){let t=d(255*l);this.r=t,this.g=t,this.b=t}let p=0,f=0,h=0,g=t/60,_=(1-Math.abs(2*l-1))*a,S=_*(1-Math.abs(g%2-1));g>=0&&g<1?(p=_,f=S):g>=1&&g<2?(p=S,f=_):g>=2&&g<3?(f=_,h=S):g>=3&&g<4?(f=S,h=_):g>=4&&g<5?(p=S,h=_):g>=5&&g<6&&(p=_,h=S);let w=l-_/2;this.r=d((p+w)*255),this.g=d((f+w)*255),this.b=d((h+w)*255)}fromHsv({h:t,s:a,v:l,a:c}){this._h=t%360,this._s=a,this._v=l,this.a="number"==typeof c?c:1;let p=d(255*l);if(this.r=p,this.g=p,this.b=p,a<=0)return;let f=t/60,h=Math.floor(f),g=f-h,_=d(l*(1-a)*255),S=d(l*(1-a*g)*255),w=d(l*(1-a*(1-g))*255);switch(h){case 0:this.g=w,this.b=_;break;case 1:this.r=S,this.b=_;break;case 2:this.r=_,this.b=w;break;case 3:this.r=_,this.g=S;break;case 4:this.r=w,this.g=_;break;default:this.g=_,this.b=S}}fromHsvString(t){let a=splitColorStr(t,parseHSVorHSL);this.fromHsv({h:a[0],s:a[1],v:a[2],a:a[3]})}fromHslString(t){let a=splitColorStr(t,parseHSVorHSL);this.fromHsl({h:a[0],s:a[1],l:a[2],a:a[3]})}fromRgbString(t){let a=splitColorStr(t,(t,a)=>a.includes("%")?d(t/100*255):t);this.r=a[0],this.g=a[1],this.b=a[2],this.a=a[3]}}},98399:function(t,a,l){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var c=(0,l(67294).createContext)({});a.default=c},13594:function(t,a,l){"use strict";var c=l(75263).default;Object.defineProperty(a,"__esModule",{value:!0}),a.devUseWarning=a.default=a.WarningContext=void 0,a.noop=noop,a.resetWarned=function(){(0,p.resetWarned)()};var d=c(l(67294)),p=c(l(45520));function noop(){}a.WarningContext=d.createContext({}),a.devUseWarning=()=>{let noopWarning=()=>{};return noopWarning.deprecated=noop,noopWarning},a.default=noop},1028:function(t,a,l){"use strict";var c=l(64836).default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var d=c(l(25633));a.default=d.default},93319:function(t,a,l){"use strict";var c=l(75263).default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=a.DisabledContextProvider=void 0;var d=c(l(67294));let p=d.createContext(!1);a.DisabledContextProvider=t=>{let{children:a,disabled:l}=t,c=d.useContext(p);return d.createElement(p.Provider,{value:null!=l?l:c},a)},a.default=p},16722:function(t,a,l){"use strict";var c=l(75263).default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(t){let{children:a}=t,[,l]=(0,f.useToken)(),{motion:c}=l,h=d.useRef(!1);
1return(h.current=h.current||!1===c,h.current)?d.createElement(p.Provider,{motion:c},a):a};var d=c(l(67294)),p=l(29372),f=l(3184)},11380:function(t,a,l){"use strict";var c=l(75263).default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,c(l(67294)),l(13594),a.default=()=>null},3236:function(t,a,l){"use strict";var c=l(75263).default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=a.SizeContextProvider=void 0;var d=c(l(67294));let p=d.createContext(void 0);a.SizeContextProvider=t=>{let{children:a,size:l}=t,c=d.useContext(p);return d.createElement(p.Provider,{value:l||c},a)},a.default=p},7177:function(t,a,l){"use strict";var c=l(75263).default;Object.defineProperty(a,"__esModule",{value:!0}),a.defaultPrefixCls=a.defaultIconPrefixCls=a.Variants=a.ConfigContext=a.ConfigConsumer=void 0;var d=c(l(67294));let p=a.defaultPrefixCls="ant",f=a.defaultIconPrefixCls="anticon";a.Variants=["outlined","borderless","filled"];let h=a.ConfigContext=d.createContext({getPrefixCls:(t,a)=>a||(t?`${p}-${t}`:p),iconPrefixCls:f}),{Consumer:g}=h;a.ConfigConsumer=g},56301:function(t,a,l){"use strict";var c=l(64836).default;Object.defineProperty(a,"__esModule",{value:!0}),a.getStyle=getStyle,a.registerTheme=function(t,a){let l=getStyle(t,a);(0,f.default)()&&(0,h.updateCSS)(l,`${g}-dynamic-theme`)};var d=l(84898),p=l(15063),f=c(l(19158)),h=l(93399);c(l(13594));let g=`-ant-${Date.now()}-${Math.random()}`;function getStyle(t,a){let l={},formatColor=(t,a)=>{let l=t.clone();return(l=(null==a?void 0:a(l))||l).toRgbString()},fillColor=(t,a)=>{let c=new p.FastColor(t),f=(0,d.generate)(c.toRgbString());l[`${a}-color`]=formatColor(c),l[`${a}-color-disabled`]=f[1],l[`${a}-color-hover`]=f[4],l[`${a}-color-active`]=f[6],l[`${a}-color-outline`]=c.clone().setA(.2).toRgbString(),l[`${a}-color-deprecated-bg`]=f[0],l[`${a}-color-deprecated-border`]=f[2]};if(a.primaryColor){fillColor(a.primaryColor,"primary");let t=new p.FastColor(a.primaryColor),c=(0,d.generate)(t.toRgbString());c.forEach((t,a)=>{l[`primary-${a+1}`]=t}),l["primary-color-deprecated-l-35"]=formatColor(t,t=>t.lighten(35)),l["primary-color-deprecated-l-20"]=formatColor(t,t=>t.lighten(20)),l["primary-color-deprecated-t-20"]=formatColor(t,t=>t.tint(20)),l["primary-color-deprecated-t-50"]=formatColor(t,t=>t.tint(50)),l["primary-color-deprecated-f-12"]=formatColor(t,t=>t.setA(.12*t.a));let f=new p.FastColor(c[0]);l["primary-color-active-deprecated-f-30"]=formatColor(f,t=>t.setA(.3*t.a)),l["primary-color-active-deprecated-d-02"]=formatColor(f,t=>t.darken(2))}a.successColor&&fillColor(a.successColor,"success"),a.warningColor&&fillColor(a.warningColor,"warning"),a.errorColor&&fillColor(a.errorColor,"error"),a.infoColor&&fillColor(a.infoColor,"info");let c=Object.keys(l).map(a=>`--${t}-${a}: ${l[a]};`);return`
2  :root {
3    ${c.join("\n")}
4  }
5  `.trim()}},5819:function(t,a,l){"use strict";var c=l(64836).default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var d=l(67294),p=c(l(93319)),f=c(l(3236));a.default=function(){let t=(0,d.useContext)(p.default),a=(0,d.useContext)(f.default);return{componentDisabled:t,componentSize:a}}},25494:function(t,a,l){"use strict";var c=l(64836).default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(t,a,l){var c;(0,f.devUseWarning)("ConfigProvider");let _=t||{},S=!1!==_.inherit&&a?a:Object.assign(Object.assign({},h.defaultConfig),{hashed:null!==(c=null==a?void 0:a.hashed)&&void 0!==c?c:h.defaultConfig.hashed,cssVar:null==a?void 0:a.cssVar}),w=(0,g.default)();return(0,d.default)(()=>{var c,d;if(!t)return a;let p=Object.assign({},S.components);Object.keys(t.components||{}).forEach(a=>{p[a]=Object.assign(Object.assign({},p[a]),t.components[a])});let f=`css-var-${w.replace(/:/g,"")}`,h=(null!==(c=_.cssVar)&&void 0!==c?c:S.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==l?void 0:l.prefixCls},"object"==typeof S.cssVar?S.cssVar:{}),"object"==typeof _.cssVar?_.cssVar:{}),{key:"object"==typeof _.cssVar&&(null===(d=_.cssVar)||void 0===d?void 0:d.key)||f});return Object.assign(Object.assign(Object.assign({},S),_),{token:Object.assign(Object.assign({},S.token),_.token),components:p,cssVar:h})},[_,S],(t,a)=>t.some((t,l)=>{let c=a[l];return!(0,p.default)(t,c,!0)}))};var d=c(l(67265)),p=c(l(11102)),f=l(13594),h=l(3184),g=c(l(78459))},78459:function(t,a,l){"use strict";var c=l(75263).default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var d=c(l(67294));let p=Object.assign({},d),{useId:f}=p;a.default=void 0===f?()=>"":f},31929:function(t,a,l){"use strict";let c,d,p,f;var h=l(64836).default,g=l(75263).default;Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"ConfigConsumer",{enumerable:!0,get:function(){return ei.ConfigConsumer}}),Object.defineProperty(a,"ConfigContext",{enumerable:!0,get:function(){return ei.ConfigContext}}),Object.defineProperty(a,"Variants",{enumerable:!0,get:function(){return ei.Variants}}),a.default=a.configConsumerProps=void 0,Object.defineProperty(a,"defaultIconPrefixCls",{enumerable:!0,get:function(){return ei.defaultIconPrefixCls}}),Object.defineProperty(a,"defaultPrefixCls",{enumerable:!0,get:function(){return ei.defaultPrefixCls}}),a.warnContext=a.globalConfig=void 0;var _=g(l(67294)),S=l(861),w=h(l(98399)),k=h(l(67265)),E=l(20059),x=g(l(13594)),B=h(l(2197)),H=g(l(24522)),U=h(l(44805)),J=h(l(18253)),er=l(89329),en=h(l(98411)),ei=l(7177),ea=l(56301),el=l(93319),ec=h(l(5819)),eu=h(l(25494)),ed=h(l(16722)),ep=h(l(11380)),ef=g(l(3236)),eh=h(l(82932)),__rest=function(t,a){var l={};for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&0>a.indexOf(c)&&(l[c]=t[c]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var d=0,c=Object.getOwnPropertySymbols(t);d<c.length;d++)0>
5a.indexOf(c[d])&&Object.prototype.propertyIsEnumerable.call(t,c[d])&&(l[c[d]]=t[c[d]]);return l};a.warnContext=null,a.configConsumerProps=["getTargetContainer","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale"];let eg=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];function getGlobalPrefixCls(){return c||ei.defaultPrefixCls}function getGlobalIconPrefixCls(){return d||ei.defaultIconPrefixCls}a.globalConfig=()=>({getPrefixCls:(t,a)=>a||(t?`${getGlobalPrefixCls()}-${t}`:getGlobalPrefixCls()),getIconPrefixCls:getGlobalIconPrefixCls,getRootPrefixCls:()=>c||getGlobalPrefixCls(),getTheme:()=>p,holderRender:f});let ProviderChildren=t=>{let{children:a,csp:l,autoInsertSpaceInButton:c,alert:d,anchor:p,form:f,locale:h,componentSize:g,direction:U,space:ea,splitter:ec,virtual:em,dropdownMatchSelectWidth:ev,popupMatchSelectWidth:ey,popupOverflow:e_,legacyLocale:eb,parentContext:eS,iconPrefixCls:ew,theme:ek,componentDisabled:eE,segmented:eC,statistic:ex,spin:eT,calendar:eI,carousel:eO,cascader:eR,collapse:eM,typography:eP,checkbox:eA,descriptions:eF,divider:eD,drawer:eN,skeleton:eL,steps:ej,image:e$,layout:eB,list:eH,mentions:eW,modal:eq,progress:eV,result:ez,slider:eU,breadcrumb:eZ,menu:eG,pagination:eQ,input:eK,textArea:eX,empty:eJ,badge:eY,radio:e0,rate:e1,switch:e2,transfer:e3,avatar:e5,message:e6,tag:e8,table:e4,card:e9,tabs:e7,timeline:tr,timePicker:tn,upload:to,notification:ta,tree:ts,colorPicker:tl,datePicker:tc,rangePicker:tu,flex:td,wave:tp,dropdown:tf,warning:th,tour:tg,tooltip:tm,popover:tv,popconfirm:ty,floatButtonGroup:t_,variant:tb,inputNumber:tS,treeSelect:tw}=t,tk=_.useCallback((a,l)=>{let{prefixCls:c}=t;if(l)return l;let d=c||eS.getPrefixCls("");return a?`${d}-${a}`:d},[eS.getPrefixCls,t.prefixCls]),tE=ew||eS.iconPrefixCls||ei.defaultIconPrefixCls,tC=l||eS.csp;(0,eh.default)(tE,tC);let tx=(0,eu.default)(ek,eS.theme,{prefixCls:tk("")}),tT={csp:tC,autoInsertSpaceInButton:c,alert:d,anchor:p,locale:h||eb,direction:U,space:ea,splitter:ec,virtual:em,popupMatchSelectWidth:null!=ey?ey:ev,popupOverflow:e_,getPrefixCls:tk,iconPrefixCls:tE,theme:tx,segmented:eC,statistic:ex,spin:eT,calendar:eI,carousel:eO,cascader:eR,collapse:eM,typography:eP,checkbox:eA,descriptions:eF,divider:eD,drawer:eN,skeleton:eL,steps:ej,image:e$,input:eK,textArea:eX,layout:eB,list:eH,mentions:eW,modal:eq,progress:eV,result:ez,slider:eU,breadcrumb:eZ,menu:eG,pagination:eQ,empty:eJ,badge:eY,radio:e0,rate:e1,switch:e2,transfer:e3,avatar:e5,message:e6,tag:e8,table:e4,card:e9,tabs:e7,timeline:tr,timePicker:tn,upload:to,notification:ta,tree:ts,colorPicker:tl,datePicker:tc,rangePicker:tu,flex:td,wave:tp,dropdown:tf,warning:th,tour:tg,tooltip:tm,popover:tv,popconfirm:ty,floatButtonGroup:t_,variant:tb,inputNumber:tS,treeSelect:tw},tI=Object.assign({},eS);Object.keys(tT).forEach(t=>{void 0!==tT[t]&&(tI[t]=tT[t])}),eg.forEach(a=>{let l=t[a];l&&(tI[a]=l)}),void 0!==c&&(tI.button=Object.assign({autoInsertSpace:c},tI.button));let tO=(0,k.default)(()=>tI,tI,(t,a)=>{let l=Object.keys(t),c=Object.keys(a);return l.length!==c.length||l.some(l=>t[l]!==a[l])}),{layer:tR}=_.useContext(S.StyleContext),tM=_.useMemo(()=>({prefixCls:tE,csp:tC,layer:tR?"antd":void 0}),[tE,tC,tR]),tP=_.createElement(_.Fragment,null,_.createElement(ep.default,{dropdownMatchSelectWidth:ev}),a),tA=_.useMemo(()=>{var t,a,l,c;return(0,E.merge)((null===(t=J.default.Form)||void 0===t?void 0:t.defaultValidateMessages)||{},(null===(l=null===(a=tO.locale)||void 0===a?void 0:a.Form)||void 0===l?void 0:l.defaultValidateMessages)||{},(null===(c=tO.form)||void 0===c?void 0:c.validateMessages)||{},(null==f?void 0:f.validateMessages)||{})},[tO,null==f?void 0:f.validateMessages]);Object.keys(tA).length>0&&(tP=_.createElement(B.default.Provider,{value:tA},tP)),h&&(tP=_.createElement(H.default,{locale:h,_ANT_MARK__:H.ANT_MARK},tP)),(tE||tC)&&(tP=_.createElement(w.default.Provider,{value:tM},tP)),g&&(tP=_.createElement(ef.SizeContextProvider,{size:g},tP)),tP=_.createElement(ed.default,null,tP);let tF=_.useMemo(()=>{let t=tx||{},{algorithm:a,token:l,components:c,cssVar:d}=t,p=__rest(t,["algorithm","token","components","cssVar"]),f=a&&(!Array.isArray(a)||a.length>0)?(0,S.createTheme)(a):er.defaultTheme,h={};Object.entries(c||{}
5).forEach(t=>{let[a,l]=t,c=Object.assign({},l);"algorithm"in c&&(!0===c.algorithm?c.theme=f:(Array.isArray(c.algorithm)||"function"==typeof c.algorithm)&&(c.theme=(0,S.createTheme)(c.algorithm)),delete c.algorithm),h[a]=c});let g=Object.assign(Object.assign({},en.default),l);return Object.assign(Object.assign({},p),{theme:f,token:g,components:h,override:Object.assign({override:g},h),cssVar:d})},[tx]);return ek&&(tP=_.createElement(er.DesignTokenContext.Provider,{value:tF},tP)),tO.warning&&(tP=_.createElement(x.WarningContext.Provider,{value:tO.warning},tP)),void 0!==eE&&(tP=_.createElement(el.DisabledContextProvider,{disabled:eE},tP)),_.createElement(ei.ConfigContext.Provider,{value:tO},tP)},ConfigProvider=t=>{let a=_.useContext(ei.ConfigContext),l=_.useContext(U.default);return _.createElement(ProviderChildren,Object.assign({parentContext:a,legacyLocale:l},t))};ConfigProvider.ConfigContext=ei.ConfigContext,ConfigProvider.SizeContext=ef.default,ConfigProvider.config=t=>{let{prefixCls:a,iconPrefixCls:l,theme:h,holderRender:g}=t;void 0!==a&&(c=a),void 0!==l&&(d=l),"holderRender"in t&&(f=g),h&&(Object.keys(h).some(t=>t.endsWith("Color"))?(0,ea.registerTheme)(getGlobalPrefixCls(),h):p=h)},ConfigProvider.useConfig=ec.default,Object.defineProperty(ConfigProvider,"SizeContext",{get:()=>ef.default}),a.default=ConfigProvider},82932:function(t,a,l){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return c.useResetIconStyle}});var c=l(3184)},25633:function(t,a,l){"use strict";var c=l(64836).default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var d=c(l(27590)),p=c(l(52040));let f={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},d.default),timePickerLocale:Object.assign({},p.default)};a.default=f},2197:function(t,a,l){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var c=l(67294);a.default=(0,c.createContext)(void 0)},44805:function(t,a,l){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var c=l(67294);let d=(0,c.createContext)(void 0);a.default=d},18253:function(t,a,l){"use strict";var c=l(64836).default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var d=c(l(62273)),p=c(l(1028)),f=c(l(25633)),h=c(l(52040));let g="${label} is not a valid ${type}",_={locale:"en",Pagination:d.default,DatePicker:f.default,TimePicker:h.default,Calendar:p.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label}
5 date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:g,method:g,array:g,object:g,number:g,date:g,boolean:g,integer:g,float:g,regexp:g,email:g,url:g,hex:g},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};a.default=_},24522:function(t,a,l){"use strict";var c=l(64836).default,d=l(75263).default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=a.ANT_MARK=void 0,Object.defineProperty(a,"useLocale",{enumerable:!0,get:function(){return g.default}});var p=d(l(67294));l(13594);var f=l(10625),h=c(l(44805)),g=c(l(76647));a.ANT_MARK="internalMark",a.default=t=>{let{locale:a={},children:l,_ANT_MARK__:c}=t;p.useEffect(()=>{let t=(0,f.changeConfirmLocale)(null==a?void 0:a.Modal);return t},[a]);let d=p.useMemo(()=>Object.assign(Object.assign({},a),{exist:!0}),[a]);return p.createElement(h.default.Provider,{value:d},l)}},76647:function(t,a,l){"use strict";var c=l(64836).default,d=l(75263).default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var p=d(l(67294)),f=c(l(44805)),h=c(l(18253));a.default=(t,a)=>{let l=p.useContext(f.default),c=p.useMemo(()=>{var c;let d=a||h.default[t],p=null!==(c=null==l?void 0:l[t])&&void 0!==c?c:{};return Object.assign(Object.assign({},"function"==typeof d?d():d),p||{})},[t,a,l]),d=p.useMemo(()=>{let t=null==l?void 0:l.locale;return(null==l?void 0:l.exist)&&!t?h.default.locale:t},[l]);return[c,d]}},10625:function(t,a,l){"use strict";var c=l(64836).default;Object.defineProperty(a,"__esModule",{value:!0}),a.changeConfirmLocale=function(t){if(t){let a=Object.assign({},t);return f.push(a),p=generateLocale(),()=>{f=f.filter(t=>t!==a),p=generateLocale()}}p=Object.assign({},d.default.Modal)},a.getConfirmLocale=function(){return p};var d=c(l(18253));let p=Object.assign({},d.default.Modal),f=[],generateLocale=()=>f.reduce((t,a)=>Object.assign(Object.assign({},t),a),d.default.Modal)},98078:function(t,a,l){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.textEllipsis=a.resetIcon=a.resetComponent=a.operationUnit=a.genLinkStyle=a.genIconStyle=a.genFocusStyle=a.genFocusOutline=a.genCommonStyle=a.clearFix=void 0;var c=l(861);a.textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},a.resetComponent=function(t){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none",fontFamily:a?"inherit":t.fontFamily}};let resetIcon=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}});a.resetIcon=resetIcon,a.clearFix=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),a.genLinkStyle=t=>({a:{color:t.colorLink,textDecoration:t.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${t.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:t.colorLinkHover},"&:active":{color:t.colorLinkActive},"&:active, &:hover":{textDecoration:t.linkHoverDecoration,outline:0},"&:focus":{textDecoration:t.linkFocusDecoration,outline:0},"&[disabled]":{color:t.colorTextDisabled,cursor:"not-allowed"}}}),a.genCommonStyle=(t,a,l,c)=>{let d=`[class^="${a}"], [class*=" ${a}"]`,p=l?`.${l}`:d,f={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},h={};return!1!==c&&(h={fontFamily:t.fontFamily,fontSize:t.fontSize}),{[p]:Object.assign(Object.assign(Object.assign({},h),f),{[d]:f})}};let genFocusOutline=(t,a)=>({outline:`${(0,c.unit)(t.lineWidthFocus)} solid ${t.colorPrimaryBorder}`,outlineOffset:null!=a?a:1,transition:"outline-offset 0s, outline 0s"});a.genFocusOutline=genFocusOutline;let genFocusStyle=(t,a)=>({"&:focus-visible":Object.assign({},genFocusOutline(t,a))});a.genFocusStyle=genFocusStyle,a.genIconStyle=t=>({[`.${t}`]:Object.assign(Object.assign({},resetIcon()),{[`.${t} .${t}-icon`]:{display:"block"}})}),a.operationUnit=t=>Object.assign(Object.assign({color:t.colorLink,textDecoration:t.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${t.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},genFocusStyle(t)),{"&:focus, &:hover":{color:t.colorLinkHover},"&:active":{color:t.colorLinkActive}})},89329:function(t,a,l){"use strict";var c=l(64836).default;Object.defineProperty(a,"__esModule",{value:!0}),a.defaultConfig=a.DesignTokenContext=void 0,Object.defineProperty(a,"defaultTheme",{enumerable:!0,get:function(){return f.default}});var d=c(l(67294)),p=c(l(98411)),f=c(l(5919));let h=a.defaultConfig={token:p.default,override:{override:p.default},hashed:!0};a.DesignTokenContext=d.default.createContext(h)},36496:function(t,a,l){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"PresetColors",{enumerable:!0,get:function(){return c.PresetColors}});var c=l(81342)},81342:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.PresetColors=void 0,a.PresetColors=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},3184:function(t,a,l){"use strict";var c=l(64836).default;Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"DesignTokenContext",{enumerable:!0,get:function(){return k.DesignTokenContext}}),Object.defineProperty(a,"PresetColors",{enumerable:!0,get:function(){return f.PresetColors}}),Object.defineProperty(a,"calc",{enumerable:!0,get:function(){return p.genCalc}}),Object.defineProperty(a,"defaultConfig",{enumerable:!0,get:function(){return k.defaultConfig}}),Object.defineProperty(a,"genComponentStyleHook",{enumerable:!0,get:function(){return _.genComponentStyleHook}}),Object.defineProperty(a,"genPresetColor",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(a,"genStyleHooks",{enumerable:!0,get:function(){return _.genStyleHooks}}),Object.defineProperty(a,"genSubStyleComponent",{enumerable:!0,get:function(){return _.genSubStyleComponent}}),Object.defineProperty(a,"getLineHeight",{enumerable:!0,get:function(){return h.getLineHeight}}),Object.defineProperty(a,"mergeToken",{enumerable:!0,get:function(){return p.mergeToken}}),Object.defineProperty(a,"statistic",{enumerable:!0,get:function(){return p.statistic}}),Object.defineProperty(a,"statisticToken",{enumerable:!0,get:function(){return p.statisticToken}}),Object.defineProperty(a,"useResetIconStyle",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(a,"useStyleRegister",{enumerable:!0,get:function(){return d.useStyleRegister}}),Object.defineProperty(a,"useToken",{enumerable:!0,get:function(){return g.default}});var d=l(861),p=l(83262),f=l(36496),h=l(62231),g=c(l(41401)),_=l(24225),S=c(l(36219)),w=c(l(54894)),k=l(89329)},26162:function(t,a,l){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getSolidColor=a.getAlphaColor=void 0;var c=l(15063);a.getAlphaColor=(t,a)=>new c.FastColor(t).setA(a).toRgbString(),a.getSolidColor=(t,a)=>{let l=new c.FastColor(t);return l.darken(a).toHexString()}},80373:function(t,a,l){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.generateNeutralColorPalettes=a.generateColorPalettes=void 0;var c=l(84898),d=l(26162);a.generateColorPalettes=t=>{let a=(0,c.generate)(t);return{1:a[0],2:a[1],3:a[2],4:a[3],5:a[4],6:a[5],7:a[6],8:a[4],9:a[5],10:a[6]}},a.generateNeutralColorPalettes=(t,a)=>{let l=t||"#fff",c=a||"#000";return{colorBgBase:l,colorTextBase:c,colorText:(0,d.getAlphaColor)(c,.88),colorTextSecondary:(0,d.getAlphaColor)(c,.65),colorTextTertiary:(0,d.getAlphaColor)(c,.45),colorTextQuaternary:(0,d.getAlphaColor)(c,.25),colorFill:(0,d.getAlphaColor)(c,.15),colorFillSecondary:(0,d.getAlphaColor)(c,.06),colorFillTertiary:(0,d.getAlphaColor)(c,.04),colorFillQuaternary:(0,d.getAlphaColor)(c,.02),colorBgSolid:(0,d.getAlphaColor)(c,1),colorBgSolidHover:(0,d.getAlphaColor)(c,.75),colorBgSolidActive:(0,d.getAlphaColor)(c,.95),colorBgLayout:(0,d.getSolidColor)(l,4),colorBgContainer:(0,d.getSolidColor)(l,0),colorBgElevated:(0,d.getSolidColor)(l,0),colorBgSpotlight:(0,d.getAlphaColor)(c,.85),colorBgBlur:"transparent",colorBorder:(0,d.getSolidColor)(l,15),colorBorderSecondary:(0,d.getSolidColor)(l,6)}}},9924:function(t,a,l){"use strict";var c=l(64836).default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(t){d.presetPrimaryColors.pink=d.presetPrimaryColors.magenta,d.presetPalettes.pink=d.presetPalettes.magenta;let a=Object.keys(p.defaultPresetColors).map(a=>{let l=t[a]===d.presetPrimaryColors[a]?d.presetPalettes[a]:(0,d.generate)(t[a]);return Array(10).fill(1).reduce((t,c,d)=>(t[`${a}-${d+1}`]=l[d],t[`${a}${d+1}`]=l[d],t),{})}).reduce((t,a)=>t=Object.assign(Object.assign({},t),a),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),a),(0,f.default)(t,{generateColorPalettes:w.generateColorPalettes,generateNeutralColorPalettes:w.generateNeutralColorPalettes})),(0,_.default)(t.fontSize)),(0,S.default)(t)),(0,g.default)(t)),(0,h.default)(t))};var d=l(84898),p=l(98411),f=c(l(10805)),h=c(l(81594)),g=c(l(54730)),_=c(l(69853)),S=c(l(19216)),w=l(80373)},5919:function(t,a,l){"use strict";var c=l(64836).default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var d=l(861),p=c(l(9924));let f=(0,d.createTheme)(p.default);a.default=f},98411:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.defaultPresetColors=a.default=void 0;let l=a.defaultPresetColors={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},c=Object.assign(Object.assign({},l),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
6'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
7'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cub
7ic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});a.default=c},10805:function(t,a,l){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(t,a){let{generateColorPalettes:l,generateNeutralColorPalettes:d}=a,{colorSuccess:p,colorWarning:f,colorError:h,colorInfo:g,colorPrimary:_,colorBgBase:S,colorTextBase:w}=t,k=l(_),E=l(p),x=l(f),B=l(h),H=l(g),U=d(S,w),J=t.colorLink||t.colorInfo,er=l(J),en=new c.FastColor(B[1]).mix(new c.FastColor(B[3]),50).toHexString();return Object.assign(Object.assign({},U),{colorPrimaryBg:k[1],colorPrimaryBgHover:k[2],colorPrimaryBorder:k[3],colorPrimaryBorderHover:k[4],colorPrimaryHover:k[5],colorPrimary:k[6],colorPrimaryActive:k[7],colorPrimaryTextHover:k[8],colorPrimaryText:k[9],colorPrimaryTextActive:k[10],colorSuccessBg:E[1],colorSuccessBgHover:E[2],colorSuccessBorder:E[3],colorSuccessBorderHover:E[4],colorSuccessHover:E[4],colorSuccess:E[6],colorSuccessActive:E[7],colorSuccessTextHover:E[8],colorSuccessText:E[9],colorSuccessTextActive:E[10],colorErrorBg:B[1],colorErrorBgHover:B[2],colorErrorBgFilledHover:en,colorErrorBgActive:B[3],colorErrorBorder:B[3],colorErrorBorderHover:B[4],colorErrorHover:B[5],colorError:B[6],colorErrorActive:B[7],colorErrorTextHover:B[8],colorErrorText:B[9],colorErrorTextActive:B[10],colorWarningBg:x[1],colorWarningBgHover:x[2],colorWarningBorder:x[3],colorWarningBorderHover:x[4],colorWarningHover:x[4],colorWarning:x[6],colorWarningActive:x[7
7],colorWarningTextHover:x[8],colorWarningText:x[9],colorWarningTextActive:x[10],colorInfoBg:H[1],colorInfoBgHover:H[2],colorInfoBorder:H[3],colorInfoBorderHover:H[4],colorInfoHover:H[4],colorInfo:H[6],colorInfoActive:H[7],colorInfoTextHover:H[8],colorInfoText:H[9],colorInfoTextActive:H[10],colorLinkHover:er[4],colorLink:er[6],colorLinkActive:er[7],colorBgMask:new c.FastColor("#000").setA(.45).toRgbString(),colorWhite:"#fff"})};var c=l(15063)},81594:function(t,a,l){"use strict";var c=l(64836).default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(t){let{motionUnit:a,motionBase:l,borderRadius:c,lineWidth:p}=t;return Object.assign({motionDurationFast:`${(l+a).toFixed(1)}s`,motionDurationMid:`${(l+2*a).toFixed(1)}s`,motionDurationSlow:`${(l+3*a).toFixed(1)}s`,lineWidthBold:p+1},(0,d.default)(c))};var d=c(l(78117))},54730:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,a.default=t=>{let{controlHeight:a}=t;return{controlHeightSM:.75*a,controlHeightXS:.5*a,controlHeightLG:1.25*a}}},69853:function(t,a,l){"use strict";var c=l(64836).default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var d=c(l(62231));a.default=t=>{let a=(0,d.default)(t),l=a.map(t=>t.size),c=a.map(t=>t.lineHeight),p=l[1],f=l[0],h=l[2],g=c[1],_=c[0],S=c[2];return{fontSizeSM:f,fontSize:p,fontSizeLG:h,fontSizeXL:l[3],fontSizeHeading1:l[6],fontSizeHeading2:l[5],fontSizeHeading3:l[4],fontSizeHeading4:l[3],fontSizeHeading5:l[2],lineHeight:g,lineHeightLG:S,lineHeightSM:_,fontHeight:Math.round(g*p),fontHeightLG:Math.round(S*h),fontHeightSM:Math.round(_*f),lineHeightHeading1:c[6],lineHeightHeading2:c[5],lineHeightHeading3:c[4],lineHeightHeading4:c[3],lineHeightHeading5:c[2]}}},62231:function(t,a){"use strict";function getLineHeight(t){return(t+8)/t}Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(t){let a=Array(10).fill(null).map((a,l)=>{let c=t*Math.pow(Math.E,(l-1)/5),d=l>1?Math.floor(c):Math.ceil(c);return 2*Math.floor(d/2)});return a[1]=t,a.map(t=>({size:t,lineHeight:getLineHeight(t)}))},a.getLineHeight=getLineHeight},78117:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,a.default=t=>{let a=t,l=t,c=t,d=t;return t<6&&t>=5?a=t+1:t<16&&t>=6?a=t+2:t>=16&&(a=16),t<7&&t>=5?l=4:t<8&&t>=7?l=5:t<14&&t>=8?l=6:t<16&&t>=14?l=7:t>=16&&(l=8),t<6&&t>=2?c=1:t>=6&&(c=2),t>4&&t<8?d=4:t>=8&&(d=6),{borderRadius:t,borderRadiusXS:c,borderRadiusSM:l,borderRadiusLG:a,borderRadiusOuter:d}}},19216:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(t){let{sizeUnit:a,sizeStep:l}=t;return{sizeXXL:a*(l+8),sizeXL:a*(l+4),sizeLG:a*(l+2),sizeMD:a*(l+1),sizeMS:a*l,size:a*l,sizeSM:a*(l-1),sizeXS:a*(l-2),sizeXXS:a*(l-3)}}},41401:function(t,a,l){"use strict";var c=l(64836).default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(){let{token:t,hashed:a,theme:l,override:c,cssVar:E}=d.default.useContext(h.DesignTokenContext),x=`${f.default}-${a||""}`,B=l||h.defaultTheme,[H,U,J]=(0,p.useCacheToken)(B,[g.default,t],{salt:x,override:c,getComputedToken,formatToken:_.default,cssVar:E&&{prefix:E.prefix,key:E.key,unitless:S,ignore:w,preserve:k}});return[B,J,a?U:"",H,E]},a.unitless=a.ignore=a.getComputedToken=void 0;var d=c(l(67294)),p=l(861),f=c(l(87629)),h=l(89329),g=c(l(98411)),_=c(l(27722)),__rest=function(t,a){var l={};for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&0>a.indexOf(c)&&(l[c]=t[c]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var d=0,c=Object.getOwnPropertySymbols(t);d<c.length;d++)0>a.indexOf(c[d])&&Object.prototype.propertyIsEnumerable.call(t,c[d])&&(l[c[d]]=t[c[d]]);return l};let S=a.unitless={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},w=a.ignore={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},k={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},getComputedToken=(t,a,l)=>{let c=l.getDerivativeToken(t),{override:d}=a,p=__rest(a,["override"]),f=Object.assign(Object.assign({},c),{override:d});
7return f=(0,_.default)(f),p&&Object.entries(p).forEach(t=>{let[a,l]=t,{theme:c}=l,d=__rest(l,["theme"]),p=d;c&&(p=getComputedToken(Object.assign(Object.assign({},f),d),{override:d},c)),f[a]=p}),f};a.getComputedToken=getComputedToken},27722:function(t,a,l){"use strict";var c=l(64836).default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(t){let{override:a}=t,l=__rest(t,["override"]),c=Object.assign({},a);Object.keys(p.default).forEach(t=>{delete c[t]});let h=Object.assign(Object.assign({},l),c);!1===h.motion&&(h.motionDurationFast="0s",h.motionDurationMid="0s",h.motionDurationSlow="0s");let g=Object.assign(Object.assign(Object.assign({},h),{colorFillContent:h.colorFillSecondary,colorFillContentHover:h.colorFill,colorFillAlter:h.colorFillQuaternary,colorBgContainerDisabled:h.colorFillTertiary,colorBorderBg:h.colorBgContainer,colorSplit:(0,f.default)(h.colorBorderSecondary,h.colorBgContainer),colorTextPlaceholder:h.colorTextQuaternary,colorTextDisabled:h.colorTextQuaternary,colorTextHeading:h.colorText,colorTextLabel:h.colorTextSecondary,colorTextDescription:h.colorTextTertiary,colorTextLightSolid:h.colorWhite,colorHighlight:h.colorError,colorBgTextHover:h.colorFillSecondary,colorBgTextActive:h.colorFill,colorIcon:h.colorTextTertiary,colorIconHover:h.colorText,colorErrorOutline:(0,f.default)(h.colorErrorBg,h.colorBgContainer),colorWarningOutline:(0,f.default)(h.colorWarningBg,h.colorBgContainer),fontSizeIcon:h.fontSizeSM,lineWidthFocus:3*h.lineWidth,lineWidth:h.lineWidth,controlOutlineWidth:2*h.lineWidth,controlInteractiveSize:h.controlHeight/2,controlItemBgHover:h.colorFillTertiary,controlItemBgActive:h.colorPrimaryBg,controlItemBgActiveHover:h.colorPrimaryBgHover,controlItemBgActiveDisabled:h.colorFill,controlTmpOutline:h.colorFillQuaternary,controlOutline:(0,f.default)(h.colorPrimaryBg,h.colorBgContainer),lineType:h.lineType,borderRadius:h.borderRadius,borderRadiusXS:h.borderRadiusXS,borderRadiusSM:h.borderRadiusSM,borderRadiusLG:h.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:h.sizeXXS,paddingXS:h.sizeXS,paddingSM:h.sizeSM,padding:h.size,paddingMD:h.sizeMD,paddingLG:h.sizeLG,paddingXL:h.sizeXL,paddingContentHorizontalLG:h.sizeLG,paddingContentVerticalLG:h.sizeMS,paddingContentHorizontal:h.sizeMS,paddingContentVertical:h.sizeSM,paddingContentHorizontalSM:h.size,paddingContentVerticalSM:h.sizeXS,marginXXS:h.sizeXXS,marginXS:h.sizeXS,marginSM:h.sizeSM,margin:h.size,marginMD:h.sizeMD,marginLG:h.sizeLG,marginXL:h.sizeXL,marginXXL:h.sizeXXL,boxShadow:`
8      0 6px 16px 0 rgba(0, 0, 0, 0.08),
9      0 3px 6px -4px rgba(0, 0, 0, 0.12),
10      0 9px 28px 8px rgba(0, 0, 0, 0.05)
11    `,boxShadowSecondary:`
12      0 6px 16px 0 rgba(0, 0, 0, 0.08),
13      0 3px 6px -4px rgba(0, 0, 0, 0.12),
14      0 9px 28px 8px rgba(0, 0, 0, 0.05)
15    `,boxShadowTertiary:`
16      0 1px 2px 0 rgba(0, 0, 0, 0.03),
17      0 1px 6px -1px rgba(0, 0, 0, 0.02),
18      0 2px 4px 0 rgba(0, 0, 0, 0.02)
19    `,screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
20      0 1px 2px -2px ${new d.FastColor("rgba(0, 0, 0, 0.16)").toRgbString()},
21      0 3px 6px 0 ${new d.FastColor("rgba(0, 0, 0, 0.12)").toRgbString()},
22      0 5px 12px 4px ${new d.FastColor("rgba(0, 0, 0, 0.09)").toRgbString()}
23    `,boxShadowDrawerRight:`
24      -6px 0 16px 0 rgba(0, 0, 0, 0.08),
25      -3px 0 6px -4px rgba(0, 0, 0, 0.12),
26      -9px 0 28px 8px rgba(0, 0, 0, 0.05)
27    `,boxShadowDrawerLeft:`
28      6px 0 16px 0 rgba(0, 0, 0, 0.08),
29      3px 0 6px -4px rgba(0, 0, 0, 0.12),
30      9px 0 28px 8px rgba(0, 0, 0, 0.05)
31    `,boxShadowDrawerUp:`
32      0 6px 16px 0 rgba(0, 0, 0, 0.08),
33      0 3px 6px -4px rgba(0, 0, 0, 0.12),
34      0 9px 28px 8px rgba(0, 0, 0, 0.05)
35    `,boxShadowDrawerDown:`
36      0 -6px 16px 0 rgba(0, 0, 0, 0.08),
37      0 -3px 6px -4px rgba(0, 0, 0, 0.12),
38      0 -9px 28px 8px rgba(0, 0, 0, 0.05)
39    `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTo
39p:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),c);return g};var d=l(15063),p=c(l(98411)),f=c(l(83609)),__rest=function(t,a){var l={};for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&0>a.indexOf(c)&&(l[c]=t[c]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var d=0,c=Object.getOwnPropertySymbols(t);d<c.length;d++)0>a.indexOf(c[d])&&Object.prototype.propertyIsEnumerable.call(t,c[d])&&(l[c[d]]=t[c[d]]);return l}},36219:function(t,a,l){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(t,a){return c.PresetColors.reduce((l,c)=>{let d=t[`${c}1`],p=t[`${c}3`],f=t[`${c}6`],h=t[`${c}7`];return Object.assign(Object.assign({},l),a(c,{lightColor:d,lightBorderColor:p,darkColor:f,textColor:h}))},{})};var c=l(36496)},24225:function(t,a,l){"use strict";var c=l(75263).default;Object.defineProperty(a,"__esModule",{value:!0}),a.genSubStyleComponent=a.genStyleHooks=a.genComponentStyleHook=void 0;var d=l(67294),p=l(83262),f=l(7177),h=l(98078),g=c(l(41401));let{genStyleHooks:_,genComponentStyleHook:S,genSubStyleComponent:w}=(0,p.genStyleUtils)({usePrefix:()=>{let{getPrefixCls:t,iconPrefixCls:a}=(0,d.useContext)(f.ConfigContext),l=t();return{rootPrefixCls:l,iconPrefixCls:a}},useToken:()=>{let[t,a,l,c,d]=(0,g.default)();return{theme:t,realToken:a,hashId:l,token:c,cssVar:d}},useCSP:()=>{let{csp:t}=(0,d.useContext)(f.ConfigContext);return null!=t?t:{}},getResetStyles:(t,a)=>{var l;return[{"&":(0,h.genLinkStyle)(t)},(0,h.genIconStyle)(null!==(l=null==a?void 0:a.prefix.iconPrefixCls)&&void 0!==l?l:f.defaultIconPrefixCls)]},getCommonStyle:h.genCommonStyle,getCompUnitless:()=>g.unitless});a.genSubStyleComponent=w,a.genComponentStyleHook=S,a.genStyleHooks=_},83609:function(t,a,l){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var c=l(15063);function isStableColor(t){return t>=0&&t<=255}a.default=function(t,a){let{r:l,g:d,b:p,a:f}=new c.FastColor(t).toRgb();if(f<1)return t;let{r:h,g:g,b:_}=new c.FastColor(a).toRgb();for(let t=.01;t<=1;t+=.01){let a=Math.round((l-h*(1-t))/t),f=Math.round((d-g*(1-t))/t),S=Math.round((p-_*(1-t))/t);if(isStableColor(a)&&isStableColor(f)&&isStableColor(S))return new c.FastColor({r:a,g:f,b:S,a:Math.round(100*t)/100}).toRgbString()}return new c.FastColor({r:l,g:d,b:p,a:1}).toRgbString()}},54894:function(t,a,l){"use strict";var c=l(64836).default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var d=l(861),p=l(98078),f=c(l(41401));a.default=(t,a)=>{let[l,c]=(0,f.default)();return(0,d.useStyleRegister)({theme:l,token:c,hashId:"",path:["ant-design-icons",t],nonce:()=>null==a?void 0:a.nonce,layer:{name:"antd"}},()=>[(0,p.genIconStyle)(t)])}},52040:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,a.default={placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},87629:function(t,a,l){"use strict";var c=l(64836).default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var d=c(l(36245));a.default=d.default},36245:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,a.default="5.23.4"},91118:function(t,a,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return l(93731)}])},85847:function(t,a,l){"use strict";let c,d,p,f,h,g,_,S,w,k,E,x,B,H,U,J,er,en,ei;function _optionalChain(t){let a;let l=t[0],c=1;for(;c<t.length;){let d=t[c],p=t[c+1];if(c+=2,("optionalAccess"===d||"optionalCall"===d)&&null==l)return;"access"===d||"optionalAccess"===d?(a=l,l=p(l)):("call"===d||"optionalCall"===d)&&(l=p((...t)=>l.call(a,...t)),a=void 0)}return l}var ea,el,ec,eu,ed,ep,ef,eh,eg,em,ev,ey,e_=l(33280),eb=l(49889);function applySdkMetadata(t,a,l=[a],c="npm"){let d=t._metadata||{};d.sdk||(d.sdk={name:`sentry.javascript.${a}`,packages:l.map(t=>({name:`${c}:@sentry/${t}`,version:eb.J})),version:eb.J}),t._metadata=d}var eS=l(39424),ew=l(94223),ek=l(17986);let eE=[];function afterSetupIntegrations(t,a){for(let l of a)l&&l.afterAllSetup&&l.afterAllSetup(t)}function setupIntegration(t,a,l){if(l[a.name]){ew.X&&ek.kg.log(`Integration skipped because it was already installed: ${a.name}`);return}if(l[a.name]=a,-1===eE.indexOf(a.name)&&"function"==typeof a.setupOnce&&(a.setupOnce(),eE.push(a.name)),a.setup&&"function"==typeof a.setup&&a.setup(t),"function"==typeof a.preprocessEvent){let l=a.preprocessEvent.bind(a);t.on("preprocessEvent",(a,c)=>l(a,c,t))}if("function"==typeof a.processEvent){let l=a.processEvent.bind(a),c=Object.assign((a,c)=>l(a,c,t),{id:a.name});t.addEventProcessor(c)}ew.X&&ek.kg.log(`Integration installed: ${a.name}`)}var eC=l(82305),ex=l(50027);let eT=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],inboundFiltersIntegration=(t={})=>({name:"InboundFilters",processEvent(a,l,c){var d;let p=c.getOptions(),f=function(t={},a={}){return{allowUrls:[...t.allowUrls||[],...a.allowUrls||[]],denyUrls:[...t.denyUrls||[],...a.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...a.ignoreErrors||[],...t.disableErrorDefaults?[]:eT],ignoreTransactions:[...t.ignoreTransactions||[],...a.ignoreTransactions||[]],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(t,p);return(f.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(a)?(ew.X&&ek.kg.warn(`Event dropped due to being internal Sentry Error.
40Event: ${(0,eC.jH)(a)}`),0):(d=f.ignoreErrors,!a.type&&d&&d.length&&(function(t){let a;let l=[];t.message&&l.push(t.message);try{a=t.exception.values[t.exception.values.length-1]}catch(t){}return a&&a.value&&(l.push(a.value),a.type&&l.push(`${a.type}: ${a.value}`)),l})(a).some(t=>(0,ex.U0)(t,d)))?(ew.X&&ek.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
41Event: ${(0,eC.jH)(a)}`),0):a.type||!a.exception||!a.exception.values||0===a.exception.values.length||a.message||a.exception.values.some(t=>t.stacktrace||t.type&&"Error"!==t.type||t.value)?!function(t,a){if("transaction"!==t.type||!a||!a.length)return!1;let l=t.transaction;return!!l&&(0,ex.U0)(l,a)}(a,f.ignoreTransactions)?!function(t,a){if(!a||!a.length)return!1;let l=_getEventFilterUrl(t);return!!l&&(0,ex.U0)(l,a)}(a,f.denyUrls)?function(t,a){if(!a||!a.length)return!0;let l=_getEventFilterUrl(t);return!l||(0,ex.U0)(l,a)}(a,f.allowUrls)||(ew.X&&ek.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.
42Event: ${(0,eC.jH)(a)}.
43Url: ${_getEventFilterUrl(a)}`),0):(ew.X&&ek.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.
44Event: ${(0,eC.jH)(a)}.
45Url: ${_getEventFilterUrl(a)}`),0):(ew.X&&ek.kg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
46Event: ${(0,eC.jH)(a)}`),0):(ew.X&&ek.kg.warn(`Event dropped due to not having an error message, error type or stacktrace.
47Event: ${(0,eC.jH)(a)}`),0))?a:null}});function _getEventFilterUrl(t){try{let a;try{a=t.exception.values[0].stacktrace.frames}catch(t){}return a?function(t=[]){for(let a=t.length-1;a>=0;a--){let l=t[a];if(l&&"<anonymous>"!==l.filename&&"[native code]"!==l.filename)return l.filename||null}return null}(a):null}catch(a){return ew.X&&ek.kg.error(`Cannot extract url for event ${(0,eC.jH)(t)}`),null}}var eI=l(73076),eO=l(51150);let eR=new WeakMap,functionToStringIntegration=()=>({name:"FunctionToString",setupOnce(){c=Function.prototype.toString;try{Function.prototype.toString=function(...t){let a=(0,eO.HK)(this),l=eR.has((0,eI.s3)())&&void 0!==a?a:this;return c.apply(l,t)}}catch(t){}},setup(t){eR.set(t,!0)}});var eM=l(39649);let dedupeIntegration=()=>{let t;return{name:"Dedupe",processEvent(a){if(a.type)return a;try{var l;if((l=t)&&(function(t,a){let l=t.message,c=a.message;return!!((l||c)&&(!l||c)&&(l||!c)&&l===c&&_isSameFingerprint(t,a)&&_isSameStacktrace(t,a))}(a,l)||function(t,a){let l=_getExceptionFromEvent(a),c=_getExceptionFromEvent(t);return!!(l&&c&&l.type===c.type&&l.value===c.value&&_isSameFingerprint(t,a)&&_isSameStacktrace(t,a))}(a,l)))return ew.X&&ek.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){}return t=a}}};function _isSameStacktrace(t,a){let l=(0,eM.Fr)(t),c=(0,eM.Fr)(a);if(!l&&!c)return!0;
47if(l&&!c||!l&&c||c.length!==l.length)return!1;for(let t=0;t<c.length;t++){let a=c[t],d=l[t];if(a.filename!==d.filename||a.lineno!==d.lineno||a.colno!==d.colno||a.function!==d.function)return!1}return!0}function _isSameFingerprint(t,a){let l=t.fingerprint,c=a.fingerprint;if(!l&&!c)return!0;if(l&&!c||!l&&c)return!1;try{return!(l.join("")!==c.join(""))}catch(t){return!1}}function _getExceptionFromEvent(t){return t.exception&&t.exception.values&&t.exception.values[0]}var eP=l(23187);let eA=e_.GLOBAL_OBJ;function isNativeFunction(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}var eF=l(72123);let eD=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function dsn_dsnToString(t,a=!1){let{host:l,path:c,pass:d,port:p,projectId:f,protocol:h,publicKey:g}=t;return`${h}://${g}${a&&d?`:${d}`:""}@${l}${p?`:${p}`:""}/${c?`${c}/`:c}${f}`}function dsnFromString(t){let a=eD.exec(t);if(!a){(0,ek.Cf)(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}let[l,c,d="",p="",f="",h=""]=a.slice(1),g="",_=h,S=_.split("/");if(S.length>1&&(g=S.slice(0,-1).join("/"),_=S.pop()),_){let t=_.match(/^\d+/);t&&(_=t[0])}return dsnFromComponents({host:p,pass:d,path:g,projectId:_,port:f,protocol:l,publicKey:c})}function dsnFromComponents(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}var eN=l(90059);function createEnvelope(t,a=[]){return[t,a]}function forEachEnvelopeItem(t,a){let l=t[1];for(let t of l){let l=t[0].type,c=a(t,l);if(c)return!0}return!1}function encodeUTF8(t){return e_.GLOBAL_OBJ.__SENTRY__&&e_.GLOBAL_OBJ.__SENTRY__.encodePolyfill?e_.GLOBAL_OBJ.__SENTRY__.encodePolyfill(t):new TextEncoder().encode(t)}let eL={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function getSdkMetadataForEnvelopeHeader(t){if(!t||!t.sdk)return;let{name:a,version:l}=t.sdk;return{name:a,version:l}}function createEventEnvelopeHeaders(t,a,l,c){let d=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...a&&{sdk:a},...!!l&&c&&{dsn:dsn_dsnToString(c)},...d&&{trace:(0,eO.Jr)({...d})}}}var ej=l(81585),e$=l(10042),eB=l(59943);let SentryError=class SentryError extends Error{constructor(t,a="warn"){super(t),this.message=t,this.logLevel=a}};var eH=l(24925),eW=l(52340);function parseSampleRate(t){if("boolean"==typeof t)return Number(t);let a="string"==typeof t?parseFloat(t):t;if("number"!=typeof a||isNaN(a)||a<0||a>1){ew.X&&ek.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`);return}return a}var eq=l(47515);let eV="Not capturing exception because it's already been captured.";let BaseClient=class BaseClient{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=function(t){let a="string"==typeof t?dsnFromString(t):dsnFromComponents(t);if(a&&function(t){if(!eP.X)return!0;let{port:a,projectId:l,protocol:c}=t,d=["protocol","publicKey","host","projectId"].find(a=>!t[a]&&(ek.kg.error(`Invalid Sentry Dsn: ${a} missing`),!0));return!d&&(l.match(/^\d+$/)?"http"===c||"https"===c?!(a&&isNaN(parseInt(a,10)))||(ek.kg.error(`Invalid Sentry Dsn: Invalid port ${a}`),!1):(ek.kg.error(`Invalid Sentry Dsn: Invalid protocol ${c}`),!1):(ek.kg.error(`Invalid Sentry Dsn: Invalid projectId ${l}`),!1))}(a))return a}(t.dsn):ew.X&&ek.kg.warn("No DSN provided, client will not send events."),this._dsn){var a,l,c;let d=(a=this._dsn,l=t.tunnel,c=t._metadata?t._metadata.sdk:void 0,l||`${function(t){let a=t.protocol?`${t.protocol}:`:"",l=t.port?`:${t.port}`:"";return`${a}//${t.host}${l}${t.path?`/${t.path}`:""}/api/`}(a)}${a.projectId}/envelope/?${function(t,a){let l={sentry_version:"7"};return t.publicKey&&(l.sentry_key=t.publicKey),a&&(l.sentry_client=`${a.name}/${a.version}`),new URLSearchParams(l).toString()}(a,c)}`);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:d})}let d=["enableTracing","tracesSampleRate","tracesSampler"].find(a=>a in t&&void 0==t[a]);d&&(0,ek.Cf)(()=>{console.warn(`[Sentry] Deprecation warning: \`${d}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(t,a,l){let c=(0,eC.DM)();if((0,eC.YO)(t))return ew.X&&ek.kg.log(eV),c;let d={event_id:c,...a};return this._process(this.eventFromException(t,d).then(t=>this._captureEvent(t,d,l))),d.event_id}captureMessage(t,a,l,c){let d={event_id:(0,eC.DM)(),...l},p=(0,eH.Le)(t)?t:String(t),f=(0,eH.pt)(t)?this.eventFromMessage(p,a,d):this.eventFromException(t,d);return this._process(f.then(t=>this._captureEvent(t,d,c))),d.event_id}captureEvent(t,a,l){let c=(0,eC.DM)();if(a&&a.originalException&&(0,eC.YO)(a.originalException))return ew.X&&ek.kg.log(eV),c;let d={event_id:c,...a},p=t.sdkProcessingMetadata||{},f=p.capturedSpanScope;return this._process(this._captureEvent(t,d,f||l)),d.event_id}captureSession(t){"string"!=typeof t.release?ew.X&&ek.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),(0,e$.CT)(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){let a=this._transport;
47return a?(this.emit("flush"),this._isClientDoneProcessing(t).then(l=>a.flush(t).then(t=>l&&t))):(0,eW.WD)(!0)}close(t){return this.flush(t).then(t=>(this.getOptions().enabled=!1,this.emit("close"),t))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){let a=this._integrations[t.name];setupIntegration(this,t,this._integrations),a||afterSetupIntegrations(this,[t])}sendEvent(t,a={}){this.emit("beforeSendEvent",t,a);let l=function(t,a,l,c){var d;let p=getSdkMetadataForEnvelopeHeader(l),f=t.type&&"replay_event"!==t.type?t.type:"event";(d=l&&l.sdk)&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||d.name,t.sdk.version=t.sdk.version||d.version,t.sdk.integrations=[...t.sdk.integrations||[],...d.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...d.packages||[]]);let h=createEventEnvelopeHeaders(t,p,c,a);delete t.sdkProcessingMetadata;let g=[{type:f},t];return createEnvelope(h,[g])}(t,this._dsn,this._options._metadata,this._options.tunnel);for(let t of a.attachments||[])l=function(t,a){let[l,c]=t;return[l,[...c,a]]}(l,function(t){let a="string"==typeof t.data?encodeUTF8(t.data):t.data;return[(0,eO.Jr)({type:"attachment",length:a.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),a]}(t));let c=this.sendEnvelope(l);c&&c.then(a=>
47this.emit("afterSendEvent",t,a),null)}sendSession(t){let a=function(t,a,l,c){let d=getSdkMetadataForEnvelopeHeader(l),p={sent_at:new Date().toISOString(),...d&&{sdk:d},...!!c&&a&&{dsn:dsn_dsnToString(a)}},f="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return createEnvelope(p,[f])}(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(a)}recordDroppedEvent(t,a,l){if(this._options.sendClientReports){let c="number"==typeof l?l:1,d=`${t}:${a}`;ew.X&&ek.kg.log(`Recording outcome: "${d}"${c>1?` (${c} times)`:""}`),this._outcomes[d]=(this._outcomes[d]||0)+c}}on(t,a){let l=this._hooks[t]=this._hooks[t]||[];return l.push(a),()=>{let t=l.indexOf(a);t>-1&&l.splice(t,1)}}emit(t,...a){let l=this._hooks[t];l&&l.forEach(t=>t(...a))}sendEnvelope(t){return(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)?this._transport.send(t).then(null,t=>(ew.X&&ek.kg.error("Error while sending envelope:",t),t)):(ew.X&&ek.kg.error("Transport disabled"),(0,eW.WD)({}))}_setupIntegrations(){let{integrations:t}=this._options;this._integrations=function(t,a){let l={};return a.forEach(a=>{a&&setupIntegration(t,a,l)}),l}(this,t),afterSetupIntegrations(this,t)}_updateSessionFromEvent(t,a){let l="fatal"===a.level,c=!1,d=a.exception&&a.exception.values;if(d)for(let t of(c=!0,d)){let a=t.mechanism;if(a&&!1===a.handled){l=!0;break}}let p="ok"===t.status,f=p&&0===t.errors||p&&l;f&&((0,e$.CT)(t,{...l&&{status:"crashed"},errors:t.errors||Number(c||l)}),this.captureSession(t))}_isClientDoneProcessing(t){return new eW.cW(a=>{let l=0,c=setInterval(()=>{0==this._numProcessing?(clearInterval(c),a(!0)):(l+=1,t&&l>=t&&(clearInterval(c),a(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(t,a,l=(0,eI.nZ)(),c=(0,eI.aF)()){let d=this.getOptions(),p=Object.keys(this._integrations);return!a.integrations&&p.length>0&&(a.integrations=p),this.emit("preprocessEvent",t,a),t.type||c.setLastEventId(t.event_id||a.event_id),(0,eq.R)(d,t,a,l,this,c).then(t=>{if(null===t)return t;t.contexts={trace:(0,eI.XX)(l),...t.contexts};let a=(0,eF.CG)(this,l);return t.sdkProcessingMetadata={dynamicSamplingContext:a,...t.sdkProcessingMetadata},t})}_captureEvent(t,a={},l){return this._processEvent(t,a,l).then(t=>t.event_id,t=>{ew.X&&(t instanceof SentryError&&"log"===t.logLevel?ek.kg.log(t.message):ek.kg.warn(t))})}_processEvent(t,a,l){let c=this.getOptions(),{sampleRate:d}=c,p=isTransactionEvent(t),f=isErrorEvent(t),h=t.type||"error",g=`before send for type \`${h}\``,_=void 0===d?void 0:parseSampleRate(d);if(f&&"number"==typeof _&&Math.random()>_)return this.recordDroppedEvent("sample_rate","error",t),(0,eW.$2)(new SentryError(`Discarding event because it's not included in the random sample (sampling rate = ${d})`,"log"));let S="replay_event"===h?"replay":h,w=t.sdkProcessingMetadata||{},k=w.capturedSpanIsolationScope;return this._prepareEvent(t,a,l,k).then(l=>{if(null===l)throw this.recordDroppedEvent("event_processor",S,t),new SentryError("An event processor returned `null`, will not send event.","log");let d=a.data&&!0===a.data.__sentry__;if(d)return l;let p=function(t,a,l,c){let{beforeSend:d,beforeSendTransaction:p,beforeSendSpan:f}=a;if(isErrorEvent(l)&&d)return d(l,c);if(isTransactionEvent(l)){if(l.spans&&f){let a=[];for(let c of l.spans){let l=f(c);l?a.push(l):((0,ej.R6)(),t.recordDroppedEvent("before_send","span"))}l.spans=a}if(p){if(l.spans){let t=l.spans.length;l.sdkProcessingMetadata={...l.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return p(l,c)}}return l}(this,c,l,a);return function(t,a){let l=`${a} must return \`null\` or a valid event.`;if((0,eH.J8)(t))return t.then(t=>{if(!(0,eH.PO)(t)&&null!==t)throw new SentryError(l);return t},t=>{throw new SentryError(`${a} rejected with ${t}`)});if(!(0,eH.PO)(t)&&null!==t)throw new SentryError(l);return t}(p,g)}).then(c=>{if(null===c){if(this.recordDroppedEvent("before_send",S,t),p){let a=t.spans||[],l=1+a.length;this.recordDroppedEvent("before_send","span",l)}throw new SentryError(`${g} returned \`null\`, will not send event.`,"log")}let d=l&&l.getSession();if(!p&&d&&this._updateSessionFromEvent(d,c),p){let t=c.sdkProcessingMetadata&&c.sdkProcessingMetadata.spanCountBeforeProcessing||0,a=c.spans?c.spans.length:0,l=t-a;l>0&&this.recordDroppedEvent("before_send","span",l)}let f=c.transaction_info;return p&&f&&c.transaction!==t.transaction&&(c.transaction_info={...f,source:"custom"}),this.sendEvent(c,a),c}).then(null,t=>{if(t instanceof SentryError)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new SentryError(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
48Reason: ${t}`)})}_process(t){this._numProcessing++,t.then(t=>(this._numProcessing--,t),t=>(this._numProcessing--,t))}_clearOutcomes(){let t=this._outcomes;return this._outcomes={},Object.entries(t).map(([t,a])=>{let[l,c]=t.split(":");return{reason:l,category:c,quantity:a}})}_flushOutcomes(){ew.X&&ek.kg.log("Flushing outcomes...");let t=this._clearOutcomes();if(0===t.length){ew.X&&ek.kg.log("No outcomes to send");return}if(!this._dsn){ew.X&&ek.kg.log("No dsn provided, will not send outcomes");return}ew.X&&ek.kg.log("Sending outcomes:",t);let a=function(t,a,l){let c=[{type:"client_report"},{timestamp:(0,eB.yW)(),discarded_events:t}];return createEnvelope(a?{dsn:a}:{},[c])}(t,this._options.tunnel&&dsn_dsnToString(this._dsn));this.sendEnvelope(a)}};function isErrorEvent(t){return void 0===t.type}function isTransactionEvent(t){return"transaction"===t.type}function exceptionFromError(t,a){let l=parseStackFrames(t,a),c={type:function(t){let a=t&&t.name;if(!a&&isWebAssemblyException(t)){let a=t.message&&Array.isArray(t.message)&&2==t.message.length;return a?t.message[0]:"WebAssembly.Exception"}return a}(a),value:function(t){let a=t&&t.message;return a?a.error&&"string"==typeof a.error.message?a.error.message:isWebAssemblyException(t)&&Array.isArray(t.message)&&2==t.message.length?t.message[1]:a:"No error message"}(a)};return l.length&&(c.stacktrace={frames:l}),void 0===c.type&&""===c.value&&(c.value="Unrecoverable error caught"),c}function eventFromError(t,a){return{exception:{values:[exceptionFromError(t,a)]}}}function parseStackFrames(t,a){let l=a.stacktrace||a.stack||"",c=a&&ez.test(a.message)?1:0,d="number"==typeof a.framesToPop?a.framesToPop:0;try{return t(l,c,d)}catch(t){}return[]}let ez=/Minified React error #\d+;/i;function isWebAssemblyException(t){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&t instanceof WebAssembly.Exception}function eventFromUnknownInput(t,a,l,c,d){let p;if((0,eH.VW)(a)&&a.error)return eventFromError(t,a.error);if((0,eH.TX)(a)||(0,eH.fm)(a)){if("stack"in a)p=eventFromError(t,a);else{let d=a.name||((0,eH.TX)(a)?"DOMError":"DOMException"),f=a.message?`${d}: ${a.message}`:d;p=eventFromString(t,f,l,c),(0,eC.Db)(p,f)}return"code"in a&&(p.tags={...p.tags,"DOMException.code":`${a.code}`}),p}return(0,eH.VZ)(a)?eventFromError(t,a):((0,eH.PO)(a)||(0,eH.cO)(a)?p=function(t,a,l,c){let d=(0,eI.s3)(),p=d&&d.getOptions().normalizeDepth,f=function(t){for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a)){let l=t[a];if(l instanceof Error)return l}}(a),h={__serialized__:(0,eN.Qy)(a,p)};if(f)return{exception:{values:[exceptionFromError(t,f)]},extra:h};let g={exception:{values:[{type:(0,eH.cO)(a)?a.constructor.name:c?"UnhandledRejection":"Error",value:function(t,{isUnhandledRejection:a}){let l=(0,eO.zf)(t),c=a?"promise rejection":"exception";if((0,eH.VW)(t))return`Event \`ErrorEvent\` captured as ${c} with message \`${t.message}\``;if((0,eH.cO)(t)){let a=function(t){try{let a=Object.getPrototypeOf(t);return a?a.constructor.name:void 0}catch(t){}}(t);return`Event \`${a}\` (type=${t.type}) captured as ${c}`}return`Object captured as ${c} with keys: ${l}`}(a,{isUnhandledRejection:c})}]},extra:h};if(l){let a=parseStackFrames(t,l);a.length&&(g.exception.values[0].stacktrace={frames:a})}return g}(t,a,l,d):(p=eventFromString(t,a,l,c),(0,eC.Db)(p,`${a}`,void 0)),(0,eC.EG)(p,{synthetic:!0}),p)}function eventFromString(t,a,l,c){let d={};
48if(c&&l){let c=parseStackFrames(t,l);c.length&&(d.exception={values:[{value:a,stacktrace:{frames:c}}]}),(0,eC.EG)(d,{synthetic:!0})}if((0,eH.Le)(a)){let{__sentry_template_string__:t,__sentry_template_values__:l}=a;return d.logentry={message:t,params:l},d}return d.message=a,d}let eU=e_.GLOBAL_OBJ,eZ=0;function wrap(t,a={}){if("function"!=typeof t)return t;try{let a=t.__sentry_wrapped__;if(a){if("function"==typeof a)return a;return t}if((0,eO.HK)(t))return t}catch(a){return t}let sentryWrapped=function(...l){try{let c=l.map(t=>wrap(t,a));return t.apply(this,c)}catch(t){throw eZ++,setTimeout(()=>{eZ--}),(0,eI.$e)(c=>{c.addEventProcessor(t=>(a.mechanism&&((0,eC.Db)(t,void 0,void 0),(0,eC.EG)(t,a.mechanism)),t.extra={...t.extra,arguments:l},t)),(0,eS.Tb)(t)}),t}};try{for(let a in t)Object.prototype.hasOwnProperty.call(t,a)&&(sentryWrapped[a]=t[a])}catch(t){}(0,eO.$Q)(sentryWrapped,t),(0,eO.xp)(t,"__sentry_wrapped__",sentryWrapped);try{let a=Object.getOwnPropertyDescriptor(sentryWrapped,"name");a.configurable&&Object.defineProperty(sentryWrapped,"name",{get:()=>t.name})}catch(t){}return sentryWrapped}let BrowserClient=class BrowserClient extends BaseClient{constructor(t){let a={parentSpanIsAlwaysRootSpan:!0,...t},l=eU.SENTRY_SDK_SOURCE||"npm";applySdkMetadata(a,"browser",["browser"],l),super(a),a.sendClientReports&&eU.document&&eU.document.addEventListener("visibilitychange",()=>{"hidden"===eU.document.visibilityState&&this._flushOutcomes()})}eventFromException(t,a){return function(t,a,l,c){let d=l&&l.syntheticException||void 0,p=eventFromUnknownInput(t,a,d,c);return(0,eC.EG)(p),p.level="error",l&&l.event_id&&(p.event_id=l.event_id),(0,eW.WD)(p)}(this._options.stackParser,t,a,this._options.attachStacktrace)}eventFromMessage(t,a="info",l){return function(t,a,l="info",c,d){let p=c&&c.syntheticException||void 0,f=eventFromString(t,a,p,d);return f.level=l,c&&c.event_id&&(f.event_id=c.event_id),(0,eW.WD)(f)}(this._options.stackParser,t,a,l,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled())return;let a=function(t,{metadata:a,tunnel:l,dsn:c}){let d={event_id:t.event_id,sent_at:new Date().toISOString(),...a&&a.sdk&&{sdk:{name:a.sdk.name,version:a.sdk.version}},...!!l&&!!c&&{dsn:dsn_dsnToString(c)}},p=[{type:"user_report"},t];return createEnvelope(d,[p])}(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(a)}_prepareEvent(t,a,l){return t.platform=t.platform||"javascript",super._prepareEvent(t,a,l)}};let eG={},eQ={};function addHandler(t,a){eG[t]=eG[t]||[],eG[t].push(a)}function maybeInstrument(t,a){if(!eQ[t]){eQ[t]=!0;try{a()}catch(a){eP.X&&ek.kg.error(`Error while instrumenting ${t}`,a)}}}function triggerHandlers(t,a){let l=t&&eG[t];if(l)for(let c of l)try{c(a)}catch(a){eP.X&&ek.kg.error(`Error while triggering instrumentation handler.
49Type: ${t}
50Name: ${(0,eM.$P)(c)}
51Error:`,a)}}let eK=e_.GLOBAL_OBJ;function addClickKeypressInstrumentationHandler(t){addHandler("dom",t),maybeInstrument("dom",instrumentDOM)}function instrumentDOM(){if(!eK.document)return;let t=triggerHandlers.bind(null,"dom"),a=makeDOMEventHandler(t,!0);eK.document.addEventListener("click",a,!1),eK.document.addEventListener("keypress",a,!1),["EventTarget","Node"].forEach(a=>{let l=eK[a],c=l&&l.prototype;c&&c.hasOwnProperty&&c.hasOwnProperty("addEventListener")&&((0,eO.hl)(c,"addEventListener",function(a){return function(l,c,d){if("click"===l||"keypress"==l)try{let c=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},p=c[l]=c[l]||{refCount:0};if(!p.handler){let c=makeDOMEventHandler(t);p.handler=c,a.call(this,l,c,d)}p.refCount++}catch(t){}return a.call(this,l,c,d)}}),(0,eO.hl)(c,"removeEventListener",function(t){return function(a,l,c){if("click"===a||"keypress"==a)try{let l=this.__sentry_instrumentation_handlers__||{},d=l[a];d&&(d.refCount--,d.refCount<=0&&(t.call(this,a,d.handler,c),d.handler=void 0,delete l[a]),0===Object.keys(l).length&&delete this.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,a,l,c)}}))})}function makeDOMEventHandler(t,a=!1){return l=>{if(!l||l._sentryCaptured)return;let c=function(t){try{return t.target}catch(t){return null}}(l);if("keypress"===l.type&&(!c||!c.tagName||"INPUT"!==c.tagName&&"TEXTAREA"!==c.tagName&&!c.isContentEditable))return;(0,eO.xp)(l,"_sentryCaptured",!0),c&&!c._sentryId&&(0,eO.xp)(c,"_sentryId",(0,eC.DM)());let h="keypress"===l.type?"input":l.type;!function(t){if(t.type!==p)return!1;try{if(!t.target||t.target._sentryId!==f)return!1}catch(t){}return!0}(l)&&(t({event:l,name:h,global:a}),p=l.type,f=c?c._sentryId:void 0),clearTimeout(d),d=eK.setTimeout(()=>{f=void 0,p=void 0},1e3)}}let eX="__sentry_xhr_v3__";function addXhrInstrumentationHandler(t){addHandler("xhr",t),maybeInstrument("xhr",instrumentXHR)}function instrumentXHR(){if(!eK.XMLHttpRequest)return;let t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(t,a,l){let c=Error(),d=1e3*(0,eB.ph)(),p=(0,eH.HD)(l[0])?l[0].toUpperCase():void 0,f=function(t){if((0,eH.HD)(t))return t;try{return t.toString()}catch(t){}}(l[1]);if(!p||!f)return t.apply(a,l);a[eX]={method:p,url:f,request_headers:{}}
51,"POST"===p&&f.match(/sentry_key/)&&(a.__sentry_own_request__=!0);let onreadystatechangeHandler=()=>{let t=a[eX];if(t&&4===a.readyState){try{t.status_code=a.status}catch(t){}let l={endTimestamp:1e3*(0,eB.ph)(),startTimestamp:d,xhr:a,virtualError:c};triggerHandlers("xhr",l)}};return"onreadystatechange"in a&&"function"==typeof a.onreadystatechange?a.onreadystatechange=new Proxy(a.onreadystatechange,{apply:(t,a,l)=>(onreadystatechangeHandler(),t.apply(a,l))}):a.addEventListener("readystatechange",onreadystatechangeHandler),a.setRequestHeader=new Proxy(a.setRequestHeader,{apply(t,a,l){let[c,d]=l,p=a[eX];return p&&(0,eH.HD)(c)&&(0,eH.HD)(d)&&(p.request_headers[c.toLowerCase()]=d),t.apply(a,l)}}),t.apply(a,l)}}),t.send=new Proxy(t.send,{apply(t,a,l){let c=a[eX];if(!c)return t.apply(a,l);void 0!==l[0]&&(c.body=l[0]);let d={startTimestamp:1e3*(0,eB.ph)(),xhr:a};return triggerHandlers("xhr",d),t.apply(a,l)}})}let eJ=e_.GLOBAL_OBJ;function addHistoryInstrumentationHandler(t){let a="history";addHandler(a,t),maybeInstrument(a,instrumentHistory)}function instrumentHistory(){if(!function(){let t=eJ.chrome,a=t&&t.app&&t.app.runtime,l="history"in eJ&&!!eJ.history.pushState&&!!eJ.history.replaceState;return!a&&l}())return;let t=eK.onpopstate;function historyReplacementFunction(t){return function(...a){let l=a.length>2?a[2]:void 0;if(l){let t=h,a=String(l);h=a,triggerHandlers("history",{from:t,to:a})}return t.apply(this,a)}}eK.onpopstate=function(...a){let l=eK.location.href,c=h;if(h=l,triggerHandlers("history",{from:c,to:l}),t)try{return t.apply(this,a)}catch(t){}},(0,eO.hl)(eK.history,"pushState",historyReplacementFunction),(0,eO.hl)(eK.history,"replaceState",historyReplacementFunction)}function instrumentConsole(){"console"in e_.GLOBAL_OBJ&&ek.RU.forEach(function(t){t in e_.GLOBAL_OBJ.console&&(0,eO.hl)(e_.GLOBAL_OBJ.console,t,function(a){return ek.LD[t]=a,function(...a){triggerHandlers("console",{args:a,level:t});let l=ek.LD[t];l&&l.apply(e_.GLOBAL_OBJ.console,a)}})})}function addFetchInstrumentationHandler(t,a){let l="fetch";addHandler(l,t),maybeInstrument(l,()=>instrumentFetch(void 0,a))}function instrumentFetch(t,a=!1){(!a||function(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in eA))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}())return!1;if(isNativeFunction(eA.fetch))return!0;let t=!1,a=eA.document;if(a&&"function"==typeof a.createElement)try{let l=a.createElement("iframe");l.hidden=!0,a.head.appendChild(l),l.contentWindow&&l.contentWindow.fetch&&(t=isNativeFunction(l.contentWindow.fetch)),a.head.removeChild(l)}catch(t){eP.X&&ek.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t}())&&(0,eO.hl)(e_.GLOBAL_OBJ,"fetch",function(a){return function(...l){let c=Error(),{method:d,url:p}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){let[a,l]=t;return{url:getUrlFromResource(a),method:hasProp(l,"method")?String(l.method).toUpperCase():"GET"}}let a=t[0];return{url:getUrlFromResource(a),method:hasProp(a,"method")?String(a.method).toUpperCase():"GET"}}(l),f={args:l,fetchData:{method:d,url:p},startTimestamp:1e3*(0,eB.ph)(),virtualError:c};return t||triggerHandlers("fetch",{...f}),a.apply(e_.GLOBAL_OBJ,l).then(async a=>(t?t(a):triggerHandlers("fetch",{...f,endTimestamp:1e3*(0,eB.ph)(),response:a}),a),t=>{throw triggerHandlers("fetch",{...f,endTimestamp:1e3*(0,eB.ph)(),error:t}),(0,eH.VZ)(t)&&void 0===t.stack&&(t.stack=c.stack,(0,eO.xp)(t,"framesToPop",1)),t})}})}async function resolveResponse(t,a){if(t&&t.body){let l=t.body,c=l.getReader(),d=setTimeout(()=>{l.cancel().then(null,()=>{})},9e4),p=!0;for(;p;){let t;try{t=setTimeout(()=>{l.cancel().then(null,()=>{})},5e3);let{done:d}=await c.read();clearTimeout(t),d&&(a(),p=!1)}catch(t){p=!1}finally{clearTimeout(t)}}clearTimeout(d),c.releaseLock(),l.cancel().then(null,()=>{})}}function streamHandler(t){let a;try{a=t.clone()}catch(t){return}resolveResponse(a,()=>{triggerHandlers("fetch-body-resolved",{endTimestamp:1e3*(0,eB.ph)(),response:t})})}
51function hasProp(t,a){return!!t&&"object"==typeof t&&!!t[a]}function getUrlFromResource(t){return"string"==typeof t?t:t?hasProp(t,"url")?t.url:t.toString?t.toString():"":""}function addBreadcrumb(t,a){let l=(0,eI.s3)(),c=(0,eI.aF)();if(!l)return;let{beforeBreadcrumb:d=null,maxBreadcrumbs:p=100}=l.getOptions();if(p<=0)return;let f=(0,eB.yW)(),h={timestamp:f,...t},g=d?(0,ek.Cf)(()=>d(h,a)):h;null!==g&&(l.emit&&l.emit("beforeAddBreadcrumb",g,a),c.addBreadcrumb(g,p))}var eY=l(70428);function getBreadcrumbLogLevelFromHttpStatusCode(t){if(void 0!==t)return t>=400&&t<500?"warning":t>=500?"error":void 0}function url_parseUrl(t){if(!t)return{};let a=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!a)return{};let l=a[6]||"",c=a[8]||"";return{host:a[4],path:a[5],protocol:a[2],search:l,hash:c,relative:a[5]+l+c}}let breadcrumbsIntegration=(t={})=>{let a={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:"Breadcrumbs",setup(t){var l;a.console&&function(t){let a="console";addHandler(a,t),maybeInstrument(a,instrumentConsole)}(function(a){var l;if((0,eI.s3)()!==t)return;let c={category:"console",data:{arguments:a.args,logger:"console"},level:"warn"===(l=a.level)?"warning":["fatal","error","warning","log","info","debug"].includes(l)?l:"log",message:(0,ex.nK)(a.args," ")};if("assert"===a.level){if(!1!==a.args[0])return;c.message=`Assertion failed: ${(0,ex.nK)(a.args.slice(1)," ")||"console.assert"}`,c.data.arguments=a.args.slice(1)}addBreadcrumb(c,{input:a.args,level:a.level})}),a.dom&&addClickKeypressInstrumentationHandler((l=a.dom,function(a){let c,d;if((0,eI.s3)()!==t)return;let p="object"==typeof l?l.serializeAttribute:void 0,f="object"==typeof l&&"number"==typeof l.maxStringLength?l.maxStringLength:void 0;f&&f>1024&&(f=1024),"string"==typeof p&&(p=[p]);try{let t=a.event,l=t&&t.target?t.target:t;c=(0,eY.Rt)(l,{keyAttrs:p,maxStringLength:f}),d=(0,eY.iY)(l)}catch(t){c="<unknown>"}if(0===c.length)return;let h={category:`ui.${a.name}`,message:c};d&&(h.data={"ui.component_name":d}),addBreadcrumb(h,{event:a.event,name:a.name,global:a.global})})),a.xhr&&addXhrInstrumentationHandler(function(a){if((0,eI.s3)()!==t)return;let{startTimestamp:l,endTimestamp:c}=a,d=a.xhr[eX];if(!l||!c||!d)return;let{method:p,url:f,status_code:h,body:g}=d,_={xhr:a.xhr,input:g,startTimestamp:l,endTimestamp:c},S=getBreadcrumbLogLevelFromHttpStatusCode(h);addBreadcrumb({category:"xhr",data:{method:p,url:f,status_code:h},type:"http",level:S},_)}),a.fetch&&addFetchInstrumentationHandler(function(a){if((0,eI.s3)()!==t)return;let{startTimestamp:l,endTimestamp:c}=a;if(!(!c||a.fetchData.url.match(/sentry_key/)&&"POST"===a.fetchData.method)){if(a.error){let t=a.fetchData,d={data:a.error,input:a.args,startTimestamp:l,endTimestamp:c};addBreadcrumb({category:"fetch",data:t,level:"error",type:"http"},d)}else{let t=a.response,d={...a.fetchData,status_code:t&&t.status},p={input:a.args,response:t,startTimestamp:l,endTimestamp:c},f=getBreadcrumbLogLevelFromHttpStatusCode(d.status_code);addBreadcrumb({category:"fetch",data:d,type:"http",level:f},p)}}}),a.history&&addHistoryInstrumentationHandler(function(a){if((0,eI.s3)()!==t)return;let l=a.from,c=a.to,d=url_parseUrl(eU.location.href),p=l?url_parseUrl(l):void 0,f=url_parseUrl(c);p&&p.path||(p=d),d.protocol===f.protocol&&d.host===f.host&&(c=f.relative),d.protocol===p.protocol&&d.host===p.host&&(l=p.relative),addBreadcrumb({category:"navigation",data:{from:l,to:c}})}),a.sentry&&t.on("beforeSendEvent",function(a){(0,eI.s3)()===t&&addBreadcrumb({category:`sentry.${"transaction"===a.type?"transaction":"event"}`,event_id:a.event_id,level:a.level,message:(0,eC.jH)(a)},{event:a})})}}},e0=["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"],browserApiErrorsIntegration=(t={})=>{let a={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:"BrowserApiErrors",setupOnce(){a.setTimeout&&(0,eO.hl)(eU,"setTimeout",_wrapTimeFunction),a.setInterval&&(0,eO.hl)(eU,"setInterval",_wrapTimeFunction),a.requestAnimationFrame&&(0,eO.hl)(eU,"requestAnimationFrame",_wrapRAF),a.XMLHttpRequest&&"XMLHttpRequest"in eU&&(0,eO.hl)(XMLHttpRequest.prototype,"send",_wrapXHR);let t=a.eventTarget;if(t){let a=Array.isArray(t)?t:e0;a.forEach(_wrapEventTarget)}}}};function _wrapTimeFunction(t){return function(...a){let l=a[0];return a[0]=wrap(l,{mechanism:{data:{function:(0,eM.$P)(t)},handled:!1,type:"instrument"}}),t.apply(this,a)}}function _wrapRAF(t){return function(a){return t.apply(this,[wrap(a,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,eM.$P)(t)},handled:!1,type:"instrument"}})])}}function _wrapXHR(t){return function(...a){let l=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(t=>{t in l&&"function"==typeof l[t]&&(0,eO.hl)(l,t,function(a){let l={mechanism:{data:{function:t,handler:(0,eM.$P)(a)},handled:!1,type:"instrument"}},c=(0,eO.HK)(a);return c&&(l.mechanism.data.handler=(0,eM.$P)(c)),wrap(a,l)})}),t.apply(this,a)}}function _wrapEventTarget(t){let a=eU[t],l=a&&a.prototype;l&&l.hasOwnProperty&&l.hasOwnProperty("addEventListener")&&((0,eO.hl)(l,"addEventListener",function(a){return function(l,c,d){try{"function"==typeof c.handleEvent&&(c.handleEvent=wrap(c.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,eM.$P)(c),target:t},handled:!1,type:"instrument"}}))}catch(t){}return a.apply(this,[l,wrap(c,{mechanism:{data:{function:"addEventListener",handler:(0,eM.$P)(c),target:t},handled:!1,type:"instrument"}}),d])}}),(0,eO.hl)(l,"removeEventListener",function(t){return function(a,l,c){try{let d=l.__sentry_wrapped__;d&&t.call(this,a,d,c)}catch(t){}return t.call(this,a,l,c)}}))}let browserSessionIntegration=()=>({name:"BrowserSession",setupOnce(){void 0!==eU.document&&((0,eS.yj)({ignoreDuration:!0}),(0,eS.cg)(),addHistoryInstrumentationHandler(({from:t,to:a})=>{void 0!==t&&t!==a&&((0,eS.yj)({ignoreDuration:!0}),(0,eS.cg)())}))}}),e1=null;function addGlobalErrorInstrumentationHandler(t){let a="error";addHandler(a,t),maybeInstrument(a,instrumentError)}function instrumentError(){e1=e_.GLOBAL_OBJ.onerror,e_.GLOBAL_OBJ.onerror=function(t,a,l,c,d){return triggerHandlers("error",{column:c,error:d,line:l,msg:t,url:a}),!!e1&&e1.apply(this,arguments)},e_.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}let e2=null;function addGlobalUnhandledRejectionInstrumentationHandler(t){let a="unhandledrejection";addHandler(a,t),maybeInstrument(a,instrumentUnhandledRejection)}function instrumentUnhandledRejection(){e2=e_.GLOBAL_OBJ.onunhandledrejection,e_.GLOBAL_OBJ.onunhandledrejection=function(t){return triggerHandlers("unhandledrejection",t),!e2||e2.apply(this,arguments)},e_.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let globalHandlersIntegration=(t={})=>{let a={onerror:!0,onunhandledrejection:!0,...t};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(t){a.onerror&&addGlobalErrorInstrumentationHandler(a=>{let{stackParser:l,attachStacktrace:c}=getOptions();if((0,eI.s3)()!==t||eZ>
510)return;let{msg:d,url:p,line:f,column:h,error:g}=a,_=function(t,a,l,c){let d=t.exception=t.exception||{},p=d.values=d.values||[],f=p[0]=p[0]||{},h=f.stacktrace=f.stacktrace||{},g=h.frames=h.frames||[],_=(0,eH.HD)(a)&&a.length>0?a:(0,eY.l4)();return 0===g.length&&g.push({colno:c,filename:_,function:eM.Fi,in_app:!0,lineno:l}),t}(eventFromUnknownInput(l,g||d,void 0,c,!1),p,f,h);_.level="error",(0,eS.eN)(_,{originalException:g,mechanism:{handled:!1,type:"onerror"}})}),a.onunhandledrejection&&addGlobalUnhandledRejectionInstrumentationHandler(a=>{let{stackParser:l,attachStacktrace:c}=getOptions();if((0,eI.s3)()!==t||eZ>0)return;let d=function(t){if((0,eH.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}(a),p=(0,eH.pt)(d)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(d)}`}]}}:eventFromUnknownInput(l,d,void 0,c,!0);p.level="error",(0,eS.eN)(p,{originalException:d,mechanism:{handled:!1,type:"onunhandledrejection"}})})}}};function getOptions(){let t=(0,eI.s3)(),a=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return a}let httpContextIntegration=()=>({name:"HttpContext",preprocessEvent(t){if(!eU.navigator&&!eU.location&&!eU.document)return;let a=t.request&&t.request.url||eU.location&&eU.location.href,{referrer:l}=eU.document||{},{userAgent:c}=eU.navigator||{},d={...t.request&&t.request.headers,...l&&{Referer:l},...c&&{"User-Agent":c}},p={...t.request,...a&&{url:a},headers:d};t.request=p}});function applyExceptionGroupFieldsForParentException(t,a){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,..."AggregateError"===t.type&&{is_exception_group:!0},exception_id:a}}function applyExceptionGroupFieldsForChildException(t,a,l,c){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:a,exception_id:l,parent_id:c}}let linkedErrorsIntegration=(t={})=>{let a=t.limit||5,l=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(t,c,d){let p=d.getOptions();!function(t,a,l=250,c,d,p,f){if(!p.exception||!p.exception.values||!f||!(0,eH.V9)(f.originalException,Error))return;let h=p.exception.values.length>0?p.exception.values[p.exception.values.length-1]:void 0;h&&(p.exception.values=(function aggregateExceptionsFromError(t,a,l,c,d,p,f,h){if(p.length>=l+1)return p;let g=[...p];if((0,eH.V9)(c[d],Error)){applyExceptionGroupFieldsForParentException(f,h);let p=t(a,c[d]),_=g.length;applyExceptionGroupFieldsForChildException(p,d,_,h),g=aggregateExceptionsFromError(t,a,l,c[d],d,[p,...g],p,_)}return Array.isArray(c.errors)&&c.errors.forEach((c,p)=>{if((0,eH.V9)(c,Error)){applyExceptionGroupFieldsForParentException(f,h);let _=t(a,c),S=g.length;applyExceptionGroupFieldsForChildException(_,`errors[${p}]`,S,h),g=aggregateExceptionsFromError(t,a,l,c,d,[_,...g],_,S)}}),g})(t,a,d,f.originalException,c,p.exception.values,h,0).map(t=>(t.value&&(t.value=(0,ex.$G)(t.value,l)),t)))}(exceptionFromError,p.stackParser,p.maxValueLength,l,a,t,c)}}};function createFrame(t,a,l,c){let d={filename:t,function:"<anonymous>"===a?eM.Fi:a,in_app:!0};return void 0!==l&&(d.lineno=l),void 0!==c&&(d.colno=c),d}let e3=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,e5=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,e6=/\((\S*)(?::(\d+))(?::(\d+))\)/,e8=[30,t=>{let a=e3.exec(t);if(a){let[,t,l,c]=a;return createFrame(t,eM.Fi,+l,+c)}let l=e5.exec(t);if(l){let t=l[2]&&0===l[2].indexOf("eval");if(t){let t=e6.exec(l[2]);t&&(l[2]=t[1],l[3]=t[2],l[4]=t[3])}let[a,c]=extractSafariExtensionDetails(l[1]||eM.Fi,l[2]);return createFrame(c,a,l[3]?+l[3]:void 0,l[4]?+l[4]:void 0)}}],e4=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,e9=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,e7=[50,t=>{let a=e4.exec(t);if(a){let t=a[3]&&a[3].indexOf(" > eval")>-1;if(t){let t=e9.exec(a[3]);t&&(a[1]=a[1]||"eval",a[3]=t[1],a[4]=t[2],a[5]="")}let l=a[3],c=a[1]||eM.Fi;
51return[c,l]=extractSafariExtensionDetails(c,l),createFrame(l,c,a[4]?+a[4]:void 0,a[5]?+a[5]:void 0)}}],tr=(0,eM.pE)(...[e8,e7]),extractSafariExtensionDetails=(t,a)=>{let l=-1!==t.indexOf("safari-extension"),c=-1!==t.indexOf("safari-web-extension");return l||c?[-1!==t.indexOf("@")?t.split("@")[0]:eM.Fi,l?`safari-extension:${a}`:`safari-web-extension:${a}`]:[t,a]},tn={};function getNativeImplementation(t){let a=tn[t];if(a)return a;let l=eK[t];if(isNativeFunction(l))return tn[t]=l.bind(eK);let c=eK.document;if(c&&"function"==typeof c.createElement)try{let a=c.createElement("iframe");a.hidden=!0,c.head.appendChild(a);let d=a.contentWindow;d&&d[t]&&(l=d[t]),c.head.removeChild(a)}catch(t){}return l?tn[t]=l.bind(eK):l}function getNativeImplementation_setTimeout(...t){return getNativeImplementation("setTimeout")(...t)}function isRateLimited(t,a,l=Date.now()){return(t[a]||t.all||0)>l}function updateRateLimits(t,{statusCode:a,headers:l},c=Date.now()){let d={...t},p=l&&l["x-sentry-rate-limits"],f=l&&l["retry-after"];if(p)for(let t of p.trim().split(",")){let[a,l,,,p]=t.split(":",5),f=parseInt(a,10),h=(isNaN(f)?60:f)*1e3;if(l)for(let t of l.split(";"))"metric_bucket"===t?(!p||p.split(";").includes("custom"))&&(d[t]=c+h):d[t]=c+h;else d.all=c+h}else f?d.all=c+function(t,a=Date.now()){let l=parseInt(`${t}`,10);if(!isNaN(l))return 1e3*l;let c=Date.parse(`${t}`);return isNaN(c)?6e4:c-a}(f,c):429===a&&(d.all=c+6e4);return d}function getEventForEnvelopeItem(t,a){if("event"===a||"transaction"===a)return Array.isArray(t)?t[1]:void 0}function makeFetchTransport(t,a=getNativeImplementation("fetch")){let l=0,c=0;return function(t,a,l=function(t){let a=[];function remove(t){return a.splice(a.indexOf(t),1)[0]||Promise.resolve(void 0)}return{$:a,add:function(l){if(!(void 0===t||a.length<t))return(0,eW.$2)(new SentryError("Not adding Promise because buffer limit was reached."));let c=l();return -1===a.indexOf(c)&&a.push(c),c.then(()=>remove(c)).then(null,()=>remove(c).then(null,()=>{})),c},drain:function(t){return new eW.cW((l,c)=>{let d=a.length;if(!d)return l(!0);let p=setTimeout(()=>{t&&t>0&&l(!1)},t);a.forEach(t=>{(0,eW.WD)(t).then(()=>{--d||(clearTimeout(p),l(!0))},c)})})}}}(t.bufferSize||64)){let c={};return{send:function(d){let p=[];if(forEachEnvelopeItem(d,(a,l)=>{let d=eL[l];if(isRateLimited(c,d)){let c=getEventForEnvelopeItem(a,l);t.recordDroppedEvent("ratelimit_backoff",d,c)}else p.push(a)}),0===p.length)return(0,eW.WD)({});let f=createEnvelope(d[0],p),recordEnvelopeLoss=a=>{forEachEnvelopeItem(f,(l,c)=>{let d=getEventForEnvelopeItem(l,c);t.recordDroppedEvent(a,eL[c],d)})};return l.add(()=>a({body:function(t){let[a,l]=t,c=JSON.stringify(a);function append(t){"string"==typeof c?c="string"==typeof t?c+t:[encodeUTF8(c),t]:c.push("string"==typeof t?encodeUTF8(t):t)}for(let t of l){let[a,l]=t;if(append(`
52${JSON.stringify(a)}
53`),"string"==typeof l||l instanceof Uint8Array)append(l);else{let t;try{t=JSON.stringify(l)}catch(a){t=JSON.stringify((0,eN.Fv)(l))}append(t)}}return"string"==typeof c?c:function(t){let a=t.reduce((t,a)=>t+a.length,0),l=new Uint8Array(a),c=0;for(let a of t)l.set(a,c),c+=a.length;return l}(c)}(f)}).then(t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&ew.X&&ek.kg.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),c=updateRateLimits(c,t),t),t=>{throw recordEnvelopeLoss("network_error"),t})).then(t=>t,t=>{if(t instanceof SentryError)return ew.X&&ek.kg.error("Skipped sending event because buffer is full."),recordEnvelopeLoss("queue_overflow"),(0,eW.WD)({});throw t})},flush:t=>l.drain(t)}}(t,function(d){let p=d.body.length;l+=p,c++;let f={body:d.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:l<=6e4&&c<15,...t.fetchOptions};if(!a)return tn.fetch=void 0,(0,eW.$2)("No fetch implementation available");try{return a(t.url,f).then(t=>(l-=p,c--,{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 tn.fetch=void 0,l-=p,c--,(0,eW.$2)(t)}})}function getDefaultIntegrations(t){let a=[inboundFiltersIntegration(),functionToStringIntegration(),browserApiErrorsIntegration(),breadcrumbsIntegration(),globalHandlersIntegration(),linkedErrorsIntegration(),dedupeIntegration(),httpContextIntegration()];return!1!==t.autoSessionTracking&&a.push(browserSessionIntegration()),a}var to=l(67294),ta=l(34155),ts=l(31218);function timedEventsToMeasurements(t){if(!t||0===t.length)return;let a={};return t.forEach(t=>{let l=t.attributes||{},c=l[ts.E1],d=l[ts.Wb];"string"==typeof c&&"number"==typeof d&&(a[t.name]={value:d,unit:c})}),a}let getRating=(t,a)=>t>a[1]?"poor":t>a[0]?"needs-improvement":"good",bindReporter=(t,a,l,c)=>{let d,p;return f=>{a.value>=0&&(f||c)&&((p=a.value-(d||0))||void 0===d)&&(d=a.value,a.delta=p,a.rating=getRating(a.value,l),t(a))}},generateUniqueID=()=>`v4-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,getNavigationEntry=(t=!0)=>{let a=eK.performance&&eK.performance.getEntriesByType&&eK.performance.getEntriesByType("navigation")[0];if(!t||a&&a.responseStart>0&&a.responseStart<performance.now())return a},getActivationStart=()=>{let t=getNavigationEntry();return t&&t.activationStart||0},initMetric=(t,a)=>{let l=getNavigationEntry(),c="navigate";return l&&(eK.document&&eK.document.prerendering||getActivationStart()>0?c="prerender":eK.document&&eK.document.wasDiscarded?c="restore":l.type&&(c=l.type.replace(/_/g,"-"))),{name:t,value:void 0===a?-1:a,rating:"good",delta:0,entries:[],id:generateUniqueID(),navigationType:c}},observe=(t,a,l)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){let c=new PerformanceObserver(t=>{Promise.resolve().then(()=>{a(t.getEntries())})});return c.observe(Object.assign({type:t,buffered:!0},l||{})),c}}catch(t){}},onHidden=t=>{let onHiddenOrPageHide=a=>{("pagehide"===a.type||eK.document&&"hidden"===eK.document.visibilityState)&&t(a)};eK.document&&(addEventListener("visibilitychange",onHiddenOrPageHide,!0),addEventListener("pagehide",onHiddenOrPageHide,!0))},runOnce=t=>{let a=!1;return()=>{a||(t(),a=!0)}},tl=-1,initHiddenTime=()=>"hidden"!==eK.document.visibilityState||eK.document.prerendering?1/0:0,onVisibilityUpdate=t=>{"hidden"===eK.document.visibilityState&&tl>-1&&(tl="visibilitychange"===t.type?t.timeStamp:0,removeChangeListeners())},addChangeListeners=()=>{addEventListener("visibilitychange",onVisibilityUpdate,!0),addEventListener("prerenderingchange",onVisibilityUpdate,!0)},removeChangeListeners=()=>{removeEventListener("visibilitychange",onVisibilityUpdate,!0),removeEventListener("prerenderingchange",onVisibilityUpdate,!0)},getVisibilityWatcher=()=>(eK.document&&tl<0&&(tl=initHiddenTime(),addChangeListeners()),{get firstHiddenTime(){return tl}}),whenActivated=t=>{eK.document&&eK.document.prerendering?addEventListener("prerenderingchange",()=>t(),!0):t()},tc=[1800,3e3],onFCP=(t,a={})=>{whenActivated(()=>{let l;
53let c=getVisibilityWatcher(),d=initMetric("FCP"),p=observe("paint",t=>{t.forEach(t=>{"first-contentful-paint"===t.name&&(p.disconnect(),t.startTime<c.firstHiddenTime&&(d.value=Math.max(t.startTime-getActivationStart(),0),d.entries.push(t),l(!0)))})});p&&(l=bindReporter(t,d,tc,a.reportAllChanges))})},tu=[.1,.25],onCLS=(t,a={})=>{onFCP(runOnce(()=>{let l;let c=initMetric("CLS",0),d=0,p=[],handleEntries=t=>{t.forEach(t=>{if(!t.hadRecentInput){let a=p[0],l=p[p.length-1];d&&a&&l&&t.startTime-l.startTime<1e3&&t.startTime-a.startTime<5e3?(d+=t.value,p.push(t)):(d=t.value,p=[t])}}),d>c.value&&(c.value=d,c.entries=p,l())},f=observe("layout-shift",handleEntries);f&&(l=bindReporter(t,c,tu,a.reportAllChanges),onHidden(()=>{handleEntries(f.takeRecords()),l(!0)}),setTimeout(l,0))}))},td=[100,300],onFID=(t,a={})=>{whenActivated(()=>{let l;let c=getVisibilityWatcher(),d=initMetric("FID"),handleEntry=t=>{t.startTime<c.firstHiddenTime&&(d.value=t.processingStart-t.startTime,d.entries.push(t),l(!0))},handleEntries=t=>{t.forEach(handleEntry)},p=observe("first-input",handleEntries);l=bindReporter(t,d,td,a.reportAllChanges),p&&onHidden(runOnce(()=>{handleEntries(p.takeRecords()),p.disconnect()}))})},tp=0,tf=1/0,th=0,updateEstimate=t=>{t.forEach(t=>{t.interactionId&&(tf=Math.min(tf,t.interactionId),tp=(th=Math.max(th,t.interactionId))?(th-tf)/7+1:0)})},getInteractionCount=()=>g?tp:performance.interactionCount||0,initInteractionCountPolyfill=()=>{"interactionCount"in performance||g||(g=observe("event",updateEstimate,{type:"event",buffered:!0,durationThreshold:0}))},tg=[],tm=new Map,getInteractionCountForNavigation=()=>getInteractionCount()-0,estimateP98LongestInteraction=()=>{let t=Math.min(tg.length-1,Math.floor(getInteractionCountForNavigation()/50));return tg[t]},tv=[],processInteractionEntry=t=>{if(tv.forEach(a=>a(t)),!(t.interactionId||"first-input"===t.entryType))return;let a=tg[tg.length-1],l=tm.get(t.interactionId);if(l||tg.length<10||a&&t.duration>a.latency){if(l)t.duration>l.latency?(l.entries=[t],l.latency=t.duration):t.duration===l.latency&&t.startTime===(l.entries[0]&&l.entries[0].startTime)&&l.entries.push(t);else{let a={id:t.interactionId,latency:t.duration,entries:[t]};tm.set(a.id,a),tg.push(a)}tg.sort((t,a)=>a.latency-t.latency),tg.length>10&&tg.splice(10).forEach(t=>tm.delete(t.id))}},whenIdle=t=>{let a=eK.requestIdleCallback||eK.setTimeout,l=-1;return t=runOnce(t),eK.document&&"hidden"===eK.document.visibilityState?t():(l=a(t),onHidden(t)),l},ty=[200,500],onINP=(t,a={})=>{"PerformanceEventTiming"in eK&&"interactionId"in PerformanceEventTiming.prototype&&whenActivated(()=>{let l;initInteractionCountPolyfill();let c=initMetric("INP"),handleEntries=t=>{whenIdle(()=>{t.forEach(processInteractionEntry);let a=estimateP98LongestInteraction();a&&a.latency!==c.value&&(c.value=a.latency,c.entries=a.entries,l())})},d=observe("event",handleEntries,{durationThreshold:null!=a.durationThreshold?a.durationThreshold:40});l=bindReporter(t,c,ty,a.reportAllChanges),d&&(d.observe({type:"first-input",buffered:!0}),onHidden(()=>{handleEntries(d.takeRecords()),l(!0)}))})},t_=[2500,4e3],tb={},onLCP=(t,a={})=>{whenActivated(()=>{let l;let c=getVisibilityWatcher(),d=initMetric("LCP"),handleEntries=t=>{a.reportAllChanges||(t=t.slice(-1)),t.forEach(t=>{t.startTime<c.firstHiddenTime&&(d.value=Math.max(t.startTime-getActivationStart(),0),d.entries=[t],l())})},p=observe("largest-contentful-paint",handleEntries);if(p){l=bindReporter(t,d,t_,a.reportAllChanges);let c=runOnce(()=>{tb[d.id]||(handleEntries(p.takeRecords()),p.disconnect(),tb[d.id]=!0,l(!0))});["keydown","click"].forEach(t=>{eK.document&&addEventListener(t,()=>whenIdle(c),{once:!0,capture:!0})}),onHidden(c)}})},tS=[800,1800],whenReady=t=>{eK.document&&eK.document.prerendering?whenActivated(()=>whenReady(t)):eK.document&&"complete"!==eK.document.readyState?addEventListener("load",()=>whenReady(t),!0):setTimeout(t,0)},onTTFB=(t,a={})=>{let l=initMetric("TTFB"),c=bindReporter(t,l,tS,a.reportAllChanges);whenReady(()=>{let t=getNavigationEntry();t&&(l.value=Math.max(t.responseStart-getActivationStart(),0),l.entries=[t],c(!0))})},tw={},tk={};function addClsInstrumentationHandler(t,a=!1){return addMetricObserver("cls",t,instrumentCls,_,a)}function addLcpInstrumentationHandler(t,a=!1){return addMetricObserver("lcp",t,instrumentLcp,w,a)}function addFidInstrumentationHandler(t){return addMetricObserver("fid",t,instrumentFid,S)}function addInpInstrumentationHandler(t){return addMetricObserver("inp",t,instrumentInp,E)}function addPerformanceInstrumentationHandler(t,a){return instrument_addHandler(t,a),tk[t]||(function(t){let a={};"event"===t&&(a.durationThreshold=0),observe(t,a=>
53{instrument_triggerHandlers(t,{entries:a})},a)}(t),tk[t]=!0),getCleanupCallback(t,a)}function instrument_triggerHandlers(t,a){let l=tw[t];if(l&&l.length)for(let t of l)try{t(a)}catch(t){}}function instrumentCls(){return onCLS(t=>{instrument_triggerHandlers("cls",{metric:t}),_=t},{reportAllChanges:!0})}function instrumentFid(){return onFID(t=>{instrument_triggerHandlers("fid",{metric:t}),S=t})}function instrumentLcp(){return onLCP(t=>{instrument_triggerHandlers("lcp",{metric:t}),w=t},{reportAllChanges:!0})}function instrumentTtfb(){return onTTFB(t=>{instrument_triggerHandlers("ttfb",{metric:t}),k=t})}function instrumentInp(){return onINP(t=>{instrument_triggerHandlers("inp",{metric:t}),E=t})}function addMetricObserver(t,a,l,c,d=!1){let p;return instrument_addHandler(t,a),tk[t]||(p=l(),tk[t]=!0),c&&a({metric:c}),getCleanupCallback(t,a,d?p:void 0)}function instrument_addHandler(t,a){tw[t]=tw[t]||[],tw[t].push(a)}function getCleanupCallback(t,a,l){return()=>{l&&l();let c=tw[t];if(!c)return;let d=c.indexOf(a);-1!==d&&c.splice(d,1)}}var tE=l(13533),tC=l(60811),tx=l(67973),tT=l(89366),tI=l(51824);let sentryNonRecordingSpan_SentryNonRecordingSpan=class sentryNonRecordingSpan_SentryNonRecordingSpan{constructor(t={}){this._traceId=t.traceId||(0,tI.Ht)(),this._spanId=t.spanId||(0,tI.M)()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:ej.ve}}end(t){}setAttribute(t,a){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,a,l){return this}addLink(t){return this}addLinks(t){return this}recordException(t,a){}};var tO=l(72751);let tR="_sentryScope",tM="_sentryIsolationScope";function getCapturedScopesOnSpan(t){return{scope:t[tR],isolationScope:t[tM]}}let SentrySpan=class SentrySpan{constructor(t={}){this._traceId=t.traceId||(0,tI.Ht)(),this._spanId=t.spanId||(0,tI.M)(),this._startTime=t.startTimestamp||(0,eB.ph)(),this._attributes={},this.setAttributes({[ts.S3]:"manual",[ts.$J]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this}addLinks(t){return this}recordException(t,a){}spanContext(){let{_spanId:t,_traceId:a,_sampled:l}=this;return{spanId:t,traceId:a,traceFlags:l?ej.i0:ej.ve}}setAttribute(t,a){return void 0===a?delete this._attributes[t]:this._attributes[t]=a,this}setAttributes(t){return Object.keys(t).forEach(a=>this.setAttribute(a,t[a])),this}updateStartTime(t){this._startTime=(0,ej.$k)(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(ts.Zj,"custom"),this}end(t){this._endTime||(this._endTime=(0,ej.$k)(t),function(t){if(!ew.X)return;let{description:a="< unknown name >",op:l="< unknown op >"}=(0,ej.XU)(t),{spanId:c}=t.spanContext(),d=(0,ej.Gx)(t),p=d===t,f=`[Tracing] Finishing "${l}" ${p?"root ":""}span "${a}" with ID ${c}`;ek.kg.log(f)}(this),this._onSpanEnded())}getSpanJSON(){return(0,eO.Jr)({data:this._attributes,description:this._name,op:this._attributes[ts.$J],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,ej._4)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[ts.S3],_metrics_summary:(0,tO.y)(this),profile_id:this._attributes[ts.p6],exclusive_time:this._attributes[ts.JQ],measurements:timedEventsToMeasurements(this._events),is_segment:this._isStandaloneSpan&&(0,ej.Gx)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,ej.Gx)(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,a,l){ew.X&&ek.kg.log("[Tracing] Adding an event to span:",t);let c=isSpanTimeInput(a)?a:l||(0,eB.ph)(),d=isSpanTimeInput(a)?{}:a||{},p={name:t,time:(0,ej.$k)(c),attributes:d};return this._events.push(p),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let t=(0,eI.s3)();t&&t.emit("spanEnd",this);let a=this._isStandaloneSpan||this===(0,ej.Gx)(this);if(!a)return;if(this._isStandaloneSpan){this._sampled?function(t){let a=(0,eI.s3)();if(!a)return;let l=t[1];if(!l||0===l.length){a.recordDroppedEvent("before_send","span");return}a.sendEnvelope(t)}(function(t,a){let l=(0,eF.jC)(t[0]),c=a&&a.getDsn(),d=a&&a.getOptions().tunnel,p={sent_at:new Date().toISOString(),...!!l.trace_id&&!!l.public_key&&{trace:l},...!!d&&c&&{dsn:dsn_dsnToString(c)}},f=a&&a.getOptions().beforeSendSpan,h=f?t=>{let a=f((0,ej.XU)(t));return a||(0,ej.R6)(),a}:t=>(0,ej.XU)(t),g=[];for(let a of t){let t=h(a);t&&g.push([{type:"span"},t])}return createEnvelope(p,g)}([this],t)):(ew.X&&ek.kg.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}let l=this._convertSpanToTransaction();if(l){let t=getCapturedScopesOnSpan(this).scope||(0,eI.nZ)();t.captureEvent(l)}}_convertSpanToTransaction(){if(!isFullFinishedSpan((0,ej.XU)(this)))return;this._name||(ew.X&&ek.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:t,isolationScope:a}=getCapturedScopesOnSpan(this),l=t||(0,eI.nZ)(),c=l.getClient()||(0,eI.s3)();if(!0!==this._sampled){ew.X&&ek.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),c&&c.recordDroppedEvent("sample_rate","transaction");return}let d=(0,ej.Dp)(this).filter(t=>t!==this&&!(t instanceof SentrySpan&&t.isStandaloneSpan())),p=d.map(t=>(0,ej.XU)(t)).filter(isFullFinishedSpan),f=this._attributes[ts.Zj];delete this._attributes[ts.xF],p.forEach(t=>{t.data&&delete t.data[ts.xF]});let h={contexts:{trace:(0,ej.HR)(this)},spans:p.length>1e3?p.sort((t,a)=>t.start_timestamp-a.start_timestamp).slice(0,1e3):p,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:a,...(0,eO.Jr)({dynamicSamplingContext:(0,eF.jC)(this)})},_metrics_summary:(0,tO.y)(this),...f&&{transaction_info:{source:f}}},g=timedEventsToMeasurements(this._events),_=g&&Object.keys(g).length;return _&&(ew.X&&ek.kg.log("[Measurements] Adding measurements to transaction event",JSON.stringify(g,void 0,2)),h.measurements=g),h}};function isSpanTimeInput(t){return t&&"number"==typeof t||t instanceof Date||Array.isArray(t)}function isFullFinishedSpan(t){return!!t.start_timestamp&&!!t.timestamp&&!!t.span_id&&!!t.trace_id}let tP="__SENTRY_SUPPRESS_TRACING__";function startInactiveSpan(t){let a=getAcs();if(a.startInactiveSpan)return a.startInactiveSpan(t);let l=function(t){let a=t.experimental||{},l={isStandalone:a.standalone,...t};if(t.startTime){let a={...l};return a.startTimestamp=(0,ej.$k)(t.startTime),delete a.startTime,a}return l}(t),{forceTransaction:c,parentSpan:d}=t,p=t.scope?a=>
53(0,eI.$e)(t.scope,a):void 0!==d?t=>withActiveSpan(d,t):t=>t();return p(()=>{let a=(0,eI.nZ)(),d=function(t){let a=(0,tT.Y)(t);if(!a)return;let l=(0,eI.s3)(),c=l?l.getOptions():{};return c.parentSpanIsAlwaysRootSpan?(0,ej.Gx)(a):a}(a),p=t.onlyIfParent&&!d;return p?new sentryNonRecordingSpan_SentryNonRecordingSpan:function({parentSpan:t,spanArguments:a,forceTransaction:l,scope:c}){var d;let p;if(!(0,tx.z)())return new sentryNonRecordingSpan_SentryNonRecordingSpan;let f=(0,eI.aF)();if(t&&!l)p=function(t,a,l){let{spanId:c,traceId:d}=t.spanContext(),p=!a.getScopeData().sdkProcessingMetadata[tP]&&(0,ej.Tt)(t),f=p?new SentrySpan({...l,parentSpanId:c,traceId:d,sampled:p}):new sentryNonRecordingSpan_SentryNonRecordingSpan({traceId:d});(0,ej.j5)(t,f);let h=(0,eI.s3)();return h&&(h.emit("spanStart",f),l.endTimestamp&&h.emit("spanEnd",f)),f}(t,c,a),(0,ej.j5)(t,p);else if(t){let l=(0,eF.jC)(t),{traceId:d,spanId:f}=t.spanContext(),h=(0,ej.Tt)(t);p=_startRootSpan({traceId:d,parentSpanId:f,...a},c,h),(0,eF.Lh)(p,l)}else{let{traceId:t,dsc:l,parentSpanId:d,sampled:h}={...f.getPropagationContext(),...c.getPropagationContext()};p=_startRootSpan({traceId:t,parentSpanId:d,...a},c,h),l&&(0,eF.Lh)(p,l)}return function(t){if(!ew.X)return;let{description:a="< unknown name >",op:l="< unknown op >",parent_span_id:c}=(0,ej.XU)(t),{spanId:d}=t.spanContext(),p=(0,ej.Tt)(t),f=(0,ej.Gx)(t),h=f===t,g=`[Tracing] Starting ${p?"sampled":"unsampled"} ${h?"root ":""}span`,_=[`op: ${l}`,`name: ${a}`,`ID: ${d}`];if(c&&_.push(`parent ID: ${c}`),!h){let{op:t,description:a}=(0,ej.XU)(f);_.push(`root ID: ${f.spanContext().spanId}`),t&&_.push(`root op: ${t}`),a&&_.push(`root description: ${a}`)}ek.kg.log(`${g}
54  ${_.join("\n  ")}`)}(p),(d=p)&&((0,eO.xp)(d,tM,f),(0,eO.xp)(d,tR,c)),p}({parentSpan:d,spanArguments:l,forceTransaction:c,scope:a})})}function withActiveSpan(t,a){let l=getAcs();return l.withActiveSpan?l.withActiveSpan(t,a):(0,eI.$e)(l=>((0,tT.D)(l,t||void 0),a(l)))}function getAcs(){let t=(0,tE.c)();return(0,tC.G)(t)}function _startRootSpan(t,a,l){let c=(0,eI.s3)(),d=c&&c.getOptions()||{},{name:p="",attributes:f}=t,[h,g]=a.getScopeData().sdkProcessingMetadata[tP]?[!1]:function(t,a){let l;if(!(0,tx.z)(t))return[!1];let c=(0,eI.aF)().getScopeData().sdkProcessingMetadata.normalizedRequest,d={...a,normalizedRequest:a.normalizedRequest||c};l="function"==typeof t.tracesSampler?t.tracesSampler(d):void 0!==d.parentSampled?d.parentSampled:void 0!==t.tracesSampleRate?t.tracesSampleRate:1;let p=parseSampleRate(l);if(void 0===p)return ew.X&&ek.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1];if(!p)return ew.X&&ek.kg.log(`[Tracing] Discarding transaction because ${"function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,p];let f=Math.random()<p;return f?[!0,p]:(ew.X&&ek.kg.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(l)})`),[!1,p])}(d,{name:p,parentSampled:l,attributes:f,transactionContext:{name:p,parentSampled:l}}),_=new SentrySpan({...t,attributes:{[ts.Zj]:"custom",...t.attributes},sampled:h});return void 0!==g&&_.setAttribute(ts.TE,g),c&&c.emit("spanStart",_),_}function isMeasurementValue(t){return"number"==typeof t&&isFinite(t)}function startAndEndSpan(t,a,l,{...c}){let d=(0,ej.XU)(t).start_timestamp;return d&&d>a&&"function"==typeof t.updateStartTime&&t.updateStartTime(a),withActiveSpan(t,()=>{let t=startInactiveSpan({startTime:a,...c});return t&&t.end(l),t})}function startStandaloneWebVitalSpan(t){let a;let l=(0,eI.s3)();if(!l)return;let{name:c,transaction:d,attributes:p,startTime:f}=t,{release:h,environment:g}=l.getOptions(),_=l.getIntegrationByName("Replay"),S=_&&_.getReplayId(),w=(0,eI.nZ)(),k=w.getUser(),E=void 0!==k?k.email||k.id||k.ip_address:void 0;try{a=w.getScopeData().contexts.profile.profile_id}catch(t){}let x={release:h,environment:g,user:E||void 0,profile_id:a||void 0,replay_id:S||void 0,transaction:d,"user_agent.original":eK.navigator&&eK.navigator.userAgent,...p};return startInactiveSpan({name:c,attributes:x,startTime:f,experimental:{standalone:!0}})}function getBrowserPerformanceAPI(){return eK&&eK.addEventListener&&eK.performance}function msToSec(t){return t/1e3}function extractNetworkProtocol(t){let a="unknown",l="unknown",c="";for(let d of t){if("/"===d){[a,l]=t.split("/");break}if(!isNaN(Number(d))){a="h"===c?"http":c,l=t.split(c)[1];break}c+=d}return c===t&&(a=c),{name:a,version:l}}let tA=0,tF={};function _addPerformanceNavigationTiming(t,a,l,c,d=l){let p="secureConnection"===l?"connectEnd":"fetch"===l?"domainLookupStart":`${l}End`,f=a[p],h=a[`${l}Start`];h&&f&&startAndEndSpan(t,c+msToSec(h),c+msToSec(f),{op:`browser.${d}`,name:a.name,attributes:{[ts.S3]:"auto.ui.browser.metrics"}})}function setResourceEntrySizeData(t,a,l,c){let d=a[l];null!=d&&d<2147483647&&(t[c]=d)}let tD=[],tN=new Map,tL={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"};var tj=l(69737);let t$={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function startIdleSpan(t,a={}){let l;
54let c=new Map,d=!1,p="externalFinish",f=!a.disableAutoFinish,h=[],{idleTimeout:g=t$.idleTimeout,finalTimeout:_=t$.finalTimeout,childSpanTimeout:S=t$.childSpanTimeout,beforeSpanEnd:w}=a,k=(0,eI.s3)();if(!k||!(0,tx.z)())return new sentryNonRecordingSpan_SentryNonRecordingSpan;let E=(0,eI.nZ)(),x=(0,ej.HN)(),B=function(t){let a=startInactiveSpan(t);return(0,tT.D)((0,eI.nZ)(),a),ew.X&&ek.kg.log("[Tracing] Started span is an idle span"),a}(t);function _cancelIdleTimeout(){l&&(clearTimeout(l),l=void 0)}function _restartIdleTimeout(t){_cancelIdleTimeout(),l=setTimeout(()=>{!d&&0===c.size&&f&&(p="idleTimeout",B.end(t))},g)}function _restartChildSpanTimeout(t){l=setTimeout(()=>{!d&&f&&(p="heartbeatFailed",B.end(t))},S)}function onIdleSpanEnded(t){d=!0,c.clear(),h.forEach(t=>t()),(0,tT.D)(E,x);let a=(0,ej.XU)(B),{start_timestamp:l}=a;if(!l)return;let f=a.data||{};f[ts.ju]||B.setAttribute(ts.ju,p),ek.kg.log(`[Tracing] Idle span "${a.op}" finished`);let S=(0,ej.Dp)(B).filter(t=>t!==B),w=0;S.forEach(a=>{a.isRecording()&&(a.setStatus({code:tj.jt,message:"cancelled"}),a.end(t),ew.X&&ek.kg.log("[Tracing] Cancelling span since span ended early",JSON.stringify(a,void 0,2)));let l=(0,ej.XU)(a),{timestamp:c=0,start_timestamp:d=0}=l,p=d<=t,f=(_+g)/1e3,h=c-d<=f;if(ew.X){let t=JSON.stringify(a,void 0,2);p?h||ek.kg.log("[Tracing] Discarding span since it finished after idle span final timeout",t):ek.kg.log("[Tracing] Discarding span since it happened after idle span was finished",t)}(!h||!p)&&((0,ej.ed)(B,a),w++)}),w>0&&B.setAttribute("sentry.idle_span_discarded_spans",w)}return B.end=new Proxy(B.end,{apply(t,a,l){w&&w(B);let[c,...d]=l,p=c||(0,eB.ph)(),f=(0,ej.$k)(p),h=(0,ej.Dp)(B).filter(t=>t!==B);if(!h.length)return onIdleSpanEnded(f),Reflect.apply(t,a,[f,...d]);let g=h.map(t=>(0,ej.XU)(t).timestamp).filter(t=>!!t),S=g.length?Math.max(...g):void 0,k=(0,ej.XU)(B).start_timestamp,E=Math.min(k?k+_/1e3:1/0,Math.max(k||-1/0,Math.min(f,S||1/0)));return onIdleSpanEnded(E),Reflect.apply(t,a,[E,...d])}}),h.push(k.on("spanStart",t=>{if(d||t===B||(0,ej.XU)(t).timestamp)return;let a=(0,ej.Dp)(B);a.includes(t)&&function(t){_cancelIdleTimeout(),c.set(t,!0);let a=(0,eB.ph)();_restartChildSpanTimeout(a+S/1e3)}(t.spanContext().spanId)})),h.push(k.on("spanEnd",t=>{d||function(t){if(c.has(t)&&c.delete(t),0===c.size){let t=(0,eB.ph)();_restartIdleTimeout(t+g/1e3)}}(t.spanContext().spanId)})),h.push(k.on("idleSpanEnableAutoFinish",t=>{t===B&&(f=!0,_restartIdleTimeout(),c.size&&_restartChildSpanTimeout())})),a.disableAutoFinish||_restartIdleTimeout(),setTimeout(()=>{d||(B.setStatus({code:tj.jt,message:"deadline_exceeded"}),p="finalTimeout",B.end())},_),B}let tB=!1;function errorCallback(){let t=(0,ej.HN)(),a=t&&(0,ej.Gx)(t);if(a){let t="internal_error";ew.X&&ek.kg.log(`[Tracing] Root span: ${t} -> Global error occurred`),a.setStatus({code:tj.jt,message:t})}}errorCallback.tag="sentry_tracingErrorCallback";var tH=l(94801),tW=l(98823);function getTraceData(t={}){let a=(0,eI.s3)();if(!(0,eS._k)()||!a)return{};let l=(0,tE.c)(),c=(0,tC.G)(l);if(c.getTraceData)return c.getTraceData(t);let d=(0,eI.nZ)(),p=t.span||(0,ej.HN)(),f=p?(0,ej.Hb)(p):function(t){let{traceId:a,sampled:l,spanId:c}=t.getPropagationContext();return(0,tH.$p)(a,c,l)}(d),h=p?(0,eF.jC)(p):(0,eF.CG)(a,d),g=(0,tW.IQ)(h),_=tH.Ke.test(f);return _?{"sentry-trace":f,baggage:g}:(ek.kg.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function stripBaggageHeaderOfSentryBaggageValues(t){return t.split(",").filter(t=>!t.split("=")[0].startsWith(tW.lq)).join(",")}let tq=new WeakMap,tV=new Map,tz={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function addHTTPTimings(t){let{url:a}=(0,ej.XU)(t).data||{};if(!a||"string"!=typeof a)return;let l=addPerformanceInstrumentationHandler("resource",({entries:c})=>{c.forEach(c=>{if("resource"===c.entryType&&"initiatorType"in c&&"string"==typeof c.nextHopProtocol&&("fetch"===c.initiatorType||"xmlhttprequest"===c.initiatorType)&&c.name.endsWith(a)){let a=function(t){let{name:a,version:l}=extractNetworkProtocol(t.nextHopProtocol),c=[];return(c.push(["network.protocol.version",l],["network.protocol.name",a]),eB.Z1)?[...c,["http.request.redirect_start",getAbsoluteTime(t.redirectStart)],["http.request.fetch_start",getAbsoluteTime(t.fetchStart)],["http.request.domain_lookup_start",getAbsoluteTime(t.domainLookupStart)],["http.request.domain_lookup_end",getAbsoluteTime(t.domainLookupEnd)],["http.request.connect_start",getAbsoluteTime(t.connectStart)],["http.request.secure_connection_start",getAbsoluteTime(t.secureConnectionStart)],["http.request.connection_end",getAbsoluteTime(t.connectEnd)],["http.request.request_start",getAbsoluteTime(t.requestStart)],["http.request.response_start",getAbsoluteTime(t.responseStart)],["http.request.response_end",getAbsoluteTime(t.responseEnd)]]:c}(c);a.forEach(a=>t.setAttribute(...a)),setTimeout(l)}})})}function getAbsoluteTime(t=0){return((eB.Z1||performance.timeOrigin)+t)/1e3}function request_getFullURL(t){try{let a=new URL(t,eU.location.origin);return a.href}catch(t){return}}let tU={...t$,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroun
54dSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...tz},browserTracingIntegration=(t={})=>{tB||(tB=!0,addGlobalErrorInstrumentationHandler(errorCallback),addGlobalUnhandledRejectionInstrumentationHandler(errorCallback));let{enableInp:a,enableLongTask:l,enableLongAnimationFrame:c,_experiments:{enableInteractions:d,enableStandaloneClsSpans:p},beforeStartSpan:f,idleTimeout:h,finalTimeout:g,childSpanTimeout:_,markBackgroundSpan:S,traceFetch:w,traceXHR:E,trackFetchStreamPerformance:H,shouldCreateSpanForRequest:U,enableHTTPTimings:J,instrumentPageLoad:er,instrumentNavigation:en}={...tU,...t},ei=function({recordClsStandaloneSpans:t}){let a=getBrowserPerformanceAPI();if(a&&eB.Z1){a.mark&&eK.performance.mark("sentry-tracing-init");let l=addFidInstrumentationHandler(({metric:t})=>{let a=t.entries[t.entries.length-1];if(!a)return;let l=msToSec(eB.Z1),c=msToSec(a.startTime);tF.fid={value:t.value,unit:"millisecond"},tF["mark.fid"]={value:l+c,unit:"second"}}),c=addLcpInstrumentationHandler(({metric:t})=>{let a=t.entries[t.entries.length-1];a&&(tF.lcp={value:t.value,unit:"millisecond"},x=a)},!0),d=addMetricObserver("ttfb",({metric:t})=>{let a=t.entries[t.entries.length-1];a&&(tF.ttfb={value:t.value,unit:"millisecond"})},instrumentTtfb,k),p=t?function(){let t,a,l=0;if(!function(){try{return PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch(t){return!1}}())return;let c=!1;function _collectClsOnce(){c||(c=!0,a&&function(t,a,l){let c=msToSec((eB.Z1||0)+(a&&a.startTime||0)),d=(0,eI.nZ)().getScopeData().transactionName,p=a?(0,eY.Rt)(a.sources[0]&&a.sources[0].node):"Layout shift",f=(0,eO.Jr)({[ts.S3]:"auto.http.browser.cls",[ts.$J]:"ui.webvital.cls",[ts.JQ]:a&&a.duration||0,"sentry.pageload.span_id":l}),h=startStandaloneWebVitalSpan({name:p,transaction:d,attributes:f,startTime:c});h&&(h.addEvent("cls",{[ts.E1]:"",[ts.Wb]:t}),h.end(c))}(l,t,a),d())}let d=addClsInstrumentationHandler(({metric:a})=>{let c=a.entries[a.entries.length-1];c&&(l=a.value,t=c)},!0);onHidden(()=>{_collectClsOnce()}),setTimeout(()=>{let t=(0,eI.s3)();if(!t)return;let l=t.on("startNavigationSpan",()=>{_collectClsOnce(),l&&l()}),c=(0,ej.HN)(),d=c&&(0,ej.Gx)(c),p=d&&(0,ej.XU)(d);p&&"pageload"===p.op&&(a=d.spanContext().spanId)},0)}():addClsInstrumentationHandler(({metric:t})=>{let a=t.entries[t.entries.length-1];a&&(tF.cls={value:t.value,unit:""},B=a)},!0);return()=>{l(),c(),d(),p&&p()}}return()=>void 0}({recordClsStandaloneSpans:p||!1});a&&function(){let t=getBrowserPerformanceAPI();if(t&&eB.Z1){let t=addInpInstrumentationHandler(({metric:t})=>{if(void 0==t.value)return;let a=t.entries.find(a=>a.duration===t.value&&tL[a.name]);if(!a)return;let{interactionId:l}=a,c=tL[a.name],d=msToSec(eB.Z1+a.startTime),p=msToSec(t.value),f=(0,ej.HN)(),h=f?(0,ej.Gx)(f):void 0,g=null!=l?tN.get(l):void 0,_=g||h,S=_?(0,ej.XU)(_).description:(0,eI.nZ)().getScopeData().transactionName,w=(0,eY.Rt)(a.target),k=(0,eO.Jr)({[ts.S3]:"auto.http.browser.inp",[ts.$J]:`ui.interaction.${c}`,[ts.JQ]:a.duration}),E=startStandaloneWebVitalSpan({name:w,transaction:S,attributes:k,startTime:d});E&&(E.addEvent("inp",{[ts.E1]:"millisecond",[ts.Wb]:t.value}),E.end(d+p))})}}(),c&&e_.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?function(){let t=new PerformanceObserver(t=>{let a=(0,ej.HN)();if(a)for(let l of t.getEntries()){if(!l.scripts[0])continue;let t=msToSec(eB.Z1+l.startTime),{start_timestamp:c,op:d}=(0,ej.XU)(a);if("navigation"===d&&c&&t<c)continue;let p=msToSec(l.duration),f={[ts.S3]:"auto.ui.browser.metrics"},h=l.scripts[0],{invoker:g,invokerType:_,sourceURL:S,sourceFunctionName:w,sourceCharPosition:k}=h;f["browser.script.invoker"]=g,f["browser.script.invoker_type"]=_,S&&(f["code.filepath"]=S),w&&(f["code.function"]=w),-1!==k&&(f["browser.script.source_char_position"]=k),startAndEndSpan(a,t,t+p,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:f})}});t.observe({type:"long-animation-frame",buffered:!0})}():l&&addPerformanceInstrumentationHandler("longtask",({entries:t})=>{let a=(0,ej.HN)();if(!a)return;let{op:l,start_timestamp:c}=(0,ej.XU)(a);for(let d of t){let t=msToSec(eB.Z1+d.startTime),p=msToSec(d.duration);"navigation"===l&&c&&t<c||startAndEndSpan(a,t,t+p,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[ts.S3]:"auto.ui.browser.metrics"}})}}),d&&addPerformanceInstrumentationHandler("event",({entries:t})=>{let a=(0,ej.HN)();if(a){for(let l of t)if("click"===l.name){let t=msToSec(eB.Z1+l.startTime),c=msToSec(l.duration),d={name:(0,eY.Rt)(l.target),op:`ui.interaction.${l.name}`,startTime:t,attributes:{[ts.S3]:"auto.ui.browser.metrics"}},p=(0,eY.iY)(l.target);p&&(d.attributes["ui.component_name"]=p),startAndEndSpan(a,t,t+c,d)}}});let ea={name:void 0,source:void 0};function _createRouteSpan(t,a){let l="pageload"===a.op,c=f?f(a):a,d=c.attributes||{};a.name!==c.name&&(d[ts.Zj]="custom",c.attributes=d),ea.name=c.name,ea.source=d[ts.Zj];let S=startIdleSpan(c,{idleTimeout:h,finalTimeout:g,childSpanTimeout:_,disableAutoFinish:l,beforeSpanEnd:t=>{ei(),function(t,a){let l=getBrowserPerformanceAPI();if(!l||!l.getEntries||!eB.Z1)return;let c=msToSec(eB.Z1),d=l.getEntries(),{op:p,start_timestamp:f}=(0,ej.XU)(t);if(d.slice(tA).forEach(a=>{let l=msToSec(a.startTime),d=msToSec(Math.max(0,a.duration));if("navigation"!==p||!f||!(c+l<f))switch(a.entryType){case"navigation":["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(l=>{_addPerformanceNavigationTiming(t,a,l,c)}),_addPerformanceNavigationTiming(t,a,"secureConnection",c,"TLS/SSL"),_addPerformanceNavigationTiming(t,a,"fetch",c,"cache"),_addPerformanceNavigationTiming(t,a,"domainLookup",c,"DNS"),function(t,a,l){let c=l+msToSec(a.requestStart),d=l+msToSec(a.responseEnd),p=l+msToSec(a.responseStart);a.responseEnd&&(startAndEndSpan(t,c,d,{op:"browser.request",name:a.name,attributes:{[ts.S3]:"auto.ui.browser.metrics"}}),startAndEndSpan(t,p,d,{op:"browser.response",name:a.name,attributes:{[ts.S3]:"auto.ui.browser.metrics"}}))}(t,a,c);break;case"mark":case"paint":case"measure":{(function(t,a,l,c,d){let p=getNavigationEntry(!1),f=msToSec(p?p.requestStart:0),h=d+Math.max(l,f),g=d+l,_={[ts.S3]:"auto.resource.browser.metrics"};h!==g&&(_["sentry.browser.measure_happened_before_request"]=!0,_["sentry.browser.measure_start_time"]=h),startAndEndSpan(t,h,g+c,{name:a.name,op:a.entryType,attributes:_})})(t,a,l,d,c);let p=getVisibilityWatcher(),f=a.startTime<p.firstHiddenTime;"first-paint"===a.name&&f&&(tF.fp={value:a.startTime,unit:"millisecond"}),"first-contentful-paint"===a.name&&f&&(tF.fcp={value:a.startTime,unit:"millisecond"});break}case"resource":(function(t,a,l,c,d,p){if("xmlhttprequest"===a.initiatorType||"fetch"===a.initiatorType)return;let f=url_parseUrl(l),h={[ts.S3]:"auto.resource.browser.metrics"};
54setResourceEntrySizeData(h,a,"transferSize","http.response_transfer_size"),setResourceEntrySizeData(h,a,"encodedBodySize","http.response_content_length"),setResourceEntrySizeData(h,a,"decodedBodySize","http.decoded_response_content_length");let g=a.deliveryType;null!=g&&(h["http.response_delivery_type"]=g);let _=a.renderBlockingStatus;_&&(h["resource.render_blocking_status"]=_),f.protocol&&(h["url.scheme"]=f.protocol.split(":").pop()),f.host&&(h["server.address"]=f.host),h["url.same_origin"]=l.includes(eK.location.origin);let{name:S,version:w}=extractNetworkProtocol(a.nextHopProtocol);h["network.protocol.name"]=S,h["network.protocol.version"]=w;let k=p+c,E=k+d;startAndEndSpan(t,k,E,{name:l.replace(eK.location.origin,""),op:a.initiatorType?`resource.${a.initiatorType}`:"resource.other",attributes:h})})(t,a,a.name,l,d,c)}}),tA=Math.max(d.length-1,0),function(t){let a=eK.navigator;if(!a)return;let l=a.connection;l&&(l.effectiveType&&t.setAttribute("effectiveConnectionType",l.effectiveType),l.type&&t.setAttribute("connectionType",l.type),isMeasurementValue(l.rtt)&&(tF["connection.rtt"]={value:l.rtt,unit:"millisecond"})),isMeasurementValue(a.deviceMemory)&&t.setAttribute("deviceMemory",`${a.deviceMemory} GB`),isMeasurementValue(a.hardwareConcurrency)&&t.setAttribute("hardwareConcurrency",String(a.hardwareConcurrency))}(t),"pageload"===p){(function(t){let a=getNavigationEntry(!1);if(!a)return;let{responseStart:l,requestStart:c}=a;c<=l&&(t["ttfb.requestTime"]={value:l-c,unit:"millisecond"})})(tF);let l=tF["mark.fid"];l&&tF.fid&&(startAndEndSpan(t,l.value,l.value+msToSec(tF.fid.value),{name:"first input delay",op:"ui.action",attributes:{[ts.S3]:"auto.ui.browser.metrics"}}),delete tF["mark.fid"]),"fcp"in tF&&a.recordClsOnPageloadSpan||delete tF.cls,Object.entries(tF).forEach(([t,a])=>{!function(t,a,l,c=(0,ej.HN)()){let d=c&&(0,ej.Gx)(c);d&&(ew.X&&ek.kg.log(`[Measurement] Setting measurement on root span: ${t} = ${a} ${l}`),d.addEvent(t,{[ts.Wb]:a,[ts.E1]:l}))}(t,a.value,a.unit)}),t.setAttribute("performance.timeOrigin",c),t.setAttribute("performance.activationStart",getActivationStart()),x&&(x.element&&t.setAttribute("lcp.element",(0,eY.Rt)(x.element)),x.id&&t.setAttribute("lcp.id",x.id),x.url&&t.setAttribute("lcp.url",x.url.trim().slice(0,200)),null!=x.loadTime&&t.setAttribute("lcp.loadTime",x.loadTime),null!=x.renderTime&&t.setAttribute("lcp.renderTime",x.renderTime),t.setAttribute("lcp.size",x.size)),B&&B.sources&&B.sources.forEach((a,l)=>t.setAttribute(`cls.source.${l+1}`,(0,eY.Rt)(a.node)))}x=void 0,B=void 0,tF={}}(t,{recordClsOnPageloadSpan:!p})}});function emitFinish(){["interactive","complete"].includes(eU.document.readyState)&&t.emit("idleSpanEnableAutoFinish",S)}return l&&eU.document&&(eU.document.addEventListener("readystatechange",()=>{emitFinish()}),emitFinish()),S}return{name:"BrowserTracing",afterAllSetup(t){let l,c;let p=eU.location&&eU.location.href;function maybeEndActiveSpan(){l&&!(0,ej.XU)(l).timestamp&&l.end()}t.on("startNavigationSpan",a=>{(0,eI.s3)()===t&&(maybeEndActiveSpan(),l=_createRouteSpan(t,{op:"navigation",...a}))}),t.on("startPageLoadSpan",(a,c={})=>{if((0,eI.s3)()!==t)return;maybeEndActiveSpan();let d=c.sentryTrace||getMetaContent("sentry-trace"),p=c.baggage||getMetaContent("baggage"),f=(0,tH.pT)(d,p);(0,eI.nZ)().setPropagationContext(f),l=_createRouteSpan(t,{op:"pageload",...a})}),t.on("spanEnd",t=>{let a=(0,ej.XU)(t).op;if(t!==(0,ej.Gx)(t)||"navigation"!==a&&"pageload"!==a)return;let l=(0,eI.nZ)(),c=l.getPropagationContext();l.setPropagationContext({...c,sampled:void 0!==c.sampled?c.sampled:(0,ej.Tt)(t),dsc:c.dsc||(0,eF.jC)(t)})}),eU.location&&(er&&startBrowserTracingPageLoadSpan(t,{name:eU.location.pathname,startTime:eB.Z1?eB.Z1/1e3:void 0,attributes:{[ts.Zj]:"url",[ts.S3]:"auto.pageload.browser"}}),en&&addHistoryInstrumentationHandler(({to:a,from:l})=>{if(void 0===l&&p&&-1!==p.indexOf(a)){p=void 0;return}l!==a&&(p=void 0,startBrowserTracingNavigationSpan(t,{name:eU.location.pathname,attributes:{[ts.Zj]:"url",[ts.S3]:"auto.navigation.browser"}}))})),S&&eU&&eU.document&&eU.document.addEventListener("visibilitychange",()=>{let t=(0,ej.HN)();if(!t)return;let a=(0,ej.Gx)(t);if(eU.document.hidden&&a){let{op:t,status:l}=(0,ej.XU)(a);l||a.setStatus({code:tj.jt,message:"cancelled"}),a.setAttribute("sentry.cancellation_reason","document.hidden"),a.end()}}),d&&eU.document&&addEventListener("click",()=>{let t=(0,ej.HN)(),a=t&&(0,ej.Gx)(t);if(a){let t=(0,ej.XU)(a).op;
54if(["navigation","pageload"].includes(t))return}c&&(c.setAttribute(ts.ju,"interactionInterrupted"),c.end(),c=void 0),ea.name&&(c=startIdleSpan({name:ea.name,op:"ui.action.click",attributes:{[ts.Zj]:ea.source||"url"}},{idleTimeout:h,finalTimeout:g,childSpanTimeout:_}))},{once:!1,capture:!0}),a&&function(){let handleEntries=({entries:t})=>{let a=(0,ej.HN)(),l=a&&(0,ej.Gx)(a);t.forEach(t=>{if(!("duration"in t)||!l)return;let a=t.interactionId;if(!(null==a||tN.has(a))){if(tD.length>10){let t=tD.shift();tN.delete(t)}tD.push(a),tN.set(a,l)}})};addPerformanceInstrumentationHandler("event",handleEntries),addPerformanceInstrumentationHandler("first-input",handleEntries)}(),function(t,a){let{traceFetch:l,traceXHR:c,trackFetchStreamPerformance:d,shouldCreateSpanForRequest:p,enableHTTPTimings:f,tracePropagationTargets:h}={traceFetch:tz.traceFetch,traceXHR:tz.traceXHR,trackFetchStreamPerformance:tz.trackFetchStreamPerformance,...a},g="function"==typeof p?p:t=>!0,shouldAttachHeadersWithTargets=t=>(function(t,a){let l=eU.location&&eU.location.href;if(l){let c,d;try{c=new URL(t,l),d=new URL(l).origin}catch(t){return!1}let p=c.origin===d;return a?(0,ex.U0)(c.toString(),a)||p&&(0,ex.U0)(c.pathname,a):p}{let l=!!t.match(/^\/(?!\/)/);return a?(0,ex.U0)(t,a):l}})(t,h),_={};l&&(t.addEventProcessor(t=>("transaction"===t.type&&t.spans&&t.spans.forEach(t=>{if("http.client"===t.op){let a=tV.get(t.span_id);a&&(t.timestamp=a/1e3,tV.delete(t.span_id))}}),t)),d&&function(t){let a="fetch-body-resolved";addHandler(a,t),maybeInstrument(a,()=>instrumentFetch(streamHandler))}(t=>{if(t.response){let a=tq.get(t.response);a&&t.endTimestamp&&tV.set(a,t.endTimestamp)}}),addFetchInstrumentationHandler(t=>{let a=function(t,a,l,c,d="auto.http.browser"){if(!t.fetchData)return;let p=(0,tx.z)()&&a(t.fetchData.url);if(t.endTimestamp&&p){let a=t.fetchData.__span;if(!a)return;let l=c[a];l&&(function(t,a){if(a.response){(0,tj.Q0)(t,a.response.status);let l=a.response&&a.response.headers&&a.response.headers.get("content-length");if(l){let a=parseInt(l);a>0&&t.setAttribute("http.response_content_length",a)}}else a.error&&t.setStatus({code:tj.jt,message:"internal_error"});t.end()}(l,t),delete c[a]);return}let{method:f,url:h}=t.fetchData,g=function(t){try{let a=new URL(t);return a.href}catch(t){return}}(h),_=g?url_parseUrl(g).host:void 0,S=!!(0,ej.HN)(),w=p&&S?startInactiveSpan({name:`${f} ${h}`,attributes:{url:h,type:"fetch","http.method":f,"http.url":g,"server.address":_,[ts.S3]:d,[ts.$J]:"http.client"}}):new sentryNonRecordingSpan_SentryNonRecordingSpan;if(t.fetchData.__span=w.spanContext().spanId,c[w.spanContext().spanId]=w,l(t.fetchData.url)){let a=t.args[0],l=t.args[1]||{},c=function(t,a,l){let c=getTraceData({span:l}),d=c["sentry-trace"],p=c.baggage;if(!d)return;let f=a.headers||("undefined"!=typeof Request&&(0,eH.V9)(t,Request)?t.headers:void 0);if(!f)return{...c};if("undefined"!=typeof Headers&&(0,eH.V9)(f,Headers)){let t=new Headers(f);if(t.set("sentry-trace",d),p){let a=t.get("baggage");if(a){let l=stripBaggageHeaderOfSentryBaggageValues(a);t.set("baggage",l?`${l},${p}`:p)}else t.set("baggage",p)}return t}if(Array.isArray(f)){let t=[...f.filter(t=>!(Array.isArray(t)&&"sentry-trace"===t[0])).map(t=>{if(!Array.isArray(t)||"baggage"!==t[0]||"string"!=typeof t[1])return t;{let[a,l,...c]=t;return[a,stripBaggageHeaderOfSentryBaggageValues(l),...c]}}),["sentry-trace",d]];return p&&t.push(["baggage",p]),t}{let t="baggage"in f?f.baggage:void 0,a=[];return Array.isArray(t)?a=t.map(t=>"string"==typeof t?stripBaggageHeaderOfSentryBaggageValues(t):t).filter(t=>""===t):t&&a.push(stripBaggageHeaderOfSentryBaggageValues(t)),p&&a.push(p),{...f,"sentry-trace":d,baggage:a.length>0?a.join(","):void 0}}}(a,l,(0,tx.z)()&&S?w:void 0);c&&(t.args[1]=l,l.headers=c)}return w}(t,g,shouldAttachHeadersWithTargets,_);if(t.response&&t.fetchData.__span&&tq.set(t.response,t.fetchData.__span),a){let l=request_getFullURL(t.fetchData.url),c=l?url_parseUrl(l).host:void 0;a.setAttributes({"http.url":l,"server.address":c})}f&&a&&addHTTPTimings(a)})),c&&addXhrInstrumentationHandler(t=>{let a=function(t,a,l,c){let d=t.xhr,p=d&&d[eX];if(!d||d.__sentry_own_request__||!p)return;let f=(0,tx.z)()&&a(p.url);if(t.endTimestamp&&f){let t=d.__sentry_xhr_span_id__;if(!t)return;let a=c[t];a&&void 0!==p.status_code&&((0,tj.Q0)(a,p.status_code),a.end(),delete c[t]);return}let h=request_getFullURL(p.url),g=h?url_parseUrl(h).host:void 0,_=!!(0,ej.HN)(),S=f&&_?startInactiveSpan({name:`${p.method} ${p.url}`,attributes:{type:"xhr","http.method":p.method,"http.url":h,url:p.url,"server.address":g,[ts.S3]:"auto.http.browser",[ts.$J]:"http.client"}}):new sentryNonRecordingSpan_SentryNonRecordingSpan;return d.__sentry_xhr_span_id__=S.spanContext().spanId,c[d.__sentry_xhr_span_id__]=S,l(p.url)&&function(t,a){let{"sentry-trace":l,baggage:c}=getTraceData({span:a});l&&function(t,a,l){try{t.setRequestHeader("sentry-trace",a),l&&t.setRequestHeader("baggage",l)}catch(t){}}(t,l,c)}(d,(0,tx.z)()&&_?S:void 0),S}(t,g,shouldAttachHeadersWithTargets,_);f&&a&&addHTTPTimings(a)})}(t,{traceFetch:w,traceXHR:E,trackFetchStreamPerformance:H,tracePropagationTargets:t.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:U,enableHTTPTimings:J})}}};function startBrowserTracingPageLoadSpan(t,a,l){t.emit("startPageLoadSpan",a,l),(0,eI.nZ)().setTransactionName(a.name);let c=(0,ej.HN)(),d=c&&(0,ej.XU)(c).op;return"pageload"===d?c:void 0}function startBrowserTracingNavigationSpan(t,a){(0,eI.aF)().setPropagationContext({traceId:(0,tI.Ht)()}),(0,eI.nZ)().setPropagationContext({traceId:(0,tI.Ht)()}),t.emit("startNavigationSpan",a),(0,eI.nZ)().setTransactionName(a.name);let l=(0,ej.HN)(),c=l&&(0,ej.XU)(l).op;return"navigation"===c?l:void 0}function getMetaContent(t){let a=(0,eY.qT)(`meta[name=${t}]`);return a?a.getAttribute("content"):void 0}let tZ="incomplete-app-router-transaction",tG=e_.GLOBAL_OBJ;function transactionNameifyRouterArgument(t){try{return new URL(t,"http://example.com/").pathname}catch(t){return"/"}}var tQ=l(11163),tK=l(36096);let tX=tQ.events?tQ:tQ.default,tJ=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function resolve(...t){let a="",l=!1;for(let c=t.length-1;c>=-1&&!l;c--){let d=c>=0?t[c]:"/";d&&(a=`${d}/${a}`,l="/"===d.charAt(0))}return a=(function(t,a){let l=0;for(let a=t.length-1;a>=0;a--){let c=t[a];"."===c?t.splice(a,1):".."===c?(t.splice(a,1),l++):l&&(t.splice(a,1),l--)}if(a)for(;l--;l)t.unshift("..");return t})(a.split("/").filter(t=>!!t),!l).join("/"),(l?"/":"")+a||"."}function trim(t){let a=0;for(;a<t.length&&""===t[a];a++);let l=t.length-1;for(;l>=0&&""===t[l];l--);return a>l?[]:t.slice(a,l-a+1)}let rewriteFramesIntegration=(t={})=>{let a=t.root,l=t.prefix||"app:///",c="window"in e_.GLOBAL_OBJ&&void 0!==e_.GLOBAL_OBJ.window,d=t.iteratee||function({isBrowser:t,root:a,prefix:l}){return c=>
54{if(!c.filename)return c;let d=/^[a-zA-Z]:\\/.test(c.filename)||c.filename.includes("\\")&&!c.filename.includes("/"),p=/^\//.test(c.filename);if(t){if(a){let t=c.filename;0===t.indexOf(a)&&(c.filename=t.replace(a,l))}}else if(d||p){var f;let t;let p=d?c.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):c.filename,h=a?function(t,a){t=resolve(t).slice(1),a=resolve(a).slice(1);let l=trim(t.split("/")),c=trim(a.split("/")),d=Math.min(l.length,c.length),p=d;for(let t=0;t<d;t++)if(l[t]!==c[t]){p=t;break}let f=[];for(let t=p;t<l.length;t++)f.push("..");return(f=f.concat(c.slice(p))).join("/")}(a,p):(t=function(t){let a=t.length>1024?`<truncated>${t.slice(-1024)}`:t,l=tJ.exec(a);return l?l.slice(1):[]}(p)[2]||"",f&&t.slice(-1*f.length)===f&&(t=t.slice(0,t.length-f.length)),t);c.filename=`${l}${h}`}return c}}({isBrowser:c,root:a,prefix:l});return{name:"RewriteFrames",processEvent(t){let a=t;return t.exception&&Array.isArray(t.exception.values)&&(a=function(t){try{return{...t,exception:{...t.exception,values:t.exception.values.map(t=>{var a;return{...t,...t.stacktrace&&{stacktrace:{...a=t.stacktrace,frames:a&&a.frames&&a.frames.map(t=>d(t))}}}})}}}catch(a){return t}}(a)),a}}},nextjsClientStackFrameNormalizationIntegration=({assetPrefixPath:t})=>{let a=rewriteFramesIntegration({iteratee:a=>{try{let{origin:l}=new URL(a.filename);a.filename=_optionalChain([a,"access",t=>t.filename,"optionalAccess",t=>t.replace,"call",t=>t(l,"app://"),"access",t=>t.replace,"call",a=>a(t,"")])}catch(t){}return a.filename&&a.filename.startsWith("app:///_next")&&(a.filename=decodeURI(a.filename)),a.filename&&a.filename.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(a.in_app=!1),a}});return{...a,name:"NextjsClientStackFrameNormalization"}};var tY=l(34155);let t0=e_.GLOBAL_OBJ,t1=e_.GLOBAL_OBJ;function removeTrailingSlash(t){return"/"===t[t.length-1]?t.slice(0,-1):t}var t2=l(34155);function isBrowser(){return"undefined"!=typeof window&&(!(!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==t2?t2:0))||function(){let t=e_.GLOBAL_OBJ.process;return!!t&&"renderer"===t.type}())}let t3=e_.GLOBAL_OBJ,t5="sentryReplaySession",t6="Unable to send Replay";function _nullishCoalesce$1(t,a){return null!=t?t:a()}function _optionalChain$5(t){let a;let l=t[0],c=1;for(;c<t.length;){let d=t[c],p=t[c+1];if(c+=2,("optionalAccess"===d||"optionalCall"===d)&&null==l)return;"access"===d||"optionalAccess"===d?(a=l,l=p(l)):("call"===d||"optionalCall"===d)&&(l=p((...t)=>l.call(a,...t)),a=void 0)}return l}function isShadowRoot(t){let a=_optionalChain$5([t,"optionalAccess",t=>t.host]);return _optionalChain$5([a,"optionalAccess",t=>t.shadowRoot])===t}function isNativeShadowDom(t){return"[object ShadowRoot]"===Object.prototype.toString.call(t)}function stringifyStylesheet(t){try{var a;let l=t.rules||t.cssRules;return l?((a=Array.from(l,stringifyRule).join("")).includes(" background-clip: text;")&&!a.includes(" -webkit-background-clip: text;")&&(a=a.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),a):null}catch(t){return null}}function stringifyRule(t){let a;if("styleSheet"in t)try{a=stringifyStylesheet(t.styleSheet)||function(t){let{cssText:a}=t;if(a.split('"').length<3)return a;let l=["@import",`url(${JSON.stringify(t.href)})`];return""===t.layerName?l.push("layer"):t.layerName&&l.push(`layer(${t.layerName})`),t.supportsText&&l.push(`supports(${t.supportsText})`),t.media.length&&l.push(t.media.mediaText),l.join(" ")+";"}(t)}catch(t){}else if("selectorText"in t){let a=t.cssText,l=t.selectorText.includes(":"),c="string"==typeof t.style.all&&t.style.all;if(c&&(a=function(t){let a="";for(let l=0;l<t.style.length;l++){let c=t.style,d=c[l],p=c.getPropertyPriority(d);a+=`${d}:${c.getPropertyValue(d)}${p?" !important":""};`}return`${t.selectorText} { ${a} }`}(t)),l&&(a=a.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),l||c)return a}return a||t.cssText}(ea=eg||(eg={}))[ea.Document=0]="Document",ea[ea.DocumentType=1]="DocumentType",ea[ea.Element=2]="Element",ea[ea.Text=3]="Text",ea[ea.CDATA=4]="CDATA",ea[ea.Comment=5]="Comment";let Mirror=class Mirror{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return -1;let a=_optionalChain$5([this,"access",t=>t.getMeta,"call",a=>a(t),"optionalAccess",t=>t.id]);return _nullishCoalesce$1(a,()=>-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 a=this.getId(t);
54this.idNodeMap.delete(a),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,a){let l=a.id;this.idNodeMap.set(l,t),this.nodeMetaMap.set(t,a)}replace(t,a){let l=this.getNode(t);if(l){let t=this.nodeMetaMap.get(l);t&&this.nodeMetaMap.set(a,t)}this.idNodeMap.set(t,a)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function shouldMaskInput({maskInputOptions:t,tagName:a,type:l}){return"OPTION"===a&&(a="SELECT"),!!(t[a.toLowerCase()]||l&&t[l]||"password"===l||"INPUT"===a&&!l&&t.text)}function maskInputValue({isMasked:t,element:a,value:l,maskInputFn:c}){let d=l||"";return t?(c&&(d=c(d,a)),"*".repeat(d.length)):d}function toLowerCase(t){return t.toLowerCase()}function toUpperCase(t){return t.toUpperCase()}let t8="__rrweb_original__";function getInputType(t){let a=t.type;return t.hasAttribute("data-rr-is-password")?"password":a?toLowerCase(a):null}function getInputValue(t,a,l){return"INPUT"===a&&("radio"===l||"checkbox"===l)?t.getAttribute("value")||"":t.value}function extractFileExtension(t,a){let l;try{l=new URL(t,_nullishCoalesce$1(a,()=>window.location.href))}catch(t){return null}let c=l.pathname.match(/\.([0-9a-z]+)(?:$)/i);return _nullishCoalesce$1(_optionalChain$5([c,"optionalAccess",t=>t[1]]),()=>null)}let t4={};function getImplementation$1(t){let a=t4[t];if(a)return a;let l=window.document,c=window[t];if(l&&"function"==typeof l.createElement)try{let a=l.createElement("iframe");a.hidden=!0,l.head.appendChild(a);let d=a.contentWindow;d&&d[t]&&(c=d[t]),l.head.removeChild(a)}catch(t){}return t4[t]=c.bind(window)}function setTimeout$2(...t){return getImplementation$1("setTimeout")(...t)}function clearTimeout$2(...t){return getImplementation$1("clearTimeout")(...t)}function getIframeContentDocument(t){try{return t.contentDocument}catch(t){}}let t9=1,t7=RegExp("[^a-z0-9-_:]");function genId(){return t9++}let re=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,rr=/^(?:[a-z+]+:)?\/\//i,rn=/^www\..*/i,ra=/^(data:)([^,]*),(.*)/i;function absoluteToStylesheet(t,a){return(t||"").replace(re,(t,l,c,d,p,f)=>{let h=c||p||f,g=l||d||"";if(!h)return t;if(rr.test(h)||rn.test(h)||ra.test(h))return`url(${g}${h}${g})`;if("/"===h[0])return`url(${g}${(a.indexOf("//")>-1?a.split("/").slice(0,3).join("/"):a.split("/")[0]).split("?")[0]+h}${g})`;let _=a.split("/"),S=h.split("/");for(let t of(_.pop(),S))"."!==t&&(".."===t?_.pop():_.push(t));return`url(${g}${_.join("/")}${g})`})}let rs=/^[^ \t\n\r\u000c]+/,rl=/^[, \t\n\r\u000c]+/,rc=new WeakMap;function absoluteToDoc(t,a){return a&&""!==a.trim()?getHref(t,a):a}function getHref(t,a){let l=rc.get(t);if(l||(l=t.createElement("a"),rc.set(t,l)),a){if(a.startsWith("blob:")||a.startsWith("data:"))return a}else a="";return l.setAttribute("href",a),l.href}function transformAttribute(t,a,l,c,d,p){return c?"src"!==l&&("href"!==l||"use"===a&&"#"===c[0])&&("xlink:href"!==l||"#"===c[0])&&("background"!==l||"table"!==a&&"td"!==a&&"th"!==a)?"srcset"===l?function(t,a){if(""===a.trim())return a;let l=0;function collectCharacters(t){let c;let d=t.exec(a.substring(l));return d?(c=d[0],l+=c.length,c):""}let c=[];for(;collectCharacters(rl),!(l>=a.length);){let d=collectCharacters(rs);if(","===d.slice(-1))d=absoluteToDoc(t,d.substring(0,d.length-1)),c.push(d);else{let p="";d=absoluteToDoc(t,d);let f=!1;for(;;){let t=a.charAt(l);if(""===t){c.push((d+p).trim());break}if(f)")"===t&&(f=!1);else{if(","===t){l+=1,c.push((d+p).trim());break}"("===t&&(f=!0)}p+=t,l+=1}}}return c.join(", ")}(t,c):"style"===l?absoluteToStylesheet(c,getHref(t)):"object"===a&&"data"===l?absoluteToDoc(t,c):"function"==typeof p?p(l,c,d):c:absoluteToDoc(t,c):c}function ignoreAttribute(t,a,l){return("video"===t||"audio"===t)&&"autoplay"===a}function distanceToMatch(t,a,l=1/0,c=0){return!t||t.nodeType!==t.ELEMENT_NODE||c>l?-1:a(t)?c:distanceToMatch(t.parentNode,a,l,c+1)}function createMatchPredicate(t,a){return l=>{if(null===l)return!1;try{if(t){if("string"==typeof t){if(l.matches(`.${t}`))return!0}else if(function(t,a){for(let l=t.classList.length;l--;){let c=t.classList[l];if(a.test(c))return!0}return!1}(l,t))return!0}if(a&&l.matches(a))return!0;return!1}catch(t){return!1}}}function needMaskingText(t,a,l,c,d,p){try{let f=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;if(null===f)return!1;if("INPUT"===f.tagName){let t=f.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(t))return!0}let h=-1,g=-1;if(p){if((g=distanceToMatch(f,createMatchPredicate(c,d)))<0)return!0;h=distanceToMatch(f,createMatchPredicate(a,l),g>=0?g:1/0)}
54else{if((h=distanceToMatch(f,createMatchPredicate(a,l)))<0)return!1;g=distanceToMatch(f,createMatchPredicate(c,d),h>=0?h:1/0)}return h>=0?!(g>=0)||h<=g:!(g>=0)&&!!p}catch(t){}return!!p}function lowerIfExists(t){return null==t?"":t.toLowerCase()}function serializeNodeWithId(t,a){let l;let{doc:c,mirror:d,blockClass:p,blockSelector:f,unblockSelector:h,maskAllText:g,maskTextClass:_,unmaskTextClass:S,maskTextSelector:w,unmaskTextSelector:k,skipChild:E=!1,inlineStylesheet:x=!0,maskInputOptions:B={},maskAttributeFn:J,maskTextFn:er,maskInputFn:en,slimDOMOptions:ei,dataURLOptions:ea={},inlineImages:el=!1,recordCanvas:ec=!1,onSerialize:eu,onIframeLoad:ed,iframeLoadTimeout:ep=5e3,onStylesheetLoad:ef,stylesheetLoadTimeout:eh=5e3,keepIframeSrcFn:em=()=>!1,newlyAddedElement:ev=!1}=a,{preserveWhiteSpace:ey=!0}=a,e_=function(t,a){let{doc:l,mirror:c,blockClass:d,blockSelector:p,unblockSelector:f,maskAllText:h,maskAttributeFn:g,maskTextClass:_,unmaskTextClass:S,maskTextSelector:w,unmaskTextSelector:k,inlineStylesheet:E,maskInputOptions:x={},maskTextFn:B,maskInputFn:J,dataURLOptions:er={},inlineImages:en,recordCanvas:ei,keepIframeSrcFn:ea,newlyAddedElement:el=!1}=a,ec=function(t,a){if(!a.hasNode(t))return;let l=a.getId(t);return 1===l?void 0:l}(l,c);switch(t.nodeType){case t.DOCUMENT_NODE:if("CSS1Compat"!==t.compatMode)return{type:eg.Document,childNodes:[],compatMode:t.compatMode};return{type:eg.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:eg.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:ec};case t.ELEMENT_NODE:return function(t,a){let l;let{doc:c,blockClass:d,blockSelector:p,unblockSelector:f,inlineStylesheet:h,maskInputOptions:g={},maskAttributeFn:_,maskInputFn:S,dataURLOptions:w={}
54,inlineImages:k,recordCanvas:E,keepIframeSrcFn:x,newlyAddedElement:B=!1,rootId:J,maskAllText:er,maskTextClass:en,unmaskTextClass:ei,maskTextSelector:ea,unmaskTextSelector:el}=a,ec=function(t,a,l,c){try{if(c&&t.matches(c))return!1;if("string"==typeof a){if(t.classList.contains(a))return!0}else for(let l=t.classList.length;l--;){let c=t.classList[l];if(a.test(c))return!0}if(l)return t.matches(l)}catch(t){}return!1}(t,d,p,f),eu=function(t){if(t instanceof HTMLFormElement)return"form";let a=toLowerCase(t.tagName);return t7.test(a)?"div":a}(t),ed={},ep=t.attributes.length;for(let a=0;a<ep;a++){let l=t.attributes[a];l.name&&!ignoreAttribute(eu,l.name,l.value)&&(ed[l.name]=transformAttribute(c,eu,toLowerCase(l.name),l.value,t,_))}if("link"===eu&&h){let a=Array.from(c.styleSheets).find(a=>a.href===t.href),l=null;a&&(l=stringifyStylesheet(a)),l&&(ed.rel=null,ed.href=null,ed.crossorigin=null,ed._cssText=absoluteToStylesheet(l,a.href))}if("style"===eu&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){let a=stringifyStylesheet(t.sheet);a&&(ed._cssText=absoluteToStylesheet(a,getHref(c)))}if("input"===eu||"textarea"===eu||"select"===eu||"option"===eu){let a=getInputType(t),l=getInputValue(t,toUpperCase(eu),a),c=t.checked;if("submit"!==a&&"button"!==a&&l){let c=needMaskingText(t,en,ea,ei,el,shouldMaskInput({type:a,tagName:toUpperCase(eu),maskInputOptions:g}));ed.value=maskInputValue({isMasked:c,element:t,value:l,maskInputFn:S})}c&&(ed.checked=c)}if("option"===eu&&(t.selected&&!g.select?ed.selected=!0:delete ed.selected),"canvas"===eu&&E){if("2d"===t.__context)!function(t){let a=t.getContext("2d");if(!a)return!0;for(let l=0;l<t.width;l+=50)for(let c=0;c<t.height;c+=50){let d=a.getImageData,p=t8 in d?d[t8]:d,f=new Uint32Array(p.call(a,l,c,Math.min(50,t.width-l),Math.min(50,t.height-c)).data.buffer);if(f.some(t=>0!==t))return!1}return!0}(t)&&(ed.rr_dataURL=t.toDataURL(w.type,w.quality));else if(!("__context"in t)){let a=t.toDataURL(w.type,w.quality),l=c.createElement("canvas");l.width=t.width,l.height=t.height;let d=l.toDataURL(w.type,w.quality);a!==d&&(ed.rr_dataURL=a)}}if("img"===eu&&k){H||(U=(H=c.createElement("canvas")).getContext("2d"));let a=t.currentSrc||t.getAttribute("src")||"<unknown-src>",l=t.crossOrigin,recordInlineImage=()=>{t.removeEventListener("load",recordInlineImage);try{H.width=t.naturalWidth,H.height=t.naturalHeight,U.drawImage(t,0,0),ed.rr_dataURL=H.toDataURL(w.type,w.quality)}catch(l){if("anonymous"!==t.crossOrigin){t.crossOrigin="anonymous",t.complete&&0!==t.naturalWidth?recordInlineImage():t.addEventListener("load",recordInlineImage);return}console.warn(`Cannot inline img src=${a}! Error: ${l}`)}"anonymous"===t.crossOrigin&&(l?ed.crossOrigin=l:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?recordInlineImage():t.addEventListener("load",recordInlineImage)}if(("audio"===eu||"video"===eu)&&(ed.rr_mediaState=t.paused?"paused":"played",ed.rr_mediaCurrentTime=t.currentTime),!B&&(t.scrollLeft&&(ed.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(ed.rr_scrollTop=t.scrollTop)),ec){let{width:a,height:l}=t.getBoundingClientRect();ed={class:ed.class,rr_width:`${a}px`,rr_height:`${l}px`}}"iframe"!==eu||x(ed.src)||(ec||getIframeContentDocument(t)||(ed.rr_src=ed.src),delete ed.src);try{customElements.get(eu)&&(l=!0)}catch(t){}return{type:eg.Element,tagName:eu,attributes:ed,childNodes:[],isSVG:!!("svg"===t.tagName||t.ownerSVGElement)||void 0,needBlock:ec,rootId:J,isCustom:l}}(t,{doc:l,blockClass:d,blockSelector:p,unblockSelector:f,inlineStylesheet:E,maskAttributeFn:g,maskInputOptions:x,maskInputFn:J,dataURLOptions:er,inlineImages:en,recordCanvas:ei,keepIframeSrcFn:ea,newlyAddedElement:el,rootId:ec,maskAllText:h,maskTextClass:_,unmaskTextClass:S,maskTextSelector:w,unmaskTextSelector:k});case t.TEXT_NODE:return function(t,a){let{maskAllText:l,maskTextClass:c,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,maskTextFn:h,maskInputOptions:g,maskInputFn:_,rootId:S}=a,w=t.parentNode&&t.parentNode.tagName,k=t.textContent,E="STYLE"===w||void 0,x="SCRIPT"===w||void 0,B="TEXTAREA"===w||void 0;if(E&&k){try{t.nextSibling||t.previousSibling||_optionalChain$5([t,"access",t=>t.parentNode,"access",t=>t.sheet,"optionalAccess",t=>t.cssRules])&&(k=stringifyStylesheet(t.parentNode.sheet))}catch(a){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${a}`,t)}k=absoluteToStylesheet(k,getHref(a.doc))}x&&(k="SCRIPT_PLACEHOLDER");let H=needMaskingText(t,c,p,d,f,l);if(E||x||B||!k||!H||(k=h?h(k,t.parentElement):k.replace(/[\S]/g,"*")),B&&k&&(g.textarea||H)&&(k=_?_(k,t.parentNode):k.replace(/[\S]/g,"*")),"OPTION"===w&&k){let a=shouldMaskInput({type:null,tagName:w,maskInputOptions:g});k=maskInputValue({isMasked:needMaskingText(t,c,p,d,f,a),element:t,value:k,maskInputFn:_})}return{type:eg.Text,textContent:k||"",isStyle:E,rootId:S}}(t,{doc:l,maskAllText:h,maskTextClass:_,unmaskTextClass:S,maskTextSelector:w,unmaskTextSelector:k,maskTextFn:B,maskInputOptions:x,maskInputFn:J,rootId:ec});case t.CDATA_SECTION_NODE:return{type:eg.CDATA,textContent:"",rootId:ec};case t.COMMENT_NODE:return{type:eg.Comment,textContent:t.textContent||"",rootId:ec};default:return!1}}(t,{doc:c,mirror:d,blockClass:p,blockSelector:f,maskAllText:g,unblockSelector:h,maskTextClass:_,unmaskTextClass:S,maskTextSelector:w,unmaskTextSelector:k,inlineStylesheet:x,maskInputOptions:B,maskAttributeFn:J,maskTextFn:er,maskInputFn:en,dataURLOptions:ea,inlineImages:el,recordCanvas:ec,
54keepIframeSrcFn:em,newlyAddedElement:ev});if(!e_)return console.warn(t,"not serialized"),null;l=d.hasNode(t)?d.getId(t):!function(t,a){if(a.comment&&t.type===eg.Comment)return!0;if(t.type===eg.Element){if(a.script&&("script"===t.tagName||"link"===t.tagName&&("preload"===t.attributes.rel||"modulepreload"===t.attributes.rel)||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&"js"===extractFileExtension(t.attributes.href))||a.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(lowerIfExists(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===lowerIfExists(t.attributes.name)||"icon"===lowerIfExists(t.attributes.rel)||"apple-touch-icon"===lowerIfExists(t.attributes.rel)||"shortcut icon"===lowerIfExists(t.attributes.rel))))return!0;if("meta"===t.tagName){if(a.headMetaDescKeywords&&lowerIfExists(t.attributes.name).match(/^description|keywords$/)||a.headMetaSocial&&(lowerIfExists(t.attributes.property).match(/^(og|twitter|fb):/)||lowerIfExists(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===lowerIfExists(t.attributes.name)))return!0;if(a.headMetaRobots&&("robots"===lowerIfExists(t.attributes.name)||"googlebot"===lowerIfExists(t.attributes.name)||"bingbot"===lowerIfExists(t.attributes.name)))return!0;if(a.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;else if(a.headMetaAuthorship&&("author"===lowerIfExists(t.attributes.name)||"generator"===lowerIfExists(t.attributes.name)||"framework"===lowerIfExists(t.attributes.name)||"publisher"===lowerIfExists(t.attributes.name)||"progid"===lowerIfExists(t.attributes.name)||lowerIfExists(t.attributes.property).match(/^article:/)||lowerIfExists(t.attributes.property).match(/^product:/)))return!0;else if(a.headMetaVerification&&("google-site-verification"===lowerIfExists(t.attributes.name)||"yandex-verification"===lowerIfExists(t.attributes.name)||"csrf-token"===lowerIfExists(t.attributes.name)||"p:domain_verify"===lowerIfExists(t.attributes.name)||"verify-v1"===lowerIfExists(t.attributes.name)||"verification"===lowerIfExists(t.attributes.name)||"shopify-checkout-api-token"===lowerIfExists(t.attributes.name)))return!0}}return!1}(e_,ei)&&(ey||e_.type!==eg.Text||e_.isStyle||e_.textContent.replace(/^\s+|\s+$/gm,"").length)?genId():-2;let eb=Object.assign(e_,{id:l});if(d.add(t,eb),-2===l)return null;eu&&eu(t);let eS=!E;if(eb.type===eg.Element){eS=eS&&!eb.needBlock,delete eb.needBlock;let a=t.shadowRoot;a&&isNativeShadowDom(a)&&(eb.isShadowHost=!0)}if((eb.type===eg.Document||eb.type===eg.Element)&&eS){ei.headWhitespace&&eb.type===eg.Element&&"head"===eb.tagName&&(ey=!1);let a={doc:c,mirror:d,blockClass:p,blockSelector:f,maskAllText:g,unblockSelector:h,maskTextClass:_,unmaskTextClass:S,maskTextSelector:w,unmaskTextSelector:k,skipChild:E,inlineStylesheet:x,maskInputOptions:B,maskAttributeFn:J,maskTextFn:er,maskInputFn:en,slimDOMOptions:ei,dataURLOptions:ea,inlineImages:el,recordCanvas:ec,preserveWhiteSpace:ey,onSerialize:eu,onIframeLoad:ed,iframeLoadTimeout:ep,onStylesheetLoad:ef,stylesheetLoadTimeout:eh,keepIframeSrcFn:em};for(let l of Array.from(t.childNodes)){let t=serializeNodeWithId(l,a);t&&eb.childNodes.push(t)}if(t.nodeType===t.ELEMENT_NODE&&t.shadowRoot)for(let l of Array.from(t.shadowRoot.childNodes)){let c=serializeNodeWithId(l,a);c&&(isNativeShadowDom(t.shadowRoot)&&(c.isShadow=!0),eb.childNodes.push(c))}}return t.parentNode&&isShadowRoot(t.parentNode)&&isNativeShadowDom(t.parentNode)&&(eb.isShadow=!0),eb.type===eg.Element&&"iframe"===eb.tagName&&function(t,a,l){let c;let d=t.contentWindow;if(!d)return;let p=!1;try{c=d.document.readyState}catch(t){return}if("complete"!==c){let c=setTimeout$2(()=>{p||(a(),p=!0)},l);t.addEventListener("load",()=>{clearTimeout$2(c),p=!0,a()});return}let f="about:blank";if(d.location.href!==f||t.src===f||""===t.src)return setTimeout$2(a,0),t.addEventListener("load",a);t.addEventListener("load",a)}(t,()=>{let a=getIframeContentDocument(t);if(a&&ed){let l=serializeNodeWithId(a,{doc:a,mirror:d,blockClass:p,blockSelector:f,unblockSelector:h,maskAllText:g,maskTextClass:_,unmaskTextClass:S,maskTextSelector:w,unmaskTextSelector:k,skipChild:!1,inlineStylesheet:x,maskInputOptions:B,maskAttributeFn:J,maskTextFn:er,maskInputFn:en,slimDOMOptions:ei,dataURLOptions:ea,inlineImages:el,recordCanvas:ec,preserveWhiteSpace:ey,onSerialize:eu,onIframeLoad:ed,iframeLoadTimeout:ep,onStylesheetLoad:ef,stylesheetLoadTimeout:eh,keepIframeSrcFn:em});l&&ed(t,l)}},ep),eb.type===eg.Element&&"link"===eb.tagName&&"string"==typeof eb.attributes.rel&&("stylesheet"===eb.attributes.rel||"preload"===eb.attributes.rel&&"string"==typeof eb.attributes.href&&"css"===extractFileExtension(eb.attributes.href))&&function(t,a,l){let c,d=!1;try{c=t.sheet}catch(t){return}if(c)return;let p=setTimeout$2(()=>{d||(a(),d=!0)},l);t.addEventListener("load",()=>{clearTimeout$2(p),d=!0,a()})}(t,()=>{if(ef){let a=serializeNodeWithId(t,{doc:c,mirror:d,blockClass:p,blockSelector:f,unblockSelector:h,maskAllText:g,maskTextClass:_,unmaskTextClass:S,maskTextSelector:w,unmaskTextSelector:k,skipChild:!1,inlineStylesheet:x,maskInputOptions:B,maskAttributeFn:J,maskTextFn:er,maskInputFn:en,slimDOMOptions:ei,dataURLOptions:ea,inlineImages:el,recordCanvas:ec,preserveWhiteSpace:ey,onSerialize:eu,onIframeLoad:ed,iframeLoadTimeout:ep,onStylesheetLoad:ef,stylesheetLoadTimeout:eh,keepIframeSrcFn:em});a&&ef(t,a)}},eh),eb}function _optionalChain$4(t){let a;let l=t[0],c=1;for(;c<t.length;){let d=t[c],p=t[c+1];if(c+=2,("optionalAccess"===d||"optionalCall"===d)&&null==l)return;"access"===d||"optionalAccess"===d?(a=l,l=p(l)):("call"===d||"optionalCall"===d)&&(l=p((...t)=>l.call(a,...t)),a=void 0)}return l}function on(t,a,l=document){let c={capture:!0,passive:!0};return l.addEventListener(t,a,c),()=>l.removeEventListener(t,a,c)}let ru="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.",rd={map:{},getId:()=>(console.error(ru),-1),getNode:()=>(console.error(ru),null),removeNodeFromMap(){console.error(ru)},has:()=>(console.error(ru),!1),reset(){console.error(ru)}};function throttle$1(t,a,l={}){let c=null,d=0;
54return function(...p){let f=Date.now();d||!1!==l.leading||(d=f);let h=a-(f-d),g=this;h<=0||h>a?(c&&(function(...t){getImplementation("clearTimeout")(...t)}(c),c=null),d=f,t.apply(g,p)):c||!1===l.trailing||(c=setTimeout$1(()=>{d=!1===l.leading?0:Date.now(),c=null,t.apply(g,p)},h))}}function patch(t,a,l){try{if(!(a in t))return()=>{};let c=t[a],d=l(c);return"function"==typeof d&&(d.prototype=d.prototype||{},Object.defineProperties(d,{__rrweb_original__:{enumerable:!1,value:c}})),t[a]=d,()=>{t[a]=c}}catch(t){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(rd=new Proxy(rd,{get:(t,a,l)=>("map"===a&&console.error(ru),Reflect.get(t,a,l))}));let rp=Date.now;function getWindowScroll(t){let a=t.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:void 0!==t.pageXOffset?t.pageXOffset:_optionalChain$4([a,"optionalAccess",t=>t.documentElement,"access",t=>t.scrollLeft])||_optionalChain$4([a,"optionalAccess",t=>t.body,"optionalAccess",t=>t.parentElement,"optionalAccess",t=>t.scrollLeft])||_optionalChain$4([a,"optionalAccess",t=>t.body,"optionalAccess",t=>t.scrollLeft])||0,top:a.scrollingElement?a.scrollingElement.scrollTop:void 0!==t.pageYOffset?t.pageYOffset:_optionalChain$4([a,"optionalAccess",t=>t.documentElement,"access",t=>t.scrollTop])||_optionalChain$4([a,"optionalAccess",t=>t.body,"optionalAccess",t=>t.parentElement,"optionalAccess",t=>t.scrollTop])||_optionalChain$4([a,"optionalAccess",t=>t.body,"optionalAccess",t=>t.scrollTop])||0}}function getWindowHeight(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function getWindowWidth(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function closestElementOfNode(t){if(!t)return null;let a=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;return a}function isBlocked(t,a,l,c,d){if(!t)return!1;let p=closestElementOfNode(t);if(!p)return!1;let f=createMatchPredicate(a,l);if(!d){let t=c&&p.matches(c);return f(p)&&!t}let h=distanceToMatch(p,f),g=-1;return!(h<0)&&(c&&(g=distanceToMatch(p,createMatchPredicate(null,c))),h>-1&&g<0||h<g)}function isIgnored(t,a){return -2===a.getId(t)}function legacy_isTouchEvent(t){return!!t.changedTouches}function isSerializedIframe(t,a){return!!("IFRAME"===t.nodeName&&a.getMeta(t))}function isSerializedStylesheet(t,a){return!!("LINK"===t.nodeName&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&"stylesheet"===t.getAttribute("rel")&&a.getMeta(t))}function hasShadowRoot(t){return!!_optionalChain$4([t,"optionalAccess",t=>t.shadowRoot])}/[1-9][0-9]{12}/.test(Date.now().toString())||(rp=()=>new Date().getTime());let StyleSheetMirror=class StyleSheetMirror{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){var a;return a=this.styleIDMap.get(t),null!=a?a:-1}has(t){return this.styleIDMap.has(t)}add(t,a){let l;return this.has(t)?this.getId(t):(l=void 0===a?this.id++:a,this.styleIDMap.set(t,l),this.idStyleMap.set(l,t),l)}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function getShadowHost(t){let a=null;return _optionalChain$4([t,"access",t=>t.getRootNode,"optionalCall",t=>t(),"optionalAccess",t=>t.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&t.getRootNode().host&&(a=t.getRootNode().host),a}function inDom(t){let a=t.ownerDocument;return!!a&&(a.contains(t)||function(t){let a=t.ownerDocument;if(!a)return!1;let l=function(t){let a,l=t;for(;a=getShadowHost(l);)l=a;return l}(t);return a.contains(l)}(t))}let rf={};function getImplementation(t){let a=rf[t];if(a)return a;let l=window.document,c=window[t];if(l&&"function"==typeof l.createElement)try{let a=l.createElement("iframe");a.hidden=!0,l.head.appendChild(a);let d=a.contentWindow;d&&d[t]&&(c=d[t]),l.head.removeChild(a)}catch(t){}return rf[t]=c.bind(window)}function setTimeout$1(...t){return getImplementation("setTimeout")(...t)}var rh=((el=rh||{})[el.DomContentLoaded=0]="DomContentLoaded",el[el.Load=1]="Load",el[el.FullSnapshot=2]="FullSnapshot",el[el.IncrementalSnapshot=3]="IncrementalSnapshot",el[el.Meta=4]="Meta",el[el.Custom=5]="Custom",el[el.Plugin=6]="Plugin",el),rg=((ec=rg||{})[ec.Mutation=0]="Mutation",ec[ec.MouseMove=1]="MouseMove",ec[ec.MouseInteraction=2]="MouseInteraction",ec[ec.Scroll=3]="Scroll",ec[ec.ViewportResize=4]="ViewportResize",ec[ec.Input=5]="Input",ec[ec.TouchMove=6]="TouchMove",ec[ec.MediaInteraction=7]="MediaInteraction",ec[ec.StyleSheetRule=8]="StyleSheetRule",ec[ec.CanvasMutation=9]="CanvasMutation",ec[ec.Font=10]="Font",ec[ec.Log=11]="Log",ec[ec.Drag=12]="Drag",ec[ec.StyleDeclaration=13]="StyleDeclaration",ec[ec.Selection=14]="Selection",ec[ec.AdoptedStyleSheet=15]="AdoptedStyleSheet",ec[ec.CustomElement=16]="CustomElement",ec),rm=((eu=rm||{})[eu.MouseUp=0]="MouseUp",eu[eu.MouseDown=1]="MouseDown",eu[eu.Click=2]="Click",eu[eu.ContextMenu=3]="ContextMenu",eu[eu.DblClick=4]="DblClick",eu[eu.Focus=5]="Focus",eu[eu.Blur=6]="Blur",eu[eu.TouchStart=7]="TouchStart",eu[eu.TouchMove_Departed=8]="TouchMove_Departed",eu[eu.TouchEnd=9]="TouchEnd",eu[eu.TouchCancel=10]="TouchCancel",eu),ry=((ed=ry||{})[ed.Mouse=0]="Mouse",ed[ed.Pen=1]="Pen",ed[ed.Touch=2]="Touch",ed);function getIFrameContentDocument(t){try{return t.contentDocument}catch(t){}}(ep=em||(em={}))[ep.Document=0]="Document",ep[ep.DocumentType=1]="DocumentType",ep[ep.Element=2]="Element",ep[ep.Text=3]="Text",ep[ep.CDATA=4]="CDATA",ep[ep.Comment=5]="Comment",(ef=ev||(ev={}))[ef.PLACEHOLDER=0]="PLACEHOLDER",ef[ef.ELEMENT_NODE=1]="ELEMENT_NODE",ef[ef.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",ef[ef.TEXT_NODE=3]="TEXT_NODE",ef[ef.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",ef[ef.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",ef[ef.ENTITY_NODE=6]="ENTITY_NODE",ef[ef.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",ef[ef.COMMENT_NODE=8]="COMMENT_NODE",ef[ef.DOCUMENT_NODE=9]="DOCUMENT_NODE",ef[ef.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",ef[ef.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";let DoubleLinkedList=class DoubleLinkedList{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw Error("Position outside of list range");let a=this.head;for(let l=0;l<t;l++)a=function(t){let a;let l=t[0],c=1;for(;c<t.length;){let d=t[c],p=t[c+1];if(c+=2,("optionalAccess"===d||"optionalCall"===d)&&null==l)return;"access"===d||"optionalAccess"===d?(a=l,l=p(l)):("call"===d||"optionalCall"===d)&&(l=p((...t)=>l.call(a,...t)),a=void 0)}return l}([a,"optionalAccess",t=>t.next])||null;return a}
54addNode(t){let a={value:t,previous:null,next:null};if(t.__ln=a,t.previousSibling&&"__ln"in t.previousSibling){let l=t.previousSibling.__ln.next;a.next=l,a.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=a,l&&(l.previous=a)}else if(t.nextSibling&&"__ln"in t.nextSibling&&t.nextSibling.__ln.previous){let l=t.nextSibling.__ln.previous;a.previous=l,a.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=a,l&&(l.next=a)}else this.head&&(this.head.previous=a),a.next=this.head,this.head=a;null===a.next&&(this.tail=a),this.length++}removeNode(t){let a=t.__ln;this.head&&(a.previous?(a.previous.next=a.next,a.next?a.next.previous=a.previous:this.tail=a.previous):(this.head=a.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}};let moveKey=(t,a)=>`${t}@${a}`;let MutationBuffer=class MutationBuffer{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=[],a=new Set,l=new DoubleLinkedList,getNextId=t=>{let a=t,l=-2;for(;-2===l;)l=(a=a&&a.nextSibling)&&this.mirror.getId(a);return l},pushAdd=c=>{if(!c.parentNode||!inDom(c))return;let d=isShadowRoot(c.parentNode)?this.mirror.getId(getShadowHost(c)):this.mirror.getId(c.parentNode),p=getNextId(c);if(-1===d||-1===p)return l.addNode(c);let f=serializeNodeWithId(c,{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=>{isSerializedIframe(t,this.mirror)&&!isBlocked(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(t),isSerializedStylesheet(t,this.mirror)&&this.stylesheetManager.trackLinkElement(t),hasShadowRoot(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(t,a)=>{isBlocked(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(t,a),t.contentWindow&&this.canvasManager.addWindow(t.contentWindow),this.shadowDomManager.observeAttachShadow(t))},onStylesheetLoad:(t,a)=>{this.stylesheetManager.attachLinkElement(t,a)}});f&&(t.push({parentId:d,nextId:p,node:f}),a.add(f.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let t of this.movedSet)(!isParentRemoved(this.removes,t,this.mirror)||this.movedSet.has(t.parentNode))&&pushAdd(t);for(let t of this.addedSet)isAncestorInSet(this.droppedSet,t)||isParentRemoved(this.removes,t,this.mirror)?isAncestorInSet(this.movedSet,t)?pushAdd(t):this.droppedSet.add(t):pushAdd(t);let c=null;for(;l.length;){let t=null;if(c){let a=this.mirror.getId(c.value.parentNode),l=getNextId(c.value);-1!==a&&-1!==l&&(t=c)}if(!t){let a=l.tail;for(;a;){let l=a;if(a=a.previous,l){let a=this.mirror.getId(l.value.parentNode),c=getNextId(l.value);if(-1===c)continue;if(-1!==a){t=l;break}{let a=l.value;if(a.parentNode&&a.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let c=a.parentNode.host,d=this.mirror.getId(c);if(-1!==d){t=l;break}}}}}}if(!t){for(;l.head;)l.removeNode(l.head.value);break}c=t.previous,l.removeNode(t.value),pushAdd(t.value)}let d={texts:this.texts.map(t=>({id:this.mirror.getId(t.node),value:t.value})).filter(t=>!a.has(t.id)).filter(t=>this.mirror.has(t.id)),attributes:this.attributes.map(t=>{let{attributes:a}=t;if("string"==typeof a.style){let l=JSON.stringify(t.styleDiff),c=JSON.stringify(t._unchangedStyles);l.length<a.style.length&&(l+c).split("var(").length===a.style.split("var(").length&&(a.style=t.styleDiff)}return{id:this.mirror.getId(t.node),attributes:a}}).filter(t=>!a.has(t.id)).filter(t=>this.mirror.has(t.id)),removes:this.removes,adds:t};(d.texts.length||d.attributes.length||d.removes.length||d.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(d))},this.processMutation=t=>{if(!isIgnored(t.target,this.mirror))switch(t.type){case"characterData":{let a=t.target.textContent;isBlocked(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||a===t.oldValue||this.texts.push({value:needMaskingText(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&a?this.maskTextFn?this.maskTextFn(a,closestElementOfNode(t.target)):a.replace(/[\S]/g,"*"):a,node:t.target});break}case"attributes":{let a=t.target,l=t.attributeName,c=t.target.getAttribute(l);
54if("value"===l){let l=getInputType(a),d=a.tagName;c=getInputValue(a,d,l);let p=shouldMaskInput({maskInputOptions:this.maskInputOptions,tagName:d,type:l}),f=needMaskingText(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,p);c=maskInputValue({isMasked:f,element:a,value:c,maskInputFn:this.maskInputFn})}if(isBlocked(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||c===t.oldValue)return;let d=this.attributeMap.get(t.target);if("IFRAME"===a.tagName&&"src"===l&&!this.keepIframeSrcFn(c)){let t=getIFrameContentDocument(a);if(t)return;l="rr_src"}if(d||(d={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(d),this.attributeMap.set(t.target,d)),"type"===l&&"INPUT"===a.tagName&&"password"===(t.oldValue||"").toLowerCase()&&a.setAttribute("data-rr-is-password","true"),!ignoreAttribute(a.tagName,l)&&(d.attributes[l]=transformAttribute(this.doc,toLowerCase(a.tagName),toLowerCase(l),c,a,this.maskAttributeFn),"style"===l)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){this.unattachedDoc=this.doc}let l=this.unattachedDoc.createElement("span");for(let c of(t.oldValue&&l.setAttribute("style",t.oldValue),Array.from(a.style))){let t=a.style.getPropertyValue(c),p=a.style.getPropertyPriority(c);t!==l.style.getPropertyValue(c)||p!==l.style.getPropertyPriority(c)?""===p?d.styleDiff[c]=t:d.styleDiff[c]=[t,p]:d._unchangedStyles[c]=[t,p]}for(let t of Array.from(l.style))""===a.style.getPropertyValue(t)&&(d.styleDiff[t]=!1)}break}case"childList":if(isBlocked(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(a=>this.genAdds(a,t.target)),t.removedNodes.forEach(a=>
54{let l=this.mirror.getId(a),c=isShadowRoot(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);isBlocked(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||isIgnored(a,this.mirror)||-1===this.mirror.getId(a)||(this.addedSet.has(a)?(deepDelete(this.addedSet,a),this.droppedSet.add(a)):this.addedSet.has(t.target)&&-1===l||function isAncestorRemoved(t,a){if(isShadowRoot(t))return!1;let l=a.getId(t);return!a.has(l)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||isAncestorRemoved(t.parentNode,a))}(t.target,this.mirror)||(this.movedSet.has(a)&&this.movedMap[moveKey(l,c)]?deepDelete(this.movedSet,a):this.removes.push({parentId:c,id:l,isShadow:!!(isShadowRoot(t.target)&&isNativeShadowDom(t.target))||void 0})),this.mapRemoves.push(a))})}},this.genAdds=(t,a)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(isIgnored(t,this.mirror))return;this.movedSet.add(t);let l=null;a&&this.mirror.hasNode(a)&&(l=this.mirror.getId(a)),l&&-1!==l&&(this.movedMap[moveKey(this.mirror.getId(t),l)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);!isBlocked(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(t.childNodes.forEach(t=>this.genAdds(t)),hasShadowRoot(t)&&t.shadowRoot.childNodes.forEach(a=>{this.processedNodeManager.add(a,this),this.genAdds(a,t)}))}}}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(a=>{this[a]=t[a]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function deepDelete(t,a){t.delete(a),a.childNodes.forEach(a=>deepDelete(t,a))}function isParentRemoved(t,a,l){return 0!==t.length&&function(t,a,l){let c=a.parentNode;for(;c;){let a=l.getId(c);if(t.some(t=>t.id===a))return!0;c=c.parentNode}return!1}(t,a,l)}function isAncestorInSet(t,a){return 0!==t.size&&function _isAncestorInSet(t,a){let{parentNode:l}=a;return!!l&&(!!t.has(l)||_isAncestorInSet(t,l))}(t,a)}let callbackWrapper=t=>J?(...a)=>{try{return t(...a)}catch(t){if(J&&!0===J(t))return()=>{};throw t}}:t;function _optionalChain$2(t){let a;let l=t[0],c=1;for(;c<t.length;){let d=t[c],p=t[c+1];if(c+=2,("optionalAccess"===d||"optionalCall"===d)&&null==l)return;"access"===d||"optionalAccess"===d?(a=l,l=p(l)):("call"===d||"optionalCall"===d)&&(l=p((...t)=>l.call(a,...t)),a=void 0)}return l}let r_=[];function esm_getEventTarget(t){try{if("composedPath"in t){let a=t.composedPath();if(a.length)return a[0]}else if("path"in t&&t.path.length)return t.path[0]}catch(t){}return t&&t.target}function initMutationObserver(t,a){let l=new MutationBuffer;r_.push(l),l.init(t);let c=window.MutationObserver||window.__rrMutationObserver,d=_optionalChain$2([window,"optionalAccess",t=>t.Zone,"optionalAccess",t=>t.__symbol__,"optionalCall",t=>t("MutationObserver")]);d&&window[d]&&(c=window[d]);let p=new c(callbackWrapper(a=>{t.onMutation&&!1===t.onMutation(a)||l.processMutations.bind(l)(a)}));return p.observe(a,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),p}function initScrollObserver({scrollCb:t,doc:a,mirror:l,blockClass:c,blockSelector:d,unblockSelector:p,sampling:f}){let h=callbackWrapper(throttle$1(callbackWrapper(f=>{let h=esm_getEventTarget(f);if(!h||isBlocked(h,c,d,p,!0))return;let g=l.getId(h);if(h===a&&a.defaultView){let l=getWindowScroll(a.defaultView);t({id:g,x:l.left,y:l.top})}else t({id:g,x:h.scrollLeft,y:h.scrollTop})}),f.scroll||100));return on("scroll",h,a)}let rb=["INPUT","TEXTAREA","SELECT"],rS=new WeakMap;function getNestedCSSRulePositions(t){return function(t,a){if(hasNestedCSSRule("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||hasNestedCSSRule("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||hasNestedCSSRule("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||hasNestedCSSRule("CSSConditionRule")&&t.parentRule instanceof CSSConditionRule){let l=Array.from(t.parentRule.cssRules),c=l.indexOf(t);a.unshift(c)}else if(t.parentStyleSheet){let l=Array.from(t.parentStyleSheet.cssRules),c=l.indexOf(t);a.unshift(c)}return a}(t,[])}function getIdAndStyleId(t,a,l){let c,d;return t?(t.ownerNode?c=a.getId(t.ownerNode):d=l.getId(t),{styleId:d,id:c}):{}}function initAdoptedStyleSheetObserver({mirror:t,stylesheetManager:a},l){let c=null;
54c="#document"===l.nodeName?t.getId(l):t.getId(l.host);let d="#document"===l.nodeName?_optionalChain$2([l,"access",t=>t.defaultView,"optionalAccess",t=>t.Document]):_optionalChain$2([l,"access",t=>t.ownerDocument,"optionalAccess",t=>t.defaultView,"optionalAccess",t=>t.ShadowRoot]),p=_optionalChain$2([d,"optionalAccess",t=>t.prototype])?Object.getOwnPropertyDescriptor(_optionalChain$2([d,"optionalAccess",t=>t.prototype]),"adoptedStyleSheets"):void 0;return null!==c&&-1!==c&&d&&p?(Object.defineProperty(l,"adoptedStyleSheets",{configurable:p.configurable,enumerable:p.enumerable,get(){return _optionalChain$2([p,"access",t=>t.get,"optionalAccess",t=>t.call,"call",t=>t(this)])},set(t){let l=_optionalChain$2([p,"access",t=>t.set,"optionalAccess",t=>t.call,"call",a=>a(this,t)]);if(null!==c&&-1!==c)try{a.adoptStyleSheets(t,c)}catch(t){}return l}}),callbackWrapper(()=>{Object.defineProperty(l,"adoptedStyleSheets",{configurable:p.configurable,enumerable:p.enumerable,get:p.get,set:p.set})})):()=>{}}function initObservers(t,a={}){let l;let c=t.doc.defaultView;if(!c)return()=>{};t.recordDOM&&(l=initMutationObserver(t,t.doc));let d=function({mousemoveCb:t,sampling:a,doc:l,mirror:c}){let d;if(!1===a.mousemove)return()=>{};let p="number"==typeof a.mousemove?a.mousemove:50,f="number"==typeof a.mousemoveCallback?a.mousemoveCallback:500,h=[],g=throttle$1(callbackWrapper(a=>{let l=Date.now()-d;t(h.map(t=>(t.timeOffset-=l,t)),a),h=[],d=null}),f),_=callbackWrapper(throttle$1(callbackWrapper(t=>{let a=esm_getEventTarget(t),{clientX:l,clientY:p}=legacy_isTouchEvent(t)?t.changedTouches[0]:t;d||(d=rp()),h.push({x:l,y:p,id:c.getId(a),timeOffset:rp()-d}),g("undefined"!=typeof DragEvent&&t instanceof DragEvent?rg.Drag:t instanceof MouseEvent?rg.MouseMove:rg.TouchMove)}),p,{trailing:!1})),S=[on("mousemove",_,l),on("touchmove",_,l),on("drag",_,l)];return callbackWrapper(()=>{S.forEach(t=>t())})}(t),p=function({mouseInteractionCb:t,doc:a,mirror:l,blockClass:c,blockSelector:d,unblockSelector:p,sampling:f}){if(!1===f.mouseInteraction)return()=>{};let h=!0===f.mouseInteraction||void 0===f.mouseInteraction?{}:f.mouseInteraction,g=[],_=null,getHandler=a=>f=>{let h=esm_getEventTarget(f);if(isBlocked(h,c,d,p,!0))return;let g=null,S=a;if("pointerType"in f){switch(f.pointerType){case"mouse":g=ry.Mouse;break;case"touch":g=ry.Touch;break;case"pen":g=ry.Pen}g===ry.Touch?rm[a]===rm.MouseDown?S="TouchStart":rm[a]===rm.MouseUp&&(S="TouchEnd"):ry.Pen}else legacy_isTouchEvent(f)&&(g=ry.Touch);null!==g?(_=g,(S.startsWith("Touch")&&g===ry.Touch||S.startsWith("Mouse")&&g===ry.Mouse)&&(g=null)):rm[a]===rm.Click&&(g=_,_=null);let w=legacy_isTouchEvent(f)?f.changedTouches[0]:f;if(!w)return;let k=l.getId(h),{clientX:E,clientY:x}=w;callbackWrapper(t)({type:rm[S],id:k,x:E,y:x,...null!==g&&{pointerType:g}})};return Object.keys(rm).filter(t=>Number.isNaN(Number(t))&&!t.endsWith("_Departed")&&!1!==h[t]).forEach(t=>{let l=toLowerCase(t),c=getHandler(t);if(window.PointerEvent)switch(rm[t]){case rm.MouseDown:case rm.MouseUp:l=l.replace("mouse","pointer");break;case rm.TouchStart:case rm.TouchEnd:return}g.push(on(l,c,a))}),callbackWrapper(()=>{g.forEach(t=>t())})}(t),f=initScrollObserver(t),h=function({viewportResizeCb:t},{win:a}){let l=-1,c=-1,d=callbackWrapper(throttle$1(callbackWrapper(()=>{let a=getWindowHeight(),d=getWindowWidth();(l!==a||c!==d)&&(t({width:Number(d),height:Number(a)}),l=a,c=d)}),200));return on("resize",d,a)}(t,{win:c}),g=function({inputCb:t,doc:a,mirror:l,blockClass:c,blockSelector:d,unblockSelector:p,ignoreClass:f,ignoreSelector:h,maskInputOptions:g,maskInputFn:_,sampling:S,userTriggeredOnInput:w,maskTextClass:k,unmaskTextClass:E,maskTextSelector:x,unmaskTextSelector:B}){function eventHandler(t){let l=esm_getEventTarget(t),S=t.isTrusted,H=l&&toUpperCase(l.tagName);if("OPTION"===H&&(l=l.parentElement),!l||!H||0>rb.indexOf(H)||isBlocked(l,c,d,p,!0))return;let U=l;if(U.classList.contains(f)||h&&U.matches(h))return;let J=getInputType(l),er=getInputValue(U,H,J),en=!1,ei=shouldMaskInput({maskInputOptions:g,tagName:H,type:J}),ea=needMaskingText(l,k,x,E,B,ei);("radio"===J||"checkbox"===J)&&(en=l.checked),er=maskInputValue({isMasked:ea,element:l,value:er,maskInputFn:_}
54),cbWithDedup(l,w?{text:er,isChecked:en,userTriggered:S}:{text:er,isChecked:en});let el=l.name;"radio"===J&&el&&en&&a.querySelectorAll(`input[type="radio"][name="${el}"]`).forEach(t=>{if(t!==l){let a=maskInputValue({isMasked:ea,element:t,value:getInputValue(t,H,J),maskInputFn:_});cbWithDedup(t,w?{text:a,isChecked:!en,userTriggered:!1}:{text:a,isChecked:!en})}})}function cbWithDedup(a,c){let d=rS.get(a);if(!d||d.text!==c.text||d.isChecked!==c.isChecked){rS.set(a,c);let d=l.getId(a);callbackWrapper(t)({...c,id:d})}}let H="last"===S.input?["change"]:["input","change"],U=H.map(t=>on(t,callbackWrapper(eventHandler),a)),J=a.defaultView;if(!J)return()=>{U.forEach(t=>t())};let er=J.Object.getOwnPropertyDescriptor(J.HTMLInputElement.prototype,"value"),en=[[J.HTMLInputElement.prototype,"value"],[J.HTMLInputElement.prototype,"checked"],[J.HTMLSelectElement.prototype,"value"],[J.HTMLTextAreaElement.prototype,"value"],[J.HTMLSelectElement.prototype,"selectedIndex"],[J.HTMLOptionElement.prototype,"selected"]];return er&&er.set&&U.push(...en.map(t=>(function hookSetter(t,a,l,c,d=window){let p=d.Object.getOwnPropertyDescriptor(t,a);return d.Object.defineProperty(t,a,c?l:{set(t){setTimeout$1(()=>{l.set.call(this,t)},0),p&&p.set&&p.set.call(this,t)}}),()=>hookSetter(t,a,p||{},!0)})(t[0],t[1],{set(){callbackWrapper(eventHandler)({target:this,isTrusted:!1})}},!1,J))),callbackWrapper(()=>{U.forEach(t=>t())})}(t),_=function({mediaInteractionCb:t,blockClass:a,blockSelector:l,unblockSelector:c,mirror:d,sampling:p,doc:f}){let h=callbackWrapper(f=>throttle$1(callbackWrapper(p=>{let h=esm_getEventTarget(p);if(!h||isBlocked(h,a,l,c,!0))return;let{currentTime:g,volume:_,muted:S,playbackRate:w}=h;t({type:f,id:d.getId(h),currentTime:g,volume:_,muted:S,playbackRate:w})}),p.media||500)),g=[on("play",h(0),f),on("pause",h(1),f),on("seeked",h(2),f),on("volumechange",h(3),f),on("ratechange",h(4),f)];return callbackWrapper(()=>{g.forEach(t=>t())})}(t),styleSheetObserver=()=>{},adoptedStyleSheetObserver=()=>{},styleDeclarationObserver=()=>{},fontObserver=()=>{};t.recordDOM&&(styleSheetObserver=function({styleSheetRuleCb:t,mirror:a,stylesheetManager:l},{win:c}){let d,p;if(!c.CSSStyleSheet||!c.CSSStyleSheet.prototype)return()=>{};let f=c.CSSStyleSheet.prototype.insertRule;c.CSSStyleSheet.prototype.insertRule=new Proxy(f,{apply:callbackWrapper((c,d,p)=>{let[f,h]=p,{id:g,styleId:_}=getIdAndStyleId(d,a,l.styleMirror);return(g&&-1!==g||_&&-1!==_)&&t({id:g,styleId:_,adds:[{rule:f,index:h}]}),c.apply(d,p)})});let h=c.CSSStyleSheet.prototype.deleteRule;c.CSSStyleSheet.prototype.deleteRule=new Proxy(h,{apply:callbackWrapper((c,d,p)=>{let[f]=p,{id:h,styleId:g}=getIdAndStyleId(d,a,l.styleMirror);return(h&&-1!==h||g&&-1!==g)&&t({id:h,styleId:g,removes:[{index:f}]}),c.apply(d,p)})}),c.CSSStyleSheet.prototype.replace&&(d=c.CSSStyleSheet.prototype.replace,c.CSSStyleSheet.prototype.replace=new Proxy(d,{apply:callbackWrapper((c,d,p)=>{let[f]=p,{id:h,styleId:g}=getIdAndStyleId(d,a,l.styleMirror);return(h&&-1!==h||g&&-1!==g)&&t({id:h,styleId:g,replace:f}),c.apply(d,p)})})),c.CSSStyleSheet.prototype.replaceSync&&(p=c.CSSStyleSheet.prototype.replaceSync,c.CSSStyleSheet.prototype.replaceSync=new Proxy(p,{apply:callbackWrapper((c,d,p)=>{let[f]=p,{id:h,styleId:g}=getIdAndStyleId(d,a,l.styleMirror);return(h&&-1!==h||g&&-1!==g)&&t({id:h,styleId:g,replaceSync:f}),c.apply(d,p)})}));let g={};canMonkeyPatchNestedCSSRule("CSSGroupingRule")?g.CSSGroupingRule=c.CSSGroupingRule:(canMonkeyPatchNestedCSSRule("CSSMediaRule")&&(g.CSSMediaRule=c.CSSMediaRule),canMonkeyPatchNestedCSSRule("CSSConditionRule")&&(g.CSSConditionRule=c.CSSConditionRule),canMonkeyPatchNestedCSSRule("CSSSupportsRule")&&(g.CSSSupportsRule=c.CSSSupportsRule));let _={};return Object.entries(g).forEach(([c,d])=>{_[c]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(_[c].insertRule,{apply:callbackWrapper((c,d,p)=>{let[f,h]=p,{id:g,styleId:_}=getIdAndStyleId(d.parentStyleSheet,a,l.styleMirror);return(g&&-1!==g||_&&-1!==_)&&t({id:g,styleId:_,adds:[{rule:f,index:[...getNestedCSSRulePositions(d),h||0]}]}),c.apply(d,p)})}),d.prototype.deleteRule=new Proxy(_[c].deleteRule,{apply:callbackWrapper((c,d,p)=>{let[f]=p,{id:h,styleId:g}=getIdAndStyleId(d.parentStyleSheet,a,l.styleMirror);
54return(h&&-1!==h||g&&-1!==g)&&t({id:h,styleId:g,removes:[{index:[...getNestedCSSRulePositions(d),f]}]}),c.apply(d,p)})})}),callbackWrapper(()=>{c.CSSStyleSheet.prototype.insertRule=f,c.CSSStyleSheet.prototype.deleteRule=h,d&&(c.CSSStyleSheet.prototype.replace=d),p&&(c.CSSStyleSheet.prototype.replaceSync=p),Object.entries(g).forEach(([t,a])=>{a.prototype.insertRule=_[t].insertRule,a.prototype.deleteRule=_[t].deleteRule})})}(t,{win:c}),adoptedStyleSheetObserver=initAdoptedStyleSheetObserver(t,t.doc),styleDeclarationObserver=function({styleDeclarationCb:t,mirror:a,ignoreCSSAttributes:l,stylesheetManager:c},{win:d}){let p=d.CSSStyleDeclaration.prototype.setProperty;d.CSSStyleDeclaration.prototype.setProperty=new Proxy(p,{apply:callbackWrapper((d,f,h)=>{let[g,_,S]=h;if(l.has(g))return p.apply(f,[g,_,S]);let{id:w,styleId:k}=getIdAndStyleId(_optionalChain$2([f,"access",t=>t.parentRule,"optionalAccess",t=>t.parentStyleSheet]),a,c.styleMirror);return(w&&-1!==w||k&&-1!==k)&&t({id:w,styleId:k,set:{property:g,value:_,priority:S},index:getNestedCSSRulePositions(f.parentRule)}),d.apply(f,h)})});let f=d.CSSStyleDeclaration.prototype.removeProperty;return d.CSSStyleDeclaration.prototype.removeProperty=new Proxy(f,{apply:callbackWrapper((d,p,h)=>{let[g]=h;if(l.has(g))return f.apply(p,[g]);let{id:_,styleId:S}=getIdAndStyleId(_optionalChain$2([p,"access",t=>t.parentRule,"optionalAccess",t=>t.parentStyleSheet]),a,c.styleMirror);return(_&&-1!==_||S&&-1!==S)&&t({id:_,styleId:S,remove:{property:g},index:getNestedCSSRulePositions(p.parentRule)}),d.apply(p,h)})}),callbackWrapper(()=>{d.CSSStyleDeclaration.prototype.setProperty=p,d.CSSStyleDeclaration.prototype.removeProperty=f})}(t,{win:c}),t.collectFonts&&(fontObserver=function({fontCb:t,doc:a}){let l=a.defaultView;if(!l)return()=>{};let c=[],d=new WeakMap,p=l.FontFace;l.FontFace=function(t,a,l){let c=new p(t,a,l);return d.set(c,{family:t,buffer:"string"!=typeof a,descriptors:l,fontSource:"string"==typeof a?a:JSON.stringify(Array.from(new Uint8Array(a)))}),c};let f=patch(a.fonts,"add",function(a){return function(l){return setTimeout$1(callbackWrapper(()=>{let a=d.get(l);a&&(t(a),d.delete(l))}),0),a.apply(this,[l])}});return c.push(()=>{l.FontFace=p}),c.push(f),callbackWrapper(()=>{c.forEach(t=>t())})}(t)));let S=function(t){let{doc:a,mirror:l,blockClass:c,blockSelector:d,unblockSelector:p,selectionCb:f}=t,h=!0,g=callbackWrapper(()=>{let t=a.getSelection();if(!t||h&&_optionalChain$2([t,"optionalAccess",t=>t.isCollapsed]))return;h=t.isCollapsed||!1;let g=[],_=t.rangeCount||0;for(let a=0;a<_;a++){let f=t.getRangeAt(a),{startContainer:h,startOffset:_,endContainer:S,endOffset:w}=f,k=isBlocked(h,c,d,p,!0)||isBlocked(S,c,d,p,!0);k||g.push({start:l.getId(h),startOffset:_,end:l.getId(S),endOffset:w})}f({ranges:g})});return g(),on("selectionchange",g)}(t),w=function({doc:t,customElementCb:a}){let l=t.defaultView;if(!l||!l.customElements)return()=>{};let c=patch(l.customElements,"define",function(t){return function(l,c,d){try{a({define:{name:l}})}catch(t){}return t.apply(this,[l,c,d])}});return c}(t),k=[];for(let a of t.plugins)k.push(a.observer(a.callback,c,a.options));return callbackWrapper(()=>{r_.forEach(t=>t.reset()),_optionalChain$2([l,"optionalAccess",t=>t.disconnect,"call",t=>t()]),d(),p(),f(),h(),g(),_(),styleSheetObserver(),adoptedStyleSheetObserver(),styleDeclarationObserver(),fontObserver(),S(),w(),k.forEach(t=>t())})}function hasNestedCSSRule(t){return void 0!==window[t]}function canMonkeyPatchNestedCSSRule(t){return!!(void 0!==window[t]&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}let CrossOriginIframeMirror=class CrossOriginIframeMirror{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,a,l,c){let d=l||this.getIdToRemoteIdMap(t),p=c||this.getRemoteIdToIdMap(t),f=d.get(a);return f||(f=this.generateIdFn(),d.set(a,f),p.set(f,a)),f}getIds(t,a){let l=this.getIdToRemoteIdMap(t),c=this.getRemoteIdToIdMap(t);return a.map(a=>this.getId(t,a,l,c))}getRemoteId(t,a,l){let c=l||this.getRemoteIdToIdMap(t);if("number"!=typeof a)return a;let d=c.get(a);return d||-1}getRemoteIds(t,a){let l=this.getRemoteIdToIdMap(t);return a.map(a=>this.getRemoteId(t,a,l))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let a=this.iframeIdToRemoteIdMap.get(t);return a||(a=new Map,this.iframeIdToRemoteIdMap.set(t,a)),a}getRemoteIdToIdMap(t){let a=this.iframeRemoteIdToIdMap.get(t);return a||(a=new Map,this.iframeRemoteIdToIdMap.set(t,a)),a}};function _optionalChain$1(t){let a;let l=t[0],c=1;for(;c<t.length;){let d=t[c],p=t[c+1];if(c+=2,("optionalAccess"===d||"optionalCall"===d)&&null==l)return;"access"===d||"optionalAccess"===d?(a=l,l=p(l)):("call"===d||"optionalCall"===d)&&(l=p((...t)=>l.call(a,...t)),a=void 0)}return l}let IframeManagerNoop=class IframeManagerNoop{constructor(){this.crossOriginIframeMirror=ne
54w CrossOriginIframeMirror(genId),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}};let IframeManager=class IframeManager{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new CrossOriginIframeMirror(genId),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new CrossOriginIframeMirror(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,a){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:a}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),_optionalChain$1([this,"access",t=>t.loadListener,"optionalCall",a=>a(t)]);let l=getIFrameContentDocument(t);l&&l.adoptedStyleSheets&&l.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(l.adoptedStyleSheets,this.mirror.getId(l))}handleMessage(t){if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;let a=t.source;if(!a)return;let l=this.crossOriginIframeMap.get(t.source);if(!l)return;let c=this.transformCrossOriginEvent(l,t.data.event);c&&this.wrappedEmit(c,t.data.isCheckout)}transformCrossOriginEvent(t,a){switch(a.type){case rh.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(a.data.node,t);let l=a.data.node.id;return this.crossOriginIframeRootIdMap.set(t,l),this.patchRootIdOnNode(a.data.node,l),{timestamp:a.timestamp,type:rh.IncrementalSnapshot,data:{source:rg.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:a.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case rh.Meta:case rh.Load:case rh.DomContentLoaded:break;case rh.Plugin:return a;case rh.Custom:return this.replaceIds(a.data.payload,t,["id","parentId","previousId","nextId"]),a;case rh.IncrementalSnapshot:switch(a.data.source){case rg.Mutation:return a.data.adds.forEach(a=>{this.replaceIds(a,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(a.node,t);let l=this.crossOriginIframeRootIdMap.get(t);l&&this.patchRootIdOnNode(a.node,l)}),a.data.removes.forEach(a=>{this.replaceIds(a,t,["parentId","id"])}),a.data.attributes.forEach(a=>{this.replaceIds(a,t,["id"])}),a.data.texts.forEach(a=>{this.replaceIds(a,t,["id"])}),a;case rg.Drag:case rg.TouchMove:case rg.MouseMove:return a.data.positions.forEach(a=>{this.replaceIds(a,t,["id"])}),a;case rg.ViewportResize:return!1;case rg.MediaInteraction:case rg.MouseInteraction:case rg.Scroll:case rg.CanvasMutation:case rg.Input:return this.replaceIds(a.data,t,["id"]),a;case rg.StyleSheetRule:case rg.StyleDeclaration:return this.replaceIds(a.data,t,["id"]),this.replaceStyleIds(a.data,t,["styleId"]),a;case rg.Font:return a;case rg.Selection:return a.data.ranges.forEach(a=>{this.replaceIds(a,t,["start","end"])}),a;case rg.AdoptedStyleSheet:return this.replaceIds(a.data,t,["id"]),this.replaceStyleIds(a.data,t,["styleIds"]),_optionalChain$1([a,"access",t=>t.data,"access",t=>t.styles,"optionalAccess",t=>t.forEach,"call",a=>a(a=>{this.replaceStyleIds(a,t,["styleId"])})]),a}}return!1}replace(t,a,l,c){for(let d of c)(Array.isArray(a[d])||"number"==typeof a[d])&&(Array.isArray(a[d])?a[d]=t.getIds(l,a[d]):a[d]=t.getId(l,a[d]));return a}replaceIds(t,a,l){return this.replace(this.crossOriginIframeMirror,t,a,l)}replaceStyleIds(t,a,l){return this.replace(this.crossOriginIframeStyleMirror,t,a,l)}replaceIdOnNode(t,a){this.replaceIds(t,a,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(t=>{this.replaceIdOnNode(t,a)})}patchRootIdOnNode(t,a){t.type===eg.Document||t.rootId||(t.rootId=a),"childNodes"in t&&t.childNodes.forEach(t=>{this.patchRootIdOnNode(t,a)})}};
54let ShadowDomManagerNoop=class ShadowDomManagerNoop{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}};let ShadowDomManager=class ShadowDomManager{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()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,a){if(!isNativeShadowDom(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);let l=initMutationObserver({...this.bypassOptions,doc:a,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>l.disconnect()),this.restoreHandlers.push(initScrollObserver({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),setTimeout$1(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(initAdoptedStyleSheetObserver({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){let a=getIFrameContentDocument(t),l=function(t){try{return t.contentWindow}catch(t){}}(t);a&&l&&this.patchAttachShadow(l.Element,a)}patchAttachShadow(t,a){let l=this;this.restoreHandlers.push(patch(t.prototype,"attachShadow",function(t){return function(c){let d=t.call(this,c);return this.shadowRoot&&inDom(this)&&l.addShadowRoot(this.shadowRoot,a),d}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}};let CanvasManagerNoop=class CanvasManagerNoop{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}};let StylesheetManager=class StylesheetManager{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new StyleSheetMirror,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,a){"_cssText"in a.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:a.id,attributes:a.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,a){if(0===t.length)return;let l={id:a,styleIds:[]},c=[];for(let a of t){let t;this.styleMirror.has(a)?t=this.styleMirror.getId(a):(t=this.styleMirror.add(a),c.push({styleId:t,rules:Array.from(a.rules||CSSRule,(t,a)=>({rule:stringifyRule(t),index:a}))})),l.styleIds.push(t)}c.length>0&&(l.styles=c),this.adoptedStyleSheetCb(l)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}};let ProcessedNodeManager=class ProcessedNodeManager{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,a){let l=this.nodeMap.get(t);return l&&Array.from(l).some(t=>t!==a)}add(t,a){this.active||(this.active=!0,function(...t){getImplementation("requestAnimationFrame")(...t)}(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(a))}destroy(){}};try{if(2!==Array.from([1],t=>2*t)[0]){let t=document.createElement("iframe");document.body.appendChild(t),Array.from=_optionalChain([t,"access",t=>t.contentWindow,"optionalAccess",t=>t.Array,"access",t=>t.from])||Array.from,document.body.removeChild(t)}}catch(t){console.debug("Unable to override Array.from",t)}let rw=new Mirror;function record(t={}){let a;let{emit:l,checkoutEveryNms:c,checkoutEveryNth:d,blockClass:p="rr-block",blockSelector:f=null,unblockSelector:h=null,ignoreClass:g="rr-ignore",ignoreSelector:_=null,maskAllText:S=!1,maskTextClass:w="rr-mask",unmaskTextClass:k=null,maskTextSelector:E=null,unmaskTextSelector:x=null,inlineStylesheet:B=!0,maskAllInputs:H,maskInputOptions:U,slimDOMOptions:ei,maskAttributeFn:ea,maskInputFn:el,maskTextFn:ec,maxCanvasSize:eu=null,packFn:ed,sampling:ep={},dataURLOptions:ef={},mousemoveWait:eh,recordDOM:eg=!0,recordCanvas:em=!1,recordCrossOriginIframes:ev=!1,recordAfter:ey="DOMContentLoaded"===t.recordAfter?t.recordAfter:"load",userTriggeredOnInput:e_=!1,collectFonts:eb=!1,inlineImages:eS=!1,plugins:ew,keepIframeSrcFn:ek=()=>!1,ignoreCSSAttributes:eE=new Set([]),errorHandler:eC,onMutation:ex,getCanvasManager:eT}=t;J=eC;let eI=!ev||window.parent===window,eO=!1;if(!eI)try{window.parent.document&&(eO=!1)}catch(t){eO=!0}if(eI&&!l)throw Error("emit function is required");if(!eI&&!eO)return()=>{};void 0!==eh&&void 0===ep.mousemove&&(ep.mousemove=eh),rw.reset();let eR=!0===H?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==U?U:{},eM=!0===ei||"all"===ei?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===ei,headMetaDescKeywords:"all"===ei}:ei||{};!function(t=window){"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.N
54odeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let a=t[0];if(!(0 in t))throw TypeError("1 argument is required");do if(this===a)return!0;while(a=a&&a.parentNode);return!1})}();let eP=0,eventProcessor=t=>{for(let a of ew||[])a.eventProcessor&&(t=a.eventProcessor(t));return ed&&!eO&&(t=ed(t)),t};er=(t,p)=>{if(t.timestamp=rp(),_optionalChain([r_,"access",t=>t[0],"optionalAccess",t=>t.isFrozen,"call",t=>t()])&&t.type!==rh.FullSnapshot&&!(t.type===rh.IncrementalSnapshot&&t.data.source===rg.Mutation)&&r_.forEach(t=>t.unfreeze()),eI)_optionalChain([l,"optionalCall",a=>a(eventProcessor(t),p)]);else if(eO){let a={type:"rrweb",event:eventProcessor(t),origin:window.location.origin,isCheckout:p};window.parent.postMessage(a,"*")}if(t.type===rh.FullSnapshot)a=t,eP=0;else if(t.type===rh.IncrementalSnapshot){if(t.data.source===rg.Mutation&&t.data.isAttachIframe)return;eP++;let l=d&&eP>=d,p=c&&a&&t.timestamp-a.timestamp>c;(l||p)&&takeFullSnapshot(!0)}};let wrappedMutationEmit=t=>{er({type:rh.IncrementalSnapshot,data:{source:rg.Mutation,...t}})},wrappedScrollEmit=t=>er({type:rh.IncrementalSnapshot,data:{source:rg.Scroll,...t}}),wrappedCanvasMutationEmit=t=>er({type:rh.IncrementalSnapshot,data:{source:rg.CanvasMutation,...t}}),eA=new StylesheetManager({mutationCb:wrappedMutationEmit,adoptedStyleSheetCb:t=>er({type:rh.IncrementalSnapshot,data:{source:rg.AdoptedStyleSheet,...t}})}),eF="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new IframeManagerNoop:new IframeManager({mirror:rw,mutationCb:wrappedMutationEmit,stylesheetManager:eA,recordCrossOriginIframes:ev,wrappedEmit:er});for(let t of ew||[])t.getMirror&&t.getMirror({nodeMirror:rw,crossOriginIframeMirror:eF.crossOriginIframeMirror,crossOriginIframeStyleMirror:eF.crossOriginIframeStyleMirror});let eD=new ProcessedNodeManager,eN=function(t,a){try{return t?t(a):new CanvasManagerNoop}catch(t){return console.warn("Unable to initialize CanvasManager"),new CanvasManagerNoop}}(eT,{mirror:rw,win:window,mutationCb:t=>er({type:rh.IncrementalSnapshot,data:{source:rg.CanvasMutation,...t}}),recordCanvas:em,blockClass:p,blockSelector:f,unblockSelector:h,maxCanvasSize:eu,sampling:ep.canvas,dataURLOptions:ef,errorHandler:eC}),eL="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new ShadowDomManagerNoop:new ShadowDomManager({mutationCb:wrappedMutationEmit,scrollCb:wrappedScrollEmit,bypassOptions:{onMutation:ex,blockClass:p,blockSelector:f,unblockSelector:h,maskAllText:S,maskTextClass:w,unmaskTextClass:k,maskTextSelector:E,unmaskTextSelector:x,inlineStylesheet:B,maskInputOptions:eR,dataURLOptions:ef,maskAttributeFn:ea,maskTextFn:ec,maskInputFn:el,recordCanvas:em,inlineImages:eS,sampling:ep,slimDOMOptions:eM,iframeManager:eF,stylesheetManager:eA,canvasManager:eN,keepIframeSrcFn:ek,processedNodeManager:eD},mirror:rw}),takeFullSnapshot=(t=!1)=>{if(!eg)return;er({type:rh.Meta,data:{href:window.location.href,width:getWindowWidth(),height:getWindowHeight()}},t),eA.reset(),eL.init(),r_.forEach(t=>t.lock());let a=function(t,a){let{mirror:l=new Mirror,blockClass:c="rr-block",blockSelector:d=null,unblockSelector:p=null,maskAllText:f=!1,maskTextClass:h="rr-mask",unmaskTextClass:g=null,maskTextSelector:_=null,unmaskTextSelector:S=null,inlineStylesheet:w=!0,inlineImages:k=!1,recordCanvas:E=!1,maskAllInputs:x=!1,maskAttributeFn:B,maskTextFn:H,maskInputFn:U,slimDOM:J=!1,dataURLOptions:er,preserveWhiteSpace:en,onSerialize:ei,onIframeLoad:ea,iframeLoadTimeout:el,onStylesheetLoad:ec,stylesheetLoadTimeout:eu,keepIframeSrcFn:ed=()=>!1}=a||{},ep=!0===x?{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===x?{}:x,ef=!0===J||"all"===J?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===J,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}
54:!1===J?{}:J;return serializeNodeWithId(t,{doc:t,mirror:l,blockClass:c,blockSelector:d,unblockSelector:p,maskAllText:f,maskTextClass:h,unmaskTextClass:g,maskTextSelector:_,unmaskTextSelector:S,skipChild:!1,inlineStylesheet:w,maskInputOptions:ep,maskAttributeFn:B,maskTextFn:H,maskInputFn:U,slimDOMOptions:ef,dataURLOptions:er,inlineImages:k,recordCanvas:E,preserveWhiteSpace:en,onSerialize:ei,onIframeLoad:ea,iframeLoadTimeout:el,onStylesheetLoad:ec,stylesheetLoadTimeout:eu,keepIframeSrcFn:ed,newlyAddedElement:!1})}(document,{mirror:rw,blockClass:p,blockSelector:f,unblockSelector:h,maskAllText:S,maskTextClass:w,unmaskTextClass:k,maskTextSelector:E,unmaskTextSelector:x,inlineStylesheet:B,maskAllInputs:eR,maskAttributeFn:ea,maskInputFn:el,maskTextFn:ec,slimDOM:eM,dataURLOptions:ef,recordCanvas:em,inlineImages:eS,onSerialize:t=>{isSerializedIframe(t,rw)&&eF.addIframe(t),isSerializedStylesheet(t,rw)&&eA.trackLinkElement(t),hasShadowRoot(t)&&eL.addShadowRoot(t.shadowRoot,document)},onIframeLoad:(t,a)=>{eF.attachIframe(t,a),t.contentWindow&&eN.addWindow(t.contentWindow),eL.observeAttachShadow(t)},onStylesheetLoad:(t,a)=>{eA.attachLinkElement(t,a)},keepIframeSrcFn:ek});if(!a)return console.warn("Failed to snapshot the document");er({type:rh.FullSnapshot,data:{node:a,initialOffset:getWindowScroll(window)}}),r_.forEach(t=>t.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&eA.adoptStyleSheets(document.adoptedStyleSheets,rw.getId(document))};en=takeFullSnapshot;try{let t=[],observe=t=>callbackWrapper(initObservers)({onMutation:ex,mutationCb:wrappedMutationEmit,mousemoveCb:(t,a)=>er({type:rh.IncrementalSnapshot,data:{source:a,positions:t}}),mouseInteractionCb:t=>er({type:rh.IncrementalSnapshot,data:{source:rg.MouseInteraction,...t}}),scrollCb:wrappedScrollEmit,viewportResizeCb:t=>er({type:rh.IncrementalSnapshot,data:{source:rg.ViewportResize,...t}}),inputCb:t=>er({type:rh.IncrementalSnapshot,data:{source:rg.Input,...t}}),mediaInteractionCb:t=>er({type:rh.IncrementalSnapshot,data:{source:rg.MediaInteraction,...t}}),styleSheetRuleCb:t=>er({type:rh.IncrementalSnapshot,data:{source:rg.StyleSheetRule,...t}}),styleDeclarationCb:t=>er({type:rh.IncrementalSnapshot,data:{source:rg.StyleDeclaration,...t}}),canvasMutationCb:wrappedCanvasMutationEmit,fontCb:t=>er({type:rh.IncrementalSnapshot,data:{source:rg.Font,...t}}),selectionCb:t=>{er({type:rh.IncrementalSnapshot,data:{source:rg.Selection,...t}})},customElementCb:t=>{er({type:rh.IncrementalSnapshot,data:{source:rg.CustomElement,...t}})},blockClass:p,ignoreClass:g,ignoreSelector:_,maskAllText:S,maskTextClass:w,unmaskTextClass:k,maskTextSelector:E,unmaskTextSelector:x,maskInputOptions:eR,inlineStylesheet:B,sampling:ep,recordDOM:eg,recordCanvas:em,inlineImages:eS,userTriggeredOnInput:e_,collectFonts:eb,doc:t,maskAttributeFn:ea,maskInputFn:el,maskTextFn:ec,keepIframeSrcFn:ek,blockSelector:f,unblockSelector:h,slimDOMOptions:eM,dataURLOptions:ef,mirror:rw,iframeManager:eF,stylesheetManager:eA,shadowDomManager:eL,processedNodeManager:eD,canvasManager:eN,ignoreCSSAttributes:eE,plugins:_optionalChain([ew,"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:a=>er({type:rh.Plugin,data:{plugin:t.name,payload:a}})}))])||[]},{});eF.addLoadListener(a=>{try{t.push(observe(a.contentDocument))}catch(t){console.warn(t)}});let init=()=>{takeFullSnapshot(),t.push(observe(document))};return"interactive"===document.readyState||"complete"===document.readyState?init():(t.push(on("DOMContentLoaded",()=>{er({type:rh.DomContentLoaded,data:{}}),"DOMContentLoaded"===ey&&init()})),t.push(on("load",()=>{er({type:rh.Load,data:{}}),"load"===ey&&init()},window))),()=>{t.forEach(t=>t()),eD.destroy(),en=void 0,J=void 0}}catch(t){console.warn(t)}}function timestampToMs(t){return t>9999999999?t:1e3*t}function timestampToS(t){return t>9999999999?t/1e3:t}function addBreadcrumbEvent(t,a){"sentry.transaction"!==a.category&&(["ui.click","ui.input"].includes(a.category)?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate(()=>(t.throttledAddEvent({type:rh.Custom,timestamp:1e3*(a.timestamp||0),data:{tag:"breadcrumb",payload:(0,eN.Fv)(a,10,1e3)}}),"console"===a.category)))}function getClosestInteractive(t){let a=t.closest("button,a");return a||t}function getClickTargetNode(t){let a=getTargetNode(t);return a&&a instanceof Element?getClosestInteractive(a):a}function getTargetNode(t){return"object"==typeof t&&t&&"target"in t?t.target:t}record.mirror=rw,record.takeFullSnapshot=function(t){if(!en)throw Error("please take full snapshot after start recording");en(t)};let rk=new Set([rg.Mutation,rg.StyleSheetRule,rg.StyleDeclaration,rg.AdoptedStyleSheet,rg.CanvasMutation,rg.Selection,rg.MediaInteraction]);let ClickDetector=class ClickDetector{constructor(t,a,l=addBreadcrumbEvent){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=a.timeout/1e3,this._threshold=a.threshold/1e3,this._scrollTimeout=a.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=a.ignoreSelector,this._addBreadcrumbEvent=l}addListeners(){var t;let a=(t=()=>{this._lastMutation=nowInSeconds()},ei||(ei=[],(0,eO.hl)(t3,"open",function(t){return function(...a){if(ei)try{ei.forEac
54h(t=>t())}catch(t){}return t.apply(t3,a)}})),ei.push(t),()=>{let a=ei?ei.indexOf(t):-1;a>-1&&ei.splice(a,1)});this._teardown=()=>{a(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,a){var l;if(l=this._ignoreSelector,!rE.includes(a.tagName)||"INPUT"===a.tagName&&!["submit","button"].includes(a.getAttribute("type")||"")||"A"===a.tagName&&(a.hasAttribute("download")||a.hasAttribute("target")&&"_self"!==a.getAttribute("target"))||l&&a.matches(l)||!(t.data&&"number"==typeof t.data.nodeId&&t.timestamp))return;let c={timestamp:timestampToS(t.timestamp),clickBreadcrumb:t,clickCount:0,node:a};this._clicks.some(t=>t.node===c.node&&1>Math.abs(t.timestamp-c.timestamp))||(this._clicks.push(c),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=timestampToS(t)}registerScroll(t=Date.now()){this._lastScroll=timestampToS(t)}registerClick(t){let a=getClosestInteractive(t);this._handleMultiClick(a)}_handleMultiClick(t){this._getClicks(t).forEach(t=>{t.clickCount++})}_getClicks(t){return this._clicks.filter(a=>a.node===t)}_checkClicks(){let t=[],a=nowInSeconds();for(let l of(this._clicks.forEach(l=>{!l.mutationAfter&&this._lastMutation&&(l.mutationAfter=l.timestamp<=this._lastMutation?this._lastMutation-l.timestamp:void 0),!l.scrollAfter&&this._lastScroll&&(l.scrollAfter=l.timestamp<=this._lastScroll?this._lastScroll-l.timestamp:void 0),l.timestamp+this._timeout<=a&&t.push(l)}),t)){let t=this._clicks.indexOf(l);t>-1&&(this._generateBreadcrumbs(l),this._clicks.splice(t,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){let a=this._replay,l=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,c=t.mutationAfter&&t.mutationAfter<=this._threshold,{clickCount:d,clickBreadcrumb:p}=t;if(!l&&!c){let l=1e3*Math.min(t.mutationAfter||this._timeout,this._timeout),c=l<1e3*this._timeout?"mutation":"timeout",f={type:"default",message:p.message,timestamp:p.timestamp,category:"ui.slowClickDetected",data:{...p.data,url:t3.location.href,route:a.getCurrentRoute(),timeAfterClickMs:l,endReason:c,clickCount:d||1}};this._addBreadcrumbEvent(a,f);return}if(d>1){let t={type:"default",message:p.message,timestamp:p.timestamp,category:"ui.multiClick",data:{...p.data,url:t3.location.href,route:a.getCurrentRoute(),clickCount:d,metric:!0}};this._addBreadcrumbEvent(a,t)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=getNativeImplementation_setTimeout(()=>this._checkClicks(),1e3)}};let rE=["A","BUTTON","INPUT"];function nowInSeconds(){return Date.now()/1e3}function createBreadcrumb(t){return{timestamp:Date.now()/1e3,type:"default",...t}}(eh=ey||(ey={}))[eh.Document=0]="Document",eh[eh.DocumentType=1]="DocumentType",eh[eh.Element=2]="Element",eh[eh.Text=3]="Text",eh[eh.CDATA=4]="CDATA",eh[eh.Comment=5]="Comment";let rC=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]),handleDomListener=t=>a=>{if(!t.isEnabled())return;let l=function(t){let{target:a,message:l}=function(t){let a;let l="click"===t.name,c=null;try{c=l?getClickTargetNode(t.event):getTargetNode(t.event),a=(0,eY.Rt)(c,{maxStringLength:200})||"<unknown>"}catch(t){a="<unknown>"}return{target:c,message:a}}(t);return createBreadcrumb({category:`ui.${t.name}`,...getBaseDomBreadcrumb(a,l)})}(a);if(!l)return;let c="click"===a.name,d=c?a.event:void 0;c&&t.clickDetector&&d&&d.target&&!d.altKey&&!d.metaKey&&!d.ctrlKey&&!d.shiftKey&&function(t,a,l){t.handleClick(a,l)}(t.clickDetector,l,getClickTargetNode(a.event)),addBreadcrumbEvent(t,l)};function getBaseDomBreadcrumb(t,a){let l=record.mirror.getId(t),c=l&&record.mirror.getNode(l),d=c&&record.mirror.getMeta(c),p=d&&d.type===ey.Element?d:null;return{message:a,data:p?{nodeId:l,node:{id:l,tagName:p.tagName,textContent:Array.from(p.childNodes).map(t=>t.type===ey.Text&&t.textContent).filter(Boolean).map(t=>t.trim()).join(""),attributes:function(t){let a={};for(let l in!t["data-sentry-component"]&&t["data-sentry-element"]&&(t["data-sentry-component"]=t["data-sentry-element"]),t)if(rC.has(l)){let c=l;("data-testid"===l||"data-test-id"===l)&&(c="testId"),a[c]=t[l]}return a}(p.attributes)}}:{}}}let rx={resource:function(t){let{entryType:a,initiatorType:l,name:c,responseEnd:d,startTime:p,decodedBodySize:f,encodedBodySize:h,responseStatus:g,transferSize:_}=t;return["fetch","xmlhttprequest"].includes(l)?null:{type:`${a}.${l}`,start:esm_getAbsoluteTime(p),end:esm_getAbsoluteTime(d),name:c,data:{size:_,statusCode:g,decodedBodySize:f,encodedBodySize:h}}},paint:function(t){let{duration:a,entryType:l,name:c,startTime:d}=t,p=esm_getAbsoluteTime(d);return{type:l,name:c,start:p,end:p+a,data:void 0}},navigation:function(t){let{entryType:a,name:l,decodedBodySize:c,duration:d,domComplete:p,encodedBodySize:f,domContentLoadedEventStart:h,domContentLoadedEventEnd:g,domInteractive:_,loadEventStart:S,loadEventEnd:w,redirectCount:k,startTime:E,transferSize:x,type:B}=t;return 0===d?null:{type:`${a}.${B}`,start:esm_getAbsoluteTime(E),end:esm_getAbsoluteTime(p),name:l,data:{size:x,decodedBodySize:c,encodedBodySize:f,duration:d,domInteractive:_,domContentLoadedEventStart:h,domContentLoadedEventEnd:g,loadEventStart:S,loadEventEnd:w,domComplete:p,redirectCount:k}}}};function webVitalHandler(t,a){return({metric:l})=>void a.replayPerformanceEntries.push(t(l))}function createPerformanceEntry(t){let a=rx[t.entryType];return a?a(t):null}function esm_getAbsoluteTime(t){return((eB.Z1||t3.performance.timeOrigin)+t)/1e3}function getLargestContentfulPaint(t){let a=t.entries[t.entries.length-1],l=a&&a.element?[a.element]:void 0;return getWebVital(t,"largest-contentful-paint",l)}function getCumulativeLayoutShift(t){let a=[],l=[];for(let c of t.entries)if(void 0!==c.sources){let t=[];for(let a of c.sources)if(a.node){l.push(a.node);let c=record.mirror.getId(a.node);c&&t.push(c)}
54a.push({value:c.value,nodeIds:t.length?t:void 0})}return getWebVital(t,"cumulative-layout-shift",l,a)}function getFirstInputDelay(t){let a=t.entries[t.entries.length-1],l=a&&a.target?[a.target]:void 0;return getWebVital(t,"first-input-delay",l)}function getInteractionToNextPaint(t){let a=t.entries[t.entries.length-1],l=a&&a.target?[a.target]:void 0;return getWebVital(t,"interaction-to-next-paint",l)}function getWebVital(t,a,l,c){let d=t.value,p=t.rating,f=esm_getAbsoluteTime(d);return{type:"web-vital",name:a,start:f,end:f,data:{value:d,size:d,rating:p,nodeIds:l?l.map(t=>record.mirror.getId(t)):void 0,attributions:c}}}let rT=["info","warn","error","log"];(function(){let t={exception:()=>void 0,infoTick:()=>void 0,setConfig:t=>{t.captureExceptions,t.traceInternals}};rT.forEach(a=>{t[a]=()=>void 0})})();let EventBufferSizeExceededError=class EventBufferSizeExceededError extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}};let EventBufferArray=class EventBufferArray{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){let a=JSON.stringify(t).length;if(this._totalSize+=a,this._totalSize>2e7)throw new EventBufferSizeExceededError;this.events.push(t)}finish(){return new Promise(t=>{let a=this.events;this.clear(),t(JSON.stringify(a))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let t=this.events.map(t=>t.timestamp).sort()[0];return t?timestampToMs(t):null}};let WorkerHandler=class WorkerHandler{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((t,a)=>{this._worker.addEventListener("message",({data:l})=>{l.success?t():a()},{once:!0}),this._worker.addEventListener("error",t=>{a(t)},{once:!0})})),this._ensureReadyPromise}destroy(){this._worker.terminate()}postMessage(t,a){let l=this._getAndIncrementId();return new Promise((c,d)=>{let listener=({data:a})=>{if(a.method===t&&a.id===l){if(this._worker.removeEventListener("message",listener),!a.success){d(Error("Error in compression worker"));return}c(a.response)}};this._worker.addEventListener("message",listener),this._worker.postMessage({id:l,method:t,arg:a})})}_getAndIncrementId(){return this._id++}};let EventBufferCompressionWorker=class EventBufferCompressionWorker{constructor(t){this._worker=new WorkerHandler(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){let a=timestampToMs(t.timestamp);(!this._earliestTimestamp||a<this._earliestTimestamp)&&(this._earliestTimestamp=a);let l=JSON.stringify(t);return(this._totalSize+=l.length,this._totalSize>2e7)?Promise.reject(new EventBufferSizeExceededError):this._sendEventToWorker(l)}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}};let EventBufferProxy=class EventBufferProxy{constructor(t){this._fallback=new EventBufferArray,this._compression=new EventBufferCompressionWorker(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}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}set waitForCheckout(t){this._used.waitForCheckout=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()}
54ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:t,hasCheckout:a,waitForCheckout:l}=this._fallback,c=[];for(let a of t)c.push(this._compression.addEvent(a));this._compression.hasCheckout=a,this._compression.waitForCheckout=l,this._used=this._compression;try{await Promise.all(c),this._fallback.clear()}catch(t){}}};function hasSessionStorage(){try{return"sessionStorage"in t3&&!!t3.sessionStorage}catch(t){return!1}}function isSampled(t){return void 0!==t&&Math.random()<t}function makeSession(t){let a=Date.now(),l=t.id||(0,eC.DM)(),c=t.started||a,d=t.lastActivity||a,p=t.segmentId||0,f=t.sampled,h=t.previousSessionId;return{id:l,started:c,lastActivity:d,segmentId:p,sampled:f,previousSessionId:h}}function saveSession(t){if(hasSessionStorage())try{t3.sessionStorage.setItem(t5,JSON.stringify(t))}catch(t){}}function createSession({sessionSampleRate:t,allowBuffering:a,stickySession:l=!1},{previousSessionId:c}={}){let d=isSampled(t)?"session":!!a&&"buffer",p=makeSession({sampled:d,previousSessionId:c});return l&&saveSession(p),p}function isExpired(t,a,l=+new Date){return null===t||void 0===a||a<0||0!==a&&t+a<=l}function isSessionExpired(t,{maxReplayDuration:a,sessionIdleExpire:l,targetTime:c=Date.now()}){return isExpired(t.started,a,c)||isExpired(t.lastActivity,l,c)}function shouldRefreshSession(t,{sessionIdleExpire:a,maxReplayDuration:l}){return!!isSessionExpired(t,{sessionIdleExpire:a,maxReplayDuration:l})&&("buffer"!==t.sampled||0!==t.segmentId)}function loadOrCreateSession({sessionIdleExpire:t,maxReplayDuration:a,previousSessionId:l},c){let d=c.stickySession&&function(){if(!hasSessionStorage())return null;try{let t=t3.sessionStorage.getItem(t5);if(!t)return null;let a=JSON.parse(t);return makeSession(a)}catch(t){return null}}();return d?shouldRefreshSession(d,{sessionIdleExpire:t,maxReplayDuration:a})?createSession(c,{previousSessionId:d.id}):d:createSession(c,{previousSessionId:l})}function addEventSync(t,a,l){return!!shouldAddEvent(t,a)&&(_addEvent(t,a,l),!0)}async function _addEvent(t,a,l){let{eventBuffer:c}=t;if(!c||c.waitForCheckout&&!l)return null;let d="buffer"===t.recordingMode;try{l&&d&&c.clear(),l&&(c.hasCheckout=!0,c.waitForCheckout=!1);let p=t.getOptions(),f=function(t,a){try{if("function"==typeof a&&t.type===rh.Custom)return a(t)}catch(t){return null}return t}(a,p.beforeAddRecordingEvent);if(!f)return;return await c.addEvent(f)}catch(p){let a=p&&p instanceof EventBufferSizeExceededError;if(a&&d)return c.clear(),c.waitForCheckout=!0,null;t.handleException(p),await t.stop({reason:a?"addEventSizeExceeded":"addEvent"});let l=(0,eI.s3)();l&&l.recordDroppedEvent("internal_sdk_error","replay")}}function shouldAddEvent(t,a){if(!t.eventBuffer||t.isPaused()||!t.isEnabled())return!1;let l=timestampToMs(a.timestamp);return!(l+t.timeouts.sessionIdlePause<Date.now())&&!(l>t.getContext().initialTimestamp+t.getOptions().maxReplayDuration)}function esm_isTransactionEvent(t){return"transaction"===t.type}function isFeedbackEvent(t){return"feedback"===t.type}function isBreadcrumbWithCategory(t){return!!t.category}function resetReplayIdOnDynamicSamplingContext(){let t=(0,eI.nZ)().getPropagationContext().dsc;t&&delete t.replay_id;let a=(0,ej.HN)();if(a){let t=(0,eF.jC)(a);delete t.replay_id}}function createPerformanceSpans(t,a){return a.map(({type:a,start:l,end:c,name:d,data:p})=>{let f=t.throttledAddEvent({type:rh.Custom,timestamp:l,data:{tag:"performanceSpan",payload:{op:a,description:d,startTimestamp:l,endTimestamp:c,data:p}}});return"string"==typeof f?Promise.resolve(null):f})}function addNetworkBreadcrumb(t,a){t.isEnabled()&&null!==a&&!function(t,a){let l=a&&a.getDsn(),c=a&&a.getOptions().tunnel;return!!l&&t.includes(l.host)||!!c&&removeTrailingSlash(t)===removeTrailingSlash(c)}(a.name,(0,eI.s3)())&&t.addUpdate(()=>(createPerformanceSpans(t,[a]),!0))}function getBodySize(t){if(!t)return;let a=new TextEncoder;try{if("string"==typeof t)return a.encode(t).length;if(t instanceof URLSearchParams)return a.encode(t.toString()).length;if(t instanceof FormData){let l=_serializeFormData(t);return a.encode(l).length}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength}catch(t){}}function parseContentLengthHeader(t){if(!t)return;let a=parseInt(t,10);return isNaN(a)?void 0:a}function getBodyString(t){try{if("string"==typeof t)return[t];if(t instanceof URLSearchParams)return[t.toString()];if(t instanceof FormData)return[_serializeFormData(t)];if(!t)return[void 0]}catch(t){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}
54function mergeWarning(t,a){if(!t)return{headers:{},size:void 0,_meta:{warnings:[a]}};let l={...t._meta},c=l.warnings||[];return l.warnings=[...c,a],t._meta=l,t}function makeNetworkReplayBreadcrumb(t,a){if(!a)return null;let{startTimestamp:l,endTimestamp:c,url:d,method:p,statusCode:f,request:h,response:g}=a,_={type:t,start:l/1e3,end:c/1e3,name:d,data:(0,eO.Jr)({method:p,statusCode:f,request:h,response:g})};return _}function buildSkippedNetworkRequestOrResponse(t){return{headers:{},size:t,_meta:{warnings:["URL_SKIPPED"]}}}function buildNetworkRequestOrResponse(t,a,l){if(!a&&0===Object.keys(t).length)return;if(!a)return{headers:t};if(!l)return{headers:t,size:a};let c={headers:t,size:a},{body:d,warnings:p}=function(t){if(!t||"string"!=typeof t)return{body:t};let a=t.length>15e4,l=function(t){let a=t[0],l=t[t.length-1];return"["===a&&"]"===l||"{"===a&&"}"===l}(t);if(a){let a=t.slice(0,15e4);return l?{body:a,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${a}…`,warnings:["TEXT_TRUNCATED"]}}if(l)try{let a=JSON.parse(t);return{body:a}}catch(t){}return{body:t}}(l);return c.body=d,p&&p.length>0&&(c._meta={warnings:p}),c}function getAllowedHeaders(t,a){return Object.entries(t).reduce((l,[c,d])=>{let p=c.toLowerCase();return a.includes(p)&&t[c]&&(l[p]=d),l},{})}function _serializeFormData(t){return new URLSearchParams(t).toString()}function urlMatches(t,a){let l=function(t,a=t3.document.baseURI){if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith(t3.location.origin))return t;let l=new URL(t,a);if(l.origin!==new URL(a).origin)return t;let c=l.href;return!t.endsWith("/")&&c.endsWith("/")?c.slice(0,-1):c}(t);return(0,ex.U0)(l,a)}async function captureFetchBreadcrumbToReplay(t,a,l){try{let c=await _prepareFetchData(t,a,l),d=makeNetworkReplayBreadcrumb("resource.fetch",c);addNetworkBreadcrumb(l.replay,d)}catch(t){}}async function _prepareFetchData(t,a,l){let c=Date.now(),{startTimestamp:d=c,endTimestamp:p=c}=a,{url:f,method:h,status_code:g=0,request_body_size:_,response_body_size:S}=t.data,w=urlMatches(f,l.networkDetailAllowUrls)&&!urlMatches(f,l.networkDetailDenyUrls),k=w?function({networkCaptureBodies:t,networkRequestHeaders:a},l,c){let d=l?1===l.length&&"string"!=typeof l[0]?getHeadersFromOptions(l[0],a):2===l.length?getHeadersFromOptions(l[1],a):{}:{};if(!t)return buildNetworkRequestOrResponse(d,c,void 0);let p=_getFetchRequestArgBody(l),[f,h]=getBodyString(p),g=buildNetworkRequestOrResponse(d,c,f);return h?mergeWarning(g,h):g}(l,a.input,_):buildSkippedNetworkRequestOrResponse(_),E=await _getResponseInfo(w,l,a.response,S);return{startTimestamp:d,endTimestamp:p,url:f,method:h,statusCode:g,request:k,response:E}}async function _getResponseInfo(t,{networkCaptureBodies:a,networkResponseHeaders:l},c,d){if(!t&&void 0!==d)return buildSkippedNetworkRequestOrResponse(d);let p=c?getAllHeaders(c.headers,l):{};if(!c||!a&&void 0!==d)return buildNetworkRequestOrResponse(p,d,void 0);let[f,h]=await _parseFetchResponseBody(c),g=function(t,{networkCaptureBodies:a,responseBodySize:l,captureDetails:c,headers:d}){try{let p=t&&t.length&&void 0===l?getBodySize(t):l;if(!c)return buildSkippedNetworkRequestOrResponse(p);if(a)return buildNetworkRequestOrResponse(d,p,t);return buildNetworkRequestOrResponse(d,p,void 0)}catch(t){return buildNetworkRequestOrResponse(d,l,void 0)}}(f,{networkCaptureBodies:a,responseBodySize:d,captureDetails:t,headers:p});return h?mergeWarning(g,h):g}async function _parseFetchResponseBody(t){let a=function(t){try{return t.clone()}catch(t){}}(t);if(!a)return[void 0,"BODY_PARSE_ERROR"];try{let t=await new Promise((t,l)=>{let c=getNativeImplementation_setTimeout(()=>l(Error("Timeout while trying to read response body")),500);_getResponseText(a).then(a=>t(a),t=>l(t)).finally(()=>clearTimeout(c))});return[t]}catch(t){if(t instanceof Error&&t.message.indexOf("Timeout")>-1)return[void 0,"BODY_PARSE_TIMEOUT"];return[void 0,"BODY_PARSE_ERROR"]}}function _getFetchRequestArgBody(t=[]){if(2===t.length&&"object"==typeof t[1])return t[1].body}function getAllHeaders(t,a){let l={};return a.forEach(a=>{t.get(a)&&(l[a]=t.get(a))}),l}function getHeadersFromOptions(t,a){if(!t)return{};let l=t.headers;return l?l instanceof Headers?getAllHeaders(l,a):Array.isArray(l)?{}:getAllowedHeaders(l,a):{}}async function _getResponseText(t){return await t.text()}async function captureXhrBreadcrumbToReplay(t,a,l){try{let c=function(t,a,l){let c=Date.now(),{startTimestamp:d=c,endTimestamp:p=c,input:f,xhr:h}=a,{url:g,method:_,status_code:S=0,request_body_size:w,response_body_size:k}=t.data;if(!g)return null;if(!h||!urlMatches(g,l.networkDetailAllowUrls)||urlMatches(g,l.networkDetailDenyUrls)){let t=buildSkippedNetwork
54RequestOrResponse(w),a=buildSkippedNetworkRequestOrResponse(k);return{startTimestamp:d,endTimestamp:p,url:g,method:_,statusCode:S,request:t,response:a}}let E=h[eX],x=E?getAllowedHeaders(E.request_headers,l.networkRequestHeaders):{},B=getAllowedHeaders(function(t){let a=t.getAllResponseHeaders();return a?a.split("\r\n").reduce((t,a)=>{let[l,c]=a.split(": ");return c&&(t[l.toLowerCase()]=c),t},{}):{}}(h),l.networkResponseHeaders),[H,U]=l.networkCaptureBodies?getBodyString(f):[void 0],[J,er]=l.networkCaptureBodies?function(t){let a=[];try{return[t.responseText]}catch(t){a.push(t)}try{return function(t,a){try{if("string"==typeof t)return[t];if(t instanceof Document)return[t.body.outerHTML];if("json"===a&&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){a.push(t)}return[void 0]}(h):[void 0],en=buildNetworkRequestOrResponse(x,w,H),ei=buildNetworkRequestOrResponse(B,k,J);return{startTimestamp:d,endTimestamp:p,url:g,method:_,statusCode:S,request:U?mergeWarning(en,U):en,response:er?mergeWarning(ei,er):ei}}(t,a,l),d=makeNetworkReplayBreadcrumb("resource.xhr",c);addNetworkBreadcrumb(l.replay,d)}catch(t){}}async function addMemoryEntry(t){try{return Promise.all(createPerformanceSpans(t,[function(t){let{jsHeapSizeLimit:a,totalJSHeapSize:l,usedJSHeapSize:c}=t,d=Date.now()/1e3;return{type:"memory",name:"memory",start:d,end:d,data:{memory:{jsHeapSizeLimit:a,totalJSHeapSize:l,usedJSHeapSize:c}}}}(t3.performance.memory)]))}catch(t){return[]}}let rI=e_.GLOBAL_OBJ.navigator;async function prepareReplayEvent({client:t,scope:a,replayId:l,event:c}){let d="object"!=typeof t._integrations||null===t._integrations||Array.isArray(t._integrations)?void 0:Object.keys(t._integrations),p={event_id:l,integrations:d};t.emit("preprocessEvent",c,p);let f=await (0,eq.R)(t.getOptions(),c,p,a,t,(0,eI.aF)());if(!f)return null;f.platform=f.platform||"javascript";let h=t.getSdkMetadata(),{name:g,version:_}=h&&h.sdk||{};return f.sdk={...f.sdk,name:g||"sentry.javascript.unknown",version:_||"0.0.0"},f}async function sendReplayRequest({recordingData:t,replayId:a,segmentId:l,eventContext:c,timestamp:d,session:p}){var f;let h;let g=function({recordingData:t,headers:a}){let l;let c=`${JSON.stringify(a)}
55`;if("string"==typeof t)l=`${c}${t}`;else{let a=new TextEncoder,d=a.encode(c);(l=new Uint8Array(d.length+t.length)).set(d),l.set(t,d.length)}return l}({recordingData:t,headers:{segment_id:l}}),{urls:_,errorIds:S,traceIds:w,initialTimestamp:k}=c,E=(0,eI.s3)(),x=(0,eI.nZ)(),B=E&&E.getTransport(),H=E&&E.getDsn();if(!E||!B||!H||!p.sampled)return(0,eW.WD)({});let U={type:"replay_event",replay_start_timestamp:k/1e3,timestamp:d/1e3,error_ids:S,trace_ids:w,urls:_,replay_id:a,segment_id:l,replay_type:p.sampled},J=await prepareReplayEvent({scope:x,client:E,replayId:a,event:U});if(!J)return E.recordDroppedEvent("event_processor","replay",U),(0,eW.WD)({});delete J.sdkProcessingMetadata;let er=(f=E.getOptions().tunnel,createEnvelope(createEventEnvelopeHeaders(J,getSdkMetadataForEnvelopeHeader(J),f,H),[[{type:"replay_event"},J],[{type:"replay_recording",length:"string"==typeof g?new TextEncoder().encode(g).length:g.length},g]]));try{h=await B.send(er)}catch(a){let t=Error(t6);try{t.cause=a}catch(t){}throw t}if("number"==typeof h.statusCode&&(h.statusCode<200||h.statusCode>=300))throw new TransportStatusCodeError(h.statusCode);let en=updateRateLimits({},h);if(isRateLimited(en,"replay"))throw new RateLimitError(en);return h}let TransportStatusCodeError=class TransportStatusCodeError extends Error{constructor(t){super(`Transport returned status code ${t}`)}};let RateLimitError=class RateLimitError extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}};async function sendReplay(t,a={count:0,interval:5e3}){let{recordingData:l,onError:c}=t;if(l.length)try{return await sendReplayRequest(t),!0}catch(l){if(l instanceof TransportStatusCodeError||l instanceof RateLimitError)throw l;if((0,eS.v)("Replays",{_retryCount:a.count}),c&&c(l),a.count>=3){let t=Error(`${t6} - max retries exceeded`);try{t.cause=l}catch(t){}throw t}return a.interval*=++a.count,new Promise((l,c)=>{getNativeImplementation_setTimeout(async()=>{try{await sendReplay(t,a),l(!0)}catch(t){c(t)}},a.interval)})}}let rO="__THROTTLED";
55let ReplayContainer=class ReplayContainer{constructor({options:t,recordingOptions:a}){ReplayContainer.prototype.__init.call(this),ReplayContainer.prototype.__init2.call(this),ReplayContainer.prototype.__init3.call(this),ReplayContainer.prototype.__init4.call(this),ReplayContainer.prototype.__init5.call(this),ReplayContainer.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=a,this._options=t,this._debouncedFlush=function(t,a,l){let c,d,p;let f=l&&l.maxWait?Math.max(l.maxWait,a):0;function invokeFunc(){return cancelTimers(),c=t()}function cancelTimers(){void 0!==d&&clearTimeout(d),void 0!==p&&clearTimeout(p),d=p=void 0}function debounced(){return d&&clearTimeout(d),d=getNativeImplementation_setTimeout(invokeFunc,a),f&&void 0===p&&(p=getNativeImplementation_setTimeout(invokeFunc,f)),c}return debounced.cancel=cancelTimers,debounced.flush=function(){return void 0!==d||void 0!==p?invokeFunc():c},debounced}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(t,a,l){let c=new Map,_cleanup=t=>{let a=t-5;c.forEach((t,l)=>{l<a&&c.delete(l)})},_getTotalCount=()=>[...c.values()].reduce((t,a)=>t+a,0),d=!1;return(...a)=>{let l=Math.floor(Date.now()/1e3);if(_cleanup(l),_getTotalCount()>=300){let t=d;return d=!0,t?"__SKIPPED":rO}d=!1;let p=c.get(l)||0;return c.set(l,p+1),t(...a)}}((t,a)=>shouldAddEvent(this,t)?_addEvent(this,t,a):Promise.resolve(null),0,0);let{slowClickTimeout:l,slowClickIgnoreSelectors:c}=this.getOptions(),d=l?{threshold:Math.min(3e3,l),timeout:l,scrollTimeout:300,ignoreSelector:c?c.join(","):""}:void 0;d&&(this.clickDetector=new ClickDetector(this,d))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){this._options.onError&&this._options.onError(t)}initializeSampling(t){let{errorSampleRate:a,sessionSampleRate:l}=this._options,c=a<=0&&l<=0;this._requiresManualStart=c,!c&&(this._initializeSessionForSampling(t),this.session)&&!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",this._initializeRecording())}start(){if(this._isEnabled&&"session"===this.recordingMode||this._isEnabled&&"buffer"===this.recordingMode)return;this._updateUserActivity();let t=loadOrCreateSession({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled)return;let t=loadOrCreateSession({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{var t;let a;let l=this._canvas;this._stopRecording=record({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:(t=this,a=!1,(l,c)=>{if(!t.checkAndHandleExpiredSession())return;let d=c||!a;a=!0,t.clickDetector&&function(t,a){try{if(3!==a.type)return;let{source:l}=a.data;if(rk.has(l)&&t.registerMutation(a.timestamp),l===rg.Scroll&&t.registerScroll(a.timestamp),a.data.source===rg.MouseInteraction){let{type:l,id:c}=a.data,d=record.mirror.getNode(c);d instanceof HTMLElement&&l===rm.Click&&t.registerClick(d)}}catch(t){}}(t.clickDetector,l),t.addUpdate(()=>{if("buffer"===t.recordingMode&&d&&t.setInitialState(),!addEventSync(t,l,d))return!0;
55if(!d)return!1;let a=t.session;if(d&&t.session&&0===t.session.segmentId&&addEventSync(t,function(t){let a=t.getOptions();return{type:rh.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:t.isRecordingCanvas(),sessionSampleRate:a.sessionSampleRate,errorSampleRate:a.errorSampleRate,useCompressionOption:a.useCompression,blockAllMedia:a.blockAllMedia,maskAllText:a.maskAllText,maskAllInputs:a.maskAllInputs,useCompression:!!t.eventBuffer&&"worker"===t.eventBuffer.type,networkDetailHasUrls:a.networkDetailAllowUrls.length>0,networkCaptureBodies:a.networkCaptureBodies,networkRequestHasHeaders:a.networkRequestHeaders.length>0,networkResponseHasHeaders:a.networkResponseHeaders.length>0}}}}(t),!1),"buffer"===t.recordingMode&&a&&t.eventBuffer){let l=t.eventBuffer.getEarliestTimestamp();l&&(a.started=l,t.getOptions().stickySession&&saveSession(a))}return!!a&&!!a.previousSessionId||("session"===t.recordingMode&&t.flush(),!0)})}),.../iPhone|iPad|iPod/i.test(rI&&rI.userAgent||"")||/Macintosh/i.test(rI&&rI.userAgent||"")&&rI&&rI.maxTouchPoints&&rI.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler,...l?{recordCanvas:l.recordCanvas,getCanvasManager:l.getCanvasManager,sampling:l.sampling,dataURLOptions:l.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({forceFlush:t=!1,reason:a}={}){if(this._isEnabled){this._isEnabled=!1;try{resetReplayIdOnDynamicSamplingContext(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,function(){if(hasSessionStorage())try{t3.sessionStorage.removeItem(t5)}catch(t){}}(),this.session=void 0}catch(t){this.handleException(t)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording())}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording())}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let a=Date.now();await this.flushImmediate();let l=this.stopRecording();t&&l&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(a),this._updateSessionActivity(a),this._maybeSaveSession()),this.startRecording())}addUpdate(t){let a=t();"buffer"!==this.recordingMode&&!0!==a&&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}checkAndHandleExpiredSession(){if(this._lastActivity&&isExpired(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled){this.pause();return}return!!this._checkSession()}setInitialState(){let t=`${t3.location.pathname}${t3.location.hash}${t3.location.search}`,a=`${t3.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=a,this._context.initialTimestamp=Date.now(),this._context.urls.push(a)}throttledAddEvent(t,a){let l=this._throttledAddEvent(t,a);if(l===rO){let t=createBreadcrumb({category:"replay.throttled"});this.addUpdate(()=>!addEventSync(this,{type:5,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t,metric:!0}}))}return l}getCurrentRoute(){let t=this.lastActiveSpan||(0,ej.HN)(),a=t&&(0,ej.Gx)(t),l=a&&(0,ej.XU)(a).data||{},c=l[ts.Zj];if(a&&c&&["route","custom"].includes(c))return(0,ej.XU)(a).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:t,workerUrl:a}){if(t&&window.Worker){let t=function(t){try{let a=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}
vendor: 5,457 bytes, line 55
55},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==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=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},x=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=A(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}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(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)},U=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=x(f,15),M=b.t,E=b.l,A=x(h,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),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=x(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,U)+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(U,C,0),R=U;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){_(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;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=C[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(a[t]^a[t+1]<<A^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=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=U(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;
55++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[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=U(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=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),a=0,s=function(t){i[a++]=t},o=0;o<e;++o){if(a+5>i.length){var f=new t(a+8+(e-o<<1));f.set(i),i=f}var h=n.charCodeAt(o);h<128||r?s(h):h<2048?(s(192|h>>6),s(128|63&h)):h>55295&&h<57344?(s(240|(h=65536+(1047552&h)|1023&n.charCodeAt(++o))>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|63&h)):(s(224|h>>12),s(128|h>>6&63),s(128|63&h))}return b(i,0,a)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(t)}());if(!a)return;let l=new Worker(a);return new EventBufferProxy(l)}catch(t){}}(a);if(t)return t}return new EventBufferArray}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){let a=this._options.errorSampleRate>0,l=loadOrCreateSession({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:a});this.session=l}_checkSession(){if(!this.session)return!1;let t=this.session;return!shouldRefreshSession(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{t3.document.addEventListener("visibilitychange",this._handleVisibilityChange),t3.addEventListener("blur",this._handleWindowBlur),t3.addEventListener("focus",this._handleWindowFocus),t3.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(function(t){let a=(0,eI.s3)();addClickKeypressInstrumentationHandler(handleDomListener(t)),addHistoryInstrumentationHandler(a=>{if(!t.isEnabled())return;let l=function(t){let{from:a,to:l}=t,c=Date.now()/1e3;return{type:"navigation.push",start:c,end:c,name:l,data:{previous:a}}}(a);null!==l&&(t.getContext().urls.push(l.name),t.triggerUserActivity(),t.addUpdate(()=>(createPerformanceSpans(t,[l]),!1)))}),function(t){let a=(0,eI.s3)();a&&a.on("beforeAddBreadcrumb",a=>
55(function(t,a){if(!t.isEnabled()||!isBreadcrumbWithCategory(a))return;let l=!isBreadcrumbWithCategory(a)||["fetch","xhr","sentry.event","sentry.transaction"].includes(a.category)||a.category.startsWith("ui.")?null:"console"===a.category?function(t){let a=t.data&&t.data.arguments;if(!Array.isArray(a)||0===a.length)return createBreadcrumb(t);let l=!1,c=a.map(t=>{if(!t)return t;if("string"==typeof t)return t.length>5e3?(l=!0,`${t.slice(0,5e3)}…`):t;if("object"==typeof t)try{let a=(0,eN.Fv)(t,7),c=JSON.stringify(a);if(c.length>5e3)return l=!0,`${JSON.stringify(a,null,2).slice(0,5e3)}…`;return a}catch(t){}return t});return createBreadcrumb({...t,data:{...t.data,arguments:c,...l?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(a):createBreadcrumb(a);l&&addBreadcrumbEvent(t,l)})(t,a))}(t),function(t){let a=(0,eI.s3)();try{let{networkDetailAllowUrls:l,networkDetailDenyUrls:c,networkCaptureBodies:d,networkRequestHeaders:p,networkResponseHeaders:f}=t.getOptions(),h={replay:t,networkDetailAllowUrls:l,networkDetailDenyUrls:c,networkCaptureBodies:d,networkRequestHeaders:p,networkResponseHeaders:f};a&&a.on("beforeAddBreadcrumb",(t,a)=>(function(t,a,l){if(a.data)try{var c,d;"xhr"===a.category&&(c=l)&&c.xhr&&(function(t,a){let{xhr:l,input:c}=a;if(!l)return;let d=getBodySize(c),p=l.getResponseHeader("content-length")?parseContentLengthHeader(l.getResponseHeader("content-length")):function(t,a){try{let l="json"===a&&t&&"object"==typeof t?JSON.stringify(t):t;return getBodySize(l)}catch(t){return}}(l.response,l.responseType);void 0!==d&&(t.data.request_body_size=d),void 0!==p&&(t.data.response_body_size=p)}(a,l),captureXhrBreadcrumbToReplay(a,l,t)),"fetch"===a.category&&(d=l)&&d.response&&(function(t,a){let{input:l,response:c}=a,d=l?_getFetchRequestArgBody(l):void 0,p=getBodySize(d),f=c?parseContentLengthHeader(c.headers.get("content-length")):void 0;void 0!==p&&(t.data.request_body_size=p),void 0!==f&&(t.data.response_body_size=f)}(a,l),captureFetchBreadcrumbToReplay(a,l,t))}catch(t){}})(h,t,a))}catch(t){}}(t);let l=Object.assign((a,l)=>{if(!t.isEnabled()||t.isPaused())return a;if("replay_event"===a.type)return delete a.breadcrumbs,a;if(a.type&&!esm_isTransactionEvent(a)&&!isFeedbackEvent(a))return a;let c=t.checkAndHandleExpiredSession();if(!c)return resetReplayIdOnDynamicSamplingContext(),a;if(isFeedbackEvent(a))return t.flush(),a.contexts.feedback.replay_id=t.getSessionId(),t.triggerUserActivity(),t.addUpdate(()=>!a.timestamp||(t.throttledAddEvent({type:rh.Custom,timestamp:1e3*a.timestamp,data:{tag:"breadcrumb",payload:{timestamp:a.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:a.event_id}}}}),!1)),a;if(!a.type&&a.exception&&a.exception.values&&a.exception.values.length&&l.originalException&&l.originalException.__rrweb__&&!t.getOptions()._experiments.captureExceptions)return null;let d="buffer"===t.recordingMode&&a.message!==t6&&!!a.exception&&!a.type&&isSampled(t.getOptions().errorSampleRate),p=d||"session"===t.recordingMode;return p&&(a.tags={...a.tags,replayId:t.getSessionId()}),a},{id:"Replay"});(0,eS.Qy)(l),a&&(a.on("beforeSendEvent",a=>{t.isEnabled()&&!a.type&&function(t,a){let l=a.exception&&a.exception.values&&a.exception.values[0]&&a.exception.values[0].value;if("string"==typeof l&&(l.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||l.match(/(does not match server-rendered HTML|Hydration failed because)/i))){let a=createBreadcrumb({category:"replay.hydrate-error",data:{url:(0,eY.l4)()}});addBreadcrumbEvent(t,a)}}(t,a)}),a.on("afterSendEvent",(a,l)=>{if(!t.isEnabled()||a.type&&!esm_isTransactionEvent(a))return;let c=l&&l.statusCode;if(c&&!(c<200)&&!(c>=300)){if(esm_isTransactionEvent(a)){(function(t,a){let l=t.getContext();a.contexts&&a.contexts.trace&&a.contexts.trace.trace_id&&l.traceIds.size<100&&l.traceIds.add(a.contexts.trace.trace_id)})(t,a);return}(function(t,a){let l=t.getContext();if(a.event_id&&l.errorIds.size<100&&l.errorIds.add(a.event_id),"buffer"!==t.recordingMode||!a.tags||!a.tags.replayId)return;let{beforeErrorSampling:c}=t.getOptions();("function"!=typeof c||c(a))&&getNativeImplementation_setTimeout(async()=>{try{await t.sendBufferedReplayOrFlush()}catch(a){t.handleException(a)}})})(t,a)}}),a.on("createDsc",a=>{let l=t.getSessionId();if(l&&t.isEnabled()&&"session"===t.recordingMode){let c=t.checkAndHandleExpiredSession();c&&(a.replay_id=l)}}),a.on("spanStart",a=>{t.lastActiveSpan=a}),a.on("spanEnd",a=>{t.lastActiveSpan=a}),a.on("beforeSendFeedback",(a,l)=>{let c=t.getSessionId();l&&l.includeReplay&&t.isEnabled()&&c&&a.contexts&&a.contexts.feedback&&(a.contexts.feedback.replay_id=c)}))}(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=function(t){function addPerformanceEntry(a){t.performanceEntries.includes(a)||t.performanceEntries.push(a)}function onEntries({entries:t}){t.forEach(addPerformanceEntry)}let a=[];return["navigation","paint","resource"].forEach(t=>{a.push(addPerformanceInstrumentationHandler(t,onEntries))}),a.push(addLcpInstrumentationHandler(webVitalHandler(getLargestContentfulPaint,t)),addClsInstrumentationHandler(webVitalHandler(getCumulativeLayoutShift,t)),addFidInstrumentationHandler(webVitalHandler(getFirstInputDelay,t)),addInpInstrumentationHandler(webVitalHandler(getInteractionToNextPaint,t))),()=>{a.forEach(t=>t())}}(this)}_removeListeners(){try{t3.document.removeEventListener("visibilitychange",this._handleVisibilityChange),t3.removeEventListener("blur",this._handleWindowBlur),t3.removeEventListener("focus",this._handleWindowFocus),t3.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}__init(){this._handleVisibilityChange=()=>{"visible"===t3.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroun
55dTasks()}}__init2(){this._handleWindowBlur=()=>{let t=createBreadcrumb({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{let t=createBreadcrumb({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{!function(t,a){if(!t.isEnabled())return;t.updateUserActivity();let l=function(t){var a;let{metaKey:l,shiftKey:c,ctrlKey:d,altKey:p,key:f,target:h}=t;if(!h||"INPUT"===(a=h).tagName||"TEXTAREA"===a.tagName||a.isContentEditable||!f)return null;let g=1===f.length;if(!(l||d||p)&&g)return null;let _=(0,eY.Rt)(h,{maxStringLength:200})||"<unknown>",S=getBaseDomBreadcrumb(h,_);return createBreadcrumb({category:"ui.keyDown",message:_,data:{...S.data,metaKey:l,shiftKey:c,ctrlKey:d,altKey:p,key:f}})}(a);l&&addBreadcrumbEvent(t,l)}(this,t)}}_doChangeToBackgroundTasks(t){if(!this.session)return;let a=isSessionExpired(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire});a||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;let a=this.checkAndHandleExpiredSession();a&&t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:rh.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=this.performanceEntries.map(createPerformanceEntry).filter(Boolean).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let a=this._context.initialTimestamp/1e3;t=t.filter(t=>t.start>=a)}return Promise.all(createPerformanceSpans(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:t,eventBuffer:a}=this;if(!t||!a||this._requiresManualStart||t.segmentId)return;let l=a.getEarliestTimestamp();l&&l<this._context.initialTimestamp&&(this._context.initialTimestamp=l)}_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 addMemoryEntry(this),this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let a=Date.now();if(a-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw Error("Session is too long, not sending replay");let l=this._popEventContext(),c=this.session.segmentId++;this._maybeSaveSession();let d=await this.eventBuffer.finish();await sendReplay({replayId:t,recordingData:d,segmentId:c,eventContext:l,session:this.session,timestamp:a,onError:t=>this.handleException(t)})}catch(a){this.handleException(a),this.stop({reason:"sendReplay"});let t=(0,eI.s3)();if(t){let l=a instanceof RateLimitError?"ratelimit_backoff":"send_error";t.recordDroppedEvent(l,"replay")}}}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t||!this.checkAndHandleExpiredSession()||!this.session)return;let a=this.session.started,l=Date.now(),c=l-a;this._debouncedFlush.cancel();let d=c<this._options.minReplayDuration,p=c>this._options.maxReplayDuration+5e3;if(d||p){d&&this._debouncedFlush();return}let f=this.eventBuffer;f&&0===this.session.segmentId&&f.hasCheckout;let h=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(t){this.handleException(t)}finally{this._flushLock=void 0,h&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&saveSession(this.session)}__init6(){this._onMutationHandler=t=>{let a=t.length,l=this._options.mutationLimit,c=this._options.mutationBreadcrumbLimit,d=l&&a>l;if(a>c||d){let t=createBreadcrumb({category:"replay.mutations",data:{count:a,limit:d}});this._createCustomBreadcrumb(t)}return!d||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}};function getOption(t,a){return[...t,...a].join(",")}let rR='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',rM=["content-length","content-type","accept"],rP=!1;let Replay=class Replay{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=5e3,flushMaxDelay:a=5500,minReplayDuration:l=4999,maxReplayDuration:c=36e5,stickySession:d=!0,useCompression:p=!0,workerUrl:f,_experiments:h={},maskAllText:g=!0,maskAllInputs:_=!0,blockAllMedia:S=!0,mutationBreadcrumbLimit:w=750,mutationLimit:k=1e4,slowClickTimeout:E=7e3,slowClickIgnoreSelectors:x=[],networkDetailAllowUrls:B=[],networkDetailDenyUrls:H=[],networkCaptureBodies:U=!0,networkRequestHeaders:J=[],networkResponseHeaders:er=[],mask:en=[],maskAttributes:ei=["title","placeholder"],unmask:ea=[],block:el=[],unblock:ec=[],ignore:eu=[],maskFn:ed,beforeAddRecordingEvent:ep,beforeErrorSampling:ef,onError:eh}={}){this.name=Replay.id;let eg=function({mask:t,unmask:a,block:l,unblock:c,ignore:d}){let p=getOption(t,[".sentry-mask","[data-sentry-mask]"]),f=getOption(a,[]),h={maskTextSelector:p,unmaskTextSelector:f,blockSelector:getOption(l,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not
55([src])"]),unblockSelector:getOption(c,[]),ignoreSelector:getOption(d,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])};return h}({mask:en,unmask:ea,block:el,unblock:ec,ignore:eu});if(this._recordingOptions={maskAllInputs:_,maskAllText:g,maskInputOptions:{password:!0},maskTextFn:ed,maskInputFn:ed,maskAttributeFn:(t,a,l)=>(function({el:t,key:a,maskAttributes:l,maskAllText:c,privacyOptions:d,value:p}){return!c||d.unmaskTextSelector&&t.matches(d.unmaskTextSelector)?p:l.includes(a)||"value"===a&&"INPUT"===t.tagName&&["submit","button"].includes(t.getAttribute("type")||"")?p.replace(/[\S]/g,"*"):p})({maskAttributes:ei,maskAllText:g,privacyOptions:eg,key:t,value:a,el:l}),...eg,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:t=>{try{t.__rrweb__=!0}catch(t){}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:a,minReplayDuration:Math.min(l,15e3),maxReplayDuration:Math.min(c,36e5),stickySession:d,useCompression:p,workerUrl:f,blockAllMedia:S,maskAllInputs:_,maskAllText:g,mutationBreadcrumbLimit:w,mutationLimit:k,slowClickTimeout:E,slowClickIgnoreSelectors:x,networkDetailAllowUrls:B,networkDetailDenyUrls:H,networkCaptureBodies:U,networkRequestHeaders:_getMergedNetworkHeaders(J),networkResponseHeaders:_getMergedNetworkHeaders(er),beforeAddRecordingEvent:ep,beforeErrorSampling:ef,onError:eh,_experiments:h},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${rR}`:rR),this._isInitialized&&isBrowser())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return rP}set _isInitialized(t){rP=t}afterAllSetup(t){isBrowser()&&!this._replay&&(this._setup(t),this._initialize(t))}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):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay&&this._replay.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){let a=function(t,a){let l=a.getOptions(),c={sessionSampleRate:0,errorSampleRate:0,...(0,eO.Jr)(t)},d=parseSampleRate(l.replaysSessionSampleRate),p=parseSampleRate(l.replaysOnErrorSampleRate);return null==d&&null==p&&(0,ek.Cf)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=d&&(c.sessionSampleRate=d),null!=p&&(c.errorSampleRate=p),c}(this._initialOptions,t);this._replay=new ReplayContainer({options:a,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{let a=t.getIntegrationByName("ReplayCanvas");if(!a)return;this._replay._canvas=a.getOptions()}catch(t){}}};function _getMergedNetworkHeaders(t){return[...rM,...t.map(t=>t.toLowerCase())]}Replay.__initStatic(),globalThis._sentryRewritesTunnelPath=void 0,globalThis.SENTRY_RELEASE={id:"9OKikkzGYsVA6jxPIOgxL"},globalThis._sentryBasePath=void 0,globalThis._sentryRewriteFramesAssetPrefixPath="",function(t){let a={environment:function(t){let a=t?ta.env.NEXT_PUBLIC_VERCEL_ENV:ta.env.VERCEL_ENV;return a?`vercel-${a}`:void 0}(!0)||"production",defaultIntegrations:function(t){let a=getDefaultIntegrations(t);("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&a.push(function(t={}){let a=browserTracingIntegration({...t,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:l=!0,instrumentNavigation:c=!0}=t;return{...a,afterAllSetup(t){c&&function(t){let a=!eU.document.getElementById("__NEXT_DATA__");a?!function(t){let a;eU.addEventListener("popstate",()=>{a&&a.isRecording()?(a.updateName(eU.location.pathname),a.setAttribute(ts.Zj,"url")):a=startBrowserTracingNavigationSpan(t,{name:eU.location.pathname,attributes:{[ts.$J]:"navigation",[ts.S3]:"auto.navigation.nextjs.app_router_instrumentation",[ts.Zj]:"url","navigation.type":"browser.popstate"}})});let l=!1,c=0,d=setInterval(()=>{var p;c++;let f=null!=(p=_optionalChain([tG,"optionalAccess",t=>t.next,"optionalAccess",t=>t.router]))?p:_optionalChain([tG,"optionalAccess",t=>t.nd,"optionalAccess",t=>t.router]);l||c>500?clearInterval(d):f&&(clearInterval(d),l=!0,["back","forward","push","replace"].forEach(l=>{_optionalChain([f,"optionalAccess",t=>t[l]])&&(f[l]=new Proxy(f[l],{apply(c,d,p){let f=startBrowserTracingNavigationSpan(t,{name:tZ,attributes:{[ts.$J]:"navigation",[ts.S3]:"auto.navigation.nextjs.app_router_instrumentation",[ts.Zj]:"url"}});return a=f,"push"===l?(_optionalChain([f,"optionalAccess",t=>t.updateName,"call",t=>t(transactionNameifyRouterArgument(p[0]))]),_optionalChain([f,"optionalAccess",t=>t.setAttribute,"call",t=>t(ts.Zj,"url")]),_optionalChain([f,"optionalAccess",t=>t.setAttribute,"call",t=>t("navigation.type","router.push")])):"replace"===l?(_optionalChain([f,"optionalAccess",t=>t.updateName,"call",t=>t(transactionNameifyRouterArgument(p[0]))]),_optionalChain([f,"optionalAccess",t=>t.setAttribute,"call",t=>t(ts.Zj,"url")]),_optionalChain([f,"optionalAccess",t=>t.setAttribute,"call",t=>t("navigation.type","router.replace")])):"back"===l?_optionalChain([f,"optionalAccess",t=>t.setAttribute,"call",t=>t("navigation.type","router.back")]):"forward"===l&&_optionalChain([f,"optionalAccess",t=>t.setAttribute,"call",t=>t("navigation.type","router.forward")]),c.apply(d,p)}}))}))},20)}(t):tX.events.on("routeChangeStart",a=>{let l,c;let d=a.split(/[?#]/,1)[0],p=function(t){let a=(eU.__BUILD_MANIFEST||{}).sortedPages;if(a)return a.find(a=>{let l=function(t){let a=t.split("/"),l="";_optionalChain([a,"access",t=>t[a.length-1],"optionalAccess",t=>t.match,"call",t=>t(/^\[\[\.\.\..+\]\]$/)])&&(a.pop(),l="(?:/(.+?))?");let c=a.map(t=>t.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${c}${l}(?:/)?$`)}(a);return t.match(l)})}(d);p?(l=p,c="route"):(l=d,c="url"),startBrowserTracingNavigationSpan(t,{name:l,attributes:{[ts.$J]:"navigation",[ts.S3]:"auto.navigation.nextjs.pages_router_instrumentation",[ts.Zj]:c}})})}(t),a.afterAllSetup(t),l&&function(t){let a=!eU.document.getElementById("__NEXT_DATA__");a?startBrowserTracingPageLoadSpan(t,{name:eU.location.pathname,startTime:eB.Z1?eB.Z1/1e3:void 0,attributes:{[ts.$J]:"pageload",[ts.S3]:"auto.pageload.nextjs.app_router_instrumentation",[ts.Zj]:"url"}}):function(t){let{route:a,params:l,sentryTrace:c,baggage:d}=function(){let t;let a=eU.document.getElementById("__NEXT_DATA__");if(a&&a.innerHTML)try{t=JSON.parse(a.innerHTML)}catch(t){tK.X&&ek.kg.warn("Could not extract __NEXT_DATA__")}if(!t)return{};let l={},{page:c,query:d,props:p}=t;return l.route=c,l.params=d,p&&p.pageProps&&(l.sentryTrace=p.pageProps._sentryTraceData,l.baggage=p.pageProps._sentryBaggage),l}(),p=(0,tW.XM)(d),f=a||eU.location.pathname;p&&p["sentry-transaction"]&&"/_error"===f&&(f=(f=p["sentry-transaction"]).replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,"")),startBrowserTracingPageLoadSpan(t,{name:f,startTime:eB.Z1?eB.Z1/1e3:void 0,attributes:{[ts.$J]:"pageload",[ts.S3]:"auto.pageload.nextjs.pages_router_instrumentation",[ts.Zj]:a?"route":"url",...l&&t.getOptions().sendDefaultPii&&{...l}}},{sentryTrace:c,baggage:d})}(t)}(t)}}}());let l=t1._sentryRewriteFramesAssetPrefixPath||"";return a.push(nextjsClientStackFrameNormalizationIntegration({assetPrefixPath:l})),a}(t),...t};(function(t){let a=tY.env._sentryRewritesTunnelPath||t0._sentryRewritesTunnelPath;if(a&&t.dsn){let l=dsnFromString(t.dsn);if(!l)return;let c=l.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(c){let d=c[1],p=c[2],f=`${a}?o=${d}&p=${l.projectId}`;p&&(f+=`&r=${p}`),t.tunnel=f,tK.X&&ek.kg.info(`Tunneling events to "${f}"`)}else tK.X&&ek.kg.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}})(a),applySdkMetadata(a,"nextjs",["nextjs","react"]),function(t){let a={...t};
55applySdkMetadata(a,"react"),(0,eS.v)("react",{version:to.version}),function(t={}){let a=function(t={}){let a={defaultIntegrations:getDefaultIntegrations(t),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:eU.SENTRY_RELEASE&&eU.SENTRY_RELEASE.id?eU.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return null==t.defaultIntegrations&&delete t.defaultIntegrations,{...a,...t}}(t);if(!a.skipBrowserExtensionCheck&&function(){let t=void 0!==eU.window&&eU;if(!t)return!1;let a=t.chrome?"chrome":"browser",l=t[a],c=l&&l.runtime&&l.runtime.id,d=eU.location&&eU.location.href||"",p=!!c&&eU===eU.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some(t=>d.startsWith(`${t}//`)),f=void 0!==t.nw;return!!c&&!p&&!f}()){(0,ek.Cf)(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}let l={...a,stackParser:(0,eM.Sq)(a.stackParser||tr),integrations:function(t){let a;let l=t.defaultIntegrations||[],c=t.integrations;if(l.forEach(t=>{t.isDefaultInstance=!0}),Array.isArray(c))a=[...l,...c];else if("function"==typeof c){let t=c(l);a=Array.isArray(t)?t:[t]}else a=l;let d=function(t){let a={};return t.forEach(t=>{let{name:l}=t,c=a[l];c&&!c.isDefaultInstance&&t.isDefaultInstance||(a[l]=t)}),Object.values(a)}(a),p=d.findIndex(t=>"Debug"===t.name);if(p>-1){let[t]=d.splice(p,1);d.push(t)}return d}(a),transport:a.transport||makeFetchTransport};(function(t,a){!0===a.debug&&(ew.X?ek.kg.enable():(0,ek.Cf)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));let l=(0,eI.nZ)();l.update(a.initialScope);let c=new t(a);(0,eI.nZ)().setClient(c),c.init()})(BrowserClient,l)}(a)}(a);let filterTransactions=t=>"transaction"===t.type&&"/404"===t.transaction?null:t;filterTransactions.id="NextClient404Filter",(0,eS.Qy)(filterTransactions);let filterIncompleteNavigationTransactions=t=>"transaction"===t.type&&t.transaction===tZ?null:t;filterIncompleteNavigationTransactions.id="IncompleteTransactionFilter",(0,eS.Qy)(filterIncompleteNavigationTransactions);let filterNextRedirectError=(t,a)=>{var l;return(l=_optionalChain([a,"optionalAccess",t=>t.originalException]),(0,eH.VZ)(l)&&"string"==typeof l.digest&&l.digest.startsWith("NEXT_REDIRECT;"))?null:t};filterNextRedirectError.id="NextRedirectErrorFilter",(0,eS.Qy)(filterNextRedirectError)}({dsn:"https://8b29a7bca503226740e25b3c25425c74@o4504764864987136.ingest.us.sentry.io/4508454908723200",integrations:[new Replay(void 0)],tracesSampleRate:1,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,debug:!1})},28519:function(t,a,l){"use strict";l.d(a,{T:function(){return f},Z:function(){return MainContextProvider}});var c=l(85893),d=l(11163),p=l(67294);let f=(0,p.createContext)();function MainContextProvider(t){let{children:a}=t,[l,h]=(0,p.useState)(!1),[g,_]=(0,p.useState)(null),[S,w]=(0,p.useState)(null),k=(0,d.useRouter)();return(0,p.useEffect)(()=>{let handleStart=t=>t!==k.asPath&&h(!0),handleComplete=()=>h(!1);return k.events.on("routeChangeStart",handleStart),k.events.on("routeChangeComplete",handleComplete),k.events.on("routeChangeError",handleComplete),()=>{k.events.off("routeChangeStart",handleStart),k.events.off("routeChangeComplete",handleComplete),k.events.off("routeChangeError",handleComplete)}},[k]),(0,c.jsx)(f.Provider,{value:{appLoading:l,setAppLoading:h,user:g,setUser:_,menuData:S,setMenuData:w},"data-sentry-element":"unknown","data-sentry-component":"MainContextProvider","data-sentry-source-file":"main.jsx",children:a})}},93731:function(t,a,l){"use strict";l.r(a),l.d(a,{default:function(){return App}});var c=l(85893),d=l(11163),p=l.n(d),f=l(67294);let h=(0,f.createContext)(),FacebookPixelProvider=t=>{let{children:a}=t,l=(0,d.useRouter)();return(0,f.useEffect)(()=>{(function(){if(!window.fbq){var t,a,l,c,d,p;t=window,a=document,l="script",t.fbq||(c=t.fbq=function(){c.callMethod?c.callMethod.apply(c,arguments):c.queue.push(arguments)},t._fbq||(t._fbq=c),c.push=c,c.loaded=!0,c.version="2.0",c.queue=[],(d=a.createElement(l)).async=!0,d.src="https://connect.facebook.net/en_US/fbevents.js",(p=a.getElementsByTagName(l)[0]).parentNode.insertBefore(d,p)),window.fbq("init","1309056782583515")}})(),window.fbq("track","PageView");let handleRouteChange=()=>{window.fbq("track","PageView")};return l.events.on("routeChangeComplete",handleRouteChange),()=>{l.events.off("routeChangeComplete",handleRouteChange)}},[l]),(0,c.jsx)(h.Provider,{value:{trackEvent:function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};window.fbq&&window.fbq("track",t,a)}},"data-sentry-element":"unknown","data-sentry-component":"FacebookPixelProvider","data-sentry-source-file":"facebookPixelContext.jsx",children:a})};var g=l(28519);l(55303);var _,S=l(88970),w=l(53768),k=l(31929),E=l(9008),x=l.n(E),B=l(74865),H=l.n(B),U="undefined"!=typeof window?window:void 0,J="undefined"!=typeof globalThis?globalThis:U,er=Array.prototype,en=er.forEach,ei=er.indexOf,ea=null==J?void 0:J.navigator,el=null==J?void 0:J.document,ec=null==J?void 0:J.location,eu=null==J?void 0:J.fetch,ed=null!=J&&J.XMLHttpRequest&&"withCredentials"in new J.XMLHttpRequest?J.XMLHttpRequest:void 0,ep=null==J?void 0:J.AbortController,ef=null==ea?void 0:ea.userAgent,eh=null!=U?U:{},eg={DEBUG:!1,LIB_VERSION:"1.229.1"},em="$copy_autocapture",ev=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"];function m(t,a){return -1!==t.indexOf(a)}(tg=_||(_={})).GZipJS="gzip-js",tg.Base64="base64";var y=function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},b=function(t){return t.replace(/^\$/,"")},ey=Array.isArray,e_=Object.prototype,eb=e_.hasOwnProperty,eS=e_.toString,ew=ey||function(t){return"[object Array]"===eS.call(t)},I=t=>"function"==typeof t,P=t=>t===Object(t)&&!ew(t),C=t=>{if(P(t)){for(var a in t)if(eb.call(t,a))return!1;return!0}return!1},F=t=>void 0===t,R=t=>"[object String]"==eS.call(t),T=t=>R(t)&&0===t.trim().length,$=t=>null===t,A=t=>F(t)||$(t),O=t=>"[object Number]"==eS.call(t),M=t=>"[object Boolean]"===eS.call(t),L=t=>t instanceof FormData,D=t=>t instanceof Error,q=t=>m(ev,t),N=t=>
55{var a={_log:function(a){if(U&&(eg.DEBUG||eh.POSTHOG_DEBUG)&&!F(U.console)&&U.console){for(var l=("__rrweb_original__"in U.console[a])?U.console[a].__rrweb_original__:U.console[a],c=arguments.length,d=Array(c>1?c-1:0),p=1;p<c;p++)d[p-1]=arguments[p];l(t,...d)}},info:function(){for(var t=arguments.length,l=Array(t),c=0;c<t;c++)l[c]=arguments[c];a._log("log",...l)},warn:function(){for(var t=arguments.length,l=Array(t),c=0;c<t;c++)l[c]=arguments[c];a._log("warn",...l)},error:function(){for(var t=arguments.length,l=Array(t),c=0;c<t;c++)l[c]=arguments[c];a._log("error",...l)},critical:function(){for(var a=arguments.length,l=Array(a),c=0;c<a;c++)l[c]=arguments[c];console.error(t,...l)},uninitializedWarning:t=>{a.error("You must initialize PostHog before calling ".concat(t))},createLogger:a=>N("".concat(t," ").concat(a))};return a},ek=N("[PostHog.js]"),eE=ek.createLogger,eC=eE("[ExternalScriptsLoader]"),z=(t,a,l)=>{if(t.config.disable_external_dependency_loading)return eC.warn("".concat(a," was requested but loading of external scripts is disabled.")),l("Loading of external scripts is disabled");var s=()=>{if(!el)return l("document not found");var c=el.createElement("script");if(c.type="text/javascript",c.crossOrigin="anonymous",c.src=a,c.onload=t=>l(void 0,t),c.onerror=t=>l(t),t.config.prepare_external_dependency_script&&(c=t.config.prepare_external_dependency_script(c)),!c)return l("prepare_external_dependency_script returned null");var d,p=el.querySelectorAll("body > script");p.length>0?null===(d=p[0].parentNode)||void 0===d||d.insertBefore(c,p[0]):el.body.appendChild(c)};null!=el&&el.body?s():null==el||el.addEventListener("DOMContentLoaded",s)};function j(t,a){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);a&&(c=c.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),l.push.apply(l,c)}return l}function W(t){for(var a=1;a<arguments.length;a++){var l=null!=arguments[a]?arguments[a]:{};a%2?j(Object(l),!0).forEach(function(a){V(t,a,l[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):j(Object(l)).forEac
55h(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(l,a))})}return t}function V(t,a,l){return a in t?Object.defineProperty(t,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[a]=l,t}function G(t,a){if(null==t)return{};var l,c,d=function(t,a){if(null==t)return{};var l,c,d={},p=Object.keys(t);for(c=0;c<p.length;c++)l=p[c],a.indexOf(l)>=0||(d[l]=t[l]);return d}(t,a);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(t);for(c=0;c<p.length;c++)l=p[c],a.indexOf(l)>=0||Object.prototype.propertyIsEnumerable.call(t,l)&&(d[l]=t[l])}return d}eh.__PosthogExtensions__=eh.__PosthogExtensions__||{},eh.__PosthogExtensions__.loadExternalDependency=(t,a,l)=>{var c="/static/".concat(a,".js")+"?v=".concat(t.version);if("remote-config"===a&&(c="/array/".concat(t.config.token,"/config.js")),"toolbar"===a){var d=3e5*Math.floor(Date.now()/3e5);c="".concat(c,"&t=").concat(d)}var p=t.requestRouter.endpointFor("assets",c);z(t,p,l)},eh.__PosthogExtensions__.loadSiteApp=(t,a,l)=>{var c=t.requestRouter.endpointFor("api",a);z(t,c,l)};var ex={};function Y(t,a,l){if(ew(t)){if(en&&t.forEach===en)t.forEach(a,l);else if("length"in t&&t.length===+t.length){for(var c=0,d=t.length;c<d;c++)if(c in t&&a.call(l,t[c],c)===ex)return}}}function K(t,a,l){if(!A(t)){if(ew(t))return Y(t,a,l);if(L(t)){for(var c of t.entries())if(a.call(l,c[1],c[0])===ex)return}else for(var d in t)if(eb.call(t,d)&&a.call(l,t[d],d)===ex)return}}var X=function(t){for(var a=arguments.length,l=Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];return Y(l,function(a){for(var l in a)void 0!==a[l]&&(t[l]=a[l])}),t},Q=function(t){for(var a=arguments.length,l=Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];return Y(l,function(a){Y(a,function(a){t.push(a)})}),t};function Z(t){for(var a=Object.keys(t),l=a.length,c=Array(l);l--;)c[l]=[a[l],t[a[l]]];return c}var ee=function(t){try{return t()}catch(t){return}},te=function(t){return function(){try{for(var a=arguments.length,l=Array(a),c=0;c<a;c++)l[c]=arguments[c];return t.apply(this,l)}catch(t){ek.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),ek.critical(t)}}},ie=function(t){var a={};return K(t,function(t,l){R(t)&&t.length>0&&(a[l]=t)}),a},eT=["herokuapp.com","vercel.app","netlify.app"];function oe(t,a){for(var l=0;l<t.length;l++)if(a(t[l]))return t[l]}function ae(t,a,l,c){var{capture:d=!1,passive:p=!0}=null!=c?c:{};null==t||t.addEventListener(a,l,{capture:d,passive:p})}var eI="$people_distinct_id",eO="__alias",eR="__timers",eM="$autocapture_disabled_server_side",eP="$heatmaps_enabled_server_side",eA="$exception_capture_enabled_server_side",eF="$web_vitals_enabled_server_side",eD="$dead_clicks_enabled_server_side",eN="$web_vitals_allowed_metrics",eL="$session_recording_enabled_server_side",ej="$console_log_recording_enabled_server_side",e$="$session_recording_network_payload_capture",eB="$session_recording_masking",eH="$session_recording_canvas_recording",eW="$replay_sample_rate",eq="$replay_minimum_duration",eV="$replay_script_config",ez="$sesid",eU="$session_is_sampled",eZ="$session_recording_url_trigger_activated_session",eG="$session_recording_event_trigger_activated_session",eQ="$enabled_feature_flags",eK="$early_access_features",eX="$stored_person_properties",eJ="$stored_group_properties",eY="$surveys",e0="$surveys_activated",e1="$flag_call_reported",e2="$user_state",e3="$client_session_props",e5="$capture_rate_limit",e6="$initial_campaign_params",e8="$initial_referrer_info",e4="$initial_person_info",e9="$epp",e7="__POSTHOG_TOOLBAR__",tr="$posthog_cookieless",tn=[eI,eO,"__cmpns",eR,eL,eP,ez,eQ,e2,eK,eJ,eX,eY,e1,e3,e5,e6,e8,e9];function Ve(t){var a;return t instanceof Element&&(t.id===e7||!(null===(a=t.closest)||void 0===a||!a.call(t,".toolbar-global-fade-container")))}function Ge(t){return!!t&&1===t.nodeType}function Je(t,a){return!!t&&!!t.tagName&&t.tagName.toLowerCase()===a.toLowerCase()}function Ye(t){return!!t&&3===t.nodeType}function Ke(t){return!!t&&11===t.nodeType}function Xe(t){return t?y(t).split(/\s+/):[]}function Qe(t){var a=null==U?void 0:U.location.href;return!!(a&&t&&t.some(t=>a.match(t)))}function Ze(t){var a="";switch(typeof t.className){case"string":a=t.className;break;case"object":a=(t.className&&"baseVal"in t.className?t.className.baseVal:null)||t.getAttribute("class")||"";break;default:a=""}return Xe(a)}function et(t){return A(t)?null:y(t).split(/(\s+)/).filter(t=>pt(t)).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function tt(t){var a="";return ot(t)&&!at(t)&&t.childNodes&&t.childNodes.length&&K(t.childNodes,function(t){var l;Ye(t)&&t.textContent&&(a+=null!==(l=et(t.textContent))&&void 0!==l?l:"")}
55),y(a)}function it(t){var a;return F(t.target)?t.srcElement||null:null!==(a=t.target)&&void 0!==a&&a.shadowRoot?t.composedPath()[0]||null:t.target||null}var to=["a","button","form","input","select","textarea","label"];function rt(t){var a=t.parentNode;return!(!a||!Ge(a))&&a}function ot(t){for(var a=t;a.parentNode&&!Je(a,"body");a=a.parentNode){var l=Ze(a);if(m(l,"ph-sensitive")||m(l,"ph-no-capture"))return!1}if(m(Ze(t),"ph-include"))return!0;var c=t.type||"";if(R(c))switch(c.toLowerCase()){case"hidden":case"password":return!1}var d=t.name||t.id||"";return!(R(d)&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(d.replace(/[^a-zA-Z0-9]/g,"")))}function at(t){return!!(Je(t,"input")&&!["button","checkbox","submit","reset"].includes(t.type)||Je(t,"select")||Je(t,"textarea")||"true"===t.getAttribute("contenteditable"))}var ta="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",ts=new RegExp("^(?:".concat(ta,")$")),tl=new RegExp(ta),tc="\\d{3}-?\\d{2}-?\\d{4}",tu=new RegExp("^(".concat(tc,")$")),td=new RegExp("(".concat(tc,")"));function pt(t){var a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!(A(t)||R(t)&&(t=y(t),(a?ts:tl).test((t||"").replace(/[- ]/g,""))||(a?tu:td).test(t)))}function gt(t){var a=tt(t);return pt(a="".concat(a," ").concat(function vt(t){var a="";return t&&t.childNodes&&t.childNodes.length&&K(t.childNodes,function(t){var l;if(t&&"span"===(null===(l=t.tagName)||void 0===l?void 0:l.toLowerCase()))try{var c=tt(t);a="".concat(a," ").concat(c).trim(),t.childNodes&&t.childNodes.length&&(a="".concat(a," ").concat(vt(t)).trim())}catch(t){ek.error("[AutoCapture]",t)}}),a}(t)).trim())?a:""}function mt(t){return t.replace(/"|\\"/g,'\\"')}let bt=class bt{constructor(){this.clicks=[]}isRageClick(t,a,l){var c=this.clicks[this.clicks.length-1];if(c&&Math.abs(t-c.x)+Math.abs(a-c.y)<30&&l-c.timestamp<1e3){if(this.clicks.push({x:t,y:a,timestamp:l}),3===this.clicks.length)return!0}else this.clicks=[{x:t,y:a,timestamp:l}];return!1}};var tp=["localhost","127.0.0.1"],St=t=>{var a=null==el?void 0:el.createElement("a");return F(a)?null:(a.href=t,a)},kt=function(t){var a,l,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"&",d=[];return K(t,function(t,c){F(t)||F(c)||"undefined"===c||(a=encodeURIComponent(t instanceof File?t.name:t.toString()),l=encodeURIComponent(c),d[d.length]=l+"="+a)}),d.join(c)},Et=function(t,a){for(var l,c=((t.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),d=0;d<c.length;d++){var p=c[d].split("=");if(p[0]===a){l=p;break}}if(!ew(l)||l.length<2)return"";var f=l[1];try{f=decodeURIComponent(f)}catch(t){ek.error("Skipping decoding for malformed query param: "+f)}return f.replace(/\+/g," ")},xt=function(t,a,l){if(!t||!a||!a.length)return t;for(var c=t.split("#"),d=c[0]||"",p=c[1],f=d.split("?"),h=f[1],g=f[0],_=(h||"").split("&"),S=[],w=0;w<_.length;w++){var k=_[w].split("=");ew(k)&&(a.includes(k[0])?S.push(k[0]+"="+l):S.push(_[w]))}var E=g;return null!=h&&(E+="?"+S.join("&")),null!=p&&(E+="#"+p),E},It=function(t,a){var l=t.match(RegExp(a+"=([^&]*)"));return l?l[1]:null},tf=eE("[AutoCapture]");function Ct(t,a){return a.length>t?a.slice(0,t)+"...":a}let $t=class $t{constructor(t){V(this,"_initialized",!1),V(this,"_isDisabledServerSide",null),V(this,"rageclicks",new bt),V(this,"_elementsChainAsString",!1),this.instance=t,this._elementSelectors=null}get config(){var t,a,l=P(this.instance.config.autocapture)?this.instance.config.autocapture:{};return l.url_allowlist=null===(t=l.url_allowlist)||void 0===t?void 0:t.map(t=>new RegExp(t)),l.url_ignorelist=null===(a=l.url_ignorelist)||void 0===a?void 0:a.map(t=>new RegExp(t)),l}_addDomEventHandlers(){if(this.isBrowserSupported()){if(U&&el){var e=t=>{t=t||(null==U?void 0:U.event);try{this._captureEvent(t)}catch(t){tf.error("Failed to capture event",t)}};if(ae(el,"submit",e,{capture:!0}),ae(el,"change",e,{capture:!0}),ae(el,"click",e,{capture:!0}),this.config.capture_copied_text){var i=t=>{t=t||(null==U?void 0:U.event),this._captureEvent(t,em)};ae(el,"copy",i,{capture:!0}),ae(el,"cut",i,{capture:!0})}}}else tf.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this._initialized&&(this._addDomEventHandlers(),this._initialized=!0)}
55onRemoteConfig(t){t.elementsChainAsString&&(this._elementsChainAsString=t.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[eM]:!!t.autocapture_opt_out}),this._isDisabledServerSide=!!t.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(t){this._elementSelectors=t}getElementSelectors(t){var a,l=[];return null===(a=this._elementSelectors)||void 0===a||a.forEach(a=>{var c=null==el?void 0:el.querySelectorAll(a);null==c||c.forEach(c=>{t===c&&l.push(a)})}),l}get isEnabled(){var t,a,l=null===(t=this.instance.persistence)||void 0===t?void 0:t.props[eM];if($(this._isDisabledServerSide)&&!M(l)&&!this.instance.config.advanced_disable_decide)return!1;var c=null!==(a=this._isDisabledServerSide)&&void 0!==a?a:!!l;return!!this.instance.config.autocapture&&!c}_captureEvent(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$autocapture";if(this.isEnabled){var l,c=it(t);Ye(c)&&(c=c.parentNode||null),"$autocapture"===a&&"click"===t.type&&t instanceof MouseEvent&&this.instance.config.rageclick&&null!==(l=this.rageclicks)&&void 0!==l&&l.isRageClick(t.clientX,t.clientY,(new Date).getTime())&&this._captureEvent(t,"$rageclick");var d=a===em;if(c&&function(t,a){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,c=arguments.length>3?arguments[3]:void 0,d=arguments.length>4?arguments[4]:void 0;if(!U||!t||Je(t,"html")||!Ge(t)||null!=l&&l.url_allowlist&&!Qe(l.url_allowlist)||null!=l&&l.url_ignorelist&&Qe(l.url_ignorelist))return!1;if(null!=l&&l.dom_event_allowlist){var p=l.dom_event_allowlist;if(p&&!p.some(t=>a.type===t))return!1}for(var f=!1,h=[t],g=!0,_=t;_.parentNode&&!Je(_,"body");)if(Ke(_.parentNode))h.push(_.parentNode.host),_=_.parentNode.host;else{if(!(g=rt(_)))break;if(c||to.indexOf(g.tagName.toLowerCase())>-1)f=!0;else{var S=U.getComputedStyle(g);S&&"pointer"===S.getPropertyValue("cursor")&&(f=!0)}h.push(g),_=g}if(!function(t,a){var l=null==a?void 0:a.element_allowlist;if(F(l))return!0;var s=function(t){if(l.some(a=>t.tagName.toLowerCase()===a))return{v:!0}};for(var c of t){var d=s(c);if("object"==typeof d)return d.v}return!1}(h,l)||!function(t,a){var l=null==a?void 0:a.css_selector_allowlist;if(F(l))return!0;var s=function(t){if(l.some(a=>t.matches(a)))return{v:!0}};for(var c of t){var d=s(c);if("object"==typeof d)return d.v}return!1}(h,l))return!1;var w=U.getComputedStyle(t);if(w&&"pointer"===w.getPropertyValue("cursor")&&"click"===a.type)return!0;var k=t.tagName.toLowerCase();switch(k){case"html":return!1;case"form":return(d||["submit"]).indexOf(a.type)>=0;case"input":case"select":case"textarea":return(d||["change","click"]).indexOf(a.type)>=0;default:return f?(d||["click"]).indexOf(a.type)>=0:(d||["click"]).indexOf(a.type)>=0&&(to.indexOf(k)>-1||"true"===t.getAttribute("contenteditable"))}}(c,t,this.config,d,d?["copy","cut"]:void 0)){var{props:p,explicitNoCapture:f}=function(t,a){for(var l,c,{e:d,maskAllElementAttributes:p,maskAllText:f,elementAttributeIgnoreList:h,elementsChainAsString:g}=a,_=[t],S=t;S.parentNode&&!Je(S,"body");)Ke(S.parentNode)?(_.push(S.parentNode.host),S=S.parentNode.host):(_.push(S.parentNode),S=S.parentNode);var w,k=[],E={},x=!1,B=!1;if(K(_,t=>{var a=ot(t);"a"===t.tagName.toLowerCase()&&(x=t.getAttribute("href"),x=a&&x&&pt(x)&&x),m(Ze(t),"ph-no-capture")&&(B=!0),k.push(function(t,a,l,c){var d=t.tagName.toLowerCase(),p={tag_name:d};to.indexOf(d)>-1&&!l&&("a"===d.toLowerCase()||"button"===d.toLowerCase()?p.$el_text=Ct(1024,gt(t)):p.$el_text=Ct(1024,tt(t)));var f=Ze(t);f.length>0&&(p.classes=f.filter(function(t){return""!==t})),K(t.attributes,function(l){var d;if((!at(t)||-1!==["name","id","class","aria-label"].indexOf(l.name))&&(null==c||!c.includes(l.name))&&!a&&pt(l.value)&&(!R(d=l.name)||"_ngcontent"!==d.substring(0,10)&&"_nghost"!==d.substring(0,7))){var f=l.value;"class"===l.name&&(f=Xe(f).join(" ")),p["attr__"+l.name]=Ct(1024,f)}});for(var h=1,g=1,_=t;_=function(t){if(t.previousElementSibling)return t.previousElementSibling;var a=t;do a=a.previousSibling;while(a&&!Ge(a));return a}(_);)h++,_.tagName===t.tagName&&g++;return p.nth_child=h,p.nth_of_type=g,p}(t,p,f,h)),X(E,function(t){if(!ot(t))return{};var a={};return K(t.attributes,function(t){if(t.name&&0===t.name.indexOf("data-ph-capture-attribute")){var l=t.name.replace("data-ph-capture-attribute-",""),c=t.value;l&&c&&pt(c)&&(a[l]=c)}}),a}(t))}),B)return{props:{},explicitNoCapture:B};if(f||("a"===t.tagName.toLowerCase()||"button"===t.tagName.toLowerCase()?k[0].$el_text=gt(t):k[0].$el_text=tt(t)),x){k[0].attr__href=x;var H,J,er=null===(H=St(x))||void 0===H?void 0:H.host,en=null==U||null===(J=U.location)||void 0===J?void 0:J.host;er&&en&&er!==en&&(w=x)}return{props:X({$event_type:d.type,$ce_version:1},g?{}:{$elements:k},{$elements_chain:k.map(t=>{var a,l,c,d={text:null===(l=t.$el_text)||void 0===l?void 0:l.slice(0,400),tag_name:t.tag_name,href:null===(c=t.attr__href)||void 0===c?void 0:c.slice(0,2048),attr_class:(a=t.attr__class)?ew(a)?a:Xe(a):void 0,attr_id:t.attr__id,nth_child:t.nth_child,nth_of_type:t.nth_of_type,attributes:{}};return Z(t).filter(t=>{var[a]=t;return 0===a.indexOf("attr__")}
55).forEach(t=>{var[a,l]=t;return d.attributes[a]=l}),d}).map(t=>{var a,l,c="";if(t.tag_name&&(c+=t.tag_name),t.attr_class)for(var d of(t.attr_class.sort(),t.attr_class))c+=".".concat(d.replace(/"/g,""));var p=W(W(W(W({},t.text?{text:t.text}:{}),{},{"nth-child":null!==(a=t.nth_child)&&void 0!==a?a:0,"nth-of-type":null!==(l=t.nth_of_type)&&void 0!==l?l:0},t.href?{href:t.href}:{}),t.attr_id?{attr_id:t.attr_id}:{}),t.attributes),f={};return Z(p).sort((t,a)=>{var[l]=t,[c]=a;return l.localeCompare(c)}).forEach(t=>{var[a,l]=t;return f[mt(a.toString())]=mt(l.toString())}),c+=":"+Z(p).map(t=>{var[a,l]=t;return"".concat(a,'="').concat(l,'"')}).join("")}).join(";")},null!==(l=k[0])&&void 0!==l&&l.$el_text?{$el_text:null===(c=k[0])||void 0===c?void 0:c.$el_text}:{},w&&"click"===d.type?{$external_click_url:w}:{},E)}}(c,{e:t,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.config.element_attribute_ignorelist,elementsChainAsString:this._elementsC
55hainAsString});if(f)return!1;var h=this.getElementSelectors(c);if(h&&h.length>0&&(p.$element_selectors=h),a===em){var g,_=et(null==U||null===(g=U.getSelection())||void 0===g?void 0:g.toString()),S=t.type||"clipboard";if(!_)return!1;p.$selected_content=_,p.$copy_type=S}return this.instance.capture(a,p),!0}}}isBrowserSupported(){return I(null==el?void 0:el.querySelectorAll)}};Math.trunc||(Math.trunc=function(t){return t<0?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return O(t)&&isFinite(t)&&Math.floor(t)===t});var th="0123456789abcdef";let Ot=class Ot{constructor(t){if(this.bytes=t,16!==t.length)throw TypeError("not 128-bit length")}static fromFieldsV7(t,a,l,c){if(!Number.isInteger(t)||!Number.isInteger(a)||!Number.isInteger(l)||!Number.isInteger(c)||t<0||a<0||l<0||c<0||t>0xffffffffffff||a>4095||l>1073741823||c>4294967295)throw RangeError("invalid field value");var d=new Uint8Array(16);return d[0]=t/1099511627776,d[1]=t/4294967296,d[2]=t/16777216,d[3]=t/65536,d[4]=t/256,d[5]=t,d[6]=112|a>>>8,d[7]=a,d[8]=128|l>>>24,d[9]=l>>>16,d[10]=l>>>8,d[11]=l,d[12]=c>>>24,d[13]=c>>>16,d[14]=c>>>8,d[15]=c,new Ot(d)}toString(){for(var t="",a=0;a<this.bytes.length;a++)t=t+th.charAt(this.bytes[a]>>>4)+th.charAt(15&this.bytes[a]),3!==a&&5!==a&&7!==a&&9!==a||(t+="-");if(36!==t.length)throw Error("Invalid UUIDv7 was generated");return t}clone(){return new Ot(this.bytes.slice(0))}equals(t){return 0===this.compareTo(t)}compareTo(t){for(var a=0;a<16;a++){var l=this.bytes[a]-t.bytes[a];if(0!==l)return Math.sign(l)}return 0}};let Mt=class Mt{constructor(){V(this,"timestamp",0),V(this,"counter",0),V(this,"random",new qt)}generate(){var t=this.generateOrAbort();if(F(t)){this.timestamp=0;var a=this.generateOrAbort();if(F(a))throw Error("Could not generate UUID after timestamp reset");return a}return t}generateOrAbort(){var t=Date.now();if(t>this.timestamp)this.timestamp=t,this.resetCounter();else{if(!(t+1e4>this.timestamp))return;this.counter++,this.counter>4398046511103&&(this.timestamp++,this.resetCounter())}return Ot.fromFieldsV7(this.timestamp,Math.trunc(this.counter/1073741824),1073741823&this.counter,this.random.nextUint32())}resetCounter(){this.counter=1024*this.random.nextUint32()+(1023&this.random.nextUint32())}};var tg,tm,Dt=t=>{if("undefined"!=typeof UUIDV7_DENY_WEAK_RNG&&UUIDV7_DENY_WEAK_RNG)throw Error("no cryptographically strong RNG available");for(var a=0;a<t.length;a++)t[a]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return t};U&&!F(U.crypto)&&crypto.getRandomValues&&(Dt=t=>crypto.getRandomValues(t));let qt=class qt{constructor(){V(this,"buffer",new Uint32Array(8)),V(this,"cursor",1/0)}nextUint32(){return this.cursor>=this.buffer.length&&(Dt(this.buffer),this.cursor=0),this.buffer[this.cursor++]}};var tv,Nt=()=>Bt().toString(),Bt=()=>(tm||(tm=new Mt)).generate(),ty="",t_=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,tb={is_supported:()=>!!el,error:function(t){ek.error("cookieStore error: "+t)},get:function(t){if(el){try{for(var a=t+"=",l=el.cookie.split(";").filter(t=>t.length),c=0;c<l.length;c++){for(var d=l[c];" "==d.charAt(0);)d=d.substring(1,d.length);if(0===d.indexOf(a))return decodeURIComponent(d.substring(a.length,d.length))}}catch(t){}return null}},parse:function(t){var a;try{a=JSON.parse(tb.get(t))||{}}catch(t){}return a}
55,set:function(t,a,l,c,d){if(el)try{var p="",f="",h=function(t,a){if(a){var l=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:el;if(ty)return ty;if(!a||["localhost","127.0.0.1"].includes(t))return"";for(var l=t.split("."),c=Math.min(l.length,8),d="dmn_chk_"+Nt(),p=RegExp("(^|;)\\s*"+d+"=1");!ty&&c--;){var f=l.slice(c).join("."),h=d+"=1;domain=."+f;a.cookie=h,p.test(a.cookie)&&(a.cookie=h+";expires=Thu, 01 Jan 1970 00:00:00 GMT",ty=f)}return ty}(t);if(!l){var c,d=(c=t.match(t_))?c[0]:"";d!==l&&ek.info("Warning: cookie subdomain discovery mismatch",d,l),l=d}return l?"; domain=."+l:""}return""}(el.location.hostname,c);if(l){var g=new Date;g.setTime(g.getTime()+24*l*36e5),p="; expires="+g.toUTCString()}d&&(f="; secure");var _=t+"="+encodeURIComponent(JSON.stringify(a))+p+"; SameSite=Lax; path=/"+h+f;return _.length>3686.4&&ek.warn("cookieStore warning: large cookie, len="+_.length),el.cookie=_,_}catch(t){return}},remove:function(t,a){try{tb.set(t,"",-1,a)}catch(t){return}}},tS=null,tw={is_supported:function(){if(!$(tS))return tS;var t=!0;if(F(U))t=!1;else try{var a="__mplssupport__";tw.set(a,"xyz"),'"xyz"'!==tw.get(a)&&(t=!1),tw.remove(a)}catch(a){t=!1}return t||ek.error("localStorage unsupported; falling back to cookie store"),tS=t,t},error:function(t){ek.error("localStorage error: "+t)},get:function(t){try{return null==U?void 0:U.localStorage.getItem(t)}catch(t){tw.error(t)}return null},parse:function(t){try{return JSON.parse(tw.get(t))||{}}catch(t){}return null},set:function(t,a){try{null==U||U.localStorage.setItem(t,JSON.stringify(a))}catch(t){tw.error(t)}},remove:function(t){try{null==U||U.localStorage.removeItem(t)}catch(t){tw.error(t)}}},tk=["distinct_id",ez,eU,e9,e4],tE=W(W({},tw),{},{parse:function(t){try{var a={};try{a=tb.parse(t)||{}}catch(t){}var l=X(a,JSON.parse(tw.get(t)||"{}"));return tw.set(t,l),l}catch(t){}return null},set:function(t,a,l,c,d,p){try{tw.set(t,a,void 0,void 0,p);var f={};tk.forEach(t=>{a[t]&&(f[t]=a[t])}),Object.keys(f).length&&tb.set(t,f,l,c,d,p)}catch(t){tw.error(t)}},remove:function(t,a){try{null==U||U.localStorage.removeItem(t),tb.remove(t,a)}catch(t){tw.error(t)}}}),tC={},tx={is_supported:function(){return!0},error:function(t){ek.error("memoryStorage error: "+t)},get:function(t){return tC[t]||null},parse:function(t){return tC[t]||null},set:function(t,a){tC[t]=a},remove:function(t){delete tC[t]}},tT=null,tI={is_supported:function(){if(!$(tT))return tT;if(tT=!0,F(U))tT=!1;else try{var t="__support__";tI.set(t,"xyz"),'"xyz"'!==tI.get(t)&&(tT=!1),tI.remove(t)}catch(t){tT=!1}return tT},error:function(t){ek.error("sessionStorage error: ",t)},get:function(t){try{return null==U?void 0:U.sessionStorage.getItem(t)}catch(t){tI.error(t)}return null},parse:function(t){try{return JSON.parse(tI.get(t))||null}catch(t){}return null},set:function(t,a){try{null==U||U.sessionStorage.setItem(t,JSON.stringify(a))}catch(t){tI.error(t)}},remove:function(t){try{null==U||U.sessionStorage.removeItem(t)}catch(t){tI.error(t)}}};(t7=tv||(tv={}))[t7.PENDING=-1]="PENDING",t7[t7.DENIED=0]="DENIED",t7[t7.GRANTED=1]="GRANTED";let ti=class ti{constructor(t){this.instance=t}get config(){return this.instance.config}get consent(){return this.getDnt()?tv.DENIED:this.storedConsent}isOptedOut(){return this.consent===tv.DENIED||this.consent===tv.PENDING&&this.config.opt_out_capturing_by_default}isOptedIn(){return!this.isOptedOut()}optInOut(t){this.storage.set(this.storageKey,t?1:0,this.config.cookie_expiration,this.config.cross_subdomain_cookie,this.config.secure_cookie)}reset(){this.storage.remove(this.storageKey,this.config.cross_subdomain_cookie)}get storageKey(){var{token:t,opt_out_capturing_cookie_prefix:a}=this.instance.config;return(a||"__ph_opt_in_out_")+t}get storedConsent(){var t=this.storage.get(this.storageKey);return"1"===t?tv.GRANTED:"0"===t?tv.DENIED:tv.PENDING}get storage(){if(!this._storage){var t=this.config.opt_out_capturing_persistence_type;this._storage="localStorage"===t?tw:tb;var a="localStorage"===t?tb:tw;a.get(this.storageKey)&&(this._storage.get(this.storageKey)||this.optInOut("1"===a.get(this.storageKey)),a.remove(this.storageKey,this.config.cross_subdomain_cookie))}return this._storage}getDnt(){return!!this.config.respect_dnt&&!!oe([null==ea?void 0:ea.doNotTrack,null==ea?void 0:ea.msDoNotTrack,eh.doNotTrack],t=>m([!0,1,"1","yes"],t))}};var tO=eE("[Dead Clicks]"),si=()=>!0,ri=t=>{var a,l=!(null===(a=t.instance.persistence)||void 0===a||!a.get_property(eD)),c=t.instance.config.capture_dead_clicks;return M(c)?c:l};let ni=class ni{get lazyLoadedDeadClicksAutocapture(){return this._lazyLoadedDeadClicksAutocapture}constructor(t,a,l){this.instance=t,this.isEnabled=a,this.onCapture=l,this.startIfEnabled()}onRemoteConfig(t){this.instance.persistence&&this.instance.persistence.register({[eD]:null==t?void 0:t.captureDeadClicks}),this.startIfEnabled()}startIfEnabled(){this.isEnabled(this)&&this.loadScript(()=>{this.start()})}loadScript(t){var a,l,c;null!==(a=eh.__PosthogExtensions__)&&void 0!==a&&a.initDeadClicksAutocapture&&t(),null===(l=eh.__PosthogExtensions__)||void 0===l||null===(c=l.loadExternalDependency)||void 0===c||c.call(l,this.instance,"dead-clicks-autocapture",a=>{a?tO.error("failed to load script",a):t()})}start(){var t;if(el){if(!this._lazyLoadedDeadClicksAutocapture&&null!==(t=eh.__PosthogExtensions__)&&void 0!==t&&t.initDeadClicksAutocapture){var a=P(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};a.__onCapture=this.onCapture,this._lazyLoadedDeadClicksAutocapture=eh.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,a),this._lazyLoadedDeadClicksAutocapture.start(el),tO.info("starting...")}}else tO.error("`document` not found. Cannot start.")}stop(){this._lazyLoadedDeadClicksAutocapture&&(this._lazyLoadedDeadClicksAutocapture.stop(),this._lazyLoadedDeadClicksAutocapture=void 0,tO.info("stopping..."))}};var tR=eE("[ExceptionAutocapture]");let ai=class ai{constructor(t){var a;V(this,"startCapturing",()=>{var t,a,l,c;if(U&&this.isEnabled&&!this.hasHandlers){var d=null===(t=eh.__PosthogExtensions__)||void 0===t||null===(a=t.errorWrappingFunctions)||void 0===a?void 0:a.wrapOnError,p=null===(l=eh.__PosthogExtensions__)||void 0===l||null===(c=l.errorWrappingFunctions)||void 0===c?void 0:c.wrapUnhandledRejection;if(d&&p)try{this.unwrapOnError=d(this.captureException.bind(this)),this.unwrapUnhandledRejection=p(this.captureException.bind(this))}catch(t){tR.error("failed to start",t),this.stopCapturing()}else tR.error("failed to load error wrapping functions - cannot start")}}),this.instance=t,this.remoteEnabled=!(null===(a=this.instance.persistence)||void 0===a||!a.props[eA]),this.startIfEnabled()}get isEnabled(){var t;return M(this.instance.config.capture_exceptions)?this.instance.config.capture_exceptions:null!==(t=this.remoteEnabled)&&void 0!==t&&t}get hasHandlers(){return!F(this.unwrapOnError)}startIfEnabled(){this.isEnabled&&!this.hasHandlers&&(tR.info("enabled, starting..."),this.loadScript(this.startCapturing))}loadScript(t){var a,l;this.hasHandlers&&t(),null===(a=eh.__PosthogExtensions__)||void 0===a||null===(l=a.loadExternalDependency)||void 0===l||l.call(a,this.instance,"exception-autocapture",a=>{if(a)return tR.error("failed to load script",a);t()})}stopCapturing(){var t,a;null===(t=this.unwrapOnError)||void 0===t||t.call(this),this.unwrapOnError=void 0,null===(a=this.unwrapUnhandledRejection)||void 0===a||a.call(this),this.unwrapUnhandledRejection=void 0}onRemoteConfig(t){var a=t.autocaptureExceptions;this.remoteEnabled=!!a,this.instance.persistence&&this.instance.persistence.register({[eA]:this.remoteEnabled}),this.startIfEnabled()}captureException(t){var a=this.instance.requestRouter.endpointFor("ui");t.$exception_personURL="".concat(a,"/project/").concat(this.instance.config.token,"/person/").concat(this.instance.get_distinct_id()),this.instance.exceptions.sendExceptionEvent(t)}};function li(t){var a,l;return(null===(a=JSON.stringify(t,(l=[],function(t,a){if(P(a)){for(;l.length>0&&l[l.length-1]!==this;)l.pop();return l.includes(a)?"[Circular]":(l.push(a),a)}return a})))||void 0===a?void 0:a.length)||0}var tM=((re=tM||{})[re.DomContentLoaded=0]="DomContentLoaded",re[re.Load=1]="Load",re[re.FullSnapshot=2]="FullSnapshot",re[re.IncrementalSnapshot=3]="IncrementalSnapshot",re[re.Meta=4]="Meta",re[re.Custom=5]="Custom",re[re.Plugin=6]="Plugin",re),tP=((rr=tP||{})[rr.Mutation=0]="Mutation",rr[rr.MouseMove=1]="MouseMove",rr[rr.MouseInteraction=2]="MouseInteraction",rr[rr.Scroll=3]="Scroll",rr[rr.ViewportResize=4]="ViewportResize",rr[rr.Input=5]="Input",rr[rr.TouchMove=6]="TouchMove",rr[rr.MediaInteraction=7]="MediaInteraction",rr[rr.StyleSheetRule=8]="StyleSheetRule",rr[rr.CanvasMutation=9]="CanvasMutation",rr[rr.Font=10]="Font",rr[rr.Log=11]="Log",rr[rr.Drag=12]="Drag",rr[rr.StyleDeclaration=13]="StyleDeclaration",rr[rr.Selection=14]="Selection",rr[rr.AdoptedStyleSheet=15]="AdoptedStyleSheet",rr[rr.CustomElement=16]="CustomElement",rr),tA="[SessionRecording]",tF="redacted",tD={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],maskRequestFn:t=>t,recordHeaders:!1,recordBody:!1,recordInitialRequests:!1,recordPerformance:!1,performanceEntryTypeToObserve:["first-input","navigation","paint","resource"],payloadSizeLimitBytes:1e6,payloadHostDenyList:[".lr-ingest.io",".ingest.sentry.io",".clarity.ms","analytics.google.com"]},tN=["authorization","x-forwarded-for","authorization","cookie","set-cookie","x-api-key","x-real-ip","remote-addr","forwarded","proxy-authorization","x-csrf-token","x-csrftoken","x-xsrf-token"],tL=["password","secret","passwd","api_key","apikey","auth","credentials","mysql_pwd","privatekey","private_key","token"],tj=["/s/","/e/","/i/"];function mi(t,a,l,c){if(A(t))return t;var d=(null==a?void 0:a["content-length"])||new Blob([t]).size;return R(d)&&(d=parseInt(d)),d>l?tA+" ".concat(c," body too large to record (").concat(d," bytes)"):t}function yi(t,a){if(A(t))return t;var l=t;
55return pt(l,!1)||(l=tA+" "+a+" body "+tF),K(tL,t=>{var c,d;null!==(c=l)&&void 0!==c&&c.length&&-1!==(null===(d=l)||void 0===d?void 0:d.indexOf(t))&&(l=tA+" "+a+" body "+tF+" as might contain: "+t)}),l}var bi=(t,a)=>{var l,c,d={payloadSizeLimitBytes:tD.payloadSizeLimitBytes,performanceEntryTypeToObserve:[...tD.performanceEntryTypeToObserve],payloadHostDenyList:[...a.payloadHostDenyList||[],...tD.payloadHostDenyList]},p=!1!==t.session_recording.recordHeaders&&a.recordHeaders,f=!1!==t.session_recording.recordBody&&a.recordBody,h=!1!==t.capture_performance&&a.recordPerformance,g=(c=Math.min(1e6,null!==(l=d.payloadSizeLimitBytes)&&void 0!==l?l:1e6),t=>(null!=t&&t.requestBody&&(t.requestBody=mi(t.requestBody,t.requestHeaders,c,"Request")),null!=t&&t.responseBody&&(t.responseBody=mi(t.responseBody,t.responseHeaders,c,"Response")),t)),u=a=>{var l;return g(((t,a)=>{var l,c=St(t.name),d=0===a.indexOf("http")?null===(l=St(a))||void 0===l?void 0:l.pathname:a;"/"===d&&(d="");var p=null==c?void 0:c.pathname.replace(d||"","");if(!(c&&p&&tj.some(t=>0===p.indexOf(t))))return t})((A(l=a.requestHeaders)||K(Object.keys(null!=l?l:{}),t=>{tN.includes(t.toLowerCase())&&(l[t]=tF)}),a),t.api_host))},_=I(t.session_recording.maskNetworkRequestFn);return _&&I(t.session_recording.maskCapturedNetworkRequestFn)&&ek.warn("Both `maskNetworkRequestFn` and `maskCapturedNetworkRequestFn` are defined. `maskNetworkRequestFn` will be ignored."),_&&(t.session_recording.maskCapturedNetworkRequestFn=a=>{var l=t.session_recording.maskNetworkRequestFn({url:a.name});return W(W({},a),{},{name:null==l?void 0:l.url})}),d.maskRequestFn=I(t.session_recording.maskCapturedNetworkRequestFn)?a=>{var l,c,d,p=u(a);return p&&null!==(l=null===(c=(d=t.session_recording).maskCapturedNetworkRequestFn)||void 0===c?void 0:c.call(d,p))&&void 0!==l?l:void 0}:t=>(function(t){if(!F(t))return t.requestBody=yi(t.requestBody,"Request"),t.responseBody=yi(t.responseBody,"Response"),t})(u(t)),W(W(W({},tD),d),{},{recordHeaders:p,recordBody:f,recordPerformance:h,recordInitialRequests:h})};function wi(t,a,l,c,d){return a>l&&(ek.warn("min cannot be greater than max."),a=l),O(t)?t>l?(c&&ek.warn(c+" cannot be  greater than max: "+l+". Using max value instead."),l):t<a?(c&&ek.warn(c+" cannot be less than min: "+a+". Using min value instead."),a):t:(c&&ek.warn(c+" must be a number. using max or fallback. max: "+l+", fallback: "+d),wi(d||l,a,l,c))}let Si=class Si{constructor(t){var a,l,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};V(this,"bucketSize",100),V(this,"refillRate",10),V(this,"mutationBuckets",{}),V(this,"loggedTracker",{}),V(this,"refillBuckets",()=>{Object.keys(this.mutationBuckets).forEach(t=>{this.mutationBuckets[t]=this.mutationBuckets[t]+this.refillRate,this.mutationBuckets[t]>=this.bucketSize&&delete this.mutationBuckets[t]})}),V(this,"getNodeOrRelevantParent",t=>{var a=this.rrweb.mirror.getNode(t);if("svg"!==(null==a?void 0:a.nodeName)&&a instanceof Element){var l=a.closest("svg");if(l)return[this.rrweb.mirror.getId(l),l]}return[t,a]}),V(this,"numberOfChanges",t=>{var a,l,c,d,p,f,h,g;return(null!==(a=null===(l=t.removes)||void 0===l?void 0:l.length)&&void 0!==a?a:0)+(null!==(c=null===(d=t.attributes)||void 0===d?void 0:d.length)&&void 0!==c?c:0)+(null!==(p=null===(f=t.texts)||void 0===f?void 0:f.length)&&void 0!==p?p:0)+(null!==(h=null===(g=t.adds)||void 0===g?void 0:g.length)&&void 0!==h?h:0)}),V(this,"throttleMutations",t=>{if(3!==t.type||0!==t.data.source)return t;var a=t.data,l=this.numberOfChanges(a);a.attributes&&(a.attributes=a.attributes.filter(t=>{var a,l,c,[d,p]=this.getNodeOrRelevantParent(t.id);return 0!==this.mutationBuckets[d]&&(this.mutationBuckets[d]=null!==(a=this.mutationBuckets[d])&&void 0!==a?a:this.bucketSize,this.mutationBuckets[d]=Math.max(this.mutationBuckets[d]-1,0),0===this.mutationBuckets[d]&&(this.loggedTracker[d]||(this.loggedTracker[d]=!0,null===(l=(c=this.options).onBlockedNode)||void 0===l||l.call(c,d,p))),t)}));var c=this.numberOfChanges(a);return 0!==c||l===c?t:void 0}),this.rrweb=t,this.options=c,this.refillRate=wi(null!==(a=this.options.refillRate)&&void 0!==a?a:this.refillRate,0,100,"mutation throttling refill rate"),this.bucketSize=wi(null!==(l=this.options.bucketSize)&&void 0!==l?l:this.bucketSize,0,100,"mutation throttling bucket size"),setInterval(()=>{this.refillBuckets()},1e3)}};var t$=Uint8Array,tB=Uint16Array,tH=Uint32Array,tW=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]),tq=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]),tV=new t$([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Fi=function(t,a){for(var l=new tB(31),c=0;c<31;++c)l[c]=a+=1<<t[c-1];var d=new tH(l[30]);for(c=1;c<30;++c)for(var p=l[c];p<l[c+1];++p)d[p]=p-l[c]<<5|c;return[l,d]},tz=Fi(tW,2),tU=tz[0],tZ=tz[1];tU[28]=258,tZ[258]=28;for(var tG=Fi(tq,0)[1],tQ=new tB(32768),tK=0;tK<32768;++tK){var tX=(43690&tK)>>>1|(21845&tK)<<1;tX=(61680&(tX=(52428&tX)>>>2|(13107&tX)<<2))>>>4|(3855&tX)<<4,tQ[tK]=((65280&tX)>>>8|(255&tX)<<8)>>>1}var Di=function(t,a,l){for(var c=t.length,d=0,p=new tB(a);d<c;++d)++p[t[d]-1];var f,h=new tB(a);for(d=0;d<a;++d)h[d]=h[d-1]+p[d-1]<<1;if(l){f=new tB(1<<a);var g=15-a;for(d=0;d<c;++d)if(t[d])for(var _=d<<4|t[d],S=a-t[d],w=h[t[d]-1]++<<S,k=w|(1<<S)-1;w<=k;++w)f[tQ[w]>>>g]=_}else for(f=new tB(c),d=0;d<c;++d)f[d]=tQ[h[t[d]-1]++]>>>15-t[d];return f},tJ=new t$(288);for(tK=0;tK<144;++tK)tJ[tK]=8;for(tK=144;tK<256;++tK)tJ[tK]=9;for(tK=256;tK<280;++tK)tJ[tK]=7;for(tK=280;tK<288;++tK)tJ[tK]=8;var tY=new t$(32);for(tK=0;tK<32;++tK)tY[tK]=5;var t0=Di(tJ,9,0),t1=Di(tY,5,0),Ui=function(t){return(t/8>>
550)+(7&t&&1)},zi=function(t,a,l){(null==l||l>t.length)&&(l=t.length);var c=new(t instanceof tB?tB:t instanceof tH?tH:t$)(l-a);return c.set(t.subarray(a,l)),c},ji=function(t,a,l){l<<=7&a;var c=a/8>>0;t[c]|=l,t[c+1]|=l>>>8},Wi=function(t,a,l){l<<=7&a;var c=a/8>>0;t[c]|=l,t[c+1]|=l>>>8,t[c+2]|=l>>>16},Vi=function(t,a){for(var l=[],c=0;c<t.length;++c)t[c]&&l.push({s:c,f:t[c]});var d=l.length,p=l.slice();if(!d)return[new t$(0),0];if(1==d){var f=new t$(l[0].s+1);return f[l[0].s]=1,[f,1]}l.sort(function(t,a){return t.f-a.f}),l.push({s:-1,f:25001});var h=l[0],g=l[1],_=0,S=1,w=2;for(l[0]={s:-1,f:h.f+g.f,l:h,r:g};S!=d-1;)h=l[l[_].f<l[w].f?_++:w++],g=l[_!=S&&l[_].f<l[w].f?_++:w++],l[S++]={s:-1,f:h.f+g.f,l:h,r:g};var k=p[0].s;for(c=1;c<d;++c)p[c].s>k&&(k=p[c].s);var E=new tB(k+1),x=Gi(l[S-1],E,0);if(x>a){c=0;var B=0,H=x-a,U=1<<H;for(p.sort(function(t,a){return E[a.s]-E[t.s]||t.f-a.f});c<d;++c){var J=p[c].s;if(!(E[J]>a))break;B+=U-(1<<x-E[J]),E[J]=a}for(B>>>=H;B>0;){var er=p[c].s;E[er]<a?B-=1<<a-E[er]++-1:++c}for(;c>=0&&B;--c){var en=p[c].s;E[en]==a&&(--E[en],++B)}x=a}return[new t$(E),x]},Gi=function(t,a,l){return -1==t.s?Math.max(Gi(t.l,a,l+1),Gi(t.r,a,l+1)):a[t.s]=l},Ji=function(t){for(var a=t.length;a&&!t[--a];);for(var l=new tB(++a),c=0,d=t[0],p=1,o=function(t){l[c++]=t},f=1;f<=a;++f)if(t[f]==d&&f!=a)++p;else{if(!d&&p>2){for(;p>138;p-=138)o(32754);p>2&&(o(p>10?p-11<<5|28690:p-3<<5|12305),p=0)}else if(p>3){for(o(d),--p;p>6;p-=6)o(8304);p>2&&(o(p-3<<5|8208),p=0)}for(;p--;)o(d);p=1,d=t[f]}return[l.subarray(0,c),a]},Yi=function(t,a){for(var l=0,c=0;c<a.length;++c)l+=t[c]*a[c];return l},Ki=function(t,a,l){var c=l.length,d=Ui(a+2);t[d]=255&c,t[d+1]=c>>>8,t[d+2]=255^t[d],t[d+3]=255^t[d+1];for(var p=0;p<c;++p)t[d+p+4]=l[p];return 8*(d+4+c)},Xi=function(t,a,l,c,d,p,f,h,g,_,S){ji(a,S++,l),++d[256];for(var w=Vi(d,15),k=w[0],E=w[1],x=Vi(p,15),B=x[0],H=x[1],U=Ji(k),J=U[0],er=U[1],en=Ji(B),ei=en[0],ea=en[1],el=new tB(19),ec=0;ec<J.length;++ec)el[31&J[ec]]++;for(ec=0;ec<ei.length;++ec)el[31&ei[ec]]++;for(var eu=Vi(el,7),ed=eu[0],ep=eu[1],ef=19;ef>4&&!ed[tV[ef-1]];--ef);var eh,eg,em,ev,ey=_+5<<3,e_=Yi(d,tJ)+Yi(p,tY)+f,eb=Yi(d,k)+Yi(p,B)+f+14+3*ef+Yi(el,ed)+(2*el[16]+3*el[17]+7*el[18]);if(ey<=e_&&ey<=eb)return Ki(a,S,t.subarray(g,g+_));if(ji(a,S,1+(eb<e_)),S+=2,eb<e_){eh=Di(k,E,0),eg=k,em=Di(B,H,0),ev=B;var eS=Di(ed,ep,0);for(ji(a,S,er-257),ji(a,S+5,ea-1),ji(a,S+10,ef-4),S+=14,ec=0;ec<ef;++ec)ji(a,S+3*ec,ed[tV[ec]]);S+=3*ef;for(var ew=[J,ei],ek=0;ek<2;++ek){var eE=ew[ek];for(ec=0;ec<eE.length;++ec){var eC=31&eE[ec];ji(a,S,eS[eC]),S+=ed[eC],eC>15&&(ji(a,S,eE[ec]>>>5&127),S+=eE[ec]>>>12)}}}else eh=t0,eg=tJ,em=t1,ev=tY;for(ec=0;ec<h;++ec)if(c[ec]>255){Wi(a,S,eh[(eC=c[ec]>>>18&31)+257]),S+=eg[eC+257],eC>7&&(ji(a,S,c[ec]>>>23&31),S+=tW[eC]);var ex=31&c[ec];Wi(a,S,em[ex]),S+=ev[ex],ex>3&&(Wi(a,S,c[ec]>>>5&8191),S+=tq[ex])}else Wi(a,S,eh[c[ec]]),S+=eg[c[ec]];return Wi(a,S,eh[256]),S+eg[256]},t2=new tH([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),t3=function(){for(var t=new tH(256),a=0;a<256;++a){for(var l=a,c=9;--c;)l=(1&l&&3988292384)^l>>>1;t[a]=l}return t}(),es=function(){var t=4294967295;return{p:function(a){for(var l=t,c=0;c<a.length;++c)l=t3[255&l^a[c]]^l>>>8;t=l},d:function(){return 4294967295^t}}},is=function(t,a,l){for(;l;++a)t[a]=l,l>>>=8},ss=function(t,a){var l=a.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=a.level<2?4:9==a.level?2:0,t[9]=3,0!=a.mtime&&is(t,4,Math.floor(new Date(a.mtime||Date.now())/1e3)),l){t[3]=8;for(var c=0;c<=l.length;++c)t[c+10]=l.charCodeAt(c)}};function ns(t,a){void 0===a&&(a={});var l,c,d,p=es(),f=t.length;p.p(t);var h=(c=a,d=10+((l=a).filename&&l.filename.length+1||0),function(t,a,l,c,d,p){var f=t.length,h=new t$(c+f+5*(1+Math.floor(f/7e3))+d),g=h.subarray(c,h.length-d),_=0;if(!a||f<8)for(var S=0;S<=f;S+=65535){var w=S+65535;w<f?_=Ki(g,_,t.subarray(S,w)):(g[S]=p,_=Ki(g,_,t.subarray(S,f)))}else{for(var k=t2[a-1],E=k>>>13,x=8191&k,B=(1<<l)-1,H=new tB(32768),U=new tB(B+1),J=Math.ceil(l/3),er=2*J,b=function(a){return(t[a]^t[a+1]<<J^t[a+2]<<er)&B},en=new tH(25e3),ei=new tB(288),ea=new tB(32),el=0,ec=0,eu=(S=0,0),ed=0,ep=0;S<f;++S){var ef=b(S),eh=32767&S,eg=U[ef];
55if(H[eh]=eg,U[ef]=eh,ed<=S){var em=f-S;if((el>7e3||eu>24576)&&em>423){_=Xi(t,g,0,en,ei,ea,ec,eu,ep,S-ep,_),eu=el=ec=0,ep=S;for(var ev=0;ev<286;++ev)ei[ev]=0;for(ev=0;ev<30;++ev)ea[ev]=0}var ey=2,e_=0,eb=x,eS=eh-eg&32767;if(em>2&&ef==b(S-eS))for(var ew=Math.min(E,em)-1,ek=Math.min(32767,S),eE=Math.min(258,em);eS<=ek&&--eb&&eh!=eg;){if(t[S+ey]==t[S+ey-eS]){for(var eC=0;eC<eE&&t[S+eC]==t[S+eC-eS];++eC);if(eC>ey){if(ey=eC,e_=eS,eC>ew)break;var ex=Math.min(eS,eC-2),eT=0;for(ev=0;ev<ex;++ev){var eI=S-eS+ev+32768&32767,eO=eI-H[eI]+32768&32767;eO>eT&&(eT=eO,eg=eI)}}}eS+=(eh=eg)-(eg=H[eh])+32768&32767}if(e_){en[eu++]=268435456|tZ[ey]<<18|tG[e_];var eR=31&tZ[ey],eM=31&tG[e_];ec+=tW[eR]+tq[eM],++ei[257+eR],++ea[eM],ed=S+ey,++el}else en[eu++]=t[S],++ei[t[S]]}}_=Xi(t,g,p,en,ei,ea,ec,eu,ep,S-ep,_)}return zi(h,0,c+Ui(_)+d)}(t,null==c.level?6:c.level,null==c.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+c.mem,d,8,!0)),g=h.length;return ss(h,a),is(h,g-8,p.d()),is(h,g-4,f),h}function os(t,a){var l=t.length;if("undefined"!=typeof TextEncoder)return(new TextEncoder).encode(t);for(var c=new t$(t.length+(t.length>>>1)),d=0,n=function(t){c[d++]=t},p=0;p<l;++p){if(d+5>c.length){var f=new t$(d+8+(l-p<<1));f.set(c),c=f}var h=t.charCodeAt(p);h<128||a?n(h):(h<2048?n(192|h>>>6):(h>55295&&h<57344?(n(240|(h=65536+(1047552&h)|1023&t.charCodeAt(++p))>>>18),n(128|h>>>12&63)):n(224|h>>>12),n(128|h>>>6&63)),n(128|63&h))}return zi(c,0,d)}var t5="[SessionRecording]",t6=eE(t5),t8=[tP.MouseMove,tP.MouseInteraction,tP.Scroll,tP.ViewportResize,tP.Input,tP.TouchMove,tP.MediaInteraction,tP.Drag],hs=t=>({rrwebMethod:t,enqueuedAt:Date.now(),attempt:1});function _s(t){return function(t,a){for(var l="",c=0;c<t.length;){var d=t[c++];d<128||a?l+=String.fromCharCode(d):d<224?l+=String.fromCharCode((31&d)<<6|63&t[c++]):d<240?l+=String.fromCharCode((15&d)<<12|(63&t[c++])<<6|63&t[c++]):l+=String.fromCharCode(55296|(d=((15&d)<<18|(63&t[c++])<<12|(63&t[c++])<<6|63&t[c++])-65536)>>10,56320|1023&d)}return l}(ns(os(JSON.stringify(t))),!0)}function ps(t){return t.type===tM.Custom&&"sessionIdle"===t.data.tag}function gs(t,a){return a.some(a=>"regex"===a.matching&&new RegExp(a.url).test(t))}let vs=class vs{get sessionIdleThresholdMilliseconds(){return this.instance.config.session_recording.session_idle_threshold_ms||3e5}get rrwebRecord(){var t,a;return null==eh||null===(t=eh.__PosthogExtensions__)||void 0===t||null===(a=t.rrweb)||void 0===a?void 0:a.record}get started(){return this._captureStarted}get sessionManager(){if(!this.instance.sessionManager)throw Error(t5+" must be started with a valid sessionManager.");return this.instance.sessionManager}get fullSnapshotIntervalMillis(){var t,a;return"trigger_pending"===this.triggerStatus?6e4:null!==(t=null===(a=this.instance.config.session_recording)||void 0===a?void 0:a.full_snapshot_interval_millis)&&void 0!==t?t:3e5}get isSampled(){var t=this.instance.get_property(eU);return M(t)?t:null}get sessionDuration(){var t,a,l=null===(t=this.buffer)||void 0===t?void 0:t.data[(null===(a=this.buffer)||void 0===a?void 0:a.data.length)-1],{sessionStartTimestamp:c}=this.sessionManager.checkAndGetSessionAndWindowId(!0);return l?l.timestamp-c:null}get isRecordingEnabled(){var t=!!this.instance.get_property(eL),a=!this.instance.config.disable_session_recording;return U&&t&&a}get isConsoleLogCaptureEnabled(){var t=!!this.instance.get_property(ej),a=this.instance.config.enable_recording_console_log;return null!=a?a:t}get canvasRecording(){var t,a,l,c,d,p,f=this.instance.config.session_recording.captureCanvas,h=this.instance.get_property(eH),g=null!==(t=null!==(a=null==f?void 0:f.recordCanvas)&&void 0!==a?a:null==h?void 0:h.enabled)&&void 0!==t&&t,_=null!==(l=null!==(c=null==f?void 0:f.canvasFps)&&void 0!==c?c:null==h?void 0:h.fps)&&void 0!==l?l:4,S=null!==(d=null!==(p=null==f?void 0:f.canvasQuality)&&void 0!==p?p:null==h?void 0:h.quality)&&void 0!==d?d:.4;if("string"==typeof S){var w=parseFloat(S);S=isNaN(w)?.4:w}return{enabled:g,fps:wi(_,0,12,"canvas recording fps",4),quality:wi(S,0,1,"canvas recording quality",.4)}}get networkPayloadCapture(){var t,a,l=this.instance.get_property(e$),c={recordHeaders:null===(t=this.instance.config.session_recording)||void 0===t?void 0:t.recordHeaders,recordBody:null===(a=this.instance.config.session_recording)||void 0===a?void 0:a.recordBody},d=(null==c?void 0:c.recordHeaders)||(null==l?void 0:l.recordHeaders),p=(null==c?void 0:c.recordBody)||(null==l?void 0:l.recordBody),f=P(this.instance.config.capture_performance)?this.instance.config.capture_performance.network_timing:this.instance.config.capture_performance,h=!!(M(f)?f:null==l?void 0:l.capturePerformance);return d||p||h?{recordHeaders:d,recordBody:p,recordPerformance:h}:void 0}get masking(){var t,a,l,c,d=this.instance.get_property(eB),p={maskAllInputs:null===(t=this.instance.config.session_recording)||void 0===t?void 0:t.maskAllInputs,maskTextSelector:null===(a=this.instance.config.session_recording)||void 0===a?void 0:a.maskTextSelector},f=null!==(l=null==p?void 0:p.maskAllInputs)&&void 0!==l?l:null==d?void 0:d.maskAllInputs,h=null!==(c=null==p?void 0:p.maskTextSelector)&&void 0!==c?c:null==d?void 0:d.maskTextSelector;return F(f)&&F(h)?void 0:{maskAllInputs:f,maskTextSelector:h}}get sampleRate(){var t=this.instance.get_property(eW);return O(t)?t:null}get minimumDuration(){var t=this.instance.get_property(eq);return O(t)?t:null}get status(){return this.receivedDecide?this.isRecordingEnabled?!1===this.isSampled?"disabled":this._urlBlocked?"paused":A(this._linkedFlag)||this._linkedFlagSeen?"trigger_pending"===this.triggerStatus?"buffering":M(this.isSampled)?this.isSampled?"sampled":"disabled":"active":"buffering":"disabled":"buffering"}get urlTriggerStatus(){var t;return 0===this._urlTriggers.length?"trigger_disabled":(null===(t=this.instance)||void 0===t?void 0:t.get_property(eZ))===this.sessionId?"trigger_activated":"trigger_pending"}get eventTriggerStatus(){var t;return 0===this._eventTriggers.length?"trigger_disabled":(null===(t=this.instance)||void 0===t?void 0:t.get_property(eG))===this.sessionId?"trigger_activated":"trigger_pending"}get triggerStatus(){var t="trigger_activated"===this.eventTriggerStatus||"trigger_activated"===this.urlTriggerStatus,a="trigger_pending"===this.eventTriggerStatus||"trigger_pending"===this.urlTriggerStatus;return t?"trigger_activated":a?"trigger_pending":"trigger_disabled"}constructor(t){if(V(this,"queuedRRWebEvents",[]),V(this,"isIdle",!1),V(this,"_linkedFlagSeen",!1),V(this,"_lastActivityTimestamp",Date.now()),V(this,"_linkedFlag",null),V(this,"_removePageViewCaptureHook",void 0),V(this,"_onSessionIdListener",void 0),V(this,"_persistDecideOnSessionListener",void 0),V(this,"_samplingSessionListener",void 0),V(this,"_urlTriggers",[]),V(this,"_urlBlocklist",[]),V(this,"_urlBlocked",!1),V(this,"_eventTriggers",[]),V(this,"_removeEventTriggerCaptureHook",void 0),V(this,"_forceAllowLocalhostNetworkCapture",!1),V(this,"_onBeforeUnload",()=>{this._flushBuffer()}),V(this,"_onOffline",()=>{this._tryAddCustomEvent("browser offline",{})}),V(this,"_onOnline",()=>{this._tryAddCustomEvent("browser online",{})}),V(this,"_onVisibilityChange",()=>{if(null!=el&&el.visibilityState){var t="window "+el.visibilityState;this._tryAddCustomEvent(t,{})}}),this.instance=t,this._captureStarted=!1,this._endpoint="/s/",this.stopRrweb=void 0,this.receivedDecide=!1,!this.instance.sessionManager)throw t6.error("started without valid sessionManager"),Error(t5+" started without valid sessionManager. This is a bug.");if(this.instance.config.__preview_experimental_cookieless_mode)throw Error(t5+" cannot be used with __preview_experimental_cookieless_mode.");var{sessionId:a,windowId:l}=this.sessionManager.checkAndGetSessionAndWindowId();this.sessionId=a,this.windowId=l,this.buffer=this.clearBuffer(),this.sessionIdleThresholdMilliseconds>=this.sessionManager.sessionTimeoutMs&&t6.warn("session_idle_threshold_ms (".concat(this.sessionIdleThresholdMilliseconds,") is greater than the session timeout (").concat(this.sessionManager.sessionTimeoutMs,"). Session will never be detected as i
55dle"))}startIfEnabledOrStop(t){this.isRecordingEnabled?(this._startCapture(t),ae(U,"beforeunload",this._onBeforeUnload),ae(U,"offline",this._onOffline),ae(U,"online",this._onOnline),ae(U,"visibilitychange",this._onVisibilityChange),this._setupSampling(),this._addEventTriggerListener(),A(this._removePageViewCaptureHook)&&(this._removePageViewCaptureHook=this.instance.on("eventCaptured",t=>{try{if("$pageview"===t.event){var a=null!=t&&t.properties.$current_url?this._maskUrl(null==t?void 0:t.properties.$current_url):"";if(!a)return;this._tryAddCustomEvent("$pageview",{href:a})}}catch(t){t6.error("Could not add $pageview to rrweb session",t)}})),this._onSessionIdListener||(this._onSessionIdListener=this.sessionManager.onSessionId((t,a,l)=>{var c,d,p,f;l&&(this._tryAddCustomEvent("$session_id_change",{sessionId:t,windowId:a,changeReason:l}),null===(c=this.instance)||void 0===c||null===(d=c.persistence)||void 0===d||d.unregister(eG),null===(p=this.instance)||void 0===p||null===(f=p.persistence)||void 0===f||f.unregister(eZ))}))):this.stopRecording()}stopRecording(){var t,a,l,c;this._captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this._captureStarted=!1,null==U||U.removeEventListener("beforeunload",this._onBeforeUnload),null==U||U.removeEventListener("offline",this._onOffline),null==U||U.removeEventListener("online",this._onOnline),null==U||U.removeEventListener("visibilitychange",this._onVisibilityChange),this.clearBuffer(),clearInterval(this._fullSnapshotTimer),null===(t=this._removePageViewCaptureHook)||void 0===t||t.call(this),this._removePageViewCaptureHook=void 0,null===(a=this._removeEventTriggerCaptureHook)||void 0===a||a.call(this),this._removeEventTriggerCaptureHook=void 0,null===(l=this._onSessionIdListener)||void 0===l||l.call(this),this._onSessionIdListener=void 0,null===(c=this._samplingSessionListener)||void 0===c||c.call(this),this._samplingSessionListener=void 0,t6.info("stopped"))}makeSamplingDecision(t){var a,l,c=this.sessionId!==t,d=this.sampleRate;if(O(d)){var p=this.isSampled,f=c||!M(p),h=f?function(t){for(var a=0,l=0;l<t.length;l++)a=(a<<5)-a+t.charCodeAt(l)|0;return Math.abs(a)}(t)%100<wi(100*d,0,100):p;f&&(h?this._reportStarted("sampled"):t6.warn("Sample rate (".concat(d,") has determined that this sessionId (").concat(t,") will not be sent to the server.")),this._tryAddCustomEvent("samplingDecisionMade",{sampleRate:d,isSampled:h})),null===(l=this.instance.persistence)||void 0===l||l.register({[eU]:h})}else null===(a=this.instance.persistence)||void 0===a||a.register({[eU]:null})}onRemoteConfig(t){var a,l,c,d,p,f;if(this._tryAddCustomEvent("$remote_config_received",t),this._persistRemoteConfig(t),this._linkedFlag=(null===(a=t.sessionRecording)||void 0===a?void 0:a.linkedFlag)||null,null!==(l=t.sessionRecording)&&void 0!==l&&l.endpoint&&(this._endpoint=null===(f=t.sessionRecording)||void 0===f?void 0:f.endpoint),this._setupSampling(),!A(this._linkedFlag)&&!this._linkedFlagSeen){var h=R(this._linkedFlag)?this._linkedFlag:this._linkedFlag.flag,g=R(this._linkedFlag)?null:this._linkedFlag.variant;this.instance.onFeatureFlags((t,a)=>{var l=P(a)&&h in a,c=g?a[h]===g:l;c&&this._reportStarted("linked_flag_matched",{linkedFlag:h,linkedVariant:g}),this._linkedFlagSeen=c})}null!==(c=t.sessionRecording)&&void 0!==c&&c.urlTriggers&&(this._urlTriggers=t.sessionRecording.urlTriggers),null!==(d=t.sessionRecording)&&void 0!==d&&d.urlBlocklist&&(this._urlBlocklist=t.sessionRecording.urlBlocklist),null!==(p=t.sessionRecording)&&void 0!==p&&p.eventTriggers&&(this._eventTriggers=t.sessionRecording.eventTriggers),this.receivedDecide=!0,this.startIfEnabledOrStop()}_setupSampling(){O(this.sampleRate)&&A(this._samplingSessionListener)&&(this._samplingSessionListener=this.sessionManager.onSessionId(t=>{this.makeSamplingDecision(t)}))}_persistRemoteConfig(t){if(this.instance.persistence){var a,l=this.instance.persistence,s=()=>{var a,c,d,p,f,h,g,_,S,w=null===(a=t.sessionRecording)||void 0===a?void 0:a.sampleRate,k=A(w)?null:parseFloat(w),E=null===(c=t.sessionRecording)||void 0===c?void 0:c.minimumDurationMilliseconds;l.register({[eL]:!!t.sessionRecording,[ej]:null===(d=t.sessionRecording)||void 0===d?void 0:d.consoleLogRecordingEnabled,[e$]:W({capturePerformance:t.capturePerformance},null===(p=t.sessionRecording)||void 0===p?void 0:p.networkPayloadCapture),[eB]:null===(f=t.sessionRecording)||void 0===f?void 0:f.masking,[eH]:{enabled:null===(h=t.sessionRecording)||void 0===h?void 0:h.recordCanvas,fps:null===(g=t.sessionRecording)||void 0===g?void 0:g.canvasFps,quality:null===(_=t.sessionRecording)||void 0===_?void 0:_.canvasQuality},[eW]:k,[eq]:F(E)?null:E,[eV]:null===(S=t.sessionRecording)||void 0===S?void 0:S.scriptConfig})};s(),null===(a=this._persistDecideOnSessionListener)||void 0===a||a.call(this),this._persistDecideOnSessionListener=this.sessionManager.onSessionId(s)}}log(t){var a,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";null===(a=this.instance.sessionRecording)||void 0===a||a.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:l,trace:[],payload:[JSON.stringify(t)]}},timestamp:Date.now()})}_startCapture(t){if(!F(Object.assign)&&!F(Array.from)&&!(this._captureStarted||this.instance.config.disable_session_recording||this.instance.consent.isOptedOut())){var a,l;(this._captureStarted=!0,this.sessionManager.checkAndGetSessionAndWindowId(),this.rrwebRecord)?this._onScriptLoaded():null===(a=eh.__PosthogExtensions__)||void 0===a||null===(l=a.loadExternalDependency)||void 0===l||l.call(a,this.instance,this.scriptName,t=>{if(t)return t6.error("could not load recorder",t);this._onScriptLoaded()}),t6.info("starting"),"active"===this.status&&this._reportStarted(t||"recording_initialized")}}get scriptName(){var t,a,l;return(null===(t=this.instance)||void 0===t||null===(a=t.persistence)||void 0===a||null===(l=a.get_property(eV))||void 0===l?void 0:l.script)||"recorder"}isInteractiveEvent(t){var a;return 3===t.type&&-1!==t8.indexOf(null===(a=t.data)||void 0===a?void 0:a.source)}_updateWindowAndSessionIds(t){var a=this.isInteractiveEvent(t);a||this.isIdle||t.timestamp-this._lastActivityTimestamp>this.sessionIdleThresholdMilliseconds&&(this.isIdle=!0,clearInterval(this._fullSnapshotTimer),this._tryAddCustomEvent("sessionIdle",{eventTimestamp:t.timestamp,lastActivityTimestamp:this._lastActivityTimestamp,threshold:this.sessionIdleThresholdMilliseconds,bufferLength:this.buffer.data.length,bufferSize:this.buffer.size}),this._flushBuffer());var l=!1;
55if(a&&(this._lastActivityTimestamp=t.timestamp,this.isIdle&&(this.isIdle=!1,this._tryAddCustomEvent("sessionNoLongerIdle",{reason:"user activity",type:t.type}),l=!0)),!this.isIdle){var{windowId:c,sessionId:d}=this.sessionManager.checkAndGetSessionAndWindowId(!a,t.timestamp),p=this.sessionId!==d,f=this.windowId!==c;this.windowId=c,this.sessionId=d,p||f?(this.stopRecording(),this.startIfEnabledOrStop("session_id_changed")):l&&this._scheduleFullSnapshot()}}_tryRRWebMethod(t){try{return t.rrwebMethod(),!0}catch(a){return this.queuedRRWebEvents.length<10?this.queuedRRWebEvents.push({enqueuedAt:t.enqueuedAt||Date.now(),attempt:t.attempt++,rrwebMethod:t.rrwebMethod}):t6.warn("could not emit queued rrweb event.",a,t),!1}}_tryAddCustomEvent(t,a){return this._tryRRWebMethod(hs(()=>this.rrwebRecord.addCustomEvent(t,a)))}_tryTakeFullSnapshot(){return this._tryRRWebMethod(hs(()=>this.rrwebRecord.takeFullSnapshot()))}_onScriptLoaded(){var t,a,l={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{password:!0},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1};for(var[c,d]of Object.entries(this.instance.config.session_recording||{}))c in l&&("maskInputOptions"===c?l.maskInputOptions=W({password:!0},d):l[c]=d);if(this.canvasRecording&&this.canvasRecording.enabled&&(l.recordCanvas=!0,l.sampling={canvas:this.canvasRecording.fps},l.dataURLOptions={type:"image/webp",quality:this.canvasRecording.quality}),this.masking&&(l.maskAllInputs=this.masking.maskAllInputs,l.maskTextSelector=null!==(a=this.masking.maskTextSelector)&&void 0!==a?a:void 0),this.rrwebRecord){this.mutationRateLimiter=null!==(t=this.mutationRateLimiter)&&void 0!==t?t:new Si(this.rrwebRecord,{refillRate:this.instance.config.session_recording.__mutationRateLimiterRefillRate,bucketSize:this.instance.config.session_recording.__mutationRateLimiterBucketSize,onBlockedNode:(t,a)=>{var l="Too many mutations on node '".concat(t,"'. Rate limiting. This could be due to SVG animations or something similar");t6.info(l,{node:a}),this.log(t5+" "+l,"warn")}});var p=this._gatherRRWebPlugins();this.stopRrweb=this.rrwebRecord(W({emit:t=>{this.onRRwebEmit(t)},plugins:p},l)),this._lastActivityTimestamp=Date.now(),this.isIdle=!1,this._tryAddCustomEvent("$session_options",{sessionRecordingOptions:l,activePlugins:p.map(t=>null==t?void 0:t.name)}),this._tryAddCustomEvent("$posthog_config",{config:this.instance.config})}else t6.error("onScriptLoaded was called but rrwebRecord is not available. This indicates something has gone wrong.")}_scheduleFullSnapshot(){if(this._fullSnapshotTimer&&clearInterval(this._fullSnapshotTimer),!this.isIdle){var t=this.fullSnapshotIntervalMillis;t&&(this._fullSnapshotTimer=setInterval(()=>{this._tryTakeFullSnapshot()},t))}}_gatherRRWebPlugins(){var t,a,l,c,d=[],p=null===(t=eh.__PosthogExtensions__)||void 0===t||null===(a=t.rrwebPlugins)||void 0===a?void 0:a.getRecordConsolePlugin;p&&this.isConsoleLogCaptureEnabled&&d.push(p());var f=null===(l=eh.__PosthogExtensions__)||void 0===l||null===(c=l.rrwebPlugins)||void 0===c?void 0:c.getRecordNetworkPlugin;return this.networkPayloadCapture&&I(f)&&(!tp.includes(location.hostname)||this._forceAllowLocalhostNetworkCapture?d.push(f(bi(this.instance.config,this.networkPayloadCapture))):t6.info("NetworkCapture not started because we are on localhost.")),d}onRRwebEmit(t){var a;if(this._processQueuedEvents(),t&&P(t)){if(t.type===tM.Meta){var l=this._maskUrl(t.data.href);if(this._lastHref=l,!l)return;t.data.href=l}else this._pageViewFallBack();if(this._checkUrlTriggerConditions(),!this._urlBlocked||t.type===tM.Custom&&"recording paused"===t.data.tag){t.type===tM.FullSnapshot&&this._scheduleFullSnapshot(),t.type===tM.FullSnapshot&&"trigger_pending"===this.triggerStatus&&this.clearBuffer();var c=this.mutationRateLimiter?this.mutationRateLimiter.throttleMutations(t):t;if(c){var d=function(t){if(t&&P(t)&&6===t.type&&P(t.data)&&"rrweb/console@1"===t.data.plugin){t.data.payload.payload.length>10&&(t.data.payload.payload=t.data.payload.payload.slice(0,10),t.data.payload.payload.push("...[truncated]"));for(var a=[],l=0;l<t.data.payload.payload.length;l++)t.data.payload.payload[l]&&t.data.payload.payload[l].length>2e3?a.push(t.data.payload.payload[l].slice(0,2e3)+"...[truncated]"):a.push(t.data.payload.payload[l]);return t.data.payload.payload=a,t}return t}(c);if(this._updateWindowAndSessionIds(d),!this.isIdle||ps(d)){if(ps(d)){var p=d.data.payload;if(p){var f=p.lastActivityTimestamp,h=p.threshold;d.timestamp=f+h}}var g=null===(a=this.instance.config.session_recording.compress_events)||void 0===a||a?function(t){if(1024>li(t))return t;try{if(t.type===tM.FullSnapshot)return W(W({},t),{},{data:_s(t.data),cv:"2024-10"});if(t.type===tM.IncrementalSnapshot&&t.data.source===tP.Mutation)return W(W({},t),{},{cv:"2024-10",data:W(W({},t.data),{},{texts:_s(t.data.texts),attributes:_s(t.data.attributes),removes:_s(t.data.removes),adds:_s(t.data.adds)})});if(t.type===tM.IncrementalSnapshot&&t.data.source===tP.StyleSheetRule)return W(W({},t),{},{cv:"2024-10",data:W(W({},t.data),{},{adds:t.data.adds?_s(t.data.adds):void 0,removes:t.data.removes?_s(t.data.removes):void 0})})}catch(t){t6.error("could not compress event - will use uncompressed event",t)}return t}(d):d,_={$snapshot_bytes:li(g),$snapshot_data:g,$session_id:this.sessionId,$window_id:this.windowId};"disabled"!==this.status?this._captureSnapshotBuffered(_):this.clearBuffer()}}}}}_pageViewFallBack(){if(!this.instance.config.capture_pageview&&U){var t=this._maskUrl(U.location.href);this._lastHref!==t&&(this._tryAddCustomEvent("$url_changed",{href:t}),this._lastHref=t)}}_processQueuedEvents(){if(this.queuedRRWebEvents.length){var t=[...this.queuedRRWebEvents];this.queuedRRWebEvents=[],t.forEach(t=>{Date.now()-t.enqueuedAt<=2e3&&this._tryRRWebMethod(t)})}}_maskUrl(t){var a=this.instance.config.session_recording;
55if(a.maskNetworkRequestFn){var l,c={url:t};return null===(l=c=a.maskNetworkRequestFn(c))||void 0===l?void 0:l.url}return t}clearBuffer(){return this.buffer={size:0,data:[],sessionId:this.sessionId,windowId:this.windowId},this.buffer}_flushBuffer(){this.flushBufferTimer&&(clearTimeout(this.flushBufferTimer),this.flushBufferTimer=void 0);var t=this.minimumDuration,a=this.sessionDuration,l=O(a)&&a>=0,c=O(t)&&l&&a<t;return"buffering"===this.status||"paused"===this.status||"disabled"===this.status||c?(this.flushBufferTimer=setTimeout(()=>{this._flushBuffer()},2e3),this.buffer):(this.buffer.data.length>0&&(function ci(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6606028.8;if(t.size>=a&&t.data.length>1){var l=Math.floor(t.data.length/2),c=t.data.slice(0,l),d=t.data.slice(l);return[ci({size:li(c),data:c,sessionId:t.sessionId,windowId:t.windowId}),ci({size:li(d),data:d,sessionId:t.sessionId,windowId:t.windowId})].flatMap(t=>t)}return[t]})(this.buffer).forEach(t=>{this._captureSnapshot({$snapshot_bytes:t.size,$snapshot_data:t.data,$session_id:t.sessionId,$window_id:t.windowId,$lib:"web",$lib_version:eg.LIB_VERSION})}),this.clearBuffer())}_captureSnapshotBuffered(t){var a,l=2+((null===(a=this.buffer)||void 0===a?void 0:a.data.length)||0);!this.isIdle&&(this.buffer.size+t.$snapshot_bytes+l>943718.4||this.buffer.sessionId!==this.sessionId)&&(this.buffer=this._flushBuffer()),this.buffer.size+=t.$snapshot_bytes,this.buffer.data.push(t.$snapshot_data),this.flushBufferTimer||this.isIdle||(this.flushBufferTimer=setTimeout(()=>{this._flushBuffer()},2e3))}_captureSnapshot(t){this.instance.capture("$snapshot",t,{_url:this.instance.requestRouter.endpointFor("api",this._endpoint),_noTruncate:!0,_batchKey:"recordings",skip_client_rate_limiting:!0})}_checkUrlTriggerConditions(){if(void 0!==U&&U.location.href){var t=U.location.href,a=this._urlBlocked,l=gs(t,this._urlBlocklist);l&&!a?this._pauseRecording():!l&&a&&this._resumeRecording(),gs(t,this._urlTriggers)&&this._activateTrigger("url")}}_activateTrigger(t){var a,l;"trigger_pending"===this.triggerStatus&&(null===(a=this.instance)||void 0===a||null===(l=a.persistence)||void 0===l||l.register({["url"===t?eZ:eG]:this.sessionId}),this._flushBuffer(),this._reportStarted(t+"_trigger_matched"))}_pauseRecording(){this._urlBlocked||(this._urlBlocked=!0,clearInterval(this._fullSnapshotTimer),t6.info("recording paused due to URL blocker"),this._tryAddCustomEvent("recording paused",{reason:"url blocker"}))}_resumeRecording(){this._urlBlocked&&(this._urlBlocked=!1,this._tryTakeFullSnapshot(),this._scheduleFullSnapshot(),this._tryAddCustomEvent("recording resumed",{reason:"left blocked url"}),t6.info("recording resumed"))}_addEventTriggerListener(){0!==this._eventTriggers.length&&A(this._removeEventTriggerCaptureHook)&&(this._removeEventTriggerCaptureHook=this.instance.on("eventCaptured",t=>{try{this._eventTriggers.includes(t.event)&&this._activateTrigger("event")}catch(t){t6.error("Could not activate event trigger",t)}}))}overrideLinkedFlag(){this._linkedFlagSeen=!0,this._tryTakeFullSnapshot(),this._reportStarted("linked_flag_overridden")}overrideSampling(){var t;null===(t=this.instance.persistence)||void 0===t||t.register({[eU]:!0}),this._tryTakeFullSnapshot(),this._reportStarted("sampling_overridden")}overrideTrigger(t){this._activateTrigger(t)}_reportStarted(t,a){this.instance.register_for_session({$session_recording_start_reason:t}),t6.info(t.replace("_"," "),a),m(["recording_initialized","session_id_changed"],t)||this._tryAddCustomEvent(t,a)}};var t4=eE("[SegmentIntegration]"),t9="posthog-js";function bs(t){var{organization:a,projectId:l,prefix:c,severityAllowList:d=["error"]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p=>{if(!("*"===d||d.includes(p.level))||!t.__loaded)return p;p.tags||(p.tags={});var f,h,g,_,S,w=t.requestRouter.endpointFor("ui","/project/".concat(t.config.token,"/person/").concat(t.get_distinct_id()));p.tags["PostHog Person URL"]=w,t.sessionRecordingStarted()&&(p.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var k=(null===(f=p.exception)||void 0===f?void 0:f.values)||[],E=k.map(t=>W(W({},t),{},{stacktrace:t.stacktrace?W(W({},t.stacktrace),{},{type:"raw",frames:(t.stacktrace.frames||[]).map(t=>W(W({},t),{},{platform:"web:javascript"}))}):void 0})),x={$exception_message:(null===(h=k[0])||void 0===h?void 0:h.value)||p.message,$exception_type:null===(g=k[0])||void 0===g?void 0:g.type,$exception_personURL:w,$exception_level:p.level,$exception_list:E,$sentry_event_id:p.event_id,$sentry_exception:p.exception,$sentry_exception_message:(null===(_=k[0])||void 0===_?void 0:_.value)||p.message,$sentry_exception_type:null===(S=k[0])||void 0===S?void 0:S.type,$sentry_tags:p.tags};return a&&l&&(x.$sentry_url=(c||"https://sentry.io/organizations/")+a+"/issues/?project="+l+"&query="+p.event_id),t.exceptions.sendExceptionEvent(x),p}}let ws=class ws{constructor(t,a,l,c,d){this.name=t9,this.setupOnce=function(p){p(bs(t,{organization:a,projectId:l,prefix:c,severityAllowList:d}))}}};var t7,re,rr,rn,ra=null!=U&&U.location?It(U.location.hash,"__posthog")||It(location.hash,"state"):null,rs="_postHogToolbarParam
55s",rl=eE("[Toolbar]");(rp=rn||(rn={}))[rp.UNINITIALIZED=0]="UNINITIALIZED",rp[rp.LOADING=1]="LOADING",rp[rp.LOADED=2]="LOADED";let Is=class Is{constructor(t){this.instance=t}setToolbarState(t){eh.ph_toolbar_state=t}getToolbarState(){var t;return null!==(t=eh.ph_toolbar_state)&&void 0!==t?t:rn.UNINITIALIZED}maybeLoadToolbar(){var t,a,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(!U||!el)return!1;l=null!==(t=l)&&void 0!==t?t:U.location,d=null!==(a=d)&&void 0!==a?a:U.history;try{if(!c){try{U.localStorage.setItem("test","test"),U.localStorage.removeItem("test")}catch(t){return!1}c=null==U?void 0:U.localStorage}var p,f=ra||It(l.hash,"__posthog")||It(l.hash,"state"),h=f?ee(()=>JSON.parse(atob(decodeURIComponent(f))))||ee(()=>JSON.parse(decodeURIComponent(f))):null;return h&&"ph_authorize"===h.action?((p=h).source="url",p&&Object.keys(p).length>0&&(h.desiredHash?l.hash=h.desiredHash:d?d.replaceState(d.state,"",l.pathname+l.search):l.hash="")):((p=JSON.parse(c.getItem(rs)||"{}")).source="localstorage",delete p.userIntent),!(!p.token||this.instance.config.token!==p.token)&&(this.loadToolbar(p),!0)}catch(t){return!1}}_callLoadToolbar(t){var a=eh.ph_load_toolbar||eh.ph_load_editor;!A(a)&&I(a)?a(t,this.instance):rl.warn("No toolbar load function found")}loadToolbar(t){var a,l,c=!(null==el||!el.getElementById(e7));if(!U||c)return!1;var d="custom"===this.instance.requestRouter.region&&this.instance.config.advanced_disable_toolbar_metrics,p=W(W({token:this.instance.config.token},t),{},{apiURL:this.instance.requestRouter.endpointFor("ui")},d?{instrument:!1}:{});return(U.localStorage.setItem(rs,JSON.stringify(W(W({},p),{},{source:void 0}))),this.getToolbarState()===rn.LOADED)?this._callLoadToolbar(p):this.getToolbarState()===rn.UNINITIALIZED&&(this.setToolbarState(rn.LOADING),null===(a=eh.__PosthogExtensions__)||void 0===a||null===(l=a.loadExternalDependency)||void 0===l||l.call(a,this.instance,"toolbar",t=>{if(t)return rl.error("[Toolbar] Failed to load",t),void this.setToolbarState(rn.UNINITIALIZED);this.setToolbarState(rn.LOADED),this._callLoadToolbar(p)}),ae(U,"turbolinks:load",()=>{this.setToolbarState(rn.UNINITIALIZED),this.loadToolbar(p)})),!0}_loadEditor(t){return this.loadToolbar(t)}maybeLoadEditor(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return this.maybeLoadToolbar(t,a,l)}};var rc=eE("[TracingHeaders]");let Cs=class Cs{constructor(t){V(this,"_restoreXHRPatch",void 0),V(this,"_restoreFetchPatch",void 0),V(this,"_startCapturing",()=>{var t,a,l,c;F(this._restoreXHRPatch)&&(null===(t=eh.__PosthogExtensions__)||void 0===t||null===(a=t.tracingHeadersPatchFns)||void 0===a||a._patchXHR(this.instance.sessionManager)),F(this._restoreFetchPatch)&&(null===(l=eh.__PosthogExtensions__)||void 0===l||null===(c=l.tracingHeadersPatchFns)||void 0===c||c._patchFetch(this.instance.sessionManager))}),this.instance=t}_loadScript(t){var a,l,c;null!==(a=eh.__PosthogExtensions__)&&void 0!==a&&a.tracingHeadersPatchFns&&t(),null===(l=eh.__PosthogExtensions__)||void 0===l||null===(c=l.loadExternalDependency)||void 0===c||c.call(l,this.instance,"tracing-headers",a=>{if(a)return rc.error("failed to load script",a);t()})}startIfEnabledOrStop(){var t,a;this.instance.config.__add_tracing_headers?this._loadScript(this._startCapturing):(null===(t=this._restoreXHRPatch)||void 0===t||t.call(this),null===(a=this._restoreFetchPatch)||void 0===a||a.call(this),this._restoreXHRPatch=void 0,this._restoreFetchPatch=void 0)}};var ru=eE("[Web Vitals]");let Ts=class Ts{constructor(t){var a;V(this,"_enabledServerSide",!1),V(this,"_initialized",!1),V(this,"buffer",{url:void 0,metrics:[],firstMetricTimestamp:void 0}),V(this,"_flushToCapture",()=>{clearTimeout(this._delayedFlushTimer),0!==this.buffer.metrics.length&&(this.instance.capture("$web_vitals",this.buffer.metrics.reduce((t,a)=>W(W({},t),{},{["$web_vitals_".concat(a.name,"_event")]:W({},a),["$web_vitals_".concat(a.name,"_value")]:a.value}),{})),this.buffer={url:void 0,metrics:[],firstMetricTimestamp:void 0})}),V(this,"_addToBuffer",t=>{var a,l=null===(a=this.instance.sessionManager)||void 0===a?void 0:a.checkAndGetSessionAndWindowId(!0);if(F(l))ru.error("Could not read session ID. Dropping metrics!");else{this.buffer=this.buffer||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var c=this._currentURL();F(c)||(A(null==t?void 0:t.name)||A(null==t?void 0:t.value)?ru.error("Invalid metric received",t):this._maxAllowedValue&&t.value>=this._maxAllowedValue?ru.error("Ignoring metric with value >= "+this._maxAllowedValue,t):(this.buffer.url!==c&&(this._flushToCapture(),this._delayedFlushTimer=setTimeout(this._flushToCapture,this.flushToCaptureTimeoutMs)),F(this.buffer.url)&&(this.buffer.url=c),this.buffer.firstMetricTimestamp=F(this.buffer.firstMetricTimestamp)?Date.now():this.buffer.firstMetricTimestamp,t.attribution&&t.attribution.interactionTargetElement&&(t.attribution.interactionTargetElement=void 0),this.buffer.metrics.push(W(W({},t),{},{$current_url:c,$session_id:l.sessionId,$window_id:l.windowId,timestamp:Date.now()})),this.buffer.metrics.length===this.allowedMetrics.length&&this._flushToCapture()))}}),V(this,"_startCapturing",()=>{var t,a,l,c,d=eh.__PosthogExtensions__;F(d)||F(d.postHogWebVitalsCallbacks)||({onLCP:t,onCLS:a,onFCP:l,onINP:c}=d.postHogWebVitalsCallbacks),t&&a&&l&&c?(this.allowedMetrics.indexOf("LCP")>-1&&t(this._addToBuffer.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&a(this._addToBuffer.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&l(this._addToBuffer.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&c(this._addToBuffer.bind(this)),this._initialized=!0):ru.error("web vitals callbacks not loaded - not starting")}),this.instance=t,this._enabledServerSide=!(null===(a=this.instance.persistence)||void 0===a||!a.props[eF]),this.startIfEnabled()}get allowedMetrics(){var t,a,l=P(this.instance.config.capture_performance)?null===(t=this.instance.config.capture_performance)||void 0===t?void 0:t.web_vitals_allowed_metrics:void 0;return F(l)?(null===(a=this.instance.persistence)||void 0===a?void 0:a.props[eN])||["CLS","FCP","INP","LCP"]:l}get flushToCaptureTimeoutMs(){return(P(this.instance.config.capture_performance)?this.instance.config.capture_performance.web_vitals_delayed_flush_ms:void 0)||5e3}get _maxAllowedValue(){var t=P(this.instance.config.capture_performance)&&O(this.instance.config.capture_performance.__web_vitals_max_value)?this.instance.config.capture_performance.__web_vitals_max_value:9e5;return 0<t&&t<=6e4?9e5:t}get isEnabled(){var t=P(this.instance.config.capture_performance)?this.instance.config.capture_performance.web_vitals:void 0;return M(t)?t:this._enabledServerSide}startIfEnabled(){this.isEnabled&&!this._initialized&&(ru.info("enabled, starting..."),this.loadScript(this._startCapturing))}onRemoteConfig(t){var a=P(t.capturePerformance)&&!!t.capturePerformance.web_vitals,l=P(t.capturePerformance)?t.capturePerformance.web_vitals_allowed_metrics:void 0;this.instance.persistence&&(this.instance.persistence.register({[eF]:a}),this.instance.persistence.register({[eN]:l})),this._enabledServerSide=a,this.startIfEnabled()}loadScript(t){var a,l,c;null!==(a=eh.__PosthogExtensions__)&&void 0!==a&&a.postHogWebVitalsCallbacks&&t(),null===(l=eh.__PosthogExtensions__)||void 0===l||null===(c=l.loadExternalDependency)||void 0===c||c.call(l,this.instance,"web-vitals",a=>{a?ru.error("failed to load script",a):t()})}_currentURL(){var t=U?U.location.href:void 0;return t||ru.error("Could not determine current URL"),t}};var rd=eE("[Heatmaps]");function As(t){return P(t)&&"clientX"in t&&"clientY"in t&&O(t.clientX)&&O(t.clientY)}let Os=class Os{constructor(t){var a;V(this,"rageclicks",new bt),V(this,"_enabledServerSide",!1),V(this,"_initialized",!1),V(this,"_flushInterval",null),this.instance=t,this._enabledServerSide=!(null===(a=this.instance.persistence)||void 0===a||!a.props[eP])}get flushIntervalMilliseconds(){var t=5e3;return P(this.instance.config.capture_heatmaps)&&this.instance.config.capture_heatmaps.flush_interval_milliseconds&&(t=this.instance.config.capture_heatmaps.flush_interval_milliseconds),t}get isEnabled(){return F(this.instance.config.capture_heatmaps)?F(this.instance.config.enable_heatmaps)?this._enabledServerSide:this.instance.config.enable_heatmaps:!1!==this.instance.config.capture_heatmaps}startIfEnabled(){if(this.isEnabled)this._initialized||(rd.info("starting..."),this._setupListeners(),this._flushInterval=setInterval(this.flush.bind(this),this.flushIntervalMilliseconds));else{var t,a;clearInterval(null!==(t=this._flushInterval)&&void 0!==t?t:void 0),null===(a=this.deadClicksCapture)||void 0===a||a.stop(),this.getAndClearBuffer()}}onRemoteConfig(t){var a=!!t.heatmaps;this.instance.persistence&&this.instance.persistence.register({[eP]:a}),this._enabledServerSide=a,this.startIfEnabled()}getAndClearBuffer(){var t=this.buffer;return this.buffer=void 0,t}_onDeadClick(t){this._onClick(t.originalEvent,"deadclick")}_setupListeners(){U&&el&&(ae(U,"beforeunload",this.flush.bind(this)),ae(el,"click",t=>this._onClick(t||(null==U?void 0:U.event)),{capture:!0}),ae(el,"mousemove",t=>this._onMouseMove(t||(null==U?void 0:U.event)),{capture:!0}),this.deadClicksCapture=new ni(this.instance,si,this._onDeadClick.bind(this)),this.deadClicksCapture.startIfEnabled(),this._initialized=!0)}_getProperties(t,a){var l=this.instance.scrollManager.scrollY(),c=this.instance.scrollManager.scrollX(),d=this.instance.scrollManager.scrollElement(),p=function(t,a,l){for(var c=t;c&&Ge(c)&&!Je(c,"body")&&c!==l;){if(m(a,null==U?void 0:U.getComputedStyle(c).position))return!0;c=rt(c)}return!1}(it(t),["fixed","sticky"],d);return{x:t.clientX+(p?0:c),y:t.clientY+(p?0:l),target_fixed:p,type:a}}_onClick(t){var a,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"click";if(!Ve(t.target)&&As(t)){var c=this._getProperties(t,l);null!==(a=this.rageclicks)&&void 0!==a&&a.isRageClick(t.clientX,t.clientY,(new Date).getTime())&&this._capture(W(W({},c),{},{type:"rageclick"})),this._capture(c)}}_onMouseMove(t){!Ve(t.target)&&As(t)&&(clearTimeout(this._mouseMoveTimeout),this._mouseMoveTimeout=setTimeout(()=>{this._capture(this._getProperties(t,"mousemove"))},500))}_capture(t){if(U){var a=U.location.href;this.buffer=this.buffer||{},this.buffer[a]||(this.buffer[a]=[]),this.buffer[a].push(t)}}flush(){this.buffer&&!C(this.buffer)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}};let Ms=class Ms{constructor(t){this._instance=t}doPageView(t,a){var l,c=this._previousPageViewProperties(t,a);return this._currentPageview={pathname:null!==(l=null==U?void 0:U.location.pathname)&&void 0!==l?l:"",pageViewId:a,timestamp:t},this._instance.scrollManager.resetContext(),c}doPageLeave(t){var a;return this._previousPageViewProperties(t,null===(a=this._currentPageview)||void 0===a?void 0:a.pageViewId)}doEvent(){var t;return{$pageview_id:null===(t=this._currentPageview)||void 0===t?void 0:t.pageViewId}}_previousPageViewProperties(t,a){var l=this._currentPageview;if(!l)return{$pageview_id:a};var c={$pageview_id:a,$prev_pageview_id:l.pageViewId},d=this._instance.scrollManager.getContext();if(d&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:p,lastScrollY:f,maxScrollY:h,maxContentHeight:g,lastContentY:_,maxContentY:S}=d;if(!(F(p)||F(f)||F(h)||F(g)||F(_)||F(S))){p=Math.ceil(p),f=Math.ceil(f),h=Math.ceil(h),g=Math.ceil(g),_=Math.ceil(_),S=Math.ceil(S);var w=p<=1?1:wi(f/p,0,1),k=p<=1?1:wi(h/p,0,1),E=g<=1?1:wi(_/g,0,1),x=g<=1?1:wi(S/g,0,1);c=X(c,{$prev_pageview_last_scroll:f,$prev_pageview_last_scroll_percentage:w,$prev_pageview_max_scroll:h,$prev_pageview_max_scroll_percentage:k,$prev_pageview_last_content:_,$prev_pageview_last_content_percentage:E,$prev_pageview_max_content:S,$prev_pageview_max_content_percentage:x})}}return l.pathname&&(c.$prev_pageview_pathname=l.pathname),l.timestamp&&(c.$prev_pageview_duration=(t.getTime()-l.timestamp.getTime())/1e3),c}};let Ls=class Ls{constructor(t){this.instance=t}sendExceptionEvent(t){this.instance.capture("$exception",t,{_noTruncate:!0,_batchKey:"exceptionEvent"})}};var rp,rf,rh=eE("[FeatureFlags]"),rg="$active_feature_flags",rm="$override_feature_flags",ry="$feature_flag_payloads",r_="$override_feature_flag_payloads",rb="$feature_flag_request_id",js=t=>{var a={};for(var[l,c]of Z(t||{}))c&&(a[l]=c);return a};(nd=rf||(rf={})).FeatureFlags="feature_flags",nd.Recordings="recordings";let Ws=class Ws{constructor(t){V(this,"_override_warning",!1),V(this,"_hasLoadedFlags",!1),V(this,"_requestInFlight",!1),V(this,"_reloadingDisabled",!1),V(this,"_additionalReloadRequested",!1),V(this,"_decideCalled",!1),V(this,"_flagsLoadedFromRemote",!1),this.instance=t,this.featureFlagEventHandlers=[]}
55decide(){if(this.instance.config.__preview_remote_config)this._decideCalled=!0;else{var t=!this._reloadDebouncer&&(this.instance.config.advanced_disable_feature_flags||this.instance.config.advanced_disable_feature_flags_on_first_load);this._callDecideEndpoint({disableFlags:t})}}get hasLoadedFlags(){return this._hasLoadedFlags}getFlags(){return Object.keys(this.getFlagVariants())}getFlagVariants(){var t=this.instance.get_property(eQ),a=this.instance.get_property(rm);if(!a)return t||{};for(var l=X({},t),c=Object.keys(a),d=0;d<c.length;d++)l[c[d]]=a[c[d]];return this._override_warning||(rh.warn(" Overriding feature flags!",{enabledFlags:t,overriddenFlags:a,finalFlags:l}),this._override_warning=!0),l}getFlagPayloads(){var t=this.instance.get_property(ry),a=this.instance.get_property(r_);if(!a)return t||{};for(var l=X({},t||{}),c=Object.keys(a),d=0;d<c.length;d++)l[c[d]]=a[c[d]];return this._override_warning||(rh.warn(" Overriding feature flag payloads!",{flagPayloads:t,overriddenPayloads:a,finalPayloads:l}),this._override_warning=!0),l}reloadFeatureFlags(){this._reloadingDisabled||this.instance.config.advanced_disable_feature_flags||this._reloadDebouncer||(this._reloadDebouncer=setTimeout(()=>{this._callDecideEndpoint()},5))}clearDebouncer(){clearTimeout(this._reloadDebouncer),this._reloadDebouncer=void 0}ensureFlagsLoaded(){this._hasLoadedFlags||this._requestInFlight||this._reloadDebouncer||this.reloadFeatureFlags()}setAnonymousDistinctId(t){this.$anon_distinct_id=t}setReloadingPaused(t){this._reloadingDisabled=t}_callDecideEndpoint(t){var a;if(this.clearDebouncer(),!this.instance.config.advanced_disable_decide){if(this._requestInFlight)this._additionalReloadRequested=!0;else{var l={token:this.instance.config.token,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:W(W({},(null===(a=this.instance.persistence)||void 0===a?void 0:a.get_initial_props())||{}),this.instance.get_property(eX)||{}),group_properties:this.instance.get_property(eJ)};(null!=t&&t.disableFlags||this.instance.config.advanced_disable_feature_flags)&&(l.disable_flags=!0),this._requestInFlight=!0,this.instance._send_request({method:"POST",url:this.instance.requestRouter.endpointFor("api","/decide/?v=3"),data:l,compression:this.instance.config.disable_compression?void 0:_.Base64,timeout:this.instance.config.feature_flag_request_timeout_ms,callback:t=>{var a,c,d,p=!0;200===t.statusCode&&(this._additionalReloadRequested||(this.$anon_distinct_id=void 0),p=!1),this._requestInFlight=!1,this._decideCalled||(this._decideCalled=!0,this.instance._onRemoteConfig(null!==(d=t.json)&&void 0!==d?d:{})),l.disable_flags&&!this._additionalReloadRequested||(this._flagsLoadedFromRemote=!p,t.json&&null!==(a=t.json.quotaLimited)&&void 0!==a&&a.includes(rf.FeatureFlags)?rh.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset.  Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):(this.receivedFeatureFlags(null!==(c=t.json)&&void 0!==c?c:{},p),this._additionalReloadRequested&&(this._additionalReloadRequested=!1,this._callDecideEndpoint())))}})}}}getFeatureFlag(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._hasLoadedFlags||this.getFlags()&&this.getFlags().length>0){var l,c,d,p,f,h=this.getFlagVariants()[t],g="".concat(h),_=this.instance.get_property(rb)||void 0,S=this.instance.get_property(e1)||{};return!a.send_event&&"send_event"in a||t in S&&S[t].includes(g)||(ew(S[t])?S[t].push(g):S[t]=[g],null===(l=this.instance.persistence)||void 0===l||l.register({[e1]:S}),this.instance.capture("$feature_flag_called",{$feature_flag:t,$feature_flag_response:h,$feature_flag_payload:this.getFeatureFlagPayload(t)||null,$feature_flag_request_id:_,$feature_flag_bootstrapped_response:(null===(c=this.instance.config.bootstrap)||void 0===c||null===(d=c.featureFlags)||void 0===d?void 0:d[t])||null,$feature_flag_bootstrapped_payload:(null===(p=this.instance.config.bootstrap)||void 0===p||null===(f=p.featureFlagPayloads)||void 0===f?void 0:f[t])||null,$used_bootstrap_value:!this._flagsLoadedFromRemote})),h}rh.warn('getFeatureFlag for key "'+t+"\" failed. Feature flags didn't load in time.")}getFeatureFlagPayload(t){return this.getFlagPayloads()[t]}getRemoteConfigPayload(t,a){var l=this.instance.config.token;this.instance._send_request({method:"POST",url:this.instance.requestRouter.endpointFor("api","/decide/?v=3"),data:{distinct_id:this.instance.get_distinct_id(),token:l},compression:this.instance.config.disable_compression?void 0:_.Base64,timeout:this.instance.config.feature_flag_request_timeout_ms,callback:l=>{var c,d=null===(c=l.json)||void 0===c?void 0:c.featureFlagPayloads;a((null==d?void 0:d[t])||void 0)}})}isFeatureEnabled(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._hasLoadedFlags||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(t,a);rh.warn('isFeatureEnabled for key "'+t+"\" failed. Feature flags didn't load in time.")}addFeatureFlagsHandler(t){this.featureFlagEventHandlers.push(t)}removeFeatureFlagsHandler(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(a=>a!==t)}receivedFeatureFlags(t,a){if(this.instance.persistence){this._hasLoadedFlags=!0;var l=this.getFlagVariants(),c=this.getFlagPayloads();(function(t,a){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},d=t.featureFlags,p=t.featureFlagPayloads,f=t.requestId;if(d){if(ew(d)){var h={};if(d)for(var g=0;g<d.length;g++)h[d[g]]=!0;a&&a.register({[rg]:d,[eQ]:h})}else{var _=d,S=p;t.errorsWhileComputingFlags&&(_=W(W({},l),_),S=W(W({},c),S)),a&&a.register(W({[rg]:Object.keys(js(_)),[eQ]:_||{},[ry]:S||{}},f?{[rb]:f}:{}))}}})(t,this.instance.persistence,l,c),this._fireFeatureFlagsCallbacks(a)}}override(t){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];rh.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:t,suppressWarning:a})}overrideFeatureFlags(t){if(!this.instance.__loaded||!this.instance.persistence)return rh.uninitializedWarning("posthog.feature_flags.overrideFeatureFlags");if(!1===t)return this.instance.persistence.unregister(rm),this.instance.persistence.unregister(r_),void this._fireFeatureFlagsCallbacks();if(t&&"object"==typeof t&&("flags"in t||"payloads"in t)){var a;if(this._override_warning=!!(null!==(a=t.suppressWarning)&&void 0!==a&&a),"flags"in t){if(!1===t.flags)this.instance.persistence.unregister(rm);else if(t.flags){if(ew(t.flags)){for(var l={},c=0;c<t.flags.length;c++)l[t.flags[c]]=!0;this.instance.persistence.register({[rm]:l})}else this.instance.persistence.register({[rm]:t.flags})}}return"payloads"in t&&(!1===t.payloads?this.instance.persistence.unregister(r_):t.payloads&&this.instance.persistence.register({[r_]:t.payloads})),void this._fireFeatureFlagsCallbacks()}this._fireFeatureFlagsCallbacks()}onFeatureFlags(t){if(this.addFeatureFlagsHandler(t),this._hasLoadedFlags){var{flags:a,flagVariants:l}=this._prepareFeatureFlagsForCallbacks();t(a,l)}return()=>this.removeFeatureFlagsHandler(t)}updateEarlyAccessFeatureEnrollment(t,a){var l,c=(this.instance.get_property(eK)||[]).find(a=>a.flagKey===t),d={["$feature_enrollment/".concat(t)]:a},p={$feature_flag:t,$feature_enrollment:a,$set:d};c&&(p.$early_access_feature_name=c.name),this.instance.capture("$feature_enrollment_update",p),this.setPersonPropertiesForFlags(d,!1);var f=W(W({},this.getFlagVariants()),{},{[t]:a});null===(l=this.instance.persistence)||void 0===l||l.register({[rg]:Object.keys(js(f)),[eQ]:f}),this._fireFeatureFlagsCallbacks()}getEarlyAccessFeatures(t){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=this.instance.get_property(eK);if(l&&!a)return t(l);this.instance._send_request({url:this.instance.requestRouter.endpointFor("api","/api/early_access_features/?token=".concat(this.instance.config.token)),method:"GET",callback:a=>{var l;if(a.json){var c=a.json.earlyAccessFeatures;return null===(l=this.instance.persistence)||void 0===l||l.register({[eK]:c}),t(c)}}})}_prepareFeatureFlagsForCallbacks(){var t=this.getFlags(),a=this.getFlagVariants();return{flags:t.filter(t=>a[t]),flagVariants:Object.keys(a).filter(t=>a[t]).reduce((t,l)=>(t[l]=a[l],t),{})}}_fireFeatureFlagsCallbacks(t){var{flags:a,flagVariants:l}=this._prepareFeatureFlagsForCallbacks();
55this.featureFlagEventHandlers.forEach(c=>c(a,l,{errorsLoading:t}))}setPersonPropertiesForFlags(t){var a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],l=this.instance.get_property(eX)||{};this.instance.register({[eX]:W(W({},l),t)}),a&&this.instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this.instance.unregister(eX)}setGroupPropertiesForFlags(t){var a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],l=this.instance.get_property(eJ)||{};0!==Object.keys(l).length&&Object.keys(l).forEach(a=>{l[a]=W(W({},l[a]),t[a]),delete t[a]}),this.instance.register({[eJ]:W(W({},l),t)}),a&&this.instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(t){if(t){var a=this.instance.get_property(eJ)||{};this.instance.register({[eJ]:W(W({},a),{},{[t]:{}})})}else this.instance.unregister(eJ)}};var rS="Mobile",rw="Android",rk="Tablet",rE=rw+" "+rk,rC="iPad",rx="Apple",rT=rx+" Watch",rI="Safari",rO="BlackBerry",rR="Samsung",rM=rR+"Browser",rP=rR+" Internet",rA="Chrome",rF=rA+" OS",rD=rA+" iOS",rN="Internet Explorer",rL=rN+" "+rS,rj="Opera",r$=rj+" Mini",rB="Edge",rH="Microsoft "+rB,rW="Firefox",rq=rW+" iOS",rV="Nintendo",rz="PlayStation",rU="Xbox",rZ=rw+" "+rS,rG=rS+" "+rI,rQ="Windows",rK=rQ+" Phone",rX="Nokia",rJ="Ouya",rY="Generic",r0=rY+" "+rS.toLowerCase(),r1=rY+" "+rk.toLowerCase(),r2="Konqueror",r3="(\\d+(\\.\\d+)?)",r5=RegExp("Version/"+r3),r6=RegExp(rU,"i"),r8=RegExp(rz+" \\w+","i"),r4=RegExp(rV+" \\w+","i"),r9=RegExp(rO+"|PlayBook|BB10","i"),r7={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},Lr=(t,a)=>a&&m(a,rx)||m(t,rI)&&!m(t,rA)&&!m(t,rw),Dr=function(t,a){return a=a||"",m(t," OPR/")&&m(t,"Mini")?r$:m(t," OPR/")?rj:r9.test(t)?rO:m(t,"IE"+rS)||m(t,"WPDesktop")?rL:m(t,rM)?rP:m(t,rB)||m(t,"Edg/")?rH:m(t,"FBIOS")?"Facebook "+rS:m(t,"UCWEB")||m(t,"UCBrowser")?"UC Browser":m(t,"CriOS")?rD:m(t,"CrMo")||m(t,rA)?rA:m(t,rw)&&m(t,rI)?rZ:m(t,"FxiOS")?rq:m(t.toLowerCase(),r2.toLowerCase())?r2:Lr(t,a)?m(t,rS)?rG:rI:m(t,rW)?rW:m(t,"MSIE")||m(t,"Trident/")?rN:m(t,"Gecko")?rW:""},ne={[rL]:[RegExp("rv:"+r3)],[rH]:[RegExp(rB+"?\\/"+r3)],[rA]:[RegExp("("+rA+"|CrMo)\\/"+r3)],[rD]:[RegExp("CriOS\\/"+r3)],"UC Browser":[RegExp("(UCBrowser|UCWEB)\\/"+r3)],[rI]:[r5],[rG]:[r5],[rj]:[RegExp("(Opera|OPR)\\/"+r3)],[rW]:[RegExp(rW+"\\/"+r3)],[rq]:[RegExp("FxiOS\\/"+r3)],[r2]:[RegExp("Konqueror[:/]?"+r3,"i")],[rO]:[RegExp(rO+" "+r3),r5],[rZ]:[RegExp("android\\s"+r3,"i")],[rP]:[RegExp(rM+"\\/"+r3)],[rN]:[RegExp("(rv:|MSIE )"+r3)],Mozilla:[RegExp("rv:"+r3)]},nt=[[RegExp(rU+"; "+rU+" (.*?)[);]","i"),t=>[rU,t&&t[1]||""]],[RegExp(rV,"i"),[rV,""]],[RegExp(rz,"i"),[rz,""]],[r9,[rO,""]],[RegExp(rQ,"i"),(t,a)=>{if(/Phone/.test(a)||/WPDesktop/.test(a))return[rK,""];if(new RegExp(rS).test(a)&&!/IEMobile\b/.test(a))return[rQ+" "+rS,""];var l=/Windows NT ([0-9.]+)/i.exec(a);if(l&&l[1]){var c=r7[l[1]]||"";return/arm/i.test(a)&&(c="RT"),[rQ,c]}return[rQ,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,t=>t&&t[3]?["iOS",[t[3],t[4],t[5]||"0"].join(".")]:["iOS",""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,t=>{var a="";return t&&t.length>=3&&(a=F(t[2])?t[3]:t[2]),["watchOS",a]}],[RegExp("("+rw+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+rw+")","i"),t=>t&&t[2]?[rw,[t[2],t[3],t[4]||"0"].join(".")]:[rw,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,t=>{var a=["Mac OS X",""];if(t&&t[1]){var l=[t[1],t[2],t[3]||"0"];a[1]=l.join(".")}return a}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[rF,""]],[/Linux|debian/i,["Linux",""]]],Br=function(t){return r4.test(t)?rV:r8.test(t)?rz:r6.test(t)?rU:RegExp(rJ,"i").test(t)?rJ:RegExp("("+rK+"|WPDesktop)","i").test(t)?rK:/iPad/.test(t)?rC:/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(t)?rT:r9.test(t)?rO:/(kobo)\s(ereader|touch)/i.test(t)?"Kobo":RegExp(rX,"i").test(t)?rX:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(t)||/(kf[a-z]+)( bui|\)).+silk\//i.test(t)?"Kindle Fire":/(Android|ZTE)/i.test(t)?!new RegExp(rS).test(t)||/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(t)?/pixel[\daxl ]{1,6}/i.test(t)&&!/pixel c/i.test(t)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(t)||/lmy47v/i.test(t)&&!/QTAQZ3/i.test(t)?rw:rE:rw:RegExp("(pda|"+rS+")","i").test(t)?r0:RegExp(rk,"i").test(t)&&!RegExp(rk+" pc","i").test(t)?r1:""},nr="https?://(.*)",nn=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","irclid","_kx"],na=Q(["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid"],nn),nl="<masked>",nc={campaignParams:function(){var{customTrackedParams:t,maskPersonalDataProperties:a,customPersonalDataProperties:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!el)return{};var c=a?Q([],nn,l||[]):[];return this._campaignParamsFromUrl(xt(el.URL,c,nl),t)},_campaignParamsFromUrl:function(t,a){var l=na.concat(a||[]),c={};return K(l,function(a){var l=Et(t,a);c[a]=l||null}),c},_searchEngine:function(t){return t?0===t.search(nr+"google.([^/?]*)")?"google":0===t.search(nr+"bing.com")?"bing":0===t.search(nr+"yahoo.com")?"yahoo":0===t.search(nr+"duckduckgo.com")?"duckduckgo":null:null},_searchInfoFromReferrer:function(t){var a=nc._searchEngine(t),l="yahoo"!=a?"q":"p",c={};if(!$(a)){c.$search_engine=a;var d=el?Et(el.referrer,l):"";d.length&&(c.ph_keyword=d)}return c},searchInfo:function(){var t=null==el?void 0:el.referrer;return t?this._searchInfoFromReferrer(t):{}},browser:Dr,browserVersion:function(t,a){var l=ne[Dr(t,a)];if(F(l))return null;for(var c=0;c<l.length;c++){var d=l[c],p=t.match(d);if(p)return parseFloat(p[p.length-2])}return null},browserLanguage:function(){return navigator.language||navigator.userLanguage},browserLanguagePrefix:function(){var t=this.browserLanguage();return"string"==typeof t?t.split("-")[0]:void 0},os:function(t){for(var a=0;a<nt.length;a++){var[l,c]=nt[a],d=l.exec(t),p=d&&(I(c)?c(d,t):c);if(p)return p}return["",""]},device:Br,deviceType:function(t){var a=Br(t);return a===rC||a===rE||"Kobo"===a||"Kindle Fire"===a||a===r1?rk:a===rV||a===rU||a===rz||a===rJ?"Console":a===rT?"Wearable":a?rS:"Desktop"},referrer:function(){return(null==el?void 0:el.referrer)||"$direct"},referringDomain:function(){var t;return null!=el&&el.referrer&&(null===(t=St(el.referrer))||void 0===t?void 0:t.host)||"$direct"},referrerInfo:function(){return{$referrer:this.referrer(),$referring_domain:this.referringDomain()}},personInfo:function(){var{maskPersonalDataProperties:t,customPersonalDataProperties:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=t?Q([],nn,a||[]):[],c=null==ec?void 0:ec.href.substring(0,1e3);return{r:this.referrer().substring(0,1e3),u:c?xt(c,l,nl):void 0}},personPropsFromInfo:function(t){var a,{r:l,u:c}=t,d={$referrer:l,$referring_domain:null==l?void 0:"$direct"==l?"$direct":null===(a=St(l))||void 0===a?void 0:a.host};
55if(c){d.$current_url=c;var p=St(c);d.$host=null==p?void 0:p.host,d.$pathname=null==p?void 0:p.pathname,X(d,this._campaignParamsFromUrl(c))}return l&&X(d,this._searchInfoFromReferrer(l)),d},initialPersonPropsFromInfo:function(t){var a=this.personPropsFromInfo(t),l={};return K(a,function(t,a){l["$initial_".concat(b(a))]=t}),l},timezone:function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(t){return}},timezoneOffset:function(){try{return(new Date).getTimezoneOffset()}catch(t){return}},properties:function(){var{maskPersonalDataProperties:t,customPersonalDataProperties:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ef)return{};var l=t?Q([],nn,a||[]):[],[c,d]=nc.os(ef);return X(ie({$os:c,$os_version:d,$browser:nc.browser(ef,navigator.vendor),$device:nc.device(ef),$device_type:nc.deviceType(ef),$timezone:nc.timezone(),$timezone_offset:nc.timezoneOffset()}),{$current_url:xt(null==ec?void 0:ec.href,l,nl),$host:null==ec?void 0:ec.host,$pathname:null==ec?void 0:ec.pathname,$raw_user_agent:ef.length>1e3?ef.substring(0,997)+"...":ef,$browser_version:nc.browserVersion(ef,navigator.vendor),$browser_language:nc.browserLanguage(),$browser_language_prefix:nc.browserLanguagePrefix(),$screen_height:null==U?void 0:U.screen.height,$screen_width:null==U?void 0:U.screen.width,$viewport_height:null==U?void 0:U.innerHeight,$viewport_width:null==U?void 0:U.innerWidth,$lib:"web",$lib_version:eg.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})},people_properties:function(){if(!ef)return{};var[t,a]=nc.os(ef);return X(ie({$os:t,$os_version:a,$browser:nc.browser(ef,navigator.vendor)}),{$browser_version:nc.browserVersion(ef,navigator.vendor)})}},nu=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];let Gr=class Gr{constructor(t){var a;this.config=t,this.props={},this.campaign_params_saved=!1,this.name=(a="",t.token&&(a=t.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),t.persistence_name?"ph_"+t.persistence_name:"ph_"+a+"_posthog"),this.storage=this.buildStorage(t),this.load(),t.debug&&ek.info("Persistence loaded",t.persistence,W({},this.props)),this.update_config(t,t),this.save()}buildStorage(t){-1===nu.indexOf(t.persistence.toLowerCase())&&(ek.critical("Unknown persistence type "+t.persistence+"; falling back to localStorage+cookie"),t.persistence="localStorage+cookie");var a=t.persistence.toLowerCase();return"localstorage"===a&&tw.is_supported()?tw:"localstorage+cookie"===a&&tE.is_supported()?tE:"sessionstorage"===a&&tI.is_supported()?tI:"memory"===a?tx:"cookie"===a?tb:tE.is_supported()?tE:tb}properties(){var t={};return K(this.props,function(a,l){if(l===eQ&&P(a))for(var c,d=Object.keys(a),p=0;p<d.length;p++)t["$feature/".concat(d[p])]=a[d[p]];else c=!1,($(tn)?c:ei&&tn.indexOf===ei?-1!=tn.indexOf(l):(K(tn,function(t){if(c||(c=t===l))return ex}),c))||(t[l]=a)}),t}load(){if(!this.disabled){var t=this.storage.parse(this.name);t&&(this.props=X({},t))}}save(){this.disabled||this.storage.set(this.name,this.props,this.expire_days,this.cross_subdomain,this.secure,this.config.debug)}remove(){this.storage.remove(this.name,!1),this.storage.remove(this.name,!0)}clear(){this.remove(),this.props={}}register_once(t,a,l){if(P(t)){F(a)&&(a="None"),this.expire_days=F(l)?this.default_expiry:l;var c=!1;if(K(t,(t,l)=>{this.props.hasOwnProperty(l)&&this.props[l]!==a||(this.props[l]=t,c=!0)}),c)return this.save(),!0}return!1}register(t,a){if(P(t)){this.expire_days=F(a)?this.default_expiry:a;var l=!1;if(K(t,(a,c)=>{t.hasOwnProperty(c)&&this.props[c]!==a&&(this.props[c]=a,l=!0)}),l)return this.save(),!0}return!1}unregister(t){t in this.props&&(delete this.props[t],this.save())}update_campaign_params(){if(!this.campaign_params_saved){var t=nc.campaignParams({customTrackedParams:this.config.custom_campaign_params,maskPersonalDataProperties:this.config.mask_personal_data_properties,customPersonalDataProperties:this.config.custom_personal_data_properties});C(ie(t))||this.register(t),this.campaign_params_saved=!0}}update_search_keyword(){this.register(nc.searchInfo())}update_referrer_info(){this.register_once(nc.referrerInfo(),void 0)}set_initial_person_info(){this.props[e6]||this.props[e8]||this.register_once({[e4]:nc.personInfo({maskPersonalDataProperties:this.config.mask_personal_data_properties,customPersonalDataProperties:this.config.custom_personal_data_properties})},void 0)}get_referrer_info(){return ie({$referrer:this.props.$referrer,$referring_domain:this.props.$referring_domain})}get_initial_props(){var t={};K([e8,e6],a=>{var l=this.props[a];l&&K(l,function(a,l){t["$initial_"+b(l)]=a})});var a=this.props[e4];return a&&X(t,nc.initialPersonPropsFromInfo(a)),t}safe_merge(t){return K(this.props,function(a,l){l in t||(t[l]=a)}),t}update_config(t,a){if(this.default_expiry=this.expire_days=t.cookie_expiration,this.set_disabled(t.disable_persistence),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie),t.persistence!==a.persistence){var l=this.buildStorage(t),c=this.props;this.clear(),this.storage=l,this.props=c,this.save()}}set_disabled(t){this.disabled=t,this.disabled?this.remove():this.save()}set_cross_subdomain(t){t!==this.cross_subdomain&&(this.cross_subdomain=t,this.remove(),this.save())}
55get_cross_subdomain(){return!!this.cross_subdomain}set_secure(t){t!==this.secure&&(this.secure=t,this.remove(),this.save())}set_event_timer(t,a){var l=this.props[eR]||{};l[t]=a,this.props[eR]=l,this.save()}remove_event_timer(t){var a=(this.props[eR]||{})[t];return F(a)||(delete this.props[eR][t],this.save()),a}get_property(t){return this.props[t]}set_property(t,a){this.props[t]=a,this.save()}};var nd,np,nf,nh,ng,nm,nv,ny,n_,nb,nS,nw,nk,nE={},nC=[],nx=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,nT=Array.isArray;function dn(t,a){for(var l in a)t[l]=a[l];return t}function hn(t){var a=t.parentNode;a&&a.removeChild(t)}function _n(t,a,l,c,d){var p={type:t,props:a,key:l,ref:c,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==d?++nh:d,__i:-1,__u:0};return null==d&&null!=nf.vnode&&nf.vnode(p),p}function pn(t){return t.children}function gn(t,a){this.props=t,this.context=a}function vn(t,a){if(null==a)return t.__?vn(t.__,t.__i+1):null;for(var l;a<t.__k.length;a++)if(null!=(l=t.__k[a])&&null!=l.__e)return l.__e;return"function"==typeof t.type?vn(t):null}function mn(t){(!t.__d&&(t.__d=!0)&&ng.push(t)&&!yn.__r++||nm!==nf.debounceRendering)&&((nm=nf.debounceRendering)||nv)(yn)}function yn(){var t,a,l,c,d,p,f,h,g;for(ng.sort(ny);t=ng.shift();)t.__d&&(a=ng.length,c=void 0,p=(d=(l=t).__v).__e,h=[],g=[],(f=l.__P)&&((c=dn({},d)).__v=d.__v+1,nf.vnode&&nf.vnode(c),Cn(f,c,d,l.__n,void 0!==f.ownerSVGElement,32&d.__u?[p]:null,h,null==p?vn(d):p,!!(32&d.__u),g),c.__.__k[c.__i]=c,function(t,a,l){a.__d=void 0;for(var c=0;c<l.length;c++)Tn(l[c],l[++c],l[++c]);nf.__c&&nf.__c(a,t),t.some(function(a){try{t=a.__h,a.__h=[],t.some(function(t){t.call(a)})}catch(t){nf.__e(t,a.__v)}})}(h,c,g),c.__e!=p&&function fn(t){var a,l;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,a=0;a<t.__k.length;a++)if(null!=(l=t.__k[a])&&null!=l.__e){t.__e=t.__c.base=l.__e;break}return fn(t)}}(c)),ng.length>a&&ng.sort(ny));yn.__r=0}function bn(t,a,l,c,d,p,f,h,g,_,S){var w,k,E,x,B,H=c&&c.__k||nC,U=a.length;for(l.__d=g,function(t,a,l){var c,d,p,f,h,g=a.length,_=l.length,S=_,w=0;for(t.__k=[],c=0;c<g;c++)null!=(d=t.__k[c]=null==(d=a[c])||"boolean"==typeof d||"function"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d||d.constructor==String?_n(null,d,null,null,d):nT(d)?_n(pn,{children:d},null,null,null):void 0===d.constructor&&d.__b>0?_n(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)?(d.__=t,d.__b=t.__b+1,h=function(t,a,l,c){var d=t.key,p=t.type,f=l-1,h=l+1,g=a[l];if(null===g||g&&d==g.key&&p===g.type)return l;if(c>(null!=g&&0==(131072&g.__u)?1:0))for(;f>=0||h<a.length;){if(f>=0){if((g=a[f])&&0==(131072&g.__u)&&d==g.key&&p===g.type)return f;f--}if(h<a.length){if((g=a[h])&&0==(131072&g.__u)&&d==g.key&&p===g.type)return h;h++}}return -1}(d,l,f=c+w,S),d.__i=h,p=null,-1!==h&&(S--,(p=l[h])&&(p.__u|=131072)),null==p||null===p.__v?(-1==h&&w--,"function"!=typeof d.type&&(d.__u|=65536)):h!==f&&(h===f+1?w++:h>f?S>g-f?w+=h-f:w--:w=h<f&&h==f-1?h-f:0,h!==c+w&&(d.__u|=65536))):(p=l[c])&&null==p.key&&p.__e&&(p.__e==t.__d&&(t.__d=vn(p)),$n(p,p,!1),l[c]=null,S--);if(S)for(c=0;c<_;c++)null!=(p=l[c])&&0==(131072&p.__u)&&(p.__e==t.__d&&(t.__d=vn(p)),$n(p,p))}(l,a,H),g=l.__d,w=0;w<U;w++)null!=(E=l.__k[w])&&"boolean"!=typeof E&&"function"!=typeof E&&(k=-1===E.__i?nE:H[E.__i]||nE,E.__i=w,Cn(t,E,k,d,p,f,h,g,_,S),x=E.__e,E.ref&&k.ref!=E.ref&&(k.ref&&Tn(k.ref,null,E),S.push(E.ref,E.__c||x,E)),null==B&&null!=x&&(B=x),65536&E.__u||k.__k===E.__k?g=function Sn(t,a,l){var c,d;if("function"==typeof t.type){for(c=t.__k,d=0;c&&d<c.length;d++)c[d]&&(c[d].__=t,a=Sn(c[d],a,l));return a}return t.__e!=a&&(l.insertBefore(t.__e,a||null),a=t.__e),a&&a.nextSibling}(E,g,t):"function"==typeof E.type&&void 0!==E.__d?g=E.__d:x&&(g=x.nextSibling),E.__d=void 0,E.__u&=-196609);l.__d=g,l.__e=B}function En(t,a,l){"-"===a[0]?t.setProperty(a,null==l?"":l):t[a]=null==l?"":"number"!=typeof l||nx.test(a)?l:l+"px"}function xn(t,a,l,c,d){var p;e:if("style"===a){if("string"==typeof l)t.style.cssText=l;else{if("string"==typeof c&&(t.style.cssText=c=""),c)for(a in c)l&&a in l||En(t.style,a,"");if(l)for(a in l)c&&l[a]===c[a]||En(t.style,a,l[a])}}else if("o"===a[0]&&"n"===a[1])p=a!==(a=a.replace(/(PointerCapture)$|Capture$/,"$1")),a=a.toLowerCase() in t?a.toLowerCase().slice(2):a.slice(2),t.l||(t.l={}),t.l[a+p]=l,l?c?l.u=c.u:(l.u=Date.now(),t.addEventListener(a,p?Pn:In,p)):t.removeEventListener(a,p?Pn:In,p);else{if(d)a=a.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==a&&"height"!==a&&"href"!==a&&"list"!==a&&"form"!==a&&"tabIndex"!==a&&"download"!==a&&"rowSpan"!==a&&"colSpan"!==a&&"role"!==a&&a in t)try{t[a]=null==l?"":l;break e}catch(t){}"function"==typeof l||(null==l||!1===l&&"-"!==a[4]?t.removeAttribute(a):t.setAttribute(a,l))}}function In(t){var a=this.l[t.type+!1];if(t.t){if(t.t<=a.u)return}else t.t=Date.now();return a(nf.event?nf.event(t):t)}function Pn(t){return this.l[t.type+!0](nf.event?nf.event(t):t)}function Cn(t,a,l,c,d,p,f,h,g,_){var S,w,k,E,x,B,H,U,J,er,en,ei,ea,el,ec,eu=a.type;if(void 0!==a.constructor)return null;128&l.__u&&(g=!!(32&l.__u),p=[h=a.__e=l.__e]),(S=nf.__b)&&S(a);e:if("function"==typeof eu)try{if(U=a.props,J=(S=eu.contextType)&&c[S.__c],er=S?J?J.props.value:S.__:c,l.__c?H=(w=a.__c=l.__c).__=w.__E:("prototype"in eu&&eu.prototype.render?a.__c=w=new eu(U,er):(a.__c=w=new gn(U,er),w.constructor=eu,w.render=An),J&&J.sub(w),w.props=U,w.state||(w.state={}),w.context=er,w.__n=c,k=w.__d=!0,w.__h=[],w._sb=[]),null==w.__s&&(w.__s=w.state),null!=eu.getDerivedStateFromProps&&(w.__s==w.state&&(w.__s=dn({},w.__s)),dn(w.__s,eu.getDerivedStateFromProps(U,w.__s))),E=w.props,x=w.state,w.__v=a,k)null==eu.getDerivedStateFromProps&&null!=w.componentWillMount&&w.componentWillMount(),null!=w.componentDidMount&&w.__h.push(w.componentDidMount);else{if(null==eu.getDerivedStateFromProps&&U!==E&&null!=w.componentWillReceiveProps&&w.componentWillReceiveProps(U,er),!w.__e&&(null!=w.shouldComponentUpdate&&!1===w.shouldComponentUpdate(U,w.__s,er)||a.__v===l.__v)){for(a.__v!==l.__v&&(w.props=U,w.state=w.__s,w.__d=!1),a.__e=l.__e,a.__k=l.__k,a.__k.forEac
vendor: 3,576 bytes, line 55
55h(function(t){t&&(t.__=a)}),en=0;en<w._sb.length;en++)w.__h.push(w._sb[en]);w._sb=[],w.__h.length&&f.push(w);break e}null!=w.componentWillUpdate&&w.componentWillUpdate(U,w.__s,er),null!=w.componentDidUpdate&&w.__h.push(function(){w.componentDidUpdate(E,x,B)})}if(w.context=er,w.props=U,w.__P=t,w.__e=!1,ei=nf.__r,ea=0,"prototype"in eu&&eu.prototype.render){for(w.state=w.__s,w.__d=!1,ei&&ei(a),S=w.render(w.props,w.state,w.context),el=0;el<w._sb.length;el++)w.__h.push(w._sb[el]);w._sb=[]}else do w.__d=!1,ei&&ei(a),S=w.render(w.props,w.state,w.context),w.state=w.__s;while(w.__d&&++ea<25);w.state=w.__s,null!=w.getChildContext&&(c=dn(dn({},c),w.getChildContext())),k||null==w.getSnapshotBeforeUpdate||(B=w.getSnapshotBeforeUpdate(E,x)),bn(t,nT(ec=null!=S&&S.type===pn&&null==S.key?S.props.children:S)?ec:[ec],a,l,c,d,p,f,h,g,_),w.base=a.__e,a.__u&=-161,w.__h.length&&f.push(w),H&&(w.__E=w.__=null)}catch(t){a.__v=null,g||null!=p?(a.__e=h,a.__u|=g?160:32,p[p.indexOf(h)]=null):(a.__e=l.__e,a.__k=l.__k),nf.__e(t,a,l)}else null==p&&a.__v===l.__v?(a.__k=l.__k,a.__e=l.__e):a.__e=function(t,a,l,c,d,p,f,h,g){var _,S,w,k,E,x,B,H=l.props,U=a.props,J=a.type;if("svg"===J&&(d=!0),null!=p){for(_=0;_<p.length;_++)if((E=p[_])&&"setAttribute"in E==!!J&&(J?E.localName===J:3===E.nodeType)){t=E,p[_]=null;break}}if(null==t){if(null===J)return document.createTextNode(U);t=d?document.createElementNS("http://www.w3.org/2000/svg",J):document.createElement(J,U.is&&U),p=null,h=!1}if(null===J)H===U||h&&t.data===U||(t.data=U);else{if(p=p&&np.call(t.childNodes),H=l.props||nE,!h&&null!=p)for(H={},_=0;_<t.attributes.length;_++)H[(E=t.attributes[_]).name]=E.value;for(_ in H)E=H[_],"children"==_||("dangerouslySetInnerHTML"==_?w=E:"key"===_||_ in U||xn(t,_,null,E,d));for(_ in U)E=U[_],"children"==_?k=E:"dangerouslySetInnerHTML"==_?S=E:"value"==_?x=E:"checked"==_?B=E:"key"===_||h&&"function"!=typeof E||H[_]===E||xn(t,_,E,H[_],d);if(S)h||w&&(S.__html===w.__html||S.__html===t.innerHTML)||(t.innerHTML=S.__html),a.__k=[];else if(w&&(t.innerHTML=""),bn(t,nT(k)?k:[k],a,l,c,d&&"foreignObject"!==J,p,f,p?p[0]:l.__k&&vn(l,0),h,g),null!=p)for(_=p.length;_--;)null!=p[_]&&hn(p[_]);h||(_="value",void 0===x||x===t[_]&&("progress"!==J||x)&&("option"!==J||x===H[_])||xn(t,_,x,H[_],!1),_="checked",void 0!==B&&B!==t[_]&&xn(t,_,B,H[_],!1))}return t}(l.__e,a,l,c,d,p,f,g,_);(S=nf.diffed)&&S(a)}function Tn(t,a,l){try{"function"==typeof t?t(a):t.current=a}catch(t){nf.__e(t,l)}}function $n(t,a,l){var c,d;if(nf.unmount&&nf.unmount(t),(c=t.ref)&&(c.current&&c.current!==t.__e||Tn(c,null,a)),null!=(c=t.__c)){if(c.componentWillUnmount)try{c.componentWillUnmount()}catch(t){nf.__e(t,a)}c.base=c.__P=null,t.__c=void 0}if(c=t.__k)for(d=0;d<c.length;d++)c[d]&&$n(c[d],a,l||"function"!=typeof t.type);l||null==t.__e||hn(t.__e),t.__=t.__e=t.__d=void 0}function An(t,a,l){return this.constructor(t,l)}np=nC.slice,nf={__e:function(t,a,l,c){for(var d,p,f;a=a.__;)if((d=a.__c)&&!d.__)try{if((p=d.constructor)&&null!=p.getDerivedStateFromError&&(d.setState(p.getDerivedStateFromError(t)),f=d.__d),null!=d.componentDidCatch&&(d.componentDidCatch(t,c||{}),f=d.__d),f)return d.__E=d}catch(a){t=a}throw t}},nh=0,gn.prototype.setState=function(t,a){var l;l=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=dn({},this.state),"function"==typeof t&&(t=t(dn({},l),this.props)),t&&dn(l,t),null!=t&&this.__v&&(a&&this._sb.push(a),mn(this))},gn.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),mn(this))},gn.prototype.render=pn,ng=[],nv="function"==typeof Promise?Promise.prototype.then.bind(Prom
55ise.resolve()):setTimeout,ny=function(t,a){return t.__v.__b-a.__v.__b},yn.__r=0,n_=0,(n$=nb||(nb={})).Popover="popover",n$.API="api",n$.Widget="widget",(nB=nS||(nS={})).Open="open",nB.MultipleChoice="multiple_choice",nB.SingleChoice="single_choice",nB.Rating="rating",nB.Link="link",(nH=nw||(nw={})).NextQuestion="next_question",nH.End="end",nH.ResponseBased="response_based",nH.SpecificQuestion="specific_question",(nW=nk||(nk={})).Once="once",nW.Recurring="recurring",nW.Always="always",(nV={__c:nq="__cC"+n_++,__:{isPreviewMode:!1,previewPageIndex:0,onPopupSurveyDismissed:()=>{},isPopup:!0,onPreviewSubmit:()=>{},onPopupSurveySent:()=>{}},Consumer:function(t,a){return t.children(a)},Provider:function(t){var a,l;return this.getChildContext||(a=[],(l={})[nq]=this,this.getChildContext=function(){return l},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&a.some(function(t){t.__e=!0,mn(t)})},this.sub=function(t){a.push(t);var l=t.componentWillUnmount;t.componentWillUnmount=function(){a.splice(a.indexOf(t),1),l&&l.call(t)}}),t.children}}).Provider.__=nV.Consumer.contextType=nV;var On=function(t,a){if(!function(t){try{new RegExp(t)}catch(t){return!1}return!0}(a))return!1;try{return new RegExp(a).test(t)}catch(t){return!1}};let Mn=class Mn{constructor(){V(this,"events",{}),this.events={}}on(t,a){return this.events[t]||(this.events[t]=[]),this.events[t].push(a),()=>{this.events[t]=this.events[t].filter(t=>t!==a)}}emit(t,a){for(var l of this.events[t]||[])l(a);for(var c of this.events["*"]||[])c(t,a)}};let Ln=class Ln{constructor(t){V(this,"_debugEventEmitter",new Mn),V(this,"checkStep",(t,a)=>this.checkStepEvent(t,a)&&this.checkStepUrl(t,a)&&this.checkStepElement(t,a)),V(this,"checkStepEvent",(t,a)=>null==a||!a.event||(null==t?void 0:t.event)===(null==a?void 0:a.event)),this.instance=t,this.actionEvents=new Set,this.actionRegistry=new Set}init(){var t,a;F(null===(t=this.instance)||void 0===t?void 0:t._addCaptureHook)||null===(a=this.instance)||void 0===a||a._addCaptureHook((t,a)=>{this.on(t,a)})}register(t){var a,l;if(!F(null===(a=this.instance)||void 0===a?void 0:a._addCaptureHook)&&(t.forEach(t=>{var a,l;null===(a=this.actionRegistry)||void 0===a||a.add(t),null===(l=t.steps)||void 0===l||l.forEach(t=>{var a;null===(a=this.actionEvents)||void 0===a||a.add((null==t?void 0:t.event)||"")})}),null!==(l=this.instance)&&void 0!==l&&l.autocapture)){var c,d=new Set;t.forEach(t=>{var a;null===(a=t.steps)||void 0===a||a.forEach(t=>{null!=t&&t.selector&&d.add(null==t?void 0:t.selector)})}),null===(c=this.instance)||void 0===c||c.autocapture.setElementSelectors(d)}}on(t,a){var l;null!=a&&0!=t.length&&(this.actionEvents.has(t)||this.actionEvents.has(null==a?void 0:a.event))&&this.actionRegistry&&(null===(l=this.actionRegistry)||void 0===l?void 0:l.size)>0&&this.actionRegistry.forEach(t=>{this.checkAction(a,t)&&this._debugEventEmitter.emit("actionCaptured",t.name)})}_addActionHook(t){this.onAction("actionCaptured",a=>t(a))}checkAction(t,a){if(null==(null==a?void 0:a.steps))return!1;for(var l of a.steps)if(this.checkStep(t,l))return!0;return!1}onAction(t,a){return this._debugEventEmitter.on(t,a)}checkStepUrl(t,a){if(null!=a&&a.url){var l,c=null==t||null===(l=t.properties)||void 0===l?void 0:l.$current_url;if(!c||"string"!=typeof c||!Ln.matchString(c,null==a?void 0:a.url,(null==a?void 0:a.url_matching)||"contains"))return!1}return!0}static matchString(t,a,l){switch(l){case"regex":return!!U&&On(t,a);case"exact":return a===t;case"contains":return On(t,Ln.escapeStringRegexp(a).replace(/_/g,".").replace(/%/g,".*"));default:return!1}}static escapeStringRegexp(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}checkStepElement(t,a){if((null!=a&&a.href||null!=a&&a.tag_name||null!=a&&a.text)&&!this.getElementsList(t).some(t=>!(null!=a&&a.href&&!Ln.matchString(t.href||"",null==a?void 0:a.href,(null==a?void 0:a.href_matching)||"exact"))&&(null==a||!a.tag_name||t.tag_name===(null==a?void 0:a.tag_name))&&!(null!=a&&a.text&&!Ln.matchString(t.text||"",null==a?void 0:a.text,(null==a?void 0:a.text_matching)||"exact")&&!Ln.matchString(t.$el_text||"",null==a?void 0:a.text,(null==a?void 0:a.text_matching)||"exact"))))return!1;if(null!=a&&a.selector){var l,c=null==t||null===(l=t.properties)||void 0===l?void 0:l.$element_selectors;if(!c||!c.includes(null==a?void 0:a.selector))return!1}return!0}getElementsList(t){return null==(null==t?void 0:t.properties.$elements)?[]:null==t?void 0:t.properties.$elements}};let Dn=class Dn{constructor(t){this.instance=t,this.eventToSurveys=new Map,this.actionToSurveys=new Map}register(t){var a;F(null===(a=this.instance)||void 0===a?void 0:a._addCaptureHook)||(this.setupEventBasedSurveys(t),this.setupActionBasedSurveys(t))}setupActionBasedSurveys(t){var a=t.filter(t=>{var a,l,c,d;return(null===(a=t.conditions)||void 0===a?void 0:a.actions)&&(null===(l=t.conditions)||void 0===l||null===(c=l.actions)||void 0===c||null===(d=c.values)||void 0===d?void 0:d.length)>0});0!==a.length&&(null==this.actionMatcher&&(this.actionMatcher=new Ln(this.instance),this.actionMatcher.init(),this.actionMatcher._addActionHook(t=>{this.onAction(t)})),a.forEach(t=>{var a,l,c,d,p,f,h,g,_,S;t.conditions&&null!==(a=t.conditions)&&void 0!==a&&a.actions&&null!==(l=t.conditions)&&void 0!==l&&null!==(c=l.actions)&&void 0!==c&&c.values&&(null===(d=t.conditions)||void 0===d||null===(p=d.actions)||void 0===p||null===(f=p.values)||void 0===f?void 0:f.length)>0&&(null===(h=this.actionMatcher)||void 0===h||h.register(t.conditions.actions.values),null===(g=t.conditions)||void 0===g||null===(_=g.actions)||void 0===_||null===(S=_.values)||void 0===S||S.forEac
55h(a=>{if(a&&a.name){var l=this.actionToSurveys.get(a.name);l&&l.push(t.id),this.actionToSurveys.set(a.name,l||[t.id])}}))}))}setupEventBasedSurveys(t){var a;0!==t.filter(t=>{var a,l,c,d;return(null===(a=t.conditions)||void 0===a?void 0:a.events)&&(null===(l=t.conditions)||void 0===l||null===(c=l.events)||void 0===c||null===(d=c.values)||void 0===d?void 0:d.length)>0}).length&&(null===(a=this.instance)||void 0===a||a._addCaptureHook((t,a)=>{this.onEvent(t,a)}),t.forEach(t=>{var a,l,c;null===(a=t.conditions)||void 0===a||null===(l=a.events)||void 0===l||null===(c=l.values)||void 0===c||c.forEach(a=>{if(a&&a.name){var l=this.eventToSurveys.get(a.name);l&&l.push(t.id),this.eventToSurveys.set(a.name,l||[t.id])}})}))}onEvent(t,a){var l,c,d=(null===(l=this.instance)||void 0===l||null===(c=l.persistence)||void 0===c?void 0:c.props[e0])||[];if(Dn.SURVEY_SHOWN_EVENT_NAME==t&&a&&d.length>0){var p,f=null==a||null===(p=a.properties)||void 0===p?void 0:p.$survey_id;if(f){var h=d.indexOf(f);h>=0&&(d.splice(h,1),this._updateActivatedSurveys(d))}}else this.eventToSurveys.has(t)&&this._updateActivatedSurveys(d.concat(this.eventToSurveys.get(t)||[]))}onAction(t){var a,l,c=(null===(a=this.instance)||void 0===a||null===(l=a.persistence)||void 0===l?void 0:l.props[e0])||[];this.actionToSurveys.has(t)&&this._updateActivatedSurveys(c.concat(this.actionToSurveys.get(t)||[]))}_updateActivatedSurveys(t){var a,l;null===(a=this.instance)||void 0===a||null===(l=a.persistence)||void 0===l||l.register({[e0]:[...new Set(t)]})}getSurveys(){var t,a;return(null===(t=this.instance)||void 0===t||null===(a=t.persistence)||void 0===a?void 0:a.props[e0])||[]}getEventToSurveys(){return this.eventToSurveys}_getActionMatcher(){return this.actionMatcher}};V(Dn,"SURVEY_SHOWN_EVENT_NAME","survey shown");var nI=eE("[Surveys]"),nO={icontains:(t,a)=>t.some(t=>a.toLowerCase().includes(t.toLowerCase())),not_icontains:(t,a)=>t.every(t=>!a.toLowerCase().includes(t.toLowerCase())),regex:(t,a)=>t.some(t=>On(a,t)),not_regex:(t,a)=>t.every(t=>!On(a,t)),exact:(t,a)=>t.some(t=>a===t),is_not:(t,a)=>t.every(t=>a!==t)};function Bn(t){return null!=t?t:"icontains"}let Hn=class Hn{constructor(t){V(this,"_isFetchingSurveys",!1),V(this,"_isInitializingSurveys",!1),this.instance=t,this._surveyEventReceiver=null}onRemoteConfig(t){this._decideServerResponse=!!t.surveys,nI.info("decideServerResponse set to ".concat(this._decideServerResponse)),this.loadIfEnabled()}reset(){localStorage.removeItem("lastSeenSurveyDate"),(()=>{for(var t=[],a=0;a<localStorage.length;a++){var l=localStorage.key(a);null!=l&&l.startsWith("seenSurvey_")&&t.push(l)}return t})().forEach(t=>localStorage.removeItem(t))}loadIfEnabled(){if(!this._surveyManager){if(this._isInitializingSurveys)nI.info("Already initializing surveys, skipping...");else if(this.instance.config.disable_surveys)nI.info("Disabled. Not loading surveys.");else{var t=null==eh?void 0:eh.__PosthogExtensions__;if(t){if(this._decideServerResponse){this._isInitializingSurveys=!0;try{var a=t.generateSurveys;if(a)this._surveyManager=a(this.instance),this._isInitializingSurveys=!1,this._surveyEventReceiver=new Dn(this.instance),nI.info("Surveys loaded successfully");else{var l=t.loadExternalDependency;l?l(this.instance,"surveys",a=>{if(a||!t.generateSurveys)return nI.error("Could not load surveys script",a),void(this._isInitializingSurveys=!1);this._surveyManager=t.generateSurveys(this.instance),this._isInitializingSurveys=!1,this._surveyEventReceiver=new Dn(this.instance),nI.info("Surveys loaded successfully")}):(nI.error("PostHog loadExternalDependency extension not found. Cannot load remote config."),this._isInitializingSurveys=!1)}}catch(t){throw nI.error("Error initializing surveys",t),this._isInitializingSurveys=!1,t}}else nI.warn("Decide not loaded yet. Not loading surveys.")}else nI.error("PostHog Extensions not found.")}}}getSurveys(t){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.instance.config.disable_surveys)return nI.info("Disabled. Not loading surveys."),t([]);var l=this.instance.get_property(eY);if(l&&!a)return t(l);if(this._isFetchingSurveys)return t([]);try{this._isFetchingSurveys=!0,this.instance._send_request({url:this.instance.requestRouter.endpointFor("api","/api/surveys/?token=".concat(this.instance.config.token)),method:"GET",timeout:this.instance.config.surveys_request_timeout_ms,callback:a=>{this._isFetchingSurveys=!1;var l=a.statusCode;if(200!==l||!a.json)return nI.error("Surveys API could not be loaded, status: ".concat(l)),t([]);var c,d,p=a.json.surveys||[],f=p.filter(t=>{var a,l,c,d,p,f,h,g,_,S,w,k;return(null===(a=t.conditions)||void 0===a?void 0:a.events)&&(null===(l=t.conditions)||void 0===l||null===(c=l.events)||void 0===c?void 0:c.values)&&(null===(d=t.conditions)||void 0===d||null===(p=d.events)||void 0===p||null===(f=p.values)||void 0===f?void 0:f.length)>0||(null===(h=t.conditions)||void 0===h?void 0:h.actions)&&(null===(g=t.conditions)||void 0===g||null===(_=g.actions)||void 0===_?void 0:_.values)&&(null===(S=t.conditions)||void 0===S||null===(w=S.actions)||void 0===w||null===(k=w.values)||void 0===k?void 0:k.length)>0});return f.length>0&&(null===(d=this._surveyEventReceiver)||void 0===d||d.register(f)),null===(c=this.instance.persistence)||void 0===c||c.register({[eY]:p}),t(p)}})}catch(t){throw this._isFetchingSurveys=!1,t}}isSurveyFeatureFlagEnabled(t){return!t||this.instance.featureFlags.isFeatureEnabled(t)}getActiveMatchingSurveys(t){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];
55this.getSurveys(a=>{var l,c=a.filter(t=>!(!t.start_date||t.end_date)).filter(t=>{if(!t.conditions)return!0;var a,l=function(t){if(null===(a=t.conditions)||void 0===a||!a.url)return!0;var a,l,c,d=null==U||null===(l=U.location)||void 0===l?void 0:l.href;if(!d)return!1;var p=[t.conditions.url];return nO[Bn(null===(c=t.conditions)||void 0===c?void 0:c.urlMatchType)](p,d)}(t),c=null===(a=t.conditions)||void 0===a||!a.selector||(null==el?void 0:el.querySelector(t.conditions.selector)),d=function(t){if(null===(a=t.conditions)||void 0===a||!a.deviceTypes||0===(null===(l=t.conditions)||void 0===l?void 0:l.deviceTypes.length))return!0;if(!ef)return!1;var a,l,c,d=nc.deviceType(ef);return nO[Bn(null===(c=t.conditions)||void 0===c?void 0:c.deviceTypesMatchType)](t.conditions.deviceTypes,d)}(t);return l&&c&&d}),d=null===(l=this._surveyEventReceiver)||void 0===l?void 0:l.getSurveys();return t(c.filter(t=>{if(!(t.linked_flag_key||t.targeting_flag_key||t.internal_targeting_flag_key||null!==(a=t.feature_flag_keys)&&void 0!==a&&a.length))return!0;var a,l,c,p,f,h,g,_,S,w=this.isSurveyFeatureFlagEnabled(t.linked_flag_key),k=this.isSurveyFeatureFlagEnabled(t.targeting_flag_key),E=(null!==(l=null===(c=t.conditions)||void 0===c||null===(p=c.events)||void 0===p||null===(f=p.values)||void 0===f?void 0:f.length)&&void 0!==l?l:0)>0,x=(null!==(h=null===(g=t.conditions)||void 0===g||null===(_=g.actions)||void 0===_||null===(S=_.values)||void 0===S?void 0:S.length)&&void 0!==h?h:0)>0,B=!E&&!x||(null==d?void 0:d.includes(t.id)),H=this._canActivateRepeatedly(t)||this.isSurveyFeatureFlagEnabled(t.internal_targeting_flag_key),U=this.checkFlags(t);return w&&k&&H&&B&&U}))},a)}checkFlags(t){var a;return null===(a=t.feature_flag_keys)||void 0===a||!a.length||t.feature_flag_keys.every(t=>{var{key:a,value:l}=t;return!a||!l||this.instance.featureFlags.isFeatureEnabled(l)})}_canActivateRepeatedly(t){var a;return A(null===(a=eh.__PosthogExtensions__)||void 0===a?void 0:a.canActivateRepeatedly)?(nI.warn("init was not called"),!1):eh.__PosthogExtensions__.canActivateRepeatedly(t)}canRenderSurvey(t){A(this._surveyManager)?nI.warn("init was not called"):this.getSurveys(a=>{var l=a.filter(a=>a.id===t)[0];this._surveyManager.canRenderSurvey(l)})}renderSurvey(t,a){A(this._surveyManager)?nI.warn("init was not called"):this.getSurveys(l=>{var c=l.filter(a=>a.id===t)[0];this._surveyManager.renderSurvey(c,null==el?void 0:el.querySelector(a))})}};var nR=eE("[RateLimiter]");let zn=class zn{constructor(t){var a,l;V(this,"serverLimits",{}),V(this,"lastEventRateLimited",!1),V(this,"checkForLimiting",t=>{var a=t.text;if(a&&a.length)try{(JSON.parse(a).quota_limited||[]).forEach(t=>{nR.info("".concat(t||"events"," is quota limited.")),this.serverLimits[t]=(new Date).getTime()+6e4})}catch(t){return void nR.warn('could not rate limit - continuing. Error: "'.concat(null==t?void 0:t.message,'"'),{text:a})}}),this.instance=t,this.captureEventsPerSecond=(null===(a=t.config.rate_limiting)||void 0===a?void 0:a.events_per_second)||10,this.captureEventsBurstLimit=Math.max((null===(l=t.config.rate_limiting)||void 0===l?void 0:l.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond),this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}clientRateLimitContext(){var t,a,l,c=arguments.length>0&&void 0!==arguments[0]&&arguments[0],d=(new Date).getTime(),p=null!==(t=null===(a=this.instance.persistence)||void 0===a?void 0:a.get_property(e5))&&void 0!==t?t:{tokens:this.captureEventsBurstLimit,last:d};p.tokens+=(d-p.last)/1e3*this.captureEventsPerSecond,p.last=d,p.tokens>this.captureEventsBurstLimit&&(p.tokens=this.captureEventsBurstLimit);var f=p.tokens<1;return f||c||(p.tokens=Math.max(0,p.tokens-1)),!f||this.lastEventRateLimited||c||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to ".concat(this.captureEventsPerSecond," events per second and ").concat(this.captureEventsBurstLimit," events burst limit.")},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=f,null===(l=this.instance.persistence)||void 0===l||l.set_property(e5,p),{isRateLimited:f,remainingTokens:p.tokens}}isServerRateLimited(t){var a=this.serverLimits[t||"events"]||!1;return!1!==a&&(new Date).getTime()<a}};var nM=eE("[RemoteConfig]");let Wn=class Wn{constructor(t){this.instance=t}get remoteConfig(){var t,a;return null===(t=eh._POSTHOG_REMOTE_CONFIG)||void 0===t||null===(a=t[this.instance.config.token])||void 0===a?void 0:a.config}_loadRemoteConfigJs(t){var a,l,c;null!==(a=eh.__PosthogExtensions__)&&void 0!==a&&a.loadExternalDependency?null===(l=eh.__PosthogExtensions__)||void 0===l||null===(c=l.loadExternalDependency)||void 0===c||c.call(l,this.instance,"remote-config",()=>t(this.remoteConfig)):(nM.error("PostHog Extensions not found. Cannot load remote config."),t())}_loadRemoteConfigJSON(t){this.instance._send_request({method:"GET",url:this.instance.requestRouter.endpointFor("assets","/array/".concat(this.instance.config.token,"/config")),callback:a=>{t(a.json)}})}load(){try{if(this.remoteConfig)return nM.info("Using preloaded remote config",this.remoteConfig),void this.onRemoteConfig(this.remoteConfig);if(this.instance.config.advanced_disable_decide)return void nM.warn("Remote config is disabled. Falling back to local config.");this._loadRemoteConfigJs(t=>{if(!t)return nM.info("No config found after loading remote JS config. Falling back to JSON."),void this._loadRemoteConfigJSON(t=>{this.onRemoteConfig(t)});this.onRemoteConfig(t)})}catch(t){nM.error("Error loading remote config",t)}}onRemoteConfig(t){t?this.instance.config.__preview_remote_config?(this.instance._onRemoteConfig(t),!1!==t.hasFeatureFlags&&this.instance.featureFlags.ensureFlagsLoaded()):nM.info("__preview_remote_config is disabled. Logging config instead",t):nM.error("Failed to fetch remote config from PostHog.")}};var Vn=function(t){var a,l,c,d,p="";for(a=l=0,c=(t=(t+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,d=0;d<c;d++){var f=t.charCodeAt(d),h=null;f<128?l++:h=f>127&&f<2048?String.fromCharCode(f>>6|192,63&f|128):String.fromCharCode(f>>12|224,f>>6&63|128,63&f|128),$(h)||(l>a&&(p+=t.substring(a,l)),p+=h,a=l=d+1)}return l>a&&(p+=t.substring(a,t.length)),p},nP=!!ed||!!eu,nA="text/plain",Yn=(t,a)=>{var[l,c]=t.split("?"),d=W({},a);null==c||c.split("&").forEach(t=>{var[a]=t.split("=");delete d[a]});var p=kt(d);return p=p?(c?c+"&":"")+p:c,"".concat(l,"?").concat(p)},Kn=(t,a)=>JSON.stringify(t,(t,a)=>"bigint"==typeof a?a.toString():a,a),Xn=t=>{var{data:a,compression:l}=t;if(a){if(l===_.GZipJS){var c=ns(os(Kn(a)),{mtime:0}
55),d=new Blob([c],{type:nA});return{contentType:nA,body:d,estimatedSize:d.size}}if(l===_.Base64){var p,f="data="+encodeURIComponent("string"==typeof(p=function(t){var a,l,c,d,p,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",h=0,g=0,_="",S=[];if(!t)return t;t=Vn(t);do a=(p=t.charCodeAt(h++)<<16|t.charCodeAt(h++)<<8|t.charCodeAt(h++))>>18&63,l=p>>12&63,c=p>>6&63,d=63&p,S[g++]=f.charAt(a)+f.charAt(l)+f.charAt(c)+f.charAt(d);while(h<t.length);switch(_=S.join(""),t.length%3){case 1:_=_.slice(0,-2)+"==";break;case 2:_=_.slice(0,-1)+"="}return _}(Kn(a)))?p:Kn(p));return{contentType:"application/x-www-form-urlencoded",body:f,estimatedSize:new Blob([f]).size}}var h=Kn(a);return{contentType:"application/json",body:h,estimatedSize:new Blob([h]).size}}},nF=[];eu&&nF.push({transport:"fetch",method:t=>{var a,l,{contentType:c,body:d,estimatedSize:p}=null!==(a=Xn(t))&&void 0!==a?a:{},f=new Headers;K(t.headers,function(t,a){f.append(a,t)}),c&&f.append("Content-Type",c);var h=t.url,g=null;if(ep){var _=new ep;g={signal:_.signal,timeout:setTimeout(()=>_.abort(),t.timeout)}}eu(h,W({method:(null==t?void 0:t.method)||"GET",headers:f,keepalive:"POST"===t.method&&52428.8>(p||0),body:d,signal:null===(l=g)||void 0===l?void 0:l.signal},t.fetchOptions)).then(a=>a.text().then(l=>{var c,d={statusCode:a.status,text:l};if(200===a.status)try{d.json=JSON.parse(l)}catch(t){ek.error(t)}null===(c=t.callback)||void 0===c||c.call(t,d)})).catch(a=>{var l;ek.error(a),null===(l=t.callback)||void 0===l||l.call(t,{statusCode:0,text:a})}).finally(()=>g?clearTimeout(g.timeout):null)}}),ed&&nF.push({transport:"XHR",method:t=>{var a,l=new ed;l.open(t.method||"GET",t.url,!0);var{contentType:c,body:d}=null!==(a=Xn(t))&&void 0!==a?a:{};K(t.headers,function(t,a){l.setRequestHeader(a,t)}),c&&l.setRequestHeader("Content-Type",c),t.timeout&&(l.timeout=t.timeout),l.withCredentials=!0,l.onreadystatechange=()=>{if(4===l.readyState){var a,c={statusCode:l.status,text:l.responseText};if(200===l.status)try{c.json=JSON.parse(l.responseText)}catch(t){}null===(a=t.callback)||void 0===a||a.call(t,c)}},l.send(d)}}),null!=ea&&ea.sendBeacon&&nF.push({transport:"sendBeacon",method:t=>{var a=Yn(t.url,{beacon:"1"});try{var l,{contentType:c,body:d}=null!==(l=Xn(t))&&void 0!==l?l:{},p="string"==typeof d?new Blob([d],{type:c}):d;ea.sendBeacon(a,p)}catch(t){}}});let eo=class eo{constructor(t,a){V(this,"isPaused",!0),V(this,"queue",[]),this.flushTimeoutMs=wi((null==a?void 0:a.flush_interval_ms)||3e3,250,5e3,"flush interval",3e3),this.sendRequest=t}enqueue(t){this.queue.push(t),this.flushTimeout||this.setFlushTimeout()}unload(){this.clearFlushTimeout();var t=Object.values(this.queue.length>0?this.formatQueue():{});[...t.filter(t=>0===t.url.indexOf("/e")),...t.filter(t=>0!==t.url.indexOf("/e"))].map(t=>{this.sendRequest(W(W({},t),{},{transport:"sendBeacon"}))})}enable(){this.isPaused=!1,this.setFlushTimeout()}setFlushTimeout(){var t=this;this.isPaused||(this.flushTimeout=setTimeout(()=>{if(this.clearFlushTimeout(),this.queue.length>0){var a=this.formatQueue();for(var l in a)!function(l){var c=a[l],d=(new Date).getTime();c.data&&ew(c.data)&&K(c.data,t=>{t.offset=Math.abs(t.timestamp-d),delete t.timestamp}),t.sendRequest(c)}(l)}},this.flushTimeoutMs))}clearFlushTimeout(){clearTimeout(this.flushTimeout),this.flushTimeout=void 0}formatQueue(){var t={};return K(this.queue,a=>{var l,c=(a?a.batchKey:null)||a.url;F(t[c])&&(t[c]=W(W({},a),{},{data:[]})),null===(l=t[c].data)||void 0===l||l.push(a.data)}),this.queue=[],t}};var nD=["retriesPerformedSoFar"];let io=class io{constructor(t){V(this,"isPolling",!1),V(this,"pollIntervalMs",3e3),V(this,"queue",[]),this.instance=t,this.queue=[],this.areWeOnline=!0,!F(U)&&"onLine"in U.navigator&&(this.areWeOnline=U.navigator.onLine,ae(U,"online",()=>{this.areWeOnline=!0,this.flush()}),ae(U,"offline",()=>{this.areWeOnline=!1}))}retriableRequest(t){var{retriesPerformedSoFar:a}=t,l=G(t,nD);O(a)&&a>0&&(l.url=Yn(l.url,{retry_count:a})),this.instance._send_request(W(W({},l),{},{callback:t=>{var c;200!==t.statusCode&&(t.statusCode<400||t.statusCode>=500)&&(null!=a?a:0)<10?this.enqueue(W({retriesPerformedSoFar:a},l)):null===(c=l.callback)||void 0===c||c.call(l,t)}}))}enqueue(t){var a,l,c,d=t.retriesPerformedSoFar||0;t.retriesPerformedSoFar=d+1;var p=(c=(Math.random()-.5)*((l=Math.min(18e5,a=3e3*Math.pow(2,d)))-a/2),Math.ceil(l+c)),f=Date.now()+p;this.queue.push({retryAt:f,requestOptions:t});var h="Enqueued failed request for retry in ".concat(p);navigator.onLine||(h+=" (Browser is offline)"),ek.warn(h),this.isPolling||(this.isPolling=!0,this.poll())}poll(){this.poller&&clearTimeout(this.poller),this.poller=setTimeout(()=>{this.areWeOnline&&this.queue.length>0&&this.flush(),this.poll()},this.pollIntervalMs)}flush(){var t=Date.now(),a=[],l=this.queue.filter(l=>l.retryAt<t||(a.push(l),!1));if(this.queue=a,l.length>0)for(var{requestOptions:c}of l)this.retriableRequest(c)}unload(){for(var{requestOptions:t}of(this.poller&&(clearTimeout(this.poller),this.poller=void 0),this.queue))try{this.instance._send_request(W(W({},t),{},{transport:"sendBeacon"}))}catch(t){ek.error(t)}this.queue=[]}};let so=class so{constructor(t){V(this,"_updateScrollData",()=>{this.context||(this.context={});var t,a,l,c,d=this.scrollElement(),p=this.scrollY(),f=d?Math.max(0,d.scrollHeight-d.clientHeight):0,h=p+((null==d?void 0:d.clientHeight)||0),g=(null==d?void 0:d.scrollHeight)||0;this.context.lastScrollY=Math.ceil(p),this.context.maxScrollY=Math.max(p,null!==(t=this.context.maxScrollY)&&void 0!==t?t:0),this.context.maxScrollHeight=Math.max(f,null!==(a=this.context.maxScrollHeight)&&void 0!==a?a:0),this.context.lastContentY=h,this.context.maxContentY=Math.max(h,null!==(l=this.context.maxContentY)&&void 0!==l?l:0),this.context.maxContentHeight=Math.max(g,null!==(c=this.context.maxContentHeight)&&void 0!==c?c:0)}),this.instance=t}getContext(){return this.context}resetContext(){var t=this.context;return setTimeout(this._updateScrollData,0),t}startMeasuringScrollPosition(){ae(U,"scroll",this._updateScrollData,{capture:!0}),ae(U,"scrollend",this._updateScrollData,{capture:!0}),ae(U,"resize",this._updateScrollData)}scrollElement(){if(!this.instance.config.scroll_root_selector)return null==U?void 0:U.document.documentElement;for(var t of ew(this.instance.config.scroll_root_selector)?this.instance.config.scroll_root_selector:[this.instance.config.scroll_root_selector]){var a=null==U?void 0:U.document.querySelector(t);if(a)return a}}scrollY(){if(this.instance.config.scroll_root_selector){var t=this.scrollElement();return t&&t.scrollTop||0}return U&&(U.scrollY||U.pageYOffset||U.document.documentElement.scrollTop)||0}scrollX(){if(this.instance.config.scroll_root_selector){var t=this.scrollElement();return t&&t.scrollLeft||0}return U&&(U.scrollX||U.pageXOffset||U.document.documentElement.scrollLeft)||0}};var ro=t=>nc.personInfo({maskPersonalDataProperties:null==t?void 0:t.config.mask_personal_data_properties,customPersonalDataProperties:null==t?void 0:t.config.custom_personal_data_properties});let no=class no{constructor(t,a,l,c){V(this,"_onSessionIdCallback",t=>{var a=this._getStored();if(!a||a.sessionId!==t){var l={sessionId:t,props:this._sessionSourceParamGenerator(this.instance)};this._persistence.register({[e3]:l})}}),this.instance=t,this._sessionIdManager=a,this._persistence=l,this._sessionSourceParamGenerator=c||ro,this._sessionIdManager.onSessionId(this._onSessionIdCallback)}_getStored(){return this._persistence.props[e3]}getSetOnceProps(){var t,a=null===(t=this._getStored())||void 0===t?void 0:t.props;return a?"r"in a?nc.personPropsFromInfo(a):{$referring_domain:a.referringDomain,$pathname:a.initialPathName,utm_source:a.utm_source,utm_campaign:a.utm_campaign,utm_medium:a.utm_medium,utm_content:a.utm_c
55ontent,utm_term:a.utm_term}:{}}getSessionProps(){var t={};return K(ie(this.getSetOnceProps()),(a,l)=>{"$current_url"===l&&(l="url"),t["$session_entry_".concat(b(l))]=a}),t}};var nN=eE("[SessionId]");let ao=class ao{constructor(t,a,l){if(V(this,"_sessionIdChangedHandlers",[]),!t.persistence)throw Error("SessionIdManager requires a PostHogPersistence instance");if(t.config.__preview_experimental_cookieless_mode)throw Error("SessionIdManager cannot be used with __preview_experimental_cookieless_mode");this.config=t.config,this.persistence=t.persistence,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this._sessionIdGenerator=a||Nt,this._windowIdGenerator=l||Nt;var c,d=this.config.persistence_name||this.config.token,p=this.config.session_idle_timeout_seconds||1800;if(this._sessionTimeoutMs=1e3*wi(p,60,36e3,"session_idle_timeout_seconds",1800),t.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.resetIdleTimer(),this._window_id_storage_key="ph_"+d+"_window_id",this._primary_window_exists_storage_key="ph_"+d+"_primary_window_exists",this._canUseSessionStorage()){var f=tI.parse(this._window_id_storage_key),h=tI.parse(this._primary_window_exists_storage_key);f&&!h?this._windowId=f:tI.remove(this._window_id_storage_key),tI.set(this._primary_window_exists_storage_key,!0)}if(null!==(c=this.config.bootstrap)&&void 0!==c&&c.sessionID)try{var g=(t=>{var a=t.replace(/-/g,"");if(32!==a.length)throw Error("Not a valid UUID");if("7"!==a[12])throw Error("Not a UUIDv7");return parseInt(a.substring(0,12),16)})(this.config.bootstrap.sessionID);this._setSessionId(this.config.bootstrap.sessionID,(new Date).getTime(),g)}catch(t){nN.error("Invalid sessionID in bootstrap",t)}this._listenToReloadWindow()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(t){return F(this._sessionIdChangedHandlers)&&(this._sessionIdChangedHandlers=[]),this._sessionIdChangedHandlers.push(t),this._sessionId&&t(this._sessionId,this._windowId),()=>{this._sessionIdChangedHandlers=this._sessionIdChangedHandlers.filter(a=>a!==t)}}_canUseSessionStorage(){return"memory"!==this.config.persistence&&!this.persistence.disabled&&tI.is_supported()}_setWindowId(t){t!==this._windowId&&(this._windowId=t,this._canUseSessionStorage()&&tI.set(this._window_id_storage_key,t))}_getWindowId(){return this._windowId?this._windowId:this._canUseSessionStorage()?tI.parse(this._window_id_storage_key):null}_setSessionId(t,a,l){t===this._sessionId&&a===this._sessionActivityTimestamp&&l===this._sessionStartTimestamp||(this._sessionStartTimestamp=l,this._sessionActivityTimestamp=a,this._sessionId=t,this.persistence.register({[ez]:[a,t,l]}))}_getSessionId(){if(this._sessionId&&this._sessionActivityTimestamp&&this._sessionStartTimestamp)return[this._sessionActivityTimestamp,this._sessionId,this._sessionStartTimestamp];var t=this.persistence.props[ez];return ew(t)&&2===t.length&&t.push(t[0]),t||[0,null,0]}resetSessionId(){this._setSessionId(null,null,null)}_listenToReloadWindow(){ae(U,"beforeunload",()=>{this._canUseSessionStorage()&&tI.remove(this._primary_window_exists_storage_key)},{capture:!1})}checkAndGetSessionAndWindowId(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.config.__preview_experimental_cookieless_mode)throw Error("checkAndGetSessionAndWindowId should not be called in __preview_experimental_cookieless_mode");var l=a||(new Date).getTime(),[c,d,p]=this._getSessionId(),f=this._getWindowId(),h=O(p)&&p>0&&Math.abs(l-p)>864e5,g=!1,_=!d,S=!t&&Math.abs(l-c)>this.sessionTimeoutMs;_||S||h?(d=this._sessionIdGenerator(),f=this._windowIdGenerator(),nN.info("new session ID generated",{sessionId:d,windowId:f,changeReason:{noSessionId:_,activityTimeout:S,sessionPastMaximumLength:h}}),p=l,g=!0):f||(f=this._windowIdGenerator(),g=!0);var w=0===c||!t||h?l:c,k=0===p?(new Date).getTime():p;return this._setWindowId(f),this._setSessionId(d,w,k),t||this.resetIdleTimer(),g&&this._sessionIdChangedHandlers.forEach(t=>t(d,f,g?{noSessionId:_,activityTimeout:S,sessionPastMaximumLength:h}:void 0)),{sessionId:d,windowId:f,sessionStartTimestamp:k,changeReason:g?{noSessionId:_,activityTimeout:S,sessionPastMaximumLength:h}:void 0,lastActivityTimestamp:c}}resetIdleTimer(){clearTimeout(this._enforceIdleTimeout),this._enforceIdleTimeout=setTimeout(()=>{this.resetSessionId()},1.1*this.sessionTimeoutMs)}};var nL=["$set_once","$set"],nj=eE("[SiteApps]");let uo=class uo{constructor(t){this.instance=t,this.bufferedInvocations=[],this.apps={}}get isEnabled(){return!!this.instance.config.opt_in_site_apps}eventCollector(t,a){if(a){var l=this.globalsForEvent(a);this.bufferedInvocations.push(l),this.bufferedInvocations.length>1e3&&(this.bufferedInvocations=this.bufferedInvocations.slice(10))}}get siteAppLoaders(){var t,a;return null===(t=eh._POSTHOG_REMOTE_CONFIG)||void 0===t||null===(a=t[this.instance.config.token])||void 0===a?void 0:a.siteApps}init(){if(this.isEnabled){var t=this.instance._addCaptureHook(this.eventCollector.bind(this));this.stopBuffering=()=>{t(),this.bufferedInvocations=[],this.stopBuffering=void 0}}}globalsForEvent(t){if(!t)throw Error("Event payload is required");var a,l,c,d,p,f,h,g={},_=this.instance.get_property("$groups")||[];for(var[S,w]of Object.entries(this.instance.get_property("$stored_group_properties")||{}))g[S]={id:_[S],type:S,properties:w};var{$set_once:k,$set:E}=t;return{event:W(W({},G(t,nL)),{},{properties:W(W(W({},t.properties),E?{$set:W(W({},null!==(a=null===(l=t.properties)||void 0===l?void 0:l.$set)&&void 0!==a?a:{}),E)}:{}),k?{$set_once:W(W({},null!==(c=null===(d=t.properties)||void 0===d?void 0:d.$set_once)&&void 0!==c?c:{}),k)}:{}),elements_chain:null!==(p=null===(f=t.properties)||void 0===f?void 0:f.$elements_chain)&&void 0!==p?p:"",distinct_id:null===(h=t.properties)||void 0===h?void 0:h.distinct_id}),person:{properties:this.instance.get_property("$stored_person_properties")},groups:g}}setupSiteApp(t){var a=this.apps[t.id],i=()=>{var l;!a.errored&&this.bufferedInvocations.length&&(nj.info("Processing ".concat(this.bufferedInvocations.length," events for site app with id ").concat(t.id)),this.bufferedInvocations.forEach(t=>{var l;return null===(l=a.processEvent)||void 0===l?void 0:l.call(a,t)}
55),a.processedBuffer=!0),Object.values(this.apps).every(t=>t.processedBuffer||t.errored)&&(null===(l=this.stopBuffering)||void 0===l||l.call(this))},l=!1,r=c=>{a.errored=!c,a.loaded=!0,nj.info("Site app with id ".concat(t.id," ").concat(c?"loaded":"errored")),l&&i()};try{var{processEvent:c}=t.init({posthog:this.instance,callback:t=>{r(t)}});c&&(a.processEvent=c),l=!0}catch(a){nj.error("Error while initializing PostHog app with config id ".concat(t.id),a),r(!1)}if(l&&a.loaded)try{i()}catch(l){nj.error("Error while processing buffered events PostHog app with config id ".concat(t.id),l),a.errored=!0}}setupSiteApps(){var t=this.siteAppLoaders||[];for(var a of t)this.apps[a.id]={id:a.id,loaded:!1,errored:!1,processedBuffer:!1};for(var l of t)this.setupSiteApp(l)}onCapturedEvent(t){if(0!==Object.keys(this.apps).length){var a,l=this.globalsForEvent(t);for(var c of Object.values(this.apps))try{null===(a=c.processEvent)||void 0===a||a.call(c,l)}catch(a){nj.error("Error while processing event ".concat(t.event," for site app ").concat(c.id),a)}}}onRemoteConfig(t){var a,l,c,d=this;if(null!==(a=this.siteAppLoaders)&&void 0!==a&&a.length)return this.isEnabled?(this.setupSiteApps(),void this.instance.on("eventCaptured",t=>this.onCapturedEvent(t))):void nj.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if(null===(l=this.stopBuffering)||void 0===l||l.call(this),null!==(c=t.siteApps)&&void 0!==c&&c.length){if(this.isEnabled){var n=function(t,a){var l,c;eh["__$$ph_site_app_".concat(t)]=d.instance,null===(l=eh.__PosthogExtensions__)||void 0===l||null===(c=l.loadSiteApp)||void 0===c||c.call(l,d.instance,a,a=>{if(a)return nj.error("Error while initializing PostHog app with config id ".concat(t),a)})};for(var{id:p,url:f}of t.siteApps)n(p,f)}else nj.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}};var n$,nB,nH,nW,nq,nV,nz,nU=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google","bytespider"],po=function(t,a){if(!t)return!1;var l=t.toLowerCase();return nU.concat(a||[]).some(t=>{var a=t.toLowerCase();return -1!==l.indexOf(a)})},go=function(t,a){if(!t)return!1;var l=t.userAgent;if(l&&po(l,a))return!0;try{var c=null==t?void 0:t.userAgentData;if(null!=c&&c.brands&&c.brands.some(t=>po(null==t?void 0:t.brand,a)))return!0}catch(t){}return!!t.webdriver};function vo(t,a,l){return Kn({distinct_id:t,userPropertiesToSet:a,userPropertiesToSetOnce:l})}(nJ=nz||(nz={})).US="us",nJ.EU="eu",nJ.CUSTOM="custom";var nZ="i.posthog.com";let mo=class mo{constructor(t){V(this,"_regionCache",{}),this.instance=t}get apiHost(){var t=this.instance.config.api_host.trim().replace(/\/$/,"");return"https://app.posthog.com"===t?"https://us.i.posthog.com":t}get uiHost(){var t,a=null===(t=this.instance.config.ui_host)||void 0===t?void 0:t.replace(/\/$/,"");return a||(a=this.apiHost.replace(".".concat(nZ),".posthog.com")),"https://app.posthog.com"===a?"https://us.posthog.com":a}get region(){return this._regionCache[this.apiHost]||(/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this._regionCache[this.apiHost]=nz.US:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this._regionCache[this.apiHost]=nz.EU:this._regionCache[this.apiHost]=nz.CUSTOM),this._regionCache[this.apiHost]}endpointFor(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(a&&(a="/"===a[0]?a:"/".concat(a)),"ui"===t)return this.uiHost+a;if(this.region===nz.CUSTOM)return this.apiHost+a;var l=nZ+a;switch(t){case"assets":return"https://".concat(this.region,"-assets.").concat(l);case"api":return"https://".concat(this.region,".").concat(l)}}};var nG={icontains:(t,a)=>!!U&&a.href.toLowerCase().indexOf(t.toLowerCase())>-1,not_icontains:(t,a)=>!!U&&-1===a.href.toLowerCase().indexOf(t.toLowerCase()),regex:(t,a)=>!!U&&On(a.href,t),not_regex:(t,a)=>!!U&&!On(a.href,t),exact:(t,a)=>a.href===t,is_not:(t,a)=>a.href!==t};let bo=class bo{constructor(t){var a=this;V(this,"getWebExperimentsAndEvaluateDisplayLogic",function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];a.getWebExperiments(t=>{bo.logInfo("retrieved web experiments from the server"),a._flagToExperiments=new Map,t.forEach(t=>
55{if(t.feature_flag_key){a._flagToExperiments&&(bo.logInfo("setting flag key ",t.feature_flag_key," to web experiment ",t),null===(l=a._flagToExperiments)||void 0===l||l.set(t.feature_flag_key,t));var l,c=a.instance.getFeatureFlag(t.feature_flag_key);R(c)&&t.variants[c]&&a.applyTransforms(t.name,c,t.variants[c].transforms)}else if(t.variants)for(var d in t.variants){var p=t.variants[d];bo.matchesTestVariant(p)&&a.applyTransforms(t.name,d,p.transforms)}})},t)}),this.instance=t,this.instance.onFeatureFlags(t=>{this.onFeatureFlags(t)})}onFeatureFlags(t){if(this._is_bot())bo.logInfo("Refusing to render web experiment since the viewer is a likely bot");else if(!this.instance.config.disable_web_experiments){if(A(this._flagToExperiments))return this._flagToExperiments=new Map,this.loadIfEnabled(),void this.previewWebExperiment();bo.logInfo("applying feature flags",t),t.forEach(t=>{var a;if(this._flagToExperiments&&null!==(a=this._flagToExperiments)&&void 0!==a&&a.has(t)){var l,c=this.instance.getFeatureFlag(t),d=null===(l=this._flagToExperiments)||void 0===l?void 0:l.get(t);c&&null!=d&&d.variants[c]&&this.applyTransforms(d.name,c,d.variants[c].transforms)}})}}previewWebExperiment(){var t=bo.getWindowLocation();if(null!=t&&t.search){var a=Et(null==t?void 0:t.search,"__experiment_id"),l=Et(null==t?void 0:t.search,"__experiment_variant");a&&l&&(bo.logInfo("previewing web experiments ".concat(a," && ").concat(l)),this.getWebExperiments(t=>{this.showPreviewWebExperiment(parseInt(a),l,t)},!1,!0))}}loadIfEnabled(){this.instance.config.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(t,a,l){if(this.instance.config.disable_web_experiments&&!l)return t([]);var c=this.instance.get_property("$web_experiments");if(c&&!a)return t(c);this.instance._send_request({url:this.instance.requestRouter.endpointFor("api","/api/web_experiments/?token=".concat(this.instance.config.token)),method:"GET",callback:a=>200===a.statusCode&&a.json?t(a.json.experiments||[]):t([])})}showPreviewWebExperiment(t,a,l){var c=l.filter(a=>a.id===t);c&&c.length>0&&(bo.logInfo("Previewing web experiment [".concat(c[0].name,"] with variant [").concat(a,"]")),this.applyTransforms(c[0].name,a,c[0].variants[a].transforms))}static matchesTestVariant(t){return!A(t.conditions)&&bo.matchUrlConditions(t)&&bo.matchUTMConditions(t)}static matchUrlConditions(t){if(A(t.conditions)||A(null===(a=t.conditions)||void 0===a?void 0:a.url))return!0;var a,l,c,d,p=bo.getWindowLocation();return!!p&&(null===(l=t.conditions)||void 0===l||!l.url||nG[null!==(c=null===(d=t.conditions)||void 0===d?void 0:d.urlMatchType)&&void 0!==c?c:"icontains"](t.conditions.url,p))}
55static getWindowLocation(){return null==U?void 0:U.location}static matchUTMConditions(t){if(A(t.conditions)||A(null===(l=t.conditions)||void 0===l?void 0:l.utm))return!0;var a=nc.campaignParams();if(a.utm_source){var l,c,d,p,f,h,g,_,S,w,k,E,x,B,H,U,J,er=null===(c=t.conditions)||void 0===c||null===(d=c.utm)||void 0===d||!d.utm_campaign||(null===(p=t.conditions)||void 0===p||null===(f=p.utm)||void 0===f?void 0:f.utm_campaign)==a.utm_campaign,en=null===(h=t.conditions)||void 0===h||null===(g=h.utm)||void 0===g||!g.utm_source||(null===(_=t.conditions)||void 0===_||null===(S=_.utm)||void 0===S?void 0:S.utm_source)==a.utm_source,ei=null===(w=t.conditions)||void 0===w||null===(k=w.utm)||void 0===k||!k.utm_medium||(null===(E=t.conditions)||void 0===E||null===(x=E.utm)||void 0===x?void 0:x.utm_medium)==a.utm_medium,ea=null===(B=t.conditions)||void 0===B||null===(H=B.utm)||void 0===H||!H.utm_term||(null===(U=t.conditions)||void 0===U||null===(J=U.utm)||void 0===J?void 0:J.utm_term)==a.utm_term;return er&&ei&&ea&&en}return!1}static logInfo(t){for(var a=arguments.length,l=Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];ek.info("[WebExperiments] ".concat(t),l)}applyTransforms(t,a,l){this._is_bot()?bo.logInfo("Refusing to render web experiment since the viewer is a likely bot"):"control"!==a?l.forEach(l=>{if(l.selector){bo.logInfo("applying transform of variant ".concat(a," for experiment ").concat(t," "),l);var c,d=null===(c=document)||void 0===c?void 0:c.querySelectorAll(l.selector);null==d||d.forEach(t=>{l.html&&(t.innerHTML=l.html),l.css&&t.setAttribute("style",l.css)})}}):bo.logInfo("Control variants leave the page unmodified.")}_is_bot(){return ea&&this.instance?go(ea,this.instance.config.custom_blocked_useragents):void 0}};var nQ={},So=()=>{},nK="posthog",nX=!nP&&-1===(null==ef?void 0:ef.indexOf("MSIE"))&&-1===(null==ef?void 0:ef.indexOf("Mozilla")),xo=()=>{var t;return{api_host:"https://us.i.posthog.com",ui_host:null,token:"",autocapture:!0,rageclick:!0,cross_subdomain_cookie:function(t){var a=null==t?void 0:t.hostname;if(!R(a))return!1;var l=a.split(".").slice(-2).join(".");for(var c of eT)if(l===c)return!1;return!0}(null==el?void 0:el.location),persistence:"localStorage+cookie",persistence_name:"",loaded:So,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageview:!0,capture_pageleave:"if_capture_pageview",debug:ec&&R(null==ec?void 0:ec.search)&&-1!==ec.search.indexOf("__posthog_debug=true")||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:"https:"===(null==U||null===(t=U.location)||void 0===t?void 0:t.protocol),ip:!0,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,session_recording:{},mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error:t=>{var a="Bad HTTP status: "+t.statusCode+" "+t.text;ek.error(a)},get_device_id:t=>t,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:"identified_only",before_send:void 0,request_queue_config:{flush_interval_ms:3e3},_onCapture:So}},Io=t=>{var a={};F(t.process_person)||(a.person_profiles=t.process_person),F(t.xhr_headers)||(a.request_headers=t.xhr_headers),F(t.cookie_name)||(a.persistence_name=t.cookie_name),F(t.disable_cookie)||(a.disable_persistence=t.disable_cookie),F(t.store_google)||(a.save_campaign_params=t.store_google),F(t.verbose)||(a.debug=t.verbose);var l=X({},a,t);return ew(t.property_blacklist)&&(F(t.property_denylist)?l.property_denylist=t.property_blacklist:ew(t.property_denylist)?l.property_denylist=[...t.property_blacklist,...t.property_denylist]:ek.error("Invalid value for property_denylist config: "+t.property_denylist)),l};let Po=class Po{constructor(){V(this,"__forceAllowLocalhost",!1)}get _forceAllowLocalhost(){return this.__forceAllowLocalhost}set _forceAllowLocalhost(t){ek.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=t}};let Co=class Co{get decideEndpointWasHit(){var t,a;return null!==(t=null===(a=this.featureFlags)||void 0===a?void 0:a.hasLoadedFlags)&&void 0!==t&&t}constructor(){V(this,"webPerformance",new Po),V(this,"_personProcessingSetOncePropertiesSent",!1),V(this,"version",eg.LIB_VERSION),V(this,"_internalEventEmitter",new Mn),this.config=xo(),this.SentryIntegration=ws,this.sentryIntegration=t=>{var a;return a=bs(this,t),{name:t9,processEvent:t=>a(t)}},this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this._initialPageviewCaptured=!1,this._initialPersonProfilesConfig=null,this._cachedIdentify=null,this.featureFlags=new Ws(this),this.toolbar=ne
55w Is(this),this.scrollManager=new so(this),this.pageViewManager=new Ms(this),this.surveys=new Hn(this),this.experiments=new bo(this),this.exceptions=new Ls(this),this.rateLimiter=new zn(this),this.requestRouter=new mo(this),this.consent=new ti(this),this.people={set:(t,a,l)=>{var c=R(t)?{[t]:a}:t;this.setPersonProperties(c),null==l||l({})},set_once:(t,a,l)=>{var c=R(t)?{[t]:a}:t;this.setPersonProperties(void 0,c),null==l||l({})}},this.on("eventCaptured",t=>ek.info('send "'.concat(null==t?void 0:t.event,'"'),t))}init(t,a,l){if(l&&l!==nK){var c,d=null!==(c=nQ[l])&&void 0!==c?c:new Co;return d._init(t,a,l),nQ[l]=d,nQ[nK][l]=d,d}return this._init(t,a,l)}_init(t){var a,l,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=arguments.length>2?arguments[2]:void 0;if(F(t)||T(t))return ek.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return ek.warn("You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},this._triggered_notifs=[],c.person_profiles&&(this._initialPersonProfilesConfig=c.person_profiles),this.set_config(X({},xo(),Io(c),{name:d,token:t})),this.config.on_xhr_error&&ek.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=c.disable_compression?void 0:_.GZipJS,this.persistence=new Gr(this.config),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new Gr(W(W({},this.config),{},{persistence:"sessionStorage"}));var p=W({},this.persistence.props),f=W({},this.sessionPersistence.props);if(this._requestQueue=new eo(t=>this._send_retriable_request(t),this.config.request_queue_config),this._retryQueue=new io(this),this.__request_queue=[],this.config.__preview_experimental_cookieless_mode||(this.sessionManager=new ao(this),this.sessionPropsManager=new no(this,this.sessionManager,this.persistence)),new Cs(this).startIfEnabledOrStop(),this.siteApps=new uo(this),null===(a=this.siteApps)||void 0===a||a.init(),this.config.__preview_experimental_cookieless_mode||(this.sessionRecording=new vs(this),this.sessionRecording.startIfEnabledOrStop()),this.config.disable_scroll_properties||this.scrollManager.startMeasuringScrollPosition(),this.autocapture=new $t(this),this.autocapture.startIfEnabled(),this.surveys.loadIfEnabled(),this.heatmaps=new Os(this),this.heatmaps.startIfEnabled(),this.webVitalsAutocapture=new Ts(this),this.exceptionObserver=new ai(this),this.exceptionObserver.startIfEnabled(),this.deadClicksAutocapture=new ni(this,ri),this.deadClicksAutocapture.startIfEnabled(),eg.DEBUG=eg.DEBUG||this.config.debug,eg.DEBUG&&ek.info("Starting in debug mode",{this:this,config:c,thisC:W({},this.config),p:p,s:f}),this._sync_opt_out_with_persistence(),void 0!==(null===(l=c.bootstrap)||void 0===l?void 0:l.distinctID)){var h,g,S=this.config.get_device_id(Nt()),w=null!==(h=c.bootstrap)&&void 0!==h&&h.isIdentifiedID?S:c.bootstrap.distinctID;this.persistence.set_property(e2,null!==(g=c.bootstrap)&&void 0!==g&&g.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:c.bootstrap.distinctID,$device_id:w})}if(this._hasBootstrappedFeatureFlags()){var k,E,x=Object.keys((null===(k=c.bootstrap)||void 0===k?void 0:k.featureFlags)||{}).filter(t=>{var a,l;return!(null===(a=c.bootstrap)||void 0===a||null===(l=a.featureFlags)||void 0===l||!l[t])}).reduce((t,a)=>{var l,d;return t[a]=(null===(l=c.bootstrap)||void 0===l||null===(d=l.featureFlags)||void 0===d?void 0:d[a])||!1,t},{}),B=Object.keys((null===(E=c.bootstrap)||void 0===E?void 0:E.featureFlagPayloads)||{}).filter(t=>x[t]).reduce((t,a)=>{var l,d,p,f;return null!==(l=c.bootstrap)&&void 0!==l&&null!==(d=l.featureFlagPayloads)&&void 0!==d&&d[a]&&(t[a]=null===(p=c.bootstrap)||void 0===p||null===(f=p.featureFlagPayloads)||void 0===f?void 0:f[a]),t},{});this.featureFlags.receivedFeatureFlags({featureFlags:x,featureFlagPayloads:B})}if(this.config.__preview_experimental_cookieless_mode)this.register_once({distinct_id:tr,$device_id:null},"");else if(!this.get_distinct_id()){var H=this.config.get_device_id(Nt());this.register_once({distinct_id:H,$device_id:H},""),this.persistence.set_property(e2,"anonymous")}return ae(U,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),this.toolbar.maybeLoadToolbar(),c.segment?function(t,a){var l=t.config.segment;if(!l)return a();!function(t,a){var l=t.config.segment;if(!l)return a();var s=l=>{var s=()=>l.anonymousId()||Nt();t.config.get_device_id=s,l.id()&&(t.register({distinct_id:l.id(),$device_id:s()}),t.persistence.set_property(e2,"identified")),a()},c=l.user();"then"in c&&I(c.then)?c.then(t=>s(t)):s(c)}(t,()=>{var c;l.register((Promise&&Promise.resolve||t4.warn("This browser does not have Promise support, and can not use the segment integration"),c=(a,l)=>{if(!l)return a;a.event.userId||a.event.anonymousId===t.get_distinct_id()||(t4.info("No userId set, resetting PostHog"),t.reset()),a.event.userId&&a.event.userId!==t.get_distinct_id()&&(t4.info("UserId set, identifying with PostHog"),t.identify(a.event.userId)
55);var c,d=t._calculate_event_properties(l,null!==(c=a.event.properties)&&void 0!==c?c:{},new Date);return a.event.properties=Object.assign({},d,a.event.properties),a},{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:t=>c(t,t.event.event),page:t=>c(t,"$pageview"),identify:t=>c(t,"$identify"),screen:t=>c(t,"$screen")})).then(()=>{a()})})}(this,()=>this._loaded()):this._loaded(),I(this.config._onCapture)&&this.config._onCapture!==So&&(ek.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",t=>this.config._onCapture(t.event,t))),this}_onRemoteConfig(t){var a,l,c,d,p,f,h,g;if(!el||!el.body)return ek.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(()=>{this._onRemoteConfig(t)},500);this.compression=void 0,t.supportedCompression&&!this.config.disable_compression&&(this.compression=m(t.supportedCompression,_.GZipJS)?_.GZipJS:m(t.supportedCompression,_.Base64)?_.Base64:void 0),null!==(a=t.analytics)&&void 0!==a&&a.endpoint&&(this.analyticsDefaultEndpoint=t.analytics.endpoint),this.set_config({person_profiles:this._initialPersonProfilesConfig?this._initialPersonProfilesConfig:"identified_only"}),null===(l=this.siteApps)||void 0===l||l.onRemoteConfig(t),null===(c=this.sessionRecording)||void 0===c||c.onRemoteConfig(t),null===(d=this.autocapture)||void 0===d||d.onRemoteConfig(t),null===(p=this.heatmaps)||void 0===p||p.onRemoteConfig(t),this.surveys.onRemoteConfig(t),null===(f=this.webVitalsAutocapture)||void 0===f||f.onRemoteConfig(t),null===(h=this.exceptionObserver)||void 0===h||h.onRemoteConfig(t),null===(g=this.deadClicksAutocapture)||void 0===g||g.onRemoteConfig(t)}_loaded(){try{this.config.loaded(this)}catch(t){ek.critical("`loaded` function failed",t)}this._start_queue_if_opted_in(),this.config.capture_pageview&&setTimeout(()=>{this.consent.isOptedIn()&&this._captureInitialPageview()},1),new Wn(this).load(),this.featureFlags.decide()}_start_queue_if_opted_in(){var t;this.has_opted_out_capturing()||this.config.request_batching&&(null===(t=this._requestQueue)||void 0===t||t.enable())}_dom_loaded(){this.has_opted_out_capturing()||Y(this.__request_queue,t=>this._send_retriable_request(t)),this.__request_queue=[],this._start_queue_if_opted_in()}_handle_unload(){var t,a;this.config.request_batching?(this._shouldCapturePageleave()&&this.capture("$pageleave"),null===(t=this._requestQueue)||void 0===t||t.unload(),null===(a=this._retryQueue)||void 0===a||a.unload()):this._shouldCapturePageleave()&&this.capture("$pageleave",null,{transport:"sendBeacon"})}_send_request(t){this.__loaded&&(nX?this.__request_queue.push(t):this.rateLimiter.isServerRateLimited(t.batchKey)||(t.transport=t.transport||this.config.api_transport,t.url=Yn(t.url,{ip:this.config.ip?1:0}),t.headers=W({},this.config.request_headers),t.compression="best-available"===t.compression?this.compression:t.compression,t.fetchOptions=t.fetchOptions||this.config.fetch_options,(t=>{var a,l,c,d=W({},t);d.timeout=d.timeout||6e4,d.url=Yn(d.url,{_:(new Date).getTime().toString(),ver:eg.LIB_VERSION,compression:d.compression});var p=null!==(a=d.transport)&&void 0!==a?a:"fetch",f=null!==(l=null===(c=oe(nF,t=>t.transport===p))||void 0===c?void 0:c.method)&&void 0!==l?l:nF[0].method;if(!f)throw Error("No available transport method");f(d)})(W(W({},t),{},{callback:a=>{var l,c,d;this.rateLimiter.checkForLimiting(a),a.statusCode>=400&&(null===(c=(d=this.config).on_request_error)||void 0===c||c.call(d,a)),null===(l=t.callback)||void 0===l||l.call(t,a)}}))))}_send_retriable_request(t){this._retryQueue?this._retryQueue.retriableRequest(t):this._send_request(t)}_execute_array(t){var a,l=[],c=[],d=[];Y(t,t=>{t&&(ew(a=t[0])?d.push(t):I(t)?t.call(this):ew(t)&&"alias"===a?l.push(t):ew(t)&&-1!==a.indexOf("capture")&&I(this[a])?d.push(t):c.push(t))});var n=function(t,a){Y(t,function(t){if(ew(t[0])){var l=a;K(t,function(t){l=l[t[0]].apply(l,t.slice(1))})}else this[t[0]].apply(this,t.slice(1))},a)};n(l,this),n(c,this),n(d,this)}_hasBootstrappedFeatureFlags(){var t,a;return(null===(t=this.config.bootstrap)||void 0===t?void 0:t.featureFlags)&&Object.keys(null===(a=this.config.bootstrap)||void 0===a?void 0:a.featureFlags).length>0||!1}push(t){this._execute_array([t])}capture(t,a,l){var c;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this._requestQueue){if(!this.consent.isOptedOut()){if(!F(t)&&R(t)){if(this.config.opt_out_useragent_filter||!this._is_bot()){var d=null!=l&&l.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(null==d||!d.isRateLimited){this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var p,f,h,g,_=new Date,S=(null==l?void 0:l.timestamp)||_,w=Nt(),k={uuid:w,event:t,properties:this._calculate_event_properties(t,a||{},S,w)};d&&(k.properties.$lib_rate_limit_remaining_tokens=d.remainingTokens),(null==l?void 0:l.$set)&&(k.$set=null==l?void 0:l.$set);var E=this._calculate_set_once_properties(null==l?void 0:l.$set_once);
55E&&(k.$set_once=E),(p=k,f=null!=l&&l._noTruncate?null:this.config.properties_string_max_length,h=t=>R(t)&&!$(f)?t.slice(0,f):t,g=new Set,k=function e(t,a){var l;return t!==Object(t)?h?h(t,a):t:g.has(t)?void 0:(g.add(t),ew(t)?(l=[],Y(t,t=>{l.push(e(t))})):(l={},K(t,(t,a)=>{g.has(t)||(l[a]=e(t,a))})),l)}(p)).timestamp=S,F(null==l?void 0:l.timestamp)||(k.properties.$event_time_override_provided=!0,k.properties.$event_time_override_system_time=_);var x=W(W({},k.properties.$set),k.$set);if(C(x)||this.setPersonPropertiesForFlags(x),!A(this.config.before_send)){var B=this._runBeforeSend(k);if(!B)return;k=B}this._internalEventEmitter.emit("eventCaptured",k);var H={method:"POST",url:null!==(c=null==l?void 0:l._url)&&void 0!==c?c:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:k,compression:"best-available",batchKey:null==l?void 0:l._batchKey};return!this.config.request_batching||l&&(null==l||!l._batchKey)||null!=l&&l.send_instantly?this._send_retriable_request(H):this._requestQueue.enqueue(H),k}ek.critical("This capture call is ignored due to client rate limiting.")}}else ek.error("No event name provided to posthog.capture")}}else ek.uninitializedWarning("posthog.capture")}_addCaptureHook(t){return this.on("eventCaptured",a=>t(a.event,a))}_calculate_event_properties(t,a,l,c){if(l=l||new Date,!this.persistence||!this.sessionPersistence)return a;var d,p,f=this.persistence.remove_event_timer(t),h=W({},a);if(h.token=this.config.token,this.config.__preview_experimental_cookieless_mode&&(h.$co
55okieless_mode=!0),"$snapshot"===t){var g=W(W({},this.persistence.properties()),this.sessionPersistence.properties());return h.distinct_id=g.distinct_id,(!R(h.distinct_id)&&!O(h.distinct_id)||T(h.distinct_id))&&ek.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),h}var _,S=nc.properties({maskPersonalDataProperties:this.config.mask_personal_data_properties,customPersonalDataProperties:this.config.custom_personal_data_properties});if(this.sessionManager){var{sessionId:w,windowId:k}=this.sessionManager.checkAndGetSessionAndWindowId();h.$session_id=w,h.$window_id=k}this.sessionPropsManager&&X(h,this.sessionPropsManager.getSessionProps());try{this.sessionRecording&&(h.$recording_status=this.sessionRecording.status,h.$sdk_debug_replay_internal_buffer_length=this.sessionRecording.buffer.data.length,h.$sdk_debug_replay_internal_buffer_size=this.sessionRecording.buffer.size),h.$sdk_debug_retry_queue_size=null===(d=this._retryQueue)||void 0===d||null===(p=d.queue)||void 0===p?void 0:p.length}catch(t){h.$sdk_debug_error_capturing_properties=String(t)}if(this.requestRouter.region===nz.CUSTOM&&(h.$lib_custom_api_host=this.config.api_host),_="$pageview"===t?this.pageViewManager.doPageView(l,c):"$pageleave"===t?this.pageViewManager.doPageLeave(l):this.pageViewManager.doEvent(),h=X(h,_),"$pageview"===t&&el&&(h.title=el.title),!F(f)){var E=l.getTime()-f;h.$duration=parseFloat((E/1e3).toFixed(3))}ef&&this.config.opt_out_useragent_filter&&(h.$browser_type=this._is_bot()?"bot":"browser"),(h=X({},S,this.persistence.properties(),this.sessionPersistence.properties(),h)).$is_identified=this._isIdentified(),ew(this.config.property_denylist)?K(this.config.property_denylist,function(t){delete h[t]}):ek.error("Invalid value for property_denylist config: "+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var x=this.config.sanitize_properties;x&&(ek.error("sanitize_properties is deprecated. Use before_send instead"),h=x(h,t));var B=this._hasPersonProcessing();return h.$process_person_profile=B,B&&this._requirePersonProcessing("_calculate_event_properties"),h}_calculate_set_once_properties(t){if(!this.persistence||!this._hasPersonProcessing()||this._personProcessingSetOncePropertiesSent)return t;var a,l=X({},this.persistence.get_initial_props(),(null===(a=this.sessionPropsManager)||void 0===a?void 0:a.getSetOnceProps())||{},t||{}),c=this.config.sanitize_properties;return c&&(ek.error("sanitize_properties is deprecated. Use before_send instead"),l=c(l,"$set_once")),this._personProcessingSetOncePropertiesSent=!0,C(l)?void 0:l}register(t,a){var l;null===(l=this.persistence)||void 0===l||l.register(t,a)}register_once(t,a,l){var c;null===(c=this.persistence)||void 0===c||c.register_once(t,a,l)}register_for_session(t){var a;null===(a=this.sessionPersistence)||void 0===a||a.register(t)}unregister(t){var a;null===(a=this.persistence)||void 0===a||a.unregister(t)}unregister_for_session(t){var a;null===(a=this.sessionPersistence)||void 0===a||a.unregister(t)}_register_single(t,a){this.register({[t]:a})}getFeatureFlag(t,a){return this.featureFlags.getFeatureFlag(t,a)}getFeatureFlagPayload(t){var a=this.featureFlags.getFeatureFlagPayload(t);try{return JSON.parse(a)}catch(t){return a}}isFeatureEnabled(t,a){return this.featureFlags.isFeatureEnabled(t,a)}reloadFeatureFlags(){this.featureFlags.reloadFeatureFlags()}updateEarlyAccessFeatureEnrollment(t,a){this.featureFlags.updateEarlyAccessFeatureEnrollment(t,a)}getEarlyAccessFeatures(t){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.featureFlags.getEarlyAccessFeatures(t,a)}on(t,a){return this._internalEventEmitter.on(t,a)}onFeatureFlags(t){return this.featureFlags.onFeatureFlags(t)}onSessionId(t){var a,l;return null!==(a=null===(l=this.sessionManager)||void 0===l?void 0:l.onSessionId(t))&&void 0!==a?a:()=>{}}getSurveys(t){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.surveys.getSurveys(t,a)}getActiveMatchingSurveys(t){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.surveys.getActiveMatchingSurveys(t,a)}renderSurvey(t,a){this.surveys.renderSurvey(t,a)}canRenderSurvey(t){this.surveys.canRenderSurvey(t)}identify(t,a,l){if(!this.__loaded||!this.persistence)return ek.uninitializedWarning("posthog.identify");if(O(t)&&(t=t.toString(),ek.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),t){if(["distinct_id","distinctid"].includes(t.toLowerCase()))ek.critical('The string "'.concat(t,'" was set in posthog.identify which indicates an error. This ID should be unique to the user and n
55ot a hardcoded string.'));else if(this._requirePersonProcessing("posthog.identify")){var c=this.get_distinct_id();this.register({$user_id:t}),this.get_property("$device_id")||this.register_once({$had_persisted_distinct_id:!0,$device_id:c},""),t!==c&&t!==this.get_property(eO)&&(this.unregister(eO),this.register({distinct_id:t}));var d="anonymous"===(this.persistence.get_property(e2)||"anonymous");t!==c&&d?(this.persistence.set_property(e2,"identified"),this.setPersonPropertiesForFlags(W(W({},l||{}),a||{}),!1),this.capture("$identify",{distinct_id:t,$anon_distinct_id:c},{$set:a||{},$set_once:l||{}}),this.featureFlags.setAnonymousDistinctId(c),this._cachedIdentify=vo(t,a,l)):(a||l)&&(this._cachedIdentify!==vo(t,a,l)?(this.setPersonProperties(a,l),this._cachedIdentify=vo(t,a,l)):ek.info("A duplicate posthog.identify call was made with the same properties. It has been ignored.")),t!==c&&(this.reloadFeatureFlags(),this.unregister(e1))}}else ek.error("Unique user id has not been set in posthog.identify")}setPersonProperties(t,a){(t||a)&&this._requirePersonProcessing("posthog.setPersonProperties")&&(this.setPersonPropertiesForFlags(W(W({},a||{}),t||{})),this.capture("$set",{$set:t||{},$set_once:a||{}}))}group(t,a,l){if(t&&a){if(this._requirePersonProcessing("posthog.group")){var c=this.getGroups();c[t]!==a&&this.resetGroupPropertiesForFlags(t),this.register({$groups:W(W({},c),{},{[t]:a})}),l&&(this.capture("$groupidentify",{$group_type:t,$group_key:a,$group_set:l}),this.setGroupPropertiesForFlags({[t]:l})),c[t]===a||l||this.reloadFeatureFlags()}}else ek.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(t){var a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.featureFlags.setPersonPropertiesForFlags(t,a)}resetPersonPropertiesForFlags(){this.featureFlags.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(t){var a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._requirePersonProcessing("posthog.setGroupPropertiesForFlags")&&this.featureFlags.setGroupPropertiesForFlags(t,a)}resetGroupPropertiesForFlags(t){this.featureFlags.resetGroupPropertiesForFlags(t)}reset(t){if(ek.info("reset"),!this.__loaded)return ek.uninitializedWarning("posthog.reset");var a,l,c,d,p=this.get_property("$device_id");if(this.consent.reset(),null===(a=this.persistence)||void 0===a||a.clear(),null===(l=this.sessionPersistence)||void 0===l||l.clear(),this.surveys.reset(),null===(c=this.persistence)||void 0===c||c.set_property(e2,"anonymous"),null===(d=this.sessionManager)||void 0===d||d.resetSessionId(),this._cachedIdentify=null,this.config.__preview_experimental_cookieless_mode)this.register_once({distinct_id:tr,$device_id:null},"");else{var f=this.config.get_device_id(Nt());this.register_once({distinct_id:f,$device_id:t?f:p},"")}this.register({$last_posthog_reset:(new Date).toISOString()},1)}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var t,a;return null!==(t=null===(a=this.sessionManager)||void 0===a?void 0:a.checkAndGetSessionAndWindowId(!0).sessionId)&&void 0!==t?t:""}get_session_replay_url(t){if(!this.sessionManager)return"";var{sessionId:a,sessionStartTimestamp:l}=this.sessionManager.checkAndGetSessionAndWindowId(!0),c=this.requestRouter.endpointFor("ui","/project/".concat(this.config.token,"/replay/").concat(a));if(null!=t&&t.withTimestamp&&l){var d,p=null!==(d=t.timestampLookBack)&&void 0!==d?d:10;if(!l)return c;var f=Math.max(Math.floor(((new Date).getTime()-l)/1e3)-p,0);c+="?t=".concat(f)}return c}alias(t,a){return t===this.get_property(eI)?(ek.critical("Attempting to create alias for existing People user - aborting."),-2):this._requirePersonProcessing("posthog.alias")?(F(a)&&(a=this.get_distinct_id()),t!==a?(this._register_single(eO,t),this.capture("$create_alias",{alias:t,distinct_id:a})):(ek.warn("alias matches current distinct_id - skipping api call."),this.identify(t),-1)):void 0}set_config(t){var a,l,c,d,p=W({},this.config);P(t)&&(X(this.config,Io(t)),null===(a=this.persistence)||void 0===a||a.update_config(this.config,p),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new Gr(W(W
55({},this.config),{},{persistence:"sessionStorage"})),tw.is_supported()&&"true"===tw.get("ph_debug")&&(this.config.debug=!0),this.config.debug&&(eg.DEBUG=!0,ek.info("set_config",{config:t,oldConfig:p,newConfig:W({},this.config)})),null===(l=this.sessionRecording)||void 0===l||l.startIfEnabledOrStop(),null===(c=this.autocapture)||void 0===c||c.startIfEnabled(),null===(d=this.heatmaps)||void 0===d||d.startIfEnabled(),this.surveys.loadIfEnabled(),this._sync_opt_out_with_persistence())}startSessionRecording(t){var a,l,c,d,p,f=!0===t,h={sampling:f||!(null==t||!t.sampling),linked_flag:f||!(null==t||!t.linked_flag),url_trigger:f||!(null==t||!t.url_trigger),event_trigger:f||!(null==t||!t.event_trigger)};Object.values(h).some(Boolean)&&(null===(a=this.sessionManager)||void 0===a||a.checkAndGetSessionAndWindowId(),h.sampling&&(null===(l=this.sessionRecording)||void 0===l||l.overrideSampling()),h.linked_flag&&(null===(c=this.sessionRecording)||void 0===c||c.overrideLinkedFlag()),h.url_trigger&&(null===(d=this.sessionRecording)||void 0===d||d.overrideTrigger("url")),h.event_trigger&&(null===(p=this.sessionRecording)||void 0===p||p.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var t;return!(null===(t=this.sessionRecording)||void 0===t||!t.started)}captureException(t,a){var l,c=Error("PostHog syntheticException"),d=I(null===(l=eh.__PosthogExtensions__)||void 0===l?void 0:l.parseErrorAsProperties)?W(W({},eh.__PosthogExtensions__.parseErrorAsProperties(D(t)?{error:t,event:t.message}:{event:t},{syntheticException:c})),a):W({$exception_level:"error",$exception_list:[{type:D(t)?t.name:"Error",value:D(t)?t.message:t,mechanism:{handled:!0,synthetic:!1}}]},a);this.exceptions.sendExceptionEvent(d)}loadToolbar(t){return this.toolbar.loadToolbar(t)}get_property(t){var a;return null===(a=this.persistence)||void 0===a?void 0:a.props[t]}getSessionProperty(t){var a;return null===(a=this.sessionPersistence)||void 0===a?void 0:a.props[t]}toString(){var t,a=null!==(t=this.config.name)&&void 0!==t?t:nK;return a!==nK&&(a=nK+"."+a),a}_isIdentified(){var t,a;return"identified"===(null===(t=this.persistence)||void 0===t?void 0:t.get_property(e2))||"identified"===(null===(a=this.sessionPersistence)||void 0===a?void 0:a.get_property(e2))}_hasPersonProcessing(){var t,a,l,c;return!("never"===this.config.person_profiles||"identified_only"===this.config.person_profiles&&!this._isIdentified()&&C(this.getGroups())&&(null===(t=this.persistence)||void 0===t||null===(a=t.props)||void 0===a||!a[eO])&&(null===(l=this.persistence)||void 0===l||null===(c=l.props)||void 0===c||!c[e9]))}_shouldCapturePageleave(){return!0===this.config.capture_pageleave||"if_capture_pageview"===this.config.capture_pageleave&&this.config.capture_pageview}createPersonProfile(){this._hasPersonProcessing()||this._requirePersonProcessing("posthog.createPersonProfile")&&this.setPersonProperties({},{})}_requirePersonProcessing(t){return"never"===this.config.person_profiles?(ek.error(t+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this._register_single(e9,!0),!0)}_sync_opt_out_with_persistence(){var t,a,l,c,d=this.consent.isOptedOut(),p=this.config.opt_out_persistence_by_default,f=this.config.disable_persistence||d&&!!p;(null===(t=this.persistence)||void 0===t?void 0:t.disabled)!==f&&(null===(l=this.persistence)||void 0===l||l.set_disabled(f)),(null===(a=this.sessionPersistence)||void 0===a?void 0:a.disabled)!==f&&(null===(c=this.sessionPersistence)||void 0===c||c.set_disabled(f))}opt_in_capturing(t){var a;this.consent.optInOut(!0),this._sync_opt_out_with_persistence(),(F(null==t?void 0:t.captureEventName)||null!=t&&t.captureEventName)&&this.capture(null!==(a=null==t?void 0:t.captureEventName)&&void 0!==a?a:"$opt_in",null==t?void 0:t.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this._captureInitialPageview()}opt_out_capturing(){this.consent.optInOut(!1),this._sync_opt_out_with_persistence()}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}clear_opt_in_out_capturing(){this.consent.reset(),this._sync_opt_out_with_persistence()}_is_bot(){return ea?go(ea,this.config.custom_blocked_useragents):void 0}_captureInitialPageview(){el&&!this._initialPageviewCaptured&&(this._initialPageviewCaptured=!0,this.capture("$pageview",{title:el.title},{send_instantly:!0}))}debug(t){!1===t?(null==U||U.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(null==U||U.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}_runBeforeSend(t){if(A(this.config.before_send))return t;var a=ew(this.config.before_send)?this.config.before_send:[this.config.before_send],l=t;for(var c of a){if(A(l=c(l))){var d="Event '".concat(t.event,"' was rejected in beforeSend function");return q(t.event)?ek.warn("".concat(d,". This can cause unexpected behavior.")):ek.info(d),null}l.properties&&!C(l.properties)||ek.warn("Event '".concat(t.event,"' has no properties after beforeSend function, this is likely an error."))}return l}getPageViewId(){var t;
55return null===(t=this.pageViewManager._currentPageview)||void 0===t?void 0:t.pageViewId}captureTraceFeedback(t,a){this.capture("$ai_feedback",{$ai_trace_id:String(t),$ai_feedback_text:a})}captureTraceMetric(t,a,l){this.capture("$ai_metric",{$ai_trace_id:String(t),$ai_metric_name:a,$ai_metric_value:String(l)})}};!function(t,a){for(var l=0;l<a.length;l++)t.prototype[a[l]]=te(t.prototype[a[l]])}(Co,["identify"]);var nJ,nY,n0=(nY=nQ[nK]=new Co,function(){function e(){e.done||(e.done=!0,nX=!1,K(nQ,function(t){t._dom_loaded()}))}null!=el&&el.addEventListener?"complete"===el.readyState?e():ae(el,"DOMContentLoaded",e,{capture:!1}):U&&ek.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")}(),nY),n1=(0,f.createContext)({client:n0});function PostHogProvider(t){var a=t.children,l=t.client,c=t.apiKey,d=t.options,p=(0,f.useState)(!1),h=p[0],g=p[1],_=(0,f.useMemo)(function(){return l?(c&&console.warn("[PostHog.js] You have provided both `client` and `apiKey` to `PostHogProvider`. `apiKey` will be ignored in favour of `client`."),d&&console.warn("[PostHog.js] You have provided both `client` and `options` to `PostHogProvider`. `options` will be ignored in favour of `client`."),l.__loaded&&console.warn("[PostHog.js] `client` was already loaded elsewhere. This may cause issues."),l):(c?(!1!==h?(c!==h.previousAPIKey&&console.warn("[PostHog.js] You have provided a different `apiKey` to `PostHogProvider` than the one that was already initialized. This is not supported by our provider and we'll keep using the previous key. If you need to toggle between API Keys you need to control the `client` yourself and pass it in as a prop rather than an `apiKey` prop."),d&&!function isDeepEqual(t,a,l){if(void 0===l&&(l=new WeakMap),t===a)return!0;if("object"!=typeof t||null===t||"object"!=typeof a||null===a)return!1;if(l.has(t)&&l.get(t)===a)return!0;l.set(t,a);var c=Object.keys(t),d=Object.keys(a);if(c.length!==d.length)return!1;for(var p=0;p<c.length;p++){var f=c[p];if(!d.includes(f)||!isDeepEqual(t[f],a[f],l))return!1}return!0}(d,h.previousOptions)&&n0.set_config(d)):(n0.__loaded&&console.warn("[PostHog.js] `posthog` was already loaded elsewhere. This may cause issues."),n0.init(c,d)),g({previousAPIKey:c,previousOptions:null!=d?d:{}})):console.warn("[PostHog.js] No `apiKey` or `client` were provided to `PostHogProvider`. Using default global `window.posthog` instance. You must initialize it manually. This is not recommended behavior."),n0)},[l,c,JSON.stringify(d)]);return f.createElement(n1.Provider,{value:{client:_}},a)}l(873);var n2={token:{colorPrimary:"#1F6DFB",fontSizeBase:"14px",fontSizeLg:"16px",fontSizeSm:"12px",textColor:"#000",textColorSecondary:"#000",textColorInverse:"#fff",textSelectionBg:"#1890ff"}};function App(t){let{Component:a,pageProps:l}=t,d=a.getLayout||(t=>t),[h,_]=(0,f.useState)(!1);return(0,f.useEffect)(()=>_(!0),[]),(0,f.useEffect)(()=>{n0.init("phc_Rdu6AmCYaJVWHbkvL6NsHfJteqv0xK3m0ByVzMng03N",{api_host:"https://us.i.posthog.com",person_profiles:"identified_only",loaded:t=>{}});let handleRouteChange=()=>null==n0?void 0:n0.capture("$pageview");return p().events.on("routeChangeComplete",handleRouteChange),()=>{p().events.off("routeChangeComplete",handleRouteChange)}},[]),(0,f.useLayoutEffect)(()=>{let t=document.getElementById("holderjs-style");console.log("style",t),t&&(null==t||t.remove())},[]),d((0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(x(),{children:[(0,c.jsx)("link",{rel:"icon",href:"/favicon.ico"}),(0,c.jsx)("link",{rel:"apple-touch-icon",href:"/favicon.ico"}),(0,c.jsx)("meta",{name:"theme-color",content:"#1E6DFB"}),(0,c.jsx)("meta",{property:"og:title",content:"Make Stunning Presentations in Minutes"}),(0,c.jsx)("meta",{property:"og:description",content:"Choose from hundreds of templates, icons, and graphics, and access powerful plugin features for the perfect presentation."}),(0,c.jsx)("meta",{property:"og:image",content:"/images/og2.png"}),(0,c.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,c.jsx)("meta",{name:"twitter:site",content:"@Premast_co"}),(0,c.jsx)("meta",{name:"twitter:title",content:"Make Stunning Presentations in Minutes"}),(0,c.jsx)("meta",{name:"twitter:description",content:"Choose from hundreds of templates, icons, and graphics, and access powerful plugin features for the perfect presentation."}),(0,c.jsx)("meta",{name:"twitter:image",content:"/images/og2.png"})]}),(0,c.jsx)("style",{id:"holderjs-style",dangerouslySetInnerHTML:{__html:"\n            *, *::before, *::after {\n               transition: none!important;\n            }\n         "}}),(0,c.jsx)("div",{style:{visibility:h?"visible":"hidden"},children:(0,c.jsx)(g.Z,{children:(0,c.jsx)(k.default,{theme:n2,children:(0,c.jsx)(w.e,{client:S.Z,children:(0,c.jsx)(PostHogProvider,{client:n0,children:(0,c.jsx)(FacebookPixelProvider,{children:(0,c.jsx)(a,{...l})})})})})})})]}))}l(57710),n2.token.fontFamily='Poppins, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif',H().c
55onfigure({showSpinner:!1}),p().events.on("routeChangeStart",()=>H().start()),p().events.on("routeChangeComplete",()=>H().done()),p().events.on("routeChangeError",()=>H().done())},88970:function(t,a,l){"use strict";var c=l(30522),d=l(13440);let p=new c.f({uri:"".concat("https://admin.premast.com/wp","/?graphql"),cache:new d.h,headers:{authorization:"Basic YWRtaW46cndvRzdBKUUlR1NrdTBWOElVQkFxYiNK"},defaultOptions:{watchQuery:{fetchPolicy:"no-cache"},query:{fetchPolicy:"no-cache"},mutate:{fetchPolicy:"no-cache"}}});a.Z=p},873:function(){},55303:function(){},57710:function(){},9008:function(t,a,l){t.exports=l(34605)},11163:function(t,a,l){t.exports=l(38355)},74865:function(t,a,l){var c,d;void 0!==(d="function"==typeof(c=function(){var t,a,l,c={};c.version="0.2.0";var d=c.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 clamp(t,a,l){return t<a?a:t>l?l:t}c.configure=function(t){var a,l;for(a in t)void 0!==(l=t[a])&&t.hasOwnProperty(a)&&(d[a]=l);return this},c.status=null,c.set=function(t){var a=c.isStarted();t=clamp(t,d.minimum,1),c.status=1===t?null:t;var l=c.render(!a),h=l.querySelector(d.barSelector),g=d.speed,_=d.easing;return l.offsetWidth,p(function(a){var p,S;""===d.positionUsing&&(d.positionUsing=c.getPositioningCSS()),f(h,(p=t,(S="translate3d"===d.positionUsing?{transform:"translate3d("+(-1+p)*100+"%,0,0)"}:"translate"===d.positionUsing?{transform:"translate("+(-1+p)*100+"%,0)"}:{"margin-left":(-1+p)*100+"%"}).transition="all "+g+"ms "+_,S)),1===t?(f(l,{transition:"none",opacity:1}),l.offsetWidth,setTimeout(function(){f(l,{transition:"all "+g+"ms linear",opacity:0}),setTimeout(function(){c.remove(),a()},g)},g)):setTimeout(a,g)}),this},c.isStarted=function(){return"number"==typeof c.status},c.start=function(){c.status||c.set(0);var work=function(){setTimeout(function(){c.status&&(c.trickle(),work())},d.trickleSpeed)};return d.trickle&&work(),this},c.done=function(t){return t||c.status?c.inc(.3+.5*Math.random()).set(1):this},c.inc=function(t){var a=c.status;return a?("number"!=typeof t&&(t=(1-a)*clamp(Math.random()*a,.1,.95)),a=clamp(a+t,0,.994),c.set(a)):c.start()},c.trickle=function(){return c.inc(Math.random()*d.trickleRate)},t=0,a=0,c.promise=function(l){return l&&"resolved"!==l.state()&&(0===a&&c.start(),t++,a++,l.always(function(){0==--a?(t=0,c.done()):c.set((t-a)/t)})),this},c.render=function(t){if(c.isRendered())return document.getElementById("nprogress");addClass(document.documentElement,"nprogress-busy");var a=document.createElement("div");a.id="nprogress",a.innerHTML=d.template;var l,p,h=a.querySelector(d.barSelector),g=t?"-100":(-1+(c.status||0))*100,_=document.querySelector(d.parent);return f(h,{transition:"all 0 linear",transform:"translate3d("+g+"%,0,0)"}),!d.showSpinner&&(p=a.querySelector(d.spinnerSelector))&&removeElement(p),_!=document.body&&addClass(_,"nprogress-custom-parent"),_.appendChild(a),a},c.remove=function(){removeClass(document.documentElement,"nprogress-busy"),removeClass(document.querySelector(d.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&removeElement(t)},c.isRendered=function(){return!!document.getElementById("nprogress")},c.getPositioningCSS=function(){var t=document.body.style,a="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return a+"Perspective" in t?"translate3d":a+"Transform" in t?"translate":"margin"};var p=(l=[],function(t){l.push(t),1==l.length&&function next(){var t=l.shift();t&&t(next)}()}),f=function(){var t=["Webkit","O","Moz","ms"],a={};function applyCss(l,c,d){var p;c=a[p=(p=c).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(t,a){return a.toUpperCase()})]||(a[p]=function(a){var l=document.body.style;if(a in l)return a;for(var c,d=t.length,p=a.charAt(0).toUpperCase()+a.slice(1);d--;)if((c=t[d]+p)in l)return c;return a}(p)),l.style[c]=d}return function(t,a){var l,c,d=arguments;if(2==d.length)for(l in a)void 0!==(c=a[l])&&a.hasOwnProperty(l)&&applyCss(t,l,c);else applyCss(t,d[1],d[2])}}();function hasClass(t,a){return("string"==typeof t?t:classList(t)).indexOf(" "+a+" ")>=0}function addClass(t,a){var l=classList(t),c=l+a;hasClass(l,a)||(t.className=c.substring(1))}function removeClass(t,a){var l,c=classList(t);hasClass(t,a)&&(l=c.replace(" "+a+" "," "),t.className=l.substring(1,l.length-1))}function classList(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function removeElement(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return c})?c.call(a,l,a,t):c)&&(t.exports=d)},34155:function(t){var a,l,c,d=t.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(t){if(a===setTimeout)return setTimeout(t,0);if((a===defaultSetTimout||!a)&&setTimeout)return a=setTimeout,setTimeout(t,0);try{return a(t,0)}catch(l){try{return a.call(null,t,0)}catch(l){return a.call(this,t,0)}}}!function(){try{a="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(t){a=defaultSetTimout}try{l="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(t){l=defaultClearTimeout}}();var p=[],f=!1,h=-1;function cleanUpNextTick(){f&&c&&(f=!1,c.length?p=c.concat(p):h=-1,p.length&&drainQueue())}function drainQueue(){if(!f){var t=runTimeout(cleanUpNextTick);f=!0;for(var a=p.length;a;){for(c=p,p=[];++h<a;
55)c&&c[h].run();h=-1,a=p.length}c=null,f=!1,function(t){if(l===clearTimeout)return clearTimeout(t);if((l===defaultClearTimeout||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{l(t)}catch(a){try{return l.call(null,t)}catch(a){return l.call(this,t)}}}(t)}}function Item(t,a){this.fun=t,this.array=a}function noop(){}d.nextTick=function(t){var a=Array(arguments.length-1);if(arguments.length>1)for(var l=1;l<arguments.length;l++)a[l-1]=arguments[l];p.push(new Item(t,a)),1!==p.length||f||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=noop,d.addListener=noop,d.once=noop,d.off=noop,d.removeListener=noop,d.removeAllListeners=noop,d.emit=noop,d.prependListener=noop,d.prependOnceListener=noop,d.listeners=function(t){return[]},d.binding=function(t){throw Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(t){throw Error("process.chdir is not supported")},d.umask=function(){return 0}},29372:function(t,a,l){"use strict";l.r(a),l.d(a,{CSSMotionList:function(){return eV},Provider:function(){return MotionProvider},default:function(){return ez}});var c,d,p,f,h,g=l(4942),_=l(1413),S=l(97685),w=l(71002),k=l(93967),E=l.n(k),x=l(34203),B=l(42550),H=l(67294),U=l(91),J=["children"],er=H.createContext({});function MotionProvider(t){var a=t.children,l=(0,U.Z)(t,J);return H.createElement(er.Provider,{value:l},a)}var en=l(15671),ei=l(43144),ea=l(60136),el=l(29388),ec=function(t){(0,ea.Z)(DomWrapper,t);var a=(0,el.Z)(DomWrapper);function DomWrapper(){return(0,en.Z)(this,DomWrapper),a.apply(this,arguments)}return(0,ei.Z)(DomWrapper,[{key:"render",value:function(){return this.props.children}}]),DomWrapper}(H.Component),eu=l(56790),ed=l(30470),ep=l(66680),ef="none",eh="appear",eg="enter",em="leave",ev="none",ey="prepare",e_="start",eb="active",eS="prepared",ew=l(98924);function makePrefixMap(t,a){var l={};return l[t.toLowerCase()]=a.toLowerCase(),l["Webkit".concat(t)]="webkit".concat(a),l["Moz".concat(t)]="moz".concat(a),l["ms".concat(t)]="MS".concat(a),l["O".concat(t)]="o".concat(a.toLowerCase()),l}var ek=(c=(0,ew.Z)(),d="undefined"!=typeof window?window:{},p={animationend:makePrefixMap("Animation","AnimationEnd"),transitionend:makePrefixMap("Transition","TransitionEnd")},!c||("AnimationEvent"in d||delete p.animationend.animation,"TransitionEvent"in d||delete p.transitionend.transition),p),eE={};(0,ew.Z)()&&(eE=document.createElement("div").style);var eC={};function getVendorPrefixedEventName(t){if(eC[t])return eC[t];var a=ek[t];if(a)for(var l=Object.keys(a),c=l.length,d=0;d<c;d+=1){var p=l[d];if(Object.prototype.hasOwnProperty.call(a,p)&&p in eE)return eC[t]=a[p],eC[t]}return""}var ex=getVendorPrefixedEventName("animationend"),eT=getVendorPrefixedEventName("transitionend"),eI=!!(ex&&eT),eO=ex||"animationend",eR=eT||"transitionend";function getTransitionName(t,a){return t?"object"===(0,w.Z)(t)?t[a.replace(/-\w/g,function(t){return t[1].toUpperCase()})]:"".concat(t,"-").concat(a):null}var useDomMotionEvents=function(t){var a=(0,H.useRef)();function removeMotionEvents(a){a&&(a.removeEventListener(eR,t),a.removeEventListener(eO,t))}return H.useEffect(function(){return function(){removeMotionEvents(a.current)}},[]),[function(l){a.current&&a.current!==l&&removeMotionEvents(a.current),l&&l!==a.current&&(l.addEventListener(eR,t),l.addEventListener(eO,t),a.current=l)},removeMotionEvents]},eM=(0,ew.Z)()?H.useLayoutEffect:H.useEffect,eP=l(75164),useNextFrame=function(){var t=H.useRef(null);function cancelNextFrame(){eP.Z.cancel(t.current)}return H.useEffect(function(){return function(){cancelNextFrame()}},[]),[function nextFrame(a){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;cancelNextFrame();var c=(0,eP.Z)(function(){l<=1?a({isCanceled:function(){return c!==t.current}}):nextFrame(a,l-1)});t.current=c},cancelNextFrame]},eA=[ey,e_,eb,"end"],eF=[ey,eS];function isActive(t){return t===eb||"end"===t}var useStepQueue=function(t,a,l){var c=(0,ed.Z)(ev),d=(0,S.Z)(c,2),p=d[0],f=d[1],h=useNextFrame(),g=(0,S.Z)(h,2),_=g[0],w=g[1],k=a?eF:eA;return eM(function(){if(p!==ev&&"end"!==p){var t=k.indexOf(p),a=k[t+1],c=l(p);!1===c?f(a,!0):a&&_(function(t){function doNext(){t.isCanceled()||f(a,!0)}!0===c?doNext():Promise.resolve(c).then(doNext)})}},[t,p]),H.useEffect(function(){return function(){w()}},[]),[function(){f(ey,!0)},p]},eD=(f=eI,"object"===(0,w.Z)(eI)&&(f=eI.transitionSupport),(h=H.forwardRef(function(t,a){var l=t.visible,c=void 0===l||l,d=t.removeOnLeave,p=void 0===d||d,h=t.forceRender,w=t.children,k=t.motionName,U=t.leavedClassName,J=t.eventProps,en=H.useContext(er).motion,ei=!!(t.motionName&&f&&!1!==e
55n),ea=(0,H.useRef)(),el=(0,H.useRef)(),ev=function(t,a,l,c){var d,p,f,h=c.motionEnter,w=void 0===h||h,k=c.motionAppear,E=void 0===k||k,x=c.motionLeave,B=void 0===x||x,U=c.motionDeadline,J=c.motionLeaveImmediately,er=c.onAppearPrepare,en=c.onEnterPrepare,ei=c.onLeavePrepare,ea=c.onAppearStart,el=c.onEnterStart,ec=c.onLeaveStart,ev=c.onAppearActive,ew=c.onEnterActive,ek=c.onLeaveActive,eE=c.onAppearEnd,eC=c.onEnterEnd,ex=c.onLeaveEnd,eT=c.onVisibleChanged,eI=(0,ed.Z)(),eO=(0,S.Z)(eI,2),eR=eO[0],eP=eO[1],eA=(d=H.useReducer(function(t){return t+1},0),p=(0,S.Z)(d,2)[1],f=H.useRef(ef),[(0,ep.Z)(function(){return f.current}),(0,ep.Z)(function(t){f.current="function"==typeof t?t(f.current):t,p()})]),eF=(0,S.Z)(eA,2),eD=eF[0],eN=eF[1],eL=(0,ed.Z)(null),ej=(0,S.Z)(eL,2),e$=ej[0],eB=ej[1],eH=eD(),eW=(0,H.useRef)(!1),eq=(0,H.useRef)(null),eV=(0,H.useRef)(!1);function updateMotionEndStatus(){eN(ef),eB(null,!0)}var ez=(0,eu.useEvent)(function(t){var a,c=eD();if(c!==ef){var d=l();if(!t||t.deadline||t.target===d){var p=eV.current;c===eh&&p?a=null==eE?void 0:eE(d,t):c===eg&&p?a=null==eC?void 0:eC(d,t):c===em&&p&&(a=null==ex?void 0:ex(d,t)),p&&!1!==a&&updateMotionEndStatus()}}}),eU=useDomMotionEvents(ez),eZ=(0,S.Z)(eU,1)[0],getEventHandlers=function(t){switch(t){case eh:return(0,g.Z)((0,g.Z)((0,g.Z)({},ey,er),e_,ea),eb,ev);case eg:return(0,g.Z)((0,g.Z)((0,g.Z)({},ey,en),e_,el),eb,ew);case em:return(0,g.Z)((0,g.Z)((0,g.Z)({},ey,ei),e_,ec),eb,ek);default:return{}}},eG=H.useMemo(function(){return getEventHandlers(eH)},[eH]),eQ=useStepQueue(eH,!t,function(t){if(t===ey){var a,c=eG[ey];return!!c&&c(l())}return eJ in eG&&eB((null===(a=eG[eJ])||void 0===a?void 0:a.call(eG,l(),null))||null),eJ===eb&&eH!==ef&&(eZ(l()),U>0&&(clearTimeout(eq.current),eq.current=setTimeout(function(){ez({deadline:!0})},U))),eJ===eS&&updateMotionEndStatus(),!0}),eK=(0,S.Z)(eQ,2),eX=eK[0],eJ=eK[1],eY=isActive(eJ);eV.current=eY;var e0=(0,H.useRef)(null);eM(function(){if(!eW.current||e0.current!==a){eP(a);var l,c=eW.current;eW.current=!0,!c&&a&&E&&(l=eh),c&&a&&w&&(l=eg),(c&&!a&&B||!c&&J&&!a&&B)&&(l=em);var d=getEventHandlers(l);l&&(t||d[ey])?(eN(l),eX()):eN(ef),e0.current=a}},[a]),(0,H.useEffect)(function(){(eH!==eh||E)&&(eH!==eg||w)&&(eH!==em||B)||eN(ef)},[E,w,B]),(0,H.useEffect)(function(){return function(){eW.current=!1,clearTimeout(eq.current)}},[]);var e1=H.useRef(!1);(0,H.useEffect)(function(){eR&&(e1.current=!0),void 0!==eR&&eH===ef&&((e1.current||eR)&&(null==eT||eT(eR)),e1.current=!0)},[eR,eH]);var e2=e$;return eG[ey]&&eJ===e_&&(e2=(0,_.Z)({transition:"none"},e2)),[eH,eJ,e2,null!=eR?eR:a]}(ei,c,function(){try{return ea.current instanceof HTMLElement?ea.current:(0,x.ZP)(el.current)}catch(t){return null}},t),ew=(0,S.Z)(ev,4),ek=ew[0],eE=ew[1],eC=ew[2],ex=ew[3],eT=H.useRef(ex);ex&&(eT.current=!0);var eI=H.useCallback(function(t){ea.current=t,(0,B.mH)(a,t)},[a]),eO=(0,_.Z)((0,_.Z)({},J),{},{visible:c});if(w){if(ek===ef)eR=ex?w((0,_.Z)({},eO),eI):!p&&eT.current&&U?w((0,_.Z)((0,_.Z)({},eO),{},{className:U}),eI):!h&&(p||U)?null:w((0,_.Z)((0,_.Z)({},eO),{},{style:{display:"none"}}),eI);else{eE===ey?eP="prepare":isActive(eE)?eP="active":eE===e_&&(eP="start");var eR,eP,eA=getTransitionName(k,"".concat(ek,"-").concat(eP));eR=w((0,_.Z)((0,_.Z)({},eO),{},{className:E()(getTransitionName(k,ek),(0,g.Z)((0,g.Z)({},eA,eA&&eP),k,"string"==typeof k)),style:eC}),eI)}}else eR=null;return H.isValidElement(eR)&&(0,B.Yr)(eR)&&!(0,B.C4)(eR)&&(eR=H.cloneElement(eR,{ref:eI})),H.createElement(ec,{ref:el},eR)})).displayName="CSSMotion",h),eN=l(87462),eL=l(97326),ej="keep",e$="remove",eB="removed";function wrapKeyToObject(t){var a;return a=t&&"object"===(0,w.Z)(t)&&"key"in t?t:{key:t},(0,_.Z)((0,_.Z)({},a),{},{key:String(a.key)})}function parseKeys(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.map(wrapKeyToObject)}var eH=["component","children","onVisibleChanged","onAllRemoved"],eW=["status"],eq=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"],eV=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eD,l=function(t){(0,ea.Z)(CSSMotionList,t);var l=(0,el.Z)(CSSMotionList);function CSSMotionList(){var t;(0,en.Z)(this,CSSMotionList);for(var a=arguments.length,c=Array(a),d=0;d<a;d++)c[d]=arguments[d];return t=l.call.apply(l,[this].concat(c)),(0,g.Z)((0,eL.Z)(t),"state",{keyEntities:[]}),(0,g.Z)((0,eL.Z)(t),"removeKey",function(a){t.setState(function(t){return{keyEntities:t.keyEntities.map(function(t){return t.key!==a?t:(0,_.Z)((0,_.Z)({},t),{},{status:eB}
55)})}},function(){0===t.state.keyEntities.filter(function(t){return t.status!==eB}).length&&t.props.onAllRemoved&&t.props.onAllRemoved()})}),t}return(0,ei.Z)(CSSMotionList,[{key:"render",value:function(){var t=this,l=this.state.keyEntities,c=this.props,d=c.component,p=c.children,f=c.onVisibleChanged,h=(c.onAllRemoved,(0,U.Z)(c,eH)),g=d||H.Fragment,S={};return eq.forEach(function(t){S[t]=h[t],delete h[t]}),delete h.keys,H.createElement(g,h,l.map(function(l,c){var d=l.status,h=(0,U.Z)(l,eW);return H.createElement(a,(0,eN.Z)({},S,{key:h.key,visible:"add"===d||d===ej,eventProps:h,onVisibleChanged:function(a){null==f||f(a,{key:h.key}),a||t.removeKey(h.key)}}),function(t,a){return p((0,_.Z)((0,_.Z)({},t),{},{index:c}),a)})}))}}],[{key:"getDerivedStateFromProps",value:function(t,a){var l=t.keys,c=a.keyEntities;return{keyEntities:(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],l=[],c=0,d=a.length,p=parseKeys(t),f=parseKeys(a);p.forEach(function(t){for(var a=!1,p=c;p<d;p+=1){var h=f[p];if(h.key===t.key){c<p&&(l=l.concat(f.slice(c,p).map(function(t){return(0,_.Z)((0,_.Z)({},t),{},{status:"add"})})),c=p),l.push((0,_.Z)((0,_.Z)({},h),{},{status:ej})),c+=1,a=!0;break}}a||l.push((0,_.Z)((0,_.Z)({},t),{},{status:e$}))}),c<d&&(l=l.concat(f.slice(c).map(function(t){return(0,_.Z)((0,_.Z)({},t),{},{status:"add"})})));var h={};return l.forEach(function(t){var a=t.key;h[a]=(h[a]||0)+1}),Object.keys(h).filter(function(t){return h[t]>1}).forEach(function(t){(l=l.filter(function(a){var l=a.key,c=a.status;return l!==t||c!==e$})).forEach(function(a){a.key===t&&(a.status=ej)})}),l})(c,parseKeys(l)).filter(function(t){var a=c.find(function(a){var l=a.key;return t.key===l});return!a||a.status!==eB||t.status!==e$})}}}]),CSSMotionList}(H.Component);return(0,g.Z)(l,"defaultProps",{component:"div"}),l}(eI),ez=eD},62273:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,a.default={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"}},26114:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.commonLocale=void 0,a.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}},27590:function(t,a,l){"use strict";var c=l(64836).default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var d=c(l(42122)),p=l(26114),f=(0,d.default)((0,d.default)({},p.commonLocale),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});a.default=f},98924:function(t,a,l){"use strict";function canUseDom(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}l.d(a,{Z:function(){return canUseDom}})},94999:function(t,a,l){"use strict";function contains(t,a){if(!t)return!1;if(t.contains)return t.contains(a);for(var l=a;l;){if(l===t)return!0;l=l.parentNode}return!1}l.d(a,{Z:function(){return contains}})},44958:function(t,a,l){"use strict";l.d(a,{hq:function(){return updateCSS},jL:function(){return removeCSS}});var c=l(1413),d=l(98924),p=l(94999),f="data-rc-order",h="data-rc-priority",g=new Map;function getMark(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.mark;return a?a.startsWith("data-")?a:"data-".concat(a):"rc-util-key"}function getContainer(t){return t.attachTo?t.attachTo:document.querySelector("head")||document.body}function findStyles(t){return Array.from((g.get(t)||t).children).filter(function(t){return"STYLE"===t.tagName})}function injectCSS(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,d.Z)())return null;var l=a.csp,c=a.prepend,p=a.priority,g=void 0===p?0:p,_="queue"===c?"prepe
55ndQueue":c?"prepend":"append",S="prependQueue"===_,w=document.createElement("style");w.setAttribute(f,_),S&&g&&w.setAttribute(h,"".concat(g)),null!=l&&l.nonce&&(w.nonce=null==l?void 0:l.nonce),w.innerHTML=t;var k=getContainer(a),E=k.firstChild;if(c){if(S){var x=(a.styles||findStyles(k)).filter(function(t){return!!["prepend","prependQueue"].includes(t.getAttribute(f))&&g>=Number(t.getAttribute(h)||0)});if(x.length)return k.insertBefore(w,x[x.length-1].nextSibling),w}k.insertBefore(w,E)}else k.appendChild(w);return w}function findExistNode(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=getContainer(a);return(a.styles||findStyles(l)).find(function(l){return l.getAttribute(getMark(a))===t})}function removeCSS(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=findExistNode(t,a);l&&getContainer(a).removeChild(l)}function updateCSS(t,a){var l,d,f,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},_=getContainer(h),S=findStyles(_),w=(0,c.Z)((0,c.Z)({},h),{},{styles:S});!function(t,a){var l=g.get(t);if(!l||!(0,p.Z)(document,l)){var c=injectCSS("",a),d=c.parentNode;g.set(t,d),t.removeChild(c)}}(_,w);var k=findExistNode(a,w);if(k)return null!==(l=w.csp)&&void 0!==l&&l.nonce&&k.nonce!==(null===(d=w.csp)||void 0===d?void 0:d.nonce)&&(k.nonce=null===(f=w.csp)||void 0===f?void 0:f.nonce),k.innerHTML!==t&&(k.innerHTML=t),k;var E=injectCSS(t,w);return E.setAttribute(getMark(w),a),E}},34203:function(t,a,l){"use strict";l.d(a,{Sh:function(){return isDOM},ZP:function(){return findDOMNode},bn:function(){return getDOM}});var c=l(71002),d=l(67294),p=l(73935);function isDOM(t){return t instanceof HTMLElement||t instanceof SVGElement}function getDOM(t){return t&&"object"===(0,c.Z)(t)&&isDOM(t.nativeElement)?t.nativeElement:isDOM(t)?t:null}function findDOMNode(t){var a;return getDOM(t)||(t instanceof d.Component?null===(a=p.findDOMNode)||void 0===a?void 0:a.call(p,t):null)}},25517:function(t,a,l){"use strict";l.d(a,{Z:function(){return isFragment}});var c=l(71002),d=Symbol.for("react.element"),p=Symbol.for("react.transitional.element"),f=Symbol.for("react.fragment");function isFragment(t){return t&&"object"===(0,c.Z)(t)&&(t.$$typeof===d||t.$$typeof===p)&&t.type===f}},66680:function(t,a,l){"use strict";l.d(a,{Z:function(){return useEvent}});var c=l(67294);function useEvent(t){var a=c.useRef();return a.current=t,c.useCallback(function(){for(var t,l=arguments.length,c=Array(l),d=0;d<l;d++)c[d]=arguments[d];return null===(t=a.current)||void 0===t?void 0:t.call.apply(t,[a].concat(c))},[])}},8410:function(t,a,l){"use strict";l.d(a,{o:function(){return useLayoutUpdateEffect}});var c=l(67294),d=(0,l(98924).Z)()?c.useLayoutEffect:c.useEffect,useLayoutEffect=function(t,a){var l=c.useRef(!0);d(function(){return t(l.current)},a),d(function(){return l.current=!1,function(){l.current=!0}},[])},useLayoutUpdateEffect=function(t,a){useLayoutEffect(function(a){if(!a)return t()},a)};a.Z=useLayoutEffect},56982:function(t,a,l){"use strict";l.d(a,{Z:function(){return useMemo}});var c=l(67294);function useMemo(t,a,l){var d=c.useRef({});return(!("value"in d.current)||l(d.current.condition,a))&&(d.current.value=t(),d.current.condition=a),d.current.value}},21770:function(t,a,l){"use strict";l.d(a,{Z:function(){return useMergedState}});var c=l(97685),d=l(66680),p=l(8410),f=l(30470);function hasValue(t){return void 0!==t}function useMergedState(t,a){var l=a||{},h=l.defaultValue,g=l.value,_=l.onChange,S=l.postState,w=(0,f.Z)(function(){return hasValue(g)?g:hasValue(h)?"function"==typeof h?h():h:"function"==typeof t?t():t}),k=(0,c.Z)(w,2),E=k[0],x=k[1],B=void 0!==g?g:E,H=S?S(B):B,U=(0,d.Z)(_),J=(0,f.Z)([B]),er=(0,c.Z)(J,2),en=er[0],ei=er[1];return(0,p.o)(function(){var t=en[0];E!==t&&U(E,t)},[en]),(0,p.o)(function(){hasValue(g)||x(g)},[g]),[H,(0,d.Z)(function(t,a){x(t,a),ei([B],a)})]}},30470:function(t,a,l){"use strict";l.d(a,{Z:function(){return useSafeState}});var c=l(97685),d=l(67294);function useSafeState(t){var a=d.useRef(!1),l=d.useState(t),p=(0,c.Z)(l,2),f=p[0],h=p[1];return d.useEffect(function(){return a.current=!1,function(){a.current=!0}},[]),[f,function(t,l){l&&a.current||h(t)}]}},56790:function(t,a,l){"use strict";l.r(a),l.d(a,{get:function(){return f.Z},set:function(){return h.Z},supportNodeRef:function(){return p.t4},supportRef:function(){return p.Yr},useComposeRef:function(){return p.x1},useEvent:function(){return c.Z},useMergedState:function(){return d.Z},warning:function(){return g.ZP}});var c=l(66680),d=l(21770),p=l(42550),f=l(88306),h=l(8880),g=l(80334)},91881:function(t,a,l){"use strict";var c=l(71002),d=l(80334);a.Z=function(t,a){var l=arguments.length>2&&void 0!==arguments[2]&&arguments[2],p=new Set;return function deepEqual(t,a){var f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,h=p.has(t);if((0,d.ZP)(!h,"Warning: There may be circular references"),h)return!1;if(t===a)return!0;
55if(l&&f>1)return!1;p.add(t);var g=f+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var _=0;_<t.length;_++)if(!deepEqual(t[_],a[_],g))return!1;return!0}if(t&&a&&"object"===(0,c.Z)(t)&&"object"===(0,c.Z)(a)){var S=Object.keys(t);return S.length===Object.keys(a).length&&S.every(function(l){return deepEqual(t[l],a[l],g)})}return!1}(t,a)}},75164:function(t,a){"use strict";var raf=function(t){return+setTimeout(t,16)},caf=function(t){return clearTimeout(t)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(raf=function(t){return window.requestAnimationFrame(t)},caf=function(t){return window.cancelAnimationFrame(t)});var l=0,c=new Map,wrapperRaf=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,d=l+=1;return function callRef(a){if(0===a)c.delete(d),t();else{var l=raf(function(){callRef(a-1)});c.set(d,l)}}(a),d};wrapperRaf.cancel=function(t){var a=c.get(t);return c.delete(t),caf(a)},a.Z=wrapperRaf},42550:function(t,a,l){"use strict";l.d(a,{C4:function(){return getNodeRef},Yr:function(){return supportRef},mH:function(){return fillRef},sQ:function(){return composeRef},t4:function(){return supportNodeRef},x1:function(){return useComposeRef}});var c=l(71002),d=l(67294),p=l(11805),f=l(56982),h=l(25517),g=Number(d.version.split(".")[0]),fillRef=function(t,a){"function"==typeof t?t(a):"object"===(0,c.Z)(t)&&t&&"current"in t&&(t.current=a)},composeRef=function(){for(var t=arguments.length,a=Array(t),l=0;l<t;l++)a[l]=arguments[l];var c=a.filter(Boolean);return c.length<=1?c[0]:function(t){a.forEach(function(a){fillRef(a,t)})}},useComposeRef=function(){for(var t=arguments.length,a=Array(t),l=0;l<t;l++)a[l]=arguments[l];return(0,f.Z)(function(){return composeRef.apply(void 0,a)},a,function(t,a){return t.length!==a.length||t.every(function(t,l){return t!==a[l]})})},supportRef=function(t){if(!t)return!1;if(isReactElement(t)&&g>=19)return!0;var a,l,c=(0,p.isMemo)(t)?t.type.type:t.type;return("function"!=typeof c||null!==(a=c.prototype)&&void 0!==a&&!!a.render||c.$$typeof===p.ForwardRef)&&("function"!=typeof t||null!==(l=t.prototype)&&void 0!==l&&!!l.render||t.$$typeof===p.ForwardRef)};function isReactElement(t){return(0,d.isValidElement)(t)&&!(0,h.Z)(t)}var supportNodeRef=function(t){return isReactElement(t)&&supportRef(t)},getNodeRef=function(t){return t&&isReactElement(t)?t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref:null}},88306:function(t,a,l){"use strict";function get(t,a){for(var l=t,c=0;c<a.length;c+=1){if(null==l)return;l=l[a[c]]}return l}l.d(a,{Z:function(){return get}})},8880:function(t,a,l){"use strict";l.d(a,{T:function(){return merge},Z:function(){return set}});var c=l(71002),d=l(1413),p=l(74902),f=l(84506),h=l(88306);function set(t,a,l){var c=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return a.length&&c&&void 0===l&&!(0,h.Z)(t,a.slice(0,-1))?t:function internalSet(t,a,l,c){if(!a.length)return l;var h,g=(0,f.Z)(a),_=g[0],S=g.slice(1);return h=t||"number"!=typeof _?Array.isArray(t)?(0,p.Z)(t):(0,d.Z)({},t):[],c&&void 0===l&&1===S.length?delete h[_][S[0]]:h[_]=internalSet(h[_],S,l,c),h}(t,a,l,c)}function createEmpty(t){return Array.isArray(t)?[]:{}}var g="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function merge(){for(var t=arguments.length,a=Array(t),l=0;l<t;l++)a[l]=arguments[l];var d=createEmpty(a[0]);return a.forEach(function(t){!function internalMerge(a,l){var f=new Set(l),_=(0,h.Z)(t,a),S=Array.isArray(_);if(S||"object"===(0,c.Z)(_)&&null!==_&&Object.getPrototypeOf(_)===Object.prototype){if(!f.has(_)){f.add(_);var w=(0,h.Z)(d,a);S?d=set(d,a,[]):w&&"object"===(0,c.Z)(w)||(d=set(d,a,createEmpty(_))),g(_).forEach(function(t){internalMerge([].concat((0,p.Z)(a),[t]),f)})}}else d=set(d,a,_)}([])}),d}},80334:function(t,a,l){"use strict";l.d(a,{Kp:function(){return warning}});var c={},d=[];function warning(t,a){}function note(t,a){}function call(t,a,l){a||c[l]||(t(!1,l),c[l]=!0)}function warningOnce(t,a){call(warning,t,a)}warningOnce.preMessage=function(t){d.push(t)},warningOnce.resetWarned=function(){c={}},warningOnce.noteOnce=function(t,a){call(note,t,a)},a.ZP=warningOnce},19158:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}},32191:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(t,a){if(!t)return!1;if(t.contains)return t.contains(a);for(var l=a;l;){if(l===t)return!0;l=l.parentNode}return!1}},93399:function(t,a,l){"use strict";var c=l(64836).default;Object.defineProperty(a,"__esModule",{value:!0}),a.clearContainerCache=function(){_.clear()},a.injectCSS=injectCSS,a.removeCSS=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=findExistNode(t,a);l&&getContainer(a).removeChild(l)},a.updateCSS=function(t,a){var l,c,p,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},g=getContainer(h),S=findStyles(g),w=(0,d.default)((0,d.default)({},h),{},{styles:S});!function(t,a){var l=_.get(t);if(!l||!(0,f.default)(document,l)){var c=injectCSS("",a),d=c.parentNode;_.set(t,d),t.removeChild(c)}}(g,w);var k=findExistNode(a,w);if(k)return null!==(l=w.csp)&&void 0!==l&&l.nonce&&k.nonce!==(null===(c=w.csp)||void 0===c?void 0:c.nonce)&&(k.nonce=null===(p=w.csp)||void 0===p?void 0:p.nonce),k.innerHTML!==t&&(k.innerHTML=t),k;var E=injectCSS(t,w);return E.setAttribute(getMark(w),a),E};var d=c(l(42122)),p=c(l(19158)),f=c(l(32191)),h="data-rc-order",g="data-rc-priority",_=new Map;function getMark(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.mark;return a?a.startsWith("data-")?a:"data-".concat(a):"rc-util-key"}function getContainer(t){return t.attachTo?t.attachTo:document.querySelector("head")||document.body}function findStyles(t){return Array.from((_.get(t)||t).children).filter(function(t){return"STYLE"===t.tagName})}function injectCSS(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,p.default)())return null;var l=a.csp,c=a.prepend,d=a.priority,f=void 0===d?0:d,_="queue"===c?"prepe
55ndQueue":c?"prepend":"append",S="prependQueue"===_,w=document.createElement("style");w.setAttribute(h,_),S&&f&&w.setAttribute(g,"".concat(f)),null!=l&&l.nonce&&(w.nonce=null==l?void 0:l.nonce),w.innerHTML=t;var k=getContainer(a),E=k.firstChild;if(c){if(S){var x=(a.styles||findStyles(k)).filter(function(t){return!!["prepend","prependQueue"].includes(t.getAttribute(h))&&f>=Number(t.getAttribute(g)||0)});if(x.length)return k.insertBefore(w,x[x.length-1].nextSibling),w}k.insertBefore(w,E)}else k.appendChild(w);return w}function findExistNode(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=getContainer(a);return(a.styles||findStyles(l)).find(function(l){return l.getAttribute(getMark(a))===t})}},67265:function(t,a,l){"use strict";var c=l(75263).default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(t,a,l){var c=d.useRef({});return(!("value"in c.current)||l(c.current.condition,a))&&(c.current.value=t(),c.current.condition=a),c.current.value};var d=c(l(67294))},11102:function(t,a,l){"use strict";var c=l(64836).default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var d=c(l(18698)),p=c(l(45520));a.default=function(t,a){var l=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c=new Set;return function deepEqual(t,a){var f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,h=c.has(t);if((0,p.default)(!h,"Warning: There may be circular references"),h)return!1;if(t===a)return!0;if(l&&f>1)return!1;c.add(t);var g=f+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var _=0;_<t.length;_++)if(!deepEqual(t[_],a[_],g))return!1;return!0}if(t&&a&&"object"===(0,d.default)(t)&&"object"===(0,d.default)(a)){var S=Object.keys(t);return S.length===Object.keys(a).length&&S.every(function(l){return deepEqual(t[l],a[l],g)})}return!1}(t,a)}},94787:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(t,a){for(var l=t,c=0;c<a.length;c+=1){if(null==l)return;l=l[a[c]]}return l}},20059:function(t,a,l){"use strict";var c=l(64836).default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=set,a.merge=function(){for(var t=arguments.length,a=Array(t),l=0;l<t;l++)a[l]=arguments[l];var c=createEmpty(a[0]);return a.forEach(function(t){!function internalMerge(a,l){var p=new Set(l),h=(0,g.default)(t,a),S=Array.isArray(h);if(S||"object"===(0,d.default)(h)&&null!==h&&Object.getPrototypeOf(h)===Object.prototype){if(!p.has(h)){p.add(h);var w=(0,g.default)(c,a);S?c=set(c,a,[]):w&&"object"===(0,d.default)(w)||(c=set(c,a,createEmpty(h))),_(h).forEach(function(t){internalMerge([].concat((0,f.default)(a),[t]),p)})}}else c=set(c,a,h)}([])}),c};var d=c(l(18698)),p=c(l(42122)),f=c(l(29213)),h=c(l(51589)),g=c(l(94787));function set(t,a,l){var c=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return a.length&&c&&void 0===l&&!(0,g.default)(t,a.slice(0,-1))?t:function internalSet(t,a,l,c){if(!a.length)return l;var d,g=(0,h.default)(a),_=g[0],S=g.slice(1);return d=t||"number"!=typeof _?Array.isArray(t)?(0,f.default)(t):(0,p.default)({},t):[],c&&void 0===l&&1===S.length?delete d[_][S[0]]:d[_]=internalSet(d[_],S,l,c),d}(t,a,l,c)}function createEmpty(t){return Array.isArray(t)?[]:{}}var _="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys},45520:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.call=call,a.default=void 0,a.note=note,a.noteOnce=noteOnce,a.preMessage=void 0,a.resetWarned=resetWarned,a.warning=warning,a.warningOnce=warningOnce;var l={},c=[],d=a.preMessage=function(t){c.push(t)};function warning(t,a){}function note(t,a){}function resetWarned(){l={}}function call(t,a,c){a||l[c]||(t(!1,c),l[c]=!0)}function warningOnce(t,a){call(warning,t,a)}function noteOnce(t,a){call(note,t,a)}warningOnce.preMessage=d,warningOnce.resetWarned=resetWarned,warningOnce.noteOnce=noteOnce,a.default=warningOnce},51162:function(t,a){"use strict";/**
56 * @license React
57 * react-is.production.min.js
58 *
59 * Copyright (c) Facebook, Inc. and its affiliates.
60 *
61 * This source code is licensed under the MIT license found in the
62 * LICENSE file in the root directory of this source tree.
63 */var l,c=Symbol.for("react.element"),d=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),_=Symbol.for("react.context"),S=Symbol.for("react.server_context"),w=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),H=Symbol.for("react.offscreen");function v(t){if("object"==typeof t&&null!==t){var a=t.$$typeof;switch(a){case c:switch(t=t.type){case p:case h:case f:case k:case E:return t;default:switch(t=t&&t.$$typeof){case S:case _:case w:case B:case x:case g:return t;default:return a}}case d:return a}}}l=Symbol.for("react.module.reference"),a.ContextConsumer=_,a.ContextProvider=g,a.Element=c,a.ForwardRef=w,a.Fragment=p,a.Lazy=B,a.Memo=x,a.Portal=d,a.Profiler=h,a.StrictMode=f,a.Suspense=k,a.SuspenseList=E,a.isA
63syncMode=function(){return!1},a.isConcurrentMode=function(){return!1},a.isContextConsumer=function(t){return v(t)===_},a.isContextProvider=function(t){return v(t)===g},a.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===c},a.isForwardRef=function(t){return v(t)===w},a.isFragment=function(t){return v(t)===p},a.isLazy=function(t){return v(t)===B},a.isMemo=function(t){return v(t)===x},a.isPortal=function(t){return v(t)===d},a.isProfiler=function(t){return v(t)===h},a.isStrictMode=function(t){return v(t)===f},a.isSuspense=function(t){return v(t)===k},a.isSuspenseList=function(t){return v(t)===E},a.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===p||t===h||t===f||t===k||t===E||t===H||"object"==typeof t&&null!==t&&(t.$$typeof===B||t.$$typeof===x||t.$$typeof===g||t.$$typeof===_||t.$$typeof===w||t.$$typeof===l||void 0!==t.getModuleId)},a.typeOf=v},11805:function(t,a,l){"use strict";t.exports=l(51162)},73914:function(t,a,l){"use strict";t.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,t.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,t.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(t.exports,l(67294))},73897:function(t){t.exports=function(t,a){(null==a||a>t.length)&&(a=t.length);for(var l=0,c=Array(a);l<a;l++)c[l]=t[l];return c},t.exports.__esModule=!0,t.exports.default=t.exports},85372:function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},63405:function(t,a,l){var c=l(73897);t.exports=function(t){if(Array.isArray(t))return c(t)},t.exports.__esModule=!0,t.exports.default=t.exports},38416:function(t,a,l){var c=l(64062);t.exports=function(t,a,l){return(a=c(a))in t?Object.defineProperty(t,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[a]=l,t},t.exports.__esModule=!0,t.exports.default=t.exports},64836:function(t){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},75263:function(t,a,l){var c=l(18698).default;function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var a=new WeakMap,l=new WeakMap;return(_getRequireWildcardCache=function(t){return t?l:a})(t)}t.exports=function(t,a){if(!a&&t&&t.__esModule)return t;if(null===t||"object"!=c(t)&&"function"!=typeof t)return{default:t};var l=_getRequireWildcardCache(a);if(l&&l.has(t))return l.get(t);var d={__proto__:null},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&({}).hasOwnProperty.call(t,f)){var h=p?Object.getOwnPropertyDescriptor(t,f):null;h&&(h.get||h.set)?Object.defineProperty(d,f,h):d[f]=t[f]}return d.default=t,l&&l.set(t,d),d},t.exports.__esModule=!0,t.exports.default=t.exports},79498:function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},12218:function(t){t.exports=function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},42281:function(t){t.exports=function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},42122:function(t,a,l){var c=l(38416);function ownKeys(t,a){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);a&&(c=c.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),l.push.apply(l,c)}return l}t.exports=function(t){for(var a=1;a<arguments.length;a++){var l=null!=arguments[a]?arguments[a]:{};a%2?ownKeys(Object(l),!0).forEach(function(a){c(t,a,l[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEac
63h(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(l,a))})}return t},t.exports.__esModule=!0,t.exports.default=t.exports},51589:function(t,a,l){var c=l(85372),d=l(79498),p=l(86116),f=l(12218);t.exports=function(t){return c(t)||d(t)||p(t)||f()},t.exports.__esModule=!0,t.exports.default=t.exports},29213:function(t,a,l){var c=l(63405),d=l(79498),p=l(86116),f=l(42281);t.exports=function(t){return c(t)||d(t)||p(t)||f()},t.exports.__esModule=!0,t.exports.default=t.exports},95036:function(t,a,l){var c=l(18698).default;t.exports=function(t,a){if("object"!=c(t)||!t)return t;var l=t[Symbol.toPrimitive];if(void 0!==l){var d=l.call(t,a||"default");if("object"!=c(d))return d;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},64062:function(t,a,l){var c=l(18698).default,d=l(95036);t.exports=function(t){var a=d(t,"string");return"symbol"==c(a)?a:a+""},t.exports.__esModule=!0,t.exports.default=t.exports},18698:function(t){function _typeof(a){return t.exports=_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,_typeof(a)}t.exports=_typeof,t.exports.__esModule=!0,t.exports.default=t.exports},86116:function(t,a,l){var c=l(73897);t.exports=function(t,a){if(t){if("string"==typeof t)return c(t,a);var l=({}).toString.call(t).slice(8,-1);return"Object"===l&&t.constructor&&(l=t.constructor.name),"Map"===l||"Set"===l?Array.from(t):"Arguments"===l||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?c(t,a):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},93967:function(t,a){var l;/*!
64	Copyright (c) 2018 Jed Watson.
65	Licensed under the MIT License (MIT), see
66	http://jedwatson.github.io/classnames
67*/!function(){"use strict";var c={}.hasOwnProperty;function classNames(){for(var t="",a=0;a<arguments.length;a++){var l=arguments[a];l&&(t=appendClass(t,function(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return classNames.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var a="";for(var l in t)c.call(t,l)&&t[l]&&(a=appendClass(a,l));return a}(l)))}return t}function appendClass(t,a){return a?t?t+" "+a:t+a:t}t.exports?(classNames.default=classNames,t.exports=classNames):void 0!==(l=(function(){return classNames}).apply(a,[]))&&(t.exports=l)}()},11294:function(t,a,l){"use strict";l.d(a,{R:function(){return B}});var c=l(97582),d=l(56275),p=l(23361),f=l(66331),h=l(36765),g=l(48216),_=l(182),S=l(99869),w=l(88244),k=l(39613),E=l(69316),x=l(54522),B=function(){function ApolloCache(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,d.re)(p.Yk,{max:f.Q["cache.fragmentQueryDocuments"]||1e3,cache:S.k})}return ApolloCache.prototype.lookupFragment=function(t){return null},ApolloCache.prototype.batch=function(t){var a,l=this,c="string"==typeof t.optimistic?t.optimistic:!1===t.optimistic?null:void 0;return this.performTransaction(function(){return a=t.update(l)},c),a},ApolloCache.prototype.recordOptimisticTransaction=function(t,a){this.performTransaction(t,a)},ApolloCache.prototype.transformDocument=function(t){return t},ApolloCache.prototype.transformForLink=function(t){return t},ApolloCache.prototype.identify=function(t){},ApolloCache.prototype.gc=function(){return[]},ApolloCache.prototype.modify=function(t){return!1},ApolloCache.prototype.readQuery=function(t,a){return void 0===a&&(a=!!t.optimistic),this.read((0,c.pi)((0,c.pi)({},t),{rootId:t.id||"ROOT_QUERY",optimistic:a}))},ApolloCache.prototype.watchFragment=function(t){var a,l=this,d=t.fragment,p=t.fragmentName,f=t.from,S=t.optimistic,w=(0,c._T)(t,["fragment","fragmentName","from","optimistic"]),B=this.getFragmentDoc(d,p),H=void 0===f||"string"==typeof f?f:this.identify(f),U=!!t[Symbol.for("apollo.dataMasking")];if(!1!==globalThis.__DEV__){var J=p||(0,h.pD)(d).name.value;H||!1===globalThis.__DEV__||E.kG.warn(1,J)}var er=(0,c.pi)((0,c.pi)({},w),{returnPartialData:!0,id:H,query:B,optimistic:void 0===S||S});return new g.y(function(f){return l.watch((0,c.pi)((0,c.pi)({},er),{immediate:!0,callback:function(h){var g=U?(0,x.r)(h.result,d,l,p):h.result;if(!(a&&(0,k.W)(B,{data:a.result},{data:g},t.variables))){var S={data:g,complete:!!h.complete};h.missing&&(S.missing=(0,_.bw)(h.missing.map(function(t){return t.missing}))),a=(0,c.pi)((0,c.pi)({},h),{result:g}),f.next(S)}}}))})},ApolloCache.prototype.readFragment=function(t,a){return void 0===a&&(a=!!t.optimistic),this.read((0,c.pi)((0,c.pi)({},t),{query:this.getFragmentDoc(t.fragment,t.fragmentName),rootId:t.id,optimistic:a}))},ApolloCache.prototype.writeQuery=function(t){var a=t.id,l=t.data,d=(0,c._T)(t,["id","data"]);return this.write(Object.assign(d,{dataId:a||"ROOT_QUERY",result:l}))},ApolloCache.prototype.writeFragment=function(t){var a=t.id,l=t.data,d=t.fragment,p=t.fragmentName,f=(0,c._T)(t,["id","data","fragment","fragmentName"]);return this.write(Object.assign(f,{query:this.getFragmentDoc(d,p),dataId:a,result:l}))},ApolloCache.prototype.updateQuery=function(t,a){return this.batch({update:function(l){var d=l.readQuery(t),p=a(d);return null==p?d:(l.writeQuery((0,c.pi)((0,c.pi)({},t),{data:p})),p)}})},ApolloCache.prototype.updateFragment=function(t,a){return this.batch({update:function(l){var d=l.readFragment(t),p=a(d);return null==p?d:(l.writeFragment((0,c.pi)((0,c.pi)({},t),{data:p})),p)}})},ApolloCache}();!1!==globalThis.__DEV__&&(B.prototype.getMemoryInternals=w.Kb)},75727:function(t,a,l){"use strict";l.d(a,{y:function(){return d}});var c=l(97582),d=function(t){function MissingFieldError(a,l,c,d){var p,f=t.call(this,a)||this;if(f.message=a,f.path=l,f.query=c,f.variables=d,Array.isArray(f.path)){f.missing=f.message;for(var h=f.path.length-1;h>=0;--h)f.missing=((p={})[f.path[h]]=f.missing,p)}else f.missing=f.path;return f.__proto__=MissingFieldError.prototype,f}return(0,c.ZT)(MissingFieldError,t),MissingFieldError}(Error)},49641:function(t,a,l){"use strict";l.d(a,{$O:function(){return E},E_:function(){return fieldNameFromStoreName},Is:function(){return extractFragmentContext},RC:function(){return function selectionSetMatchesResult(t,a,l){return!!(0,p.s)(a)&&((0,f.k)(a)?a.every(function(a){return selectionSetMatchesResult(t,a,l)}):t.selections.every(function(t){if((0,d.My)(t)&&(0,h.LZ)(t,l)){var c=(0,d.u2)(t);return w.call(a,c)&&(!t.selectionSet||selectionSetMatchesResult(t.selectionSet,a[c],l))}return!0}))}},RI:function(){return w},ig:function(){return makeProcessedFieldsMerger},j:function(){return storeValueIsStoreObject},jS:function(){return normalizeConfig},jp:function(){return getTypenameFromStoreObject},lg:function(){return shouldCanonizeResults},uG:function(){return defaultDataIdFromObject}});var c=l(53712),d=l(51761),p=l(13154),f=l(21436),h=l(19065),g=l(182),_=l(23361),S=l(36765),w=Object.prototype.hasOwnProperty;function isNullish(t){return null==t}function defaultDataIdFromObject(t,a){var l=t.__typename,c=t.id,d=t._id;if("string"==typeof l&&(a&&(a.keyObject=isNullish(c)?isNullish(d)?void 0:{_id:d}:{id:c}),isNullish(c)&&!isNullish(d)&&(c=d),!isNullish(c)))return"".concat(l,":").concat("number"==typeof c||"string"==typeof c?c:JSON.stringify(c))}var k={dataIdFromObject:defaultDataIdFromObject,addTypename:!0,resultCaching:!0,canonizeResults:!1};function normalizeConfig(t){return(0,c.o)(k,t)}function shouldCanonizeResults(t){var a=t.canonizeResults;return void 0===a?k.canonizeResults:a}function getTypenameFromStoreObject(t,a){return(0,d.Yk)(a)?t.get(a.__ref,"__typename"):a&&a.__typename}var E=/^[_a-z][_0-9a-z]*/i;function fieldNameFromStoreName(t){var a=t.match(E);return a?a[0]:t}function storeValueIsStoreObject(t){return(0,p.s)(t)&&!(0,d.Yk)(t)&&!(0,f.k)(t)}function makeProcessedFieldsMerger(){return new g.w0}function extractFragmentContext(t,a){var l=(0,_.F)((0,S.kU)(t));return{fragmentMap:l,lookupFragment:function(t){var c=l[t];return!c&&a&&(c=a.lookup(t)),c||null}}}},13440:function(t,a,l){"use strict";l.d(a,{h:function(){return eP}});var c,d,p=l(97582),f=l(69316),h=l(56275),g=l(30020),_=l(11294),S=l(75727),w=l(18056),k=l(76487),E=l(66331),x=l(5466),B=l(50713),H=l(51761),U=l(97359),J=l(30320),er=l(53712),en=l(36765),ei=l(182),ea=l(19065),el=l(23361),ec=l(10542),eu=l(13154),ed=l(75028),ep=l(49641),ef=Object.create(null),delModifier=function(){return ef},eh=Object.create(null),eg=function(){function EntityStore(t,a){var l=this;this.policies=t,this.group=a,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(t,a){return(0,ec.J)((0,H.Yk)(t)?l.get(t.__ref,a):t&&t[a])},this.canRead=function(t){return(0,H.Yk)(t)?l.has(t.__ref):"object"==typeof t},this.toReference=function(t,a){if("string"==typeof t)return(0,H.kQ)(t);if((0,H.Yk)(t))return t;var c=l.policies.identify(t)[0];if(c){var d=(0,H.kQ)(c);return a&&l.merge(c,t),d}}}return EntityStore.prototype.toObject=function(){return(0,p.pi)({},this.data)},EntityStore.prototype.has=function(t){return void 0!==this.lookup(t,!0)},EntityStore.prototype.get=function(t,a){if(this.group.depend(t,a),ep.RI.call(this.data,t)){var l=this.data[t];if(l&&ep.RI.call(l,a))return l[a]}return"__typename"===a&&ep.RI.call(this.policies.rootTypenamesById,t)?this.policies.rootTypenamesById[t]:this instanceof ev?this.parent.get(t,a):void 0},EntityStore.prototype.lookup=function(t,a){return(a&&this.group.depend(t,"__exists"),ep.RI.call(this.data,t))?this.data[t]:this instanceof ev?this.parent.lookup(t,a):this.policies.rootTypenamesById[t]?Object.create(null):void 0},EntityStore.prototype.merge=function(t,a){var l,c=this;(0,H.Yk)(t)&&(t=t.__ref),(0,H.Yk)(a)&&(a=a.__ref);var d="string"==typeof t?this.lookup(l=t):t,p="string"==typeof a?this.lookup(l=a):a;if(p){(0,f.kG)("string"==typeof l,2);
67var h=new ei.w0(storeObjectReconciler).merge(d,p);if(this.data[l]=h,h!==d&&(delete this.refs[l],this.group.caching)){var g=Object.create(null);d||(g.__exists=1),Object.keys(p).forEach(function(t){if(!d||d[t]!==h[t]){g[t]=1;var a=(0,ep.E_)(t);a===t||c.policies.hasKeyArgs(h.__typename,a)||(g[a]=1),void 0!==h[t]||c instanceof ev||delete h[t]}}),g.__typename&&!(d&&d.__typename)&&this.policies.rootTypenamesById[l]===h.__typename&&delete g.__typename,Object.keys(g).forEach(function(t){return c.group.dirty(l,t)})}}},EntityStore.prototype.modify=function(t,a){var l=this,c=this.lookup(t);if(c){var d=Object.create(null),h=!1,g=!0,_={DELETE:ef,INVALIDATE:eh,isReference:H.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(a,c){return l.policies.readField("string"==typeof a?{fieldName:a,from:c||(0,H.kQ)(t)}:a,{store:l})}};if(Object.keys(c).forEach(function(S){var w=(0,ep.E_)(S),k=c[S];if(void 0!==k){var E="function"==typeof a?a:a[S]||a[w];if(E){var x=E===delModifier?ef:E((0,ec.J)(k),(0,p.pi)((0,p.pi)({},_),{fieldName:w,storeFieldName:S,storage:l.getStorage(t,S)}));if(x===eh)l.group.dirty(t,S);else if(x===ef&&(x=void 0),x!==k&&(d[S]=x,h=!0,k=x,!1!==globalThis.__DEV__)){var checkReference=function(t){if(void 0===l.lookup(t.__ref))return!1!==globalThis.__DEV__&&f.kG.warn(3,t),!0};if((0,H.Yk)(x))checkReference(x);else if(Array.isArray(x))for(var B=!1,U=void 0,J=0,er=x;J<er.length;J++){var en=er[J];if((0,H.Yk)(en)){if(B=!0,checkReference(en))break}else"object"==typeof en&&en&&l.policies.identify(en)[0]&&(U=en);if(B&&void 0!==U){!1!==globalThis.__DEV__&&f.kG.warn(4,U);break}}}}void 0!==k&&(g=!1)}}),h)return this.merge(t,d),g&&(this instanceof ev?this.data[t]=void 0:delete this.data[t],this.group.dirty(t,"__exists")),!0}return!1},EntityStore.prototype.delete=function(t,a,l){var c,d=this.lookup(t);if(d){var p=this.getFieldValue(d,"__typename"),f=a&&l?this.policies.getStoreFieldName({typename:p,fieldName:a,args:l}):a;return this.modify(t,f?((c={})[f]=delModifier,c):delModifier)}return!1},EntityStore.prototype.evict=function(t,a){var l=!1;return t.id&&(ep.RI.call(this.data,t.id)&&(l=this.delete(t.id,t.fieldName,t.args)),this instanceof ev&&this!==a&&(l=this.parent.evict(t,a)||l),(t.fieldName||l)&&this.group.dirty(t.id,t.fieldName||"__exists")),l},EntityStore.prototype.clear=function(){this.replace(null)},EntityStore.prototype.extract=function(){var t=this,a=this.toObject(),l=[];return this.getRootIdSet().forEach(function(a){ep.RI.call(t.policies.rootTypenamesById,a)||l.push(a)}),l.length&&(a.__META={extraRootIds:l.sort()}),a},EntityStore.prototype.replace=function(t){var a=this;if(Object.keys(this.data).forEach(function(l){t&&ep.RI.call(t,l)||a.delete(l)}),t){var l=t.__META,c=(0,p._T)(t,["__META"]);Object.keys(c).forEach(function(t){a.merge(t,c[t])}),l&&l.extraRootIds.forEach(this.retain,this)}},EntityStore.prototype.retain=function(t){return this.rootIds[t]=(this.rootIds[t]||0)+1},EntityStore.prototype.release=function(t){if(this.rootIds[t]>0){var a=--this.rootIds[t];return a||delete this.rootIds[t],a}return 0},EntityStore.prototype.getRootIdSet=function(t){return void 0===t&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof ev?this.parent.getRootIdSet(t):Object.keys(this.policies.rootTypenamesById).forEach(t.add,t),t},EntityStore.prototype.gc=function(){var t=this,a=this.getRootIdSet(),l=this.toObject();a.forEach(function(c){ep.RI.call(l,c)&&(Object.keys(t.findChildRefIds(c)).forEach(a.add,a),delete l[c])});var c=Object.keys(l);if(c.length){for(var d=this;d instanceof ev;)d=d.parent;c.forEach(function(t){return d.delete(t)})}return c},EntityStore.prototype.findChildRefIds=function(t){if(!ep.RI.call(this.refs,t)){var a=this.refs[t]=Object.create(null),l=this.data[t];if(!l)return a;var c=new Set([l]);c.forEach(function(t){(0,H.Yk)(t)&&(a[t.__ref]=!0),(0,eu.s)(t)&&Object.keys(t).forEach(function(a){var l=t[a];(0,eu.s)(l)&&c.add(l)})})}return this.refs[t]},EntityStore.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},EntityStore}(),em=function(){function CacheGroup(t,a){void 0===a&&(a=null),this.caching=t,this.parent=a,this.d=null,this.resetCaching()}return CacheGroup.prototype.resetCaching=function(){this.d=this.caching?(0,h.dP)():null,this.keyMaker=new ed.B(J.mr)}
67,CacheGroup.prototype.depend=function(t,a){if(this.d){this.d(a+"#"+t);var l=(0,ep.E_)(a);l!==a&&this.d(l+"#"+t),this.parent&&this.parent.depend(t,a)}},CacheGroup.prototype.dirty=function(t,a){this.d&&this.d.dirty(a+"#"+t,"__exists"===a?"forget":"setDirty")},CacheGroup}();function maybeDependOnExistenceOfEntity(t,a){supportsResultCaching(t)&&t.group.depend(a,"__exists")}d=function(t){function Root(a){var l=a.policies,c=a.resultCaching,d=a.seed,p=t.call(this,l,new em(void 0===c||c))||this;return p.stump=new ey(p),p.storageTrie=new ed.B(J.mr),d&&p.replace(d),p}return(0,p.ZT)(Root,t),Root.prototype.addLayer=function(t,a){return this.stump.addLayer(t,a)},Root.prototype.removeLayer=function(){return this},Root.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},Root}(c=eg||(eg={})),c.Root=d;var ev=function(t){function Layer(a,l,c,d){var p=t.call(this,l.policies,d)||this;return p.id=a,p.parent=l,p.replay=c,p.group=d,c(p),p}return(0,p.ZT)(Layer,t),Layer.prototype.addLayer=function(t,a){return new Layer(t,this,a,this.group)},Layer.prototype.removeLayer=function(t){var a=this,l=this.parent.removeLayer(t);return t===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(t){var c=a.data[t],d=l.lookup(t);d?c?c!==d&&Object.keys(c).forEach(function(l){(0,g.D)(c[l],d[l])||a.group.dirty(t,l)}):(a.group.dirty(t,"__exists"),Object.keys(d).forEach(function(l){a.group.dirty(t,l)})):a.delete(t)}),l):l===this.parent?this:l.addLayer(this.id,this.replay)},Layer.prototype.toObject=function(){return(0,p.pi)((0,p.pi)({},this.parent.toObject()),this.data)},Layer.prototype.findChildRefIds=function(a){var l=this.parent.findChildRefIds(a);return ep.RI.call(this.data,a)?(0,p.pi)((0,p.pi)({},l),t.prototype.findChildRefIds.call(this,a)):l},Layer.prototype.getStorage=function(){for(var t=this.parent;t.parent;)t=t.parent;return t.getStorage.apply(t,arguments)},Layer}(eg),ey=function(t){function Stump(a){return t.call(this,"EntityStore.Stump",a,function(){},new em(a.group.caching,a.group))||this}return(0,p.ZT)(Stump,t),Stump.prototype.removeLayer=function(){return this},Stump.prototype.merge=function(t,a){return this.parent.merge(t,a)},Stump}(ev);function storeObjectReconciler(t,a,l){var c=t[l],d=a[l];return(0,g.D)(c,d)?c:d}function supportsResultCaching(t){return!!(t instanceof eg&&t.group.caching)}var e_=l(21436),eb=function(){function ObjectCanon(){this.known=new(J.sy?WeakSet:Set),this.pool=new ed.B(J.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return ObjectCanon.prototype.isKnown=function(t){return(0,eu.s)(t)&&this.known.has(t)},ObjectCanon.prototype.pass=function(t){if((0,eu.s)(t)){var a=(0,eu.s)(t)?(0,e_.k)(t)?t.slice(0):(0,p.pi)({__proto__:Object.getPrototypeOf(t)},t):t;return this.passes.set(a,t),a}return t},ObjectCanon.prototype.admit=function(t){var a=this;if((0,eu.s)(t)){var l=this.passes.get(t);if(l)return l;switch(Object.getPrototypeOf(t)){case Array.prototype:if(this.known.has(t))break;var c=t.map(this.admit,this),d=this.pool.lookupArray(c);return d.array||(this.known.add(d.array=c),!1!==globalThis.__DEV__&&Object.freeze(c)),d.array;case null:case Object.prototype:if(this.known.has(t))break;var p=Object.getPrototypeOf(t),f=[p],h=this.sortedKeys(t);f.push(h.json);var g=f.length;h.sorted.forEach(function(l){f.push(a.admit(t[l]))});var d=this.pool.lookupArray(f);if(!d.object){var _=d.object=Object.create(p);this.known.add(_),h.sorted.forEach(function(t,a){_[t]=f[g+a]}),!1!==globalThis.__DEV__&&Object.freeze(_)}return d.object}}return t},ObjectCanon.prototype.sortedKeys=function(t){var a=Object.keys(t),l=this.pool.lookupArray(a);if(!l.keys){a.sort();var c=JSON.stringify(a);(l.keys=this.keysByJSON.get(c))||this.keysByJSON.set(c,l.keys={sorted:a,json:c})}return l.keys},ObjectCanon}();function execSelectionSetKeyArgs(t){return[t.selectionSet,t.objectOrReference,t.context,t.context.canonizeResults]}var eS=function(){function StoreReader(t){var a=this;this.knownResults=new(J.mr?WeakMap:Map),this.config=(0,er.o)(t,{addTypename:!1!==t.addTypename,canonizeResults:(0,ep.lg)(t)}),this.canon=t.canon||new eb,this.executeSelectionSet=(0,h.re)(function(t){var l,c=t.context.canonizeResults,d=execSelectionSetKeyArgs(t);d[3]=!c;var f=(l=a.executeSelectionSet).peek.apply(l,d);return f?c?(0,p.pi)((0,p.pi)({},f),{result:a.canon.admit(f.result)}):f:(maybeDependOnExistenceOfEntity(t.context.store,t.enclosingRef.__ref),a.execSelectionSetImpl(t))},{max:this.config.resultCacheMaxSize||E.Q["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:execSelectionSetKeyArgs,makeCacheKey:function(t,a,l,c){if(supportsResultCaching(l.store))return l.store.makeCacheKey(t,(0,H.Yk)(a)?a.__ref:a,l.varString,c)}}),this.executeSubSelectedArray=(0,h.re)(function(t){return maybeDependOnExistenceOfEntity(t.context.store,t.enclosingRef.__ref),a.execSubSelectedArrayImpl(t)},{max:this.config.resultCacheMaxSize||E.Q["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(t){var a=t.field,l=t.array,c=t.context;if(supportsResultCaching(c.store))return c.store.makeCacheKey(a,l,c.varString)}})}return StoreReader.prototype.resetCanon=function(){this.canon=new eb},StoreReader.prototype.diffQueryAgainstStore=function(t){var a,l=t.store,c=t.query,d=t.rootId,f=void 0===d?"ROOT_QUERY":d,h=t.variables,g=t.returnPartialData,_=t.canonizeResults,w=void 0===_?this.config.canonizeResults:_,k=this.config.cache.policies;h=(0,p.pi)((0,p.pi)({},(0,en.O4)((0,en.iW)(c))),h);var E=(0,H.kQ)(f),B=this.executeSelectionSet({selectionSet:(0,en.p$)(c).selectionSet,objectOrReference:E,enclosingRef:E,context:(0,p.pi)({store:l,query:c,policies:k,variables:h,varString:(0,x.B)(h),canonizeResults:w},(0,ep.Is)(c,this.config.fragments))});if(B.missing&&(a=[new S.y(function(t){try{JSON.stringify(t,function(t,a){if("string"==typeof a)throw a;return a})}catch(t){return t}}(B.missing),B.missing,c,h)],!(void 0===g||g)))throw a[0];return{result:B.result,complete:!a,missing:a}},StoreReader.prototype.isFresh=function(t,a,l,c){if(supportsResultCaching(c.store)&&this.knownResults.get(t)===l){var d=this.executeSelectionSet.peek(l,a,c,this.canon.isKnown(t));if(d&&t===d.result)return!0}return!1},StoreReader.prototype.execSelectionSetImpl=function(t){var a,l=this,c=t.selectionSet,d=t.objectOrReference,p=t.enclosingRef,h=t.context;if((0,H.Yk)(d)&&!h.policies.rootTypenamesById[d.__ref]&&!h.store.has(d.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(d.__ref," object")};var g=h.variables,_=h.policies,S=h.store.getFieldValue(d,"__typename"),w=[],E=new ei.w0;function handleMissing(t,l){var c;
67return t.missing&&(a=E.merge(a,((c={})[l]=t.missing,c))),t.result}this.config.addTypename&&"string"==typeof S&&!_.rootIdsByTypename[S]&&w.push({__typename:S});var x=new Set(c.selections);x.forEach(function(t){var c,B;if((0,ea.LZ)(t,g)){if((0,H.My)(t)){var J=_.readField({fieldName:t.name.value,field:t,variables:h.variables,from:d},h),er=(0,H.u2)(t);void 0===J?k.Gw.added(t)||(a=E.merge(a,((c={})[er]="Can't find field '".concat(t.name.value,"' on ").concat((0,H.Yk)(d)?d.__ref+" object":"object "+JSON.stringify(d,null,2)),c))):(0,e_.k)(J)?J.length>0&&(J=handleMissing(l.executeSubSelectedArray({field:t,array:J,enclosingRef:p,context:h}),er)):t.selectionSet?null!=J&&(J=handleMissing(l.executeSelectionSet({selectionSet:t.selectionSet,objectOrReference:J,enclosingRef:(0,H.Yk)(J)?J:p,context:h}),er)):h.canonizeResults&&(J=l.canon.pass(J)),void 0!==J&&w.push(((B={})[er]=J,B))}else{var en=(0,el.hi)(t,h.lookupFragment);if(!en&&t.kind===U.h.FRAGMENT_SPREAD)throw(0,f._K)(10,t.name.value);en&&_.fragmentMatches(en,S)&&en.selectionSet.selections.forEach(x.add,x)}}});var B={result:(0,ei.bw)(w),missing:a},J=h.canonizeResults?this.canon.admit(B):(0,ec.J)(B);return J.result&&this.knownResults.set(J.result,c),J},StoreReader.prototype.execSubSelectedArrayImpl=function(t){var a,l=this,c=t.field,d=t.array,p=t.enclosingRef,h=t.context,g=new ei.w0;function handleMissing(t,l){var c;return t.missing&&(a=g.merge(a,((c={})[l]=t.missing,c))),t.result}return c.selectionSet&&(d=d.filter(h.store.canRead)),d=d.map(function(t,a){return null===t?null:(0,e_.k)(t)?handleMissing(l.executeSubSelectedArray({field:c,array:t,enclosingRef:p,context:h}),a):c.selectionSet?handleMissing(l.executeSelectionSet({selectionSet:c.selectionSet,objectOrReference:t,enclosingRef:(0,H.Yk)(t)?t:p,context:h}),a):(!1!==globalThis.__DEV__&&function(t,a,l){if(!a.selectionSet){var c=new Set([l]);c.forEach(function(l){(0,eu.s)(l)&&((0,f.kG)(!(0,H.Yk)(l),11,(0,ep.jp)(t,l),a.name.value),Object.values(l).forEach(c.add,c))})}}(h.store,c,t),t)}),{result:h.canonizeResults?this.canon.admit(d):d,missing:a}},StoreReader}(),ew=l(79487),ek=l(13887),eE=l(66438),eC=Object.create(null);function lookupSpecifierInfo(t){var a=JSON.stringify(t);return eC[a]||(eC[a]=Object.create(null))}function keyFieldsFnFromSpecifier(t){var a=lookupSpecifierInfo(t);return a.keyFieldsFn||(a.keyFieldsFn=function(a,l){var extract=function(t,a){return l.readField(a,t)},c=l.keyObject=collectSpecifierPaths(t,function(t){var c=extractKeyPath(l.storeObject,t,extract);return void 0===c&&a!==l.storeObject&&ep.RI.call(a,t[0])&&(c=extractKeyPath(a,t,extractKey)),(0,f.kG)(void 0!==c,5,t.join("."),a),c});return"".concat(l.typename,":").concat(JSON.stringify(c))})}function keyArgsFnFromSpecifier(t){var a=lookupSpecifierInfo(t);return a.keyArgsFn||(a.keyArgsFn=function(a,l){var c=l.field,d=l.variables,p=l.fieldName,f=JSON.stringify(collectSpecifierPaths(t,function(t){var l=t[0],p=l.charAt(0);if("@"===p){if(c&&(0,e_.O)(c.directives)){var f=l.slice(1),h=c.directives.find(function(t){return t.name.value===f}),g=h&&(0,H.NC)(h,d);return g&&extractKeyPath(g,t.slice(1))}return}if("$"===p){var _=l.slice(1);if(d&&ep.RI.call(d,_)){var S=t.slice(0);return S[0]=_,extractKeyPath(d,S)}return}if(a)return extractKeyPath(a,t)}));return(a||"{}"!==f)&&(p+=":"+f),p})}function collectSpecifierPaths(t,a){var l=new ei.w0;return(function getSpecifierPaths(t){var a=lookupSpecifierInfo(t);if(!a.paths){var l=a.paths=[],c=[];t.forEach(function(a,d){(0,e_.k)(a)?(getSpecifierPaths(a).forEach(function(t){return l.push(c.concat(t))}),c.length=0):(c.push(a),(0,e_.k)(t[d+1])||(l.push(c.slice(0)),c.length=0))})}return a.paths})(t).reduce(function(t,c){var d,p=a(c);if(void 0!==p){for(var f=c.length-1;f>=0;--f)(d={})[c[f]]=p,p=d;t=l.merge(t,p)}return t},Object.create(null))}function extractKey(t,a){return t[a]}function extractKeyPath(t,a,l){return l=l||extractKey,function normalize(t){return(0,eu.s)(t)?(0,e_.k)(t)?t.map(normalize):collectSpecifierPaths(Object.keys(t).sort(),function(a){return extractKeyPath(t,a)}):t}(a.reduce(function reducer(t,a){return(0,e_.k)(t)?t.map(function(t){return reducer(t,a)}):t&&l(t,a)},t))}var ex=l(87493);function argsFromFieldSpecifier(t){return void 0!==t.args?t.args:t.field?(0,H.NC)(t.field,t.variables):null}var nullKeyFieldsFn=function(){},simpleKeyArgsFn=function(t,a){return a.fieldName},mergeTrueFn=function(t,a,l){return(0,l.mergeObjects)(t,a)},mergeFalseFn=function(t,a){return a},eT=function(){function Policies(t){this.config=t,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,p.pi)({dataIdFromObject:ep.uG},t),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}return Policies.prototype.identify=function(t,a){var l,c,d=this,f=a&&(a.typename||(null===(l=a.storeObject)||void 0===l?void 0:l.__typename))||t.__typename;if(f===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var h=a&&a.storeObject||t,g=(0,p.pi)((0,p.pi)({},a),{typename:f,storeObject:h,readField:a&&a.readField||function(){var t=normalizeReadFieldOptions(arguments,h);return d.readField(t,{store:d.cache.data,variables:t.variables})}}),_=f&&this.getTypePolicy(f),S=_&&_.keyFn||this.config.dataIdFromObject;return ex.Os.withValue(!0,function(){for(;S;){var a=S((0,p.pi)((0,p.pi)({},t),h),g);if((0,e_.k)(a))S=keyFieldsFnFromSpecifier(a);else{c=a;break}}}),c=c?String(c):void 0,g.keyObject?[c,g.keyObject]:[c]},Policies.prototype.addTypePolicies=function(t){var a=this;Object.keys(t).forEach(function(l){var c=t[l],d=c.queryType,f=c.mutationType,h=c.subscriptionType,g=(0,p._T)(c,["queryType","mutationType","subscriptionType"]);d&&a.setRootTypename("Query",l),f&&a.setRootTypename("Mutation",l),h&&a.setRootTypename("Subscription",l),ep.RI.call(a.toBeAdded,l)?a.toBeAdded[l].push(g):a.toBeAdded[l]=[g]})},Policies.prototype.updateTypePolicy=function(t,a){var l=this,c=this.getTypePolicy(t),d=a.keyFields,p=a.fields;function setMerge(t,a){t.merge="function"==typeof a?a:!0===a?mergeTrueFn:!1===a?mergeFalseFn:t.merge}setMerge(c,a.merge),c.keyFn=!1===d?nullKeyFieldsFn:(0,e_.k)(d)?keyFieldsFnFromSpecifier(d):"function"==typeof d?d:c.keyFn,p&&Object.keys(p).forEac
67h(function(a){var c=l.getFieldPolicy(t,a,!0),d=p[a];if("function"==typeof d)c.read=d;else{var f=d.keyArgs,h=d.read,g=d.merge;c.keyFn=!1===f?simpleKeyArgsFn:(0,e_.k)(f)?keyArgsFnFromSpecifier(f):"function"==typeof f?f:c.keyFn,"function"==typeof h&&(c.read=h),setMerge(c,g)}c.read&&c.merge&&(c.keyFn=c.keyFn||simpleKeyArgsFn)})},Policies.prototype.setRootTypename=function(t,a){void 0===a&&(a=t);var l="ROOT_"+t.toUpperCase(),c=this.rootTypenamesById[l];a!==c&&((0,f.kG)(!c||c===t,6,t),c&&delete this.rootIdsByTypename[c],this.rootIdsByTypename[a]=l,this.rootTypenamesById[l]=a)},Policies.prototype.addPossibleTypes=function(t){var a=this;this.usingPossibleTypes=!0,Object.keys(t).forEach(function(l){a.getSupertypeSet(l,!0),t[l].forEach(function(t){a.getSupertypeSet(t,!0).add(l);var c=t.match(ep.$O);c&&c[0]===t||a.fuzzySubtypes.set(t,new RegExp(t))})})},Policies.prototype.getTypePolicy=function(t){var a=this;if(!ep.RI.call(this.typePolicies,t)){var l=this.typePolicies[t]=Object.create(null);l.fields=Object.create(null);var c=this.supertypeMap.get(t);!c&&this.fuzzySubtypes.size&&(c=this.getSupertypeSet(t,!0),this.fuzzySubtypes.forEach(function(l,d){if(l.test(t)){var p=a.supertypeMap.get(d);p&&p.forEach(function(t){return c.add(t)})}})),c&&c.size&&c.forEach(function(t){var c=a.getTypePolicy(t),d=c.fields;Object.assign(l,(0,p._T)(c,["fields"])),Object.assign(l.fields,d)})}var d=this.toBeAdded[t];return d&&d.length&&d.splice(0).forEach(function(l){a.updateTypePolicy(t,l)}),this.typePolicies[t]},Policies.prototype.getFieldPolicy=function(t,a,l){if(t){var c=this.getTypePolicy(t).fields;return c[a]||l&&(c[a]=Object.create(null))}},Policies.prototype.getSupertypeSet=function(t,a){var l=this.supertypeMap.get(t);return!l&&a&&this.supertypeMap.set(t,l=new Set),l},Policies.prototype.fragmentMatches=function(t,a,l,c){var d=this;if(!t.typeCondition)return!0;if(!a)return!1;var p=t.typeCondition.name.value;if(a===p)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(p))for(var h=this.getSupertypeSet(a,!0),g=[h],maybeEnqueue_1=function(t){var a=d.getSupertypeSet(t,!1);a&&a.size&&0>g.indexOf(a)&&g.push(a)},_=!!(l&&this.fuzzySubtypes.size),S=!1,w=0;w<g.length;++w){var k=g[w];if(k.has(p))return h.has(p)||(S&&!1!==globalThis.__DEV__&&f.kG.warn(7,a,p),h.add(p)),!0;k.forEach(maybeEnqueue_1),_&&w===g.length-1&&(0,ep.RC)(t.selectionSet,l,c)&&(_=!1,S=!0,this.fuzzySubtypes.forEach(function(t,l){var c=a.match(t);c&&c[0]===a&&maybeEnqueue_1(l)}))}return!1},Policies.prototype.hasKeyArgs=function(t,a){var l=this.getFieldPolicy(t,a,!1);return!!(l&&l.keyFn)},Policies.prototype.getStoreFieldName=function(t){var a,l=t.typename,c=t.fieldName,d=this.getFieldPolicy(l,c,!1),p=d&&d.keyFn;if(p&&l)for(var f={typename:l,fieldName:c,field:t.field||null,variables:t.variables},h=argsFromFieldSpecifier(t);p;){var g=p(h,f);if((0,e_.k)(g))p=keyArgsFnFromSpecifier(g);else{a=g||c;break}}return(void 0===a&&(a=t.field?(0,H.vf)(t.field,t.variables):(0,H.PT)(c,argsFromFieldSpecifier(t))),!1===a)?c:c===(0,ep.E_)(a)?a:c+":"+a},Policies.prototype.readField=function(t,a){var l=t.from;if(l&&(t.field||t.fieldName)){if(void 0===t.typename){var c=a.store.getFieldValue(l,"__typename");c&&(t.typename=c)}var d=this.getStoreFieldName(t),p=(0,ep.E_)(d),f=a.store.getFieldValue(l,d),h=this.getFieldPolicy(t.typename,p,!1),g=h&&h.read;if(g){var _=makeFieldFunctionOptions(this,l,t,a,a.store.getStorage((0,H.Yk)(l)?l.__ref:l,d));return eE.ab.withValue(this.cache,g,[f,_])}return f}},Policies.prototype.getReadFunction=function(t,a){var l=this.getFieldPolicy(t,a,!1);return l&&l.read},Policies.prototype.getMergeFunction=function(t,a,l){var c=this.getFieldPolicy(t,a,!1),d=c&&c.merge;return!d&&l&&(d=(c=this.getTypePolicy(l))&&c.merge),d},Policies.prototype.runMergeFunction=function(t,a,l,c,d){var p=l.field,f=l.typename,h=l.merge;return h===mergeTrueFn?makeMergeObjectsFunction(c.store)(t,a):h===mergeFalseFn?a:(c.overwrite&&(t=void 0),h(t,a,makeFieldFunctionOptions(this,void 0,{typename:f,fieldName:p.name.value,field:p,variables:c.variables},c,d||Object.create(null))))},Policies}();function makeFieldFunctionOptions(t,a,l,c,d){var p=t.getStoreFieldName(l),f=(0,ep.E_)(p),h=l.variables||c.variables,g=c.store,_=g.toReference,S=g.canRead;return{args:argsFromFieldSpecifier(l),field:l.field||null,fieldName:f,storeFieldName:p,variables:h,isReference:H.Yk,toReference:_,storage:d,cache:t.cache,canRead:S,readField:function(){return t.readField(normalizeReadFieldOptions(arguments,a,h),c)},mergeObjects:makeMergeObjectsFunction(c.store)}}function normalizeReadFieldOptions(t,a,l){var c,d=t[0],h=t[1],g=t.length;return"string"==typeof d?c={fieldName:d,from:g>1?h:a}:(c=(0,p.pi)({},d),ep.RI.call(c,"from")||(c.from=a)),!1!==globalThis.__DEV__&&void 0===c.from&&!1!==globalThis.__DEV__&&f.kG.warn(8,(0,ek.v)(Array.from(t))),void 0===c.variables&&(c.variables=l),c}function makeMergeObjectsFunction(t){return function(a,l){if((0,e_.k)(a)||(0,e_.k)(l))throw(0,f._K)(9);
67if((0,eu.s)(a)&&(0,eu.s)(l)){var c=t.getFieldValue(a,"__typename"),d=t.getFieldValue(l,"__typename");if(c&&d&&c!==d)return l;if((0,H.Yk)(a)&&(0,ep.j)(l))return t.merge(a.__ref,l),a;if((0,ep.j)(a)&&(0,H.Yk)(l))return t.merge(a,l.__ref),l;if((0,ep.j)(a)&&(0,ep.j)(l))return(0,p.pi)((0,p.pi)({},a),l)}return l}}function getContextFlavor(t,a,l){var c="".concat(a).concat(l),d=t.flavors.get(c);return d||t.flavors.set(c,d=t.clientOnly===a&&t.deferred===l?t:(0,p.pi)((0,p.pi)({},t),{clientOnly:a,deferred:l})),d}var eI=function(){function StoreWriter(t,a,l){this.cache=t,this.reader=a,this.fragments=l}return StoreWriter.prototype.writeToStore=function(t,a){var l=this,c=a.query,d=a.result,h=a.dataId,_=a.variables,S=a.overwrite,w=(0,en.$H)(c),k=(0,ep.ig)();_=(0,p.pi)((0,p.pi)({},(0,en.O4)(w)),_);var E=(0,p.pi)((0,p.pi)({store:t,written:Object.create(null),merge:function(t,a){return k.merge(t,a)},variables:_,varString:(0,x.B)(_)},(0,ep.Is)(c,this.fragments)),{overwrite:!!S,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),B=this.processSelectionSet({result:d||Object.create(null),dataId:h,selectionSet:w.selectionSet,mergeTree:{map:new Map},context:E});if(!(0,H.Yk)(B))throw(0,f._K)(12,d);return E.incomingById.forEach(function(a,c){var d=a.storeObject,h=a.mergeTree,_=a.fieldNodeSet,S=(0,H.kQ)(c);if(h&&h.map.size){var w=l.applyMerges(h,S,d,E);if((0,H.Yk)(w))return;d=w}if(!1!==globalThis.__DEV__&&!E.overwrite){var k=Object.create(null);_.forEach(function(t){t.selectionSet&&(k[t.name.value]=!0)});var hasMergeFunction_1=function(t){var a=h&&h.map.get(t);return!!(a&&a.info&&a.info.merge)};Object.keys(d).forEach(function(t){!0!==k[(0,ep.E_)(t)]||hasMergeFunction_1(t)||function(t,a,l,c){var getChild=function(t){var a=c.getFieldValue(t,l);return"object"==typeof a&&a},d=getChild(t);if(d){var h=getChild(a);if(!(!h||(0,H.Yk)(d)||(0,g.D)(d,h)||Object.keys(d).every(function(t){return void 0!==c.getFieldValue(h,t)}))){var _=c.getFieldValue(t,"__typename")||c.getFieldValue(a,"__typename"),S=(0,ep.E_)(l),w="".concat(_,".").concat(S);if(!eR.has(w)){eR.add(w);var k=[];(0,e_.k)(d)||(0,e_.k)(h)||[d,h].forEach(function(t){var a=c.getFieldValue(t,"__typename");"string"!=typeof a||k.includes(a)||k.push(a)}),!1!==globalThis.__DEV__&&f.kG.warn(15,S,_,k.length?"either ensure all objects of type "+k.join(" and ")+" have an ID or a custom merge function, or ":"",w,(0,p.pi)({},d),(0,p.pi)({},h))}}}}(S,d,t,E.store)})}t.merge(c,d)}),t.retain(B.__ref),B},StoreWriter.prototype.processSelectionSet=function(t){var a=this,l=t.dataId,c=t.result,d=t.selectionSet,h=t.context,g=t.mergeTree,_=this.cache.policies,S=Object.create(null),w=l&&_.rootTypenamesById[l]||(0,H.qw)(c,d,h.fragmentMap)||l&&h.store.get(l,"__typename");"string"==typeof w&&(S.__typename=w);var readField=function(){var t=normalizeReadFieldOptions(arguments,S,h.variables);if((0,H.Yk)(t.from)){var a=h.incomingById.get(t.from.__ref);if(a){var l=_.readField((0,p.pi)((0,p.pi)({},t),{from:a.storeObject}),h);if(void 0!==l)return l}}return _.readField(t,h)},E=new Set;this.flattenFields(d,c,h,w).forEach(function(t,l){var d,p=c[(0,H.u2)(l)];if(E.add(l),void 0!==p){var h=_.getStoreFieldName({typename:w,fieldName:l.name.value,field:l,variables:t.variables}),x=getChildMergeTree(g,h),B=a.processFieldValue(p,l,l.selectionSet?getContextFlavor(t,!1,!1):t,x),U=void 0;l.selectionSet&&((0,H.Yk)(B)||(0,ep.j)(B))&&(U=readField("__typename",B));var J=_.getMergeFunction(w,l.name.value,U);J?x.info={field:l,typename:w,merge:J}:maybeRecycleChildMergeTree(g,h),S=t.merge(S,((d={})[h]=B,d))}else!1===globalThis.__DEV__||t.clientOnly||t.deferred||k.Gw.added(l)||_.getReadFunction(w,l.name.value)||!1===globalThis.__DEV__||f.kG.error(13,(0,H.u2)(l),c)});try{var x=_.identify(c,{typename:w,selectionSet:d,fragmentMap:h.fragmentMap,storeObject:S,readField:readField}),B=x[0],U=x[1];l=l||B,U&&(S=h.merge(S,U))}catch(t){if(!l)throw t}if("string"==typeof l){var J=(0,H.kQ)(l),er=h.written[l]||(h.written[l]=[]);if(er.indexOf(d)>=0||(er.push(d),this.reader&&this.reader.isFresh(c,J,d,h)))return J;var en=h.incomingById.get(l);return en?(en.storeObject=h.merge(en.storeObject,S),en.mergeTree=function mergeMergeTrees(t,a){if(t===a||
67!a||mergeTreeIsEmpty(a))return t;if(!t||mergeTreeIsEmpty(t))return a;var l=t.info&&a.info?(0,p.pi)((0,p.pi)({},t.info),a.info):t.info||a.info,c=t.map.size&&a.map.size,d={info:l,map:c?new Map:t.map.size?t.map:a.map};if(c){var f=new Set(a.map.keys());t.map.forEach(function(t,l){d.map.set(l,mergeMergeTrees(t,a.map.get(l))),f.delete(l)}),f.forEach(function(l){d.map.set(l,mergeMergeTrees(a.map.get(l),t.map.get(l)))})}return d}(en.mergeTree,g),E.forEach(function(t){return en.fieldNodeSet.add(t)})):h.incomingById.set(l,{storeObject:S,mergeTree:mergeTreeIsEmpty(g)?void 0:g,fieldNodeSet:E}),J}return S},StoreWriter.prototype.processFieldValue=function(t,a,l,c){var d=this;return a.selectionSet&&null!==t?(0,e_.k)(t)?t.map(function(t,p){var f=d.processFieldValue(t,a,l,getChildMergeTree(c,p));return maybeRecycleChildMergeTree(c,p),f}):this.processSelectionSet({result:t,selectionSet:a.selectionSet,context:l,mergeTree:c}):!1!==globalThis.__DEV__?(0,ew.X)(t):t},StoreWriter.prototype.flattenFields=function(t,a,l,c){void 0===c&&(c=(0,H.qw)(a,t,l.fragmentMap));var d=new Map,p=this.cache.policies,h=new ed.B(!1);return function flatten(t,g){var _=h.lookup(t,g.clientOnly,g.deferred);_.visited||(_.visited=!0,t.selections.forEach(function(t){if((0,ea.LZ)(t,l.variables)){var h=g.clientOnly,_=g.deferred;if(!(h&&_)&&(0,e_.O)(t.directives)&&t.directives.forEach(function(t){var a=t.name.value;if("client"===a&&(h=!0),"defer"===a){var c=(0,H.NC)(t,l.variables);c&&!1===c.if||(_=!0)}}),(0,H.My)(t)){var S=d.get(t);S&&(h=h&&S.clientOnly,_=_&&S.deferred),d.set(t,getContextFlavor(l,h,_))}else{var w=(0,el.hi)(t,l.lookupFragment);if(!w&&t.kind===U.h.FRAGMENT_SPREAD)throw(0,f._K)(14,t.name.value);w&&p.fragmentMatches(w,c,a,l.variables)&&flatten(w.selectionSet,getContextFlavor(l,h,_))}}}))}(t,l),d},StoreWriter.prototype.applyMerges=function(t,a,l,c,d){var h=this;if(t.map.size&&!(0,H.Yk)(l)){var g,_,S=!(0,e_.k)(l)&&((0,H.Yk)(a)||(0,ep.j)(a))?a:void 0,w=l;S&&!d&&(d=[(0,H.Yk)(S)?S.__ref:S]);var getValue_1=function(t,a){return(0,e_.k)(t)?"number"==typeof a?t[a]:void 0:c.store.getFieldValue(t,String(a))};t.map.forEach(function(t,a){var l=getValue_1(S,a),p=getValue_1(w,a);if(void 0!==p){d&&d.push(a);var g=h.applyMerges(t,l,p,c,d);g!==p&&(_=_||new Map).set(a,g),d&&(0,f.kG)(d.pop()===a)}}),_&&(l=(0,e_.k)(w)?w.slice(0):(0,p.pi)({},w),_.forEach(function(t,a){l[a]=t}))}return t.info?this.cache.policies.runMergeFunction(a,l,t.info,c,d&&(g=c.store).getStorage.apply(g,d)):l},StoreWriter}(),eO=[];function getChildMergeTree(t,a){var l=t.map;return l.has(a)||l.set(a,eO.pop()||{map:new Map}),l.get(a)}function mergeTreeIsEmpty(t){return!t||!(t.info||t.map.size)}function maybeRecycleChildMergeTree(t,a){var l=t.map,c=l.get(a);c&&mergeTreeIsEmpty(c)&&(eO.push(c),l.delete(a))}var eR=new Set,eM=l(88244),eP=function(t){function InMemoryCache(a){void 0===a&&(a={});var l=t.call(this)||this;return l.watches=new Set,l.addTypenameTransform=new w.A(k.Gw),l.assumeImmutableResults=!0,l.makeVar=eE.QS,l.txCount=0,l.config=(0,ep.jS)(a),l.addTypename=!!l.config.addTypename,l.policies=new eT({cache:l,dataIdFromObject:l.config.dataIdFromObject,possibleTypes:l.config.possibleTypes,typePolicies:l.config.typePolicies}),l.init(),l}return(0,p.ZT)(InMemoryCache,t),InMemoryCache.prototype.init=function(){var t=this.data=new eg.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=t.stump,this.resetResultCache()},InMemoryCache.prototype.resetResultCache=function(t){var a=this,l=this.storeReader,c=this.config.fragments;this.storeWriter=new eI(this,this.storeReader=new eS({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:(0,ep.lg)(this.config),canon:t?void 0:l&&l.canon,fragments:c}),c),this.maybeBroadcastWatch=(0,h.re)(function(t,l){return a.broadcastWatch(t,l)},{max:this.config.resultCacheMaxSize||E.Q["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(t){var l=t.optimistic?a.optimisticData:a.data;if(supportsResultCaching(l)){var c=t.optimistic,d=t.id,p=t.variables;return l.makeCacheKey(t.query,t.callback,(0,x.B)({optimistic:c,id:d,variables:p}))}}}
67),new Set([this.data.group,this.optimisticData.group]).forEach(function(t){return t.resetCaching()})},InMemoryCache.prototype.restore=function(t){return this.init(),t&&this.data.replace(t),this},InMemoryCache.prototype.extract=function(t){return void 0===t&&(t=!1),(t?this.optimisticData:this.data).extract()},InMemoryCache.prototype.read=function(t){var a=t.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,p.pi)((0,p.pi)({},t),{store:t.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==a&&a})).result||null}catch(t){if(t instanceof S.y)return null;throw t}},InMemoryCache.prototype.write=function(t){try{return++this.txCount,this.storeWriter.writeToStore(this.data,t)}finally{--this.txCount||!1===t.broadcast||this.broadcastWatches()}},InMemoryCache.prototype.modify=function(t){if(ep.RI.call(t,"id")&&!t.id)return!1;var a=t.optimistic?this.optimisticData:this.data;try{return++this.txCount,a.modify(t.id||"ROOT_QUERY",t.fields)}finally{--this.txCount||!1===t.broadcast||this.broadcastWatches()}},InMemoryCache.prototype.diff=function(t){return this.storeReader.diffQueryAgainstStore((0,p.pi)((0,p.pi)({},t),{store:t.optimistic?this.optimisticData:this.data,rootId:t.id||"ROOT_QUERY",config:this.config}))},InMemoryCache.prototype.watch=function(t){var a=this;return this.watches.size||(0,eE._v)(this),this.watches.add(t),t.immediate&&this.maybeBroadcastWatch(t),function(){a.watches.delete(t)&&!a.watches.size&&(0,eE.li)(a),a.maybeBroadcastWatch.forget(t)}},InMemoryCache.prototype.gc=function(t){x.B.reset(),B.S.reset(),this.addTypenameTransform.resetCache(),null===(a=this.config.fragments)||void 0===a||a.resetCaches();var a,l=this.optimisticData.gc();return t&&!this.txCount&&(t.resetResultCache?this.resetResultCache(t.resetResultIdentities):t.resetResultIdentities&&this.storeReader.resetCanon()),l},InMemoryCache.prototype.retain=function(t,a){return(a?this.optimisticData:this.data).retain(t)},InMemoryCache.prototype.release=function(t,a){return(a?this.optimisticData:this.data).release(t)},InMemoryCache.prototype.identify=function(t){if((0,H.Yk)(t))return t.__ref;try{return this.policies.identify(t)[0]}catch(t){!1!==globalThis.__DEV__&&f.kG.warn(t)}},InMemoryCache.prototype.evict=function(t){if(!t.id){if(ep.RI.call(t,"id"))return!1;t=(0,p.pi)((0,p.pi)({},t),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(t,this.data)}finally{--this.txCount||!1===t.broadcast||this.broadcastWatches()}},InMemoryCache.prototype.reset=function(t){var a=this;return this.init(),x.B.reset(),t&&t.discardWatches?(this.watches.forEach(function(t){return a.maybeBroadcastWatch.forget(t)}),this.watches.clear(),(0,eE.li)(this)):this.broadcastWatches(),Promise.resolve()},InMemoryCache.prototype.removeOptimistic=function(t){var a=this.optimisticData.removeLayer(t);a!==this.optimisticData&&(this.optimisticData=a,this.broadcastWatches())},InMemoryCache.prototype.batch=function(t){var a,l=this,c=t.update,d=t.optimistic,f=void 0===d||d,h=t.removeOptimistic,g=t.onWatchUpdated,perform=function(t){var d=l.data,p=l.optimisticData;++l.txCount,t&&(l.data=l.optimisticData=t);try{return a=c(l)}finally{--l.txCount,l.data=d,l.optimisticData=p}},_=new Set;return g&&!this.txCount&&this.broadcastWatches((0,p.pi)((0,p.pi)({},t),{onWatchUpdated:function(t){return _.add(t),!1}})),"string"==typeof f?this.optimisticData=this.optimisticData.addLayer(f,perform):!1===f?perform(this.data):perform(),"string"==typeof h&&(this.optimisticData=this.optimisticData.removeLayer(h)),g&&_.size?(this.broadcastWatches((0,p.pi)((0,p.pi)({},t),{onWatchUpdated:function(t,a){var l=g.call(this,t,a);return!1!==l&&_.delete(t),l}})),_.size&&_.forEach(function(t){return l.maybeBroadcastWatch.dirty(t)})):this.broadcastWatches(t),a},InMemoryCache.prototype.performTransaction=function(t,a){return this.batch({update:t,optimistic:a||null!==a})},InMemoryCache.prototype.transformDocument=function(t){return this.addTypenameToDocument(this.addFragmentsToDocument(t))},InMemoryCache.prototype.fragmentMatches=function(t,a){return this.policies.fragmentMatches(t,a)},InMemoryCache.prototype.lookupFragment=function(t){var a;return(null===(a=this.config.fragments)||void 0===a?void 0:a.lookup(t))||null},InMemoryCache.prototype.broadcastWatches=function(t){var a=this;
67this.txCount||this.watches.forEach(function(l){return a.maybeBroadcastWatch(l,t)})},InMemoryCache.prototype.addFragmentsToDocument=function(t){var a=this.config.fragments;return a?a.transform(t):t},InMemoryCache.prototype.addTypenameToDocument=function(t){return this.addTypename?this.addTypenameTransform.transformDocument(t):t},InMemoryCache.prototype.broadcastWatch=function(t,a){var l=t.lastDiff,c=this.diff(t);(!a||(t.optimistic&&"string"==typeof a.optimistic&&(c.fromOptimisticTransaction=!0),!a.onWatchUpdated||!1!==a.onWatchUpdated.call(this,t,c,l)))&&(l&&(0,g.D)(l.result,c.result)||t.callback(t.lastDiff=c,l))},InMemoryCache}(_.R);!1!==globalThis.__DEV__&&(eP.prototype.getMemoryInternals=eM.q4)},66438:function(t,a,l){"use strict";l.d(a,{QS:function(){return makeVar},_v:function(){return recallCache},ab:function(){return d},li:function(){return forgetCache}});var c=l(56275),d=new c.g7,p=new WeakMap;function getCacheInfo(t){var a=p.get(t);return a||p.set(t,a={vars:new Set,dep:(0,c.dP)()}),a}function forgetCache(t){getCacheInfo(t).vars.forEach(function(a){return a.forgetCache(t)})}function recallCache(t){getCacheInfo(t).vars.forEach(function(a){return a.attachCache(t)})}function makeVar(t){var a=new Set,l=new Set,rv=function(p){if(arguments.length>0){if(t!==p){t=p,a.forEach(function(t){getCacheInfo(t).dep.dirty(rv),t.broadcastWatches&&t.broadcastWatches()});var f=Array.from(l);l.clear(),f.forEach(function(a){return a(t)})}}else{var h=d.getValue();h&&(c(h),getCacheInfo(h).dep(rv))}return t};rv.onNextChange=function(t){return l.add(t),function(){l.delete(t)}};var c=rv.attachCache=function(t){return a.add(t),getCacheInfo(t).vars.add(rv),rv};return rv.forgetCache=function(t){return a.delete(t)},rv}},30522:function(t,a,l){"use strict";l.d(a,{f:function(){return eA}});var c=l(97582),d=l(69316),p=l(48702),f=l(47037),h=l(49379),g=l(72198),_=l(30020),S=l(37280),w=l(19065),k=l(76487),E=l(23361),x=l(5466),B=l(18056),H=l(48216);function asyncMap(t,a,l){return new H.y(function(c){var d={then:function(t){return new Promise(function(a){return a(t())})}};function makeCallback(t,a){return function(l){if(t){var both=function(){return c.closed?0:t(l)};d=d.then(both,both).then(function(t){return c.next(t)},function(t){return c.error(t)})}else c[a](l)}}var p={next:makeCallback(a,"next"),error:makeCallback(l,"error"),complete:function(){d.then(function(){return c.complete()})}},f=t.subscribe(p);return function(){return f.unsubscribe()}})}var U=l(21436);function graphQLResultHasError(t){var a=getGraphQLErrorsFromResult(t);return(0,U.O)(a)}function getGraphQLErrorsFromResult(t){var a=(0,U.O)(t.errors)?t.errors.slice(0):[];return(0,S.GG)(t)&&(0,U.O)(t.incremental)&&t.incremental.forEach(function(t){t.errors&&a.push.apply(a,t.errors)}),a}var J=l(36765),er=l(51761),en=l(13154),ei=l(60897),ea=l(18263),el=l(86403);function isPromiseLike(t){return t&&"function"==typeof t.then}var ec=function(t){function Concast(a){var l=t.call(this,function(t){return l.addObserver(t),function(){return l.removeObserver(t)}})||this;return l.observers=new Set,l.promise=new Promise(function(t,a){l.resolve=t,l.reject=a}),l.handlers={next:function(t){null!==l.sub&&(l.latest=["next",t],l.notify("next",t),(0,ea.p)(l.observers,"next",t))},error:function(t){var a=l.sub;null!==a&&(a&&setTimeout(function(){return a.unsubscribe()}),l.sub=null,l.latest=["error",t],l.reject(t),l.notify("error",t),(0,ea.p)(l.observers,"error",t))},complete:function(){var t=l.sub,a=l.sources;if(null!==t){var c=(void 0===a?[]:a).shift();c?isPromiseLike(c)?c.then(function(t){return l.sub=t.subscribe(l.handlers)},l.handlers.error):l.sub=c.subscribe(l.handlers):(t&&setTimeout(function(){return t.unsubscribe()}),l.sub=null,l.latest&&"next"===l.latest[0]?l.resolve(l.latest[1]):l.resolve(),l.notify("complete"),(0,ea.p)(l.observers,"complete"))}}},l.nextResultListeners=new Set,l.cancel=function(t){l.reject(t),l.sources=[],l.handlers.error(t)},l.promise.catch(function(t){}),"function"==typeof a&&(a=[new H.y(a)]),isPromiseLike(a)?a.then(function(t){return l.start(t)},l.handlers.error):l.start(a),l}return(0,c.ZT)(Concast,t),Concast.prototype.start=function(t){void 0===this.sub&&(this.sources=Array.from(t),this.handlers.complete())},Concast.prototype.deliverLastMessage=function(t){if(this.latest){var a=this.latest[0],l=t[a];l&&l.call(t,this.latest[1]),null===this.sub&&"next"===a&&t.complete&&t.complete()}},Concast.prototype.addObserver=function(t){this.observers.has(t)||(this.deliverLastMessage(t),this.observers.add(t))},Concast.prototype.removeObserver=function(t){this.observers.delete(t)&&this.observers.size<1&&this.handlers.complete()},Concast.prototype.notify=function(t,a){var l=this.nextResultListeners;l.size&&(this.nextResultListeners=new Set,l.forEach(function(l){return l(t,a)}))},Concast.prototype.beforeNext=function(t){var a=!1;this.nextResultListeners.add(function(l,c){a||(a=!0,t(l,c))})},Concast}(H.y);(0,el.D)(ec);var eu=l(30990),ed=l(22599),ep=l(1644),ef=l(182),eh=new((l(30320)).mr?WeakMap:Map);function wrapDestructiveCacheMethod(t,a){var l=t[a];"function"==typeof l&&(t[a]=function(){return eh.set(t,(eh.get(t)+1)%1e15),l.apply(this,arguments)})}function cancelNotifyTimeout(t){t.notifyTimeout&&(clearTimeout(t.notifyTimeout),t.notifyTimeout=void 0)}var eg=function(){function QueryInfo(t,a){void 0===a&&(a=t.generateQueryId()),this.queryId=a,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var l=this.cache=t.cache;eh.has(l)||(eh.set(l,0),wrapDestructiveCacheMethod(l,"evict"),wrapDestructiveCacheMethod(l,"modify"),wrapDestructiveCacheMethod(l,"reset"))}return QueryInfo.prototype.init=function(t){var a=t.networkStatus||ep.Ie.loading;return this.variables&&this.networkStatus!==ep.Ie.loading&&!(0,_.D)(this.variables,t.variables)&&(a=ep.Ie.setVariables),(0,_.D)(t.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:t.document,variables:t.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:a}),t.observableQuery&&this.setObservableQuery(t.observableQuery),t.lastRequestId&&(this.lastRequestId=t.lastRequestId),this},QueryInfo.prototype.reset=function(){cancelNotifyTimeout(this),this.dirty=!1},QueryInfo.prototype.resetDiff=function(){this.lastDiff=void 0},QueryInfo.prototype.getDiff=function(){var t=this.getDiffOptions();if(this.lastDiff&&(0,_.D)(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var a=this.observableQuery;if(a&&"no-cache"===a.options.fetchPolicy)return{complete:!1};var l=this.cache.diff(t);return this.updateLastDiff(l,t),l},QueryInfo.prototype.updateLastDiff=function(t,a){this.lastDiff=t?{diff:t,options:a||this.getDiffOptions()}:void 0},QueryInfo.prototype.getDiffOptions=function(t){var a;return void 0===t&&(t=this.variables),{query:this.document,variables:t,returnPartialData:!0,optimistic:!0,canonizeResults:null===(a=this.observableQuery)||void 0===a?void 0:a.options.canonizeResults}},QueryInfo.prototype.setDiff=function(t){var a,l=this,c=this.lastDiff&&this.lastDiff.diff;!(t&&!t.complete&&(null===(a=this.observableQuery)||void 0===a?void 0:a.getLastError()))&&(this.updateLastDiff(t),this.dirty||(0,_.D)(c&&c.result,t&&t.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return l.notify()},0))))},QueryInfo.prototype.setObservableQuery=function(t){var a=this;t!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=t,t?(t.queryInfo=this,this.listeners.add(this.oqListener=function(){a.getDiff().fromOptimisticTransaction?t.observe():(0,ed.vj)(t)})):delete this.oqListener)},QueryInfo.prototype.notify=function(){var t=this;cancelNotifyTimeout(this),this.shouldNotify()&&this.listeners.forEac
67h(function(a){return a(t)}),this.dirty=!1},QueryInfo.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,ep.Oj)(this.networkStatus)&&this.observableQuery){var t=this.observableQuery.options.fetchPolicy;if("cache-only"!==t&&"cache-and-network"!==t)return!1}return!0},QueryInfo.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=QueryInfo.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},QueryInfo.prototype.cancel=function(){},QueryInfo.prototype.updateWatch=function(t){var a=this;void 0===t&&(t=this.variables);var l=this.observableQuery;if(!l||"no-cache"!==l.options.fetchPolicy){var d=(0,c.pi)((0,c.pi)({},this.getDiffOptions(t)),{watcher:this,callback:function(t){return a.setDiff(t)}});this.lastWatch&&(0,_.D)(d,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=d))}},QueryInfo.prototype.resetLastWrite=function(){this.lastWrite=void 0},QueryInfo.prototype.shouldWrite=function(t,a){var l=this.lastWrite;return!(l&&l.dmCount===eh.get(this.cache)&&(0,_.D)(a,l.variables)&&(0,_.D)(t.data,l.result.data))},QueryInfo.prototype.markResult=function(t,a,l,c){var d=this,p=new ef.w0,f=(0,U.O)(t.errors)?t.errors.slice(0):[];if(this.reset(),"incremental"in t&&(0,U.O)(t.incremental)){var h=(0,S.mT)(this.getDiff().result,t);t.data=h}else if("hasNext"in t&&t.hasNext){var g=this.getDiff();t.data=p.merge(g.result,t.data)}this.graphQLErrors=f,"no-cache"===l.fetchPolicy?this.updateLastDiff({result:t.data,complete:!0},this.getDiffOptions(l.variables)):0!==c&&(shouldWriteResult(t,l.errorPolicy)?this.cache.performTransaction(function(p){if(d.shouldWrite(t,l.variables))p.writeQuery({query:a,data:t.data,variables:l.variables,overwrite:1===c}),d.lastWrite={result:t,variables:l.variables,dmCount:eh.get(d.cache)};else if(d.lastDiff&&d.lastDiff.diff.complete){t.data=d.lastDiff.diff.result;return}var f=d.getDiffOptions(l.variables),h=p.diff(f);!d.stopped&&(0,_.D)(d.variables,l.variables)&&d.updateWatch(l.variables),d.updateLastDiff(h,f),h.complete&&(t.data=h.result)}):this.lastWrite=void 0)},QueryInfo.prototype.markReady=function(){return this.networkError=null,this.networkStatus=ep.Ie.ready},QueryInfo.prototype.markError=function(t){return this.networkStatus=ep.Ie.error,this.lastWrite=void 0,this.reset(),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},QueryInfo}();function shouldWriteResult(t,a){void 0===a&&(a="none");var l="ignore"===a||"all"===a,c=!graphQLResultHasError(t);return!c&&l&&t.data&&(c=!0),c}var em=l(50713),ev=l(75028),ey=l(38991),e_=l(66331),eb=l(30142),eS=l(87493),ew=l(54522),ek=Object.prototype.hasOwnProperty,eE=Object.create(null),eC=function(){function QueryManager(t){var a=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new ey.s(e_.Q["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new ev.B(!1),this.noCacheWarningsByQueryId=new Set;var l=new B.A(function(t){return a.cache.transformDocument(t)},{cache:!1});this.cache=t.cache,this.link=t.link,this.defaultOptions=t.defaultOptions,this.queryDeduplication=t.queryDeduplication,this.clientAwareness=t.clientAwareness,this.localState=t.localState,this.ssrMode=t.ssrMode,this.assumeImmutableResults=t.assumeImmutableResults,this.dataMasking=t.dataMasking;var c=t.documentTransform;this.documentTransform=c?l.concat(c).concat(l):l,this.defaultContext=t.defaultContext||Object.create(null),(this.onBroadcast=t.onBroadcast)&&(this.mutationStore=Object.create(null))}return QueryManager.prototype.stop=function(){var t=this;this.queries.forEach(function(a,l){t.stopQueryNoBroadcast(l)}),this.cancelPendingFetches((0,d._K)(27))},QueryManager.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(a){return a(t)}),this.fetchCancelFns.clear()},QueryManager.prototype.mutate=function(t){return(0,c.mG)(this,arguments,void 0,function(t){var a,l,p,f,h,g,_,S=t.mutation,w=t.variables,k=t.optimisticResponse,E=t.updateQueries,x=t.refetchQueries,B=void 0===x?[]:x,H=t.awaitRefetchQueries,U=void 0!==H&&H,J=t.update,er=t.onQueryUpdated,en=t.fetchPolicy,ei=void 0===en?(null===(g=this.defaultOptions.mutate)||void 0===g?void 0:g.fetchPolicy)||"network-only":en,ea=t.errorPolicy,el=void 0===ea?(null===(_=this.defaultOptions.mutate)||void 0===_?void 0:_.errorPolicy)||"none":ea,ec=t.keepRootFields,ed=t.context;return(0,c.Jh)(this,function(t){switch(t.label){case 0:if((0,d.kG)(S,28),(0,d.kG)("network-only"===ei||"no-cache"===ei,29),a=this.generateMutationId(),S=this.cache.transformForLink(this.transform(S)),l=this.getDocumentInfo(S).hasClientExports,w=this.getVariables(S,w),!l)return[3,2];return[4,this.localState.addExportedVariables(S,w,ed)];case 1:w=t.sent(),t.label=2;case 2:return p=this.mutationStore&&(this.mutationStore[a]={mutation:S,variables:w,loading:!0,error:null}),f=k&&this.markMutationOptimistic(k,{mutationId:a,document:S,variables:w,fetchPolicy:ei,errorPolicy:el,context:ed,updateQueries:E,update:J,keepRootFields:ec}),this.broadcastQueries(),h=this,[2,new Promise(function(t,l){return asyncMap(h.getObservableFromLink(S,(0,c.pi)((0,c.pi)({},ed),{optimisticResponse:f?k:void 0}),w,{},!1),function(t){if(graphQLResultHasError(t)&&"none"===el)throw new eu.cA({graphQLErrors:getGraphQLErrorsFromResult(t)});p&&(p.loading=!1,p.error=null);var l=(0,c.pi)({},t);return"function"==typeof B&&(B=B(l)),"ignore"===el&&graphQLResultHasError(l)&&delete l.errors,h.markMutationResult({mutationId:a,result:l,document:S,variables:w,fetchPolicy:ei,errorPolicy:el,context:ed,update:J,updateQueries:E,awaitRefetchQueries:U,refetchQueries:B,removeOptimistic:f?a:void 0,onQueryUpdated:er,keepRootFields:ec})}).subscribe({next:function(l){h.broadcastQueries(),"hasNext"in l&&!1!==l.hasNext||t((0,c.pi)((0,c.pi)({},l),{data:h.maskOperation({document:S,data:l.data,fetchPolicy:ei,id:a})}))},error:function(t){p&&(p.loading=!1,p.error=t),f&&h.cache.removeOptimistic(a),h.broadcastQueries(),l(t instanceof eu.cA?t:new eu.cA({networkError:t}))}})})]}})})},QueryManager.prototype.markMutationResult=function(t,a){var l=this;void 0===a&&(a=this.cache);var d=t.result,p=[],f="no-cache"===t.fetchPolicy;if(!f&&shouldWriteResult(d,t.errorPolicy)){if((0,S.GG)(d)||p.push({result:d.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}),(0,S.GG)(d)&&(0,U.O)(d.incremental)){var h=a.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}
67),g=void 0;h.result&&(g=(0,S.mT)(h.result,d)),void 0!==g&&(d.data=g,p.push({result:g,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}))}var _=t.updateQueries;_&&this.queries.forEach(function(t,c){var f=t.observableQuery,h=f&&f.queryName;if(h&&ek.call(_,h)){var g=_[h],S=l.queries.get(c),w=S.document,k=S.variables,E=a.diff({query:w,variables:k,returnPartialData:!0,optimistic:!1}),x=E.result;if(E.complete&&x){var B=g(x,{mutationResult:d,queryName:w&&(0,J.rY)(w)||void 0,queryVariables:k});B&&p.push({result:B,dataId:"ROOT_QUERY",query:w,variables:k})}}})}if(p.length>0||(t.refetchQueries||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){var w=[];if(this.refetchQueries({updateCache:function(a){f||p.forEach(function(t){return a.write(t)});var h=t.update,g=!(0,S.M0)(d)||(0,S.GG)(d)&&!d.hasNext;if(h){if(!f){var _=a.diff({id:"ROOT_MUTATION",query:l.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});_.complete&&("incremental"in(d=(0,c.pi)((0,c.pi)({},d),{data:_.result}))&&delete d.incremental,"hasNext"in d&&delete d.hasNext)}g&&h(a,d,{context:t.context,variables:t.variables})}f||t.keepRootFields||!g||a.modify({id:"ROOT_MUTATION",fields:function(t,a){var l=a.fieldName,c=a.DELETE;return"__typename"===l?t:c}})},include:t.refetchQueries,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(function(t){return w.push(t)}),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(w).then(function(){return d})}return Promise.resolve(d)},QueryManager.prototype.markMutationOptimistic=function(t,a){var l=this,p="function"==typeof t?t(a.variables,{IGNORE:eE}):t;return p!==eE&&(this.cache.recordOptimisticTransaction(function(t){try{l.markMutationResult((0,c.pi)((0,c.pi)({},a),{result:{data:p}}),t)}catch(t){!1!==globalThis.__DEV__&&d.kG.error(t)}},a.mutationId),!0)},QueryManager.prototype.fetchQuery=function(t,a,l){return this.fetchConcastWithInfo(t,a,l).concast.promise},QueryManager.prototype.getQueryStore=function(){var t=Object.create(null);return this.queries.forEach(function(a,l){t[l]={variables:a.variables,networkStatus:a.networkStatus,networkError:a.networkError,graphQLErrors:a.graphQLErrors}}),t},QueryManager.prototype.resetErrors=function(t){var a=this.queries.get(t);a&&(a.networkError=void 0,a.graphQLErrors=[])},QueryManager.prototype.transform=function(t){return this.documentTransform.transformDocument(t)},QueryManager.prototype.getDocumentInfo=function(t){var a=this.transformCache;if(!a.has(t)){var l={hasClientExports:(0,w.mj)(t),hasForcedResolvers:this.localState.shouldForceResolvers(t),hasNonreactiveDirective:(0,w.FS)(["nonreactive"],t),nonReactiveQuery:(0,k.UU)(t),clientQuery:this.localState.clientQuery(t),serverQuery:(0,k.bi)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],t),defaultVars:(0,J.O4)((0,J.$H)(t)),asQuery:(0,c.pi)((0,c.pi)({},t),{definitions:t.definitions.map(function(t){return"OperationDefinition"===t.kind&&"query"!==t.operation?(0,c.pi)((0,c.pi)({},t),{operation:"query"}):t})})};a.set(t,l)}return a.get(t)},QueryManager.prototype.getVariables=function(t,a){return(0,c.pi)((0,c.pi)({},this.getDocumentInfo(t).defaultVars),a)},QueryManager.prototype.watchQuery=function(t){var a=this.transform(t.query);void 0===(t=(0,c.pi)((0,c.pi)({},t),{variables:this.getVariables(a,t.variables)})).notifyOnNetworkStatusChange&&(t.notifyOnNetworkStatusChange=!1);var l=new eg(this),d=new ed.ue({queryManager:this,queryInfo:l,options:t});return d.lastQuery=a,this.queries.set(d.queryId,l),l.init({document:a,observableQuery:d,variables:d.variables}),d},QueryManager.prototype.query=function(t,a){var l=this;void 0===a&&(a=this.generateQueryId()),(0,d.kG)(t.query,30),(0,d.kG)("Document"===t.query.kind,31),(0,d.kG)(!t.returnPartialData,32),(0,d.kG)(!t.pollInterval,33);var p=this.transform(t.query);return this.fetchQuery(a,(0,c.pi)((0,c.pi)({},t),{query:p})).then(function(d){return d&&(0,c.pi)((0,c.pi)({},d),{data:l.maskOperation({document:p,data:d.data,fetchPolicy:t.fetchPolicy,id:a})})}).finally(function(){return l.stopQuery(a)})},QueryManager.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},QueryManager.prototype.generateRequestId=function(){return this.requestIdCounter++},QueryManager.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},QueryManager.prototype.stopQueryInStore=function(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},QueryManager.prototype.stopQueryInStoreNoBroadcast=function(t){var a=this.queries.get(t);a&&a.stop()},QueryManager.prototype.clearStore=function(t){return void 0===t&&(t={discardWatches:!0}
67),this.cancelPendingFetches((0,d._K)(34)),this.queries.forEach(function(t){t.observableQuery?t.networkStatus=ep.Ie.loading:t.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(t)},QueryManager.prototype.getObservableQueries=function(t){var a=this;void 0===t&&(t="active");var l=new Map,p=new Map,f=new Map,h=new Set;return Array.isArray(t)&&t.forEach(function(t){if("string"==typeof t)p.set(t,t),f.set(t,!1);else if((0,er.JW)(t)){var l=(0,em.S)(a.transform(t));p.set(l,(0,J.rY)(t)),f.set(l,!1)}else(0,en.s)(t)&&t.query&&h.add(t)}),this.queries.forEach(function(a,c){var d=a.observableQuery,p=a.document;if(d){if("all"===t){l.set(c,d);return}var h=d.queryName;if("standby"===d.options.fetchPolicy||"active"===t&&!d.hasObservers())return;("active"===t||h&&f.has(h)||p&&f.has((0,em.S)(p)))&&(l.set(c,d),h&&f.set(h,!0),p&&f.set((0,em.S)(p),!0))}}),h.size&&h.forEach(function(t){var p=(0,ei.X)("legacyOneTimeQuery"),f=a.getQuery(p).init({document:t.query,variables:t.variables}),h=new ed.ue({queryManager:a,queryInfo:f,options:(0,c.pi)((0,c.pi)({},t),{fetchPolicy:"network-only"})});(0,d.kG)(h.queryId===p),f.setObservableQuery(h),l.set(p,h)}),!1!==globalThis.__DEV__&&f.size&&f.forEach(function(t,a){if(!t){var l=p.get(a);l?!1!==globalThis.__DEV__&&d.kG.warn(35,l):!1!==globalThis.__DEV__&&d.kG.warn(36)}}),l},QueryManager.prototype.reFetchObservableQueries=function(t){var a=this;void 0===t&&(t=!1);var l=[];return this.getObservableQueries(t?"all":"active").forEach(function(c,d){var p=c.options.fetchPolicy;c.resetLastResults(),(t||"standby"!==p&&"cache-only"!==p)&&l.push(c.refetch()),a.getQuery(d).setDiff(null)}),this.broadcastQueries(),Promise.all(l)},QueryManager.prototype.setObservableQuery=function(t){this.getQuery(t.queryId).setObservableQuery(t)},QueryManager.prototype.startGraphQLSubscription=function(t){var a=this,l=t.query,c=t.variables,d=t.fetchPolicy,p=t.errorPolicy,f=void 0===p?"none":p,h=t.context,g=void 0===h?{}:h,_=t.extensions,S=void 0===_?{}:_;l=this.transform(l),c=this.getVariables(l,c);var makeObservable=function(t){return a.getObservableFromLink(l,g,t,S).map(function(c){"no-cache"!==d&&(shouldWriteResult(c,f)&&a.cache.write({query:l,result:c.data,dataId:"ROOT_SUBSCRIPTION",variables:t}),a.broadcastQueries());var p=graphQLResultHasError(c),h=(0,eu.ls)(c);if(p||h){var g={};if(p&&(g.graphQLErrors=c.errors),h&&(g.protocolErrors=c.extensions[eu.YG]),"n
67one"===f||h)throw new eu.cA(g)}return"ignore"===f&&delete c.errors,c})};if(this.getDocumentInfo(l).hasClientExports){var w=this.localState.addExportedVariables(l,c,g).then(makeObservable);return new H.y(function(t){var a=null;return w.then(function(l){return a=l.subscribe(t)},t.error),function(){return a&&a.unsubscribe()}})}return makeObservable(c)},QueryManager.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},QueryManager.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},QueryManager.prototype.removeQuery=function(t){this.fetchCancelFns.delete(t),this.queries.has(t)&&(this.getQuery(t).stop(),this.queries.delete(t))},QueryManager.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(t){return t.notify()})},QueryManager.prototype.getLocalState=function(){return this.localState},QueryManager.prototype.getObservableFromLink=function(t,a,l,d,p){var h,g,_=this;void 0===p&&(p=null!==(h=null==a?void 0:a.queryDeduplication)&&void 0!==h?h:this.queryDeduplication);var S=this.getDocumentInfo(t),w=S.serverQuery,k=S.clientQuery;if(w){var E=this.inFlightLinkObservables,B=this.link,U={query:w,variables:l,operationName:(0,J.rY)(w)||void 0,context:this.prepareContext((0,c.pi)((0,c.pi)({},a),{forceFetch:!p})),extensions:d};if(a=U.context,p){var er=(0,em.S)(w),en=(0,x.B)(l),ei=E.lookup(er,en);if(!(g=ei.observable)){var ea=new ec([(0,f.h)(B,U)]);g=ei.observable=ea,ea.beforeNext(function(){E.remove(er,en)})}}else g=new ec([(0,f.h)(B,U)])}else g=new ec([H.y.of({data:{}})]),a=this.prepareContext(a);return k&&(g=asyncMap(g,function(t){return _.localState.runResolvers({document:k,remoteResult:t,context:a,variables:l})})),g},QueryManager.prototype.getResultsFromLink=function(t,a,l){var c=t.lastRequestId=this.generateRequestId(),d=this.cache.transformForLink(l.query);return asyncMap(this.getObservableFromLink(d,l.context,l.variables),function(p){var f=getGraphQLErrorsFromResult(p),h=f.length>0,g=l.errorPolicy;if(c>=t.lastRequestId){if(h&&"none"===g)throw t.markError(new eu.cA({graphQLErrors:f}));t.markResult(p,d,l,a),t.markReady()}var _={data:p.data,loading:!1,networkStatus:ep.Ie.ready};return h&&"none"===g&&(_.data=void 0),h&&"ignore"!==g&&(_.errors=f,_.networkStatus=ep.Ie.error),_},function(a){var l=(0,eu.MS)(a)?a:new eu.cA({networkError:a});throw c>=t.lastRequestId&&t.markError(l),l})},QueryManager.prototype.fetchConcastWithInfo=function(t,a,l,c){var d,p,f=this;void 0===l&&(l=ep.Ie.loading),void 0===c&&(c=a.query);var h=this.getVariables(c,a.variables),g=this.getQuery(t),_=this.defaultOptions.watchQuery,S=a.fetchPolicy,w=void 0===S?_&&_.fetchPolicy||"cache-first":S,k=a.errorPolicy,E=void 0===k?_&&_.errorPolicy||"none":k,x=a.returnPartialData,B=a.notifyOnNetworkStatusChange,H=a.context,U=Object.assign({},a,{query:c,variables:h,fetchPolicy:w,errorPolicy:E,returnPartialData:void 0!==x&&x,notifyOnNetworkStatusChange:void 0!==B&&B,context:void 0===H?{}:H}),fromVariables=function(t){U.variables=t;var c=f.fetchQueryByPolicy(g,U,l);return"standby"!==U.fetchPolicy&&c.sources.length>0&&g.observableQuery&&g.observableQuery.applyNextFetchPolicy("after-fetch",a),c},cleanupCancelFn=function(){return f.fetchCancelFns.delete(t)};if(this.fetchCancelFns.set(t,function(t){cleanupCancelFn(),setTimeout(function(){return d.cancel(t)})}),this.getDocumentInfo(U.query).hasClientExports)d=new ec(this.localState.addExportedVariables(U.query,U.variables,U.context).then(fromVariables).then(function(t){return t.sources})),p=!0;else{var J=fromVariables(U.variables);p=J.fromLink,d=new ec(J.sources)}return d.promise.then(cleanupCancelFn,cleanupCancelFn),{concast:d,fromLink:p}},QueryManager.prototype.refetchQueries=function(t){var a=this,l=t.updateCache,c=t.include,d=t.optimistic,p=void 0!==d&&d,f=t.removeOptimistic,h=void 0===f?p?(0,ei.X)("refetchQueries"):void 0:f,g=t.onQueryUpdated,_=new Map;c&&this.getObservableQueries(c).forEach(function(t,l){_.set(l,{oq:t,lastDiff:a.getQuery(l).getDiff()})});var S=new Map;return l&&this.cache.batch({update:l,optimistic:p&&h||!1,removeOptimistic:h,onWatchUpdated:function(t,a,l){var c=t.watcher instanceof eg&&t.watcher.observableQuery;if(c){if(g){_.delete(c.queryId);var d=g(c,a,l);return!0===d&&(d=c.refetch()),!1!==d&&S.set(c,d),d}null!==g&&_.set(c.queryId,{oq:c,lastDiff:l,diff:a})}}}),_.size&&_.forEach(function(t,l){var c,d=t.oq,p=t.lastDiff,f=t.diff;if(g){if(!f){var h=d.queryInfo;h.reset(),f=h.getDiff()}c=g(d,f,p)}
67g&&!0!==c||(c=d.refetch()),!1!==c&&S.set(d,c),l.indexOf("legacyOneTimeQuery")>=0&&a.stopQueryNoBroadcast(l)}),h&&this.cache.removeOptimistic(h),S},QueryManager.prototype.maskOperation=function(t){var a,l,c,p=t.document,f=t.data;if(!1!==globalThis.__DEV__){var h=t.fetchPolicy,g=t.id,_=null===(a=(0,J.$H)(p))||void 0===a?void 0:a.operation,S=(null!==(l=null==_?void 0:_[0])&&void 0!==l?l:"o")+g;!this.dataMasking||"no-cache"!==h||(0,E.YU)(p)||this.noCacheWarningsByQueryId.has(S)||(this.noCacheWarningsByQueryId.add(S),!1!==globalThis.__DEV__&&d.kG.warn(37,null!==(c=(0,J.rY)(p))&&void 0!==c?c:"Unnamed ".concat(null!=_?_:"operation")))}return this.dataMasking?function(t,a,l){if(!l.fragmentMatches)return!1!==globalThis.__DEV__&&(0,eS.Kk)(),t;var c,p=(0,J.$H)(a);return((0,d.kG)(p,51),null==t)?t:(0,eb.K)(t,p.selectionSet,{operationType:p.operation,operationName:null===(c=p.name)||void 0===c?void 0:c.value,fragmentMap:(0,E.F)((0,J.kU)(a)),cache:l,mutableTargets:new eS.Td,knownChanged:new eS.wd})}(f,p,this.cache):f},QueryManager.prototype.maskFragment=function(t){var a=t.data,l=t.fragment,c=t.fragmentName;return this.dataMasking?(0,ew.r)(a,l,this.cache,c):a},QueryManager.prototype.fetchQueryByPolicy=function(t,a,l){var d=this,p=a.query,f=a.variables,h=a.fetchPolicy,g=a.refetchWritePolicy,S=a.errorPolicy,w=a.returnPartialData,k=a.context,E=a.notifyOnNetworkStatusChange,x=t.networkStatus;t.init({document:p,variables:f,networkStatus:l});var readCache=function(){return t.getDiff()},resultsFromCache=function(a,l){void 0===l&&(l=t.networkStatus||ep.Ie.loading);var h=a.result;!1===globalThis.__DEV__||w||(0,_.D)(h,{})||(0,ed.DC)(a.missing);var fromData=function(t){return H.y.of((0,c.pi)({data:t,loading:(0,ep.Oj)(l),networkStatus:l},a.complete?null:{partial:!0}))};return h&&d.getDocumentInfo(p).hasForcedResolvers?d.localState.runResolvers({document:p,remoteResult:{data:h},context:k,variables:f,onlyRunForcedResolvers:!0}).then(function(t){return fromData(t.data||void 0)}):"none"===S&&l===ep.Ie.refetch&&Array.isArray(a.missing)?fromData(void 0):fromData(h)},B="no-cache"===h?0:l===ep.Ie.refetch&&"merge"!==g?1:2,resultsFromLink=function(){return d.getResultsFromLink(t,B,{query:p,variables:f,context:k,fetchPolicy:h,errorPolicy:S})},U=E&&"number"==typeof x&&x!==l&&(0,ep.Oj)(l);switch(h){default:case"cache-first":var J=readCache();if(J.complete)return{fromLink:!1,sources:[resultsFromCache(J,t.markReady())]};if(w||U)return{fromLink:!0,sources:[resultsFromCache(J),resultsFromLink()]};return{fromLink:!0,sources:[resultsFromLink()]};case"cache-and-network":var J=readCache();if(J.complete||w||U)return{fromLink:!0,sources:[resultsFromCache(J),resultsFromLink()]};return{fromLink:!0,sources:[resultsFromLink()]};case"cache-only":return{fromLink:!1,sources:[resultsFromCache(readCache(),t.markReady())]};case"network-only":if(U)return{fromLink:!0,sources:[resultsFromCache(readCache()),resultsFromLink()]};return{fromLink:!0,sources:[resultsFromLink()]};case"no-cache":if(U)return{fromLink:!0,sources:[resultsFromCache(t.getDiff()),resultsFromLink()]};return{fromLink:!0,sources:[resultsFromLink()]};case"standby":return{fromLink:!1,sources:[]}}},QueryManager.prototype.getQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new eg(this,t)),this.queries.get(t)},QueryManager.prototype.prepareContext=function(t){void 0===t&&(t={});var a=this.localState.prepareContext(t);return(0,c.pi)((0,c.pi)((0,c.pi)({},this.defaultContext),a),{clientAwareness:this.clientAwareness})},QueryManager}(),ex=l(77304),eT=l(97359);function isSelectionNode(t){return t.kind===eT.h.FIELD||t.kind===eT.h.FRAGMENT_SPREAD||t.kind===eT.h.INLINE_FRAGMENT}var eI=l(66438),eO=function(){function LocalState(t){var a=t.cache,l=t.client,c=t.resolvers,d=t.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=a,l&&(this.client=l),c&&this.addResolvers(c),d&&this.setFragmentMatcher(d)}return LocalState.prototype.addResolvers=function(t){var a=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach(function(t){a.resolvers=(0,ef.Ee)(a.resolvers,t)}):this.resolvers=(0,ef.Ee)(this.resolvers,t)},LocalState.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},LocalState.prototype.getResolvers=function(){return this.resolvers||{}},LocalState.prototype.runResolvers=function(t){return(0,c.mG)(this,arguments,void 0,function(t){var a=t.document,l=t.remoteResult,d=t.context,p=t.variables,f=t.onlyRunForcedResolvers,h=void 0!==f&&f;return(0,c.Jh)(this,function(t){return a?[2,this.resolveDocument(a,l.data,d,p,this.fragmentMatcher,h).then(function(t){return(0,c.pi)((0,c.pi)({},l),{data:t.result})})]:[2,l]})})},LocalState.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},LocalState.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},LocalState.prototype.clientQuery=function(t){return(0,w.FS)(["client"],t)&&this.resolvers?t:null},LocalState.prototype.serverQuery=function(t){return(0,k.ob)(t)},LocalState.prototype.prepareContext=function(t){var a=this.cache;return(0,c.pi)((0,c.pi)({},t),{cache:a,getCacheKey:function(t){return a.identify(t)}})},LocalState.prototype.addExportedVariables=function(t){return(0,c.mG)(this,arguments,void 0,function(t,a,l){return void 0===a&&(a={}),void 0===l&&(l={}),(0,c.Jh)(this,function(d){return t?[2,this.resolveDocument(t,this.buildRootValueFromCache(t,a)||{},this.prepareContext(l),a).then(function(t){return(0,c.pi)((0,c.pi)({},a),t.exportedVariables)})]:[2,(0,c.pi)({},a)]})})},LocalState.prototype.shouldForceResolvers=function(t){var a=!1;return(0,ex.Vn)(t,{Directive:{enter:function(t){if("client"===t.name.value&&t.arguments&&(a=t.arguments.some(function(t){return"always"===t.name.value&&"BooleanValue"===t.value.kind&&!0===t.value.value})))return ex.$_}}}),a},LocalState.prototype.buildRootValueFromCache=function(t,a){return this.cache.diff({query:(0,k.aL)(t),variables:a,returnPartialData:!0,optimistic:!1}).result},LocalState.prototype.resolveDocument=function(t,a){return(0,c.mG)(this,arguments,void 0,function(t,a,l,d,p,f){var h,g,_,S,w,k,x,B,H,U;return void 0===l&&(l={}),void 0===d&&(d={}),void 0===p&&(p=function(){return!0}),void 0===f&&(f=!1),(0,c.Jh)(this,function(er){return h=(0,J.p$)(t),g=(0,J.kU)(t),_=(0,E.F)(g),S=this.collectSelectionsToResolve(h,_),k=(w=h.operation)?w.charAt(0).toUpperCase()+w.slice(1):"Query",x=this,B=x.cache,H=x.client,U={fragmentMap:_,context:(0,c.pi)((0,c.pi)({},l),{cache:B,client:H}),variables:d,fragmentMatcher:p,defaultOperationType:k,exportedVariables:{},selectionsToResolve:S,onlyRunForcedResolvers:f},[2,this.resolveSelectionSet(h.selectionSet,!1,a,U).then(function(t){return{result:t,exportedVariables:U.exportedVariables}})]})})},LocalState.prototype.resolveSelectionSet=function(t,a,l,p){return(0,c.mG)(this,void 0,void 0,function(){var f,h,g,_,S,k=this;
67return(0,c.Jh)(this,function(E){return f=p.fragmentMap,h=p.context,g=p.variables,_=[l],S=function(t){return(0,c.mG)(k,void 0,void 0,function(){var S,k;return(0,c.Jh)(this,function(c){return(a||p.selectionsToResolve.has(t))&&(0,w.LZ)(t,g)?(0,er.My)(t)?[2,this.resolveField(t,a,l,p).then(function(a){var l;void 0!==a&&_.push(((l={})[(0,er.u2)(t)]=a,l))})]:((0,er.Ao)(t)?S=t:(S=f[t.name.value],(0,d.kG)(S,19,t.name.value)),S&&S.typeCondition&&(k=S.typeCondition.name.value,p.fragmentMatcher(l,k,h)))?[2,this.resolveSelectionSet(S.selectionSet,a,l,p).then(function(t){_.push(t)})]:[2]:[2]})})},[2,Promise.all(t.selections.map(S)).then(function(){return(0,ef.bw)(_)})]})})},LocalState.prototype.resolveField=function(t,a,l,d){return(0,c.mG)(this,void 0,void 0,function(){var p,f,h,g,_,S,w,k,E,x=this;return(0,c.Jh)(this,function(c){return l?(p=d.variables,g=(f=t.name.value)!==(h=(0,er.u2)(t)),S=Promise.resolve(_=l[h]||l[f]),(!d.onlyRunForcedResolvers||this.shouldForceResolvers(t))&&(w=l.__typename||d.defaultOperationType,(k=this.resolvers&&this.resolvers[w])&&(E=k[g?f:h])&&(S=Promise.resolve(eI.ab.withValue(this.cache,E,[l,(0,er.NC)(t,p),d.context,{field:t,fragmentMap:d.fragmentMap}])))),[2,S.then(function(l){if(void 0===l&&(l=_),t.directives&&t.directives.forEach(function(t){"export"===t.name.value&&t.arguments&&t.arguments.forEach(function(t){"as"===t.name.value&&"StringValue"===t.value.kind&&(d.exportedVariables[t.value.value]=l)})}),!t.selectionSet||null==l)return l;var c,p,f=null!==(p=null===(c=t.directives)||void 0===c?void 0:c.some(function(t){return"client"===t.name.value}))&&void 0!==p&&p;return Array.isArray(l)?x.resolveSubSelectedArray(t,a||f,l,d):t.selectionSet?x.resolveSelectionSet(t.selectionSet,a||f,l,d):void 0})]):[2,null]})})},LocalState.prototype.resolveSubSelectedArray=function(t,a,l,c){var d=this;return Promise.all(l.map(function(l){return null===l?null:Array.isArray(l)?d.resolveSubSelectedArray(t,a,l,c):t.selectionSet?d.resolveSelectionSet(t.selectionSet,a,l,c):void 0}))},LocalState.prototype.collectSelectionsToResolve=function(t,a){var isSingleASTNode=function(t){return!Array.isArray(t)},l=this.selectionsToResolveCache;return function collectByDefinition(t){if(!l.has(t)){var c=new Set;l.set(t,c),(0,ex.Vn)(t,{Directive:function(t,a,l,d,p){"client"===t.name.value&&p.forEach(function(t){isSingleASTNode(t)&&isSelectionNode(t)&&c.add(t)})},FragmentSpread:function(t,l,p,f,h){var g=a[t.name.value];(0,d.kG)(g,20,t.name.value);var _=collectByDefinition(g);_.size>0&&(h.forEach(function(t){isSingleASTNode(t)&&isSelectionNode(t)&&c.add(t)}),c.add(t),_.forEach(function(t){c.add(t)}))}})}return l.get(t)}(t)},LocalState}(),eR=l(14012),eM=l(88244),eP=!1,eA=function(){function ApolloClient(t){var a,l=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!t.cache)throw(0,d._K)(16);var f=t.uri,_=t.credentials,S=t.headers,w=t.cache,k=t.documentTransform,E=t.ssrMode,x=void 0!==E&&E,B=t.ssrForceFetchDelay,H=void 0===B?0:B,U=t.connectToDevTools,J=t.queryDeduplication,er=void 0===J||J,en=t.defaultOptions,ei=t.defaultContext,ea=t.assumeImmutableResults,el=void 0===ea?w.assumeImmutableResults:ea,ec=t.resolvers,eu=t.typeDefs,ed=t.fragmentMatcher,ep=t.name,ef=t.version,eh=t.devtools,eg=t.dataMasking,em=t.link;em||(em=f?new g.u({uri:f,credentials:_,headers:S}):p.i.empty()),this.link=em,this.cache=w,this.disableNetworkFetches=x||H>0,this.queryDeduplication=er,this.defaultOptions=en||Object.create(null),this.typeDefs=eu,this.devtoolsConfig=(0,c.pi)((0,c.pi)({},eh),{enabled:null!==(a=null==eh?void 0:eh.enabled)&&void 0!==a?a:U}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),H&&setTimeout(function(){return l.disableNetworkFetches=!1},H),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=h.i,this.localState=new eO({cache:w,client:this,resolvers:ec,fragmentMatcher:ed}),this.queryManager=new eC({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:ei,documentTransform:k,queryDeduplication:er,ssrMode:x,dataMasking:!!eg,clientAwareness:{name:ep,version:ef},localState:this.localState,assumeImmutableResults:el,onBroadcast:this.devtoolsConfig.enabled?function(){l.devToolsHookCb&&l.devToolsHookCb({action:{},state:{queries:l.queryManager.getQueryStore(),mutations:l.queryManager.mutationStore||{}},dataWithOptimisticResults:l.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return ApolloClient.prototype.connectToDevTools=function(){if("undefined"!=typeof window){var t=window,a=Symbol.for("apollo.devtools");(t[a]=t[a]||[]).push(this),t.__APOLLO_CLIENT__=this,!eP&&!1!==globalThis.__DEV__&&(eP=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var t=window.navigator,a=t&&t.userAgent,l=void 0;"string"==typeof a&&(a.indexOf("Chrome/")>-1?l="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":a.indexOf("Firefox/")>-1&&(l="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),l&&!1!==globalThis.__DEV__&&d.kG.log("Download the Apollo DevTools for a better development experience: %s",l)}},1e4))}},Object.defineProperty(ApolloClient.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform}
67,enumerable:!1,configurable:!0}),ApolloClient.prototype.stop=function(){this.queryManager.stop()},ApolloClient.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=(0,eR.J)(this.defaultOptions.watchQuery,t)),this.disableNetworkFetches&&("network-only"===t.fetchPolicy||"cache-and-network"===t.fetchPolicy)&&(t=(0,c.pi)((0,c.pi)({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},ApolloClient.prototype.query=function(t){return this.defaultOptions.query&&(t=(0,eR.J)(this.defaultOptions.query,t)),(0,d.kG)("cache-and-network"!==t.fetchPolicy,17),this.disableNetworkFetches&&"network-only"===t.fetchPolicy&&(t=(0,c.pi)((0,c.pi)({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},ApolloClient.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=(0,eR.J)(this.defaultOptions.mutate,t)),this.queryManager.mutate(t)},ApolloClient.prototype.subscribe=function(t){var a=this,l=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(t).map(function(d){return(0,c.pi)((0,c.pi)({},d),{data:a.queryManager.maskOperation({document:t.query,data:d.data,fetchPolicy:t.fetchPolicy,id:l})})})},ApolloClient.prototype.readQuery=function(t,a){return void 0===a&&(a=!1),this.cache.readQuery(t,a)},ApolloClient.prototype.watchFragment=function(t){var a;return this.cache.watchFragment((0,c.pi)((0,c.pi)({},t),((a={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,a)))},ApolloClient.prototype.readFragment=function(t,a){return void 0===a&&(a=!1),this.cache.readFragment(t,a)},ApolloClient.prototype.writeQuery=function(t){var a=this.cache.writeQuery(t);return!1!==t.broadcast&&this.queryManager.broadcastQueries(),a},ApolloClient.prototype.writeFragment=function(t){var a=this.cache.writeFragment(t);return!1!==t.broadcast&&this.queryManager.broadcastQueries(),a},ApolloClient.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},ApolloClient.prototype.__requestRaw=function(t){return(0,f.h)(this.link,t)},ApolloClient.prototype.resetStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(t.resetStoreCallbacks.map(function(t){return t()}))}).then(function(){return t.reFetchObservableQueries()})},ApolloClient.prototype.clearStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(t.clearStoreCallbacks.map(function(t){return t()}))})},ApolloClient.prototype.onResetStore=function(t){var a=this;return this.resetStoreCallbacks.push(t),function(){a.resetStoreCallbacks=a.resetStoreCallbacks.filter(function(a){return a!==t})}},ApolloClient.prototype.onClearStore=function(t){var a=this;return this.clearStoreCallbacks.push(t),function(){a.clearStoreCallbacks=a.clearStoreCallbacks.filter(function(a){return a!==t})}},ApolloClient.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},ApolloClient.prototype.refetchQueries=function(t){var a=this.queryManager.refetchQueries(t),l=[],c=[];a.forEach(function(t,a){l.push(a),c.push(t)});var p=Promise.all(c);return p.queries=l,p.results=c,p.catch(function(t){!1!==globalThis.__DEV__&&d.kG.debug(18,t)}),p},ApolloClient.prototype.getObservableQueries=function(t){return void 0===t&&(t="active"),this.queryManager.getObservableQueries(t)},ApolloClient.prototype.extract=function(t){return this.cache.extract(t)},ApolloClient.prototype.restore=function(t){return this.cache.restore(t)},ApolloClient.prototype.addResolvers=function(t){this.localState.addResolvers(t)},ApolloClient.prototype.setResolvers=function(t){this.localState.setResolvers(t)},ApolloClient.prototype.getResolvers=function(){return this.localState.getResolvers()},ApolloClient.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},ApolloClient.prototype.setLink=function(t){this.link=this.queryManager.link=t},Object.defineProperty(ApolloClient.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext}
67,enumerable:!1,configurable:!0}),ApolloClient}();!1!==globalThis.__DEV__&&(eA.prototype.getMemoryInternals=eM.su)},22599:function(t,a,l){"use strict";l.d(a,{ue:function(){return U},DC:function(){return logMissingFieldErrors},vj:function(){return reobserveCacheFirst}});var c=l(97582),d=l(69316),p=l(30020),f=l(1644),h=l(36765),g=l(53712),_=l(79487),S=l(18263),w=l(48216),k=l(86403),E=l(30990),x=l(39613),B=Object.assign,H=Object.hasOwnProperty,U=function(t){function ObservableQuery(a){var l=a.queryManager,d=a.queryInfo,p=a.options,f=t.call(this,function(t){try{var a=t._subscription._observer;a&&!a.error&&(a.error=defaultSubscriptionObserverErrorCallback)}catch(t){}var l=!f.observers.size;f.observers.add(t);var c=f.last;return c&&c.error?t.error&&t.error(c.error):c&&c.result&&t.next&&t.next(f.maskResult(c.result)),l&&f.reobserve().catch(function(){}),function(){f.observers.delete(t)&&!f.observers.size&&f.tearDownQuery()}})||this;f.observers=new Set,f.subscriptions=new Set,f.queryInfo=d,f.queryManager=l,f.waitForOwnResult=skipCacheDataFor(p.fetchPolicy),f.isTornDown=!1,f.subscribeToMore=f.subscribeToMore.bind(f),f.maskResult=f.maskResult.bind(f);var g=l.defaultOptions.watchQuery,_=(void 0===g?{}:g).fetchPolicy,S=void 0===_?"cache-first":_,w=p.fetchPolicy,k=void 0===w?S:w,E=p.initialFetchPolicy,x=void 0===E?"standby"===k?S:k:E;f.options=(0,c.pi)((0,c.pi)({},p),{initialFetchPolicy:x,fetchPolicy:k}),f.queryId=d.queryId||l.generateQueryId();var B=(0,h.$H)(f.query);return f.queryName=B&&B.name&&B.name.value,f}return(0,c.ZT)(ObservableQuery,t),Object.defineProperty(ObservableQuery.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(ObservableQuery.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),ObservableQuery.prototype.result=function(){var t=this;return new Promise(function(a,l){var c={next:function(l){a(l),t.observers.delete(c),t.observers.size||t.queryManager.removeQuery(t.queryId),setTimeout(function(){d.unsubscribe()},0)},error:l},d=t.subscribe(c)})},ObservableQuery.prototype.resetDiff=function(){this.queryInfo.resetDiff()},ObservableQuery.prototype.getCurrentFullResult=function(t){void 0===t&&(t=!0);var a=this.getLastResult(!0),l=this.queryInfo.networkStatus||a&&a.networkStatus||f.Ie.ready,d=(0,c.pi)((0,c.pi)({},a),{loading:(0,f.Oj)(l),networkStatus:l}),h=this.options.fetchPolicy,g=void 0===h?"cache-first":h;if(skipCacheDataFor(g)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var _=this.queryInfo.getDiff();(_.complete||this.options.returnPartialData)&&(d.data=_.result),(0,p.D)(d.data,{})&&(d.data=void 0),_.complete?(delete d.partial,_.complete&&d.networkStatus===f.Ie.loading&&("cache-first"===g||"cache-only"===g)&&(d.networkStatus=f.Ie.ready,d.loading=!1)):d.partial=!0,!1===globalThis.__DEV__||_.complete||this.options.partialRefetch||d.loading||d.data||d.error||logMissingFieldErrors(_.missing)}return t&&this.updateLastResult(d),d},ObservableQuery.prototype.getCurrentResult=function(t){return void 0===t&&(t=!0),this.maskResult(this.getCurrentFullResult(t))},ObservableQuery.prototype.isDifferentFromLastResult=function(t,a){if(!this.last)return!0;var l=this.queryManager.getDocumentInfo(this.query),c=this.queryManager.dataMasking,d=c?l.nonReactiveQuery:this.query;return(c||l.hasNonreactiveDirective?!(0,x.W)(d,this.last.result,t,this.variables):!(0,p.D)(this.last.result,t))||a&&!(0,p.D)(this.last.variables,a)},ObservableQuery.prototype.getLast=function(t,a){var l=this.last;if(l&&l[t]&&(!a||(0,p.D)(l.variables,this.variables)))return l[t]},ObservableQuery.prototype.getLastResult=function(t){return this.getLast("result",t)},ObservableQuery.prototype.getLastError=function(t){return this.getLast("error",t)},ObservableQuery.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},ObservableQuery.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},ObservableQuery.prototype.refetch=function(t){var a,l={pollInterval:0},g=this.options.fetchPolicy;if("cache-and-network"===g?l.fetchPolicy=g:"no-cache"===g?l.fetchPolicy="no-cache":l.fetchPolicy="network-only",!1!==globalThis.__DEV__&&t&&H.call(t,"variables")){var _=(0,h.iW)(this.query),S=_.variableDefinitions;S&&S.some(function(t){return"variables"===t.variable.name.value})||!1===globalThis.__DEV__||d.kG.warn(21,t,(null===(a=_.name)||void 0===a?void 0:a.value)||_)}return t&&!(0,p.D)(this.options.variables,t)&&(l.variables=this.options.variables=(0,c.pi)((0,c.pi)({},this.options.variables),t)),this.queryInfo.resetLastWrite(),this.reobserve(l,f.Ie.refetch)},ObservableQuery.prototype.fetchMore=function(t){var a=this,l=(0,c.pi)((0,c.pi)({},t.query?t:(0,c.pi)((0,c.pi)((0,c.pi)((0,c.pi)({},this.options),{query:this.options.query}),t),{variables:(0,c.pi)((0,c.pi)({},this.options.variables),t.variables)})),{fetchPolicy:"no-cache"});l.query=this.transformDocument(l.query);var p=this.queryManager.generateQueryId();this.lastQuery=t.query?this.transformDocument(this.options.query):l.query;var h=this.queryInfo,g=h.networkStatus;
67h.networkStatus=f.Ie.fetchMore,l.notifyOnNetworkStatusChange&&this.observe();var _=new Set,S=null==t?void 0:t.updateQuery,w="no-cache"!==this.options.fetchPolicy;return w||(0,d.kG)(S,22),this.queryManager.fetchQuery(p,l,f.Ie.fetchMore).then(function(d){if(a.queryManager.removeQuery(p),h.networkStatus===f.Ie.fetchMore&&(h.networkStatus=g),w)a.queryManager.cache.batch({update:function(c){var p=t.updateQuery;p?c.updateQuery({query:a.query,variables:a.variables,returnPartialData:!0,optimistic:!1},function(t){return p(t,{fetchMoreResult:d.data,variables:l.variables})}):c.writeQuery({query:l.query,variables:l.variables,data:d.data})},onWatchUpdated:function(t){_.add(t.query)}});else{var k=a.getLast("result"),E=S(k.data,{fetchMoreResult:d.data,variables:l.variables});a.reportResult((0,c.pi)((0,c.pi)({},k),{networkStatus:g,loading:(0,f.Oj)(g),data:E}),a.variables)}return a.maskResult(d)}).finally(function(){w&&!_.has(a.query)&&reobserveCacheFirst(a)})},ObservableQuery.prototype.subscribeToMore=function(t){var a=this,l=this.queryManager.startGraphQLSubscription({query:t.document,variables:t.variables,context:t.context}).subscribe({next:function(l){var c=t.updateQuery;c&&a.updateQuery(function(t,a){return c(t,{subscriptionData:l,variables:a.variables})})},error:function(a){if(t.onError){t.onError(a);return}!1!==globalThis.__DEV__&&d.kG.error(23,a)}});return this.subscriptions.add(l),function(){a.subscriptions.delete(l)&&l.unsubscribe()}},ObservableQuery.prototype.setOptions=function(t){return this.reobserve(t)},ObservableQuery.prototype.silentSetOptions=function(t){var a=(0,g.o)(this.options,t||{});B(this.options,a)},ObservableQuery.prototype.setVariables=function(t){return(0,p.D)(this.variables,t)?this.observers.size?this.result():Promise.resolve():(this.options.variables=t,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:t},f.Ie.setVariables):Promise.resolve()},ObservableQuery.prototype.updateQuery=function(t){var a=this.queryManager,l=t(a.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});l&&(a.cache.writeQuery({query:this.options.query,data:l,variables:this.variables}),a.broadcastQueries())},ObservableQuery.prototype.startPolling=function(t){this.options.pollInterval=t,this.updatePolling()},ObservableQuery.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},ObservableQuery.prototype.applyNextFetchPolicy=function(t,a){if(a.nextFetchPolicy){var l=a.fetchPolicy,c=void 0===l?"cache-first":l,d=a.initialFetchPolicy,p=void 0===d?c:d;"standby"===c||("function"==typeof a.nextFetchPolicy?a.fetchPolicy=a.nextFetchPolicy(c,{reason:t,options:a,observable:this,initialFetchPolicy:p}):"variables-changed"===t?a.fetchPolicy=p:a.fetchPolicy=a.nextFetchPolicy)}return a.fetchPolicy},ObservableQuery.prototype.fetch=function(t,a,l){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,t,a,l)},ObservableQuery.prototype.updatePolling=function(){var t=this;if(!this.queryManager.ssrMode){var a=this.pollingInfo,l=this.options.pollInterval;if(!l||!this.hasObservers()){a&&(clearTimeout(a.timeout),delete this.pollingInfo);return}if(!a||a.interval!==l){(0,d.kG)(l,24),(a||(this.pollingInfo={})).interval=l;var maybeFetch=function(){var a,l;t.pollingInfo&&((0,f.Oj)(t.queryInfo.networkStatus)||(null===(l=(a=t.options).skipPollAttempt)||void 0===l?void 0:l.call(a))?poll():t.reobserve({fetchPolicy:"no-cache"===t.options.initialFetchPolicy?"no-cache":"network-only"},f.Ie.poll).then(poll,poll))},poll=function(){var a=t.pollingInfo;a&&(clearTimeout(a.timeout),a.timeout=setTimeout(maybeFetch,a.interval))};poll()}}},ObservableQuery.prototype.updateLastResult=function(t,a){void 0===a&&(a=this.variables);var l=this.getLastError();return l&&this.last&&!(0,p.D)(a,this.last.variables)&&(l=void 0),this.last=(0,c.pi)({result:this.queryManager.assumeImmutableResults?t:(0,_.X)(t),variables:a},l?{error:l}:null)},ObservableQuery.prototype.reobserveAsConcast=function(t,a){var l=this;this.isTornDown=!1;
67var d=a===f.Ie.refetch||a===f.Ie.fetchMore||a===f.Ie.poll,h=this.options.variables,_=this.options.fetchPolicy,S=(0,g.o)(this.options,t||{}),w=d?S:B(this.options,S),k=this.transformDocument(w.query);this.lastQuery=k,!d&&(this.updatePolling(),t&&t.variables&&!(0,p.D)(t.variables,h)&&"standby"!==w.fetchPolicy&&(w.fetchPolicy===_||"function"==typeof w.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",w),void 0===a&&(a=f.Ie.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=skipCacheDataFor(w.fetchPolicy));var finishWaitingForOwnResult=function(){l.concast===U&&(l.waitForOwnResult=!1)},x=w.variables&&(0,c.pi)({},w.variables),H=this.fetch(w,a,k),U=H.concast,J=H.fromLink,er={next:function(t){(0,p.D)(l.variables,x)&&(finishWaitingForOwnResult(),l.reportResult(t,x))},error:function(t){(0,p.D)(l.variables,x)&&((0,E.MS)(t)||(t=new E.cA({networkError:t})),finishWaitingForOwnResult(),l.reportError(t,x))}};return d||!J&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=U,this.observer=er),U.addObserver(er),U},ObservableQuery.prototype.reobserve=function(t,a){var l;return(l=this.reobserveAsConcast(t,a).promise.then(this.maskResult)).catch(function(){}),l},ObservableQuery.prototype.resubscribeAfterError=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];var l=this.last;this.resetLastResults();var c=this.subscribe.apply(this,t);return this.last=l,c},ObservableQuery.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},ObservableQuery.prototype.reportResult=function(t,a){var l=this.getLastError(),c=this.isDifferentFromLastResult(t,a);(l||!t.partial||this.options.returnPartialData)&&this.updateLastResult(t,a),(l||c)&&(0,S.p)(this.observers,"next",this.maskResult(t))},ObservableQuery.prototype.reportError=function(t,a){var l=(0,c.pi)((0,c.pi)({},this.getLastResult()),{error:t,errors:t.graphQLErrors,networkStatus:f.Ie.error,loading:!1});this.updateLastResult(l,a),(0,S.p)(this.observers,"error",this.last.error=t)},ObservableQuery.prototype.hasObservers=function(){return this.observers.size>0},ObservableQuery.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(t){return t.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},ObservableQuery.prototype.transformDocument=function(t){return this.queryManager.transform(t)},ObservableQuery.prototype.maskResult=function(t){return t&&"data"in t?(0,c.pi)((0,c.pi)({},t),{data:this.queryManager.maskOperation({document:this.query,data:t.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):t},ObservableQuery}(w.y);function reobserveCacheFirst(t){var a=t.options,l=a.fetchPolicy,c=a.nextFetchPolicy;return"cache-and-network"===l||"network-only"===l?t.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(t,a){return(this.nextFetchPolicy=c,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(t,a):l}}):t.reobserve()}function defaultSubscriptionObserverErrorCallback(t){!1!==globalThis.__DEV__&&d.kG.error(25,t.message,t.stack)}function logMissingFieldErrors(t){!1!==globalThis.__DEV__&&t&&!1!==globalThis.__DEV__&&d.kG.debug(26,t)}function skipCacheDataFor(t){return"network-only"===t||"no-cache"===t||"standby"===t}(0,k.D)(U)},39613:function(t,a,l){"use strict";l.d(a,{W:function(){return equalByQuery}});var c=l(97582),d=l(30020),p=l(36765),f=l(23361),h=l(19065),g=l(51761);function equalByQuery(t,a,l,_){var S=a.data,w=(0,c._T)(a,["data"]),k=l.data,E=(0,c._T)(l,["data"]);return(0,d.Z)(w,E)&&function equalBySelectionSet(t,a,l,c){if(a===l)return!0;var p=new Set;return t.selections.every(function(t){if(p.has(t)||(p.add(t),!(0,h.LZ)(t,c.variables)||selectionHasNonreactiveDirective(t)))return!0;if((0,g.My)(t)){var _=(0,g.u2)(t),S=a&&a[_],w=l&&l[_],k=t.selectionSet;if(!k)return(0,d.Z)(S,w);var E=Array.isArray(S),x=Array.isArray(w);if(E!==x)return!1;if(E&&x){var B=S.length;if(w.length!==B)return!1;for(var H=0;H<B;++H)if(!equalBySelectionSet(k,S[H],w[H],c))return!1;return!0}return equalBySelectionSet(k,S,w,c)}var U=(0,f.hi)(t,c.fragmentMap);if(U)return!!selectionHasNonreactiveDirective(U)||equalBySelectionSet(U.selectionSet,a,l,c)})}((0,p.p$)(t).selectionSet,S,k,{fragmentMap:(0,f.F)((0,p.kU)(t)),variables:_})}function selectionHasNonreactiveDirective(t){return!!t.directives&&t.directives.some(directiveIsNonreactive)}function directiveIsNonreactive(t){return"nonreactive"===t.name.value}},1644:function(t,a,l){"use strict";var c,d;
67function isNetworkRequestInFlight(t){return!!t&&t<7}function isNetworkRequestSettled(t){return 7===t||8===t}l.d(a,{Ie:function(){return c},Jp:function(){return isNetworkRequestSettled},Oj:function(){return isNetworkRequestInFlight}}),(d=c||(c={}))[d.loading=1]="loading",d[d.setVariables=2]="setVariables",d[d.fetchMore=3]="fetchMore",d[d.refetch=4]="refetch",d[d.poll=6]="poll",d[d.ready=7]="ready",d[d.error=8]="error"},30990:function(t,a,l){"use strict";l.d(a,{MS:function(){return isApolloError},YG:function(){return p},cA:function(){return f},ls:function(){return graphQLResultHasProtocolErrors}});var c=l(97582);l(69316);var d=l(13154),p=Symbol();function graphQLResultHasProtocolErrors(t){return!!t.extensions&&Array.isArray(t.extensions[p])}function isApolloError(t){return t.hasOwnProperty("graphQLErrors")}var generateErrorMessage=function(t){var a=(0,c.ev)((0,c.ev)((0,c.ev)([],t.graphQLErrors,!0),t.clientErrors,!0),t.protocolErrors,!0);return t.networkError&&a.push(t.networkError),a.map(function(t){return(0,d.s)(t)&&t.message||"Error message not found."}).join("\n")},f=function(t){function ApolloError(a){var l=a.graphQLErrors,d=a.protocolErrors,p=a.clientErrors,f=a.networkError,h=a.errorMessage,g=a.extraInfo,_=t.call(this,h)||this;return _.name="ApolloError",_.graphQLErrors=l||[],_.protocolErrors=d||[],_.clientErrors=p||[],_.networkError=f||null,_.message=h||generateErrorMessage(_),_.extraInfo=g,_.cause=(0,c.ev)((0,c.ev)((0,c.ev)([f],l||[],!0),d||[],!0),p||[],!0).find(function(t){return!!t})||null,_.__proto__=ApolloError.prototype,_}return(0,c.ZT)(ApolloError,t),ApolloError}(Error)},48702:function(t,a,l){"use strict";l.d(a,{i:function(){return h}});var c=l(69316),d=l(48216),p=l(97582),f=l(36765);function passthrough(t,a){return a?a(t):d.y.of()}function toLink(t){return"function"==typeof t?new h(t):t}function isTerminating(t){return t.request.length<=1}var h=function(){function ApolloLink(t){t&&(this.request=t)}return ApolloLink.empty=function(){return new ApolloLink(function(){return d.y.of()})},ApolloLink.from=function(t){return 0===t.length?ApolloLink.empty():t.map(toLink).reduce(function(t,a){return t.concat(a)})},ApolloLink.split=function(t,a,l){var c=toLink(a),p=toLink(l||new ApolloLink(passthrough));return Object.assign(new ApolloLink(isTerminating(c)&&isTerminating(p)?function(a){return t(a)?c.request(a)||d.y.of():p.request(a)||d.y.of()}:function(a,l){return t(a)?c.request(a,l)||d.y.of():p.request(a,l)||d.y.of()}),{left:c,right:p})},ApolloLink.execute=function(t,a){var l,h,g,_;return t.request((g=a.context,(h={variables:(l=function(t){for(var a=["query","operationName","variables","extensions","context"],l=0,d=Object.keys(t);l<d.length;l++){var p=d[l];if(0>a.indexOf(p))throw(0,c._K)(46,p)}return t}(a)).variables||{},extensions:l.extensions||{},operationName:l.operationName,query:l.query}).operationName||(h.operationName="string"!=typeof h.query?(0,f.rY)(h.query)||void 0:""),_=(0,p.pi)({},g),Object.defineProperty(h,"setContext",{enumerable:!1,value:function(t){_="function"==typeof t?(0,p.pi)((0,p.pi)({},_),t(_)):(0,p.pi)((0,p.pi)({},_),t)}}),Object.defineProperty(h,"getContext",{enumerable:!1,value:function(){return(0,p.pi)({},_)}}),h))||d.y.of()},ApolloLink.concat=function(t,a){var l=toLink(t);if(isTerminating(l))return!1!==globalThis.__DEV__&&c.kG.warn(38,l),l;var p=toLink(a);return Object.assign(new ApolloLink(isTerminating(p)?function(t){return l.request(t,function(t){return p.request(t)||d.y.of()})||d.y.of()}:function(t,a){return l.request(t,function(t){return p.request(t,a)||d.y.of()})||d.y.of()}),{left:l,right:p})},ApolloLink.prototype.split=function(t,a,l){return this.concat(ApolloLink.split(t,a,l||new ApolloLink(passthrough)))},ApolloLink.prototype.concat=function(t){return ApolloLink.concat(this,t)},ApolloLink.prototype.request=function(t,a){throw(0,c._K)(39)},ApolloLink.prototype.onError=function(t,a){if(a&&a.error)return a.error(t),!1;throw t},ApolloLink.prototype.setOnError=function(t){return this.onError=t,this},ApolloLink}()},47037:function(t,a,l){"use strict";l.d(a,{h:function(){return c}});var c=l(48702).i.execute},72198:function(t,a,l){"use strict";l.d(a,{u:function(){return f}});var c=l(97582),d=l(48702),p=l(71050),f=function(t){function HttpLink(a){void 0===a&&(a={});var l=t.call(this,(0,p.L)(a).request)||this;return l.options=a,l}return(0,c.ZT)(HttpLink,t),HttpLink}(d.i)},23178:function(t,a,l){"use strict";l.d(a,{U:function(){return checkFetcher}});var c=l(69316),checkFetcher=function(t){if(!t&&"undefined"==typeof fetch)throw(0,c._K)(40)}},71050:function(t,a,l){"use strict";l.d(a,{L:function(){return createHttpLink}});var c=l(97582),d=l(69316),p=l(48702),f=l(19065),h=l(48216),g=l(15049),_=l(11037),S=l(81999),w=l(23178),k=l(3453),E=l(88663),x=l(16261),B=l(77304),H=l(76487),U=l(36765),J=(0,d.wY)(function(){return fetch}),createHttpLink=function(t){void 0===t&&(t={});var a=t.uri,l=void 0===a?"/graphql":a,er=t.fetch,en=t.print,ei=void 0===en?k.sb:en,ea=t.includeExtensions,el=t.preserveHeaderCase,ec=t.useGETForQueries,eu=t.includeUnusedVariables,ed=void 0!==eu&&eu,ep=(0,c._T)(t,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&(0,w.U)(er||J);var ef={http:{includeExtensions:ea,preserveHeaderCase:el},options:ep.fetchOptions,credentials:ep.credentials,headers:ep.headers};return new p.i(function(t){var a,p,w,en,ea,el,eu=(0,_.r)(t,l),ep=t.getContext(),eh={};if(ep.clientAwareness){var eg=ep.clientAwareness,em=eg.name,ev=eg.version;em&&(eh["apollographql-client-name"]=em),ev&&(eh["apollographql-client-version"]=ev)}var ey=(0,c.pi)((0,c.pi)({},eh),ep.headers),e_={http:ep.http,options:ep.fetchOptions,credentials:ep.credentials,headers:ey};if((0,f.FS)(["client"],t.query)){var eb=(0,H.ob)(t.query);if(!eb)return(0,x.Q)(Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));t.query=eb}var eS=(0,k.ve)(t,ei,k.SC,ef,e_),ew=eS.options,ek=eS.body;ek.variables&&!ed&&(ek.variables=(a=ek.variables,p=t.query,w=(0,c.pi)({},a),en=new Set(Object.keys(a)),(0,B.Vn)(p,{Variable:function(t,a,l){l&&"VariableDefinition"!==l.kind&&en.delete(t.name.value)}}
67),en.forEach(function(t){delete w[t]}),w)),ew.signal||"undefined"==typeof AbortController||(el=new AbortController,ew.signal=el.signal);var eE="OperationDefinition"===(ea=(0,U.p$)(t.query)).kind&&"subscription"===ea.operation,eC=(0,f.FS)(["defer"],t.query);if(ec&&!t.query.definitions.some(function(t){return"OperationDefinition"===t.kind&&"mutation"===t.operation})&&(ew.method="GET"),eC||eE){ew.headers=ew.headers||{};var ex="multipart/mixed;";eE&&eC&&!1!==globalThis.__DEV__&&d.kG.warn(41),eE?ex+="boundary=graphql;subscriptionSpec=1.0,application/json":eC&&(ex+="deferSpec=20220824,application/json"),ew.headers.accept=ex}if("GET"===ew.method){var eT=(0,E.H)(eu,ek),eI=eT.newURI,eO=eT.parseError;if(eO)return(0,x.Q)(eO);eu=eI}else try{ew.body=(0,g.g)(ek,"Payload")}catch(t){return(0,x.Q)(t)}return new h.y(function(a){var l=er||(0,d.wY)(function(){return fetch})||J,c=a.next.bind(a);return l(eu,ew).then(function(a){t.setContext({response:a});var l,d=null===(l=a.headers)||void 0===l?void 0:l.get("content-type");return null!==d&&/^multipart\/mixed/i.test(d)?(0,S.TF)(a,c):(0,S.dO)(t)(a).then(c)}).then(function(){el=void 0,a.complete()}).catch(function(t){el=void 0,(0,S.S3)(t,a)}),function(){el&&el.abort()}})})}},81999:function(t,a,l){"use strict";l.d(a,{S3:function(){return handleError},dO:function(){return parseAndCheckHttpResponse},TF:function(){return readMultipartBody}});var c=l(97582),d=l(30320);function readerIterator(t){var a={next:function(){return t.read()}};return d.DN&&(a[Symbol.asyncIterator]=function(){return this}),a}var p=l(12782),f=l(30990),h=l(37280),g=Object.prototype.hasOwnProperty;function readMultipartBody(t,a){return(0,c.mG)(this,void 0,void 0,function(){var l,p,g,_,S,w,k,E,x,B,H,U,J,er,en,ei,ea,el,ec,eu,ed,ep,ef;return(0,c.Jh)(this,function(eh){switch(eh.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");l=new TextDecoder("utf-8"),p=null===(ef=t.headers)||void 0===ef?void 0:ef.get("content-type"),g="boundary=",_=(null==p?void 0:p.includes(g))?null==p?void 0:p.substring((null==p?void 0:p.indexOf(g))+g.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",S="\r\n--".concat(_),w="",k=function(t){var a,l,c,p,f,h,g=t;if(t.body&&(g=t.body),a=g,d.DN&&a[Symbol.asyncIterator])return c=g[Symbol.asyncIterator](),(l={next:function(){return c.next()}})[Symbol.asyncIterator]=function(){return this},l;if(g.getReader)return readerIterator(g.getReader());if(g.stream)return readerIterator(g.stream().getReader());if(g.arrayBuffer)return p=g.arrayBuffer(),f=!1,h={next:function(){return f?Promise.resolve({value:void 0,done:!0}):(f=!0,new Promise(function(t,a){p.then(function(a){t({value:a,done:!1})}).catch(a)}))}},d.DN&&(h[Symbol.asyncIterator]=function(){return this}),h;if(g.pipe)return function(t){var a=null,l=null,c=!1,p=[],f=[];function onData(t){if(!l){if(f.length){var a=f.shift();if(Array.isArray(a)&&a[0])return a[0]({value:t,done:!1})}p.push(t)}}function onError(t){l=t,f.slice().forEach(function(a){a[1](t)}),a&&a()}function onEnd(){c=!0,f.slice().forEach(function(t){t[0]({value:void 0,done:!0})}),a&&a()}a=function(){a=null,t.removeListener("data",onData),t.removeListener("error",onError),t.removeListener("end",onEnd),t.removeListener("finish",onEnd),t.removeListener("close",onEnd)},t.on("data",onData),t.on("error",onError),t.on("end",onEnd),t.on("finish",onEnd),t.on("close",onEnd);var h={next:function(){return new Promise(function(t,a){return l?a(l):p.length?t({value:p.shift(),done:!1}):c?t({value:void 0,done:!0}):void f.push([t,a])})}};return d.DN&&(h[Symbol.asyncIterator]=function(){return this}),h}(g);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(t),E=!0,eh.label=1;case 1:if(!E)return[3,3];return[4,k.next()];case 2:for(B=(x=eh.sent()).value,H=x.done,U="string"==typeof B?B:l.decode(B),J=w.length-S.length+1,E=!H,w+=U,er=w.indexOf(S,J);er>-1;){if(en=void 0,en=(ed=[w.slice(0,er),w.slice(er+S.length)])[0],w=ed[1],ei=en.indexOf("\r\n\r\n"),(ea=function(t){var a={};return t.split("\n").forEach(function(t){var l=t.indexOf(":");if(l>-1){var c=t.slice(0,l).trim().toLowerCase(),d=t.slice(l+1).trim();a[c]=d}}),a}(en.slice(0,ei))["content-type"])&&-1===ea.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");
67if(el=en.slice(ei)){if(Object.keys(ec=parseJsonBody(t,el)).length>1||"data"in ec||"incremental"in ec||"errors"in ec||"payload"in ec){if((0,h.yU)(ec)){if(eu={},"payload"in ec){if(1===Object.keys(ec).length&&null===ec.payload)return[2];eu=(0,c.pi)({},ec.payload)}"errors"in ec&&(eu=(0,c.pi)((0,c.pi)({},eu),{extensions:(0,c.pi)((0,c.pi)({},"extensions"in eu?eu.extensions:null),((ep={})[f.YG]=ec.errors,ep))})),a(eu)}else a(ec)}else if(1===Object.keys(ec).length&&"hasNext"in ec&&!ec.hasNext)return[2]}er=w.indexOf(S)}return[3,1];case 3:return[2]}})})}function parseJsonBody(t,a){t.status>=300&&(0,p.P)(t,function(){try{return JSON.parse(a)}catch(t){return a}}(),"Response not successful: Received status code ".concat(t.status));try{return JSON.parse(a)}catch(l){throw l.name="ServerParseError",l.response=t,l.statusCode=t.status,l.bodyText=a,l}}function handleError(t,a){t.result&&t.result.errors&&t.result.data&&a.next(t.result),a.error(t)}function parseAndCheckHttpResponse(t){return function(a){return a.text().then(function(t){return parseJsonBody(a,t)}).then(function(l){return Array.isArray(l)||g.call(l,"data")||g.call(l,"errors")||(0,p.P)(a,l,"Server response was missing for query '".concat(Array.isArray(t)?t.map(function(t){return t.operationName}):t.operationName,"'.")),l})}}},88663:function(t,a,l){"use strict";l.d(a,{H:function(){return rewriteURIForGET}});var c=l(15049);function rewriteURIForGET(t,a){var l=[],addQueryParam=function(t,a){l.push("".concat(t,"=").concat(encodeURIComponent(a)))};if("query"in a&&addQueryParam("query",a.query),a.operationName&&addQueryParam("operationName",a.operationName),a.variables){var d=void 0;try{d=(0,c.g)(a.variables,"Variables map")}catch(t){return{parseError:t}}addQueryParam("variables",d)}if(a.extensions){var p=void 0;try{p=(0,c.g)(a.extensions,"Extensions map")}catch(t){return{parseError:t}}addQueryParam("extensions",p)}var f="",h=t,g=t.indexOf("#");-1!==g&&(f=t.substr(g),h=t.substr(0,g));var _=-1===h.indexOf("?")?"?":"&";return{newURI:h+_+l.join("&")+f}}},3453:function(t,a,l){"use strict";l.d(a,{E4:function(){return selectHttpOptionsAndBody},SC:function(){return p},sb:function(){return defaultPrinter},ve:function(){return selectHttpOptionsAndBodyInternal}});var c=l(97582),d=l(50713),p={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},defaultPrinter=function(t,a){return a(t)};function selectHttpOptionsAndBody(t,a){for(var l=[],d=2;d<arguments.length;d++)l[d-2]=arguments[d];return l.unshift(a),selectHttpOptionsAndBodyInternal.apply(void 0,(0,c.ev)([t,defaultPrinter],l,!1))}function selectHttpOptionsAndBodyInternal(t,a){for(var l=[],p=2;p<arguments.length;p++)l[p-2]=arguments[p];var f={},h={};l.forEach(function(t){f=(0,c.pi)((0,c.pi)((0,c.pi)({},f),t.options),{headers:(0,c.pi)((0,c.pi)({},f.headers),t.headers)}),t.credentials&&(f.credentials=t.credentials),h=(0,c.pi)((0,c.pi)({},h),t.http)}),f.headers&&(f.headers=function(t,a){if(!a){var l={};return Object.keys(Object(t)).forEach(function(a){l[a.toLowerCase()]=t[a]}),l}var c={};Object.keys(Object(t)).forEach(function(a){c[a.toLowerCase()]={originalName:a,value:t[a]}});var d={};return Object.keys(c).forEach(function(t){d[c[t].originalName]=c[t].value}),d}(f.headers,h.preserveHeaderCase));var g=t.operationName,_=t.extensions,S=t.variables,w=t.query,k={operationName:g,variables:S};return h.includeExtensions&&(k.extensions=_),h.includeQuery&&(k.query=a(w,d.S)),{options:f,body:k}}},11037:function(t,a,l){"use strict";l.d(a,{r:function(){return selectURI}});var selectURI=function(t,a){return t.getContext().uri||("function"==typeof a?a(t):a||"/graphql")}},15049:function(t,a,l){"use strict";l.d(a,{g:function(){return serializeFetchParameter}});var c=l(69316),serializeFetchParameter=function(t,a){var l;try{l=JSON.stringify(t)}catch(t){var d=(0,c._K)(42,a,t.message);throw d.parseError=t,d}return l}},16261:function(t,a,l){"use strict";l.d(a,{Q:function(){return fromError}});var c=l(48216);function fromError(t){return new c.y(function(a){a.error(t)})}},12782:function(t,a,l){"use strict";l.d(a,{P:function(){return throwServerError}});var throwServerError=function(t,a,l){var c=Error(l);throw c.name="ServerError",c.response=t,c.statusCode=t.status,c.result=a,c}},30142:function(t,a,l){"use strict";l.d(a,{K:function(){return maskDefinition}});var c=l(97359),d=l(10542),p=l(51761),f=l(19065),h=l(87493),g=l(69316);function maskDefinition(t,a,l){return h.Os.withValue(!0,function(){var _=function maskSelectionSet(t,a,l,d,_){var S,w=l.knownChanged,k=function(t,a){if(a.has(t))return a.get(t);var l=Array.isArray(t)?[]:Object.create(null);return a.set(t,l),l}(t,l.mutableTargets);if(Array.isArray(t)){for(var E=0,x=Array.from(t.entries());E<x.length;E++){var B=x[E],H=B[0],U=B[1];if(null===U){k[H]=null;continue}var J=maskSelectionSet(U,a,l,d,!1!==globalThis.__DEV__?"".concat(_||"","[").concat(H,"]"):void 0);w.has(J)&&w.add(k),k[H]=J}return w.has(k)?k:t}for(var er=0,en=a.selections;er<en.length;er++){var ei=en[er],ea=void 0;if(d&&w.add(k),ei.kind===c.h.FIELD){var el=(0,p.u2)(ei),ec=ei.selectionSet;if(void 0===(ea=k[el]||t[el]))continue;if(ec&&null!==ea){var J=maskSelectionSet(t[el],ec,l,d,!1!==globalThis.__DEV__?"".concat(_||"",".").concat(el):void 0);w.has(J)&&(ea=J)}!1!==globalThis.__DEV__||(k[el]=ea),!1!==globalThis.__DEV__&&(!d||"__typename"===el||(null===(S=Object.getOwnPropertyDescriptor(k,el))||void 0===S?void 0:S.value)?(delete k[el],k[el]=ea):Object.defineProperty(k,el,function(t,a,l,c,d){var getValue=function(){return h.Os.getValue()||(!1!==globalThis.__DEV__&&g.kG.warn(48,c?"".concat(d," '").concat(c,"'"):"anonymous ".concat(d),"".concat(l,".").concat(t).replace(/^\./,"")),getValue=function(){return a}),a};return{get:function(){return getValue()},set:function(t){getValue=function(){return t}},enumerable:!0,configurable:!0}}(el,ea,_||"",l.operationName,l.operationType)))}if(ei.kind===c.h.INLINE_FRAGMENT&&(!ei.typeCondition||l.cache.fragmentMatches(ei,t.__typename))&&(ea=maskSelectionSet(t,ei.selectionSet,l,d,_)),ei.kind===c.h.FRAGMENT_SPREAD){var eu=ei.name.value,ed=l.fragmentMap[eu]||(l.fragmentMap[eu]=l.cache.lookupFragment(eu));(0,g.kG)(ed,47,eu);var ep=(0,f.GT)(ei);"mask"!==ep&&(ea=maskSelectionSet(t,ed.selectionSet,l,"migrate"===ep,_))}w.has(ea)&&w.add(k)}return"__typename"in t&&!("__typename"in k)&&(k.__typename=t.__typename),Object.keys(k).length!==Object.keys(t).length&&w.add(k),w.has(k)?k:t}(t,a,l,!1);return Object.isFrozen(t)&&(0,d.J)(_),_})}},54522:function(t,a,l){"use strict";l.d(a,{r:function(){return maskFragment}});var c=l(97359),d=l(87493),p=l(69316),f=l(30020),h=l(30142),g=l(23361),_=l(36765);function maskFragment(t,a,l,S){if(!l.fragmentMatches)return!1!==globalThis.__DEV__&&(0,d.Kk)(),t;var w=a.definitions.filter(function(t){return t.kind===c.h.FRAGMENT_DEFINITION});void 0===S&&((0,p.kG)(1===w.length,49,w.length),S=w[0].name.value);var k=w.find(function(t){return t.name.value===S});return((0,p.kG)(!!k,50,S),null==t||(0,f.Z)(t,{}))?t:(0,h.K)(t,k.selectionSet,{operationType:"fragment",operationName:k.name.value,fragmentMap:(0,g.F)((0,_.kU)(a)),cache:l,mutableTargets:new d.Td,knownChanged:new d.wd})}},87493:function(t,a,l){"use strict";l.d(a,{Kk:function(){return warnOnImproperCacheImplementation},Os:function(){return g},Td:function(){return f},wd:function(){return h}});var c=l(56275),d=l(69316),p=l(30320),f=p.mr?WeakMap:Map,h=p.sy?WeakSet:Set,g=new c.g7,_=!1;function warnOnImproperCacheImplementation(){_||(_=!0,!1!==globalThis.__DEV__&&d.kG.warn(52))}},85317:function(t,a,l){"use strict";l.d(a,{K:function(){return getApolloContext},Z:function(){return g}});var c,d=l(73914),p=l(30320),f=l(69316),h=p.aS?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function getApolloContext(){(0,f.kG)("createContext"in(c||(c=l.t(d,2))),54);var t=d.createContext[h];return t||(Object.defineProperty(d.createContext,h,{value:t=d.createContext({}
67),enumerable:!1,writable:!1,configurable:!0}),t.displayName="ApolloContext"),t}var g=getApolloContext},53768:function(t,a,l){"use strict";l.d(a,{e:function(){return ApolloProvider}});var c=l(97582),d=l(69316),p=l(73914),f=l(85317),ApolloProvider=function(t){var a=t.client,l=t.children,h=(0,f.K)(),g=p.useContext(h),_=p.useMemo(function(){return(0,c.pi)((0,c.pi)({},g),{client:a||g.client})},[g,a]);return(0,d.kG)(_.client,55),p.createElement(h.Provider,{value:_},l)}},38991:function(t,a,l){"use strict";l.d(a,{L:function(){return AutoCleanedStrongCache},s:function(){return AutoCleanedWeakCache}});var c=l(99869),d=l(2379),p=new WeakSet;function schedule(t){!(t.size<=(t.max||-1))&&(p.has(t)||(p.add(t),setTimeout(function(){t.clean(),p.delete(t)},100)))}var AutoCleanedWeakCache=function(t,a){var l=new c.k(t,a);return l.set=function(t,a){var l=c.k.prototype.set.call(this,t,a);return schedule(this),l},l},AutoCleanedStrongCache=function(t,a){var l=new d.e(t,a);return l.set=function(t,a){var l=d.e.prototype.set.call(this,t,a);return schedule(this),l},l}},88244:function(t,a,l){"use strict";l.d(a,{Kb:function(){return g},q4:function(){return h},su:function(){return f},zP:function(){return registerGlobalCache}});var c=l(97582),d=l(66331),p={};function registerGlobalCache(t,a){p[t]=a}var f=!1!==globalThis.__DEV__?function(){var t,a,l,f,h;if(!(!1!==globalThis.__DEV__))throw Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map(function(t){var a=t[0],l=t[1];return[a,d.Q[a]||l]})),sizes:(0,c.pi)({print:null===(t=p.print)||void 0===t?void 0:t.call(p),parser:null===(a=p.parser)||void 0===a?void 0:a.call(p),canonicalStringify:null===(l=p.canonicalStringify)||void 0===l?void 0:l.call(p),links:function linkInfo(t){var a;return t?(0,c.ev)((0,c.ev)([null===(a=null==t?void 0:t.getMemoryInternals)||void 0===a?void 0:a.call(t)],linkInfo(null==t?void 0:t.left),!0),linkInfo(null==t?void 0:t.right),!0).filter(isDefined):[]}(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:transformInfo(this.queryManager.documentTransform)}},null===(h=(f=this.cache).getMemoryInternals)||void 0===h?void 0:h.call(f))}}:void 0,h=!1!==globalThis.__DEV__?function(){var t=this.config.fragments;return(0,c.pi)((0,c.pi)({},_getApolloCacheMemoryInternals.apply(this)),{addTypenameDocumentTransform:transformInfo(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:getWrapperInformation(this.storeReader.executeSelectionSet),executeSubSelectedArray:getWrapperInformation(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:getWrapperInformation(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:getWrapperInformation(null==t?void 0:t.findFragmentSpreads),lookup:getWrapperInformation(null==t?void 0:t.lookup),transform:getWrapperInformation(null==t?void 0:t.transform)}})}:void 0,g=!1!==globalThis.__DEV__?_getApolloCacheMemoryInternals:void 0;function _getApolloCacheMemoryInternals(){return{cache:{fragmentQueryDocuments:getWrapperInformation(this.getFragmentDoc)}}}function getWrapperInformation(t){return t&&"dirtyKey"in t?t.size:void 0}function isDefined(t){return null!=t}function transformInfo(t){return(function recurseTransformInfo(t){return t?(0,c.ev)((0,c.ev)([getWrapperInformation(null==t?void 0:t.performWork)],recurseTransformInfo(null==t?void 0:t.left),!0),recurseTransformInfo(null==t?void 0:t.right),!0).filter(isDefined):[]})(t).map(function(t){return{cache:t}})}},66331:function(t,a,l){"use strict";l.d(a,{Q:function(){return f}});var c=l(97582),d=l(69316),p=Symbol.for("apollo.cacheSize"),f=(0,c.pi)({},d.CO[p])},21436:function(t,a,l){"use strict";l.d(a,{O:function(){return isNonEmptyArray},k:function(){return c}});var c=Array.isArray;function isNonEmptyArray(t){return Array.isArray(t)&&t.length>0}},30320:function(t,a,l){"use strict";l.d(a,{DN:function(){return g},JC:function(){return w},Nq:function(){return _},aS:function(){return h}
67,mr:function(){return p},sy:function(){return f}});var c=l(69316),d="ReactNative"==(0,c.wY)(function(){return navigator.product}),p="function"==typeof WeakMap&&!(d&&!global.HermesInternal),f="function"==typeof WeakSet,h="function"==typeof Symbol&&"function"==typeof Symbol.for,g=h&&Symbol.asyncIterator,_="function"==typeof(0,c.wY)(function(){return window.document.createElement}),S=(0,c.wY)(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,w=(_||d)&&!S},5466:function(t,a,l){"use strict";l.d(a,{B:function(){return h}});var c,d=l(38991),p=l(66331),f=l(88244),h=Object.assign(function(t){return JSON.stringify(t,stableObjectReplacer)},{reset:function(){c=new d.L(p.Q.canonicalStringify||1e3)}});function stableObjectReplacer(t,a){if(a&&"object"==typeof a){var l=Object.getPrototypeOf(a);if(l===Object.prototype||null===l){var d=Object.keys(a);if(d.every(everyKeyInOrder))return a;var p=JSON.stringify(d),f=c.get(p);if(!f){d.sort();var h=JSON.stringify(d);f=c.get(h)||d,c.set(p,f),c.set(h,f)}var g=Object.create(l);return f.forEach(function(t){g[t]=a[t]}),g}}return a}function everyKeyInOrder(t,a,l){return 0===a||l[a-1]<=t}!1!==globalThis.__DEV__&&(0,f.zP)("canonicalStringify",function(){return c.size}),h.reset()},79487:function(t,a,l){"use strict";l.d(a,{X:function(){return cloneDeep}});var c=Object.prototype.toString;function cloneDeep(t){return function cloneDeepHelper(t,a){switch(c.call(t)){case"[object Array]":if((a=a||new Map).has(t))return a.get(t);var l=t.slice(0);return a.set(t,l),l.forEach(function(t,c){l[c]=cloneDeepHelper(t,a)}),l;case"[object Object]":if((a=a||new Map).has(t))return a.get(t);var d=Object.create(Object.getPrototypeOf(t));return a.set(t,d),Object.keys(t).forEach(function(l){d[l]=cloneDeepHelper(t[l],a)}),d;default:return t}}(t)}},53712:function(t,a,l){"use strict";function compact(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];var l=Object.create(null);return t.forEach(function(t){t&&Object.keys(t).forEach(function(a){var c=t[a];void 0!==c&&(l[a]=c)})}),l}l.d(a,{o:function(){return compact}})},37280:function(t,a,l){"use strict";l.d(a,{GG:function(){return isExecutionPatchIncrementalResult},M0:function(){return isExecutionPatchResult},mT:function(){return mergeIncrementalData},yU:function(){return isApolloPayloadResult}});var c=l(13154),d=l(21436),p=l(182);function isExecutionPatchIncrementalResult(t){return"incremental"in t}function isExecutionPatchResult(t){return isExecutionPatchIncrementalResult(t)||"hasNext"in t&&"data"in t}function isApolloPayloadResult(t){return(0,c.s)(t)&&"payload"in t}function mergeIncrementalData(t,a){var l=t,c=new p.w0;return isExecutionPatchIncrementalResult(a)&&(0,d.O)(a.incremental)&&a.incremental.forEach(function(t){for(var a=t.data,d=t.path,p=d.length-1;p>=0;--p){var f=d[p],h=isNaN(+f)?{}:[];h[f]=a,a=h}l=c.merge(l,a)}),l}},60897:function(t,a,l){"use strict";l.d(a,{X:function(){return makeUniqueId}});var c=new Map;function makeUniqueId(t){var a=c.get(t)||1;return c.set(t,a+1),"".concat(t,":").concat(a,":").concat(Math.random().toString(36).slice(2))}},10542:function(t,a,l){"use strict";l.d(a,{J:function(){return maybeDeepFreeze}});var c=l(13154);function maybeDeepFreeze(t){if(!1!==globalThis.__DEV__){var a;(a=new Set([t])).forEach(function(t){(0,c.s)(t)&&function(t){if(!1!==globalThis.__DEV__&&!Object.isFrozen(t))try{Object.freeze(t)}catch(t){if(t instanceof TypeError)return null;throw t}return t}(t)===t&&Object.getOwnPropertyNames(t).forEach(function(l){(0,c.s)(t[l])&&a.add(t[l])})})}return t}},182:function(t,a,l){"use strict";l.d(a,{Ee:function(){return mergeDeep},bw:function(){return mergeDeepArray},w0:function(){return f}});var c=l(97582),d=l(13154),p=Object.prototype.hasOwnProperty;function mergeDeep(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return mergeDeepArray(t)}function mergeDeepArray(t){var a=t[0]||{},l=t.length;if(l>1)for(var c=new f,d=1;d<l;++d)a=c.merge(a,t[d]);return a}var defaultReconciler=function(t,a,l){return this.merge(t[l],a[l])},f=function(){function DeepMerger(t){void 0===t&&(t=defaultReconciler),this.reconciler=t,this.isObject=d.s,this.pastCopies=new Set}return DeepMerger.prototype.merge=function(t,a){for(var l=this,f=[],h=2;h<arguments.length;h++)f[h-2]=arguments[h];
67return(0,d.s)(a)&&(0,d.s)(t)?(Object.keys(a).forEach(function(d){if(p.call(t,d)){var h=t[d];if(a[d]!==h){var g=l.reconciler.apply(l,(0,c.ev)([t,a,d],f,!1));g!==h&&((t=l.shallowCopyForMerge(t))[d]=g)}}else(t=l.shallowCopyForMerge(t))[d]=a[d]}),t):a},DeepMerger.prototype.shallowCopyForMerge=function(t){return(0,d.s)(t)&&!this.pastCopies.has(t)&&(t=Array.isArray(t)?t.slice(0):(0,c.pi)({__proto__:Object.getPrototypeOf(t)},t),this.pastCopies.add(t)),t},DeepMerger}()},14012:function(t,a,l){"use strict";l.d(a,{J:function(){return mergeOptions}});var c=l(97582),d=l(53712);function mergeOptions(t,a){return(0,d.o)(t,a,a.variables&&{variables:(0,d.o)((0,c.pi)((0,c.pi)({},t&&t.variables),a.variables))})}},13154:function(t,a,l){"use strict";function isNonNullObject(t){return null!==t&&"object"==typeof t}l.d(a,{s:function(){return isNonNullObject}})},13887:function(t,a,l){"use strict";l.d(a,{v:function(){return stringifyForDisplay}});var c=l(60897);function stringifyForDisplay(t,a){void 0===a&&(a=0);var l=(0,c.X)("stringifyForDisplay");return JSON.stringify(t,function(t,a){return void 0===a?l:a},a).split(JSON.stringify(l)).join("<undefined>")}},4229:function(t,a,l){"use strict";var c=l(56970);a.Z=(0,c.w)(function(){return globalThis})||(0,c.w)(function(){return window})||(0,c.w)(function(){return self})||(0,c.w)(function(){return global})||(0,c.w)(function(){return c.w.constructor("return this")()})},69316:function(t,a,l){"use strict";l.d(a,{CO:function(){return p.Z},_K:function(){return c._K},kG:function(){return c.kG},wY:function(){return d.w}});var c=l(51279),d=l(56970),p=l(4229)},51279:function(t,a,l){"use strict";l.d(a,{_K:function(){return newInvariantError},kG:function(){return h}});var c=l(66128),d=l(49379),p=l(4229),f=l(13887);function wrap(t){return function(a){for(var l=[],c=1;c<arguments.length;c++)l[c-1]=arguments[c];if("number"==typeof a){var d=a;(a=getHandledErrorMsg(d))||(a=getFallbackErrorMsg(d,l),l=[])}t.apply(void 0,[a].concat(l))}}var h=Object.assign(function(t,a){for(var l=[],d=2;d<arguments.length;d++)l[d-2]=arguments[d];t||(0,c.kG)(t,getHandledErrorMsg(a,l)||getFallbackErrorMsg(a,l))},{debug:wrap(c.kG.debug),log:wrap(c.kG.log),warn:wrap(c.kG.warn),error:wrap(c.kG.error)});function newInvariantError(t){for(var a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];return new c.ej(getHandledErrorMsg(t,a)||getFallbackErrorMsg(t,a))}var g=Symbol.for("ApolloErrorMessageHandler_"+d.i);function stringify(t){if("string"==typeof t)return t;try{return(0,f.v)(t,2).slice(0,1e3)}catch(t){return"<non-serializable>"}}function getHandledErrorMsg(t,a){if(void 0===a&&(a=[]),t)return p.Z[g]&&p.Z[g](t,a.map(stringify))}function getFallbackErrorMsg(t,a){if(void 0===a&&(a=[]),t)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:d.i,message:t,args:a.map(stringify)})))}},56970:function(t,a,l){"use strict";function maybe(t){try{return t()}catch(t){}}l.d(a,{w:function(){return maybe}})},18056:function(t,a,l){"use strict";l.d(a,{A:function(){return S}});var c=l(75028),d=l(30320),p=l(36765),f=l(69316),h=l(99869),g=l(56275),_=l(66331);function identity(t){return t}var S=function(){function DocumentTransform(t,a){void 0===a&&(a=Object.create(null)),this.resultCache=d.sy?new WeakSet:new Set,this.transform=t,a.getCacheKey&&(this.getCacheKey=a.getCacheKey),this.cached=!1!==a.cache,this.resetCache()}return DocumentTransform.prototype.getCacheKey=function(t){return[t]},DocumentTransform.identity=function(){return new DocumentTransform(identity,{cache:!1})},DocumentTransform.split=function(t,a,l){return void 0===l&&(l=DocumentTransform.identity()),Object.assign(new DocumentTransform(function(c){return(t(c)?a:l).transformDocument(c)},{cache:!1}),{left:a,right:l})},DocumentTransform.prototype.resetCache=function(){var t=this;if(this.cached){var a=new c.B(d.mr);this.performWork=(0,g.re)(DocumentTransform.prototype.performWork.bind(this),{makeCacheKey:function(l){var c=t.getCacheKey(l);if(c)return(0,f.kG)(Array.isArray(c),77),a.lookupArray(c)},max:_.Q["documentTransform.cache"],cache:h.k})}},DocumentTransform.prototype.performWork=function(t){return(0,p.A$)(t),this.transform(t)},DocumentTransform.prototype.transformDocument=function(t){if(this.resultCache.has(t))return t;var a=this.performWork(t);return this.resultCache.add(a),a},DocumentTransform.prototype.concat=function(t){var a=this;return Object.assign(new DocumentTransform(function(l){return t.transformDocument(a.transformDocument(l))},{cache:!1}),{left:this,right:t})},DocumentTransform}()},19065:function(t,a,l){"use strict";l.d(a,{FS:function(){return hasDirectives},GT:function(){return getFragmentMaskMode},LZ:function(){return shouldInclude},mj:function(){return hasClientExports}});var c=l(69316),d=l(77304),p=l(97359);function shouldInclude(t,a){var l,d=t.directives;
67return!d||!d.length||(l=[],d&&d.length&&d.forEach(function(t){var a;if(!("skip"!==(a=t.name.value)&&"include"!==a)){var d=t.arguments,p=t.name.value;(0,c.kG)(d&&1===d.length,79,p);var f=d[0];(0,c.kG)(f.name&&"if"===f.name.value,80,p);var h=f.value;(0,c.kG)(h&&("Variable"===h.kind||"BooleanValue"===h.kind),81,p),l.push({directive:t,ifArgument:f})}}),l).every(function(t){var l=t.directive,d=t.ifArgument,p=!1;return"Variable"===d.value.kind?(p=a&&a[d.value.name.value],(0,c.kG)(void 0!==p,78,l.name.value)):p=d.value.value,"skip"===l.name.value?!p:p})}function hasDirectives(t,a,l){var c=new Set(t),p=c.size;return(0,d.Vn)(a,{Directive:function(t){if(c.delete(t.name.value)&&(!l||!c.size))return d.$_}}),l?!c.size:c.size<p}function hasClientExports(t){return t&&hasDirectives(["client","export"],t,!0)}function getFragmentMaskMode(t){var a,l,d=null===(a=t.directives)||void 0===a?void 0:a.find(function(t){return"unmask"===t.name.value});if(!d)return"mask";var f=null===(l=d.arguments)||void 0===l?void 0:l.find(function(t){return"mode"===t.name.value});return(!1!==globalThis.__DEV__&&f&&(f.value.kind===p.h.VARIABLE?!1!==globalThis.__DEV__&&c.kG.warn(82):f.value.kind!==p.h.STRING?!1!==globalThis.__DEV__&&c.kG.warn(83):"migrate"!==f.value.value&&!1!==globalThis.__DEV__&&c.kG.warn(84,f.value.value)),f&&"value"in f.value&&"migrate"===f.value.value)?"migrate":"unmask"}},23361:function(t,a,l){"use strict";l.d(a,{F:function(){return createFragmentMap},YU:function(){return isFullyUnmaskedOperation},Yk:function(){return getFragmentQueryDocument},hi:function(){return getFragmentFromSelection}});var c=l(97582),d=l(69316),p=l(77304);function getFragmentQueryDocument(t,a){var l=a,p=[];return t.definitions.forEach(function(t){if("OperationDefinition"===t.kind)throw(0,d._K)(85,t.operation,t.name?" named '".concat(t.name.value,"'"):"");"FragmentDefinition"===t.kind&&p.push(t)}),void 0===l&&((0,d.kG)(1===p.length,86,p.length),l=p[0].name.value),(0,c.pi)((0,c.pi)({},t),{definitions:(0,c.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:l}}]}}],t.definitions,!0)})}function createFragmentMap(t){void 0===t&&(t=[]);var a={};return t.forEach(function(t){a[t.name.value]=t}),a}function getFragmentFromSelection(t,a){switch(t.kind){case"InlineFragment":return t;case"FragmentSpread":var l=t.name.value;if("function"==typeof a)return a(l);var c=a&&a[l];return(0,d.kG)(c,87,l),c||null;default:return null}}function isFullyUnmaskedOperation(t){var a=!0;return(0,p.Vn)(t,{FragmentSpread:function(t){if(!(a=!!t.directives&&t.directives.some(function(t){return"unmask"===t.name.value})))return p.$_}}),a}},36765:function(t,a,l){"use strict";l.d(a,{$H:function(){return getOperationDefinition},A$:function(){return checkDocument},O4:function(){return getDefaultValues},iW:function(){return getQueryDefinition},kU:function(){return getFragmentDefinitions},p$:function(){return getMainDefinition},pD:function(){return getFragmentDefinition},rY:function(){return getOperationName}});var c=l(69316),d=l(51761);function checkDocument(t){(0,c.kG)(t&&"Document"===t.kind,88);var a=t.definitions.filter(function(t){return"FragmentDefinition"!==t.kind}).map(function(t){if("OperationDefinition"!==t.kind)throw(0,c._K)(89,t.kind);return t});return(0,c.kG)(a.length<=1,90,a.length),t}function getOperationDefinition(t){return checkDocument(t),t.definitions.filter(function(t){return"OperationDefinition"===t.kind})[0]}function getOperationName(t){return t.definitions.filter(function(t){return"OperationDefinition"===t.kind&&!!t.name}).map(function(t){return t.name.value})[0]||null}function getFragmentDefinitions(t){return t.definitions.filter(function(t){return"FragmentDefinition"===t.kind})}function getQueryDefinition(t){var a=getOperationDefinition(t);return(0,c.kG)(a&&"query"===a.operation,91),a}function getFragmentDefinition(t){(0,c.kG)("Document"===t.kind,92),(0,c.kG)(t.definitions.length<=1,93);var a=t.definitions[0];return(0,c.kG)("FragmentDefinition"===a.kind,94),a}function getMainDefinition(t){checkDocument(t);for(var a,l=0,d=t.definitions;l<d.length;l++){var p=d[l];if("OperationDefinition"===p.kind){var f=p.operation;if("query"===f||"mutation"===f||"subscription"===f)return p}"FragmentDefinition"!==p.kind||a||(a=p)}if(a)return a;throw(0,c._K)(95)}function getDefaultValues(t){var a=Object.create(null),l=t&&t.variableDefinitions;return l&&l.length&&l.forEach(function(t){t.defaultValue&&(0,d.vb)(a,t.variable.name,t.defaultValue)}),a}}
67,50713:function(t,a,l){"use strict";l.d(a,{S:function(){return k}});var c,d=l(87392);let p=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function escapedReplacer(t){return f[t.charCodeAt(0)]}let f=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var h=l(77304);let g={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>join(t.definitions,"\n\n")},OperationDefinition:{leave(t){let a=wrap("(",join(t.variableDefinitions,", "),")"),l=join([t.operation,join([t.name,a]),join(t.directives," ")]," ");return("query"===l?"":l+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:a,defaultValue:l,directives:c})=>t+": "+a+wrap(" = ",l)+wrap(" ",join(c," "))},SelectionSet:{leave:({selections:t})=>block(t)},Field:{leave({alias:t,name:a,arguments:l,directives:c,selectionSet:d}){let p=wrap("",t,": ")+a,f=p+wrap("(",join(l,", "),")");return f.length>80&&(f=p+wrap("(\n",indent(join(l,"\n")),"\n)")),join([f,join(c," "),d]," ")}},Argument:{leave:({name:t,value:a})=>t+": "+a},FragmentSpread:{leave:({name:t,directives:a})=>"..."+t+wrap(" ",join(a," "))},InlineFragment:{leave:({typeCondition:t,directives:a,selectionSet:l})=>join(["...",wrap("on ",t),join(a," "),l]," ")},FragmentDefinition:{leave:({name:t,typeCondition:a,variableDefinitions:l,directives:c,selectionSet:d})=>`fragment ${t}${wrap("(",join(l,", "),")")} on ${a} ${wrap("",join(c," ")," ")}`+d},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:a})=>a?(0,d.LZ)(t):`"${t.replace(p,escapedReplacer)}"`},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+join(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+join(t,", ")+"}"},ObjectField:{leave:({name:t,value:a})=>t+": "+a},Directive:{leave:({name:t,arguments:a})=>"@"+t+wrap("(",join(a,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:a,operationTypes:l})=>wrap("",t,"\n")+join(["schema",join(a," "),block(l)]," ")},OperationTypeDefinition:{leave:({operation:t,type:a})=>t+": "+a},ScalarTypeDefinition:{leave:({description:t,name:a,directives:l})=>wrap("",t,"\n")+join(["scalar",a,join(l," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:a,interfaces:l,directives:c,fields:d})=>wrap("",t,"\n")+join(["type",a,wrap("implements ",join(l," & ")),join(c," "),block(d)]," ")},FieldDefinition:{leave:({description:t,name:a,arguments:l,type:c,directives:d})=>wrap("",t,"\n")+a+(hasMultilineItems(l)?wrap("(\n",indent(join(l,"\n")),"\n)"):wrap("(",join(l,", "),")"))+": "+c+wrap(" ",join(d," "))},InputValueDefinition:{leave:({description:t,name:a,type:l,defaultValue:c,directives:d})=>wrap("",t,"\n")+join([a+": "+l,wrap("= ",c),join(d," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:a,interfaces:l,directives:c,fields:d})=>wrap("",t,"\n")+join(["interface",a,wrap("implements ",join(l," & ")),join(c," "),block(d)]," ")},UnionTypeDefinition:{leave:({description:t,name:a,directives:l,types:c})=>wrap("",t,"\n")+join(["union",a,join(l," "),wrap("= ",join(c," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:a,directives:l,values:c})=>wrap("",t,"\n")+join(["enum",a,join(l," "),block(c)]," ")},EnumValueDefinition:{leave:({description:t,name:a,directives:l})=>wrap("",t,"\n")+join([a,join(l," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:a,directives:l,fields:c})=>wrap("",t,"\n")+join(["input",a,join(l," "),block(c)]," ")},DirectiveDefinition:{leave:({description:t,name:a,arguments:l,repeatable:c,locations:d})=>wrap("",t,"\n")+"directive @"+a+(hasMultilineItems(l)?wrap("(\n",indent(join(l,"\n")),"\n)"):wrap("(",join(l,", "),")"))+(c?" repeatable":"")+" on "+join(d," | ")},SchemaExtension:{leave:({directives:t,operationTypes:a})=>join(["extend schema",join(t," "),block(a)]," ")},ScalarTypeExtension:{leave:({name:t,directives:a})=>join(["extend scalar",t,join(a," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:a,directives:l,fields:c})=>join(["extend type",t,wrap("implements ",join(a," & ")),join(l," "),block(c)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:a,directives:l,fields:c})=>join(["extend interface",t,wrap("implements ",join(a," & ")),join(l," "),block(c)]," ")},UnionTypeExtension:{leave:({name:t,directives:a,types:l})=>join(["extend union",t,join(a," "),wrap("= ",join(l," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:a,values:l})=>join(["extend enum",t,join(a," "),block(l)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:a,fields:l})=>join(["extend input",t,join(a," "),block(l)]," ")}};function join(t,a=""){var l;return null!==(l=null==t?void 0:t.filter(t=>t).join(a))&&void 0!==l?l:""}
67function block(t){return wrap("{\n",indent(join(t,"\n")),"\n}")}function wrap(t,a,l=""){return null!=a&&""!==a?t+a+l:""}function indent(t){return wrap("  ",t.replace(/\n/g,"\n  "))}function hasMultilineItems(t){var a;return null!==(a=null==t?void 0:t.some(t=>t.includes("\n")))&&void 0!==a&&a}var _=l(38991),S=l(66331),w=l(88244),k=Object.assign(function(t){var a=c.get(t);return a||(a=(0,h.Vn)(t,g),c.set(t,a)),a},{reset:function(){c=new _.s(S.Q.print||2e3)}});k.reset(),!1!==globalThis.__DEV__&&(0,w.zP)("print",function(){return c?c.size:0})},51761:function(t,a,l){"use strict";l.d(a,{Ao:function(){return isInlineFragment},JW:function(){return isDocumentNode},My:function(){return isField},NC:function(){return argumentsObjectFromField},PT:function(){return _},Yk:function(){return isReference},kQ:function(){return makeReference},qw:function(){return function getTypenameFromResult(t,a,l){for(var c,d=0,f=a.selections;d<f.length;d++){var h=f[d];if(isField(h)){if("__typename"===h.name.value)return t[resultKeyNameFromField(h)]}else c?c.push(h):c=[h]}if("string"==typeof t.__typename)return t.__typename;if(c)for(var g=0,_=c;g<_.length;g++){var h=_[g],S=getTypenameFromResult(t,(0,p.hi)(h,l).selectionSet,l);if("string"==typeof S)return S}}},u2:function(){return resultKeyNameFromField},vb:function(){return valueToObjectRepresentation},vf:function(){return storeKeyNameFromField}});var c=l(69316),d=l(13154),p=l(23361),f=l(5466);function makeReference(t){return{__ref:String(t)}}function isReference(t){return!!(t&&"object"==typeof t&&"string"==typeof t.__ref)}function isDocumentNode(t){return(0,d.s)(t)&&"Document"===t.kind&&Array.isArray(t.definitions)}function valueToObjectRepresentation(t,a,l,d){if("IntValue"===l.kind||"FloatValue"===l.kind)t[a.value]=Number(l.value);else if("BooleanValue"===l.kind||"StringValue"===l.kind)t[a.value]=l.value;else if("ObjectValue"===l.kind){var p={};l.fields.map(function(t){return valueToObjectRepresentation(p,t.name,t.value,d)}),t[a.value]=p}
67else if("Variable"===l.kind){var f=(d||{})[l.name.value];t[a.value]=f}else if("ListValue"===l.kind)t[a.value]=l.values.map(function(t){var l={};return valueToObjectRepresentation(l,a,t,d),l[a.value]});else if("EnumValue"===l.kind)t[a.value]=l.value;else if("NullValue"===l.kind)t[a.value]=null;else throw(0,c._K)(96,a.value,l.kind)}function storeKeyNameFromField(t,a){var l=null;t.directives&&(l={},t.directives.forEach(function(t){l[t.name.value]={},t.arguments&&t.arguments.forEach(function(c){var d=c.name,p=c.value;return valueToObjectRepresentation(l[t.name.value],d,p,a)})}));var c=null;return t.arguments&&t.arguments.length&&(c={},t.arguments.forEach(function(t){var l=t.name,d=t.value;return valueToObjectRepresentation(c,l,d,a)})),_(t.name.value,c,l)}var h=["connection","include","skip","client","rest","export","nonreactive"],g=f.B,_=Object.assign(function(t,a,l){if(a&&l&&l.connection&&l.connection.key){if(!l.connection.filter||!(l.connection.filter.length>0))return l.connection.key;var c=l.connection.filter?l.connection.filter:[];c.sort();var d={};return c.forEach(function(t){d[t]=a[t]}),"".concat(l.connection.key,"(").concat(g(d),")")}var p=t;if(a){var f=g(a);p+="(".concat(f,")")}return l&&Object.keys(l).forEach(function(t){-1===h.indexOf(t)&&(l[t]&&Object.keys(l[t]).length?p+="@".concat(t,"(").concat(g(l[t]),")"):p+="@".concat(t))}),p},{setStringify:function(t){var a=g;return g=t,a}});function argumentsObjectFromField(t,a){if(t.arguments&&t.arguments.length){var l={};return t.arguments.forEach(function(t){return valueToObjectRepresentation(l,t.name,t.value,a)}),l}return null}function resultKeyNameFromField(t){return t.alias?t.alias.value:t.name.value}function isField(t){return"Field"===t.kind}function isInlineFragment(t){return"InlineFragment"===t.kind}},76487:function(t,a,l){"use strict";l.d(a,{Gw:function(){return k},UU:function(){return addNonReactiveToNamedFragments},aL:function(){return buildQueryFromSelectionSet},bi:function(){return removeDirectivesFromDocument},ob:function(){return removeClientSetsFromDocument}});var c=l(97582),d=l(69316),p=l(97359),f=l(77304),h=l(36765),g=l(51761),_=l(23361),S=l(21436),w={kind:p.h.FIELD,name:{kind:p.h.NAME,value:"__typename"}};function makeInUseGetterFunction(t){var a=new Map;return function(l){void 0===l&&(l=t);var c=a.get(l);return c||a.set(l,c={variables:new Set,fragmentSpreads:new Set}),c}}function removeDirectivesFromDocument(t,a){(0,h.A$)(a);for(var l,g,w,k=makeInUseGetterFunction(""),E=makeInUseGetterFunction(""),getInUse=function(t){for(var a=0,l=void 0;a<t.length&&(l=t[a]);++a)if(!(0,S.k)(l)){if(l.kind===p.h.OPERATION_DEFINITION)return k(l.name&&l.name.value);if(l.kind===p.h.FRAGMENT_DEFINITION)return E(l.name.value)}return!1!==globalThis.__DEV__&&d.kG.error(97),null},x=0,B=a.definitions.length-1;B>=0;--B)a.definitions[B].kind===p.h.OPERATION_DEFINITION&&++x;var H=(l=new Map,g=new Map,t.forEach(function(t){t&&(t.name?l.set(t.name,t):t.test&&g.set(t.test,t))}),function(t){var a=l.get(t.name.value);return!a&&g.size&&g.forEach(function(l,c){c(t)&&(a=l)}),a}),shouldRemoveField=function(t){return(0,S.O)(t)&&t.map(H).some(function(t){return t&&t.remove})},U=new Map,J=!1,er={enter:function(t){if(shouldRemoveField(t.directives))return J=!0,null}},en=(0,f.Vn)(a,{Field:er,InlineFragment:er,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(t,a,l,c,d){var p=getInUse(d);p&&p.variables.add(t.name.value)}},FragmentSpread:{enter:function(t,a,l,c,d){if(shouldRemoveField(t.directives))return J=!0,null;var p=getInUse(d);p&&p.fragmentSpreads.add(t.name.value)}},FragmentDefinition:{enter:function(t,a,l,c){U.set(JSON.stringify(c),t)},leave:function(t,a,l,c){return t===U.get(JSON.stringify(c))?t:x>0&&t.selectionSet.selections.every(function(t){return t.kind===p.h.FIELD&&"__typename"===t.name.value})?(E(t.name.value).removed=!0,J=!0,null):void 0}},Directive:{leave:function(t){if(H(t))return J=!0,null}}});if(!J)return a;var populateTransitiveVars=function(t){return t.transitiveVars||(t.transitiveVars=new Set(t.variables),t.removed||t.fragmentSpreads.forEach(function(a){populateTransitiveVars(E(a)).transitiveVars.forEac
67h(function(a){t.transitiveVars.add(a)})})),t},ei=new Set;en.definitions.forEach(function(t){t.kind===p.h.OPERATION_DEFINITION?populateTransitiveVars(k(t.name&&t.name.value)).fragmentSpreads.forEach(function(t){ei.add(t)}):t.kind!==p.h.FRAGMENT_DEFINITION||0!==x||E(t.name.value).removed||ei.add(t.name.value)}),ei.forEach(function(t){populateTransitiveVars(E(t)).fragmentSpreads.forEach(function(t){ei.add(t)})});var ea={enter:function(t){var a;if(a=t.name.value,!ei.has(a)||E(a).removed)return null}};return w=(0,f.Vn)(en,{FragmentSpread:ea,FragmentDefinition:ea,OperationDefinition:{leave:function(t){if(t.variableDefinitions){var a=populateTransitiveVars(k(t.name&&t.name.value)).transitiveVars;if(a.size<t.variableDefinitions.length)return(0,c.pi)((0,c.pi)({},t),{variableDefinitions:t.variableDefinitions.filter(function(t){return a.has(t.variable.name.value)})})}}}}),!function isEmpty(t,a){return!t||t.selectionSet.selections.every(function(t){return t.kind===p.h.FRAGMENT_SPREAD&&isEmpty(a[t.name.value],a)})}((0,h.$H)(w)||(0,h.pD)(w),(0,_.F)((0,h.kU)(w)))?w:null}var k=Object.assign(function(t){return(0,f.Vn)(t,{SelectionSet:{enter:function(t,a,l){if(!l||l.kind!==p.h.OPERATION_DEFINITION){var d=t.selections;if(!(!d||d.some(function(t){return(0,g.My)(t)&&("__typename"===t.name.value||0===t.name.value.lastIndexOf("__",0))}))&&!((0,g.My)(l)&&l.directives&&l.directives.some(function(t){return"export"===t.name.value})))return(0,c.pi)((0,c.pi)({},t),{selections:(0,c.ev)((0,c.ev)([],d,!0),[w],!1)})}}}})},{added:function(t){return t===w}});function buildQueryFromSelectionSet(t){return"query"===(0,h.p$)(t).operation?t:(0,f.Vn)(t,{OperationDefinition:{enter:function(t){return(0,c.pi)((0,c.pi)({},t),{operation:"query"})}}})}function removeClientSetsFromDocument(t){return(0,h.A$)(t),removeDirectivesFromDocument([{test:function(t){return"client"===t.name.value},remove:!0}],t)}function addNonReactiveToNamedFragments(t){return(0,h.A$)(t),(0,f.Vn)(t,{FragmentSpread:function(t){var a;if(null===(a=t.directives)||void 0===a||!a.some(function(t){return"unmask"===t.name.value}))return(0,c.pi)((0,c.pi)({},t),{directives:(0,c.ev)((0,c.ev)([],t.directives||[],!0),[{kind:p.h.DIRECTIVE,name:{kind:p.h.NAME,value:"nonreactive"}}
67],!1)})}})}},18263:function(t,a,l){"use strict";function iterateObserversSafely(t,a,l){var c=[];t.forEach(function(t){return t[a]&&c.push(t)}),c.forEach(function(t){return t[a](l)})}l.d(a,{p:function(){return iterateObserversSafely}})},86403:function(t,a,l){"use strict";l.d(a,{D:function(){return fixObservableSubclass}});var c=l(48216),d=l(30320);function fixObservableSubclass(t){function set(a){Object.defineProperty(t,a,{value:c.y})}return d.aS&&Symbol.species&&set(Symbol.species),set("@@species"),t}},49379:function(t,a,l){"use strict";l.d(a,{i:function(){return c}});var c="3.12.11"},30907:function(t,a,l){"use strict";function _arrayLikeToArray(t,a){(null==a||a>t.length)&&(a=t.length);for(var l=0,c=Array(a);l<a;l++)c[l]=t[l];return c}l.d(a,{Z:function(){return _arrayLikeToArray}})},83878:function(t,a,l){"use strict";function _arrayWithHoles(t){if(Array.isArray(t))return t}l.d(a,{Z:function(){return _arrayWithHoles}})},97326:function(t,a,l){"use strict";function _assertThisInitialized(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}l.d(a,{Z:function(){return _assertThisInitialized}})},15671:function(t,a,l){"use strict";function _classCallCheck(t,a){if(!(t instanceof a))throw TypeError("Cannot call a class as a function")}l.d(a,{Z:function(){return _classCallCheck}})},43144:function(t,a,l){"use strict";l.d(a,{Z:function(){return _createClass}});var c=l(83997);function _defineProperties(t,a){for(var l=0;l<a.length;l++){var d=a[l];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(t,(0,c.Z)(d.key),d)}}function _createClass(t,a,l){return a&&_defineProperties(t.prototype,a),l&&_defineProperties(t,l),Object.defineProperty(t,"prototype",{writable:!1}),t}},29388:function(t,a,l){"use strict";l.d(a,{Z:function(){return _createSuper}});var c=l(61120),d=l(78814),p=l(82963);function _createSuper(t){var a=(0,d.Z)();return function(){var l,d=(0,c.Z)(t);if(a){var f=(0,c.Z)(this).constructor;l=Reflect.construct(d,arguments,f)}else l=d.apply(this,arguments);return(0,p.Z)(this,l)}}},4942:function(t,a,l){"use strict";l.d(a,{Z:function(){return _defineProperty}});var c=l(83997);function _defineProperty(t,a,l){return(a=(0,c.Z)(a))in t?Object.defineProperty(t,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[a]=l,t}},87462:function(t,a,l){"use strict";function _extends(){return(_extends=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var l=arguments[a];for(var c in l)({}).hasOwnProperty.call(l,c)&&(t[c]=l[c])}return t}).apply(null,arguments)}l.d(a,{Z:function(){return _extends}})},61120:function(t,a,l){"use strict";function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}l.d(a,{Z:function(){return _getPrototypeOf}})},60136:function(t,a,l){"use strict";l.d(a,{Z:function(){return _inherits}});var c=l(89611);function _inherits(t,a){if("function"!=typeof a&&null!==a)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(a&&a.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),a&&(0,c.Z)(t,a)}},78814:function(t,a,l){"use strict";function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct=function(){return!!t})()}l.d(a,{Z:function(){return _isNativeReflectConstruct}})},59199:function(t,a,l){"use strict";function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}l.d(a,{Z:function(){return _iterableToArray}})},25267:function(t,a,l){"use strict";function _nonIterableRest(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}l.d(a,{Z:function(){return _nonIterableRest}})},1413:function(t,a,l){"use strict";l.d(a,{Z:function(){return _objectSpread2}});var c=l(4942);function ownKeys(t,a){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);a&&(c=c.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),l.push.apply(l,c)}return l}
67function _objectSpread2(t){for(var a=1;a<arguments.length;a++){var l=null!=arguments[a]?arguments[a]:{};a%2?ownKeys(Object(l),!0).forEach(function(a){(0,c.Z)(t,a,l[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(l,a))})}return t}},91:function(t,a,l){"use strict";function _objectWithoutProperties(t,a){if(null==t)return{};var l,c,d=function(t,a){if(null==t)return{};var l={};for(var c in t)if(({}).hasOwnProperty.call(t,c)){if(-1!==a.indexOf(c))continue;l[c]=t[c]}return l}(t,a);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(t);for(c=0;c<p.length;c++)l=p[c],-1===a.indexOf(l)&&({}).propertyIsEnumerable.call(t,l)&&(d[l]=t[l])}return d}l.d(a,{Z:function(){return _objectWithoutProperties}})},82963:function(t,a,l){"use strict";l.d(a,{Z:function(){return _possibleConstructorReturn}});var c=l(71002),d=l(97326);function _possibleConstructorReturn(t,a){if(a&&("object"==(0,c.Z)(a)||"function"==typeof a))return a;if(void 0!==a)throw TypeError("Derived constructors may only return object or undefined");return(0,d.Z)(t)}},89611:function(t,a,l){"use strict";function _setPrototypeOf(t,a){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,a){return t.__proto__=a,t})(t,a)}l.d(a,{Z:function(){return _setPrototypeOf}})},97685:function(t,a,l){"use strict";l.d(a,{Z:function(){return _slicedToArray}});var c=l(83878),d=l(40181),p=l(25267);function _slicedToArray(t,a){return(0,c.Z)(t)||function(t,a){var l=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=l){var c,d,p,f,h=[],g=!0,_=!1;try{if(p=(l=l.call(t)).next,0===a){if(Object(l)!==l)return;g=!1}else for(;!(g=(c=p.call(l)).done)&&(h.push(c.value),h.length!==a);g=!0);}catch(t){_=!0,d=t}finally{try{if(!g&&null!=l.return&&(f=l.return(),Object(f)!==f))return}finally{if(_)throw d}}return h}}(t,a)||(0,d.Z)(t,a)||(0,p.Z)()}},84506:function(t,a,l){"use strict";l.d(a,{Z:function(){return _toArray}});var c=l(83878),d=l(59199),p=l(40181),f=l(25267);function _toArray(t){return(0,c.Z)(t)||(0,d.Z)(t)||(0,p.Z)(t)||(0,f.Z)()}},74902:function(t,a,l){"use strict";l.d(a,{Z:function(){return _toConsumableArray}});var c=l(30907),d=l(59199),p=l(40181);function _toConsumableArray(t){return function(t){if(Array.isArray(t))return(0,c.Z)(t)}(t)||(0,d.Z)(t)||(0,p.Z)(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},83997:function(t,a,l){"use strict";l.d(a,{Z:function(){return toPropertyKey}});var c=l(71002);function toPropertyKey(t){var a=function(t,a){if("object"!=(0,c.Z)(t)||!t)return t;var l=t[Symbol.toPrimitive];if(void 0!==l){var d=l.call(t,a||"default");if("object"!=(0,c.Z)(d))return d;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(t)}(t,"string");return"symbol"==(0,c.Z)(a)?a:a+""}},71002:function(t,a,l){"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}l.d(a,{Z:function(){return _typeof}})},40181:function(t,a,l){"use strict";l.d(a,{Z:function(){return _unsupportedIterableToArray}});var c=l(30907);function _unsupportedIterableToArray(t,a){if(t){if("string"==typeof t)return(0,c.Z)(t,a);var l=({}).toString.call(t).slice(8,-1);return"Object"===l&&t.constructor&&(l=t.constructor.name),"Map"===l||"Set"===l?Array.from(t):"Arguments"===l||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?(0,c.Z)(t,a):void 0}}},60811:function(t,a,l){"use strict";l.d(a,{G:function(){return getAsyncContextStrategy}});var c=l(13533),d=l(43927),p=l(33280),f=l(24925);let AsyncContextStack=class AsyncContextStack{constructor(t,a){let l,c;l=t||new d.s,c=a||new d.s,this._stack=[{scope:l}],this._isolationScope=c}withScope(t){let a;let l=this._pushScope();try{a=t(l)}catch(t){throw this._popScope(),t}return(0,f.J8)(a)?a.then(t=>(this._popScope(),t),t=>{throw this._popScope(),t}):(this._popScope(),a)}
67getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}};function getAsyncContextStack(){let t=(0,c.c)(),a=(0,c.q)(t);return a.stack=a.stack||new AsyncContextStack((0,p.Y)("defaultCurrentScope",()=>new d.s),(0,p.Y)("defaultIsolationScope",()=>new d.s))}function withScope(t){return getAsyncContextStack().withScope(t)}function withSetScope(t,a){let l=getAsyncContextStack();return l.withScope(()=>(l.getStackTop().scope=t,a(t)))}function withIsolationScope(t){return getAsyncContextStack().withScope(()=>t(getAsyncContextStack().getIsolationScope()))}function getAsyncContextStrategy(t){let a=(0,c.q)(t);return a.acs?a.acs:{withIsolationScope,withScope,withSetScope,withSetIsolationScope:(t,a)=>withIsolationScope(a),getCurrentScope:()=>getAsyncContextStack().getScope(),getIsolationScope:()=>getAsyncContextStack().getIsolationScope()}}},13533:function(t,a,l){"use strict";l.d(a,{c:function(){return getMainCarrier},q:function(){return getSentryCarrier}});var c=l(49889),d=l(33280);function getMainCarrier(){return getSentryCarrier(d.GLOBAL_OBJ),d.GLOBAL_OBJ}function getSentryCarrier(t){let a=t.__SENTRY__=t.__SENTRY__||{};return a.version=a.version||c.J,a[c.J]=a[c.J]||{}}},73243:function(t,a,l){"use strict";l.d(a,{J:function(){return c}});let c="production"},73076:function(t,a,l){"use strict";l.d(a,{$e:function(){return withScope},XX:function(){return getTraceContextFromScope},aF:function(){return getIsolationScope},lW:function(){return getGlobalScope},nZ:function(){return getCurrentScope},s3:function(){return getClient}});var c=l(60811),d=l(13533),p=l(43927),f=l(51150),h=l(33280);function getCurrentScope(){let t=(0,d.c)(),a=(0,c.G)(t);return a.getCurrentScope()}function getIsolationScope(){let t=(0,d.c)(),a=(0,c.G)(t);return a.getIsolationScope()}function getGlobalScope(){return(0,h.Y)("globalScope",()=>new p.s)}function withScope(...t){let a=(0,d.c)(),l=(0,c.G)(a);if(2===t.length){let[a,c]=t;return a?l.withSetScope(a,c):l.withScope(c)}return l.withScope(t[0])}function getClient(){return getCurrentScope().getClient()}function getTraceContextFromScope(t){let a=t.getPropagationContext(),{traceId:l,spanId:c,parentSpanId:d}=a,p=(0,f.Jr)({trace_id:l,span_id:c,parent_span_id:d});return p}},94223:function(t,a,l){"use strict";l.d(a,{X:function(){return c}});let c=!1},39424:function(t,a,l){"use strict";l.d(a,{Qy:function(){return addEventProcessor},Tb:function(){return captureException},_k:function(){return isEnabled},cg:function(){return captureSession},eN:function(){return captureEvent},v:function(){return setContext},yj:function(){return startSession},yl:function(){return flush}});var c=l(73243),d=l(73076),p=l(94223),f=l(10042),h=l(17986),g=l(33280),_=l(47515);function captureException(t,a){return(0,d.nZ)().captureException(t,(0,_.U0)(a))}function captureEvent(t,a){return(0,d.nZ)().captureEvent(t,a)}function setContext(t,a){(0,d.aF)().setContext(t,a)}async function flush(t){let a=(0,d.s3)();return a?a.flush(t):(p.X&&h.kg.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}function isEnabled(){let t=(0,d.s3)();return!!t&&!1!==t.getOptions().enabled&&!!t.getTransport()}function addEventProcessor(t){(0,d.aF)().addEventProcessor(t)}function startSession(t){let a=(0,d.s3)(),l=(0,d.aF)(),p=(0,d.nZ)(),{release:h,environment:_=c.J}=a&&a.getOptions()||{},{userAgent:S}=g.GLOBAL_OBJ.navigator||{},w=(0,f.Hv)({release:h,environment:_,user:p.getUser()||l.getUser(),...S&&{userAgent:S},...t}),k=l.getSession();return k&&"ok"===k.status&&(0,f.CT)(k,{status:"exited"}),endSession(),l.setSession(w),p.setSession(w),w}function endSession(){let t=(0,d.aF)(),a=(0,d.nZ)(),l=a.getSession()||t.getSession();l&&(0,f.RJ)(l),_sendSessionUpdate(),t.setSession(),a.setSession()}function _sendSessionUpdate(){let t=(0,d.aF)(),a=(0,d.nZ)(),l=(0,d.s3)(),c=a.getSession()||t.getSession();c&&l&&l.captureSession(c)}function captureSession(t=!1){if(t){endSession();return}_sendSessionUpdate()}},72751:function(t,a,l){"use strict";l.d(a,{y:function(){return getMetricSummaryJsonForSpan}});var c=l(51150);function getMetricSummaryJsonForSpan(t){let a=t._sentryMetrics;if(!a)return;let l={};for(let[,[t,d]]of a){let a=l[t]||(l[t]=[]);a.push((0,c.Jr)(d))}return l}},43927:function(t,a,l){"use strict";l.d(a,{s:function(){return w}});var c=l(10042),d=l(24925),p=l(17986),f=l(82305),h=l(51824),g=l(59943),_=l(3613),S=l(89366);let ScopeClass=class ScopeClass{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:(0,h.Ht)(),spanId:(0,h.M)()}}clone(){let t=new ScopeClass;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,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._lastEventId=this._lastEventId,(0,S.D)(t,(0,S.Y)(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}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,username:void 0},this._session&&(0,c.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,a){return this._tags={...this._tags,[t]:a},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,a){return this._extra={...this._extra,[t]:a},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,a){return null===a?delete this._contexts[t]:this._contexts[t]=a,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let a="function"==typeof t?t(this):t,[l,c]=a instanceof w?[a.get
67ScopeData(),a.getRequestSession()]:(0,d.PO)(a)?[t,t.requestSession]:[],{tags:p,extra:f,user:h,contexts:g,level:_,fingerprint:S=[],propagationContext:k}=l||{};return this._tags={...this._tags,...p},this._extra={...this._extra,...f},this._contexts={...this._contexts,...g},h&&Object.keys(h).length&&(this._user=h),_&&(this._level=_),S.length&&(this._fingerprint=S),k&&(this._propagationContext=k),c&&(this._requestSession=c),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,(0,S.D)(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,h.Ht)()}),this._notifyScopeListeners(),this}addBreadcrumb(t,a){let l="number"==typeof a?a:100;if(l<=0)return this;let c={timestamp:(0,g.yW)(),...t};return this._breadcrumbs.push(c),this._breadcrumbs.length>l&&(this._breadcrumbs=this._breadcrumbs.slice(-l),this._client&&this._client.recordDroppedEvent("buffer_overflow","log_item")),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}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,S.Y)(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=(0,_.T)(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext={spanId:(0,h.M)(),...t},this}getPropagationContext(){return this._propagationContext}captureException(t,a){let l=a&&a.event_id?a.event_id:(0,f.DM)();if(!this._client)return p.kg.warn("No client configured on scope - will not capture exception!"),l;let c=Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:c,...a,event_id:l},this),l}captureMessage(t,a,l){let c=l&&l.event_id?l.event_id:(0,f.DM)();if(!this._client)return p.kg.warn("No client configured on scope - will not capture message!"),c;let d=Error(t);return this._client.captureMessage(t,a,{originalException:t,syntheticException:d,...l,event_id:c},this),c}captureEvent(t,a){let l=a&&a.event_id?a.event_id:(0,f.DM)();return this._client?this._client.captureEvent(t,{...a,event_id:l},this):p.kg.warn("No client configured on scope - will not capture event!"),l}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}};let w=ScopeClass},31218:function(t,a,l){"use strict";l.d(a,{$J:function(){return p},E1:function(){return g},JQ:function(){return k},S3:function(){return f},TE:function(){return d},Wb:function(){return _},Zj:function(){return c},ju:function(){return h},p6:function(){return w},xF:function(){return S}});let c="sentry.source",d="sentry.sample_rate",p="sentry.op",f="sentry.origin",h="sentry.idle_span_finish_reason",g="sentry.measurement_unit",_="sentry.measurement_value",S="sentry.custom_span_name",w="sentry.profile_id",k="sentry.exclusive_time"},10042:function(t,a,l){"use strict";l.d(a,{CT:function(){return updateSession},Hv:function(){return makeSession},RJ:function(){return closeSession}});var c=l(51150),d=l(59943),p=l(82305);function makeSession(t){let a=(0,d.ph)(),l={sid:(0,p.DM)(),init:!0,timestamp:a,started:a,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>(0,c.Jr)({sid:`${l.sid}`,init:l.init,started:new Date(1e3*l.started).toISOString(),timestamp:new Date(1e3*l.timestamp).toISOString(),status:l.status,errors:l.errors,did:"number"==typeof l.did||"string"==typeof l.did?`${l.did}`:void 0,duration:l.duration,abnormal_mechanism:l.abnormal_mechanism,attrs:{release:l.release,environment:l.environment,ip_address:l.ipAddress,user_agent:l.userAgent}})};return t&&updateSession(l,t),l}function updateSession(t,a={}){if(!a.user||(!t.ipAddress&&a.user.ip_address&&(t.ipAddress=a.user.ip_address),t.did||a.did||(t.did=a.user.id||a.user.email||a.user.username)),t.timestamp=a.timestamp||(0,d.ph)(),a.abnormal_mechanism&&(t.abnormal_mechanism=a.abnormal_mechanism),a.ignoreDuration&&(t.ignoreDuration=a.ignoreDuration),a.sid&&(t.sid=32===a.sid.length?a.sid:(0,p.DM)()),void 0!==a.init&&(t.init=a.init),!t.did&&a.did&&(t.did=`${a.did}`),"number"==typeof a.started&&(t.started=a.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof a.duration)t.duration=a.duration;else{let a=t.timestamp-t.started;t.duration=a>=0?a:0}a.release&&(t.release=a.release),a.environment&&(t.environment=a.environment),!t.ipAddress&&a.ipAddress&&(t.ipAddress=a.ipAddress),!t.userAgent&&a.userAgent&&(t.userAgent=a.userAgent),"number"==typeof a.errors&&(t.errors=a.errors),a.status&&(t.status=a.status)}function closeSession(t,a){let l={};a?l={status:a}:"ok"===t.status&&(l={status:"exited"}),updateSession(t,l)}},72123:function(t,a,l){"use strict";l.d(a,{CG:function(){return getDynamicSamplingContextFromScope},Lh:function(){return freezeDscOnSpan},jC:function(){return getDynamicSamplingContextFromSpan}});var c=l(73243),d=l(73076),p=l(31218),f=l(98823),h=l(51150),g=l(67973),_=l(81585);let S="_frozenDsc";function freezeDscOnSpan(t,a){(0,h.xp)(t,S,a)}function getDynamicSamplingContextFromClient(t,a){let l=a.getOptions(),{publicKey:d}=a.getDsn()||{},p=(0,h.Jr)({environment:l.environment||c.J,release:l.release,public_key:d,trace_id:t});return a.emit("createDsc",p),p}function getDynamicSamplingContextFromScope(t,a){let l=a.getPropagationContext();return l.dsc||getDynamicSamplingContextFromClient(l.traceId,t)}function getDynamicSamplingContextFromSpan(t){let a=(0,d.s3)();if(!a)return{};let l=(0,_.Gx)(t),c=l[S];if(c)return c;let h=l.spanContext().traceState,w=h&&h.get("sentry.dsc"),k=w&&(0,f.EN)(w);if(k)return k;let E=getDynamicSamplingContextFromClient(t.spanContext().traceId,a),x=(0,_.XU)(l),B=x.data||{},H=B[p.TE];null!=H&&(E.sample_rate=`${H}`);let U=B[p.Zj],J=x.description;return"url"!==U&&J&&(E.transaction=J),(0,g.z)()&&(E.sampled=String((0,_.Tt)(l))),a.emit("createDsc",E,l),E}},69737:function(t,a,l){"use strict";l.d(a,{OP:function(){return d},Q0:function(){return setHttpStatus},jt:function(){return p},pq:function(){return c}});let c=0,d=1,p=2;function setHttpStatus(t,a){t.setAttribute("http.response.status_code",a);let l=function(t){if(t<400&&t>=100)return{code:d};if(t>=400&&t<500)switch(t){case 401:return{code:p,message:"unauthenticated"};case 403:return{code:p,message:"permission_denied"};case 404:return{code:p,message:"not_found"};case 409:return{code:p,message:"already_exists"};case 413:return{code:p,message:"failed_precondition"};case 429:return{code:p,message:"resource_exhausted"};case 499:return{code:p,message:"cancelled"};default:return{code:p,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:p,message:"unimplemented"};case 503:return{code:p,message:"unavailable"};case 504:return{code:p,message:"deadline_exceeded"};default:return{code:p,message:"internal_error"}}return{code:p,message:"unknown_error"}}(a);"unknown_error"!==l.message&&t.setStatus(l)}},98823:function(t,a,l){"use strict";l.d(a,{EN:function(){return baggageHeaderToDynamicSamplingContext},IQ:function(){return dynamicSamplingContextToSentryBaggageHeader},XM:function(){return parseBaggageHeader},lq:function(){return f}});var c=l(23187),d=l(24925),p=l(17986);let f="sentry-",h=/^sentry-/;function baggageHeaderToDynamicSamplingContext(t){let a=parseBaggageHeader(t);if(!a)return;let l=Object.entries(a).reduce((t,[a,l])=>{if(a.match(h)){let c=a.slice(f.length);t[c]=l}return t},{});return Object.keys(l).length>0?l:void 0}function dynamicSamplingContextToSentryBaggageHeader(t){if(!t)return;let a=Object.entries(t).reduce((t,[a,l])=>(l&&(t[`${f}${a}`]=l),t),{});return function(t){if(0!==Object.keys(t).length)return Object.entries(t).reduce((t,[a,l],d)=>{let f=`${encodeURIComponent(a)}=${encodeURIComponent(l)}`,h=0===d?f:`${t},${f}`;return h.length>8192?(c.X&&p.kg.warn(`Not adding key: ${a} with val: ${l} to baggage header due to exceeding baggage size limits.`),t):h},"")}(a)}function parseBaggageHeader(t){return t&&((0,d.HD)(t)||Array.isArray(t))?Array.isArray(t)?t.reduce((t,a)=>{let l=baggageHeaderToObject(a);return Object.entries(l).forEach(([a,l])=>{t[a]=l}),t},{}):baggageHeaderToObject(t):void 0}function baggageHeaderToObject(t){return t.split(",").map(t=>t.split("=").map(t=>decodeURIComponent(t.trim()))).reduce((t,[a,l])=>(a&&l&&(t[a]=l),t),{})}},70428:function(t,a,l){"use strict";l.d(a,{Rt:function(){return htmlTreeAsString},iY:function(){return getComponentName},l4:function(){return getLocationHref},qT:function(){return getDomElement}});var c=l(24925),d=l(33280);let p=d.GLOBAL_OBJ;function htmlTreeAsString(t,a={}){if(!t)return"<unknown>";try{let l,d=t,f=[],h=0,g=0,_=Array.isArray(a)?a:a.keyAttrs,S=!Array.isArray(a)&&a.maxStringLength||80;for(;d&&h++<5&&(l=function(t,a){let l=[];
67if(!t||!t.tagName)return"";if(p.HTMLElement&&t instanceof HTMLElement&&t.dataset){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}l.push(t.tagName.toLowerCase());let d=a&&a.length?a.filter(a=>t.getAttribute(a)).map(a=>[a,t.getAttribute(a)]):null;if(d&&d.length)d.forEach(t=>{l.push(`[${t[0]}="${t[1]}"]`)});else{t.id&&l.push(`#${t.id}`);let a=t.className;if(a&&(0,c.HD)(a)){let t=a.split(/\s+/);for(let a of t)l.push(`.${a}`)}}for(let a of["aria-label","type","name","title","alt"]){let c=t.getAttribute(a);c&&l.push(`[${a}="${c}"]`)}return l.join("")}(d,_),"html"!==l&&(!(h>1)||!(g+3*f.length+l.length>=S)));)f.push(l),g+=l.length,d=d.parentNode;return f.reverse().join(" > ")}catch(t){return"<unknown>"}}function getLocationHref(){try{return p.document.location.href}catch(t){return""}}function getDomElement(t){return p.document&&p.document.querySelector?p.document.querySelector(t):null}function getComponentName(t){if(!p.HTMLElement)return null;let a=t;for(let t=0;t<5&&a;t++){if(a instanceof HTMLElement){if(a.dataset.sentryComponent)return a.dataset.sentryComponent;if(a.dataset.sentryElement)return a.dataset.sentryElement}a=a.parentNode}return null}},23187:function(t,a,l){"use strict";l.d(a,{X:function(){return c}});let c=!1},24925:function(t,a,l){"use strict";l.d(a,{Cy:function(){return isSyntheticEvent},HD:function(){return isString},J8:function(){return isThenable},Kj:function(){return isRegExp},Le:function(){return isParameterizedString},PO:function(){return isPlainObject},TX:function(){return isDOMError},V9:function(){return isInstanceOf},VW:function(){return isErrorEvent},VZ:function(){return isError},cO:function(){return isEvent},fm:function(){return isDOMException},kK:function(){return isElement},pt:function(){return isPrimitive},y1:function(){return isVueViewModel}});let c=Object.prototype.toString;function isError(t){switch(c.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return isInstanceOf(t,Error)}}function isBuiltin(t,a){return c.call(t)===`[object ${a}]`}function isErrorEvent(t){return isBuiltin(t,"ErrorEvent")}function isDOMError(t){return isBuiltin(t,"DOMError")}function isDOMException(t){return isBuiltin(t,"DOMException")}function isString(t){return isBuiltin(t,"String")}function isParameterizedString(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function isPrimitive(t){return null===t||isParameterizedString(t)||"object"!=typeof t&&"function"!=typeof t}function isPlainObject(t){return isBuiltin(t,"Object")}function isEvent(t){return"undefined"!=typeof Event&&isInstanceOf(t,Event)}function isElement(t){return"undefined"!=typeof Element&&isInstanceOf(t,Element)}function isRegExp(t){return isBuiltin(t,"RegExp")}function isThenable(t){return!!(t&&t.then&&"function"==typeof t.then)}function isSyntheticEvent(t){return isPlainObject(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function isInstanceOf(t,a){try{return t instanceof a}catch(t){return!1}}function isVueViewModel(t){return!!("object"==typeof t&&null!==t&&(t.__isVue||t._isVue))}},17986:function(t,a,l){"use strict";l.d(a,{Cf:function(){return consoleSandbox},LD:function(){return f},RU:function(){return p},kg:function(){return h}});var c=l(23187),d=l(33280);let p=["debug","info","warn","error","log","assert","trace"],f={};function consoleSandbox(t){if(!("console"in d.GLOBAL_OBJ))return t();let a=d.GLOBAL_OBJ.console,l={},c=Object.keys(f);
67c.forEach(t=>{let c=f[t];l[t]=a[t],a[t]=c});try{return t()}finally{c.forEach(t=>{a[t]=l[t]})}}let h=(0,d.Y)("logger",function(){let t=!1,a={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return c.X?p.forEach(l=>{a[l]=(...a)=>{t&&consoleSandbox(()=>{d.GLOBAL_OBJ.console[l](`Sentry Logger [${l}]:`,...a)})}}):p.forEach(t=>{a[t]=()=>void 0}),a})},82305:function(t,a,l){"use strict";l.d(a,{DM:function(){return uuid4},Db:function(){return addExceptionTypeValue},EG:function(){return addExceptionMechanism},YO:function(){return checkOrSetAlreadyCaught},jH:function(){return getEventDescription}});var c=l(51150),d=l(33280);function uuid4(){let t=d.GLOBAL_OBJ,a=t.crypto||t.msCrypto,getRandomByte=()=>16*Math.random();try{if(a&&a.randomUUID)return a.randomUUID().replace(/-/g,"");a&&a.getRandomValues&&(getRandomByte=()=>{let t=new Uint8Array(1);return a.getRandomValues(t),t[0]})}catch(t){}return"10000000100040008000100000000000".replace(/[018]/g,t=>(t^(15&getRandomByte())>>t/4).toString(16))}function getFirstException(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function getEventDescription(t){let{message:a,event_id:l}=t;if(a)return a;let c=getFirstException(t);return c?c.type&&c.value?`${c.type}: ${c.value}`:c.type||c.value||l||"<unknown>":l||"<unknown>"}function addExceptionTypeValue(t,a,l){let c=t.exception=t.exception||{},d=c.values=c.values||[],p=d[0]=d[0]||{};p.value||(p.value=a||""),p.type||(p.type=l||"Error")}function addExceptionMechanism(t,a){let l=getFirstException(t);if(!l)return;let c=l.mechanism;if(l.mechanism={type:"generic",handled:!0,...c,...a},a&&"data"in a){let t={...c&&c.data,...a.data};l.mechanism.data=t}}function checkOrSetAlreadyCaught(t){if(function(t){try{return t.__sentry_captured__}catch(t){}}(t))return!0;try{(0,c.xp)(t,"__sentry_captured__",!0)}catch(t){}return!1}},90059:function(t,a,l){"use strict";l.d(a,{Fv:function(){return normalize},Qy:function(){return function normalizeToSize(t,a=3,l=102400){let c=normalize(t,a);return~-encodeURI(JSON.stringify(c)).split(/%..|./).length>l?normalizeToSize(t,a-1,l):c}}});var c=l(24925),d=l(51150),p=l(39649);function normalize(t,a=100,l=Infinity){try{return function visit(t,a,l=Infinity,f=Infinity,h=function(){let t="function"==typeof WeakSet,a=t?new WeakSet:[];return[function(l){if(t)return!!a.has(l)||(a.add(l),!1);for(let t=0;t<a.length;t++){let c=a[t];if(c===l)return!0}return a.push(l),!1},function(l){if(t)a.delete(l);else for(let t=0;t<a.length;t++)if(a[t]===l){a.splice(t,1);break}}]}()){let[g,_]=h;if(null==a||["boolean","string"].includes(typeof a)||"number"==typeof a&&Number.isFinite(a))return a;let S=function(t,a){try{if("domain"===t&&a&&"object"==typeof a&&a._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if("undefined"!=typeof global&&a===global)return"[Global]";if("undefined"!=typeof window&&a===window)return"[Window]";if("undefined"!=typeof document&&a===document)return"[Document]";if((0,c.y1)(a))return"[VueViewModel]";if((0,c.Cy)(a))return"[SyntheticEvent]";if("number"==typeof a&&!Number.isFinite(a))return`[${a}]`;if("function"==typeof a)return`[Function: ${(0,p.$P)(a)}]`;if("symbol"==typeof a)return`[${String(a)}]`;if("bigint"==typeof a)return`[BigInt: ${String(a)}]`;let l=function(t){let a=Object.getPrototypeOf(t);return a?a.constructor.name:"null prototype"}(a);if(/^HTML(\w*)Element$/.test(l))return`[HTMLElement: ${l}]`;return`[object ${l}]`}catch(t){return`**non-serializable** (${t})`}}(t,a);if(!S.startsWith("[object "))return S;if(a.__sentry_skip_normalization__)return a;let w="number"==typeof a.__sentry_override_normalization_depth__?a.__sentry_override_normalization_depth__:l;if(0===w)return S.replace("object ","");if(g(a))return"[Circular ~]";if(a&&"function"==typeof a.toJSON)try{let t=a.toJSON();return visit("",t,w-1,f,h)}catch(t){}let k=Array.isArray(a)?[]:{},E=0,x=(0,d.Sh)(a);for(let t in x){if(!Object.prototype.hasOwnProperty.call(x,t))continue;if(E>=f){k[t]="[MaxProperties ~]";break}let a=x[t];k[t]=visit(t,a,w-1,f,h),E++}return _(a),k}("",t,a,l)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}},51150:function(t,a,l){"use strict";l.d(a,{$Q:function(){return markFunctionWrapped},HK:function(){return getOriginalFunction},Jr:function(){return dropUndefinedKeys},Sh:function(){return convertToPlainObject},hl:function(){return fill},xp:function(){return addNonEnumerableProperty},zf:function(){return extractExceptionKeysForMessage}});var c=l(70428),d=l(23187),p=l(24925),f=l(17986),h=l(50027);function fill(t,a,l){if(!(a in t))return;let c=t[a],p=l(c);"function"==typeof p&&markFunctionWrapped(p,c);try{t[a]=p}catch(l){d.X&&f.kg.log(`Failed to replace method "${a}" in object`,t)}}function addNonEnumerableProperty(t,a,l){try{Object.defineProperty(t,a,{value:l,writable:!0,configurable:!0})}catch(l){d.X&&f.kg.log(`Failed to add non-enumerable property "${a}" to object`,t)}}function markFunctionWrapped(t,a){try{let l=a.prototype||{};t.prototype=a.prototype=l,addNonEnumerableProperty(t,"__sentry_original__",a)}catch(t){}}function getOriginalFunction(t){return t.__sentry_original__}function convertToPlainObject(t){if((0,p.VZ)(t))return{message:t.message,name:t.name,stack:t.stack,...getOwnProperties(t)};if(!(0,p.cO)(t))return t;{let a={type:t.type,target:serializeEventTarget(t.target),currentTarget:serializeEventTarget(t.currentTarget),...getOwnProperties(t)};return"undefined"!=typeof CustomEvent&&(0,p.V9)(t,CustomEvent)&&(a.detail=t.detail),a}}function serializeEventTarget(t){try{return(0,p.kK)(t)?(0,c.Rt)(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}}function getOwnProperties(t){if("object"!=typeof t||null===t)return{};{let a={};for(let l in t)Object.prototype.hasOwnProperty.call(t,l)&&(a[l]=t[l]);return a}}function extractExceptionKeysForMessage(t,a=40){let l=Object.keys(convertToPlainObject(t));l.sort();let c=l[0];if(!c)return"[object has no keys]";if(c.length>=a)return(0,h.$G)(c,a);for(let t=l.length;t>0;t--){let c=l.slice(0,t).join(", ");
67if(!(c.length>a)){if(t===l.length)return c;return(0,h.$G)(c,a)}}return""}function dropUndefinedKeys(t){let a=new Map;return function _dropUndefinedKeys(t,a){if(function(t){if(!(0,p.PO)(t))return!1;try{let a=Object.getPrototypeOf(t).constructor.name;return!a||"Object"===a}catch(t){return!0}}(t)){let l=a.get(t);if(void 0!==l)return l;let c={};for(let l of(a.set(t,c),Object.getOwnPropertyNames(t)))void 0!==t[l]&&(c[l]=_dropUndefinedKeys(t[l],a));return c}if(Array.isArray(t)){let l=a.get(t);if(void 0!==l)return l;let c=[];return a.set(t,c),t.forEach(t=>{c.push(_dropUndefinedKeys(t,a))}),c}return t}(t,a)}},51824:function(t,a,l){"use strict";l.d(a,{Ht:function(){return generateTraceId},M:function(){return generateSpanId}});var c=l(82305);function generateTraceId(){return(0,c.DM)()}function generateSpanId(){return(0,c.DM)().substring(16)}},39649:function(t,a,l){"use strict";l.d(a,{$P:function(){return getFunctionName},Fi:function(){return c},Fr:function(){return getFramesFromEvent},Sq:function(){return stackParserFromStackParserOptions},pE:function(){return createStackParser}});let c="?",d=/\(error: (.*)\)/,p=/captureMessage|captureException/;function createStackParser(...t){let a=t.sort((t,a)=>t[0]-a[0]).map(t=>t[1]);return(t,l=0,f=0)=>{let h=[],g=t.split("\n");for(let t=l;t<g.length;t++){let l=g[t];if(l.length>1024)continue;let c=d.test(l)?l.replace(d,"$1"):l;if(!c.match(/\S*Error: /)){for(let t of a){let a=t(c);if(a){h.push(a);break}}if(h.length>=50+f)break}}return function(t){if(!t.length)return[];let a=Array.from(t);return/sentryWrapped/.test(getLastStackFrame(a).function||"")&&a.pop(),a.reverse(),p.test(getLastStackFrame(a).function||"")&&(a.pop(),p.test(getLastStackFrame(a).function||"")&&a.pop()),a.slice(0,50).map(t=>({...t,filename:t.filename||getLastStackFrame(a).filename,function:t.function||c}))}(h.slice(f))}}function stackParserFromStackParserOptions(t){return Array.isArray(t)?createStackParser(...t):t}function getLastStackFrame(t){return t[t.length-1]||{}}let f="<anonymous>";function getFunctionName(t){try{if(!t||"function"!=typeof t)return f;return t.name||f}catch(t){return f}}function getFramesFromEvent(t){let a=t.exception;if(a){let t=[];try{return a.values.forEach(a=>{a.stacktrace.frames&&t.push(...a.stacktrace.frames)}),t}catch(t){}}}},50027:function(t,a,l){"use strict";l.d(a,{$G:function(){return truncate},U0:function(){return stringMatchesSomePattern},nK:function(){return safeJoin}});var c=l(24925);function truncate(t,a=0){return"string"!=typeof t||0===a?t:t.length<=a?t:`${t.slice(0,a)}...`}function safeJoin(t,a){if(!Array.isArray(t))return"";let l=[];for(let a=0;a<t.length;a++){let d=t[a];try{(0,c.y1)(d)?l.push("[VueViewModel]"):l.push(String(d))}catch(t){l.push("[value cannot be serialized]")}}return l.join(a)}function stringMatchesSomePattern(t,a=[],l=!1){return a.some(a=>(function(t,a,l=!1){return!!(0,c.HD)(t)&&((0,c.Kj)(a)?a.test(t):!!(0,c.HD)(a)&&(l?t===a:t.includes(a)))})(t,a,l))}},52340:function(t,a,l){"use strict";l.d(a,{$2:function(){return rejectedSyncPromise},WD:function(){return resolvedSyncPromise},cW:function(){return SyncPromise}});var c,d,p=l(24925);function resolvedSyncPromise(t){return new SyncPromise(a=>{a(t)})}function rejectedSyncPromise(t){return new SyncPromise((a,l)=>{l(t)})}(c=d||(d={}))[c.PENDING=0]="PENDING",c[c.RESOLVED=1]="RESOLVED",c[c.REJECTED=2]="REJECTED";let SyncPromise=class SyncPromise{constructor(t){SyncPromise.prototype.__init.call(this),SyncPromise.prototype.__init2.call(this),SyncPromise.prototype.__init3.call(this),SyncPromise.prototype.__init4.call(this),this._state=d.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,a){return new SyncPromise((l,c)=>{this._handlers.push([!1,a=>{if(t)try{l(t(a))}catch(t){c(t)}else l(a)},t=>{if(a)try{l(a(t))}catch(t){c(t)}else c(t)}]),this._executeHandlers()})}catch(t){return this.then(t=>t,t)}finally(t){return new SyncPromise((a,l)=>{let c,d;return this.then(a=>{d=!1,c=a,t&&t()},a=>{d=!0,c=a,t&&t()}).then(()=>{if(d){l(c);return}a(c)})})}__init(){this._resolve=t=>{this._setResult(d.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(d.REJECTED,t)}}__init3(){this._setResult=(t,a)=>{if(this._state===d.PENDING){if((0,p.J8)(a)){a.then(this._resolve,this._reject);return}this._state=t,this._value=a,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>
67{if(this._state===d.PENDING)return;let t=this._handlers.slice();this._handlers=[],t.forEach(t=>{t[0]||(this._state===d.RESOLVED&&t[1](this._value),this._state===d.REJECTED&&t[2](this._value),t[0]=!0)})}}}},59943:function(t,a,l){"use strict";l.d(a,{Z1:function(){return p},ph:function(){return d},yW:function(){return dateTimestampInSeconds}});var c=l(33280);function dateTimestampInSeconds(){return Date.now()/1e3}let d=function(){let{performance:t}=c.GLOBAL_OBJ;if(!t||!t.now)return dateTimestampInSeconds;let a=Date.now()-t.now(),l=void 0==t.timeOrigin?a:t.timeOrigin;return()=>(l+t.now())/1e3}(),p=(()=>{let{performance:t}=c.GLOBAL_OBJ;if(!t||!t.now)return;let a=t.now(),l=Date.now(),d=t.timeOrigin?Math.abs(t.timeOrigin+a-l):36e5,p=t.timing&&t.timing.navigationStart,f="number"==typeof p?Math.abs(p+a-l):36e5;return d<36e5||f<36e5?d<=f?t.timeOrigin:p:l})()},94801:function(t,a,l){"use strict";l.d(a,{$p:function(){return generateSentryTraceHeader},Ke:function(){return p},pT:function(){return propagationContextFromHeaders}});var c=l(98823),d=l(51824);let p=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function propagationContextFromHeaders(t,a){let l=function(t){let a;if(!t)return;let l=t.match(p);if(l)return"1"===l[3]?a=!0:"0"===l[3]&&(a=!1),{traceId:l[1],parentSampled:a,parentSpanId:l[2]}}(t),f=(0,c.EN)(a);if(!l||!l.traceId)return{traceId:(0,d.Ht)(),spanId:(0,d.M)()};let{traceId:h,parentSpanId:g,parentSampled:_}=l,S=(0,d.M)();return{traceId:h,parentSpanId:g,spanId:S,sampled:_,dsc:f||{}}}function generateSentryTraceHeader(t=(0,d.Ht)(),a=(0,d.M)(),l){let c="";return void 0!==l&&(c=l?"-1":"-0"),`${t}-${a}${c}`}},49889:function(t,a,l){"use strict";l.d(a,{J:function(){return c}});let c="8.54.0"},33280:function(t,a,l){"use strict";l.d(a,{GLOBAL_OBJ:function(){return d},Y:function(){return getGlobalSingleton}});var c=l(49889);let d=globalThis;function getGlobalSingleton(t,a,l){let p=l||d,f=p.__SENTRY__=p.__SENTRY__||{},h=f[c.J]=f[c.J]||{};return h[t]||(h[t]=a())}},67973:function(t,a,l){"use strict";l.d(a,{z:function(){return hasTracingEnabled}});var c=l(73076);function hasTracingEnabled(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let a=(0,c.s3)(),l=t||a&&a.getOptions();return!!l&&(l.enableTracing||"tracesSampleRate"in l||"tracesSampler"in l)}},3613:function(t,a,l){"use strict";l.d(a,{T:function(){return function merge(t,a,l=2){if(!a||"object"!=typeof a||l<=0)return a;if(t&&a&&0===Object.keys(a).length)return t;let c={...t};for(let t in a)Object.prototype.hasOwnProperty.call(a,t)&&(c[t]=merge(c[t],a[t],l-1));return c}}})},47515:function(t,a,l){"use strict";let c,d,p;l.d(a,{U0:function(){return parseEventHintOrCaptureContext},R:function(){return prepareEvent}});var f=l(73243),h=l(73076),g=l(94223),_=l(24925),S=l(17986),w=l(52340),k=l(43927),E=l(33280),x=l(82305),B=l(90059),H=l(50027),U=l(59943),J=l(72123),er=l(51150),en=l(3613),ei=l(81585);function mergeScopeData(t,a){let{extra:l,tags:c,user:d,contexts:p,level:f,sdkProcessingMetadata:h,breadcrumbs:g,fingerprint:_,eventProcessors:S,attachments:w,propagationContext:k,transactionName:E,span:x}=a;mergeAndOverwriteScopeData(t,"extra",l),mergeAndOverwriteScopeData(t,"tags",c),mergeAndOverwriteScopeData(t,"user",d),mergeAndOverwriteScopeData(t,"contexts",p),t.sdkProcessingMetadata=(0,en.T)(t.sdkProcessingMetadata,h,2),f&&(t.level=f),E&&(t.transactionName=E),x&&(t.span=x),g.length&&(t.breadcrumbs=[...t.breadcrumbs,...g]),_.length&&(t.fingerprint=[...t.fingerprint,..._]),S.length&&(t.eventProcessors=[...t.eventProcessors,...S]),w.length&&(t.attachments=[...t.attachments,...w]),t.propagationContext={...t.propagationContext,...k}}function mergeAndOverwriteScopeData(t,a,l){t[a]=(0,en.T)(t[a],l,1)}function prepareEvent(t,a,l,en,ea,el){let{normalizeDepth:ec=3,normalizeMaxBreadth:eu=1e3}=t,ed={...a,event_id:a.event_id||l.event_id||(0,x.DM)(),timestamp:a.timestamp||(0,U.yW)()},ep=l.integrations||t.integrations.map(t=>t.name);(function(t,a){let{environment:l,release:c,dist:d,maxValueLength:p=250}=a;t.environment=t.environment||l||f.J,!t.release&&c&&(t.release=c),!t.dist&&d&&(t.dist=d),t.message&&(t.message=(0,H.$G)(t.message,p));let h=t.exception&&t.exception.values&&t.exception.values[0];h&&h.value&&(h.value=(0,H.$G)(h.value,p));let g=t.request;g&&g.url&&(g.url=(0,H.$G)(g.url,p))})(ed,t),ep.length>0&&(ed.sdk=ed.sdk||{},ed.sdk.integrations=[...ed.sdk.integrations||[],...ep]),ea&&ea.emit("applyFrameMetadata",a),void 0===a.type&&function(t,a){let l=function(t){let a=E.GLOBAL_OBJ._sentryDebugIds;if(!a)return{};let l=Object.keys(a);return p&&l.length===d?p:(d=l.length,p=l.reduce((l,d)=>{c||(c={});let p=c[d];if(p)l[p[0]]=p[1];else{let p=t(d);for(let t=p.length-1;t>=0;t--){let f=p[t],h=f&&f.filename,g=a[d];if(h&&g){l[h]=g,c[d]=[h,g];break}}}return l},{}))}(a);
67try{t.exception.values.forEach(t=>{t.stacktrace.frames.forEach(t=>{l&&t.filename&&(t.debug_id=l[t.filename])})})}catch(t){}}(ed,t.stackParser);let ef=function(t,a){if(!a)return t;let l=t?t.clone():new k.s;return l.update(a),l}(en,l.captureContext);l.mechanism&&(0,x.EG)(ed,l.mechanism);let eh=ea?ea.getEventProcessors():[],eg=(0,h.lW)().getScopeData();if(el){let t=el.getScopeData();mergeScopeData(eg,t)}if(ef){let t=ef.getScopeData();mergeScopeData(eg,t)}let em=[...l.attachments||[],...eg.attachments];em.length&&(l.attachments=em),function(t,a){let{fingerprint:l,span:c,breadcrumbs:d,sdkProcessingMetadata:p}=a;(function(t,a){let{extra:l,tags:c,user:d,contexts:p,level:f,transactionName:h}=a,g=(0,er.Jr)(l);g&&Object.keys(g).length&&(t.extra={...g,...t.extra});let _=(0,er.Jr)(c);_&&Object.keys(_).length&&(t.tags={..._,...t.tags});let S=(0,er.Jr)(d);S&&Object.keys(S).length&&(t.user={...S,...t.user});let w=(0,er.Jr)(p);w&&Object.keys(w).length&&(t.contexts={...w,...t.contexts}),f&&(t.level=f),h&&"transaction"!==t.type&&(t.transaction=h)})(t,a),c&&function(t,a){t.contexts={trace:(0,ei.wy)(a),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:(0,J.jC)(a),...t.sdkProcessingMetadata};let l=(0,ei.Gx)(a),c=(0,ei.XU)(l).description;c&&!t.transaction&&"transaction"===t.type&&(t.transaction=c)}(t,c),t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],l&&(t.fingerprint=t.fingerprint.concat(l)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint,function(t,a){let l=[...t.breadcrumbs||[],...a];t.breadcrumbs=l.length?l:void 0}(t,d),t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...p}}(ed,eg);let ev=[...eh,...eg.eventProcessors],ey=function notifyEventProcessors(t,a,l,c=0){return new w.cW((d,p)=>{let f=t[c];if(null===a||"function"!=typeof f)d(a);else{let h=f({...a},l);g.X&&f.id&&null===h&&S.kg.log(`Event processor "${f.id}" dropped event`),(0,_.J8)(h)?h.then(a=>notifyEventProcessors(t,a,l,c+1).then(d)).then(null,p):notifyEventProcessors(t,h,l,c+1).then(d).then(null,p)}})}(ev,ed,l);return ey.then(t=>(t&&function(t){let a={};try{t.exception.values.forEach(t=>{t.stacktrace.frames.forEach(t=>{t.debug_id&&(t.abs_path?a[t.abs_path]=t.debug_id:t.filename&&(a[t.filename]=t.debug_id),delete t.debug_id)})})}catch(t){}if(0===Object.keys(a).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];let l=t.debug_meta.images;Object.entries(a).forEach(([t,a])=>{l.push({type:"sourcemap",code_file:t,debug_id:a})})}(t),"number"==typeof ec&&ec>0)?function(t,a,l){if(!t)return null;let c={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:(0,B.Fv)(t.data,a,l)}}))},...t.user&&{user:(0,B.Fv)(t.user,a,l)},...t.contexts&&{contexts:(0,B.Fv)(t.contexts,a,l)},...t.extra&&{extra:(0,B.Fv)(t.extra,a,l)}};return t.contexts&&t.contexts.trace&&c.contexts&&(c.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(c.contexts.trace.data=(0,B.Fv)(t.contexts.trace.data,a,l))),t.spans&&(c.spans=t.spans.map(t=>({...t,...t.data&&{data:(0,B.Fv)(t.data,a,l)}}))),t.contexts&&t.contexts.flags&&c.contexts&&(c.contexts.flags=(0,B.Fv)(t.contexts.flags,3,l)),c}(t,ec,eu):t)}function parseEventHintOrCaptureContext(t){return t?t instanceof k.s||"function"==typeof t||Object.keys(t).some(t=>ea.includes(t))?{captureContext:t}:t:void 0}let ea=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},89366:function(t,a,l){"use strict";l.d(a,{D:function(){return _setSpanForScope},Y:function(){return _getSpanForScope}});var c=l(51150);let d="_sentrySpan";function _setSpanForScope(t,a){a?(0,c.xp)(t,d,a):delete t[d]}function _getSpanForScope(t){return t[d]}},81585:function(t,a,l){"use strict";l.d(a,{$k:function(){return spanTimeInputToSeconds},Dp:function(){return getSpanDescendants},Gx:function(){return getRootSpan},HN:function(){return getActiveSpan},HR:function(){return spanToTransactionTraceContext},Hb:function(){return spanToTraceHeader},R6:function(){return showSpanDropWarning},Tt:function(){return spanIsSampled},XU:function(){return spanToJSON},_4:function(){return getStatusMessage},ed:function(){return removeChildSpanFromSpan},i0:function(){return H},j5:function(){return addChildSpanToSpan},ve:function(){return B},wy:function(){return spanToTraceContext}});var c=l(60811),d=l(13533),p=l(73076),f=l(72751),h=l(31218),g=l(69737),_=l(17986),S=l(51150),w=l(51824),k=l(59943),E=l(94801),x=l(89366);let B=0,H=1,U=!1;function spanToTransactionTraceContext(t){let{spanId:a,traceId:l}=t.spanContext(),{data:c,op:d,parent_span_id:p,status:f,origin:h}=spanToJSON(t);return(0,S.Jr)({parent_span_id:p,span_id:a,trace_id:l,data:c,op:d,status:f,origin:h})}function spanToTraceContext(t){let{spanId:a,traceId:l,isRemote:c}=t.spanContext(),d=c?a:spanToJSON(t).parent_span_id,p=c?(0,w.M)():a;return(0,S.Jr)({parent_span_id:d,span_id:p,trace_id:l})}function spanToTraceHeader(t){let{traceId:a,spanId:l}=t.spanContext(),c=spanIsSampled(t);return(0,E.$p)(a,l,c)}function spanTimeInputToSeconds(t){return"number"==typeof t?ensureTimestampInSeconds(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?ensureTimestampInSeconds(t.getTime()):(0,k.ph)()}function ensureTimestampInSeconds(t){return t>9999999999?t/1e3:t}function spanToJSON(t){if("function"==typeof t.getSpanJSON)return t.getSpanJSON();try{let{spanId:a,traceId:l}=t.spanContext();if(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status){let{attributes:c,startTime:d,name:p,endTime:g,parentSpanId:_,status:w}=t;return(0,S.Jr)({span_id:a,trace_id:l,data:c,description:p,parent_span_id:_,start_timestamp:spanTimeInputToSeconds(d),timestamp:spanTimeInputToSeconds(g)||void 0,status:getStatusMessage(w),op:c[h.$J],origin:c[h.S3],_metrics_summary:(0,f.y)(t)})}return{span_id:a,trace_id:l}}catch(t){return{}}}function spanIsSampled(t){let{traceFlags:a}=t.spanContext();return a===H}function getStatusMessage(t){return t&&t.code!==g.pq?t.code===g.OP?"ok":t.message||"unknown_error":void 0}let J="_sentryChildSpans",er="_sentryRootSpan";function addChildSpanToSpan(t,a){let l=t[er]||t;(0,S.xp)(a,er,l),t[J]?t[J].add(a):(0,S.xp)(t,J,new Set([a]))}function removeChildSpanFromSpan(t,a){t[J]&&t[J].delete(a)}function getSpanDescendants(t){let a=new Set;return function addSpanChildren(t){if(!a.has(t)&&spanIsSampled(t)){a.add(t);let l=t[J]?Array.from(t[J]):[];for(let t of l)addSpanChildren(t)}}(t),Array.from(a)}function getRootSpan(t){return t[er]||t}function getActiveSpan(){let t=(0,d.c)(),a=(0,c.G)(t);return a.getActiveSpan?a.getActiveSpan():(0,x.Y)((0,p.nZ)())}function showSpanDropWarning(){U||((0,_.Cf)(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK ver
67sion 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),U=!0)}},36096:function(t,a,l){"use strict";l.d(a,{X:function(){return c}});let c=!1},2379:function(t,a,l){"use strict";function defaultDispose(){}l.d(a,{e:function(){return StrongCache}});let StrongCache=class StrongCache{constructor(t=1/0,a=defaultDispose){this.max=t,this.dispose=a,this.map=new Map,this.newest=null,this.oldest=null}has(t){return this.map.has(t)}get(t){let a=this.getNode(t);return a&&a.value}get size(){return this.map.size}getNode(t){let a=this.map.get(t);if(a&&a!==this.newest){let{older:t,newer:l}=a;l&&(l.older=t),t&&(t.newer=l),a.older=this.newest,a.older.newer=a,a.newer=null,this.newest=a,a===this.oldest&&(this.oldest=l)}return a}set(t,a){let l=this.getNode(t);return l?l.value=a:(l={key:t,value:a,newer:null,older:this.newest},this.newest&&(this.newest.newer=l),this.newest=l,this.oldest=this.oldest||l,this.map.set(t,l),l.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(t){let a=this.map.get(t);return!!a&&(a===this.newest&&(this.newest=a.older),a===this.oldest&&(this.oldest=a.newer),a.newer&&(a.newer.older=a.older),a.older&&(a.older.newer=a.newer),this.map.delete(t),this.dispose(a.value,t),!0)}}},99869:function(t,a,l){"use strict";function noop(){}l.d(a,{k:function(){return WeakCache}});let c="undefined"!=typeof WeakRef?WeakRef:function(t){return{deref:()=>t}},d="undefined"!=typeof WeakMap?WeakMap:Map,p="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:noop,unregister:noop}};let WeakCache=class WeakCache{constructor(t=1/0,a=noop){this.max=t,this.dispose=a,this.map=new d,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let t=this.unfinalizedNodes.values();for(let a=0;a<10024;a++){let a=t.next().value;if(!a)break;this.unfinalizedNodes.delete(a);let l=a.key;delete a.key,a.keyRef=new c(l),this.registry.register(l,a,a)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new p(this.deleteNode.bind(this))}has(t){return this.map.has(t)}get(t){let a=this.getNode(t);return a&&a.value}getNode(t){let a=this.map.get(t);if(a&&a!==this.newest){let{older:t,newer:l}=a;l&&(l.older=t),t&&(t.newer=l),a.older=this.newest,a.older.newer=a,a.newer=null,this.newest=a,a===this.oldest&&(this.oldest=l)}return a}set(t,a){let l=this.getNode(t);return l?l.value=a:(l={key:t,value:a,newer:null,older:this.newest},this.newest&&(this.newest.newer=l),this.newest=l,this.oldest=this.oldest||l,this.scheduleFinalization(l),this.map.set(t,l),this.size++,l.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(t){t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.size--;let a=t.key||t.keyRef&&t.keyRef.deref();this.dispose(t.value,a),t.keyRef?this.registry.unregister(t):this.unfinalizedNodes.delete(t),a&&this.map.delete(a)}delete(t){let a=this.map.get(t);return!!a&&(this.deleteNode(a),!0)}scheduleFinalization(t){this.unfinalizedNodes.add(t),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}},30020:function(t,a,l){"use strict";l.d(a,{D:function(){return equal}});let{toString:c,hasOwnProperty:d}=Object.prototype,p=Function.prototype.toString,f=new Map;function equal(t,a){try{return function check(t,a){if(t===a)return!0;let l=c.call(t),f=c.call(a);if(l!==f)return!1;switch(l){case"[object Array]":if(t.length!==a.length)break;case"[object Object]":{if(previouslyCompared(t,a))return!0;let l=definedKeys(t),c=definedKeys(a),p=l.length;if(p!==c.length)return!1;for(let t=0;t<p;++t)if(!d.call(a,l[t]))return!1;for(let c=0;c<p;++c){let d=l[c];if(!check(t[d],a[d]))return!1}return!0}case"[object Error]":return t.name===a.name&&t.message===a.message;case"[object Number]":if(t!=t)return a!=a;case"[object Boolean]":case"[object Date]":return+t==+a;case"[object RegExp]":case"[object String]":return t==`${a}`;case"[object Map]":case"[object Set]":{if(t.size!==a.size)return!1;if(previouslyCompared(t,a))return!0;let c=t.entries(),d="[object Map]"===l;for(;;){let t=c.next();if(t.done)break;let[l,p]=t.value;if(!a.has(l)||d&&!check(p,a.get(l)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),a=new Uint8Array(a);case"[object DataView]":{let l=t.byteLength;if(l===a.byteLength)for(;l--&&t[l]===a[l];);return -1===l}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{let l=p.call(t);if(l!==p.call(a))return!1;return!function(t,a){let l=t.length-a.length;return l>=0&&t.indexOf(a,l)===l}(l,h)}}return!1}(t,a)}finally{f.clear()}}function definedKeys(t){return Object.keys(t).filter(isDefinedKey,t)}function isDefinedKey(t){return void 0!==this[t]}a.Z=equal;let h="{ [native code] }";function previouslyCompared(t,a){let l=f.get(t);if(l){if(l.has(a))return!0}else f.set(t,l=new Set);return l.add(a),!1}},75028:function(t,a,l){"use strict";l.d(a,{B:function(){return Trie}});let defaultMakeData=()=>Object.create(null),{forEach:c,slice:d}=Array.prototype,{hasOwnProperty:p}=Object.prototype;let Trie=class Trie{constructor(t=!0,a=defaultMakeData){this.weakness=t,this.makeData=a}lookup(){return this.lookupArray(arguments)}lookupArray(t){let a=this;return c.call(t,t=>a=a.getChildTrie(t)),p.call(a,"data")?a.data:a.data=this.makeData(d.call(t))}peek(){return this.peekArray(arguments)}peekArray(t){let a=this;for(let l=0,c=t.length;a&&l<c;++l){let c=a.mapFor(t[l],!1);a=c&&c.get(t[l])}return a&&a.data}remove(){return this.removeArray(arguments)}removeArray(t){let a;if(t.length){let l=t[0],c=this.mapFor(l,!1),p=c&&c.get(l);!p||(a=p.removeArray(d.call(t,1)),p.data||p.weak||p.strong&&p.strong.size||c.delete(l))}else a=this.data,delete this.data;return a}getChildTrie(t){let a=this.mapFor(t,!0),l=a.get(t);return l||a.set(t,l=new Trie(this.weakness,this.makeData)),l}mapFor(t,a){return this.weakness&&function(t){switch(typeof t){case"object":if(null===t)break;case"function":return!0}return!1}(t)?this.weak||(a?this.weak=new WeakMap:void 0):this.strong||(a?this.strong=new Map:void 0)}}},37826:function(t,a,l){"use strict";function devAssert(t,a){if(!t)throw Error(a)}l.d(a,{a:function(){return devAssert}})},25821:function(t,a,l){"use strict";function inspect(t){return function formatValue(t,a){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,a){if(null===t)return"null";if(a.includes(t))return"[Circular]";let l=[...a,t];if("function"==typeof t.toJSON){let a=t.toJSON();if(a!==t)return"string"==typeof a?a:formatValue(a,l)}else if(Array.isArray(t))return function(t,a){if(0===t.length)return"[]";if(a.length>2)return"[Array]";let l=Math.min(10,t.length),c=t.length-l,d=[];for(let c=0;c<l;++c)d.push(formatValue(t[c],a));return 1===c?d.push("... 1 more item"):c>1&&d.push(`... ${c} more items`),"["+d.join(", ")+"]"}(t,l);return function(t,a){let l=Object.entries(t);if(0===l.length)return"{}";if(a.length>2)return"["+function(t){let a=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if("Object"===a&&"function"==typeof t.constructor){let a=t.constructor.name;if("string"==typeof a&&""!==a)return a}return a}(t)+"]";let c=l.map(([t,l])=>t+": "+formatValue(l,a));return"{ "+c.join(", ")+" }"}(t,l)}(t,a);default:return String(t)}}(t,[])}l.d(a,{X:function(){return inspect}})},72380:function(t,a,l){"use strict";var c,d;l.d(a,{UG:function(){return isNode},WU:function(){return Token},Ye:function(){return Location},h8:function(){return p},ku:function(){return c}});let Location=class Location{constructor(t,a,l){this.start=t.start,this.end=a.end,this.startToken=t,this.endToken=a,this.source=l}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}};let Token=class Token{constructor(t,a,l,c,d,p){this.kind=t,this.start=a,this.end=l,this.line=c,this.column=d,this.value=p,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}};let p={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],Float
67Value:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},f=new Set(Object.keys(p));function isNode(t){let a=null==t?void 0:t.kind;return"string"==typeof a&&f.has(a)}(d=c||(c={})).QUERY="query",d.MUTATION="mutation",d.SUBSCRIPTION="subscription"},87392:function(t,a,l){"use strict";l.d(a,{LZ:function(){return printBlockString},wv:function(){return dedentBlockStringLines}});var c=l(68297);function dedentBlockStringLines(t){var a,l;let d=Number.MAX_SAFE_INTEGER,p=null,f=-1;for(let a=0;a<t.length;++a){let h=t[a],g=function(t){let a=0;for(;a<t.length&&(0,c.FD)(t.charCodeAt(a));)++a;return a}(h);g!==h.length&&(p=null!==(l=p)&&void 0!==l?l:a,f=a,0!==a&&g<d&&(d=g))}return t.map((t,a)=>0===a?t:t.slice(d)).slice(null!==(a=p)&&void 0!==a?a:0,f+1)}function printBlockString(t,a){let l=t.replace(/"""/g,'\\"""'),d=l.split(/\r\n|[\n\r]/g),p=1===d.length,f=d.length>1&&d.slice(1).every(t=>0===t.length||(0,c.FD)(t.charCodeAt(0))),h=l.endsWith('\\"""'),g=t.endsWith('"')&&!h,_=t.endsWith("\\"),S=g||_,w=!(null!=a&&a.minimize)&&(!p||t.length>70||S||f||h),k="",E=p&&(0,c.FD)(t.charCodeAt(0));return(w&&!E||f)&&(k+="\n"),k+=l,(w||S)&&(k+="\n"),'"""'+k+'"""'}},68297:function(t,a,l){"use strict";function isWhiteSpace(t){return 9===t||32===t}function isDigit(t){return t>=48&&t<=57}function isLetter(t){return t>=97&&t<=122||t>=65&&t<=90}function isNameStart(t){return isLetter(t)||95===t}function isNameContinue(t){return isLetter(t)||isDigit(t)||95===t}l.d(a,{FD:function(){return isWhiteSpace},HQ:function(){return isNameContinue},LQ:function(){return isNameStart},X1:function(){return isDigit}})},97359:function(t,a,l){"use strict";var c,d;l.d(a,{h:function(){return c}}),(d=c||(c={})).NAME="Name",d.DOCUMENT="Document",d.OPERATION_DEFINITION="OperationDefinition",d.VARIABLE_DEFINITION="VariableDefinition",d.SELECTION_SET="SelectionSet",d.FIELD="Field",d.ARGUMENT="Argument",d.FRAGMENT_SPREAD="FragmentSpread",d.INLINE_FRAGMENT="InlineFragment",d.FRAGMENT_DEFINITION="FragmentDefinition",d.VARIABLE="Variable",d.INT="IntValue",d.FLOAT="FloatValue",d.STRING="StringValue",d.BOOLEAN="BooleanValue",d.NULL="NullValue",d.ENUM="EnumValue",d.LIST="ListValue",d.OBJECT="ObjectValue",d.OBJECT_FIELD="ObjectField",d.DIRECTIVE="Directive",d.NAMED_TYPE="NamedType",d.LIST_TYPE="ListType",d.NON_NULL_TYPE="NonNullType",d.SCHEMA_DEFINITION="SchemaDefinition",d.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",d.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",d.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",d.FIELD_DEFINITION="FieldDefinition",d.INPUT_VALUE_DEFINITION="InputValueDefinition",d.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",d.UNION_TYPE_DEFINITION="UnionTypeDefinition",d.ENUM_TYPE_DEFINITION="EnumTypeDefinition",d.ENUM_VALUE_DEFINITION="EnumValueDefinition",d.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",d.DIRECTIVE_DEFINITION="DirectiveDefinition",d.SCHEMA_EXTENSION="SchemaExtension",d.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",d.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",d.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",d.UNION_TYPE_EXTENSION="UnionTypeExtension",d.ENUM_TYPE_EXTENSION="EnumTypeExtension",d.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"},77304:function(t,a,l){"use strict";l.d(a,{$_:function(){return h},Vn:function(){return visit}});var c=l(37826),d=l(25821),p=l(72380),f=l(97359);let h=Object.freeze({});function visit(t,a,l=p.h8){let g,_,S;let w=new Map;for(let t of Object.values(f.h))w.set(t,function(t,a){let l=t[a];
67return"object"==typeof l?l:"function"==typeof l?{enter:l,leave:void 0}:{enter:t.enter,leave:t.leave}}(a,t));let k=Array.isArray(t),E=[t],x=-1,B=[],H=t,U=[],J=[];do{var er,en,ei;let t;x++;let f=x===E.length,ea=f&&0!==B.length;if(f){if(_=0===J.length?void 0:U[U.length-1],H=S,S=J.pop(),ea){if(k){H=H.slice();let t=0;for(let[a,l]of B){let c=a-t;null===l?(H.splice(c,1),t++):H[c]=l}}else for(let[t,a]of(H=Object.defineProperties({},Object.getOwnPropertyDescriptors(H)),B))H[t]=a}x=g.index,E=g.keys,B=g.edits,k=g.inArray,g=g.prev}else if(S){if(null==(H=S[_=k?x:E[x]]))continue;U.push(_)}if(!Array.isArray(H)){(0,p.UG)(H)||(0,c.a)(!1,`Invalid AST Node: ${(0,d.X)(H)}.`);let l=f?null===(er=w.get(H.kind))||void 0===er?void 0:er.leave:null===(en=w.get(H.kind))||void 0===en?void 0:en.enter;if((t=null==l?void 0:l.call(a,H,_,S,U,J))===h)break;if(!1===t){if(!f){U.pop();continue}}else if(void 0!==t&&(B.push([_,t]),!f)){if((0,p.UG)(t))H=t;else{U.pop();continue}}}void 0===t&&ea&&B.push([_,H]),f?U.pop():(g={inArray:k,index:x,keys:E,edits:B,prev:g},E=(k=Array.isArray(H))?H:null!==(ei=l[H.kind])&&void 0!==ei?ei:[],x=-1,B=[],S&&J.push(S),S=H)}while(void 0!==g);return 0!==B.length?B[B.length-1][1]:t}},56275:function(t,a,l){"use strict";let c;l.d(a,{g7:function(){return w},dP:function(){return dep},re:function(){return wrap}});var d=l(75028),p=l(2379);let f=null,h={},g=1;function maybe(t){try{return t()}catch(t){}}let _="@wry/context:Slot",S=maybe(()=>globalThis)||maybe(()=>global)||Object.create(null),w=S[_]||Array[_]||function(t){try{Object.defineProperty(S,_,{value:t,enumerable:!1,writable:!1,configurable:!0})}finally{return t}}(class{constructor(){this.id=["slot",g++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let t=f;t;t=t.parent)if(this.id in t.slots){let a=t.slots[this.id];if(a===h)break;return t!==f&&(f.slots[this.id]=a),!0}return f&&(f.slots[this.id]=h),!1}getValue(){if(this.hasValue())return f.slots[this.id]}withValue(t,a,l,c){let d={__proto__:null,[this.id]:t},p=f;f={parent:p,slots:d};try{return a.apply(c,l)}finally{f=p}}static bind(t){let a=f;return function(){let l=f;try{return f=a,t.apply(this,arguments)}finally{f=l}}}static noContext(t,a,l){if(!f)return t.apply(l,a);{let c=f;try{return f=null,t.apply(l,a)}finally{f=c}}}}),{bind:k,noContext:E}=w,x=new w,{hasOwnProperty:B}=Object.prototype,H=Array.from||function(t){let a=[];return t.forEach(t=>a.push(t)),a};function maybeUnsubscribe(t){let{unsubscribe:a}=t;"function"==typeof a&&(t.unsubscribe=void 0,a())}let U=[];function assert(t,a){if(!t)throw Error(a||"assertion failure")}function valueIs(t,a){let l=t.length;return l>0&&l===a.length&&t[l-1]===a[l-1]}function valueGet(t){switch(t.length){case 0:throw Error("unknown value");case 1:return t[0];case 2:throw t[1]}}let Entry=class Entry{constructor(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Entry.count}peek(){if(1===this.value.length&&!mightBeDirty(this))return rememberParent(this),this.value[0]}recompute(t){var a;return assert(!this.recomputing,"already recomputing"),rememberParent(this),mightBeDirty(this)&&(forgetChildren(this),x.withValue(this,recomputeNewValue,[this,t]),function(t,a){if("function"==typeof t.subscribe)try{maybeUnsubscribe(t),t.unsubscribe=t.subscribe.apply(null,a)}catch(a){return t.setDirty(),!1}return!0}(this,t)&&(this.dirty=!1,mightBeDirty(this)||(a=this,eachParent(a,reportCleanChild)))),valueGet(this.value)}setDirty(){this.dirty||(this.dirty=!0,eachParent(this,reportDirtyChild),maybeUnsubscribe(this))}dispose(){this.setDirty(),forgetChildren(this),eachParent(this,(t,a)=>{t.setDirty(),forgetChild(t,this)})}forget(){this.dispose()}dependOn(t){t.add(this),this.deps||(this.deps=U.pop()||new Set),this.deps.add(t)}forgetDeps(){this.deps&&(H(this.deps).forEach(t=>t.delete(this)),this.deps.clear(),U.push(this.deps),this.deps=null)}};function rememberParent(t){let a=x.getValue();if(a)return t.parents.add(a),a.childValues.has(t)||a.childValues.set(t,[]),mightBeDirty(t)?reportDirtyChild(a,t):reportCleanChild(a,t),a}function recomputeNewValue(t,a){let l;t.recomputing=!0;let{normalizeResult:c}=t;c&&1===t.value.length&&(l=t.value.slice(0)),t.value.length=0;try{if(t.value[0]=t.fn.apply(null,a),c&&l&&!valueIs(l,t.value))try{t.value[0]=c(t.value[0],l[0])}catch(t){}}catch(a){t.value[1]=a}t.recomputing=!1}function mightBeDirty(t){return t.dirty||!!(t.dirtyChildren&&t.dirtyChildren.size)}function eachParent(t,a){let l=t.parents.size;if(l){let c=H(t.parents);for(let d=0;d<l;++d)a(c[d],t)}}function reportDirtyChild(t,a){assert(t.childValues.has(a)),assert(mightBeDirty(a));let l=!mightBeDirty(t);if(t.dirtyChildren){if(t.dirtyChildren.has(a))return}else t.dirtyChildren=U.pop()||new Set;t.dirtyChildren.add(a),l&&eachParent(t,reportDirtyChild)}function reportCleanChild(t,a){assert(t.childValues.has(a)),assert(!mightBeDirty(a));let l=t.childValues.get(a);0===l.length?t.childValues.set(a,a.value.slice(0)):valueIs(l,a.value)||t.setDirty(),removeDirtyChild(t,a),mightBeDirty(t)||eachParent(t,reportCleanChild)}function removeDirtyChild(t,a){let l=t.dirtyChildren;l&&(l.delete(a),0===l.size&&(U.length<100&&U.push(l),t.dirtyChildren=null))}function forgetChildren(t){t.childValues.size>
670&&t.childValues.forEach((a,l)=>{forgetChild(t,l)}),t.forgetDeps(),assert(null===t.dirtyChildren)}function forgetChild(t,a){a.parents.delete(t),t.childValues.delete(a),removeDirtyChild(t,a)}Entry.count=0;let J={setDirty:!0,dispose:!0,forget:!0};function dep(t){let a=new Map,l=t&&t.subscribe;function depend(t){let c=x.getValue();if(c){let d=a.get(t);d||a.set(t,d=new Set),c.dependOn(d),"function"==typeof l&&(maybeUnsubscribe(d),d.unsubscribe=l(t))}}return depend.dirty=function(t,l){let c=a.get(t);if(c){let d=l&&B.call(J,l)?l:"setDirty";H(c).forEach(t=>t[d]()),a.delete(t),maybeUnsubscribe(c)}},depend}function defaultMakeCacheKey(...t){let a=c||(c=new d.B("function"==typeof WeakMap));return a.lookupArray(t)}let er=new Set;function wrap(t,{max:a=65536,keyArgs:l,makeCacheKey:c=defaultMakeCacheKey,normalizeResult:d,subscribe:f,cache:h=p.e}=Object.create(null)){let g="function"==typeof h?new h(a,t=>t.dispose()):h,optimistic=function(){let a=c.apply(null,l?l.apply(null,arguments):arguments);if(void 0===a)return t.apply(null,arguments);let p=g.get(a);p||(g.set(a,p=new Entry(t)),p.normalizeResult=d,p.subscribe=f,p.forget=()=>g.delete(a));let h=p.recompute(Array.prototype.slice.call(arguments));return g.set(a,p),er.add(g),x.hasValue()||(er.forEach(t=>t.clean()),er.clear()),h};function dirtyKey(t){let a=t&&g.get(t);a&&a.setDirty()}function peekKey(t){let a=t&&g.get(t);if(a)return a.peek()}function forgetKey(t){return!!t&&g.delete(t)}return Object.defineProperty(optimistic,"size",{get:()=>
67g.size,configurable:!1,enumerable:!1}),Object.freeze(optimistic.options={max:a,keyArgs:l,makeCacheKey:c,normalizeResult:d,subscribe:f,cache:g}),optimistic.dirtyKey=dirtyKey,optimistic.dirty=function(){dirtyKey(c.apply(null,arguments))},optimistic.peekKey=peekKey,optimistic.peek=function(){return peekKey(c.apply(null,arguments))},optimistic.forgetKey=forgetKey,optimistic.forget=function(){return forgetKey(c.apply(null,arguments))},optimistic.makeCacheKey=c,optimistic.getKey=l?function(){return c.apply(null,l.apply(null,arguments))}:c,Object.freeze(optimistic)}},66128:function(t,a,l){"use strict";l.d(a,{U6:function(){return setVerbosity},ej:function(){return g},kG:function(){return invariant}});var c,d=l(97582),p="Invariant Violation",f=Object.setPrototypeOf,h=void 0===f?function(t,a){return t.__proto__=a,t}:f,g=function(t){function InvariantError(a){void 0===a&&(a=p);var l=t.call(this,"number"==typeof a?p+": "+a+" (see https://github.com/apollographql/invariant-packages)":a)||this;return l.framesToPop=1,l.name=p,h(l,InvariantError.prototype),l}return(0,d.ZT)(InvariantError,t),InvariantError}(Error);function invariant(t,a){if(!t)throw new g(a)}var _=["debug","log","warn","error","silent"],S=_.indexOf("log");function wrapConsoleMethod(t){return function(){if(_.indexOf(t)>=S)return(console[t]||console.log).apply(console,arguments)}}function setVerbosity(t){var a=_[S];return S=Math.max(0,_.indexOf(t)),a}(c=invariant||(invariant={})).debug=wrapConsoleMethod("debug"),c.log=wrapConsoleMethod("log"),c.warn=wrapConsoleMethod("warn"),c.error=wrapConsoleMethod("error")},97582:function(t,a,l){"use strict";l.d(a,{Jh:function(){return __generator},ZT:function(){return __extends},_T:function(){return __rest},ev:function(){return __spreadArray},mG:function(){return __awaiter},pi:function(){return __assign}});var extendStatics=function(t,a){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(t[l]=a[l])})(t,a)};function __extends(t,a){if("function"!=typeof a&&null!==a)throw TypeError("Class extends value "+String(a)+" is not a constructor or null");function __(){this.constructor=t}extendStatics(t,a),t.prototype=null===a?Object.create(a):(__.prototype=a.prototype,new __)}var __assign=function(){return(__assign=Object.assign||function(t){for(var a,l=1,c=arguments.length;l<c;l++)for(var d in a=arguments[l])Object.prototype.hasOwnProperty.call(a,d)&&(t[d]=a[d]);return t}).apply(this,arguments)};function __rest(t,a){var l={};for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&0>a.indexOf(c)&&(l[c]=t[c]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var d=0,c=Object.getOwnPropertySymbols(t);d<c.length;d++)0>a.indexOf(c[d])&&Object.prototype.propertyIsEnumerable.call(t,c[d])&&(l[c[d]]=t[c[d]]);return l}function __awaiter(t,a,l,c){return new(l||(l=Promise))(function(d,p){function fulfilled(t){try{step(c.next(t))}catch(t){p(t)}}function rejected(t){try{step(c.throw(t))}catch(t){p(t)}}function step(t){var a;t.done?d(t.value):((a=t.value)instanceof l?a:new l(function(t){t(a)})).then(fulfilled,rejected)}step((c=c.apply(t,a||[])).next())})}function __generator(t,a){var l,c,d,p={label:0,sent:function(){if(1&d[0])throw d[1];return d[1]},trys:[],ops:[]},f=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return f.next=verb(0),f.throw=verb(1),f.return=verb(2),"function"==typeof Symbol&&(f[Symbol.iterator]=function(){return this}),f;function verb(h){return function(g){return function(h){if(l)throw TypeError("Generator is already executing.");for(;f&&(f=0,h[0]&&(p=0)),p;)try{if(l=1,c&&(d=2&h[0]?c.return:h[0]?c.throw||((d=c.return)&&d.call(c),0):c.next)&&!(d=d.call(c,h[1])).done)return d;switch(c=0,d&&(h=[2&h[0],d.value]),h[0]){case 0:case 1:d=h;break;case 4:return p.label++,{value:h[1],done:!1};case 5:p.label++,c=h[1],h=[0];continue;case 7:h=p.ops.pop(),p.trys.pop();continue;default:if(!(d=(d=p.trys).length>0&&d[d.length-1])&&(6===h[0]||2===h[0])){p=0;continue}if(3===h[0]&&(!d||h[1]>d[0]&&h[1]<d[3])){p.label=h[1];break}if(6===h[0]&&p.label<d[1]){p.label=d[1],d=h;break}if(d&&p.label<d[2]){p.label=d[2],p.ops.push(h);break}d[2]&&p.ops.pop(),p.trys.pop();continue}h=a.call(t,p)}catch(t){h=[6,t],c=0}finally{l=d=0}if(5&h[0])throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}([h,g])}}}function __spreadArray(t,a,l){if(l||2==arguments.length)for(var c,d=0,p=a.length;d<p;d++)!c&&d in a||(c||(c=Array.prototype.slice.call(a,0,d)),c[d]=a[d]);return t.concat(c||Array.prototype.slice.call(a))}"function"==typeof SuppressedError&&SuppressedError},48216:function(t,a,l){"use strict";function _arrayLikeToArray(t,a){(null==a||a>t.length)&&(a=t.length);for(var l=0,c=Array(a);l<a;l++)c[l]=t[l];return c}function _defineProperties(t,a){for(var l=0;l<a.length;l++){var c=a[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(t,c.key,c)}}function _createClass(t,a,l){return a&&_defineProperties(t.prototype,a),l&&_defineProperties(t,l),Object.defineProperty(t,"prototype",{writable:!1}),t}l.d(a,{y:function(){return g}});var hasSymbols=function(){return"function"==typeof Symbol}
67,hasSymbol=function(t){return hasSymbols()&&!!Symbol[t]},getSymbol=function(t){return hasSymbol(t)?Symbol[t]:"@@"+t};hasSymbols()&&!hasSymbol("observable")&&(Symbol.observable=Symbol("observable"));var c=getSymbol("iterator"),d=getSymbol("observable"),p=getSymbol("species");function getMethod(t,a){var l=t[a];if(null!=l){if("function"!=typeof l)throw TypeError(l+" is not a function");return l}}function getSpecies(t){var a=t.constructor;return void 0!==a&&null===(a=a[p])&&(a=void 0),void 0!==a?a:g}function hostReportError(t){hostReportError.log?hostReportError.log(t):setTimeout(function(){throw t})}function enqueue(t){Promise.resolve().then(function(){try{t()}catch(t){hostReportError(t)}})}function cleanupSubscription(t){var a=t._cleanup;if(void 0!==a){if(t._cleanup=void 0,!a)return;try{if("function"==typeof a)a();else{var l=getMethod(a,"unsubscribe");l&&l.call(a)}}catch(t){hostReportError(t)}}}function closeSubscription(t){t._observer=void 0,t._queue=void 0,t._state="closed"}function notifySubscription(t,a,l){t._state="running";var c=t._observer;try{var d=getMethod(c,a);switch(a){case"next":d&&d.call(c,l);break;case"error":if(closeSubscription(t),d)d.call(c,l);else throw l;break;case"complete":closeSubscription(t),d&&d.call(c)}}catch(t){hostReportError(t)}"closed"===t._state?cleanupSubscription(t):"running"===t._state&&(t._state="ready")}function onNotify(t,a,l){if("closed"!==t._state){if("buffering"===t._state){t._queue.push({type:a,value:l});return}if("ready"!==t._state){t._state="buffering",t._queue=[{type:a,value:l}],enqueue(function(){return function(t){var a=t._queue;if(a){t._queue=void 0,t._state="ready";for(var l=0;l<a.length&&(notifySubscription(t,a[l].type,a[l].value),"closed"!==t._state);++l);}}(t)});return}notifySubscription(t,a,l)}}var f=function(){function Subscription(t,a){this._cleanup=void 0,this._observer=t,this._queue=void 0,this._state="initializing";var l=new h(this);try{this._cleanup=a.call(void 0,l)}catch(t){l.error(t)}"initializing"===this._state&&(this._state="ready")}return Subscription.prototype.unsubscribe=function(){"closed"!==this._state&&(closeSubscription(this),cleanupSubscription(this))},_createClass(Subscription,[{key:"closed",get:function(){return"closed"===this._state}}]),Subscription}(),h=function(){function SubscriptionObserver(t){this._subscription=t}var t=SubscriptionObserver.prototype;return t.next=function(t){onNotify(this._subscription,"next",t)},t.error=function(t){onNotify(this._subscription,"error",t)},t.complete=function(){onNotify(this._subscription,"complete")},_createClass(SubscriptionObserver,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),SubscriptionObserver}(),g=function(){function Observable(t){if(!(this instanceof Observable))throw TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw TypeError("Observable initializer must be a function");this._subscriber=t}var t=Observable.prototype;return t.subscribe=function(t){return("object"!=typeof t||null===t)&&(t={next:t,error:arguments[1],complete:arguments[2]}),new f(t,this._subscriber)},t.forEach=function(t){var a=this;return new Promise(function(l,c){if("function"!=typeof t){c(TypeError(t+" is not a function"));return}function done(){d.unsubscribe(),l()}var d=a.subscribe({next:function(a){try{t(a,done)}catch(t){c(t),d.unsubscribe()}},error:c,complete:l})})},t.map=function(t){var a=this;if("function"!=typeof t)throw TypeError(t+" is not a function");return new(getSpecies(this))(function(l){return a.subscribe({next:function(a){try{a=t(a)}catch(t){return l.error(t)}l.next(a)},error:function(t){l.error(t)},complete:function(){l.complete()}})})},t.filter=function(t){var a=this;if("function"!=typeof t)throw TypeError(t+" is not a function");return new(getSpecies(this))(function(l){return a.subscribe({next:function(a){try{if(!t(a))return}catch(t){return l.error(t)}l.next(a)},error:function(t){l.error(t)},complete:function(){l.complete()}})})},t.reduce=function(t){var a=this;if("function"!=typeof t)throw TypeError(t+" is not a function");var l=getSpecies(this),c=arguments.length>1,d=!1,p=arguments[1],f=p;return new l(function(l){return a.subscribe({next:function(a){var p=!d;
67if(d=!0,!p||c)try{f=t(f,a)}catch(t){return l.error(t)}else f=a},error:function(t){l.error(t)},complete:function(){if(!d&&!c)return l.error(TypeError("Cannot reduce an empty sequence"));l.next(f),l.complete()}})})},t.concat=function(){for(var t=this,a=arguments.length,l=Array(a),c=0;c<a;c++)l[c]=arguments[c];var d=getSpecies(this);return new d(function(a){var c,p=0;return function startNext(t){c=t.subscribe({next:function(t){a.next(t)},error:function(t){a.error(t)},complete:function(){p===l.length?(c=void 0,a.complete()):startNext(d.from(l[p++]))}})}(t),function(){c&&(c.unsubscribe(),c=void 0)}})},t.flatMap=function(t){var a=this;if("function"!=typeof t)throw TypeError(t+" is not a function");var l=getSpecies(this);return new l(function(c){var d=[],p=a.subscribe({next:function(a){if(t)try{a=t(a)}catch(t){return c.error(t)}var p=l.from(a).subscribe({next:function(t){c.next(t)},error:function(t){c.error(t)},complete:function(){var t=d.indexOf(p);t>=0&&d.splice(t,1),completeIfDone()}});d.push(p)},error:function(t){c.error(t)},complete:function(){completeIfDone()}});function completeIfDone(){p.closed&&0===d.length&&c.complete()}return function(){d.forEach(function(t){return t.unsubscribe()}),p.unsubscribe()}})},t[d]=function(){return this},Observable.from=function(t){var a="function"==typeof this?this:Observable;if(null==t)throw TypeError(t+" is not an object");var l=getMethod(t,d);if(l){var p=l.call(t);if(Object(p)!==p)throw TypeError(p+" is not an object");return p instanceof g&&p.constructor===a?p:new a(function(t){return p.subscribe(t)})}if(hasSymbol("iterator")&&(l=getMethod(t,c)))return new a(function(a){enqueue(function(){if(!a.closed){for(var c,d=function(t,a){var l="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(l)return(l=l.call(t)).next.bind(l);if(Array.isArray(t)||(l=function(t,a){if(t){if("string"==typeof t)return _arrayLikeToArray(t,a);var l=Object.prototype.toString.call(t).slice(8,-1);if("Object"===l&&t.constructor&&(l=t.constructor.name),"Map"===l||"Set"===l)return Array.from(t);if("Arguments"===l||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return _arrayLikeToArray(t,a)}}(t))){l&&(t=l);var c=0;return function(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(l.call(t));!(c=d()).done;){var p=c.value;if(a.next(p),a.closed)return}a.complete()}})});if(Array.isArray(t))return new a(function(a){enqueue(function(){if(!a.closed){for(var l=0;l<t.length;++l)if(a.next(t[l]),a.closed)return;a.complete()}})});throw TypeError(t+" is not observable")},Observable.of=function(){for(var t=arguments.length,a=Array(t),l=0;l<t;l++)a[l]=arguments[l];return new("function"==typeof this?this:Observable)(function(t){enqueue(function(){if(!t.closed){for(var l=0;l<a.length;++l)if(t.next(a[l]),t.closed)return;t.complete()}})})},_createClass(Observable,null,[{key:p,get:function(){return this}}]),Observable}();hasSymbols()&&Object.defineProperty(g,Symbol("extensions"),{value:{symbol:d,hostReportError:hostReportError},configurable:!0})}},function(t){var __webpack_exec__=function(a){return t(t.s=a)};t.O(0,[9774,179],function(){return __webpack_exec__(85847),__webpack_exec__(91118),__webpack_exec__(38355)}),_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.