@wellesley/store 1.0.259 → 1.0.260
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var tu=Object.defineProperty,nu=(e,t,n)=>t in e?tu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wr=(e,t,n)=>nu(e,"symbol"!=typeof t?t+"":t,n);function ru(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function ue(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var su="function"==typeof Symbol&&Symbol.observable||"@@observable",mo=su,br=()=>Math.random().toString(36).substring(7).split("").join("."),ou={INIT:`@@redux/INIT${br()}`,REPLACE:`@@redux/REPLACE${br()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${br()}`},Un=ou;function Me(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function Ki(e,t,n){if("function"!=typeof e)throw new Error(ue(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(ue(0));if("function"==typeof t&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if("function"!=typeof n)throw new Error(ue(1));return n(Ki)(e,t)}let r=e,o=t,s=new Map,i=s,a=0,u=!1;function c(){i===s&&(i=new Map,s.forEach(((e,t)=>{i.set(t,e)})))}function l(){if(u)throw new Error(ue(3));return o}function d(e){if("function"!=typeof e)throw new Error(ue(4));if(u)throw new Error(ue(5));let t=!0;c();const n=a++;return i.set(n,e),function(){if(t){if(u)throw new Error(ue(6));t=!1,c(),i.delete(n),s=null}}}function p(e){if(!Me(e))throw new Error(ue(7));if(typeof e.type>"u")throw new Error(ue(8));if("string"!=typeof e.type)throw new Error(ue(17));if(u)throw new Error(ue(9));try{u=!0,o=r(o,e)}finally{u=!1}return(s=i).forEach((e=>{e()})),e}return p({type:Un.INIT}),{dispatch:p,subscribe:d,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error(ue(10));r=e,p({type:Un.REPLACE})},[mo]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(ue(11));function n(){const e=t;e.next&&e.next(l())}return n(),{unsubscribe:e(n)}},[mo](){return this}}}}}function iu(e){Object.keys(e).forEach((t=>{const n=e[t];if(typeof n(void 0,{type:Un.INIT})>"u")throw new Error(ue(12));if(typeof n(void 0,{type:Un.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ue(13))}))}function bs(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}const r=Object.keys(n);let o;try{iu(n)}catch(e){o=e}return function(e={},t){if(o)throw o;let s=!1;const i={};for(let o=0;o<r.length;o++){const a=r[o],u=n[a],c=e[a],l=u(c,t);if(typeof l>"u")throw t&&t.type,new Error(ue(14));i[a]=l,s=s||l!==c}return s=s||r.length!==Object.keys(e).length,s?i:e}}function Vn(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function au(...e){return t=>(n,r)=>{const o=t(n,r);let s=()=>{throw new Error(ue(15))};const i={getState:o.getState,dispatch:(e,...t)=>s(e,...t)},a=e.map((e=>e(i)));return s=Vn(...a)(o.dispatch),{...o,dispatch:s}}}function Yi(e){return Me(e)&&"type"in e&&"string"==typeof e.type}var Ts=Symbol.for("immer-nothing"),xt=Symbol.for("immer-draftable"),_e=Symbol.for("immer-state");function le(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var et=Object.getPrototypeOf;function ke(e){return!!e&&!!e[_e]}function Ce(e){var t;return!!e&&(Ji(e)||Array.isArray(e)||!!e[xt]||!(null==(t=e.constructor)||!t[xt])||nn(e)||rn(e))}var cu=Object.prototype.constructor.toString();function Ji(e){if(!e||"object"!=typeof e)return!1;const t=et(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===cu}function uu(e){return ke(e)||le(15,e),e[_e].base_}function yt(e,t){0===tt(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function tt(e){const t=e[_e];return t?t.type_:Array.isArray(e)?1:nn(e)?2:rn(e)?3:0}function zt(e,t){return 2===tt(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Tr(e,t){return 2===tt(e)?e.get(t):e[t]}function Xi(e,t,n){const r=tt(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function lu(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function nn(e){return e instanceof Map}function rn(e){return e instanceof Set}function Je(e){return e.copy_||e.base_}function Qr(e,t){if(nn(e))return new Map(e);if(rn(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&Ji(e))return et(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[_e];let r=Reflect.ownKeys(n);for(let t=0;t<r.length;t++){const o=r[t],s=n[o];!1===s.writable&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(n[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[o]})}return Object.create(et(e),n)}function ks(e,t=!1){return er(e)||ke(e)||!Ce(e)||(tt(e)>1&&(e.set=e.add=e.clear=e.delete=du),Object.freeze(e),t&&yt(e,((e,t)=>ks(t,!0)))),e}function du(){le(2)}function er(e){return Object.isFrozen(e)}var Ht,Kr={};function nt(e){const t=Kr[e];return t||le(0,e),t}function pu(e,t){Kr[e]||(Kr[e]=t)}function Zi(){return Ht}function fu(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function ho(e,t){t&&(nt("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Yr(e){Jr(e),e.drafts_.forEach(mu),e.drafts_=null}function Jr(e){e===Ht&&(Ht=e.parent_)}function yo(e){return Ht=fu(Ht,e)}function mu(e){const t=e[_e];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function go(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[_e].modified_&&(Yr(t),le(4)),Ce(e)&&(e=Fn(t,e),t.parent_||$n(t,e)),t.patches_&&nt("Patches").generateReplacementPatches_(n[_e].base_,e,t.patches_,t.inversePatches_)):e=Fn(t,n,[]),Yr(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Ts?e:void 0}function Fn(e,t,n){if(er(t))return t;const r=t[_e];if(!r)return yt(t,((o,s)=>_o(e,r,t,o,s,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return $n(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,s=!1;3===r.type_&&(o=new Set(t),t.clear(),s=!0),yt(o,((o,i)=>_o(e,r,t,o,i,n,s))),$n(e,t,!1),n&&e.patches_&&nt("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function _o(e,t,n,r,o,s,i){if(ke(o)){const i=Fn(e,o,s&&t&&3!==t.type_&&!zt(t.assigned_,r)?s.concat(r):void 0);if(Xi(n,r,i),!ke(i))return;e.canAutoFreeze_=!1}else i&&n.add(o);if(Ce(o)&&!er(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Fn(e,o),(!t||!t.scope_.parent_)&&$n(e,o)}}function $n(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ks(t,n)}function hu(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Zi(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,s=Cs;n&&(o=[r],s=Wt);const{revoke:i,proxy:a}=Proxy.revocable(o,s);return r.draft_=a,r.revoke_=i,a}var Cs={get(e,t){if(t===_e)return e;const n=Je(e);if(!zt(n,t))return yu(e,n,t);const r=n[t];return e.finalized_||!Ce(r)?r:r===kr(e.base_,t)?(Cr(e),e.copy_[t]=Zr(r,e)):r},has:(e,t)=>t in Je(e),ownKeys:e=>Reflect.ownKeys(Je(e)),set(e,t,n){const r=ea(Je(e),t);if(null!=r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=kr(Je(e),t),o=null==r?void 0:r[_e];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(lu(n,r)&&(void 0!==n||zt(e.base_,t)))return!0;Cr(e),Xr(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==kr(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Cr(e),Xr(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=Je(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty(){le(11)},getPrototypeOf:e=>et(e.base_),setPrototypeOf(){le(12)}},Wt={};function kr(e,t){const n=e[_e];return(n?Je(n):e)[t]}function yu(e,t,n){var r;const o=ea(t,n);return o?"value"in o?o.value:null==(r=o.get)?void 0:r.call(e.draft_):void 0}function ea(e,t){if(!(t in e))return;let n=et(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=et(n)}}function Xr(e){e.modified_||(e.modified_=!0,e.parent_&&Xr(e.parent_))}function Cr(e){e.copy_||(e.copy_=Qr(e.base_,e.scope_.immer_.useStrictShallowCopy_))}yt(Cs,((e,t)=>{Wt[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Wt.deleteProperty=function(e,t){return Wt.set.call(this,e,t,void 0)},Wt.set=function(e,t,n){return Cs.set.call(this,e[0],t,n,e[0])};var gu=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...o){return r.produce(e,(e=>t.call(this,e,...o)))}}let r;if("function"!=typeof t&&le(6),void 0!==n&&"function"!=typeof n&&le(7),Ce(e)){const o=yo(this),s=Zr(e,void 0);let i=!0;try{r=t(s),i=!1}finally{i?Yr(o):Jr(o)}return ho(o,n),go(r,o)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===Ts&&(r=void 0),this.autoFreeze_&&ks(r,!0),n){const t=[],o=[];nt("Patches").generateReplacementPatches_(e,r,t,o),n(t,o)}return r}le(1,e)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;return[this.produce(e,t,((e,t)=>{n=e,r=t})),n,r]},"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof(null==e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Ce(e)||le(8),ke(e)&&(e=ta(e));const t=yo(this),n=Zr(e,void 0);return n[_e].isManual_=!0,Jr(t),n}finishDraft(e,t){const n=e&&e[_e];(!n||!n.isManual_)&&le(9);const{scope_:r}=n;return ho(r,t),go(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=nt("Patches").applyPatches_;return ke(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};function Zr(e,t){const n=nn(e)?nt("MapSet").proxyMap_(e,t):rn(e)?nt("MapSet").proxySet_(e,t):hu(e,t);return(t?t.scope_:Zi()).drafts_.push(n),n}function ta(e){return ke(e)||le(10,e),na(e)}function na(e){if(!Ce(e)||er(e))return e;const t=e[_e];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Qr(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Qr(e,!0);return yt(n,((e,t)=>{Xi(n,e,na(t))})),t&&(t.finalized_=!1),n}function _u(){const e="replace",t="add",n="remove";function r(e){if(!Ce(e))return e;if(Array.isArray(e))return e.map(r);if(nn(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,r(t)])));if(rn(e))return new Set(Array.from(e).map(r));const t=Object.create(et(e));for(const n in e)t[n]=r(e[n]);return zt(e,xt)&&(t[xt]=e[xt]),t}function o(e){return ke(e)?r(e):e}pu("Patches",{applyPatches_:function(o,s){return s.forEach((s=>{const{path:i,op:a}=s;let u=o;for(let e=0;e<i.length-1;e++){const t=tt(u);let n=i[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||"constructor"===n)&&le(19),"function"==typeof u&&"prototype"===n&&le(19),u=Tr(u,n),"object"!=typeof u&&le(18,i.join("/"))}const c=tt(u),l=r(s.value),d=i[i.length-1];switch(a){case e:switch(c){case 2:return u.set(d,l);case 3:le(16);default:return u[d]=l}case t:switch(c){case 1:return"-"===d?u.push(l):u.splice(d,0,l);case 2:return u.set(d,l);case 3:return u.add(l);default:return u[d]=l}case n:switch(c){case 1:return u.splice(d,1);case 2:return u.delete(d);case 3:return u.delete(s.value);default:return delete u[d]}default:le(17,a)}})),o},generatePatches_:function(r,s,i,a){switch(r.type_){case 0:case 2:return function(r,s,i,a){const{base_:u,copy_:c}=r;yt(r.assigned_,((r,l)=>{const d=Tr(u,r),p=Tr(c,r),m=l?zt(u,r)?e:t:n;if(d===p&&m===e)return;const h=s.concat(r);i.push(m===n?{op:m,path:h}:{op:m,path:h,value:p}),a.push(m===t?{op:n,path:h}:m===n?{op:t,path:h,value:o(d)}:{op:e,path:h,value:o(d)})}))}(r,s,i,a);case 1:return function(r,s,i,a){let{base_:u,assigned_:c}=r,l=r.copy_;l.length<u.length&&([u,l]=[l,u],[i,a]=[a,i]);for(let t=0;t<u.length;t++)if(c[t]&&l[t]!==u[t]){const n=s.concat([t]);i.push({op:e,path:n,value:o(l[t])}),a.push({op:e,path:n,value:o(u[t])})}for(let e=u.length;e<l.length;e++){const n=s.concat([e]);i.push({op:t,path:n,value:o(l[e])})}for(let e=l.length-1;u.length<=e;--e){const t=s.concat([e]);a.push({op:n,path:t})}}(r,s,i,a);case 3:return function(e,r,o,s){let{base_:i,copy_:a}=e,u=0;i.forEach((e=>{if(!a.has(e)){const i=r.concat([u]);o.push({op:n,path:i,value:e}),s.unshift({op:t,path:i,value:e})}u++})),u=0,a.forEach((e=>{if(!i.has(e)){const i=r.concat([u]);o.push({op:t,path:i,value:e}),s.unshift({op:n,path:i,value:e})}u++}))}(r,s,i,a)}},generateReplacementPatches_:function(t,n,r,o){r.push({op:e,path:[],value:n===Ts?void 0:n}),o.push({op:e,path:[],value:t})}})}var Se=new gu,sn=Se.produce,ra=Se.produceWithPatches.bind(Se);Se.setAutoFreeze.bind(Se),Se.setUseStrictShallowCopy.bind(Se);var vo=Se.applyPatches.bind(Se);function vu(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function Su(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function Eu(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const n=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}Se.createDraft.bind(Se),Se.finishDraft.bind(Se);var So=e=>Array.isArray(e)?e:[e];function Iu(e){const t=Array.isArray(e[0])?e[0]:e;return Eu(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function wu(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}var bu=class{constructor(e){this.value=e}deref(){return this.value}},Tu=typeof WeakRef<"u"?WeakRef:bu,ku=0,Eo=1;function _n(){return{s:ku,v:void 0,o:null,p:null}}function qt(e,t={}){let n=_n();const{resultEqualityCheck:r}=t;let o,s=0;function i(){var t;let i=n;const{length:a}=arguments;for(let e=0,t=a;e<t;e++){const t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=i.o;null===e&&(i.o=e=new WeakMap);const n=e.get(t);void 0===n?(i=_n(),e.set(t,i)):i=n}else{let e=i.p;null===e&&(i.p=e=new Map);const n=e.get(t);void 0===n?(i=_n(),e.set(t,i)):i=n}}const u=i;let c;if(i.s===Eo?c=i.v:(c=e.apply(null,arguments),s++),u.s=Eo,r){const e=(null==(t=null==o?void 0:o.deref)?void 0:t.call(o))??o;null!=e&&r(e,c)&&(c=e,0!==s&&s--),o="object"==typeof c&&null!==c||"function"==typeof c?new Tu(c):c}return u.v=c,c}return i.clearCache=()=>{n=_n(),i.resetResultsCount()},i.resultsCount=()=>s,i.resetResultsCount=()=>{s=0},i}function sa(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,o=0,s={},i=e.pop();"object"==typeof i&&(s=i,i=e.pop()),vu(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const a={...n,...s},{memoize:u,memoizeOptions:c=[],argsMemoize:l=qt,argsMemoizeOptions:d=[],devModeChecks:p={}}=a,m=So(c),h=So(d),f=Iu(e),y=u((function(){return r++,i.apply(null,arguments)}),...m),g=l((function(){o++;const e=wu(f,arguments);return t=y.apply(null,e),t}),...h);return Object.assign(g,{resultFunc:i,memoizedResultFunc:y,dependencies:f,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:u,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var de=sa(qt),Cu=Object.assign(((e,t=de)=>{Su(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>Cu});function oa(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}var Ou=oa(),Ru=oa,Mu={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.16.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/store/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/store/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.16.0/bin",TURBO_HASH:"98ecacf4158cbab4",NODE:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_package_name:"@wellesley/store",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.259",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.16.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/store",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/store",EDITOR:"vi",NODE_ENV:"production",BUILD_NUMBER:"2944",APP_NAME:"@wellesley/store"},Pu=(...e)=>{const t=sa(...e),n=Object.assign(((...e)=>{const n=t(...e),r=(e,...t)=>n(ke(e)?ta(e):e,...t);return Object.assign(r,n),r}),{withTypes:()=>n});return n};Pu(qt);var Du=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Vn:Vn.apply(null,arguments)},Au=e=>e&&"function"==typeof e.match;function ie(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(ce(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>Yi(t)&&t.type===e,n}var ia=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function Io(e){return Ce(e)?sn(e,(()=>{})):e}function es(e,t,n){if(e.has(t)){let r=e.get(t);return n.update&&(r=n.update(r,t,e),e.set(t,r)),r}if(!n.insert)throw new Error(ce(10));const r=n.insert(t,e);return e.set(t,r),r}function xu(e){return"boolean"==typeof e}var Bu=()=>function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:o=!0}=e??{};let s=new ia;return t&&(xu(t)?s.push(Ou):s.push(Ru(t.extraArgument))),s},lt="RTK_autoBatch",Ct=()=>e=>({payload:e,meta:{[lt]:!0}}),aa=e=>t=>{setTimeout(t,e)},Nu=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:aa(10),Lu=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,s=!1,i=!1;const a=new Set,u="tick"===e.type?queueMicrotask:"raf"===e.type?Nu:"callback"===e.type?e.queueNotification:aa(e.timeout),c=()=>{i=!1,s&&(s=!1,a.forEach((e=>e())))};return Object.assign({},r,{subscribe(e){const t=r.subscribe((()=>o&&e()));return a.add(e),()=>{t(),a.delete(e)}},dispatch(e){var t;try{return o=!(null!=(t=null==e?void 0:e.meta)&&t[lt]),s=!o,s&&(i||(i=!0,u(c))),r.dispatch(e)}finally{o=!0}}})},Uu=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new ia(e);return n&&r.push(Lu("object"==typeof n?n:void 0)),r},Vu="production"===Mu.NODE_ENV;function Fu(e){const t=Bu(),{reducer:n,middleware:r,devTools:o=!0,preloadedState:s,enhancers:i}=e;let a,u;if("function"==typeof n)a=n;else{if(!Me(n))throw new Error(ce(1));a=bs(n)}u="function"==typeof r?r(t):t();let c=Vn;o&&(c=Du({trace:!Vu,..."object"==typeof o&&o}));const l=au(...u),d=Uu(l);return Ki(a,s,c(..."function"==typeof i?i(d):d()))}function ca(e){const t={},n=[];let r;const o={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(ce(28));if(r in t)throw new Error(ce(29));return t[r]=n,o},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(r=e,o)};return e(o),[t,n,r]}function $u(e){return"function"==typeof e}function ju(e,t){let n,[r,o,s]=ca(t);if($u(e))n=()=>Io(e());else{const t=Io(e);n=()=>t}function i(e=n(),t){let i=[r[t.type],...o.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===i.filter((e=>!!e)).length&&(i=[s]),i.reduce(((e,n)=>{if(n){if(ke(e)){const r=n(e,t);return void 0===r?e:r}if(Ce(e))return sn(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(ce(9))}return r}}return e}),e)}return i.getInitialState=n,i}var zu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",tr=(e=21)=>{let t="",n=e;for(;n--;)t+=zu[64*Math.random()|0];return t},ua=(e,t)=>Au(e)?e.match(t):e(t);function qe(...e){return t=>e.some((e=>ua(e,t)))}function Bt(...e){return t=>e.every((e=>ua(e,t)))}function nr(e,t){if(!e||!e.meta)return!1;const n="string"==typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function on(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function Os(...e){return 0===e.length?e=>nr(e,["pending"]):on(e)?t=>qe(...e.map((e=>e.pending)))(t):Os()(e[0])}function gt(...e){return 0===e.length?e=>nr(e,["rejected"]):on(e)?t=>qe(...e.map((e=>e.rejected)))(t):gt()(e[0])}function rr(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||on(e)?n=>Bt(gt(...e),t)(n):rr()(e[0])}function Ge(...e){return 0===e.length?e=>nr(e,["fulfilled"]):on(e)?t=>qe(...e.map((e=>e.fulfilled)))(t):Ge()(e[0])}function ts(...e){return 0===e.length?e=>nr(e,["pending","fulfilled","rejected"]):on(e)?t=>{const n=[];for(const t of e)n.push(t.pending,t.rejected,t.fulfilled);return qe(...n)(t)}:ts()(e[0])}var Hu=["name","message","stack","code"],Or=class{constructor(e,t){wr(this,"_type"),this.payload=e,this.meta=t}},wo=class{constructor(e,t){wr(this,"_type"),this.payload=e,this.meta=t}},Wu=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of Hu)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},bo=(()=>{function e(e,t,n){const r=ie(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),o=ie(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),s=ie(e+"/rejected",((e,t,r,o,s)=>({payload:o,error:(n&&n.serializeError||Wu)(e||"Rejected"),meta:{...s||{},arg:r,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)}})));return Object.assign((function(e){return(i,a,u)=>{const c=null!=n&&n.idGenerator?n.idGenerator(e):tr(),l=new AbortController;let d,p;function m(e){p=e,l.abort()}const h=async function(){var h,f;let y;try{let s=null==(h=null==n?void 0:n.condition)?void 0:h.call(n,e,{getState:a,extra:u});if(Gu(s)&&(s=await s),!1===s||l.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=new Promise(((e,t)=>{d=()=>{t({name:"AbortError",message:p||"Aborted"})},l.signal.addEventListener("abort",d)}));i(o(c,e,null==(f=null==n?void 0:n.getPendingMeta)?void 0:f.call(n,{requestId:c,arg:e},{getState:a,extra:u}))),y=await Promise.race([g,Promise.resolve(t(e,{dispatch:i,getState:a,extra:u,requestId:c,signal:l.signal,abort:m,rejectWithValue:(e,t)=>new Or(e,t),fulfillWithValue:(e,t)=>new wo(e,t)})).then((t=>{if(t instanceof Or)throw t;return t instanceof wo?r(t.payload,c,e,t.meta):r(t,c,e)}))])}catch(t){y=t instanceof Or?s(null,c,e,t.payload,t.meta):s(t,c,e)}finally{d&&l.signal.removeEventListener("abort",d)}return n&&!n.dispatchConditionRejection&&s.match(y)&&y.meta.condition||i(y),y}();return Object.assign(h,{abort:m,requestId:c,arg:e,unwrap:()=>h.then(qu)})}}),{pending:o,rejected:s,fulfilled:r,settled:qe(s,r),typePrefix:e})}return e.withTypes=()=>e,e})();function qu(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Gu(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}var Qu=Symbol.for("rtk-slice-createasyncthunk");function Ku(e,t){return`${e}/${t}`}function Yu({creators:e}={}){var t;const n=null==(t=null==e?void 0:e.asyncThunk)?void 0:t[Qu];return function(e){const{name:t,reducerPath:r=t}=e;if(!t)throw new Error(ce(11));const o=("function"==typeof e.reducers?e.reducers(Xu()):e.reducers)||{},s=Object.keys(o),i={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},a={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(ce(12));if(n in i.sliceCaseReducersByType)throw new Error(ce(13));return i.sliceCaseReducersByType[n]=t,a},addMatcher:(e,t)=>(i.sliceMatchers.push({matcher:e,reducer:t}),a),exposeAction:(e,t)=>(i.actionCreators[e]=t,a),exposeCaseReducer:(e,t)=>(i.sliceCaseReducersByName[e]=t,a)};function u(){const[t={},n=[],r]="function"==typeof e.extraReducers?ca(e.extraReducers):[e.extraReducers],o={...t,...i.sliceCaseReducersByType};return ju(e.initialState,(e=>{for(let t in o)e.addCase(t,o[t]);for(let t of i.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}))}s.forEach((r=>{const s=o[r],i={reducerName:r,type:Ku(t,r),createNotation:"function"==typeof e.reducers};el(s)?nl(i,s,a,n):Zu(i,s,a)}));const c=e=>e,l=new Map;let d;function p(e,t){return d||(d=u()),d(e,t)}function m(){return d||(d=u()),d.getInitialState()}function h(t,n=!1){function r(e){let r=e[t];return typeof r>"u"&&n&&(r=m()),r}function o(t=c){const r=es(l,n,{insert:()=>new WeakMap});return es(r,t,{insert:()=>{const r={};for(const[o,s]of Object.entries(e.selectors??{}))r[o]=Ju(s,t,m,n);return r}})}return{reducerPath:t,getSelectors:o,get selectors(){return o(r)},selectSlice:r}}const f={name:t,reducer:p,actions:i.actionCreators,caseReducers:i.sliceCaseReducersByName,getInitialState:m,...h(r),injectInto(e,{reducerPath:t,...n}={}){const o=t??r;return e.inject({reducerPath:o,reducer:p},n),{...f,...h(o,!0)}}};return f}}function Ju(e,t,n,r){function o(o,...s){let i=t(o);return typeof i>"u"&&r&&(i=n()),e(i,...s)}return o.unwrapped=e,o}var me=Yu();function Xu(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}function Zu({type:e,reducerName:t,createNotation:n},r,o){let s,i;if("reducer"in r){if(n&&!tl(r))throw new Error(ce(17));s=r.reducer,i=r.prepare}else s=r;o.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,i?ie(e,i):ie(e))}function el(e){return"asyncThunk"===e._reducerDefinitionType}function tl(e){return"reducerWithPrepare"===e._reducerDefinitionType}function nl({type:e,reducerName:t},n,r,o){if(!o)throw new Error(ce(18));const{payloadCreator:s,fulfilled:i,pending:a,rejected:u,settled:c,options:l}=n,d=o(e,s,l);r.exposeAction(t,d),i&&r.addCase(d.fulfilled,i),a&&r.addCase(d.pending,a),u&&r.addCase(d.rejected,u),c&&r.addMatcher(d.settled,c),r.exposeCaseReducer(t,{fulfilled:i||vn,pending:a||vn,rejected:u||vn,settled:c||vn})}function vn(){}var rl=(e,t)=>{if("function"!=typeof e)throw new Error(ce(32))},Rs="listenerMiddleware",sl=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:s}=e;if(t)o=ie(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(ce(21));return rl(s),{predicate:o,type:t,effect:s}},ol=Object.assign((e=>{const{type:t,predicate:n,effect:r}=sl(e);return{id:tr(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(ce(22))}}}),{withTypes:()=>ol}),il=Object.assign(ie(`${Rs}/add`),{withTypes:()=>il});ie(`${Rs}/removeAll`);var al=Object.assign(ie(`${Rs}/remove`),{withTypes:()=>al}),cl=e=>"reducerPath"in e&&"string"==typeof e.reducerPath,ul=e=>e.flatMap((e=>cl(e)?[[e.reducerPath,e.reducer]]:Object.entries(e))),Ms=Symbol.for("rtk-state-proxy-original"),ll=e=>!!e&&!!e[Ms],dl=new WeakMap,pl=(e,t)=>es(dl,e,{insert:()=>new Proxy(e,{get:(e,n,r)=>{if(n===Ms)return e;const o=Reflect.get(e,n,r);if(typeof o>"u"){const e=t[n.toString()];if(e){const t=e(void 0,{type:tr()});if(typeof t>"u")throw new Error(ce(24));return t}}return o}})}),fl=e=>{if(!ll(e))throw new Error(ce(25));return e[Ms]},ml=(e={})=>e;function hl(...e){const t=Object.fromEntries(ul(e)),n=()=>Object.keys(t).length?bs(t):ml;let r=n();function o(e,t){return r(e,t)}o.withLazyLoadedSlices=()=>o;const s=Object.assign((function(e,n){return function(r,...o){return e(pl(n?n(r,...o):r,t),...o)}}),{original:fl});return Object.assign(o,{inject:(e,s={})=>{const{reducerPath:i,reducer:a}=e,u=t[i];return!s.overrideExisting&&u&&u!==a||(t[i]=a,r=n()),o},selector:s})}function ce(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var yl={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.16.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/store/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/store/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.16.0/bin",TURBO_HASH:"98ecacf4158cbab4",NODE:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_package_name:"@wellesley/store",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.259",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.16.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/store",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/store",EDITOR:"vi",NODE_ENV:"production",BUILD_NUMBER:"2944",APP_NAME:"@wellesley/store"},la=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(la||{});function gl(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function _l(e){return new RegExp("(^|:)//").test(e)}var vl=e=>e.replace(/\/$/,""),Sl=e=>e.replace(/^\//,"");function El(e,t){if(!e)return t;if(!t)return e;if(_l(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=vl(e)}${n}${t=Sl(t)}`}var To=e=>[].concat(...e);function Il(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function wl(){return typeof document>"u"||"hidden"!==document.visibilityState}var ko=Me;function da(e,t){if(e===t||!(ko(e)&&ko(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let o=n.length===r.length;const s=Array.isArray(t)?[]:{};for(const r of n)s[r]=da(e[r],t[r]),o&&(o=e[r]===s[r]);return o?e:s}var Co=(...e)=>fetch(...e),bl=e=>e.status>=200&&e.status<=299,Tl=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function Oo(e){if(!Me(e))return e;const t={...e};for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}function kl({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=Co,paramsSerializer:r,isJsonContentType:o=Tl,jsonContentType:s="application/json",jsonReplacer:i,timeout:a,responseHandler:u,validateStatus:c,...l}={}){return typeof fetch>"u"&&n===Co&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(p,m)=>{const{signal:h,getState:f,extra:y,endpoint:g,forced:v,type:b}=m;let _,{url:S,headers:w=new Headers(l.headers),params:I,responseHandler:A=u??"json",validateStatus:k=c??bl,timeout:E=a,...T}="string"==typeof p?{url:p}:p,C={...l,signal:h,...T};w=new Headers(Oo(w)),C.headers=await t(w,{getState:f,extra:y,endpoint:g,forced:v,type:b})||w;const O=e=>"object"==typeof e&&(Me(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!C.headers.has("content-type")&&O(C.body)&&C.headers.set("content-type",s),O(C.body)&&o(C.headers)&&(C.body=JSON.stringify(C.body,i)),I){const e=~S.indexOf("?")?"&":"?";S+=e+(r?r(I):new URLSearchParams(Oo(I)))}S=El(e,S);const q=new Request(S,C);_={request:new Request(S,C)};let R,x=!1,P=E&&setTimeout((()=>{x=!0,m.abort()}),E);try{R=await n(q)}catch(e){return{error:{status:x?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:_}}finally{P&&clearTimeout(P)}const M=R.clone();_.response=M;let D,N="";try{let e;if(await Promise.all([d(R,A).then((e=>D=e),(t=>e=t)),M.text().then((e=>N=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:R.status,data:N,error:String(e)},meta:_}}return k(R,D)?{data:D,meta:_}:{error:{status:R.status,data:D},meta:_}};async function d(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=o(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var Ro=class{constructor(e,t=void 0){this.value=e,this.meta=t}},Ps=ie("__rtkq/focused"),pa=ie("__rtkq/unfocused"),Ds=ie("__rtkq/online"),fa=ie("__rtkq/offline");function ma(e){return"query"===e.type}function Cl(e){return"mutation"===e.type}function As(e,t,n,r,o,s){return Ol(e)?e(t,n,r,o).map(ns).map(s):Array.isArray(e)?e.map(ns).map(s):[]}function Ol(e){return"function"==typeof e}function ns(e){return"string"==typeof e?{type:e}:e}function Mo(e){return null!=e}function ht(e){let t=0;for(const n in e)t++;return t}function Rl(e,t){return e.catch(t)}var Gt=Symbol("forceQueryFn"),rs=e=>"function"==typeof e[Gt];function Ml({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:o}){const s=new Map,i=new Map,{unsubscribeQueryResult:a,removeMutationResult:u,updateSubscriptionOptions:c}=r.internalActions;return{buildInitiateQuery:function(n,o){const i=(u,{subscribe:l=!0,forceRefetch:d,subscriptionOptions:p,[Gt]:m,...h}={})=>(f,y)=>{var g;const v=e({queryArgs:u,endpointDefinition:o,endpointName:n}),b=t({...h,type:"query",subscribe:l,forceRefetch:d,subscriptionOptions:p,endpointName:n,originalArgs:u,queryCacheKey:v,[Gt]:m}),_=r.endpoints[n].select(u),S=f(b),w=_(y()),{requestId:I,abort:A}=S,k=w.requestId!==I,E=null==(g=s.get(f))?void 0:g[v],T=()=>_(y()),C=Object.assign(m?S.then(T):k&&!E?Promise.resolve(w):Promise.all([E,S]).then(T),{arg:u,requestId:I,subscriptionOptions:p,queryCacheKey:v,abort:A,async unwrap(){const e=await C;if(e.isError)throw e.error;return e.data},refetch:()=>f(i(u,{subscribe:!1,forceRefetch:!0})),unsubscribe(){l&&f(a({queryCacheKey:v,requestId:I}))},updateSubscriptionOptions(e){C.subscriptionOptions=e,f(c({endpointName:n,requestId:I,queryCacheKey:v,options:e}))}});if(!E&&!k&&!m){const e=s.get(f)||{};e[v]=C,s.set(f,e),C.then((()=>{delete e[v],ht(e)||s.delete(f)}))}return C};return i},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:o}={})=>(s,a)=>{const c=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:o}),l=s(c),{requestId:d,abort:p,unwrap:m}=l,h=Rl(l.unwrap().then((e=>({data:e}))),(e=>({error:e}))),f=Object.assign(h,{arg:l.arg,requestId:d,abort:p,unwrap:m,reset:()=>{s(u({requestId:d,fixedCacheKey:o}))}}),y=i.get(s)||{};return i.set(s,y),y[d]=f,f.then((()=>{delete y[d],ht(y)||i.delete(s)})),o&&(y[o]=f,f.then((()=>{y[o]===f&&(delete y[o],ht(y)||i.delete(s))}))),f}},getRunningQueryThunk:function(t,n){return r=>{var i;const a=o.endpointDefinitions[t],u=e({queryArgs:n,endpointDefinition:a,endpointName:t});return null==(i=s.get(r))?void 0:i[u]}},getRunningMutationThunk:function(e,t){return e=>{var n;return null==(n=i.get(e))?void 0:n[t]}},getRunningQueriesThunk:function(){return e=>Object.values(s.get(e)||{}).filter(Mo)},getRunningMutationsThunk:function(){return e=>Object.values(i.get(e)||{}).filter(Mo)}}}function Po(e){return e}function Pl({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:o,assertTagType:s}){const i=async(e,{signal:r,abort:o,rejectWithValue:s,fulfillWithValue:i,dispatch:u,getState:c,extra:l})=>{const d=n[e.endpointName];try{let n,s=Po;const p={signal:r,abort:o,dispatch:u,getState:c,extra:l,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?a(e,c()):void 0},m="query"===e.type?e[Gt]:void 0;if(m?n=m():d.query?(n=await t(d.query(e.originalArgs),p,d.extraOptions),d.transformResponse&&(s=d.transformResponse)):n=await d.queryFn(e.originalArgs,p,d.extraOptions,(e=>t(e,p,d.extraOptions))),typeof process<"u"&&yl.NODE_ENV,n.error)throw new Ro(n.error,n.meta);return i(await s(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[lt]:!0})}catch(t){let n=t;if(n instanceof Ro){let t=Po;d.query&&d.transformErrorResponse&&(t=d.transformErrorResponse);try{return s(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[lt]:!0})}catch(e){n=e}}throw console.error(n),n}};function a(t,n){var r,o,s;const i=null==(o=null==(r=n[e])?void 0:r.queries)?void 0:o[t.queryCacheKey],a=null==(s=n[e])?void 0:s.config.refetchOnMountOrArgChange,u=null==i?void 0:i.fulfilledTimeStamp,c=t.forceRefetch??(t.subscribe&&a);return!!c&&(!0===c||(Number(new Date)-Number(u))/1e3>=c)}const u=bo(`${e}/executeQuery`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[lt]:!0}),condition(t,{getState:r}){var o,s,i;const u=r(),c=null==(s=null==(o=u[e])?void 0:o.queries)?void 0:s[t.queryCacheKey],l=null==c?void 0:c.fulfilledTimeStamp,d=t.originalArgs,p=null==c?void 0:c.originalArgs,m=n[t.endpointName];return!!rs(t)||"pending"!==(null==c?void 0:c.status)&&(!!(a(t,u)||ma(m)&&null!=(i=null==m?void 0:m.forceRefetch)&&i.call(m,{currentArg:d,previousArg:p,endpointState:c,state:u}))||!l)},dispatchConditionRejection:!0}),c=bo(`${e}/executeMutation`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[lt]:!0})});function l(e){return t=>{var n,r;return(null==(r=null==(n=null==t?void 0:t.meta)?void 0:n.arg)?void 0:r.endpointName)===e}}return{queryThunk:u,mutationThunk:c,prefetch:(e,t,n)=>(r,s)=>{const i=(e=>"force"in e)(n)&&n.force,a=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,u=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return o.endpoints[e].initiate(t,r)},c=o.endpoints[e].select(t)(s());if(i)r(u());else if(a){const e=null==c?void 0:c.fulfilledTimeStamp;if(!e)return void r(u());(Number(new Date)-Number(new Date(e)))/1e3>=a&&r(u())}else r(u(!1))},updateQueryData:(e,t,n,r=!0)=>(s,i)=>{const a=o.endpoints[e].select(t)(i());let u,c={patches:[],inversePatches:[],undo:()=>s(o.util.patchQueryData(e,t,c.inversePatches,r))};if("uninitialized"===a.status)return c;if("data"in a)if(Ce(a.data)){const[e,t,r]=ra(a.data,n);c.patches.push(...t),c.inversePatches.push(...r),u=e}else u=n(a.data),c.patches.push({op:"replace",path:[],value:u}),c.inversePatches.push({op:"replace",path:[],value:a.data});return s(o.util.patchQueryData(e,t,c.patches,r)),c},upsertQueryData:(e,t,n)=>r=>r(o.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[Gt]:()=>({data:n})})),patchQueryData:(e,t,i,a)=>(u,c)=>{const l=n[e],d=r({queryArgs:t,endpointDefinition:l,endpointName:e});if(u(o.internalActions.queryResultPatched({queryCacheKey:d,patches:i})),!a)return;const p=o.endpoints[e].select(t)(c()),m=As(l.providesTags,p.data,void 0,t,{},s);u(o.internalActions.updateProvidedBy({queryCacheKey:d,providedTags:m}))},buildMatchThunkActions:function(e,t){return{matchPending:Bt(Os(e),l(t)),matchFulfilled:Bt(Ge(e),l(t)),matchRejected:Bt(gt(e),l(t))}}}}function ha(e,t,n,r){return As(n[e.meta.arg.endpointName][t],Ge(e)?e.payload:void 0,rr(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function Sn(e,t,n){const r=e[t];r&&n(r)}function Qt(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function Do(e,t,n){const r=e[Qt(t)];r&&n(r)}var Ot={};function Dl({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:r,apiUid:o,extractRehydrationInfo:s,hasRehydrationInfo:i},assertTagType:a,config:u}){const c=ie(`${e}/resetApiState`),l=me({name:`${e}/queries`,initialState:Ot,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:Ct()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){Sn(e,t,(e=>{e.data=vo(e.data,n.concat())}))},prepare:Ct()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{var r;const o=rs(n);e[r=n.queryCacheKey]??(e[r]={status:"uninitialized",endpointName:n.endpointName}),Sn(e,n.queryCacheKey,(e=>{e.status="pending",e.requestId=o&&e.requestId?e.requestId:t.requestId,void 0!==n.originalArgs&&(e.originalArgs=n.originalArgs),e.startedTimeStamp=t.startedTimeStamp}))})).addCase(t.fulfilled,((e,{meta:t,payload:n})=>{Sn(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!rs(t.arg))return;const{merge:o}=r[t.arg.endpointName];if(e.status="fulfilled",o)if(void 0!==e.data){const{fulfilledTimeStamp:r,arg:s,baseQueryMeta:i,requestId:a}=t;let u=sn(e.data,(e=>o(e,n,{arg:s.originalArgs,baseQueryMeta:i,fulfilledTimeStamp:r,requestId:a})));e.data=u}else e.data=n;else e.data=r[t.arg.endpointName].structuralSharing??1?da(ke(e.data)?uu(e.data):e.data,n):n;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp}))})).addCase(t.rejected,((e,{meta:{condition:t,arg:n,requestId:r},error:o,payload:s})=>{Sn(e,n.queryCacheKey,(e=>{if(!t){if(e.requestId!==r)return;e.status="rejected",e.error=s??o}}))})).addMatcher(i,((e,t)=>{const{queries:n}=s(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&(e[t]=r)}))}}),d=me({name:`${e}/mutations`,initialState:Ot,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=Qt(t);n in e&&delete e[n]},prepare:Ct()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:o}})=>{r.track&&(e[Qt(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:o})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&Do(e,n,(e=>{e.requestId===n.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)}))})).addCase(n.rejected,((e,{payload:t,error:n,meta:r})=>{r.arg.track&&Do(e,r,(e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)}))})).addMatcher(i,((e,t)=>{const{mutations:n}=s(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&t!==(null==r?void 0:r.requestId)&&(e[t]=r)}))}}),p=me({name:`${e}/invalidation`,initialState:Ot,reducers:{updateProvidedBy:{reducer(e,t){var n,r;const{queryCacheKey:o,providedTags:s}=t.payload;for(const t of Object.values(e))for(const e of Object.values(t)){const t=e.indexOf(o);-1!==t&&e.splice(t,1)}for(const{type:t,id:i}of s){const s=(n=e[t]??(e[t]={}))[r=i||"__internal_without_id"]??(n[r]=[]);s.includes(o)||s.push(o)}},prepare:Ct()}},extraReducers(e){e.addCase(l.actions.removeQueryResult,((e,{payload:{queryCacheKey:t}})=>{for(const n of Object.values(e))for(const e of Object.values(n)){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}})).addMatcher(i,((e,t)=>{var n,r;const{provided:o}=s(t);for(const[t,s]of Object.entries(o))for(const[o,i]of Object.entries(s)){const s=(n=e[t]??(e[t]={}))[r=o||"__internal_without_id"]??(n[r]=[]);for(const e of i)s.includes(e)||s.push(e)}})).addMatcher(qe(Ge(t),rr(t)),((e,t)=>{const n=ha(t,"providesTags",r,a),{queryCacheKey:o}=t.meta.arg;p.caseReducers.updateProvidedBy(e,p.actions.updateProvidedBy({queryCacheKey:o,providedTags:n}))}))}}),m=me({name:`${e}/subscriptions`,initialState:Ot,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),h=me({name:`${e}/internalSubscriptions`,initialState:Ot,reducers:{subscriptionsUpdated:{reducer:(e,t)=>vo(e,t.payload),prepare:Ct()}}}),f=me({name:`${e}/config`,initialState:{online:Il(),focused:wl(),middlewareRegistered:!1,...u},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&o===t||"conflict"}},extraReducers:e=>{e.addCase(Ds,(e=>{e.online=!0})).addCase(fa,(e=>{e.online=!1})).addCase(Ps,(e=>{e.focused=!0})).addCase(pa,(e=>{e.focused=!1})).addMatcher(i,(e=>({...e})))}}),y=bs({queries:l.reducer,mutations:d.reducer,provided:p.reducer,subscriptions:h.reducer,config:f.reducer});return{reducer:(e,t)=>y(c.match(t)?void 0:e,t),actions:{...f.actions,...l.actions,...m.actions,...h.actions,...d.actions,...p.actions,resetApiState:c}}}var Xe=Symbol.for("RTKQ/skipToken"),ya={status:"uninitialized"},Ao=sn(ya,(()=>{})),xo=sn(ya,(()=>{}));function Al({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>Ao,o=e=>xo;return{buildQuerySelector:function(t,o){return a=>{const u=e({queryArgs:a,endpointDefinition:o,endpointName:t});return n(a===Xe?r:e=>{var t,n;return(null==(n=null==(t=i(e))?void 0:t.queries)?void 0:n[u])??Ao},s)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?Qt(e)??Xe:e,n(t===Xe?o:e=>{var n,r;return(null==(r=null==(n=i(e))?void 0:n.mutations)?void 0:r[t])??xo},s)}},selectInvalidatedBy:function(e,n){const r=e[t],o=new Set;for(const e of n.map(ns)){const t=r.provided[e.type];if(!t)continue;let n=(void 0!==e.id?t[e.id]:To(Object.values(t)))??[];for(const e of n)o.add(e)}return To(Array.from(o.values()).map((e=>{const t=r.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))},selectCachedArgsForQuery:function(e,n){return Object.values(e[t].queries).filter((e=>(null==e?void 0:e.endpointName)===n&&"uninitialized"!==e.status)).map((e=>e.originalArgs))}};function s(e){return{...e,...gl(e.status)}}function i(e){return e[t]}}var it=WeakMap?new WeakMap:void 0,Bo=({endpointName:e,queryArgs:t})=>{let n="";const r=null==it?void 0:it.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>Me(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));Me(t)&&(null==it||it.set(t,e)),n=e}return`${e}(${n})`};function xl(...e){return function(t){const n=qt((e=>{var n;return null==(n=t.extractRehydrationInfo)?void 0:n.call(t,e,{reducerPath:t.reducerPath??"api"})})),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=Bo;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:Bo({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},o={endpointDefinitions:{},batch(e){e()},apiUid:tr(),extractRehydrationInfo:n,hasRehydrationInfo:qt((e=>null!=n(e)))},s={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in o.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error(ce(39))}else{o.endpointDefinitions[n]=r;for(const e of i)e.injectEndpoint(n,r)}return s},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const t of e)r.tagTypes.includes(t)||r.tagTypes.push(t);if(t)for(const[e,n]of Object.entries(t))"function"==typeof n?n(o.endpointDefinitions[e]):Object.assign(o.endpointDefinitions[e]||{},n);return s}},i=e.map((e=>e.init(s,r,o)));return s.injectEndpoints({endpoints:t.endpoints})}}function Bl(e){for(let t in e)return!1;return!0}var Nl=2147482.647,Ll=({reducerPath:e,api:t,context:n,internalState:r})=>{const{removeQueryResult:o,unsubscribeQueryResult:s}=t.internalActions;function i(e){const t=r.currentSubscriptions[e];return!!t&&!Bl(t)}const a={};function u(e,t,r,s){const u=n.endpointDefinitions[t],c=(null==u?void 0:u.keepUnusedDataFor)??s.keepUnusedDataFor;if(c===1/0)return;const l=Math.max(0,Math.min(c,Nl));if(!i(e)){const t=a[e];t&&clearTimeout(t),a[e]=setTimeout((()=>{i(e)||r.dispatch(o({queryCacheKey:e})),delete a[e]}),1e3*l)}}return(r,o,i)=>{var c;if(s.match(r)){const t=o.getState()[e],{queryCacheKey:n}=r.payload;u(n,null==(c=t.queries[n])?void 0:c.endpointName,o,t.config)}if(t.util.resetApiState.match(r))for(const[e,t]of Object.entries(a))t&&clearTimeout(t),delete a[e];if(n.hasRehydrationInfo(r)){const t=o.getState()[e],{queries:s}=n.extractRehydrationInfo(r);for(const[e,n]of Object.entries(s))u(e,null==n?void 0:n.endpointName,o,t.config)}}},Ul=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:o,api:s,assertTagType:i,refetchQuery:a,internalState:u})=>{const{removeQueryResult:c}=s.internalActions,l=qe(Ge(r),rr(r)),d=qe(Ge(r,o),gt(r,o));let p=[];function m(n,r){const o=r.getState(),i=o[e];if(p.push(...n),"delayed"===i.config.invalidationBehavior&&function(e){var t,n;for(const n in e.queries)if("pending"===(null==(t=e.queries[n])?void 0:t.status))return!0;for(const t in e.mutations)if("pending"===(null==(n=e.mutations[t])?void 0:n.status))return!0;return!1}(i))return;const l=p;if(p=[],0===l.length)return;const d=s.util.selectInvalidatedBy(o,l);t.batch((()=>{const e=Array.from(d.values());for(const{queryCacheKey:t}of e){const e=i.queries[t],n=u.currentSubscriptions[t]??{};e&&(0===ht(n)?r.dispatch(c({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(a(e,t)))}}))}return(e,t)=>{l(e)?m(ha(e,"invalidatesTags",n,i),t):d(e)?m([],t):s.util.invalidateTags.match(e)&&m(As(e.payload,void 0,void 0,void 0,void 0,i),t)}},Vl=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:o})=>{const s={};function i({queryCacheKey:t},n){const a=n.getState()[e],u=a.queries[t],l=o.currentSubscriptions[t];if(!u||"uninitialized"===u.status)return;const{lowestPollingInterval:d,skipPollingIfUnfocused:p}=c(l);if(!Number.isFinite(d))return;const m=s[t];null!=m&&m.timeout&&(clearTimeout(m.timeout),m.timeout=void 0);const h=Date.now()+d;s[t]={nextPollTimestamp:h,pollingInterval:d,timeout:setTimeout((()=>{(a.config.focused||!p)&&n.dispatch(r(u,t)),i({queryCacheKey:t},n)}),d)}}function a({queryCacheKey:t},n){const r=n.getState()[e].queries[t],a=o.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:l}=c(a);if(!Number.isFinite(l))return void u(t);const d=s[t],p=Date.now()+l;(!d||p<d.nextPollTimestamp)&&i({queryCacheKey:t},n)}function u(e){const t=s[e];null!=t&&t.timeout&&clearTimeout(t.timeout),delete s[e]}function c(e={}){let t=!1,n=Number.POSITIVE_INFINITY;for(let r in e)e[r].pollingInterval&&(n=Math.min(e[r].pollingInterval,n),t=e[r].skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&a(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&a(e.meta.arg,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&i(e.meta.arg,r),n.util.resetApiState.match(e)&&function(){for(const e of Object.keys(s))u(e)}()}},Fl=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:o})=>{const{removeQueryResult:s}=n.internalActions;function i(n,i){const a=n.getState()[e],u=a.queries,c=o.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(c)){const t=u[e],o=c[e];o&&t&&((Object.values(o).some((e=>!0===e[i]))||Object.values(o).every((e=>void 0===e[i]))&&a.config[i])&&(0===ht(o)?n.dispatch(s({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{Ps.match(e)&&i(t,"refetchOnFocus"),Ds.match(e)&&i(t,"refetchOnReconnect")}},No=new Error("Promise never resolved before cacheEntryRemoved."),$l=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:o,internalState:s})=>{const i=ts(r),a=ts(o),u=Ge(r,o),c={};function l(t,r,o,s,i){const a=n.endpointDefinitions[t],u=null==a?void 0:a.onCacheEntryAdded;if(!u)return;let l={};const d=new Promise((e=>{l.cacheEntryRemoved=e})),p=Promise.race([new Promise((e=>{l.valueResolved=e})),d.then((()=>{throw No}))]);p.catch((()=>{})),c[o]=l;const m=e.endpoints[t].select("query"===a.type?r:o),h=s.dispatch(((e,t,n)=>n)),f={...s,getCacheEntry:()=>m(s.getState()),requestId:i,extra:h,updateCachedData:"query"===a.type?n=>s.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:p,cacheEntryRemoved:d},y=u(r,f);Promise.resolve(y).catch((e=>{if(e!==No)throw e}))}return(n,s,d)=>{const p=function(t){return i(t)?t.meta.arg.queryCacheKey:a(t)?t.meta.arg.fixedCacheKey??t.meta.requestId:e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?Qt(t.payload):""}(n);if(r.pending.match(n)){const e=d[t].queries[p],r=s.getState()[t].queries[p];!e&&r&&l(n.meta.arg.endpointName,n.meta.arg.originalArgs,p,s,n.meta.requestId)}else if(o.pending.match(n))s.getState()[t].mutations[p]&&l(n.meta.arg.endpointName,n.meta.arg.originalArgs,p,s,n.meta.requestId);else if(u(n)){const e=c[p];null!=e&&e.valueResolved&&(e.valueResolved({data:n.payload,meta:n.meta.baseQueryMeta}),delete e.valueResolved)}else if(e.internalActions.removeQueryResult.match(n)||e.internalActions.removeMutationResult.match(n)){const e=c[p];e&&(delete c[p],e.cacheEntryRemoved())}else if(e.util.resetApiState.match(n))for(const[e,t]of Object.entries(c))delete c[e],t.cacheEntryRemoved()}},jl=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const o=Os(n,r),s=gt(n,r),i=Ge(n,r),a={};return(n,r)=>{var u,c;if(o(n)){const{requestId:o,arg:{endpointName:s,originalArgs:i}}=n.meta,u=t.endpointDefinitions[s],c=null==u?void 0:u.onQueryStarted;if(c){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),a[o]=t;const l=e.endpoints[s].select("query"===u.type?i:o),d=r.dispatch(((e,t,n)=>n)),p={...r,getCacheEntry:()=>l(r.getState()),requestId:o,extra:d,updateCachedData:"query"===u.type?t=>r.dispatch(e.util.updateQueryData(s,i,t)):void 0,queryFulfilled:n};c(i,p)}}else if(i(n)){const{requestId:e,baseQueryMeta:t}=n.meta;null==(u=a[e])||u.resolve({data:n.payload,meta:t}),delete a[e]}else if(s(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;null==(c=a[e])||c.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete a[e]}}},zl=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},Hl=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let o=null,s=null;const{updateSubscriptionOptions:i,unsubscribeQueryResult:a}=e.internalActions,u=()=>n.currentSubscriptions,c={getSubscriptions:u,getSubscriptionCount:e=>ht(u()[e]??{}),isRequestSubscribed:(e,t)=>{var n;const r=u();return!(null==(n=null==r?void 0:r[e])||!n[t])}};return(u,l)=>{if(o||(o=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(u))return o=n.currentSubscriptions={},s=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(u))return[!1,c];const d=((n,r)=>{var o,s,u;if(i.match(r)){const{queryCacheKey:e,requestId:t,options:s}=r.payload;return null!=(o=null==n?void 0:n[e])&&o[t]&&(n[e][t]=s),!0}if(a.match(r)){const{queryCacheKey:e,requestId:t}=r.payload;return n[e]&&delete n[e][t],!0}if(e.internalActions.removeQueryResult.match(r))return delete n[r.payload.queryCacheKey],!0;if(t.pending.match(r)){const{meta:{arg:e,requestId:t}}=r,o=n[s=e.queryCacheKey]??(n[s]={});return o[`${t}_running`]={},e.subscribe&&(o[t]=e.subscriptionOptions??o[t]??{}),!0}let c=!1;if(t.fulfilled.match(r)||t.rejected.match(r)){const e=n[r.meta.arg.queryCacheKey]||{},t=`${r.meta.requestId}_running`;c||(c=!!e[t]),delete e[t]}if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:o}}=r;if(e&&t.subscribe){const e=n[u=t.queryCacheKey]??(n[u]={});e[o]=t.subscriptionOptions??e[o]??{},c=!0}}return c})(n.currentSubscriptions,u);let p=!0;if(d){s||(s=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=ra(o,(()=>t));l.next(e.internalActions.subscriptionsUpdated(r)),o=t,s=null}),500));const i="string"==typeof u.type&&!!u.type.startsWith(r),a=t.rejected.match(u)&&u.meta.condition&&!!u.meta.arg.subscribe;p=!i&&!a}return[p,!1]}};function Wl(e){const{reducerPath:t,queryThunk:n,api:r,context:o}=e,{apiUid:s}=o,i={invalidateTags:ie(`${t}/invalidateTags`)},a=e=>e.type.startsWith(`${t}/`),u=[zl,Ll,Ul,Vl,$l,jl];return{middleware:n=>{let i=!1;const l={...e,internalState:{currentSubscriptions:{}},refetchQuery:c,isThisApiSliceAction:a},d=u.map((e=>e(l))),p=Hl(l),m=Fl(l);return e=>u=>{if(!Yi(u))return e(u);i||(i=!0,n.dispatch(r.internalActions.middlewareRegistered(s)));const c={...n,next:e},l=n.getState(),[h,f]=p(u,c,l);let y;if(y=h?e(u):f,n.getState()[t]&&(m(u,c,l),a(u)||o.hasRehydrationInfo(u)))for(let e of d)e(u,c,l);return y}},actions:i};function c(e,t,r={}){return n({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t,...r})}}function Fe(e,...t){return Object.assign(e,...t)}var Lo=Symbol(),ql=({createSelector:e=de}={})=>({name:Lo,init(t,{baseQuery:n,tagTypes:r,reducerPath:o,serializeQueryArgs:s,keepUnusedDataFor:i,refetchOnMountOrArgChange:a,refetchOnFocus:u,refetchOnReconnect:c,invalidationBehavior:l},d){_u();const p=e=>e;Object.assign(t,{reducerPath:o,endpoints:{},internalActions:{onOnline:Ds,onOffline:fa,onFocus:Ps,onFocusLost:pa},util:{}});const{queryThunk:m,mutationThunk:h,patchQueryData:f,updateQueryData:y,upsertQueryData:g,prefetch:v,buildMatchThunkActions:b}=Pl({baseQuery:n,reducerPath:o,context:d,api:t,serializeQueryArgs:s,assertTagType:p}),{reducer:_,actions:S}=Dl({context:d,queryThunk:m,mutationThunk:h,reducerPath:o,assertTagType:p,config:{refetchOnFocus:u,refetchOnReconnect:c,refetchOnMountOrArgChange:a,keepUnusedDataFor:i,reducerPath:o,invalidationBehavior:l}});Fe(t.util,{patchQueryData:f,updateQueryData:y,upsertQueryData:g,prefetch:v,resetApiState:S.resetApiState}),Fe(t.internalActions,S);const{middleware:w,actions:I}=Wl({reducerPath:o,context:d,queryThunk:m,mutationThunk:h,api:t,assertTagType:p});Fe(t.util,I),Fe(t,{reducer:_,middleware:w});const{buildQuerySelector:A,buildMutationSelector:k,selectInvalidatedBy:E,selectCachedArgsForQuery:T}=Al({serializeQueryArgs:s,reducerPath:o,createSelector:e});Fe(t.util,{selectInvalidatedBy:E,selectCachedArgsForQuery:T});const{buildInitiateQuery:C,buildInitiateMutation:O,getRunningMutationThunk:q,getRunningMutationsThunk:R,getRunningQueriesThunk:x,getRunningQueryThunk:P}=Ml({queryThunk:m,mutationThunk:h,api:t,serializeQueryArgs:s,context:d});return Fe(t.util,{getRunningMutationThunk:q,getRunningMutationsThunk:R,getRunningQueryThunk:P,getRunningQueriesThunk:x}),{name:Lo,injectEndpoint(e,n){var r;const o=t;(r=o.endpoints)[e]??(r[e]={}),ma(n)?Fe(o.endpoints[e],{name:e,select:A(e,n),initiate:C(e,n)},b(m,e)):Cl(n)&&Fe(o.endpoints[e],{name:e,select:k(),initiate:O(e)},b(h,e))}}}});function ga(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Uo,Vo,Rr={exports:{}},H={};
|
|
1
|
+
var tu=Object.defineProperty,nu=(e,t,n)=>t in e?tu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wr=(e,t,n)=>nu(e,"symbol"!=typeof t?t+"":t,n);function ru(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function ue(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var su="function"==typeof Symbol&&Symbol.observable||"@@observable",mo=su,br=()=>Math.random().toString(36).substring(7).split("").join("."),ou={INIT:`@@redux/INIT${br()}`,REPLACE:`@@redux/REPLACE${br()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${br()}`},Un=ou;function Me(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function Ki(e,t,n){if("function"!=typeof e)throw new Error(ue(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(ue(0));if("function"==typeof t&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if("function"!=typeof n)throw new Error(ue(1));return n(Ki)(e,t)}let r=e,o=t,s=new Map,i=s,a=0,u=!1;function c(){i===s&&(i=new Map,s.forEach(((e,t)=>{i.set(t,e)})))}function l(){if(u)throw new Error(ue(3));return o}function d(e){if("function"!=typeof e)throw new Error(ue(4));if(u)throw new Error(ue(5));let t=!0;c();const n=a++;return i.set(n,e),function(){if(t){if(u)throw new Error(ue(6));t=!1,c(),i.delete(n),s=null}}}function p(e){if(!Me(e))throw new Error(ue(7));if(typeof e.type>"u")throw new Error(ue(8));if("string"!=typeof e.type)throw new Error(ue(17));if(u)throw new Error(ue(9));try{u=!0,o=r(o,e)}finally{u=!1}return(s=i).forEach((e=>{e()})),e}return p({type:Un.INIT}),{dispatch:p,subscribe:d,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error(ue(10));r=e,p({type:Un.REPLACE})},[mo]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(ue(11));function n(){const e=t;e.next&&e.next(l())}return n(),{unsubscribe:e(n)}},[mo](){return this}}}}}function iu(e){Object.keys(e).forEach((t=>{const n=e[t];if(typeof n(void 0,{type:Un.INIT})>"u")throw new Error(ue(12));if(typeof n(void 0,{type:Un.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ue(13))}))}function bs(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}const r=Object.keys(n);let o;try{iu(n)}catch(e){o=e}return function(e={},t){if(o)throw o;let s=!1;const i={};for(let o=0;o<r.length;o++){const a=r[o],u=n[a],c=e[a],l=u(c,t);if(typeof l>"u")throw t&&t.type,new Error(ue(14));i[a]=l,s=s||l!==c}return s=s||r.length!==Object.keys(e).length,s?i:e}}function Vn(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function au(...e){return t=>(n,r)=>{const o=t(n,r);let s=()=>{throw new Error(ue(15))};const i={getState:o.getState,dispatch:(e,...t)=>s(e,...t)},a=e.map((e=>e(i)));return s=Vn(...a)(o.dispatch),{...o,dispatch:s}}}function Yi(e){return Me(e)&&"type"in e&&"string"==typeof e.type}var Ts=Symbol.for("immer-nothing"),xt=Symbol.for("immer-draftable"),_e=Symbol.for("immer-state");function le(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var et=Object.getPrototypeOf;function ke(e){return!!e&&!!e[_e]}function Ce(e){var t;return!!e&&(Ji(e)||Array.isArray(e)||!!e[xt]||!(null==(t=e.constructor)||!t[xt])||nn(e)||rn(e))}var cu=Object.prototype.constructor.toString();function Ji(e){if(!e||"object"!=typeof e)return!1;const t=et(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===cu}function uu(e){return ke(e)||le(15,e),e[_e].base_}function yt(e,t){0===tt(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function tt(e){const t=e[_e];return t?t.type_:Array.isArray(e)?1:nn(e)?2:rn(e)?3:0}function zt(e,t){return 2===tt(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Tr(e,t){return 2===tt(e)?e.get(t):e[t]}function Xi(e,t,n){const r=tt(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function lu(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function nn(e){return e instanceof Map}function rn(e){return e instanceof Set}function Je(e){return e.copy_||e.base_}function Qr(e,t){if(nn(e))return new Map(e);if(rn(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&Ji(e))return et(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[_e];let r=Reflect.ownKeys(n);for(let t=0;t<r.length;t++){const o=r[t],s=n[o];!1===s.writable&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(n[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[o]})}return Object.create(et(e),n)}function ks(e,t=!1){return er(e)||ke(e)||!Ce(e)||(tt(e)>1&&(e.set=e.add=e.clear=e.delete=du),Object.freeze(e),t&&yt(e,((e,t)=>ks(t,!0)))),e}function du(){le(2)}function er(e){return Object.isFrozen(e)}var Ht,Kr={};function nt(e){const t=Kr[e];return t||le(0,e),t}function pu(e,t){Kr[e]||(Kr[e]=t)}function Zi(){return Ht}function fu(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function ho(e,t){t&&(nt("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Yr(e){Jr(e),e.drafts_.forEach(mu),e.drafts_=null}function Jr(e){e===Ht&&(Ht=e.parent_)}function yo(e){return Ht=fu(Ht,e)}function mu(e){const t=e[_e];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function go(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[_e].modified_&&(Yr(t),le(4)),Ce(e)&&(e=Fn(t,e),t.parent_||$n(t,e)),t.patches_&&nt("Patches").generateReplacementPatches_(n[_e].base_,e,t.patches_,t.inversePatches_)):e=Fn(t,n,[]),Yr(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Ts?e:void 0}function Fn(e,t,n){if(er(t))return t;const r=t[_e];if(!r)return yt(t,((o,s)=>_o(e,r,t,o,s,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return $n(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,s=!1;3===r.type_&&(o=new Set(t),t.clear(),s=!0),yt(o,((o,i)=>_o(e,r,t,o,i,n,s))),$n(e,t,!1),n&&e.patches_&&nt("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function _o(e,t,n,r,o,s,i){if(ke(o)){const i=Fn(e,o,s&&t&&3!==t.type_&&!zt(t.assigned_,r)?s.concat(r):void 0);if(Xi(n,r,i),!ke(i))return;e.canAutoFreeze_=!1}else i&&n.add(o);if(Ce(o)&&!er(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Fn(e,o),(!t||!t.scope_.parent_)&&$n(e,o)}}function $n(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ks(t,n)}function hu(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Zi(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,s=Cs;n&&(o=[r],s=Wt);const{revoke:i,proxy:a}=Proxy.revocable(o,s);return r.draft_=a,r.revoke_=i,a}var Cs={get(e,t){if(t===_e)return e;const n=Je(e);if(!zt(n,t))return yu(e,n,t);const r=n[t];return e.finalized_||!Ce(r)?r:r===kr(e.base_,t)?(Cr(e),e.copy_[t]=Zr(r,e)):r},has:(e,t)=>t in Je(e),ownKeys:e=>Reflect.ownKeys(Je(e)),set(e,t,n){const r=ea(Je(e),t);if(null!=r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=kr(Je(e),t),o=null==r?void 0:r[_e];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(lu(n,r)&&(void 0!==n||zt(e.base_,t)))return!0;Cr(e),Xr(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==kr(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Cr(e),Xr(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=Je(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty(){le(11)},getPrototypeOf:e=>et(e.base_),setPrototypeOf(){le(12)}},Wt={};function kr(e,t){const n=e[_e];return(n?Je(n):e)[t]}function yu(e,t,n){var r;const o=ea(t,n);return o?"value"in o?o.value:null==(r=o.get)?void 0:r.call(e.draft_):void 0}function ea(e,t){if(!(t in e))return;let n=et(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=et(n)}}function Xr(e){e.modified_||(e.modified_=!0,e.parent_&&Xr(e.parent_))}function Cr(e){e.copy_||(e.copy_=Qr(e.base_,e.scope_.immer_.useStrictShallowCopy_))}yt(Cs,((e,t)=>{Wt[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Wt.deleteProperty=function(e,t){return Wt.set.call(this,e,t,void 0)},Wt.set=function(e,t,n){return Cs.set.call(this,e[0],t,n,e[0])};var gu=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...o){return r.produce(e,(e=>t.call(this,e,...o)))}}let r;if("function"!=typeof t&&le(6),void 0!==n&&"function"!=typeof n&&le(7),Ce(e)){const o=yo(this),s=Zr(e,void 0);let i=!0;try{r=t(s),i=!1}finally{i?Yr(o):Jr(o)}return ho(o,n),go(r,o)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===Ts&&(r=void 0),this.autoFreeze_&&ks(r,!0),n){const t=[],o=[];nt("Patches").generateReplacementPatches_(e,r,t,o),n(t,o)}return r}le(1,e)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;return[this.produce(e,t,((e,t)=>{n=e,r=t})),n,r]},"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof(null==e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Ce(e)||le(8),ke(e)&&(e=ta(e));const t=yo(this),n=Zr(e,void 0);return n[_e].isManual_=!0,Jr(t),n}finishDraft(e,t){const n=e&&e[_e];(!n||!n.isManual_)&&le(9);const{scope_:r}=n;return ho(r,t),go(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=nt("Patches").applyPatches_;return ke(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};function Zr(e,t){const n=nn(e)?nt("MapSet").proxyMap_(e,t):rn(e)?nt("MapSet").proxySet_(e,t):hu(e,t);return(t?t.scope_:Zi()).drafts_.push(n),n}function ta(e){return ke(e)||le(10,e),na(e)}function na(e){if(!Ce(e)||er(e))return e;const t=e[_e];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Qr(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Qr(e,!0);return yt(n,((e,t)=>{Xi(n,e,na(t))})),t&&(t.finalized_=!1),n}function _u(){const e="replace",t="add",n="remove";function r(e){if(!Ce(e))return e;if(Array.isArray(e))return e.map(r);if(nn(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,r(t)])));if(rn(e))return new Set(Array.from(e).map(r));const t=Object.create(et(e));for(const n in e)t[n]=r(e[n]);return zt(e,xt)&&(t[xt]=e[xt]),t}function o(e){return ke(e)?r(e):e}pu("Patches",{applyPatches_:function(o,s){return s.forEach((s=>{const{path:i,op:a}=s;let u=o;for(let e=0;e<i.length-1;e++){const t=tt(u);let n=i[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||"constructor"===n)&&le(19),"function"==typeof u&&"prototype"===n&&le(19),u=Tr(u,n),"object"!=typeof u&&le(18,i.join("/"))}const c=tt(u),l=r(s.value),d=i[i.length-1];switch(a){case e:switch(c){case 2:return u.set(d,l);case 3:le(16);default:return u[d]=l}case t:switch(c){case 1:return"-"===d?u.push(l):u.splice(d,0,l);case 2:return u.set(d,l);case 3:return u.add(l);default:return u[d]=l}case n:switch(c){case 1:return u.splice(d,1);case 2:return u.delete(d);case 3:return u.delete(s.value);default:return delete u[d]}default:le(17,a)}})),o},generatePatches_:function(r,s,i,a){switch(r.type_){case 0:case 2:return function(r,s,i,a){const{base_:u,copy_:c}=r;yt(r.assigned_,((r,l)=>{const d=Tr(u,r),p=Tr(c,r),m=l?zt(u,r)?e:t:n;if(d===p&&m===e)return;const h=s.concat(r);i.push(m===n?{op:m,path:h}:{op:m,path:h,value:p}),a.push(m===t?{op:n,path:h}:m===n?{op:t,path:h,value:o(d)}:{op:e,path:h,value:o(d)})}))}(r,s,i,a);case 1:return function(r,s,i,a){let{base_:u,assigned_:c}=r,l=r.copy_;l.length<u.length&&([u,l]=[l,u],[i,a]=[a,i]);for(let t=0;t<u.length;t++)if(c[t]&&l[t]!==u[t]){const n=s.concat([t]);i.push({op:e,path:n,value:o(l[t])}),a.push({op:e,path:n,value:o(u[t])})}for(let e=u.length;e<l.length;e++){const n=s.concat([e]);i.push({op:t,path:n,value:o(l[e])})}for(let e=l.length-1;u.length<=e;--e){const t=s.concat([e]);a.push({op:n,path:t})}}(r,s,i,a);case 3:return function(e,r,o,s){let{base_:i,copy_:a}=e,u=0;i.forEach((e=>{if(!a.has(e)){const i=r.concat([u]);o.push({op:n,path:i,value:e}),s.unshift({op:t,path:i,value:e})}u++})),u=0,a.forEach((e=>{if(!i.has(e)){const i=r.concat([u]);o.push({op:t,path:i,value:e}),s.unshift({op:n,path:i,value:e})}u++}))}(r,s,i,a)}},generateReplacementPatches_:function(t,n,r,o){r.push({op:e,path:[],value:n===Ts?void 0:n}),o.push({op:e,path:[],value:t})}})}var Se=new gu,sn=Se.produce,ra=Se.produceWithPatches.bind(Se);Se.setAutoFreeze.bind(Se),Se.setUseStrictShallowCopy.bind(Se);var vo=Se.applyPatches.bind(Se);function vu(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function Su(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function Eu(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const n=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}Se.createDraft.bind(Se),Se.finishDraft.bind(Se);var So=e=>Array.isArray(e)?e:[e];function Iu(e){const t=Array.isArray(e[0])?e[0]:e;return Eu(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function wu(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}var bu=class{constructor(e){this.value=e}deref(){return this.value}},Tu=typeof WeakRef<"u"?WeakRef:bu,ku=0,Eo=1;function _n(){return{s:ku,v:void 0,o:null,p:null}}function qt(e,t={}){let n=_n();const{resultEqualityCheck:r}=t;let o,s=0;function i(){var t;let i=n;const{length:a}=arguments;for(let e=0,t=a;e<t;e++){const t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=i.o;null===e&&(i.o=e=new WeakMap);const n=e.get(t);void 0===n?(i=_n(),e.set(t,i)):i=n}else{let e=i.p;null===e&&(i.p=e=new Map);const n=e.get(t);void 0===n?(i=_n(),e.set(t,i)):i=n}}const u=i;let c;if(i.s===Eo?c=i.v:(c=e.apply(null,arguments),s++),u.s=Eo,r){const e=(null==(t=null==o?void 0:o.deref)?void 0:t.call(o))??o;null!=e&&r(e,c)&&(c=e,0!==s&&s--),o="object"==typeof c&&null!==c||"function"==typeof c?new Tu(c):c}return u.v=c,c}return i.clearCache=()=>{n=_n(),i.resetResultsCount()},i.resultsCount=()=>s,i.resetResultsCount=()=>{s=0},i}function sa(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,o=0,s={},i=e.pop();"object"==typeof i&&(s=i,i=e.pop()),vu(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const a={...n,...s},{memoize:u,memoizeOptions:c=[],argsMemoize:l=qt,argsMemoizeOptions:d=[],devModeChecks:p={}}=a,m=So(c),h=So(d),f=Iu(e),y=u((function(){return r++,i.apply(null,arguments)}),...m),g=l((function(){o++;const e=wu(f,arguments);return t=y.apply(null,e),t}),...h);return Object.assign(g,{resultFunc:i,memoizedResultFunc:y,dependencies:f,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:u,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var de=sa(qt),Cu=Object.assign(((e,t=de)=>{Su(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>Cu});function oa(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}var Ou=oa(),Ru=oa,Mu={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.16.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/store/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/store/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.16.0/bin",TURBO_HASH:"8b0e1289eaf45a5d",NODE:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_package_name:"@wellesley/store",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.260",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.16.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/store",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/store",EDITOR:"vi",NODE_ENV:"production",BUILD_NUMBER:"2945",APP_NAME:"@wellesley/store"},Pu=(...e)=>{const t=sa(...e),n=Object.assign(((...e)=>{const n=t(...e),r=(e,...t)=>n(ke(e)?ta(e):e,...t);return Object.assign(r,n),r}),{withTypes:()=>n});return n};Pu(qt);var Du=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Vn:Vn.apply(null,arguments)},Au=e=>e&&"function"==typeof e.match;function ie(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(ce(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>Yi(t)&&t.type===e,n}var ia=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function Io(e){return Ce(e)?sn(e,(()=>{})):e}function es(e,t,n){if(e.has(t)){let r=e.get(t);return n.update&&(r=n.update(r,t,e),e.set(t,r)),r}if(!n.insert)throw new Error(ce(10));const r=n.insert(t,e);return e.set(t,r),r}function xu(e){return"boolean"==typeof e}var Bu=()=>function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:o=!0}=e??{};let s=new ia;return t&&(xu(t)?s.push(Ou):s.push(Ru(t.extraArgument))),s},lt="RTK_autoBatch",Ct=()=>e=>({payload:e,meta:{[lt]:!0}}),aa=e=>t=>{setTimeout(t,e)},Nu=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:aa(10),Lu=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,s=!1,i=!1;const a=new Set,u="tick"===e.type?queueMicrotask:"raf"===e.type?Nu:"callback"===e.type?e.queueNotification:aa(e.timeout),c=()=>{i=!1,s&&(s=!1,a.forEach((e=>e())))};return Object.assign({},r,{subscribe(e){const t=r.subscribe((()=>o&&e()));return a.add(e),()=>{t(),a.delete(e)}},dispatch(e){var t;try{return o=!(null!=(t=null==e?void 0:e.meta)&&t[lt]),s=!o,s&&(i||(i=!0,u(c))),r.dispatch(e)}finally{o=!0}}})},Uu=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new ia(e);return n&&r.push(Lu("object"==typeof n?n:void 0)),r},Vu="production"===Mu.NODE_ENV;function Fu(e){const t=Bu(),{reducer:n,middleware:r,devTools:o=!0,preloadedState:s,enhancers:i}=e;let a,u;if("function"==typeof n)a=n;else{if(!Me(n))throw new Error(ce(1));a=bs(n)}u="function"==typeof r?r(t):t();let c=Vn;o&&(c=Du({trace:!Vu,..."object"==typeof o&&o}));const l=au(...u),d=Uu(l);return Ki(a,s,c(..."function"==typeof i?i(d):d()))}function ca(e){const t={},n=[];let r;const o={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(ce(28));if(r in t)throw new Error(ce(29));return t[r]=n,o},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(r=e,o)};return e(o),[t,n,r]}function $u(e){return"function"==typeof e}function ju(e,t){let n,[r,o,s]=ca(t);if($u(e))n=()=>Io(e());else{const t=Io(e);n=()=>t}function i(e=n(),t){let i=[r[t.type],...o.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===i.filter((e=>!!e)).length&&(i=[s]),i.reduce(((e,n)=>{if(n){if(ke(e)){const r=n(e,t);return void 0===r?e:r}if(Ce(e))return sn(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(ce(9))}return r}}return e}),e)}return i.getInitialState=n,i}var zu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",tr=(e=21)=>{let t="",n=e;for(;n--;)t+=zu[64*Math.random()|0];return t},ua=(e,t)=>Au(e)?e.match(t):e(t);function qe(...e){return t=>e.some((e=>ua(e,t)))}function Bt(...e){return t=>e.every((e=>ua(e,t)))}function nr(e,t){if(!e||!e.meta)return!1;const n="string"==typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function on(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function Os(...e){return 0===e.length?e=>nr(e,["pending"]):on(e)?t=>qe(...e.map((e=>e.pending)))(t):Os()(e[0])}function gt(...e){return 0===e.length?e=>nr(e,["rejected"]):on(e)?t=>qe(...e.map((e=>e.rejected)))(t):gt()(e[0])}function rr(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||on(e)?n=>Bt(gt(...e),t)(n):rr()(e[0])}function Ge(...e){return 0===e.length?e=>nr(e,["fulfilled"]):on(e)?t=>qe(...e.map((e=>e.fulfilled)))(t):Ge()(e[0])}function ts(...e){return 0===e.length?e=>nr(e,["pending","fulfilled","rejected"]):on(e)?t=>{const n=[];for(const t of e)n.push(t.pending,t.rejected,t.fulfilled);return qe(...n)(t)}:ts()(e[0])}var Hu=["name","message","stack","code"],Or=class{constructor(e,t){wr(this,"_type"),this.payload=e,this.meta=t}},wo=class{constructor(e,t){wr(this,"_type"),this.payload=e,this.meta=t}},Wu=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of Hu)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},bo=(()=>{function e(e,t,n){const r=ie(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),o=ie(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),s=ie(e+"/rejected",((e,t,r,o,s)=>({payload:o,error:(n&&n.serializeError||Wu)(e||"Rejected"),meta:{...s||{},arg:r,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)}})));return Object.assign((function(e){return(i,a,u)=>{const c=null!=n&&n.idGenerator?n.idGenerator(e):tr(),l=new AbortController;let d,p;function m(e){p=e,l.abort()}const h=async function(){var h,f;let y;try{let s=null==(h=null==n?void 0:n.condition)?void 0:h.call(n,e,{getState:a,extra:u});if(Gu(s)&&(s=await s),!1===s||l.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=new Promise(((e,t)=>{d=()=>{t({name:"AbortError",message:p||"Aborted"})},l.signal.addEventListener("abort",d)}));i(o(c,e,null==(f=null==n?void 0:n.getPendingMeta)?void 0:f.call(n,{requestId:c,arg:e},{getState:a,extra:u}))),y=await Promise.race([g,Promise.resolve(t(e,{dispatch:i,getState:a,extra:u,requestId:c,signal:l.signal,abort:m,rejectWithValue:(e,t)=>new Or(e,t),fulfillWithValue:(e,t)=>new wo(e,t)})).then((t=>{if(t instanceof Or)throw t;return t instanceof wo?r(t.payload,c,e,t.meta):r(t,c,e)}))])}catch(t){y=t instanceof Or?s(null,c,e,t.payload,t.meta):s(t,c,e)}finally{d&&l.signal.removeEventListener("abort",d)}return n&&!n.dispatchConditionRejection&&s.match(y)&&y.meta.condition||i(y),y}();return Object.assign(h,{abort:m,requestId:c,arg:e,unwrap:()=>h.then(qu)})}}),{pending:o,rejected:s,fulfilled:r,settled:qe(s,r),typePrefix:e})}return e.withTypes=()=>e,e})();function qu(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Gu(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}var Qu=Symbol.for("rtk-slice-createasyncthunk");function Ku(e,t){return`${e}/${t}`}function Yu({creators:e}={}){var t;const n=null==(t=null==e?void 0:e.asyncThunk)?void 0:t[Qu];return function(e){const{name:t,reducerPath:r=t}=e;if(!t)throw new Error(ce(11));const o=("function"==typeof e.reducers?e.reducers(Xu()):e.reducers)||{},s=Object.keys(o),i={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},a={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(ce(12));if(n in i.sliceCaseReducersByType)throw new Error(ce(13));return i.sliceCaseReducersByType[n]=t,a},addMatcher:(e,t)=>(i.sliceMatchers.push({matcher:e,reducer:t}),a),exposeAction:(e,t)=>(i.actionCreators[e]=t,a),exposeCaseReducer:(e,t)=>(i.sliceCaseReducersByName[e]=t,a)};function u(){const[t={},n=[],r]="function"==typeof e.extraReducers?ca(e.extraReducers):[e.extraReducers],o={...t,...i.sliceCaseReducersByType};return ju(e.initialState,(e=>{for(let t in o)e.addCase(t,o[t]);for(let t of i.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}))}s.forEach((r=>{const s=o[r],i={reducerName:r,type:Ku(t,r),createNotation:"function"==typeof e.reducers};el(s)?nl(i,s,a,n):Zu(i,s,a)}));const c=e=>e,l=new Map;let d;function p(e,t){return d||(d=u()),d(e,t)}function m(){return d||(d=u()),d.getInitialState()}function h(t,n=!1){function r(e){let r=e[t];return typeof r>"u"&&n&&(r=m()),r}function o(t=c){const r=es(l,n,{insert:()=>new WeakMap});return es(r,t,{insert:()=>{const r={};for(const[o,s]of Object.entries(e.selectors??{}))r[o]=Ju(s,t,m,n);return r}})}return{reducerPath:t,getSelectors:o,get selectors(){return o(r)},selectSlice:r}}const f={name:t,reducer:p,actions:i.actionCreators,caseReducers:i.sliceCaseReducersByName,getInitialState:m,...h(r),injectInto(e,{reducerPath:t,...n}={}){const o=t??r;return e.inject({reducerPath:o,reducer:p},n),{...f,...h(o,!0)}}};return f}}function Ju(e,t,n,r){function o(o,...s){let i=t(o);return typeof i>"u"&&r&&(i=n()),e(i,...s)}return o.unwrapped=e,o}var me=Yu();function Xu(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}function Zu({type:e,reducerName:t,createNotation:n},r,o){let s,i;if("reducer"in r){if(n&&!tl(r))throw new Error(ce(17));s=r.reducer,i=r.prepare}else s=r;o.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,i?ie(e,i):ie(e))}function el(e){return"asyncThunk"===e._reducerDefinitionType}function tl(e){return"reducerWithPrepare"===e._reducerDefinitionType}function nl({type:e,reducerName:t},n,r,o){if(!o)throw new Error(ce(18));const{payloadCreator:s,fulfilled:i,pending:a,rejected:u,settled:c,options:l}=n,d=o(e,s,l);r.exposeAction(t,d),i&&r.addCase(d.fulfilled,i),a&&r.addCase(d.pending,a),u&&r.addCase(d.rejected,u),c&&r.addMatcher(d.settled,c),r.exposeCaseReducer(t,{fulfilled:i||vn,pending:a||vn,rejected:u||vn,settled:c||vn})}function vn(){}var rl=(e,t)=>{if("function"!=typeof e)throw new Error(ce(32))},Rs="listenerMiddleware",sl=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:s}=e;if(t)o=ie(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(ce(21));return rl(s),{predicate:o,type:t,effect:s}},ol=Object.assign((e=>{const{type:t,predicate:n,effect:r}=sl(e);return{id:tr(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(ce(22))}}}),{withTypes:()=>ol}),il=Object.assign(ie(`${Rs}/add`),{withTypes:()=>il});ie(`${Rs}/removeAll`);var al=Object.assign(ie(`${Rs}/remove`),{withTypes:()=>al}),cl=e=>"reducerPath"in e&&"string"==typeof e.reducerPath,ul=e=>e.flatMap((e=>cl(e)?[[e.reducerPath,e.reducer]]:Object.entries(e))),Ms=Symbol.for("rtk-state-proxy-original"),ll=e=>!!e&&!!e[Ms],dl=new WeakMap,pl=(e,t)=>es(dl,e,{insert:()=>new Proxy(e,{get:(e,n,r)=>{if(n===Ms)return e;const o=Reflect.get(e,n,r);if(typeof o>"u"){const e=t[n.toString()];if(e){const t=e(void 0,{type:tr()});if(typeof t>"u")throw new Error(ce(24));return t}}return o}})}),fl=e=>{if(!ll(e))throw new Error(ce(25));return e[Ms]},ml=(e={})=>e;function hl(...e){const t=Object.fromEntries(ul(e)),n=()=>Object.keys(t).length?bs(t):ml;let r=n();function o(e,t){return r(e,t)}o.withLazyLoadedSlices=()=>o;const s=Object.assign((function(e,n){return function(r,...o){return e(pl(n?n(r,...o):r,t),...o)}}),{original:fl});return Object.assign(o,{inject:(e,s={})=>{const{reducerPath:i,reducer:a}=e,u=t[i];return!s.overrideExisting&&u&&u!==a||(t[i]=a,r=n()),o},selector:s})}function ce(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var yl={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.16.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/store/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/store/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.16.0/bin",TURBO_HASH:"8b0e1289eaf45a5d",NODE:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_package_name:"@wellesley/store",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.260",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.16.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/store",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/store",EDITOR:"vi",NODE_ENV:"production",BUILD_NUMBER:"2945",APP_NAME:"@wellesley/store"},la=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(la||{});function gl(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function _l(e){return new RegExp("(^|:)//").test(e)}var vl=e=>e.replace(/\/$/,""),Sl=e=>e.replace(/^\//,"");function El(e,t){if(!e)return t;if(!t)return e;if(_l(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=vl(e)}${n}${t=Sl(t)}`}var To=e=>[].concat(...e);function Il(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function wl(){return typeof document>"u"||"hidden"!==document.visibilityState}var ko=Me;function da(e,t){if(e===t||!(ko(e)&&ko(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let o=n.length===r.length;const s=Array.isArray(t)?[]:{};for(const r of n)s[r]=da(e[r],t[r]),o&&(o=e[r]===s[r]);return o?e:s}var Co=(...e)=>fetch(...e),bl=e=>e.status>=200&&e.status<=299,Tl=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function Oo(e){if(!Me(e))return e;const t={...e};for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}function kl({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=Co,paramsSerializer:r,isJsonContentType:o=Tl,jsonContentType:s="application/json",jsonReplacer:i,timeout:a,responseHandler:u,validateStatus:c,...l}={}){return typeof fetch>"u"&&n===Co&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(p,m)=>{const{signal:h,getState:f,extra:y,endpoint:g,forced:v,type:b}=m;let _,{url:S,headers:w=new Headers(l.headers),params:I,responseHandler:A=u??"json",validateStatus:k=c??bl,timeout:E=a,...T}="string"==typeof p?{url:p}:p,C={...l,signal:h,...T};w=new Headers(Oo(w)),C.headers=await t(w,{getState:f,extra:y,endpoint:g,forced:v,type:b})||w;const O=e=>"object"==typeof e&&(Me(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!C.headers.has("content-type")&&O(C.body)&&C.headers.set("content-type",s),O(C.body)&&o(C.headers)&&(C.body=JSON.stringify(C.body,i)),I){const e=~S.indexOf("?")?"&":"?";S+=e+(r?r(I):new URLSearchParams(Oo(I)))}S=El(e,S);const q=new Request(S,C);_={request:new Request(S,C)};let R,x=!1,P=E&&setTimeout((()=>{x=!0,m.abort()}),E);try{R=await n(q)}catch(e){return{error:{status:x?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:_}}finally{P&&clearTimeout(P)}const M=R.clone();_.response=M;let D,N="";try{let e;if(await Promise.all([d(R,A).then((e=>D=e),(t=>e=t)),M.text().then((e=>N=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:R.status,data:N,error:String(e)},meta:_}}return k(R,D)?{data:D,meta:_}:{error:{status:R.status,data:D},meta:_}};async function d(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=o(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var Ro=class{constructor(e,t=void 0){this.value=e,this.meta=t}},Ps=ie("__rtkq/focused"),pa=ie("__rtkq/unfocused"),Ds=ie("__rtkq/online"),fa=ie("__rtkq/offline");function ma(e){return"query"===e.type}function Cl(e){return"mutation"===e.type}function As(e,t,n,r,o,s){return Ol(e)?e(t,n,r,o).map(ns).map(s):Array.isArray(e)?e.map(ns).map(s):[]}function Ol(e){return"function"==typeof e}function ns(e){return"string"==typeof e?{type:e}:e}function Mo(e){return null!=e}function ht(e){let t=0;for(const n in e)t++;return t}function Rl(e,t){return e.catch(t)}var Gt=Symbol("forceQueryFn"),rs=e=>"function"==typeof e[Gt];function Ml({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:o}){const s=new Map,i=new Map,{unsubscribeQueryResult:a,removeMutationResult:u,updateSubscriptionOptions:c}=r.internalActions;return{buildInitiateQuery:function(n,o){const i=(u,{subscribe:l=!0,forceRefetch:d,subscriptionOptions:p,[Gt]:m,...h}={})=>(f,y)=>{var g;const v=e({queryArgs:u,endpointDefinition:o,endpointName:n}),b=t({...h,type:"query",subscribe:l,forceRefetch:d,subscriptionOptions:p,endpointName:n,originalArgs:u,queryCacheKey:v,[Gt]:m}),_=r.endpoints[n].select(u),S=f(b),w=_(y()),{requestId:I,abort:A}=S,k=w.requestId!==I,E=null==(g=s.get(f))?void 0:g[v],T=()=>_(y()),C=Object.assign(m?S.then(T):k&&!E?Promise.resolve(w):Promise.all([E,S]).then(T),{arg:u,requestId:I,subscriptionOptions:p,queryCacheKey:v,abort:A,async unwrap(){const e=await C;if(e.isError)throw e.error;return e.data},refetch:()=>f(i(u,{subscribe:!1,forceRefetch:!0})),unsubscribe(){l&&f(a({queryCacheKey:v,requestId:I}))},updateSubscriptionOptions(e){C.subscriptionOptions=e,f(c({endpointName:n,requestId:I,queryCacheKey:v,options:e}))}});if(!E&&!k&&!m){const e=s.get(f)||{};e[v]=C,s.set(f,e),C.then((()=>{delete e[v],ht(e)||s.delete(f)}))}return C};return i},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:o}={})=>(s,a)=>{const c=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:o}),l=s(c),{requestId:d,abort:p,unwrap:m}=l,h=Rl(l.unwrap().then((e=>({data:e}))),(e=>({error:e}))),f=Object.assign(h,{arg:l.arg,requestId:d,abort:p,unwrap:m,reset:()=>{s(u({requestId:d,fixedCacheKey:o}))}}),y=i.get(s)||{};return i.set(s,y),y[d]=f,f.then((()=>{delete y[d],ht(y)||i.delete(s)})),o&&(y[o]=f,f.then((()=>{y[o]===f&&(delete y[o],ht(y)||i.delete(s))}))),f}},getRunningQueryThunk:function(t,n){return r=>{var i;const a=o.endpointDefinitions[t],u=e({queryArgs:n,endpointDefinition:a,endpointName:t});return null==(i=s.get(r))?void 0:i[u]}},getRunningMutationThunk:function(e,t){return e=>{var n;return null==(n=i.get(e))?void 0:n[t]}},getRunningQueriesThunk:function(){return e=>Object.values(s.get(e)||{}).filter(Mo)},getRunningMutationsThunk:function(){return e=>Object.values(i.get(e)||{}).filter(Mo)}}}function Po(e){return e}function Pl({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:o,assertTagType:s}){const i=async(e,{signal:r,abort:o,rejectWithValue:s,fulfillWithValue:i,dispatch:u,getState:c,extra:l})=>{const d=n[e.endpointName];try{let n,s=Po;const p={signal:r,abort:o,dispatch:u,getState:c,extra:l,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?a(e,c()):void 0},m="query"===e.type?e[Gt]:void 0;if(m?n=m():d.query?(n=await t(d.query(e.originalArgs),p,d.extraOptions),d.transformResponse&&(s=d.transformResponse)):n=await d.queryFn(e.originalArgs,p,d.extraOptions,(e=>t(e,p,d.extraOptions))),typeof process<"u"&&yl.NODE_ENV,n.error)throw new Ro(n.error,n.meta);return i(await s(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[lt]:!0})}catch(t){let n=t;if(n instanceof Ro){let t=Po;d.query&&d.transformErrorResponse&&(t=d.transformErrorResponse);try{return s(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[lt]:!0})}catch(e){n=e}}throw console.error(n),n}};function a(t,n){var r,o,s;const i=null==(o=null==(r=n[e])?void 0:r.queries)?void 0:o[t.queryCacheKey],a=null==(s=n[e])?void 0:s.config.refetchOnMountOrArgChange,u=null==i?void 0:i.fulfilledTimeStamp,c=t.forceRefetch??(t.subscribe&&a);return!!c&&(!0===c||(Number(new Date)-Number(u))/1e3>=c)}const u=bo(`${e}/executeQuery`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[lt]:!0}),condition(t,{getState:r}){var o,s,i;const u=r(),c=null==(s=null==(o=u[e])?void 0:o.queries)?void 0:s[t.queryCacheKey],l=null==c?void 0:c.fulfilledTimeStamp,d=t.originalArgs,p=null==c?void 0:c.originalArgs,m=n[t.endpointName];return!!rs(t)||"pending"!==(null==c?void 0:c.status)&&(!!(a(t,u)||ma(m)&&null!=(i=null==m?void 0:m.forceRefetch)&&i.call(m,{currentArg:d,previousArg:p,endpointState:c,state:u}))||!l)},dispatchConditionRejection:!0}),c=bo(`${e}/executeMutation`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[lt]:!0})});function l(e){return t=>{var n,r;return(null==(r=null==(n=null==t?void 0:t.meta)?void 0:n.arg)?void 0:r.endpointName)===e}}return{queryThunk:u,mutationThunk:c,prefetch:(e,t,n)=>(r,s)=>{const i=(e=>"force"in e)(n)&&n.force,a=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,u=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return o.endpoints[e].initiate(t,r)},c=o.endpoints[e].select(t)(s());if(i)r(u());else if(a){const e=null==c?void 0:c.fulfilledTimeStamp;if(!e)return void r(u());(Number(new Date)-Number(new Date(e)))/1e3>=a&&r(u())}else r(u(!1))},updateQueryData:(e,t,n,r=!0)=>(s,i)=>{const a=o.endpoints[e].select(t)(i());let u,c={patches:[],inversePatches:[],undo:()=>s(o.util.patchQueryData(e,t,c.inversePatches,r))};if("uninitialized"===a.status)return c;if("data"in a)if(Ce(a.data)){const[e,t,r]=ra(a.data,n);c.patches.push(...t),c.inversePatches.push(...r),u=e}else u=n(a.data),c.patches.push({op:"replace",path:[],value:u}),c.inversePatches.push({op:"replace",path:[],value:a.data});return s(o.util.patchQueryData(e,t,c.patches,r)),c},upsertQueryData:(e,t,n)=>r=>r(o.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[Gt]:()=>({data:n})})),patchQueryData:(e,t,i,a)=>(u,c)=>{const l=n[e],d=r({queryArgs:t,endpointDefinition:l,endpointName:e});if(u(o.internalActions.queryResultPatched({queryCacheKey:d,patches:i})),!a)return;const p=o.endpoints[e].select(t)(c()),m=As(l.providesTags,p.data,void 0,t,{},s);u(o.internalActions.updateProvidedBy({queryCacheKey:d,providedTags:m}))},buildMatchThunkActions:function(e,t){return{matchPending:Bt(Os(e),l(t)),matchFulfilled:Bt(Ge(e),l(t)),matchRejected:Bt(gt(e),l(t))}}}}function ha(e,t,n,r){return As(n[e.meta.arg.endpointName][t],Ge(e)?e.payload:void 0,rr(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function Sn(e,t,n){const r=e[t];r&&n(r)}function Qt(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function Do(e,t,n){const r=e[Qt(t)];r&&n(r)}var Ot={};function Dl({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:r,apiUid:o,extractRehydrationInfo:s,hasRehydrationInfo:i},assertTagType:a,config:u}){const c=ie(`${e}/resetApiState`),l=me({name:`${e}/queries`,initialState:Ot,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:Ct()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){Sn(e,t,(e=>{e.data=vo(e.data,n.concat())}))},prepare:Ct()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{var r;const o=rs(n);e[r=n.queryCacheKey]??(e[r]={status:"uninitialized",endpointName:n.endpointName}),Sn(e,n.queryCacheKey,(e=>{e.status="pending",e.requestId=o&&e.requestId?e.requestId:t.requestId,void 0!==n.originalArgs&&(e.originalArgs=n.originalArgs),e.startedTimeStamp=t.startedTimeStamp}))})).addCase(t.fulfilled,((e,{meta:t,payload:n})=>{Sn(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!rs(t.arg))return;const{merge:o}=r[t.arg.endpointName];if(e.status="fulfilled",o)if(void 0!==e.data){const{fulfilledTimeStamp:r,arg:s,baseQueryMeta:i,requestId:a}=t;let u=sn(e.data,(e=>o(e,n,{arg:s.originalArgs,baseQueryMeta:i,fulfilledTimeStamp:r,requestId:a})));e.data=u}else e.data=n;else e.data=r[t.arg.endpointName].structuralSharing??1?da(ke(e.data)?uu(e.data):e.data,n):n;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp}))})).addCase(t.rejected,((e,{meta:{condition:t,arg:n,requestId:r},error:o,payload:s})=>{Sn(e,n.queryCacheKey,(e=>{if(!t){if(e.requestId!==r)return;e.status="rejected",e.error=s??o}}))})).addMatcher(i,((e,t)=>{const{queries:n}=s(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&(e[t]=r)}))}}),d=me({name:`${e}/mutations`,initialState:Ot,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=Qt(t);n in e&&delete e[n]},prepare:Ct()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:o}})=>{r.track&&(e[Qt(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:o})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&Do(e,n,(e=>{e.requestId===n.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)}))})).addCase(n.rejected,((e,{payload:t,error:n,meta:r})=>{r.arg.track&&Do(e,r,(e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)}))})).addMatcher(i,((e,t)=>{const{mutations:n}=s(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&t!==(null==r?void 0:r.requestId)&&(e[t]=r)}))}}),p=me({name:`${e}/invalidation`,initialState:Ot,reducers:{updateProvidedBy:{reducer(e,t){var n,r;const{queryCacheKey:o,providedTags:s}=t.payload;for(const t of Object.values(e))for(const e of Object.values(t)){const t=e.indexOf(o);-1!==t&&e.splice(t,1)}for(const{type:t,id:i}of s){const s=(n=e[t]??(e[t]={}))[r=i||"__internal_without_id"]??(n[r]=[]);s.includes(o)||s.push(o)}},prepare:Ct()}},extraReducers(e){e.addCase(l.actions.removeQueryResult,((e,{payload:{queryCacheKey:t}})=>{for(const n of Object.values(e))for(const e of Object.values(n)){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}})).addMatcher(i,((e,t)=>{var n,r;const{provided:o}=s(t);for(const[t,s]of Object.entries(o))for(const[o,i]of Object.entries(s)){const s=(n=e[t]??(e[t]={}))[r=o||"__internal_without_id"]??(n[r]=[]);for(const e of i)s.includes(e)||s.push(e)}})).addMatcher(qe(Ge(t),rr(t)),((e,t)=>{const n=ha(t,"providesTags",r,a),{queryCacheKey:o}=t.meta.arg;p.caseReducers.updateProvidedBy(e,p.actions.updateProvidedBy({queryCacheKey:o,providedTags:n}))}))}}),m=me({name:`${e}/subscriptions`,initialState:Ot,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),h=me({name:`${e}/internalSubscriptions`,initialState:Ot,reducers:{subscriptionsUpdated:{reducer:(e,t)=>vo(e,t.payload),prepare:Ct()}}}),f=me({name:`${e}/config`,initialState:{online:Il(),focused:wl(),middlewareRegistered:!1,...u},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&o===t||"conflict"}},extraReducers:e=>{e.addCase(Ds,(e=>{e.online=!0})).addCase(fa,(e=>{e.online=!1})).addCase(Ps,(e=>{e.focused=!0})).addCase(pa,(e=>{e.focused=!1})).addMatcher(i,(e=>({...e})))}}),y=bs({queries:l.reducer,mutations:d.reducer,provided:p.reducer,subscriptions:h.reducer,config:f.reducer});return{reducer:(e,t)=>y(c.match(t)?void 0:e,t),actions:{...f.actions,...l.actions,...m.actions,...h.actions,...d.actions,...p.actions,resetApiState:c}}}var Xe=Symbol.for("RTKQ/skipToken"),ya={status:"uninitialized"},Ao=sn(ya,(()=>{})),xo=sn(ya,(()=>{}));function Al({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>Ao,o=e=>xo;return{buildQuerySelector:function(t,o){return a=>{const u=e({queryArgs:a,endpointDefinition:o,endpointName:t});return n(a===Xe?r:e=>{var t,n;return(null==(n=null==(t=i(e))?void 0:t.queries)?void 0:n[u])??Ao},s)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?Qt(e)??Xe:e,n(t===Xe?o:e=>{var n,r;return(null==(r=null==(n=i(e))?void 0:n.mutations)?void 0:r[t])??xo},s)}},selectInvalidatedBy:function(e,n){const r=e[t],o=new Set;for(const e of n.map(ns)){const t=r.provided[e.type];if(!t)continue;let n=(void 0!==e.id?t[e.id]:To(Object.values(t)))??[];for(const e of n)o.add(e)}return To(Array.from(o.values()).map((e=>{const t=r.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))},selectCachedArgsForQuery:function(e,n){return Object.values(e[t].queries).filter((e=>(null==e?void 0:e.endpointName)===n&&"uninitialized"!==e.status)).map((e=>e.originalArgs))}};function s(e){return{...e,...gl(e.status)}}function i(e){return e[t]}}var it=WeakMap?new WeakMap:void 0,Bo=({endpointName:e,queryArgs:t})=>{let n="";const r=null==it?void 0:it.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>Me(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));Me(t)&&(null==it||it.set(t,e)),n=e}return`${e}(${n})`};function xl(...e){return function(t){const n=qt((e=>{var n;return null==(n=t.extractRehydrationInfo)?void 0:n.call(t,e,{reducerPath:t.reducerPath??"api"})})),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=Bo;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:Bo({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},o={endpointDefinitions:{},batch(e){e()},apiUid:tr(),extractRehydrationInfo:n,hasRehydrationInfo:qt((e=>null!=n(e)))},s={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in o.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error(ce(39))}else{o.endpointDefinitions[n]=r;for(const e of i)e.injectEndpoint(n,r)}return s},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const t of e)r.tagTypes.includes(t)||r.tagTypes.push(t);if(t)for(const[e,n]of Object.entries(t))"function"==typeof n?n(o.endpointDefinitions[e]):Object.assign(o.endpointDefinitions[e]||{},n);return s}},i=e.map((e=>e.init(s,r,o)));return s.injectEndpoints({endpoints:t.endpoints})}}function Bl(e){for(let t in e)return!1;return!0}var Nl=2147482.647,Ll=({reducerPath:e,api:t,context:n,internalState:r})=>{const{removeQueryResult:o,unsubscribeQueryResult:s}=t.internalActions;function i(e){const t=r.currentSubscriptions[e];return!!t&&!Bl(t)}const a={};function u(e,t,r,s){const u=n.endpointDefinitions[t],c=(null==u?void 0:u.keepUnusedDataFor)??s.keepUnusedDataFor;if(c===1/0)return;const l=Math.max(0,Math.min(c,Nl));if(!i(e)){const t=a[e];t&&clearTimeout(t),a[e]=setTimeout((()=>{i(e)||r.dispatch(o({queryCacheKey:e})),delete a[e]}),1e3*l)}}return(r,o,i)=>{var c;if(s.match(r)){const t=o.getState()[e],{queryCacheKey:n}=r.payload;u(n,null==(c=t.queries[n])?void 0:c.endpointName,o,t.config)}if(t.util.resetApiState.match(r))for(const[e,t]of Object.entries(a))t&&clearTimeout(t),delete a[e];if(n.hasRehydrationInfo(r)){const t=o.getState()[e],{queries:s}=n.extractRehydrationInfo(r);for(const[e,n]of Object.entries(s))u(e,null==n?void 0:n.endpointName,o,t.config)}}},Ul=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:o,api:s,assertTagType:i,refetchQuery:a,internalState:u})=>{const{removeQueryResult:c}=s.internalActions,l=qe(Ge(r),rr(r)),d=qe(Ge(r,o),gt(r,o));let p=[];function m(n,r){const o=r.getState(),i=o[e];if(p.push(...n),"delayed"===i.config.invalidationBehavior&&function(e){var t,n;for(const n in e.queries)if("pending"===(null==(t=e.queries[n])?void 0:t.status))return!0;for(const t in e.mutations)if("pending"===(null==(n=e.mutations[t])?void 0:n.status))return!0;return!1}(i))return;const l=p;if(p=[],0===l.length)return;const d=s.util.selectInvalidatedBy(o,l);t.batch((()=>{const e=Array.from(d.values());for(const{queryCacheKey:t}of e){const e=i.queries[t],n=u.currentSubscriptions[t]??{};e&&(0===ht(n)?r.dispatch(c({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(a(e,t)))}}))}return(e,t)=>{l(e)?m(ha(e,"invalidatesTags",n,i),t):d(e)?m([],t):s.util.invalidateTags.match(e)&&m(As(e.payload,void 0,void 0,void 0,void 0,i),t)}},Vl=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:o})=>{const s={};function i({queryCacheKey:t},n){const a=n.getState()[e],u=a.queries[t],l=o.currentSubscriptions[t];if(!u||"uninitialized"===u.status)return;const{lowestPollingInterval:d,skipPollingIfUnfocused:p}=c(l);if(!Number.isFinite(d))return;const m=s[t];null!=m&&m.timeout&&(clearTimeout(m.timeout),m.timeout=void 0);const h=Date.now()+d;s[t]={nextPollTimestamp:h,pollingInterval:d,timeout:setTimeout((()=>{(a.config.focused||!p)&&n.dispatch(r(u,t)),i({queryCacheKey:t},n)}),d)}}function a({queryCacheKey:t},n){const r=n.getState()[e].queries[t],a=o.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:l}=c(a);if(!Number.isFinite(l))return void u(t);const d=s[t],p=Date.now()+l;(!d||p<d.nextPollTimestamp)&&i({queryCacheKey:t},n)}function u(e){const t=s[e];null!=t&&t.timeout&&clearTimeout(t.timeout),delete s[e]}function c(e={}){let t=!1,n=Number.POSITIVE_INFINITY;for(let r in e)e[r].pollingInterval&&(n=Math.min(e[r].pollingInterval,n),t=e[r].skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&a(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&a(e.meta.arg,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&i(e.meta.arg,r),n.util.resetApiState.match(e)&&function(){for(const e of Object.keys(s))u(e)}()}},Fl=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:o})=>{const{removeQueryResult:s}=n.internalActions;function i(n,i){const a=n.getState()[e],u=a.queries,c=o.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(c)){const t=u[e],o=c[e];o&&t&&((Object.values(o).some((e=>!0===e[i]))||Object.values(o).every((e=>void 0===e[i]))&&a.config[i])&&(0===ht(o)?n.dispatch(s({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{Ps.match(e)&&i(t,"refetchOnFocus"),Ds.match(e)&&i(t,"refetchOnReconnect")}},No=new Error("Promise never resolved before cacheEntryRemoved."),$l=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:o,internalState:s})=>{const i=ts(r),a=ts(o),u=Ge(r,o),c={};function l(t,r,o,s,i){const a=n.endpointDefinitions[t],u=null==a?void 0:a.onCacheEntryAdded;if(!u)return;let l={};const d=new Promise((e=>{l.cacheEntryRemoved=e})),p=Promise.race([new Promise((e=>{l.valueResolved=e})),d.then((()=>{throw No}))]);p.catch((()=>{})),c[o]=l;const m=e.endpoints[t].select("query"===a.type?r:o),h=s.dispatch(((e,t,n)=>n)),f={...s,getCacheEntry:()=>m(s.getState()),requestId:i,extra:h,updateCachedData:"query"===a.type?n=>s.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:p,cacheEntryRemoved:d},y=u(r,f);Promise.resolve(y).catch((e=>{if(e!==No)throw e}))}return(n,s,d)=>{const p=function(t){return i(t)?t.meta.arg.queryCacheKey:a(t)?t.meta.arg.fixedCacheKey??t.meta.requestId:e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?Qt(t.payload):""}(n);if(r.pending.match(n)){const e=d[t].queries[p],r=s.getState()[t].queries[p];!e&&r&&l(n.meta.arg.endpointName,n.meta.arg.originalArgs,p,s,n.meta.requestId)}else if(o.pending.match(n))s.getState()[t].mutations[p]&&l(n.meta.arg.endpointName,n.meta.arg.originalArgs,p,s,n.meta.requestId);else if(u(n)){const e=c[p];null!=e&&e.valueResolved&&(e.valueResolved({data:n.payload,meta:n.meta.baseQueryMeta}),delete e.valueResolved)}else if(e.internalActions.removeQueryResult.match(n)||e.internalActions.removeMutationResult.match(n)){const e=c[p];e&&(delete c[p],e.cacheEntryRemoved())}else if(e.util.resetApiState.match(n))for(const[e,t]of Object.entries(c))delete c[e],t.cacheEntryRemoved()}},jl=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const o=Os(n,r),s=gt(n,r),i=Ge(n,r),a={};return(n,r)=>{var u,c;if(o(n)){const{requestId:o,arg:{endpointName:s,originalArgs:i}}=n.meta,u=t.endpointDefinitions[s],c=null==u?void 0:u.onQueryStarted;if(c){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),a[o]=t;const l=e.endpoints[s].select("query"===u.type?i:o),d=r.dispatch(((e,t,n)=>n)),p={...r,getCacheEntry:()=>l(r.getState()),requestId:o,extra:d,updateCachedData:"query"===u.type?t=>r.dispatch(e.util.updateQueryData(s,i,t)):void 0,queryFulfilled:n};c(i,p)}}else if(i(n)){const{requestId:e,baseQueryMeta:t}=n.meta;null==(u=a[e])||u.resolve({data:n.payload,meta:t}),delete a[e]}else if(s(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;null==(c=a[e])||c.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete a[e]}}},zl=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},Hl=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let o=null,s=null;const{updateSubscriptionOptions:i,unsubscribeQueryResult:a}=e.internalActions,u=()=>n.currentSubscriptions,c={getSubscriptions:u,getSubscriptionCount:e=>ht(u()[e]??{}),isRequestSubscribed:(e,t)=>{var n;const r=u();return!(null==(n=null==r?void 0:r[e])||!n[t])}};return(u,l)=>{if(o||(o=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(u))return o=n.currentSubscriptions={},s=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(u))return[!1,c];const d=((n,r)=>{var o,s,u;if(i.match(r)){const{queryCacheKey:e,requestId:t,options:s}=r.payload;return null!=(o=null==n?void 0:n[e])&&o[t]&&(n[e][t]=s),!0}if(a.match(r)){const{queryCacheKey:e,requestId:t}=r.payload;return n[e]&&delete n[e][t],!0}if(e.internalActions.removeQueryResult.match(r))return delete n[r.payload.queryCacheKey],!0;if(t.pending.match(r)){const{meta:{arg:e,requestId:t}}=r,o=n[s=e.queryCacheKey]??(n[s]={});return o[`${t}_running`]={},e.subscribe&&(o[t]=e.subscriptionOptions??o[t]??{}),!0}let c=!1;if(t.fulfilled.match(r)||t.rejected.match(r)){const e=n[r.meta.arg.queryCacheKey]||{},t=`${r.meta.requestId}_running`;c||(c=!!e[t]),delete e[t]}if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:o}}=r;if(e&&t.subscribe){const e=n[u=t.queryCacheKey]??(n[u]={});e[o]=t.subscriptionOptions??e[o]??{},c=!0}}return c})(n.currentSubscriptions,u);let p=!0;if(d){s||(s=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=ra(o,(()=>t));l.next(e.internalActions.subscriptionsUpdated(r)),o=t,s=null}),500));const i="string"==typeof u.type&&!!u.type.startsWith(r),a=t.rejected.match(u)&&u.meta.condition&&!!u.meta.arg.subscribe;p=!i&&!a}return[p,!1]}};function Wl(e){const{reducerPath:t,queryThunk:n,api:r,context:o}=e,{apiUid:s}=o,i={invalidateTags:ie(`${t}/invalidateTags`)},a=e=>e.type.startsWith(`${t}/`),u=[zl,Ll,Ul,Vl,$l,jl];return{middleware:n=>{let i=!1;const l={...e,internalState:{currentSubscriptions:{}},refetchQuery:c,isThisApiSliceAction:a},d=u.map((e=>e(l))),p=Hl(l),m=Fl(l);return e=>u=>{if(!Yi(u))return e(u);i||(i=!0,n.dispatch(r.internalActions.middlewareRegistered(s)));const c={...n,next:e},l=n.getState(),[h,f]=p(u,c,l);let y;if(y=h?e(u):f,n.getState()[t]&&(m(u,c,l),a(u)||o.hasRehydrationInfo(u)))for(let e of d)e(u,c,l);return y}},actions:i};function c(e,t,r={}){return n({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t,...r})}}function Fe(e,...t){return Object.assign(e,...t)}var Lo=Symbol(),ql=({createSelector:e=de}={})=>({name:Lo,init(t,{baseQuery:n,tagTypes:r,reducerPath:o,serializeQueryArgs:s,keepUnusedDataFor:i,refetchOnMountOrArgChange:a,refetchOnFocus:u,refetchOnReconnect:c,invalidationBehavior:l},d){_u();const p=e=>e;Object.assign(t,{reducerPath:o,endpoints:{},internalActions:{onOnline:Ds,onOffline:fa,onFocus:Ps,onFocusLost:pa},util:{}});const{queryThunk:m,mutationThunk:h,patchQueryData:f,updateQueryData:y,upsertQueryData:g,prefetch:v,buildMatchThunkActions:b}=Pl({baseQuery:n,reducerPath:o,context:d,api:t,serializeQueryArgs:s,assertTagType:p}),{reducer:_,actions:S}=Dl({context:d,queryThunk:m,mutationThunk:h,reducerPath:o,assertTagType:p,config:{refetchOnFocus:u,refetchOnReconnect:c,refetchOnMountOrArgChange:a,keepUnusedDataFor:i,reducerPath:o,invalidationBehavior:l}});Fe(t.util,{patchQueryData:f,updateQueryData:y,upsertQueryData:g,prefetch:v,resetApiState:S.resetApiState}),Fe(t.internalActions,S);const{middleware:w,actions:I}=Wl({reducerPath:o,context:d,queryThunk:m,mutationThunk:h,api:t,assertTagType:p});Fe(t.util,I),Fe(t,{reducer:_,middleware:w});const{buildQuerySelector:A,buildMutationSelector:k,selectInvalidatedBy:E,selectCachedArgsForQuery:T}=Al({serializeQueryArgs:s,reducerPath:o,createSelector:e});Fe(t.util,{selectInvalidatedBy:E,selectCachedArgsForQuery:T});const{buildInitiateQuery:C,buildInitiateMutation:O,getRunningMutationThunk:q,getRunningMutationsThunk:R,getRunningQueriesThunk:x,getRunningQueryThunk:P}=Ml({queryThunk:m,mutationThunk:h,api:t,serializeQueryArgs:s,context:d});return Fe(t.util,{getRunningMutationThunk:q,getRunningMutationsThunk:R,getRunningQueryThunk:P,getRunningQueriesThunk:x}),{name:Lo,injectEndpoint(e,n){var r;const o=t;(r=o.endpoints)[e]??(r[e]={}),ma(n)?Fe(o.endpoints[e],{name:e,select:A(e,n),initiate:C(e,n)},b(m,e)):Cl(n)&&Fe(o.endpoints[e],{name:e,select:k(),initiate:O(e)},b(h,e))}}}});function ga(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Uo,Vo,Rr={exports:{}},H={};
|
|
2
2
|
/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react.production.min.js
|
|
@@ -16,4 +16,4 @@ var tu=Object.defineProperty,nu=(e,t,n)=>t in e?tu(e,t,{enumerable:!0,configurab
|
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the MIT license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/function Ql(){if($o)return Pr;$o=1;var e=_a();var t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useSyncExternalStore,r=e.useRef,o=e.useEffect,s=e.useMemo,i=e.useDebugValue;return Pr.useSyncExternalStoreWithSelector=function(e,a,u,c,l){var d=r(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=s((function(){function e(e){if(!o){if(o=!0,n=e,e=c(e),void 0!==l&&p.hasValue){var s=p.value;if(l(s,e))return r=s}return r=e}if(s=r,t(n,e))return s;var i=c(e);return void 0!==l&&l(s,i)?s:(n=e,r=i)}var n,r,o=!1,s=void 0===u?null:u;return[function(){return e(a())},null===s?void 0:function(){return e(s())}]}),[a,u,c,l]);var m=n(e,d[0],d[1]);return o((function(){p.hasValue=!0,p.value=m}),[m]),i(m),m},Pr}function Kl(){return jo||(jo=1,Mr.exports=Ql()),Mr.exports}var Yl=Kl(),Oe="default"in Fo?va:Fo,zo=Symbol.for("react-redux-context"),Ho=typeof globalThis<"u"?globalThis:{};function Jl(){if(!Oe.createContext)return{};const e=Ho[zo]??(Ho[zo]=new Map);let t=e.get(Oe.createContext);return t||(t=Oe.createContext(null),e.set(Oe.createContext,t)),t}var rt=Jl(),Xl=()=>{throw new Error("uSES not initialized!")};function xs(e=rt){return function(){return Oe.useContext(e)}}var Sa=xs(),Ea=Xl,Zl=e=>{Ea=e},ed=(e,t)=>e===t;function td(e=rt){const t=e===rt?Sa:xs(e),n=(e,n={})=>{const{equalityFn:r=ed,devModeChecks:o={}}="function"==typeof n?{equalityFn:n}:n,{store:s,subscription:i,getServerState:a,stabilityCheck:u,identityFunctionCheck:c}=t();Oe.useRef(!0);const l=Oe.useCallback({[e.name]:t=>e(t)}[e.name],[e,u,o.stabilityCheck]),d=Ea(i.addNestedSub,s.getState,a||s.getState,l,r);return Oe.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var nd=td();function rd(e){e()}var sd=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Wo(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Nt(e,t){if(Wo(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Wo(e[n[r]],t[n[r]]))return!1;return!0}function Ia(e=rt){const t=e===rt?Sa:xs(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}sd?Oe.useLayoutEffect:Oe.useEffect;var wa=Ia();function od(e=rt){const t=e===rt?wa:Ia(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var id=od(),ad=rd;function cd(e){return"query"===e.type}function ud(e){return"mutation"===e.type}function En(e,...t){return Object.assign(e,...t)}function Dr(e){return e.replace(e[0],e[0].toUpperCase())}Zl(Yl.useSyncExternalStoreWithSelector);var at=WeakMap?new WeakMap:void 0,ld=({endpointName:e,queryArgs:t})=>{let n="";const r=null==at?void 0:at.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>Me(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));Me(t)&&(null==at||at.set(t,e)),n=e}return`${e}(${n})`},Ar=Symbol();function qo(e,t,n,r){const o=j.useMemo((()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e})),[e,t,n,r]),s=j.useRef(o);return j.useEffect((()=>{s.current.serialized!==o.serialized&&(s.current=o)}),[o]),s.current.serialized===o.serialized?s.current.queryArgs:e}function xr(e){const t=j.useRef(e);return j.useEffect((()=>{Nt(t.current,e)||(t.current=e)}),[e]),Nt(t.current,e)?t.current:e}var dd=typeof window<"u"&&window.document&&window.document.createElement?j.useLayoutEffect:j.useEffect,pd=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:la.pending}:e;function fd({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:o},unstable__sideEffectsInRender:s,createSelector:i},serializeQueryArgs:a,context:u}){const c=s?e=>e():j.useEffect;return{buildQueryHooks:function(s){const d=(t,{refetchOnReconnect:r,refetchOnFocus:o,refetchOnMountOrArgChange:i,skip:a=!1,pollingInterval:l=0,skipPollingIfUnfocused:d=!1}={})=>{const{initiate:p}=e.endpoints[s],m=n(),h=j.useRef();if(!h.current){const t=m(e.internalActions.internal_getRTKQSubscriptions());h.current=t}const f=qo(a?Xe:t,ld,u.endpointDefinitions[s],s),y=xr({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:l,skipPollingIfUnfocused:d}),g=j.useRef(!1),v=j.useRef();let{queryCacheKey:b,requestId:_}=v.current||{},S=!1;b&&_&&(S=h.current.isRequestSubscribed(b,_));const w=!S&&g.current;return c((()=>{g.current=S})),c((()=>{w&&(v.current=void 0)}),[w]),c((()=>{var e;const t=v.current;if(f===Xe)return null==t||t.unsubscribe(),void(v.current=void 0);const n=null==(e=v.current)?void 0:e.subscriptionOptions;if(t&&t.arg===f)y!==n&&t.updateSubscriptionOptions(y);else{null==t||t.unsubscribe();const e=m(p(f,{subscriptionOptions:y,forceRefetch:i}));v.current=e}}),[m,p,i,f,y,w]),j.useEffect((()=>()=>{var e;null==(e=v.current)||e.unsubscribe(),v.current=void 0}),[]),j.useMemo((()=>({refetch:()=>{var e;if(!v.current)throw new Error(ce(38));return null==(e=v.current)?void 0:e.refetch()}})),[])},p=({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:i=0,skipPollingIfUnfocused:a=!1}={})=>{const{initiate:u}=e.endpoints[s],l=n(),[d,p]=j.useState(Ar),m=j.useRef(),h=xr({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:i,skipPollingIfUnfocused:a});c((()=>{var e,t;const n=null==(e=m.current)?void 0:e.subscriptionOptions;h!==n&&(null==(t=m.current)||t.updateSubscriptionOptions(h))}),[h]);const f=j.useRef(h);c((()=>{f.current=h}),[h]);const y=j.useCallback((function(e,n=!1){let r;return t((()=>{var t;null==(t=m.current)||t.unsubscribe(),m.current=r=l(u(e,{subscriptionOptions:f.current,forceRefetch:!n})),p(e)})),r}),[l,u]);return j.useEffect((()=>()=>{var e;null==(e=null==m?void 0:m.current)||e.unsubscribe()}),[]),j.useEffect((()=>{d!==Ar&&!m.current&&y(d,!0)}),[d,y]),j.useMemo((()=>[y,d]),[y,d])},m=(t,{skip:n=!1,selectFromResult:c}={})=>{const{select:d}=e.endpoints[s],p=qo(n?Xe:t,a,u.endpointDefinitions[s],s),m=j.useRef(),h=j.useMemo((()=>i([d(p),(e,t)=>t,e=>p],l,{memoizeOptions:{resultEqualityCheck:Nt}})),[d,p]),f=j.useMemo((()=>c?i([h],c,{devModeChecks:{identityFunctionCheck:"never"}}):h),[h,c]),y=r((e=>f(e,m.current)),Nt),g=o(),v=h(g.getState(),m.current);return dd((()=>{m.current=v}),[v]),y};return{useQueryState:m,useQuerySubscription:d,useLazyQuerySubscription:p,useLazyQuery(e){const[t,n]=p(e),r=m(n,{...e,skip:n===Ar}),o=j.useMemo((()=>({lastArg:n})),[n]);return j.useMemo((()=>[t,r,o]),[t,r,o])},useQuery(e,t){const n=d(e,t),r=m(e,{selectFromResult:e===Xe||null!=t&&t.skip?void 0:pd,...t}),{data:o,status:s,isLoading:i,isSuccess:a,isError:u,error:c}=r;return j.useDebugValue({data:o,status:s,isLoading:i,isSuccess:a,isError:u,error:c}),j.useMemo((()=>({...r,...n})),[r,n])}}},buildMutationHook:function(o){return({selectFromResult:s,fixedCacheKey:a}={})=>{const{select:u,initiate:c}=e.endpoints[o],l=n(),[d,p]=j.useState();j.useEffect((()=>()=>{null!=d&&d.arg.fixedCacheKey||null==d||d.reset()}),[d]);const m=j.useCallback((function(e){const t=l(c(e,{fixedCacheKey:a}));return p(t),t}),[l,c,a]),{requestId:h}=d||{},f=j.useMemo((()=>u({fixedCacheKey:a,requestId:null==d?void 0:d.requestId})),[a,d,u]),y=j.useMemo((()=>s?i([f],s):f),[s,f]),g=r(y,Nt),v=null==a?null==d?void 0:d.arg.originalArgs:void 0,b=j.useCallback((()=>{t((()=>{d&&p(void 0),a&&l(e.internalActions.removeMutationResult({requestId:h,fixedCacheKey:a}))}))}),[l,a,d,h]),{endpointName:_,data:S,status:w,isLoading:I,isSuccess:A,isError:k,error:E}=g;j.useDebugValue({endpointName:_,data:S,status:w,isLoading:I,isSuccess:A,isError:k,error:E});const T=j.useMemo((()=>({...g,originalArgs:v,reset:b})),[g,v,b]);return j.useMemo((()=>[m,T]),[m,T])}},usePrefetch:function(t,r){const o=n(),s=xr(r);return j.useCallback(((n,r)=>o(e.util.prefetch(t,n,{...s,...r}))),[t,o,s])}};function l(e,t,n){if(null!=t&&t.endpointName&&e.isUninitialized){const{endpointName:e}=t,r=u.endpointDefinitions[e];a({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===a({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:null==t?void 0:t.data;void 0===r&&(r=e.data);const o=void 0!==r,s=e.isLoading,i=!o&&s,c=e.isSuccess||s&&o;return{...e,data:r,currentData:e.data,isFetching:s,isLoading:i,isSuccess:c}}}var md=Symbol(),hd=({batch:e=ad,hooks:t={useDispatch:id,useSelector:nd,useStore:wa},createSelector:n=de,unstable__sideEffectsInRender:r=!1,...o}={})=>({name:md,init(o,{serializeQueryArgs:s},i){const a=o,{buildQueryHooks:u,buildMutationHook:c,usePrefetch:l}=fd({api:o,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:s,context:i});return En(a,{usePrefetch:l}),En(i,{batch:e}),{injectEndpoint(e,t){if(cd(t)){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:s,useQuerySubscription:i}=u(e);En(a.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:s,useQuerySubscription:i}),o[`use${Dr(e)}Query`]=t,o[`useLazy${Dr(e)}Query`]=n}else if(ud(t)){const t=c(e);En(a.endpoints[e],{useMutation:t}),o[`use${Dr(e)}Mutation`]=t}}}}}),yd=xl(ql(),hd());const Bs="auth_token",ba=()=>localStorage.getItem(Bs)||void 0,gd=e=>localStorage.setItem(Bs,e),_d=()=>localStorage.removeItem(Bs),vd=()=>!!ba(),Ns={getToken:ba,setToken:gd,removeToken:_d,hasToken:vd};ie("reselectUser"),ie("requestLogin"),ie("requestLogout"),ie("remoteLogin");const Sd=ie("remoteLogout"),Go=ie("requestMicroFrontendFetch"),Ed=ie("sendMicroFrontendFetchResponse"),Id=e=>{Ns.removeToken(),e(Sd())},wd=e=>async(t,n,r)=>{const o=await e(t,n,r);return o.error&&[401].includes(o.error.status)&&Id(n.dispatch),o},bd=async(e,t=2e3)=>{for(;!e();)await new Promise((e=>setTimeout(e,t)))},Td=5,kd=e=>t=>!!e&&t.includes(e.status),Qo=e=>new Promise((t=>setTimeout(t,1e3*e))),Cd=e=>async(t,n,r)=>{const o=(null==r?void 0:r.maxRetries)??5;await bd((()=>n.getState().network.isOnline));let s=0;const i=async()=>{var a,u,c,l;const d=await e(t,n,r),p=d.error;if(s>=o)return d;s>0&&await Qo(Math.pow(2,s)),s++;const m=kd(p);switch(!0){case"mutation"===n.type:return d;case!navigator.onLine:case m([408,404]):case p&&"FETCH_ERROR"===(null==p?void 0:p.status):case p&&p.status>=500:return await i();case 429===(null==(a=null==d?void 0:d.error)?void 0:a.status):{const e=null==(l=null==(c=null==(u=d.meta)?void 0:u.response)?void 0:c.headers)?void 0:l.get("Retry-After");return await Qo(+(e||"0")),await i()}default:return d}};return await i()};var Ta=(e=>(e.SERVER_RULES="serverRules",e))(Ta||{});const Ls=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Lt="8.48.0",pe=globalThis;function sr(e,t,n){const r=pe,o=r.__SENTRY__=r.__SENTRY__||{},s=o[Lt]=o[Lt]||{};return s[e]||(s[e]=t())}const an=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Od="Sentry Logger ",Ko=["debug","info","warn","error","log","assert","trace"],Yo={};function Us(e){if(!("console"in pe))return e();const t=pe.console,n={},r=Object.keys(Yo);r.forEach((e=>{const r=Yo[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}function Rd(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return an?Ko.forEach((n=>{t[n]=(...t)=>{e&&Us((()=>{pe.console[n](`${Od}[${n}]:`,...t)}))}})):Ko.forEach((e=>{t[e]=()=>{}})),t}const ye=sr("logger",Rd),Br="<anonymous>";function Ve(e){try{return e&&"function"==typeof e&&e.name||Br}catch{return Br}}function Jo(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach((t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)})),e}catch{return}}}const xn={},Xo={};function ka(e,t){xn[e]=xn[e]||[],xn[e].push(t)}function Ca(e,t){if(!Xo[e]){Xo[e]=!0;try{t()}catch(t){an&&ye.error(`Error while instrumenting ${e}`,t)}}}function ss(e,t){const n=e&&xn[e];if(n)for(const r of n)try{r(t)}catch(t){an&&ye.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Ve(r)}\nError:`,t)}}function cn(){return Vs(pe),pe}function Vs(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Lt,t[Lt]=t[Lt]||{}}const Oa=Object.prototype.toString;function Md(e){switch(Oa.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return or(e,Error)}}function Fs(e,t){return Oa.call(e)===`[object ${t}]`}function jn(e){return Fs(e,"String")}function $s(e){return Fs(e,"Object")}function Pd(e){return typeof Event<"u"&&or(e,Event)}function Dd(e){return typeof Element<"u"&&or(e,Element)}function Ad(e){return Fs(e,"RegExp")}function js(e){return!(!e||!e.then||"function"!=typeof e.then)}function xd(e){return $s(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function or(e,t){try{return e instanceof t}catch{return!1}}function Bd(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}const Ra=pe,Nd=80;function zs(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let s=0,i=0;const a=" > ",u=a.length;let c;const l=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&s++<r&&(c=Ld(n,l),!("html"===c||s>1&&i+o.length*u+c.length>=d));)o.push(c),i+=c.length,n=n.parentNode;return o.reverse().join(a)}catch{return"<unknown>"}}function Ld(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(Ra.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const o=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(o&&o.length)o.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else{n.id&&r.push(`#${n.id}`);const e=n.className;if(e&&jn(e)){const t=e.split(/\s+/);for(const e of t)r.push(`.${e}`)}}const s=["aria-label","type","name","title","alt"];for(const e of s){const t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join("")}function Ud(){try{return Ra.document.location.href}catch{return""}}function Nr(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function Vd(e,t,n=!1){return!!jn(e)&&(Ad(t)?t.test(e):!!jn(t)&&(n?e===t:e.includes(t)))}function Fd(e,t=[],n=!1){return t.some((t=>Vd(e,t,n)))}function Ee(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);"function"==typeof o&&Ma(o,r);try{e[t]=o}catch{an&&ye.log(`Failed to replace method "${t}" in object`,e)}}function Kt(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{an&&ye.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Ma(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Kt(e,"__sentry_original__",t)}catch{}}function Pa(e){return e.__sentry_original__}function $d(e){if(Md(e))return{message:e.message,name:e.name,stack:e.stack,...ei(e)};if(Pd(e)){const t={type:e.type,target:Zo(e.target),currentTarget:Zo(e.currentTarget),...ei(e)};return typeof CustomEvent<"u"&&or(e,CustomEvent)&&(t.detail=e.detail),t}return e}function Zo(e){try{return Dd(e)?zs(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function ei(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function Te(e){return os(e,new Map)}function os(e,t){if(jd(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.getOwnPropertyNames(e))typeof e[n]<"u"&&(r[n]=os(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(os(e,t))})),r}return e}function jd(e){if(!$s(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch{return!0}}const Da=1e3;function ir(){return Date.now()/Da}function zd(){const{performance:e}=pe;if(!e||!e.now)return ir;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/Da}const Aa=zd(),Hd=(()=>{const{performance:e}=pe;if(!e||!e.now)return;const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=o<t,i=e.timing&&e.timing.navigationStart,a="number"==typeof i?Math.abs(i+n-r):t;return s||a<t?o<=a?e.timeOrigin:i:r})();function Le(){const e=pe,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch{}return"10000000100040008000100000000000".replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function Wd(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function qd(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],s=o[0]=o[0]||{};s.value||(s.value=""),s.type||(s.type="Error")}function xa(e,t){const n=Wd(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}var Ae;function ti(e){return new Ne((t=>{t(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(Ae||(Ae={}));class Ne{constructor(e){Ne.prototype.__init.call(this),Ne.prototype.__init2.call(this),Ne.prototype.__init3.call(this),Ne.prototype.__init4.call(this),this._state=Ae.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new Ne(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new Ne(((t,n)=>{let r,o;return this.then((t=>{o=!1,r=t,e&&e()}),(t=>{o=!0,r=t,e&&e()})).then((()=>{o?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(Ae.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Ae.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===Ae.PENDING){if(js(t))return void t.then(this._resolve,this._reject);this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Ae.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===Ae.RESOLVED&&e[1](this._value),this._state===Ae.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function Gd(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Aa(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Le()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function ni(){return Le()}function is(){return Le().substring(16)}function ar(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;const r={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=ar(r[e],t[e],n-1));return r}const as="_sentrySpan";function ri(e,t){t?Kt(e,as,t):delete e[as]}function cs(e){return e[as]}const Qd=100;class Hs{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:ni(),spanId:is()}}clone(){const e=new Hs;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,ri(e,cs(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Gd(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[n,r]=t instanceof st?[t.getScopeData(),t.getRequestSession()]:$s(t)?[e,e.requestSession]:[],{tags:o,extra:s,user:i,contexts:a,level:u,fingerprint:c=[],propagationContext:l}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...s},this._contexts={...this._contexts,...a},i&&Object.keys(i).length&&(this._user=i),u&&(this._level=u),c.length&&(this._fingerprint=c),l&&(this._propagationContext=l),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,ri(this,void 0),this._attachments=[],this.setPropagationContext({traceId:ni()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:Qd;if(n<=0)return this;const r={timestamp:ir(),...e},o=this._breadcrumbs;return o.push(r),this._breadcrumbs=o.length>n?o.slice(-n):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:cs(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=ar(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:is(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:Le();if(!this._client)return ye.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:Le();if(!this._client)return ye.warn("No client configured on scope - will not capture message!"),r;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Le();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(ye.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const st=Hs;function Kd(){return sr("defaultCurrentScope",(()=>new st))}function Yd(){return sr("defaultIsolationScope",(()=>new st))}class Jd{constructor(e,t){let n,r;n=e||new st,r=t||new st,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return js(n)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function _t(){const e=Vs(cn());return e.stack=e.stack||new Jd(Kd(),Yd())}function Xd(e){return _t().withScope(e)}function Zd(e,t){const n=_t();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function si(e){return _t().withScope((()=>e(_t().getIsolationScope())))}function ep(){return{withIsolationScope:si,withScope:Xd,withSetScope:Zd,withSetIsolationScope:(e,t)=>si(t),getCurrentScope:()=>_t().getScope(),getIsolationScope:()=>_t().getIsolationScope()}}function cr(e){const t=Vs(e);return t.acs?t.acs:ep()}function bt(){return cr(cn()).getCurrentScope()}function un(){return cr(cn()).getIsolationScope()}function tp(){return sr("globalScope",(()=>new st))}function np(...e){const t=cr(cn());if(2===e.length){const[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function Pe(){return bt().getClient()}const rp="_sentryMetrics";function sp(e){const t=e[rp];if(!t)return;const n={};for(const[,[e,r]]of t)(n[e]||(n[e]=[])).push(Te(r));return n}const Ba="sentry.source",op="sentry.sample_rate",ip="sentry.op",ap="sentry.origin",cp=0,up=1,lp="sentry-",dp=/^sentry-/;function pp(e){const t=fp(e);if(!t)return;const n=Object.entries(t).reduce(((e,[t,n])=>{if(t.match(dp)){e[t.slice(7)]=n}return e}),{});return Object.keys(n).length>0?n:void 0}function fp(e){if(e&&(jn(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce(((e,t)=>{const n=oi(t);return Object.entries(n).forEach((([t,n])=>{e[t]=n})),e}),{}):oi(e)}function oi(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(t&&n&&(e[t]=n),e)),{})}const mp=1;function hp(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext();return Te({parent_span_id:r?t:Yt(e).parent_span_id,span_id:r?is():t,trace_id:n})}function ii(e){return"number"==typeof e?ai(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?ai(e.getTime()):Aa()}function ai(e){return e>9999999999?e/1e3:e}function Yt(e){if(gp(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(yp(e)){const{attributes:r,startTime:o,name:s,endTime:i,parentSpanId:a,status:u}=e;return Te({span_id:t,trace_id:n,data:r,description:s,parent_span_id:a,start_timestamp:ii(o),timestamp:ii(i)||void 0,status:vp(u),op:r[ip],origin:r[ap],_metrics_summary:sp(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function yp(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}function gp(e){return"function"==typeof e.getSpanJSON}function _p(e){const{traceFlags:t}=e.spanContext();return 1===t}function vp(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"unknown_error"}const Sp="_sentryRootSpan";function Ws(e){return e[Sp]||e}function Na(){const e=cr(cn());return e.getActiveSpan?e.getActiveSpan():cs(bt())}function Ep(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=Pe(),n=t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const La="production",Ip="_frozenDsc";function wp(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o=Te({environment:n.environment||La,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",o),o}function Ua(e){const t=Pe();if(!t)return{};const n=Ws(e),r=n[Ip];if(r)return r;const o=n.spanContext().traceState,s=o&&o.get("sentry.dsc"),i=s&&pp(s);if(i)return i;const a=wp(e.spanContext().traceId,t),u=Yt(n),c=u.data||{},l=c[op];null!=l&&(a.sample_rate=`${l}`);const d=c[Ba],p=u.description;return"url"!==d&&p&&(a.transaction=p),Ep()&&(a.sampled=String(_p(n))),t.emit("createDsc",a,n),a}function ci(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t)||t<0||t>1))return t;Ls&&ye.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`)}function bp(e,t=!1){const{host:n,path:r,pass:o,port:s,projectId:i,protocol:a,publicKey:u}=e;return`${a}://${u}${t&&o?`:${o}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${i}`}function Tp(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}function xe(e,t=100,n=1/0){try{return us("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function us(e,t,n=1/0,r=1/0,o=Tp()){const[s,i]=o;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const a=kp(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const u="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===u)return a.replace("object ","");if(s(t))return"[Circular ~]";const c=t;if(c&&"function"==typeof c.toJSON)try{return us("",c.toJSON(),u-1,r,o)}catch{}const l=Array.isArray(t)?[]:{};let d=0;const p=$d(t);for(const e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(d>=r){l[e]="[MaxProperties ~]";break}const t=p[e];l[e]=us(e,t,u-1,r,o),d++}return i(t),l}function kp(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Bd(t))return"[VueViewModel]";if(xd(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${Ve(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const n=Cp(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}function Cp(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Op(e,t=[]){return[e,t]}function Rp(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Mp(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:bp(r)},...o&&{trace:Te({...o})}}}function ls(e,t,n,r=0){return new Ne(((o,s)=>{const i=e[r];if(null===t||"function"!=typeof i)o(t);else{const a=i({...t},n);Ls&&i.id&&null===a&&ye.log(`Event processor "${i.id}" dropped event`),js(a)?a.then((t=>ls(e,t,n,r+1).then(o))).then(null,s):ls(e,a,n,r+1).then(o).then(null,s)}}))}let In,ui,wn;function Pp(e){const t=pe._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return wn&&n.length===ui||(ui=n.length,wn=n.reduce(((n,r)=>{In||(In={});const o=In[r];if(o)n[o[0]]=o[1];else{const o=e(r);for(let e=o.length-1;e>=0;e--){const s=o[e],i=s&&s.filename,a=t[r];if(i&&a){n[i]=a,In[r]=[i,a];break}}}return n}),{})),wn}function Dp(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:s}=t;Ap(e,t),r&&Np(e,r),Lp(e,n),xp(e,o),Bp(e,s)}function li(e,t){const{extra:n,tags:r,user:o,contexts:s,level:i,sdkProcessingMetadata:a,breadcrumbs:u,fingerprint:c,eventProcessors:l,attachments:d,propagationContext:p,transactionName:m,span:h}=t;bn(e,"extra",n),bn(e,"tags",r),bn(e,"user",o),bn(e,"contexts",s),e.sdkProcessingMetadata=ar(e.sdkProcessingMetadata,a,2),i&&(e.level=i),m&&(e.transactionName=m),h&&(e.span=h),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function bn(e,t,n){e[t]=ar(e[t],n,1)}function Ap(e,t){const{extra:n,tags:r,user:o,contexts:s,level:i,transactionName:a}=t,u=Te(n);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});const c=Te(r);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});const l=Te(o);l&&Object.keys(l).length&&(e.user={...l,...e.user});const d=Te(s);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),i&&(e.level=i),a&&"transaction"!==e.type&&(e.transaction=a)}function xp(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Bp(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Np(e,t){e.contexts={trace:hp(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Ua(t),...e.sdkProcessingMetadata};const n=Yt(Ws(t)).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}function Lp(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function Up(e,t,n,r,o,s){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,u={...t,event_id:t.event_id||n.event_id||Le(),timestamp:t.timestamp||ir()},c=n.integrations||e.integrations.map((e=>e.name));Vp(u,e),jp(u,c),o&&o.emit("applyFrameMetadata",t),void 0===t.type&&Fp(u,e.stackParser);const l=Hp(r,n.captureContext);n.mechanism&&xa(u,n.mechanism);const d=o?o.getEventProcessors():[],p=tp().getScopeData();if(s){li(p,s.getScopeData())}if(l){li(p,l.getScopeData())}const m=[...n.attachments||[],...p.attachments];m.length&&(n.attachments=m),Dp(u,p);return ls([...d,...p.eventProcessors],u,n).then((e=>(e&&$p(e),"number"==typeof i&&i>0?zp(e,i,a):e)))}function Vp(e,t){const{environment:n,release:r,dist:o,maxValueLength:s=250}=t;e.environment=e.environment||n||La,!e.release&&r&&(e.release=r),!e.dist&&o&&(e.dist=o),e.message&&(e.message=Nr(e.message,s));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=Nr(i.value,s));const a=e.request;a&&a.url&&(a.url=Nr(a.url,s))}function Fp(e,t){const n=Pp(t);try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{n&&e.filename&&(e.debug_id=n[e.filename])}))}))}catch{}}function $p(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch{}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach((([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})}))}function jp(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function zp(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:xe(e.data,t,n)}})))},...e.user&&{user:xe(e.user,t,n)},...e.contexts&&{contexts:xe(e.contexts,t,n)},...e.extra&&{extra:xe(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=xe(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>({...e,...e.data&&{data:xe(e.data,t,n)}})))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=xe(e.contexts.flags,3,n)),r}function Hp(e,t){if(!t)return e;const n=e?e.clone():new st;return n.update(t),n}function qs(e,t){return bt().captureException(e,void 0)}function Wp(e,t){const n={captureContext:t};return bt().captureMessage(e,void 0,n)}function qp(e,t){un().setContext(e,t)}function Gp(e,t){un().setExtra(e,t)}function Qp(e){un().addEventProcessor(e)}const Kp=6e4;function Yp(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?Kp:r-t}function Jp(e,t){return e[t]||e.all||0}function Xp(e,t,n=Date.now()){return Jp(e,t)>n}function Zp(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},s=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(s)for(const e of s.trim().split(",")){const[t,n,,,s]=e.split(":",5),i=parseInt(t,10),a=1e3*(isNaN(i)?60:i);if(n)for(const e of n.split(";"))"metric_bucket"===e?(!s||s.split(";").includes("custom"))&&(o[e]=r+a):o[e]=r+a;else o.all=r+a}else i?o.all=r+Yp(i,r):429===t&&(o.all=r+6e4);return o}function ef(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return nf(e,n)||tf(e,r)}function tf(e,t){return!!t&&di(e)===di(t)}function nf(e,t){return!!t&&e.includes(t.host)}function di(e){return"/"===e[e.length-1]?e.slice(0,-1):e}const rf=100;function sf(e,t){const n=Pe(),r=un();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=rf}=n.getOptions();if(s<=0)return;const i={timestamp:ir(),...e},a=o?Us((()=>o(i,t))):i;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),r.addBreadcrumb(a,s))}function of(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const af="Dedupe",cf=()=>{let e;return{name:af,processEvent(t){if(t.type)return t;try{if(lf(t,e))return Ls&&ye.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},uf=cf;function lf(e,t){return!!t&&!(!df(e,t)&&!pf(e,t))}function df(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Fa(e,t)||!Va(e,t))}function pf(e,t){const n=pi(t),r=pi(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&Fa(e,t)&&Va(e,t))}function Va(e,t){let n=Jo(e),r=Jo(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){const t=r[e],o=n[e];if(t.filename!==o.filename||t.lineno!==o.lineno||t.colno!==o.colno||t.function!==o.function)return!1}return!0}function Fa(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return n.join("")===r.join("")}catch{return!1}}function pi(e){return e.exception&&e.exception.values&&e.exception.values[0]}function ff(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function mf(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function hf(){return!mf()&&"[object process]"===Object.prototype.toString.call(typeof process<"u"?process:0)}function fi(){return typeof window<"u"&&(!hf()||yf())}function yf(){const e=pe.process;return!!e&&"renderer"===e.type}const Tn=pe;function gf(){const e=Tn.chrome,t=e&&e.app&&e.app.runtime,n="history"in Tn&&!!Tn.history.pushState&&!!Tn.history.replaceState;return!t&&n}function _f(e,t){return e??t()}function Bn(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=s(n)):("call"===o||"optionalCall"===o)&&(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}const Dt=pe;function vf(){setTimeout((()=>{}))}function vt(e,t={}){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(Pa(e))return e}catch{return e}const n=function(...n){try{const r=n.map((e=>vt(e,t)));return e.apply(this,r)}catch(e){throw vf(),np((r=>{r.addEventProcessor((e=>(t.mechanism&&(qd(e),xa(e,t.mechanism)),e.extra={...e.extra,arguments:n},e))),qs(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}Ma(n,e),Kt(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}const $a=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Sf=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",ln=(e,t,n,r)=>{let o,s;return i=>{t.value>=0&&(i||r)&&(s=t.value-(o||0),(s||void 0===o)&&(o=t.value,t.delta=s,t.rating=Sf(t.value,n),e(t)))}},W=pe,Ef=()=>`v4-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,ja=(e=!0)=>{const t=W.performance&&W.performance.getEntriesByType&&W.performance.getEntriesByType("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},Gs=()=>{const e=ja();return e&&e.activationStart||0},dn=(e,t)=>{const n=ja();let r="navigate";return n&&(W.document&&W.document.prerendering||Gs()>0?r="prerender":W.document&&W.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:Ef(),navigationType:r}},ot=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},pn=e=>{const t=t=>{("pagehide"===t.type||W.document&&"hidden"===W.document.visibilityState)&&e(t)};W.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},ur=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let Ut=-1;const If=()=>"hidden"!==W.document.visibilityState||W.document.prerendering?1/0:0,zn=e=>{"hidden"===W.document.visibilityState&&Ut>-1&&(Ut="visibilitychange"===e.type?e.timeStamp:0,bf())},wf=()=>{addEventListener("visibilitychange",zn,!0),addEventListener("prerenderingchange",zn,!0)},bf=()=>{removeEventListener("visibilitychange",zn,!0),removeEventListener("prerenderingchange",zn,!0)},Qs=()=>(W.document&&Ut<0&&(Ut=If(),wf()),{get firstHiddenTime(){return Ut}}),lr=e=>{W.document&&W.document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},Tf=[1800,3e3],kf=(e,t={})=>{lr((()=>{const n=Qs(),r=dn("FCP");let o;const s=ot("paint",(e=>{e.forEach((e=>{"first-contentful-paint"===e.name&&(s.disconnect(),e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-Gs(),0),r.entries.push(e),o(!0)))}))}));s&&(o=ln(e,r,Tf,t.reportAllChanges))}))},Cf=[.1,.25],Of=(e,t={})=>{kf(ur((()=>{const n=dn("CLS",0);let r,o=0,s=[];const i=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=s[0],n=s[s.length-1];o&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,s.push(e)):(o=e.value,s=[e])}})),o>n.value&&(n.value=o,n.entries=s,r())},a=ot("layout-shift",i);a&&(r=ln(e,n,Cf,t.reportAllChanges),pn((()=>{i(a.takeRecords()),r(!0)})),setTimeout(r,0))})))},Rf=[100,300],Mf=(e,t={})=>{lr((()=>{const n=Qs(),r=dn("FID");let o;const s=e=>{e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),o(!0))},i=e=>{e.forEach(s)},a=ot("first-input",i);o=ln(e,r,Rf,t.reportAllChanges),a&&pn(ur((()=>{i(a.takeRecords()),a.disconnect()})))}))};let za=0,Lr=1/0,kn=0;const Pf=e=>{e.forEach((e=>{e.interactionId&&(Lr=Math.min(Lr,e.interactionId),kn=Math.max(kn,e.interactionId),za=kn?(kn-Lr)/7+1:0)}))};let ds;const Df=()=>ds?za:performance.interactionCount||0,Af=()=>{"interactionCount"in performance||ds||(ds=ot("event",Pf,{type:"event",buffered:!0,durationThreshold:0}))},Be=[],Ur=new Map,xf=40;let Bf=0;const Nf=()=>Df()-Bf,Lf=()=>{const e=Math.min(Be.length-1,Math.floor(Nf()/50));return Be[e]},Vr=10,Uf=[],Vf=e=>{if(Uf.forEach((t=>t(e))),!e.interactionId&&"first-input"!==e.entryType)return;const t=Be[Be.length-1],n=Ur.get(e.interactionId);if(n||Be.length<10||t&&e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===(n.entries[0]&&n.entries[0].startTime)&&n.entries.push(e);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};Ur.set(t.id,t),Be.push(t)}Be.sort(((e,t)=>t.latency-e.latency)),Be.length>10&&Be.splice(10).forEach((e=>Ur.delete(e.id)))}},Ha=e=>{const t=W.requestIdleCallback||W.setTimeout;let n=-1;return e=ur(e),W.document&&"hidden"===W.document.visibilityState?e():(n=t(e),pn(e)),n},Ff=[200,500],$f=(e,t={})=>{"PerformanceEventTiming"in W&&"interactionId"in PerformanceEventTiming.prototype&&lr((()=>{Af();const n=dn("INP");let r;const o=e=>{Ha((()=>{e.forEach(Vf);const t=Lf();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())}))},s=ot("event",o,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});r=ln(e,n,Ff,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),pn((()=>{o(s.takeRecords()),r(!0)})))}))},jf=[2500,4e3],mi={},zf=(e,t={})=>{lr((()=>{const n=Qs(),r=dn("LCP");let o;const s=e=>{t.reportAllChanges||(e=e.slice(-1)),e.forEach((e=>{e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-Gs(),0),r.entries=[e],o())}))},i=ot("largest-contentful-paint",s);if(i){o=ln(e,r,jf,t.reportAllChanges);const n=ur((()=>{mi[r.id]||(s(i.takeRecords()),i.disconnect(),mi[r.id]=!0,o(!0))}));["keydown","click"].forEach((e=>{W.document&&addEventListener(e,(()=>Ha(n)),{once:!0,capture:!0})})),pn(n)}}))},Vt={},Hn={};let Wa,qa,Ga,Qa;function Hf(e,t=!1){return dr("cls",e,Kf,Wa,t)}function Wf(e,t=!1){return dr("lcp",e,Jf,Ga,t)}function qf(e){return dr("fid",e,Yf,qa)}function Gf(e){return dr("inp",e,Xf,Qa)}function Qf(e,t){return Ka(e,t),Hn[e]||(Zf(e),Hn[e]=!0),Ya(e,t)}function fn(e,t){const n=Vt[e];if(n&&n.length)for(const r of n)try{r(t)}catch(t){$a&&ye.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Ve(r)}\nError:`,t)}}function Kf(){return Of((e=>{fn("cls",{metric:e}),Wa=e}),{reportAllChanges:!0})}function Yf(){return Mf((e=>{fn("fid",{metric:e}),qa=e}))}function Jf(){return zf((e=>{fn("lcp",{metric:e}),Ga=e}),{reportAllChanges:!0})}function Xf(){return $f((e=>{fn("inp",{metric:e}),Qa=e}))}function dr(e,t,n,r,o=!1){let s;return Ka(e,t),Hn[e]||(s=n(),Hn[e]=!0),r&&t({metric:r}),Ya(e,t,o?s:void 0)}function Zf(e){const t={};"event"===e&&(t.durationThreshold=0),ot(e,(t=>{fn(e,{entries:t})}),t)}function Ka(e,t){Vt[e]=Vt[e]||[],Vt[e].push(t)}function Ya(e,t,n){return()=>{n&&n();const r=Vt[e];if(!r)return;const o=r.indexOf(t);-1!==o&&r.splice(o,1)}}const em=1e3;let hi,ps,fs,Cn;function tm(e){ka("dom",e),Ca("dom",nm)}function nm(){if(!W.document)return;const e=ss.bind(null,"dom"),t=yi(e,!0);W.document.addEventListener("click",t,!1),W.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=W[t],r=n&&n.prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Ee(r,"addEventListener",(function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=r[n]=r[n]||{refCount:0};if(!s.handler){const r=yi(e);s.handler=r,t.call(this,n,r,o)}s.refCount++}catch{}return t.call(this,n,r,o)}})),Ee(r,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},o=n[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}})))}))}function rm(e){if(e.type!==ps)return!1;try{if(!e.target||e.target._sentryId!==fs)return!1}catch{}return!0}function sm(e,t){return"keypress"===e&&(!t||!t.tagName||!("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable))}function yi(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=om(n);if(sm(n.type,r))return;Kt(n,"_sentryCaptured",!0),r&&!r._sentryId&&Kt(r,"_sentryId",Le());const o="keypress"===n.type?"input":n.type;rm(n)||(e({event:n,name:o,global:t}),ps=n.type,fs=r?r._sentryId:void 0),clearTimeout(hi),hi=W.setTimeout((()=>{fs=void 0,ps=void 0}),em)}}function om(e){try{return e.target}catch{return null}}function im(e){const t="history";ka(t,e),Ca(t,am)}function am(){if(!gf())return;const e=W.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=Cn,t=String(n);Cn=t,ss("history",{from:e,to:t})}return e.apply(this,t)}}W.onpopstate=function(...t){const n=W.location.href,r=Cn;if(Cn=n,ss("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch{}},Ee(W.history,"pushState",t),Ee(W.history,"replaceState",t)}const Fr={};function cm(e){const t=Fr[e];if(t)return t;let n=W[e];if(ff(n))return Fr[e]=n.bind(W);const r=W.document;if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(t)}catch(t){$a&&ye.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(Fr[e]=n.bind(W))}function St(...e){return cm("setTimeout")(...e)}const um="__sentry_xhr_v3__",lm=["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"],dm="BrowserApiErrors",pm=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:dm,setupOnce(){t.setTimeout&&Ee(Dt,"setTimeout",gi),t.setInterval&&Ee(Dt,"setInterval",gi),t.requestAnimationFrame&&Ee(Dt,"requestAnimationFrame",mm),t.XMLHttpRequest&&"XMLHttpRequest"in Dt&&Ee(XMLHttpRequest.prototype,"send",hm);const e=t.eventTarget;e&&(Array.isArray(e)?e:lm).forEach(ym)}}},fm=pm;function gi(e){return function(...t){const n=t[0];return t[0]=vt(n,{mechanism:{data:{function:Ve(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function mm(e){return function(t){return e.apply(this,[vt(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Ve(e)},handled:!1,type:"instrument"}})])}}function hm(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&Ee(n,e,(function(t){const n={mechanism:{data:{function:e,handler:Ve(t)},handled:!1,type:"instrument"}},r=Pa(t);return r&&(n.mechanism.data.handler=Ve(r)),vt(t,n)}))})),e.apply(this,t)}}function ym(e){const t=Dt[e],n=t&&t.prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Ee(n,"addEventListener",(function(t){return function(n,r,o){try{gm(r)&&(r.handleEvent=vt(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Ve(r),target:e},handled:!1,type:"instrument"}}))}catch{}return t.apply(this,[n,vt(r,{mechanism:{data:{function:"addEventListener",handler:Ve(r),target:e},handled:!1,type:"instrument"}}),o])}})),Ee(n,"removeEventListener",(function(e){return function(t,n,r){try{const o=n.__sentry_wrapped__;o&&e.call(this,t,o,r)}catch{}return e.call(this,t,n,r)}})))}function gm(e){return"function"==typeof e.handleEvent}const Z=pe,Ks="sentryReplaySession",_m="replay_event",Ys="Unable to send Replay",vm=3e5,Sm=9e5,Em=5e3,Im=5500,wm=6e4,bm=5e3,Tm=3,_i=15e4,On=5e3,km=3e3,Cm=300,Js=2e7,Om=4999,Rm=15e3,vi=36e5;function ms(e,t){return e??t()}function Jt(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=s(n)):("call"===o||"optionalCall"===o)&&(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}var ae;function Mm(e){return e.nodeType===e.ELEMENT_NODE}function Ft(e){const t=Jt([e,"optionalAccess",e=>e.host]);return Jt([t,"optionalAccess",e=>e.shadowRoot])===e}function $t(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Pm(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function Dm(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function Wn(e){try{const t=e.rules||e.cssRules;return t?Pm(Array.from(t,Ja).join("")):null}catch{return null}}function Am(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,o=r[n],s=r.getPropertyPriority(o);t+=`${o}:${r.getPropertyValue(o)}${s?" !important":""};`}return`${e.selectorText} { ${t} }`}function Ja(e){let t;if(Bm(e))try{t=Wn(e.styleSheet)||Dm(e)}catch{}else if(Nm(e)){let t=e.cssText;const n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=Am(e)),n&&(t=xm(t)),n||r)return t}return t||e.cssText}function xm(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}function Bm(e){return"styleSheet"in e}function Nm(e){return"selectorText"in e}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(ae||(ae={}));class Xa{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;return ms(Jt([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]),(()=>-1))}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Lm(){return new Xa}function pr({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function Xt({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function Et(e){return e.toLowerCase()}function hs(e){return e.toUpperCase()}const Si="__rrweb_original__";function Um(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){const o=t.getImageData,s=Si in o?o[Si]:o;if(new Uint32Array(s.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some((e=>0!==e)))return!1}return!0}function Xs(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Et(t):null}function qn(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function Za(e,t){let n;try{n=new URL(e,ms(t,(()=>window.location.href)))}catch{return null}return ms(Jt([n.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",e=>e[1]]),(()=>null))}const Ei={};function ec(e){const t=Ei[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch{}return Ei[e]=r.bind(window)}function ys(...e){return ec("setTimeout")(...e)}function tc(...e){return ec("clearTimeout")(...e)}function nc(e){try{return e.contentDocument}catch{}}let Vm=1;const Fm=new RegExp("[^a-z0-9-_:]"),Zt=-2;function Zs(){return Vm++}function $m(e){if(e instanceof HTMLFormElement)return"form";const t=Et(e.tagName);return Fm.test(t)?"div":t}function jm(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}let ct,Ii;const zm=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Hm=/^(?:[a-z+]+:)?\/\//i,Wm=/^www\..*/i,qm=/^(data:)([^,]*),(.*)/i;function Gn(e,t){return(e||"").replace(zm,((e,n,r,o,s,i)=>{const a=r||s||i,u=n||o||"";if(!a)return e;if(Hm.test(a)||Wm.test(a))return`url(${u}${a}${u})`;if(qm.test(a))return`url(${u}${a}${u})`;if("/"===a[0])return`url(${u}${jm(t)+a}${u})`;const c=t.split("/"),l=a.split("/");c.pop();for(const e of l)"."!==e&&(".."===e?c.pop():c.push(e));return`url(${u}${c.join("/")}${u})`}))}const Gm=/^[^ \t\n\r\u000c]+/,Qm=/^[, \t\n\r\u000c]+/;function Km(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const o=e.exec(t.substring(n));return o?(r=o[0],n+=r.length,r):""}const o=[];for(;r(Qm),!(n>=t.length);){let s=r(Gm);if(","===s.slice(-1))s=dt(e,s.substring(0,s.length-1)),o.push(s);else{let r="";s=dt(e,s);let i=!1;for(;;){const e=t.charAt(n);if(""===e){o.push((s+r).trim());break}if(i)")"===e&&(i=!1);else{if(","===e){n+=1,o.push((s+r).trim());break}"("===e&&(i=!0)}r+=e,n+=1}}}return o.join(", ")}const wi=new WeakMap;function dt(e,t){return t&&""!==t.trim()?fr(e,t):t}function Ym(e){return!("svg"!==e.tagName&&!e.ownerSVGElement)}function fr(e,t){let n=wi.get(e);if(n||(n=e.createElement("a"),wi.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function rc(e,t,n,r,o,s){return r&&("src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]||"background"===n&&("table"===t||"td"===t||"th"===t)?dt(e,r):"srcset"===n?Km(e,r):"style"===n?Gn(r,fr(e)):"object"===t&&"data"===n?dt(e,r):"function"==typeof s?s(n,r,o):r)}function sc(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function Jm(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch{}return!1}function Xm(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Ze(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Ze(e.parentNode,t,n,r+1)}function pt(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(Xm(r,e))return!0;return!(!t||!r.matches(t))}catch{return!1}}}function It(e,t,n,r,o,s){try{const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===i)return!1;if("INPUT"===i.tagName){const e=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,u=-1;if(s){if(u=Ze(i,pt(r,o)),u<0)return!0;a=Ze(i,pt(t,n),u>=0?u:1/0)}else{if(a=Ze(i,pt(t,n)),a<0)return!1;u=Ze(i,pt(r,o),a>=0?a:1/0)}return a>=0?!(u>=0)||a<=u:!(u>=0)&&!!s}catch{}return!!s}function Zm(e,t,n){const r=e.contentWindow;if(!r)return;let o,s=!1;try{o=r.document.readyState}catch{return}if("complete"!==o){const r=ys((()=>{s||(t(),s=!0)}),n);return void e.addEventListener("load",(()=>{tc(r),s=!0,t()}))}const i="about:blank";if(r.location.href!==i||e.src===i||""===e.src)return ys(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function eh(e,t,n){let r,o=!1;try{r=e.sheet}catch{return}if(r)return;const s=ys((()=>{o||(t(),o=!0)}),n);e.addEventListener("load",(()=>{tc(s),o=!0,t()}))}function th(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskAttributeFn:u,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:h={},maskTextFn:f,maskInputFn:y,dataURLOptions:g={},inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:S=!1}=t,w=nh(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:ae.Document,childNodes:[],compatMode:e.compatMode}:{type:ae.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ae.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:return sh(e,{doc:n,blockClass:o,blockSelector:s,unblockSelector:i,inlineStylesheet:m,maskAttributeFn:u,maskInputOptions:h,maskInputFn:y,dataURLOptions:g,inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:S,rootId:w,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p});case e.TEXT_NODE:return rh(e,{doc:n,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:f,maskInputOptions:h,maskInputFn:y,rootId:w});case e.CDATA_SECTION_NODE:return{type:ae.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:ae.Comment,textContent:e.textContent||"",rootId:w};default:return!1}}function nh(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}function rh(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:s,unmaskTextSelector:i,maskTextFn:a,maskInputOptions:u,maskInputFn:c,rootId:l}=t,d=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const m="STYLE"===d||void 0,h="SCRIPT"===d||void 0,f="TEXTAREA"===d||void 0;if(m&&p){try{e.nextSibling||e.previousSibling||Jt([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(p=Wn(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=Gn(p,fr(t.doc))}h&&(p="SCRIPT_PLACEHOLDER");const y=It(e,r,s,o,i,n);if(!m&&!h&&!f&&p&&y&&(p=a?a(p,e.parentElement):p.replace(/[\S]/g,"*")),f&&p&&(u.textarea||y)&&(p=c?c(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p){p=Xt({isMasked:It(e,r,s,o,i,pr({type:null,tagName:d,maskInputOptions:u})),element:e,value:p,maskInputFn:c})}return{type:ae.Text,textContent:p||"",isStyle:m,rootId:l}}function sh(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:s,inlineStylesheet:i,maskInputOptions:a={},maskAttributeFn:u,maskInputFn:c,dataURLOptions:l={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:h=!1,rootId:f,maskAllText:y,maskTextClass:g,unmaskTextClass:v,maskTextSelector:b,unmaskTextSelector:_}=t,S=Jm(e,r,o,s),w=$m(e);let I={};const A=e.attributes.length;for(let t=0;t<A;t++){const r=e.attributes[t];r.name&&!sc(w,r.name,r.value)&&(I[r.name]=rc(n,w,Et(r.name),r.value,e,u))}if("link"===w&&i){const t=Array.from(n.styleSheets).find((t=>t.href===e.href));let r=null;t&&(r=Wn(t)),r&&(I.rel=null,I.href=null,I.crossorigin=null,I._cssText=Gn(r,t.href))}if("style"===w&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=Wn(e.sheet);t&&(I._cssText=Gn(t,fr(n)))}if("input"===w||"textarea"===w||"select"===w||"option"===w){const t=e,n=Xs(t),r=qn(t,hs(w),n),o=t.checked;if("submit"!==n&&"button"!==n&&r){const e=It(t,g,b,v,_,pr({type:n,tagName:hs(w),maskInputOptions:a}));I.value=Xt({isMasked:e,element:t,value:r,maskInputFn:c})}o&&(I.checked=o)}if("option"===w&&(e.selected&&!a.select?I.selected=!0:delete I.selected),"canvas"===w&&p)if("2d"===e.__context)Um(e)||(I.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const t=e.toDataURL(l.type,l.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height;t!==r.toDataURL(l.type,l.quality)&&(I.rr_dataURL=t)}if("img"===w&&d){ct||(ct=n.createElement("canvas"),Ii=ct.getContext("2d"));const t=e,r=t.currentSrc||t.getAttribute("src")||"<unknown-src>",o=t.crossOrigin,s=()=>{t.removeEventListener("load",s);try{ct.width=t.naturalWidth,ct.height=t.naturalHeight,Ii.drawImage(t,0,0),I.rr_dataURL=ct.toDataURL(l.type,l.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?s():t.addEventListener("load",s));console.warn(`Cannot inline img src=${r}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(o?I.crossOrigin=o:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?s():t.addEventListener("load",s)}if(("audio"===w||"video"===w)&&(I.rr_mediaState=e.paused?"paused":"played",I.rr_mediaCurrentTime=e.currentTime),h||(e.scrollLeft&&(I.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(I.rr_scrollTop=e.scrollTop)),S){const{width:t,height:n}=e.getBoundingClientRect();I={class:I.class,rr_width:`${t}px`,rr_height:`${n}px`}}let k;"iframe"===w&&!m(I.src)&&(!S&&!nc(e)&&(I.rr_src=I.src),delete I.src);try{customElements.get(w)&&(k=!0)}catch{}return{type:ae.Element,tagName:w,attributes:I,childNodes:[],isSVG:Ym(e)||void 0,needBlock:S,rootId:f,isCustom:k}}function X(e){return null==e?"":e.toLowerCase()}function oh(e,t){if(t.comment&&e.type===ae.Comment)return!0;if(e.type===ae.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===Za(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(X(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===X(e.attributes.name)||"icon"===X(e.attributes.rel)||"apple-touch-icon"===X(e.attributes.rel)||"shortcut icon"===X(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&X(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(X(e.attributes.property).match(/^(og|twitter|fb):/)||X(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===X(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===X(e.attributes.name)||"googlebot"===X(e.attributes.name)||"bingbot"===X(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===X(e.attributes.name)||"generator"===X(e.attributes.name)||"framework"===X(e.attributes.name)||"publisher"===X(e.attributes.name)||"progid"===X(e.attributes.name)||X(e.attributes.property).match(/^article:/)||X(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===X(e.attributes.name)||"yandex-verification"===X(e.attributes.name)||"csrf-token"===X(e.attributes.name)||"p:domain_verify"===X(e.attributes.name)||"verify-v1"===X(e.attributes.name)||"verification"===X(e.attributes.name)||"shopify-checkout-api-token"===X(e.attributes.name)))return!0}}return!1}function ft(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:d,skipChild:p=!1,inlineStylesheet:m=!0,maskInputOptions:h={},maskAttributeFn:f,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b={},inlineImages:_=!1,recordCanvas:S=!1,onSerialize:w,onIframeLoad:I,iframeLoadTimeout:A=5e3,onStylesheetLoad:k,stylesheetLoadTimeout:E=5e3,keepIframeSrcFn:T=()=>!1,newlyAddedElement:C=!1}=t;let{preserveWhiteSpace:O=!0}=t;const q=th(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,maskAllText:a,unblockSelector:i,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:m,maskInputOptions:h,maskAttributeFn:f,maskTextFn:y,maskInputFn:g,dataURLOptions:b,inlineImages:_,recordCanvas:S,keepIframeSrcFn:T,newlyAddedElement:C});if(!q)return console.warn(e,"not serialized"),null;let R;R=r.hasNode(e)?r.getId(e):oh(q,v)||!O&&q.type===ae.Text&&!q.isStyle&&!q.textContent.replace(/^\s+|\s+$/gm,"").length?-2:Zs();const x=Object.assign(q,{id:R});if(r.add(e,x),-2===R)return null;w&&w(e);let P=!p;if(x.type===ae.Element){P=P&&!x.needBlock,delete x.needBlock;const t=e.shadowRoot;t&&$t(t)&&(x.isShadowHost=!0)}if((x.type===ae.Document||x.type===ae.Element)&&P){v.headWhitespace&&x.type===ae.Element&&"head"===x.tagName&&(O=!1);const t={doc:n,mirror:r,blockClass:o,blockSelector:s,maskAllText:a,unblockSelector:i,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:d,skipChild:p,inlineStylesheet:m,maskInputOptions:h,maskAttributeFn:f,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:S,preserveWhiteSpace:O,onSerialize:w,onIframeLoad:I,iframeLoadTimeout:A,onStylesheetLoad:k,stylesheetLoadTimeout:E,keepIframeSrcFn:T};for(const n of Array.from(e.childNodes)){const e=ft(n,t);e&&x.childNodes.push(e)}if(Mm(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=ft(n,t);r&&($t(e.shadowRoot)&&(r.isShadow=!0),x.childNodes.push(r))}}return e.parentNode&&Ft(e.parentNode)&&$t(e.parentNode)&&(x.isShadow=!0),x.type===ae.Element&&"iframe"===x.tagName&&Zm(e,(()=>{const t=nc(e);if(t&&I){const n=ft(t,{doc:t,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:m,maskInputOptions:h,maskAttributeFn:f,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:S,preserveWhiteSpace:O,onSerialize:w,onIframeLoad:I,iframeLoadTimeout:A,onStylesheetLoad:k,stylesheetLoadTimeout:E,keepIframeSrcFn:T});n&&I(e,n)}}),A),x.type===ae.Element&&"link"===x.tagName&&"string"==typeof x.attributes.rel&&("stylesheet"===x.attributes.rel||"preload"===x.attributes.rel&&"string"==typeof x.attributes.href&&"css"===Za(x.attributes.href))&&eh(e,(()=>{if(k){const t=ft(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:m,maskInputOptions:h,maskAttributeFn:f,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:S,preserveWhiteSpace:O,onSerialize:w,onIframeLoad:I,iframeLoadTimeout:A,onStylesheetLoad:k,stylesheetLoadTimeout:E,keepIframeSrcFn:T});t&&k(e,t)}}),E),x}function ih(e,t){const{mirror:n=new Xa,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:s=null,maskAllText:i=!1,maskTextClass:a="rr-mask",unmaskTextClass:u=null,maskTextSelector:c=null,unmaskTextSelector:l=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:m=!1,maskAllInputs:h=!1,maskAttributeFn:f,maskTextFn:y,maskInputFn:g,slimDOM:v=!1,dataURLOptions:b,preserveWhiteSpace:_,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:I,onStylesheetLoad:A,stylesheetLoadTimeout:k,keepIframeSrcFn:E=()=>!1}=t;return ft(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,maskAllText:i,maskTextClass:a,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:f,maskTextFn:y,maskInputFn:g,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:b,inlineImages:p,recordCanvas:m,preserveWhiteSpace:_,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:I,onStylesheetLoad:A,stylesheetLoadTimeout:k,keepIframeSrcFn:E,newlyAddedElement:!1})}function $e(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=s(n)):("call"===o||"optionalCall"===o)&&(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}function he(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const ut="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let bi={map:{},getId:()=>(console.error(ut),-1),getNode:()=>(console.error(ut),null),removeNodeFromMap(){console.error(ut)},has:()=>(console.error(ut),!1),reset(){console.error(ut)}};function en(e,t,n={}){let r=null,o=0;return function(...s){const i=Date.now();!o&&!1===n.leading&&(o=i);const a=t-(i-o),u=this;a<=0||a>t?(r&&(fh(r),r=null),o=i,e.apply(u,s)):!r&&!1!==n.trailing&&(r=mr((()=>{o=!1===n.leading?0:Date.now(),r=null,e.apply(u,s)}),a))}}function oc(e,t,n,r,o=window){const s=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){mr((()=>{n.set.call(this,e)}),0),s&&s.set&&s.set.call(this,e)}}),()=>oc(e,t,s||{},!0)}function eo(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}typeof window<"u"&&window.Proxy&&window.Reflect&&(bi=new Proxy(bi,{get:(e,t,n)=>("map"===t&&console.error(ut),Reflect.get(e,t,n))}));let Qn=Date.now;function ic(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:$e([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||$e([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||$e([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:$e([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||$e([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||$e([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function ac(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function cc(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function uc(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function ve(e,t,n,r,o){if(!e)return!1;const s=uc(e);if(!s)return!1;const i=pt(t,n);if(!o){const e=r&&s.matches(r);return i(s)&&!e}const a=Ze(s,i);let u=-1;return!(a<0)&&(r&&(u=Ze(s,pt(null,r))),a>-1&&u<0||a<u)}function ah(e,t){return-1!==t.getId(e)}function $r(e,t){return-2===t.getId(e)}function lc(e,t){if(Ft(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||lc(e.parentNode,t))}function gs(e){return!!e.changedTouches}function ch(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}function dc(e,t){return!("IFRAME"!==e.nodeName||!t.getMeta(e))}function pc(e,t){return!("LINK"!==e.nodeName||e.nodeType!==e.ELEMENT_NODE||!e.getAttribute||"stylesheet"!==e.getAttribute("rel")||!t.getMeta(e))}function _s(e){return!!$e([e,"optionalAccess",e=>e.shadowRoot])}/[1-9][0-9]{12}/.test(Date.now().toString())||(Qn=()=>(new Date).getTime());class uh{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return _f(this.styleIDMap.get(e),(()=>-1))}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function fc(e){let t=null;return $e([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function lh(e){let t,n=e;for(;t=fc(n);)n=t;return n}function dh(e){const t=e.ownerDocument;if(!t)return!1;const n=lh(e);return t.contains(n)}function mc(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||dh(e))}const Ti={};function to(e){const t=Ti[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch{}return Ti[e]=r.bind(window)}function ph(...e){return to("requestAnimationFrame")(...e)}function mr(...e){return to("setTimeout")(...e)}function fh(...e){return to("clearTimeout")(...e)}var ki,Ci,z=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(z||{}),F=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(F||{}),fe=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(fe||{}),De=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(De||{});function no(e){try{return e.contentDocument}catch{}}function mh(e){try{return e.contentWindow}catch{}}function hh(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=s(n)):("call"===o||"optionalCall"===o)&&(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}function Oi(e){return"__ln"in e}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(ki||(ki={})),function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(Ci||(Ci={}));class yh{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=hh([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Oi(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&Oi(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const Ri=(e,t)=>`${e}@${t}`;class gh{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new yh,r=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},o=o=>{if(!o.parentNode||!mc(o))return;const s=Ft(o.parentNode)?this.mirror.getId(fc(o)):this.mirror.getId(o.parentNode),i=r(o);if(-1===s||-1===i)return n.addNode(o);const a=ft(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{dc(e,this.mirror)&&!ve(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),pc(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),_s(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{ve(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});a&&(e.push({parentId:s,nextId:i,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)Mi(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||o(e);for(const e of this.addedSet)!Pi(this.droppedSet,e)&&!Mi(this.removes,e,this.mirror)||Pi(this.movedSet,e)?o(e):this.droppedSet.add(e);let s=null;for(;n.length;){let e=null;if(s){const t=this.mirror.getId(s.value.parentNode),n=r(s.value);-1!==t&&-1!==n&&(e=s)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}s=e.previous,n.removeNode(e.value),o(e.value)}const i={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};!i.texts.length&&!i.attributes.length&&!i.removes.length&&!i.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(i))},this.processMutation=e=>{if(!$r(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;!ve(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:It(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,uc(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){const n=Xs(t),o=t.tagName;r=qn(t,o,n);const s=pr({maskInputOptions:this.maskInputOptions,tagName:o,type:n});r=Xt({isMasked:It(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,s),element:t,value:r,maskInputFn:this.maskInputFn})}if(ve(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let o=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(no(t))return;n="rr_src"}if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!sc(t.tagName,n)&&(o.attributes[n]=rc(this.doc,Et(t.tagName),Et(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const r=t.style.getPropertyValue(e),s=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||s!==n.style.getPropertyPriority(e)?o.styleDiff[e]=""===s?r:[r,s]:o._unchangedStyles[e]=[r,s]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(o.styleDiff[e]=!1)}break}case"childList":if(ve(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),r=Ft(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);ve(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||$r(t,this.mirror)||!ah(t,this.mirror)||(this.addedSet.has(t)?(vs(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||lc(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Ri(n,r)]?vs(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!Ft(e.target)||!$t(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if($r(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[Ri(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);ve(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),_s(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function vs(e,t){e.delete(t),t.childNodes.forEach((t=>vs(e,t)))}function Mi(e,t,n){return 0!==e.length&&_h(e,t,n)}function _h(e,t,n){let r=t.parentNode;for(;r;){const t=n.getId(r);if(e.some((e=>e.id===t)))return!0;r=r.parentNode}return!1}function Pi(e,t){return 0!==e.size&&hc(e,t)}function hc(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||hc(e,n))}let jt;function vh(e){jt=e}function Sh(){jt=void 0}const G=e=>jt?(...t)=>{try{return e(...t)}catch(e){if(jt&&!0===jt(e))return()=>{};throw e}}:e;function be(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=s(n)):("call"===o||"optionalCall"===o)&&(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}const mt=[];function mn(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function yc(e,t){const n=new gh;mt.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const o=be([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);o&&window[o]&&(r=window[o]);const s=new r(G((t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function Eh({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const o="number"==typeof t.mousemove?t.mousemove:50,s="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let i,a=[];const u=en(G((t=>{const n=Date.now()-i;e(a.map((e=>(e.timeOffset-=n,e))),t),a=[],i=null})),s),c=G(en(G((e=>{const t=mn(e),{clientX:n,clientY:o}=gs(e)?e.changedTouches[0]:e;i||(i=Qn()),a.push({x:n,y:o,id:r.getId(t),timeOffset:Qn()-i}),u(typeof DragEvent<"u"&&e instanceof DragEvent?F.Drag:e instanceof MouseEvent?F.MouseMove:F.TouchMove)})),o,{trailing:!1})),l=[he("mousemove",c,n),he("touchmove",c,n),he("drag",c,n)];return G((()=>{l.forEach((e=>e()))}))}function Ih({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const a=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,u=[];let c=null;return Object.keys(fe).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e])).forEach((i=>{let a=Et(i);const l=(t=>i=>{const a=mn(i);if(ve(a,r,o,s,!0))return;let u=null,l=t;if("pointerType"in i){switch(i.pointerType){case"mouse":u=De.Mouse;break;case"touch":u=De.Touch;break;case"pen":u=De.Pen}u===De.Touch?fe[t]===fe.MouseDown?l="TouchStart":fe[t]===fe.MouseUp&&(l="TouchEnd"):De.Pen}else gs(i)&&(u=De.Touch);null!==u?(c=u,(l.startsWith("Touch")&&u===De.Touch||l.startsWith("Mouse")&&u===De.Mouse)&&(u=null)):fe[t]===fe.Click&&(u=c,c=null);const d=gs(i)?i.changedTouches[0]:i;if(!d)return;const p=n.getId(a),{clientX:m,clientY:h}=d;G(e)({type:fe[l],id:p,x:m,y:h,...null!==u&&{pointerType:u}})})(i);if(window.PointerEvent)switch(fe[i]){case fe.MouseDown:case fe.MouseUp:a=a.replace("mouse","pointer");break;case fe.TouchStart:case fe.TouchEnd:return}u.push(he(a,l,t))})),G((()=>{u.forEach((e=>e()))}))}function gc({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,sampling:i}){return he("scroll",G(en(G((i=>{const a=mn(i);if(!a||ve(a,r,o,s,!0))return;const u=n.getId(a);if(a===t&&t.defaultView){const n=ic(t.defaultView);e({id:u,x:n.left,y:n.top})}else e({id:u,x:a.scrollLeft,y:a.scrollTop})})),i.scroll||100)),t)}function wh({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return he("resize",G(en(G((()=>{const t=ac(),o=cc();(n!==t||r!==o)&&(e({width:Number(o),height:Number(t)}),n=t,r=o)})),200)),t)}const bh=["INPUT","TEXTAREA","SELECT"],Di=new WeakMap;function Th({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,ignoreClass:i,ignoreSelector:a,maskInputOptions:u,maskInputFn:c,sampling:l,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:m,maskTextSelector:h,unmaskTextSelector:f}){function y(e){let n=mn(e);const l=e.isTrusted,y=n&&hs(n.tagName);if("OPTION"===y&&(n=n.parentElement),!n||!y||bh.indexOf(y)<0||ve(n,r,o,s,!0))return;const v=n;if(v.classList.contains(i)||a&&v.matches(a))return;const b=Xs(n);let _=qn(v,y,b),S=!1;const w=pr({maskInputOptions:u,tagName:y,type:b}),I=It(n,p,h,m,f,w);("radio"===b||"checkbox"===b)&&(S=n.checked),_=Xt({isMasked:I,element:n,value:_,maskInputFn:c}),g(n,d?{text:_,isChecked:S,userTriggered:l}:{text:_,isChecked:S});const A=n.name;"radio"===b&&A&&S&&t.querySelectorAll(`input[type="radio"][name="${A}"]`).forEach((e=>{if(e!==n){const t=Xt({isMasked:I,element:e,value:qn(e,y,b),maskInputFn:c});g(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}}))}function g(t,r){const o=Di.get(t);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){Di.set(t,r);const o=n.getId(t);G(e)({...r,id:o})}}const v=("last"===l.input?["change"]:["input","change"]).map((e=>he(e,G(y),t))),b=t.defaultView;if(!b)return()=>{v.forEach((e=>e()))};const _=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),S=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return _&&_.set&&v.push(...S.map((e=>oc(e[0],e[1],{set(){G(y)({target:this,isTrusted:!1})}},!1,b)))),G((()=>{v.forEach((e=>e()))}))}function Kn(e){return function(e,t){if(Rn("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Rn("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Rn("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Rn("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function je(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function kh({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:G(((r,o,s)=>{const[i,a]=s,{id:u,styleId:c}=je(o,t,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,adds:[{rule:i,index:a}]}),r.apply(o,s)}))});const s=r.CSSStyleSheet.prototype.deleteRule;let i,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:G(((r,o,s)=>{const[i]=s,{id:a,styleId:u}=je(o,t,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&e({id:a,styleId:u,removes:[{index:i}]}),r.apply(o,s)}))}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:G(((r,o,s)=>{const[i]=s,{id:a,styleId:u}=je(o,t,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&e({id:a,styleId:u,replace:i}),r.apply(o,s)}))})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:G(((r,o,s)=>{const[i]=s,{id:a,styleId:u}=je(o,t,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&e({id:a,styleId:u,replaceSync:i}),r.apply(o,s)}))}));const u={};Mn("CSSGroupingRule")?u.CSSGroupingRule=r.CSSGroupingRule:(Mn("CSSMediaRule")&&(u.CSSMediaRule=r.CSSMediaRule),Mn("CSSConditionRule")&&(u.CSSConditionRule=r.CSSConditionRule),Mn("CSSSupportsRule")&&(u.CSSSupportsRule=r.CSSSupportsRule));const c={};return Object.entries(u).forEach((([r,o])=>{c[r]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(c[r].insertRule,{apply:G(((r,o,s)=>{const[i,a]=s,{id:u,styleId:c}=je(o.parentStyleSheet,t,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,adds:[{rule:i,index:[...Kn(o),a||0]}]}),r.apply(o,s)}))}),o.prototype.deleteRule=new Proxy(c[r].deleteRule,{apply:G(((r,o,s)=>{const[i]=s,{id:a,styleId:u}=je(o.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&e({id:a,styleId:u,removes:[{index:[...Kn(o),i]}]}),r.apply(o,s)}))})})),G((()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=s,i&&(r.CSSStyleSheet.prototype.replace=i),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(u).forEach((([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule}))}))}function _c({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const o="#document"===n.nodeName?be([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):be([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),s=be([o,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(be([o,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&o&&s?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get(){return be([s,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=be([s,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch{}return n}}),G((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get:s.get,set:s.set})}))):()=>{}}function Ch({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const s=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:G(((o,i,a)=>{const[u,c,l]=a;if(n.has(u))return s.apply(i,[u,c,l]);const{id:d,styleId:p}=je(be([i,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:u,value:c,priority:l},index:Kn(i.parentRule)}),o.apply(i,a)}))});const i=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:G(((o,s,a)=>{const[u]=a;if(n.has(u))return i.apply(s,[u]);const{id:c,styleId:l}=je(be([s,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,remove:{property:u},index:Kn(s.parentRule)}),o.apply(s,a)}))}),G((()=>{o.CSSStyleDeclaration.prototype.setProperty=s,o.CSSStyleDeclaration.prototype.removeProperty=i}))}function Oh({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:s,doc:i}){const a=G((i=>en(G((s=>{const a=mn(s);if(!a||ve(a,t,n,r,!0))return;const{currentTime:u,volume:c,muted:l,playbackRate:d}=a;e({type:i,id:o.getId(a),currentTime:u,volume:c,muted:l,playbackRate:d})})),s.media||500))),u=[he("play",a(0),i),he("pause",a(1),i),he("seeked",a(2),i),he("volumechange",a(3),i),he("ratechange",a(4),i)];return G((()=>{u.forEach((e=>e()))}))}function Rh({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,n){const r=new s(e,t,n);return o.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const i=eo(t.fonts,"add",(function(t){return function(n){return mr(G((()=>{const t=o.get(n);t&&(e(t),o.delete(n))})),0),t.apply(this,[n])}}));return r.push((()=>{n.FontFace=s})),r.push(i),G((()=>{r.forEach((e=>e()))}))}function Mh(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,selectionCb:i}=e;let a=!0;const u=G((()=>{const e=t.getSelection();if(!e||a&&be([e,"optionalAccess",e=>e.isCollapsed]))return;a=e.isCollapsed||!1;const u=[],c=e.rangeCount||0;for(let t=0;t<c;t++){const i=e.getRangeAt(t),{startContainer:a,startOffset:c,endContainer:l,endOffset:d}=i;ve(a,r,o,s,!0)||ve(l,r,o,s,!0)||u.push({start:n.getId(a),startOffset:c,end:n.getId(l),endOffset:d})}i({ranges:u})}));return u(),he("selectionchange",u)}function Ph({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?eo(n.customElements,"define",(function(e){return function(n,r,o){try{t({define:{name:n}})}catch{}return e.apply(this,[n,r,o])}})):()=>{}}function Dh(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=yc(e,e.doc));const o=Eh(e),s=Ih(e),i=gc(e),a=wh(e,{win:n}),u=Th(e),c=Oh(e);let l=()=>{},d=()=>{},p=()=>{},m=()=>{};e.recordDOM&&(l=kh(e,{win:n}),d=_c(e,e.doc),p=Ch(e,{win:n}),e.collectFonts&&(m=Rh(e)));const h=Mh(e),f=Ph(e),y=[];for(const t of e.plugins)y.push(t.observer(t.callback,n,t.options));return G((()=>{mt.forEach((e=>e.reset())),be([r,"optionalAccess",e=>e.disconnect,"call",e=>e()]),o(),s(),i(),a(),u(),c(),l(),d(),p(),m(),h(),f(),y.forEach((e=>e()))}))}function Rn(e){return typeof window[e]<"u"}function Mn(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Ss{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const o=n||this.getIdToRemoteIdMap(e),s=r||this.getRemoteIdToIdMap(e);let i=o.get(t);return i||(i=this.generateIdFn(),o.set(t,i),s.set(i,t)),i}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,n,r)))}getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;return r.get(t)||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,n)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function Ai(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=s(n)):("call"===o||"optionalCall"===o)&&(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}class Ah{constructor(){this.crossOriginIframeMirror=new Ss(Zs),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class xh{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Ss(Zs),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Ss(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),Ai([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]);const n=no(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin||!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case z.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:z.IncrementalSnapshot,data:{source:F.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case z.Meta:case z.Load:case z.DomContentLoaded:return!1;case z.Plugin:return t;case z.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case z.IncrementalSnapshot:switch(t.data.source){case F.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case F.Drag:case F.TouchMove:case F.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case F.ViewportResize:return!1;case F.MediaInteraction:case F.MouseInteraction:case F.Scroll:case F.CanvasMutation:case F.Input:return this.replaceIds(t.data,e,["id"]),t;case F.StyleSheetRule:case F.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case F.Font:return t;case F.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case F.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),Ai([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t((t=>{this.replaceStyleIds(t,e,["styleId"])}))]),t}}return!1}replace(e,t,n,r){for(const o of r)!Array.isArray(t[o])&&"number"!=typeof t[o]||(Array.isArray(t[o])?t[o]=e.getIds(n,t[o]):t[o]=e.getId(n,t[o]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type!==ae.Document&&!e.rootId&&(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class Bh{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class Nh{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!$t(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const n=yc({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(gc({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),mr((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(_c({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){const t=no(e),n=mh(e);!t||!n||this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(eo(e.prototype,"attachShadow",(function(e){return function(r){const o=e.call(this,r);return this.shadowRoot&&mc(this)&&n.addShadowRoot(this.shadowRoot,t),o}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch{}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class xi{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class Lh{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new uh,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},r=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:Ja(e),index:t})))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class Uh{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.active||(this.active=!0,ph((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let oe,Yn;try{if(2!==Array.from([1],(e=>2*e))[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=Bn([e,"access",e=>e.contentWindow,"optionalAccess",e=>e.Array,"access",e=>e.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const we=Lm();function Ue(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:s=null,unblockSelector:i=null,ignoreClass:a="rr-ignore",ignoreSelector:u=null,maskAllText:c=!1,maskTextClass:l="rr-mask",unmaskTextClass:d=null,maskTextSelector:p=null,unmaskTextSelector:m=null,inlineStylesheet:h=!0,maskAllInputs:f,maskInputOptions:y,slimDOMOptions:g,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,maxCanvasSize:S=null,packFn:w,sampling:I={},dataURLOptions:A={},mousemoveWait:k,recordDOM:E=!0,recordCanvas:T=!1,recordCrossOriginIframes:C=!1,recordAfter:O=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:q=!1,collectFonts:R=!1,inlineImages:x=!1,plugins:P,keepIframeSrcFn:M=()=>!1,ignoreCSSAttributes:D=new Set([]),errorHandler:N,onMutation:L,getCanvasManager:B}=e;vh(N);const V=!C||window.parent===window;let U=!1;if(!V)try{window.parent.document&&(U=!1)}catch{U=!0}if(V&&!t)throw new Error("emit function is required");if(!V&&!U)return()=>{};void 0!==k&&void 0===I.mousemove&&(I.mousemove=k),we.reset();const j=!0===f?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==y?y:{},$=!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===g,headMetaDescKeywords:"all"===g}:g||{};ch();let W,H=0;const K=e=>{for(const t of P||[])t.eventProcessor&&(e=t.eventProcessor(e));return w&&!U&&(e=w(e)),e};oe=(e,o)=>{const s=e;if(s.timestamp=Qn(),Bn([mt,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])&&s.type!==z.FullSnapshot&&!(s.type===z.IncrementalSnapshot&&s.data.source===F.Mutation)&&mt.forEach((e=>e.unfreeze())),V)Bn([t,"optionalCall",e=>e(K(s),o)]);else if(U){const e={type:"rrweb",event:K(s),origin:window.location.origin,isCheckout:o};window.parent.postMessage(e,"*")}if(s.type===z.FullSnapshot)W=s,H=0;else if(s.type===z.IncrementalSnapshot){if(s.data.source===F.Mutation&&s.data.isAttachIframe)return;H++;const e=r&&H>=r,t=n&&W&&s.timestamp-W.timestamp>n;(e||t)&&re(!0)}};const Q=e=>{oe({type:z.IncrementalSnapshot,data:{source:F.Mutation,...e}})},J=e=>oe({type:z.IncrementalSnapshot,data:{source:F.Scroll,...e}}),X=e=>oe({type:z.IncrementalSnapshot,data:{source:F.CanvasMutation,...e}}),Y=new Lh({mutationCb:Q,adoptedStyleSheetCb:e=>oe({type:z.IncrementalSnapshot,data:{source:F.AdoptedStyleSheet,...e}})}),Z="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new Ah:new xh({mirror:we,mutationCb:Q,stylesheetManager:Y,recordCrossOriginIframes:C,wrappedEmit:oe});for(const e of P||[])e.getMirror&&e.getMirror({nodeMirror:we,crossOriginIframeMirror:Z.crossOriginIframeMirror,crossOriginIframeStyleMirror:Z.crossOriginIframeStyleMirror});const ee=new Uh,te=Fh(B,{mirror:we,win:window,mutationCb:e=>oe({type:z.IncrementalSnapshot,data:{source:F.CanvasMutation,...e}}),recordCanvas:T,blockClass:o,blockSelector:s,unblockSelector:i,maxCanvasSize:S,sampling:I.canvas,dataURLOptions:A,errorHandler:N}),ne="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Bh:new Nh({mutationCb:Q,scrollCb:J,bypassOptions:{onMutation:L,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:c,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:h,maskInputOptions:j,dataURLOptions:A,maskAttributeFn:v,maskTextFn:_,maskInputFn:b,recordCanvas:T,inlineImages:x,sampling:I,slimDOMOptions:$,iframeManager:Z,stylesheetManager:Y,canvasManager:te,keepIframeSrcFn:M,processedNodeManager:ee},mirror:we}),re=(e=!1)=>{if(!E)return;oe({type:z.Meta,data:{href:window.location.href,width:cc(),height:ac()}},e),Y.reset(),ne.init(),mt.forEach((e=>e.lock()));const t=ih(document,{mirror:we,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:c,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:h,maskAllInputs:j,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,slimDOM:$,dataURLOptions:A,recordCanvas:T,inlineImages:x,onSerialize:e=>{dc(e,we)&&Z.addIframe(e),pc(e,we)&&Y.trackLinkElement(e),_s(e)&&ne.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Z.attachIframe(e,t),e.contentWindow&&te.addWindow(e.contentWindow),ne.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Y.attachLinkElement(e,t)},keepIframeSrcFn:M});if(!t)return console.warn("Failed to snapshot the document");oe({type:z.FullSnapshot,data:{node:t,initialOffset:ic(window)}}),mt.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Y.adoptStyleSheets(document.adoptedStyleSheets,we.getId(document))};Yn=re;try{const e=[],t=e=>G(Dh)({onMutation:L,mutationCb:Q,mousemoveCb:(e,t)=>oe({type:z.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>oe({type:z.IncrementalSnapshot,data:{source:F.MouseInteraction,...e}}),scrollCb:J,viewportResizeCb:e=>oe({type:z.IncrementalSnapshot,data:{source:F.ViewportResize,...e}}),inputCb:e=>oe({type:z.IncrementalSnapshot,data:{source:F.Input,...e}}),mediaInteractionCb:e=>oe({type:z.IncrementalSnapshot,data:{source:F.MediaInteraction,...e}}),styleSheetRuleCb:e=>oe({type:z.IncrementalSnapshot,data:{source:F.StyleSheetRule,...e}}),styleDeclarationCb:e=>oe({type:z.IncrementalSnapshot,data:{source:F.StyleDeclaration,...e}}),canvasMutationCb:X,fontCb:e=>oe({type:z.IncrementalSnapshot,data:{source:F.Font,...e}}),selectionCb:e=>{oe({type:z.IncrementalSnapshot,data:{source:F.Selection,...e}})},customElementCb:e=>{oe({type:z.IncrementalSnapshot,data:{source:F.CustomElement,...e}})},blockClass:o,ignoreClass:a,ignoreSelector:u,maskAllText:c,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:m,maskInputOptions:j,inlineStylesheet:h,sampling:I,recordDOM:E,recordCanvas:T,inlineImages:x,userTriggeredOnInput:q,collectFonts:R,doc:e,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,keepIframeSrcFn:M,blockSelector:s,unblockSelector:i,slimDOMOptions:$,dataURLOptions:A,mirror:we,iframeManager:Z,stylesheetManager:Y,shadowDomManager:ne,processedNodeManager:ee,canvasManager:te,ignoreCSSAttributes:D,plugins:Bn([P,"optionalAccess",e=>e.filter,"call",e=>e((e=>e.observer)),"optionalAccess",e=>e.map,"call",e=>e((e=>({observer:e.observer,options:e.options,callback:t=>oe({type:z.Plugin,data:{plugin:e.name,payload:t}})})))])||[]},{});Z.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}));const n=()=>{re(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(he("DOMContentLoaded",(()=>{oe({type:z.DomContentLoaded,data:{}}),"DOMContentLoaded"===O&&n()}))),e.push(he("load",(()=>{oe({type:z.Load,data:{}}),"load"===O&&n()}),window))),()=>{e.forEach((e=>e())),ee.destroy(),Yn=void 0,Sh()}}catch(e){console.warn(e)}}function Vh(e){if(!Yn)throw new Error("please take full snapshot after start recording");Yn(e)}function Fh(e,t){try{return e?e(t):new xi}catch{return console.warn("Unable to initialize CanvasManager"),new xi}}Ue.mirror=we,Ue.takeFullSnapshot=Vh;const $h=3,jh=5;function ro(e){return e>9999999999?e:1e3*e}function jr(e){return e>9999999999?e/1e3:e}function hn(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:z.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:xe(t,10,1e3)}}),"console"===t.category))))}const zh="button,a";function vc(e){return e.closest(zh)||e}function Sc(e){const t=Ec(e);return t&&t instanceof Element?vc(t):t}function Ec(e){return Hh(e)?e.target:e}function Hh(e){return"object"==typeof e&&!!e&&"target"in e}let ze;function Wh(e){return ze||(ze=[],qh()),ze.push(e),()=>{const t=ze?ze.indexOf(e):-1;t>-1&&ze.splice(t,1)}}function qh(){Ee(Z,"open",(function(e){return function(...t){if(ze)try{ze.forEach((e=>e()))}catch{}return e.apply(Z,t)}}))}const Gh=new Set([F.Mutation,F.StyleSheetRule,F.StyleDeclaration,F.AdoptedStyleSheet,F.CanvasMutation,F.Selection,F.MediaInteraction]);function Qh(e,t,n){e.handleClick(t,n)}class Kh{constructor(e,t,n=hn){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=Wh((()=>{this._lastMutation=Bi()}));this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(Jh(t,this._ignoreSelector)||!Xh(e))return;const n={timestamp:jr(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=jr(e)}registerScroll(e=Date.now()){this._lastScroll=jr(e)}registerClick(e){const t=vc(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=Bi();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}));for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,o=!n&&!r,{clickCount:s,clickBreadcrumb:i}=e;if(o){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:{...i.data,url:Z.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:s||1}};this._addBreadcrumbEvent(t,o)}else if(s>1){const e={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:Z.location.href,route:t.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=St((()=>this._checkClicks()),1e3)}}const Yh=["A","BUTTON","INPUT"];function Jh(e,t){return!!(!Yh.includes(e.tagName)||"INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||"")||"A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target"))||t&&e.matches(t))}function Xh(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}function Bi(){return Date.now()/1e3}function Zh(e,t){try{if(!ey(t))return;const{source:n}=t.data;if(Gh.has(n)&&e.registerMutation(t.timestamp),n===F.Scroll&&e.registerScroll(t.timestamp),ty(t)){const{type:n,id:r}=t.data,o=Ue.mirror.getNode(r);o instanceof HTMLElement&&n===fe.Click&&e.registerClick(o)}}catch{}}function ey(e){return 3===e.type}function ty(e){return e.data.source===F.MouseInteraction}function Re(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Jn;!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Jn||(Jn={}));const ny=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function ry(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(ny.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),t[r]=e[n]}return t}const sy=e=>t=>{if(!e.isEnabled())return;const n=oy(t);if(!n)return;const r="click"===t.name,o=r?t.event:void 0;r&&e.clickDetector&&o&&o.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&Qh(e.clickDetector,n,Sc(t.event)),hn(e,n)};function Ic(e,t){const n=Ue.mirror.getId(e),r=n&&Ue.mirror.getNode(n),o=r&&Ue.mirror.getMeta(r),s=o&&ay(o)?o:null;return{message:t,data:s?{nodeId:n,node:{id:n,tagName:s.tagName,textContent:Array.from(s.childNodes).map((e=>e.type===Jn.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:ry(s.attributes)}}:{}}}function oy(e){const{target:t,message:n}=iy(e);return Re({category:`ui.${e.name}`,...Ic(t,n)})}function iy(e){const t="click"===e.name;let n,r=null;try{r=t?Sc(e.event):Ec(e.event),n=zs(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function ay(e){return e.type===Jn.Element}function cy(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=uy(t);n&&hn(e,n)}function uy(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:s,target:i}=e;if(!i||ly(i)||!s)return null;const a=t||r||o,u=1===s.length;if(!a&&u)return null;const c=zs(i,{maxStringLength:200})||"<unknown>";return Re({category:"ui.keyDown",message:c,data:{...Ic(i,c).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:s}})}function ly(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}const dy={resource:yy,paint:my,navigation:hy};function Pn(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function py(e){return e.map(fy).filter(Boolean)}function fy(e){const t=dy[e.entryType];return t?t(e):null}function wt(e){return((Hd||Z.performance.timeOrigin)+e)/1e3}function my(e){const{duration:t,entryType:n,name:r,startTime:o}=e,s=wt(o);return{type:n,name:r,start:s,end:s+t,data:void 0}}function hy(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:s,encodedBodySize:i,domContentLoadedEventStart:a,domContentLoadedEventEnd:u,domInteractive:c,loadEventStart:l,loadEventEnd:d,redirectCount:p,startTime:m,transferSize:h,type:f}=e;return 0===o?null:{type:`${t}.${f}`,start:wt(m),end:wt(s),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:i,duration:o,domInteractive:c,domContentLoadedEventStart:a,domContentLoadedEventEnd:u,loadEventStart:l,loadEventEnd:d,domComplete:s,redirectCount:p}}}function yy(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:s,decodedBodySize:i,encodedBodySize:a,responseStatus:u,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:wt(s),end:wt(o),name:r,data:{size:c,statusCode:u,decodedBodySize:i,encodedBodySize:a}}}function gy(e){const t=e.entries[e.entries.length-1];return hr(e,"largest-contentful-paint",t&&t.element?[t.element]:void 0)}function _y(e){return void 0!==e.sources}function vy(e){const t=[],n=[];for(const r of e.entries)if(_y(r)){const e=[];for(const t of r.sources)if(t.node){n.push(t.node);const r=Ue.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return hr(e,"cumulative-layout-shift",n,t)}function Sy(e){const t=e.entries[e.entries.length-1];return hr(e,"first-input-delay",t&&t.target?[t.target]:void 0)}function Ey(e){const t=e.entries[e.entries.length-1];return hr(e,"interaction-to-next-paint",t&&t.target?[t.target]:void 0)}function hr(e,t,n,r){const o=e.value,s=e.rating,i=wt(o);return{type:"web-vital",name:t,start:i,end:i,data:{value:o,size:o,rating:s,nodeIds:n?n.map((e=>Ue.mirror.getId(e))):void 0,attributions:r}}}function Iy(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const r=[];return["navigation","paint","resource"].forEach((e=>{r.push(Qf(e,n))})),r.push(Wf(Pn(gy,e)),Hf(Pn(vy,e)),qf(Pn(Sy,e)),Gf(Pn(Ey,e))),()=>{r.forEach((e=>e()))}}const L=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,wy='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==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;++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});';function by(){const e=new Blob([wy]);return URL.createObjectURL(e)}const Ni=["info","warn","error","log"],Nn="[Replay] ";function zr(e,t="info"){sf({category:"console",data:{logger:"replay"},level:t,message:`${Nn}${e}`},{level:t})}function Ty(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{e=n.captureExceptions,t=n.traceInternals}};return L?(Ni.forEach((e=>{n[e]=(...n)=>{ye[e](Nn,...n),t&&zr(n.join(""),of(e))}})),n.exception=(r,...o)=>{o.length&&n.error&&n.error(...o),ye.error(Nn,r),e?qs(r):t&&zr(r,"error")},n.infoTick=(...e)=>{ye.info(Nn,...e),t&&setTimeout((()=>zr(e[0])),0)}):Ni.forEach((e=>{n[e]=()=>{}})),n}const V=Ty();class so extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Js}.`)}}class wc{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(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>Js)throw new so;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?ro(e):null}}class ky{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){L&&V.info("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,o)=>{const s=({data:t})=>{const i=t;if(i.method===e&&i.id===n){if(this._worker.removeEventListener("message",s),!i.success)return L&&V.error("Error in compression worker: ",i.response),void o(new Error("Error in compression worker"));r(i.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class Cy{constructor(e){this._worker=new ky(e),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(e){const t=ro(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>Js?Promise.reject(new so):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{L&&V.exception(e,'Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class Oy{constructor(e){this._fallback=new wc,this._compression=new Cy(e),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(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void(L&&V.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(const t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){L&&V.exception(e,"Failed to add events when switching buffers.")}}}function Ry({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=My(t);if(e)return e}return L&&V.info("Using simple buffer"),new wc}function My(e){try{const t=e||Py();if(!t)return;L&&V.info("Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new Oy(n)}catch(e){L&&V.exception(e,"Failed to create compression worker")}}function Py(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?by():""}function oo(){try{return"sessionStorage"in Z&&!!Z.sessionStorage}catch{return!1}}function Dy(e){Ay(),e.session=void 0}function Ay(){if(oo())try{Z.sessionStorage.removeItem(Ks)}catch{}}function bc(e){return void 0!==e&&Math.random()<e}function Tc(e){const t=Date.now();return{id:e.id||Le(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function io(e){if(oo())try{Z.sessionStorage.setItem(Ks,JSON.stringify(e))}catch{}}function xy(e,t){return bc(e)?"session":!!t&&"buffer"}function Li({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const o=Tc({sampled:xy(e,t),previousSessionId:r});return n&&io(o),o}function By(){if(!oo())return null;try{const e=Z.sessionStorage.getItem(Ks);if(!e)return null;const t=JSON.parse(e);return L&&V.infoTick("Loading existing session"),Tc(t)}catch{return null}}function Es(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function kc(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return Es(e.started,t,r)||Es(e.lastActivity,n,r)}function Cc(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!kc(e,{sessionIdleExpire:t,maxReplayDuration:n})||"buffer"===e.sampled&&0===e.segmentId)}function Hr({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const o=r.stickySession&&By();return o?Cc(o,{sessionIdleExpire:e,maxReplayDuration:t})?(L&&V.infoTick("Session in sessionStorage is expired, creating new one..."),Li(r,{previousSessionId:o.id})):o:(L&&V.infoTick("Creating new session"),Li(r,{previousSessionId:n}))}function Ny(e){return e.type===z.Custom}function ao(e,t,n){return!!Rc(e,t)&&(Oc(e,t,n),!0)}function Ly(e,t,n){return Rc(e,t)?Oc(e,t,n):Promise.resolve(null)}async function Oc(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const o="buffer"===e.recordingMode;try{n&&o&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const s=Uy(t,e.getOptions().beforeAddRecordingEvent);return s?await r.addEvent(s):void 0}catch(t){const n=t&&t instanceof so,s=n?"addEventSizeExceeded":"addEvent";if(n&&o)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:s});const i=Pe();i&&i.recordDroppedEvent("internal_sdk_error","replay")}}function Rc(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=ro(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(L&&V.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function Uy(e,t){try{if("function"==typeof t&&Ny(e))return t(e)}catch(e){return L&&V.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function co(e){return!e.type}function Is(e){return"transaction"===e.type}function Vy(e){return"replay_event"===e.type}function Ui(e){return"feedback"===e.type}function Fy(e){return(t,n)=>{if(!e.isEnabled()||!co(t)&&!Is(t))return;const r=n&&n.statusCode;if(!(!r||r<200||r>=300)){if(Is(t))return void $y(e,t);jy(e,t)}}}function $y(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function jy(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();"function"==typeof r&&!r(t)||St((async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}}))}function zy(e){return t=>{!e.isEnabled()||!co(t)||Hy(e,t)}}function Hy(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if("string"==typeof n&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){hn(e,Re({category:"replay.hydrate-error",data:{url:Ud()}}))}}function Wy(e){const t=Pe();t&&t.on("beforeAddBreadcrumb",(t=>qy(e,t)))}function qy(e,t){if(!e.isEnabled()||!Mc(t))return;const n=Gy(t);n&&hn(e,n)}function Gy(e){return!Mc(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:"console"===e.category?Qy(e):Re(e)}function Qy(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return Re(e);let n=!1;const r=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>On?(n=!0,`${e.slice(0,On)}…`):e;if("object"==typeof e)try{const t=xe(e,7);return JSON.stringify(t).length>On?(n=!0,`${JSON.stringify(t,null,2).slice(0,On)}…`):t}catch{}return e}));return Re({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function Mc(e){return!!e.category}function Ky(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length)&&!(!t.originalException||!t.originalException.__rrweb__)}function Pc(){const e=bt().getPropagationContext().dsc;e&&delete e.replay_id;const t=Na();if(t){delete Ua(t).replay_id}}function Yy(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:z.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}function Jy(e,t){return!("buffer"!==e.recordingMode||t.message===Ys||!t.exception||t.type)&&bc(e.getOptions().errorSampleRate)}function Xy(e){return Object.assign(((t,n)=>!e.isEnabled()||e.isPaused()?t:Vy(t)?(delete t.breadcrumbs,t):co(t)||Is(t)||Ui(t)?e.checkAndHandleExpiredSession()?Ui(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),Yy(e,t),t):Ky(t,n)&&!e.getOptions()._experiments.captureExceptions?(L&&V.log("Ignoring error from rrweb internals",t),null):((Jy(e,t)||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(Pc(),t):t),{id:"Replay"})}function yr(e,t){return t.map((({type:t,start:n,end:r,name:o,data:s})=>{const i=e.throttledAddEvent({type:z.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:o,startTimestamp:n,endTimestamp:r,data:s}}});return"string"==typeof i?Promise.resolve(null):i}))}function Zy(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function eg(e){return t=>{if(!e.isEnabled())return;const n=Zy(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(yr(e,[n]),!1))))}}function tg(e,t){return(!L||!e.getOptions()._experiments.traceInternals)&&ef(t,Pe())}function Dc(e,t){e.isEnabled()&&null!==t&&(tg(e,t.name)||e.addUpdate((()=>(yr(e,[t]),!0))))}function gr(e){if(!e)return;const t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=Nc(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function Ac(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function xc(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Nc(e)];if(!e)return[void 0]}catch(t){return L&&V.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return L&&V.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Xn(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function Bc(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:s,statusCode:i,request:a,response:u}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:Te({method:s,statusCode:i,request:a,response:u})}}function tn(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function We(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:o,warnings:s}=ng(n);return r.body=o,s&&s.length>0&&(r._meta={warnings:s}),r}function ws(e,t){return Object.entries(e).reduce(((n,[r,o])=>{const s=r.toLowerCase();return t.includes(s)&&e[r]&&(n[s]=o),n}),{})}function Nc(e){return new URLSearchParams(e).toString()}function ng(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>_i,n=rg(e);if(t){const t=e.slice(0,_i);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function rg(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}function Zn(e,t){return Fd(sg(e),t)}function sg(e,t=Z.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Z.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function og(e,t,n){try{const r=Bc("resource.fetch",await ag(e,t,n));Dc(n.replay,r)}catch(e){L&&V.exception(e,"Failed to capture fetch breadcrumb")}}function ig(e,t){const{input:n,response:r}=t,o=gr(n?Lc(n):void 0),s=r?Ac(r.headers.get("content-length")):void 0;void 0!==o&&(e.data.request_body_size=o),void 0!==s&&(e.data.response_body_size=s)}async function ag(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:s=r}=t,{url:i,method:a,status_code:u=0,request_body_size:c,response_body_size:l}=e.data,d=Zn(i,n.networkDetailAllowUrls)&&!Zn(i,n.networkDetailDenyUrls);return{startTimestamp:o,endTimestamp:s,url:i,method:a,statusCode:u,request:d?cg(n,t.input,c):tn(c),response:await ug(d,n,t.response,l)}}function cg({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const o=n?pg(n,t):{};if(!e)return We(o,r,void 0);const s=Lc(n),[i,a]=xc(s),u=We(o,r,i);return a?Xn(u,a):u}async function ug(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,o){if(!e&&void 0!==o)return tn(o);const s=r?Uc(r.headers,n):{};if(!r||!t&&void 0!==o)return We(s,o,void 0);const[i,a]=await dg(r),u=lg(i,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:s});return a?Xn(u,a):u}function lg(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:o}){try{const s=e&&e.length&&void 0===n?gr(e):n;return r?We(o,s,t?e:void 0):tn(s)}catch(e){return L&&V.exception(e,"Failed to serialize response body"),We(o,n,void 0)}}async function dg(e){const t=fg(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await mg(t)]}catch(e){return e instanceof Error&&e.message.indexOf("Timeout")>-1?(L&&V.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(L&&V.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function Lc(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function Uc(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function pg(e,t){return 1===e.length&&"string"!=typeof e[0]?Vi(e[0],t):2===e.length?Vi(e[1],t):{}}function Vi(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Uc(n,t):Array.isArray(n)?{}:ws(n,t):{}}function fg(e){try{return e.clone()}catch(e){L&&V.exception(e,"Failed to clone response body")}}function mg(e){return new Promise(((t,n)=>{const r=St((()=>n(new Error("Timeout while trying to read response body"))),500);hg(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(r)))}))}async function hg(e){return await e.text()}async function yg(e,t,n){try{const r=Bc("resource.xhr",_g(e,t,n));Dc(n.replay,r)}catch(e){L&&V.exception(e,"Failed to capture xhr breadcrumb")}}function gg(e,t){const{xhr:n,input:r}=t;if(!n)return;const o=gr(r),s=n.getResponseHeader("content-length")?Ac(n.getResponseHeader("content-length")):Ig(n.response,n.responseType);void 0!==o&&(e.data.request_body_size=o),void 0!==s&&(e.data.response_body_size=s)}function _g(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:s=r,input:i,xhr:a}=t,{url:u,method:c,status_code:l=0,request_body_size:d,response_body_size:p}=e.data;if(!u)return null;if(!a||!Zn(u,n.networkDetailAllowUrls)||Zn(u,n.networkDetailDenyUrls)){return{startTimestamp:o,endTimestamp:s,url:u,method:c,statusCode:l,request:tn(d),response:tn(p)}}const m=a[um],h=m?ws(m.request_headers,n.networkRequestHeaders):{},f=ws(vg(a),n.networkResponseHeaders),[y,g]=n.networkCaptureBodies?xc(i):[void 0],[v,b]=n.networkCaptureBodies?Sg(a):[void 0],_=We(h,d,y),S=We(f,p,v);return{startTimestamp:o,endTimestamp:s,url:u,method:c,statusCode:l,request:g?Xn(_,g):_,response:b?Xn(S,b):S}}function vg(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e}),{}):{}}function Sg(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return Eg(e.response,e.responseType)}catch(e){t.push(e)}return L&&V.warn("Failed to get xhr response body",...t),[void 0]}function Eg(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return L&&V.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return L&&V.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Ig(e,t){try{return gr("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch{return}}function wg(e){const t=Pe();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:s,networkResponseHeaders:i}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:s,networkResponseHeaders:i};t&&t.on("beforeAddBreadcrumb",((e,t)=>bg(a,e,t)))}catch{}}function bg(e,t,n){if(t.data)try{Tg(t)&&Cg(n)&&(gg(t,n),yg(t,n,e)),kg(t)&&Og(n)&&(ig(t,n),og(t,n,e))}catch(e){L&&V.exception(e,"Error when enriching network breadcrumb")}}function Tg(e){return"xhr"===e.category}function kg(e){return"fetch"===e.category}function Cg(e){return e&&e.xhr}function Og(e){return e&&e.response}function Rg(e){const t=Pe();tm(sy(e)),im(eg(e)),Wy(e),wg(e);Qp(Xy(e)),t&&(t.on("beforeSendEvent",zy(e)),t.on("afterSendEvent",Fy(e)),t.on("createDsc",(t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)})),t.on("spanStart",(t=>{e.lastActiveSpan=t})),t.on("spanEnd",(t=>{e.lastActiveSpan=t})),t.on("beforeSendFeedback",((t,n)=>{const r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)})))}async function Mg(e){try{return Promise.all(yr(e,[Pg(Z.performance.memory)]))}catch{return[]}}function Pg(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function Dg(e,t,n){let r,o,s;const i=n.maxWait?Math.max(n.maxWait,t):0;function a(){return u(),r=e(),r}function u(){void 0!==o&&clearTimeout(o),void 0!==s&&clearTimeout(s),o=s=void 0}function c(){return o&&clearTimeout(o),o=St(a,t),i&&void 0===s&&(s=St(a,i)),r}return c.cancel=u,c.flush=function(){return void 0!==o||void 0!==s?a():r},c}function Ag(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(L&&V.warn("Received replay event after session expired."));const o=r||!t;t=!0,e.clickDetector&&Zh(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&o&&e.setInitialState(),!ao(e,n,o))return!0;if(!o)return!1;const t=e.session;if(Bg(e,o),"buffer"===e.recordingMode&&t&&e.eventBuffer){const n=e.eventBuffer.getEarliestTimestamp();n&&(L&&V.info(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&io(t))}return t&&t.previousSessionId||"session"===e.recordingMode&&e.flush(),!0}))}}function xg(e){const t=e.getOptions();return{type:z.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function Bg(e,t){!t||!e.session||0!==e.session.segmentId||ao(e,xg(e),!1)}function Ng(e,t,n,r){return Op(Mp(e,Rp(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}function Lg({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}async function Ug({client:e,scope:t,replayId:n,event:r}){const o={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,o);const s=await Up(e.getOptions(),r,o,t,e,un());if(!s)return null;s.platform=s.platform||"javascript";const i=e.getSdkMetadata(),{name:a,version:u}=i&&i.sdk||{};return s.sdk={...s.sdk,name:a||"sentry.javascript.unknown",version:u||"0.0.0"},s}async function Vg({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:s}){const i=Lg({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:u,traceIds:c,initialTimestamp:l}=r,d=Pe(),p=bt(),m=d&&d.getTransport(),h=d&&d.getDsn();if(!(d&&m&&h&&s.sampled))return ti({});const f={type:_m,replay_start_timestamp:l/1e3,timestamp:o/1e3,error_ids:u,trace_ids:c,urls:a,replay_id:t,segment_id:n,replay_type:s.sampled},y=await Ug({scope:p,client:d,replayId:t,event:f});if(!y)return d.recordDroppedEvent("event_processor","replay",f),L&&V.info("An event processor returned `null`, will not send event."),ti({});delete y.sdkProcessingMetadata;const g=Ng(y,i,h,d.getOptions().tunnel);let v;try{v=await m.send(g)}catch(e){const t=new Error(Ys);try{t.cause=e}catch{}throw t}if("number"==typeof v.statusCode&&(v.statusCode<200||v.statusCode>=300))throw new Vc(v.statusCode);const b=Zp({},v);if(Xp(b,"replay"))throw new uo(b);return v}class Vc extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class uo extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function Fc(e,t={count:0,interval:bm}){const{recordingData:n,onError:r}=e;if(n.length)try{return await Vg(e),!0}catch(n){if(n instanceof Vc||n instanceof uo)throw n;if(qp("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){const e=new Error(`${Ys} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise(((n,r)=>{St((async()=>{try{await Fc(e,t),n(!0)}catch(e){r(e)}}),t.interval)}))}}const $c="__THROTTLED",Fg="__SKIPPED";function $g(e,t,n){const r=new Map;let o=!1;return(...s)=>{const i=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach(((e,n)=>{n<t&&r.delete(n)}))})(i),[...r.values()].reduce(((e,t)=>e+t),0)>=t){const e=o;return o=!0,e?Fg:$c}o=!1;const a=r.get(i)||0;return r.set(i,a+1),e(...s)}}class He{constructor({options:e,recordingOptions:t}){He.prototype.__init.call(this),He.prototype.__init2.call(this),He.prototype.__init3.call(this),He.prototype.__init4.call(this),He.prototype.__init5.call(this),He.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:vm,sessionIdleExpire:Sm},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=Dg((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=$g(((e,t)=>Ly(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),o=n?{threshold:Math.min(km,n),timeout:n,scrollTimeout:Cm,ignoreSelector:r?r.join(","):""}:void 0;if(o&&(this.clickDetector=new Kh(this,o)),L){const t=e._experiments;V.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){L&&V.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;if(this._requiresManualStart=r,!r){if(this._initializeSessionForSampling(e),!this.session)return void(L&&V.exception(new Error("Unable to initialize and create session")));!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",L&&V.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(L&&V.info("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(L&&V.info("Buffering is in progress, call `flush()` to save the replay"));L&&V.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=Hr({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(L&&V.info("Buffering is in progress, call `flush()` to save the replay"));L&&V.infoTick("Starting replay in buffer mode");const e=Hr({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=Ue({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:wm}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:Ag(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{L&&V.info("Stopping Replay"+(t?` triggered by ${t}`:"")),Pc(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,Dy(this)}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),L&&V.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),L&&V.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();L&&V.info("Converting buffer to session"),await this.flushImmediate();const n=this.stopRecording();!e||!n||"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&Es(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${Z.location.pathname}${Z.location.hash}${Z.location.search}`,t=`${Z.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===$c){const e=Re({category:"replay.throttled"});this.addUpdate((()=>!ao(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastActiveSpan||Na(),t=e&&Ws(e),n=(t&&Yt(t).data||{})[Ba];if(t&&n&&["route","custom"].includes(n))return Yt(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Ry({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=Hr({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!Cc(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{Z.document.addEventListener("visibilitychange",this._handleVisibilityChange),Z.addEventListener("blur",this._handleWindowBlur),Z.addEventListener("focus",this._handleWindowFocus),Z.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(Rg(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=Iy(this)}_removeListeners(){try{Z.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Z.removeEventListener("blur",this._handleWindowBlur),Z.removeEventListener("focus",this._handleWindowFocus),Z.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===Z.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=Re({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=Re({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{cy(this,e)}}_doChangeToBackgroundTasks(e){!this.session||kc(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){this.session&&(this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):L&&V.info("Document has become active, but session has expired"))}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:z.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){let e=py(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const t=this._context.initialTimestamp/1e3;e=e.filter((e=>e.start>=t))}return Promise.all(yr(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;const n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await Mg(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await Fc({replayId:e,recordingData:o,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:"sendReplay"});const t=Pe();if(t){const n=e instanceof uo?"ratelimit_backoff":"send_error";t.recordDroppedEvent(n,"replay")}}}else L&&V.error("No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(L&&V.error("Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,o=n>this._options.maxReplayDuration+5e3;if(r||o)return L&&V.info(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),void(r&&this._debouncedFlush());const s=this.eventBuffer;s&&0===this.session.segmentId&&!s.hasCheckout&&L&&V.info("Flushing initial segment without checkout.");const i=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,i&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&io(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,n=this._options.mutationLimit,r=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||r){const e=Re({category:"replay.mutations",data:{count:t,limit:r}});this._createCustomBreadcrumb(e)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function Rt(e,t){return[...e,...t].join(",")}function jg({mask:e,unmask:t,block:n,unblock:r,ignore:o}){return{maskTextSelector:Rt(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:Rt(t,[]),blockSelector:Rt(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:Rt(r,[]),ignoreSelector:Rt(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function zg({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:s}){return!r||o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?s:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?s.replace(/[\S]/g,"*"):s}const Fi='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Hg=["content-length","content-type","accept"];let $i=!1;const Wg=e=>new _r(e);class _r{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=Em,flushMaxDelay:t=Im,minReplayDuration:n=Om,maxReplayDuration:r=vi,stickySession:o=!0,useCompression:s=!0,workerUrl:i,_experiments:a={},maskAllText:u=!0,maskAllInputs:c=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:m=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:f=[],networkDetailDenyUrls:y=[],networkCaptureBodies:g=!0,networkRequestHeaders:v=[],networkResponseHeaders:b=[],mask:_=[],maskAttributes:S=["title","placeholder"],unmask:w=[],block:I=[],unblock:A=[],ignore:k=[],maskFn:E,beforeAddRecordingEvent:T,beforeErrorSampling:C,onError:O}={}){this.name=_r.id;const q=jg({mask:_,unmask:w,block:I,unblock:A,ignore:k});if(this._recordingOptions={maskAllInputs:c,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:E,maskInputFn:E,maskAttributeFn:(e,t,n)=>zg({maskAttributes:S,maskAllText:u,privacyOptions:q,key:e,value:t,el:n}),...q,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,Rm),maxReplayDuration:Math.min(r,vi),stickySession:o,useCompression:s,workerUrl:i,blockAllMedia:l,maskAllInputs:c,maskAllText:u,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:m,slowClickIgnoreSelectors:h,networkDetailAllowUrls:f,networkDetailDenyUrls:y,networkCaptureBodies:g,networkRequestHeaders:ji(v),networkResponseHeaders:ji(b),beforeAddRecordingEvent:T,beforeErrorSampling:C,onError:O,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Fi}`:Fi),this._isInitialized&&fi())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return $i}set _isInitialized(e){$i=e}afterAllSetup(e){!fi()||this._replay||(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(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(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const t=qg(this._initialOptions,e);this._replay=new He({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function qg(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...Te(e)},o=ci(n.replaysSessionSampleRate),s=ci(n.replaysOnErrorSampleRate);return null==o&&null==s&&Us((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")})),null!=o&&(r.sessionSampleRate=o),null!=s&&(r.errorSampleRate=s),r}function ji(e){return[...Hg,...e.map((e=>e.toLowerCase()))]}_r.__initStatic();const jc=()=>"object"!=typeof window;var Gg={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.16.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/store/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/store/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.16.0/bin",TURBO_HASH:"98ecacf4158cbab4",NODE:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_package_name:"@wellesley/store",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.259",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.16.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/store",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/store",EDITOR:"vi",NODE_ENV:"production",BUILD_NUMBER:"2944",APP_NAME:"@wellesley/store"};jc()||(window.build=Gg.BUILD_NUMBER),Wg(),fm(),uf();const zi={data:null,isError:!1,isPending:!1,isSuccess:!1},Qg=me({name:"user",initialState:zi,reducers:{reset:e=>{Object.assign(e,zi)},setData:(e,{payload:t})=>{e.data=t},updateData:(e,{payload:t})=>{e.data&&Object.assign(e.data,t)},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setPending:(e,{payload:t})=>{e.isPending=t},setIsError:(e,{payload:t})=>{e.isError=t},setError:(e,{payload:t})=>{e.error=t},updateUser:(e,{payload:t})=>{var n;null!=(n=e.data)&&n.users&&(e.data.users=e.data.users.map((e=>t.id===e.id?t:e)))}},selectors:{selectIsError:e=>e.isError,selectError:e=>e.error,selectPending:e=>e.isPending,selectData:e=>e.data,selectAccount:e=>{var t;return null==(t=e.data)?void 0:t.account},selectAccountId:e=>{var t;return null==(t=e.data)?void 0:t.account.id},selectUsers:e=>{var t;return null==(t=e.data)?void 0:t.users},selectUserById:(e,t)=>{var n;return null==(n=e.data)?void 0:n.users.find((({id:e})=>e===t))},selectCurrentUser:e=>{var t;return null==(t=e.data)?void 0:t.users.find((({id:t})=>{var n;return t===(null==(n=e.data)?void 0:n.selectedUserId)}))},selectSelectedUserId:e=>{var t;return null==(t=e.data)?void 0:t.selectedUserId},selectSuccess:e=>e.isSuccess,selectIsAdmin:e=>{var t;return"ADMIN"===(null==(t=e.data)?void 0:t.account.role)}}}),Kg=(...e)=>{let t="";for(const n of e){if(n instanceof Error){const e=n;return Gp("exceptionMessage",t),void qs(e)}if("object"!=typeof n)t+=n;else try{t+=" "+JSON.stringify(n)}catch{t+=" "+n}}Wp(t)},Hi=["debug","info","warn","error"],Yg=(e,t)=>{const n=Hi.indexOf(e);return Hi.indexOf(t)>=n},Dn=(e,t,n,...r)=>{Yg(t,e)&&console.log(`[${e}] ${n}`,...r)},Jg=()=>null==window?void 0:window.localStorage.getItem("logger_lvl"),Xg=(e=!jc()&&Jg()||"warn")=>{let t=e;return{debug:(e,...n)=>Dn("debug",t,e,...n),info:(e,...n)=>Dn("info",t,e,...n),warn:(e,...n)=>Dn("warn",t,e,...n),error:(e,...n)=>(Kg(e,...n),Dn("error",t,e,...n)),setLevel:e=>{t=e},getLevel:()=>t}},Tt=Xg(),vr="staticState",Ln={path:"",baseUrl:"",search:""},Zg=e=>{if(!e)return Ln;try{return JSON.parse(decodeURIComponent(e))||Ln}catch(e){return Tt.error("Error parsing static state",e),Ln}},zc=()=>new URLSearchParams(window.location.search).get(vr),e_=({path:e,baseUrl:t,search:n}={})=>{const{pathname:r,origin:o,search:s}=window.location;return`${vr}=${encodeURIComponent(JSON.stringify({path:e||r,baseUrl:t||o,search:n||s}))}`},t_=()=>{const e=zc();return e&&localStorage.setItem(vr,e),Hc()},Hc=()=>{try{const e=localStorage.getItem(vr)||zc();return Zg(e)}catch(e){return Tt.error("Error parsing static state",e),Ln}},n_={create:e_,init:t_,get:Hc},r_=e=>{try{const{type:t,payload:n}=e,r={type:t};return void 0!==n&&(r.payload=JSON.parse(JSON.stringify(n))),r}catch(t){return Tt.warn(`Could not serialize action type: ${e.type}`,t),{type:e.type,payload:`[Non-serializable payload for action: ${e.type}]`}}},s_=({action:e,windowElement:t,whitelist:n})=>{if(t)try{const{type:r}=e;if(!n.some((({type:e})=>e===r||"*"===e)))return;const o=r_(e);t.postMessage(o,"*")}catch(e){Tt.error("Failed to process or send message:",e)}},o_=({onMessage:e,whitelist:t})=>{const n=n=>{const r=n.origin!==window.location.origin,o=n.data&&"object"==typeof n.data&&"type"in n.data,s=t.some((({type:e})=>e===n.data.type||"*"===e));r&&o&&s&&e(n.data)};return window.addEventListener("message",n),()=>{window.removeEventListener("message",n)}},i_=async e=>{const t={};e.headers.forEach(((e,n)=>{t[n]=e}));return{body:["get","head"].includes(e.method.toLowerCase())?null:await(async()=>{try{return await e.text()}catch(e){return Tt.error("No body or error reading body:",e),null}})(),headers:t,url:e.url,method:e.method,mode:e.mode,credentials:e.credentials,cache:e.cache,redirect:e.redirect,referrer:e.referrer,integrity:e.integrity}},a_=e=>{const{url:t,status:n,statusText:r,headers:o,body:s}=e,i=new Response(JSON.stringify(s),{status:n,statusText:r,headers:o});return Object.defineProperty(i,"url",{value:t}),i},c_=async e=>{const t=crypto.randomUUID();return s_({action:Go({id:t,options:await i_(e)}),windowElement:window.parent,whitelist:[Go]}),new Promise((e=>{const n=o_({onMessage:({payload:{id:r,response:o}})=>{t===r&&(n(),e(a_(o)))},whitelist:[Ed]})}))},u_=()=>{var e;try{return(null==(e=window.wellesley)?void 0:e.v1)||window.wellesley}catch(e){Tt.error("Error getting window.wellesley:",e)}},l_=e=>new Response(JSON.stringify(e),{status:200,statusText:"OK",headers:{"Content-Type":"application/json"}}),d_=e=>{var t,n;if(e.url.includes("accounts/profile")){const e=null==(n=null==(t=u_())?void 0:t.initialState)?void 0:n.user;return!(null==e||!e.selectedUserId)&&l_(e)}},p_=Object.freeze(Object.defineProperty({__proto__:null,userHandler:d_},Symbol.toStringTag,{value:"Module"})),f_=e=>Object.values(p_).reduce(((t,n)=>t||n(e)),void 0),m_=async e=>f_(e)||await fetch(e),h_=()=>{try{return window.self!==window.top}catch{return!0}},y_=()=>e=>h_()?c_(e):m_(e),g_=n_.get().baseUrl,__=g_||"",v_=kl({fetchFn:y_(),baseUrl:__,responseHandler:e=>{const t=e.headers.get("content-type");return(null==t?void 0:t.startsWith("application/json"))?e.json():e.text()},prepareHeaders:e=>{const t=Ns.getToken();return t&&e.set("authorization",`Bearer ${t}`),e}}),S_=wd(Cd(v_)),E_=yd({tagTypes:["Secure","Post","Follow","Like","Settings","Rbac_Config","Admin_Apps","Admin_Users","Admin_Audit_Logs","Admin_Reports","Admin_Signup_Requests","Admin_Posts","Admin_Uploads","Admin_Roles","Admin_Jobs_Stats","Admin_Federation","Admin_Domain_Block","Group_Apps","User_Apps","Account","Profile","UserNoHtml","Relationship","Bookmarks",...Object.values(Ta)],reducerPath:"openapi",baseQuery:S_,endpoints:()=>({})}),Wc=E_.injectEndpoints({endpoints:e=>({postApiV1AccountsAddReason:e.mutation({query:e=>({url:"/api/v1/accounts/add-reason",method:"POST",body:e.signupReasonParams})}),postApiV1AccountsAuthenticateEmail:e.mutation({query:e=>({url:"/api/v1/accounts/authenticate/email",method:"POST",body:e.authRequest})}),postApiV1AccountsAuthenticatePhone:e.mutation({query:e=>({url:"/api/v1/accounts/authenticate/phone",method:"POST",body:e.authPhoneRequest})}),putApiV1AccountsChangeName:e.mutation({query:e=>({url:"/api/v1/accounts/change/name",method:"PUT",params:{id:e.id,name:e.name,username:e.username}})}),postApiV1AccountsCheckCaptcha:e.mutation({query:e=>({url:"/api/v1/accounts/check-captcha",method:"POST",body:e.captchaVerificationParams})}),postApiV1AccountsConfirmEmail:e.mutation({query:e=>({url:"/api/v1/accounts/confirm-email",method:"POST",body:e.codeVerificationParams})}),postApiV1AccountsConfirmPhone:e.mutation({query:e=>({url:"/api/v1/accounts/confirm-phone",method:"POST",body:e.codeVerificationParams})}),deleteApiV1AccountsDelete:e.mutation({query:()=>({url:"/api/v1/accounts/delete",method:"DELETE"})}),postApiV1AccountsEmailChangeConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/email/change/confirm",method:"POST",body:e.body})}),postApiV1AccountsEmailChangeRequest:e.mutation({query:e=>({url:"/api/v1/accounts/email/change/request",method:"POST",body:e.emailChangeRequest})}),putApiV1AccountsEmailChangeResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/email/change/resend-code",method:"PUT"})}),postApiV1AccountsFinishCreating:e.mutation({query:e=>({url:"/api/v1/accounts/finish-creating",method:"POST",body:e.finishCreatingAccountParams,params:{htmlContent:e.htmlContent}})}),putApiV1AccountsGetTokenByHash:e.mutation({query:e=>({url:`/api/v1/accounts/get-token/${e.hash}`,method:"PUT"})}),postApiV1AccountsLoginsAddEmailPassword:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-email-password",method:"POST",body:e.addEmailRequest})}),postApiV1AccountsLoginsAddEmailPasswordConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-email-password/confirm",method:"POST",body:e.body})}),putApiV1AccountsLoginsAddEmailPasswordResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/logins/add-email-password/resend-code",method:"PUT"})}),postApiV1AccountsLoginsAddPhone:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-phone",method:"POST",body:e.addPhoneRequest})}),deleteApiV1AccountsLoginsRemoveEmailPassword:e.mutation({query:()=>({url:"/api/v1/accounts/logins/remove-email-password",method:"DELETE"})}),deleteApiV1AccountsLoginsRemovePhone:e.mutation({query:()=>({url:"/api/v1/accounts/logins/remove-phone",method:"DELETE"})}),postApiV1AccountsPasswordChangeConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/password/change/confirm",method:"POST",body:e.body})}),postApiV1AccountsPasswordChangeRequest:e.mutation({query:e=>({url:"/api/v1/accounts/password/change/request",method:"POST",body:e.passwordChangeRequest})}),putApiV1AccountsPasswordChangeResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/password/change/resend-code",method:"PUT"})}),postApiV1AccountsPasswordRecover:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover",method:"POST",body:e.passwordRecoveryRequest})}),postApiV1AccountsPasswordRecoverChange:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover/change",method:"POST",body:e.passwordRecoveryChange})}),postApiV1AccountsPasswordRecoverCheckCode:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover/check-code",method:"POST",body:e.passwordRecoveryCode})}),postApiV1AccountsPhoneChangeConfirmAuth:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/confirm/auth",method:"POST",body:e.body})}),postApiV1AccountsPhoneChangeConfirmNewPhone:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/confirm/new-phone",method:"POST",body:e.body})}),postApiV1AccountsPhoneChangeNewPhone:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/new-phone",method:"POST",body:e.addPhoneRequest})}),putApiV1AccountsPhoneChangeRequest:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/request",method:"PUT"})}),putApiV1AccountsPhoneChangeResendCodeAuth:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/resend-code/auth",method:"PUT"})}),putApiV1AccountsPhoneChangeResendCodeNewPhone:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/resend-code/new-phone",method:"PUT"})}),getApiV1AccountsProfile:e.query({query:e=>({url:"/api/v1/accounts/profile",params:{htmlContent:e.htmlContent}})}),postApiV1AccountsReselectUser:e.mutation({query:e=>({url:"/api/v1/accounts/reselect-user",method:"POST",params:{userId:e.userId,userName:e.userName,htmlContent:e.htmlContent}})}),putApiV1AccountsResendCodeByHash:e.mutation({query:e=>({url:`/api/v1/accounts/resend-code/${e.hash}`,method:"PUT"})}),putApiV1AccountsResendEmailByHash:e.mutation({query:e=>({url:`/api/v1/accounts/resend-email/${e.hash}`,method:"PUT"})}),postApiV1AccountsSignup:e.mutation({query:e=>({url:"/api/v1/accounts/signup",method:"POST",body:e.accountCreate})}),postApiV1AccountsSignupPhone:e.mutation({query:e=>({url:"/api/v1/accounts/signup-phone",method:"POST",body:e.phoneSignup})}),postApiV1AccountsUserReselectUser:e.mutation({query:e=>({url:"/api/v1/accounts/user/reselect-user",method:"POST",params:{userId:e.userId,userName:e.userName}})}),getApiV1AccountsById:e.query({query:e=>({url:`/api/v1/accounts/${e.id}`,params:{htmlContent:e.htmlContent}})}),getApiV1AddressesSuggest:e.query({query:e=>({url:"/api/v1/addresses/suggest",params:{text:e.text}})}),getApiV1AdminAccountByAccountId:e.query({query:e=>({url:`/api/v1/admin/account/${e.accountId}`,params:{htmlContent:e.htmlContent}})}),getApiV1AdminAuditLog:e.query({query:e=>({url:"/api/v1/admin/audit_log",params:{accountId:e.accountId,action:e.action,appId:e.appId,domainSearch:e.domainSearch,email:e.email,group:e.group,lastId:e.lastId,limit:e.limit,offset:e.offset,ruleId:e.ruleId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId,username:e.username}})}),putApiV1AdminChangeEmail:e.mutation({query:e=>({url:"/api/v1/admin/change/email",method:"PUT",params:{email:e.email,id:e.id,username:e.username}})}),putApiV1AdminChangePassword:e.mutation({query:e=>({url:"/api/v1/admin/change/password",method:"PUT",params:{id:e.id,password:e.password,username:e.username}})}),putApiV1AdminChangeRoleAssign:e.mutation({query:e=>({url:"/api/v1/admin/change/role/assign",method:"PUT",params:{id:e.id,role:e.role,username:e.username,htmlContent:e.htmlContent}})}),putApiV1AdminChangeRoleRevoke:e.mutation({query:e=>({url:"/api/v1/admin/change/role/revoke",method:"PUT",params:{id:e.id,role:e.role,username:e.username,htmlContent:e.htmlContent}})}),postApiV1AdminClearApErrors:e.mutation({query:e=>({url:"/api/v1/admin/clear-ap-errors",method:"POST",params:{domain:e.domain}})}),postApiV1AdminCreateAccount:e.mutation({query:e=>({url:"/api/v1/admin/create-account",method:"POST",body:e.accountCreate,params:{htmlContent:e.htmlContent}})}),deleteApiV1AdminDelete:e.mutation({query:e=>({url:"/api/v1/admin/delete",method:"DELETE",params:{email:e.email,id:e.id,username:e.username}})}),getApiV1AdminDomainAllow:e.query({query:e=>({url:"/api/v1/admin/domain-allow",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1AdminDomainAllow:e.mutation({query:e=>({url:"/api/v1/admin/domain-allow",method:"POST",body:e.allowedDomainReq})}),deleteApiV1AdminDomainAllowByDomain:e.mutation({query:e=>({url:`/api/v1/admin/domain-allow/${e.domain}`,method:"DELETE"})}),putApiV1AdminDomainBlock:e.mutation({query:e=>({url:"/api/v1/admin/domain-block",method:"PUT",body:e.blockDomainReq})}),getApiV1AdminDomainBlock:e.query({query:e=>({url:"/api/v1/admin/domain-block",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1AdminDomainBlock:e.mutation({query:e=>({url:"/api/v1/admin/domain-block",method:"POST",body:e.blockDomainReq})}),getApiV1AdminDomainBlockList:e.query({query:e=>({url:"/api/v1/admin/domain-block/list",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1AdminDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/admin/domain-block/${e.domain}`,method:"DELETE"})}),getApiV1AdminFederation:e.query({query:e=>({url:"/api/v1/admin/federation",params:{blockState:e.blockState,lastId:e.lastId,limit:e.limit,offset:e.offset,search:e.search,sortBy:e.sortBy,sortOrder:e.sortOrder,unavailable:e.unavailable,untilId:e.untilId,warning:e.warning}})}),getApiV1AdminFederationMetricsOperations:e.query({query:e=>({url:"/api/v1/admin/federation/metrics/operations",params:{window:e.window}})}),getApiV1AdminFederationMetricsRunningAverageSingle:e.query({query:e=>({url:"/api/v1/admin/federation/metrics/running-average-single",params:{operation:e.operation,window:e.window}})}),getApiV1AdminFederationMetricsRunningAveragesAll:e.query({query:e=>({url:"/api/v1/admin/federation/metrics/running-averages-all",params:{operations:e.operations,window:e.window}})}),getApiV1AdminFederationByDomain:e.query({query:e=>({url:`/api/v1/admin/federation/${e.domain}`})}),postApiV1AdminFeedClearUserFeed:e.mutation({query:e=>({url:"/api/v1/admin/feed/clear-user-feed",method:"POST",params:{ownerType:e.ownerType,userId:e.userId,username:e.username}})}),getApiV1AdminFeedMetricsGlobalAllOperation:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/global-all-operation",params:{ownerType:e.ownerType,window:e.window}})}),getApiV1AdminFeedMetricsGlobalAllOwners:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/global-all-owners",params:{operation:e.operation,window:e.window}})}),getApiV1AdminFeedMetricsGlobalSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/global-single",params:{operation:e.operation,ownerType:e.ownerType,window:e.window}})}),getApiV1AdminFeedMetricsHistory:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history",params:{limit:e.limit,operation:e.operation,ownerType:e.ownerType,userId:e.userId}})}),getApiV1AdminFeedMetricsHistoryAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history/all",params:{limit:e.limit,userId:e.userId}})}),getApiV1AdminFeedMetricsHistoryAllSingleOwner:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history/all-single-owner",params:{limit:e.limit,ownerType:e.ownerType,userId:e.userId}})}),getApiV1AdminFeedMetricsHistoryByOwnerType:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history/by-owner-type",params:{limit:e.limit,operation:e.operation,userId:e.userId}})}),getApiV1AdminFeedMetricsRunningAverageSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/running-average-single",params:{operation:e.operation,ownerType:e.ownerType,userId:e.userId,window:e.window}})}),getApiV1AdminFeedMetricsRunningAveragesAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/running-averages-all",params:{ownerType:e.ownerType,userId:e.userId,window:e.window}})}),getApiV1AdminFeedMetricsSlowestOperations:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-operations",params:{limit:e.limit,ownerType:e.ownerType,window:e.window}})}),getApiV1AdminFeedMetricsSlowestUsers:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-users",params:{limit:e.limit,operation:e.operation,ownerType:e.ownerType,window:e.window}})}),getApiV1AdminFeedMetricsSlowestUsersAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-users-all",params:{limit:e.limit,ownerType:e.ownerType,sortDesc:e.sortDesc,window:e.window}})}),getApiV1AdminFeedMetricsSlowestUsersSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-users-single",params:{limit:e.limit,operation:e.operation,ownerType:e.ownerType,sortDesc:e.sortDesc,window:e.window}})}),getApiV1AdminFeedMetricsSummary:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/summary",params:{includeUserCounts:e.includeUserCounts,window:e.window}})}),getApiV1AdminFeedMetricsUserCountAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/user-count-all",params:{ownerType:e.ownerType,window:e.window}})}),getApiV1AdminFeedMetricsUserCountSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/user-count-single",params:{operation:e.operation,ownerType:e.ownerType,window:e.window}})}),postApiV1AdminFeedRegenerateUserFeed:e.mutation({query:e=>({url:"/api/v1/admin/feed/regenerate-user-feed",method:"POST",params:{ownerType:e.ownerType,userId:e.userId,username:e.username}})}),postApiV1AdminPostsDelete:e.mutation({query:e=>({url:"/api/v1/admin/posts/delete",method:"POST",body:e.postDelete})}),deleteApiV1AdminPurge:e.mutation({query:e=>({url:"/api/v1/admin/purge",method:"DELETE",params:{id:e.id}})}),postApiV1AdminRegenerateKeys:e.mutation({query:e=>({url:"/api/v1/admin/regenerate-keys",method:"POST",params:{userId:e.userId,username:e.username}})}),postApiV1AdminRegenerateKeysAll:e.mutation({query:e=>({url:"/api/v1/admin/regenerate-keys-all",method:"POST",params:{batch:e.batch}})}),postApiV1AdminReportsDeletePosts:e.mutation({query:e=>({url:"/api/v1/admin/reports/delete-posts",method:"POST",body:e.body})}),getApiV1AdminReportsList:e.query({query:e=>({url:"/api/v1/admin/reports/list",params:{groupId:e.groupId,lastId:e.lastId,limit:e.limit,offset:e.offset,open:e.open,postId:e.postId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId}})}),getApiV1AdminReportsByReportId:e.query({query:e=>({url:`/api/v1/admin/reports/${e.reportId}`})}),postApiV1AdminReportsByReportIdAddNote:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/add-note`,method:"POST",body:e.body})}),postApiV1AdminReportsByReportIdAssignToSelf:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/assign-to-self`,method:"POST"})}),deleteApiV1AdminReportsByReportIdDelete:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/delete`,method:"DELETE"})}),postApiV1AdminReportsByReportIdRemoveNote:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/remove-note`,method:"POST",params:{index:e.index}})}),postApiV1AdminReportsByReportIdReopen:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/reopen`,method:"POST"})}),postApiV1AdminReportsByReportIdResolve:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/resolve`,method:"POST"})}),postApiV1AdminReportsByReportIdUnassign:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/unassign`,method:"POST"})}),postApiV1AdminRestartApDelivery:e.mutation({query:e=>({url:"/api/v1/admin/restart-ap-delivery",method:"POST",params:{domain:e.domain}})}),getApiV1AdminSearch:e.query({query:e=>({url:"/api/v1/admin/search",params:{accountId:e.accountId,country:e.country,displayName:e.displayName,domain:e.domain,email:e.email,ip:e.ip,lastId:e.lastId,limit:e.limit,offset:e.offset,role:e.role,sortBy:e.sortBy,sortOrder:e.sortOrder,state:e.state,untilId:e.untilId,userId:e.userId,username:e.username}})}),putApiV1AdminSignupRequestsApproveByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/approve/${e.hash}`,method:"PUT"})}),deleteApiV1AdminSignupRequestsDeleteByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/delete/${e.hash}`,method:"DELETE"})}),getApiV1AdminSignupRequestsList:e.query({query:e=>({url:"/api/v1/admin/signup_requests/list",params:{email:e.email,hash:e.hash,ip:e.ip,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),putApiV1AdminSignupRequestsRejectByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/reject/${e.hash}`,method:"PUT",params:{reason:e.reason}})}),getApiV1AdminUploadsJobsQueueByQueueName:e.query({query:e=>({url:`/api/v1/admin/uploads/jobs/queue/${e.queueName}`,params:{limit:e.limit,page:e.page,sortBy:e.sortBy,sortOrder:e.sortOrder,uploadType:e.uploadType}})}),getApiV1AdminUploadsJobsSummary:e.query({query:()=>({url:"/api/v1/admin/uploads/jobs/summary"})}),getApiV1AdminUploadsSearch:e.query({query:e=>({url:"/api/v1/admin/uploads/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,uploadType:e.uploadType,userId:e.userId}})}),getApiV1AdminUploadsStorageByUserId:e.query({query:e=>({url:`/api/v1/admin/uploads/storage/${e.userId}`})}),postApiV1AdminUserChangeState:e.mutation({query:e=>({url:"/api/v1/admin/user/change-state",method:"POST",body:e.changeUserState})}),getApiV1AdminUserByUserId:e.query({query:e=>({url:`/api/v1/admin/user/${e.userId}`})}),postApiV1Apps:e.mutation({query:e=>({url:"/api/v1/apps",method:"POST",body:e.body,params:{enable:e.enable}})}),getApiV1Apps:e.query({query:()=>({url:"/api/v1/apps"})}),getApiV1AppsEnabled:e.query({query:()=>({url:"/api/v1/apps/enabled"})}),getApiV1AppsGroupByGroupId:e.query({query:e=>({url:`/api/v1/apps/group/${e.groupId}`})}),deleteApiV1AppsGroupByGroupIdAndAppId:e.mutation({query:e=>({url:`/api/v1/apps/group/${e.groupId}/${e.appId}`,method:"DELETE"})}),putApiV1AppsGroupByGroupIdAndAppId:e.mutation({query:e=>({url:`/api/v1/apps/group/${e.groupId}/${e.appId}`,method:"PUT"})}),getApiV1AppsInstalled:e.query({query:()=>({url:"/api/v1/apps/installed"})}),getApiV1AppsUser:e.query({query:()=>({url:"/api/v1/apps/user"})}),deleteApiV1AppsUserByAppId:e.mutation({query:e=>({url:`/api/v1/apps/user/${e.appId}`,method:"DELETE"})}),putApiV1AppsUserByAppId:e.mutation({query:e=>({url:`/api/v1/apps/user/${e.appId}`,method:"PUT"})}),putApiV1AppsByAppId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}`,method:"PUT",body:e.body,params:{enable:e.enable}})}),getApiV1AppsByAppId:e.query({query:e=>({url:`/api/v1/apps/${e.appId}`})}),deleteApiV1AppsByAppId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}`,method:"DELETE"})}),getApiV1AppsByAppIdData:e.query({query:e=>({url:`/api/v1/apps/${e.appId}/data`,params:{owner:e.owner,tags:e.tags,type:e.type}})}),postApiV1AppsByAppIdData:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data`,method:"POST",body:e.dataCreate})}),putApiV1AppsByAppIdDataAndId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data/${e.id}`,method:"PUT",body:e.dataCreate})}),deleteApiV1AppsByAppIdDataAndId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data/${e.id}`,method:"DELETE"})}),putApiV1AppsByAppIdDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/default`,method:"PUT"})}),putApiV1AppsByAppIdDisable:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/disable`,method:"PUT"})}),putApiV1AppsByAppIdEnable:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/enable`,method:"PUT"})}),getApiV1AppsByAppIdStats:e.query({query:e=>({url:`/api/v1/apps/${e.appId}/stats`})}),putApiV1AppsByAppIdUserDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/user-default`,method:"PUT"})}),deleteApiV1AppsByAppIdUserDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/user-default`,method:"DELETE"})}),getApiV1Block:e.query({query:e=>({url:"/api/v1/block",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1BlockBy:e.query({query:e=>({url:"/api/v1/block/by",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1BlockByUserId:e.mutation({query:e=>({url:`/api/v1/block/${e.userId}`,method:"DELETE"})}),postApiV1BlockByUserId:e.mutation({query:e=>({url:`/api/v1/block/${e.userId}`,method:"POST"})}),postApiV1Categories:e.mutation({query:e=>({url:"/api/v1/categories",method:"POST",body:e.categoryCreate})}),getApiV1CategoriesNameByCategoryName:e.query({query:e=>({url:`/api/v1/categories/name/${e.categoryName}`})}),putApiV1CategoriesByCategoryId:e.mutation({query:e=>({url:`/api/v1/categories/${e.categoryId}`,method:"PUT",body:e.categoryUpdate})}),getApiV1CategoriesByCategoryId:e.query({query:e=>({url:`/api/v1/categories/${e.categoryId}`})}),deleteApiV1CategoriesByCategoryId:e.mutation({query:e=>({url:`/api/v1/categories/${e.categoryId}`,method:"DELETE"})}),getApiV1CustomEmojis:e.query({query:e=>({url:"/api/v1/custom_emojis",params:{shortcode:e.shortcode}})}),deleteApiV1CustomEmojis:e.mutation({query:e=>({url:"/api/v1/custom_emojis",method:"DELETE",params:{shortcode:e.shortcode,category:e.category}})}),postApiV1CustomEmojis:e.mutation({query:e=>({url:"/api/v1/custom_emojis",method:"POST",body:e.emoji,params:{overwrite:e.overwrite}})}),getApiV1CustomEmojisExport:e.query({query:e=>({url:"/api/v1/custom_emojis/export",params:{category:e.category}})}),postApiV1CustomEmojisImport:e.mutation({query:e=>({url:"/api/v1/custom_emojis/import",method:"POST",body:e.body,params:{visible:e.visible,category:e.category,overwrite:e.overwrite,domain:e.domain}})}),getApiV1CustomEmojisSearch:e.query({query:e=>({url:"/api/v1/custom_emojis/search",params:{shortcode:e.shortcode}})}),postApiV1CustomEmojisUpload:e.mutation({query:e=>({url:"/api/v1/custom_emojis/upload",method:"POST",body:e.body,params:{shortcode:e.shortcode,visible:e.visible,category:e.category,overwrite:e.overwrite,domain:e.domain}})}),getApiV1Data:e.query({query:e=>({url:"/api/v1/data",params:{owner:e.owner,tags:e.tags,type:e.type}})}),postApiV1Data:e.mutation({query:e=>({url:"/api/v1/data",method:"POST",body:e.dataCreate})}),putApiV1DataById:e.mutation({query:e=>({url:`/api/v1/data/${e.id}`,method:"PUT",body:e.dataCreate})}),deleteApiV1DataById:e.mutation({query:e=>({url:`/api/v1/data/${e.id}`,method:"DELETE"})}),getApiV1Drafts:e.query({query:()=>({url:"/api/v1/drafts"})}),postApiV1Drafts:e.mutation({query:e=>({url:"/api/v1/drafts",method:"POST",body:e.createDraftRequest})}),getApiV1DraftsPostByPostId:e.query({query:e=>({url:`/api/v1/drafts/post/${e.postId}`})}),putApiV1DraftsByDraftId:e.mutation({query:e=>({url:`/api/v1/drafts/${e.draftId}`,method:"PUT",body:e.updateDraftRequest})}),getApiV1DraftsByDraftId:e.query({query:e=>({url:`/api/v1/drafts/${e.draftId}`})}),deleteApiV1DraftsByDraftId:e.mutation({query:e=>({url:`/api/v1/drafts/${e.draftId}`,method:"DELETE"})}),postApiV1DraftsByDraftIdPublish:e.mutation({query:e=>({url:`/api/v1/drafts/${e.draftId}/publish`,method:"POST",params:{htmlContent:e.htmlContent}})}),getApiV1Events:e.query({query:e=>({url:"/api/v1/events",params:{limit:e.limit,offset:e.offset,organizerId:e.organizerId,ownerId:e.ownerId,username:e.username}})}),postApiV1Events:e.mutation({query:e=>({url:"/api/v1/events",method:"POST",body:e.createEvent})}),getApiV1EventsCalendarGByGroupnameIcs:e.query({query:e=>({url:`/api/v1/events/calendar/g/${e.groupname}.ics`})}),getApiV1EventsCalendarPByIdIcs:e.query({query:e=>({url:`/api/v1/events/calendar/p/${e.id}.ics`})}),getApiV1EventsCalendarUByUsernameIcs:e.query({query:e=>({url:`/api/v1/events/calendar/u/${e.username}.ics`})}),getApiV1EventsFollowing:e.query({query:e=>({url:"/api/v1/events/following",params:{limit:e.limit,offset:e.offset}})}),getApiV1EventsMy:e.query({query:e=>({url:"/api/v1/events/my",params:{limit:e.limit,notRespondedOnly:e.notRespondedOnly,offset:e.offset,organizedOnly:e.organizedOnly,past:e.past}})}),getApiV1EventsSettings:e.query({query:e=>({url:"/api/v1/events/settings",params:{ownerId:e.ownerId}})}),postApiV1EventsSettingsRegeneratePrivateId:e.mutation({query:e=>({url:"/api/v1/events/settings/regeneratePrivateId",method:"POST",params:{ownerId:e.ownerId}})}),postApiV1EventsSettingsUpdate:e.mutation({query:e=>({url:"/api/v1/events/settings/update",method:"POST",body:e.updateEventsSettings,params:{ownerId:e.ownerId}})}),putApiV1EventsByEventId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}`,method:"PUT",body:e.updateEvent})}),getApiV1EventsByEventId:e.query({query:e=>({url:`/api/v1/events/${e.eventId}`})}),deleteApiV1EventsByEventId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}`,method:"DELETE"})}),getApiV1EventsByEventIdIcs:e.query({query:e=>({url:`/api/v1/events/${e.eventId}.ics`})}),postApiV1EventsByEventIdAccept:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/accept`,method:"POST"})}),getApiV1EventsByEventIdAttendees:e.query({query:e=>({url:`/api/v1/events/${e.eventId}/attendees`,params:{limit:e.limit,offset:e.offset}})}),deleteApiV1EventsByEventIdAttendeesAndUserId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/attendees/${e.userId}`,method:"DELETE"})}),postApiV1EventsByEventIdAttendeesAndUserId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/attendees/${e.userId}`,method:"POST"})}),postApiV1EventsByEventIdCancel:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/cancel`,method:"POST"})}),postApiV1EventsByEventIdInterested:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/interested`,method:"POST"})}),postApiV1EventsByEventIdJoin:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/join`,method:"POST"})}),deleteApiV1EventsByEventIdLeave:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/leave`,method:"DELETE"})}),postApiV1EventsByEventIdMaybe:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/maybe`,method:"POST"})}),getApiV1EventsByEventIdMutual:e.query({query:e=>({url:`/api/v1/events/${e.eventId}/mutual`,params:{limit:e.limit,offset:e.offset}})}),postApiV1EventsByEventIdReject:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/reject`,method:"POST"})}),postApiV1FaspClear:e.mutation({query:()=>({url:"/api/v1/fasp/clear",method:"POST"})}),getApiV1FaspDebugV0CallbackCallbacks:e.query({query:()=>({url:"/api/v1/fasp/debug/v0/callback/callbacks"})}),deleteApiV1FaspDebugV0CallbackCallbacksById:e.mutation({query:e=>({url:`/api/v1/fasp/debug/v0/callback/callbacks/${e.id}`,method:"DELETE"})}),postApiV1FaspRegistration:e.mutation({query:e=>({url:"/api/v1/fasp/registration",method:"POST",body:e.registrationRequest})}),postApiV1FaspByProviderIdCapabilities:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/capabilities`,method:"POST",body:e.body})}),postApiV1FaspByProviderIdDebugCall:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/debug-call`,method:"POST",body:e.body})}),getApiV1FaspByProviderIdRegistrationFinish:e.query({query:e=>({url:`/api/v1/fasp/${e.providerId}/registration-finish`})}),postApiV1FaspByProviderIdRegistrationFinish:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/registration-finish`,method:"POST"})}),postApiV1FaspByProviderIdRequestBackfill:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/request_backfill`,method:"POST",params:{category:e.category}})}),putApiV1ForumsByForumId:e.mutation({query:e=>({url:`/api/v1/forums/${e.forumId}`,method:"PUT",body:e.createForum})}),getApiV1ForumsByForumId:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}`})}),deleteApiV1ForumsByForumId:e.mutation({query:e=>({url:`/api/v1/forums/${e.forumId}`,method:"DELETE"})}),getApiV1ForumsByForumIdCategories:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/categories`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1ForumsByForumIdPosts:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/posts`,params:{forumTag:e.forumTag,includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withTranslation:e.withTranslation,htmlContent:e.htmlContent}})}),getApiV1ForumsByForumIdTags:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/tags`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1ForumsByForumIdTagsSearch:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/tags/search`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,q:e.q,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1Geo:e.query({query:e=>({url:"/api/v1/geo",params:{latitude:e.latitude,longitude:e.longitude}})}),getApiV1Groups:e.query({query:e=>({url:"/api/v1/groups",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1Groups:e.mutation({query:e=>({url:"/api/v1/groups",method:"POST",body:e.groupCreate})}),getApiV1GroupsAccount:e.query({query:e=>({url:"/api/v1/groups/account",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsMemberByUserId:e.query({query:e=>({url:`/api/v1/groups/member/${e.userId}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsMemberByUserIdGroups:e.query({query:e=>({url:`/api/v1/groups/member/${e.userId}/groups`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsNameByGroupname:e.query({query:e=>({url:`/api/v1/groups/name/${e.groupname}`})}),getApiV1GroupsSearch:e.query({query:e=>({url:"/api/v1/groups/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,substring:e.substring,untilId:e.untilId}})}),putApiV1GroupsByGroupId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}`,method:"PUT",body:e.groupUpdate})}),getApiV1GroupsByGroupId:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}`})}),deleteApiV1GroupsByGroupId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}`,method:"DELETE"})}),getApiV1GroupsByGroupIdForum:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/forum`})}),postApiV1GroupsByGroupIdForum:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/forum`,method:"POST"})}),postApiV1GroupsByGroupIdJoin:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/join`,method:"POST"})}),putApiV1GroupsByGroupIdMedia:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/media`,method:"PUT",body:e.groupMediaUpdate})}),putApiV1GroupsByGroupIdMembers:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,method:"PUT",body:e.groupMemberUpdate})}),getApiV1GroupsByGroupIdMembers:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1GroupsByGroupIdMembers:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,method:"POST",body:e.groupMemberCreate})}),deleteApiV1GroupsByGroupIdMembersAndMemberId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members/${e.memberId}`,method:"DELETE"})}),putApiV1GroupsByGroupIdRules:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/rules`,method:"PUT",body:e.rule})}),getApiV1GroupsByGroupIdRules:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/rules`})}),postApiV1GroupsByGroupIdRules:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/rules`,method:"POST",params:{hint:e.hint,ordering:e.ordering,text:e.text}})}),postApiV1GroupsByGroupIdRulesReorder:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/rules/reorder`,method:"POST",body:e.body})}),deleteApiV1GroupsByGroupIdRulesAndId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/rules/${e.id}`,method:"DELETE"})}),getApiV1GroupsByGroupIdUsers:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/users`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1Import:e.query({query:()=>({url:"/api/v1/import"})}),postApiV1Import:e.mutation({query:e=>({url:"/api/v1/import",method:"POST",body:e.body,params:{overwrite:e.overwrite,type:e.type}})}),postApiV1ImportStartById:e.mutation({query:e=>({url:`/api/v1/import/start/${e.id}`,method:"POST"})}),getApiV1ImportById:e.query({query:e=>({url:`/api/v1/import/${e.id}`})}),getApiV1Instance:e.query({query:()=>({url:"/api/v1/instance"})}),getApiV1InstanceCountries:e.query({query:()=>({url:"/api/v1/instance/countries"})}),getApiV1InstanceDomains:e.query({query:e=>({url:"/api/v1/instance/domains",params:{domain:e.domain,limit:e.limit,software:e.software}})}),getApiV1InstanceExtendedDescription:e.query({query:()=>({url:"/api/v1/instance/extended_description"})}),getApiV1InstanceSupportedLanguages:e.query({query:()=>({url:"/api/v1/instance/supported_languages"})}),getApiV1InstanceTimezones:e.query({query:()=>({url:"/api/v1/instance/timezones"})}),getApiV1JobsListJobs:e.query({query:e=>({url:"/api/v1/jobs/list-jobs",params:{limit:e.limit,offset:e.offset}})}),getApiV1JobsListStats:e.query({query:e=>({url:"/api/v1/jobs/list-stats",params:{queue:e.queue}})}),getApiV1JobsListStatsAll:e.query({query:()=>({url:"/api/v1/jobs/list-stats-all"})}),getApiV1JobsLists:e.query({query:e=>({url:"/api/v1/jobs/lists",params:{limit:e.limit,listKind:e.listKind,offset:e.offset,queue:e.queue}})}),getApiV1JobsStats:e.query({query:()=>({url:"/api/v1/jobs/stats"})}),getApiV1JobsStatsPerDay:e.query({query:e=>({url:"/api/v1/jobs/stats-per-day",params:{lastDays:e.lastDays,queue:e.queue}})}),getApiV1Links:e.query({query:e=>({url:"/api/v1/links",params:{url:e.url}})}),getApiV1Lists:e.query({query:()=>({url:"/api/v1/lists"})}),postApiV1Lists:e.mutation({query:e=>({url:"/api/v1/lists",method:"POST",body:e.userListCreate})}),putApiV1ListsByListId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}`,method:"PUT",body:e.userListCreate})}),getApiV1ListsByListId:e.query({query:e=>({url:`/api/v1/lists/${e.listId}`})}),deleteApiV1ListsByListId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}`,method:"DELETE"})}),getApiV1ListsByListIdUsers:e.query({query:e=>({url:`/api/v1/lists/${e.listId}/users`})}),deleteApiV1ListsByListIdUsersAndUserId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}/users/${e.userId}`,method:"DELETE"})}),postApiV1ListsByListIdUsersAndUserId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}/users/${e.userId}`,method:"POST"})}),getApiV1Metrics:e.query({query:e=>({url:"/api/v1/metrics",params:{from:e.from,period:e.period,to:e.to}})}),getApiV1MetricsTotals:e.query({query:()=>({url:"/api/v1/metrics/totals"})}),getApiV1Mute:e.query({query:e=>({url:"/api/v1/mute",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1MuteByUserId:e.mutation({query:e=>({url:`/api/v1/mute/${e.userId}`,method:"DELETE"})}),postApiV1MuteByUserId:e.mutation({query:e=>({url:`/api/v1/mute/${e.userId}`,method:"POST",params:{duration:e.duration}})}),putApiV1Notes:e.mutation({query:e=>({url:"/api/v1/notes",method:"PUT",body:e.noteUpdate})}),getApiV1Notes:e.query({query:e=>({url:"/api/v1/notes",params:{userIds:e.userIds}})}),deleteApiV1NotesByUserId:e.mutation({query:e=>({url:`/api/v1/notes/${e.userId}`,method:"DELETE"})}),getApiV1Notifications:e.query({query:e=>({url:"/api/v1/notifications",params:{excludeTypes:e.excludeTypes,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,types:e.types,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1NotificationsCount:e.query({query:e=>({url:"/api/v1/notifications/count",params:{excludeTypes:e.excludeTypes,status:e.status,types:e.types}})}),postApiV1NotificationsMarkAll:e.mutation({query:e=>({url:"/api/v1/notifications/mark-all",method:"POST",params:{status:e.status}})}),getApiV1NotificationsById:e.query({query:e=>({url:`/api/v1/notifications/${e.id}`,params:{htmlContent:e.htmlContent}})}),postApiV1NotificationsByIdMark:e.mutation({query:e=>({url:`/api/v1/notifications/${e.id}/mark`,method:"POST",params:{status:e.status,htmlContent:e.htmlContent}})}),postApiV1PollsByPollIdRefresh:e.mutation({query:e=>({url:`/api/v1/polls/${e.pollId}/refresh`,method:"POST"})}),postApiV1PollsByPollIdVote:e.mutation({query:e=>({url:`/api/v1/polls/${e.pollId}/vote`,method:"POST",body:e.body})}),getApiV1Posts:e.query({query:e=>({url:"/api/v1/posts",params:{bookmarkedOnly:e.bookmarkedOnly,forumTag:e.forumTag,includeBookmarkStatus:e.includeBookmarkStatus,includeComments:e.includeComments,includeFollowStatus:e.includeFollowStatus,includeReply:e.includeReply,lastId:e.lastId,limit:e.limit,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,listId:e.listId,maxLevel:e.maxLevel,minLevel:e.minLevel,offset:e.offset,ownerId:e.ownerId,ownerType:e.ownerType,pinned:e.pinned,repostKind:e.repostKind,repostOf:e.repostOf,repostsOnly:e.repostsOnly,search:e.search,skipReposts:e.skipReposts,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,userId:e.userId,username:e.username,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),postApiV1Posts:e.mutation({query:e=>({url:"/api/v1/posts",method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsBookmarks:e.query({query:()=>({url:"/api/v1/posts/bookmarks"})}),getApiV1PostsFollowing:e.query({query:e=>({url:"/api/v1/posts/following",params:{ignoreCache:e.ignoreCache,includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,htmlContent:e.htmlContent}})}),getApiV1PostsLiked:e.query({query:e=>({url:"/api/v1/posts/liked",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsMentioned:e.query({query:e=>({url:"/api/v1/posts/mentioned",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,private:e.private,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsMy:e.query({query:e=>({url:"/api/v1/posts/my",params:{bookmarkedOnly:e.bookmarkedOnly,includeBookmarkStatus:e.includeBookmarkStatus,includeComments:e.includeComments,lastId:e.lastId,limit:e.limit,offset:e.offset,repostsOnly:e.repostsOnly,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsPins:e.query({query:e=>({url:"/api/v1/posts/pins",params:{postOnly:e.postOnly}})}),deleteApiV1PostsPinsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/pins/${e.postId}`,method:"DELETE"})}),postApiV1PostsPinsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/pins/${e.postId}`,method:"POST"})}),getApiV1PostsPublic:e.query({query:e=>({url:"/api/v1/posts/public",params:{includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,local:e.local,offset:e.offset,ownerType:e.ownerType,skipReposts:e.skipReposts,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),getApiV1PostsReplies:e.query({query:e=>({url:"/api/v1/posts/replies",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId,username:e.username,htmlContent:e.htmlContent}})}),getApiV1PostsSubscribe:e.query({query:e=>({url:"/api/v1/posts/subscribe",params:{htmlContent:e.htmlContent}})}),putApiV1PostsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}`,method:"PUT",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostId:e.query({query:e=>({url:`/api/v1/posts/${e.postId}`,params:{includeBookmarkStatus:e.includeBookmarkStatus,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,maxLevel:e.maxLevel,minLevel:e.minLevel,withComments:e.withComments,withParents:e.withParents,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}`,method:"DELETE"})}),deleteApiV1PostsByPostIdBookmark:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/bookmark`,method:"DELETE"})}),postApiV1PostsByPostIdBookmark:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/bookmark`,method:"POST"})}),getApiV1PostsByPostIdComments:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/comments`,params:{lastId:e.lastId,limit:e.limit,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,maxLevel:e.maxLevel,minLevel:e.minLevel,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),postApiV1PostsByPostIdComments:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments`,method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),putApiV1PostsByPostIdCommentsAndCommentId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments/${e.commentId}`,method:"PUT",body:e.createPost,params:{htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostIdCommentsAndCommentId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments/${e.commentId}`,method:"DELETE"})}),postApiV1PostsByPostIdDetach:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/detach`,method:"POST"})}),getApiV1PostsByPostIdEdits:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/edits`,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdLikes:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,params:{includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostIdLikes:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,method:"DELETE"})}),postApiV1PostsByPostIdLikes:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,method:"POST"})}),postApiV1PostsByPostIdRefreshCard:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/refresh-card`,method:"POST"})}),deleteApiV1PostsByPostIdRepost:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/repost`,method:"DELETE"})}),postApiV1PostsByPostIdRepost:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/repost`,method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdReposts:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/reposts`,params:{includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,kind:e.kind,lastId:e.lastId,limit:e.limit,offset:e.offset,skipDuplicates:e.skipDuplicates,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),postApiV1PostsByPostIdSubscribe:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/subscribe`,method:"POST"})}),deleteApiV1PostsByPostIdSubscribe:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/subscribe`,method:"DELETE"})}),postApiV1PostsByPostIdTranslate:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/translate`,method:"POST",params:{htmlContent:e.htmlContent,lang:e.lang}})}),getApiV1Rbac:e.query({query:()=>({url:"/api/v1/rbac"})}),getApiV1RbacActorsByActorIdPermissions:e.query({query:e=>({url:`/api/v1/rbac/actors/${e.actorId}/permissions`,params:{scope:e.scope}})}),getApiV1RbacActorsByActorIdRoles:e.query({query:e=>({url:`/api/v1/rbac/actors/${e.actorId}/roles`,params:{scope:e.scope}})}),putApiV1RbacRolesByRoleId:e.mutation({query:e=>({url:`/api/v1/rbac/roles/${e.roleId}`,method:"PUT",body:e.rbacRoleTemplate})}),getApiV1RbacScopesByScopeRoles:e.query({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles`})}),postApiV1RbacScopesByScopeRoles:e.mutation({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles`,method:"POST",body:e.rbacRoleTemplate})}),deleteApiV1RbacScopesByScopeRolesAndRoleName:e.mutation({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles/${e.roleName}`,method:"DELETE"})}),getApiV1RbacByResource:e.query({query:e=>({url:`/api/v1/rbac/${e.resource}`})}),postApiV1Reports:e.mutation({query:e=>({url:"/api/v1/reports",method:"POST",body:e.createReport})}),putApiV1Rules:e.mutation({query:e=>({url:"/api/v1/rules",method:"PUT",body:e.rule})}),getApiV1Rules:e.query({query:()=>({url:"/api/v1/rules"})}),postApiV1Rules:e.mutation({query:e=>({url:"/api/v1/rules",method:"POST",params:{hint:e.hint,ordering:e.ordering,text:e.text}})}),postApiV1RulesReorder:e.mutation({query:e=>({url:"/api/v1/rules/reorder",method:"POST",body:e.body})}),deleteApiV1RulesById:e.mutation({query:e=>({url:`/api/v1/rules/${e.id}`,method:"DELETE"})}),getApiV1Search:e.query({query:e=>({url:"/api/v1/search",params:{actorType:e.actorType,fasp:e.fasp,filter:e.filter,followStatus:e.followStatus,followers:e.followers,following:e.following,lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,q:e.q,resolve:e.resolve,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withComments:e.withComments,withParent:e.withParent,htmlContent:e.htmlContent}})}),deleteApiV1SessionsAll:e.mutation({query:()=>({url:"/api/v1/sessions/all",method:"DELETE"})}),getApiV1SessionsList:e.query({query:()=>({url:"/api/v1/sessions/list"})}),putApiV1SessionsRevokeAll:e.mutation({query:()=>({url:"/api/v1/sessions/revoke/all",method:"PUT"})}),putApiV1SessionsRevokeBySessionKey:e.mutation({query:e=>({url:`/api/v1/sessions/revoke/${e.sessionKey}`,method:"PUT"})}),deleteApiV1SessionsBySessionKey:e.mutation({query:e=>({url:`/api/v1/sessions/${e.sessionKey}`,method:"DELETE"})}),putApiV1Settings:e.mutation({query:e=>({url:"/api/v1/settings",method:"PUT",body:e.platformSettings})}),getApiV1Settings:e.query({query:e=>({url:"/api/v1/settings",params:{keys:e.keys}})}),deleteApiV1Settings:e.mutation({query:e=>({url:"/api/v1/settings",method:"DELETE",params:{keys:e.keys}})}),putApiV1SettingsUser:e.mutation({query:e=>({url:"/api/v1/settings/user",method:"PUT",body:e.userSettings})}),getApiV1SettingsUser:e.query({query:e=>({url:"/api/v1/settings/user",params:{keys:e.keys}})}),deleteApiV1SettingsUser:e.mutation({query:e=>({url:"/api/v1/settings/user",method:"DELETE",params:{keys:e.keys}})}),getApiV1TagsFeatured:e.query({query:e=>({url:"/api/v1/tags/featured",params:{userId:e.userId}})}),deleteApiV1TagsFeaturedByName:e.mutation({query:e=>({url:`/api/v1/tags/featured/${e.name}`,method:"DELETE"})}),postApiV1TagsFeaturedByName:e.mutation({query:e=>({url:`/api/v1/tags/featured/${e.name}`,method:"POST"})}),postApiV1TagsFollowByName:e.mutation({query:e=>({url:`/api/v1/tags/follow/${e.name}`,method:"POST"})}),getApiV1TagsFollowed:e.query({query:()=>({url:"/api/v1/tags/followed"})}),getApiV1TagsTrending:e.query({query:()=>({url:"/api/v1/tags/trending"})}),postApiV1TagsUnfollowByName:e.mutation({query:e=>({url:`/api/v1/tags/unfollow/${e.name}`,method:"POST"})}),getApiV1TagsByName:e.query({query:e=>({url:`/api/v1/tags/${e.name}`,params:{historySince:e.historySince}})}),postApiV1TranslateText:e.mutation({query:e=>({url:"/api/v1/translate/text",method:"POST",body:e.translationRequest})}),getApiV1TrendsLinks:e.query({query:()=>({url:"/api/v1/trends/links"})}),getApiV1TrendsPosts:e.query({query:e=>({url:"/api/v1/trends/posts",params:{htmlContent:e.htmlContent}})}),getApiV1TrendsTags:e.query({query:()=>({url:"/api/v1/trends/tags"})}),postApiV1Uploads:e.mutation({query:e=>({url:"/api/v1/uploads",method:"POST",body:e.createUpload})}),postApiV1UploadsBatch:e.mutation({query:e=>({url:"/api/v1/uploads/batch",method:"POST",body:e.body})}),postApiV1UploadsList:e.mutation({query:e=>({url:"/api/v1/uploads/list",method:"POST",body:e.uploadList})}),getApiV1UploadsSearch:e.query({query:e=>({url:"/api/v1/uploads/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,uploadType:e.uploadType}})}),getApiV1UploadsUsages:e.query({query:e=>({url:"/api/v1/uploads/usages",params:{ids:e.ids}})}),getApiV1UploadsById:e.query({query:e=>({url:`/api/v1/uploads/${e.id}`})}),deleteApiV1UploadsById:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}`,method:"DELETE"})}),postApiV1UploadsByIdMeta:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/meta`,method:"POST",body:e.body})}),putApiV1UploadsByIdMeta:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/meta`,method:"PUT",body:e.body})}),postApiV1UploadsByIdTags:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/tags`,method:"POST",body:e.body})}),putApiV1UploadsByIdTags:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/tags`,method:"PUT",body:e.body})}),postApiV1UploadsByIdThumbnail:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/thumbnail`,method:"POST",body:e.changeVideoThumbnail})}),getApiV1UserAlias:e.query({query:()=>({url:"/api/v1/user-alias"})}),deleteApiV1UserAlias:e.mutation({query:e=>({url:"/api/v1/user-alias",method:"DELETE",params:{uri:e.uri}})}),postApiV1UserAlias:e.mutation({query:e=>({url:"/api/v1/user-alias",method:"POST",params:{acct:e.acct}})}),getApiV1UserDomainBlock:e.query({query:()=>({url:"/api/v1/user-domain-block"})}),deleteApiV1UserDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/user-domain-block/${e.domain}`,method:"DELETE"})}),postApiV1UserDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/user-domain-block/${e.domain}`,method:"POST"})}),deleteApiV1Users:e.mutation({query:e=>({url:"/api/v1/users",method:"DELETE",params:{id:e.id,name:e.name}})}),postApiV1Users:e.mutation({query:e=>({url:"/api/v1/users",method:"POST",body:e.userCreate,params:{account_id:e.accountId,email:e.email,htmlContent:e.htmlContent}})}),getApiV1Users:e.query({query:e=>({url:"/api/v1/users",params:{full:e.full,username:e.username,htmlContent:e.htmlContent}})}),getApiV1UsersCheck:e.query({query:e=>({url:"/api/v1/users/check",params:{username:e.username}})}),getApiV1UsersConnections:e.query({query:e=>({url:"/api/v1/users/connections",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1UsersFollowByUsername:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}`,method:"POST",params:{domain:e.domain,mutual:e.mutual,scheme:e.scheme}})}),postApiV1UsersFollowByUsernameAccept:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/accept`,method:"POST"})}),postApiV1UsersFollowByUsernamePend:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/pend`,method:"POST"})}),postApiV1UsersFollowByUsernameReject:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/reject`,method:"POST"})}),postApiV1UsersFollowByUsernameUndo:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/undo`,method:"POST",params:{domain:e.domain,mutual:e.mutual,scheme:e.scheme}})}),getApiV1UsersFollowees:e.query({query:e=>({url:"/api/v1/users/followees",params:{anyStatus:e.anyStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersFollowers:e.query({query:e=>({url:"/api/v1/users/followers",params:{anyStatus:e.anyStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1UsersInvite:e.mutation({query:e=>({url:"/api/v1/users/invite",method:"POST",params:{entity:e.entity,invitee:e.invitee,scheme:e.scheme}})}),postApiV1UsersInviteAccept:e.mutation({query:e=>({url:"/api/v1/users/invite/accept",method:"POST",params:{entity:e.entity,inviter:e.inviter,scheme:e.scheme}})}),getApiV1UsersInviteInviteeEntities:e.query({query:e=>({url:"/api/v1/users/invite/invitee/entities",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviteeEntitiesByInviterUser:e.query({query:e=>({url:`/api/v1/users/invite/invitee/entities/${e.inviterUser}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,scheme:e.scheme,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviteeInviters:e.query({query:e=>({url:"/api/v1/users/invite/invitee/inviters",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviteeInvitersByEntityUser:e.query({query:e=>({url:`/api/v1/users/invite/invitee/inviters/${e.entityUser}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,scheme:e.scheme,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviterEntities:e.query({query:e=>({url:"/api/v1/users/invite/inviter/entities",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviterInvitees:e.query({query:e=>({url:"/api/v1/users/invite/inviter/invitees",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviterInviteesByEntityUser:e.query({query:e=>({url:`/api/v1/users/invite/inviter/invitees/${e.entityUser}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,scheme:e.scheme,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1UsersInviteReject:e.mutation({query:e=>({url:"/api/v1/users/invite/reject",method:"POST",params:{entity:e.entity,inviter:e.inviter,scheme:e.scheme}})}),postApiV1UsersInviteUndo:e.mutation({query:e=>({url:"/api/v1/users/invite/undo",method:"POST",params:{entity:e.entity,invitee:e.invitee,scheme:e.scheme}})}),getApiV1UsersRelationships:e.query({query:e=>({url:"/api/v1/users/relationships",params:{filter:e.filter,targets:e.targets}})}),getApiV1UsersRemoteByUserNameFullFollowers:e.query({query:e=>({url:`/api/v1/users/remote/${e.userNameFull}/followers`,params:{limit:e.limit,offset:e.offset}})}),getApiV1UsersRemoteByUserNameFullFollowing:e.query({query:e=>({url:`/api/v1/users/remote/${e.userNameFull}/following`,params:{limit:e.limit,offset:e.offset}})}),getApiV1UsersRenameHistory:e.query({query:()=>({url:"/api/v1/users/rename-history"})}),putApiV1UsersByUserId:e.mutation({query:e=>({url:`/api/v1/users/${e.userId}`,method:"PUT",body:e.userUpdate,params:{htmlContent:e.htmlContent}})}),getApiV1UsersByUserId:e.query({query:e=>({url:`/api/v1/users/${e.userId}`,params:{allowDeleted:e.allowDeleted,full:e.full,htmlContent:e.htmlContent}})}),getApiV1UsersByUserIdFollowers:e.query({query:e=>({url:`/api/v1/users/${e.userId}/followers`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1UsersByUserIdFollowing:e.query({query:e=>({url:`/api/v1/users/${e.userId}/following`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),putApiV1UsersByUserIdMedia:e.mutation({query:e=>({url:`/api/v1/users/${e.userId}/media`,method:"PUT",body:e.userUpdateMedia,params:{htmlContent:e.htmlContent}})})}),overrideExisting:!1}),Wi={forgotPasswordStep:"request",forgotPasswordFields:null,signupStep:"rules",signupFields:null,token:null,newEmail:null,isAuthBlockVisible:!0,isPending:!!Ns.getToken(),isAuthenticated:!1},I_=me({name:"auth",initialState:Wi,reducers:{login:(e,t)=>{e.isAuthenticated=!0,e.token=t.payload||null,e.isPending=!1},logout:()=>({...Wi,isPending:!1}),setNewEmail:(e,t)=>{e.newEmail=t.payload},setForgotPasswordStep:(e,t)=>{e.forgotPasswordStep=t.payload},updateForgotPasswordFields:(e,t)=>{e.forgotPasswordFields={...e.forgotPasswordFields,...t.payload}},resetForgotPasswordFields:e=>{e.forgotPasswordFields=null},setSignupStep:(e,t)=>{e.signupStep=t.payload},updateSignupFields:(e,t)=>{e.signupFields={...e.signupFields,...t.payload}},resetSignupFields:e=>{e.signupFields=null},setPending:(e,t)=>{e.isPending=t.payload},showAuthBlock:(e,t)=>{e.isAuthBlockVisible=t.payload}},selectors:{selectToken:e=>e.token,selectNewEmail:e=>e.newEmail,selectForgotPasswordStep:e=>e.forgotPasswordStep,selectForgotPasswordFields:e=>e.forgotPasswordFields,selectSignupStep:e=>e.signupStep,selectSignupFields:e=>e.signupFields,selectPending:e=>e.isPending,selectAuthBlockVisible:e=>e.isAuthBlockVisible,selectIsAuthenticated:e=>e.isAuthenticated}}),w_={data:null,isPending:!1,isSuccess:!1},b_=me({name:"userNoHTML",initialState:w_,reducers:{setUser:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectUser:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}});var qi,Wr={};function T_(){return qi||(qi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=[],n=[],r=[],o=[],s=(e,t)=>{if("function"!=typeof e)throw new Error("Expected the listener to be a function.");return t.push(e),()=>{const n=t.indexOf(e);t.splice(n,1)}};e.subscribeBefore=e=>s(e,t),e.subscribeAfter=e=>s(e,n);const i=(e,t)=>{if(!e.action)throw new Error("Expected the action to be a string.");if("function"!=typeof e.listener)throw new Error("Expected the listener to be a function.");return t.push(e),()=>{const n=t.indexOf(e);t.splice(n,1)}};e.subscribeActionBefore=(e,t)=>i({action:e,listener:t},r),e.subscribeActionAfter=(e,t)=>i({action:e,listener:t},o),e.unsubscribeBefore=()=>{t.length=0},e.unsubscribeActionsBefore=()=>{r.length=0},e.unsubscribeAfter=()=>{n.length=0},e.unsubscribeActionsAfter=()=>{o.length=0},e.unsubscribeAll=()=>{e.unsubscribeBefore(),e.unsubscribeActionsBefore(),e.unsubscribeAfter(),e.unsubscribeActionsAfter()};const a=(e,t)=>{const n=e.filter((({action:e})=>e!==t));e.length=0,e.concat(n)};e.unsubscribeActionBefore=e=>{a(r,e)},e.unsubscribeActionAfter=e=>{a(o,e)},e.unsubscribeActionAll=t=>{e.unsubscribeActionBefore(t),e.unsubscribeActionAfter(t)};const u=(e,t)=>{for(let n=t.length-1;n>=0;n--){const r=t[n];"object"==typeof e&&r(e)}},c=(e,t)=>{for(let n=t.length-1;n>=0;n--){const r=t[n];"object"==typeof e&&r.action===e.type&&r.listener(e)}};e.subscribeActionMiddleware=e=>e=>s=>{u(s,t),c(s,r);const i=e(s);return u(s,n),c(s,o),i},e.default=e.subscribeActionMiddleware}(Wr)),Wr}var k_=T_();const C_=ga(k_),lo=e=>e,qc=de(lo,(e=>e.data)),O_=de(lo,(e=>e.error)),R_=de(lo,(e=>e.isPending)),M_=de(qc,(e=>null==e?void 0:e.rules)),P_={data:null,isPending:!1},D_=me({name:"instanceInfo",initialState:P_,reducers:{setInfo:(e,t)=>{e.data=t.payload},setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectInstanceInfo:qc,selectInstanceInfoError:O_,selectInstanceInfoPending:R_,selectPlatformRules:M_,selectRegistrations:e=>{var t;return null==(t=e.data)?void 0:t.configuration.registrations}}}),A_={data:null,isPending:!1,isSuccess:!1},x_=me({name:"profileSettings",initialState:A_,reducers:{setSettings:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectProfileSettings:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),B_={sms:"wellesley.admin.sms",auth:"wellesley.admin.auth",openai:"wellesley.admin.openai",uploads:"wellesley.admin.uploads",captcha:"wellesley.admin.captcha",language:"wellesley.admin.language",mediacache:"wellesley.admin.mediacache",translation:"wellesley.admin.translation"},N_={posts:"wellesley.posts",registration:"wellesley.registration",confirmationCode:"wellesley.confirmationCode",uploadsPolicyDoc:"wellesley.uploads.policy.doc",uploadsPolicyAudio:"wellesley.uploads.policy.audio",uploadsPolicyImage:"wellesley.uploads.policy.image",uploadsPolicyVideo:"wellesley.uploads.policy.video",captcha:"wellesley.captcha"},L_={data:null,isPending:!1},{posts:qr,uploadsPolicyDoc:Gi,uploadsPolicyAudio:Gr,uploadsPolicyImage:An,uploadsPolicyVideo:Mt,registration:U_,captcha:V_}=N_,{captcha:F_,language:$_,translation:j_,openai:z_}=B_,kt=e=>e.data,H_=de(kt,(e=>{var t,n,r;return{max_characters:(null==(t=null==e?void 0:e[qr])?void 0:t.max_characters)||0,max_media_attachments:(null==(n=null==e?void 0:e[qr])?void 0:n.max_media_attachments)||0,max_pins:(null==(r=null==e?void 0:e[qr])?void 0:r.max_pins)||0}})),Gc=de(kt,(e=>{var t,n,r;return{...null==e?void 0:e[An],maxSize:(null==(t=null==e?void 0:e[An])?void 0:t.maxSize)||0,maxMatrix:(null==(n=null==e?void 0:e[An])?void 0:n.maxMatrix)||0,maxResolution:(null==(r=null==e?void 0:e[An])?void 0:r.maxResolution)||0}})),Qc=de(kt,(e=>{var t,n,r,o;return{...null==e?void 0:e[Mt],maxSize:(null==(t=null==e?void 0:e[Mt])?void 0:t.maxSize)||0,maxMatrix:(null==(n=null==e?void 0:e[Mt])?void 0:n.maxMatrix)||0,maxDuration:(null==(r=null==e?void 0:e[Mt])?void 0:r.maxDuration)||0,maxResolution:(null==(o=null==e?void 0:e[Mt])?void 0:o.maxResolution)||0}})),Kc=de(kt,(e=>{var t,n;return{...null==e?void 0:e[Gr],maxSize:null==(t=null==e?void 0:e[Gr])?void 0:t.maxSize,keepOriginal:(null==(n=null==e?void 0:e[Gr])?void 0:n.keepOriginal)||0}})),Yc=de(kt,(e=>{var t;return{...null==e?void 0:e[Gi],maxSize:(null==(t=null==e?void 0:e[Gi])?void 0:t.maxSize)||0}})),Jc=de([Gc,Qc,Kc,Yc],((e,t,n,r)=>({IMAGE:null==e?void 0:e.extensions,VIDEO:null==t?void 0:t.extensions,AUDIO:null==n?void 0:n.extensions,DOCUMENT:null==r?void 0:r.extensions}))),W_=de(Jc,(e=>Object.keys(e).reduce(((t,n)=>[...t,...e[n]||[]]),[]))),q_=me({name:"platformSettings",initialState:L_,reducers:{setSettings:(e,t)=>{e.data={...e.data,...t.payload}},setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectSettings:kt,selectPostConfig:H_,selectDocPolicy:Yc,selectImagePolicy:Gc,selectVideoPolicy:Qc,selectAudioPolicy:Kc,selectSupportedExtensions:Jc,selectFullExtensionsList:W_,selectRegistration:e=>{var t;return null==(t=e.data)?void 0:t[U_]},selectLanguageDetection:e=>{var t;return null==(t=e.data)?void 0:t[$_]},selectLanguageTranslation:e=>{var t;return null==(t=e.data)?void 0:t[j_]},selectOpenai:e=>{var t;return null==(t=e.data)?void 0:t[z_]},selectCaptcha:e=>{var t;return null==(t=e.data)?void 0:t[V_]},selectAdminCaptcha:e=>{var t;return null==(t=e.data)?void 0:t[F_]}}}),Qi={data:{userId:"",list:[]},count:{},isPending:!1},G_=e=>e,Q_=e=>e.error,K_=e=>e.isPending,Y_=e=>{var t;return null==(t=e.count)?void 0:t.total},J_=e=>{var t;return null==(t=e.count)?void 0:t.unread},X_=e=>e.data.userId,po=de(G_,(e=>e.data.list)),Z_=de(po,(e=>null==e?void 0:e.filter((e=>"UNREAD"===e.status)))),ev=de(po,(e=>null==e?void 0:e.at(-1))),tv=me({name:"notifications",initialState:Qi,reducers:{setPending:(e,t)=>{e.isPending=t.payload},setError:(e,t)=>{e.error=t.payload},setNotifications:(e,t)=>{const n=t.payload.userId,r=t.payload.list;e.data={userId:n,list:[...e.data.list||[],...r.filter((t=>{var n;return!(null!=(n=e.data.list)&&n.some((e=>e.id===t.id)))}))]}},addNotification:(e,t)=>{e.count.unread=(e.count.unread||0)+1,e.data.list&&(e.data.list=[t.payload,...e.data.list||[]])},markNotification:(e,t)=>{e.data.list&&(e.data.list=e.data.list.map((e=>e.id===t.payload.id?{...e,status:t.payload.status}:e)))},updateNotification:(e,t)=>{var n;if(!e.data.list)return;const r=t.payload;e.data.list=null==(n=e.data.list)?void 0:n.map((e=>e.id===r.id?{...e,...r}:e))},setTotalCount:(e,t)=>{e.count.total=t.payload},setUnreadCount:(e,t)=>{e.count.unread=t.payload},readAll:e=>{var t;e.data.list&&(e.data.list=null==(t=e.data.list)?void 0:t.map((e=>({...e,status:"READ"}))))},resetState:()=>Qi,undoNotitication:(e,t)=>{var n,r,o;const s=t.payload;"UNREAD"===(null==(r=null==(n=e.data.list)?void 0:n.find((e=>e.id===s)))?void 0:r.status)&&e.count.unread&&(e.count.unread-=1),e.data.list=(null==(o=e.data.list)?void 0:o.filter((e=>e.id!==s)))||[]}},selectors:{selectError:Q_,selectIsPending:K_,selectTotalCount:Y_,selectUnreadCount:J_,selectNotifications:po,selectUnreadNotifications:Z_,selectLastNotification:ev,selectNotificationsOwner:X_}}),nv=()=>{const e=window.innerWidth;return e<768?"mobile":e<1024?"tablet":"desktop"},rv={deviceType:nv()},sv=me({name:"ui",initialState:rv,reducers:{setDeviceType:(e,{payload:t})=>{e.deviceType=t}},selectors:{selectDeviceType:e=>e.deviceType,selectIsMobile:e=>"mobile"===e.deviceType,selectIsTablet:e=>"tablet"===e.deviceType,selectIsDesktop:e=>"desktop"===e.deviceType}});function ov(){return!(typeof navigator<"u"&&"boolean"==typeof navigator.onLine)||navigator.onLine}const iv={isOnline:ov()},av=me({name:"network",initialState:iv,reducers:{setOnline:(e,{payload:t})=>{e.isOnline=t}},selectors:{selectOnline:e=>e.isOnline}});var cv={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.16.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/store/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/store/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.16.0/bin",TURBO_HASH:"98ecacf4158cbab4",NODE:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_package_name:"@wellesley/store",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.259",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.16.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/store",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/store",EDITOR:"vi",NODE_ENV:"production",BUILD_NUMBER:"2944",APP_NAME:"@wellesley/store"};const uv=hl(Wc,av,sv,I_,Qg,b_,D_,tv,x_,q_);let At;const lv=e=>{const t=Fu({devTools:{name:cv.APP_NAME},reducer:uv,preloadedState:e,middleware:e=>e().concat(Wc.middleware,C_)});return At=t,t},pv=e=>At||(At=lv(e),At);export{lv as createStore,pv as getStore,uv as rootReducer};
|
|
19
|
+
*/function Ql(){if($o)return Pr;$o=1;var e=_a();var t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useSyncExternalStore,r=e.useRef,o=e.useEffect,s=e.useMemo,i=e.useDebugValue;return Pr.useSyncExternalStoreWithSelector=function(e,a,u,c,l){var d=r(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=s((function(){function e(e){if(!o){if(o=!0,n=e,e=c(e),void 0!==l&&p.hasValue){var s=p.value;if(l(s,e))return r=s}return r=e}if(s=r,t(n,e))return s;var i=c(e);return void 0!==l&&l(s,i)?s:(n=e,r=i)}var n,r,o=!1,s=void 0===u?null:u;return[function(){return e(a())},null===s?void 0:function(){return e(s())}]}),[a,u,c,l]);var m=n(e,d[0],d[1]);return o((function(){p.hasValue=!0,p.value=m}),[m]),i(m),m},Pr}function Kl(){return jo||(jo=1,Mr.exports=Ql()),Mr.exports}var Yl=Kl(),Oe="default"in Fo?va:Fo,zo=Symbol.for("react-redux-context"),Ho=typeof globalThis<"u"?globalThis:{};function Jl(){if(!Oe.createContext)return{};const e=Ho[zo]??(Ho[zo]=new Map);let t=e.get(Oe.createContext);return t||(t=Oe.createContext(null),e.set(Oe.createContext,t)),t}var rt=Jl(),Xl=()=>{throw new Error("uSES not initialized!")};function xs(e=rt){return function(){return Oe.useContext(e)}}var Sa=xs(),Ea=Xl,Zl=e=>{Ea=e},ed=(e,t)=>e===t;function td(e=rt){const t=e===rt?Sa:xs(e),n=(e,n={})=>{const{equalityFn:r=ed,devModeChecks:o={}}="function"==typeof n?{equalityFn:n}:n,{store:s,subscription:i,getServerState:a,stabilityCheck:u,identityFunctionCheck:c}=t();Oe.useRef(!0);const l=Oe.useCallback({[e.name]:t=>e(t)}[e.name],[e,u,o.stabilityCheck]),d=Ea(i.addNestedSub,s.getState,a||s.getState,l,r);return Oe.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var nd=td();function rd(e){e()}var sd=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Wo(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Nt(e,t){if(Wo(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Wo(e[n[r]],t[n[r]]))return!1;return!0}function Ia(e=rt){const t=e===rt?Sa:xs(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}sd?Oe.useLayoutEffect:Oe.useEffect;var wa=Ia();function od(e=rt){const t=e===rt?wa:Ia(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var id=od(),ad=rd;function cd(e){return"query"===e.type}function ud(e){return"mutation"===e.type}function En(e,...t){return Object.assign(e,...t)}function Dr(e){return e.replace(e[0],e[0].toUpperCase())}Zl(Yl.useSyncExternalStoreWithSelector);var at=WeakMap?new WeakMap:void 0,ld=({endpointName:e,queryArgs:t})=>{let n="";const r=null==at?void 0:at.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>Me(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));Me(t)&&(null==at||at.set(t,e)),n=e}return`${e}(${n})`},Ar=Symbol();function qo(e,t,n,r){const o=j.useMemo((()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e})),[e,t,n,r]),s=j.useRef(o);return j.useEffect((()=>{s.current.serialized!==o.serialized&&(s.current=o)}),[o]),s.current.serialized===o.serialized?s.current.queryArgs:e}function xr(e){const t=j.useRef(e);return j.useEffect((()=>{Nt(t.current,e)||(t.current=e)}),[e]),Nt(t.current,e)?t.current:e}var dd=typeof window<"u"&&window.document&&window.document.createElement?j.useLayoutEffect:j.useEffect,pd=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:la.pending}:e;function fd({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:o},unstable__sideEffectsInRender:s,createSelector:i},serializeQueryArgs:a,context:u}){const c=s?e=>e():j.useEffect;return{buildQueryHooks:function(s){const d=(t,{refetchOnReconnect:r,refetchOnFocus:o,refetchOnMountOrArgChange:i,skip:a=!1,pollingInterval:l=0,skipPollingIfUnfocused:d=!1}={})=>{const{initiate:p}=e.endpoints[s],m=n(),h=j.useRef();if(!h.current){const t=m(e.internalActions.internal_getRTKQSubscriptions());h.current=t}const f=qo(a?Xe:t,ld,u.endpointDefinitions[s],s),y=xr({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:l,skipPollingIfUnfocused:d}),g=j.useRef(!1),v=j.useRef();let{queryCacheKey:b,requestId:_}=v.current||{},S=!1;b&&_&&(S=h.current.isRequestSubscribed(b,_));const w=!S&&g.current;return c((()=>{g.current=S})),c((()=>{w&&(v.current=void 0)}),[w]),c((()=>{var e;const t=v.current;if(f===Xe)return null==t||t.unsubscribe(),void(v.current=void 0);const n=null==(e=v.current)?void 0:e.subscriptionOptions;if(t&&t.arg===f)y!==n&&t.updateSubscriptionOptions(y);else{null==t||t.unsubscribe();const e=m(p(f,{subscriptionOptions:y,forceRefetch:i}));v.current=e}}),[m,p,i,f,y,w]),j.useEffect((()=>()=>{var e;null==(e=v.current)||e.unsubscribe(),v.current=void 0}),[]),j.useMemo((()=>({refetch:()=>{var e;if(!v.current)throw new Error(ce(38));return null==(e=v.current)?void 0:e.refetch()}})),[])},p=({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:i=0,skipPollingIfUnfocused:a=!1}={})=>{const{initiate:u}=e.endpoints[s],l=n(),[d,p]=j.useState(Ar),m=j.useRef(),h=xr({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:i,skipPollingIfUnfocused:a});c((()=>{var e,t;const n=null==(e=m.current)?void 0:e.subscriptionOptions;h!==n&&(null==(t=m.current)||t.updateSubscriptionOptions(h))}),[h]);const f=j.useRef(h);c((()=>{f.current=h}),[h]);const y=j.useCallback((function(e,n=!1){let r;return t((()=>{var t;null==(t=m.current)||t.unsubscribe(),m.current=r=l(u(e,{subscriptionOptions:f.current,forceRefetch:!n})),p(e)})),r}),[l,u]);return j.useEffect((()=>()=>{var e;null==(e=null==m?void 0:m.current)||e.unsubscribe()}),[]),j.useEffect((()=>{d!==Ar&&!m.current&&y(d,!0)}),[d,y]),j.useMemo((()=>[y,d]),[y,d])},m=(t,{skip:n=!1,selectFromResult:c}={})=>{const{select:d}=e.endpoints[s],p=qo(n?Xe:t,a,u.endpointDefinitions[s],s),m=j.useRef(),h=j.useMemo((()=>i([d(p),(e,t)=>t,e=>p],l,{memoizeOptions:{resultEqualityCheck:Nt}})),[d,p]),f=j.useMemo((()=>c?i([h],c,{devModeChecks:{identityFunctionCheck:"never"}}):h),[h,c]),y=r((e=>f(e,m.current)),Nt),g=o(),v=h(g.getState(),m.current);return dd((()=>{m.current=v}),[v]),y};return{useQueryState:m,useQuerySubscription:d,useLazyQuerySubscription:p,useLazyQuery(e){const[t,n]=p(e),r=m(n,{...e,skip:n===Ar}),o=j.useMemo((()=>({lastArg:n})),[n]);return j.useMemo((()=>[t,r,o]),[t,r,o])},useQuery(e,t){const n=d(e,t),r=m(e,{selectFromResult:e===Xe||null!=t&&t.skip?void 0:pd,...t}),{data:o,status:s,isLoading:i,isSuccess:a,isError:u,error:c}=r;return j.useDebugValue({data:o,status:s,isLoading:i,isSuccess:a,isError:u,error:c}),j.useMemo((()=>({...r,...n})),[r,n])}}},buildMutationHook:function(o){return({selectFromResult:s,fixedCacheKey:a}={})=>{const{select:u,initiate:c}=e.endpoints[o],l=n(),[d,p]=j.useState();j.useEffect((()=>()=>{null!=d&&d.arg.fixedCacheKey||null==d||d.reset()}),[d]);const m=j.useCallback((function(e){const t=l(c(e,{fixedCacheKey:a}));return p(t),t}),[l,c,a]),{requestId:h}=d||{},f=j.useMemo((()=>u({fixedCacheKey:a,requestId:null==d?void 0:d.requestId})),[a,d,u]),y=j.useMemo((()=>s?i([f],s):f),[s,f]),g=r(y,Nt),v=null==a?null==d?void 0:d.arg.originalArgs:void 0,b=j.useCallback((()=>{t((()=>{d&&p(void 0),a&&l(e.internalActions.removeMutationResult({requestId:h,fixedCacheKey:a}))}))}),[l,a,d,h]),{endpointName:_,data:S,status:w,isLoading:I,isSuccess:A,isError:k,error:E}=g;j.useDebugValue({endpointName:_,data:S,status:w,isLoading:I,isSuccess:A,isError:k,error:E});const T=j.useMemo((()=>({...g,originalArgs:v,reset:b})),[g,v,b]);return j.useMemo((()=>[m,T]),[m,T])}},usePrefetch:function(t,r){const o=n(),s=xr(r);return j.useCallback(((n,r)=>o(e.util.prefetch(t,n,{...s,...r}))),[t,o,s])}};function l(e,t,n){if(null!=t&&t.endpointName&&e.isUninitialized){const{endpointName:e}=t,r=u.endpointDefinitions[e];a({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===a({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:null==t?void 0:t.data;void 0===r&&(r=e.data);const o=void 0!==r,s=e.isLoading,i=!o&&s,c=e.isSuccess||s&&o;return{...e,data:r,currentData:e.data,isFetching:s,isLoading:i,isSuccess:c}}}var md=Symbol(),hd=({batch:e=ad,hooks:t={useDispatch:id,useSelector:nd,useStore:wa},createSelector:n=de,unstable__sideEffectsInRender:r=!1,...o}={})=>({name:md,init(o,{serializeQueryArgs:s},i){const a=o,{buildQueryHooks:u,buildMutationHook:c,usePrefetch:l}=fd({api:o,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:s,context:i});return En(a,{usePrefetch:l}),En(i,{batch:e}),{injectEndpoint(e,t){if(cd(t)){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:s,useQuerySubscription:i}=u(e);En(a.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:s,useQuerySubscription:i}),o[`use${Dr(e)}Query`]=t,o[`useLazy${Dr(e)}Query`]=n}else if(ud(t)){const t=c(e);En(a.endpoints[e],{useMutation:t}),o[`use${Dr(e)}Mutation`]=t}}}}}),yd=xl(ql(),hd());const Bs="auth_token",ba=()=>localStorage.getItem(Bs)||void 0,gd=e=>localStorage.setItem(Bs,e),_d=()=>localStorage.removeItem(Bs),vd=()=>!!ba(),Ns={getToken:ba,setToken:gd,removeToken:_d,hasToken:vd};ie("reselectUser"),ie("requestLogin"),ie("requestLogout"),ie("remoteLogin");const Sd=ie("remoteLogout"),Go=ie("requestMicroFrontendFetch"),Ed=ie("sendMicroFrontendFetchResponse"),Id=e=>{Ns.removeToken(),e(Sd())},wd=e=>async(t,n,r)=>{const o=await e(t,n,r);return o.error&&[401].includes(o.error.status)&&Id(n.dispatch),o},bd=async(e,t=2e3)=>{for(;!e();)await new Promise((e=>setTimeout(e,t)))},Td=5,kd=e=>t=>!!e&&t.includes(e.status),Qo=e=>new Promise((t=>setTimeout(t,1e3*e))),Cd=e=>async(t,n,r)=>{const o=(null==r?void 0:r.maxRetries)??5;await bd((()=>n.getState().network.isOnline));let s=0;const i=async()=>{var a,u,c,l;const d=await e(t,n,r),p=d.error;if(s>=o)return d;s>0&&await Qo(Math.pow(2,s)),s++;const m=kd(p);switch(!0){case"mutation"===n.type:return d;case!navigator.onLine:case m([408,404]):case p&&"FETCH_ERROR"===(null==p?void 0:p.status):case p&&p.status>=500:return await i();case 429===(null==(a=null==d?void 0:d.error)?void 0:a.status):{const e=null==(l=null==(c=null==(u=d.meta)?void 0:u.response)?void 0:c.headers)?void 0:l.get("Retry-After");return await Qo(+(e||"0")),await i()}default:return d}};return await i()};var Ta=(e=>(e.SERVER_RULES="serverRules",e))(Ta||{});const Ls=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Lt="8.48.0",pe=globalThis;function sr(e,t,n){const r=pe,o=r.__SENTRY__=r.__SENTRY__||{},s=o[Lt]=o[Lt]||{};return s[e]||(s[e]=t())}const an=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Od="Sentry Logger ",Ko=["debug","info","warn","error","log","assert","trace"],Yo={};function Us(e){if(!("console"in pe))return e();const t=pe.console,n={},r=Object.keys(Yo);r.forEach((e=>{const r=Yo[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}function Rd(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return an?Ko.forEach((n=>{t[n]=(...t)=>{e&&Us((()=>{pe.console[n](`${Od}[${n}]:`,...t)}))}})):Ko.forEach((e=>{t[e]=()=>{}})),t}const ye=sr("logger",Rd),Br="<anonymous>";function Ve(e){try{return e&&"function"==typeof e&&e.name||Br}catch{return Br}}function Jo(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach((t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)})),e}catch{return}}}const xn={},Xo={};function ka(e,t){xn[e]=xn[e]||[],xn[e].push(t)}function Ca(e,t){if(!Xo[e]){Xo[e]=!0;try{t()}catch(t){an&&ye.error(`Error while instrumenting ${e}`,t)}}}function ss(e,t){const n=e&&xn[e];if(n)for(const r of n)try{r(t)}catch(t){an&&ye.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Ve(r)}\nError:`,t)}}function cn(){return Vs(pe),pe}function Vs(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Lt,t[Lt]=t[Lt]||{}}const Oa=Object.prototype.toString;function Md(e){switch(Oa.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return or(e,Error)}}function Fs(e,t){return Oa.call(e)===`[object ${t}]`}function jn(e){return Fs(e,"String")}function $s(e){return Fs(e,"Object")}function Pd(e){return typeof Event<"u"&&or(e,Event)}function Dd(e){return typeof Element<"u"&&or(e,Element)}function Ad(e){return Fs(e,"RegExp")}function js(e){return!(!e||!e.then||"function"!=typeof e.then)}function xd(e){return $s(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function or(e,t){try{return e instanceof t}catch{return!1}}function Bd(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}const Ra=pe,Nd=80;function zs(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let s=0,i=0;const a=" > ",u=a.length;let c;const l=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&s++<r&&(c=Ld(n,l),!("html"===c||s>1&&i+o.length*u+c.length>=d));)o.push(c),i+=c.length,n=n.parentNode;return o.reverse().join(a)}catch{return"<unknown>"}}function Ld(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(Ra.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const o=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(o&&o.length)o.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else{n.id&&r.push(`#${n.id}`);const e=n.className;if(e&&jn(e)){const t=e.split(/\s+/);for(const e of t)r.push(`.${e}`)}}const s=["aria-label","type","name","title","alt"];for(const e of s){const t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join("")}function Ud(){try{return Ra.document.location.href}catch{return""}}function Nr(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function Vd(e,t,n=!1){return!!jn(e)&&(Ad(t)?t.test(e):!!jn(t)&&(n?e===t:e.includes(t)))}function Fd(e,t=[],n=!1){return t.some((t=>Vd(e,t,n)))}function Ee(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);"function"==typeof o&&Ma(o,r);try{e[t]=o}catch{an&&ye.log(`Failed to replace method "${t}" in object`,e)}}function Kt(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{an&&ye.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Ma(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Kt(e,"__sentry_original__",t)}catch{}}function Pa(e){return e.__sentry_original__}function $d(e){if(Md(e))return{message:e.message,name:e.name,stack:e.stack,...ei(e)};if(Pd(e)){const t={type:e.type,target:Zo(e.target),currentTarget:Zo(e.currentTarget),...ei(e)};return typeof CustomEvent<"u"&&or(e,CustomEvent)&&(t.detail=e.detail),t}return e}function Zo(e){try{return Dd(e)?zs(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function ei(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function Te(e){return os(e,new Map)}function os(e,t){if(jd(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.getOwnPropertyNames(e))typeof e[n]<"u"&&(r[n]=os(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(os(e,t))})),r}return e}function jd(e){if(!$s(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch{return!0}}const Da=1e3;function ir(){return Date.now()/Da}function zd(){const{performance:e}=pe;if(!e||!e.now)return ir;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/Da}const Aa=zd(),Hd=(()=>{const{performance:e}=pe;if(!e||!e.now)return;const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=o<t,i=e.timing&&e.timing.navigationStart,a="number"==typeof i?Math.abs(i+n-r):t;return s||a<t?o<=a?e.timeOrigin:i:r})();function Le(){const e=pe,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch{}return"10000000100040008000100000000000".replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function Wd(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function qd(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],s=o[0]=o[0]||{};s.value||(s.value=""),s.type||(s.type="Error")}function xa(e,t){const n=Wd(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}var Ae;function ti(e){return new Ne((t=>{t(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(Ae||(Ae={}));class Ne{constructor(e){Ne.prototype.__init.call(this),Ne.prototype.__init2.call(this),Ne.prototype.__init3.call(this),Ne.prototype.__init4.call(this),this._state=Ae.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new Ne(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new Ne(((t,n)=>{let r,o;return this.then((t=>{o=!1,r=t,e&&e()}),(t=>{o=!0,r=t,e&&e()})).then((()=>{o?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(Ae.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Ae.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===Ae.PENDING){if(js(t))return void t.then(this._resolve,this._reject);this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Ae.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===Ae.RESOLVED&&e[1](this._value),this._state===Ae.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function Gd(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Aa(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Le()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function ni(){return Le()}function is(){return Le().substring(16)}function ar(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;const r={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=ar(r[e],t[e],n-1));return r}const as="_sentrySpan";function ri(e,t){t?Kt(e,as,t):delete e[as]}function cs(e){return e[as]}const Qd=100;class Hs{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:ni(),spanId:is()}}clone(){const e=new Hs;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,ri(e,cs(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Gd(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[n,r]=t instanceof st?[t.getScopeData(),t.getRequestSession()]:$s(t)?[e,e.requestSession]:[],{tags:o,extra:s,user:i,contexts:a,level:u,fingerprint:c=[],propagationContext:l}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...s},this._contexts={...this._contexts,...a},i&&Object.keys(i).length&&(this._user=i),u&&(this._level=u),c.length&&(this._fingerprint=c),l&&(this._propagationContext=l),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,ri(this,void 0),this._attachments=[],this.setPropagationContext({traceId:ni()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:Qd;if(n<=0)return this;const r={timestamp:ir(),...e},o=this._breadcrumbs;return o.push(r),this._breadcrumbs=o.length>n?o.slice(-n):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:cs(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=ar(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:is(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:Le();if(!this._client)return ye.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:Le();if(!this._client)return ye.warn("No client configured on scope - will not capture message!"),r;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Le();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(ye.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const st=Hs;function Kd(){return sr("defaultCurrentScope",(()=>new st))}function Yd(){return sr("defaultIsolationScope",(()=>new st))}class Jd{constructor(e,t){let n,r;n=e||new st,r=t||new st,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return js(n)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function _t(){const e=Vs(cn());return e.stack=e.stack||new Jd(Kd(),Yd())}function Xd(e){return _t().withScope(e)}function Zd(e,t){const n=_t();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function si(e){return _t().withScope((()=>e(_t().getIsolationScope())))}function ep(){return{withIsolationScope:si,withScope:Xd,withSetScope:Zd,withSetIsolationScope:(e,t)=>si(t),getCurrentScope:()=>_t().getScope(),getIsolationScope:()=>_t().getIsolationScope()}}function cr(e){const t=Vs(e);return t.acs?t.acs:ep()}function bt(){return cr(cn()).getCurrentScope()}function un(){return cr(cn()).getIsolationScope()}function tp(){return sr("globalScope",(()=>new st))}function np(...e){const t=cr(cn());if(2===e.length){const[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function Pe(){return bt().getClient()}const rp="_sentryMetrics";function sp(e){const t=e[rp];if(!t)return;const n={};for(const[,[e,r]]of t)(n[e]||(n[e]=[])).push(Te(r));return n}const Ba="sentry.source",op="sentry.sample_rate",ip="sentry.op",ap="sentry.origin",cp=0,up=1,lp="sentry-",dp=/^sentry-/;function pp(e){const t=fp(e);if(!t)return;const n=Object.entries(t).reduce(((e,[t,n])=>{if(t.match(dp)){e[t.slice(7)]=n}return e}),{});return Object.keys(n).length>0?n:void 0}function fp(e){if(e&&(jn(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce(((e,t)=>{const n=oi(t);return Object.entries(n).forEach((([t,n])=>{e[t]=n})),e}),{}):oi(e)}function oi(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(t&&n&&(e[t]=n),e)),{})}const mp=1;function hp(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext();return Te({parent_span_id:r?t:Yt(e).parent_span_id,span_id:r?is():t,trace_id:n})}function ii(e){return"number"==typeof e?ai(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?ai(e.getTime()):Aa()}function ai(e){return e>9999999999?e/1e3:e}function Yt(e){if(gp(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(yp(e)){const{attributes:r,startTime:o,name:s,endTime:i,parentSpanId:a,status:u}=e;return Te({span_id:t,trace_id:n,data:r,description:s,parent_span_id:a,start_timestamp:ii(o),timestamp:ii(i)||void 0,status:vp(u),op:r[ip],origin:r[ap],_metrics_summary:sp(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function yp(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}function gp(e){return"function"==typeof e.getSpanJSON}function _p(e){const{traceFlags:t}=e.spanContext();return 1===t}function vp(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"unknown_error"}const Sp="_sentryRootSpan";function Ws(e){return e[Sp]||e}function Na(){const e=cr(cn());return e.getActiveSpan?e.getActiveSpan():cs(bt())}function Ep(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=Pe(),n=t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const La="production",Ip="_frozenDsc";function wp(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o=Te({environment:n.environment||La,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",o),o}function Ua(e){const t=Pe();if(!t)return{};const n=Ws(e),r=n[Ip];if(r)return r;const o=n.spanContext().traceState,s=o&&o.get("sentry.dsc"),i=s&&pp(s);if(i)return i;const a=wp(e.spanContext().traceId,t),u=Yt(n),c=u.data||{},l=c[op];null!=l&&(a.sample_rate=`${l}`);const d=c[Ba],p=u.description;return"url"!==d&&p&&(a.transaction=p),Ep()&&(a.sampled=String(_p(n))),t.emit("createDsc",a,n),a}function ci(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t)||t<0||t>1))return t;Ls&&ye.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`)}function bp(e,t=!1){const{host:n,path:r,pass:o,port:s,projectId:i,protocol:a,publicKey:u}=e;return`${a}://${u}${t&&o?`:${o}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${i}`}function Tp(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}function xe(e,t=100,n=1/0){try{return us("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function us(e,t,n=1/0,r=1/0,o=Tp()){const[s,i]=o;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const a=kp(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const u="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===u)return a.replace("object ","");if(s(t))return"[Circular ~]";const c=t;if(c&&"function"==typeof c.toJSON)try{return us("",c.toJSON(),u-1,r,o)}catch{}const l=Array.isArray(t)?[]:{};let d=0;const p=$d(t);for(const e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(d>=r){l[e]="[MaxProperties ~]";break}const t=p[e];l[e]=us(e,t,u-1,r,o),d++}return i(t),l}function kp(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Bd(t))return"[VueViewModel]";if(xd(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${Ve(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const n=Cp(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}function Cp(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Op(e,t=[]){return[e,t]}function Rp(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Mp(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:bp(r)},...o&&{trace:Te({...o})}}}function ls(e,t,n,r=0){return new Ne(((o,s)=>{const i=e[r];if(null===t||"function"!=typeof i)o(t);else{const a=i({...t},n);Ls&&i.id&&null===a&&ye.log(`Event processor "${i.id}" dropped event`),js(a)?a.then((t=>ls(e,t,n,r+1).then(o))).then(null,s):ls(e,a,n,r+1).then(o).then(null,s)}}))}let In,ui,wn;function Pp(e){const t=pe._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return wn&&n.length===ui||(ui=n.length,wn=n.reduce(((n,r)=>{In||(In={});const o=In[r];if(o)n[o[0]]=o[1];else{const o=e(r);for(let e=o.length-1;e>=0;e--){const s=o[e],i=s&&s.filename,a=t[r];if(i&&a){n[i]=a,In[r]=[i,a];break}}}return n}),{})),wn}function Dp(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:s}=t;Ap(e,t),r&&Np(e,r),Lp(e,n),xp(e,o),Bp(e,s)}function li(e,t){const{extra:n,tags:r,user:o,contexts:s,level:i,sdkProcessingMetadata:a,breadcrumbs:u,fingerprint:c,eventProcessors:l,attachments:d,propagationContext:p,transactionName:m,span:h}=t;bn(e,"extra",n),bn(e,"tags",r),bn(e,"user",o),bn(e,"contexts",s),e.sdkProcessingMetadata=ar(e.sdkProcessingMetadata,a,2),i&&(e.level=i),m&&(e.transactionName=m),h&&(e.span=h),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function bn(e,t,n){e[t]=ar(e[t],n,1)}function Ap(e,t){const{extra:n,tags:r,user:o,contexts:s,level:i,transactionName:a}=t,u=Te(n);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});const c=Te(r);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});const l=Te(o);l&&Object.keys(l).length&&(e.user={...l,...e.user});const d=Te(s);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),i&&(e.level=i),a&&"transaction"!==e.type&&(e.transaction=a)}function xp(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Bp(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Np(e,t){e.contexts={trace:hp(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Ua(t),...e.sdkProcessingMetadata};const n=Yt(Ws(t)).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}function Lp(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function Up(e,t,n,r,o,s){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,u={...t,event_id:t.event_id||n.event_id||Le(),timestamp:t.timestamp||ir()},c=n.integrations||e.integrations.map((e=>e.name));Vp(u,e),jp(u,c),o&&o.emit("applyFrameMetadata",t),void 0===t.type&&Fp(u,e.stackParser);const l=Hp(r,n.captureContext);n.mechanism&&xa(u,n.mechanism);const d=o?o.getEventProcessors():[],p=tp().getScopeData();if(s){li(p,s.getScopeData())}if(l){li(p,l.getScopeData())}const m=[...n.attachments||[],...p.attachments];m.length&&(n.attachments=m),Dp(u,p);return ls([...d,...p.eventProcessors],u,n).then((e=>(e&&$p(e),"number"==typeof i&&i>0?zp(e,i,a):e)))}function Vp(e,t){const{environment:n,release:r,dist:o,maxValueLength:s=250}=t;e.environment=e.environment||n||La,!e.release&&r&&(e.release=r),!e.dist&&o&&(e.dist=o),e.message&&(e.message=Nr(e.message,s));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=Nr(i.value,s));const a=e.request;a&&a.url&&(a.url=Nr(a.url,s))}function Fp(e,t){const n=Pp(t);try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{n&&e.filename&&(e.debug_id=n[e.filename])}))}))}catch{}}function $p(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch{}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach((([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})}))}function jp(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function zp(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:xe(e.data,t,n)}})))},...e.user&&{user:xe(e.user,t,n)},...e.contexts&&{contexts:xe(e.contexts,t,n)},...e.extra&&{extra:xe(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=xe(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>({...e,...e.data&&{data:xe(e.data,t,n)}})))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=xe(e.contexts.flags,3,n)),r}function Hp(e,t){if(!t)return e;const n=e?e.clone():new st;return n.update(t),n}function qs(e,t){return bt().captureException(e,void 0)}function Wp(e,t){const n={captureContext:t};return bt().captureMessage(e,void 0,n)}function qp(e,t){un().setContext(e,t)}function Gp(e,t){un().setExtra(e,t)}function Qp(e){un().addEventProcessor(e)}const Kp=6e4;function Yp(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?Kp:r-t}function Jp(e,t){return e[t]||e.all||0}function Xp(e,t,n=Date.now()){return Jp(e,t)>n}function Zp(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},s=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(s)for(const e of s.trim().split(",")){const[t,n,,,s]=e.split(":",5),i=parseInt(t,10),a=1e3*(isNaN(i)?60:i);if(n)for(const e of n.split(";"))"metric_bucket"===e?(!s||s.split(";").includes("custom"))&&(o[e]=r+a):o[e]=r+a;else o.all=r+a}else i?o.all=r+Yp(i,r):429===t&&(o.all=r+6e4);return o}function ef(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return nf(e,n)||tf(e,r)}function tf(e,t){return!!t&&di(e)===di(t)}function nf(e,t){return!!t&&e.includes(t.host)}function di(e){return"/"===e[e.length-1]?e.slice(0,-1):e}const rf=100;function sf(e,t){const n=Pe(),r=un();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=rf}=n.getOptions();if(s<=0)return;const i={timestamp:ir(),...e},a=o?Us((()=>o(i,t))):i;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),r.addBreadcrumb(a,s))}function of(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const af="Dedupe",cf=()=>{let e;return{name:af,processEvent(t){if(t.type)return t;try{if(lf(t,e))return Ls&&ye.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},uf=cf;function lf(e,t){return!!t&&!(!df(e,t)&&!pf(e,t))}function df(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Fa(e,t)||!Va(e,t))}function pf(e,t){const n=pi(t),r=pi(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&Fa(e,t)&&Va(e,t))}function Va(e,t){let n=Jo(e),r=Jo(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){const t=r[e],o=n[e];if(t.filename!==o.filename||t.lineno!==o.lineno||t.colno!==o.colno||t.function!==o.function)return!1}return!0}function Fa(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return n.join("")===r.join("")}catch{return!1}}function pi(e){return e.exception&&e.exception.values&&e.exception.values[0]}function ff(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function mf(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function hf(){return!mf()&&"[object process]"===Object.prototype.toString.call(typeof process<"u"?process:0)}function fi(){return typeof window<"u"&&(!hf()||yf())}function yf(){const e=pe.process;return!!e&&"renderer"===e.type}const Tn=pe;function gf(){const e=Tn.chrome,t=e&&e.app&&e.app.runtime,n="history"in Tn&&!!Tn.history.pushState&&!!Tn.history.replaceState;return!t&&n}function _f(e,t){return e??t()}function Bn(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=s(n)):("call"===o||"optionalCall"===o)&&(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}const Dt=pe;function vf(){setTimeout((()=>{}))}function vt(e,t={}){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(Pa(e))return e}catch{return e}const n=function(...n){try{const r=n.map((e=>vt(e,t)));return e.apply(this,r)}catch(e){throw vf(),np((r=>{r.addEventProcessor((e=>(t.mechanism&&(qd(e),xa(e,t.mechanism)),e.extra={...e.extra,arguments:n},e))),qs(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}Ma(n,e),Kt(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}const $a=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Sf=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",ln=(e,t,n,r)=>{let o,s;return i=>{t.value>=0&&(i||r)&&(s=t.value-(o||0),(s||void 0===o)&&(o=t.value,t.delta=s,t.rating=Sf(t.value,n),e(t)))}},W=pe,Ef=()=>`v4-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,ja=(e=!0)=>{const t=W.performance&&W.performance.getEntriesByType&&W.performance.getEntriesByType("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},Gs=()=>{const e=ja();return e&&e.activationStart||0},dn=(e,t)=>{const n=ja();let r="navigate";return n&&(W.document&&W.document.prerendering||Gs()>0?r="prerender":W.document&&W.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:Ef(),navigationType:r}},ot=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},pn=e=>{const t=t=>{("pagehide"===t.type||W.document&&"hidden"===W.document.visibilityState)&&e(t)};W.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},ur=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let Ut=-1;const If=()=>"hidden"!==W.document.visibilityState||W.document.prerendering?1/0:0,zn=e=>{"hidden"===W.document.visibilityState&&Ut>-1&&(Ut="visibilitychange"===e.type?e.timeStamp:0,bf())},wf=()=>{addEventListener("visibilitychange",zn,!0),addEventListener("prerenderingchange",zn,!0)},bf=()=>{removeEventListener("visibilitychange",zn,!0),removeEventListener("prerenderingchange",zn,!0)},Qs=()=>(W.document&&Ut<0&&(Ut=If(),wf()),{get firstHiddenTime(){return Ut}}),lr=e=>{W.document&&W.document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},Tf=[1800,3e3],kf=(e,t={})=>{lr((()=>{const n=Qs(),r=dn("FCP");let o;const s=ot("paint",(e=>{e.forEach((e=>{"first-contentful-paint"===e.name&&(s.disconnect(),e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-Gs(),0),r.entries.push(e),o(!0)))}))}));s&&(o=ln(e,r,Tf,t.reportAllChanges))}))},Cf=[.1,.25],Of=(e,t={})=>{kf(ur((()=>{const n=dn("CLS",0);let r,o=0,s=[];const i=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=s[0],n=s[s.length-1];o&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,s.push(e)):(o=e.value,s=[e])}})),o>n.value&&(n.value=o,n.entries=s,r())},a=ot("layout-shift",i);a&&(r=ln(e,n,Cf,t.reportAllChanges),pn((()=>{i(a.takeRecords()),r(!0)})),setTimeout(r,0))})))},Rf=[100,300],Mf=(e,t={})=>{lr((()=>{const n=Qs(),r=dn("FID");let o;const s=e=>{e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),o(!0))},i=e=>{e.forEach(s)},a=ot("first-input",i);o=ln(e,r,Rf,t.reportAllChanges),a&&pn(ur((()=>{i(a.takeRecords()),a.disconnect()})))}))};let za=0,Lr=1/0,kn=0;const Pf=e=>{e.forEach((e=>{e.interactionId&&(Lr=Math.min(Lr,e.interactionId),kn=Math.max(kn,e.interactionId),za=kn?(kn-Lr)/7+1:0)}))};let ds;const Df=()=>ds?za:performance.interactionCount||0,Af=()=>{"interactionCount"in performance||ds||(ds=ot("event",Pf,{type:"event",buffered:!0,durationThreshold:0}))},Be=[],Ur=new Map,xf=40;let Bf=0;const Nf=()=>Df()-Bf,Lf=()=>{const e=Math.min(Be.length-1,Math.floor(Nf()/50));return Be[e]},Vr=10,Uf=[],Vf=e=>{if(Uf.forEach((t=>t(e))),!e.interactionId&&"first-input"!==e.entryType)return;const t=Be[Be.length-1],n=Ur.get(e.interactionId);if(n||Be.length<10||t&&e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===(n.entries[0]&&n.entries[0].startTime)&&n.entries.push(e);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};Ur.set(t.id,t),Be.push(t)}Be.sort(((e,t)=>t.latency-e.latency)),Be.length>10&&Be.splice(10).forEach((e=>Ur.delete(e.id)))}},Ha=e=>{const t=W.requestIdleCallback||W.setTimeout;let n=-1;return e=ur(e),W.document&&"hidden"===W.document.visibilityState?e():(n=t(e),pn(e)),n},Ff=[200,500],$f=(e,t={})=>{"PerformanceEventTiming"in W&&"interactionId"in PerformanceEventTiming.prototype&&lr((()=>{Af();const n=dn("INP");let r;const o=e=>{Ha((()=>{e.forEach(Vf);const t=Lf();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())}))},s=ot("event",o,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});r=ln(e,n,Ff,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),pn((()=>{o(s.takeRecords()),r(!0)})))}))},jf=[2500,4e3],mi={},zf=(e,t={})=>{lr((()=>{const n=Qs(),r=dn("LCP");let o;const s=e=>{t.reportAllChanges||(e=e.slice(-1)),e.forEach((e=>{e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-Gs(),0),r.entries=[e],o())}))},i=ot("largest-contentful-paint",s);if(i){o=ln(e,r,jf,t.reportAllChanges);const n=ur((()=>{mi[r.id]||(s(i.takeRecords()),i.disconnect(),mi[r.id]=!0,o(!0))}));["keydown","click"].forEach((e=>{W.document&&addEventListener(e,(()=>Ha(n)),{once:!0,capture:!0})})),pn(n)}}))},Vt={},Hn={};let Wa,qa,Ga,Qa;function Hf(e,t=!1){return dr("cls",e,Kf,Wa,t)}function Wf(e,t=!1){return dr("lcp",e,Jf,Ga,t)}function qf(e){return dr("fid",e,Yf,qa)}function Gf(e){return dr("inp",e,Xf,Qa)}function Qf(e,t){return Ka(e,t),Hn[e]||(Zf(e),Hn[e]=!0),Ya(e,t)}function fn(e,t){const n=Vt[e];if(n&&n.length)for(const r of n)try{r(t)}catch(t){$a&&ye.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Ve(r)}\nError:`,t)}}function Kf(){return Of((e=>{fn("cls",{metric:e}),Wa=e}),{reportAllChanges:!0})}function Yf(){return Mf((e=>{fn("fid",{metric:e}),qa=e}))}function Jf(){return zf((e=>{fn("lcp",{metric:e}),Ga=e}),{reportAllChanges:!0})}function Xf(){return $f((e=>{fn("inp",{metric:e}),Qa=e}))}function dr(e,t,n,r,o=!1){let s;return Ka(e,t),Hn[e]||(s=n(),Hn[e]=!0),r&&t({metric:r}),Ya(e,t,o?s:void 0)}function Zf(e){const t={};"event"===e&&(t.durationThreshold=0),ot(e,(t=>{fn(e,{entries:t})}),t)}function Ka(e,t){Vt[e]=Vt[e]||[],Vt[e].push(t)}function Ya(e,t,n){return()=>{n&&n();const r=Vt[e];if(!r)return;const o=r.indexOf(t);-1!==o&&r.splice(o,1)}}const em=1e3;let hi,ps,fs,Cn;function tm(e){ka("dom",e),Ca("dom",nm)}function nm(){if(!W.document)return;const e=ss.bind(null,"dom"),t=yi(e,!0);W.document.addEventListener("click",t,!1),W.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=W[t],r=n&&n.prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Ee(r,"addEventListener",(function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=r[n]=r[n]||{refCount:0};if(!s.handler){const r=yi(e);s.handler=r,t.call(this,n,r,o)}s.refCount++}catch{}return t.call(this,n,r,o)}})),Ee(r,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},o=n[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}})))}))}function rm(e){if(e.type!==ps)return!1;try{if(!e.target||e.target._sentryId!==fs)return!1}catch{}return!0}function sm(e,t){return"keypress"===e&&(!t||!t.tagName||!("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable))}function yi(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=om(n);if(sm(n.type,r))return;Kt(n,"_sentryCaptured",!0),r&&!r._sentryId&&Kt(r,"_sentryId",Le());const o="keypress"===n.type?"input":n.type;rm(n)||(e({event:n,name:o,global:t}),ps=n.type,fs=r?r._sentryId:void 0),clearTimeout(hi),hi=W.setTimeout((()=>{fs=void 0,ps=void 0}),em)}}function om(e){try{return e.target}catch{return null}}function im(e){const t="history";ka(t,e),Ca(t,am)}function am(){if(!gf())return;const e=W.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=Cn,t=String(n);Cn=t,ss("history",{from:e,to:t})}return e.apply(this,t)}}W.onpopstate=function(...t){const n=W.location.href,r=Cn;if(Cn=n,ss("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch{}},Ee(W.history,"pushState",t),Ee(W.history,"replaceState",t)}const Fr={};function cm(e){const t=Fr[e];if(t)return t;let n=W[e];if(ff(n))return Fr[e]=n.bind(W);const r=W.document;if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(t)}catch(t){$a&&ye.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(Fr[e]=n.bind(W))}function St(...e){return cm("setTimeout")(...e)}const um="__sentry_xhr_v3__",lm=["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"],dm="BrowserApiErrors",pm=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:dm,setupOnce(){t.setTimeout&&Ee(Dt,"setTimeout",gi),t.setInterval&&Ee(Dt,"setInterval",gi),t.requestAnimationFrame&&Ee(Dt,"requestAnimationFrame",mm),t.XMLHttpRequest&&"XMLHttpRequest"in Dt&&Ee(XMLHttpRequest.prototype,"send",hm);const e=t.eventTarget;e&&(Array.isArray(e)?e:lm).forEach(ym)}}},fm=pm;function gi(e){return function(...t){const n=t[0];return t[0]=vt(n,{mechanism:{data:{function:Ve(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function mm(e){return function(t){return e.apply(this,[vt(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Ve(e)},handled:!1,type:"instrument"}})])}}function hm(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&Ee(n,e,(function(t){const n={mechanism:{data:{function:e,handler:Ve(t)},handled:!1,type:"instrument"}},r=Pa(t);return r&&(n.mechanism.data.handler=Ve(r)),vt(t,n)}))})),e.apply(this,t)}}function ym(e){const t=Dt[e],n=t&&t.prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Ee(n,"addEventListener",(function(t){return function(n,r,o){try{gm(r)&&(r.handleEvent=vt(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Ve(r),target:e},handled:!1,type:"instrument"}}))}catch{}return t.apply(this,[n,vt(r,{mechanism:{data:{function:"addEventListener",handler:Ve(r),target:e},handled:!1,type:"instrument"}}),o])}})),Ee(n,"removeEventListener",(function(e){return function(t,n,r){try{const o=n.__sentry_wrapped__;o&&e.call(this,t,o,r)}catch{}return e.call(this,t,n,r)}})))}function gm(e){return"function"==typeof e.handleEvent}const Z=pe,Ks="sentryReplaySession",_m="replay_event",Ys="Unable to send Replay",vm=3e5,Sm=9e5,Em=5e3,Im=5500,wm=6e4,bm=5e3,Tm=3,_i=15e4,On=5e3,km=3e3,Cm=300,Js=2e7,Om=4999,Rm=15e3,vi=36e5;function ms(e,t){return e??t()}function Jt(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=s(n)):("call"===o||"optionalCall"===o)&&(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}var ae;function Mm(e){return e.nodeType===e.ELEMENT_NODE}function Ft(e){const t=Jt([e,"optionalAccess",e=>e.host]);return Jt([t,"optionalAccess",e=>e.shadowRoot])===e}function $t(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Pm(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function Dm(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function Wn(e){try{const t=e.rules||e.cssRules;return t?Pm(Array.from(t,Ja).join("")):null}catch{return null}}function Am(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,o=r[n],s=r.getPropertyPriority(o);t+=`${o}:${r.getPropertyValue(o)}${s?" !important":""};`}return`${e.selectorText} { ${t} }`}function Ja(e){let t;if(Bm(e))try{t=Wn(e.styleSheet)||Dm(e)}catch{}else if(Nm(e)){let t=e.cssText;const n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=Am(e)),n&&(t=xm(t)),n||r)return t}return t||e.cssText}function xm(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}function Bm(e){return"styleSheet"in e}function Nm(e){return"selectorText"in e}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(ae||(ae={}));class Xa{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;return ms(Jt([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]),(()=>-1))}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Lm(){return new Xa}function pr({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function Xt({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function Et(e){return e.toLowerCase()}function hs(e){return e.toUpperCase()}const Si="__rrweb_original__";function Um(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){const o=t.getImageData,s=Si in o?o[Si]:o;if(new Uint32Array(s.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some((e=>0!==e)))return!1}return!0}function Xs(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Et(t):null}function qn(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function Za(e,t){let n;try{n=new URL(e,ms(t,(()=>window.location.href)))}catch{return null}return ms(Jt([n.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",e=>e[1]]),(()=>null))}const Ei={};function ec(e){const t=Ei[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch{}return Ei[e]=r.bind(window)}function ys(...e){return ec("setTimeout")(...e)}function tc(...e){return ec("clearTimeout")(...e)}function nc(e){try{return e.contentDocument}catch{}}let Vm=1;const Fm=new RegExp("[^a-z0-9-_:]"),Zt=-2;function Zs(){return Vm++}function $m(e){if(e instanceof HTMLFormElement)return"form";const t=Et(e.tagName);return Fm.test(t)?"div":t}function jm(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}let ct,Ii;const zm=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Hm=/^(?:[a-z+]+:)?\/\//i,Wm=/^www\..*/i,qm=/^(data:)([^,]*),(.*)/i;function Gn(e,t){return(e||"").replace(zm,((e,n,r,o,s,i)=>{const a=r||s||i,u=n||o||"";if(!a)return e;if(Hm.test(a)||Wm.test(a))return`url(${u}${a}${u})`;if(qm.test(a))return`url(${u}${a}${u})`;if("/"===a[0])return`url(${u}${jm(t)+a}${u})`;const c=t.split("/"),l=a.split("/");c.pop();for(const e of l)"."!==e&&(".."===e?c.pop():c.push(e));return`url(${u}${c.join("/")}${u})`}))}const Gm=/^[^ \t\n\r\u000c]+/,Qm=/^[, \t\n\r\u000c]+/;function Km(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const o=e.exec(t.substring(n));return o?(r=o[0],n+=r.length,r):""}const o=[];for(;r(Qm),!(n>=t.length);){let s=r(Gm);if(","===s.slice(-1))s=dt(e,s.substring(0,s.length-1)),o.push(s);else{let r="";s=dt(e,s);let i=!1;for(;;){const e=t.charAt(n);if(""===e){o.push((s+r).trim());break}if(i)")"===e&&(i=!1);else{if(","===e){n+=1,o.push((s+r).trim());break}"("===e&&(i=!0)}r+=e,n+=1}}}return o.join(", ")}const wi=new WeakMap;function dt(e,t){return t&&""!==t.trim()?fr(e,t):t}function Ym(e){return!("svg"!==e.tagName&&!e.ownerSVGElement)}function fr(e,t){let n=wi.get(e);if(n||(n=e.createElement("a"),wi.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function rc(e,t,n,r,o,s){return r&&("src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]||"background"===n&&("table"===t||"td"===t||"th"===t)?dt(e,r):"srcset"===n?Km(e,r):"style"===n?Gn(r,fr(e)):"object"===t&&"data"===n?dt(e,r):"function"==typeof s?s(n,r,o):r)}function sc(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function Jm(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch{}return!1}function Xm(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Ze(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Ze(e.parentNode,t,n,r+1)}function pt(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(Xm(r,e))return!0;return!(!t||!r.matches(t))}catch{return!1}}}function It(e,t,n,r,o,s){try{const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===i)return!1;if("INPUT"===i.tagName){const e=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,u=-1;if(s){if(u=Ze(i,pt(r,o)),u<0)return!0;a=Ze(i,pt(t,n),u>=0?u:1/0)}else{if(a=Ze(i,pt(t,n)),a<0)return!1;u=Ze(i,pt(r,o),a>=0?a:1/0)}return a>=0?!(u>=0)||a<=u:!(u>=0)&&!!s}catch{}return!!s}function Zm(e,t,n){const r=e.contentWindow;if(!r)return;let o,s=!1;try{o=r.document.readyState}catch{return}if("complete"!==o){const r=ys((()=>{s||(t(),s=!0)}),n);return void e.addEventListener("load",(()=>{tc(r),s=!0,t()}))}const i="about:blank";if(r.location.href!==i||e.src===i||""===e.src)return ys(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function eh(e,t,n){let r,o=!1;try{r=e.sheet}catch{return}if(r)return;const s=ys((()=>{o||(t(),o=!0)}),n);e.addEventListener("load",(()=>{tc(s),o=!0,t()}))}function th(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskAttributeFn:u,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:h={},maskTextFn:f,maskInputFn:y,dataURLOptions:g={},inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:S=!1}=t,w=nh(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:ae.Document,childNodes:[],compatMode:e.compatMode}:{type:ae.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ae.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:return sh(e,{doc:n,blockClass:o,blockSelector:s,unblockSelector:i,inlineStylesheet:m,maskAttributeFn:u,maskInputOptions:h,maskInputFn:y,dataURLOptions:g,inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:S,rootId:w,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p});case e.TEXT_NODE:return rh(e,{doc:n,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:f,maskInputOptions:h,maskInputFn:y,rootId:w});case e.CDATA_SECTION_NODE:return{type:ae.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:ae.Comment,textContent:e.textContent||"",rootId:w};default:return!1}}function nh(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}function rh(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:s,unmaskTextSelector:i,maskTextFn:a,maskInputOptions:u,maskInputFn:c,rootId:l}=t,d=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const m="STYLE"===d||void 0,h="SCRIPT"===d||void 0,f="TEXTAREA"===d||void 0;if(m&&p){try{e.nextSibling||e.previousSibling||Jt([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(p=Wn(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=Gn(p,fr(t.doc))}h&&(p="SCRIPT_PLACEHOLDER");const y=It(e,r,s,o,i,n);if(!m&&!h&&!f&&p&&y&&(p=a?a(p,e.parentElement):p.replace(/[\S]/g,"*")),f&&p&&(u.textarea||y)&&(p=c?c(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p){p=Xt({isMasked:It(e,r,s,o,i,pr({type:null,tagName:d,maskInputOptions:u})),element:e,value:p,maskInputFn:c})}return{type:ae.Text,textContent:p||"",isStyle:m,rootId:l}}function sh(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:s,inlineStylesheet:i,maskInputOptions:a={},maskAttributeFn:u,maskInputFn:c,dataURLOptions:l={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:h=!1,rootId:f,maskAllText:y,maskTextClass:g,unmaskTextClass:v,maskTextSelector:b,unmaskTextSelector:_}=t,S=Jm(e,r,o,s),w=$m(e);let I={};const A=e.attributes.length;for(let t=0;t<A;t++){const r=e.attributes[t];r.name&&!sc(w,r.name,r.value)&&(I[r.name]=rc(n,w,Et(r.name),r.value,e,u))}if("link"===w&&i){const t=Array.from(n.styleSheets).find((t=>t.href===e.href));let r=null;t&&(r=Wn(t)),r&&(I.rel=null,I.href=null,I.crossorigin=null,I._cssText=Gn(r,t.href))}if("style"===w&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=Wn(e.sheet);t&&(I._cssText=Gn(t,fr(n)))}if("input"===w||"textarea"===w||"select"===w||"option"===w){const t=e,n=Xs(t),r=qn(t,hs(w),n),o=t.checked;if("submit"!==n&&"button"!==n&&r){const e=It(t,g,b,v,_,pr({type:n,tagName:hs(w),maskInputOptions:a}));I.value=Xt({isMasked:e,element:t,value:r,maskInputFn:c})}o&&(I.checked=o)}if("option"===w&&(e.selected&&!a.select?I.selected=!0:delete I.selected),"canvas"===w&&p)if("2d"===e.__context)Um(e)||(I.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const t=e.toDataURL(l.type,l.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height;t!==r.toDataURL(l.type,l.quality)&&(I.rr_dataURL=t)}if("img"===w&&d){ct||(ct=n.createElement("canvas"),Ii=ct.getContext("2d"));const t=e,r=t.currentSrc||t.getAttribute("src")||"<unknown-src>",o=t.crossOrigin,s=()=>{t.removeEventListener("load",s);try{ct.width=t.naturalWidth,ct.height=t.naturalHeight,Ii.drawImage(t,0,0),I.rr_dataURL=ct.toDataURL(l.type,l.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?s():t.addEventListener("load",s));console.warn(`Cannot inline img src=${r}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(o?I.crossOrigin=o:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?s():t.addEventListener("load",s)}if(("audio"===w||"video"===w)&&(I.rr_mediaState=e.paused?"paused":"played",I.rr_mediaCurrentTime=e.currentTime),h||(e.scrollLeft&&(I.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(I.rr_scrollTop=e.scrollTop)),S){const{width:t,height:n}=e.getBoundingClientRect();I={class:I.class,rr_width:`${t}px`,rr_height:`${n}px`}}let k;"iframe"===w&&!m(I.src)&&(!S&&!nc(e)&&(I.rr_src=I.src),delete I.src);try{customElements.get(w)&&(k=!0)}catch{}return{type:ae.Element,tagName:w,attributes:I,childNodes:[],isSVG:Ym(e)||void 0,needBlock:S,rootId:f,isCustom:k}}function X(e){return null==e?"":e.toLowerCase()}function oh(e,t){if(t.comment&&e.type===ae.Comment)return!0;if(e.type===ae.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===Za(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(X(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===X(e.attributes.name)||"icon"===X(e.attributes.rel)||"apple-touch-icon"===X(e.attributes.rel)||"shortcut icon"===X(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&X(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(X(e.attributes.property).match(/^(og|twitter|fb):/)||X(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===X(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===X(e.attributes.name)||"googlebot"===X(e.attributes.name)||"bingbot"===X(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===X(e.attributes.name)||"generator"===X(e.attributes.name)||"framework"===X(e.attributes.name)||"publisher"===X(e.attributes.name)||"progid"===X(e.attributes.name)||X(e.attributes.property).match(/^article:/)||X(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===X(e.attributes.name)||"yandex-verification"===X(e.attributes.name)||"csrf-token"===X(e.attributes.name)||"p:domain_verify"===X(e.attributes.name)||"verify-v1"===X(e.attributes.name)||"verification"===X(e.attributes.name)||"shopify-checkout-api-token"===X(e.attributes.name)))return!0}}return!1}function ft(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:d,skipChild:p=!1,inlineStylesheet:m=!0,maskInputOptions:h={},maskAttributeFn:f,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b={},inlineImages:_=!1,recordCanvas:S=!1,onSerialize:w,onIframeLoad:I,iframeLoadTimeout:A=5e3,onStylesheetLoad:k,stylesheetLoadTimeout:E=5e3,keepIframeSrcFn:T=()=>!1,newlyAddedElement:C=!1}=t;let{preserveWhiteSpace:O=!0}=t;const q=th(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,maskAllText:a,unblockSelector:i,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:m,maskInputOptions:h,maskAttributeFn:f,maskTextFn:y,maskInputFn:g,dataURLOptions:b,inlineImages:_,recordCanvas:S,keepIframeSrcFn:T,newlyAddedElement:C});if(!q)return console.warn(e,"not serialized"),null;let R;R=r.hasNode(e)?r.getId(e):oh(q,v)||!O&&q.type===ae.Text&&!q.isStyle&&!q.textContent.replace(/^\s+|\s+$/gm,"").length?-2:Zs();const x=Object.assign(q,{id:R});if(r.add(e,x),-2===R)return null;w&&w(e);let P=!p;if(x.type===ae.Element){P=P&&!x.needBlock,delete x.needBlock;const t=e.shadowRoot;t&&$t(t)&&(x.isShadowHost=!0)}if((x.type===ae.Document||x.type===ae.Element)&&P){v.headWhitespace&&x.type===ae.Element&&"head"===x.tagName&&(O=!1);const t={doc:n,mirror:r,blockClass:o,blockSelector:s,maskAllText:a,unblockSelector:i,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:d,skipChild:p,inlineStylesheet:m,maskInputOptions:h,maskAttributeFn:f,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:S,preserveWhiteSpace:O,onSerialize:w,onIframeLoad:I,iframeLoadTimeout:A,onStylesheetLoad:k,stylesheetLoadTimeout:E,keepIframeSrcFn:T};for(const n of Array.from(e.childNodes)){const e=ft(n,t);e&&x.childNodes.push(e)}if(Mm(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=ft(n,t);r&&($t(e.shadowRoot)&&(r.isShadow=!0),x.childNodes.push(r))}}return e.parentNode&&Ft(e.parentNode)&&$t(e.parentNode)&&(x.isShadow=!0),x.type===ae.Element&&"iframe"===x.tagName&&Zm(e,(()=>{const t=nc(e);if(t&&I){const n=ft(t,{doc:t,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:m,maskInputOptions:h,maskAttributeFn:f,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:S,preserveWhiteSpace:O,onSerialize:w,onIframeLoad:I,iframeLoadTimeout:A,onStylesheetLoad:k,stylesheetLoadTimeout:E,keepIframeSrcFn:T});n&&I(e,n)}}),A),x.type===ae.Element&&"link"===x.tagName&&"string"==typeof x.attributes.rel&&("stylesheet"===x.attributes.rel||"preload"===x.attributes.rel&&"string"==typeof x.attributes.href&&"css"===Za(x.attributes.href))&&eh(e,(()=>{if(k){const t=ft(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:m,maskInputOptions:h,maskAttributeFn:f,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:S,preserveWhiteSpace:O,onSerialize:w,onIframeLoad:I,iframeLoadTimeout:A,onStylesheetLoad:k,stylesheetLoadTimeout:E,keepIframeSrcFn:T});t&&k(e,t)}}),E),x}function ih(e,t){const{mirror:n=new Xa,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:s=null,maskAllText:i=!1,maskTextClass:a="rr-mask",unmaskTextClass:u=null,maskTextSelector:c=null,unmaskTextSelector:l=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:m=!1,maskAllInputs:h=!1,maskAttributeFn:f,maskTextFn:y,maskInputFn:g,slimDOM:v=!1,dataURLOptions:b,preserveWhiteSpace:_,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:I,onStylesheetLoad:A,stylesheetLoadTimeout:k,keepIframeSrcFn:E=()=>!1}=t;return ft(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,maskAllText:i,maskTextClass:a,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:f,maskTextFn:y,maskInputFn:g,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:b,inlineImages:p,recordCanvas:m,preserveWhiteSpace:_,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:I,onStylesheetLoad:A,stylesheetLoadTimeout:k,keepIframeSrcFn:E,newlyAddedElement:!1})}function $e(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=s(n)):("call"===o||"optionalCall"===o)&&(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}function he(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const ut="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let bi={map:{},getId:()=>(console.error(ut),-1),getNode:()=>(console.error(ut),null),removeNodeFromMap(){console.error(ut)},has:()=>(console.error(ut),!1),reset(){console.error(ut)}};function en(e,t,n={}){let r=null,o=0;return function(...s){const i=Date.now();!o&&!1===n.leading&&(o=i);const a=t-(i-o),u=this;a<=0||a>t?(r&&(fh(r),r=null),o=i,e.apply(u,s)):!r&&!1!==n.trailing&&(r=mr((()=>{o=!1===n.leading?0:Date.now(),r=null,e.apply(u,s)}),a))}}function oc(e,t,n,r,o=window){const s=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){mr((()=>{n.set.call(this,e)}),0),s&&s.set&&s.set.call(this,e)}}),()=>oc(e,t,s||{},!0)}function eo(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}typeof window<"u"&&window.Proxy&&window.Reflect&&(bi=new Proxy(bi,{get:(e,t,n)=>("map"===t&&console.error(ut),Reflect.get(e,t,n))}));let Qn=Date.now;function ic(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:$e([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||$e([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||$e([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:$e([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||$e([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||$e([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function ac(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function cc(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function uc(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function ve(e,t,n,r,o){if(!e)return!1;const s=uc(e);if(!s)return!1;const i=pt(t,n);if(!o){const e=r&&s.matches(r);return i(s)&&!e}const a=Ze(s,i);let u=-1;return!(a<0)&&(r&&(u=Ze(s,pt(null,r))),a>-1&&u<0||a<u)}function ah(e,t){return-1!==t.getId(e)}function $r(e,t){return-2===t.getId(e)}function lc(e,t){if(Ft(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||lc(e.parentNode,t))}function gs(e){return!!e.changedTouches}function ch(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}function dc(e,t){return!("IFRAME"!==e.nodeName||!t.getMeta(e))}function pc(e,t){return!("LINK"!==e.nodeName||e.nodeType!==e.ELEMENT_NODE||!e.getAttribute||"stylesheet"!==e.getAttribute("rel")||!t.getMeta(e))}function _s(e){return!!$e([e,"optionalAccess",e=>e.shadowRoot])}/[1-9][0-9]{12}/.test(Date.now().toString())||(Qn=()=>(new Date).getTime());class uh{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return _f(this.styleIDMap.get(e),(()=>-1))}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function fc(e){let t=null;return $e([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function lh(e){let t,n=e;for(;t=fc(n);)n=t;return n}function dh(e){const t=e.ownerDocument;if(!t)return!1;const n=lh(e);return t.contains(n)}function mc(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||dh(e))}const Ti={};function to(e){const t=Ti[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch{}return Ti[e]=r.bind(window)}function ph(...e){return to("requestAnimationFrame")(...e)}function mr(...e){return to("setTimeout")(...e)}function fh(...e){return to("clearTimeout")(...e)}var ki,Ci,z=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(z||{}),F=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(F||{}),fe=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(fe||{}),De=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(De||{});function no(e){try{return e.contentDocument}catch{}}function mh(e){try{return e.contentWindow}catch{}}function hh(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=s(n)):("call"===o||"optionalCall"===o)&&(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}function Oi(e){return"__ln"in e}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(ki||(ki={})),function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(Ci||(Ci={}));class yh{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=hh([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Oi(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&Oi(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const Ri=(e,t)=>`${e}@${t}`;class gh{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new yh,r=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},o=o=>{if(!o.parentNode||!mc(o))return;const s=Ft(o.parentNode)?this.mirror.getId(fc(o)):this.mirror.getId(o.parentNode),i=r(o);if(-1===s||-1===i)return n.addNode(o);const a=ft(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{dc(e,this.mirror)&&!ve(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),pc(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),_s(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{ve(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});a&&(e.push({parentId:s,nextId:i,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)Mi(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||o(e);for(const e of this.addedSet)!Pi(this.droppedSet,e)&&!Mi(this.removes,e,this.mirror)||Pi(this.movedSet,e)?o(e):this.droppedSet.add(e);let s=null;for(;n.length;){let e=null;if(s){const t=this.mirror.getId(s.value.parentNode),n=r(s.value);-1!==t&&-1!==n&&(e=s)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}s=e.previous,n.removeNode(e.value),o(e.value)}const i={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};!i.texts.length&&!i.attributes.length&&!i.removes.length&&!i.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(i))},this.processMutation=e=>{if(!$r(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;!ve(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:It(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,uc(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){const n=Xs(t),o=t.tagName;r=qn(t,o,n);const s=pr({maskInputOptions:this.maskInputOptions,tagName:o,type:n});r=Xt({isMasked:It(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,s),element:t,value:r,maskInputFn:this.maskInputFn})}if(ve(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let o=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(no(t))return;n="rr_src"}if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!sc(t.tagName,n)&&(o.attributes[n]=rc(this.doc,Et(t.tagName),Et(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const r=t.style.getPropertyValue(e),s=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||s!==n.style.getPropertyPriority(e)?o.styleDiff[e]=""===s?r:[r,s]:o._unchangedStyles[e]=[r,s]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(o.styleDiff[e]=!1)}break}case"childList":if(ve(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),r=Ft(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);ve(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||$r(t,this.mirror)||!ah(t,this.mirror)||(this.addedSet.has(t)?(vs(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||lc(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Ri(n,r)]?vs(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!Ft(e.target)||!$t(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if($r(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[Ri(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);ve(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),_s(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function vs(e,t){e.delete(t),t.childNodes.forEach((t=>vs(e,t)))}function Mi(e,t,n){return 0!==e.length&&_h(e,t,n)}function _h(e,t,n){let r=t.parentNode;for(;r;){const t=n.getId(r);if(e.some((e=>e.id===t)))return!0;r=r.parentNode}return!1}function Pi(e,t){return 0!==e.size&&hc(e,t)}function hc(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||hc(e,n))}let jt;function vh(e){jt=e}function Sh(){jt=void 0}const G=e=>jt?(...t)=>{try{return e(...t)}catch(e){if(jt&&!0===jt(e))return()=>{};throw e}}:e;function be(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=s(n)):("call"===o||"optionalCall"===o)&&(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}const mt=[];function mn(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function yc(e,t){const n=new gh;mt.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const o=be([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);o&&window[o]&&(r=window[o]);const s=new r(G((t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function Eh({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const o="number"==typeof t.mousemove?t.mousemove:50,s="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let i,a=[];const u=en(G((t=>{const n=Date.now()-i;e(a.map((e=>(e.timeOffset-=n,e))),t),a=[],i=null})),s),c=G(en(G((e=>{const t=mn(e),{clientX:n,clientY:o}=gs(e)?e.changedTouches[0]:e;i||(i=Qn()),a.push({x:n,y:o,id:r.getId(t),timeOffset:Qn()-i}),u(typeof DragEvent<"u"&&e instanceof DragEvent?F.Drag:e instanceof MouseEvent?F.MouseMove:F.TouchMove)})),o,{trailing:!1})),l=[he("mousemove",c,n),he("touchmove",c,n),he("drag",c,n)];return G((()=>{l.forEach((e=>e()))}))}function Ih({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const a=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,u=[];let c=null;return Object.keys(fe).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e])).forEach((i=>{let a=Et(i);const l=(t=>i=>{const a=mn(i);if(ve(a,r,o,s,!0))return;let u=null,l=t;if("pointerType"in i){switch(i.pointerType){case"mouse":u=De.Mouse;break;case"touch":u=De.Touch;break;case"pen":u=De.Pen}u===De.Touch?fe[t]===fe.MouseDown?l="TouchStart":fe[t]===fe.MouseUp&&(l="TouchEnd"):De.Pen}else gs(i)&&(u=De.Touch);null!==u?(c=u,(l.startsWith("Touch")&&u===De.Touch||l.startsWith("Mouse")&&u===De.Mouse)&&(u=null)):fe[t]===fe.Click&&(u=c,c=null);const d=gs(i)?i.changedTouches[0]:i;if(!d)return;const p=n.getId(a),{clientX:m,clientY:h}=d;G(e)({type:fe[l],id:p,x:m,y:h,...null!==u&&{pointerType:u}})})(i);if(window.PointerEvent)switch(fe[i]){case fe.MouseDown:case fe.MouseUp:a=a.replace("mouse","pointer");break;case fe.TouchStart:case fe.TouchEnd:return}u.push(he(a,l,t))})),G((()=>{u.forEach((e=>e()))}))}function gc({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,sampling:i}){return he("scroll",G(en(G((i=>{const a=mn(i);if(!a||ve(a,r,o,s,!0))return;const u=n.getId(a);if(a===t&&t.defaultView){const n=ic(t.defaultView);e({id:u,x:n.left,y:n.top})}else e({id:u,x:a.scrollLeft,y:a.scrollTop})})),i.scroll||100)),t)}function wh({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return he("resize",G(en(G((()=>{const t=ac(),o=cc();(n!==t||r!==o)&&(e({width:Number(o),height:Number(t)}),n=t,r=o)})),200)),t)}const bh=["INPUT","TEXTAREA","SELECT"],Di=new WeakMap;function Th({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,ignoreClass:i,ignoreSelector:a,maskInputOptions:u,maskInputFn:c,sampling:l,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:m,maskTextSelector:h,unmaskTextSelector:f}){function y(e){let n=mn(e);const l=e.isTrusted,y=n&&hs(n.tagName);if("OPTION"===y&&(n=n.parentElement),!n||!y||bh.indexOf(y)<0||ve(n,r,o,s,!0))return;const v=n;if(v.classList.contains(i)||a&&v.matches(a))return;const b=Xs(n);let _=qn(v,y,b),S=!1;const w=pr({maskInputOptions:u,tagName:y,type:b}),I=It(n,p,h,m,f,w);("radio"===b||"checkbox"===b)&&(S=n.checked),_=Xt({isMasked:I,element:n,value:_,maskInputFn:c}),g(n,d?{text:_,isChecked:S,userTriggered:l}:{text:_,isChecked:S});const A=n.name;"radio"===b&&A&&S&&t.querySelectorAll(`input[type="radio"][name="${A}"]`).forEach((e=>{if(e!==n){const t=Xt({isMasked:I,element:e,value:qn(e,y,b),maskInputFn:c});g(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}}))}function g(t,r){const o=Di.get(t);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){Di.set(t,r);const o=n.getId(t);G(e)({...r,id:o})}}const v=("last"===l.input?["change"]:["input","change"]).map((e=>he(e,G(y),t))),b=t.defaultView;if(!b)return()=>{v.forEach((e=>e()))};const _=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),S=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return _&&_.set&&v.push(...S.map((e=>oc(e[0],e[1],{set(){G(y)({target:this,isTrusted:!1})}},!1,b)))),G((()=>{v.forEach((e=>e()))}))}function Kn(e){return function(e,t){if(Rn("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Rn("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Rn("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Rn("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function je(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function kh({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:G(((r,o,s)=>{const[i,a]=s,{id:u,styleId:c}=je(o,t,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,adds:[{rule:i,index:a}]}),r.apply(o,s)}))});const s=r.CSSStyleSheet.prototype.deleteRule;let i,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:G(((r,o,s)=>{const[i]=s,{id:a,styleId:u}=je(o,t,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&e({id:a,styleId:u,removes:[{index:i}]}),r.apply(o,s)}))}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:G(((r,o,s)=>{const[i]=s,{id:a,styleId:u}=je(o,t,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&e({id:a,styleId:u,replace:i}),r.apply(o,s)}))})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:G(((r,o,s)=>{const[i]=s,{id:a,styleId:u}=je(o,t,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&e({id:a,styleId:u,replaceSync:i}),r.apply(o,s)}))}));const u={};Mn("CSSGroupingRule")?u.CSSGroupingRule=r.CSSGroupingRule:(Mn("CSSMediaRule")&&(u.CSSMediaRule=r.CSSMediaRule),Mn("CSSConditionRule")&&(u.CSSConditionRule=r.CSSConditionRule),Mn("CSSSupportsRule")&&(u.CSSSupportsRule=r.CSSSupportsRule));const c={};return Object.entries(u).forEach((([r,o])=>{c[r]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(c[r].insertRule,{apply:G(((r,o,s)=>{const[i,a]=s,{id:u,styleId:c}=je(o.parentStyleSheet,t,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,adds:[{rule:i,index:[...Kn(o),a||0]}]}),r.apply(o,s)}))}),o.prototype.deleteRule=new Proxy(c[r].deleteRule,{apply:G(((r,o,s)=>{const[i]=s,{id:a,styleId:u}=je(o.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&e({id:a,styleId:u,removes:[{index:[...Kn(o),i]}]}),r.apply(o,s)}))})})),G((()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=s,i&&(r.CSSStyleSheet.prototype.replace=i),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(u).forEach((([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule}))}))}function _c({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const o="#document"===n.nodeName?be([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):be([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),s=be([o,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(be([o,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&o&&s?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get(){return be([s,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=be([s,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch{}return n}}),G((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get:s.get,set:s.set})}))):()=>{}}function Ch({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const s=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:G(((o,i,a)=>{const[u,c,l]=a;if(n.has(u))return s.apply(i,[u,c,l]);const{id:d,styleId:p}=je(be([i,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:u,value:c,priority:l},index:Kn(i.parentRule)}),o.apply(i,a)}))});const i=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:G(((o,s,a)=>{const[u]=a;if(n.has(u))return i.apply(s,[u]);const{id:c,styleId:l}=je(be([s,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,remove:{property:u},index:Kn(s.parentRule)}),o.apply(s,a)}))}),G((()=>{o.CSSStyleDeclaration.prototype.setProperty=s,o.CSSStyleDeclaration.prototype.removeProperty=i}))}function Oh({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:s,doc:i}){const a=G((i=>en(G((s=>{const a=mn(s);if(!a||ve(a,t,n,r,!0))return;const{currentTime:u,volume:c,muted:l,playbackRate:d}=a;e({type:i,id:o.getId(a),currentTime:u,volume:c,muted:l,playbackRate:d})})),s.media||500))),u=[he("play",a(0),i),he("pause",a(1),i),he("seeked",a(2),i),he("volumechange",a(3),i),he("ratechange",a(4),i)];return G((()=>{u.forEach((e=>e()))}))}function Rh({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,n){const r=new s(e,t,n);return o.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const i=eo(t.fonts,"add",(function(t){return function(n){return mr(G((()=>{const t=o.get(n);t&&(e(t),o.delete(n))})),0),t.apply(this,[n])}}));return r.push((()=>{n.FontFace=s})),r.push(i),G((()=>{r.forEach((e=>e()))}))}function Mh(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,selectionCb:i}=e;let a=!0;const u=G((()=>{const e=t.getSelection();if(!e||a&&be([e,"optionalAccess",e=>e.isCollapsed]))return;a=e.isCollapsed||!1;const u=[],c=e.rangeCount||0;for(let t=0;t<c;t++){const i=e.getRangeAt(t),{startContainer:a,startOffset:c,endContainer:l,endOffset:d}=i;ve(a,r,o,s,!0)||ve(l,r,o,s,!0)||u.push({start:n.getId(a),startOffset:c,end:n.getId(l),endOffset:d})}i({ranges:u})}));return u(),he("selectionchange",u)}function Ph({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?eo(n.customElements,"define",(function(e){return function(n,r,o){try{t({define:{name:n}})}catch{}return e.apply(this,[n,r,o])}})):()=>{}}function Dh(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=yc(e,e.doc));const o=Eh(e),s=Ih(e),i=gc(e),a=wh(e,{win:n}),u=Th(e),c=Oh(e);let l=()=>{},d=()=>{},p=()=>{},m=()=>{};e.recordDOM&&(l=kh(e,{win:n}),d=_c(e,e.doc),p=Ch(e,{win:n}),e.collectFonts&&(m=Rh(e)));const h=Mh(e),f=Ph(e),y=[];for(const t of e.plugins)y.push(t.observer(t.callback,n,t.options));return G((()=>{mt.forEach((e=>e.reset())),be([r,"optionalAccess",e=>e.disconnect,"call",e=>e()]),o(),s(),i(),a(),u(),c(),l(),d(),p(),m(),h(),f(),y.forEach((e=>e()))}))}function Rn(e){return typeof window[e]<"u"}function Mn(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Ss{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const o=n||this.getIdToRemoteIdMap(e),s=r||this.getRemoteIdToIdMap(e);let i=o.get(t);return i||(i=this.generateIdFn(),o.set(t,i),s.set(i,t)),i}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,n,r)))}getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;return r.get(t)||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,n)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function Ai(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],s=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=s(n)):("call"===o||"optionalCall"===o)&&(n=s(((...e)=>n.call(t,...e))),t=void 0)}return n}class Ah{constructor(){this.crossOriginIframeMirror=new Ss(Zs),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class xh{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Ss(Zs),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Ss(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),Ai([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]);const n=no(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin||!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case z.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:z.IncrementalSnapshot,data:{source:F.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case z.Meta:case z.Load:case z.DomContentLoaded:return!1;case z.Plugin:return t;case z.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case z.IncrementalSnapshot:switch(t.data.source){case F.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case F.Drag:case F.TouchMove:case F.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case F.ViewportResize:return!1;case F.MediaInteraction:case F.MouseInteraction:case F.Scroll:case F.CanvasMutation:case F.Input:return this.replaceIds(t.data,e,["id"]),t;case F.StyleSheetRule:case F.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case F.Font:return t;case F.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case F.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),Ai([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t((t=>{this.replaceStyleIds(t,e,["styleId"])}))]),t}}return!1}replace(e,t,n,r){for(const o of r)!Array.isArray(t[o])&&"number"!=typeof t[o]||(Array.isArray(t[o])?t[o]=e.getIds(n,t[o]):t[o]=e.getId(n,t[o]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type!==ae.Document&&!e.rootId&&(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class Bh{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class Nh{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!$t(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const n=yc({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(gc({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),mr((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(_c({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){const t=no(e),n=mh(e);!t||!n||this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(eo(e.prototype,"attachShadow",(function(e){return function(r){const o=e.call(this,r);return this.shadowRoot&&mc(this)&&n.addShadowRoot(this.shadowRoot,t),o}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch{}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class xi{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class Lh{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new uh,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},r=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:Ja(e),index:t})))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class Uh{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.active||(this.active=!0,ph((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let oe,Yn;try{if(2!==Array.from([1],(e=>2*e))[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=Bn([e,"access",e=>e.contentWindow,"optionalAccess",e=>e.Array,"access",e=>e.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const we=Lm();function Ue(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:s=null,unblockSelector:i=null,ignoreClass:a="rr-ignore",ignoreSelector:u=null,maskAllText:c=!1,maskTextClass:l="rr-mask",unmaskTextClass:d=null,maskTextSelector:p=null,unmaskTextSelector:m=null,inlineStylesheet:h=!0,maskAllInputs:f,maskInputOptions:y,slimDOMOptions:g,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,maxCanvasSize:S=null,packFn:w,sampling:I={},dataURLOptions:A={},mousemoveWait:k,recordDOM:E=!0,recordCanvas:T=!1,recordCrossOriginIframes:C=!1,recordAfter:O=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:q=!1,collectFonts:R=!1,inlineImages:x=!1,plugins:P,keepIframeSrcFn:M=()=>!1,ignoreCSSAttributes:D=new Set([]),errorHandler:N,onMutation:L,getCanvasManager:B}=e;vh(N);const V=!C||window.parent===window;let U=!1;if(!V)try{window.parent.document&&(U=!1)}catch{U=!0}if(V&&!t)throw new Error("emit function is required");if(!V&&!U)return()=>{};void 0!==k&&void 0===I.mousemove&&(I.mousemove=k),we.reset();const j=!0===f?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==y?y:{},$=!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===g,headMetaDescKeywords:"all"===g}:g||{};ch();let W,H=0;const K=e=>{for(const t of P||[])t.eventProcessor&&(e=t.eventProcessor(e));return w&&!U&&(e=w(e)),e};oe=(e,o)=>{const s=e;if(s.timestamp=Qn(),Bn([mt,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])&&s.type!==z.FullSnapshot&&!(s.type===z.IncrementalSnapshot&&s.data.source===F.Mutation)&&mt.forEach((e=>e.unfreeze())),V)Bn([t,"optionalCall",e=>e(K(s),o)]);else if(U){const e={type:"rrweb",event:K(s),origin:window.location.origin,isCheckout:o};window.parent.postMessage(e,"*")}if(s.type===z.FullSnapshot)W=s,H=0;else if(s.type===z.IncrementalSnapshot){if(s.data.source===F.Mutation&&s.data.isAttachIframe)return;H++;const e=r&&H>=r,t=n&&W&&s.timestamp-W.timestamp>n;(e||t)&&re(!0)}};const Q=e=>{oe({type:z.IncrementalSnapshot,data:{source:F.Mutation,...e}})},J=e=>oe({type:z.IncrementalSnapshot,data:{source:F.Scroll,...e}}),X=e=>oe({type:z.IncrementalSnapshot,data:{source:F.CanvasMutation,...e}}),Y=new Lh({mutationCb:Q,adoptedStyleSheetCb:e=>oe({type:z.IncrementalSnapshot,data:{source:F.AdoptedStyleSheet,...e}})}),Z="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new Ah:new xh({mirror:we,mutationCb:Q,stylesheetManager:Y,recordCrossOriginIframes:C,wrappedEmit:oe});for(const e of P||[])e.getMirror&&e.getMirror({nodeMirror:we,crossOriginIframeMirror:Z.crossOriginIframeMirror,crossOriginIframeStyleMirror:Z.crossOriginIframeStyleMirror});const ee=new Uh,te=Fh(B,{mirror:we,win:window,mutationCb:e=>oe({type:z.IncrementalSnapshot,data:{source:F.CanvasMutation,...e}}),recordCanvas:T,blockClass:o,blockSelector:s,unblockSelector:i,maxCanvasSize:S,sampling:I.canvas,dataURLOptions:A,errorHandler:N}),ne="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Bh:new Nh({mutationCb:Q,scrollCb:J,bypassOptions:{onMutation:L,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:c,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:h,maskInputOptions:j,dataURLOptions:A,maskAttributeFn:v,maskTextFn:_,maskInputFn:b,recordCanvas:T,inlineImages:x,sampling:I,slimDOMOptions:$,iframeManager:Z,stylesheetManager:Y,canvasManager:te,keepIframeSrcFn:M,processedNodeManager:ee},mirror:we}),re=(e=!1)=>{if(!E)return;oe({type:z.Meta,data:{href:window.location.href,width:cc(),height:ac()}},e),Y.reset(),ne.init(),mt.forEach((e=>e.lock()));const t=ih(document,{mirror:we,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:c,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:h,maskAllInputs:j,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,slimDOM:$,dataURLOptions:A,recordCanvas:T,inlineImages:x,onSerialize:e=>{dc(e,we)&&Z.addIframe(e),pc(e,we)&&Y.trackLinkElement(e),_s(e)&&ne.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Z.attachIframe(e,t),e.contentWindow&&te.addWindow(e.contentWindow),ne.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Y.attachLinkElement(e,t)},keepIframeSrcFn:M});if(!t)return console.warn("Failed to snapshot the document");oe({type:z.FullSnapshot,data:{node:t,initialOffset:ic(window)}}),mt.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Y.adoptStyleSheets(document.adoptedStyleSheets,we.getId(document))};Yn=re;try{const e=[],t=e=>G(Dh)({onMutation:L,mutationCb:Q,mousemoveCb:(e,t)=>oe({type:z.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>oe({type:z.IncrementalSnapshot,data:{source:F.MouseInteraction,...e}}),scrollCb:J,viewportResizeCb:e=>oe({type:z.IncrementalSnapshot,data:{source:F.ViewportResize,...e}}),inputCb:e=>oe({type:z.IncrementalSnapshot,data:{source:F.Input,...e}}),mediaInteractionCb:e=>oe({type:z.IncrementalSnapshot,data:{source:F.MediaInteraction,...e}}),styleSheetRuleCb:e=>oe({type:z.IncrementalSnapshot,data:{source:F.StyleSheetRule,...e}}),styleDeclarationCb:e=>oe({type:z.IncrementalSnapshot,data:{source:F.StyleDeclaration,...e}}),canvasMutationCb:X,fontCb:e=>oe({type:z.IncrementalSnapshot,data:{source:F.Font,...e}}),selectionCb:e=>{oe({type:z.IncrementalSnapshot,data:{source:F.Selection,...e}})},customElementCb:e=>{oe({type:z.IncrementalSnapshot,data:{source:F.CustomElement,...e}})},blockClass:o,ignoreClass:a,ignoreSelector:u,maskAllText:c,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:m,maskInputOptions:j,inlineStylesheet:h,sampling:I,recordDOM:E,recordCanvas:T,inlineImages:x,userTriggeredOnInput:q,collectFonts:R,doc:e,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,keepIframeSrcFn:M,blockSelector:s,unblockSelector:i,slimDOMOptions:$,dataURLOptions:A,mirror:we,iframeManager:Z,stylesheetManager:Y,shadowDomManager:ne,processedNodeManager:ee,canvasManager:te,ignoreCSSAttributes:D,plugins:Bn([P,"optionalAccess",e=>e.filter,"call",e=>e((e=>e.observer)),"optionalAccess",e=>e.map,"call",e=>e((e=>({observer:e.observer,options:e.options,callback:t=>oe({type:z.Plugin,data:{plugin:e.name,payload:t}})})))])||[]},{});Z.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}));const n=()=>{re(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(he("DOMContentLoaded",(()=>{oe({type:z.DomContentLoaded,data:{}}),"DOMContentLoaded"===O&&n()}))),e.push(he("load",(()=>{oe({type:z.Load,data:{}}),"load"===O&&n()}),window))),()=>{e.forEach((e=>e())),ee.destroy(),Yn=void 0,Sh()}}catch(e){console.warn(e)}}function Vh(e){if(!Yn)throw new Error("please take full snapshot after start recording");Yn(e)}function Fh(e,t){try{return e?e(t):new xi}catch{return console.warn("Unable to initialize CanvasManager"),new xi}}Ue.mirror=we,Ue.takeFullSnapshot=Vh;const $h=3,jh=5;function ro(e){return e>9999999999?e:1e3*e}function jr(e){return e>9999999999?e/1e3:e}function hn(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:z.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:xe(t,10,1e3)}}),"console"===t.category))))}const zh="button,a";function vc(e){return e.closest(zh)||e}function Sc(e){const t=Ec(e);return t&&t instanceof Element?vc(t):t}function Ec(e){return Hh(e)?e.target:e}function Hh(e){return"object"==typeof e&&!!e&&"target"in e}let ze;function Wh(e){return ze||(ze=[],qh()),ze.push(e),()=>{const t=ze?ze.indexOf(e):-1;t>-1&&ze.splice(t,1)}}function qh(){Ee(Z,"open",(function(e){return function(...t){if(ze)try{ze.forEach((e=>e()))}catch{}return e.apply(Z,t)}}))}const Gh=new Set([F.Mutation,F.StyleSheetRule,F.StyleDeclaration,F.AdoptedStyleSheet,F.CanvasMutation,F.Selection,F.MediaInteraction]);function Qh(e,t,n){e.handleClick(t,n)}class Kh{constructor(e,t,n=hn){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=Wh((()=>{this._lastMutation=Bi()}));this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(Jh(t,this._ignoreSelector)||!Xh(e))return;const n={timestamp:jr(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=jr(e)}registerScroll(e=Date.now()){this._lastScroll=jr(e)}registerClick(e){const t=vc(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=Bi();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}));for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,o=!n&&!r,{clickCount:s,clickBreadcrumb:i}=e;if(o){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:{...i.data,url:Z.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:s||1}};this._addBreadcrumbEvent(t,o)}else if(s>1){const e={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:Z.location.href,route:t.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=St((()=>this._checkClicks()),1e3)}}const Yh=["A","BUTTON","INPUT"];function Jh(e,t){return!!(!Yh.includes(e.tagName)||"INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||"")||"A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target"))||t&&e.matches(t))}function Xh(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}function Bi(){return Date.now()/1e3}function Zh(e,t){try{if(!ey(t))return;const{source:n}=t.data;if(Gh.has(n)&&e.registerMutation(t.timestamp),n===F.Scroll&&e.registerScroll(t.timestamp),ty(t)){const{type:n,id:r}=t.data,o=Ue.mirror.getNode(r);o instanceof HTMLElement&&n===fe.Click&&e.registerClick(o)}}catch{}}function ey(e){return 3===e.type}function ty(e){return e.data.source===F.MouseInteraction}function Re(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Jn;!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Jn||(Jn={}));const ny=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function ry(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(ny.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),t[r]=e[n]}return t}const sy=e=>t=>{if(!e.isEnabled())return;const n=oy(t);if(!n)return;const r="click"===t.name,o=r?t.event:void 0;r&&e.clickDetector&&o&&o.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&Qh(e.clickDetector,n,Sc(t.event)),hn(e,n)};function Ic(e,t){const n=Ue.mirror.getId(e),r=n&&Ue.mirror.getNode(n),o=r&&Ue.mirror.getMeta(r),s=o&&ay(o)?o:null;return{message:t,data:s?{nodeId:n,node:{id:n,tagName:s.tagName,textContent:Array.from(s.childNodes).map((e=>e.type===Jn.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:ry(s.attributes)}}:{}}}function oy(e){const{target:t,message:n}=iy(e);return Re({category:`ui.${e.name}`,...Ic(t,n)})}function iy(e){const t="click"===e.name;let n,r=null;try{r=t?Sc(e.event):Ec(e.event),n=zs(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function ay(e){return e.type===Jn.Element}function cy(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=uy(t);n&&hn(e,n)}function uy(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:s,target:i}=e;if(!i||ly(i)||!s)return null;const a=t||r||o,u=1===s.length;if(!a&&u)return null;const c=zs(i,{maxStringLength:200})||"<unknown>";return Re({category:"ui.keyDown",message:c,data:{...Ic(i,c).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:s}})}function ly(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}const dy={resource:yy,paint:my,navigation:hy};function Pn(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function py(e){return e.map(fy).filter(Boolean)}function fy(e){const t=dy[e.entryType];return t?t(e):null}function wt(e){return((Hd||Z.performance.timeOrigin)+e)/1e3}function my(e){const{duration:t,entryType:n,name:r,startTime:o}=e,s=wt(o);return{type:n,name:r,start:s,end:s+t,data:void 0}}function hy(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:s,encodedBodySize:i,domContentLoadedEventStart:a,domContentLoadedEventEnd:u,domInteractive:c,loadEventStart:l,loadEventEnd:d,redirectCount:p,startTime:m,transferSize:h,type:f}=e;return 0===o?null:{type:`${t}.${f}`,start:wt(m),end:wt(s),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:i,duration:o,domInteractive:c,domContentLoadedEventStart:a,domContentLoadedEventEnd:u,loadEventStart:l,loadEventEnd:d,domComplete:s,redirectCount:p}}}function yy(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:s,decodedBodySize:i,encodedBodySize:a,responseStatus:u,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:wt(s),end:wt(o),name:r,data:{size:c,statusCode:u,decodedBodySize:i,encodedBodySize:a}}}function gy(e){const t=e.entries[e.entries.length-1];return hr(e,"largest-contentful-paint",t&&t.element?[t.element]:void 0)}function _y(e){return void 0!==e.sources}function vy(e){const t=[],n=[];for(const r of e.entries)if(_y(r)){const e=[];for(const t of r.sources)if(t.node){n.push(t.node);const r=Ue.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return hr(e,"cumulative-layout-shift",n,t)}function Sy(e){const t=e.entries[e.entries.length-1];return hr(e,"first-input-delay",t&&t.target?[t.target]:void 0)}function Ey(e){const t=e.entries[e.entries.length-1];return hr(e,"interaction-to-next-paint",t&&t.target?[t.target]:void 0)}function hr(e,t,n,r){const o=e.value,s=e.rating,i=wt(o);return{type:"web-vital",name:t,start:i,end:i,data:{value:o,size:o,rating:s,nodeIds:n?n.map((e=>Ue.mirror.getId(e))):void 0,attributions:r}}}function Iy(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const r=[];return["navigation","paint","resource"].forEach((e=>{r.push(Qf(e,n))})),r.push(Wf(Pn(gy,e)),Hf(Pn(vy,e)),qf(Pn(Sy,e)),Gf(Pn(Ey,e))),()=>{r.forEach((e=>e()))}}const L=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,wy='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==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;++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});';function by(){const e=new Blob([wy]);return URL.createObjectURL(e)}const Ni=["info","warn","error","log"],Nn="[Replay] ";function zr(e,t="info"){sf({category:"console",data:{logger:"replay"},level:t,message:`${Nn}${e}`},{level:t})}function Ty(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{e=n.captureExceptions,t=n.traceInternals}};return L?(Ni.forEach((e=>{n[e]=(...n)=>{ye[e](Nn,...n),t&&zr(n.join(""),of(e))}})),n.exception=(r,...o)=>{o.length&&n.error&&n.error(...o),ye.error(Nn,r),e?qs(r):t&&zr(r,"error")},n.infoTick=(...e)=>{ye.info(Nn,...e),t&&setTimeout((()=>zr(e[0])),0)}):Ni.forEach((e=>{n[e]=()=>{}})),n}const V=Ty();class so extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Js}.`)}}class wc{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(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>Js)throw new so;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?ro(e):null}}class ky{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){L&&V.info("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,o)=>{const s=({data:t})=>{const i=t;if(i.method===e&&i.id===n){if(this._worker.removeEventListener("message",s),!i.success)return L&&V.error("Error in compression worker: ",i.response),void o(new Error("Error in compression worker"));r(i.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class Cy{constructor(e){this._worker=new ky(e),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(e){const t=ro(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>Js?Promise.reject(new so):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{L&&V.exception(e,'Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class Oy{constructor(e){this._fallback=new wc,this._compression=new Cy(e),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(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void(L&&V.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(const t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){L&&V.exception(e,"Failed to add events when switching buffers.")}}}function Ry({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=My(t);if(e)return e}return L&&V.info("Using simple buffer"),new wc}function My(e){try{const t=e||Py();if(!t)return;L&&V.info("Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new Oy(n)}catch(e){L&&V.exception(e,"Failed to create compression worker")}}function Py(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?by():""}function oo(){try{return"sessionStorage"in Z&&!!Z.sessionStorage}catch{return!1}}function Dy(e){Ay(),e.session=void 0}function Ay(){if(oo())try{Z.sessionStorage.removeItem(Ks)}catch{}}function bc(e){return void 0!==e&&Math.random()<e}function Tc(e){const t=Date.now();return{id:e.id||Le(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function io(e){if(oo())try{Z.sessionStorage.setItem(Ks,JSON.stringify(e))}catch{}}function xy(e,t){return bc(e)?"session":!!t&&"buffer"}function Li({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const o=Tc({sampled:xy(e,t),previousSessionId:r});return n&&io(o),o}function By(){if(!oo())return null;try{const e=Z.sessionStorage.getItem(Ks);if(!e)return null;const t=JSON.parse(e);return L&&V.infoTick("Loading existing session"),Tc(t)}catch{return null}}function Es(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function kc(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return Es(e.started,t,r)||Es(e.lastActivity,n,r)}function Cc(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!kc(e,{sessionIdleExpire:t,maxReplayDuration:n})||"buffer"===e.sampled&&0===e.segmentId)}function Hr({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const o=r.stickySession&&By();return o?Cc(o,{sessionIdleExpire:e,maxReplayDuration:t})?(L&&V.infoTick("Session in sessionStorage is expired, creating new one..."),Li(r,{previousSessionId:o.id})):o:(L&&V.infoTick("Creating new session"),Li(r,{previousSessionId:n}))}function Ny(e){return e.type===z.Custom}function ao(e,t,n){return!!Rc(e,t)&&(Oc(e,t,n),!0)}function Ly(e,t,n){return Rc(e,t)?Oc(e,t,n):Promise.resolve(null)}async function Oc(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const o="buffer"===e.recordingMode;try{n&&o&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const s=Uy(t,e.getOptions().beforeAddRecordingEvent);return s?await r.addEvent(s):void 0}catch(t){const n=t&&t instanceof so,s=n?"addEventSizeExceeded":"addEvent";if(n&&o)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:s});const i=Pe();i&&i.recordDroppedEvent("internal_sdk_error","replay")}}function Rc(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=ro(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(L&&V.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function Uy(e,t){try{if("function"==typeof t&&Ny(e))return t(e)}catch(e){return L&&V.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function co(e){return!e.type}function Is(e){return"transaction"===e.type}function Vy(e){return"replay_event"===e.type}function Ui(e){return"feedback"===e.type}function Fy(e){return(t,n)=>{if(!e.isEnabled()||!co(t)&&!Is(t))return;const r=n&&n.statusCode;if(!(!r||r<200||r>=300)){if(Is(t))return void $y(e,t);jy(e,t)}}}function $y(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function jy(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();"function"==typeof r&&!r(t)||St((async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}}))}function zy(e){return t=>{!e.isEnabled()||!co(t)||Hy(e,t)}}function Hy(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if("string"==typeof n&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){hn(e,Re({category:"replay.hydrate-error",data:{url:Ud()}}))}}function Wy(e){const t=Pe();t&&t.on("beforeAddBreadcrumb",(t=>qy(e,t)))}function qy(e,t){if(!e.isEnabled()||!Mc(t))return;const n=Gy(t);n&&hn(e,n)}function Gy(e){return!Mc(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:"console"===e.category?Qy(e):Re(e)}function Qy(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return Re(e);let n=!1;const r=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>On?(n=!0,`${e.slice(0,On)}…`):e;if("object"==typeof e)try{const t=xe(e,7);return JSON.stringify(t).length>On?(n=!0,`${JSON.stringify(t,null,2).slice(0,On)}…`):t}catch{}return e}));return Re({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function Mc(e){return!!e.category}function Ky(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length)&&!(!t.originalException||!t.originalException.__rrweb__)}function Pc(){const e=bt().getPropagationContext().dsc;e&&delete e.replay_id;const t=Na();if(t){delete Ua(t).replay_id}}function Yy(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:z.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}function Jy(e,t){return!("buffer"!==e.recordingMode||t.message===Ys||!t.exception||t.type)&&bc(e.getOptions().errorSampleRate)}function Xy(e){return Object.assign(((t,n)=>!e.isEnabled()||e.isPaused()?t:Vy(t)?(delete t.breadcrumbs,t):co(t)||Is(t)||Ui(t)?e.checkAndHandleExpiredSession()?Ui(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),Yy(e,t),t):Ky(t,n)&&!e.getOptions()._experiments.captureExceptions?(L&&V.log("Ignoring error from rrweb internals",t),null):((Jy(e,t)||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(Pc(),t):t),{id:"Replay"})}function yr(e,t){return t.map((({type:t,start:n,end:r,name:o,data:s})=>{const i=e.throttledAddEvent({type:z.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:o,startTimestamp:n,endTimestamp:r,data:s}}});return"string"==typeof i?Promise.resolve(null):i}))}function Zy(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function eg(e){return t=>{if(!e.isEnabled())return;const n=Zy(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(yr(e,[n]),!1))))}}function tg(e,t){return(!L||!e.getOptions()._experiments.traceInternals)&&ef(t,Pe())}function Dc(e,t){e.isEnabled()&&null!==t&&(tg(e,t.name)||e.addUpdate((()=>(yr(e,[t]),!0))))}function gr(e){if(!e)return;const t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=Nc(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function Ac(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function xc(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Nc(e)];if(!e)return[void 0]}catch(t){return L&&V.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return L&&V.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Xn(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function Bc(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:s,statusCode:i,request:a,response:u}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:Te({method:s,statusCode:i,request:a,response:u})}}function tn(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function We(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:o,warnings:s}=ng(n);return r.body=o,s&&s.length>0&&(r._meta={warnings:s}),r}function ws(e,t){return Object.entries(e).reduce(((n,[r,o])=>{const s=r.toLowerCase();return t.includes(s)&&e[r]&&(n[s]=o),n}),{})}function Nc(e){return new URLSearchParams(e).toString()}function ng(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>_i,n=rg(e);if(t){const t=e.slice(0,_i);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function rg(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}function Zn(e,t){return Fd(sg(e),t)}function sg(e,t=Z.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Z.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function og(e,t,n){try{const r=Bc("resource.fetch",await ag(e,t,n));Dc(n.replay,r)}catch(e){L&&V.exception(e,"Failed to capture fetch breadcrumb")}}function ig(e,t){const{input:n,response:r}=t,o=gr(n?Lc(n):void 0),s=r?Ac(r.headers.get("content-length")):void 0;void 0!==o&&(e.data.request_body_size=o),void 0!==s&&(e.data.response_body_size=s)}async function ag(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:s=r}=t,{url:i,method:a,status_code:u=0,request_body_size:c,response_body_size:l}=e.data,d=Zn(i,n.networkDetailAllowUrls)&&!Zn(i,n.networkDetailDenyUrls);return{startTimestamp:o,endTimestamp:s,url:i,method:a,statusCode:u,request:d?cg(n,t.input,c):tn(c),response:await ug(d,n,t.response,l)}}function cg({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const o=n?pg(n,t):{};if(!e)return We(o,r,void 0);const s=Lc(n),[i,a]=xc(s),u=We(o,r,i);return a?Xn(u,a):u}async function ug(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,o){if(!e&&void 0!==o)return tn(o);const s=r?Uc(r.headers,n):{};if(!r||!t&&void 0!==o)return We(s,o,void 0);const[i,a]=await dg(r),u=lg(i,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:s});return a?Xn(u,a):u}function lg(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:o}){try{const s=e&&e.length&&void 0===n?gr(e):n;return r?We(o,s,t?e:void 0):tn(s)}catch(e){return L&&V.exception(e,"Failed to serialize response body"),We(o,n,void 0)}}async function dg(e){const t=fg(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await mg(t)]}catch(e){return e instanceof Error&&e.message.indexOf("Timeout")>-1?(L&&V.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(L&&V.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function Lc(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function Uc(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function pg(e,t){return 1===e.length&&"string"!=typeof e[0]?Vi(e[0],t):2===e.length?Vi(e[1],t):{}}function Vi(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Uc(n,t):Array.isArray(n)?{}:ws(n,t):{}}function fg(e){try{return e.clone()}catch(e){L&&V.exception(e,"Failed to clone response body")}}function mg(e){return new Promise(((t,n)=>{const r=St((()=>n(new Error("Timeout while trying to read response body"))),500);hg(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(r)))}))}async function hg(e){return await e.text()}async function yg(e,t,n){try{const r=Bc("resource.xhr",_g(e,t,n));Dc(n.replay,r)}catch(e){L&&V.exception(e,"Failed to capture xhr breadcrumb")}}function gg(e,t){const{xhr:n,input:r}=t;if(!n)return;const o=gr(r),s=n.getResponseHeader("content-length")?Ac(n.getResponseHeader("content-length")):Ig(n.response,n.responseType);void 0!==o&&(e.data.request_body_size=o),void 0!==s&&(e.data.response_body_size=s)}function _g(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:s=r,input:i,xhr:a}=t,{url:u,method:c,status_code:l=0,request_body_size:d,response_body_size:p}=e.data;if(!u)return null;if(!a||!Zn(u,n.networkDetailAllowUrls)||Zn(u,n.networkDetailDenyUrls)){return{startTimestamp:o,endTimestamp:s,url:u,method:c,statusCode:l,request:tn(d),response:tn(p)}}const m=a[um],h=m?ws(m.request_headers,n.networkRequestHeaders):{},f=ws(vg(a),n.networkResponseHeaders),[y,g]=n.networkCaptureBodies?xc(i):[void 0],[v,b]=n.networkCaptureBodies?Sg(a):[void 0],_=We(h,d,y),S=We(f,p,v);return{startTimestamp:o,endTimestamp:s,url:u,method:c,statusCode:l,request:g?Xn(_,g):_,response:b?Xn(S,b):S}}function vg(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e}),{}):{}}function Sg(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return Eg(e.response,e.responseType)}catch(e){t.push(e)}return L&&V.warn("Failed to get xhr response body",...t),[void 0]}function Eg(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return L&&V.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return L&&V.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Ig(e,t){try{return gr("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch{return}}function wg(e){const t=Pe();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:s,networkResponseHeaders:i}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:s,networkResponseHeaders:i};t&&t.on("beforeAddBreadcrumb",((e,t)=>bg(a,e,t)))}catch{}}function bg(e,t,n){if(t.data)try{Tg(t)&&Cg(n)&&(gg(t,n),yg(t,n,e)),kg(t)&&Og(n)&&(ig(t,n),og(t,n,e))}catch(e){L&&V.exception(e,"Error when enriching network breadcrumb")}}function Tg(e){return"xhr"===e.category}function kg(e){return"fetch"===e.category}function Cg(e){return e&&e.xhr}function Og(e){return e&&e.response}function Rg(e){const t=Pe();tm(sy(e)),im(eg(e)),Wy(e),wg(e);Qp(Xy(e)),t&&(t.on("beforeSendEvent",zy(e)),t.on("afterSendEvent",Fy(e)),t.on("createDsc",(t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)})),t.on("spanStart",(t=>{e.lastActiveSpan=t})),t.on("spanEnd",(t=>{e.lastActiveSpan=t})),t.on("beforeSendFeedback",((t,n)=>{const r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)})))}async function Mg(e){try{return Promise.all(yr(e,[Pg(Z.performance.memory)]))}catch{return[]}}function Pg(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function Dg(e,t,n){let r,o,s;const i=n.maxWait?Math.max(n.maxWait,t):0;function a(){return u(),r=e(),r}function u(){void 0!==o&&clearTimeout(o),void 0!==s&&clearTimeout(s),o=s=void 0}function c(){return o&&clearTimeout(o),o=St(a,t),i&&void 0===s&&(s=St(a,i)),r}return c.cancel=u,c.flush=function(){return void 0!==o||void 0!==s?a():r},c}function Ag(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(L&&V.warn("Received replay event after session expired."));const o=r||!t;t=!0,e.clickDetector&&Zh(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&o&&e.setInitialState(),!ao(e,n,o))return!0;if(!o)return!1;const t=e.session;if(Bg(e,o),"buffer"===e.recordingMode&&t&&e.eventBuffer){const n=e.eventBuffer.getEarliestTimestamp();n&&(L&&V.info(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&io(t))}return t&&t.previousSessionId||"session"===e.recordingMode&&e.flush(),!0}))}}function xg(e){const t=e.getOptions();return{type:z.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function Bg(e,t){!t||!e.session||0!==e.session.segmentId||ao(e,xg(e),!1)}function Ng(e,t,n,r){return Op(Mp(e,Rp(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}function Lg({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}async function Ug({client:e,scope:t,replayId:n,event:r}){const o={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,o);const s=await Up(e.getOptions(),r,o,t,e,un());if(!s)return null;s.platform=s.platform||"javascript";const i=e.getSdkMetadata(),{name:a,version:u}=i&&i.sdk||{};return s.sdk={...s.sdk,name:a||"sentry.javascript.unknown",version:u||"0.0.0"},s}async function Vg({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:s}){const i=Lg({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:u,traceIds:c,initialTimestamp:l}=r,d=Pe(),p=bt(),m=d&&d.getTransport(),h=d&&d.getDsn();if(!(d&&m&&h&&s.sampled))return ti({});const f={type:_m,replay_start_timestamp:l/1e3,timestamp:o/1e3,error_ids:u,trace_ids:c,urls:a,replay_id:t,segment_id:n,replay_type:s.sampled},y=await Ug({scope:p,client:d,replayId:t,event:f});if(!y)return d.recordDroppedEvent("event_processor","replay",f),L&&V.info("An event processor returned `null`, will not send event."),ti({});delete y.sdkProcessingMetadata;const g=Ng(y,i,h,d.getOptions().tunnel);let v;try{v=await m.send(g)}catch(e){const t=new Error(Ys);try{t.cause=e}catch{}throw t}if("number"==typeof v.statusCode&&(v.statusCode<200||v.statusCode>=300))throw new Vc(v.statusCode);const b=Zp({},v);if(Xp(b,"replay"))throw new uo(b);return v}class Vc extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class uo extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function Fc(e,t={count:0,interval:bm}){const{recordingData:n,onError:r}=e;if(n.length)try{return await Vg(e),!0}catch(n){if(n instanceof Vc||n instanceof uo)throw n;if(qp("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){const e=new Error(`${Ys} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise(((n,r)=>{St((async()=>{try{await Fc(e,t),n(!0)}catch(e){r(e)}}),t.interval)}))}}const $c="__THROTTLED",Fg="__SKIPPED";function $g(e,t,n){const r=new Map;let o=!1;return(...s)=>{const i=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach(((e,n)=>{n<t&&r.delete(n)}))})(i),[...r.values()].reduce(((e,t)=>e+t),0)>=t){const e=o;return o=!0,e?Fg:$c}o=!1;const a=r.get(i)||0;return r.set(i,a+1),e(...s)}}class He{constructor({options:e,recordingOptions:t}){He.prototype.__init.call(this),He.prototype.__init2.call(this),He.prototype.__init3.call(this),He.prototype.__init4.call(this),He.prototype.__init5.call(this),He.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:vm,sessionIdleExpire:Sm},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=Dg((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=$g(((e,t)=>Ly(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),o=n?{threshold:Math.min(km,n),timeout:n,scrollTimeout:Cm,ignoreSelector:r?r.join(","):""}:void 0;if(o&&(this.clickDetector=new Kh(this,o)),L){const t=e._experiments;V.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){L&&V.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;if(this._requiresManualStart=r,!r){if(this._initializeSessionForSampling(e),!this.session)return void(L&&V.exception(new Error("Unable to initialize and create session")));!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",L&&V.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(L&&V.info("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(L&&V.info("Buffering is in progress, call `flush()` to save the replay"));L&&V.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=Hr({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(L&&V.info("Buffering is in progress, call `flush()` to save the replay"));L&&V.infoTick("Starting replay in buffer mode");const e=Hr({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=Ue({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:wm}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:Ag(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{L&&V.info("Stopping Replay"+(t?` triggered by ${t}`:"")),Pc(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,Dy(this)}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),L&&V.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),L&&V.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();L&&V.info("Converting buffer to session"),await this.flushImmediate();const n=this.stopRecording();!e||!n||"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&Es(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${Z.location.pathname}${Z.location.hash}${Z.location.search}`,t=`${Z.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===$c){const e=Re({category:"replay.throttled"});this.addUpdate((()=>!ao(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastActiveSpan||Na(),t=e&&Ws(e),n=(t&&Yt(t).data||{})[Ba];if(t&&n&&["route","custom"].includes(n))return Yt(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Ry({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=Hr({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!Cc(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{Z.document.addEventListener("visibilitychange",this._handleVisibilityChange),Z.addEventListener("blur",this._handleWindowBlur),Z.addEventListener("focus",this._handleWindowFocus),Z.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(Rg(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=Iy(this)}_removeListeners(){try{Z.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Z.removeEventListener("blur",this._handleWindowBlur),Z.removeEventListener("focus",this._handleWindowFocus),Z.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===Z.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=Re({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=Re({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{cy(this,e)}}_doChangeToBackgroundTasks(e){!this.session||kc(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){this.session&&(this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):L&&V.info("Document has become active, but session has expired"))}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:z.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){let e=py(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const t=this._context.initialTimestamp/1e3;e=e.filter((e=>e.start>=t))}return Promise.all(yr(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;const n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await Mg(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await Fc({replayId:e,recordingData:o,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:"sendReplay"});const t=Pe();if(t){const n=e instanceof uo?"ratelimit_backoff":"send_error";t.recordDroppedEvent(n,"replay")}}}else L&&V.error("No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(L&&V.error("Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,o=n>this._options.maxReplayDuration+5e3;if(r||o)return L&&V.info(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),void(r&&this._debouncedFlush());const s=this.eventBuffer;s&&0===this.session.segmentId&&!s.hasCheckout&&L&&V.info("Flushing initial segment without checkout.");const i=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,i&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&io(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,n=this._options.mutationLimit,r=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||r){const e=Re({category:"replay.mutations",data:{count:t,limit:r}});this._createCustomBreadcrumb(e)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function Rt(e,t){return[...e,...t].join(",")}function jg({mask:e,unmask:t,block:n,unblock:r,ignore:o}){return{maskTextSelector:Rt(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:Rt(t,[]),blockSelector:Rt(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:Rt(r,[]),ignoreSelector:Rt(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function zg({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:s}){return!r||o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?s:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?s.replace(/[\S]/g,"*"):s}const Fi='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Hg=["content-length","content-type","accept"];let $i=!1;const Wg=e=>new _r(e);class _r{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=Em,flushMaxDelay:t=Im,minReplayDuration:n=Om,maxReplayDuration:r=vi,stickySession:o=!0,useCompression:s=!0,workerUrl:i,_experiments:a={},maskAllText:u=!0,maskAllInputs:c=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:m=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:f=[],networkDetailDenyUrls:y=[],networkCaptureBodies:g=!0,networkRequestHeaders:v=[],networkResponseHeaders:b=[],mask:_=[],maskAttributes:S=["title","placeholder"],unmask:w=[],block:I=[],unblock:A=[],ignore:k=[],maskFn:E,beforeAddRecordingEvent:T,beforeErrorSampling:C,onError:O}={}){this.name=_r.id;const q=jg({mask:_,unmask:w,block:I,unblock:A,ignore:k});if(this._recordingOptions={maskAllInputs:c,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:E,maskInputFn:E,maskAttributeFn:(e,t,n)=>zg({maskAttributes:S,maskAllText:u,privacyOptions:q,key:e,value:t,el:n}),...q,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,Rm),maxReplayDuration:Math.min(r,vi),stickySession:o,useCompression:s,workerUrl:i,blockAllMedia:l,maskAllInputs:c,maskAllText:u,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:m,slowClickIgnoreSelectors:h,networkDetailAllowUrls:f,networkDetailDenyUrls:y,networkCaptureBodies:g,networkRequestHeaders:ji(v),networkResponseHeaders:ji(b),beforeAddRecordingEvent:T,beforeErrorSampling:C,onError:O,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Fi}`:Fi),this._isInitialized&&fi())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return $i}set _isInitialized(e){$i=e}afterAllSetup(e){!fi()||this._replay||(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(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(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const t=qg(this._initialOptions,e);this._replay=new He({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function qg(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...Te(e)},o=ci(n.replaysSessionSampleRate),s=ci(n.replaysOnErrorSampleRate);return null==o&&null==s&&Us((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")})),null!=o&&(r.sessionSampleRate=o),null!=s&&(r.errorSampleRate=s),r}function ji(e){return[...Hg,...e.map((e=>e.toLowerCase()))]}_r.__initStatic();const jc=()=>"object"!=typeof window;var Gg={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.16.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/store/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/store/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.16.0/bin",TURBO_HASH:"8b0e1289eaf45a5d",NODE:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_package_name:"@wellesley/store",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.260",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.16.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/store",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/store",EDITOR:"vi",NODE_ENV:"production",BUILD_NUMBER:"2945",APP_NAME:"@wellesley/store"};jc()||(window.build=Gg.BUILD_NUMBER),Wg(),fm(),uf();const zi={data:null,isError:!1,isPending:!1,isSuccess:!1},Qg=me({name:"user",initialState:zi,reducers:{reset:e=>{Object.assign(e,zi)},setData:(e,{payload:t})=>{e.data=t},updateData:(e,{payload:t})=>{e.data&&Object.assign(e.data,t)},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setPending:(e,{payload:t})=>{e.isPending=t},setIsError:(e,{payload:t})=>{e.isError=t},setError:(e,{payload:t})=>{e.error=t},updateUser:(e,{payload:t})=>{var n;null!=(n=e.data)&&n.users&&(e.data.users=e.data.users.map((e=>t.id===e.id?t:e)))}},selectors:{selectIsError:e=>e.isError,selectError:e=>e.error,selectPending:e=>e.isPending,selectData:e=>e.data,selectAccount:e=>{var t;return null==(t=e.data)?void 0:t.account},selectAccountId:e=>{var t;return null==(t=e.data)?void 0:t.account.id},selectUsers:e=>{var t;return null==(t=e.data)?void 0:t.users},selectUserById:(e,t)=>{var n;return null==(n=e.data)?void 0:n.users.find((({id:e})=>e===t))},selectCurrentUser:e=>{var t;return null==(t=e.data)?void 0:t.users.find((({id:t})=>{var n;return t===(null==(n=e.data)?void 0:n.selectedUserId)}))},selectSelectedUserId:e=>{var t;return null==(t=e.data)?void 0:t.selectedUserId},selectSuccess:e=>e.isSuccess,selectIsAdmin:e=>{var t;return"ADMIN"===(null==(t=e.data)?void 0:t.account.role)}}}),Kg=(...e)=>{let t="";for(const n of e){if(n instanceof Error){const e=n;return Gp("exceptionMessage",t),void qs(e)}if("object"!=typeof n)t+=n;else try{t+=" "+JSON.stringify(n)}catch{t+=" "+n}}Wp(t)},Hi=["debug","info","warn","error"],Yg=(e,t)=>{const n=Hi.indexOf(e);return Hi.indexOf(t)>=n},Dn=(e,t,n,...r)=>{Yg(t,e)&&console.log(`[${e}] ${n}`,...r)},Jg=()=>null==window?void 0:window.localStorage.getItem("logger_lvl"),Xg=(e=!jc()&&Jg()||"warn")=>{let t=e;return{debug:(e,...n)=>Dn("debug",t,e,...n),info:(e,...n)=>Dn("info",t,e,...n),warn:(e,...n)=>Dn("warn",t,e,...n),error:(e,...n)=>(Kg(e,...n),Dn("error",t,e,...n)),setLevel:e=>{t=e},getLevel:()=>t}},Tt=Xg(),vr="staticState",Ln={path:"",baseUrl:"",search:""},Zg=e=>{if(!e)return Ln;try{return JSON.parse(decodeURIComponent(e))||Ln}catch(e){return Tt.error("Error parsing static state",e),Ln}},zc=()=>new URLSearchParams(window.location.search).get(vr),e_=({path:e,baseUrl:t,search:n}={})=>{const{pathname:r,origin:o,search:s}=window.location;return`${vr}=${encodeURIComponent(JSON.stringify({path:e||r,baseUrl:t||o,search:n||s}))}`},t_=()=>{const e=zc();return e&&localStorage.setItem(vr,e),Hc()},Hc=()=>{try{const e=localStorage.getItem(vr)||zc();return Zg(e)}catch(e){return Tt.error("Error parsing static state",e),Ln}},n_={create:e_,init:t_,get:Hc},r_=e=>{try{const{type:t,payload:n}=e,r={type:t};return void 0!==n&&(r.payload=JSON.parse(JSON.stringify(n))),r}catch(t){return Tt.warn(`Could not serialize action type: ${e.type}`,t),{type:e.type,payload:`[Non-serializable payload for action: ${e.type}]`}}},s_=({action:e,windowElement:t,whitelist:n})=>{if(t)try{const{type:r}=e;if(!n.some((({type:e})=>e===r||"*"===e)))return;const o=r_(e);t.postMessage(o,"*")}catch(e){Tt.error("Failed to process or send message:",e)}},o_=({onMessage:e,whitelist:t})=>{const n=n=>{const r=n.origin!==window.location.origin,o=n.data&&"object"==typeof n.data&&"type"in n.data,s=t.some((({type:e})=>e===n.data.type||"*"===e));r&&o&&s&&e(n.data)};return window.addEventListener("message",n),()=>{window.removeEventListener("message",n)}},i_=async e=>{const t={};e.headers.forEach(((e,n)=>{t[n]=e}));return{body:["get","head"].includes(e.method.toLowerCase())?null:await(async()=>{try{return await e.text()}catch(e){return Tt.error("No body or error reading body:",e),null}})(),headers:t,url:e.url,method:e.method,mode:e.mode,credentials:e.credentials,cache:e.cache,redirect:e.redirect,referrer:e.referrer,integrity:e.integrity}},a_=e=>{const{url:t,status:n,statusText:r,headers:o,body:s}=e,i=new Response(JSON.stringify(s),{status:n,statusText:r,headers:o});return Object.defineProperty(i,"url",{value:t}),i},c_=async e=>{const t=crypto.randomUUID();return s_({action:Go({id:t,options:await i_(e)}),windowElement:window.parent,whitelist:[Go]}),new Promise((e=>{const n=o_({onMessage:({payload:{id:r,response:o}})=>{t===r&&(n(),e(a_(o)))},whitelist:[Ed]})}))},u_=()=>{var e;try{return(null==(e=window.wellesley)?void 0:e.v1)||window.wellesley}catch(e){Tt.error("Error getting window.wellesley:",e)}},l_=e=>new Response(JSON.stringify(e),{status:200,statusText:"OK",headers:{"Content-Type":"application/json"}}),d_=e=>{var t,n;if(e.url.includes("accounts/profile")){const e=null==(n=null==(t=u_())?void 0:t.initialState)?void 0:n.user;return!(null==e||!e.selectedUserId)&&l_(e)}},p_=Object.freeze(Object.defineProperty({__proto__:null,userHandler:d_},Symbol.toStringTag,{value:"Module"})),f_=e=>Object.values(p_).reduce(((t,n)=>t||n(e)),void 0),m_=async e=>f_(e)||await fetch(e),h_=()=>{try{return window.self!==window.top}catch{return!0}},y_=()=>e=>h_()?c_(e):m_(e),g_=n_.get().baseUrl,__=g_||"",v_=kl({fetchFn:y_(),baseUrl:__,responseHandler:e=>{const t=e.headers.get("content-type");return(null==t?void 0:t.startsWith("application/json"))?e.json():e.text()},prepareHeaders:e=>{const t=Ns.getToken();return t&&e.set("authorization",`Bearer ${t}`),e}}),S_=wd(Cd(v_)),E_=yd({tagTypes:["Secure","Post","Follow","Like","Settings","Rbac_Config","Admin_Apps","Admin_Users","Admin_Audit_Logs","Admin_Reports","Admin_Signup_Requests","Admin_Posts","Admin_Uploads","Admin_Roles","Admin_Jobs_Stats","Admin_Federation","Admin_Domain_Block","Group_Apps","User_Apps","Account","Profile","UserNoHtml","Relationship","Bookmarks",...Object.values(Ta)],reducerPath:"openapi",baseQuery:S_,endpoints:()=>({})}),Wc=E_.injectEndpoints({endpoints:e=>({postApiV1AccountsAddReason:e.mutation({query:e=>({url:"/api/v1/accounts/add-reason",method:"POST",body:e.signupReasonParams})}),postApiV1AccountsAuthenticateEmail:e.mutation({query:e=>({url:"/api/v1/accounts/authenticate/email",method:"POST",body:e.authRequest})}),postApiV1AccountsAuthenticatePhone:e.mutation({query:e=>({url:"/api/v1/accounts/authenticate/phone",method:"POST",body:e.authPhoneRequest})}),putApiV1AccountsChangeName:e.mutation({query:e=>({url:"/api/v1/accounts/change/name",method:"PUT",params:{id:e.id,name:e.name,username:e.username}})}),postApiV1AccountsCheckCaptcha:e.mutation({query:e=>({url:"/api/v1/accounts/check-captcha",method:"POST",body:e.captchaVerificationParams})}),postApiV1AccountsConfirmEmail:e.mutation({query:e=>({url:"/api/v1/accounts/confirm-email",method:"POST",body:e.codeVerificationParams})}),postApiV1AccountsConfirmPhone:e.mutation({query:e=>({url:"/api/v1/accounts/confirm-phone",method:"POST",body:e.codeVerificationParams})}),deleteApiV1AccountsDelete:e.mutation({query:()=>({url:"/api/v1/accounts/delete",method:"DELETE"})}),postApiV1AccountsEmailChangeConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/email/change/confirm",method:"POST",body:e.body})}),postApiV1AccountsEmailChangeRequest:e.mutation({query:e=>({url:"/api/v1/accounts/email/change/request",method:"POST",body:e.emailChangeRequest})}),putApiV1AccountsEmailChangeResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/email/change/resend-code",method:"PUT"})}),postApiV1AccountsFinishCreating:e.mutation({query:e=>({url:"/api/v1/accounts/finish-creating",method:"POST",body:e.finishCreatingAccountParams,params:{htmlContent:e.htmlContent}})}),putApiV1AccountsGetTokenByHash:e.mutation({query:e=>({url:`/api/v1/accounts/get-token/${e.hash}`,method:"PUT"})}),postApiV1AccountsLoginsAddEmailPassword:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-email-password",method:"POST",body:e.addEmailRequest})}),postApiV1AccountsLoginsAddEmailPasswordConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-email-password/confirm",method:"POST",body:e.body})}),putApiV1AccountsLoginsAddEmailPasswordResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/logins/add-email-password/resend-code",method:"PUT"})}),postApiV1AccountsLoginsAddPhone:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-phone",method:"POST",body:e.addPhoneRequest})}),deleteApiV1AccountsLoginsRemoveEmailPassword:e.mutation({query:()=>({url:"/api/v1/accounts/logins/remove-email-password",method:"DELETE"})}),deleteApiV1AccountsLoginsRemovePhone:e.mutation({query:()=>({url:"/api/v1/accounts/logins/remove-phone",method:"DELETE"})}),postApiV1AccountsPasswordChangeConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/password/change/confirm",method:"POST",body:e.body})}),postApiV1AccountsPasswordChangeRequest:e.mutation({query:e=>({url:"/api/v1/accounts/password/change/request",method:"POST",body:e.passwordChangeRequest})}),putApiV1AccountsPasswordChangeResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/password/change/resend-code",method:"PUT"})}),postApiV1AccountsPasswordRecover:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover",method:"POST",body:e.passwordRecoveryRequest})}),postApiV1AccountsPasswordRecoverChange:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover/change",method:"POST",body:e.passwordRecoveryChange})}),postApiV1AccountsPasswordRecoverCheckCode:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover/check-code",method:"POST",body:e.passwordRecoveryCode})}),postApiV1AccountsPhoneChangeConfirmAuth:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/confirm/auth",method:"POST",body:e.body})}),postApiV1AccountsPhoneChangeConfirmNewPhone:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/confirm/new-phone",method:"POST",body:e.body})}),postApiV1AccountsPhoneChangeNewPhone:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/new-phone",method:"POST",body:e.addPhoneRequest})}),putApiV1AccountsPhoneChangeRequest:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/request",method:"PUT"})}),putApiV1AccountsPhoneChangeResendCodeAuth:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/resend-code/auth",method:"PUT"})}),putApiV1AccountsPhoneChangeResendCodeNewPhone:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/resend-code/new-phone",method:"PUT"})}),getApiV1AccountsProfile:e.query({query:e=>({url:"/api/v1/accounts/profile",params:{htmlContent:e.htmlContent}})}),postApiV1AccountsReselectUser:e.mutation({query:e=>({url:"/api/v1/accounts/reselect-user",method:"POST",params:{userId:e.userId,userName:e.userName,htmlContent:e.htmlContent}})}),putApiV1AccountsResendCodeByHash:e.mutation({query:e=>({url:`/api/v1/accounts/resend-code/${e.hash}`,method:"PUT"})}),putApiV1AccountsResendEmailByHash:e.mutation({query:e=>({url:`/api/v1/accounts/resend-email/${e.hash}`,method:"PUT"})}),postApiV1AccountsSignup:e.mutation({query:e=>({url:"/api/v1/accounts/signup",method:"POST",body:e.accountCreate})}),postApiV1AccountsSignupPhone:e.mutation({query:e=>({url:"/api/v1/accounts/signup-phone",method:"POST",body:e.phoneSignup})}),postApiV1AccountsUserReselectUser:e.mutation({query:e=>({url:"/api/v1/accounts/user/reselect-user",method:"POST",params:{userId:e.userId,userName:e.userName}})}),getApiV1AccountsById:e.query({query:e=>({url:`/api/v1/accounts/${e.id}`,params:{htmlContent:e.htmlContent}})}),getApiV1AddressesSuggest:e.query({query:e=>({url:"/api/v1/addresses/suggest",params:{text:e.text}})}),getApiV1AdminAccountByAccountId:e.query({query:e=>({url:`/api/v1/admin/account/${e.accountId}`,params:{htmlContent:e.htmlContent}})}),getApiV1AdminAuditLog:e.query({query:e=>({url:"/api/v1/admin/audit_log",params:{accountId:e.accountId,action:e.action,appId:e.appId,domainSearch:e.domainSearch,email:e.email,group:e.group,lastId:e.lastId,limit:e.limit,offset:e.offset,ruleId:e.ruleId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId,username:e.username}})}),putApiV1AdminChangeEmail:e.mutation({query:e=>({url:"/api/v1/admin/change/email",method:"PUT",params:{email:e.email,id:e.id,username:e.username}})}),putApiV1AdminChangePassword:e.mutation({query:e=>({url:"/api/v1/admin/change/password",method:"PUT",params:{id:e.id,password:e.password,username:e.username}})}),putApiV1AdminChangeRoleAssign:e.mutation({query:e=>({url:"/api/v1/admin/change/role/assign",method:"PUT",params:{id:e.id,role:e.role,username:e.username,htmlContent:e.htmlContent}})}),putApiV1AdminChangeRoleRevoke:e.mutation({query:e=>({url:"/api/v1/admin/change/role/revoke",method:"PUT",params:{id:e.id,role:e.role,username:e.username,htmlContent:e.htmlContent}})}),postApiV1AdminClearApErrors:e.mutation({query:e=>({url:"/api/v1/admin/clear-ap-errors",method:"POST",params:{domain:e.domain}})}),postApiV1AdminCreateAccount:e.mutation({query:e=>({url:"/api/v1/admin/create-account",method:"POST",body:e.accountCreate,params:{htmlContent:e.htmlContent}})}),deleteApiV1AdminDelete:e.mutation({query:e=>({url:"/api/v1/admin/delete",method:"DELETE",params:{email:e.email,id:e.id,username:e.username}})}),getApiV1AdminDomainAllow:e.query({query:e=>({url:"/api/v1/admin/domain-allow",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1AdminDomainAllow:e.mutation({query:e=>({url:"/api/v1/admin/domain-allow",method:"POST",body:e.allowedDomainReq})}),deleteApiV1AdminDomainAllowByDomain:e.mutation({query:e=>({url:`/api/v1/admin/domain-allow/${e.domain}`,method:"DELETE"})}),putApiV1AdminDomainBlock:e.mutation({query:e=>({url:"/api/v1/admin/domain-block",method:"PUT",body:e.blockDomainReq})}),getApiV1AdminDomainBlock:e.query({query:e=>({url:"/api/v1/admin/domain-block",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1AdminDomainBlock:e.mutation({query:e=>({url:"/api/v1/admin/domain-block",method:"POST",body:e.blockDomainReq})}),getApiV1AdminDomainBlockList:e.query({query:e=>({url:"/api/v1/admin/domain-block/list",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1AdminDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/admin/domain-block/${e.domain}`,method:"DELETE"})}),getApiV1AdminFederation:e.query({query:e=>({url:"/api/v1/admin/federation",params:{blockState:e.blockState,lastId:e.lastId,limit:e.limit,offset:e.offset,search:e.search,sortBy:e.sortBy,sortOrder:e.sortOrder,unavailable:e.unavailable,untilId:e.untilId,warning:e.warning}})}),getApiV1AdminFederationMetricsOperations:e.query({query:e=>({url:"/api/v1/admin/federation/metrics/operations",params:{window:e.window}})}),getApiV1AdminFederationMetricsRunningAverageSingle:e.query({query:e=>({url:"/api/v1/admin/federation/metrics/running-average-single",params:{operation:e.operation,window:e.window}})}),getApiV1AdminFederationMetricsRunningAveragesAll:e.query({query:e=>({url:"/api/v1/admin/federation/metrics/running-averages-all",params:{operations:e.operations,window:e.window}})}),getApiV1AdminFederationByDomain:e.query({query:e=>({url:`/api/v1/admin/federation/${e.domain}`})}),postApiV1AdminFeedClearUserFeed:e.mutation({query:e=>({url:"/api/v1/admin/feed/clear-user-feed",method:"POST",params:{ownerType:e.ownerType,userId:e.userId,username:e.username}})}),getApiV1AdminFeedMetricsGlobalAllOperation:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/global-all-operation",params:{ownerType:e.ownerType,window:e.window}})}),getApiV1AdminFeedMetricsGlobalAllOwners:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/global-all-owners",params:{operation:e.operation,window:e.window}})}),getApiV1AdminFeedMetricsGlobalSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/global-single",params:{operation:e.operation,ownerType:e.ownerType,window:e.window}})}),getApiV1AdminFeedMetricsHistory:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history",params:{limit:e.limit,operation:e.operation,ownerType:e.ownerType,userId:e.userId}})}),getApiV1AdminFeedMetricsHistoryAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history/all",params:{limit:e.limit,userId:e.userId}})}),getApiV1AdminFeedMetricsHistoryAllSingleOwner:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history/all-single-owner",params:{limit:e.limit,ownerType:e.ownerType,userId:e.userId}})}),getApiV1AdminFeedMetricsHistoryByOwnerType:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history/by-owner-type",params:{limit:e.limit,operation:e.operation,userId:e.userId}})}),getApiV1AdminFeedMetricsRunningAverageSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/running-average-single",params:{operation:e.operation,ownerType:e.ownerType,userId:e.userId,window:e.window}})}),getApiV1AdminFeedMetricsRunningAveragesAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/running-averages-all",params:{ownerType:e.ownerType,userId:e.userId,window:e.window}})}),getApiV1AdminFeedMetricsSlowestOperations:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-operations",params:{limit:e.limit,ownerType:e.ownerType,window:e.window}})}),getApiV1AdminFeedMetricsSlowestUsers:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-users",params:{limit:e.limit,operation:e.operation,ownerType:e.ownerType,window:e.window}})}),getApiV1AdminFeedMetricsSlowestUsersAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-users-all",params:{limit:e.limit,ownerType:e.ownerType,sortDesc:e.sortDesc,window:e.window}})}),getApiV1AdminFeedMetricsSlowestUsersSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-users-single",params:{limit:e.limit,operation:e.operation,ownerType:e.ownerType,sortDesc:e.sortDesc,window:e.window}})}),getApiV1AdminFeedMetricsSummary:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/summary",params:{includeUserCounts:e.includeUserCounts,window:e.window}})}),getApiV1AdminFeedMetricsUserCountAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/user-count-all",params:{ownerType:e.ownerType,window:e.window}})}),getApiV1AdminFeedMetricsUserCountSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/user-count-single",params:{operation:e.operation,ownerType:e.ownerType,window:e.window}})}),postApiV1AdminFeedRegenerateUserFeed:e.mutation({query:e=>({url:"/api/v1/admin/feed/regenerate-user-feed",method:"POST",params:{ownerType:e.ownerType,userId:e.userId,username:e.username}})}),postApiV1AdminPostsDelete:e.mutation({query:e=>({url:"/api/v1/admin/posts/delete",method:"POST",body:e.postDelete})}),deleteApiV1AdminPurge:e.mutation({query:e=>({url:"/api/v1/admin/purge",method:"DELETE",params:{id:e.id}})}),postApiV1AdminRegenerateKeys:e.mutation({query:e=>({url:"/api/v1/admin/regenerate-keys",method:"POST",params:{userId:e.userId,username:e.username}})}),postApiV1AdminRegenerateKeysAll:e.mutation({query:e=>({url:"/api/v1/admin/regenerate-keys-all",method:"POST",params:{batch:e.batch}})}),postApiV1AdminReportsDeletePosts:e.mutation({query:e=>({url:"/api/v1/admin/reports/delete-posts",method:"POST",body:e.body})}),getApiV1AdminReportsList:e.query({query:e=>({url:"/api/v1/admin/reports/list",params:{groupId:e.groupId,lastId:e.lastId,limit:e.limit,offset:e.offset,open:e.open,postId:e.postId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId}})}),getApiV1AdminReportsByReportId:e.query({query:e=>({url:`/api/v1/admin/reports/${e.reportId}`})}),postApiV1AdminReportsByReportIdAddNote:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/add-note`,method:"POST",body:e.body})}),postApiV1AdminReportsByReportIdAssignToSelf:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/assign-to-self`,method:"POST"})}),deleteApiV1AdminReportsByReportIdDelete:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/delete`,method:"DELETE"})}),postApiV1AdminReportsByReportIdRemoveNote:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/remove-note`,method:"POST",params:{index:e.index}})}),postApiV1AdminReportsByReportIdReopen:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/reopen`,method:"POST"})}),postApiV1AdminReportsByReportIdResolve:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/resolve`,method:"POST"})}),postApiV1AdminReportsByReportIdUnassign:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/unassign`,method:"POST"})}),postApiV1AdminRestartApDelivery:e.mutation({query:e=>({url:"/api/v1/admin/restart-ap-delivery",method:"POST",params:{domain:e.domain}})}),getApiV1AdminSearch:e.query({query:e=>({url:"/api/v1/admin/search",params:{accountId:e.accountId,country:e.country,displayName:e.displayName,domain:e.domain,email:e.email,ip:e.ip,lastId:e.lastId,limit:e.limit,offset:e.offset,role:e.role,sortBy:e.sortBy,sortOrder:e.sortOrder,state:e.state,untilId:e.untilId,userId:e.userId,username:e.username}})}),putApiV1AdminSignupRequestsApproveByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/approve/${e.hash}`,method:"PUT"})}),deleteApiV1AdminSignupRequestsDeleteByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/delete/${e.hash}`,method:"DELETE"})}),getApiV1AdminSignupRequestsList:e.query({query:e=>({url:"/api/v1/admin/signup_requests/list",params:{email:e.email,hash:e.hash,ip:e.ip,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),putApiV1AdminSignupRequestsRejectByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/reject/${e.hash}`,method:"PUT",params:{reason:e.reason}})}),getApiV1AdminUploadsJobsQueueByQueueName:e.query({query:e=>({url:`/api/v1/admin/uploads/jobs/queue/${e.queueName}`,params:{limit:e.limit,page:e.page,sortBy:e.sortBy,sortOrder:e.sortOrder,uploadType:e.uploadType}})}),getApiV1AdminUploadsJobsSummary:e.query({query:()=>({url:"/api/v1/admin/uploads/jobs/summary"})}),getApiV1AdminUploadsSearch:e.query({query:e=>({url:"/api/v1/admin/uploads/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,uploadType:e.uploadType,userId:e.userId}})}),getApiV1AdminUploadsStorageByUserId:e.query({query:e=>({url:`/api/v1/admin/uploads/storage/${e.userId}`})}),postApiV1AdminUserChangeState:e.mutation({query:e=>({url:"/api/v1/admin/user/change-state",method:"POST",body:e.changeUserState})}),getApiV1AdminUserByUserId:e.query({query:e=>({url:`/api/v1/admin/user/${e.userId}`})}),postApiV1Apps:e.mutation({query:e=>({url:"/api/v1/apps",method:"POST",body:e.body,params:{enable:e.enable}})}),getApiV1Apps:e.query({query:()=>({url:"/api/v1/apps"})}),getApiV1AppsEnabled:e.query({query:()=>({url:"/api/v1/apps/enabled"})}),getApiV1AppsGroupByGroupId:e.query({query:e=>({url:`/api/v1/apps/group/${e.groupId}`})}),deleteApiV1AppsGroupByGroupIdAndAppId:e.mutation({query:e=>({url:`/api/v1/apps/group/${e.groupId}/${e.appId}`,method:"DELETE"})}),putApiV1AppsGroupByGroupIdAndAppId:e.mutation({query:e=>({url:`/api/v1/apps/group/${e.groupId}/${e.appId}`,method:"PUT"})}),getApiV1AppsInstalled:e.query({query:()=>({url:"/api/v1/apps/installed"})}),getApiV1AppsUser:e.query({query:()=>({url:"/api/v1/apps/user"})}),deleteApiV1AppsUserByAppId:e.mutation({query:e=>({url:`/api/v1/apps/user/${e.appId}`,method:"DELETE"})}),putApiV1AppsUserByAppId:e.mutation({query:e=>({url:`/api/v1/apps/user/${e.appId}`,method:"PUT"})}),putApiV1AppsByAppId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}`,method:"PUT",body:e.body,params:{enable:e.enable}})}),getApiV1AppsByAppId:e.query({query:e=>({url:`/api/v1/apps/${e.appId}`})}),deleteApiV1AppsByAppId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}`,method:"DELETE"})}),getApiV1AppsByAppIdData:e.query({query:e=>({url:`/api/v1/apps/${e.appId}/data`,params:{owner:e.owner,tags:e.tags,type:e.type}})}),postApiV1AppsByAppIdData:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data`,method:"POST",body:e.dataCreate})}),putApiV1AppsByAppIdDataAndId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data/${e.id}`,method:"PUT",body:e.dataCreate})}),deleteApiV1AppsByAppIdDataAndId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data/${e.id}`,method:"DELETE"})}),putApiV1AppsByAppIdDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/default`,method:"PUT"})}),putApiV1AppsByAppIdDisable:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/disable`,method:"PUT"})}),putApiV1AppsByAppIdEnable:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/enable`,method:"PUT"})}),getApiV1AppsByAppIdStats:e.query({query:e=>({url:`/api/v1/apps/${e.appId}/stats`})}),putApiV1AppsByAppIdUserDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/user-default`,method:"PUT"})}),deleteApiV1AppsByAppIdUserDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/user-default`,method:"DELETE"})}),getApiV1Block:e.query({query:e=>({url:"/api/v1/block",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1BlockBy:e.query({query:e=>({url:"/api/v1/block/by",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1BlockByUserId:e.mutation({query:e=>({url:`/api/v1/block/${e.userId}`,method:"DELETE"})}),postApiV1BlockByUserId:e.mutation({query:e=>({url:`/api/v1/block/${e.userId}`,method:"POST"})}),postApiV1Categories:e.mutation({query:e=>({url:"/api/v1/categories",method:"POST",body:e.categoryCreate})}),getApiV1CategoriesNameByCategoryName:e.query({query:e=>({url:`/api/v1/categories/name/${e.categoryName}`})}),putApiV1CategoriesByCategoryId:e.mutation({query:e=>({url:`/api/v1/categories/${e.categoryId}`,method:"PUT",body:e.categoryUpdate})}),getApiV1CategoriesByCategoryId:e.query({query:e=>({url:`/api/v1/categories/${e.categoryId}`})}),deleteApiV1CategoriesByCategoryId:e.mutation({query:e=>({url:`/api/v1/categories/${e.categoryId}`,method:"DELETE"})}),getApiV1CustomEmojis:e.query({query:e=>({url:"/api/v1/custom_emojis",params:{shortcode:e.shortcode}})}),deleteApiV1CustomEmojis:e.mutation({query:e=>({url:"/api/v1/custom_emojis",method:"DELETE",params:{shortcode:e.shortcode,category:e.category}})}),postApiV1CustomEmojis:e.mutation({query:e=>({url:"/api/v1/custom_emojis",method:"POST",body:e.emoji,params:{overwrite:e.overwrite}})}),getApiV1CustomEmojisExport:e.query({query:e=>({url:"/api/v1/custom_emojis/export",params:{category:e.category}})}),postApiV1CustomEmojisImport:e.mutation({query:e=>({url:"/api/v1/custom_emojis/import",method:"POST",body:e.body,params:{visible:e.visible,category:e.category,overwrite:e.overwrite,domain:e.domain}})}),getApiV1CustomEmojisSearch:e.query({query:e=>({url:"/api/v1/custom_emojis/search",params:{shortcode:e.shortcode}})}),postApiV1CustomEmojisUpload:e.mutation({query:e=>({url:"/api/v1/custom_emojis/upload",method:"POST",body:e.body,params:{shortcode:e.shortcode,visible:e.visible,category:e.category,overwrite:e.overwrite,domain:e.domain}})}),getApiV1Data:e.query({query:e=>({url:"/api/v1/data",params:{owner:e.owner,tags:e.tags,type:e.type}})}),postApiV1Data:e.mutation({query:e=>({url:"/api/v1/data",method:"POST",body:e.dataCreate})}),putApiV1DataById:e.mutation({query:e=>({url:`/api/v1/data/${e.id}`,method:"PUT",body:e.dataCreate})}),deleteApiV1DataById:e.mutation({query:e=>({url:`/api/v1/data/${e.id}`,method:"DELETE"})}),getApiV1Drafts:e.query({query:()=>({url:"/api/v1/drafts"})}),postApiV1Drafts:e.mutation({query:e=>({url:"/api/v1/drafts",method:"POST",body:e.createDraftRequest})}),getApiV1DraftsPostByPostId:e.query({query:e=>({url:`/api/v1/drafts/post/${e.postId}`})}),putApiV1DraftsByDraftId:e.mutation({query:e=>({url:`/api/v1/drafts/${e.draftId}`,method:"PUT",body:e.updateDraftRequest})}),getApiV1DraftsByDraftId:e.query({query:e=>({url:`/api/v1/drafts/${e.draftId}`})}),deleteApiV1DraftsByDraftId:e.mutation({query:e=>({url:`/api/v1/drafts/${e.draftId}`,method:"DELETE"})}),postApiV1DraftsByDraftIdPublish:e.mutation({query:e=>({url:`/api/v1/drafts/${e.draftId}/publish`,method:"POST",params:{htmlContent:e.htmlContent}})}),getApiV1Events:e.query({query:e=>({url:"/api/v1/events",params:{limit:e.limit,offset:e.offset,organizerId:e.organizerId,ownerId:e.ownerId,username:e.username}})}),postApiV1Events:e.mutation({query:e=>({url:"/api/v1/events",method:"POST",body:e.createEvent})}),getApiV1EventsCalendarGByGroupnameIcs:e.query({query:e=>({url:`/api/v1/events/calendar/g/${e.groupname}.ics`})}),getApiV1EventsCalendarPByIdIcs:e.query({query:e=>({url:`/api/v1/events/calendar/p/${e.id}.ics`})}),getApiV1EventsCalendarUByUsernameIcs:e.query({query:e=>({url:`/api/v1/events/calendar/u/${e.username}.ics`})}),getApiV1EventsFollowing:e.query({query:e=>({url:"/api/v1/events/following",params:{limit:e.limit,offset:e.offset}})}),getApiV1EventsMy:e.query({query:e=>({url:"/api/v1/events/my",params:{limit:e.limit,notRespondedOnly:e.notRespondedOnly,offset:e.offset,organizedOnly:e.organizedOnly,past:e.past}})}),getApiV1EventsSettings:e.query({query:e=>({url:"/api/v1/events/settings",params:{ownerId:e.ownerId}})}),postApiV1EventsSettingsRegeneratePrivateId:e.mutation({query:e=>({url:"/api/v1/events/settings/regeneratePrivateId",method:"POST",params:{ownerId:e.ownerId}})}),postApiV1EventsSettingsUpdate:e.mutation({query:e=>({url:"/api/v1/events/settings/update",method:"POST",body:e.updateEventsSettings,params:{ownerId:e.ownerId}})}),putApiV1EventsByEventId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}`,method:"PUT",body:e.updateEvent})}),getApiV1EventsByEventId:e.query({query:e=>({url:`/api/v1/events/${e.eventId}`})}),deleteApiV1EventsByEventId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}`,method:"DELETE"})}),getApiV1EventsByEventIdIcs:e.query({query:e=>({url:`/api/v1/events/${e.eventId}.ics`})}),postApiV1EventsByEventIdAccept:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/accept`,method:"POST"})}),getApiV1EventsByEventIdAttendees:e.query({query:e=>({url:`/api/v1/events/${e.eventId}/attendees`,params:{limit:e.limit,offset:e.offset}})}),deleteApiV1EventsByEventIdAttendeesAndUserId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/attendees/${e.userId}`,method:"DELETE"})}),postApiV1EventsByEventIdAttendeesAndUserId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/attendees/${e.userId}`,method:"POST"})}),postApiV1EventsByEventIdCancel:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/cancel`,method:"POST"})}),postApiV1EventsByEventIdInterested:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/interested`,method:"POST"})}),postApiV1EventsByEventIdJoin:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/join`,method:"POST"})}),deleteApiV1EventsByEventIdLeave:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/leave`,method:"DELETE"})}),postApiV1EventsByEventIdMaybe:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/maybe`,method:"POST"})}),getApiV1EventsByEventIdMutual:e.query({query:e=>({url:`/api/v1/events/${e.eventId}/mutual`,params:{limit:e.limit,offset:e.offset}})}),postApiV1EventsByEventIdReject:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/reject`,method:"POST"})}),postApiV1FaspClear:e.mutation({query:()=>({url:"/api/v1/fasp/clear",method:"POST"})}),getApiV1FaspDebugV0CallbackCallbacks:e.query({query:()=>({url:"/api/v1/fasp/debug/v0/callback/callbacks"})}),deleteApiV1FaspDebugV0CallbackCallbacksById:e.mutation({query:e=>({url:`/api/v1/fasp/debug/v0/callback/callbacks/${e.id}`,method:"DELETE"})}),postApiV1FaspRegistration:e.mutation({query:e=>({url:"/api/v1/fasp/registration",method:"POST",body:e.registrationRequest})}),postApiV1FaspByProviderIdCapabilities:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/capabilities`,method:"POST",body:e.body})}),postApiV1FaspByProviderIdDebugCall:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/debug-call`,method:"POST",body:e.body})}),getApiV1FaspByProviderIdRegistrationFinish:e.query({query:e=>({url:`/api/v1/fasp/${e.providerId}/registration-finish`})}),postApiV1FaspByProviderIdRegistrationFinish:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/registration-finish`,method:"POST"})}),postApiV1FaspByProviderIdRequestBackfill:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/request_backfill`,method:"POST",params:{category:e.category}})}),putApiV1ForumsByForumId:e.mutation({query:e=>({url:`/api/v1/forums/${e.forumId}`,method:"PUT",body:e.createForum})}),getApiV1ForumsByForumId:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}`})}),deleteApiV1ForumsByForumId:e.mutation({query:e=>({url:`/api/v1/forums/${e.forumId}`,method:"DELETE"})}),getApiV1ForumsByForumIdCategories:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/categories`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1ForumsByForumIdPosts:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/posts`,params:{forumTag:e.forumTag,includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withTranslation:e.withTranslation,htmlContent:e.htmlContent}})}),getApiV1ForumsByForumIdTags:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/tags`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1ForumsByForumIdTagsSearch:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/tags/search`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,q:e.q,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1Geo:e.query({query:e=>({url:"/api/v1/geo",params:{latitude:e.latitude,longitude:e.longitude}})}),getApiV1Groups:e.query({query:e=>({url:"/api/v1/groups",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1Groups:e.mutation({query:e=>({url:"/api/v1/groups",method:"POST",body:e.groupCreate})}),getApiV1GroupsAccount:e.query({query:e=>({url:"/api/v1/groups/account",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsMemberByUserId:e.query({query:e=>({url:`/api/v1/groups/member/${e.userId}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsMemberByUserIdGroups:e.query({query:e=>({url:`/api/v1/groups/member/${e.userId}/groups`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsNameByGroupname:e.query({query:e=>({url:`/api/v1/groups/name/${e.groupname}`})}),getApiV1GroupsSearch:e.query({query:e=>({url:"/api/v1/groups/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,substring:e.substring,untilId:e.untilId}})}),putApiV1GroupsByGroupId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}`,method:"PUT",body:e.groupUpdate})}),getApiV1GroupsByGroupId:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}`})}),deleteApiV1GroupsByGroupId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}`,method:"DELETE"})}),getApiV1GroupsByGroupIdForum:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/forum`})}),postApiV1GroupsByGroupIdForum:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/forum`,method:"POST"})}),postApiV1GroupsByGroupIdJoin:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/join`,method:"POST"})}),putApiV1GroupsByGroupIdMedia:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/media`,method:"PUT",body:e.groupMediaUpdate})}),putApiV1GroupsByGroupIdMembers:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,method:"PUT",body:e.groupMemberUpdate})}),getApiV1GroupsByGroupIdMembers:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1GroupsByGroupIdMembers:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,method:"POST",body:e.groupMemberCreate})}),deleteApiV1GroupsByGroupIdMembersAndMemberId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members/${e.memberId}`,method:"DELETE"})}),putApiV1GroupsByGroupIdRules:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/rules`,method:"PUT",body:e.rule})}),getApiV1GroupsByGroupIdRules:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/rules`})}),postApiV1GroupsByGroupIdRules:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/rules`,method:"POST",params:{hint:e.hint,ordering:e.ordering,text:e.text}})}),postApiV1GroupsByGroupIdRulesReorder:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/rules/reorder`,method:"POST",body:e.body})}),deleteApiV1GroupsByGroupIdRulesAndId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/rules/${e.id}`,method:"DELETE"})}),getApiV1GroupsByGroupIdUsers:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/users`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1Import:e.query({query:()=>({url:"/api/v1/import"})}),postApiV1Import:e.mutation({query:e=>({url:"/api/v1/import",method:"POST",body:e.body,params:{overwrite:e.overwrite,type:e.type}})}),postApiV1ImportStartById:e.mutation({query:e=>({url:`/api/v1/import/start/${e.id}`,method:"POST"})}),getApiV1ImportById:e.query({query:e=>({url:`/api/v1/import/${e.id}`})}),getApiV1Instance:e.query({query:()=>({url:"/api/v1/instance"})}),getApiV1InstanceCountries:e.query({query:()=>({url:"/api/v1/instance/countries"})}),getApiV1InstanceDomains:e.query({query:e=>({url:"/api/v1/instance/domains",params:{domain:e.domain,limit:e.limit,software:e.software}})}),getApiV1InstanceExtendedDescription:e.query({query:()=>({url:"/api/v1/instance/extended_description"})}),getApiV1InstanceSupportedLanguages:e.query({query:()=>({url:"/api/v1/instance/supported_languages"})}),getApiV1InstanceTimezones:e.query({query:()=>({url:"/api/v1/instance/timezones"})}),getApiV1JobsListJobs:e.query({query:e=>({url:"/api/v1/jobs/list-jobs",params:{limit:e.limit,offset:e.offset}})}),getApiV1JobsListStats:e.query({query:e=>({url:"/api/v1/jobs/list-stats",params:{queue:e.queue}})}),getApiV1JobsListStatsAll:e.query({query:()=>({url:"/api/v1/jobs/list-stats-all"})}),getApiV1JobsLists:e.query({query:e=>({url:"/api/v1/jobs/lists",params:{limit:e.limit,listKind:e.listKind,offset:e.offset,queue:e.queue}})}),getApiV1JobsStats:e.query({query:()=>({url:"/api/v1/jobs/stats"})}),getApiV1JobsStatsPerDay:e.query({query:e=>({url:"/api/v1/jobs/stats-per-day",params:{lastDays:e.lastDays,queue:e.queue}})}),getApiV1Links:e.query({query:e=>({url:"/api/v1/links",params:{url:e.url}})}),getApiV1Lists:e.query({query:()=>({url:"/api/v1/lists"})}),postApiV1Lists:e.mutation({query:e=>({url:"/api/v1/lists",method:"POST",body:e.userListCreate})}),putApiV1ListsByListId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}`,method:"PUT",body:e.userListCreate})}),getApiV1ListsByListId:e.query({query:e=>({url:`/api/v1/lists/${e.listId}`})}),deleteApiV1ListsByListId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}`,method:"DELETE"})}),getApiV1ListsByListIdUsers:e.query({query:e=>({url:`/api/v1/lists/${e.listId}/users`})}),deleteApiV1ListsByListIdUsersAndUserId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}/users/${e.userId}`,method:"DELETE"})}),postApiV1ListsByListIdUsersAndUserId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}/users/${e.userId}`,method:"POST"})}),getApiV1Metrics:e.query({query:e=>({url:"/api/v1/metrics",params:{from:e.from,period:e.period,to:e.to}})}),getApiV1MetricsTotals:e.query({query:()=>({url:"/api/v1/metrics/totals"})}),getApiV1Mute:e.query({query:e=>({url:"/api/v1/mute",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1MuteByUserId:e.mutation({query:e=>({url:`/api/v1/mute/${e.userId}`,method:"DELETE"})}),postApiV1MuteByUserId:e.mutation({query:e=>({url:`/api/v1/mute/${e.userId}`,method:"POST",params:{duration:e.duration}})}),putApiV1Notes:e.mutation({query:e=>({url:"/api/v1/notes",method:"PUT",body:e.noteUpdate})}),getApiV1Notes:e.query({query:e=>({url:"/api/v1/notes",params:{userIds:e.userIds}})}),deleteApiV1NotesByUserId:e.mutation({query:e=>({url:`/api/v1/notes/${e.userId}`,method:"DELETE"})}),getApiV1Notifications:e.query({query:e=>({url:"/api/v1/notifications",params:{excludeTypes:e.excludeTypes,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,types:e.types,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1NotificationsCount:e.query({query:e=>({url:"/api/v1/notifications/count",params:{excludeTypes:e.excludeTypes,status:e.status,types:e.types}})}),postApiV1NotificationsMarkAll:e.mutation({query:e=>({url:"/api/v1/notifications/mark-all",method:"POST",params:{status:e.status}})}),getApiV1NotificationsById:e.query({query:e=>({url:`/api/v1/notifications/${e.id}`,params:{htmlContent:e.htmlContent}})}),postApiV1NotificationsByIdMark:e.mutation({query:e=>({url:`/api/v1/notifications/${e.id}/mark`,method:"POST",params:{status:e.status,htmlContent:e.htmlContent}})}),postApiV1PollsByPollIdRefresh:e.mutation({query:e=>({url:`/api/v1/polls/${e.pollId}/refresh`,method:"POST"})}),postApiV1PollsByPollIdVote:e.mutation({query:e=>({url:`/api/v1/polls/${e.pollId}/vote`,method:"POST",body:e.body})}),getApiV1Posts:e.query({query:e=>({url:"/api/v1/posts",params:{bookmarkedOnly:e.bookmarkedOnly,forumTag:e.forumTag,includeBookmarkStatus:e.includeBookmarkStatus,includeComments:e.includeComments,includeFollowStatus:e.includeFollowStatus,includeReply:e.includeReply,lastId:e.lastId,limit:e.limit,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,listId:e.listId,maxLevel:e.maxLevel,minLevel:e.minLevel,offset:e.offset,ownerId:e.ownerId,ownerType:e.ownerType,pinned:e.pinned,repostKind:e.repostKind,repostOf:e.repostOf,repostsOnly:e.repostsOnly,search:e.search,skipReposts:e.skipReposts,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,userId:e.userId,username:e.username,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),postApiV1Posts:e.mutation({query:e=>({url:"/api/v1/posts",method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsBookmarks:e.query({query:()=>({url:"/api/v1/posts/bookmarks"})}),getApiV1PostsFollowing:e.query({query:e=>({url:"/api/v1/posts/following",params:{ignoreCache:e.ignoreCache,includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,htmlContent:e.htmlContent}})}),getApiV1PostsLiked:e.query({query:e=>({url:"/api/v1/posts/liked",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsMentioned:e.query({query:e=>({url:"/api/v1/posts/mentioned",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,private:e.private,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsMy:e.query({query:e=>({url:"/api/v1/posts/my",params:{bookmarkedOnly:e.bookmarkedOnly,includeBookmarkStatus:e.includeBookmarkStatus,includeComments:e.includeComments,lastId:e.lastId,limit:e.limit,offset:e.offset,repostsOnly:e.repostsOnly,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsPins:e.query({query:e=>({url:"/api/v1/posts/pins",params:{postOnly:e.postOnly}})}),deleteApiV1PostsPinsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/pins/${e.postId}`,method:"DELETE"})}),postApiV1PostsPinsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/pins/${e.postId}`,method:"POST"})}),getApiV1PostsPublic:e.query({query:e=>({url:"/api/v1/posts/public",params:{includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,local:e.local,offset:e.offset,ownerType:e.ownerType,skipReposts:e.skipReposts,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),getApiV1PostsReplies:e.query({query:e=>({url:"/api/v1/posts/replies",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId,username:e.username,htmlContent:e.htmlContent}})}),getApiV1PostsSubscribe:e.query({query:e=>({url:"/api/v1/posts/subscribe",params:{htmlContent:e.htmlContent}})}),putApiV1PostsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}`,method:"PUT",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostId:e.query({query:e=>({url:`/api/v1/posts/${e.postId}`,params:{includeBookmarkStatus:e.includeBookmarkStatus,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,maxLevel:e.maxLevel,minLevel:e.minLevel,withComments:e.withComments,withParents:e.withParents,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}`,method:"DELETE"})}),deleteApiV1PostsByPostIdBookmark:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/bookmark`,method:"DELETE"})}),postApiV1PostsByPostIdBookmark:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/bookmark`,method:"POST"})}),getApiV1PostsByPostIdComments:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/comments`,params:{lastId:e.lastId,limit:e.limit,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,maxLevel:e.maxLevel,minLevel:e.minLevel,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),postApiV1PostsByPostIdComments:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments`,method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),putApiV1PostsByPostIdCommentsAndCommentId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments/${e.commentId}`,method:"PUT",body:e.createPost,params:{htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostIdCommentsAndCommentId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments/${e.commentId}`,method:"DELETE"})}),postApiV1PostsByPostIdDetach:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/detach`,method:"POST"})}),getApiV1PostsByPostIdEdits:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/edits`,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdLikes:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,params:{includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostIdLikes:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,method:"DELETE"})}),postApiV1PostsByPostIdLikes:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,method:"POST"})}),postApiV1PostsByPostIdRefreshCard:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/refresh-card`,method:"POST"})}),deleteApiV1PostsByPostIdRepost:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/repost`,method:"DELETE"})}),postApiV1PostsByPostIdRepost:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/repost`,method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdReposts:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/reposts`,params:{includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,kind:e.kind,lastId:e.lastId,limit:e.limit,offset:e.offset,skipDuplicates:e.skipDuplicates,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),postApiV1PostsByPostIdSubscribe:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/subscribe`,method:"POST"})}),deleteApiV1PostsByPostIdSubscribe:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/subscribe`,method:"DELETE"})}),postApiV1PostsByPostIdTranslate:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/translate`,method:"POST",params:{htmlContent:e.htmlContent,lang:e.lang}})}),getApiV1Rbac:e.query({query:()=>({url:"/api/v1/rbac"})}),getApiV1RbacActorsByActorIdPermissions:e.query({query:e=>({url:`/api/v1/rbac/actors/${e.actorId}/permissions`,params:{scope:e.scope}})}),getApiV1RbacActorsByActorIdRoles:e.query({query:e=>({url:`/api/v1/rbac/actors/${e.actorId}/roles`,params:{scope:e.scope}})}),putApiV1RbacRolesByRoleId:e.mutation({query:e=>({url:`/api/v1/rbac/roles/${e.roleId}`,method:"PUT",body:e.rbacRoleTemplate})}),getApiV1RbacScopesByScopeRoles:e.query({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles`})}),postApiV1RbacScopesByScopeRoles:e.mutation({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles`,method:"POST",body:e.rbacRoleTemplate})}),deleteApiV1RbacScopesByScopeRolesAndRoleName:e.mutation({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles/${e.roleName}`,method:"DELETE"})}),getApiV1RbacByResource:e.query({query:e=>({url:`/api/v1/rbac/${e.resource}`})}),postApiV1Reports:e.mutation({query:e=>({url:"/api/v1/reports",method:"POST",body:e.createReport})}),putApiV1Rules:e.mutation({query:e=>({url:"/api/v1/rules",method:"PUT",body:e.rule})}),getApiV1Rules:e.query({query:()=>({url:"/api/v1/rules"})}),postApiV1Rules:e.mutation({query:e=>({url:"/api/v1/rules",method:"POST",params:{hint:e.hint,ordering:e.ordering,text:e.text}})}),postApiV1RulesReorder:e.mutation({query:e=>({url:"/api/v1/rules/reorder",method:"POST",body:e.body})}),deleteApiV1RulesById:e.mutation({query:e=>({url:`/api/v1/rules/${e.id}`,method:"DELETE"})}),getApiV1Search:e.query({query:e=>({url:"/api/v1/search",params:{actorType:e.actorType,fasp:e.fasp,filter:e.filter,followStatus:e.followStatus,followers:e.followers,following:e.following,lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,q:e.q,resolve:e.resolve,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withComments:e.withComments,withParent:e.withParent,htmlContent:e.htmlContent}})}),deleteApiV1SessionsAll:e.mutation({query:()=>({url:"/api/v1/sessions/all",method:"DELETE"})}),getApiV1SessionsList:e.query({query:()=>({url:"/api/v1/sessions/list"})}),putApiV1SessionsRevokeAll:e.mutation({query:()=>({url:"/api/v1/sessions/revoke/all",method:"PUT"})}),putApiV1SessionsRevokeBySessionKey:e.mutation({query:e=>({url:`/api/v1/sessions/revoke/${e.sessionKey}`,method:"PUT"})}),deleteApiV1SessionsBySessionKey:e.mutation({query:e=>({url:`/api/v1/sessions/${e.sessionKey}`,method:"DELETE"})}),putApiV1Settings:e.mutation({query:e=>({url:"/api/v1/settings",method:"PUT",body:e.platformSettings})}),getApiV1Settings:e.query({query:e=>({url:"/api/v1/settings",params:{keys:e.keys}})}),deleteApiV1Settings:e.mutation({query:e=>({url:"/api/v1/settings",method:"DELETE",params:{keys:e.keys}})}),putApiV1SettingsUser:e.mutation({query:e=>({url:"/api/v1/settings/user",method:"PUT",body:e.userSettings})}),getApiV1SettingsUser:e.query({query:e=>({url:"/api/v1/settings/user",params:{keys:e.keys}})}),deleteApiV1SettingsUser:e.mutation({query:e=>({url:"/api/v1/settings/user",method:"DELETE",params:{keys:e.keys}})}),getApiV1TagsFeatured:e.query({query:e=>({url:"/api/v1/tags/featured",params:{userId:e.userId}})}),deleteApiV1TagsFeaturedByName:e.mutation({query:e=>({url:`/api/v1/tags/featured/${e.name}`,method:"DELETE"})}),postApiV1TagsFeaturedByName:e.mutation({query:e=>({url:`/api/v1/tags/featured/${e.name}`,method:"POST"})}),postApiV1TagsFollowByName:e.mutation({query:e=>({url:`/api/v1/tags/follow/${e.name}`,method:"POST"})}),getApiV1TagsFollowed:e.query({query:()=>({url:"/api/v1/tags/followed"})}),getApiV1TagsTrending:e.query({query:()=>({url:"/api/v1/tags/trending"})}),postApiV1TagsUnfollowByName:e.mutation({query:e=>({url:`/api/v1/tags/unfollow/${e.name}`,method:"POST"})}),getApiV1TagsByName:e.query({query:e=>({url:`/api/v1/tags/${e.name}`,params:{historySince:e.historySince}})}),postApiV1TranslateText:e.mutation({query:e=>({url:"/api/v1/translate/text",method:"POST",body:e.translationRequest})}),getApiV1TrendsLinks:e.query({query:()=>({url:"/api/v1/trends/links"})}),getApiV1TrendsPosts:e.query({query:e=>({url:"/api/v1/trends/posts",params:{htmlContent:e.htmlContent}})}),getApiV1TrendsTags:e.query({query:()=>({url:"/api/v1/trends/tags"})}),postApiV1Uploads:e.mutation({query:e=>({url:"/api/v1/uploads",method:"POST",body:e.createUpload})}),postApiV1UploadsBatch:e.mutation({query:e=>({url:"/api/v1/uploads/batch",method:"POST",body:e.body})}),postApiV1UploadsList:e.mutation({query:e=>({url:"/api/v1/uploads/list",method:"POST",body:e.uploadList})}),getApiV1UploadsSearch:e.query({query:e=>({url:"/api/v1/uploads/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,uploadType:e.uploadType}})}),getApiV1UploadsUsages:e.query({query:e=>({url:"/api/v1/uploads/usages",params:{ids:e.ids}})}),getApiV1UploadsById:e.query({query:e=>({url:`/api/v1/uploads/${e.id}`})}),deleteApiV1UploadsById:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}`,method:"DELETE"})}),postApiV1UploadsByIdMeta:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/meta`,method:"POST",body:e.body})}),putApiV1UploadsByIdMeta:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/meta`,method:"PUT",body:e.body})}),postApiV1UploadsByIdTags:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/tags`,method:"POST",body:e.body})}),putApiV1UploadsByIdTags:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/tags`,method:"PUT",body:e.body})}),postApiV1UploadsByIdThumbnail:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/thumbnail`,method:"POST",body:e.changeVideoThumbnail})}),getApiV1UserAlias:e.query({query:()=>({url:"/api/v1/user-alias"})}),deleteApiV1UserAlias:e.mutation({query:e=>({url:"/api/v1/user-alias",method:"DELETE",params:{uri:e.uri}})}),postApiV1UserAlias:e.mutation({query:e=>({url:"/api/v1/user-alias",method:"POST",params:{acct:e.acct}})}),getApiV1UserDomainBlock:e.query({query:()=>({url:"/api/v1/user-domain-block"})}),deleteApiV1UserDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/user-domain-block/${e.domain}`,method:"DELETE"})}),postApiV1UserDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/user-domain-block/${e.domain}`,method:"POST"})}),deleteApiV1Users:e.mutation({query:e=>({url:"/api/v1/users",method:"DELETE",params:{id:e.id,name:e.name}})}),postApiV1Users:e.mutation({query:e=>({url:"/api/v1/users",method:"POST",body:e.userCreate,params:{account_id:e.accountId,email:e.email,htmlContent:e.htmlContent}})}),getApiV1Users:e.query({query:e=>({url:"/api/v1/users",params:{full:e.full,username:e.username,htmlContent:e.htmlContent}})}),getApiV1UsersCheck:e.query({query:e=>({url:"/api/v1/users/check",params:{username:e.username}})}),getApiV1UsersConnections:e.query({query:e=>({url:"/api/v1/users/connections",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1UsersFollowByUsername:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}`,method:"POST",params:{domain:e.domain,mutual:e.mutual,scheme:e.scheme}})}),postApiV1UsersFollowByUsernameAccept:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/accept`,method:"POST"})}),postApiV1UsersFollowByUsernamePend:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/pend`,method:"POST"})}),postApiV1UsersFollowByUsernameReject:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/reject`,method:"POST"})}),postApiV1UsersFollowByUsernameUndo:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/undo`,method:"POST",params:{domain:e.domain,mutual:e.mutual,scheme:e.scheme}})}),getApiV1UsersFollowees:e.query({query:e=>({url:"/api/v1/users/followees",params:{anyStatus:e.anyStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersFollowers:e.query({query:e=>({url:"/api/v1/users/followers",params:{anyStatus:e.anyStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1UsersInvite:e.mutation({query:e=>({url:"/api/v1/users/invite",method:"POST",params:{entity:e.entity,invitee:e.invitee,scheme:e.scheme}})}),postApiV1UsersInviteAccept:e.mutation({query:e=>({url:"/api/v1/users/invite/accept",method:"POST",params:{entity:e.entity,inviter:e.inviter,scheme:e.scheme}})}),getApiV1UsersInviteInviteeEntities:e.query({query:e=>({url:"/api/v1/users/invite/invitee/entities",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviteeEntitiesByInviterUser:e.query({query:e=>({url:`/api/v1/users/invite/invitee/entities/${e.inviterUser}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,scheme:e.scheme,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviteeInviters:e.query({query:e=>({url:"/api/v1/users/invite/invitee/inviters",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviteeInvitersByEntityUser:e.query({query:e=>({url:`/api/v1/users/invite/invitee/inviters/${e.entityUser}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,scheme:e.scheme,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviterEntities:e.query({query:e=>({url:"/api/v1/users/invite/inviter/entities",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviterInvitees:e.query({query:e=>({url:"/api/v1/users/invite/inviter/invitees",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviterInviteesByEntityUser:e.query({query:e=>({url:`/api/v1/users/invite/inviter/invitees/${e.entityUser}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,scheme:e.scheme,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1UsersInviteReject:e.mutation({query:e=>({url:"/api/v1/users/invite/reject",method:"POST",params:{entity:e.entity,inviter:e.inviter,scheme:e.scheme}})}),postApiV1UsersInviteUndo:e.mutation({query:e=>({url:"/api/v1/users/invite/undo",method:"POST",params:{entity:e.entity,invitee:e.invitee,scheme:e.scheme}})}),getApiV1UsersRelationships:e.query({query:e=>({url:"/api/v1/users/relationships",params:{filter:e.filter,targets:e.targets}})}),getApiV1UsersRemoteByUserNameFullFollowers:e.query({query:e=>({url:`/api/v1/users/remote/${e.userNameFull}/followers`,params:{limit:e.limit,offset:e.offset}})}),getApiV1UsersRemoteByUserNameFullFollowing:e.query({query:e=>({url:`/api/v1/users/remote/${e.userNameFull}/following`,params:{limit:e.limit,offset:e.offset}})}),getApiV1UsersRenameHistory:e.query({query:()=>({url:"/api/v1/users/rename-history"})}),putApiV1UsersByUserId:e.mutation({query:e=>({url:`/api/v1/users/${e.userId}`,method:"PUT",body:e.userUpdate,params:{htmlContent:e.htmlContent}})}),getApiV1UsersByUserId:e.query({query:e=>({url:`/api/v1/users/${e.userId}`,params:{allowDeleted:e.allowDeleted,full:e.full,htmlContent:e.htmlContent}})}),getApiV1UsersByUserIdFollowers:e.query({query:e=>({url:`/api/v1/users/${e.userId}/followers`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1UsersByUserIdFollowing:e.query({query:e=>({url:`/api/v1/users/${e.userId}/following`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),putApiV1UsersByUserIdMedia:e.mutation({query:e=>({url:`/api/v1/users/${e.userId}/media`,method:"PUT",body:e.userUpdateMedia,params:{htmlContent:e.htmlContent}})})}),overrideExisting:!1}),Wi={forgotPasswordStep:"request",forgotPasswordFields:null,signupStep:"rules",signupFields:null,token:null,newEmail:null,isAuthBlockVisible:!0,isPending:!!Ns.getToken(),isAuthenticated:!1},I_=me({name:"auth",initialState:Wi,reducers:{login:(e,t)=>{e.isAuthenticated=!0,e.token=t.payload||null,e.isPending=!1},logout:()=>({...Wi,isPending:!1}),setNewEmail:(e,t)=>{e.newEmail=t.payload},setForgotPasswordStep:(e,t)=>{e.forgotPasswordStep=t.payload},updateForgotPasswordFields:(e,t)=>{e.forgotPasswordFields={...e.forgotPasswordFields,...t.payload}},resetForgotPasswordFields:e=>{e.forgotPasswordFields=null},setSignupStep:(e,t)=>{e.signupStep=t.payload},updateSignupFields:(e,t)=>{e.signupFields={...e.signupFields,...t.payload}},resetSignupFields:e=>{e.signupFields=null},setPending:(e,t)=>{e.isPending=t.payload},showAuthBlock:(e,t)=>{e.isAuthBlockVisible=t.payload}},selectors:{selectToken:e=>e.token,selectNewEmail:e=>e.newEmail,selectForgotPasswordStep:e=>e.forgotPasswordStep,selectForgotPasswordFields:e=>e.forgotPasswordFields,selectSignupStep:e=>e.signupStep,selectSignupFields:e=>e.signupFields,selectPending:e=>e.isPending,selectAuthBlockVisible:e=>e.isAuthBlockVisible,selectIsAuthenticated:e=>e.isAuthenticated}}),w_={data:null,isPending:!1,isSuccess:!1},b_=me({name:"userNoHTML",initialState:w_,reducers:{setUser:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectUser:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}});var qi,Wr={};function T_(){return qi||(qi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=[],n=[],r=[],o=[],s=(e,t)=>{if("function"!=typeof e)throw new Error("Expected the listener to be a function.");return t.push(e),()=>{const n=t.indexOf(e);t.splice(n,1)}};e.subscribeBefore=e=>s(e,t),e.subscribeAfter=e=>s(e,n);const i=(e,t)=>{if(!e.action)throw new Error("Expected the action to be a string.");if("function"!=typeof e.listener)throw new Error("Expected the listener to be a function.");return t.push(e),()=>{const n=t.indexOf(e);t.splice(n,1)}};e.subscribeActionBefore=(e,t)=>i({action:e,listener:t},r),e.subscribeActionAfter=(e,t)=>i({action:e,listener:t},o),e.unsubscribeBefore=()=>{t.length=0},e.unsubscribeActionsBefore=()=>{r.length=0},e.unsubscribeAfter=()=>{n.length=0},e.unsubscribeActionsAfter=()=>{o.length=0},e.unsubscribeAll=()=>{e.unsubscribeBefore(),e.unsubscribeActionsBefore(),e.unsubscribeAfter(),e.unsubscribeActionsAfter()};const a=(e,t)=>{const n=e.filter((({action:e})=>e!==t));e.length=0,e.concat(n)};e.unsubscribeActionBefore=e=>{a(r,e)},e.unsubscribeActionAfter=e=>{a(o,e)},e.unsubscribeActionAll=t=>{e.unsubscribeActionBefore(t),e.unsubscribeActionAfter(t)};const u=(e,t)=>{for(let n=t.length-1;n>=0;n--){const r=t[n];"object"==typeof e&&r(e)}},c=(e,t)=>{for(let n=t.length-1;n>=0;n--){const r=t[n];"object"==typeof e&&r.action===e.type&&r.listener(e)}};e.subscribeActionMiddleware=e=>e=>s=>{u(s,t),c(s,r);const i=e(s);return u(s,n),c(s,o),i},e.default=e.subscribeActionMiddleware}(Wr)),Wr}var k_=T_();const C_=ga(k_),lo=e=>e,qc=de(lo,(e=>e.data)),O_=de(lo,(e=>e.error)),R_=de(lo,(e=>e.isPending)),M_=de(qc,(e=>null==e?void 0:e.rules)),P_={data:null,isPending:!1},D_=me({name:"instanceInfo",initialState:P_,reducers:{setInfo:(e,t)=>{e.data=t.payload},setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectInstanceInfo:qc,selectInstanceInfoError:O_,selectInstanceInfoPending:R_,selectPlatformRules:M_,selectRegistrations:e=>{var t;return null==(t=e.data)?void 0:t.configuration.registrations}}}),A_={data:null,isPending:!1,isSuccess:!1},x_=me({name:"profileSettings",initialState:A_,reducers:{setSettings:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectProfileSettings:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),B_={sms:"wellesley.admin.sms",auth:"wellesley.admin.auth",openai:"wellesley.admin.openai",uploads:"wellesley.admin.uploads",captcha:"wellesley.admin.captcha",language:"wellesley.admin.language",mediacache:"wellesley.admin.mediacache",translation:"wellesley.admin.translation"},N_={posts:"wellesley.posts",registration:"wellesley.registration",confirmationCode:"wellesley.confirmationCode",uploadsPolicyDoc:"wellesley.uploads.policy.doc",uploadsPolicyAudio:"wellesley.uploads.policy.audio",uploadsPolicyImage:"wellesley.uploads.policy.image",uploadsPolicyVideo:"wellesley.uploads.policy.video",captcha:"wellesley.captcha"},L_={data:null,isPending:!1},{posts:qr,uploadsPolicyDoc:Gi,uploadsPolicyAudio:Gr,uploadsPolicyImage:An,uploadsPolicyVideo:Mt,registration:U_,captcha:V_}=N_,{captcha:F_,language:$_,translation:j_,openai:z_}=B_,kt=e=>e.data,H_=de(kt,(e=>{var t,n,r;return{max_characters:(null==(t=null==e?void 0:e[qr])?void 0:t.max_characters)||0,max_media_attachments:(null==(n=null==e?void 0:e[qr])?void 0:n.max_media_attachments)||0,max_pins:(null==(r=null==e?void 0:e[qr])?void 0:r.max_pins)||0}})),Gc=de(kt,(e=>{var t,n,r;return{...null==e?void 0:e[An],maxSize:(null==(t=null==e?void 0:e[An])?void 0:t.maxSize)||0,maxMatrix:(null==(n=null==e?void 0:e[An])?void 0:n.maxMatrix)||0,maxResolution:(null==(r=null==e?void 0:e[An])?void 0:r.maxResolution)||0}})),Qc=de(kt,(e=>{var t,n,r,o;return{...null==e?void 0:e[Mt],maxSize:(null==(t=null==e?void 0:e[Mt])?void 0:t.maxSize)||0,maxMatrix:(null==(n=null==e?void 0:e[Mt])?void 0:n.maxMatrix)||0,maxDuration:(null==(r=null==e?void 0:e[Mt])?void 0:r.maxDuration)||0,maxResolution:(null==(o=null==e?void 0:e[Mt])?void 0:o.maxResolution)||0}})),Kc=de(kt,(e=>{var t,n;return{...null==e?void 0:e[Gr],maxSize:null==(t=null==e?void 0:e[Gr])?void 0:t.maxSize,keepOriginal:(null==(n=null==e?void 0:e[Gr])?void 0:n.keepOriginal)||0}})),Yc=de(kt,(e=>{var t;return{...null==e?void 0:e[Gi],maxSize:(null==(t=null==e?void 0:e[Gi])?void 0:t.maxSize)||0}})),Jc=de([Gc,Qc,Kc,Yc],((e,t,n,r)=>({IMAGE:null==e?void 0:e.extensions,VIDEO:null==t?void 0:t.extensions,AUDIO:null==n?void 0:n.extensions,DOCUMENT:null==r?void 0:r.extensions}))),W_=de(Jc,(e=>Object.keys(e).reduce(((t,n)=>[...t,...e[n]||[]]),[]))),q_=me({name:"platformSettings",initialState:L_,reducers:{setSettings:(e,t)=>{e.data={...e.data,...t.payload}},setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectSettings:kt,selectPostConfig:H_,selectDocPolicy:Yc,selectImagePolicy:Gc,selectVideoPolicy:Qc,selectAudioPolicy:Kc,selectSupportedExtensions:Jc,selectFullExtensionsList:W_,selectRegistration:e=>{var t;return null==(t=e.data)?void 0:t[U_]},selectLanguageDetection:e=>{var t;return null==(t=e.data)?void 0:t[$_]},selectLanguageTranslation:e=>{var t;return null==(t=e.data)?void 0:t[j_]},selectOpenai:e=>{var t;return null==(t=e.data)?void 0:t[z_]},selectCaptcha:e=>{var t;return null==(t=e.data)?void 0:t[V_]},selectAdminCaptcha:e=>{var t;return null==(t=e.data)?void 0:t[F_]}}}),Qi={data:{userId:"",list:[]},count:{},isPending:!1},G_=e=>e,Q_=e=>e.error,K_=e=>e.isPending,Y_=e=>{var t;return null==(t=e.count)?void 0:t.total},J_=e=>{var t;return null==(t=e.count)?void 0:t.unread},X_=e=>e.data.userId,po=de(G_,(e=>e.data.list)),Z_=de(po,(e=>null==e?void 0:e.filter((e=>"UNREAD"===e.status)))),ev=de(po,(e=>null==e?void 0:e.at(-1))),tv=me({name:"notifications",initialState:Qi,reducers:{setPending:(e,t)=>{e.isPending=t.payload},setError:(e,t)=>{e.error=t.payload},setNotifications:(e,t)=>{const n=t.payload.userId,r=t.payload.list;e.data={userId:n,list:[...e.data.list||[],...r.filter((t=>{var n;return!(null!=(n=e.data.list)&&n.some((e=>e.id===t.id)))}))]}},addNotification:(e,t)=>{e.count.unread=(e.count.unread||0)+1,e.data.list&&(e.data.list=[t.payload,...e.data.list||[]])},markNotification:(e,t)=>{e.data.list&&(e.data.list=e.data.list.map((e=>e.id===t.payload.id?{...e,status:t.payload.status}:e)))},updateNotification:(e,t)=>{var n;if(!e.data.list)return;const r=t.payload;e.data.list=null==(n=e.data.list)?void 0:n.map((e=>e.id===r.id?{...e,...r}:e))},setTotalCount:(e,t)=>{e.count.total=t.payload},setUnreadCount:(e,t)=>{e.count.unread=t.payload},readAll:e=>{var t;e.data.list&&(e.data.list=null==(t=e.data.list)?void 0:t.map((e=>({...e,status:"READ"}))))},resetState:()=>Qi,undoNotitication:(e,t)=>{var n,r,o;const s=t.payload;"UNREAD"===(null==(r=null==(n=e.data.list)?void 0:n.find((e=>e.id===s)))?void 0:r.status)&&e.count.unread&&(e.count.unread-=1),e.data.list=(null==(o=e.data.list)?void 0:o.filter((e=>e.id!==s)))||[]}},selectors:{selectError:Q_,selectIsPending:K_,selectTotalCount:Y_,selectUnreadCount:J_,selectNotifications:po,selectUnreadNotifications:Z_,selectLastNotification:ev,selectNotificationsOwner:X_}}),nv=()=>{const e=window.innerWidth;return e<768?"mobile":e<1024?"tablet":"desktop"},rv={deviceType:nv()},sv=me({name:"ui",initialState:rv,reducers:{setDeviceType:(e,{payload:t})=>{e.deviceType=t}},selectors:{selectDeviceType:e=>e.deviceType,selectIsMobile:e=>"mobile"===e.deviceType,selectIsTablet:e=>"tablet"===e.deviceType,selectIsDesktop:e=>"desktop"===e.deviceType}});function ov(){return!(typeof navigator<"u"&&"boolean"==typeof navigator.onLine)||navigator.onLine}const iv={isOnline:ov()},av=me({name:"network",initialState:iv,reducers:{setOnline:(e,{payload:t})=>{e.isOnline=t}},selectors:{selectOnline:e=>e.isOnline}});var cv={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.16.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/store/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/store/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.16.0/bin",TURBO_HASH:"8b0e1289eaf45a5d",NODE:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_package_name:"@wellesley/store",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.260",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.16.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/store",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/store",EDITOR:"vi",NODE_ENV:"production",BUILD_NUMBER:"2945",APP_NAME:"@wellesley/store"};const uv=hl(Wc,av,sv,I_,Qg,b_,D_,tv,x_,q_);let At;const lv=e=>{const t=Fu({devTools:{name:cv.APP_NAME},reducer:uv,preloadedState:e,middleware:e=>e().concat(Wc.middleware,C_)});return At=t,t},pv=e=>At||(At=lv(e),At);export{lv as createStore,pv as getStore,uv as rootReducer};
|