1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/client-strings-DPt87yCq.js","assets/_sentry-release-injection-file-BIxAPxRH.js","assets/rolldown-runtime-CynJssAt.js","assets/client-strings-CUMZ0nX-.js","assets/client-strings-ahzTWHtX.js","assets/AIAgentConnector-K1Vu1djk.js","assets/react-C9jbeexS.js","assets/lib-C2GB3B5V.js","assets/useMutation-BfN43mMl.js","assets/ApolloContext-B5pZHcDm.js","assets/parser-BD5r9UQw.js","assets/Input-T2UXt-4g.js","assets/prop-types-Ce8l2Ds1.js","assets/formatClasses-DEp3Ml96.js","assets/FormLayoutContext-DqgM1hDH.js","assets/AdminSearchDetails-DSyCa_C1.js","assets/BlogPagination-DUGqSLEL.js","assets/Pagination-WOPi-tC2.js","assets/range-Bn0AaYM-.js","assets/toFinite-aVRKKLVH.js","assets/toNumber-C0HBsrfj.js","assets/isArrayLike-Ch5XQcjF.js","assets/eq-DGx37WCa.js","assets/_isIterateeCall-C6Gt9ESX.js","assets/useCdnPath-BSxdg2Wg.js","assets/CalendarEvents-BegqOhNl.js","assets/useDateDisplay-Br5TAOSk.js","assets/useQuery-Cob25j8P.js","assets/PageSpinner-BnO66d7N.js","assets/Spinner-n5pTDC5P.js","assets/Spinner-C6yjHYxo.css","assets/ClipBotSearch-CukAcvhC.js","assets/routeWith-1gM_5i5h.js","assets/_arrayPush-DSp2RZw1.js","assets/_Uint8Array-B897JHCY.js","assets/appRoutes-KNafzIMw.js","assets/_copyArray-Bn7L1NMR.js","assets/_baseUnset-D3G1PSyW.js","assets/_baseFlatten-DzKbLF9V.js","assets/_flatRest-B13sBdZ-.js","assets/BookList-7evwofEo.js","assets/http-C9E3G6m1.js","assets/find-BizCUjDy.js","assets/_baseIteratee-eVLGECgX.js","assets/throttle-BzYF08BZ.js","assets/ToolTray-C2h3jnrZ.js","assets/noop-DXS_3UHp.js","assets/groupBy-6rNyxNFA.js","assets/_createAggregator-clsN04mB.js","assets/_baseEach-tH7yOdeo.js","assets/Popover-BSNJHXs6.js","assets/react-dom-Cp8f5Im4.js","assets/Popover-BulR-3Oj.css","assets/classnames-BHBZt_jO.js","assets/BookShare-BJmkERr_.js","assets/FontAwesomeIcon-l0UcQmUH.js","assets/totalOffsetTop-CGDIKLqt.js","assets/useLocalStorage-BQQkkryk.js","assets/Checkbox-BD4dZKeY.js","assets/usePageLayout-CUleqzUy.js","assets/scrollToElement-DNSR5et9.js","assets/ResizedImage-BrrX3nrO.js","assets/useResizeListener-P_YeR5Vg.js","assets/IconHint-CnAc_ExU.js","assets/IconExternal-Bi1f1hbl.js","assets/WantInterstitial-CUgU3OBM.js","assets/dist-B1e1jRIr.js","assets/GQLPaginatedResults-BsGYEQZI.js","assets/useQueryString-Br-PC4Hh.js","assets/Clipboard-CmI7iCB_.js","assets/useHistoryState-DUdxNKcj.js","assets/CollectionFilters-C9uu-J0_.js","assets/FacetSubmitButton-CCuwYJC_.js","assets/sortBy-Cw9Nl2mh.js","assets/_baseRest-DcsiVCYn.js","assets/_baseOrderBy-CovfHPRx.js","assets/_baseMap-BFv2fKM_.js","assets/FloatingSubmitButton-Bc0QTjCf.js","assets/useFloatingButton-rOh9aS6O.js","assets/ContactForm-B3ZcGs4Y.js","assets/commonValidators-BuDNBY0d.js","assets/FormField-D-gbEwz2.js","assets/FinalControlGroup-DJcLRrPy.js","assets/objectWithoutPropertiesLoose-lq5GB41P.js","assets/InputErrors-DtxTy5YH.js","assets/combineValidators-B9nx5Lub.js","assets/Submit-BfTtniii.js","assets/SuccessMessage-BmXBqDYr.js","assets/Recaptcha-Dwu5D1BY.js","assets/hoist-non-react-statics.cjs-T_Va_0ii.js","assets/BasicFinalForm-C-O-LD3x.js","assets/CreateCatalogueForm-wNQotikT.js","assets/FormError-BcW5fn75.js","assets/DeleteMailingListSubscriber-BGGLZ_39.js","assets/Button-Dv6HW2ZO.js","assets/EditMailingListForm-CTPGcK3g.js","assets/GqlFinalForm-CqJEv9jh.js","assets/MailingListTags-C03XeOUE.js","assets/FinalCheckbox-CalbdP7L.js","assets/EditSubscription-Bh-3I7R2.js","assets/CountrySelect-Df8uXO89.js","assets/selectStyles-Ck6IA_vf.js","assets/typeof-DbEWJ3GB.js","assets/unsupportedIterableToArray-BtGYSfe2.js","assets/react-select.esm-BsHonJ3Q.js","assets/FinalSelect-sHeJCYx9.js","assets/Select-D24fGN8N.js","assets/TermsOfServiceCheckbox-CgZSy--1.js","assets/serversideValidators-DWkw1oz5.js","assets/FacetEditor-DSTZx-9M.js","assets/FacetFormFields-Lx5j1XQe.js","assets/FinishPasswordResetForm-D1rND1vw.js","assets/ForgottenUsernameForm-SU8AGNxx.js","assets/HarvestData-Dk0ScX5U.js","assets/HeaderWrapper-D3e3uvWJ.js","assets/Header-PvdR_nu7.js","assets/ShowcaseCountdown-Czxeg0HT.js","assets/getCookie-DIve889v.js","assets/useMenuVisibility-BqfrNlLa.js","assets/react-stripe.umd-m
1iEND1Wb.js","assets/useRoutes--GDE5OCb.js","assets/useModalOpen-gt8ZE40Z.js","assets/HomepageCalendarEvents-DfPs-W6B.js","assets/SafeLink-Dy-XI-jb.js","assets/HomepageSearchForm-b0xFWmPs.js","assets/SearchSources-DodbpVQJ.js","assets/isEmpty-BteR97MS.js","assets/isEmptyValue-D-Y8qpKB.js","assets/RadioButton-BOg_w-Uh.js","assets/ExclusionString-DiA4l_sc.js","assets/PriceRange-DGnEs5La.js","assets/SimpleSearchFields-w8CSGjvl.js","assets/CurrencySelect-C51PXW1q.js","assets/LibraryCategoryList-EcySEszB.js","assets/FavouriteStarIcon-1Yr1hH-M.js","assets/EmptyList-D_TMAAKy.js","assets/LibrarySearch-DqWx1XgC.js","assets/LibrarySearchHistory-DOiuffeN.js","assets/LibriDirectPayPalCredentials-DmN80qbt.js","assets/Libristat-D54QwPHn.js","assets/LiveOrUpcomingShowcaseHomepageBanner-Cz4GuYKH.js","assets/ShowcaseBanner-AfspOyq3.js","assets/filterHighlights-Bv6B4Ttz.js","assets/filterHighlights-RQWagfgE.css","assets/free-solid-svg-icons-CbBeYKFw.js","assets/LoginForm-C67wbFZ_.js","assets/MailingListFormWrapper-CaUBPQxs.js","assets/MailingListForm-LzsQka-4.js","assets/MobileContentMenuWrapper-Diz2L3CS.js","assets/MobileContentMenu-g22pUG6n.js","assets/PageOfBooksFromProps-q08g0q55.js","assets/SearchSorter-RLUbpRGF.js","assets/RegistrationForm-D2nxfMWA.js","assets/SearchProgressBar-CsQsOSzH.js","assets/SearchQueryParametersWrapper-DgRM18Nf.js","assets/SearchQueryParameters-qzRWodne.js","assets/ShareSelectionButton-CG53TilN.js","assets/ShareSelectionViaEmail-oEX91ggg.js","assets/ShowcaseApp-Bq0Hyyu4.js","assets/orderBy-CTRVAZRF.js","assets/classNames-Bba8NXLF.js","assets/useShowcaseItemClickTracking-D9oq1VZz.js","assets/useFormatMoney-DmupZqPd.js","assets/WpContentEditLink-C_9DNmEV.js","assets/ShowcaseApp-Dd71TX3i.css","assets/ShowcaseHighlightsSidebar-CjmrVzBx.js","assets/ShowcaseRegistration-CMwP-HMT.js","assets/ShowcaseRegistrationSubmitButton-Tg__0F9U.js","assets/ShowcaseRegistrationSubmitButton-DbX_zdBn.css","assets/ShowcaseRegistrationAnonymous-C5EC8kTv.js","assets/ShowcaseRegistrationThankYou-BjBOEsdq.js","assets/ShowcaseSellerApplication-DRSrf50v.js","assets/SimpleSearch-DgF7dKtG.js","assets/StartPasswordResetForm-DippX9sT.js","assets/SubmitCalendarEvent-IHha11PL.js","assets/SubmitCalendarEvent-CALFSNlh.css","assets/SubscriptionInvoice-D33nc8-k.js","assets/PaymentCreditCard-BT9MaVyW.js","assets/SubscriptionSummaryTable-DwnXl7Y4.js","assets/SubscriptionSummary-BoyPM46K.js","assets/UserAccount-DYsivYOQ.js","assets/UserAccountSecurity-ByRfArdc.js","assets/UserSearchPreferences-C3xiBavs.js","assets/UserSubscription-DIGUtN8H.js","assets/UserUpdateCard-JZ0qoas8.js","assets/WantEditor-Y-WwkM4c.js","assets/WantInterstitialWrapper-ZdxycGW-.js","assets/WantsManager-kh9xK00O.js","assets/WpContentEditLinkWrapper-BYzjnJI9.js","assets/Years-2caElYgP.js"])))=>i.map(i=>d[i]); 2import'data:text/javascript,"assets/index-eSpJ4TSf.js";if(!import.meta.resolve)throw Error("import.meta.resolve not supported")';export function __vite_legacy_guard(){import.meta.url,import("_").catch((()=>1)),async function*(){}().next()}!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5e9617b0-4935-43ef-bf7d-c8a9d8404e52",e._sentryDebugIdIdentifier="sentry-dbid-5e9617b0-4935-43ef-bf7d-c8a9d8404e52")}catch(e){}}();import"./_sentry-release-injection-file-BIxAPxRH.js";import{a as e,n as t,t as r}from"./rolldown-runtime-CynJssAt.js";import{t as n}from"./react-C9jbeexS.js";import{t as o}from"./hoist-non-react-statics.cjs-T_Va_0ii.js";import{a,o as i,r as s,t as u}from"./isArrayLike-Ch5XQcjF.js";import{_ as l,c,g as p,t as d}from"./_arrayPush-DSp2RZw1.js";import{c as f,d as h,f as m,u as y}from"./_Uint8Array-B897JHCY.js";import{n as g,t as v}from"./find-BizCUjDy.js";import{t as b}from"./_baseFlatten-DzKbLF9V.js";import{t as _}from"./_copyArray-Bn7L1NMR.js";import{a as S,i as w,n as E,o as x,r as k,t as T}from"./http-C9E3G6m1.js";import{n as O,o as I,t as C}from"./_baseUnset-D3G1PSyW.js";import{t as R}from"./_baseRest-DcsiVCYn.js";import{t as A}from"./_isIterateeCall-C6Gt9ESX.js";import{a as P,n as M,o as j,r as D,s as F,t as L}from"./_baseIteratee-eVLGECgX.js";import{t as N}from"./_flatRest-B13sBdZ-.js";import{t as q}from"./_baseEach-tH7yOdeo.js";import{t as U}from"./_baseMap-BFv2fKM_.js";import{t as B}from"./react-dom-Cp8f5Im4.js";import{t as $}from"./typeof-DbEWJ3GB.js";import{t as V}from"./prop-types-Ce8l2Ds1.js";import{n as W,t as z}from"./objectWithoutPropertiesLoose-lq5GB41P.js";import{$ as Q,$t as H,A as G,At as K,B as Y,Bt as J,C as X,Cn as Z,Ct as ee,D as te,Dt as re,E as ne,Et as oe,Ft as ae,G as ie,Gt as se,H as ue,Ht as le,It as ce,J as pe,K as de,Kt as fe,Lt as he,M as me,Mt as ye,N as ge,O as ve,Ot as be,P as _e,Pt as Se,Q as we,Qt as Ee,Rt as xe,S as ke,St as Te,T as Oe,Tt as Ie,U as Ce,Ut as Re,V as Ae,Vt as Pe,W as Me,Wt as je,X as De,Xt as Fe,Y as Le,Yt as Ne,Z as qe,Zt as Ue,_ as Be,_n as $e,_t as Ve,a as We,an as ze,at as Qe,b as He,bn as Ge,bt as Ke,c as Ye,cn as Je,ct as Xe,d as Ze,dn as et,dt as tt,en as rt,et as nt,f as ot,fn as at,ft as it,g as st,gn as ut,gt as lt,h as ct,hn as pt,ht as dt,i as ft,in as ht,it as mt,j as yt,jt as gt,k as vt,kt as bt,l as _t,ln as St,lt as wt,m as Et,mn as xt,mt as kt,n as Tt,nn as Ot,nt as It,o as Ct,on as Rt,ot as At,p as Pt,pn as Mt,pt as jt,q as Dt,qt as Ft,r as Lt,rn as Nt,rt as qt,s as Ut,sn as Bt,st as $t,t as Vt,tn as Wt,tt as zt,u as Qt,un as Ht,ut as Gt,v as Kt,vn as Yt,vt as Jt,w as Xt,wt as Zt,x as er,xn as tr,xt as rr,y as nr,yn as or,yt as ar,z as ir,zt as sr}from"./ApolloContext-B5pZHcDm.js";import{a as ur,c as lr,d as cr,f as pr,i as dr,l as fr,n as hr,o as mr,r as yr,s as gr,t as vr,u as br}from"./lib-C2GB3B5V.js";var _r=(e,t,r)=>{const n=t.lastIndexOf("?"),o=e[-1===n||n<t.lastIndexOf("/")?t:t.slice(0,n)];return o?"function"==typeof o?o():Promise.resolve(o):new Promise(((e,n)=>{("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==r?". Note that variables only represent file names one level deep.":""))))}))};!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const r of e)if("childList"===r.type)for(const e of r.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}(),function(){if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Ob
vendor: 8,004 bytes, line 2
2ject.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=function(e){for(var t=window.document,r=o(t);r;)r=o(t=r.ownerDocument);return t}(),t=[],r=null,n=null;i.prototype.THROTTLE_TIMEOUT=100,i.prototype.POLL_INTERVAL=null,i.prototype.USE_MUTATION_OBSERVER=!0,i._setupCrossOriginUpdater=function(){return r||(r=function(e,r){n=e&&r?p(e,r):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach((function(e){e._checkForIntersections()}))}),r},i._resetCrossOriginUpdater=function(){r=null,n=null},i.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},i.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},i.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},i.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},i.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,r){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==r[t-1]}))},i.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},i.prototype._monitorIntersections=function(t){var r=t.defaultView;if(r&&-1==this._monitoringDocuments.indexOf(t)){var n=this._checkForIntersections,a=null,i=null;if(this.POLL_INTERVAL?a=r.setInterval(n,this.POLL_INTERVAL):(s(r,"resize",n,!0),s(t,"scroll",n,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in r&&(i=new r.MutationObserver(n)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push((function(){var e=t.defaultView;e&&(a&&e.clearInterval(a),u(e,"resize",n,!0)),u(t,"scroll",n,!0),i&&i.disconnect()})),t!=(this.root&&(this.root.ownerDocument||this.root)||e)){var l=o(t);l&&this._monitorIntersections(l.ownerDocument)}}},i.prototype._unmonitorIntersections=function(t){var r=this._monitoringDocuments.indexOf(t);if(-1!=r){var n=this.root&&(this.root.ownerDocument||this.root)||e;if(!this._observationTargets.some((function(e){var r=e.element.ownerDocument;if(r==t)return!0;for(;r&&r!=n;){var a=o(r);if((r=a&&a.ownerDocument)==t)return!0}return!1}))){var a=this._monitoringUnsubscribes[r];if(this._monitoringDocuments.splice(r,1),this._monitoringUnsubscribes.splice(r,1),a(),t!=n){var i=o(t);i&&this._unmonitorIntersections(i.ownerDocument)}}}},i.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},i.prototype._checkForIntersections=function(){if(this.root||!r||n){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(n){var o=n.element,i=l(o),s=this._rootContainsTarget(o),u=n.entry,c=e&&s&&this._computeTargetAndRootIntersection(o,i,t),p=null;this._rootContainsTarget(o)?r&&!this.root||(p=t):p={top:0,bottom:0,left:0,right:0,width:0,height:0};var d=n.entry=new a({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:i,rootBounds:p,intersectionRect:c});u?e&&s?this._hasCrossedThreshold(u,d)&&this._queuedEntries.push(d):u&&u.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},i.prototype._computeTargetAndRootIntersection=function(t,o,a){if("none"!=window.getComputedStyle(t).display){for(var i,s,u,c,d,h,m,y,g=o,v=f(t),b=!1;!b&&v;){var _=null,S=1==v.nodeType?window.getComputedStyle(v):{};if("none"==S.display)return null;if(v==this.root||9==v.nodeType)if(b=!0,v==this.root||v==e)r&&!this.root?!n||0==n.width&&0==n.height?(v=null,_=null,g=null):_=n:_=a;else{var w=f(v),E=w&&l(w),x=w&&this._computeTargetAndRootIntersection(w,E,a);E&&x?(v=w,_=p(E,x)):(v=null,g=null)}else{var k=v.ownerDocument;v!=k.body&&v!=k.documentElement&&"visible"!=S.overflow&&(_=l(v))}if(_&&(i=_,s=g,u=void 0,c=void 0,d=void 0,h=void 0,m=void 0,y=void 0,u=Math.max(i.top,s.top),c=Math.min(i.bottom,s.bottom),d=Math.max(i.left,s.left),h=Math.min(i.right,s.right),y=c-u,g=(m=h-d)>=0&&y>=0&&{top:u,bottom:c,left:d,right:h,width:m,height:y}||null),!g)break;v=v&&f(v)}return g}},i.prototype._getRootRect=function(){var t;if(this.root&&!h(this.root))t=l(this.root);else{var r=h(this.root)?this.root:e,n=r.documentElement,o=r.body;t={top:0,left:0,right:n.clientWidth||o.clientWidth,width:n.clientWidth||o.clientWidth,bottom:n.clientHeight||o.clientHeight,height:n.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(t)},i.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,r){return"px"==t.unit?t.value:t.value*(r%2?e.width:e.height)/100})),r={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return r.width=r.right-r.left,r.height=r.bottom-r.top,r},i.prototype._hasCrossedThreshold=function(e,t){var r=e&&e.isIntersecting?e.intersectionRatio||0:-1,n=t.isIntersecting?t.intersectionRatio||0:-1;if(r!==n)for(var o=0;o<this.thresholds.length;o++){var a=this.thresholds[o];if(a==r||a==n||a<r!=a<n)return!0}},i.prototype._rootIsInDom=function(){return!this.root||d(e,this.root)},i.prototype._rootContainsTarget=function(t){var r=this.root&&(this.root.ownerDocument||this.root)||e;return d(r,t)&&(!this.root||r==t.ownerDocument)},i.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},i.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=i,window.IntersectionObserverEntry=a}function o(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(t){return null}}function a(e){this.time=e.time,this.target=e.target,this.rootBounds=c(e.rootBounds),this.boundingClientRect=c(e.boundingClientRect),this.intersectionRect=c(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,r=t.width*t.height,n=this.intersectionRect,o=n.width*n.height;this.intersectionRatio=r?Number((o/r).toFixed(4)):this.isIntersecting?1:0}function i(e,t){var r,n,o,a=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(a.root&&1!=a.root.nodeType&&9!=a.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(r=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,o=null,function(){o||(o=setTimeout((function(){r(),o=null}),n))}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(a.rootMargin),this.thresholds=this._initThresholds(a.threshold),this.root=a.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function s(e,t,r,n){"function"==typeof e.addEventListener?e.addEventListener(t,r,n||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,r)}function u(e,t,r,n){"function"==typeof e.removeEventListener?e.removeEventListener(t,r,n||!1):"function"==typeof e.detachEvent&&e.detachEvent("on"+t,r)}function l(e){var t;try{t=e.getBoundingClientRect()}catch(r){}
2return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function c(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function p(e,t){var r=t.top-e.top,n=t.left-e.left;return{top:r,left:n,height:t.height,width:t.width,bottom:r+t.height,right:n+t.width}}function d(e,t){for(var r=t;r;){if(r==e)return!0;r=f(r)}return!1}function f(t){var r=t.parentNode;return 9==t.nodeType&&t!=e?o(t):(r&&r.assignedSlot&&(r=r.assignedSlot.parentNode),r&&11==r.nodeType&&r.host?r.host:r)}function h(e){return e&&9===e.nodeType}}();var Sr=Object.prototype.toString;function wr(e){switch(Sr.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Pr(e,Error)}}function Er(e,t){return Sr.call(e)===`[object ${t}]`}function xr(e){return Er(e,"ErrorEvent")}function kr(e){return Er(e,"DOMError")}function Tr(e){return Er(e,"String")}function Or(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Ir(e){return null===e||Or(e)||"object"!=typeof e&&"function"!=typeof e}function Cr(e){return Er(e,"Object")}function Rr(e){return"undefined"!=typeof Event&&Pr(e,Event)}function Ar(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function Pr(e,t){try{return e instanceof t}catch(r){return!1}}function Mr(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}function jr(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function Dr(e,t){if(!Array.isArray(e))return"";const r=[];for(let o=0;o<e.length;o++){const t=e[o];try{Mr(t)?r.push("[VueViewModel]"):r.push(String(t))}catch(n){r.push("[value cannot be serialized]")}}return r.join(t)}function Fr(e,t,r=!1){return!!Tr(e)&&(Er(t,"RegExp")?t.test(e):!!Tr(t)&&(r?e===t:e.includes(t)))}function Lr(e,t=[],r=!1){return t.some((t=>Fr(e,t,r)))}function Nr(e,t,r=250,n,o,a,i){if(!(a.exception&&a.exception.values&&i&&Pr(i.originalException,Error)))return;const s=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;var u,l;s&&(a.exception.values=(u=qr(e,t,o,i.originalException,n,a.exception.values,s,0),l=r,u.map((e=>(e.value&&(e.value=jr(e.value,l)),e)))))}function qr(e,t,r,n,o,a,i,s){if(a.length>=r+1)return a;let u=[...a];if(Pr(n[o],Error)){Ur(i,s);const a=e(t,n[o]),l=u.length;Br(a,o,l,s),u=qr(e,t,r,n[o],o,[a,...u],a,l)}return Array.isArray(n.errors)&&n.errors.forEach(((n,a)=>{if(Pr(n,Error)){Ur(i,s);const l=e(t,n),c=u.length;Br(l,`errors[${a}]`,c,s),u=qr(e,t,r,n,o,[l,...u],l,c)}})),u}function Ur(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function Br(e,t,r,n){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}var $r="8.30.0",Vr=globalThis;function Wr(e,t,r){const n=r||Vr,o=n.__SENTRY__=n.__SENTRY__||{},a=o[$r]=o["8.30.0"]||{};return a[e]||(a[e]=t())}var zr=Vr,Qr=80;function Hr(e,t={}){if(!e)return"<unknown>";try{let r=e;const n=5,o=[];let a=0,i=0;const s=" > ",u=3;let l;const c=Array.isArray(t)?t:t.keyAttrs,p=!Array.isArray(t)&&t.maxStringLength||Qr;for(;r&&a++<n&&(l=Gr(r,c),!("html"===l||a>1&&i+o.length*u+l.length>=p));)o.push(l),i+=l.length,r=r.parentNode;return o.reverse().join(s)}catch(r){return"<unknown>"}}function Gr(e,t){const r=e,n=[];if(!r||!r.tagName)return"";if(zr.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}n.push(r.tagName.toLowerCase());const o=t&&t.length?t.filter((e=>r.getAttribute(e))).map((e=>[e,r.getAttribute(e)])):null;if(o&&o.length)o.forEach((e=>{n.push(`[${e[0]}="${e[1]}"]`)}));else{r.id&&n.push(`#${r.id}`);const e=r.className;if(e&&Tr(e)){const t=e.split(/\s+/);for(const e of t)n.push(`.${e}`)}}for(const a of["aria-label","type","name","title","alt"]){const e=r.getAttribute(a);e&&n.push(`[${a}="${e}"]`)}return n.join("")}function Kr(){try{return zr.document.location.href}catch(e){return""}}function Yr(e){if(!zr.HTMLElement)return null;let t=e;for(let r=0;r<5;
2r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}var Jr="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Xr=["debug","info","warn","error","log","assert","trace"],Zr={};function en(e){if(!("console"in Vr))return e();const t=Vr.console,r={},n=Object.keys(Zr);n.forEach((e=>{const n=Zr[e];r[e]=t[e],t[e]=n}));try{return e()}finally{n.forEach((e=>{t[e]=r[e]}))}}var tn=Wr("logger",(function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Jr?Xr.forEach((r=>{t[r]=(...t)=>{e&&en((()=>{Vr.console[r](`Sentry Logger [${r}]:`,...t)}))}})):Xr.forEach((e=>{t[e]=()=>{}})),t})),rn=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function nn(e,t=!1){const{host:r,path:n,pass:o,port:a,projectId:i,protocol:s,publicKey:u}=e;return`${s}://${u}${t&&o?`:${o}`:""}@${r}${a?`:${a}`:""}/${n?`${n}/`:n}${i}`}function on(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function an(e){const t="string"==typeof e?function(e){const t=rn.exec(e);if(!t)return void en((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[r,n,o="",a="",i="",s=""]=t.slice(1);let u="",l=s;const c=l.split("/");if(c.length>1&&(u=c.slice(0,-1).join("/"),l=c.pop()),l){const e=l.match(/^\d+/);e&&(l=e[0])}return on({host:a,pass:o,path:u,projectId:l,port:i,protocol:r,publicKey:n})}(e):on(e);if(t&&function(e){if(!Jr)return!0;const{port:t,projectId:r,protocol:n}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(tn.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(r.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(n)?t&&isNaN(parseInt(t,10))&&(tn.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(tn.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),1):(tn.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),1)))}(t))return t}var sn=class extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}};function un(e,t,r){if(!(t in e))return;const n=e[t],o=r(n);
2"function"==typeof o&&cn(o,n),e[t]=o}function ln(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch(n){Jr&&tn.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function cn(e,t){try{e.prototype=t.prototype=t.prototype||{},ln(e,"__sentry_original__",t)}catch(r){}}function pn(e){return e.__sentry_original__}function dn(e){if(wr(e))return{message:e.message,name:e.name,stack:e.stack,...hn(e)};if(Rr(e)){const t={type:e.type,target:fn(e.target),currentTarget:fn(e.currentTarget),...hn(e)};return"undefined"!=typeof CustomEvent&&Pr(e,CustomEvent)&&(t.detail=e.detail),t}return e}function fn(e){try{return t=e,"undefined"!=typeof Element&&Pr(t,Element)?Hr(e):Object.prototype.toString.call(e)}catch(r){return"<unknown>"}var t}function hn(e){if("object"==typeof e&&null!==e){const t={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}return{}}function mn(e){return yn(e,new Map)}function yn(e,t){if(function(e){if(!Cr(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(t){return!0}}(e)){const r=t.get(e);if(void 0!==r)return r;const n={};t.set(e,n);for(const o of Object.keys(e))void 0!==e[o]&&(n[o]=yn(e[o],t));return n}if(Array.isArray(e)){const r=t.get(e);if(void 0!==r)return r;const n=[];return t.set(e,n),e.forEach((e=>{n.push(yn(e,t))})),n}return e}var gn=50,vn=/\(error: (.*)\)/,bn=/captureMessage|captureException/;function _n(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,r=0,n=0)=>{const o=[],a=e.split("\n");for(let i=r;i<a.length;i++){const e=a[i];if(e.length>1024)continue;const r=vn.test(e)?e.replace(vn,"$1"):e;if(!r.match(/\S*Error: /)){for(const e of t){const t=e(r);if(t){o.push(t);break}}if(o.length>=gn+n)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(Sn(t).function||"")&&t.pop();t.reverse(),bn.test(Sn(t).function||"")&&(t.pop(),bn.test(Sn(t).function||"")&&t.pop());return t.slice(0,gn).map((e=>({...e,filename:e.filename||Sn(t).filename,function:e.function||"?"})))}(o.slice(n))}}function Sn(e){return e[e.length-1]||{}}var wn="<anonymous>";function En(e){try{return e&&"function"==typeof e&&e.name||wn}catch(t){return wn}}function xn(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(r){return}}}var kn={},Tn={};function On(e,t){kn[e]=kn[e]||[],kn[e].push(t)}function In(e,t){Tn[e]||(t(),Tn[e]=!0)}function Cn(e,t){const r=e&&kn[e];if(r)for(const o of r)try{o(t)}catch(n){Jr&&tn.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${En(o)}\nError:`,n)}}function Rn(){"console"in Vr&&Xr.forEach((function(e){e in Vr.console&&un(Vr.console,e,(function(t){return Zr[e]=t,function(...t){Cn("console",{args:t,level:e});const r=Zr[e];r&&r.apply(Vr.console,t)}}))}))}var An=Vr;function Pn(){if(!("fetch"in An))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function Mn(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}var jn=1e3;function Dn(){return Date.now()/jn}var Fn=function(){const{performance:e}=Vr;if(!e||!e.now)return Dn;const t=Date.now()-e.now(),r=null==e.timeOrigin?t:e.timeOrigin;return()=>(r+e.now())/jn}(),Ln=(()=>{const{performance:e}=Vr;if(!e||!e.now)return void"none";const t=36e5,r=e.now(),n=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+r-n):t,a=o<t,i=e.timing&&e.timing.navigationStart,s="number"==typeof i?Math.abs(i+r-n):t;return a||s<t?o<=s?("timeOrigin",e.timeOrigin):("navigationStart",i):("dateNow",n)})();function Nn(e,t){const r="fetch";On(r,e),In(r,(()=>qn(void 0,t)))}function qn(e,t=!1){t&&!function(){if("string"==typeof EdgeRuntime)return!0;if(!Pn())return!1;if(Mn(An.fetch))return!0;let e=!1;const t=An.document;if(t&&"function"==typeof t.createElement)try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(e=Mn(r.contentWindow.fetch)),t.head.removeChild(r)}catch(r){Jr&&tn.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return e}()||un(Vr,"fetch",(function(t){return function(...r){const{method:n,url:o}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,r]=e;return{url:$n(t),method:Bn(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:$n(t),method:Bn(t,"method")?String(t.method).toUpperCase():"GET"}}(r),a={args:r,fetchData:{method:n,url:o},startTimestamp:1e3*Fn()};e||Cn("fetch",{...a});const i=(new Error).stack;return t.apply(Vr,r).then((async t=>(e?e(t):Cn("fetch",{...a,endTimestamp:1e3*Fn(),response:t}),t)),(e=>{throw Cn("fetch",{...a,endTimestamp:1e3*Fn(),error:e}),wr(e)&&void 0===e.stack&&(e.stack=i,ln(e,"framesToPop",1)),e}))}}))}async function Un(e){let t;try{t=e.clone()}catch(r){return}await async function(e,t){if(e&&e.body&&e.body.getReader){const r=e.body.getReader();async function n({done:e}){if(e)return Promise.resolve();try{await n(await Promise.race([r.read(),new Promise((e=>{setTimeout((()=>{e({done:!0})}),5e3)}))]))}catch(t){}}
2return r.read().then(n).then(t).catch((()=>{}))}}(t,(()=>{Cn("fetch-body-resolved",{endTimestamp:1e3*Fn(),response:e})}))}function Bn(e,t){return!!e&&"object"==typeof e&&!!e[t]}function $n(e){return"string"==typeof e?e:e?Bn(e,"url")?e.url:e.toString?e.toString():"":""}var Vn=null;function Wn(e){const t="error";On(t,e),In(t,zn)}function zn(){Vn=Vr.onerror,Vr.onerror=function(e,t,r,n,o){return Cn("error",{column:n,error:o,line:r,msg:e,url:t}),!(!Vn||Vn.__SENTRY_LOADER__)&&Vn.apply(this,arguments)},Vr.onerror.__SENTRY_INSTRUMENTED__=!0}var Qn,Hn=null;function Gn(e){const t="unhandledrejection";On(t,e),In(t,Kn)}function Kn(){Hn=Vr.onunhandledrejection,Vr.onunhandledrejection=function(e){return Cn("unhandledrejection",e),!(Hn&&!Hn.__SENTRY_LOADER__)||Hn.apply(this,arguments)},Vr.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Yn(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function Jn(){return"undefined"!=typeof window&&(!Yn()||void 0!==Vr.process&&"renderer"===Vr.process.type)}function Xn(){const e=Vr,t=e.crypto||e.msCrypto;let r=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(r=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(n){}return"10000000100040008000100000000000".replace(/[018]/g,(e=>(e^(15&r())>>e/4).toString(16)))}function Zn(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function eo(e){const{message:t,event_id:r}=e;if(t)return t;const n=Zn(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function to(e,t,r){const n=e.exception=e.exception||{},o=n.values=n.values||[],a=o[0]=o[0]||{};a.value||(a.value=t||""),a.type||(a.type=r||"Error")}function ro(e,t){const r=Zn(e);if(!r)return;const n=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){const e={...n&&n.data,...t.data};r.mechanism.data=e}}function no(e){if(e&&e.__sentry_captured__)return!0;try{ln(e,"__sentry_captured__",!0)}catch(t){}return!1}function oo(e){return Array.isArray(e)?e:[e]}function ao(e,t=100,r=1/0){try{return so("",e,t,r)}catch(n){return{ERROR:`**non-serializable** (${n})`}}}function io(e,t=3,r=102400){const n=ao(e,t);return o=n,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>r?io(e,t-1,r):n;var o}function so(e,t,r=1/0,n=1/0,o=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(r){if(e)return!!t.has(r)||(t.add(r),!1);for(let e=0;e<t.length;e++)if(t[e]===r)return!0;return t.push(r),!1},function(r){if(e)t.delete(r);else for(let e=0;e<t.length;e++)if(t[e]===r){t.splice(e,1);break}}]}()){const[a,i]=o;if(null==t||["number","boolean","string"].includes(typeof t)&&!Number.isNaN(t))return t;const s=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(Mr(t))return"[VueViewModel]";if(Cr(r=t)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r)return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${En(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const n=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}var r}(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;const u="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:r;if(0===u)return s.replace("object ","");if(a(t))return"[Circular ~]";const l=t;if(l&&"function"==typeof l.toJSON)try{return so("",l.toJSON(),u-1,n,o)}catch(f){}const c=Array.isArray(t)?[]:{};let p=0;const d=dn(t);for(const h in d){if(!Object.prototype.hasOwnProperty.call(d,h))continue;if(p>=n){c[h]="[MaxProperties ~]";break}const e=d[h];c[h]=so(h,e,u-1,n,o),p++}return i(t),c}function uo(e){return new co((t=>{t(e)}))}function lo(e){return new co(((t,r)=>{r(e)}))}
2!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(Qn||(Qn={}));var co=class e{constructor(t){e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),this._state=Qn.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(r){this._reject(r)}}then(t,r){return new e(((e,n)=>{this._handlers.push([!1,r=>{if(t)try{e(t(r))}catch(o){n(o)}else e(r)},t=>{if(r)try{e(r(t))}catch(o){n(o)}else n(t)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(t){return new e(((e,r)=>{let n,o;return this.then((e=>{o=!1,n=e,t&&t()}),(e=>{o=!0,n=e,t&&t()})).then((()=>{o?r(n):e(n)}))}))}__init(){this._resolve=e=>{this._setResult(Qn.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Qn.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===Qn.PENDING&&(Ar(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===Qn.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===Qn.RESOLVED&&e[1](this._value),this._state===Qn.REJECTED&&e[2](this._value),e[0]=!0)}))}}};function po(e){const t=[];function r(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(n){if(!(void 0===e||t.length<e))return lo(new sn("Not adding Promise because buffer limit was reached."));const o=n();return-1===t.indexOf(o)&&t.push(o),o.then((()=>r(o))).then(null,(()=>r(o).then(null,(()=>{})))),o},drain:function(e){return new co(((r,n)=>{let o=t.length;if(!o)return r(!0);const a=setTimeout((()=>{e&&e>0&&r(!1)}),e);t.forEach((e=>{uo(e).then((()=>{--o||(clearTimeout(a),r(!0))}),n)}))}))}}}function fo(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}var ho=["fatal","error","warning","log","info","debug"];function mo(e){return"warn"===e?"warning":ho.includes(e)?e:"log"}var yo="baggage",go="sentry-",vo=/^sentry-/;function bo(e){const t=function(e){if(!e||!Tr(e)&&!Array.isArray(e))return;return Array.isArray(e)?e.reduce(((e,t)=>{const r=So(t);return Object.entries(r).forEach((([t,r])=>{e[t]=r})),e}),{}):So(e)}(e);if(!t)return;const r=Object.entries(t).reduce(((e,[t,r])=>{if(t.match(vo)){e[t.slice(7)]=r}return e}),{});return Object.keys(r).length>0?r:void 0}function _o(e){if(e)return function(e){if(0===Object.keys(e).length)return;return Object.entries(e).reduce(((e,[t,r],n)=>{const o=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`,a=0===n?o:`${e},${o}`;return a.length>8192?(Jr&&tn.warn(`Not adding key: ${t} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):a}),"")}(Object.entries(e).reduce(((e,[t,r])=>(r&&(e[`${go}${t}`]=r),e)),{}))}function So(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,r])=>(t&&r&&(e[t]=r),e)),{})}var wo=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Eo(e,t){const r=function(e){if(!e)return;const t=e.match(wo);if(!t)return;let r;return"1"===t[3]?r=!0:"0"===t[3]&&(r=!1),{traceId:t[1],parentSampled:r,parentSpanId:t[2]}}(e),n=bo(t),{traceId:o,parentSpanId:a,parentSampled:i}=r||{};return r?{traceId:o||Xn(),parentSpanId:a||Xn().substring(16),spanId:Xn().substring(16),sampled:i,dsc:n||{}}:{traceId:o||Xn(),spanId:Xn().substring(16)}}function xo(e=Xn(),t=Xn().substring(16),r){let n="";return void 0!==r&&(n=r?"-1":"-0"),`${e}-${t}${n}`}function ko(e,t=[]){return[e,t]}function To(e,t){const[r,n]=e;return[r,[...n,t]]}function Oo(e,t){const r=e[1];for(const n of r){if(t(n,n[0].type))return!0}return!1}function Io(e){return Vr.__SENTRY__&&Vr.__SENTRY__.encodePolyfill?Vr.__SENTRY__.encodePolyfill(e):(new TextEncoder).encode(e)}function Co(e){const[t,r]=e;let n=JSON.stringify(t);function o(e){"string"==typeof n?n="string"==typeof e?n+e:[Io(n),e]:n.push("string"==typeof e?Io(e):e)}for(const i of r){const[e,t]=i;if(o(`\n${JSON.stringify(e)}\n`),"string"==typeof t||t instanceof Uint8Array)o(t);else{let e;try{e=JSON.stringify(t)}catch(a){e=JSON.stringify(ao(t))}o(e)}}return"string"==typeof n?n:function(e){const t=e.reduce(((e,t)=>
2e+t.length),0),r=new Uint8Array(t);let n=0;for(const o of e)r.set(o,n),n+=o.length;return r}(n)}function Ro(e){return[{type:"span"},e]}function Ao(e){const t="string"==typeof e.data?Io(e.data):e.data;return[mn({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}var Po={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Mo(e){return Po[e]}function jo(e){if(!e||!e.sdk)return;const{name:t,version:r}=e.sdk;return{name:t,version:r}}function Do(e,t,r,n){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:nn(n)},...o&&{trace:mn({...o})}}}var Fo=6e4;function Lo(e,t,r=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>r}function No(e,{statusCode:t,headers:r},n=Date.now()){const o={...e},a=r&&r["x-sentry-rate-limits"],i=r&&r["retry-after"];if(a)for(const s of a.trim().split(",")){const[e,t,,,r]=s.split(":",5),a=parseInt(e,10),i=1e3*(isNaN(a)?60:a);if(t)for(const s of t.split(";"))"metric_bucket"===s&&r&&!r.split(";").includes("custom")||(o[s]=n+i);else o.all=n+i}else i?o.all=n+function(e,t=Date.now()){const r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;const n=Date.parse(`${e}`);return isNaN(n)?Fo:n-t}(i,n):429===t&&(o.all=n+6e4);return o}function qo(e){let t,r=e[0],n=1;for(;n<e.length;){const o=e[n],a=e[n+1];if(n+=2,("optionalAccess"===o||"optionalCall"===o)&&null==r)return;"access"===o||"optionalAccess"===o?(t=r,r=a(r)):"call"!==o&&"optionalCall"!==o||(r=a(((...e)=>r.call(t,...e))),t=void 0)}return r}function Uo(){return{traceId:Xn(),spanId:Xn().substring(16)}}var Bo=Vr;var $o="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Vo(){return Wo(Vr),Vr}function Wo(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||"8.30.0",t[$r]=t["8.30.0"]||{}}function zo(e){const t=Fn(),r={sid:Xn(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return mn({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(r)};return e&&Qo(r,e),r}function Qo(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||Fn(),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:Xn()),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)}var Ho="_sentrySpan";function Go(e,t){t?ln(e,Ho,t):delete e[Ho]}function Ko(e){return e[Ho]}var Yo=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Uo()}clone(){const t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Go(t,Ko(this)),t}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&&Qo(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,[r,n]=t instanceof Yo?[t.getScopeData(),t.getRequestSession()]:Cr(t)?[e,e.requestSession]:[],{tags:o,extra:a,user:i,contexts:s,level:u,fingerprint:l=[],propagationContext:c}=r||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},i&&Object.keys(i).length&&(this._user=i),u&&(this._level=u),l.length&&(this._fingerprint=l),c&&
2(this._propagationContext=c),n&&(this._requestSession=n),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,Go(this,void 0),this._attachments=[],this._propagationContext=Uo(),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const r="number"==typeof t?t:100;if(r<=0)return this;const n={timestamp:Dn(),...e},o=this._breadcrumbs;return o.push(n),this._breadcrumbs=o.length>r?o.slice(-r):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:Ko(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const r=t&&t.event_id?t.event_id:Xn();if(!this._client)return tn.warn("No client configured on scope - will not capture exception!"),r;const n=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...t,event_id:r},this),r}captureMessage(e,t,r){const n=r&&r.event_id?r.event_id:Xn();if(!this._client)return tn.warn("No client configured on scope - will not capture message!"),n;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...r,event_id:n},this),n}captureEvent(e,t){const r=t&&t.event_id?t.event_id:Xn();return this._client?(this._client.captureEvent(e,{...t,event_id:r},this),r):(tn.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}};var Jo=class{constructor(e,t){let r,n;r=e||new Yo,n=t||new Yo,this._stack=[{scope:r}],this._isolationScope=n}withScope(e){const t=this._pushScope();let r;try{r=e(t)}catch(n){throw this._popScope(),n}return Ar(r)?r.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),r)}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 Xo(){const e=Wo(Vo());return e.stack=e.stack||new Jo(Wr("defaultCurrentScope",(()=>new Yo)),Wr("defaultIsolationScope",(()=>new Yo)))}function Zo(e){return Xo().withScope(e)}function ea(e,t){const r=Xo();return r.withScope((()=>(r.getStackTop().scope=e,t(e))))}function ta(e){return Xo().withScope((()=>e(Xo().getIsolationScope())))}function ra(e){const t=Wo(e);return t.acs?t.acs:{withIsolationScope:ta,withScope:Zo,withSetScope:ea,withSetIsolationScope:(e,t)=>ta(t),getCurrentScope:()=>Xo().getScope(),getIsolationScope:()=>Xo().getIsolationScope()}}function na(){return ra(Vo()).getCurrentScope()}function oa(){return ra(Vo()).getIsolationScope()}function aa(){return Wr("globalScope",(()=>new Yo))}function ia(...e){const t=ra(Vo());if(2===e.length){const[r,n]=e;return r?t.withSetScope(r,n):t.withScope(n)}return t.withScope(e[0])}function sa(){return na().getClient()}var ua="_sentryMetrics";function la(e){const t=e[ua];if(!t)return;const r={};for(const[,[n,o]]of t)(r[n]||(r[n]=[])).push(mn(o));return r}var ca="sentry.source",pa="sentry.sample_rate",da="sentry.op",fa="sentry.origin",ha="sentry.idle_span_finish_reason",ma="sentry.measurement_unit",ya="sentry.measurement_value",ga="sentry.exclusive_time";function va(e,t){e.setAttribute("http.response.status_code",t);const r=function(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"};default:return{code:2,message:"internal_error"}}return{code:2,message:"unknown_error"}}(t);"unknown_error"!==r.message&&e.setStatus(r)}function ba(e){const{spanId:t,traceId:r}=e.spanContext(),{data:n,op:o,parent_span_id:a,status:i,origin:s}=xa(e);return mn({parent_span_id:a,span_id:t,trace_id:r,data:n,op:o,status:i,origin:s})}function _a(e){const{spanId:t,traceId:r}=e.spanContext(),{parent_span_id:n}=xa(e);return mn({parent_span_id:n,span_id:t,trace_id:r})}function Sa(e){const{traceId:t,spanId:r}=e.spanContext();return xo(t,r,ka(e))}function wa(e){return"number"==typeof e?Ea(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Ea(e.getTime()):Fn()}function Ea(e){return e>9999999999?e/1e3:e}function xa(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();try{const{spanId:t,traceId:r}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:n,startTime:o,name:a,endTime:i,parentSpanId:s,status:u}=e;return mn({span_id:t,trace_id:r,data:n,description:a,parent_span_id:s,start_timestamp:wa(o),timestamp:wa(i)||void 0,status:Ta(u),op:n[da],origin:n[fa],_metrics_summary:la(e)})}return{span_id:t,trace_id:r}}catch(t){return{}}}function ka(e){const{traceFlags:t}=e.spanContext();return 1===t}function Ta(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"unknown_error"}var Oa="_sentryChildSpans",Ia="_sentryRootSpan";function Ca(e,t){const r=e[Ia]||e;ln(t,Ia,r),e[Oa]?e[Oa].add(t):ln(e,Oa,new Set([t]))}function Ra(e){const t=new Set;return function e(r){if(!t.has(r)&&ka(r)){t.add(r);const n=r[Oa]?Array.from(r[Oa]):[];for(const t of n)e(t)}}(e),Array.from(t)}function Aa(e){return e[Ia]||e}function Pa(){const e=ra(Vo());return e.getActiveSpan?e.getActiveSpan():Ko(na())}var Ma=!1;function ja(){const e=Pa(),t=e&&Aa(e);if(t){const e="internal_error";$o&&tn.log(`[Tracing] Root span: ${e} -> Global error occured`),t.setStatus({code:2,message:e})}}ja.tag="sentry_tracingErrorCallback";var Da="_sentryScope",Fa="_sentryIsolationScope";function La(e){return{scope:e[Da],isolationScope:e[Fa]}}function Na(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=sa(),r=e||t&&t.getOptions();return!!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)}var qa=class{constructor(e={}){this._traceId=e.traceId||Xn(),this._spanId=e.spanId||Xn().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}
2addEvent(e,t,r){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}},Ua="production",Ba="_frozenDsc";function $a(e,t){ln(e,Ba,t)}function Va(e,t){const r=t.getOptions(),{publicKey:n}=t.getDsn()||{},o=mn({environment:r.environment||"production",release:r.release,public_key:n,trace_id:e});return t.emit("createDsc",o),o}function Wa(e){const t=sa();if(!t)return{};const r=Va(xa(e).trace_id||"",t),n=Aa(e),o=n[Ba];if(o)return o;const a=n.spanContext().traceState,i=a&&a.get("sentry.dsc"),s=i&&bo(i);if(s)return s;const u=xa(n),l=u.data||{},c=l[pa];null!=c&&(r.sample_rate=`${c}`);const p=l[ca],d=u.description;return"url"!==p&&d&&(r.transaction=d),r.sampled=String(ka(n)),t.emit("createDsc",r,n),r}function za(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;$o&&tn.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 Qa(e){if(!e||0===e.length)return;const t={};return e.forEach((e=>{const r=e.attributes||{},n=r[ma],o=r[ya];"string"==typeof n&&"number"==typeof o&&(t[e.name]={value:o,unit:n})})),t}var Ha=class{constructor(e={}){this._traceId=e.traceId||Xn(),this._spanId=e.spanId||Xn().substring(16),this._startTime=e.startTimestamp||Fn(),this._attributes={},this.setAttributes({[fa]:"manual",[da]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this}addLinks(e){return this}recordException(e,t){}spanContext(){const{_spanId:e,_traceId:t,_sampled:r}=this;return{spanId:e,traceId:t,traceFlags:r?1:0}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach((t=>this.setAttribute(t,e[t]))),this}updateStartTime(e){this._startTime=wa(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this}end(e){this._endTime||(this._endTime=wa(e),function(e){if(!$o)return;const{description:t="< unknown name >",op:r="< unknown op >"}=xa(e),{spanId:n}=e.spanContext(),o=`[Tracing] Finishing "${r}" ${Aa(e)===e?"root ":""}span "${t}" with ID ${n}`;tn.log(o)}(this),this._onSpanEnded())}getSpanJSON(){return mn({data:this._attributes,description:this._name,op:this._attributes[da],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Ta(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[fa],_metrics_summary:la(this),profile_id:this._attributes["sentry.profile_id"],exclusive_time:this._attributes[ga],measurements:Qa(this._events),is_segment:this._isStandaloneSpan&&Aa(this)===this||void 0,segment_id:this._isStandaloneSpan?Aa(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,r){$o&&tn.log("[Tracing] Adding an event to span:",e);const n=Ga(t)?t:r||Fn(),o=Ga(t)?{}:t||{},a={name:e,time:wa(n),attributes:o};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=sa();if(e&&e.emit("spanEnd",this),!this._isStandaloneSpan&&this!==Aa(this))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){const t=sa();if(!t)return;const r=e[1];if(!r||0===r.length)return void t.recordDroppedEvent("before_send","span");const n=t.getTransport();n&&n.send(e).then(null,(e=>{$o&&tn.error("Error while sending span:",e)}))}(function(e,t){const r=Wa(e[0]),n=t&&t.getDsn(),o=t&&t.getOptions().tunnel,a={sent_at:(new Date).toISOString(),...function(e){return!!e.trace_id&&!!e.public_key}(r)&&{trace:r},...!!o&&n&&{dsn:nn(n)}},i=t&&t.getOptions().beforeSendSpan,s=i?e=>i(xa(e)):e=>xa(e),u=[];for(const l of e){const e=s(l);e&&u.push(Ro(e))}return ko(a,u)}([this],e)):($o&&tn.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));const t=this._convertSpanToTransaction();t&&(La(this).scope||na()).captureEvent(t)}_convertSpanToTransaction(){if(!Ka(xa(this)))return;this._name||($o&&tn.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:e,isolationScope:t}=La(this),r=(e||na()).getClient()||sa();if(!0!==this._sampled)return $o&&tn.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(r&&r.recordDroppedEvent("sample_rate","transaction"));const n=Ra(this).filter((e=>e!==this&&!function(e){return e instanceof Ha&&e.isStandaloneSpan()}(e))).map((e=>xa(e))).filter(Ka),o=this._attributes[ca],a={contexts:{trace:ba(this)},spans:n.length>1e3?n.sort(((e,t)=>e.start_timestamp-t.start_timestamp)).slice(0,1e3):n,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...mn({dynamicSamplingContext:Wa(this)})},_metrics_summary:la(this),...o&&{transaction_info:{source:o}}},i=Qa(this._events);return i&&Object.keys(i).length&&($o&&tn.log("[Measurements] Adding measurements to transaction event",JSON.stringify(i,void 0,2)),a.measurements=i),a}};function Ga(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function Ka(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}var Ya="__SENTRY_SUPPRESS_TRACING__";function Ja(e){const t=Za();if(t.startInactiveSpan)return t.startInactiveSpan(e);const r=function(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...t};return r.startTimestamp=wa(e.startTime),delete r.startTime,r}return t}(e),{forceTransaction:n,parentSpan:o}=e;return(e.scope?t=>ia(e.scope,t):void 0!==o?e=>Xa(o,e):e=>e())((()=>{const t=na(),o=function(e){const t=Ko(e);if(!t)return;const r=sa();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?Aa(t):t}(t);return e.onlyIfParent&&!o?new qa:function({parentSpan:e,spanArguments:t,forceTransaction:r,scope:n}){if(!Na())return new qa;const o=oa();let a;if(e&&!r)a=function(e,t,r){const{spanId:n,traceId:o}=e.spanContext(),a=!t.getScopeData().sdkProcessingMetadata[Ya]&&ka(e),i=a?new Ha({...r,parentSpanId:n,traceId:o,sampled:a}):new qa({traceId:o});Ca(e,i);const s=sa();s&&(s.emit("spanStart",i),r.endTimestamp&&s.emit("spanEnd",i));return i}(e,n,t),Ca(e,a);else if(e){const r=Wa(e),{traceId:o,spanId:i}=e.spanContext(),s=ka(e);a=ei({traceId:o,parentSpanId:i,...t},n,s),$a(a,r)}else{const{traceId:e,dsc:r,parentSpanId:i,sampled:s}={...o.getPropagationContext(),...n.getPropagationContext()};a=ei({traceId:e,parentSpanId:i,...t},n,s),r&&$a(a,r)}return function(e){if(!$o)return;const{description:t="< unknown name >",op:r="< unknown op >",parent_span_id:n}=xa(e),{spanId:o}=e.spanContext(),a=ka(e),i=Aa(e),s=i===e,u=`[Tracing] Starting ${a?"sampled":"unsampled"} ${s?"root ":""}span`,l=[`op: ${r}`,`name: ${t}`,`ID: ${o}`];if(n&&l.push(`parent ID: ${n}`),!s){const{op:e,description:t}=xa(i);l.push(`root ID: ${i.spanContext().spanId}`),e&&l.push(`root op: ${e}`),t&&l.push(`root description: ${t}`)}tn.log(`${u}\n ${l.join("\n ")}`)}(a),function(e,t,r){e&&(ln(e,Fa,r),ln(e,Da,t))}(a,n,o),a}({parentSpan:o,spanArguments:r,forceTransaction:n,scope:t})}))}function Xa(e,t){const r=Za();return r.withActiveSpan?r.withActiveSpan(e,t):ia((r=>(Go(r,e||void 0),t(r))))}function Za(){return ra(Vo())}function ei(e,t,r){const n=sa(),o=n&&n.getOptions()||{},{name:a="",attributes:i}=e,[s,u]=t.getScopeData().sdkProcessingMetadata[Ya]?[!1]:function(e,t){if(!Na(e))return[!1];let r;r="function"==typeof e.tracesSampler?e.tracesSampler(t):void 0!==t.parentSampled?t.parentSampled:void 0!==e.tracesSampleRate?e.tracesSampleRate:1;const n=za(r);return void 0===n?($o&&tn.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):n?Math.random()<n?[!0,n]:($o&&tn.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),[!1,n]):($o&&tn.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,n])}(o,{name:a,parentSampled:r,attributes:i,transactionContext:{name:a,parentSampled:r}}),l=new Ha({...e,attributes:{[ca]:"custom",...e.attributes},sampled:s});return void 0!==u&&l.setAttribute(pa,u),n&&n.emit("spanStart",l),l}var ti={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},ri="heartbeatFailed",ni="idleTimeout",oi="finalTimeout",ai="externalFinish";function ii(e,t={}){const r=new Map;let n,o=!1,a=ai,i=!t.disableAutoFinish;const s=[],{idleTimeout:u=ti.idleTimeout,finalTimeout:l=ti.finalTimeout,childSpanTimeout:c=ti.childSpanTimeout,beforeSpanEnd:p}=t,d=sa();if(!d||!Na())return new qa;const f=na(),h=Pa(),m=function(e){const t=Ja(e);
2return Go(na(),t),$o&&tn.log("[Tracing] Started span is an idle span"),t}(e);function y(){n&&(clearTimeout(n),n=void 0)}function g(e){y(),n=setTimeout((()=>{!o&&0===r.size&&i&&(a=ni,m.end(e))}),u)}function v(e){n=setTimeout((()=>{!o&&i&&(a=ri,m.end(e))}),c)}function b(e){o=!0,r.clear(),s.forEach((e=>e())),Go(f,h);const t=xa(m),{start_timestamp:n}=t;if(!n)return;(t.data||{})["sentry.idle_span_finish_reason"]||m.setAttribute(ha,a),tn.log(`[Tracing] Idle span "${t.op}" finished`);const i=Ra(m).filter((e=>e!==m));let c=0;i.forEach((t=>{t.isRecording()&&(t.setStatus({code:2,message:"cancelled"}),t.end(e),$o&&tn.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));const{timestamp:r=0,start_timestamp:n=0}=xa(t),o=n<=e,a=r-n<=(l+u)/1e3;if($o){const e=JSON.stringify(t,void 0,2);o?a||tn.log("[Tracing] Discarding span since it finished after idle span final timeout",e):tn.log("[Tracing] Discarding span since it happened after idle span was finished",e)}a&&o||(!function(e,t){e[Oa]&&e[Oa].delete(t)}(m,t),c++)})),c>0&&m.setAttribute("sentry.idle_span_discarded_spans",c)}return m.end=new Proxy(m.end,{apply(e,t,r){p&&p(m);const[n,...o]=r,a=wa(n||Fn()),i=Ra(m).filter((e=>e!==m));if(!i.length)return b(a),Reflect.apply(e,t,[a,...o]);const s=i.map((e=>xa(e).timestamp)).filter((e=>!!e)),u=s.length?Math.max(...s):void 0,c=xa(m).start_timestamp,d=Math.min(c?c+l/1e3:1/0,Math.max(c||-1/0,Math.min(a,u||1/0)));return b(d),Reflect.apply(e,t,[d,...o])}}),s.push(d.on("spanStart",(e=>{var t;o||e===m||xa(e).timestamp||Ra(m).includes(e)&&(t=e.spanContext().spanId,y(),r.set(t,!0),v(Fn()+c/1e3))}))),s.push(d.on("spanEnd",(e=>{var t;o||(t=e.spanContext().spanId,r.has(t)&&r.delete(t),0===r.size&&g(Fn()+u/1e3))}))),s.push(d.on("idleSpanEnableAutoFinish",(e=>{e===m&&(i=!0,g(),r.size&&v())}))),t.disableAutoFinish||g(),setTimeout((()=>{o||(m.setStatus({code:2,message:"deadline_exceeded"}),a=oi,m.end())}),l),m}function si(e,t,r,n=0){return new co(((o,a)=>{const i=e[n];if(null===t||"function"!=typeof i)o(t);else{const s=i({...t},r);$o&&i.id&&null===s&&tn.log(`Event processor "${i.id}" dropped event`),Ar(s)?s.then((t=>si(e,t,r,n+1).then(o))).then(null,a):si(e,s,r,n+1).then(o).then(null,a)}}))}function ui(e,t){const{fingerprint:r,span:n,breadcrumbs:o,sdkProcessingMetadata:a}=t;!function(e,t){const{extra:r,tags:n,user:o,contexts:a,level:i,transactionName:s}=t,u=mn(r);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});const l=mn(n);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const c=mn(o);c&&Object.keys(c).length&&(e.user={...c,...e.user});const p=mn(a);p&&Object.keys(p).length&&(e.contexts={...p,...e.contexts});i&&(e.level=i);s&&"transaction"!==e.type&&(e.transaction=s)}(e,t),n&&function(e,t){e.contexts={trace:_a(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Wa(t),...e.sdkProcessingMetadata};const r=xa(Aa(t)).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}(e,n),function(e,t){e.fingerprint=e.fingerprint?oo(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,r),function(e,t){const r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}(e,o),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,a)}function li(e,t){const{extra:r,tags:n,user:o,contexts:a,level:i,sdkProcessingMetadata:s,breadcrumbs:u,fingerprint:l,eventProcessors:c,attachments:p,propagationContext:d,transactionName:f,span:h}=t;ci(e,"extra",r),ci(e,"tags",n),ci(e,"user",o),ci(e,"contexts",a),ci(e,"sdkProcessingMetadata",s),i&&(e.level=i),f&&(e.transactionName=f),h&&(e.span=h),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),c.length&&(e.eventProcessors=[...e.eventProcessors,...c]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...d}}function ci(e,t,r){if(r&&Object.keys(r).length){e[t]={...e[t]};for(const n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[t][n]=r[n])}}function pi(e,t,r,n,o,a){const{normalizeDepth:i=3,normalizeMaxBreadth:s=1e3}=e,u={...t,event_id:t.event_id||r.event_id||Xn(),timestamp:t.timestamp||Dn()},l=r.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:r,release:n,dist:o,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?r:Ua);void 0===e.release&&void 0!==n&&(e.release=n);void 0===e.dist&&void 0!==o&&(e.dist=o);e.message&&(e.message=jr(e.message,a));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=jr(i.value,a));const s=e.request;s&&s.url&&(s.url=jr(s.url,a))}(u,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{}
2,e.sdk.integrations=[...e.sdk.integrations||[],...t])}(u,l),o&&o.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){const r=Vr._sentryDebugIds;if(!r)return;let n;const o=di.get(t);o?n=o:(n=new Map,di.set(t,n));const a=Object.entries(r).reduce(((e,[r,o])=>{let a;const i=n.get(r);i?a=i:(a=t(r),n.set(r,a));for(let t=a.length-1;t>=0;t--){const r=a[t];if(r.filename){e[r.filename]=o;break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=a[e.filename])}))}))}catch(i){}}(u,e.stackParser);const c=function(e,t){if(!t)return e;const r=e?e.clone():new Yo;return r.update(t),r}(n,r.captureContext);r.mechanism&&ro(u,r.mechanism);const p=o?o.getEventProcessors():[],d=aa().getScopeData();a&&li(d,a.getScopeData()),c&&li(d,c.getScopeData());const f=[...r.attachments||[],...d.attachments];return f.length&&(r.attachments=f),ui(u,d),si([...p,...d.eventProcessors],u,r).then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(n){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const r=e.debug_meta.images;Object.entries(t).forEach((([e,t])=>{r.push({type:"sourcemap",code_file:e,debug_id:t})}))}(e),"number"==typeof i&&i>0?function(e,t,r){if(!e)return null;const n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:ao(e.data,t,r)}})))},...e.user&&{user:ao(e.user,t,r)},...e.contexts&&{contexts:ao(e.contexts,t,r)},...e.extra&&{extra:ao(e.extra,t,r)}};e.contexts&&e.contexts.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=ao(e.contexts.trace.data,t,r)));e.spans&&(n.spans=e.spans.map((e=>({...e,...e.data&&{data:ao(e.data,t,r)}}))));return n}(e,i,s):e)))}var di=new WeakMap;function fi(e){if(e)return function(e){return e instanceof Yo||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>hi.includes(e)))}(e)?{captureContext:e}:e}var hi=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function mi(e,t){return na().captureException(e,fi(t))}function yi(e,t){return na().captureEvent(e,t)}function gi(e,t){oa().setContext(e,t)}function vi(e){const t=sa(),r=oa(),n=na(),{release:o,environment:a=Ua}=t&&t.getOptions()||{},{userAgent:i}=Vr.navigator||{},s=zo({release:o,environment:a,user:n.getUser()||r.getUser(),...i&&{userAgent:i},...e}),u=r.getSession();return u&&"ok"===u.status&&Qo(u,{status:"exited"}),bi(),r.setSession(s),n.setSession(s),s}function bi(){const e=oa(),t=na(),r=t.getSession()||e.getSession();r&&function(e,t){let r={};t?r={status:t}:"ok"===e.status&&(r={status:"exited"}),Qo(e,r)}(r),_i(),e.setSession(),t.setSession()}function _i(){const e=oa(),t=na(),r=sa(),n=t.getSession()||e.getSession();n&&r&&r.captureSession(n)}function Si(e=!1){e?bi():_i()}var wi="7";function Ei(e){const t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}function xi(e,t){return r={sentry_key:e.publicKey,sentry_version:wi,...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(r).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(r[e])}`)).join("&");var r}function ki(e,t,r){return t||`${function(e){return`${Ei(e)}${e.projectId}/envelope/`}(e)}?${xi(e,r)}`}var Ti=[];function Oi(e){const t=e.defaultIntegrations||[],r=e.integrations;let n;t.forEach((e=>{e.isDefaultInstance=!0})),n=Array.isArray(r)?[...t,...r]:"function"==typeof r?oo(r(t)):t;const o=function(e){const t={};return e.forEach((e=>{const{name:r}=e,n=t[r];n&&!n.isDefaultInstance&&e.isDefaultInstance||(t[r]=e)})),Object.values(t)}(n),a=o.findIndex((e=>"Debug"===e.name));if(a>-1){const[e]=o.splice(a,1);o.push(e)}return o}function Ii(e,t){for(const r of t)r&&r.afterAllSetup&&r.afterAllSetup(e)}function Ci(e,t,r){if(r[t.name])$o&&tn.log(`Integration skipped because it was already installed: ${t.name}`);else{if(r[t.name]=t,-1===Ti.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),Ti.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,n)=>r(t,n,e)))}if("function"==typeof t.processEvent){const r=t.processEvent.bind(t),n=Object.assign(((t,n)=>r(t,n,e)),{id:t.name});e.addEventProcessor(n)}$o&&tn.log(`Integration installed: ${t.name}`)}}var Ri="Not capturing exception because it's already been captured.",Ai=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=an(e.dsn):$o&&tn.warn("No DSN provided, client will not send events."),this._dsn){const t=ki(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,r){const n=Xn();if(no(e))return $o&&tn.log(Ri),n;const o={event_id:n,...t};return this._process(this.eventFromException(e,o).then((e=>this._captureEvent(e,o,r)))),o.event_id}captureMessage(e,t,r,n){const o={event_id:Xn(),...r}
2,a=Or(e)?e:String(e),i=Ir(e)?this.eventFromMessage(a,t,o):this.eventFromException(e,o);return this._process(i.then((e=>this._captureEvent(e,o,n)))),o.event_id}captureEvent(e,t,r){const n=Xn();if(t&&t.originalException&&no(t.originalException))return $o&&tn.log(Ri),n;const o={event_id:n,...t},a=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,o,a||r)),o.event_id}captureSession(e){"string"!=typeof e.release?$o&&tn.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Qo(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then((r=>t.flush(e).then((e=>r&&e))))):uo(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.emit("close"),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some((({name:e})=>e.startsWith("Spotlight"))))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];Ci(this,e,this._integrations),t||Ii(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=function(e,t,r,n){const o=jo(r),a=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,r&&r.sdk);const i=Do(e,o,n,t);return delete e.sdkProcessingMetadata,ko(i,[[{type:a},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const o of t.attachments||[])r=To(r,Ao(o));const n=this.sendEnvelope(r);n&&n.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=function(e,t,r,n){const o=jo(r);return ko({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!n&&t&&{dsn:nn(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,r){if(this._options.sendClientReports){const n="number"==typeof r?r:1,o=`${e}:${t}`;$o&&tn.log(`Recording outcome: "${o}"${n>1?` (${n} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+n}}on(e,t){const r=this._hooks[e]=this._hooks[e]||[];return r.push(t),()=>{const e=r.indexOf(t);e>-1&&r.splice(e,1)}}emit(e,...t){const r=this._hooks[e];r&&r.forEach((e=>e(...t)))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,(e=>($o&&tn.error("Error while sending event:",e),e))):($o&&tn.error("Transport disabled"),uo({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const r={};return t.forEach((t=>{t&&Ci(e,t,r)})),r}(this,e),Ii(this,e)}_updateSessionFromEvent(e,t){let r=!1,n=!1;const o=t.exception&&t.exception.values;if(o){n=!0;for(const e of o){const t=e.mechanism;if(t&&!1===t.handled){r=!0;break}}}const a="ok"===e.status;(a&&0===e.errors||a&&r)&&(Qo(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new co((t=>{let r=0;const n=setInterval((()=>{0==this._numProcessing?(clearInterval(n),t(!0)):(r+=1,e&&r>=e&&(clearInterval(n),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r,n=oa()){const o=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a.length>0&&(t.integrations=a),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),pi(o,e,t,r,this,n).then((e=>{if(null===e)return e;const t={...n.getPropagationContext(),...r?r.getPropagationContext():void 0};if((!e.contexts||!e.contexts.trace)&&t){const{traceId:r,spanId:n,parentSpanId:o,dsc:a}=t;e.contexts={trace:mn({trace_id:r,span_id:n,parent_span_id:o}),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:a||Va(r,this),...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},r){return this._processEvent(e,t,r).then((e=>e.event_id),(e=>{if($o){const t=e;"log"===t.logLevel?tn.log(t.message):tn.warn(t)}}))}_processEvent(e,t,r){const n=this.getOptions(),{sampleRate:o}=n,a=Mi(e),i=Pi(e),s=e.type||"error",u=`before send for type \`${s}\``,l=void 0===o?void 0:za(o);if(i&&"number"==typeof l&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error",e),lo(new sn(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const c="replay_event"===s?"replay":s,p=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,r,p).then((r=>{if(null===r)throw this.recordDroppedEvent("event_processor",c,e),new sn("An event processor returned `null`, will not send event.","log");return t.data&&!0===t.data.__sentry__?r:function(e,t){const r=`${t} must return \`null\` or a valid event.`;if(Ar(e))return e.then((e=>{if(!Cr(e)&&null!==e)throw new sn(r);return e}),(e=>{throw new sn(`${t} rejected with ${e}`)}));if(!Cr(e)&&null!==e)throw new sn(r);return e}(function(e,t,r,n){const{beforeSend:o,beforeSendTransaction:a,beforeSendSpan:i}=t;if(Pi(r)&&o)return o(r,n);if(Mi(r)){if(r.spans&&i){const t=[];for(const n of r.spans){const r=i(n);r?t.push(r):e.recordDroppedEvent("before_send","span")}r.spans=t}if(a){if(r.spans){const e=r.spans.length;r.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(r,n)}}return r}(this,n,r,t),u)})).then((n=>{if(null===n){if(this.recordDroppedEvent("before_send",c,e),a){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new sn(`${u} returned \`null\`, will not send event.`,"log")}const o=r&&r.getSession();if(!a&&o&&this._updateSessionFromEvent(o,n),a){const e=(n.sdkProcessingMetadata&&n.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(n.spans?n.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const i=n.transaction_info;if(a&&i&&n.transaction!==e.transaction){const e="custom";n.transaction_info={...i,source:e}}return this.sendEvent(n,t),n})).then(null,(e=>{if(e instanceof sn)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new sn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map((([e,t])=>{const[r,n]=e.split(":");return{reason:r,category:n,quantity:t}}))}_flushOutcomes(){$o&&tn.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void($o&&tn.log("No outcomes to send"));if(!this._dsn)return void($o&&tn.log("No dsn provided, will not send outcomes"));$o&&tn.log("Sending outcomes:",e);const t=(r=e,ko((n=this._options.tunnel&&nn(this._dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:o||Dn(),discarded_events:r}]]));var r,n,o;this.sendEnvelope(t)}};function Pi(e){return void 0===e.type}function Mi(e){return"transaction"===e.type}function ji(e,t){!0===t.debug&&($o?tn.enable():en((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}))),na().update(t.initialScope);const r=new e(t);return function(e){na().setClient(e)}(r),r.init(),r}function Di(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function Fi(e,t){const r=t&&t.getDsn(),n=t&&t.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,r)||function(e,t){return!!t&&Li(e)===Li(t)}(e,n)}function Li(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function Ni(e,t,r=[t],n="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:r.map((e=>({name:`${n}:@sentry/${e}`,version:$r}))),version:$r}),e._metadata=o}var qi,Ui=100;function Bi(e,t){const r=sa(),n=oa();if(!r)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:a=Ui}=r.getOptions();if(a<=0)return;const i={timestamp:Dn(),...e},s=o?en((()=>o(i,t))):i;null!==s&&(r.emit&&r.emit("beforeAddBreadcrumb",s,t),n.addBreadcrumb(s,a))}var $i=new WeakMap,Vi=()=>({name:"FunctionToString",setupOnce(){qi=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=pn(this),r=$i.has(sa())&&void 0!==t?t:this;return qi.apply(r,e)}}catch(e){}},setup(e){$i.set(e,!0)}}),Wi=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],zi=(e={})=>({name:"InboundFilters",processEvent:(t,r,n)=>function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(t){}return!1}(e))return $o&&tn.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${eo(e)}`),!0;if(function(e,t){return!(e.type||!t||!t.length)&&function(e){const t=[];e.message&&t.push(e.message);let r;try{r=e.exception.values[e.exception.values.length-1]}catch(n){}r&&r.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`));return t}(e).some((e=>Lr(e,t)))}(e,t.ignoreErrors))return $o&&tn.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${eo(e)}`),!0;if(function(e){return!e.type&&(!(!e.exception||!e.exception.values||0===e.exception.values.length)&&(!e.message&&!e.exception.values.some((e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))))}(e))return $o&&tn.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${eo(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const r=e.transaction;return!!r&&Lr(r,t)}(e,t.ignoreTransactions))return $o&&tn.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${eo(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const r=Qi(e);return!!r&&Lr(r,t)}(e,t.denyUrls))return $o&&tn.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${eo(e)}.\nUrl: ${Qi(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const r=Qi(e);return!r||Lr(r,t)}(e,t.allowUrls))return $o&&tn.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${eo(e)}.\nUrl: ${Qi(e)}`),!0;return!1}(t,function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Wi],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,n.getOptions()))?null:t});function Qi(e){try{let r;try{r=e.exception.values[0].stacktrace.frames}catch(t){}return r?function(e=[]){for(let t=e.length-1;t>=0;t--){const r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(r):null}catch(r){return $o&&tn.error(`Cannot extract url for event ${eo(e)}`),null}}var Hi=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(function(e,t){return!!t&&(!!function(e,t){const r=e.message,n=t.message;return!(!r&&!n)&&(!(r&&!n||!r&&n)&&(r===n&&(!!Ki(e,t)&&!!Gi(e,t))))}(e,t)||!!function(e,t){const r=Yi(t),n=Yi(e);return!(!r||!n)&&(r.type===n.type&&r.value===n.value&&(!!Ki(e,t)&&!!Gi(e,t)))}(e,t))}(t,e))return $o&&tn.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(r){}return e=t}}};function Gi(e,t){let r=xn(e),n=xn(t);if(!r&&!n)return!0;
2if(r&&!n||!r&&n)return!1;if(n.length!==r.length)return!1;for(let o=0;o<n.length;o++){const e=n[o],t=r[o];if(e.filename!==t.filename||e.lineno!==t.lineno||e.colno!==t.colno||e.function!==t.function)return!1}return!0}function Ki(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;try{return!(r.join("")!==n.join(""))}catch(o){return!1}}function Yi(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Ji(e,t,r,n,o="auto.http.browser"){if(!e.fetchData)return;const a=Na()&&t(e.fetchData.url);if(e.endTimestamp&&a){const t=e.fetchData.__span;if(!t)return;const r=n[t];return void(r&&(!function(e,t){if(t.response){va(e,t.response.status);const r=t.response&&t.response.headers&&t.response.headers.get("content-length");if(r){const t=parseInt(r);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:2,message:"internal_error"});e.end()}(r,e),delete n[t]))}const i=na(),s=sa(),{method:u,url:l}=e.fetchData,c=function(e){try{return new URL(e).href}catch(t){return}}(l),p=c?fo(c).host:void 0,d=!!Pa(),f=a&&d?Ja({name:`${u} ${l}`,attributes:{url:l,type:"fetch","http.method":u,"http.url":c,"server.address":p,[fa]:o,[da]:"http.client"}}):new qa;if(e.fetchData.__span=f.spanContext().spanId,n[f.spanContext().spanId]=f,r(e.fetchData.url)&&s){const t=e.args[0];e.args[1]=e.args[1]||{};const r=e.args[1];r.headers=function(e,t,r,n,o){const{traceId:a,spanId:i,sampled:s,dsc:u}={...oa().getPropagationContext(),...r.getPropagationContext()},l=o?Sa(o):xo(a,i,s),c=_o(u||(o?Wa(o):Va(a,t))),p=n.headers||("undefined"!=typeof Request&&Pr(e,Request)?e.headers:void 0);if(p){if("undefined"!=typeof Headers&&Pr(p,Headers)){const e=new Headers(p);return e.append("sentry-trace",l),c&&e.append(yo,c),e}if(Array.isArray(p)){const e=[...p,["sentry-trace",l]];return c&&e.push([yo,c]),e}{const e="baggage"in p?p.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),c&&t.push(c),{...p,"sentry-trace":l,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":l,baggage:c}}(t,s,i,r,Na()&&d?f:void 0)}return f}var Xi=Vr,Zi=0;function es(){return Zi>0}function ts(e,t={},r){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if(pn(e))return e}catch(o){return e}const n=function(){const n=Array.prototype.slice.call(arguments);try{r&&"function"==typeof r&&r.apply(this,arguments);const o=n.map((e=>ts(e,t)));return e.apply(this,o)}catch(o){throw Zi++,setTimeout((()=>{Zi--})),ia((e=>{e.addEventProcessor((e=>(t.mechanism&&(to(e,void 0,void 0),ro(e,t.mechanism)),e.extra={...e.extra,arguments:n},e))),mi(o)})),o}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch(a){}cn(n,e),ln(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch(a){}return n}var rs="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function ns(e,t){const r=is(e,t),n={type:t&&t.name,value:us(t)};return r.length&&(n.stacktrace={frames:r}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function os(e,t,r,n){const o=sa(),a=o&&o.getOptions().normalizeDepth,i=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const r=e[t];if(r instanceof Error)return r}}(t),s={__serialized__:io(t,a)};if(i)return{exception:{values:[ns(e,i)]},extra:s};const u={exception:{values:[{type:Rr(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:ps(t,{isUnhandledRejection:n})}]},extra:s};if(r){const t=is(e,r);t.length&&(u.exception.values[0].stacktrace={frames:t})}return u}function as(e,t){return{exception:{values:[ns(e,t)]}}}function is(e,t){const r=t.stacktrace||t.stack||"",n=function(e){return e&&ss.test(e.message)?1:0}(t),o=function(e){return"number"==typeof e.framesToPop?e.framesToPop:0}(t);try{return e(r,n,o)}catch(a){}return[]}var ss=/Minified React error #\d+;/i;function us(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function ls(e,t,r,n,o){let a;if(xr(t)&&t.error)return as(e,t.error);if(kr(t)||Er(t,"DOMException")){const o=t;if("stack"in t)a=as(e,t);else{const t=o.name||(kr(o)?"DOMError":"DOMException"),i=o.message?`${t}: ${o.message}`:t;a=cs(e,i,r,n),to(a,i)}return"code"in o&&(a.tags={...a.tags,"DOMException.code":`${o.code}`}),a}return wr(t)?as(e,t):Cr(t)||Rr(t)?(a=os(e,t,r,o),ro(a,{synthetic:!0}),a):(a=cs(e,t,r,n),to(a,`${t}`,void 0),ro(a,{synthetic:!0}),a)}function cs(e,t,r,n){const o={};if(n&&r){const n=is(e,r);n.length&&(o.exception={values:[{value:t,stacktrace:{frames:n}}]})}
2if(Or(t)){const{__sentry_template_string__:e,__sentry_template_values__:r}=t;return o.logentry={message:e,params:r},o}return o.message=t,o}function ps(e,{isUnhandledRejection:t}){const r=function(e,t=40){const r=Object.keys(dn(e));r.sort();const n=r[0];if(!n)return"[object has no keys]";if(n.length>=t)return jr(n,t);for(let o=r.length;o>0;o--){const e=r.slice(0,o).join(", ");if(!(e.length>t))return o===r.length?e:jr(e,t)}return""}(e),n=t?"promise rejection":"exception";return xr(e)?`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``:Rr(e)?`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(t){}}(e)}\` (type=${e.type}) captured as ${n}`:`Object captured as ${n} with keys: ${r}`}function ds(e){return[{type:"user_report"},e]}var fs,hs,ms,ys,gs,vs,bs=class extends Ai{constructor(e){const t={parentSpanIsAlwaysRootSpan:!0,...e};Ni(t,"browser",["browser"],Xi.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&Xi.document&&Xi.document.addEventListener("visibilitychange",(()=>{"hidden"===Xi.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,r,n){const o=ls(e,t,r&&r.syntheticException||void 0,n);return ro(o),o.level="error",r&&r.event_id&&(o.event_id=r.event_id),uo(o)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return function(e,t,r="info",n,o){const a=cs(e,t,n&&n.syntheticException||void 0,o);return a.level=r,n&&n.event_id&&(a.event_id=n.event_id),uo(a)}(this._options.stackParser,e,t,r,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(rs&&tn.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:r,dsn:n}){return ko({event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!r&&!!n&&{dsn:nn(n)}},[ds(e)])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r)}},_s="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Ss=(e,t,r,n)=>{let o,a;return i=>{t.value>=0&&(i||n)&&(a=t.value-(o||0),(a||void 0===o)&&(o=t.value,t.delta=a,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,r),e(t)))}},ws=Vr,Es=()=>ws.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],xs=()=>{const e=Es();return e&&e.activationStart||0},ks=(e,t)=>{const r=Es();let n="navigate";return r&&(ws.document&&ws.document.prerendering||xs()>0?n="prerender":ws.document&&ws.document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:n}},Ts=(e,t,r)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const n=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(n){}},Os=e=>{const t=t=>{("pagehide"===t.type||ws.document&&"hidden"===ws.document.visibilityState)&&e(t)};ws.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},Is=e=>{let t=!1;return r=>{t||(e(r),t=!0)}},Cs=-1,Rs=e=>{"hidden"===ws.document.visibilityState&&Cs>-1&&(Cs="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("visibilitychange",Rs,!0),removeEventListener("prerenderingchange",Rs,!0))},As=()=>(ws.document&&Cs<0&&(Cs="hidden"!==ws.document.visibilityState||ws.document.prerendering?1/0:0,addEventListener("visibilitychange",Rs,!0),addEventListener("prerenderingchange",Rs,!0)),{get firstHiddenTime(){return Cs}}),Ps=e=>{ws.document&&ws.document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},Ms=[1800,3e3],js=[.1,.25],Ds=(e,t={})=>{((e,t={})=>{Ps((()=>{const r=As(),n=ks("FCP");let o;const a=Ts("paint",(e=>{e.forEach((e=>{"first-contentful-paint"===e.name&&(a.disconnect(),e.startTime<r.firstHiddenTime&&(n.value=Math.max(e.startTime-xs(),0),n.entries.push(e),o(!0)))}))}));a&&(o=Ss(e,n,Ms,t.reportAllChanges))}))})(Is((()=>{const r=ks("CLS",0);let n,o=0,a=[];const i=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=a[0],r=a[a.length-1];o&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,a.push(e)):(o=e.value,a=[e])}})),o>r.value&&(r.value=o,r.entries=a,n())},s=Ts("layout-shift",i);s&&(n=Ss(e,r,js,t.reportAllChanges),Os((()=>{i(s.takeRecords()),n(!0)})),setTimeout(n,0))}
2)))},Fs=[100,300],Ls=(e,t={})=>{Ps((()=>{const r=As(),n=ks("FID");let o;const a=e=>{e.startTime<r.firstHiddenTime&&(n.value=e.processingStart-e.startTime,n.entries.push(e),o(!0))},i=e=>{e.forEach(a)},s=Ts("first-input",i);o=Ss(e,n,Fs,t.reportAllChanges),s&&Os(Is((()=>{i(s.takeRecords()),s.disconnect()})))}))},Ns=0,qs=1/0,Us=0,Bs=e=>{e.forEach((e=>{e.interactionId&&(qs=Math.min(qs,e.interactionId),Us=Math.max(Us,e.interactionId),Ns=Us?(Us-qs)/7+1:0)}))},$s=()=>{"interactionCount"in performance||fs||(fs=Ts("event",Bs,{type:"event",buffered:!0,durationThreshold:0}))},Vs=[200,500],Ws=()=>(fs?Ns:performance.interactionCount||0)-0,zs=[],Qs={},Hs=e=>{const t=zs[zs.length-1],r=Qs[e.interactionId];if(r||zs.length<10||t&&e.duration>t.latency){if(r)r.entries.push(e),r.latency=Math.max(r.latency,e.duration);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};Qs[t.id]=t,zs.push(t)}zs.sort(((e,t)=>t.latency-e.latency)),zs.splice(10).forEach((e=>{delete Qs[e.id]}))}},Gs=(e,t={})=>{Ps((()=>{$s();const r=ks("INP");let n;const o=e=>{e.forEach((e=>{e.interactionId&&Hs(e),"first-input"===e.entryType&&(zs.some((t=>t.entries.some((t=>e.duration===t.duration&&e.startTime===t.startTime))))||Hs(e))}));const t=(()=>{const e=Math.min(zs.length-1,Math.floor(Ws()/50));return zs[e]})();t&&t.latency!==r.value&&(r.value=t.latency,r.entries=t.entries,n())},a=Ts("event",o,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});n=Ss(e,r,Vs,t.reportAllChanges),a&&("PerformanceEventTiming"in ws&&"interactionId"in PerformanceEventTiming.prototype&&a.observe({type:"first-input",buffered:!0}),Os((()=>{o(a.takeRecords()),r.value<0&&Ws()>0&&(r.value=0,r.entries=[]),n(!0)})))}))},Ks=[2500,4e3],Ys={},Js=(e,t={})=>{Ps((()=>{const r=As(),n=ks("LCP");let o;const a=e=>{const t=e[e.length-1];t&&t.startTime<r.firstHiddenTime&&(n.value=Math.max(t.startTime-xs(),0),n.entries=[t],o())},i=Ts("largest-contentful-paint",a);if(i){o=Ss(e,n,Ks,t.reportAllChanges);const r=Is((()=>{Ys[n.id]||(a(i.takeRecords()),i.disconnect(),Ys[n.id]=!0,o(!0))}));["keydown","click"].forEach((e=>{ws.document&&addEventListener(e,(()=>setTimeout(r,0)),!0)})),Os(r)}}))},Xs=[800,1800],Zs=e=>{ws.document&&ws.document.prerendering?Ps((()=>Zs(e))):ws.document&&"complete"!==ws.document.readyState?addEventListener("load",(()=>Zs(e)),!0):setTimeout(e,0)},eu=(e,t={})=>{const r=ks("TTFB"),n=Ss(e,r,Xs,t.reportAllChanges);Zs((()=>{const e=Es();if(e){const t=e.responseStart;if(t<=0||t>performance.now())return;r.value=Math.max(t-xs(),0),r.entries=[e],n(!0)}}))},tu={},ru={};function nu(e,t=!1){return hu("cls",e,lu,hs,t)}function ou(e,t=!1){return hu("lcp",e,pu,ys,t)}function au(e){return hu("fid",e,cu,ms)}function iu(e){return hu("inp",e,fu,vs)}function su(e,t){return mu(e,t),ru[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);Ts(e,(t=>{uu(e,{entries:t})}),t)}(e),ru[e]=!0),yu(e,t)}function uu(e,t){const r=tu[e];if(r&&r.length)for(const o of r)try{o(t)}catch(n){_s&&tn.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${En(o)}\nError:`,n)}}function lu(){return Ds((e=>{uu("cls",{metric:e}),hs=e}),{reportAllChanges:!0})}function cu(){return Ls((e=>{uu("fid",{metric:e}),ms=e}))}function pu(){return Js((e=>{uu("lcp",{metric:e}),ys=e}),{reportAllChanges:!0})}function du(){return eu((e=>{uu("ttfb",{metric:e}),gs=e}))}function fu(){return Gs((e=>{uu("inp",{metric:e}),vs=e}))}function hu(e,t,r,n,o=!1){let a;return mu(e,t),ru[e]||(a=r(),ru[e]=!0),n&&t({metric:n}),yu(e,t,o?a:void 0)}function mu(e,t){tu[e]=tu[e]||[],tu[e].push(t)}function yu(e,t,r){return()=>{r&&r();const n=tu[e];if(!n)return;const o=n.indexOf(t);-1!==o&&n.splice(o,1)}}function gu(e){return"number"==typeof e&&isFinite(e)}function vu(e,t,r,{...n}){const o=xa(e).start_timestamp;return o&&o>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),Xa(e,(()=>{const e=Ja({startTime:t,...n});return e&&e.end(r),e}))}function bu(e){const t=sa();if(!t)return;const{name:r,transaction:n,attributes:o,startTime:a}=e,{release:i,environment:s}=t.getOptions(),u=t.getIntegrationByName("Replay"),l=u&&u.getReplayId(),c=na(),p=c.getUser(),d=void 0!==p?p.email||p.id||p.ip_address:void 0;let f;
2try{f=c.getScopeData().contexts.profile.profile_id}catch(h){}return Ja({name:r,attributes:{release:i,environment:s,user:d||void 0,profile_id:f||void 0,replay_id:l||void 0,transaction:n,"user_agent.original":ws.navigator&&ws.navigator.userAgent,...o},startTime:a,experimental:{standalone:!0}})}function _u(){return ws&&ws.addEventListener&&ws.performance}function Su(e){return e/1e3}function wu(){let e,t,r=0;if(!function(){try{return qo([PerformanceObserver,"access",e=>e.supportedEntryTypes,"optionalAccess",e=>e.includes,"call",e=>e("layout-shift")])}catch(e){return!1}}())return;let n=!1;function o(){n||(n=!0,t&&function(e,t,r){_s&&tn.log(`Sending CLS span (${e})`);const n=Su((Ln||0)+(qo([t,"optionalAccess",e=>e.startTime])||0)),o=na().getScopeData().transactionName,a=bu({name:t?Hr(qo([t,"access",e=>e.sources,"access",e=>e[0],"optionalAccess",e=>e.node])):"Layout shift",transaction:o,attributes:mn({[fa]:"auto.http.browser.cls",[da]:"ui.webvital.cls",[ga]:qo([t,"optionalAccess",e=>e.duration])||0,"sentry.pageload.span_id":r}),startTime:n});qo([a,"optionalAccess",e=>e.addEvent,"call",t=>t("cls",{[ma]:"",[ya]:e})]),qo([a,"optionalAccess",e=>e.end,"call",e=>e(n)])}(r,e,t),a())}const a=nu((({metric:t})=>{const n=t.entries[t.entries.length-1];n&&(r=t.value,e=n)}),!0);Os((()=>{o()})),setTimeout((()=>{const e=qo([sa(),"optionalAccess",e=>e.on,"call",t=>t("startNavigationSpan",(()=>{o(),e&&e()}
2))]),r=Pa(),n=r&&Aa(r),a=n&&xa(n);a&&"pageload"===a.op&&(t=n.spanContext().spanId)}),0)}var Eu,xu,ku=2147483647,Tu=0,Ou={};function Iu({recordClsStandaloneSpans:e}){const t=_u();if(t&&Ln){t.mark&&ws.performance.mark("sentry-tracing-init");const r=au((({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const r=Su(Ln),n=Su(t.startTime);_s&&tn.log("[Measurements] Adding FID"),Ou.fid={value:e.value,unit:"millisecond"},Ou["mark.fid"]={value:r+n,unit:"second"}})),n=ou((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(_s&&tn.log("[Measurements] Adding LCP"),Ou.lcp={value:e.value,unit:"millisecond"},Eu=t)}),!0),o=hu("ttfb",(({metric:e})=>{e.entries[e.entries.length-1]&&(_s&&tn.log("[Measurements] Adding TTFB"),Ou.ttfb={value:e.value,unit:"millisecond"})}),du,gs),a=e?wu():nu((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(_s&&tn.log(`[Measurements] Adding CLS ${e.value}`),Ou.cls={value:e.value,unit:""},xu=t)}),!0);return()=>{r(),n(),o(),a&&a()}}return()=>{}}function Cu(e,t){const r=_u();if(!r||!ws.performance.getEntries||!Ln)return;_s&&tn.log("[Tracing] Adding & adjusting spans using Performance API");const n=Su(Ln),o=r.getEntries(),{op:a,start_timestamp:i}=xa(e);if(o.slice(Tu).forEach((t=>{const r=Su(t.startTime),o=Su(Math.max(0,t.duration));if(!("navigation"===a&&i&&n+r<i))switch(t.entryType){case"navigation":!function(e,t,r){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((n=>{Ru(e,t,n,r)})),Ru(e,t,"secureConnection",r,"TLS/SSL","connectEnd"),Ru(e,t,"fetch",r,"cache","domainLookupStart"),Ru(e,t,"domainLookup",r,"DNS"),function(e,t,r){const n=r+Su(t.requestStart),o=r+Su(t.responseEnd),a=r+Su(t.responseStart);t.responseEnd&&(vu(e,n,o,{op:"browser",name:"request",attributes:{[fa]:"auto.ui.browser.metrics"}}),vu(e,a,o,{op:"browser",name:"response",attributes:{[fa]:"auto.ui.browser.metrics"}}))}(e,t,r)}(e,t,n);break;case"mark":case"paint":case"measure":{!function(e,t,r,n,o){const a=Es(),i=Su(a?a.requestStart:0),s=o+Math.max(r,i),u=o+r,l=u+n,c={[fa]:"auto.resource.browser.metrics"};s!==u&&(c["sentry.browser.measure_happened_before_request"]=!0,c["sentry.browser.measure_start_time"]=s);vu(e,s,l,{name:t.name,op:t.entryType,attributes:c})}(e,t,r,o,n);const a=As(),i=t.startTime<a.firstHiddenTime;"first-paint"===t.name&&i&&(_s&&tn.log("[Measurements] Adding FP"),Ou.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&i&&(_s&&tn.log("[Measurements] Adding FCP"),Ou.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":!function(e,t,r,n,o,a){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const i=fo(r),s={[fa]:"auto.resource.browser.metrics"};Au(s,t,"transferSize","http.response_transfer_size"),Au(s,t,"encodedBodySize","http.response_content_length"),Au(s,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(s["resource.render_blocking_status"]=t.renderBlockingStatus);i.protocol&&(s["url.scheme"]=i.protocol.split(":").pop());i.host&&(s["server.address"]=i.host);s["url.same_origin"]=r.includes(ws.location.origin);const u=a+n;vu(e,u,u+o,{name:r.replace(ws.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:s})}(e,t,t.name,r,o,n)}})),Tu=Math.max(o.length-1,0),function(e){const t=ws.navigator;if(!t)return;const r=t.connection;r&&(r.effectiveType&&e.setAttribute("effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute("connectionType",r.type),gu(r.rtt)&&(Ou["connection.rtt"]={value:r.rtt,unit:"millisecond"}));gu(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`);gu(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===a){!function(e){const t=Es();if(!t)return;const{responseStart:r,requestStart:n}=t;n<=r&&(_s&&tn.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:r-n,unit:"millisecond"})}(Ou);const r=Ou["mark.fid"];r&&Ou.fid&&(vu(e,r.value,r.value+Su(Ou.fid.value),{name:"first input delay",op:"ui.action",attributes:{[fa]:"auto.ui.browser.metrics"}}),delete Ou["mark.fid"]),"fcp"in Ou&&t.recordClsOnPageloadSpan||delete Ou.cls,Object.entries(Ou).forEach((([e,t])=>{!function(e,t,r,n=Pa()){const o=n&&Aa(n);o&&o.addEvent(e,{[ya]:t,[ma]:r})}(e,t.value,t.unit)})),e.setAttribute("performance.timeOrigin",n),function(e){Eu&&(_s&&tn.log("[Measurements] Adding LCP Data"),Eu.element&&e.setAttribute("lcp.element",Hr(Eu.element)),Eu.id&&e.setAttribute("lcp.id",Eu.id),Eu.url&&e.setAttribute("lcp.url",Eu.url.trim().slice(0,200)),e.setAttribute("lcp.size",Eu.size));xu&&xu.sources&&(_s&&tn.log("[Measurements] Adding CLS Data"),xu.sources.forEac
2h(((t,r)=>e.setAttribute(`cls.source.${r+1}`,Hr(t.node)))))}(e)}Eu=void 0,xu=void 0,Ou={}}function Ru(e,t,r,n,o,a){const i=a?t[a]:t[`${r}End`],s=t[`${r}Start`];s&&i&&vu(e,n+Su(s),n+Su(i),{op:"browser",name:o||r,attributes:{[fa]:"auto.ui.browser.metrics"}})}function Au(e,t,r,n){const o=t[r];null!=o&&o<ku&&(e[n]=o)}var Pu,Mu,ju,Du,Fu=1e3;function Lu(e){On("dom",e),In("dom",Nu)}function Nu(){if(!ws.document)return;const e=Cn.bind(null,"dom"),t=qu(e,!0);ws.document.addEventListener("click",t,!1),ws.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const r=ws[t]&&ws[t].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(un(r,"addEventListener",(function(t){return function(r,n,o){if("click"===r||"keypress"==r)try{const n=this,a=n.__sentry_instrumentation_handlers__=n.__sentry_instrumentation_handlers__||{},i=a[r]=a[r]||{refCount:0};if(!i.handler){const n=qu(e);i.handler=n,t.call(this,r,n,o)}i.refCount++}catch(a){}return t.call(this,r,n,o)}})),un(r,"removeEventListener",(function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{const r=this,o=r.__sentry_instrumentation_handlers__||{},a=o[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,n),a.handler=void 0,delete o[t]),0===Object.keys(o).length&&delete r.__sentry_instrumentation_handlers__)}catch(o){}return e.call(this,t,r,n)}})))}))}function qu(e,t=!1){return r=>{if(!r||r._sentryCaptured)return;const n=function(e){try{return e.target}catch(t){return null}}(r);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(r.type,n))return;ln(r,"_sentryCaptured",!0),n&&!n._sentryId&&ln(n,"_sentryId",Xn());const o="keypress"===r.type?"input":r.type;(function(e){if(e.type!==Mu)return!1;try{if(!e.target||e.target._sentryId!==ju)return!1}catch(t){}return!0})(r)||(e({event:r,name:o,global:t}),Mu=r.type,ju=n?n._sentryId:void 0),clearTimeout(Pu),Pu=ws.setTimeout((()=>{ju=void 0,Mu=void 0}),Fu)}}function Uu(e){const t="history";On(t,e),In(t,Bu)}function Bu(){if(!function(){const e=Bo.chrome,t=e&&e.app&&e.app.runtime,r="history"in Bo&&!!Bo.history.pushState&&!!Bo.history.replaceState;return!t&&r}())return;const e=ws.onpopstate;function t(e){return function(...t){const r=t.length>2?t[2]:void 0;if(r){const e=Du,t=String(r);Du=t,Cn("history",{from:e,to:t})}return e.apply(this,t)}}ws.onpopstate=function(...t){const r=ws.location.href,n=Du;if(Du=r,Cn("history",{from:n,to:r}),e)try{return e.apply(this,t)}catch(o){}},un(ws.history,"pushState",t),un(ws.history,"replaceState",t)}var $u={};function Vu(e){const t=$u[e];if(t)return t;let r=ws[e];if(Mn(r))return $u[e]=r.bind(ws);const n=ws.document;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(o){_s&&tn.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return r?$u[e]=r.bind(ws):r}function Wu(e){$u[e]=void 0}function zu(...e){return Vu("setTimeout")(...e)}var Qu="__sentry_xhr_v3__";function Hu(e){On("xhr",e),In("xhr",Gu)}function Gu(){if(!ws.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,r){const n=1e3*Fn(),o=Tr(r[0])?r[0].toUpperCase():void 0,a=function(e){if(Tr(e))return e;try{return e.toString()}catch(t){}}(r[1]);if(!o||!a)return e.apply(t,r);t[Qu]={method:o,url:a,request_headers:{}},"POST"===o&&a.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const i=()=>{const e=t[Qu];if(e&&4===t.readyState){try{e.status_code=t.status}catch(r){}Cn("xhr",{endTimestamp:1e3*Fn(),startTimestamp:n,xhr:t})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,r)=>(i(),e.apply(t,r))}):t.addEventListener("readystatechange",i),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){const[n,o]=r,a=t[Qu];return a&&Tr(n)&&Tr(o)&&(a.request_headers[n.toLowerCase()]=o),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply(e,t,r){const n=t[Qu];return n?(void 0!==r[0]&&(n.body=r[0]),Cn("xhr",{startTimestamp:1e3*Fn(),xhr:t}),e.apply(t,r)):e.apply(t,r)}})}var Ku=[],Yu=new Map;function Ju(){if(_u()&&Ln){const e=iu((({metric:e})=>
2{if(null==e.value)return;const t=e.entries.find((t=>t.duration===e.value&&Xu[t.name]));if(!t)return;const{interactionId:r}=t,n=Xu[t.name],o=Su(Ln+t.startTime),a=Su(e.value),i=Pa(),s=i?Aa(i):void 0,u=(null!=r?Yu.get(r):void 0)||s,l=u?xa(u).description:na().getScopeData().transactionName,c=bu({name:Hr(t.target),transaction:l,attributes:mn({[fa]:"auto.http.browser.inp",[da]:`ui.interaction.${n}`,[ga]:t.duration}),startTime:o});qo([c,"optionalAccess",e=>e.addEvent,"call",t=>t("inp",{[ma]:"millisecond",[ya]:e.value})]),qo([c,"optionalAccess",e=>e.end,"call",e=>e(o+a)])}));return()=>{e()}}return()=>{}}var Xu={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function Zu(e,t=Vu("fetch")){let r=0,n=0;return function(e,t,r=po(e.bufferSize||64)){let n={};return{send:function(o){const a=[];if(Oo(o,((t,r)=>{const o=Mo(r);if(Lo(n,o)){const n=Di(t,r);e.recordDroppedEvent("ratelimit_backoff",o,n)}else a.push(t)})),0===a.length)return uo({});const i=ko(o[0],a),s=t=>{Oo(i,((r,n)=>{const o=Di(r,n);e.recordDroppedEvent(t,Mo(n),o)}))};return r.add((()=>t({body:Co(i)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&$o&&tn.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),n=No(n,e),e)),(e=>{throw s("network_error"),e})))).then((e=>e),(e=>{if(e instanceof sn)return $o&&tn.error("Skipped sending event because buffer is full."),s("queue_overflow"),uo({});throw e}))},flush:e=>r.drain(e)}}(e,(function(o){const a=o.body.length;r+=a,n++;const i={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:r<=6e4&&n<15,...e.fetchOptions};if(!t)return Wu("fetch"),lo("No fetch implementation available");try{return t(e.url,i).then((e=>(r-=a,n--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(s){return Wu("fetch"),r-=a,n--,lo(s)}}))}function el(e,t,r,n){const o={filename:e,function:"<anonymous>"===t?"?":t,in_app:!0};return void 0!==r&&(o.lineno=r),void 0!==n&&(o.colno=n),o}var tl=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,rl=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,nl=/\((\S*)(?::(\d+))(?::(\d+))\)/,ol=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,al=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,il=_n(...[[30,e=>{const t=tl.exec(e);if(t){const[,e,r,n]=t;return el(e,"?",+r,+n)}const r=rl.exec(e);if(r){if(r[2]&&0===r[2].indexOf("eval")){const e=nl.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}const[e,t]=sl(r[1]||"?",r[2]);return el(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],[50,e=>{const t=ol.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=al.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],r=t[1]||"?";return[r,e]=sl(r,e),el(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]]),sl=(e,t)=>{const r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:"?",r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},ul=1024,ll=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){t.console&&function(e){const t="console";On(t,e),In(t,Rn)}(function(e){return function(t){if(sa()!==e)return;const r={category:"console",data:{arguments:t.args,logger:"console"},level:mo(t.level),message:Dr(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message=`Assertion failed: ${Dr(t.args.slice(1)," ")||"console.assert"}`,r.data.arguments=t.args.slice(1)}Bi(r,{input:t.args,level:t.level})}}(e)),t.dom&&Lu(function(e,t){return function(r){if(sa()!==e)return;let n,o,a="object"==typeof t?t.serializeAttribute:void 0,i="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;i&&i>ul&&(rs&&tn.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=ul),"string"==typeof a&&(a=[a]
2);try{const e=r.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;n=Hr(t,{keyAttrs:a,maxStringLength:i}),o=Yr(t)}catch(u){n="<unknown>"}if(0===n.length)return;const s={category:`ui.${r.name}`,message:n};o&&(s.data={"ui.component_name":o}),Bi(s,{event:r.event,name:r.name,global:r.global})}}(e,t.dom)),t.xhr&&Hu(function(e){return function(t){if(sa()!==e)return;const{startTimestamp:r,endTimestamp:n}=t,o=t.xhr[Qu];if(!r||!n||!o)return;const{method:a,url:i,status_code:s,body:u}=o;Bi({category:"xhr",data:{method:a,url:i,status_code:s},type:"http"},{xhr:t.xhr,input:u,startTimestamp:r,endTimestamp:n})}}(e)),t.fetch&&Nn(function(e){return function(t){if(sa()!==e)return;const{startTimestamp:r,endTimestamp:n}=t;if(n&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){Bi({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:r,endTimestamp:n})}else{const e=t.response;Bi({category:"fetch",data:{...t.fetchData,status_code:e&&e.status},type:"http"},{input:t.args,response:e,startTimestamp:r,endTimestamp:n})}}}(e)),t.history&&Uu(function(e){return function(t){if(sa()!==e)return;let r=t.from,n=t.to;const o=fo(Xi.location.href);let a=r?fo(r):void 0;const i=fo(n);a&&a.path||(a=o),o.protocol===i.protocol&&o.host===i.host&&(n=i.relative),o.protocol===a.protocol&&o.host===a.host&&(r=a.relative),Bi({category:"navigation",data:{from:r,to:n}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){sa()===e&&Bi({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:eo(t)},{event:t})}}(e))}}};var cl=["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"],pl=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&un(Xi,"setTimeout",dl),t.setInterval&&un(Xi,"setInterval",dl),t.requestAnimationFrame&&un(Xi,"requestAnimationFrame",fl),t.XMLHttpRequest&&"XMLHttpRequest"in Xi&&un(XMLHttpRequest.prototype,"send",hl);const e=t.eventTarget;e&&(Array.isArray(e)?e:cl).forEach(ml)}}};function dl(e){return function(...t){const r=t[0];return t[0]=ts(r,{mechanism:{data:{function:En(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function fl(e){return function(t){return e.apply(this,[ts(t,{mechanism:{data:{function:"requestAnimationFrame",handler:En(e)},handled:!1,type:"instrument"}})])}}function hl(e){return function(...t){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in r&&"function"==typeof r[e]&&un(r,e,(function(t){const r={mechanism:{data:{function:e,handler:En(t)},handled:!1,type:"instrument"}},n=pn(t);return n&&(r.mechanism.data.handler=En(n)),ts(t,r)}))})),e.apply(this,t)}}function ml(e){const t=Xi,r=t[e]&&t[e].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(un(r,"addEventListener",(function(t){return function(r,n,o){try{"function"==typeof n.handleEvent&&(n.handleEvent=ts(n.handleEvent,{mechanism:{data:{function:"handleEvent",handler:En(n),target:e},handled:!1,type:"instrument"}}))}catch(a){}return t.apply(this,[r,ts(n,{mechanism:{data:{function:"addEventListener",handler:En(n),target:e},handled:!1,type:"instrument"}}),o])}})),un(r,"removeEventListener",(function(e){return function(t,r,n){const o=r;try{const r=o&&o.__sentry_wrapped__;r&&e.call(this,t,r,n)}catch(a){}return e.call(this,t,o,n)}})))}var yl=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){Wn((t=>{const{stackParser:r,attachStacktrace:n}=vl();if(sa()!==e||es())return;const{msg:o,url:a,line:i,column:s,error:u}=t,l=function(e,t,r,n){const o=e.exception=e.exception||{},a=o.values=o.values||[],i=a[0]=a[0]||{},s=i.stacktrace=i.stacktrace||{},u=s.frames=s.frames||[],l=isNaN(parseInt(n,10))?void 0:n,c=isNaN(parseInt(r,10))?void 0:r,p=Tr(t)&&t.length>0?t:Kr();0===u.length&&u.push({colno:l,filename:p,function:"?",in_app:!0,lineno:c});return e}(ls(r,u||o,void 0,n,!1),a,i,s);l.level="error",yi(l,{originalException:u,mechanism:{handled:!1,type:"onerror"}})}))}(e),gl("onerror")),t.onunhandledrejection&&(!function(e){Gn((t=>{const{stackParser:r,attachStacktrace:n}=vl();if(sa()!==e||es())return;const o=function(e){if(Ir(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(t){}return e}(t),a=Ir(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:ls(r,o,void 0,n,!0);a.level="error",yi(a,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(e),gl("onunhandledrejection"))}}};function gl(e){rs&&tn.log(`Global Handler attached: ${e}`)}function vl(){const e=sa();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}var bl=()=>({name:"HttpContext",preprocessEvent(e){if(!Xi.navigator&&!Xi.location&&!Xi.document)return;const t=e.request&&e.request.url||Xi.location&&Xi.location.href,{referrer:r}=Xi.document||{},{userAgent:n}=Xi.navigator||{},o={...e.request&&e.request.headers,...r&&{Referer:r},...n&&{"User-Agent":n}};e.request={...e.request,...t&&{url:t},headers:o}}}),_l=(e={})=>{const t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,n,o){const a=o.getOptions();Nr(ns,a.stackParser,a.maxValueLength,r,t,e,n)}}};function Sl(e={}){const t=function(e={}){const t={defaultIntegrations:[zi(),Vi(),pl(),ll(),yl(),_l(),Hi(),bl()],release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Xi.SENTRY_RELEASE&&Xi.SENTRY_RELEASE.id?Xi.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return null==e.defaultIntegrations&&delete e.defaultIntegrations,{...t,...e}}(e);if(function(){const e=void 0!==Xi.window&Ξif(!e)return!1;const t=e[e.chrome?"chrome":"browser"],r=t&&t.runtime&&t.runtime.id,n=Xi.location&&Xi.location.href||"",o=!!r&&Xi===Xi.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some((e=>n.startsWith(`${e}//`))),a=void 0!==e.nw;return!!r&&!o&&!a}())return void en((()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}));rs&&(Pn()||tn.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const r=ji(bs,{...t,stackParser:(n=t.stackParser||il,Array.isArray(n)?_n(...n):n),integrations:Oi(t),transport:t.transport||Zu});var n;return t.autoSessionTracking&&function(){if(void 0===Xi.document)return void(rs&&tn.warn("Session tracking in non-browser environment with @
2sentry/browser is not supported."));vi({ignoreDuration:!0}),Si(),Uu((({from:e,to:t})=>{void 0!==e&&e!==t&&(vi({ignoreDuration:!0}),Si())}))}(),r}function wl(e={}){if(!Xi.document)return void(rs&&tn.error("Global document not defined in showReportDialog call"));const t=na(),r=t.getClient(),n=r&&r.getDsn();if(!n)return void(rs&&tn.error("DSN not configured for showReportDialog call"));if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){const t=oa().lastEventId();t&&(e.eventId=t)}const o=Xi.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=function(e,t){const r=an(e);if(!r)return"";const n=`${Ei(r)}embed/error-page/`;let o=`dsn=${nn(r)}`;for(const a in t)if("dsn"!==a&&"onClose"!==a)if("user"===a){const e=t.user;if(!e)continue;e.name&&(o+=`&name=${encodeURIComponent(e.name)}`),e.email&&(o+=`&email=${encodeURIComponent(e.email)}`)}else o+=`&${encodeURIComponent(a)}=${encodeURIComponent(t[a])}`;return`${n}?${o}`}(n,e),e.onLoad&&(o.onload=e.onLoad);const{onClose:a}=e;if(a){const e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{a()}finally{Xi.removeEventListener("message",e)}};Xi.addEventListener("message",e)}const i=Xi.document.head||Xi.document.body;i?i.appendChild(o):rs&&tn.error("Not injecting report dialog. No injection point found in HTML")}var El,xl=Vr,kl="sentryReplaySession",Tl="replay_event",Ol="Unable to send Replay",Il=15e4,Cl=5e3,Rl=2e7,Al=36e5;function Pl(e,t){return null!=e?e:t()}function Ml(e){let t,r=e[0],n=1;for(;n<e.length;){const o=e[n],a=e[n+1];if(n+=2,("optionalAccess"===o||"optionalCall"===o)&&null==r)return;"access"===o||"optionalAccess"===o?(t=r,r=a(r)):"call"!==o&&"optionalCall"!==o||(r=a(((...e)=>r.call(t,...e))),t=void 0)}return r}function jl(e){const t=Ml([e,"optionalAccess",e=>e.host]);return Boolean(Ml([t,"optionalAccess",e=>e.shadowRoot])===e)}function Dl(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Fl(e){try{const r=e.rules||e.cssRules;return r?((t=Array.from(r,Ll).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(r){return null}var t}function Ll(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=Fl(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(r){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return e.cssText.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2");return t||e.cssText}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(El||(El={}));var Nl=class{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){return e?Pl(Ml([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]),(()=>-1)):-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 r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function ql({maskInputOptions:e,tagName:t,type:r}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||r&&e[r]||"password"===r||"INPUT"===t&&!r&&e.text)}function Ul({isMasked:e,element:t,value:r,maskInputFn:n}){let o=r||"";return e?(n&&(o=n(o,t)),"*".repeat(o.length)):o}function Bl(e){return e.toLowerCase()}function $l(e){return e.toUpperCase()}var Vl="__rrweb_original__";function Wl(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Bl(t):null}function zl(e,t,r){return"INPUT"!==t||"radio"!==r&&"checkbox"!==r?e.value:e.getAttribute("value")||""}function Ql(e,t){let r;try{r=new URL(e,Pl(t,(()=>window.location.href)))}catch(n){return null}return Pl(Ml([r.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",e=>e[1]]),(()=>null))}var Hl={};function Gl(e){const t=Hl[e];if(t)return t;const r=window.document;let n=window[e];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(o){}return Hl[e]=n.bind(window)}
2function Kl(...e){return Gl("setTimeout")(...e)}function Yl(...e){return Gl("clearTimeout")(...e)}var Jl,Xl,Zl=1,ec=new RegExp("[^a-z0-9-_:]"),tc=-2;function rc(){return Zl++}var nc=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,oc=/^(?:[a-z+]+:)?\/\//i,ac=/^www\..*/i,ic=/^(data:)([^,]*),(.*)/i;function sc(e,t){return(e||"").replace(nc,((e,r,n,o,a,i)=>{const s=n||a||i,u=r||o||"";if(!s)return e;if(oc.test(s)||ac.test(s))return`url(${u}${s}${u})`;if(ic.test(s))return`url(${u}${s}${u})`;if("/"===s[0])return`url(${u}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+s}${u})`;const l=t.split("/"),c=s.split("/");l.pop();for(const t of c){if("."===t)continue;".."===t?l.pop():l.push(t)}return`url(${u}${l.join("/")}${u})`}))}var uc=/^[^ \t\n\r\u000c]+/,lc=/^[, \t\n\r\u000c]+/;function cc(e,t){if(!t||""===t.trim())return t;const r=e.createElement("a");return r.href=t,r.href}function pc(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function dc(){const e=document.createElement("a");return e.href="",e.href}function fc(e,t,r,n,o,a){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?cc(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n;const o=e.exec(t.substring(r));return o?(n=o[0],r+=n.length,n):""}const o=[];for(;n(lc),!(r>=t.length);){let a=n(uc);if(","===a.slice(-1))a=cc(e,a.substring(0,a.length-1)),o.push(a);else{let n="";a=cc(e,a);let i=!1;for(;;){const e=t.charAt(r);if(""===e){o.push((a+n).trim());break}if(i)")"===e&&(i=!1);else{if(","===e){r+=1,o.push((a+n).trim());break}"("===e&&(i=!0)}n+=e,r+=1}}}return o.join(", ")}(e,n):"style"===r?sc(n,dc()):"object"===t&&"data"===r?cc(e,n):"function"==typeof a?a(r,n,o):n:cc(e,n):n}function hc(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function mc(e,t,r=1/0,n=0){return e?e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:mc(e.parentNode,t,r,n+1):-1}function yc(e,t){return r=>{const n=r;if(null===n)return!1;try{if(e)if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){const n=e.classList[r];if(t.test(n))return!0}return!1}(n,e))return!0;return!(!t||!n.matches(t))}catch(o){return!1}}}function gc(e,t,r,n,o,a){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 s=-1,u=-1;if(a){if(u=mc(i,yc(n,o)),u<0)return!0;s=mc(i,yc(t,r),u>=0?u:1/0)}else{if(s=mc(i,yc(t,r)),s<0)return!1;u=mc(i,yc(n,o),s>=0?s:1/0)}return s>=0?!(u>=0)||s<=u:!(u>=0)&&!!a}catch(i){}return!!a}function vc(e,t){const{doc:r,mirror:n,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:s,maskAttributeFn:u,maskTextClass:l,unmaskTextClass:c,maskTextSelector:p,unmaskTextSelector:d,inlineStylesheet:f,maskInputOptions:h={},maskTextFn:m,maskInputFn:y,dataURLOptions:g={},inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:S=!1}=t,w=function(e,t){if(!t.hasNode(e))return;const r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:El.Document,childNodes:[],compatMode:e.compatMode}:{type:El.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:El.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:return function(e,t){const{doc:r,blockClass:n,blockSelector:o,unblockSelector:a,inlineStylesheet:i,maskInputOptions:s={},maskAttributeFn:u,maskInputFn:l,dataURLOptions:c={},inlineImages:p,recordCanvas:d,keepIframeSrcFn:f,newlyAddedElement:h=!1,rootId:m,maskAllText:y,maskTextClass:g,unmaskTextClass:v,maskTextSelector:b,unmaskTextSelector:_}=t,S=function(e,t,r,n){try{if(n&&e.matches(n))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){const n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(o){}return!1}(e,n,o,a),w=function(e){if(e instanceof HTMLFormElement)return"form";const t=Bl(e.tagName);return ec.test(t)?"div":t}(e);let E={};const x=e.attributes.length;for(let O=0;O<x;O++){const t=e.attributes[O];
2t.name&&!hc(w,t.name,t.value)&&(E[t.name]=fc(r,w,Bl(t.name),t.value,e,u))}if("link"===w&&i){const t=Array.from(r.styleSheets).find((t=>t.href===e.href));let n=null;t&&(n=Fl(t)),n&&(delete E.rel,delete E.href,E._cssText=sc(n,t.href))}if("style"===w&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=Fl(e.sheet);t&&(E._cssText=sc(t,dc()))}if("input"===w||"textarea"===w||"select"===w||"option"===w){const t=e,r=Wl(t),n=zl(t,$l(w),r),o=t.checked;if("submit"!==r&&"button"!==r&&n){const e=gc(t,g,b,v,_,ql({type:r,tagName:$l(w),maskInputOptions:s}));E.value=Ul({isMasked:e,element:t,value:n,maskInputFn:l})}o&&(E.checked=o)}"option"===w&&(e.selected&&!s.select?E.selected=!0:delete E.selected);if("canvas"===w&&d)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let n=0;n<e.height;n+=50){const o=t.getImageData,a=Vl in o?o[Vl]:o;if(new Uint32Array(a.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(E.rr_dataURL=e.toDataURL(c.type,c.quality));else if(!("__context"in e)){const t=e.toDataURL(c.type,c.quality),r=document.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(c.type,c.quality)&&(E.rr_dataURL=t)}if("img"===w&&p){Jl||(Jl=r.createElement("canvas"),Xl=Jl.getContext("2d"));const t=e,n=t.crossOrigin;t.crossOrigin="anonymous";const o=()=>{t.removeEventListener("load",o);try{Jl.width=t.naturalWidth,Jl.height=t.naturalHeight,Xl.drawImage(t,0,0),E.rr_dataURL=Jl.toDataURL(c.type,c.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}n?E.crossOrigin=n:t.removeAttribute("crossorigin")};t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o)}"audio"!==w&&"video"!==w||(E.rr_mediaState=e.paused?"paused":"played",E.rr_mediaCurrentTime=e.currentTime);h||(e.scrollLeft&&(E.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(E.rr_scrollTop=e.scrollTop));if(S){const{width:t,height:r}=e.getBoundingClientRect();E={class:E.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==w||f(E.src)||(S||e.contentDocument||(E.rr_src=E.src),delete E.src);let k;try{customElements.get(w)&&(k=!0)}catch(T){}return{type:El.Element,tagName:w,attributes:E,childNodes:[],isSVG:pc(e)||void 0,needBlock:S,rootId:m,isCustom:k}}(e,{doc:r,blockClass:o,blockSelector:a,unblockSelector:i,inlineStylesheet:f,maskAttributeFn:u,maskInputOptions:h,maskInputFn:y,dataURLOptions:g,inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:S,rootId:w,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:p,unmaskTextSelector:d});case e.TEXT_NODE:return function(e,t){const{maskAllText:r,maskTextClass:n,unmaskTextClass:o,maskTextSelector:a,unmaskTextSelector:i,maskTextFn:s,maskInputOptions:u,maskInputFn:l,rootId:c}=t,p=e.parentNode&&e.parentNode.tagName;let d=e.textContent;const f="STYLE"===p||void 0,h="SCRIPT"===p||void 0,m="TEXTAREA"===p||void 0;if(f&&d){try{e.nextSibling||e.previousSibling||Ml([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(d=Fl(e.parentNode.sheet))}catch(g){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${g}`,e)}d=sc(d,dc())}h&&(d="SCRIPT_PLACEHOLDER");const y=gc(e,n,a,o,i,r);f||h||m||!d||!y||(d=s?s(d,e.parentElement):d.replace(/[\S]/g,"*"));m&&d&&(u.textarea||y)&&(d=l?l(d,e.parentNode):d.replace(/[\S]/g,"*"));"OPTION"===p&&d&&(d=Ul({isMasked:gc(e,n,a,o,i,ql({type:null,tagName:p,maskInputOptions:u})),element:e,value:d,maskInputFn:l}));return{type:El.Text,textContent:d||"",isStyle:f,rootId:c}}(e,{maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:p,unmaskTextSelector:d,maskTextFn:m,maskInputOptions:h,maskInputFn:y,rootId:w});case e.CDATA_SECTION_NODE:return{type:El.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:El.Comment,textContent:e.textContent||"",rootId:w};default:return!1}}function bc(e){return null==e?"":e.toLowerCase()}function _c(e,t){const{doc:r,mirror:n,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:s,maskTextClass:u,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:p,skipChild:d=!1,inl
2ineStylesheet:f=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b={},inlineImages:_=!1,recordCanvas:S=!1,onSerialize:w,onIframeLoad:E,iframeLoadTimeout:x=5e3,onStylesheetLoad:k,stylesheetLoadTimeout:T=5e3,keepIframeSrcFn:O=(()=>!1),newlyAddedElement:I=!1}=t;let{preserveWhiteSpace:C=!0}=t;const R=vc(e,{doc:r,mirror:n,blockClass:o,blockSelector:a,maskAllText:s,unblockSelector:i,maskTextClass:u,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,dataURLOptions:b,inlineImages:_,recordCanvas:S,keepIframeSrcFn:O,newlyAddedElement:I});if(!R)return console.warn(e,"not serialized"),null;let A;A=n.hasNode(e)?n.getId(e):!function(e,t){if(t.comment&&e.type===El.Comment)return!0;if(e.type===El.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===Ql(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(bc(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===bc(e.attributes.name)||"icon"===bc(e.attributes.rel)||"apple-touch-icon"===bc(e.attributes.rel)||"shortcut icon"===bc(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&bc(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(bc(e.attributes.property).match(/^(og|twitter|fb):/)||bc(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===bc(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===bc(e.attributes.name)||"googlebot"===bc(e.attributes.name)||"bingbot"===bc(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===bc(e.attributes.name)||"generator"===bc(e.attributes.name)||"framework"===bc(e.attributes.name)||"publisher"===bc(e.attributes.name)||"progid"===bc(e.attributes.name)||bc(e.attributes.property).match(/^article:/)||bc(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===bc(e.attributes.name)||"yandex-verification"===bc(e.attributes.name)||"csrf-token"===bc(e.attributes.name)||"p:domain_verify"===bc(e.attributes.name)||"verify-v1"===bc(e.attributes.name)||"verification"===bc(e.attributes.name)||"shopify-checkout-api-token"===bc(e.attributes.name)))return!0}}return!1}(R,v)&&(C||R.type!==El.Text||R.isStyle||R.textContent.replace(/^\s+|\s+$/gm,"").length)?rc():tc;const P=Object.assign(R,{id:A});if(n.add(e,P),A===tc)return null;w&&w(e);let M=!d;if(P.type===El.Element){M=M&&!P.needBlock,delete P.needBlock;const t=e.shadowRoot;t&&Dl(t)&&(P.isShadowHost=!0)}if((P.type===El.Document||P.type===El.Element)&&M){v.headWhitespace&&P.type===El.Element&&"head"===P.tagName&&(C=!1);const t={doc:r,mirror:n,blockClass:o,blockSelector:a,maskAllText:s,unblockSelector:i,maskTextClass:u,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:p,skipChild:d,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:S,preserveWhiteSpace:C,onSerialize:w,onIframeLoad:E,iframeLoadTimeout:x,onStylesheetLoad:k,stylesheetLoadTimeout:T,keepIframeSrcFn:O};for(const r of Array.from(e.childNodes)){const e=_c(r,t);e&&P.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const r of Array.from(e.shadowRoot.childNodes)){const n=_c(r,t);n&&(Dl(e.shadowRoot)&&(n.isShadow=!0),P.childNodes.push(n))}}return e.parentNode&&jl(e.parentNode)&&Dl(e.parentNode)&&(P.isShadow=!0),P.type===El.Element&&"iframe"===P.tagName&&function(e,t,r){const n=e.contentWindow;if(!n)return;let o,a=!1;try{o=n.document.readyState}catch(s){return}if("complete"!==o){const n=Kl((()=>{a||(t(),a=!0)}),r);return void e.addEventListener("load",(()=>{Yl(n),a=!0,t()}))}const i="about:blank";if(n.location.href!==i||e.src===i||""===e.src)return Kl(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=e.contentDocument;if(t&&E){const r=_c(t,{doc:t,mirror:n,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:s,maskTextClass:u,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:S,preserveWhiteSpace:C,onSerialize:w,onIframeLoad:E,iframeLoadTimeout:x,onStylesheetLoad:k,stylesheetLoadTimeout:T,keepIframeSrcFn:O});r&&E(e,r)}}),x),P.type===El.Element&&"link"===P.tagName&&"string"==typeof P.attributes.rel&&("stylesheet"===P.attributes.rel||"preload"===P.attributes.rel&&"string"==typeof P.attributes.href&&"css"===Ql(P.attributes.href))&&function(e,t,r){let n,o=!1;try{n=e.sheet}catch(i){return}if(n)return;const a=Kl((()=>{o||(t(),o=!0)}),r);e.addEventListener("load",(()=>{Yl(a),o=!0,t()}))}(e,(()=>{if(k){const t=_c(e,{doc:r,mirror:n,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:s,maskTextClass:u,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:S,preserveWhiteSpace:C,onSerialize:w,onIframeLoad:E,iframeLoadTimeout:x,onStylesheetLoad:k,stylesheetLoadTimeout:T,keepIframeSrcFn:O});t&&k(e,t)}}),T),P}function Sc(e){let t,r=e[0],n=1;for(;n<e.length;){const o=e[n],a=e[n+1];if(n+=2,("optionalAccess"===o||"optionalCall"===o)&&null==r)return;"access"===o||"optionalAccess"===o?(t=r,r=a(r)):"call"!==o&&"optionalCall"!==o||(r=a(((...e)=>r.call(t,...e))),t=void 0)}return r}function wc(e,t,r=document){const n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}var Ec="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.",xc={map:{},getId:()=>(console.error(Ec),-1),getNode:()=>(console.error(Ec),null),removeNodeFromMap(){console.error(Ec)},has:()=>(console.error(Ec),!1),reset(){console.error(Ec)}};function kc(e,t,r={}){let n=null,o=0;return function(...a){const i=Date.now();o||!1!==r.leading||(o=i);const s=t-(i-o),u=this;s<=0||s>t?(n&&(!function(...e){zc("clearTimeout")(...e)}
2(n),n=null),o=i,e.apply(u,a)):n||!1===r.trailing||(n=Qc((()=>{o=!1===r.leading?0:Date.now(),n=null,e.apply(u,a)}),s))}}function Tc(e,t,r,n,o=window){const a=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,n?r:{set(e){Qc((()=>{r.set.call(this,e)}),0),a&&a.set&&a.set.call(this,e)}}),()=>Tc(e,t,a||{},!0)}function Oc(e,t,r){try{if(!(t in e))return()=>{};const n=e[t],o=r(n);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=o,()=>{e[t]=n}}catch(n){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(xc=new Proxy(xc,{get:(e,t,r)=>("map"===t&&console.error(Ec),Reflect.get(e,t,r))}));var Ic=Date.now;function Cc(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:Sc([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||Sc([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||Sc([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:Sc([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||Sc([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||Sc([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function Rc(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ac(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Pc(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function Mc(e,t,r,n,o){if(!e)return!1;const a=Pc(e);if(!a)return!1;const i=yc(t,r);if(!o){const e=n&&a.matches(n);return i(a)&&!e}const s=mc(a,i);let u=-1;return!(s<0)&&(n&&(u=mc(a,yc(null,n))),s>-1&&u<0||s<u)}function jc(e,t){return t.getId(e)===tc}function Dc(e,t){if(jl(e))return!1;const r=t.getId(e);return!t.has(r)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Dc(e.parentNode,t))}function Fc(e){return Boolean(e.changedTouches)}function Lc(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Nc(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function qc(e){return Boolean(Sc([e,"optionalAccess",e=>e.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Ic=()=>(new Date).getTime());var Uc=class{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return t=this.styleIDMap.get(e),r=()=>-1,null!=t?t:r();var t,r}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let r;return r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}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 Bc(e){let t=null;return Sc([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 $c(e){const t=e.ownerDocument;if(!t)return!1;const r=function(e){let t,r=e;for(;t=Bc(r);)r=t;return r}(e);return t.contains(r)}function Vc(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||$c(e))}var Wc={};function zc(e){const t=Wc[e];if(t)return t;const r=window.document;let n=window[e];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(o){}return Wc[e]=n.bind(window)}function Qc(...e){return zc("setTimeout")(...e)}var Hc=(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))(Hc||{}),Gc=(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))(Gc||{}),Kc=(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))(Kc||{}),Yc=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Yc||{});
2function Jc(e){let t,r=e[0],n=1;for(;n<e.length;){const o=e[n],a=e[n+1];if(n+=2,("optionalAccess"===o||"optionalCall"===o)&&null==r)return;"access"===o||"optionalAccess"===o?(t=r,r=a(r)):"call"!==o&&"optionalCall"!==o||(r=a(((...e)=>r.call(t,...e))),t=void 0)}return r}function Xc(e){return"__ln"in e}var Zc,ep=class{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 r=0;r<e;r++)t=Jc([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Xc(e.previousSibling)){const r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&Xc(e.nextSibling)&&e.nextSibling.__ln.previous){const r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.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--)}},tp=(e,t)=>`${e}@${t}`,rp=class{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,r=new ep,n=e=>{let t=e,r=tc;for(;r===tc;)t=t&&t.nextSibling,r=t&&this.mirror.getId(t);return r},o=o=>{if(!o.parentNode||!Vc(o))return;const a=jl(o.parentNode)?this.mirror.getId(Bc(o)):this.mirror.getId(o.parentNode),i=n(o);if(-1===a||-1===i)return r.addNode(o);const s=_c(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=>{Lc(e,this.mirror)&&!Mc(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),Nc(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),qc(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{Mc(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)}});s&&(e.push({parentId:a,nextId:i,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const s of this.movedSet)op(this.removes,s,this.mirror)&&!this.movedSet.has(s.parentNode)||o(s);for(const s of this.addedSet)ip(this.droppedSet,s)||op(this.removes,s,this.mirror)?ip(this.movedSet,s)?o(s):this.droppedSet.add(s):o(s);let a=null;for(;r.length;){let e=null;if(a){const t=this.mirror.getId(a.value.parentNode),r=n(a.value);-1!==t&&-1!==r&&(e=a)}if(!e){let t=r.tail;for(;t;){const r=t;if(t=t.previous,r){const t=this.mirror.getId(r.value.parentNode);if(-1===n(r.value))continue;if(-1!==t){e=r;break}{const t=r.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const n=t.parentNode.host;if(-1!==this.mirror.getId(n)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}a=e.previous,r.removeNode(e.value),o(e.value)}const i={texts:this.texts.map((e=>
2({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 r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).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(!jc(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;Mc(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:gc(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,Pc(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const r=e.target;let n=e.attributeName,o=e.target.getAttribute(n);if("value"===n){const t=Wl(r),n=r.tagName;o=zl(r,n,t);const a=ql({maskInputOptions:this.maskInputOptions,tagName:n,type:t});o=Ul({isMasked:gc(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a),element:r,value:o,maskInputFn:this.maskInputFn})}if(Mc(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||o===e.oldValue)return;let a=this.attributeMap.get(e.target);if("IFRAME"===r.tagName&&"src"===n&&!this.keepIframeSrcFn(o)){if(r.contentDocument)return;n="rr_src"}if(a||(a={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(e.target,a)),"type"===n&&"INPUT"===r.tagName&&"password"===(e.oldValue||"").toLowerCase()&&r.setAttribute("data-rr-is-password","true"),!hc(r.tagName,n)&&(a.attributes[n]=fc(this.doc,Bl(r.tagName),Bl(n),o,r,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(r.style)){const t=r.style.getPropertyValue(e),o=r.style.getPropertyPriority(e);t!==n.style.getPropertyValue(e)||o!==n.style.getPropertyPriority(e)?a.styleDiff[e]=""===o?t:[t,o]:a._unchangedStyles[e]=[t,o]}for(const e of Array.from(n.style))""===r.style.getPropertyValue(e)&&(a.styleDiff[e]=!1)}break}case"childList":if(Mc(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const r=this.mirror.getId(t),n=jl(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Mc(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||jc(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(np(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||Dc(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[tp(r,n)]?np(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!(!jl(e.target)||!Dl(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(jc(e,this.mirror))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[tp(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Mc(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),qc(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
2()}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 np(e,t){e.delete(t),t.childNodes.forEach((t=>np(e,t)))}function op(e,t,r){return 0!==e.length&&ap(e,t,r)}function ap(e,t,r){const{parentNode:n}=t;if(!n)return!1;const o=r.getId(n);return!!e.some((e=>e.id===o))||ap(e,n,r)}function ip(e,t){return 0!==e.size&&sp(e,t)}function sp(e,t){const{parentNode:r}=t;return!!r&&(!!e.has(r)||sp(e,r))}function up(e){Zc=e}function lp(){Zc=void 0}var cp=e=>{if(!Zc)return e;return(...t)=>{try{return e(...t)}catch(r){if(Zc&&!0===Zc(r))return()=>{};throw r}}};function pp(e){let t,r=e[0],n=1;for(;n<e.length;){const o=e[n],a=e[n+1];if(n+=2,("optionalAccess"===o||"optionalCall"===o)&&null==r)return;"access"===o||"optionalAccess"===o?(t=r,r=a(r)):"call"!==o&&"optionalCall"!==o||(r=a(((...e)=>r.call(t,...e))),t=void 0)}return r}var dp=[];function fp(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(t){}return e&&e.target}function hp(e,t){const r=new rp;dp.push(r),r.init(e);let n=window.MutationObserver||window.__rrMutationObserver;const o=pp([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);o&&window[o]&&(n=window[o]);const a=new n(cp((t=>{e.onMutation&&!1===e.onMutation(t)||r.processMutations.bind(r)(t)})));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function mp({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,unblockSelector:a,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const s=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,u=[];let l=null;return Object.keys(Kc).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e])).forEach((i=>{let s=Bl(i);const c=(t=>i=>{const s=fp(i);if(Mc(s,n,o,a,!0))return;let u=null,c=t;if("pointerType"in i){switch(i.pointerType){case"mouse":u=Yc.Mouse;break;case"touch":u=Yc.Touch;break;case"pen":u=Yc.Pen}u===Yc.Touch?Kc[t]===Kc.MouseDown?c="TouchStart":Kc[t]===Kc.MouseUp&&(c="TouchEnd"):Yc.Pen}else Fc(i)&&(u=Yc.Touch);null!==u?(l=u,(c.startsWith("Touch")&&u===Yc.Touch||c.startsWith("Mouse")&&u===Yc.Mouse)&&(u=null)):Kc[t]===Kc.Click&&(u=l,l=null);const p=Fc(i)?i.changedTouches[0]:i;if(!p)return;const d=r.getId(s),{clientX:f,clientY:h}=p;cp(e)({type:Kc[c],id:d,x:f,y:h,...null!==u&&{pointerType:u}})})(i);if(window.PointerEvent)switch(Kc[i]){case Kc.MouseDown:case Kc.MouseUp:s=s.replace("mouse","pointer");break;case Kc.TouchStart:case Kc.TouchEnd:return}u.push(wc(s,c,t))})),cp((()=>{u.forEach((e=>e()))}))}function yp({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,unblockSelector:a,sampling:i}){return wc("scroll",cp(kc(cp((i=>{const s=fp(i);if(!s||Mc(s,n,o,a,!0))return;const u=r.getId(s);if(s===t&&t.defaultView){const r=Cc(t.defaultView);e({id:u,x:r.left,y:r.top})}else e({id:u,x:s.scrollLeft,y:s.scrollTop})})),i.scroll||100)),t)}var gp=["INPUT","TEXTAREA","SELECT"],vp=new WeakMap;function bp({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,unblockSelector:a,ignoreClass:i,ignoreSelector:s,maskInputOptions:u,maskInputFn:l,sampling:c,userTriggeredOnInput:p,maskTextClass:d,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:m}){function y(e){let r=fp(e);const c=e.isTrusted,y=r&&$l(r.tagName);if("OPTION"===y&&(r=r.parentElement),!r||!y||gp.indexOf(y)<0||Mc(r,n,o,a,!0))return;const v=r;if(v.classList.contains(i)||s&&v.matches(s))return;const b=Wl(r);let _=zl(v,y,b),S=!1;const w=ql({maskInputOptions:u,tagName:y,type:b}),E=gc(r,d,h,f,m,w);"radio"!==b&&"checkbox"!==b||(S=r.checked),_=Ul({isMasked:E,element:r,value:_,maskInputFn:l}),g(r,p?{text:_,isChecked:S,userTriggered:c}:{text:_,isChecked:S});const x=r.name;"radio"===b&&x&&S&&t.querySelectorAll(`input[type="radio"][name="${x}"]`).forEach((e=>{if(e!==r){const t=Ul({isMasked:E,element:e,value:zl(e,y,b),maskInputFn:l});g(e,p?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}}))}function g(t,n){const o=vp.get(t);if(!o||o.text!==n.text||o.isChecked!==n.isChecked){vp.set(t,n);const o=r.getId(t);cp(e)({...n,id:o})}}const v=("last"===c.input?["change"]:["input","change"]).map((e=>wc(e,cp(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=>Tc(e[0],e[1],{set(){cp(y)({target:this,isTrusted:!1})}},!1,b)))),cp((()=>{v.forEach((e=>e()))}))}function _p(e){return function(e,t){if(xp("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||xp("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||xp("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||xp("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){const r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}(e,[])}function Sp(e,t,r){let n,o;return e?(e.ownerNode?n=t.getId(e.ownerNode):o=r.getId(e),{styleId:o,id:n}):{}}function wp({mirror:e,stylesheetManager:t},r){let n=null;n="#document"===r.nodeName?e.getId(r):e.getId(r.host);const o="#document"===r.nodeName?pp([r,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):pp([r,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),a=pp([o,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(pp([o,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==n&&-1!==n&&o&&a?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return pp([a,"access",e=>
vendor: 4,519 bytes, line 2
2e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const r=pp([a,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==n&&-1!==n)try{t.adoptStyleSheets(e,n)}catch(o){}return r}}),cp((()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))):()=>{}}function Ep(e,t={}){const r=e.doc.defaultView;if(!r)return()=>{};let n;e.recordDOM&&(n=hp(e,e.doc));const o=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){if(!1===t.mousemove)return()=>{};const o="number"==typeof t.mousemove?t.mousemove:50,a="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let i,s=[];const u=kc(cp((t=>{const r=Date.now()-i;e(s.map((e=>(e.timeOffset-=r,e))),t),s=[],i=null})),a),l=cp(kc(cp((e=>{const t=fp(e),{clientX:r,clientY:o}=Fc(e)?e.changedTouches[0]:e;i||(i=Ic()),s.push({x:r,y:o,id:n.getId(t),timeOffset:Ic()-i}),u("undefined"!=typeof DragEvent&&e instanceof DragEvent?Gc.Drag:e instanceof MouseEvent?Gc.MouseMove:Gc.TouchMove)})),o,{trailing:!1})),c=[wc("mousemove",l,r),wc("touchmove",l,r),wc("drag",l,r)];return cp((()=>{c.forEach((e=>e()))}))}(e),a=mp(e),i=yp(e),s=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return wc("resize",cp(kc(cp((()=>{const t=Rc(),o=Ac();r===t&&n===o||(e({width:Number(o),height:Number(t)}),r=t,n=o)})),200)),t)}(e,{win:r}),u=bp(e),l=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:o,sampling:a,doc:i}){const s=cp((i=>kc(cp((a=>{const s=fp(a);if(!s||Mc(s,t,r,n,!0))return;const{currentTime:u,volume:l,muted:c,playbackRate:p}=s;e({type:i,id:o.getId(s),currentTime:u,volume:l,muted:c,playbackRate:p})})),a.media||500))),u=[wc("play",s(0),i),wc("pause",s(1),i),wc("seeked",s(2),i),wc("volumechange",s(3),i),wc("ratechange",s(4),i)];return cp((()=>{u.forEach((e=>e()))}))}(e);let c=()=>{},p=()=>{},d=()=>{},f=()=>{};e.recordDOM&&(c=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const o=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:cp(((n,o,a)=>{const[i,s]=a,{id:u,styleId:l}=Sp(o,t,r.styleMirror);return(u&&-1!==u||l&&-1!==l)&&e({id:u,styleId:l,adds:[{rule:i,index:s}]}),n.apply(o,a)}))});const a=n.CSSStyleSheet.prototype.deleteRule;let i,s;n.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:cp(((n,o,a)=>{const[i]=a,{id:s,styleId:u}=Sp(o,t,r.styleMirror);return(s&&-1!==s||u&&-1!==u)&&e({id:s,styleId:u,removes:[{index:i}]}),n.apply(o,a)}))}),n.CSSStyleSheet.prototype.replace&&(i=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:cp(((n,o,a)=>{const[i]=a,{id:s,styleId:u}=Sp(o,t,r.styleMirror);return(s&&-1!==s||u&&-1!==u)&&e({id:s,styleId:u,replace:i}),n.apply(o,a)}))})),n.CSSStyleSheet.prototype.replaceSync&&(s=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:cp(((n,o,a)=>{const[i]=a,{id:s,styleId:u}=Sp(o,t,r.styleMirror);return(s&&-1!==s||u&&-1!==u)&&e({id:s,styleId:u,replaceSync:i}),n.apply(o,a)}))}));const u={};kp("CSSGroupingRule")?u.CSSGroupingRule=n.CSSGroupingRule:(kp("CSSMediaRule")&&(u.CSSMediaRule=n.CSSMediaRule),kp("CSSConditionRule")&&(u.CSSConditionRule=n.CSSConditionRule),kp("CSSSupportsRule")&&(u.CSSSupportsRule=n.CSSSupportsRule));const l={};return Object.entries(u).forEach((([n,o])=>{l[n]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(l[n].insertRule,{apply:cp(((n,o,a)=>{const[i,s]=a,{id:u,styleId:l}=Sp(o.parentStyleSheet,t,r.styleMirror);return(u&&-1!==u||l&&-1!==l)&&e({id:u,styleId:l,adds:[{rule:i,index:[..._p(o),s||0]}]}),n.apply(o,a)}))}),o.prototype.deleteRule=new Proxy(l[n].deleteRule,{apply:cp(((n,o,a)=>{const[i]=a,{id:s,styleId:u}=Sp(o.parentStyleSheet,t,r.styleMirror);return(s&&-1!==s||u&&-1!==u)&&e({id:s,styleId:u,removes:[{index:[..._p(o),i]}]}),n.apply(o,a)}))})})),cp((()=>{n.CSSStyleSheet.prototype.insertRule=o,n.CSSStyleSheet.prototype.deleteRule=a,i&&(n.CSSStyleSheet.prototype.replace=i),s&&(n.CSSStyleSheet.prototype.replaceSync=s),Object.entries(u).forEach((([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule}))}))}(e,{win:r}),p=wp(e,e.doc),d=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:o}){const a=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:cp(((o,i,s)=>{const[u,l,c]=s;
2if(r.has(u))return a.apply(i,[u,l,c]);const{id:p,styleId:d}=Sp(pp([i,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,n.styleMirror);return(p&&-1!==p||d&&-1!==d)&&e({id:p,styleId:d,set:{property:u,value:l,priority:c},index:_p(i.parentRule)}),o.apply(i,s)}))});const i=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:cp(((o,a,s)=>{const[u]=s;if(r.has(u))return i.apply(a,[u]);const{id:l,styleId:c}=Sp(pp([a,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,n.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,remove:{property:u},index:_p(a.parentRule)}),o.apply(a,s)}))}),cp((()=>{o.CSSStyleDeclaration.prototype.setProperty=a,o.CSSStyleDeclaration.prototype.removeProperty=i}))}(e,{win:r}),e.collectFonts&&(f=function({fontCb:e,doc:t}){const r=t.defaultView;if(!r)return()=>{};const n=[],o=new WeakMap,a=r.FontFace;r.FontFace=function(e,t,r){const n=new a(e,t,r);return o.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};const i=Oc(t.fonts,"add",(function(t){return function(r){return Qc(cp((()=>{const t=o.get(r);t&&(e(t),o.delete(r))})),0),t.apply(this,[r])}}));return n.push((()=>{r.FontFace=a})),n.push(i),cp((()=>{n.forEach((e=>e()))}))}(e)));const h=function(e){const{doc:t,mirror:r,blockClass:n,blockSelector:o,unblockSelector:a,selectionCb:i}=e;let s=!0;const u=cp((()=>{const e=t.getSelection();if(!e||s&&pp([e,"optionalAccess",e=>e.isCollapsed]))return;s=e.isCollapsed||!1;const u=[],l=e.rangeCount||0;for(let t=0;t<l;t++){const{startContainer:i,startOffset:s,endContainer:l,endOffset:c}=e.getRangeAt(t);Mc(i,n,o,a,!0)||Mc(l,n,o,a,!0)||u.push({start:r.getId(i),startOffset:s,end:r.getId(l),endOffset:c})}i({ranges:u})}));return u(),wc("selectionchange",u)}(e),m=function({doc:e,customElementCb:t}){const r=e.defaultView;return r&&r.customElements?Oc(r.customElements,"define",(function(e){return function(r,n,o){try{t({define:{name:r}})}catch(a){}return e.apply(this,[r,n,o])}})):()=>{}}(e),y=[];for(const g of e.plugins)y.push(g.observer(g.callback,r,g.options));return cp((()=>{dp.forEach((e=>e.reset())),pp([n,"optionalAccess",e=>e.disconnect,"call",e=>e()]),o(),a(),i(),s(),u(),l(),c(),p(),d(),f(),h(),m(),y.forEach((e=>e()))}))}function xp(e){return void 0!==window[e]}function kp(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var Tp=class{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,n){const o=r||this.getIdToRemoteIdMap(e),a=n||this.getRemoteIdToIdMap(e);let i=o.get(t);return i||(i=this.generateIdFn(),o.set(t,i),a.set(i,t)),i}getIds(e,t){const r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,r,n)))}getRemoteId(e,t,r){const n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const o=n.get(t);return o||-1}getRemoteIds(e,t){const r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,r)))}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 Op(e){let t,r=e[0],n=1;for(;n<e.length;){const o=e[n],a=e[n+1];if(n+=2,("optionalAccess"===o||"optionalCall"===o)&&null==r)return;"access"===o||"optionalAccess"===o?(t=r,r=a(r)):"call"!==o&&"optionalCall"!==o||(r=a(((...e)=>r.call(t,...e))),t=void 0)}return r}var Ip,Cp,Rp=class{constructor(){this.crossOriginIframeMirror=new Tp(rc),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}},Ap=class{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=ne
2w Tp(rc),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Tp(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}),Op([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const r=this.crossOriginIframeMap.get(e.source);if(!r)return;const n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case Hc.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:Hc.IncrementalSnapshot,data:{source:Gc.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Hc.Meta:case Hc.Load:case Hc.DomContentLoaded:return!1;case Hc.Plugin:return t;case Hc.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Hc.IncrementalSnapshot:switch(t.data.source){case Gc.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)})),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 Gc.Drag:case Gc.TouchMove:case Gc.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Gc.ViewportResize:return!1;case Gc.MediaInteraction:case Gc.MouseInteraction:case Gc.Scroll:case Gc.CanvasMutation:case Gc.Input:return this.replaceIds(t.data,e,["id"]),t;case Gc.StyleSheetRule:case Gc.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Gc.Font:return t;case Gc.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case Gc.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),Op([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,r,n){for(const o of n)(Array.isArray(t[o])||"number"==typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(r,t[o]):t[o]=e.getId(r,t[o]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}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===El.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}},Pp=class{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}},Mp=class{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(!Dl(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const r=hp({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>r.disconnect())),this.restoreHandlers.push(yp({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),Qc((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(wp({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const r=this;this.restoreHandlers.push(Oc(e.prototype,"attachShadow",(function(e){return function(n){const o=e.call(this,n);return this.shadowRoot&&Vc(this)&&r.addShadowRoot(this.shadowRoot,t),o}})))}
2reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(t){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}},jp=class{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}},Dp=class{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Uc,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 r={id:t,styleIds:[]},n=[];for(const o of e){let e;this.styleMirror.has(o)?e=this.styleMirror.getId(o):(e=this.styleMirror.add(o),n.push({styleId:e,rules:Array.from(o.rules||CSSRule,((e,t)=>({rule:Ll(e),index:t})))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}},Fp=class{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){!function(...e){zc("requestAnimationFrame")(...e)}((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(e,t){const r=this.nodeMap.get(e);return r&&Array.from(r).some((e=>e!==t))}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}};try{if(2!==Array.from([1],(e=>2*e))[0]){const Qw=document.createElement("iframe");document.body.appendChild(Qw),Array.from=qo([Qw,"access",e=>e.contentWindow,"optionalAccess",e=>e.Array,"access",e=>e.from])||Array.from,document.body.removeChild(Qw)}}catch(zw){console.debug("Unable to override Array.from",zw)}var Lp=new Nl;function Np(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:o="rr-block",blockSelector:a=null,unblockSelector:i=null,ignoreClass:s="rr-ignore",ignoreSelector:u=null,maskAllText:l=!1,maskTextClass:c="rr-mask",unmaskTextClass:p=null,maskTextSelector:d=null,unmaskTextSelector:f=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:y,slimDOMOptions:g,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,maxCanvasSize:S=null,packFn:w,sampling:E={},dataURLOptions:x={},mousemoveWait:k,recordDOM:T=!0,recordCanvas:O=!1,recordCrossOriginIframes:I=!1,recordAfter:C=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:R=!1,collectFonts:A=!1,inlineImages:P=!1,plugins:M,keepIframeSrcFn:j=(()=>!1),ignoreCSSAttributes:D=new Set([]),errorHandler:F,onMutation:L,getCanvasManager:N}=e;up(F);const q=!I||window.parent===window;let U=!1;if(!q)try{window.parent.document&&(U=!1)}catch(te){U=!0}if(q&&!t)throw new Error("emit function is required");void 0!==k&&void 0===E.mousemove&&(E.mousemove=k),Lp.reset();const B=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==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||{};let V;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let W=0;const z=e=>{for(const t of M||[])t.eventProcessor&&(e=t.eventProcessor(e));return w&&!U&&(e=w(e)),e};Ip=(e,o)=>{const a=e;if(a.timestamp=Ic(),!qo([dp,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])||a.type===Hc.FullSnapshot||a.type===Hc.IncrementalSnapshot&&a.data.source===Gc.Mutation||dp.forEac
2h((e=>e.unfreeze())),q)qo([t,"optionalCall",e=>e(z(a),o)]);else if(U){const e={type:"rrweb",event:z(a),origin:window.location.origin,isCheckout:o};window.parent.postMessage(e,"*")}if(a.type===Hc.FullSnapshot)V=a,W=0;else if(a.type===Hc.IncrementalSnapshot){if(a.data.source===Gc.Mutation&&a.data.isAttachIframe)return;W++;const e=n&&W>=n,t=r&&V&&a.timestamp-V.timestamp>r;(e||t)&&ee(!0)}};const Q=e=>{Ip({type:Hc.IncrementalSnapshot,data:{source:Gc.Mutation,...e}})},H=e=>Ip({type:Hc.IncrementalSnapshot,data:{source:Gc.Scroll,...e}}),G=e=>Ip({type:Hc.IncrementalSnapshot,data:{source:Gc.CanvasMutation,...e}}),K=new Dp({mutationCb:Q,adoptedStyleSheetCb:e=>Ip({type:Hc.IncrementalSnapshot,data:{source:Gc.AdoptedStyleSheet,...e}})}),Y="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new Rp:new Ap({mirror:Lp,mutationCb:Q,stylesheetManager:K,recordCrossOriginIframes:I,wrappedEmit:Ip});for(const ne of M||[])ne.getMirror&&ne.getMirror({nodeMirror:Lp,crossOriginIframeMirror:Y.crossOriginIframeMirror,crossOriginIframeStyleMirror:Y.crossOriginIframeStyleMirror});const J=new Fp,X=function(e,t){try{return e?e(t):new jp}catch(r){return console.warn("Unable to initialize CanvasManager"),new jp}}(N,{mirror:Lp,win:window,mutationCb:e=>Ip({type:Hc.IncrementalSnapshot,data:{source:Gc.CanvasMutation,...e}}),recordCanvas:O,blockClass:o,blockSelector:a,unblockSelector:i,maxCanvasSize:S,sampling:E.canvas,dataURLOptions:x,errorHandler:F}),Z="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Pp:new Mp({mutationCb:Q,scrollCb:H,bypassOptions:{onMutation:L,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:l,maskTextClass:c,unmaskTextClass:p,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:B,dataURLOptions:x,maskAttributeFn:v,maskTextFn:_,maskInputFn:b,recordCanvas:O,inlineImages:P,sampling:E,slimDOMOptions:$,iframeManager:Y,stylesheetManager:K,canvasManager:X,keepIframeSrcFn:j,processedNodeManager:J},mirror:Lp}),ee=(e=!1)=>{if(!T)return;Ip({type:Hc.Meta,data:{href:window.location.href,width:Ac(),height:Rc()}},e),K.reset(),Z.init(),dp.forEach((e=>e.lock()));const t=function(e,t){const{mirror:r=new Nl,blockClass:n="rr-block",blockSelector:o=null,unblockSelector:a=null,maskAllText:i=!1,maskTextClass:s="rr-mask",unmaskTextClass:u=null,maskTextSelector:l=null,unmaskTextSelector:c=null,inlineStylesheet:p=!0,inlineImages:d=!1,recordCanvas:f=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOM:v=!1,dataURLOptions:b,preserveWhiteSpace:_,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:E,onStylesheetLoad:x,stylesheetLoadTimeout:k,keepIframeSrcFn:T=(()=>!1)}=t||{};return _c(e,{doc:e,mirror:r,blockClass:n,blockSelector:o,unblockSelector:a,maskAllText:i,maskTextClass:s,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:c,skipChild:!1,inlineStylesheet:p,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:m,maskTextFn: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:d,recordCanvas:f,preserveWhiteSpace:_,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:E,onStylesheetLoad:x,stylesheetLoadTimeout:k,keepIframeSrcFn:T,newlyAddedElement:!1})}(document,{mirror:Lp,blockClass:o,blockSelector:a,unblockSelector:i,maskAllText:l,maskTextClass:c,unmaskTextClass:p,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:h,maskAllInputs:B,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,slimDOM:$,dataURLOptions:x,recordCanvas:O,inlineImages:P,onSerialize:e=>{Lc(e,Lp)&&Y.addIframe(e),Nc(e,Lp)&&K.trackLinkElement(e),qc(e)&&Z.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Y.attachIframe(e,t),e.contentWindow&&X.addWindow(e.contentWindow),Z.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{K.attachLinkElement(e,t)},keepIframeSrcFn:j});if(!t)return console.warn("Failed to snapshot the document");Ip({type:Hc.FullSnapshot,data:{node:t,initialOffset:Cc(window)}}
2),dp.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&K.adoptStyleSheets(document.adoptedStyleSheets,Lp.getId(document))};Cp=ee;try{const e=[],t=e=>cp(Ep)({onMutation:L,mutationCb:Q,mousemoveCb:(e,t)=>Ip({type:Hc.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Ip({type:Hc.IncrementalSnapshot,data:{source:Gc.MouseInteraction,...e}}),scrollCb:H,viewportResizeCb:e=>Ip({type:Hc.IncrementalSnapshot,data:{source:Gc.ViewportResize,...e}}),inputCb:e=>Ip({type:Hc.IncrementalSnapshot,data:{source:Gc.Input,...e}}),mediaInteractionCb:e=>Ip({type:Hc.IncrementalSnapshot,data:{source:Gc.MediaInteraction,...e}}),styleSheetRuleCb:e=>Ip({type:Hc.IncrementalSnapshot,data:{source:Gc.StyleSheetRule,...e}}),styleDeclarationCb:e=>Ip({type:Hc.IncrementalSnapshot,data:{source:Gc.StyleDeclaration,...e}}),canvasMutationCb:G,fontCb:e=>Ip({type:Hc.IncrementalSnapshot,data:{source:Gc.Font,...e}}),selectionCb:e=>{Ip({type:Hc.IncrementalSnapshot,data:{source:Gc.Selection,...e}})},customElementCb:e=>{Ip({type:Hc.IncrementalSnapshot,data:{source:Gc.CustomElement,...e}})},blockClass:o,ignoreClass:s,ignoreSelector:u,maskAllText:l,maskTextClass:c,unmaskTextClass:p,maskTextSelector:d,unmaskTextSelector:f,maskInputOptions:B,inlineStylesheet:h,sampling:E,recordDOM:T,recordCanvas:O,inlineImages:P,userTriggeredOnInput:R,collectFonts:A,doc:e,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,keepIframeSrcFn:j,blockSelector:a,unblockSelector:i,slimDOMOptions:$,dataURLOptions:x,mirror:Lp,iframeManager:Y,stylesheetManager:K,shadowDomManager:Z,processedNodeManager:J,canvasManager:X,ignoreCSSAttributes:D,plugins:qo([M,"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=>Ip({type:Hc.Plugin,data:{plugin:e.name,payload:t}})})))])||[]},{});Y.addLoadListener((r=>{try{e.push(t(r.contentDocument))}catch(n){console.warn(n)}}));const r=()=>{ee(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(wc("DOMContentLoaded",(()=>{Ip({type:Hc.DomContentLoaded,data:{}}),"DOMContentLoaded"===C&&r()}))),e.push(wc("load",(()=>{Ip({type:Hc.Load,data:{}}),"load"===C&&r()}),window))),()=>{e.forEach((e=>e())),J.destroy(),Cp=void 0,lp()}}catch(re){console.warn(re)}}Np.mirror=Lp,Np.takeFullSnapshot=function(e){if(!Cp)throw new Error("please take full snapshot after start recording");Cp(e)};var qp="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Up=["info","warn","error","log"],Bp="[Replay] ";function $p(e,t="info"){Bi({category:"console",data:{logger:"replay"},level:t,message:`${Bp}${e}`},{level:t})}var Vp=function(){let e=!1,t=!1;const r={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=r.captureExceptions,t=r.traceInternals}};return qp?(Up.forEach((e=>{r[e]=(...r)=>{tn[e](Bp,...r),t&&$p(r[0])}})),r.exception=(n,...o)=>{r.error&&r.error(...o),tn.error(Bp,n),e?mi(n):t&&$p(n)},r.infoTick=(...e)=>{tn.info(Bp,...e),t&&setTimeout((()=>$p(e[0])),0)}):Up.forEach((e=>{r[e]=()=>{}})),r}(),Wp=3;function zp(e){return e>9999999999?e:1e3*e}function Qp(e){return e>9999999999?e/1e3:e}function Hp(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:Hc.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:ao(t,10,1e3)}}),"console"===t.category))))}var Gp,Kp="button,a";function Yp(e){return e.closest(Kp)||e}function Jp(e){const t=Xp(e);return t&&t instanceof Element?Yp(t):t}function Xp(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}function Zp(e){return Gp||(Gp=[],un(xl,"open",(function(e){return function(...t){if(Gp)try{Gp.forEach((e=>e()))}catch(r){}return e.apply(xl,t)}}))),Gp.push(e),()=>{const t=Gp?Gp.indexOf(e):-1;t>-1&&Gp.splice(t,1)}}var ed=new Set([Gc.Mutation,Gc.StyleSheetRule,Gc.StyleDeclaration,Gc.AdoptedStyleSheet,Gc.CanvasMutation,Gc.Selection,Gc.MediaInteraction]);var td,rd=class{constructor(e,t,r=Hp){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const e=Zp((()=>{this._lastMutation=od()}));this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){return!nd.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))))}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const r={timestamp:Qp(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===r.node&&Math.abs(e.timestamp-r.timestamp)<1))||(this._clicks.push(r),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=Qp(e)}registerScroll(e=Date.now()){this._lastScroll=Qp(e)}registerClick(e){const t=Yp(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=od();this._clicks.forEach((r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=t&&e.push(r)}));for(const r of e){const e=this._clicks.indexOf(r);e>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,n=e.mutationAfter&&e.mutationAfter<=this._threshold,o=!r&&!n,{clickCount:a,clickBreadcrumb:i}=e;if(o){const r=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),n=r<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:{...i.data,url:xl.location.href,route:t.getCurrentRoute(),timeAfterClickMs:r,endReason:n,clickCount:a||1}};this._addBreadcrumbEvent(t,o)}else if(a>1){const e={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:xl.location.href,route:t.getCurrentRoute(),clickCount:a,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=zu((()=>this._checkClicks()),1e3)}},nd=["A","BUTTON","INPUT"];function od(){return Date.now()/1e3}function ad(e,t){try{if(!function(e){return e.type===Wp}(t))return;const{source:r}=t.data;if(ed.has(r)&&e.registerMutation(t.timestamp),r===Gc.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===Gc.MouseInteraction}(t)){const{type:r,id:n}=t.data,o=Np.mirror.getNode(n);o instanceof HTMLElement&&r===Kc.Click&&e.registerClick(o)}}catch(r){}}function id(e){return{timestamp:Date.now()/1e3,type:"default",...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"}(td||(td={}));var sd=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function ud(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const r in e)if(sd.has(r)){let n=r;"data-testid"!==r&&"data-test-id"!==r||(n="testId"),t[n]=e[r]}return t}var ld=e=>t=>{if(!e.isEnabled())return;const r=function(e){const{target:t,message:r}=function(e){const t="click"===e.name;let r,n=null;try{n=t?Jp(e.event):Xp(e.event),r=Hr(n,{maxStringLength:200})||"<unknown>"}catch(o){r="<unknown>"}return{target:n,message:r}}(e);return id({category:`ui.${e.name}`,...cd(t,r)}
2)}(t);if(!r)return;const n="click"===t.name,o=n?t.event:void 0;var a,i,s;!(n&&e.clickDetector&&o&&o.target)||o.altKey||o.metaKey||o.ctrlKey||o.shiftKey||(a=e.clickDetector,i=r,s=Jp(t.event),a.handleClick(i,s)),Hp(e,r)};function cd(e,t){const r=Np.mirror.getId(e),n=r&&Np.mirror.getNode(r),o=n&&Np.mirror.getMeta(n),a=o&&function(e){return e.type===td.Element}(o)?o:null;return{message:t,data:a?{nodeId:r,node:{id:r,tagName:a.tagName,textContent:Array.from(a.childNodes).map((e=>e.type===td.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:ud(a.attributes)}}:{}}}function pd(e,t){if(!e.isEnabled())return;e.updateUserActivity();const r=function(e){const{metaKey:t,shiftKey:r,ctrlKey:n,altKey:o,key:a,target:i}=e;if(!i||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(i)||!a)return null;const s=t||n||o,u=1===a.length;if(!s&&u)return null;const l=Hr(i,{maxStringLength:200})||"<unknown>";return id({category:"ui.keyDown",message:l,data:{...cd(i,l).data,metaKey:t,shiftKey:r,ctrlKey:n,altKey:o,key:a}})}(t);r&&Hp(e,r)}var dd={resource:function(e){const{entryType:t,initiatorType:r,name:n,responseEnd:o,startTime:a,decodedBodySize:i,encodedBodySize:s,responseStatus:u,transferSize:l}=e;return["fetch","xmlhttprequest"].includes(r)?null:{type:`${t}.${r}`,start:md(a),end:md(o),name:n,data:{size:l,statusCode:u,decodedBodySize:i,encodedBodySize:s}}},paint:function(e){const{duration:t,entryType:r,name:n,startTime:o}=e,a=md(o);return{type:r,name:n,start:a,end:a+t,data:void 0}},navigation:function(e){const{entryType:t,name:r,decodedBodySize:n,duration:o,domComplete:a,encodedBodySize:i,domContentLoadedEventStart:s,domContentLoadedEventEnd:u,domInteractive:l,loadEventStart:c,loadEventEnd:p,redirectCount:d,startTime:f,transferSize:h,type:m}=e;return 0===o?null:{type:`${t}.${m}`,start:md(f),end:md(a),name:r,data:{size:h,decodedBodySize:n,encodedBodySize:i,duration:o,domInteractive:l,domContentLoadedEventStart:s,domContentLoadedEventEnd:u,loadEventStart:c,loadEventEnd:p,domComplete:a,redirectCount:d}}}};function fd(e,t){return({metric:r})=>{t.replayPerformanceEntries.push(e(r))}}function hd(e){const t=dd[e.entryType];return t?t(e):null}function md(e){return((Ln||xl.performance.timeOrigin)+e)/1e3}function yd(e){const t=e.entries[e.entries.length-1];return Sd(e,"largest-contentful-paint",t&&t.element?[t.element]:void 0)}function gd(e){return void 0!==e.sources}function vd(e){const t=[],r=[];for(const n of e.entries)if(gd(n)){const e=[];for(const t of n.sources)if(t.node){r.push(t.node);const n=Np.mirror.getId(t.node);n&&e.push(n)}t.push({value:n.value,nodeIds:e.length?e:void 0})}return Sd(e,"cumulative-layout-shift",r,t)}function bd(e){const t=e.entries[e.entries.length-1];return Sd(e,"first-input-delay",t&&t.target?[t.target]:void 0)}function _d(e){const t=e.entries[e.entries.length-1];return Sd(e,"interaction-to-next-paint",t&&t.target?[t.target]:void 0)}function Sd(e,t,r,n){const o=e.value,a=e.rating,i=md(o);return{type:"web-vital",name:t,start:i,end:i,data:{value:o,size:o,rating:a,nodeIds:r?r.map((e=>Np.mirror.getId(e))):void 0,attributions:n}}}var wd='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))}
vendor: 4,591 bytes, line 2
2,M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;
2++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(J)return J.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(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});';
2var Ed=class extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}},xd=class{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>Rl)throw new Ed;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?zp(e):null}},kd=class{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:r})=>{r.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){qp&&Vp.info("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const r=this._getAndIncrementId();return new Promise(((n,o)=>{const a=({data:t})=>{const i=t;if(i.method===e&&i.id===r){if(this._worker.removeEventListener("message",a),!i.success)return qp&&Vp.error("Error in compression worker: ",i.response),void o(new Error("Error in compression worker"));n(i.response)}};this._worker.addEventListener("message",a),this._worker.postMessage({id:r,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}},Td=class{constructor(e){this._worker=new kd(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=zp(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const r=JSON.stringify(e);return this._totalSize+=r.length,this._totalSize>Rl?Promise.reject(new Ed):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{qp&&Vp.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}},Od=class{constructor(e){this._fallback=new xd,this._compression=new Td(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void(qp&&Vp.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t}=this._fallback,r=[];for(const o of e)r.push(this._compression.addEvent(o));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(r)}catch(n){qp&&Vp.exception(n,"Failed to add events when switching buffers.")}}};function Id({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||("undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":function(){const e=new Blob([wd]);return URL.createObjectURL(e)}());if(!t)return;qp&&Vp.info("Using compression worker"+(e?` from ${e}`:""));const r=new Worker(t);return new Od(r)}catch(t){qp&&Vp.exception(t,"Failed to create compression worker")}}(t);if(e)return e}return qp&&Vp.info("Using simple buffer"),new xd}function Cd(){try{return"sessionStorage"in xl&&!!xl.sessionStorage}catch(e){return!1}}function Rd(e){!function(){if(!Cd())return;try{xl.sessionStorage.removeItem(kl)}catch(e){}}(),e.session=void 0}function Ad(e){return void 0!==e&&Math.random()<e}function Pd(e){const t=Date.now();return{id:e.id||Xn(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function Md(e){if(Cd())try{xl.sessionStorage.setItem(kl,JSON.stringify(e))}catch(t){}}
2function jd(e,t){return Ad(e)?"session":!!t&&"buffer"}function Dd({sessionSampleRate:e,allowBuffering:t,stickySession:r=!1},{previousSessionId:n}={}){const o=Pd({sampled:jd(e,t),previousSessionId:n});return r&&Md(o),o}function Fd(e,t,r=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=r}function Ld(e,{maxReplayDuration:t,sessionIdleExpire:r,targetTime:n=Date.now()}){return Fd(e.started,t,n)||Fd(e.lastActivity,r,n)}function Nd(e,{sessionIdleExpire:t,maxReplayDuration:r}){return!!Ld(e,{sessionIdleExpire:t,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function qd({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:r},n){const o=n.stickySession&&function(){if(!Cd())return null;try{const e=xl.sessionStorage.getItem(kl);if(!e)return null;const t=JSON.parse(e);return qp&&Vp.infoTick("Loading existing session"),Pd(t)}catch(e){return null}}();return o?Nd(o,{sessionIdleExpire:e,maxReplayDuration:t})?(qp&&Vp.infoTick("Session in sessionStorage is expired, creating new one..."),Dd(n,{previousSessionId:o.id})):o:(qp&&Vp.infoTick("Creating new session"),Dd(n,{previousSessionId:r}))}function Ud(e,t,r){return!!$d(e,t)&&(Bd(e,t,r),!0)}async function Bd(e,t,r){if(!e.eventBuffer)return null;try{r&&"buffer"===e.recordingMode&&e.eventBuffer.clear(),r&&(e.eventBuffer.hasCheckout=!0);const n=function(e,t){try{if("function"==typeof t&&function(e){return e.type===Hc.Custom}(e))return t(e)}catch(r){return qp&&Vp.exception(r,"An error occured in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!n)return;return await e.eventBuffer.addEvent(n)}catch(n){const t=n&&n instanceof Ed?"addEventSizeExceeded":"addEvent";e.handleException(n),await e.stop({reason:t});const r=sa();r&&r.recordDroppedEvent("internal_sdk_error","replay")}}function $d(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const r=zp(t.timestamp);return!(r+e.timeouts.sessionIdlePause<Date.now())&&(!(r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(qp&&Vp.infoTick(`Skipping event with timestamp ${r} because it is after maxReplayDuration`),!1))}function Vd(e){return!e.type}function Wd(e){return"transaction"===e.type}function zd(e){return"feedback"===e.type}function Qd(e){return(t,r)=>{if(!e.isEnabled()||!Vd(t)&&!Wd(t))return;const n=r&&r.statusCode;!n||n<200||n>=300||(Wd(t)?function(e,t){const r=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&r.traceIds.size<100&&r.traceIds.add(t.contexts.trace.trace_id)}(e,t):function(e,t){const r=e.getContext();t.event_id&&r.errorIds.size<100&&r.errorIds.add(t.event_id);if("buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:n}=e.getOptions();if("function"==typeof n&&!n(t))return;zu((()=>{e.sendBufferedReplayOrFlush()}))}(e,t))}}function Hd(e){return t=>{e.isEnabled()&&Vd(t)&&function(e,t){const r=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if("string"!=typeof r)return;(r.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||r.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&Hp(e,id({category:"replay.hydrate-error",data:{url:Kr()}}))}(e,t)}}function Gd(e){const t=sa();t&&t.on("beforeAddBreadcrumb",(t=>function(e,t){if(!e.isEnabled()||!Kd(t))return;const r=function(e){return!Kd(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:"console"===e.category?function(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return id(e);let r=!1;const n=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>Cl?(r=!0,`${e.slice(0,Cl)}…`):e;if("object"==typeof e)try{const t=ao(e,7);return JSON.stringify(t).length>Cl?(r=!0,`${JSON.stringify(t,null,2).slice(0,Cl)}…`):t}catch(t){}return e}));return id({...e,data:{...e.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e):id(e)}(t);r&&Hp(e,r)}(e,t)))}function Kd(e){return!!e.category}function Yd(e){return Object.assign(((t,r)=>e.isEnabled()?function(e){return"replay_event"===e.type}(t)?(delete t.breadcrumbs,t):(Vd(t)||Wd(t)||zd(t))&&e.checkAndHandleExpiredSession()?zd(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:Hc.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}(e,t),t):function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length||!t.originalException||!t.originalException.__rrweb__)}(t,r)&&!e.getOptions()._experiments.captureExceptions?(qp&&Vp.log("Ignoring error from rrweb internals",t),null):((function(e,t){return"buffer"===e.recordingMode&&t.message!==Ol&&!(!t.exception||t.type)&&Ad(e.getOptions().errorSampleRate)}(e,t)||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):t:t),{id:"Replay"})}function Jd(e,t){return t.map((({type:t,start:r,end:n,name:o,data:a})=>{const i=e.throttledAddEvent({type:Hc.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:t,description:o,startTimestamp:r,endTimestamp:n,data:a}}});return"string"==typeof i?Promise.resolve(null):i}))}function Xd(e){return t=>{if(!e.isEnabled())return;const r=function(e){const{from:t,to:r}=e,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:t}}}(t);null!==r&&(e.getContext().urls.push(r.name),e.triggerUserActivity(),e.addUpdate((()=>(Jd(e,[r]),!1))))}}function Zd(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!qp||!e.getOptions()._experiments.traceInternals)&&Fi(t,sa())}(e,t.name)||e.addUpdate((()=>(Jd(e,[t]),!0))))}function ef(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 r=lf(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(r){}}function tf(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function rf(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[lf(e)];if(!e)return[void 0]}catch(t){return qp&&Vp.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return qp&&Vp.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function nf(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const r={...e._meta};return r.warnings=[...r.warnings||[],t],e._meta=r,e}function of(e,t){if(!t)return null;const{startTimestamp:r,endTimestamp:n,url:o,method:a,statusCode:i,request:s,response:u}=t;return{type:e,start:r/1e3,end:n/1e3,name:o,data:mn({method:a,statusCode:i,request:s,response:u})}}function af(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function sf(e,t,r){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!r)return{headers:e,size:t};const n={headers:e,size:t},{body:o,warnings:a}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>Il,r=function(e){const t=e[0],r=e[e.length-1];return"["===t&&"]"===r||"{"===t&&"}"===r}(e);if(t){const t=e.slice(0,Il);return r?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(r)try{return{body:JSON.parse(e)}}catch(n){}return{body:e}}(r);return n.body=o,a&&a.length>0&&(n._meta={warnings:a}),n}function uf(e,t){return Object.entries(e).reduce(((r,[n,o])=>{const a=n.toLowerCase();return t.includes(a)&&e[n]&&(r[a]=o),r}),{})}function lf(e){return new URLSearchParams(e).toString()}function cf(e,t){return Lr(function(e,t=xl.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(xl.location.origin))return e;
2const r=new URL(e,t);if(r.origin!==new URL(t).origin)return e;const n=r.href;return!e.endsWith("/")&&n.endsWith("/")?n.slice(0,-1):n}(e),t)}async function pf(e,t,r){try{const n=of("resource.fetch",await async function(e,t,r){const n=Date.now(),{startTimestamp:o=n,endTimestamp:a=n}=t,{url:i,method:s,status_code:u=0,request_body_size:l,response_body_size:c}=e.data,p=cf(i,r.networkDetailAllowUrls)&&!cf(i,r.networkDetailDenyUrls);return{startTimestamp:o,endTimestamp:a,url:i,method:s,statusCode:u,request:p?df(r,t.input,l):af(l),response:await ff(p,r,t.response,c)}}(e,t,r));Zd(r.replay,n)}catch(n){qp&&Vp.exception(n,"Failed to capture fetch breadcrumb")}}function df({networkCaptureBodies:e,networkRequestHeaders:t},r,n){const o=r?(i=t,1===(a=r).length&&"string"!=typeof a[0]?yf(a[0],i):2===a.length?yf(a[1],i):{}):{};var a,i;if(!e)return sf(o,n,void 0);const[s,u]=rf(hf(r)),l=sf(o,n,s);return u?nf(l,u):l}async function ff(e,{networkCaptureBodies:t,networkResponseHeaders:r},n,o){if(!e&&void 0!==o)return af(o);const a=n?mf(n.headers,r):{};if(!n||!t&&void 0!==o)return sf(a,o,void 0);const[i,s]=await async function(e){const t=function(e){try{return e.clone()}catch(t){qp&&Vp.exception(t,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await gf(t)]}catch(r){return qp&&Vp.exception(r,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"]}}(n),u=function(e,{networkCaptureBodies:t,responseBodySize:r,captureDetails:n,headers:o}){try{const a=e&&e.length&&void 0===r?ef(e):r;return n?sf(o,a,t?e:void 0):af(a)}catch(a){return qp&&Vp.exception(a,"Failed to serialize response body"),sf(o,r,void 0)}}(i,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:a});return s?nf(u,s):u}function hf(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function mf(e,t){const r={};return t.forEach((t=>{e.get(t)&&(r[t]=e.get(t))})),r}function yf(e,t){if(!e)return{};const r=e.headers;return r?r instanceof Headers?mf(r,t):Array.isArray(r)?{}:uf(r,t):{}}function gf(e){return new Promise(((t,r)=>{const n=zu((()=>r(new Error("Timeout while trying to read response body"))),500);(async function(e){return await e.text()})(e).then((e=>t(e)),(e=>r(e))).finally((()=>clearTimeout(n)))}))}async function vf(e,t,r){try{const n=of("resource.xhr",function(e,t,r){const n=Date.now(),{startTimestamp:o=n,endTimestamp:a=n,input:i,xhr:s}=t,{url:u,method:l,status_code:c=0,request_body_size:p,response_body_size:d}=e.data;if(!u)return null;if(!s||!cf(u,r.networkDetailAllowUrls)||cf(u,r.networkDetailDenyUrls))return{startTimestamp:o,endTimestamp:a,url:u,method:l,statusCode:c,request:af(p),response:af(d)};const f=s[Qu],h=f?uf(f.request_headers,r.networkRequestHeaders):{},m=uf(function(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce(((e,t)=>{const[r,n]=t.split(": ");return n&&(e[r.toLowerCase()]=n),e}),{}):{}}(s),r.networkResponseHeaders),[y,g]=r.networkCaptureBodies?rf(i):[void 0],[v,b]=r.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(r){t.push(r)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(r){return qp&&Vp.exception(r,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return qp&&Vp.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(r){t.push(r)}return qp&&Vp.warn("Failed to get xhr response body",...t),[void 0]}(s):[void 0],_=sf(h,p,y),S=sf(m,d,v);return{startTimestamp:o,endTimestamp:a,url:u,method:l,statusCode:c,request:g?nf(_,g):_,response:b?nf(S,b):S}}(e,t,r));Zd(r.replay,n)}catch(n){qp&&Vp.exception(n,"Failed to capture xhr breadcrumb")}}function bf(e,t){const{xhr:r,input:n}=t;if(!r)return;const o=ef(n),a=r.getResponseHeader("content-length")?tf(r.getResponseHeader("content-length")):function(e,t){try{return ef("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch(r){return}}(r.response,r.responseType);void 0!==o&&(e.data.request_body_size=o),void 0!==a&&(e.data.response_body_size=a
2)}function _f(e){const t=sa();try{const{networkDetailAllowUrls:r,networkDetailDenyUrls:n,networkCaptureBodies:o,networkRequestHeaders:a,networkResponseHeaders:i}=e.getOptions(),s={replay:e,networkDetailAllowUrls:r,networkDetailDenyUrls:n,networkCaptureBodies:o,networkRequestHeaders:a,networkResponseHeaders:i};t&&t.on("beforeAddBreadcrumb",((e,t)=>function(e,t,r){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(r)&&(bf(t,r),vf(t,r,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(r)&&(!function(e,t){const{input:r,response:n}=t,o=ef(r?hf(r):void 0),a=n?tf(n.headers.get("content-length")):void 0;void 0!==o&&(e.data.request_body_size=o),void 0!==a&&(e.data.response_body_size=a)}(t,r),pf(t,r,e))}catch(n){qp&&Vp.exception(n,"Error when enriching network breadcrumb")}}(s,e,t)))}catch(r){}}function Sf(e){const t=sa();var r;Lu(ld(e)),Uu(Xd(e)),Gd(e),_f(e),r=Yd(e),oa().addEventProcessor(r),t&&(t.on("beforeSendEvent",Hd(e)),t.on("afterSendEvent",Qd(e)),t.on("createDsc",(t=>{const r=e.getSessionId();r&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=r)})),t.on("spanStart",(t=>{e.lastActiveSpan=t})),t.on("spanEnd",(t=>{e.lastActiveSpan=t})),t.on("beforeSendFeedback",((t,r)=>{const n=e.getSessionId();r&&r.includeReplay&&e.isEnabled()&&n&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=n)})))}function wf(e){const{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}}}}function Ef(e){let t=!1;return(r,n)=>{if(!e.checkAndHandleExpiredSession())return void(qp&&Vp.warn("Received replay event after session expired."));const o=n||!t;t=!0,e.clickDetector&&ad(e.clickDetector,r),e.addUpdate((()=>{if("buffer"===e.recordingMode&&o&&e.setInitialState(),!Ud(e,r,o))return!0;if(!o)return!1;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;Ud(e,function(e){const t=e.getOptions();return{type:Hc.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,o),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){const t=e.eventBuffer.getEarliestTimestamp();t&&(qp&&Vp.info(`Updating session start time to earliest event in buffer to ${new Date(t)}`),e.session.started=t,e.getOptions().stickySession&&Md(e.session))}return"session"===e.recordingMode&&e.flush(),!0}))}}async function xf({recordingData:e,replayId:t,segmentId:r,eventContext:n,timestamp:o,session:a}){const i=function({recordingData:e,headers:t}){let r;const n=`${JSON.stringify(t)}\n`;if("string"==typeof e)r=`${n}${e}`;else{const t=(new TextEncoder).encode(n);r=new Uint8Array(t.length+e.length),r.set(t),r.set(e,t.length)}return r}({recordingData:e,headers:{segment_id:r}}),{urls:s,errorIds:u,traceIds:l,initialTimestamp:c}=n,p=sa(),d=na(),f=p&&p.getTransport(),h=p&&p.getDsn();if(!(p&&f&&h&&a.sampled))return uo({});const m={type:Tl,replay_start_timestamp:c/1e3,timestamp:o/1e3,error_ids:u,trace_ids:l,urls:s,replay_id:t,segment_id:r,replay_type:a.sampled},y=await async function({client:e,scope:t,replayId:r,event:n}){const o={event_id:r,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",n,o);const a=await pi(e.getOptions(),n,o,t,e,oa());if(!a)return null;a.platform=a.platform||"javascript";const i=e.getSdkMetadata(),{name:s,version:u}=i&&i.sdk||{};return a.sdk={...a.sdk,name:s||"sentry.javascript.unknown",version:u||"0.0.0"},a}({scope:d,client:p,replayId:t,event:m});if(!y)return p.recordDroppedEvent("event_processor","replay",m),qp&&Vp.info("An event processor returned `null`, will not send event."),uo({});delete y.sdkProcessingMetadata;const g=function(e,t,r,n){return ko(Do(e,jo(e),n,r),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(y,i,h,p.getOptions().tunnel);let v;try{v=await f.send(g)}catch(zw){const t=new Error(Ol);try{t.cause=zw}catch(_){}throw t}if("number"==typeof v.statusCode&&(v.statusCode<200||v.statusCode>=300))throw new kf(v.statusCode);const b=No({},v);if(Lo(b,"replay"))throw new Tf(b);return v}
2var kf=class extends Error{constructor(e){super(`Transport returned status code ${e}`)}},Tf=class extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}};async function Of(e,t={count:0,interval:5e3}){const{recordingData:r,options:n}=e;if(r.length)try{return await xf(e),!0}catch(zw){if(zw instanceof kf||zw instanceof Tf)throw zw;if(gi("Replays",{_retryCount:t.count}),qp&&n._experiments&&n._experiments.captureExceptions&&mi(zw),t.count>=3){const e=new Error(`${Ol} - max retries exceeded`);try{e.cause=zw}catch(o){}throw e}return t.interval*=++t.count,new Promise(((n,o)=>{zu((async()=>{try{await Of(e,t),n(!0)}catch(r){o(r)}}),t.interval)}))}}var If="__THROTTLED";function Cf(e,t,r){const n=new Map;let o=!1;return(...a)=>{const i=Math.floor(Date.now()/1e3);if((e=>{const t=e-r;n.forEach(((e,r)=>{r<t&&n.delete(r)}))})(i),[...n.values()].reduce(((e,t)=>e+t),0)>=t){const e=o;return o=!0,e?"__SKIPPED":If}o=!1;const s=n.get(i)||0;return n.set(i,s+1),e(...a)}}var Rf=class e{constructor({options:t,recordingOptions:r}){e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),e.prototype.__init5.call(this),e.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=r,this._options=t,this._debouncedFlush=function(e,t,r){let n,o,a;const i=r&&r.maxWait?Math.max(r.maxWait,t):0;function s(){return u(),n=e(),n}function u(){void 0!==o&&clearTimeout(o),void 0!==a&&clearTimeout(a),o=a=void 0}function l(){return o&&clearTimeout(o),o=zu(s,t),i&&void 0===a&&(a=zu(s,i)),n}return l.cancel=u,l.flush=function(){return void 0!==o||void 0!==a?s():n},l}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=Cf(((e,t)=>function(e,t,r){return $d(e,t)?Bd(e,t,r):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:o}=this.getOptions(),a=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:o?o.join(","):""}:void 0;if(a&&(this.clickDetector=new rd(this,a)),qp){const e=t._experiments;Vp.setConfig({captureExceptions:!!e.captureExceptions,traceInternals:!!e.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}handleException(e){qp&&Vp.exception(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:r}=this._options,n=t<=0&&r<=0;this._requiresManualStart=n,n||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",qp&&Vp.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording()):qp&&Vp.exception(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(qp&&Vp.info("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(qp&&Vp.info("Buffering is in progress, call `flush()` to save the replay"));qp&&Vp.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=qd({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(qp&&Vp.info("Buffering is in progress, call `flush()` to save the replay"));qp&&Vp.infoTick("Starting replay in buffer mode");const e=qd({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=Np({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:Ef(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(zw){this.handleException(zw)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(zw){return this.handleException(zw),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{qp&&Vp.info("Stopping Replay"+(t?` triggered by ${t}`:"")),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,Rd(this)}catch(zw){this.handleException(zw)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),qp&&Vp.info("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),qp&&Vp.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();qp&&Vp.info("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();e&&r&&"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}
2checkAndHandleExpiredSession(){if(!(this._lastActivity&&Fd(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${xl.location.pathname}${xl.location.hash}${xl.location.search}`,t=`${xl.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 r=this._throttledAddEvent(e,t);if(r===If){const e=id({category:"replay.throttled"});this.addUpdate((()=>!Ud(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return r}getCurrentRoute(){const e=this.lastActiveSpan||Pa(),t=e&&Aa(e),r=(t&&xa(t).data||{})[ca];if(t&&r&&["route","custom"].includes(r))return xa(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Id({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,r=qd({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=r}_checkSession(){if(!this.session)return!1;const e=this.session;return!Nd(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{xl.document.addEventListener("visibilitychange",this._handleVisibilityChange),xl.addEventListener("blur",this._handleWindowBlur),xl.addEventListener("focus",this._handleWindowFocus),xl.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(Sf(this),this._hasInitializedCoreListeners=!0)}catch(zw){this.handleException(zw)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function r({entries:e}){e.forEach(t)}const n=[];return["navigation","paint","resource"].forEach((e=>{n.push(su(e,r))})),n.push(ou(fd(yd,e)),nu(fd(vd,e)),au(fd(bd,e)),iu(fd(_d,e))),()=>{n.forEach((e=>e()))}}(this)}_removeListeners(){try{xl.document.removeEventListener("visibilitychange",this._handleVisibilityChange),xl.removeEventListener("blur",this._handleWindowBlur),xl.removeEventListener("focus",this._handleWindowFocus),xl.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(zw){this.handleException(zw)}}__init(){this._handleVisibilityChange=()=>{"visible"===xl.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=id({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=id({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{pd(this,e)}}_doChangeToBackgroundTasks(e){this.session&&(Ld(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):qp&&Vp.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:Hc.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){const e=(t=this.performanceEntries,t.map(hd).filter(
2Boolean)).concat(this.replayPerformanceEntries);var t;return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(Jd(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart)return;if(e.segmentId)return;const r=t.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await async function(e){try{return Promise.all(Jd(e,[wf(xl.performance.memory)]))}catch(t){return[]}}(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),n=this.session.segmentId++;this._maybeSaveSession(),await Of({replayId:e,recordingData:await this.eventBuffer.finish(),segmentId:n,eventContext:r,session:this.session,options:this.getOptions(),timestamp:t})}catch(zw){this.handleException(zw),this.stop({reason:"sendReplay"});const t=sa();t&&t.recordDroppedEvent("send_error","replay")}}else qp&&Vp.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(qp&&Vp.error("Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,r=Date.now()-t;this._debouncedFlush.cancel();const n=r<this._options.minReplayDuration,o=r>this._options.maxReplayDuration+5e3;if(n||o)return qp&&Vp.info(`Session duration (${Math.floor(r/1e3)}s) is too ${n?"short":"long"}, not sending replay.`),void(n&&this._debouncedFlush());const a=this.eventBuffer;if(a&&0===this.session.segmentId&&!a.hasCheckout&&qp&&Vp.info("Flushing initial segment without checkout."),!this._flushLock)return this._flushLock=this._runFlush(),await this._flushLock,void(this._flushLock=void 0);try{await this._flushLock}catch(zw){qp&&Vp.error(zw)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Md(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,r=this._options.mutationLimit,n=r&&t>r;if(t>this._options.mutationBreadcrumbLimit||n){const e=id({category:"replay.mutations",data:{count:t,limit:n}});this._createCustomBreadcrumb(e)}return!n||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}};function Af(e,t){return[...e,...t].join(",")}var Pf='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Mf=["content-length","content-type","accept"],jf=!1,Df=class e{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=5e3,flushMaxDelay:r=5500,minReplayDuration:n=4999,maxReplayDuration:o=36e5,stickySession:a=!0,useCompression:i=!0,workerUrl:s,_experiments:u={},maskAllText:l=!0,maskAllInputs:c=!0,blockAllMedia:p=!0,mutationBreadcrumbLimit:d=750,mutationLimit:f=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:y=[],networkDetailDenyUrls:g=[],networkCaptureBodies:v=!0,networkRequestHeaders:b=[],networkResponseHeaders:_=[],mask:S=[],maskAttributes:w=["title","placeholder"],unmask:E=[],block:x=[],unblock:k=[],ignore:T=[],maskFn:O,beforeAddRecordingEvent:I,beforeErrorSampling:C}={}){this.name=e.id;const R=function({mask:e,unmask:t,block:r,unblock:n,ignore:o}){return{maskTextSelector:Af(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:Af(t,[]),blockSelector:Af(r,[".sentry-block","[data-sentry-block]",'base[href="/"]']),unblockSelector:Af(n,[]),ignoreSelector:Af(o,[".sentry-ignore","[data-sentry-ignore]",'
2input[type="file"]'])}}({mask:S,unmask:E,block:x,unblock:k,ignore:T});if(this._recordingOptions={maskAllInputs:c,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:O,maskInputFn:O,maskAttributeFn:(e,t,r)=>function({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:o,value:a}){return n?o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?a:r.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?a.replace(/[\S]/g,"*"):a:a}({maskAttributes:w,maskAllText:l,privacyOptions:R,key:e,value:t,el:r}),...R,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(t){}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:r,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(o,Al),stickySession:a,useCompression:i,workerUrl:s,blockAllMedia:p,maskAllInputs:c,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:f,slowClickTimeout:h,slowClickIgnoreSelectors:m,networkDetailAllowUrls:y,networkDetailDenyUrls:g,networkCaptureBodies:v,networkRequestHeaders:Ff(b),networkResponseHeaders:Ff(_),beforeAddRecordingEvent:I,beforeErrorSampling:C,_experiments:u},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Pf}`:Pf),this._isInitialized&&Jn())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return jf}set _isInitialized(e){jf=e}afterAllSetup(e){Jn()&&!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()}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const t=function(e,t){const r=t.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...mn(e)},o=za(r.replaysSessionSampleRate),a=za(r.replaysOnErrorSampleRate);null==o&&null==a&&en((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}));null!=o&&(n.sessionSampleRate=o);null!=a&&(n.errorSampleRate=a);return n}(this._initialOptions,e);this._replay=new Rf({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch(t){}}};function Ff(e){return[...Mf,...e.map((e=>e.toLowerCase()))]}Df.__initStatic();var Lf=new WeakMap,Nf=new Map,qf={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0};function Uf(e,t){const{traceFetch:r,traceXHR:n,shouldCreateSpanForRequest:o,enableHTTPTimings:a,tracePropagationTargets:i}={traceFetch:qf.traceFetch,traceXHR:qf.traceXHR,...t},s="function"==typeof o?o:e=>!0,u=e=>function(e,t){const r=Xi.location&&Xi.location.href;if(r){let o,a;try{o=new URL(e,r),a=new URL(r).origin}catch(n){return!1}const i=o.origin===a;return t?Lr(o.toString(),t)||i&&Lr(o.pathname,t):i}{const r=!!e.match(/^\/(?!\/)/);return t?Lr(e,t):r}}(e,i),l={};r&&(e.addEventProcessor((e=>("transaction"===e.type&&e.spans&&e.spans.forEach((e=>{if("http.client"===e.op){const t=Nf.get(e.span_id);t&&(e.timestamp=t/1e3,Nf.delete(e.span_id))}})),e))),function(e){const t="fetch-body-resolved";On(t,e),In(t,(()=>qn(Un)))}((e=>{if(e.response){const t=Lf.get(e.response);t&&e.endTimestamp&&Nf.set(t,e.endTimestamp)}})),Nn((e=>{const t=Ji(e,s,u,l);if(e.response&&e.fetchData.__span&&Lf.set(e.response,e.fetchData.__span),t){const r=Vf(e.fetchData.url),n=r?fo(r).host:void 0;t.setAttributes({"http.url":r,"server.address":n})}a&&t&&Bf(t)}))),n&&Hu((e=>{const t=function(e,t,r,n){const o=e.xhr,a=o&&o.__sentry_xhr_v3__;if(!o||o.__sentry_own_request__||!a)return;const i=Na()&&t(a.url);if(e.endTimestamp&&i){const e=o.__sentry_xhr_span_id__;if(!e)return;const t=n[e];return void(t&&void 0!==a.status_code&&(va(t,a.status_code),t.end(),delete n[e]))}const s=Vf(a.url),u=s?fo(s).host:void 0,l=!!Pa(),c=i&&l?Ja({name:`${a.method} ${a.url}`,attributes:{type:"xhr","http.method":a.method,"http.url":s,url:a.url,"server.address":u,[fa]:"auto.http.browser",[da]:"http.client"}}):new qa;o.__sentry_xhr_span_id__=c.spanContext().spanId,n[o.__sentry_xhr_span_id__]=c;const p=sa();o.setRequestHeader&&r(a.url)&&p&&function(e,t,r){const n=na(),{traceId:o,spanId:a,sampled:i,dsc:s}={...oa().getPropagationContext(),...n.getPropagationContext()};!function(e,t,r){try{e.setRequestHeader("sentry-trace",t),r&&e.setRequestHeader(yo,r)}catch(n){}}(e,r&&Na()?Sa(r):xo(o,a,i),_o(s||(r?Wa(r):Va(o,t))))}(o,p,Na()&&l?c:void 0);return c}(e,s,u,l);a&&t&&Bf(t)}))}function Bf(e){const{url:t}=xa(e).data||{};if(!t||"string"!=typeof t)return;const r=su("resource",(({entries:n})=>
2{n.forEach((n=>{(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)})(n)&&n.name.endsWith(t)&&(function(e){const{name:t,version:r}=function(e){let t="unknown",r="unknown",n="";for(const o of e){if("/"===o){[t,r]=e.split("/");break}if(!isNaN(Number(o))){t="h"===n?"http":n,r=e.split(n)[1];break}n+=o}n===e&&(t=n);return{name:t,version:r}}(e.nextHopProtocol),n=[];return n.push(["network.protocol.version",r],["network.protocol.name",t]),Ln?[...n,["http.request.redirect_start",$f(e.redirectStart)],["http.request.fetch_start",$f(e.fetchStart)],["http.request.domain_lookup_start",$f(e.domainLookupStart)],["http.request.domain_lookup_end",$f(e.domainLookupEnd)],["http.request.connect_start",$f(e.connectStart)],["http.request.secure_connection_start",$f(e.secureConnectionStart)],["http.request.connection_end",$f(e.connectEnd)],["http.request.request_start",$f(e.requestStart)],["http.request.response_start",$f(e.responseStart)],["http.request.response_end",$f(e.responseEnd)]]:n}(n).forEach((t=>e.setAttribute(...t))),setTimeout(r))}))}))}function $f(e=0){return((Ln||performance.timeOrigin)+e)/1e3}function Vf(e){try{return new URL(e,Xi.location.origin).href}catch(t){return}}var Wf={...ti,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...qf},zf=(e={})=>{Ma||(Ma=!0,Wn(ja),Gn(ja));const{enableInp:t,enableLongTask:r,enableLongAnimationFrame:n,_experiments:{enableInteractions:o,enableStandaloneClsSpans:a},beforeStartSpan:i,idleTimeout:s,finalTimeout:u,childSpanTimeout:l,markBackgroundSpan:c,traceFetch:p,traceXHR:d,shouldCreateSpanForRequest:f,enableHTTPTimings:h,instrumentPageLoad:m,instrumentNavigation:y}={...Wf,...e},g=Iu({recordClsStandaloneSpans:a||!1});t&&Ju(),n&&Vr.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver((e=>{if(Pa())for(const t of e.getEntries()){if(!t.scripts[0])continue;const e=Su(Ln+t.startTime),r=Su(t.duration),n={[fa]:"auto.ui.browser.metrics"},{invoker:o,invokerType:a,sourceURL:i,sourceFunctionName:s,sourceCharPosition:u}=t.scripts[0];n["browser.script.invoker"]=o,n["browser.script.invoker_type"]=a,i&&(n["code.filepath"]=i),s&&(n["code.function"]=s),-1!==u&&(n["browser.script.source_char_position"]=u);const l=Ja({name:"Main UI thread blocked",op:"ui.long-animation-frame",startTime:e,attributes:n});l&&l.end(e+r)}})).observe({type:"long-animation-frame",buffered:!0}):r&&su("longtask",(({entries:e})=>{if(Pa())for(const t of e){const e=Su(Ln+t.startTime),r=Su(t.duration),n=Ja({name:"Main UI thread blocked",op:"ui.long-task",startTime:e,attributes:{[fa]:"auto.ui.browser.metrics"}});n&&n.end(e+r)}})),o&&su("event",(({entries:e})=>{if(Pa())for(const t of e)if("click"===t.name){const e=Su(Ln+t.startTime),r=Su(t.duration),n={name:Hr(t.target),op:`ui.interaction.${t.name}`,startTime:e,attributes:{[fa]:"auto.ui.browser.metrics"}},o=Yr(t.target);o&&(n.attributes["ui.component_name"]=o);const a=Ja(n);a&&a.end(e+r)}}));const v={name:void 0,source:void 0};function b(e,t){const r="pageload"===t.op,n=i?i(t):t,o=n.attributes||{};t.name!==n.name&&(o[ca]="custom",n.attributes=o),v.name=n.name,v.source=o[ca];const c=ii(n,{idleTimeout:s,finalTimeout:u,childSpanTimeout:l,disableAutoFinish:r,beforeSpanEnd:e=>{g(),Cu(e,{recordClsOnPageloadSpan:!a})}});function p(){["interactive","complete"].includes(Xi.document.readyState)&&e.emit("idleSpanEnableAutoFinish",c)}return r&&Xi.document&&(Xi.document.addEventListener("readystatechange",(()=>{p()})),p()),c}return{name:"BrowserTracing",afterAllSetup(e){let r,n=Xi.location&&Xi.location.href;e.on("startNavigationSpan",(t=>{sa()===e&&(r&&!xa(r).timestamp&&(rs&&tn.log(`[Tracing] Finishing current root span with op: ${xa(r).op}`),r.end()),r=b(e,{op:"navigation",...t}))})),e.on("startPageLoadSpan",((t,n={})=>{if(sa()!==e)return;r&&!xa(r).timestamp&&(rs&&tn.log(`[Tracing] Finishing current root span with op: ${xa(r).op}`),r.end());const o=Eo(n.sentryTrace||Qf("sentry-trace"),n.baggage||Qf("baggage"));na().setPropagationContext(o),r=b(e,{op:"pageload",...t})})),e.on("spanEnd",(e=>{const t=xa(e).op;if(e!==Aa(e)||"navigation"!==t&&"pageload"!==t)return;const r=na(),n=r.getPropagationContext();r.setPropagationContext({...n,sampled:void 0!==n.sampled?n.sampled:ka(e),dsc:n.dsc||Wa(e)})})),Xi.location&&(m&&function(e,t,r){e.emit("startPageLoadSpan",t,r),na().setTransactionName(t.name);const n=Pa();n&&xa(n).op}(e,{name:Xi.location.pathname,startTime:Ln?Ln/1e3:void 0,attributes:{[ca]:"url",[fa]:"auto.pageload.browser"}}),y&&Uu((({to:t,from:r})=>{void 0===r&&n&&-1!==n.indexOf(t)?n=void 0:r!==t&&(n=void 0,function(e,t){oa().setPropagationContext(Uo()),na().setPropagationContext(Uo()),e.emit("startNavigationSpan",t),na().setTransactionName(t.name);const r=Pa();r&&xa(r).op}(e,{name:Xi.location.pathname,attributes:{[ca]:"url",[fa]:"auto.navigation.browser"}}))}))),c&&(Xi&&Xi.document?Xi.document.addEventListener("visibilitychange",(()=>{const e=Pa();if(!e)return;const t=Aa(e);if(Xi.document.hidden&&t){const e="cancelled",{op:r,status:n}=xa(t);rs&&tn.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${r}`),n||t.setStatus({code:2,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}})):rs&&tn.warn("[Tracing] Could not set up background tab detection due to lack of global document")),o&&function(e,t,r,n){let o;const a=()=>{const a="ui.action.click",i=Pa(),s=i&&Aa(i);if(s){const e=xa(s).op;
2if(["navigation","pageload"].includes(e))return void(rs&&tn.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`))}o&&(o.setAttribute(ha,"interactionInterrupted"),o.end(),o=void 0),n.name?o=ii({name:n.name,op:a,attributes:{[ca]:n.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:r}):rs&&tn.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`)};Xi.document&&addEventListener("click",a,{once:!1,capture:!0})}(s,u,l,v),t&&function(e){const t=({entries:e})=>{const t=Pa(),r=t&&Aa(t);e.forEach((e=>{if(!function(e){return"duration"in e}(e)||!r)return;const t=e.interactionId;if(null!=t&&!Yu.has(t)){if(Ku.length>10){const e=Ku.shift();Yu.delete(e)}Ku.push(t),Yu.set(t,r)}}))};su("event",t),su("first-input",t)}(),Uf(e,{traceFetch:p,traceXHR:d,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:f,enableHTTPTimings:h})}}};function Qf(e){const t=(r=`meta[name=${e}]`,zr.document&&zr.document.querySelector?zr.document.querySelector(r):null);var r;return t?t.getAttribute("content"):void 0}var Hf=e(n());function Gf(e,{componentStack:t},r){if(function(e){const t=e.match(/^([^.]+)/);return null!==t&&parseInt(t[0])>=17}(Hf.version)&&wr(e)&&t){const r=new Error(e.message);r.name=`React ErrorBoundary ${e.name}`,r.stack=t,function(e,t){const r=new WeakSet;!function e(t,n){if(!r.has(t))return t.cause?(r.add(t),e(t.cause,n)):void(t.cause=n)}(e,t)}(e,r)}return mi(e,{...r,captureContext:{contexts:{react:{componentStack:t}}}})}var Kf="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Yf=e(o()),Jf={componentStack:null,error:null,eventId:null},Xf=class e extends Hf.Component{constructor(t){super(t),e.prototype.__init.call(this),this.state=Jf,this._openFallbackReportDialog=!0;const r=sa();r&&t.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=r.on("afterSendEvent",(e=>{!e.type&&this._lastEventId&&e.event_id===this._lastEventId&&wl({...t.dialogOptions,eventId:this._lastEventId})})))}componentDidCatch(e,t){const{componentStack:r}=t,n=null==r?void 0:r,{beforeCapture:o,onError:a,showDialog:i,dialogOptions:s}=this.props;ia((u=>{o&&o(u,e,n);const l=Gf(e,t,{mechanism:{handled:!!this.props.fallback}});a&&a(e,n,l),i&&(this._lastEventId=l,this._openFallbackReportDialog&&wl({...s,eventId:l})),this.setState({error:e,componentStack:r,eventId:l})}))}componentDidMount(){const{onMount:e}=this.props;e&&e()}componentWillUnmount(){const{error:e,componentStack:t,eventId:r}=this.state,{onUnmount:n}=this.props;n&&n(e,t,r),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}__init(){this.resetErrorBoundary=()=>{const{onReset:e}=this.props,{error:t,componentStack:r,eventId:n}=this.state;e&&e(t,r,n),this.setState(Jf)}}render(){const{fallback:e,children:t}=this.props,r=this.state;if(r.error){let t;return t="function"==typeof e?Hf.createElement(e,{error:r.error,componentStack:r.componentStack,resetError:this.resetErrorBoundary,eventId:r.eventId}):e,Hf.isValidElement(t)?t:(e&&Kf&&tn.warn("fallback did not produce a valid ReactElement"),null)}return"function"==typeof t?t():t}},Zf="redux.action",eh="info",th={attachReduxState:!0,actionTransformer:e=>e,stateTransformer:e=>e||null};function rh(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function nh(e,t){var r=!0;return q(e,(function(e,n,o){return r=!!t(e,n,o)})),r}function oh(e,t){var r=[];return q(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r}function ah(e,t){return(p(e)?f:oh)(e,L(t,3))}function ih(e,t){return(p(e)?l:U)(e,L(t,3))}function sh(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var o=e[t];n[o[0]]=o[1]}return n}function uh(e,t){return D(e,t)}function lh(e,t,r,n){if(!a(e))return e;for(var o=-1,i=(t=m(t,e)).length,u=i-1,l=e;null!=l&&++o<i;){var c=h(t[o]),p=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=u){var d=l[c];void 0===(p=n?n(d,c,l):void 0)&&(p=a(d)?d:s(t[o+1])?[]:{})}I(l,c,p),l=l[c]}return e}function ch(e,t,r){for(var n=-1,o=t.length,a={};++n<o;){var i=t[n],s=y(e,i);r(s,i)&&lh(a,m(i,e),s)}return a}function ph(e,t){if(null==e)return{};var r=l(O(e),(function(e){return[e]}));return t=L(t),ch(e,r,(function(e,r){return t(e,r[0])}))}var dh=N((function(e,t){return null==e?{}:function(e,t){return ch(e,t,(function(t,r){return M(e,r)}))}(e,t)})),fh=Array.prototype.splice;function hh(e,t){var r=[];if(!e||!e.length)return r;var n=-1,o=[],a=e.length;for(t=L(t,3);++n<a;){var i=e[n];t(i,n,e)&&(r.push(i),o.push(n))}return function(e,t){for(var r=e?t.length:0,n=r-1;
2r--;){var o=t[r];if(r==n||o!==a){var a=o;s(o)?fh.call(e,o,1):C(e,o)}}}(e,o),r}function mh(e,t){var r;return q(e,(function(e,n,o){return!(r=t(e,n,o))})),!!r}function yh(e,t,r){var n=p(e)?j:mh;return r&&A(e,t,r)&&(t=void 0),n(e,L(t,3))}var gh=R((function(e,t){return i(r=e)&&u(r)?function(e,t,r,n){var o=-1,a=x,i=!0,s=e.length,u=[],p=t.length;if(!s)return u;r&&(t=l(t,c(r))),n?(a=S,i=!1):t.length>=200&&(a=P,i=!1,t=new F(t));e:for(;++o<s;){var d=e[o],f=null==r?d:r(d);if(d=n||0!==d?d:0,i&&f==f){for(var h=p;h--;)if(t[h]===f)continue e;u.push(d)}else a(t,f,n)||u.push(d)}return u}(e,t):[];var r}));var vh=r((e=>{var t=B();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot}))();function bh(e){var t=function(e,t){if("object"!==$(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==$(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$(t)?t:String(t)}function _h(e,t,r){return(t=bh(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Sh(Object(r),!0).forEach((function(t){_h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Eh(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 xh="function"==typeof Symbol&&Symbol.observable||"@@observable",kh=function(){return Math.random().toString(36).substring(7).split("").join(".")},Th={INIT:"@@redux/INIT"+kh(),REPLACE:"@@redux/REPLACE"+kh(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+kh()}};function Oh(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(Eh(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(Eh(1));return r(Oh)(e,t)}if("function"!=typeof e)throw new Error(Eh(2));var o=e,a=t,i=[],s=i,u=!1;function l(){s===i&&(s=i.slice())}function c(){if(u)throw new Error(Eh(3));return a}function p(e){if("function"!=typeof e)throw new Error(Eh(4));if(u)throw new Error(Eh(5));var t=!0;return l(),s.push(e),function(){if(t){if(u)throw new Error(Eh(6));t=!1,l();var r=s.indexOf(e);s.splice(r,1),i=null}}}function d(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(Eh(7));if(void 0===e.type)throw new Error(Eh(8));if(u)throw new Error(Eh(9));try{u=!0,a=o(a,e)}finally{u=!1}for(var t=i=s,r=0;r<t.length;r++){(0,t[r])()}return e}return d({type:Th.INIT}),(n={dispatch:d,subscribe:p,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Eh(10));o=e,d({type:Th.REPLACE})}})[xh]=function(){var e,t=p;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(Eh(11));function r(){e.next&&e.next(c())}return r(),{unsubscribe:t(r)}}})[xh]=function(){return this},e},n}function Ih(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var o=t[n];"function"==typeof e[o]&&(r[o]=e[o])}var a,i=Object.keys(r);try{!function(e){Object.keys(e).forEach((function(t){var r=e[t];if(void 0===r(void 0,{type:Th.INIT}))throw new Error(Eh(12));if(void 0===r(void 0,{type:Th.PROBE_UNKNOWN_ACTION()}))throw new Error(Eh(13))}))}(r)}catch(s){a=s}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var n=!1,o={},s=0;s<i.length;s++){var u=i[s],l=r[u],c=e[u],p=l(c,t);if(void 0===p)throw t&&t.type,new Error(Eh(14));o[u]=p,n=n||p!==c}return(n=n||i.length!==Object.keys(e).length)?o:e}}function Ch(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function Rh(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(o){return"function"==typeof o?o(r,n,e):t(o)}}}}var Ah=Rh();Ah.withExtraArgument=Rh;var Ph=r(((e,t)=>{var r="__lodash_hash_undefined__",n="[object Function]",o="[object GeneratorFunction]",a="[object Symbol]",i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/,u=/^\./,l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c=/\\(\\)?/g,p=/^\[object .+?Constructor\]$/,d="object"==typeof global&&global&&global.Object===Object&&global,f="object"==typeof self&&self&&self.Object===Object&&self,h=d||f||Function("return this")();var m,y=Array.prototype,g=Function.prototype,v=Object.prototype,b=h["__core-js_shared__"],_=(m=/[^.]+$/.exec(b&&b.keys&&b.keys.IE_PROTO||""))?"Symbol(sr
2c)_1."+m:"",S=g.toString,w=v.hasOwnProperty,E=v.toString,x=RegExp("^"+S.call(w).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),k=h.Symbol,T=y.splice,O=N(h,"Map"),I=N(Object,"create"),C=k?k.prototype:void 0,R=C?C.toString:void 0;function A(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function P(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function M(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function j(e,t){for(var r,n,o=e.length;o--;)if((r=e[o][0])===(n=t)||r!=r&&n!=n)return o;return-1}function D(e,t){var r;t=function(e,t){if($(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!W(e))||(s.test(e)||!i.test(e)||null!=t&&e in Object(t))}(t,e)?[t]:$(r=t)?r:q(r);for(var n=0,o=t.length;null!=e&&n<o;)e=e[U(t[n++])];return n&&n==o?e:void 0}function F(e){return!(!V(e)||(t=e,_&&_ in t))&&(function(e){var t=V(e)?E.call(e):"";return t==n||t==o}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(r){}return t}(e)?x:p).test(function(e){if(null!=e){try{return S.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e));var t}function L(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function N(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return F(r)?r:void 0}A.prototype.clear=function(){this.__data__=I?I(null):{}},A.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},A.prototype.get=function(e){var t=this.__data__;if(I){var n=t[e];return n===r?void 0:n}return w.call(t,e)?t[e]:void 0},A.prototype.has=function(e){var t=this.__data__;return I?void 0!==t[e]:w.call(t,e)},A.prototype.set=function(e,t){return this.__data__[e]=I&&void 0===t?r:t,this},P.prototype.clear=function(){this.__data__=[]},P.prototype.delete=function(e){var t=this.__data__,r=j(t,e);return!(r<0)&&(r==t.length-1?t.pop():T.call(t,r,1),!0)},P.prototype.get=function(e){var t=this.__data__,r=j(t,e);return r<0?void 0:t[r][1]},P.prototype.has=function(e){return j(this.__data__,e)>-1},P.prototype.set=function(e,t){var r=this.__data__,n=j(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},M.prototype.clear=function(){this.__data__={hash:new A,map:new(O||P),string:new A}},M.prototype.delete=function(e){return L(this,e).delete(e)},M.prototype.get=function(e){return L(this,e).get(e)},M.prototype.has=function(e){return L(this,e).has(e)},M.prototype.set=function(e,t){return L(this,e).set(e,t),this};var q=B((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(W(e))return R?R.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return u.test(e)&&r.push(""),e.replace(l,(function(e,t,n,o){r.push(n?o.replace(c,"$1"):t||e)})),r}));function U(e){if("string"==typeof e||W(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function B(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i),i};return r.cache=new(B.Cache||M),r}B.Cache=M;var $=Array.isArray;function V(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function W(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&E.call(e)==a}t.exports=function(e,t,r){var n=null==e?void 0:D(e,t);return void 0===n?r:n}})),Mh=r(((e,t)=>{t.exports={ach:{name:"Acholi",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},af:{name:"Afrikaans",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ak:{name:"Akan",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},am:{name:"Amharic",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},an:{name:"Aragonese",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ar:{name:"Arabic",examples:[{plural:0,sample:0},{plural:1,sample:1},{plural:2,sample:2},{plural:3,sample:3},{plural:4,sample:11},{plural:5,sample:100}],nplurals:6,pluralsText:"nplurals = 6; plural = (n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5)",pluralsFunc:function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5}},arn:{name:"Mapudungun",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},ast:{name:"Asturian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ay:{name:"Aymará",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},az:{name:"Azerbaijani",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},be:{name:"Belarusian",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:5}],nplurals:3,pluralsText:"nplurals = 3; plural = (n % 10 === 1 && n % 100 !== 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2)",pluralsFunc:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},bg:{name:"Bulgarian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},bn:{name:"Bengali",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},bo:{name:"Tibetan",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},br:{name:"Breton",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},brx:{name:"Bodo",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},bs:{name:"Bosnian",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:5}],nplurals:3,pluralsText:"nplurals = 3; plural = (n % 10 === 1 && n % 100 !== 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2)",pluralsFunc:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},ca:{name:"Catalan",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},cgg:{name:"Chiga",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},cs:{name:"Czech",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:5}],nplurals:3,pluralsText:"nplurals = 3; plural = (n === 1 ? 0 : (n >= 2 && n <= 4) ? 1 : 2)",pluralsFunc:function(e){return 1===e?0:e>=2&&e<=4?1:2}},csb:{name:"Kashubian",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:5}],nplurals:3,pluralsText:"nplurals = 3; plural = (n === 1 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2)",pluralsFunc:function(e){return 1===e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},cy:{name:"Welsh",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:3},{plural:3,sample:8}],nplurals:4,pluralsText:"nplurals = 4; plural = (n === 1 ? 0 : n === 2 ? 1 : (n !== 8 && n !== 11) ? 2 : 3)",pluralsFunc:function(e){return 1===e?0:2===e?1:8!==e&&11!==e?2:3}}
2,da:{name:"Danish",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},de:{name:"German",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},doi:{name:"Dogri",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},dz:{name:"Dzongkha",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},el:{name:"Greek",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},en:{name:"English",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},eo:{name:"Esperanto",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},es:{name:"Spanish",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},et:{name:"Estonian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},eu:{name:"Basque",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},fa:{name:"Persian",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},ff:{name:"Fulah",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},fi:{name:"Finnish",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},fil:{name:"Filipino",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},fo:{name:"Faroese",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},fr:{name:"French",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},fur:{name:"Friulian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},fy:{name:"Frisian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ga:{name:"Irish",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:3},{plural:3,sample:7},{plural:4,sample:11}],nplurals:5,pluralsText:"nplurals = 5; plural = (n === 1 ? 0 : n === 2 ? 1 : n < 7 ? 2 : n < 11 ? 3 : 4)",pluralsFunc:function(e){return 1===e?0:2===e?1:e<7?2:e<11?3:4}},gd:{name:"Scottish Gaelic",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:3},{plural:3,sample:20}],nplurals:4,pluralsText:"nplurals = 4; plural = ((n === 1 || n === 11) ? 0 : (n === 2 || n === 12) ? 1 : (n > 2 && n < 20) ? 2 : 3)",pluralsFunc:function(e){return 1===e||11===e?0:2===e||12===e?1:e>2&&e<20?2:3}},gl:{name:"Galician",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},gu:{name:"Gujarati",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},gun:{name:"Gun",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},ha:{name:"Hausa",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},he:{name:"Hebrew",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},hi:{name:"Hindi",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}}
2,hne:{name:"Chhattisgarhi",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},hr:{name:"Croatian",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:5}],nplurals:3,pluralsText:"nplurals = 3; plural = (n % 10 === 1 && n % 100 !== 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2)",pluralsFunc:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},hu:{name:"Hungarian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},hy:{name:"Armenian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},id:{name:"Indonesian",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},is:{name:"Icelandic",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n % 10 !== 1 || n % 100 === 11)",pluralsFunc:function(e){return e%10!=1||e%100==11}},it:{name:"Italian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ja:{name:"Japanese",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},jbo:{name:"Lojban",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},jv:{name:"Javanese",examples:[{plural:0,sample:0},{plural:1,sample:1}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 0)",pluralsFunc:function(e){return 0!==e}},ka:{name:"Georgian",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},kk:{name:"Kazakh",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},km:{name:"Khmer",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},kn:{name:"Kannada",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ko:{name:"Korean",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},ku:{name:"Kurdish",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},kw:{name:"Cornish",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:3},{plural:3,sample:4}],nplurals:4,pluralsText:"nplurals = 4; plural = (n === 1 ? 0 : n === 2 ? 1 : n === 3 ? 2 : 3)",pluralsFunc:function(e){return 1===e?0:2===e?1:3===e?2:3}},ky:{name:"Kyrgyz",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},lb:{name:"Letzeburgesch",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ln:{name:"Lingala",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},lo:{name:"Lao",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},lt:{name:"Lithuanian",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:10}],nplurals:3,pluralsText:"nplurals = 3; plural = (n % 10 === 1 && n % 100 !== 11 ? 0 : n % 10 >= 2 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2)",pluralsFunc:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2}},lv:{name:"Latvian",examples:[{plural:2,sample:0},{plural:0,sample:1},{plural:1,sample:2}],nplurals:3,pluralsText:"nplurals = 3; plural = (n % 10 === 1 && n % 100 !== 11 ? 0 : n !== 0 ? 1 : 2)",pluralsFunc:function(e){return e%10==1&&e%100!=11?0:0!==e?1:2}},mai:{name:"Maithili",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},mfe:{name:"Mauritian Creole",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},mg:{name:"Malagasy",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},mi:{name:"Maori",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},mk:{name:"Macedonian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n === 1 || n % 10 === 1 ? 0 : 1)",pluralsFunc:function(e){return 1===e||e%10==1?0:1}},ml:{name:"Malayalam",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},mn:{name:"Mongolian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},mni:{name:"Manipuri",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},mnk:{name:"Mandinka",examples:[{plural:0,sample:0},{plural:1,sample:1},{plural:2,sample:2}],nplurals:3,pluralsText:"nplurals = 3; plural = (n === 0 ? 0 : n === 1 ? 1 : 2)",pluralsFunc:function(e){return 0===e?0:1===e?1:2}},mr:{name:"Marathi",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ms:{name:"Malay",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},mt:{name:"Maltese",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:11},{plural:3,sample:20}],nplurals:4,pluralsText:"nplurals = 4; plural = (n === 1 ? 0 : n === 0 || ( n % 100 > 1 && n % 100 < 11) ? 1 : (n % 100 > 10 && n % 100 < 20 ) ? 2 : 3)",pluralsFunc:function(e){return 1===e?0:0===e||e
2%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3}},my:{name:"Burmese",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},nah:{name:"Nahuatl",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},nap:{name:"Neapolitan",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},nb:{name:"Norwegian Bokmal",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ne:{name:"Nepali",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},nl:{name:"Dutch",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},nn:{name:"Norwegian Nynorsk",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},no:{name:"Norwegian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},nso:{name:"Northern Sotho",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},oc:{name:"Occitan",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},or:{name:"Oriya",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},pa:{name:"Punjabi",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},pap:{name:"Papiamento",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},pl:{name:"Polish",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:5}],nplurals:3,pluralsText:"nplurals = 3; plural = (n === 1 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2)",pluralsFunc:function(e){return 1===e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},pms:{name:"Piemontese",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ps:{name:"Pashto",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},pt:{name:"Portuguese",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},rm:{name:"Romansh",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ro:{name:"Romanian",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:20}],nplurals:3,pluralsText:"nplurals = 3; plural = (n === 1 ? 0 : (n === 0 || (n % 100 > 0 && n % 100 < 20)) ? 1 : 2)",pluralsFunc:function(e){return 1===e?0:0===e||e%100>0&&e%100<20?1:2}},ru:{name:"Russian",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:5}],nplurals:3,pluralsText:"nplurals = 3; plural = (n % 10 === 1 && n % 100 !== 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2)",pluralsFunc:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},rw:{name:"Kinyarwanda",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},sah:{name:"Yakut",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},sat:{name:"Santali",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},sco:{name:"Scots",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},sd:{name:"Sindhi",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},se:{name:"Northern Sami",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},si:{name:"Sinhala",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},sk:{name:"Slovak",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:5}],nplurals:3,pluralsText:"nplurals = 3; plural = (n === 1 ? 0 : (n >= 2 && n <= 4) ? 1 : 2)",pluralsFunc:function(e){return 1===e?0:e>=2&&e<=4?1:2}},sl:{name:"Slovenian",examples:[{plural:1,sample:1},{plural:2,sample:2},{plural:3,sample:3},{plural:0,sample:5}],nplurals:4,pluralsText:"nplurals = 4; plural = (n % 100 === 1 ? 1 : n % 100 === 2 ? 2 : n % 100 === 3 || n % 100 === 4 ? 3 : 0)",pluralsFunc:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0}},so:{name:"Somali",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},son:{name:"Songhay",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},sq:{name:"Albanian",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},sr:{name:"Serbian",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:5}],nplurals:3,pluralsText:"nplurals = 3; plural = (n % 10 === 1 && n % 100 !== 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2)",pluralsFunc:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},su:{name:"Sundanese",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},sv:{name:"Swedish",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},sw:{name:"Swahili",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},ta:{name:"Tamil",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},te:{name:"Telugu",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},tg:{name:"Tajik",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},th:{name:"Thai",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},ti:{name:"Tigrinya",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},tk:{name:"Turkmen",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},tr:{name:"Turkish",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},tt:{name:"Tatar",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},ug:{name:"Uyghur",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},uk:{name:"Ukrainian",examples:[{plural:0,sample:1},{plural:1,sample:2},{plural:2,sample:5}],nplurals:3,pluralsText:"nplurals = 3; plural = (n % 10 === 1 && n % 100 !== 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2)",pluralsFunc:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}}
2,ur:{name:"Urdu",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},uz:{name:"Uzbek",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},vi:{name:"Vietnamese",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},wa:{name:"Walloon",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n > 1)",pluralsFunc:function(e){return e>1}},wo:{name:"Wolof",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}},yo:{name:"Yoruba",examples:[{plural:0,sample:1},{plural:1,sample:2}],nplurals:2,pluralsText:"nplurals = 2; plural = (n !== 1)",pluralsFunc:function(e){return 1!==e}},zh:{name:"Chinese",examples:[{plural:0,sample:1}],nplurals:1,pluralsText:"nplurals = 1; plural = 0",pluralsFunc:function(){return 0}}}})),jh=r(((e,t)=>{var r=Ph(),n=Mh();function o(e){e=e||{},this.catalogs={},this.locale="",this.domain="messages",this.listeners=[],this.sourceLocale="",e.sourceLocale&&("string"==typeof e.sourceLocale?this.sourceLocale=e.sourceLocale:this.warn("The `sourceLocale` option should be a string")),this.debug="debug"in e&&!0===e.debug}t.exports=o,o.prototype.on=function(e,t){this.listeners.push({eventName:e,callback:t})},o.prototype.off=function(e,t){this.listeners=this.listeners.filter((function(r){return!1==(r.eventName===e&&r.callback===t)}))},o.prototype.emit=function(e,t){for(var r=0;r<this.listeners.length;r++){var n=this.listeners[r];n.eventName===e&&n.callback(t)}},o.prototype.warn=function(e){this.debug&&console.warn(e),this.emit("error",e)},o.prototype.addTranslations=function(e,t,r){this.catalogs[e]||(this.catalogs[e]={}),this.catalogs[e][t]=r},o.prototype.setLocale=function(e){"string"==typeof e?(""===e.trim()&&this.warn("You called setLocale() with an empty value, which makes little sense."),e===this.sourceLocale||this.catalogs[e]||this.warn('You called setLocale() with "'+e+'", but no translations for that locale has been added.'),this.locale=e):this.warn("You called setLocale() with an argument of type "+typeof e+". The locale must be a string.")},o.prototype.setTextDomain=function(e){"string"==typeof e?(""===e.trim()&&this.warn("You called setTextDomain() with an empty `domain` value."),this.domain=e):this.warn("You called setTextDomain() with an argument of type "+typeof e+". The domain must be a string.")},o.prototype.gettext=function(e){return this.dnpgettext(this.domain,"",e)},o.prototype.dgettext=function(e,t){return this.dnpgettext(e,"",t)},o.prototype.ngettext=function(e,t,r){return this.dnpgettext(this.domain,"",e,t,r)},o.prototype.dngettext=function(e,t,r,n){return this.dnpgettext(e,"",t,r,n)},o.prototype.pgettext=function(e,t){return this.dnpgettext(this.domain,e,t)},o.prototype.dpgettext=function(e,t,r){return this.dnpgettext(e,t,r)},o.prototype.npgettext=function(e,t,r,n){return this.dnpgettext(this.domain,e,t,r,n)},o.prototype.dnpgettext=function(e,t,r,a,i){var s,u,l=r;if(t=t||"",isNaN(i)||1===i||(l=a||r),s=this._getTranslation(e,t,r)){if("number"==typeof i)"boolean"==typeof(u=(0,n[o.getLanguageCode(this.locale)].pluralsFunc)(i))&&(u=u?1:0);else u=0;return s.msgstr[u]||l}return this.sourceLocale&&this.locale===this.sourceLocale||this.warn('No translation was found for msgid "'+r+'" in msgctxt "'+t+'" and domain "'+e+'"'),l},o.prototype.getComment=function(e,t,r){var n=this._getTranslation(e,t,r);return n&&n.comments||{}},o.prototype._getTranslation=function(e,t,n){return t=t||"",r(this.catalogs,[this.locale,e,"translations",t,n])},o.getLanguageCode=function(e){return e.split(/[\-_]/)[0].toLowerCase()},o.prototype.textdomain=function(e){this.debug&&console.warn("textdomain(domain) was used to set locales in node-gettext v1. Make sure you are using it for domains, and switch to setLocale(locale) if you are not.\n\n To read more about the migration from node-gettext v1 to v2, see https://github.com/alexanderwallin/node-gettext/#migrating-from-1x-to-2x\n\nThis warning will be removed in the final 2.0.0"),this.setTextDomain(e)},o.prototype.setlocale=function(e){this.setLocale(e)},o.prototype.addTextdomain=function(){console.error("addTextdomain() is deprecated.\n\n* To add translations, use addTranslations()\n* To set the default domain, use setTextDomain() (or its alias textdomain())\n\nTo read more about the migration from node-gettext v1 to v2, see https://github.com/alexanderwallin/node-gettext/#migrating-from-1x-to-2x")}})),Dh=r((e=>
2{Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t,n){var o=new r.default(n);return Object.keys(e).forEach((function(t){o.addTranslations(t,"messages",e[t])})),o.setLocale(t),o};var t,r=(t=jh())&&t.__esModule?t:{default:t}})),Fh=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.transformInput=e.tcnp=e.tcp=e.tcn=e.tc=e.tnp=e.tp=e.tn=e.t=e.locale=void 0;var t,r=(t=V())&&t.__esModule?t:{default:t};e.locale=r.default.string,e.t=r.default.func,e.tn=r.default.func,e.tp=r.default.func,e.tnp=r.default.func,e.tc=r.default.func,e.tcn=r.default.func,e.tcp=r.default.func,e.tcnp=r.default.func,e.transformInput=r.default.func})),Lh=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=[];e.subscribe=function(e){-1===t.indexOf(e)&&(t=[].concat(function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}(t),[e]))},e.unsubscribe=function(e){t=t.filter((function(t){return t!==e}))},e.emit=function(){t.forEach((function(e){return e()}))}})),Nh=r(((e,t)=>{var r="Expected a function",n="__lodash_placeholder__",o=1,a=2,i=4,s=8,u=16,l=32,c=64,p=128,d=512,f=1/0,h=9007199254740991,m=17976931348623157e292,y=NaN,g=[["ary",p],["bind",o],["bindKey",a],["curry",s],["curryRight",u],["flip",d],["partial",l],["partialRight",c],["rearg",256]],v="[object Function]",b="[object GeneratorFunction]",_="[object Symbol]",S=/^\s+|\s+$/g,w=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,E=/\{\n\/\* \[wrapped with (.+)\] \*/,x=/,? & /,k=/^[-+]0x[0-9a-f]+$/i,T=/^0b[01]+$/i,O=/^\[object .+?Constructor\]$/,I=/^0o[0-7]+$/i,C=/^(?:0|[1-9]\d*)$/,R=parseInt,A="object"==typeof global&&global&&global.Object===Object&&global,P="object"==typeof self&&self&&self.Object===Object&&self,M=A||P||Function("return this")();function j(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function D(e,t){return!(!e||!e.length)&&function(e,t,r){if(t!=t)return function(e,t,r,n){var o=e.length,a=r+(n?1:-1);for(;n?a--:++a<o;)if(t(e[a],a,e))return a;return-1}(e,F,r);var n=r-1,o=e.length;for(;++n<o;)if(e[n]===t)return n;return-1}(e,t,0)>-1}function F(e){return e!=e}function L(e,t){for(var r=-1,o=e.length,a=0,i=[];++r<o;){var s=e[r];s!==t&&s!==n||(e[r]=n,i[a++]=r)}return i}var N,q,U,B=Function.prototype,$=Object.prototype,V=M["__core-js_shared__"],W=(N=/[^.]+$/.exec(V&&V.keys&&V.keys.IE_PROTO||""))?"Symbol(src)_1."+N:"",z=B.toString,Q=$.hasOwnProperty,H=$.toString,G=RegExp("^"+z.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),K=Object.create,Y=Math.max,J=Math.min,X=(q=ae(Object,"defineProperty"),(U=ae.name)&&U.length>2?q:void 0);function Z(e){return!(!de(e)||function(e){return!!W&&W in e}(e))&&(function(e){var t=de(e)?H.call(e):"";return t==v||t==b}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(r){}return t}(e)?G:O).test(function(e){if(null!=e){try{return z.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function ee(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r,n=de(r=e.prototype)?K(r):{},o=e.apply(n,t);return de(o)?o:n}}function te(e,t,r,n,i,l,c,f,h,m){var y=t&p,g=t&o,v=t&a,b=t&(s|u),_=t&d,S=v?void 0:ee(e);return function o(){for(var a=arguments.length,s=Array(a),u=a;u--;)s[u]=arguments[u];if(b)var p=oe(o),d=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&n++;return n}(s,p);if(n&&(s=function(e,t,r,n){for(var o=-1,a=e.length,i=r.length,s=-1,u=t.length,l=Y(a-i,0),c=Array(u+l),p=!n;++s<u;)c[s]=t[s];for(;++o<i;)(p||o<a)&&(c[r[o]]=e[o]);for(;l--;)c[s++]=e[o++];return c}(s,n,i,b)),l&&(s=function(e,t,r,n){for(var o=-1,a=e.length,i=-1,s=r.length,u=-1,l=t.length,c=Y(a-s,0),p=Array(c+l),d=!n;++o<c;)p[o]=e[o];for(var f=o;++u<l;)p[f+u]=t[u];for(;++i<s;)(d||o<a)&&(p[f+r[i]]=e[o++]);return p}(s,l,c,b)),a-=d,b&&a<m){var w=L(s,p);return re(e,t,te,o.placeholder,r,s,w,f,h,m-a)}var E=g?r:this,x=v?E[e]:e;return a=s.length,f?s=function(e,t){var r=e.length,n=J(t.length,r),o=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(e);for(;n--;){var a=t[n];e[n]=ue(a,r)?o[a]:void 0}return e}(s,f):_&&a>1&&s.reverse(),y&&h<a&&(s.length=h),this&&this!==M&&this instanceof o&&(x=S||ee(x)),x.apply(E,s)}}function re(e,t,r,n,u,p,d,f,h,m){var y=t&s;
2t|=y?l:c,(t&=~(y?c:l))&i||(t&=~(o|a));var g=r(e,t,u,y?p:void 0,y?d:void 0,y?void 0:p,y?void 0:d,f,h,m);return g.placeholder=n,le(g,e,t)}function ne(e,t,n,i,p,d,f,h){var m=t&a;if(!m&&"function"!=typeof e)throw new TypeError(r);var y=i?i.length:0;if(y||(t&=~(l|c),i=p=void 0),f=void 0===f?f:Y(he(f),0),h=void 0===h?h:he(h),y-=p?p.length:0,t&c){var g=i,v=p;i=p=void 0}var b=[e,t,n,i,p,g,v,d,f,h];if(e=b[0],t=b[1],n=b[2],i=b[3],p=b[4],!(h=b[9]=null==b[9]?m?0:e.length:Y(b[9]-y,0))&&t&(s|u)&&(t&=~(s|u)),t&&t!=o)_=t==s||t==u?function(e,t,r){var n=ee(e);return function o(){for(var a=arguments.length,i=Array(a),s=a,u=oe(o);s--;)i[s]=arguments[s];var l=a<3&&i[0]!==u&&i[a-1]!==u?[]:L(i,u);return(a-=l.length)<r?re(e,t,te,o.placeholder,void 0,i,l,void 0,void 0,r-a):j(this&&this!==M&&this instanceof o?n:e,this,i)}}(e,t,h):t!=l&&t!=(o|l)||p.length?te.apply(void 0,b):function(e,t,r,n){var a=t&o,i=ee(e);return function t(){for(var o=-1,s=arguments.length,u=-1,l=n.length,c=Array(l+s),p=this&&this!==M&&this instanceof t?i:e;++u<l;)c[u]=n[u];for(;s--;)c[u++]=arguments[++o];return j(p,a?r:this,c)}}(e,t,n,i);else var _=function(e,t,r){var n=t&o,a=ee(e);return function t(){return(this&&this!==M&&this instanceof t?a:e).apply(n?r:this,arguments)}}(e,t,n);return le(_,e,t)}function oe(e){return e.placeholder}function ae(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Z(r)?r:void 0}function ie(e){var t=e.match(E);return t?t[1].split(x):[]}function se(e,t){var r=t.length,n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(w,"{\n/* [wrapped with "+t+"] */\n")}function ue(e,t){return!!(t=null==t?h:t)&&("number"==typeof e||C.test(e))&&e>-1&&e%1==0&&e<t}var le=X?function(e,t,r){var n,o=t+"";return X(e,"toString",{configurable:!0,enumerable:!1,value:(n=se(o,ce(ie(o),r)),function(){return n})})}:function(e){return e};function ce(e,t){return function(e,t){for(var r=-1,n=e?e.length:0;++r<n&&!1!==t(e[r],r,e););}(g,(function(r){var n="_."+r[0];t&r[1]&&!D(e,n)&&e.push(n)})),e.sort()}function pe(e,t,r){var n=ne(e,s,void 0,void 0,void 0,void 0,void 0,t=r?void 0:t);return n.placeholder=pe.placeholder,n}function de(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function fe(e){return e?(e=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&H.call(e)==_}(e))return y;if(de(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=de(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(S,"");var r=T.test(e);return r||I.test(e)?R(e.slice(2),r?2:8):k.test(e)?y:+e}(e))===f||e===-1/0?(e<0?-1:1)*m:e==e?e:0:0===e?e:0}function he(e){var t=fe(e),r=t%1;return t==t?r?t-r:t:0}pe.placeholder={},t.exports=pe})),qh=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(zw){o=!0,a=zw}finally{try{!n&&s.return&&s.return()}finally{if(o)throw a}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.isTemplateVariable=i,e.interpolateString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return e;var r=e.split(new RegExp(a)).filter((function(e){return e}));return 1===r.length&&!1===i(r[0])?e:r.map((function(e){if(!1===i(e))return e;var r=e.replace(/^\{\{\s/,"").replace(/\s\}\}$/,"");return void 0===t[r]?e:t[r]})).join("")},e.interpolateComponents=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return e;var n=e.split(new RegExp(a)).filter((function(e){return e}));if(1===n.length&&!1===i(n[0]))return e;var s=n.map((function(e,a){var s=e+"_"+a;if(!1===i(e))return o.default.createElement("span",{key:s},n[a]);var u=t(e.replace(/^\{\{\s/,"").replace(/\s\}\}$/,"").split(/:([^]+)/),2),l=u[0],c=u[1];if(void 0===r[l])return o.default.createElement("span",{key:s},n[a]);var p=r[l];return!1===o.default.isValidElement(p)?o.default.createElement("span",{key:s},String(p)):void 0===c?o.default.cloneElement(p,{key:s}):o.default.cloneElement(p,{key:s},c)}));return s.length>1?o.default.createElement("span",null,s):s[0]};var r,o=(r=n())&&r.__esModule?r:{default:r};var a=/(\{\{\s[^]+?(?=\s\}\})\s\}\})/g;function i(e){return new RegExp(a).test(e)}})),Uh=r((e=>
2{Object.defineProperty(e,"__esModule",{value:!0}),e.tcnp=e.tcp=e.tcn=e.tc=e.tnp=e.tp=e.tn=e.t=e.tinp=e.tip=e.tin=e.ti=void 0;var t,r=(t=Nh())&&t.__esModule?t:{default:t},n=qh();var o=e.ti=(0,r.default)((function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return e(t(r),n)})),a=e.tin=(0,r.default)((function(e,t,r,n,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return e(t(r,n,o),a)})),i=e.tip=(0,r.default)((function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return e(t(r,n),o)})),s=e.tinp=(0,r.default)((function(e,t,r,n,o,a){var i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{};return e(t(r,n,o,a),i)}));e.t=o(n.interpolateString),e.tn=a(n.interpolateString),e.tp=i(n.interpolateString),e.tnp=s(n.interpolateString),e.tc=o(n.interpolateComponents),e.tcn=a(n.interpolateComponents),e.tcp=i(n.interpolateComponents),e.tcnp=s(n.interpolateComponents)})),Bh=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=n(),a=p(o),i=p(V()),s=p(Dh()),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(Fh()),l=Lh(),c=Uh();function p(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),n=e.debug,o=e.gettextInstance,a=e.locale,i=e.messages,u=null===n?{}:{debug:n};
2return o?(r.gt=o,a&&r.gt.setLocale(a),i&&Object.keys(i).forEach((function(e){r.gt.addTranslations(e,"messages",i[e])}))):r.gt=(0,s.default)(i,a,u),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidUpdate",value:function(e){e.locale!==this.props.locale&&(this.gt.setLocale(this.props.locale),(0,l.emit)()),e.messages!==this.props.messages&&(0,l.emit)()}},{key:"getChildContext",value:function(){return{locale:this.props.locale,t:(0,c.t)(this.gt.gettext.bind(this.gt)),tn:(0,c.tn)(this.gt.ngettext.bind(this.gt)),tp:(0,c.tp)(this.gt.pgettext.bind(this.gt)),tnp:(0,c.tnp)(this.gt.npgettext.bind(this.gt)),tc:(0,c.tc)(this.gt.gettext.bind(this.gt)),tcn:(0,c.tcn)(this.gt.ngettext.bind(this.gt)),tcp:(0,c.tcp)(this.gt.pgettext.bind(this.gt)),tcnp:(0,c.tcnp)(this.gt.npgettext.bind(this.gt)),transformInput:this.props.transformInput}}},{key:"render",value:function(){return a.default.Children.only(this.props.children)}}]),t}(o.Component);d.propTypes={messages:i.default.object,locale:i.default.string,transformInput:i.default.func,gettextInstance:i.default.shape({}),children:i.default.node.isRequired,debug:i.default.bool},d.defaultProps={transformInput:function(e){return e},debug:null},d.childContextTypes=t({},u),e.default=d}
2)),$h=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});e.default=function(e,t,r){return function(e,t){if("function"!=typeof e)throw new TypeError("The typeValidator argument must be a function with the signature function(props, propName, componentName).");if(t&&"string"!=typeof t)throw new TypeError("The error message is optional, but must be a string if provided.")}(e,r),function(n,o,a){for(var i=arguments.length,s=Array(3<i?i-3:0),u=3;u<i;u++)s[u-3]=arguments[u];return function(e,t,r,n){return"boolean"==typeof e?e:"function"==typeof e?e(t,r,n):!(1!=!!e||!e)}(t,n,o,a)?function(e,t){return Object.hasOwnProperty.call(e,t)}(n,o)?e.apply(void 0,[n,o,a].concat(s)):function(e,t,r,n){return n?new Error(n):new Error("Required "+e[t]+" `"+t+"` was not specified in `"+r+"`.")}(n,o,a,r):e.apply(void 0,[n,o,a].concat(s))}}})),Vh=r((e=>{e.__esModule=!0;e.default=function(e,t){return e}})),Wh=r((e=>{e.__esModule=!0;e.default=function(e){return Boolean(e&&e.prototype&&"object"==typeof e.prototype.isReactComponent)}})),zh=r((e=>{e.__esModule=!0;var t,r=(t=Wh())&&t.__esModule?t:{default:t};e.default=function(e){return Boolean(!("function"!=typeof e||(0,r.default)(e)||e.defaultProps||e.contextTypes||e.propTypes))}})),Qh=r((e=>{e.__esModule=!0,e.internalCreateElement=void 0;var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r=a(n()),o=a(zh());function a(e){return e&&e.__esModule?e:{default:e}}var i=function(e,n,o,a,i){if(!e&&n){var s=o;return s(i?t({},a,{children:i}):a)}return i?r.default.createElement(o,a,i):r.default.createElement(o,a)};e.internalCreateElement=function(e){var t=(0,o.default)(e);return function(r,n){return i(!1,t,e,r,n)}};e.default=function(e,t,r){var n=(0,o.default)(e);return i(t&&t.hasOwnProperty("key"),n,e,t,r)}})),Hh=r((e=>{e.__esModule=!0;var t,r=(t=Vh())&&t.__esModule?t:{default:t},n=Qh();e.default=(0,r.default)((function(e){return function(t){var r=(0,n.internalCreateElement)(t);return function(t){return r(e(t))}}}),"mapProps")})),Gh=r((e=>{e.__esModule=!0;var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r=o(Vh()),n=o(Hh());function o(e){return e&&e.__esModule?e:{default:e}}e.default=(0,r.default)((function(e){return(0,n.default)((function(r){return t({},r,"function"==typeof e?e(r):e)}))}),"withProps")})),Kh=r((e=>{e.__esModule=!0;e.default=function(e,t){for(var r={},n=0;n<t.length;n++){var o=t[n];e.hasOwnProperty(o)&&(r[o]=e[o])}return r}})),Yh=r(((e,t)=>{var r=Object.prototype.hasOwnProperty;function n(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}t.exports=function(e,t){if(n(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var i=0;i<o.length;i++)if(!r.call(t,o[i])||!n(e[o[i]],t[o[i]]))return!1;return!0}})),Jh=r((e=>{e.__esModule=!0;var t,r=(t=Yh())&&t.__esModule?t:{default:t};e.default=r.default})),Xh=r((e=>{e.__esModule=!0;var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r=n(),o=u(Kh()),a=u(Jh()),i=u(Vh()),s=u(Qh());function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}e.default=(0,i.default)((function(e,n){return function(i){var u="function"==typeof e?e:function(t,r){return!(0,a.default)((0,o.default)(t,e),(0,o.default)(r,e))};return function(e){function r(){var t,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var a=arguments.length,i=Array(a),s=0;s<a;s++)i[s]=arguments[s];return t=o=l(this,e.call.apply(e,[this].concat(i))),o.computedProps=n(o.props),l(o,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,e),r.prototype.componentWillReceiveProps=function(e){u(this.props,e)&&(this.computedProps=n(e))},r.prototype.render=function(){return(0,s.default)(i,t({},this.props,this.computedProps))},r}(r.Component)}}),"withPropsOnChange")})),Zh=r((e=>
2{e.__esModule=!0;var t,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=n(),a=Qh(),i=(t=Vh())&&t.__esModule?t:{default:t};function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}e.default=(0,i.default)((function(e){return function(t){var n,i,u=(0,a.internalCreateElement)(t);return n=function(e){function t(){var r,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),u=0;u<o;u++)a[u]=arguments[u];return r=n=s(this,e.call.apply(e,[this].concat(a))),i.call(n),s(n,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(){this.cachedHandlers={}},t.prototype.render=function(){return u(r({},this.props,this.handlers))},t}(o.Component),i=function(){var t=this;this.cachedHandlers={},this.handlers=function(e,t){var r=[],n=0;for(var o in e)e.hasOwnProperty(o)&&(n+=1,r[o]=t(e[o],o,n));return r}(e,(function(e,r){return function(){var n=t.cachedHandlers[r];if(n)return n.apply(void 0,arguments);var o=e(t.props);return t.cachedHandlers[r]=o,o.apply(void 0,arguments)}}))},n}}),"withHandlers")})),em=r((e=>{e.__esModule=!0;var t,r=(t=Vh())&&t.__esModule?t:{default:t},n=Qh();e.default=(0,r.default)((function(e){return function(t){var r=(0,n.internalCreateElement)(t),o=function(e){return r(e)};return o.defaultProps=e,o}}),"defaultProps")})),tm=r((e=>{e.__esModule=!0;e.default=function(e,t){for(var r=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,[]),n=0;n<t.length;n++){var o=t[n];r.hasOwnProperty(o)&&delete r[o]}return r}})),rm=r((e=>{e.__esModule=!0;var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r=a(tm()),n=a(Hh()),o=a(Vh());function a(e){return e&&e.__esModule?e:{default:e}}e.default=(0,o.default)((function(e,o){return(0,n.default)((function(n){var a;return t({},(0,r.default)(n,[e]),((a={})[o]=n[e],a))}))}),"renameProp")})),nm=r((e=>{e.__esModule=!0;var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r=i(tm()),n=i(Kh()),o=i(Hh()),a=i(Vh());function i(e){return e&&e.__esModule?e:{default:e}}var s=Object.keys;e.default=(0,a.default)((function(e){return(0,o.default)((function(o){return t({},(0,r.default)(o,s(e)),(a=(0,n.default)(o,s(e)),i=function(t,r){return e[r]},s(a).reduce((function(e,t){var r=a[t];return e[i(r,t)]=r,e}),{})));var a,i}))}),"renameProps")})),om=r((e=>{e.__esModule=!0;var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r=a(tm()),n=a(Vh()),o=Qh();function a(e){return e&&e.__esModule?e:{default:e}}e.default=(0,n.default)((function(e){return function(n){var a=(0,o.internalCreateElement)(n);return function(n){return a(t({},(0,r.default)(n,[e]),n[e]))}}}),"flattenProp")})),am=r((e=>{e.__esModule=!0;var t,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=n(),a=(t=Vh())&&t.__esModule?t:{default:t},i=Qh();function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}e.default=(0,a.default)((function(e,t,n){return function(a){var u=(0,i.internalCreateElement)(a);return function(o){function a(){var e,t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var r=arguments.length,i=Array(r),u=0;u<r;u++)i[u]=arguments[u];return e=t=s(this,o.call.apply(o,[this].concat(i))),t.state={stateValue:"function"==typeof n?n(t.props):n},t.updateStateValue=function(e,r){return t.setState((function(t){var r=t.stateValue;return{stateValue:"function"==typeof e?e(r):e}}),r)},s(t,e)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,o),a.prototype.render=function(){var n;return u(r({},this.props,((n={})[e]=this.state.stateValue,n[t]=this.updateStateValue,n)))},a}(o.Component)}}),"withState")})),im=r((e=>
2{e.__esModule=!0;var t,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=n(),a=(t=Vh())&&t.__esModule?t:{default:t},i=Qh();function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}e.default=(0,a.default)((function(e,t,n,a){return function(u){var l=(0,i.internalCreateElement)(u);return function(o){function i(){var e,t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var r=arguments.length,u=Array(r),l=0;l<r;l++)u[l]=arguments[l];return e=t=s(this,o.call.apply(o,[this].concat(u))),t.state={stateValue:"function"==typeof a?a(t.props):a},t.dispatch=function(e){return t.setState((function(t){var r=t.stateValue;return{stateValue:n(r,e)}}))},s(t,e)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,o),i.prototype.render=function(){var n;return l(r({},this.props,((n={})[e]=this.state.stateValue,n[t]=this.dispatch,n)))},i}(o.Component)}}),"withReducer")})),sm=r((e=>{e.__esModule=!0;var t=a(n()),r=a(Vh()),o=a(Qh());function a(e){return e&&e.__esModule?e:{default:e}}e.default=(0,r.default)((function(e,r,n){return function(a){return function(t){function i(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,t.call(this,e,r));return n.LeftComponent=null,n.RightComponent=null,n.computeChildComponent(n.props),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,t),i.prototype.computeChildComponent=function(t){e(t)?(this.LeftComponent=this.LeftComponent||r(a),this.Component=this.LeftComponent):(this.RightComponent=this.RightComponent||n(a),this.Component=this.RightComponent)},i.prototype.componentWillReceiveProps=function(e){this.computeChildComponent(e)},i.prototype.render=function(){var e=this.Component;return(0,o.default)(e,this.props)},i}(t.default.Component)}}),"branch")})),um=r((e=>{e.__esModule=!0;var t,r=(t=Vh())&&t.__esModule?t:{default:t},n=Qh();e.default=(0,r.default)((function(e){return function(t){var r=(0,n.internalCreateElement)(e);return function(e){return r(e)}}}),"renderComponent",!1)})),lm=r((e=>{e.__esModule=!0;var t,r=(t=Vh())&&t.__esModule?t:{default:t};e.default=(0,r.default)((function(e){var t=function(){return null};return t.displayName="Nothing",t}),"renderNothing",!1,!0)})),cm=r((e=>{e.__esModule=!0;var t,r=n(),o=(t=Vh())&&t.__esModule?t:{default:t},a=Qh();e.default=(0,o.default)((function(e){return function(t){var n=(0,a.internalCreateElement)(t);return function(t){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,t.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,t),r.prototype.shouldComponentUpdate=function(t){return e(this.props,t)},r.prototype.render=function(){return n(this.props)},r}(r.Component)}}),"shouldUpdate")})),pm=r((e=>
2{e.__esModule=!0;var t=o(cm()),r=o(Jh()),n=o(Vh());function o(e){return e&&e.__esModule?e:{default:e}}var a=(0,t.default)((function(e,t){return!(0,r.default)(e,t)}));e.default=(0,n.default)(a,"pure",!0,!0)})),dm=r((e=>{e.__esModule=!0;var t=a(cm()),r=a(Jh()),n=a(Vh()),o=a(Kh());function a(e){return e&&e.__esModule?e:{default:e}}e.default=(0,n.default)((function(e){return(0,t.default)((function(t,n){return!(0,r.default)((0,o.default)(n,e),(0,o.default)(t,e))}))}),"onlyUpdateForKeys")})),fm=r((e=>{e.__esModule=!0;var t=n(dm()),r=n(Vh());function n(e){return e&&e.__esModule?e:{default:e}}e.default=(0,r.default)((function(e){var r=e.propTypes,n=Object.keys(r||{});return(0,t.default)(n)(e)}),"onlyUpdateForPropTypes",!0,!0)})),hm=r((e=>{e.__esModule=!0;var t,r=n(),o=(t=Vh())&&t.__esModule?t:{default:t},a=Qh();function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}e.default=(0,o.default)((function(e,t){return function(n){var o=(0,a.internalCreateElement)(n),s=function(e){function r(){var n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var a=arguments.length,s=Array(a),u=0;u<a;u++)s[u]=arguments[u];return n=o=i(this,e.call.apply(e,[this].concat(s))),o.getChildContext=function(){return t(o.props)},i(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,e),r.prototype.render=function(){return o(this.props)},r}(r.Component);return s.childContextTypes=e,s}}),"withContext")})),mm=r((e=>{e.__esModule=!0;var t,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n=(t=Vh())&&t.__esModule?t:{default:t},o=Qh();e.default=(0,n.default)((function(e){return function(t){var n=(0,o.internalCreateElement)(t),a=function(e,t){return n(r({},e,t))};return a.contextTypes=e,a}}),"getContext")})),ym=r((e=>{e.__esModule=!0;var t,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=n(),a=(t=Vh())&&t.__esModule?t:{default:t},i=Qh();e.default=(0,a.default)((function(e){return function(t){var n=(0,i.internalCreateElement)(t);return(0,o.createClass)(r({},e,{render:function(){return n(r({},this.props,this.state))}}))}}),"lifecycle")})),gm=r((e=>{e.__esModule=!0;e.default=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":void 0}})),vm=r((e=>{e.__esModule=!0;var t=n(),r=i(t),o=i(gm()),a=i(Wh());function i(e){return e&&e.__esModule?e:{default:e}}e.default=function(e){if((0,a.default)(e))return e;var n=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,t.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),n.prototype.render=function(){return"string"==typeof e?r.default.createElement("baseComponent",this.props):e(this.props,this.context)},n}(t.Component);return n.displayName=(0,o.default)(e),n.propTypes=e.propTypes,n.contextTypes=e.contextTypes,n.defaultProps=e.defaultProps,n}})),bm=r((e=>{e.__esModule=!0;var t,r=(t=Vh())&&t.__esModule?t:{default:t};e.default=(0,r.default)((function(e,t){return function(r){return r[e]=t,r}}),"setStatic",!1)})),_m=r((e=>
2{e.__esModule=!0;var t=n(bm()),r=n(Vh());function n(e){return e&&e.__esModule?e:{default:e}}e.default=(0,r.default)((function(e){return(0,t.default)("propTypes",e)}),"setPropTypes",!1)})),Sm=r((e=>{e.__esModule=!0;var t=n(bm()),r=n(Vh());function n(e){return e&&e.__esModule?e:{default:e}}e.default=(0,r.default)((function(e){return(0,t.default)("displayName",e)}),"setDisplayName",!1)})),wm=r((e=>{e.__esModule=!0,e.default=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(0===t.length)return function(e){return e};if(1===t.length)return t[0];var n=t[t.length-1];return function(){for(var e=n.apply(void 0,arguments),r=t.length-2;r>=0;r--){e=(0,t[r])(e)}return e}}})),Em=r((e=>{e.__esModule=!0;var t,r=(t=gm())&&t.__esModule?t:{default:t};e.default=function(e,t){return t+"("+(0,r.default)(e)+")"}})),xm=r((e=>{e.__esModule=!0;var t=n();e.default=function(e){return function(t){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,t.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,t),r.prototype.componentWillMount=function(){e(this.props)},r.prototype.componentWillReceiveProps=function(t){e(t)},r.prototype.render=function(){return null},r}(t.Component)}})),km=r((e=>{e.__esModule=!0;var t=n(tm()),r=n(Qh());function n(e){return e&&e.__esModule?e:{default:e}}e.default=function(e){var n=function(n){return(0,r.default)(n[e],(0,t.default)(n,[e]))};return n.displayName="componentFromProp("+e+")",n}})),Tm=r((e=>{e.__esModule=!0;var t=Qh();e.default=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];var o=r.map(t.internalCreateElement);return function(e){var t=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,[]),r=e.children;return o.reduceRight((function(e,r){return r(t,e)}),r)}}})),Om=r(((e,t)=>{var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},o="function"==typeof Object.getOwnPropertySymbols;t.exports=function(e,t,a){if("string"!=typeof t){var i=Object.getOwnPropertyNames(t);o&&(i=i.concat(Object.getOwnPropertySymbols(t)));for(var s=0;s<i.length;++s)if(!(r[i[s]]||n[i[s]]||a&&a[i[s]]))try{e[i[s]]=t[i[s]]}catch(u){}}return e}})),Im=r((e=>{e.__esModule=!0;var t,r=(t=Om())&&t.__esModule?t:{default:t};e.default=function(e){return function(t){var n=e(t);return(0,r.default)(n,t),n}}})),Cm=r((e=>{e.__esModule=!0,e.hoistStatics=e.nest=e.componentFromProp=e.createSink=e.isClassComponent=e.shallowEqual=e.wrapDisplayName=e.getDisplayName=e.compose=e.setDisplayName=e.setPropTypes=e.setStatic=e.toClass=e.lifecycle=e.getContext=e.withContext=e.onlyUpdateForPropTypes=e.onlyUpdateForKeys=e.pure=e.shouldUpdate=e.renderNothing=e.renderComponent=e.branch=e.withReducer=e.withState=e.flattenProp=e.renameProps=e.renameProp=e.defaultProps=e.withHandlers=e.withPropsOnChange=e.withProps=e.mapProps=void 0;var t=j(Hh()),r=j(Gh()),n=j(Xh()),o=j(Zh()),a=j(em()),i=j(rm()),s=j(nm()),u=j(om()),l=j(am()),c=j(im()),p=j(sm()),d=j(um()),f=j(lm()),h=j(cm()),m=j(pm()),y=j(dm()),g=j(fm()),v=j(hm()),b=j(mm()),_=j(ym()),S=j(vm()),w=j(bm()),E=j(_m()),x=j(Sm()),k=j(wm()),T=j(gm()),O=j(Em()),I=j(Jh()),C=j(Wh()),R=j(xm()),A=j(km()),P=j(Tm()),M=j(Im());function j(e){return e&&e.__esModule?e:{default:e}}e.mapProps=t.default,e.withProps=r.default,e.withPropsOnChange=n.default,e.withHandlers=o.default,e.defaultProps=a.default,e.renameProp=i.default,e.renameProps=s.default,e.flattenProp=u.default,e.withState=l.default,e.withReducer=c.default,e.branch=p.default,e.renderComponent=d.default,e.renderNothing=f.default,e.shouldUpdate=h.default,e.pure=m.default,e.onlyUpdateForKeys=y.default,e.onlyUpdateForPropTypes=g.default,e.withContext=v.default,e.getContext=b.default,e.lifecycle=_.default,e.toClass=S.default,e.setStatic=w.default,e.setPropTypes=E.default,e.setDisplayName=x.default,e.compose=k.default,e.getDisplayName=T.default,e.wrapDisplayName=O.default,e.shallowEqual=I.default,e.isClassComponent=C.default,e.createSink=R.default,e.componentFromProp=A.default,e.nest=P.default,e.hoistStatics=M.default})),Rm=r((e=>
2{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();e.default=function(e){var r=function(r){function n(){var e,t,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return t=r=u(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(a))),r.state={lastNotification:null},r.handleNotification=function(){r.setState({lastNotification:Date.now()})},u(r,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,r),t(n,[{key:"componentDidMount",value:function(){(0,s.subscribe)(this.handleNotification)}},{key:"componentWillUnmount",value:function(){(0,s.unsubscribe)(this.handleNotification)}},{key:"render",value:function(){return a.default.createElement(e,this.props)}}]),n}(o.PureComponent);return r.displayName=(0,i.wrapDisplayName)(e,"forceUpdatedComponent"),r};var r,o=n(),a=(r=o)&&r.__esModule?r:{default:r},i=Cm(),s=Lh();function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}})),Am=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){var t=(0,o.default)(e),a=(0,r.getContext)(n)(t);return a.displayName=(0,r.wrapDisplayName)(e,"withTranslators"),a};var t,r=Cm(),n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(Fh()),o=(t=Rm())&&t.__esModule?t:{default:t}})),Pm=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=n(),a=l(o),i=l(V()),s=l($h()),u=l(Am());function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){return(0,s.default)(i.default.string,(function(t){return!t[e]}),"T requires either a message prop or a child node in the form of a pure string")},p=function(e){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,e),r(n,[{key:"render",value:function(){var e=this.props,r=e.message,n=e.messagePlural,o=e.context,i=e.count,s=e.children,u=e.tcnp,l=e.transformInput,c=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["message","messagePlural","context","count","children","tcnp","transformInput"]);delete c.t,delete c.tp,delete c.tn,delete c.tnp,delete c.tc,delete c.tcp,delete c.tcn;var p=u(o,l(r||s||""),l(n),i,t({},c,{count:i}));return"string"==typeof p?a.default.createElement("span",null,p):p}}]),n}(o.Component);p.propTypes={message:c("children"),children:c("messages"),messagePlural
2:i.default.string,context:i.default.string,count:i.default.number,tcnp:i.default.func.isRequired,transformInput:i.default.func.isRequired},p.defaultProps={message:null,children:null,messagePlural:null,context:"",count:1},e.default=(0,u.default)(p)})),Mm=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.interpolateString=e.interpolateComponents=e.withTranslators=e.T=e.LionessProvider=void 0;var t=a(Bh()),r=a(Pm()),n=a(Am()),o=qh();function a(e){return e&&e.__esModule?e:{default:e}}e.LionessProvider=t.default,e.T=r.default,e.withTranslators=n.default,e.interpolateComponents=o.interpolateComponents,e.interpolateString=o.interpolateString})),jm=Mm(),Dm={},Fm=r(((e,t)=>{function r(e){return"object"!=typeof e||"toString"in e?e:Object.prototype.toString.call(e).slice(8,-1)}Object.defineProperty(e,"__esModule",{value:!0});var n="object"==typeof process&&!0;function o(e,t){if(!e){if(n)throw new Error("Invariant failed");throw new Error(t())}}e.invariant=o;var a=Object.prototype.hasOwnProperty,i=Array.prototype.splice,s=Object.prototype.toString;function u(e){return s.call(e).slice(8,-1)}var l=Object.assign||function(e,t){return c(t).forEach((function(r){a.call(t,r)&&(e[r]=t[r])})),e},c="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function p(e){return Array.isArray(e)?l(e.constructor(e.length),e):"Map"===u(e)?new Map(e):"Set"===u(e)?new Set(e):e&&"object"==typeof e?l(Object.create(Object.getPrototypeOf(e)),e):e}var d=function(){function e(){this.commands=l({},f),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(e,t){return e===t},this.update.newContext=function(){return(new e).update}}return Object.defineProperty(e.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(e){this.update.isEquals=e},enumerable:!0,configurable:!0}),e.prototype.extend=function(e,t){this.commands[e]=t},e.prototype.update=function(e,t){var r=this,n="function"==typeof t?{$apply:t}:t;Array.isArray(e)&&Array.isArray(n)||o(!Array.isArray(n),(function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."})),o("object"==typeof n&&null!==n,(function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: "+Object.keys(r.commands).join(", ")+"."}));var i=e;return c(n).forEach((function(t){if(a.call(r.commands,t)){var o=e===i;i=r.commands[t](n[t],i,n,e),o&&r.isEquals(i,e)&&(i=e)}else{var s="Map"===u(e)?r.update(e.get(t),n[t]):r.update(e[t],n[t]),l="Map"===u(i)?i.get(t):i[t];r.isEquals(s,l)&&(void 0!==s||a.call(e,t))||(i===e&&(i=p(e)),"Map"===u(i)?i.set(t,s):i[t]=s)}})),i},e}();e.Context=d;var f={$push:function(e,t,r){return m(t,r,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,r){return m(t,r,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,n,a){return function(e,t){o(Array.isArray(e),(function(){return"Expected $splice target to be an array; got "+r(e)})),g(t.$splice)}(t,n),e.forEach((function(e){g(e),t===a&&e.length&&(t=p(a)),i.apply(t,e)})),t},$set:function(e,t,r){return function(e){o(1===Object.keys(e).length,(function(){return"Cannot have more than one key in an object with $set"}))}(r),e},$toggle:function(e,t){y(e,"$toggle");var r=e.length?p(t):t;return e.forEach((function(e){r[e]=!t[e]})),r},$unset:function(e,t,r,n){return y(e,"$unset"),e.forEach((function(e){Object.hasOwnProperty.call(t,e)&&(t===n&&(t=p(n)),delete t[e])})),t},$add:function(e,t,r,n){return v(t,"$add"),y(e,"$add"),"Map"===u(t)?e.forEach((function(e){var r=e[0],o=e[1];t===n&&t.get(r)!==o&&(t=p(n)),t.set(r,o)})):e.forEach((function(e){t!==n||t.has(e)||(t=p(n)),t.add(e)})),t},$remove:function(e,t,r,n){return v(t,"$remove"),y(e,"$remove"),e.forEach((function(e){t===n&&t.has(e)&&(t=p(n)),t.delete(e)})),t},$merge:function(e,t,n,a){var i,s;return i=t,o((s=e)&&"object"==typeof s,(function(){return"update(): $merge expects a spec of type 'object'; got "+r(s)})),o(i&&"object"==typeof i,(function(){return"update(): $merge expects a target of type 'object'; got "+r(i)})),c(e).forEach((function(r){e[r]!==t[r]&&(t===a&&(t=p(a)),t[r]=e[r])})),t},$apply:function(e,t){var n;return o("function"==typeof(n=e),(function(){return"update(): expected spec of $apply to be a function; got "+r(n)+"."})),e(t)}
2},h=new d;function m(e,t,n){o(Array.isArray(e),(function(){return"update(): expected target of "+r(n)+" to be an array; got "+r(e)+"."})),y(t[n],n)}function y(e,t){o(Array.isArray(e),(function(){return"update(): expected spec of "+r(t)+" to be an array; got "+r(e)+". Did you forget to wrap your parameter in an array?"}))}function g(e){o(Array.isArray(e),(function(){return"update(): expected spec of $splice to be an array of arrays; got "+r(e)+". Did you forget to wrap your parameters in an array?"}))}function v(e,t){var n=u(e);o("Map"===n||"Set"===n,(function(){return"update(): "+r(t)+" expects a target of type Set or Map; got "+r(n)}))}e.isEquals=h.update.isEquals,e.extend=h.extend,e.default=h.update,e.default.default=t.exports=l(e.default,e)})),Lm=r(((e,t)=>{t.exports=Error})),Nm=r(((e,t)=>{t.exports=EvalError})),qm=r(((e,t)=>{t.exports=RangeError})),Um=r(((e,t)=>{t.exports=ReferenceError})),Bm=r(((e,t)=>{t.exports=SyntaxError})),$m=r(((e,t)=>{t.exports=TypeError})),Vm=r(((e,t)=>{t.exports=URIError})),Wm=r(((e,t)=>{t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}})),zm=r(((e,t)=>{var r="undefined"!=typeof Symbol&&Symbol,n=Wm();t.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&n())))}})),Qm=r(((e,t)=>{var r={__proto__:null,foo:{}},n=Object;t.exports=function(){return{__proto__:r}.foo===r.foo&&!(r instanceof n)}})),Hm=r(((e,t)=>{var r=Object.prototype.toString,n=Math.max,o=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r};t.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==r.apply(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var a,i=function(e,t){for(var r=[],n=t||0,o=0;n<e.length;n+=1,o+=1)r[o]=e[n];return r}(arguments,1),s=n(0,t.length-i.length),u=[],l=0;l<s;l++)u[l]="$"+l;if(a=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r}(u,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof a){var r=t.apply(this,o(i,arguments));return Object(r)===r?r:this}return t.apply(e,o(i,arguments))})),t.prototype){var c=function(){};c.prototype=t.prototype,a.prototype=new c,c.prototype=null}return a}})),Gm=r(((e,t)=>{var r=Hm();t.exports=Function.prototype.bind||r})),Km=r(((e,t)=>{var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=Gm();t.exports=o.call(r,n)})),Ym=r(((e,t)=>{var r,n=Lm(),o=Nm(),a=qm(),i=Um(),s=Bm(),u=$m(),l=Vm(),c=Function,p=function(e){try{return c('"use strict"; return ('+e+").constructor;")()}catch(t){}},d=Object.getOwnPropertyDescriptor;if(d)try{d({},"")}catch(M){d=null}var f=function(){throw new u},h=d?function(){try{return f}catch(e){try{return d(arguments,"callee").get}catch(t){return f}}}():f,m=zm()(),y=Qm()(),g=Object.getPrototypeOf||(y?function(e){return e.__proto__}:null),v={},b="undefined"!=typeof Uint8Array&&g?g(Uint8Array):r,_={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":m&&g?g([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?r:Atom
vendor: 7,506 bytes, line 2
2ics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":c,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":m&&g?g(g([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&m&&g?g((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":i,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&m&&g?g((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":m&&g?g(""[Symbol.iterator]()):r,"%Symbol%":m?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":h,"%TypedArray%":b,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":l,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(g)try{null.error}catch(M){_["%Error.prototype%"]=g(g(M))}var S=function e(t){var r;if("%AsyncFunction%"===t)r=p("async function () {}");else if("%GeneratorFunction%"===t)r=p("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=p("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&g&&(r=g(o.prototype))}return _[t]=r,r},w={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},E=Gm(),x=Km(),k=E.call(Function.call,Array.prototype.concat),T=E.call(Function.apply,Array.prototype.splice),O=E.call(Function.call,String.prototype.replace),I=E.call(Function.call,String.prototype.slice),C=E.call(Function.call,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,P=function(e,t){var r,n=e;if(x(w,n)&&(n="%"+(r=w[n])[0]+"%"),x(_,n)){var o=_[n];if(o===v&&(o=S(n)),void 0===o&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new s("intrinsic "+e+" does not exist!")};t.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===C(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=I(e,0,1),r=I(e,-1);if("%"===t&&"%"!==r)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var n=[];return O(e,R,(function(e,t,r,o){n[n.length]=r?O(o,A,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=P("%"+n+"%",t),a=o.name,i=o.value,l=!1,c=o.alias;c&&(n=c[0],T(r,k([0,1],c)));for(var p=1,f=!0;p<r.length;p+=1){var h=r[p],m=I(h,0,1),y=I(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===y||"'"===y||"`"===y)&&m!==y)throw new s("property names with quotes must have matching quotes");if("constructor"!==h&&f||(l=!0),x(_,a="%"+(n+="."+h)+"%"))i=_[a];else if(null!=i){if(!(h in i)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(d&&p+1>=r.length){var g=d(i,h);i=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:i[h]}else f=x(i,h),i=i[h];f&&!l&&(_[a]=i)}}return i}})),Jm=r(((e,t)=>{var r=Ym()("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(n){r=!1}t.exports=r})),Xm=r(((e,t)=>{var r=Array.prototype.slice,n=Object.prototype.toString;t.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==n.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);
2for(var o,a=r.call(arguments,1),i=Math.max(0,t.length-a.length),s=[],u=0;u<i;u++)s.push("$"+u);if(o=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var n=t.apply(this,a.concat(r.call(arguments)));return Object(n)===n?n:this}return t.apply(e,a.concat(r.call(arguments)))})),t.prototype){var l=function(){};l.prototype=t.prototype,o.prototype=new l,l.prototype=null}return o}})),Zm=r(((e,t)=>{var r=Xm();t.exports=Function.prototype.bind||r})),ey=r(((e,t)=>{var r=Array.prototype.slice,n=Object.prototype.toString;t.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==n.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var o,a=r.call(arguments,1),i=Math.max(0,t.length-a.length),s=[],u=0;u<i;u++)s.push("$"+u);if(o=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var n=t.apply(this,a.concat(r.call(arguments)));return Object(n)===n?n:this}return t.apply(e,a.concat(r.call(arguments)))})),t.prototype){var l=function(){};l.prototype=t.prototype,o.prototype=new l,l.prototype=null}return o}})),ty=r(((e,t)=>{var r=ey();t.exports=Function.prototype.bind||r})),ry=r(((e,t)=>{var r=ty();t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)})),ny=r(((e,t)=>{var r,n=SyntaxError,o=Function,a=TypeError,i=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(t){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(O){s=null}var u=function(){throw new a},l=s?function(){try{return u}catch(e){try{return s(arguments,"callee").get}catch(t){return u}}}():u,c=zm()(),p=Object.getPrototypeOf||function(e){return e.__proto__},d={},f="undefined"==typeof Uint8Array?r:p(Uint8Array),h={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":c?p([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
2IteratorPrototype%":c?p(p([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&c?p((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&c?p((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c?p(""[Symbol.iterator]()):r,"%Symbol%":c?Symbol:r,"%SyntaxError%":n,"%ThrowTypeError%":l,"%TypedArray%":f,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},m=function e(t){var r;if("%AsyncFunction%"===t)r=i("async function () {}");else if("%GeneratorFunction%"===t)r=i("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=i("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(r=p(o.prototype))}return h[t]=r,r},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=Zm(),v=ry(),b=g.call(Function.call,Array.prototype.concat),_=g.call(Function.apply,Array.prototype.splice),S=g.call(Function.call,String.prototype.replace),w=g.call(Function.call,String.prototype.slice),E=g.call(Function.call,RegExp.prototype.exec),x=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,k=/\\(\\)?/g,T=function(e,t){var r,o=e;if(v(y,o)&&(o="%"+(r=y[o])[0]+"%"),v(h,o)){var i=h[o];if(i===d&&(i=m(o)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:i}}throw new n("intrinsic "+e+" does not exist!")};t.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===E(/^%?[^%]*%?$/,e))throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=w(e,0,1),r=w(e,-1);if("%"===t&&"%"!==r)throw new n("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new n("invalid intrinsic syntax, expected opening `%`");var o=[];return S(e,x,(function(e,t,r,n){o[o.length]=r?S(n,k,"$1"):t||e})),o}(e),o=r.length>0?r[0]:"",i=T("%"+o+"%",t),u=i.name,l=i.value,c=!1,p=i.alias;p&&(o=p[0],_(r,b([0,1],p)));for(var d=1,f=!0;d<r.length;d+=1){var m=r[d],y=w(m,0,1),g=w(m,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new n("property names with quotes must have matching quotes");if("constructor"!==m&&f||(c=!0),v(h,u="%"+(o+="."+m)+"%"))l=h[u];else if(null!=l){if(!(m in l)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(s&&d+1>=r.length){var O=s(l,m);l=(f=!!O)&&"get"in O&&!("originalValue"in O.get)?O.get:l[m]}else f=v(l,m),l=l[m];f&&!c&&(h[u]=l)}}return l}})),oy=r(((e,t)=>{var r=ny()("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(n){r=null}t.exports=r})),ay=r(((e,t)=>{var r=Jm(),n=Bm(),o=$m(),a=oy();t.exports=function(e,t,i){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");
2if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],p=!!a&&a(e,t);if(r)r(e,t,{configurable:null===l&&p?p.configurable:!l,enumerable:null===s&&p?p.enumerable:!s,value:i,writable:null===u&&p?p.writable:!u});else{if(!c&&(s||u||l))throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=i}}})),iy=r(((e,t)=>{var r=Jm(),n=function(){return!!r};n.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},t.exports=n})),sy=r(((e,t)=>{var r=Ym(),n=ay(),o=iy()(),a=oy(),i=$m(),s=r("%Math.floor%");t.exports=function(e,t){if("function"!=typeof e)throw new i("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||s(t)!==t)throw new i("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],u=!0,l=!0;if("length"in e&&a){var c=a(e,"length");c&&!c.configurable&&(u=!1),c&&!c.writable&&(l=!1)}return(u||l||!r)&&(o?n(e,"length",t,!0,!0):n(e,"length",t)),e}})),uy=r(((e,t)=>{var r=Gm(),n=Ym(),o=sy(),a=$m(),i=n("%Function.prototype.apply%"),s=n("%Function.prototype.call%"),u=n("%Reflect.apply%",!0)||r.call(s,i),l=Jm(),c=n("%Math.max%");t.exports=function(e){if("function"!=typeof e)throw new a("a function is required");return o(u(r,s,arguments),1+c(0,e.length-(arguments.length-1)),!0)};var p=function(){return u(r,i,arguments)};l?l(t.exports,"apply",{value:p}):t.exports.apply=p})),ly=r(((e,t)=>{var r=Ym(),n=uy(),o=n(r("String.prototype.indexOf"));t.exports=function(e,t){var a=r(e,!!t);return"function"==typeof a&&o(e,".prototype.")>-1?n(a):a}})),cy=r(((e,t)=>{t.exports={}})),py=r(((e,t)=>{var r="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&n&&"function"==typeof n.get?n.get:null,a=r&&Map.prototype.forEach,i="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=i&&s&&"function"==typeof s.get?s.get:null,l=i&&Set.prototype.forEach,c="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,f=Boolean.prototype.valueOf,h=Object.prototype.toString,m=Function.prototype.toString,y=String.prototype.match,g=String.prototype.slice,v=String.prototype.replace,b=String.prototype.toUpperCase,_=String.prototype.toLowerCase,S=RegExp.prototype.test,w=Array.prototype.concat,E=Array.prototype.join,x=Array.prototype.slice,k=Math.floor,T="function"==typeof BigInt?BigInt.prototype.valueOf:null,O=Object.getOwnPropertySymbols,I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,C="function"==typeof Symbol&&"object"==typeof Symbol.iterator,R="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===C||"symbol")?Symbol.toStringTag:null,A=Object.prototype.propertyIsEnumerable,P=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function M(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||S.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-k(-e):k(e);if(n!==e){var o=String(n),a=g.call(t,o.length+1);return v.call(o,r,"$&_")+"."+v.call(v.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var j=cy(),D=j.custom,F=B(D)?D:null;function L(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function N(e){return v.call(String(e),/"/g,""")}function q(e){return!("[object Array]"!==W(e)||R&&"object"==typeof e&&R in e)}function U(e){return!("[object RegExp]"!==W(e)||R&&"object"==typeof e&&R in e)}function B(e){if(C)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;
vendor: 1,265 bytes, line 2
2if(!e||"object"!=typeof e||!I)return!1;try{return I.call(e),!0}catch(t){}return!1}t.exports=function e(t,r,n,i){var s=r||{};if(V(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var h=!V(s,"customInspect")||s.customInspect;if("boolean"!=typeof h&&"symbol"!==h)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var b=s.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Q(t,s);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var S=String(t);
vendor: 7,652 bytes, line 2
2return b?M(t,S):S}if("bigint"==typeof t){var k=String(t)+"n";return b?M(t,k):k}var O=void 0===s.depth?5:s.depth;if(void 0===n&&(n=0),n>=O&&O>0&&"object"==typeof t)return q(t)?"[Array]":"[Object]";var D,$=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=E.call(Array(e.indent+1)," ")}return{base:r,prev:E.call(Array(t+1),r)}}(s,n);if(void 0===i)i=[];else if(z(i,t)>=0)return"[Circular]";function H(t,r,o){if(r&&(i=x.call(i)).push(r),o){var a={depth:s.depth};return V(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,n+1,i)}return e(t,s,n+1,i)}if("function"==typeof t&&!U(t)){var Z=function(e){if(e.name)return e.name;var t=y.call(m.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),ee=X(t,H);return"[Function"+(Z?": "+Z:" (anonymous)")+"]"+(ee.length>0?" { "+E.call(ee,", ")+" }":"")}if(B(t)){var te=C?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):I.call(t);return"object"!=typeof t||C?te:G(te)}if((D=t)&&"object"==typeof D&&("undefined"!=typeof HTMLElement&&D instanceof HTMLElement||"string"==typeof D.nodeName&&"function"==typeof D.getAttribute)){for(var re="<"+_.call(String(t.nodeName)),ne=t.attributes||[],oe=0;oe<ne.length;oe++)re+=" "+ne[oe].name+"="+L(N(ne[oe].value),"double",s);return re+=">",t.childNodes&&t.childNodes.length&&(re+="..."),re+="</"+_.call(String(t.nodeName))+">"}if(q(t)){if(0===t.length)return"[]";var ae=X(t,H);return $&&!function(e){for(var t=0;t<e.length;t++)if(z(e[t],"\n")>=0)return!1;return!0}(ae)?"["+J(ae,$)+"]":"[ "+E.call(ae,", ")+" ]"}if(function(e){return!("[object Error]"!==W(e)||R&&"object"==typeof e&&R in e)}(t)){var ie=X(t,H);return"cause"in Error.prototype||!("cause"in t)||A.call(t,"cause")?0===ie.length?"["+String(t)+"]":"{ ["+String(t)+"] "+E.call(ie,", ")+" }":"{ ["+String(t)+"] "+E.call(w.call("[cause]: "+H(t.cause),ie),", ")+" }"}if("object"==typeof t&&h){if(F&&"function"==typeof t[F]&&j)return j(t,{depth:O-n});if("symbol"!==h&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{u.call(e)}catch(re){return!0}return e instanceof Map}catch(t){}return!1}(t)){var se=[];return a&&a.call(t,(function(e,r){se.push(H(r,t,!0)+" => "+H(e,t))})),Y("Map",o.call(t),se,$)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(r){}return!1}(t)){var ue=[];return l&&l.call(t,(function(e){ue.push(H(e,t))})),Y("Set",u.call(t),ue,$)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e,c);try{p.call(e,p)}catch(re){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return K("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{c.call(e,c)}catch(re){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return K("WeakSet");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{return d.call(e),!0}catch(t){}return!1}(t))return K("WeakRef");if(function(e){return!("[object Number]"!==W(e)||R&&"object"==typeof e&&R in e)}(t))return G(H(Number(t)));if(function(e){if(!e||"object"!=typeof e||!T)return!1;try{return T.call(e),!0}catch(t){}return!1}(t))return G(H(T.call(t)));if(function(e){return!("[object Boolean]"!==W(e)||R&&"object"==typeof e&&R in e)}(t))return G(f.call(t));if(function(e){return!("[object String]"!==W(e)||R&&"object"==typeof e&&R in e)}(t))return G(H(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===global)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==W(e)||R&&"object"==typeof e&&R in e)}(t)&&!U(t)){var le=X(t,H),ce=P?P(t)===Object.prototype:t instanceof Object||t.constructor===Object,pe=t instanceof Object?"":"null prototype",de=!ce&&R&&Object(t)===t&&R in t?g.call(W(t),8,-1):pe?"Object":"",fe=(ce||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(de||pe?"["+E.call(w.call([],de||[],pe||[]),": ")+"] ":"");return 0===le.length?fe+"{}":$?fe+"{"+J(le,$)+"}":fe+"{ "+E.call(le,", ")+" }"}return String(t)};var $=Object.prototype.hasOwnProperty||function(e){return e in this};function V(e,t){return $.call(e,t)}function W(e){return h.call(e)}function z(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function Q(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Q(g.call(e,0,t.maxStringLength),t)+n}return L(v.call(v.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,H),"single",t)}function H(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+b.call(t.toString(16))}function G(e){return"Object("+e+")"}function K(e){return e+" { ? }"}function Y(e,t,r,n){return e+" ("+t+") {"+(n?J(r,n):E.call(r,", "))+"}"}function J(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+E.call(e,","+r)+"\n"+t.prev}function X(e,t){var r=q(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=V(e,o)?t(e[o],e):""}var a,i="function"==typeof O?O(e):[];if(C){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s]}for(var u in e)V(e,u)&&(r&&String(Number(u))===u&&u<e.length||C&&a["$"+u]instanceof Symbol||(S.call(/[^\w$]/,u)?n.push(t(u,e)+": "+t(e[u],e)):n.push(u+": "+t(e[u],e))));if("function"==typeof O)for(var l=0;l<i.length;l++)A.call(e,i[l])&&n.push("["+t(i[l])+"]: "+t(e[i[l]],e));return n}})),dy=r(((e,t)=>{var r=Ym(),n=ly(),o=py(),a=$m(),i=r("%WeakMap%",!0),s=r("%Map%",!0),u=n("WeakMap.prototype.get",!0),l=n("WeakMap.prototype.set",!0),c=n("WeakMap.prototype.has",!0),p=n("Map.prototype.get",!0),d=n("Map.prototype.set",!0),f=n("Map.prototype.has",!0),h=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};t.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new a("Side channel does not contain "+o(e))},get:function(n){if(i&&n&&("object"==typeof n||"function"==typeof n)){if(e)return u(e,n)}else if(s){if(t)return p(t,n)}else if(r)return function(e,t){var r=h(e,t);return r&&r.value}(r,n)},has:function(n){if(i&&n&&("object"==typeof n||"function"==typeof n)){if(e)return c(e,n)}else if(s){if(t)return f(t,n)}else if(r)return function(e,t){return!!h(e,t)}(r,n);return!1},set:function(n,o){i&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new i),l(e,n,o)):s?(t||(t=new s),d(t,n,o)):(r||(r={key:{},next:null}),function(e,t,r){var n=h(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,o))}};return n}})),fy=r(((e,t)=>{var r=String.prototype.replace,n=/%20/g,o="RFC1738",a="RFC3986";t.exports={default:a,formatters:{RFC1738:function(e){return r.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:o,RFC3986:a}})),hy=r(((e,t)=>{var r=fy(),n=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),i=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};t.exports={arrayToObject:i,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var a=t[n],i=a.obj[a.prop],s=Object.keys(i),u=0;u<s.length;++u){var l=s[u],c=i[l];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(t.push({obj:i,prop:l}),r.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],a=0;a<r.length;++a)void 0!==r[a]&&n.push(r[a]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");
vendor: 6,175 bytes, line 2
2if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(o){return n}},encode:function(e,t,n,o,i){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var u="",l=0;l<s.length;++l){var c=s.charCodeAt(l);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||i===r.RFC1738&&(40===c||41===c)?u+=s.charAt(l):c<128?u+=a[c]:c<2048?u+=a[192|c>>6]+a[128|63&c]:c<55296||c>=57344?u+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c]:(l+=1,c=65536+((1023&c)<<10|1023&s.charCodeAt(l)),u+=a[240|c>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c])}return u},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,a){if(!r)return t;if("object"!=typeof r){if(o(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(a&&(a.plainObjects||a.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var s=t;return o(t)&&!o(r)&&(s=i(t,a)),o(t)&&o(r)?(r.forEach((function(r,o){if(n.call(t,o)){var i=t[o];i&&"object"==typeof i&&r&&"object"==typeof r?t[o]=e(i,r,a):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var i=r[o];return n.call(t,o)?t[o]=e(t[o],i,a):t[o]=i,t}),s)}}})),my=r(((e,t)=>{var r=dy(),n=hy(),o=fy(),a=Object.prototype.hasOwnProperty,i={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,u=Array.prototype.push,l=function(e,t){u.apply(e,s(t)?t:[t])},c=Date.prototype.toISOString,p=o.default,d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,format:p,formatter:o.formatters[p],indices:!1,serializeDate:function(e){return c.call(e)},skipNulls:!1,strictNullHandling:!1},f={},h=function e(t,o,a,i,u,c,p,h,m,y,g,v,b,_,S,w,E,x){for(var k,T=t,O=x,I=0,C=!1;void 0!==(O=O.get(f))&&!C;){var R=O.get(t);if(I+=1,void 0!==R){if(R===I)throw new RangeError("Cyclic object value");C=!0}void 0===O.get(f)&&(I=0)}if("function"==typeof y?T=y(o,T):T instanceof Date?T=b(T):"comma"===a&&s(T)&&(T=n.maybeMap(T,(function(e){return e instanceof Date?b(e):e}))),null===T){if(c)return m&&!w?m(o,d.encoder,E,"key",_):o;T=""}if("string"==typeof(k=T)||"number"==typeof k||"boolean"==typeof k||"symbol"==typeof k||"bigint"==typeof k||n.isBuffer(T))return m?[S(w?o:m(o,d.encoder,E,"key",_))+"="+S(m(T,d.encoder,E,"value",_))]:[S(o)+"="+S(String(T))];var A,P=[];if(void 0===T)return P;if("comma"===a&&s(T))w&&m&&(T=n.maybeMap(T,m)),A=[{value:T.length>0?T.join(",")||null:void 0}];else if(s(y))A=y;else{var M=Object.keys(T);A=g?M.sort(g):M}var j=h?o.replace(/\./g,"%2E"):o,D=i&&s(T)&&1===T.length?j+"[]":j;if(u&&s(T)&&0===T.length)return D+"[]";for(var F=0;F<A.length;++F){var L=A[F],N="object"==typeof L&&void 0!==L.value?L.value:T[L];if(!p||null!==N){var q=v&&h?L.replace(/\./g,"%2E"):L,U=s(T)?"function"==typeof a?a(D,q):D:D+(v?"."+q:"["+q+"]");x.set(t,I);var B=r();B.set(f,x),l(P,e(N,U,a,i,u,c,p,h,"comma"===a&&w&&s(T)?null:m,y,g,v,b,_,S,w,E,B))}}return P};t.exports=function(e,t){var n,u=e,c=function(e){if(!e)return d;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if(void 0!==e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n,u=o.formatters[r],l=d.filter;if(("function"==typeof e.filter||s(e.filter))&&(l=e.filter),n=e.arrayFormat in i?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":d.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=void 0===e.allowDots?!0===e.encodeDotInKeys||d.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:c,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:d.allowEmptyArrays,arrayFormat:n,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:d.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:l,format:r,formatter:u,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"==typeof c.filter?u=(0,c.filter)("",u):s(c.filter)&&(n=c.filter);var p=[];if("object"!=typeof u||null===u)return"";var f=i[c.arrayFormat],m="comma"===f&&c.commaRoundTrip;n||(n=Object.keys(u)),c.sort&&n.sort(c.sort);for(var y=r(),g=0;g<n.length;++g){var v=n[g];c.skipNulls&&null===u[v]||l(p,h(u[v],v,f,m,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?
vendor: 1,890 bytes, line 2
2c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,y))}var b=p.join(c.delimiter),_=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),b.length>0?_+b:""}})),yy=r(((e,t)=>{var r=hy(),n=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!0,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},i=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},s=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,t,r,o){if(e){var a=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,u=r.depth>0&&/(\[[^[\]]*])/.exec(a),l=u?a.slice(0,u.index):a,c=[];if(l){if(!r.plainObjects&&n.call(Object.prototype,l)&&!r.allowPrototypes)return;c.push(l)}for(var p=0;r.depth>0&&null!==(u=i.exec(a))&&p<r.depth;){if(p+=1,!r.plainObjects&&n.call(Object.prototype,u[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(u[1])}return u&&c.push("["+a.slice(u.index)+"]"),function(e,t,r,n){for(var o=n?t:s(t,r),a=e.length-1;a>=0;--a){var i,u=e[a];if("[]"===u&&r.parseArrays)i=r.allowEmptyArrays&&""===o?[]:[].concat(o);else{i=r.plainObjects?Object.create(null):{};var l="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,c=r.decodeDotInKeys?l.replace(/%2E/g,"."):l,p=parseInt(c,10);r.parseArrays||""!==c?!isNaN(p)&&u!==c&&String(p)===c&&p>=0&&r.parseArrays&&p<=r.arrayLimit?(i=[])[p]=o:"__proto__"!==c&&(i[c]=o):i={0:o}}o=i}return o}(c,t,r,o)}};t.exports=function(e,t){var l=function(e){if(!e)return a;
2if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset,n=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return l.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var u,l={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,d=c.split(t.delimiter,p),f=-1,h=t.charset;if(t.charsetSentinel)for(u=0;u<d.length;++u)0===d[u].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[u]?h="utf-8":"utf8=%26%2310003%3B"===d[u]&&(h="iso-8859-1"),f=u,u=d.length);for(u=0;u<d.length;++u)if(u!==f){var m,y,g=d[u],v=g.indexOf("]="),b=-1===v?g.indexOf("="):v+1;-1===b?(m=t.decoder(g,a.decoder,h,"key"),y=t.strictNullHandling?null:""):(m=t.decoder(g.slice(0,b),a.decoder,h,"key"),y=r.maybeMap(s(g.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===h&&(y=i(y)),g.indexOf("[]=")>-1&&(y=o(y)?[y]:y);var _=n.call(l,m);_&&"combine"===t.duplicates?l[m]=r.combine(l[m],y):_&&"last"!==t.duplicates||(l[m]=y)}return l}(e,l):e,p=l.plainObjects?Object.create(null):{},d=Object.keys(c),f=0;f<d.length;++f){var h=d[f],m=u(h,c[h],l,"string"==typeof e);p=r.merge(p,m,l)}return!0===l.allowSparse?p:r.compact(p)}})),gy=r(((e,t)=>{var r=my(),n=yy(),o=fy();t.exports={formats:o,parse:n,stringify:r}})),vy=e(Fm()),by=e(gy()),_y=".".charCodeAt(0),Sy=/\\(\\)?/g,wy=RegExp("[^.[\\]]+|\\[(?:([^\"'][^[]*)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))","g"),Ey={},xy=/[.[\]]+/,ky=function(e){if(null==e||!e.length)return[];if("string"!=typeof e)throw new Error("toPath() expects a string");var t,r;return null==Ey[e]&&(e.endsWith("[]")?Ey[e]=e.split(xy).filter(Boolean):Ey[e]=(r=[],(t=e).charCodeAt(0)===_y&&r.push(""),t.replace(wy,(function(e,t,n,o){var a=e;n?a=o.replace(Sy,"$1"):t&&(a=t.trim()),r.push(a)})),r)),Ey[e]},Ty=function(e,t){for(var r=ky(t),n=e,o=0;o<r.length;o++){var a=r[o];if(null==n||"object"!=typeof n||Array.isArray(n)&&isNaN(a))return;n=n[a]}return n};function Oy(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var Iy=function e(t,r,n,o,a){if(r>=n.length)return o;var i=n[r];if(isNaN(i)){var s;if(null==t){var u,l=e(void 0,r+1,n,o,a);return void 0===l?void 0:((u={})[i]=l,u)}if(Array.isArray(t))throw new Error("Cannot set a non-numeric property on an array");var c=e(t[i],r+1,n,o,a);if(void 0===c){var p=Object.keys(t).length;if(void 0===t[i]&&0===p)return;return void 0!==t[i]&&p<=1?isNaN(n[r-1])||a?void 0:{}:(t[i],z(t,[i].map(Oy)))}return W({},t,((s={})[i]=c,s))}var d=Number(i);if(null==t){var f=e(void 0,r+1,n,o,a);if(void 0===f)return;var h=[];return h[d]=f,h}if(!Array.isArray(t))throw new Error("Cannot set a numeric property on an object");var m=e(t[d],r+1,n,o,a),y=[].concat(t);if(a&&void 0===m){if(y.splice(d,1),0===y.length)return}else y[d]=m;return y},Cy=function(e,t,r,n){if(void 0===n&&(n=!1),null==e)throw new Error("Cannot call setIn() with "+String(e)+" state");if(null==t)throw new Error("Cannot call setIn() with "+String(t)+"
2key");return Iy(e,0,ky(t),r,n)},Ry="FINAL_FORM/form-error",Ay="FINAL_FORM/array-error";function Py(e,t){var r=e.errors,n=e.initialValues,o=e.lastSubmittedValues,a=e.submitErrors,i=e.submitFailed,s=e.submitSucceeded,u=e.submitting,l=e.values,c=t.active,p=t.blur,d=t.change,f=t.data,h=t.focus,m=t.modified,y=t.modifiedSinceLastSubmit,g=t.name,v=t.touched,b=t.validating,_=t.visited,S=Ty(l,g),w=Ty(r,g);w&&w["FINAL_FORM/array-error"]&&(w=w[Ay]);var E=a&&Ty(a,g),x=n&&Ty(n,g),k=t.isEqual(x,S),T=!w&&!E;return{active:c,blur:p,change:d,data:f,dirty:!k,dirtySinceLastSubmit:!(!o||t.isEqual(Ty(o,g),S)),error:w,focus:h,initial:x,invalid:!T,length:Array.isArray(S)?S.length:void 0,modified:m,modifiedSinceLastSubmit:y,name:g,pristine:k,submitError:E,submitFailed:i,submitSucceeded:s,submitting:u,touched:v,valid:T,value:S,visited:_,validating:b}}var My=["active","data","dirty","dirtySinceLastSubmit","error","initial","invalid","length","modified","modifiedSinceLastSubmit","pristine","submitError","submitFailed","submitSucceeded","submitting","touched","valid","value","visited","validating"],jy=function(e,t){if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(t),a=0;a<r.length;a++){var i=r[a];if(!o(i)||e[i]!==t[i])return!1}return!0};function Dy(e,t,r,n,o,a){var i=!1;return o.forEach((function(o){n[o]&&(e[o]=t[o],r&&(~a.indexOf(o)?jy(t[o],r[o]):t[o]===r[o])||(i=!0))})),i}var Fy=["data"],Ly=function(e,t,r,n){var o={blur:e.blur,change:e.change,focus:e.focus,name:e.name};return Dy(o,e,t,r,My,Fy)||!t||n?o:void 0},Ny=["active","dirty","dirtyFields","dirtyFieldsSinceLastSubmit","dirtySinceLastSubmit","error","errors","hasSubmitErrors","hasValidationErrors","initialValues","invalid","modified","modifiedSinceLastSubmit","pristine","submitting","submitError","submitErrors","submitFailed","submitSucceeded","touched","valid","validating","values","visited"],qy=["touched","visited"];function Uy(e,t,r,n){var o={};return Dy(o,e,t,r,Ny,qy)||!t||n?o:void 0}var By=function(e){var t,r;return function(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return t&&o.length===t.length&&!o.some((function(e,r){return!jy(t[r],e)}))||(t=o,r=e.apply(void 0,o)),r}},$y=function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then},Vy="4.20.10",Wy=function(e,t){return e===t},zy=function e(t){return Object.keys(t).some((function(r){var n=t[r];return!n||"object"!=typeof n||n instanceof Error?void 0!==n:e(n)}))};function Qy(e,t,r,n,o,a){var i=o(r,n,t,a);return!!i&&(e(i),!0)}function Hy(e,t,r,n,o){var a=e.entries;Object.keys(a).forEach((function(e){var i=a[Number(e)];if(i){var s=i.subscription,u=i.subscriber,l=i.notified;Qy(u,s,t,r,n,o||!l)&&(i.notified=!0)}}))}function Gy(e){if(!e)throw new Error("No config specified");var t=e.debug,r=e.destroyOnUnregister,n=e.keepDirtyOnReinitialize,o=e.initialValues,a=e.mutators,i=e.onSubmit,s=e.validate,u=e.validateOnBlur;if(!i)throw new Error("No onSubmit function specified");var l={subscribers:{index:0,entries:{}},fieldSubscribers:{},fields:{},formState:{asyncErrors:{},dirtySinceLastSubmit:!1,modifiedSinceLastSubmit:!1,errors:{},initialValues:o&&W({},o),invalid:!1,pristine:!0,submitting:!1,submitFailed:!1,submitSucceeded:!1,resetWhileSubmitting:!1,valid:!0,validating:0,values:o?W({},o):{}},lastFormState:void 0},c=0,p=!1,d=!1,f=!1,h=0,m={},y=function(e,t,r){var n=r(Ty(e.formState.values,t));e.formState.values=Cy(e.formState.values,t,n)||{}},g=function(e,t,r){if(e.fields[t]){var n,o;e.fields=W({},e.fields,((n={})[r]=W({},e.fields[t],{name:r,blur:function(){return C.blur(r)},change:function(e){return C.change(r,e)},focus:function(){return C.focus(r)},lastFieldState:void 0}),n)),delete e.fields[t],e.fieldSubscribers=W({},e.fieldSubscribers,((o={})[r]=e.fieldSubscribers[t],o)),delete e.fieldSubscribers[t];var a=Ty(e.formState.values,t);e.formState.values=Cy(e.formState.values,t,void 0)||{},e.formState.values=Cy(e.formState.values,r,a),delete e.lastFormState}},v=function(e){return function(){if(a){for(var t={formState:l.formState,fields:l.fields,fieldSubscribers:l.f
2ieldSubscribers,lastFormState:l.lastFormState},r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];var i=a[e](n,t,{changeValue:y,getIn:Ty,renameField:g,resetFieldState:C.resetFieldState,setIn:Cy,shallowEqual:jy});return l.formState=t.formState,l.fields=t.fields,l.fieldSubscribers=t.fieldSubscribers,l.lastFormState=t.lastFormState,S(void 0,(function(){w(),O()})),i}}},b=a?Object.keys(a).reduce((function(e,t){return e[t]=v(t),e}),{}):{},_=function(e){return Object.keys(e.validators).reduce((function(t,r){var n=e.validators[Number(r)]();return n&&t.push(n),t}),[])},S=function(e,t){if(p)return d=!0,void t();var r=l.fields,n=l.formState,o=W({},r),a=Object.keys(o);if(s||a.some((function(e){return _(o[e]).length}))){var i=!1;if(e){var u=o[e];if(u){var c=u.validateFields;c&&(i=!0,a=c.length?c.concat(e):[e])}}var f,y={},g={},v={},b=[].concat(function(e){var t=[];if(s){var r=s(W({},l.formState.values));$y(r)?t.push(r.then((function(t){return e(t,!0)}))):e(r,!1)}return t}((function(e,t){t?g=e||{}:y=e||{}})),a.reduce((function(e,t){return e.concat(function(e,t){var r,n=[],o=_(e);return o.length&&(o.forEach((function(o){var a=o(Ty(l.formState.values,e.name),l.formState.values,0===o.length||3===o.length?Py(l.formState,l.fields[e.name]):void 0);if(a&&$y(a)){e.validating=!0;var i=a.then((function(r){l.fields[e.name]&&(l.fields[e.name].validating=!1,t(r))}));n.push(i)}else r||(r=a)})),t(r)),n}(r[t],(function(e){v[t]=e})))}),[])),S=b.length>0,w=++h,E=Promise.all(b).then((f=w,function(e){return delete m[f],e}));S&&(m[w]=E);var x=function(e){var t=W({},i?n.errors:{},y,e?g:n.asyncErrors),u=function(e){a.forEach((function(n){if(r[n]){var a=Ty(y,n),u=Ty(t,n),l=_(o[n]).length,c=v[n];e(n,l&&c||s&&a||(a||i?void 0:u))}}))};u((function(e,r){t=Cy(t,e,r)||{}})),u((function(e,r){if(r&&r["FINAL_FORM/array-error"]){var n=Ty(t,e),o=[].concat(n);o[Ay]=r[Ay],t=Cy(t,e,o)}})),jy(n.errors,t)||(n.errors=t),e&&(n.asyncErrors=g),n.error=y[Ry]};if(S&&(l.formState.validating++,t()),x(!1),t(),S){var k=function(){l.formState.validating--,t(),0===l.formState.validating&&l.lastFormState.validating&&O()};E.then((function(){h>w||x(!0)})).then(k,k)}}else t()},w=function(e){if(!c){var t=l.fields,r=l.fieldSubscribers,n=l.formState,o=W({},t),a=function(e){var t=o[e],a=Py(n,t),i=t.lastFieldState;t.lastFieldState=a;var s=r[e];s&&Hy(s,a,i,Ly,void 0===i)};e?a(e):Object.keys(o).forEach(a)}},E=function(){Object.keys(l.fields).forEach((function(e){l.fields[e].touched=!0}))},x=function(){var e=l.fields,t=l.formState,r=l.lastFormState,n=W({},e),o=Object.keys(n),a=!1,i=o.reduce((function(e,r){return n[r].isEqual(Ty(t.values,r),Ty(t.initialValues||{},r))||(a=!0,e[r]=!0),e}),{}),s=o.reduce((function(e,r){var o=t.lastSubmittedValues||{};return n[r].isEqual(Ty(t.values,r),Ty(o,r))||(e[r]=!0),e}),{});t.pristine=!a,t.dirtySinceLastSubmit=!(!t.lastSubmittedValues||!Object.values(s).some((function(e){return e}))),t.modifiedSinceLastSubmit=!(!t.lastSubmittedValues||!Object.keys(n).some((function(e){return n[e].modifiedSinceLastSubmit}))),t.valid=!(t.error||t.submitError||zy(t.errors)||t.submitErrors&&zy(t.submitErrors));var u=function(e){var t=e.active,r=e.dirtySinceLastSubmit,n=e.modifiedSinceLastSubmit,o=e.error,a=e.errors,i=e.initialValues,s=e.pristine,u=e.submitting,l=e.submitFailed,c=e.submitSucceeded,p=e.submitError,d=e.submitErrors,f=e.valid,h=e.validating,m=e.values;return{active:t,dirty:!s,dirtySinceLastSubmit:r,modifiedSinceLastSubmit:n,error:o,errors:a,hasSubmitErrors:!!(p||d&&zy(d)),hasValidationErrors:!(!o&&!zy(a)),invalid:!f,initialValues:i,pristine:s,submitting:u,submitFailed:l,submitSucceeded:c,submitError:p,submitErrors:d,valid:f,validating:h>0,values:m}}(t),c=o.reduce((function(e,t){return e.modified[t]=n[t].modified,e.touched[t]=n[t].touched,e.visited[t]=n[t].visited,e}),{modified:{},touched:{},visited:{}}),p=c.modified,d=c.touched,f=c.visited;return u.dirtyFields=r&&jy(r.dirtyFields,i)?r.dirtyFields:i,u.dirtyFieldsSinceLastSubmit=r&&jy(r.dirtyFieldsSinceLastSubmit,s)?r.dirtyFieldsSinceLastSubmit:s,u.modified=r&&jy(r.modified,p)?r.modified:p,u.touched=r&&jy(r.touched,d)?r.touched:d,u.visited=r&&jy(r.visited,f)?r.visited:f,r&&jy(r,u)?r:u},k=!1,T=!1,O=function e(){if(k)T=!0;
2else{if(k=!0,t&&t(x(),Object.keys(l.fields).reduce((function(e,t){return e[t]=l.fields[t],e}),{})),!(c||p&&f)){var r=l.lastFormState,n=x();n!==r&&(l.lastFormState=n,Hy(l.subscribers,n,r,Uy))}k=!1,T&&(T=!1,e())}},I=function(){return Object.keys(l.fields).forEach((function(e){return l.fields[e].modifiedSinceLastSubmit=!1}))};S(void 0,(function(){O()}));var C={batch:function(e){c++,e(),c--,w(),O()},blur:function(e){var t=l.fields,r=l.formState,n=t[e];n&&(delete r.active,t[e]=W({},n,{active:!1,touched:!0}),u?S(e,(function(){w(),O()})):(w(),O()))},change:function(e,t){var r=l.fields,n=l.formState;if(Ty(n.values,e)!==t){y(l,e,(function(){return t}));var o=r[e];o&&(r[e]=W({},o,{modified:!0,modifiedSinceLastSubmit:!!n.lastSubmittedValues})),u?(w(),O()):S(e,(function(){w(),O()}))}},get destroyOnUnregister(){return!!r},set destroyOnUnregister(e){r=e},focus:function(e){var t=l.fields[e];t&&!t.active&&(l.formState.active=e,t.active=!0,t.visited=!0,w(),O())},mutators:b,getFieldState:function(e){var t=l.fields[e];return t&&t.lastFieldState},getRegisteredFields:function(){return Object.keys(l.fields)},getState:function(){return x()},initialize:function(e){var t=l.fields,r=l.formState,o=W({},t),a="function"==typeof e?e(r.values):e;n||(r.values=a);var i=n?Object.keys(o).reduce((function(e,t){return o[t].isEqual(Ty(r.values,t),Ty(r.initialValues||{},t))||(e[t]=Ty(r.values,t)),e}),{}):{};
2r.initialValues=a,r.values=a,Object.keys(i).forEach((function(e){r.values=Cy(r.values,e,i[e])||{}})),S(void 0,(function(){w(),O()}))},isValidationPaused:function(){return p},pauseValidation:function(e){void 0===e&&(e=!0),p=!0,f=e},registerField:function(e,t,n,o){void 0===n&&(n={}),l.fieldSubscribers[e]||(l.fieldSubscribers[e]={index:0,entries:{}});var a=l.fieldSubscribers[e].index++;l.fieldSubscribers[e].entries[a]={subscriber:By(t),subscription:n,notified:!1};var i=l.fields[e]||{active:!1,afterSubmit:o&&o.afterSubmit,beforeSubmit:o&&o.beforeSubmit,data:o&&o.data||{},isEqual:o&&o.isEqual||Wy,lastFieldState:void 0,modified:!1,modifiedSinceLastSubmit:!1,name:e,touched:!1,valid:!0,validateFields:o&&o.validateFields,validators:{},validating:!1,visited:!1};i.blur=i.blur||function(){return C.blur(e)},i.change=i.change||function(t){return C.change(e,t)},i.focus=i.focus||function(){return C.focus(e)},l.fields[e]=i;var s=!1,u=o&&o.silent,c=function(){u&&l.fields[e]?w(e):(O(),w())};if(o){s=!(!o.getValidator||!o.getValidator()),o.getValidator&&(l.fields[e].validators[a]=o.getValidator);var p=void 0===Ty(l.formState.values,e);void 0===o.initialValue||!p&&Ty(l.formState.values,e)!==Ty(l.formState.initialValues,e)||(l.formState.initialValues=Cy(l.formState.initialValues||{},e,o.initialValue),l.formState.values=Cy(l.formState.values,e,o.initialValue),S(void 0,c)),void 0!==o.defaultValue&&void 0===o.initialValue&&void 0===Ty(l.formState.initialValues,e)&&p&&(l.formState.values=Cy(l.formState.values,e,o.defaultValue))}return s?S(void 0,c):c(),function(){var t=!1;l.fields[e]&&(t=!(!l.fields[e].validators[a]||!l.fields[e].validators[a]()),delete l.fields[e].validators[a]);var n=!!l.fieldSubscribers[e];n&&delete l.fieldSubscribers[e].entries[a];var o=n&&!Object.keys(l.fieldSubscribers[e].entries).length;o&&(delete l.fieldSubscribers[e],delete l.fields[e],t&&(l.formState.errors=Cy(l.formState.errors,e,void 0)||{}),r&&(l.formState.values=Cy(l.formState.values,e,void 0,!0)||{})),u||(t?S(void 0,(function(){O(),w()})):o&&O())}},reset:function(e){void 0===e&&(e=l.formState.initialValues),l.formState.submitting&&(l.formState.resetWhileSubmitting=!0),l.formState.submitFailed=!1,l.formState.submitSucceeded=!1,delete l.formState.submitError,delete l.formState.submitErrors,delete l.formState.lastSubmittedValues,C.initialize(e||{})},resetFieldState:function(e){l.fields[e]=W({},l.fields[e],{active:!1,lastFieldState:void 0,modified:!1,touched:!1,valid:!0,validating:!1,visited:!1}),S(void 0,(function(){w(),O()}))},restart:function(e){void 0===e&&(e=l.formState.initialValues),C.batch((function(){for(var t in l.fields)C.resetFieldState(t),l.fields[t]=W({},l.fields[t],{active:!1,lastFieldState:void 0,modified:!1,modifiedSinceLastSubmit:!1,touched:!1,valid:!0,validating:!1,visited:!1});C.reset(e)}))},resumeValidation:function(){p=!1,f=!1,d&&S(void 0,(function(){w(),O()})),d=!1},setConfig:function(e,o){switch(e){case"debug":t=o;break;case"destroyOnUnregister":r=o;break;case"initialValues":C.initialize(o);break;case"keepDirtyOnReinitialize":n=o;break;case"mutators":a=o,o?(Object.keys(b).forEach((function(e){e in o||delete b[e]})),Object.keys(o).forEach((function(e){b[e]=v(e)}))):Object.keys(b).forEach((function(e){delete b[e]}));break;case"onSubmit":i=o;break;case"validate":s=o,S(void 0,(function(){w(),O()}));break;case"validateOnBlur":u=o;break;default:throw new Error("Unrecognised option "+e)}},submit:function(){var e=l.formState;if(!e.submitting){if(delete e.submitErrors,delete e.submitError,e.lastSubmittedValues=W({},e.values),l.formState.error||zy(l.formState.errors))return E(),I(),l.formState.submitFailed=!0,O(),void w();var t=Object.keys(m);if(t.length)Promise.all(t.map((function(e){return m[Number(e)]}))).then(C.submit,console.error);else if(!Object.keys(l.fields).some((function(e){return l.fields[e].beforeSubmit&&!1===l.fields[e].beforeSubmit()}))){var r,n=!1,o=function(t){e.submitting=!1;var o=e.resetWhileSubmitting;return o&&(e.resetWhileSubmitting=!1),t&&zy(t)?(e.submitFailed=!0,e.submitSucceeded=!1,e.submitErrors=t,e.submitError=t[Ry],E()):(o||(e.submitFailed=!1,e.submitSucceeded=!0),Object.keys(l.f
2ields).forEach((function(e){return l.fields[e].afterSubmit&&l.fields[e].afterSubmit()}))),O(),w(),n=!0,r&&r(t),t};e.submitting=!0,e.submitFailed=!1,e.submitSucceeded=!1,e.lastSubmittedValues=W({},e.values),I();var a=i(e.values,C,o);if(!n){if(a&&$y(a))return O(),w(),a.then(o,(function(e){throw o(),e}));if(i.length>=3)return O(),w(),new Promise((function(e){r=e}));o(a)}}}},subscribe:function(e,t){if(!e)throw new Error("No callback given.");if(!t)throw new Error("No subscription provided. What values do you want to listen to?");var r=By(e),n=l.subscribers,o=n.index++;n.entries[o]={subscriber:r,subscription:t,notified:!1};var a=x();return Qy(r,t,a,a,Uy,!0),function(){delete n.entries[o]}}};return C}function Ky(e){return new ir((function(t){t.error(e)}))}var Yy,Jy=t((()=>{Qt()})),Xy=t((()=>{Yy=function(e,t,r){var n=new Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n}}));var Zy=t((()=>{ht()}));var eg=t((()=>{Z()}));var tg=t((()=>{Qt()}));var rg,ng=t((()=>{Z(),yr()})),og=t((()=>{Jy(),Xy(),Zy(),eg(),tg(),ng()}));function ag(e,t){return t?t(e):ir.of()}function ig(e){return"function"==typeof e?new rg(e):e}function sg(e){return e.request.length<=1}var ug,lg,cg=t((()=>{ht(),Qt(),og(),rg=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return ir.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(ig).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,r,n){var o,a=ig(r),i=ig(n||new e(ag));return o=sg(a)&&sg(i)?new e((function(e){return t(e)?a.request(e)||ir.of():i.request(e)||ir.of()})):new e((function(e,r){return t(e)?a.request(e,r)||ir.of():i.request(e,r)||ir.of()})),Object.assign(o,{left:a,right:i})},e.execute=function(e,t){return e.request(function(e,t){var r=$e({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){r=$e($e({},r),"function"==typeof e?e(r):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return $e({},r)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?jt(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r<n.length;r++){var o=n[r];if(t.indexOf(o)<0)throw Bt(43,o)}return e}(t))))||ir.of()},e.concat=function(t,r){var n=ig(t);if(sg(n))return!1!==globalThis.__DEV__&&Rt.warn(35,n),n;var o,a=ig(r);return o=sg(a)?new e((function(e){return n.request(e,(function(e){return a.request(e)||ir.of()}))||ir.of()})):new e((function(e,t){return n.request(e,(function(e){return a.request(e,t)||ir.of()}))||ir.of()})),Object.assign(o,{left:n,right:a})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(ag)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw Bt(36)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}()})),pg=t((()=>{cg(),ug=rg.from})),dg=t((()=>{cg(),lg=rg.execute})),fg=t((()=>{})),hg=t((()=>{cg(),pg(),dg(),fg()}));var mg=t((()=>{}));function yg(e){var t=null,r=null,n=!1,o=[],a=[];function i(e){if(!r){if(a.length){var t=a.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}o.push(e)}}function s(e){r=e,a.slice().forEach((function(t){t[1](e)})),!t||t()}function u(){n=!0,a.slice().forEach((function(e){e[0]({value:void 0,done:!0})})),!t||t()}t=function(){t=null,e.removeListener("data",i),e.removeListener("error",s),e.removeListener("end",u),e.removeListener("finish",u),e.removeListener("close",u)},e.on("data",i),e.on("error",s),e.on("end",u),e.on("finish",u),e.on("close",u);var l={next:function(){return new Promise((function(e,t){return r?t(r):o.length?e({value:o.shift(),done:!1}):n?e({value:void 0,done:!0}):void a.push([e,t])}))}};return Ft&&(l[Symbol.asyncIterator]=function(){return this}),l}var gg=t((()=>{Qt()}));var vg=t((()=>{Qt()}));function bg(e){var t={next:function(){return e.read()}};return Ft&&(t[Symbol.asyncIterator]=function(){return this}),t}var _g=t((()=>{Qt()}));function Sg(e){var t,r,n=e;if(e.body&&(n=e.body),function(e){return!(!Ft||!e[Symbol.asyncIterator])}(n))return r=n[Symbol.asyncIterator](),(t={next:function(){return r.next()}})[Symbol.asyncIterator]=function(){return this},t;if(function(e){return!!e.getReader}(n))return bg(n.getReader());if(function(e){return!!e.stream}(n))return bg(n.stream().getReader());if(function(e){return!!e.arrayBuffer}(n))return function(e){var t=!1,r={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise((function(t,r){e.then((function(e){t({value:e,done:!1})})).catch(r)})))}};return Ft&&(r[Symbol.asyncIterator]=function(){return this}),r}(n.arrayBuffer());if(function(e){return!!e.pipe}(n))return yg(n);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var wg,Eg=t((()=>{Qt(),mg(),gg(),vg(),_g()}));function xg(e){var t={};return e.split("\n").forEach((function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase();t[n]=e.slice(r+1).trim()}})),t}function kg(e,t){if(e.status>=300){Yy(e,function(){try{return JSON.parse(t)}catch(zw){return t}}(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(zw){var r=zw;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}var Tg,Og,Ig,Cg=t((()=>
2{Z(),Eg(),og(),Ye(),Kt(),wg=Object.prototype.hasOwnProperty})),Rg=t((()=>{ht(),Tg=function(e,t){var r;try{r=JSON.stringify(e)}catch(o){var n=Bt(39,t,o.message);throw n.parseError=o,n}return r}}));function Ag(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o={},a={};r.forEach((function(e){o=$e($e($e({},o),e.options),{headers:$e($e({},o.headers),e.headers)}),e.credentials&&(o.credentials=e.credentials),a=$e($e({},a),e.http)})),o.headers&&(o.headers=function(e,t){if(!t){var r=Object.create(null);return Object.keys(Object(e)).forEach((function(t){r[t.toLowerCase()]=e[t]})),r}var n=Object.create(null);Object.keys(Object(e)).forEach((function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}}));var o=Object.create(null);return Object.keys(n).forEach((function(e){o[n[e].originalName]=n[e].value})),o}(o.headers,a.preserveHeaderCase));var i=e.operationName,s=e.extensions,u=e.variables,l=e.query,c={operationName:i,variables:u};return a.includeExtensions&&(c.extensions=s),a.includeQuery&&(c.query=t(l,nt)),{options:o,body:c}}var Pg,Mg,jg=t((()=>
2{Z(),Qt(),Og={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},Ig=function(e,t){return t(e)}})),Dg=t((()=>{ht(),Pg=function(e){if(!e&&"undefined"==typeof fetch)throw Bt(37)}})),Fg=t((()=>{Mg=function(e,t){var r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")}}));var Lg,Ng,qg,Ug,Bg,$g,Vg,Wg,zg=t((()=>{Rg()})),Qg=t((()=>{Z(),ht(),hg(),Qt(),Rg(),Fg(),Cg(),Dg(),jg(),zg(),og(),Lg=Mt((function(){return fetch})),Ng=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,n=e.fetch,o=e.print,a=void 0===o?Ig:o,i=e.includeExtensions,s=e.preserveHeaderCase,u=e.useGETForQueries,l=e.includeUnusedVariables,c=void 0!==l&&l,p=tr(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&Pg(n||Lg);var d={http:{includeExtensions:i,preserveHeaderCase:s},options:p.fetchOptions,credentials:p.credentials,headers:p.headers};return new rg((function(e){var t=Mg(e,r),o=e.getContext(),i={};if(o.clientAwareness){var s=o.clientAwareness,l=s.name,p=s.version;l&&(i["apollographql-client-name"]=l),p&&(i["apollographql-client-version"]=p)}var f=$e($e({},i),o.headers),h={http:o.http,options:o.fetchOptions,credentials:o.credentials,headers:f};if(Wt(["client"],e.query)){var m=pe(e.query);if(!m)return Ky(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=m}var y,g,v,b,_,S=Ag(e,a,Og,d,h),w=S.options,E=S.body;E.variables&&!c&&(E.variables=(y=E.variables,g=e.query,v=$e({},y),b=new Set(Object.keys(y)),br(g,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&b.delete(e.name.value)}}),b.forEach((function(e){delete v[e]})),v)),w.signal||"undefined"==typeof AbortController||(_=new AbortController,w.signal=_.signal);var x,k="OperationDefinition"===(x=tt(e.query)).kind&&"subscription"===x.operation,T=Wt(["defer"],e.query);if(u&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(w.method="GET"),T||k){w.headers=w.headers||{};var O="multipart/mixed;";k&&T&&!1!==globalThis.__DEV__&&Rt.warn(38),k?O+="boundary=graphql;subscriptionSpec=1.0,application/json":T&&(O+="deferSpec=20220824,application/json"),w.headers.accept=O}if("GET"===w.method){var I=function(e,t){var r=[],n=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var o=void 0;try{o=Tg(t.variables,"Variables map")}catch(R){return{parseError:R}}n("variables",o)}if(t.extensions){var a=void 0;try{a=Tg(t.extensions,"Extensions map")}catch(R){return{parseError:R}}n("extensions",a)}var i="",s=e,u=e.indexOf("#");-1!==u&&(i=e.substr(u),s=e.substr(0,u));var l=-1===s.indexOf("?")?"?":"&";return{newURI:s+l+r.join("&")+i}}(t,E),C=I.newURI,R=I.parseError;if(R)return Ky(R);t=C}else try{w.body=Tg(E,"Payload")}catch(R){return Ky(R)}return new ir((function(r){var o=n||Mt((function(){return fetch}))||Lg,a=r.next.bind(r);return o(t,w).then((function(t){var r;e.setContext({response:t});var n,o=null===(r=t.headers)||void 0===r?void 0:r.get("content-type");return null!==o&&/^multipart\/mixed/i.test(o)?function(e,t){return Yt(this,void 0,void 0,(function(){var r,n,o,a,i,s,u,l,c,p,d,f,h,m,y,g,v,b,_,S,w,E,x,k;return Ge(this,(function(T){switch(T.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");r=new TextDecoder("utf-8"),n=null===(k=e.headers)||void 0===k?void 0:k.get("content-type"),o="boundary=",a=(null==n?void 0:n.includes(o))?null==n?void 0:n.substring((null==n?void 0:n.indexOf(o))+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",i="\r\n--".concat(a),s="",u=Sg(e),l=!0,T.label=1;case 1:return l?[4,u.next()]:[3,3];case 2:for(c=T.sent(),p=c.value,d=c.done,f="string"==typeof p?p:r.decode(p),h=s.length-i.length+1,l=!d,m=(s+=f).indexOf(i,h);m>-1;){if(y=void 0,E=[s.slice(0,m),s.slice(m+i.length)],s=E[1],g=(y=E[0]).indexOf("\r\n\r\n"),v=xg(y.slice(0,g)),(b=v["content-type"])&&-1===b.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");
2if(_=y.slice(g))if(S=kg(e,_),Object.keys(S).length>1||"data"in S||"incremental"in S||"errors"in S||"payload"in S)if(nr(S)){if(w={},"payload"in S){if(1===Object.keys(S).length&&null===S.payload)return[2];w=$e({},S.payload)}"errors"in S&&(w=$e($e({},w),{extensions:$e($e({},"extensions"in w?w.extensions:null),(x={},x[Ct]=S.errors,x))})),t(w)}else t(S);else if(1===Object.keys(S).length&&"hasNext"in S&&!S.hasNext)return[2];m=s.indexOf(i)}return[3,1];case 3:return[2]}}))}))}(t,a):(n=e,function(e){return e.text().then((function(t){return kg(e,t)})).then((function(t){return Array.isArray(t)||wg.call(t,"data")||wg.call(t,"errors")||Yy(e,t,"Server response was missing for query '".concat(Array.isArray(n)?n.map((function(e){return e.operationName})):n.operationName,"'.")),t}))})(t).then(a)})).then((function(){_=void 0,r.complete()})).catch((function(e){_=void 0,function(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}(e,r)})),function(){_&&_.abort()}}))}))}})),Hg=t((()=>{Z(),hg(),Qg(),qg=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,Ng(t).request)||this;return r.options=t,r}return or(t,e),t}(rg)})),Gg=t((()=>{Cg(),Rg(),jg(),Dg(),Fg(),Qg(),Hg(),zg()})),Kg=t((()=>{Z(),qt(),Qt(),xe(),ye(),Ug=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=mt(Re,{max:Se["cache.fragmentQueryDocuments"]||1e3,cache:sr})}return e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction((function(){return t=e.update(r)}),n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read($e($e({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read($e($e({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,n=tr(e,["id","data"]);return this.write(Object.assign(n,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,n=e.fragment,o=e.fragmentName,a=tr(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(n,o),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var n=r.readQuery(e),o=t(n);return null==o?n:(r.writeQuery($e($e({},e),{data:o})),o)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var n=r.readFragment(e),o=t(n);return null==o?n:(r.writeFragment($e($e({},e),{data:o})),o)}})},e}(),!1!==globalThis.__DEV__&&(Ug.prototype.getMemoryInternals=bt)})),Yg=t((()=>{Z(),Bg=function(e){function t(r,n,o,a){var i,s=e.call(this,r)||this;if(s.message=r,s.path=n,s.query=o,s.variables=a,Array.isArray(s.path)){s.missing=s.message;for(var u=s.path.length-1;u>=0;--u)s.missing=((i={})[s.path[u]]=s.missing,i)}else s.missing=s.path;return s.__proto__=t.prototype,s}return or(t,e),t}(Error)}));function Jg(e){return null==e}function Xg(e,t){var r=e.__typename,n=e.id,o=e._id;if("string"==typeof r&&(t&&(t.keyObject=Jg(n)?Jg(o)?void 0:{_id:o}:{id:n}),Jg(n)&&!Jg(o)&&(n=o),!Jg(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}function Zg(e){var t=e.canonizeResults;return void 0===t?Vg.canonizeResults:t}function ev(e){var t=e.match(Wg);return t?t[0]:e}function tv(e,t,r){return!!fe(t)&&(qe(t)?t.every((function(t){return tv(e,t,r)})):e.selections.every((function(e){if(rr(e)&&Nt(e,r)){var n=Ie(e);return $g.call(t,n)&&(!e.selectionSet||tv(e.selectionSet,t[n],r))}return!0})))}function rv(e){return fe(e)&&!ee(e)&&!qe(e)}function nv(e,t){var r=Pe(Gt(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}var ov,av,iv,sv,uv,lv,cv,pv=t((()=>{Qt(),$g=Object.prototype.hasOwnProperty,Vg={dataIdFromObject:Xg,addTypename:!0,resultCaching:!0,canonizeResults:!1},Wg=/^[_a-z][_0-9a-z]*/i}));function dv(e,t){return t+"#"+e}function fv(e,t){mv(e)&&e.group.depend(t,"__exists")}function hv(e,t,r){var n=e[r],o=t[r];return Lt(n,o)?n:o}function mv(e){return!!(e instanceof sv&&e.group.caching)}var yv,gv=t((()=>{Z(),ht(),qt(),ft(),H(),Qt(),pv(),ov=Object.create(null),av=function(){return ov},iv=Object.create(null),sv=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return me(ee(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return ee(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return Zt(e);if(ee(e))return e;var n=r.policies.identify(e)[0];if(n){var o=Zt(n);return t&&r.merge(n,e),o}}}return e.prototype.toObject=function(){return $e({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),$g.call(this.data,e)){var r=this.data[e];if(r&&$g.call(r,t))return r[t]}return"__typename"===t&&$g.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof lv?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),$g.call(this.data,e)?this.data[e]:this instanceof lv?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;ee(e)&&(e=e.__ref),ee(t)&&(t=t.__ref);
2var o="string"==typeof e?this.lookup(r=e):e,a="string"==typeof t?this.lookup(r=t):t;if(a){Rt("string"==typeof r,1);var i=new Ae(hv).merge(o,a);if(this.data[r]=i,i!==o&&(delete this.refs[r],this.group.caching)){var s=Object.create(null);o||(s.__exists=1),Object.keys(a).forEach((function(e){if(!o||o[e]!==i[e]){s[e]=1;var t=ev(e);t===e||n.policies.hasKeyArgs(i.__typename,t)||(s[t]=1),void 0!==i[e]||n instanceof lv||delete i[e]}})),!s.__typename||o&&o.__typename||this.policies.rootTypenamesById[r]!==i.__typename||delete s.__typename,Object.keys(s).forEach((function(e){return n.group.dirty(r,e)}))}}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var o=Object.create(null),a=!1,i=!0,s={DELETE:ov,INVALIDATE:iv,isReference:ee,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||Zt(e)}:t,{store:r})}};if(Object.keys(n).forEach((function(u){var l=ev(u),c=n[u];if(void 0!==c){var p="function"==typeof t?t:t[u]||t[l];if(p){var d=p===av?ov:p(me(c),$e($e({},s),{fieldName:l,storeFieldName:u,storage:r.getStorage(e,u)}));if(d===iv)r.group.dirty(e,u);else if(d===ov&&(d=void 0),d!==c&&(o[u]=d,a=!0,c=d,!1!==globalThis.__DEV__)){var f=function(e){if(void 0===r.lookup(e.__ref))return!1!==globalThis.__DEV__&&Rt.warn(2,e),!0};if(ee(d))f(d);else if(Array.isArray(d))for(var h=!1,m=void 0,y=0,g=d;y<g.length;y++){var v=g[y];if(ee(v)){if(h=!0,f(v))break}else"object"==typeof v&&v&&r.policies.identify(v)[0]&&(m=v);if(h&&void 0!==m){!1!==globalThis.__DEV__&&Rt.warn(3,m);break}}}}void 0!==c&&(i=!1)}})),a)return this.merge(e,o),i&&(this instanceof lv?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,o=this.lookup(e);if(o){var a=this.getFieldValue(o,"__typename"),i=t&&r?this.policies.getStoreFieldName({typename:a,fieldName:t,args:r}):t;return this.modify(e,i?((n={})[i]=av,n):av)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&($g.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof lv&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach((function(t){$g.call(e.policies.rootTypenamesById,t)||r.push(t)})),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(r){e&&$g.call(e,r)||t.delete(r)})),e){var r=e.__META,n=tr(e,["__META"]);Object.keys(n).forEach((function(e){t.merge(e,n[e])})),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof lv?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach((function(n){$g.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])}));var n=Object.keys(r);if(n.length){for(var o=this;o instanceof lv;)o=o.parent;n.forEach((function(e){return o.delete(e)}))}return n},e.prototype.findChildRefIds=function(e){if(!$g.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach((function(e){ee(e)&&(t[e.__ref]=!0),fe(e)&&Object.keys(e).forEach((function(t){var r=e[t];fe(r)&&n.add(r)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),uv=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?Qe():null,this.keyMaker=new Ee(Ne)}
2,e.prototype.depend=function(e,t){if(this.d){this.d(dv(e,t));var r=ev(t);r!==t&&this.d(dv(e,r)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(dv(e,t),"__exists"===t?"forget":"setDirty")},e}(),function(e){e.Root=function(e){function t(t){var r=t.policies,n=t.resultCaching,o=void 0===n||n,a=t.seed,i=e.call(this,r,new uv(o))||this;return i.stump=new cv(i),i.storageTrie=new Ee(Ne),a&&i.replace(a),i}return or(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e)}(sv||(sv={})),lv=function(e){function t(t,r,n,o){var a=e.call(this,r.policies,o)||this;return a.id=t,a.parent=r,a.replay=n,a.group=o,n(a),a}return or(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var n=t.data[e],o=r.lookup(e);o?n?n!==o&&Object.keys(n).forEach((function(r){Lt(n[r],o[r])||t.group.dirty(e,r)})):(t.group.dirty(e,"__exists"),Object.keys(o).forEach((function(r){t.group.dirty(e,r)}))):t.delete(e)})),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return $e($e({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return $g.call(this.data,t)?$e($e({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(sv),cv=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new uv(t.group.caching,t.group))||this}return or(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(lv)}));var vv,bv=t((()=>{Z(),H(),Qt(),pv(),yv=function(){function e(){this.known=new(Fe?WeakSet:Set),this.pool=new Ee(Ne),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return fe(e)&&this.known.has(e)},e.prototype.pass=function(e){if(fe(e)){var t=function(e){return fe(e)?qe(e)?e.slice(0):$e({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(fe(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var n=e.map(this.admit,this);return(s=this.pool.lookupArray(n)).array||(this.known.add(s.array=n),!1!==globalThis.__DEV__&&Object.freeze(n)),s.array;case null:case Object.prototype:if(this.known.has(e))return e;var o=Object.getPrototypeOf(e),a=[o],i=this.sortedKeys(e);a.push(i.json);var s,u=a.length;if(i.sorted.forEach((function(r){a.push(t.admit(e[r]))})),!(s=this.pool.lookupArray(a)).object){var l=s.object=Object.create(o);this.known.add(l),i.sorted.forEach((function(e,t){l[e]=a[u+t]})),!1!==globalThis.__DEV__&&Object.freeze(l)}return s.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}()}));function _v(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}function Sv(e){try{JSON.stringify(e,(function(e,t){if("string"==typeof t)throw t;return t}))}catch(t){return t}}function wv(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach((function(r){fe(r)&&(Rt(!ee(r),10,function(e,t){return ee(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,r),t.name.value),Object.values(r).forEach(n.add,n))}))}}var Ev,xv,kv=t((()=>{Z(),ht(),yr(),qt(),Qt(),gv(),pv(),Yg(),bv(),vv=function(){function e(e){var t=this;this.knownResults=new(Ne?WeakMap:Map),this.config=Pt(e,{addTypename:!1!==e.addTypename,canonizeResults:Zg(e)}),this.canon=e.canon||new yv,this.executeSelectionSet=mt((function(e){var r,n=e.context.canonizeResults,o=_v(e);o[3]=!n;var a=(r=t.executeSelectionSet).peek.apply(r,o);return a?n?$e($e({},a),{result:t.canon.admit(a.result)}):a:(fv(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize||Se["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:_v,makeCacheKey:function(e,t,r,n){if(mv(r.store))return r.store.makeCacheKey(e,ee(t)?t.__ref:t,r.varStr
2ing,n)}}),this.executeSubSelectedArray=mt((function(e){return fv(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize||Se["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(mv(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new yv},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,n=e.rootId,o=void 0===n?"ROOT_QUERY":n,a=e.variables,i=e.returnPartialData,s=void 0===i||i,u=e.canonizeResults,l=void 0===u?this.config.canonizeResults:u,c=this.config.cache.policies;a=$e($e({},wt(kt(r))),a);var p,d=Zt(o),f=this.executeSelectionSet({selectionSet:tt(r).selectionSet,objectOrReference:d,enclosingRef:d,context:$e({store:t,query:r,policies:c,variables:a,varString:re(a),canonizeResults:l},nv(r,this.config.fragments))});if(f.missing&&(p=[new Bg(Sv(f.missing),f.missing,r,a)],!s))throw p[0];return{result:f.result,complete:!p,missing:p}},e.prototype.isFresh=function(e,t,r,n){if(mv(n.store)&&this.knownResults.get(e)===r){var o=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(o&&e===o.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,r=e.selectionSet,n=e.objectOrReference,o=e.enclosingRef,a=e.context;if(ee(n)&&!a.policies.rootTypenamesById[n.__ref]&&!a.store.has(n.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(n.__ref," object")};var i,s=a.variables,u=a.policies,l=a.store.getFieldValue(n,"__typename"),c=[],p=new Ae;function d(e,t){var r;return e.missing&&(i=p.merge(i,((r={})[t]=e.missing,r))),e.result}this.config.addTypename&&"string"==typeof l&&!u.rootIdsByTypename[l]&&c.push({__typename:l});var f=new Set(r.selections);f.forEach((function(e){var r,h;if(Nt(e,s))if(rr(e)){var m=u.readField({fieldName:e.name.value,field:e,variables:a.variables,from:n},a),y=Ie(e);void 0===m?ie.added(e)||(i=p.merge(i,((r={})[y]="Can't find field '".concat(e.name.value,"' on ").concat(ee(n)?n.__ref+" object":"object "+JSON.stringify(n,null,2)),r))):qe(m)?m.length>0&&(m=d(t.executeSubSelectedArray({field:e,array:m,enclosingRef:o,context:a}),y)):e.selectionSet?null!=m&&(m=d(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:m,enclosingRef:ee(m)?m:o,context:a}),y)):a.canonizeResults&&(m=t.canon.pass(m)),void 0!==m&&c.push(((h={})[y]=m,h))}else{var g=le(e,a.lookupFragment);if(!g&&e.kind===cr.FRAGMENT_SPREAD)throw Bt(9,e.name.value);g&&u.fragmentMatches(g,l)&&g.selectionSet.selections.forEach(f.add,f)}}));var h={result:Me(c),missing:i},m=a.canonizeResults?this.canon.admit(h):me(h);return m.result&&this.knownResults.set(m.result,r),m},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,o=e.array,a=e.enclosingRef,i=e.context,s=new Ae;function u(e,r){var n;return e.missing&&(t=s.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(o=o.filter(i.store.canRead)),o=o.map((function(e,t){return null===e?null:qe(e)?u(r.executeSubSelectedArray({field:n,array:e,enclosingRef:a,context:i}),t):n.selectionSet?u(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:ee(e)?e:a,context:i}),t):(!1!==globalThis.__DEV__&&wv(i.store,n,e),e)})),{result:i.canonizeResults?this.canon.admit(o):o,missing:t}},e}()}));function Tv(e){var t=xv.get(e);return t||xv.set(e,t={vars:new Set,dep:Qe()}),t}function Ov(e){Tv(e).vars.forEach((function(t){return t.forgetCache(e)}))}function Iv(e){var t=new Set,r=new Set,n=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach((function(e){Tv(e).dep.dirty(n),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)}));var i=Array.from(r);r.clear(),i.forEach((function(t){return t(e)}))}}else{var s=Ev.getValue();s&&(o(s),Tv(s).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var o=n.attachCache=function(e){return t.add(e),Tv(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}var Cv,Rv=t((()=>{qt(),Ev=new $t,xv=new WeakMap}));function Av(e){var t=JSON.stringify(e);return Cv[t]||(Cv[t]=Object.create(null))}function Pv(e){var t=Av(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},o=r.keyObject=jv(e,(function(e){var o=Lv(r.storeObject,e,n);return void 0===o&&t!==r.storeObject&&$g.call(t,e[0])&&(o=Lv(t,e,Fv)),Rt(void 0!==o,4,e.join("."),t),o}));return"".concat(r.typename,":").concat(JSON.stringify(o))})}function Mv(e){var t=Av(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,o=r.variables,a=r.fieldName,i=jv(e,(function(e){var r=e[0],a=r.charAt(0);if("@"!==a)if("$"!==a){if(t)return Lv(t,e)}else{var i=r.slice(1);if(o&&$g.call(o,i)){var s=e.slice(0);return s[0]=i,Lv(o,s)}}else if(n&&we(n.directives)){var u=r.slice(1),l=n.directives.find((function(e){return e.name.value===u})),c=l&<(l,o);return c&&Lv(c,e.slice(1))}})),s=JSON.stringify(i);return(t||"{}"!==s)&&(a+=":"+s),a})}function jv(e,t){var r=new Ae;return Dv(e).reduce((function(e,n){var o,a=t(n);if(void 0!==a){for(var i=n.length-1;i>=0;--i)(o={})[n[i]]=a,a=o;e=r.merge(e,a)}return e}),Object.create(null))}function Dv(e){var t=Av(e);
2if(!t.paths){var r=t.paths=[],n=[];e.forEach((function(t,o){qe(t)?(Dv(t).forEach((function(e){return r.push(n.concat(e))})),n.length=0):(n.push(t),qe(e[o+1])||(r.push(n.slice(0)),n.length=0))}))}return t.paths}function Fv(e,t){return e[t]}function Lv(e,t,r){return r=r||Fv,Nv(t.reduce((function e(t,n){return qe(t)?t.map((function(t){return e(t,n)})):t&&r(t,n)}),e))}function Nv(e){return fe(e)?qe(e)?e.map(Nv):jv(Object.keys(e).sort(),(function(t){return Lv(e,t)})):e}var qv,Uv,Bv,$v,Vv,Wv=t((()=>{ht(),Qt(),pv(),Cv=Object.create(null)}));function zv(e){return void 0!==e.args?e.args:e.field?lt(e.field,e.variables):null}function Qv(e,t,r,n,o){var a=e.getStoreFieldName(r),i=ev(a),s=r.variables||n.variables,u=n.store,l=u.toReference,c=u.canRead;return{args:zv(r),field:r.field||null,fieldName:i,storeFieldName:a,variables:s,isReference:ee,toReference:l,storage:o,cache:e.cache,canRead:c,readField:function(){return e.readField(Hv(arguments,t,s),n)},mergeObjects:Gv(n.store)}}function Hv(e,t,r){var n,o=e[0],a=e[1],i=e.length;return"string"==typeof o?n={fieldName:o,from:i>1?a:t}:(n=$e({},o),$g.call(n,"from")||(n.from=t)),!1!==globalThis.__DEV__&&void 0===n.from&&!1!==globalThis.__DEV__&&Rt.warn(7,St(Array.from(e))),void 0===n.variables&&(n.variables=r),n}function Gv(e){return function(t,r){if(qe(t)||qe(r))throw Bt(8);if(fe(t)&&fe(r)){var n=e.getFieldValue(t,"__typename"),o=e.getFieldValue(r,"__typename");if(n&&o&&n!==o)return r;if(ee(t)&&rv(r))return e.merge(t.__ref,r),t;if(rv(t)&&ee(r))return e.merge(t,r.__ref),r;if(rv(t)&&rv(r))return $e($e({},t),r)}return r}}var Kv,Yv,Jv,Xv=t((()=>{Z(),ht(),Qt(),pv(),Rv(),Wv(),qv=function(){},Uv=function(e,t){return t.fieldName},Bv=function(e,t,r){return(0,r.mergeObjects)(e,t)},$v=function(e,t){return t},Vv=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=$e({dataIdFromObject:Xg},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,n=this,o=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a,i=t&&t.storeObject||e,s=$e($e({},t),{typename:o,storeObject:i,readField:t&&t.readField||function(){var e=Hv(arguments,i);return n.readField(e,{store:n.cache.data,variables:e.variables})}}),u=o&&this.getTypePolicy(o),l=u&&u.keyFn||this.config.dataIdFromObject;l;){var c=l($e($e({},e),i),s);if(!qe(c)){a=c;break}l=Pv(c)}return a=a?String(a):void 0,s.keyObject?[a,s.keyObject]:[a]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(r){var n=e[r],o=n.queryType,a=n.mutationType,i=n.subscriptionType,s=tr(n,["queryType","mutationType","subscriptionType"]);o&&t.setRootTypename("Query",r),a&&t.setRootTypename("Mutation",r),i&&t.setRootTypename("Subscription",r),$g.call(t.toBeAdded,r)?t.toBeAdded[r].push(s):t.toBeAdded[r]=[s]}))},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),o=t.keyFields,a=t.fields;function i(e,t){e.merge="function"==typeof t?t:!0===t?Bv:!1===t?$v:e.merge}i(n,t.merge),n.keyFn=!1===o?qv:qe(o)?Pv(o):"function"==typeof o?o:n.keyFn,a&&Object.keys(a).forEach((function(t){var n=r.getFieldPolicy(e,t,!0),o=a[t];if("function"==typeof o)n.read=o;else{var s=o.keyArgs,u=o.read,l=o.merge;n.keyFn=!1===s?Uv:qe(s)?Mv(s):"function"==typeof s?s:n.keyFn,"function"==typeof u&&(n.read=u),i(n,l)}n.read&&n.merge&&(n.keyFn=n.keyFn||Uv)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&(Rt(!n||n===e,5,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(r){t.getSupertypeSet(r,!0),e[r].forEach((function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(Wg);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;
2if(!$g.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var n=this.supertypeMap.get(e);!n&&this.fuzzySubtypes.size&&(n=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((function(r,o){if(r.test(e)){var a=t.supertypeMap.get(o);a&&a.forEach((function(e){return n.add(e)}))}}))),n&&n.size&&n.forEach((function(e){var n=t.getTypePolicy(e),o=n.fields,a=tr(n,["fields"]);Object.assign(r,a),Object.assign(r.fields,o)}))}var o=this.toBeAdded[e];return o&&o.length&&o.splice(0).forEach((function(r){t.updateTypePolicy(e,r)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var o=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var i=this.getSupertypeSet(t,!0),s=[i],u=function(e){var t=o.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},l=!(!r||!this.fuzzySubtypes.size),c=!1,p=0;p<s.length;++p){var d=s[p];if(d.has(a))return i.has(a)||(c&&!1!==globalThis.__DEV__&&Rt.warn(6,t,a),i.add(a)),!0;d.forEach(u),l&&p===s.length-1&&tv(e.selectionSet,r,n)&&(l=!1,c=!0,this.fuzzySubtypes.forEach((function(e,r){var n=t.match(e);n&&n[0]===t&&u(r)})))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!(!r||!r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,o=this.getFieldPolicy(r,n,!1),a=o&&o.keyFn;if(a&&r)for(var i={typename:r,fieldName:n,field:e.field||null,variables:e.variables},s=zv(e);a;){var u=a(s,i);if(!qe(u)){t=u||n;break}a=Mv(u)}return void 0===t&&(t=e.field?oe(e.field,e.variables):Ve(n,zv(e))),!1===t?n:n===ev(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var o=this.getStoreFieldName(e),a=ev(o),i=t.store.getFieldValue(r,o),s=this.getFieldPolicy(e.typename,a,!1),u=s&&s.read;if(u){var l=Qv(this,r,e,t,t.store.getStorage(ee(r)?r.__ref:r,o));return Ev.withValue(this.cache,u,[i,l])}return i}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t,!1);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t,!1),o=n&&n.merge;return!o&&r&&(o=(n=this.getTypePolicy(r))&&n.merge),o},e.prototype.runMergeFunction=function(e,t,r,n,o){var a=r.field,i=r.typename,s=r.merge;return s===Bv?Gv(n.store)(e,t):s===$v?t:(n.overwrite&&(e=void 0),s(e,t,Qv(this,void 0,{typename:i,fieldName:a.name.value,field:a,variables:n.variables},n,o||Object.create(null))))},e}()}));function Zv(e,t,r){var n="".concat(t).concat(r),o=e.flavors.get(n);return o||e.flavors.set(n,o=e.clientOnly===t&&e.deferred===r?e:$e($e({},e),{clientOnly:t,deferred:r})),o}function eb(e,t){var r=e.map;return r.has(t)||r.set(t,Yv.pop()||{map:new Map}),r.get(t)}function tb(e,t){if(e===t||!t||rb(t))return e;if(!e||rb(e))return t;var r=e.info&&t.info?$e($e({},e.info),t.info):e.info||t.info,n=e.map.size&&t.map.size,o={info:r,map:n?new Map:e.map.size?e.map:t.map};if(n){var a=new Set(t.map.keys());e.map.forEach((function(e,r){o.map.set(r,tb(e,t.map.get(r))),a.delete(r)})),a.forEach((function(r){o.map.set(r,tb(t.map.get(r),e.map.get(r)))}))}return o}function rb(e){return!e||!(e.info||e.map.size)}function nb(e,t){var r=e.map,n=r.get(t);n&&rb(n)&&(Yv.push(n),r.delete(t))}var ob,ab,ib=t((()=>{Z(),ht(),ft(),H(),yr(),Qt(),pv(),Xv(),Kv=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,n=t.query,o=t.result,a=t.dataId,i=t.variables,s=t.overwrite,u=it(n),l=new Ae;i=$e($e({},wt(u)),i);var c=$e($e({store:e,written:Object.create(null),merge:function(e,t){return l.merge(e,t)},variables:i,varString:re(i)},nv(n,this.fragments)),{overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),p=this.processSelectionSet({result:o||Object.create(null),dataId:a,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:c});if(!ee(p))throw Bt(11,o);
2return c.incomingById.forEach((function(t,n){var o=t.storeObject,a=t.mergeTree,i=t.fieldNodeSet,s=Zt(n);if(a&&a.map.size){var u=r.applyMerges(a,s,o,c);if(ee(u))return;o=u}if(!1!==globalThis.__DEV__&&!c.overwrite){var l=Object.create(null);i.forEach((function(e){e.selectionSet&&(l[e.name.value]=!0)}));Object.keys(o).forEach((function(e){(function(e){return!0===l[ev(e)]})(e)&&!function(e){var t=a&&a.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,r,n){var o=function(e){var t=n.getFieldValue(e,r);return"object"==typeof t&&t},a=o(e);if(a){var i=o(t);if(i&&!ee(a)&&!Lt(a,i)&&!Object.keys(a).every((function(e){return void 0!==n.getFieldValue(i,e)}))){var s=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),u=ev(r),l="".concat(s,".").concat(u);if(!Jv.has(l)){Jv.add(l);var c=[];qe(a)||qe(i)||[a,i].forEach((function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||c.includes(t)||c.push(t)})),!1!==globalThis.__DEV__&&Rt.warn(14,u,s,c.length?"either ensure all objects of type "+c.join(" and ")+" have an ID or a custom merge function, or ":"",l,a,i)}}}}(s,o,e,c.store)}))}e.merge(n,o)})),e.retain(p.__ref),p},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,o=e.selectionSet,a=e.context,i=e.mergeTree,s=this.cache.policies,u=Object.create(null),l=r&&s.rootTypenamesById[r]||Jt(n,o,a.fragmentMap)||r&&a.store.get(r,"__typename");"string"==typeof l&&(u.__typename=l);var c=function(){var e=Hv(arguments,u,a.variables);if(ee(e.from)){var t=a.incomingById.get(e.from.__ref);if(t){var r=s.readField($e($e({},e),{from:t.storeObject}),a);if(void 0!==r)return r}}return s.readField(e,a)},p=new Set;this.flattenFields(o,n,a,l).forEach((function(e,r){var o,a=n[Ie(r)];if(p.add(r),void 0!==a){var d=s.getStoreFieldName({typename:l,fieldName:r.name.value,field:r,variables:e.variables}),f=eb(i,d),h=t.processFieldValue(a,r,r.selectionSet?Zv(e,!1,!1):e,f),m=void 0;r.selectionSet&&(ee(h)||rv(h))&&(m=c("__typename",h));var y=s.getMergeFunction(l,r.name.value,m);y?f.info={field:r,typename:l,merge:y}:nb(i,d),u=e.merge(u,((o={})[d]=h,o))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||ie.added(r)||s.getReadFunction(l,r.name.value)||!1!==globalThis.__DEV__&&Rt.error(12,Ie(r),n)}));try{var d=s.identify(n,{typename:l,selectionSet:o,fragmentMap:a.fragmentMap,storeObject:u,readField:c}),f=d[0],h=d[1];r=r||f,h&&(u=a.merge(u,h))}catch(v){if(!r)throw v}if("string"==typeof r){var m=Zt(r),y=a.written[r]||(a.written[r]=[]);if(y.indexOf(o)>=0)return m;if(y.push(o),this.reader&&this.reader.isFresh(n,m,o,a))return m;var g=a.incomingById.get(r);return g?(g.storeObject=a.merge(g.storeObject,u),g.mergeTree=tb(g.mergeTree,i),p.forEach((function(e){return g.fieldNodeSet.add(e)}))):a.incomingById.set(r,{storeObject:u,mergeTree:rb(i)?void 0:i,fieldNodeSet:p}),m}return u},e.prototype.processFieldValue=function(e,t,r,n){var o=this;return t.selectionSet&&null!==e?qe(e)?e.map((function(e,a){var i=o.processFieldValue(e,t,r,eb(n,a));return nb(n,a),i})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?ge(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=Jt(t,e,r.fragmentMap));var o=new Map,a=this.cache.policies,i=new Ee(!1);return function e(s,u){var l=i.lookup(s,u.clientOnly,u.deferred);l.visited||(l.visited=!0,s.selections.forEach((function(i){if(Nt(i,r.variables)){var s=u.clientOnly,l=u.deferred;if(s&&l||!we(i.directives)||i.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var n=lt(e,r.variables);n&&!1===n.if||(l=!0)}})),rr(i)){var c=o.get(i);c&&(s=s&&c.clientOnly,l=l&&c.deferred),o.set(i,Zv(r,s,l))}else{var p=le(i,r.lookupFragment);if(!p&&i.kind===cr.FRAGMENT_SPREAD)throw Bt(13,i.name.value);p&&a.fragmentMatches(p,n,t,r.variables)&&e(p.selectionSet,Zv(r,s,l))}}})))}(e,r),o},e.prototype.applyMerges=function(e,t,r,n,o){var a,i=this;if(e.map.size&&!ee(r)){var s,u=qe(r)||!ee(t)&&!rv(t)?void 0:t,l=r;u&&!o&&(o=[ee(u)?u.__ref:u]);var c=function(e,t){return qe(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};
2e.map.forEach((function(e,t){var r=c(u,t),a=c(l,t);if(void 0!==a){o&&o.push(t);var p=i.applyMerges(e,r,a,n,o);p!==a&&(s=s||new Map).set(t,p),o&&Rt(o.pop()===t)}})),s&&(r=qe(l)?l.slice(0):$e({},l),s.forEach((function(e,t){r[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,o&&(a=n.store).getStorage.apply(a,o)):r},e}(),Yv=[],Jv=new Set})),sb=t((()=>{Z(),ht(),qt(),ft(),Kg(),Yg(),Qt(),kv(),ib(),gv(),Rv(),Xv(),pv(),ye(),ob=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new zt(ie),r.assumeImmutableResults=!0,r.makeVar=Iv,r.txCount=0,r.config=function(e){return Pt(Vg,e)}(t),r.addTypename=!!r.config.addTypename,r.policies=new Vv({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return or(t,e),t.prototype.init=function(){var e=this.data=new sv.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new Kv(this,this.storeReader=new vv({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Zg(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=mt((function(e,r){return t.broadcastWatch(e,r)}),{max:this.config.resultCacheMaxSize||Se["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(mv(r)){var n=e.optimistic,o=e.id,a=e.variables;return r.makeCacheKey(e.query,e.callback,re({optimistic:n,id:o,variables:a}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,r=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore($e($e({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:r})).result||null}catch(n){if(n instanceof Bg)return null;throw n}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if($g.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore($e($e({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||function(e){Tv(e).vars.forEach((function(t){return t.attachCache(e)}))}(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&Ov(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){var t;re.reset(),nt.reset(),this.addTypenameTransform.resetCache(),null===(t=this.config.fragments)||void 0===t||t.resetCaches();var r=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),r},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(ee(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(t){!1!==globalThis.__DEV__&&Rt.warn(t)}},t.prototype.evict=function(e){if(!e.id){if($g.call(e,"id"))return!1;e=$e($e({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),re.reset(),e&&e.discardWatches?(this.watches.forEac
2h((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),Ov(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,n=e.update,o=e.optimistic,a=void 0===o||o,i=e.removeOptimistic,s=e.onWatchUpdated,u=function(e){var o=r,a=o.data,i=o.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=n(r)}finally{--r.txCount,r.data=a,r.optimisticData=i}},l=new Set;return s&&!this.txCount&&this.broadcastWatches($e($e({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,u):!1===a?u(this.data):u(),"string"==typeof i&&(this.optimisticData=this.optimisticData.removeLayer(i)),s&&l.size?(this.broadcastWatches($e($e({},e),{onWatchUpdated:function(e,t){var r=s.call(this,e,t);return!1!==r&&l.delete(e),r}})),l.size&&l.forEach((function(e){return r.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(r){return t.maybeBroadcastWatch(r,e)}))},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,n=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,n,r))||r&&Lt(r.result,n.result)||e.callback(e.lastDiff=n,r)},t}(Ug),!1!==globalThis.__DEV__&&(ob.prototype.getMemoryInternals=gt)})),ub=t((()=>{})),lb=t((()=>{Kg(),Yg(),Qt(),gv(),pv(),sb(),Rv(),Xv(),ub()}));function cb(e){return!!e&&e<7}var pb=t((()=>{!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(ab||(ab={}))}));function db(e,t,r,n){var o=t.data,a=tr(t,["data"]),i=r.data;return Lt(a,tr(r,["data"]))&&fb(tt(e).selectionSet,o,i,{fragmentMap:Pe(Gt(e)),variables:n})}function fb(e,t,r,n){if(t===r)return!0;var o=new Set;return e.selections.every((function(e){if(o.has(e))return!0;if(o.add(e),!Nt(e,n.variables))return!0;if(hb(e))return!0;if(rr(e)){var a=Ie(e),i=t&&t[a],s=r&&r[a],u=e.selectionSet;if(!u)return Lt(i,s);var l=Array.isArray(i),c=Array.isArray(s);if(l!==c)return!1;if(l&&c){var p=i.length;if(s.length!==p)return!1;for(var d=0;d<p;++d)if(!fb(u,i[d],s[d],n))return!1;return!0}return fb(u,i,s,n)}var f=le(e,n.fragmentMap);return f?!!hb(f)||fb(f.selectionSet,t,r,n):void 0}))}function hb(e){return!!e.directives&&e.directives.some(mb)}function mb(e){return"nonreactive"===e.name.value}var yb,gb,vb,bb=t((()=>{Z(),ft(),Qt()}));function _b(e){var t=e.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,t){return this.nextFetchPolicy=n,"function"==typeof this.nextFetchPolicy?this.nextFetchPolicy(e,t):r}}):e.reobserve()}function Sb(e){!1!==globalThis.__DEV__&&Rt.error(23,e.message,e.stack)}function wb(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&Rt.debug(24,e)}function Eb(e){return"network-only"===e||"no-cache"===e||"standby"===e}var xb,kb,Tb,Ob=t((()=>{Z(),ht(),ft(),pb(),Qt(),bb(),yb=Object.assign,gb=Object.hasOwnProperty,vb=function(e){function t(t){var r=t.queryManager,n=t.queryInfo,o=t.options,a=e.call(this,(function(e){try{var r=e._subscription._observer;r&&!r.error&&(r.error=Sb)}catch(t){}var n=!a.observers.size;a.observers.add(e);var o=a.last;return o&&o.error?e.error&&e.error(o.error):o&&o.result&&e.next&&e.next(o.result),n&&a.reobserve().catch((function(){})),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}}))||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=n,a.queryManager=r,a.waitForOwnResult=Eb(o.fetchPolicy),a.isTornDown=!1;var i=r.defaultOptions.watchQuery,s=(void 0===i?{}:i).fetchPolicy,u=void 0===s?"cache-first":s,l=o.fetchPolicy,c=void 0===l?u:l,p=o.initialFetchPolicy,d=void 0===p?"standby"===c?u:c:p;a.options=$e($e({},o),{initialFetchPolicy:d,fetchPolicy:c}),a.queryId=n.queryId||r.generateQueryId();
2var f=it(a.query);return a.queryName=f&&f.name&&f.name.value,a}return or(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){o.unsubscribe()}),0)},error:r},o=e.subscribe(n)}))},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||ab.ready,n=$e($e({},t),{loading:cb(r),networkStatus:r}),o=this.options.fetchPolicy,a=void 0===o?"cache-first":o;if(Eb(a)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var i=this.queryInfo.getDiff();(i.complete||this.options.returnPartialData)&&(n.data=i.result),Lt(n.data,{})&&(n.data=void 0),i.complete?(delete n.partial,!i.complete||n.networkStatus!==ab.loading||"cache-first"!==a&&"cache-only"!==a||(n.networkStatus=ab.ready,n.loading=!1)):n.partial=!0,!1===globalThis.__DEV__||i.complete||this.options.partialRefetch||n.loading||n.data||n.error||wb(i.missing)}return e&&this.updateLastResult(n),n},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||((this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!db(this.query,this.last.result,e,this.variables):!Lt(this.last.result,e))||t&&!Lt(this.last.variables,t))},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||Lt(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,r={pollInterval:0},n=this.options.fetchPolicy;if(r.fetchPolicy="cache-and-network"===n?n:"no-cache"===n?"no-cache":"network-only",!1!==globalThis.__DEV__&&e&&gb.call(e,"variables")){var o=kt(this.query),a=o.variableDefinitions;a&&a.some((function(e){return"variables"===e.variable.name.value}))||!1!==globalThis.__DEV__&&Rt.warn(20,e,(null===(t=o.name)||void 0===t?void 0:t.value)||o)}return e&&!Lt(this.options.variables,e)&&(r.variables=this.options.variables=$e($e({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,ab.refetch)},t.prototype.fetchMore=function(e){var t=this,r=$e($e({},e.query?e:$e($e($e($e({},this.options),{query:this.options.query}),e),{variables:$e($e({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});r.query=this.transformDocument(r.query);var n=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):r.query;var o=this.queryInfo,a=o.networkStatus;o.networkStatus=ab.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var i=new Set;return this.queryManager.fetchQuery(n,r,ab.fetchMore).then((function(s){return t.queryManager.removeQuery(n),o.networkStatus===ab.fetchMore&&(o.networkStatus=a),t.queryManager.cache.batch({update:function(n){var o=e.updateQuery;o?n.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},(function(e){return o(e,{fetchMoreResult:s.data,variables:r.variables})})):n.writeQuery({query:r.query,variables:r.variables,data:s.data})},onWatchUpdated:function(e){i.add(e.query)}}),s})).finally((function(){i.has(t.query)||_b(t)}))},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery((function(e,t){var o=t.variables;return n(e,{subscriptionData:r,variables:o})}))},error:function(t){e.onError?e.onError(t):!1!==globalThis.__DEV__&&Rt.error(21,t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=Pt(this.options,e||{});yb(this.options,t)},t.prototype.setVariables=function(e){return Lt(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},ab.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,r=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(t.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,o=t.initialFetchPolicy,a=void 0===o?n:o;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:a}):t.fetchPolicy="variables-changed"===e?a:t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,r){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t,r)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(r){if(!t||t.interval!==r){Rt(r,22),(t||(this.pollingInfo={})).interval=r;var n=function(){var t,r;e.pollingInfo&&(cb(e.queryInfo.networkStatus)||(null===(r=(t=e.options).skipPollAttempt)||void 0===r?void 0:r.call(t))?o():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},ab.poll).then(o,o))},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};o()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var r=this.getLastError();return r&&this.last&&!Lt(t,this.last.variables)&&(r=void 0),this.last=$e({result:this.queryManager.assumeImmutableResults?e:ge(e),variables:t},r?{error:r}:null)},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var n=t===ab.refetch||t===ab.fetchMore||t===ab.poll,o=this.options.variables,a=this.options.fetchPolicy,i=Pt(this.options,e||{}),s=n?i:yb(this.options,i),u=this.transformDocument(s.query);this.lastQuery=u,n||(this.updatePolling(),e&&e.variables&&!Lt(e.variables,o)&&"standby"!==s.fetchPolicy&&s.fetchPolicy===a&&(this.applyNextFetchPolicy("variables-changed",s),void 0===t&&(t=ab.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=Eb(s.fetchPolicy));var l=function(){r.concast===d&&(r.waitForOwnResult=!1)},c=s.variables&&$e({},s.variables),p=this.fetch(s,t,u),d=p.concast,f=p.fromLink,h={next:function(e){Lt(r.variables,c)&&(l(),r.reportResult(e,c))},error:function(e){Lt(r.variables,c)&&(l(),r.reportError(e,c))}};return n||!f&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=d,this.observer=h),d.addObserver(h),d},t.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},t.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this.last;this.resetLastResults();var n=this.subscribe.apply(this,e);return this.last=r,n},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this.getLastError(),n=this.isDifferentFromLastResult(e,t);(r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(r||n)&&G(this.observers,"next",e)},t.prototype.reportError=function(e,t){var r=$e($e({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:ab.error,loading:!1});this.updateLastResult(r,t),G(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t}(ir),Oe(vb)})),Ib=t((()=>{Z(),ht(),yr(),Qt(),lb(),xb=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,o=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),o&&this.setFragmentMatcher(o)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=Ce(t.resolvers,e)})):this.resolvers=Ce(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return Yt(this,arguments,void 0,(function(e){var t=e.document,r=e.remoteResult,n=e.context,o=e.variables,a=e.onlyRunForcedResolvers,i=void 0!==a&&a;return Ge(this,(function(e){return t?[2,this.resolveDocument(t,r.data,n,o,this.fragmentMatcher,i).then((function(e){return $e($e({},r),{data:e.result})}))]:[2,r]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return Wt(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return pe(e)},e.prototype.prepareContext=function(e){var t=this.cache;return $e($e({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return Yt(this,arguments,void 0,(function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),Ge(this,(function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then((function(e){return $e($e({},t),e.exportedVariables)}))]:[2,$e({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return br(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return lr}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:de(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return Yt(this,arguments,void 0,(function(e,t,r,n,o,a){var i,s,u,l,c,p,d,f,h,m;return void 0===r&&(r={}),void 0===n&&(n={}),void 0===o&&(o=function(){return!0}),void 0===a&&(a=!1),Ge(this,(function(y){return i=tt(e),s=Gt(e),u=Pe(s),l=this.collectSelectionsToResolve(i,u),c=i.operation,p=c?c.charAt(0).toUpperCase()+c.slice(1):"Query",f=(d=this).cache,h=d.client,m={fragmentMap:u,context:$e($e({},r),{cache:f,client:h}),variables:n,fragmentMatcher:o,defaultOperationType:p,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:a},!1,[2,this.resolveSelectionSet(i.selectionSet,false,t,m).then((function(e){return{result:e,exportedVariables:m.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,r,n){return Yt(this,void 0,void 0,(function(){var o,a,i,s,u,l=this;return Ge(this,(function(c){return o=n.fragmentMap,a=n.context,i=n.variables,s=[r],u=function(e){return Yt(l,void 0,void 0,(function(){var u,l;return Ge(this,(function(c){return(t||n.selectionsToResolve.has(e))&&Nt(e,i)?rr(e)?[2,this.resolveField(e,t,r,n).then((function(t){var r;void 0!==t&&s.push(((r={})[Ie(e)]=t,r))}))]:(Te(e)?u=e:(u=o[e.name.value],Rt(u,18,e.name.value)),u&&u.typeCondition&&(l=u.typeCondition.name.value,n.fragmentMatcher(r,l,a))?[2,this.resolveSelectionSet(u.selectionSet,t,r,n).then((function(e){s.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(u)).then((function(){return Me(s)}))]}))}))},e.prototype.resolveField=function(e,t,r,n){return Yt(this,void 0,void 0,(function(){var o,a,i,s,u,l,c,p,d,f=this;return Ge(this,(function(h){return r?(o=n.variables,a=e.name.value,i=Ie(e),s=a!==i,u=r[i]||r[a],l=Promise.resolve(u),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(c=r.__typename||n.defaultOperationType,(p=this.resolvers&&this.resolvers[c])&&(d=p[s?a:i])&&(l=Promise.resolve(Ev.withValue(this.cache,d,[r,lt(e,o),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,l.then((function(r){var o,a;
2if(void 0===r&&(r=u),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=r)}))})),!e.selectionSet)return r;if(null==r)return r;var i=null!==(a=null===(o=e.directives)||void 0===o?void 0:o.some((function(e){return"client"===e.name.value})))&&void 0!==a&&a;return Array.isArray(r)?f.resolveSubSelectedArray(e,t||i,r,n):e.selectionSet?f.resolveSelectionSet(e.selectionSet,t||i,r,n):void 0}))]):[2,null]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var o=this;return Promise.all(r.map((function(r){return null===r?null:Array.isArray(r)?o.resolveSubSelectedArray(e,t,r,n):e.selectionSet?o.resolveSelectionSet(e.selectionSet,t,r,n):void 0})))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(o){if(!n.has(o)){var a=new Set;n.set(o,a),br(o,{Directive:function(e,t,n,o,i){"client"===e.name.value&&i.forEach((function(e){r(e)&&ur(e)&&a.add(e)}))},FragmentSpread:function(n,o,i,s,u){var l=t[n.name.value];Rt(l,19,n.name.value);var c=e(l);c.size>0&&(u.forEach((function(e){r(e)&&ur(e)&&a.add(e)})),a.add(n),c.forEach((function(e){a.add(e)})))}})}return n.get(o)}(e)},e}()}));function Cb(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return kb.set(e,(kb.get(e)+1)%1e15),r.apply(this,arguments)})}function Rb(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}function Ab(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!st(e);return!n&&r&&e.data&&(n=!0),n}var Pb,Mb,jb,Db,Fb,Lb=t((()=>{Z(),ft(),Qt(),Ob(),pb(),kb=new(Ne?WeakMap:Map),Tb=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;kb.has(r)||(kb.set(r,0),Cb(r,"evict"),Cb(r,"modify"),Cb(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||ab.loading;return this.variables&&this.networkStatus!==ab.loading&&!Lt(this.variables,e.variables)&&(t=ab.setVariables),Lt(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){Rb(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&Lt(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(e);return this.updateLastDiff(r,e),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,r=this,n=this.lastDiff&&this.lastDiff.diff;(!e||e.complete||(null===(t=this.observableQuery)||void 0===t?void 0:t.options.returnPartialData)||n&&n.complete)&&(this.updateLastDiff(e),this.dirty||Lt(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return r.notify()}),0))))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():_b(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;Rb(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(cb(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var n=$e($e({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});
2this.lastWatch&&Lt(n,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=n))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===kb.get(this.cache)&&Lt(t,r.variables)&&Lt(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var o=this,a=new Ae,i=we(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&we(e.incremental))e.data=ke(this.getDiff().result,e);else if("hasNext"in e&&e.hasNext){var s=this.getDiff();e.data=a.merge(s.result,e.data)}this.graphQLErrors=i,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(Ab(e,r.errorPolicy)?this.cache.performTransaction((function(a){if(o.shouldWrite(e,r.variables))a.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),o.lastWrite={result:e,variables:r.variables,dmCount:kb.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete)return void(e.data=o.lastDiff.diff.result);var i=o.getDiffOptions(r.variables),s=a.diff(i);!o.stopped&&Lt(o.variables,r.variables)&&o.updateWatch(r.variables),o.updateLastDiff(s,i),s.complete&&(e.data=s.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=ab.ready},e.prototype.markError=function(e){return this.networkStatus=ab.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}()})),Nb=t((()=>{Z(),ht(),ft(),hg(),Qt(),lb(),Kt(),Ye(),Ob(),pb(),Ib(),Lb(),H(),Pb=Object.prototype.hasOwnProperty,Mb=Object.create(null),jb=function(){function e(e){var t=e.cache,r=e.link,n=e.defaultOptions,o=e.documentTransform,a=e.queryDeduplication,i=void 0!==a&&a,s=e.onBroadcast,u=e.ssrMode,l=void 0!==u&&u,c=e.clientAwareness,p=void 0===c?{}:c,d=e.localState,f=e.assumeImmutableResults,h=void 0===f?!!t.assumeImmutableResults:f,m=e.defaultContext,y=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new ce(Se["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Ee(!1);var g=new zt((function(e){return y.cache.transformDocument(e)}),{cache:!1});this.cache=t,this.link=r,this.defaultOptions=n||Object.create(null),this.queryDeduplication=i,this.clientAwareness=p,this.localState=d||new xb({cache:t}),this.ssrMode=l,this.assumeImmutableResults=h,this.documentTransform=o?g.concat(o).concat(g):g,this.defaultContext=m||Object.create(null),(this.onBroadcast=s)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,r){e.stopQueryNoBroadcast(r)})),this.cancelPendingFetches(Bt(25))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return Yt(this,arguments,void 0,(function(e){var t,r,n,o,a,i,s,u=e.mutation,l=e.variables,c=e.optimisticResponse,p=e.updateQueries,d=e.refetchQueries,f=void 0===d?[]:d,h=e.awaitRefetchQueries,m=void 0!==h&&h,y=e.update,g=e.onQueryUpdated,v=e.fetchPolicy,b=void 0===v?(null===(i=this.defaultOptions.mutate)||void 0===i?void 0:i.fetchPolicy)||"network-only":v,_=e.errorPolicy,S=void 0===_?(null===(s=this.defaultOptions.mutate)||void 0===s?void 0:s.errorPolicy)||"none":_,w=e.keepRootFields,E=e.context;return Ge(this,(function(e){switch(e.label){case 0:return Rt(u,26),Rt("network-only"===b||"no-cache"===b,27),t=this.generateMutationId(),u=this.cache.transformForLink(this.transform(u)),r=this.getDocumentInfo(u).hasClientExports,l=this.getVariables(u,l),r?[4,this.localState.addExportedVariables(u,l,E)]:[3,2];case 1:l=e.sent(),e.label=2;case 2:return n=this.mutationStore&&(this.mutationStore[t]={mutation:u,variables:l,loading:!0,error:null}),o=c&&this.markMutationOptimistic(c,{mutationId:t,document:u,variables:l,fetchPolicy:b,errorPolicy:S,context:E,updateQueries:p,update:y,keepRootFields:w}),this.broadcastQueries(),a=this,[2,new Promise((function(e,r){return te(a.getObservableFromLink(u,$e($e({},E),{optimisticResponse:o?c:void 0}),l,!1),(function(e){if(st(e)&&"none"===S)throw new We({graphQLErrors:ct(e)}
2);n&&(n.loading=!1,n.error=null);var r=$e({},e);return"function"==typeof f&&(f=f(r)),"ignore"===S&&st(r)&&delete r.errors,a.markMutationResult({mutationId:t,result:r,document:u,variables:l,fetchPolicy:b,errorPolicy:S,context:E,update:y,updateQueries:p,awaitRefetchQueries:m,refetchQueries:f,removeOptimistic:o?t:void 0,onQueryUpdated:g,keepRootFields:w})})).subscribe({next:function(t){a.broadcastQueries(),"hasNext"in t&&!1!==t.hasNext||e(t)},error:function(e){n&&(n.loading=!1,n.error=e),o&&a.cache.removeOptimistic(t),a.broadcastQueries(),r(e instanceof We?e:new We({networkError:e}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var n=e.result,o=[],a="no-cache"===e.fetchPolicy;if(!a&&Ab(n,e.errorPolicy)){if(He(n)||o.push({result:n.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),He(n)&&we(n.incremental)){var i=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),s=void 0;i.result&&(s=ke(i.result,n)),void 0!==s&&(n.data=s,o.push({result:s,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var u=e.updateQueries;u&&this.queries.forEach((function(e,a){var i=e.observableQuery,s=i&&i.queryName;if(s&&Pb.call(u,s)){var l=u[s],c=r.queries.get(a),p=c.document,d=c.variables,f=t.diff({query:p,variables:d,returnPartialData:!0,optimistic:!1}),h=f.result;if(f.complete&&h){var m=l(h,{mutationResult:n,queryName:p&&jt(p)||void 0,queryVariables:d});m&&o.push({result:m,dataId:"ROOT_QUERY",query:p,variables:d})}}}))}if(o.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(t){a||o.forEach((function(e){return t.write(e)}));var i=e.update,s=!er(n)||He(n)&&!n.hasNext;if(i){if(!a){var u=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});u.complete&&("incremental"in(n=$e($e({},n),{data:u.result}))&&delete n.incremental,"hasNext"in n&&delete n.hasNext)}s&&i(t,n,{context:e.context,variables:e.variables})}a||e.keepRootFields||!s||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return l.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(l).then((function(){return n}))}return Promise.resolve(n)},e.prototype.markMutationOptimistic=function(e,t){var r=this,n="function"==typeof e?e(t.variables,{IGNORE:Mb}):e;return n!==Mb&&(this.cache.recordOptimisticTransaction((function(e){try{r.markMutationResult($e($e({},t),{result:{data:n}}),e)}catch(o){!1!==globalThis.__DEV__&&Rt.error(o)}}),t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(e,t,r).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var r={hasClientExports:rt(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:Wt(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:Le([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:wt(it(e)),asQuery:$e($e({},e),{definitions:e.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?$e($e({},e),{operation:"query"}):e}))})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return $e($e({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=$e($e({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new Tb(this),n=new vb({queryManager:this,queryInfo:r,options:e});return n.lastQuery=t,this.queries.set(n.queryId,r),r.init({document:t,observableQuery:n,variables:n.variables}),n},e.prototype.query=function(e,t){var r=this;return void 0===t&&(t=this.generateQueryId()),Rt(e.query,28),Rt("Document"===e.query.kind,29),Rt(!e.returnPartialData,30),Rt(!e.pollInterval,31),this.fetchQuery(t,$e($e({},e),{query:this.transform(e.query)})).finally((function(){return r.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}
2),this.cancelPendingFetches(Bt(32)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=ab.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,n=new Map,o=new Set;return Array.isArray(e)&&e.forEach((function(e){"string"==typeof e?n.set(e,!1):Ke(e)?n.set(t.transform(e),!1):fe(e)&&e.query&&o.add(e)})),this.queries.forEach((function(t,o){var a=t.observableQuery,i=t.document;if(a){if("all"===e)return void r.set(o,a);var s=a.queryName;if("standby"===a.options.fetchPolicy||"active"===e&&!a.hasObservers())return;("active"===e||s&&n.has(s)||i&&n.has(i))&&(r.set(o,a),s&&n.set(s,!0),i&&n.set(i,!0))}})),o.size&&o.forEach((function(e){var n=et("legacyOneTimeQuery"),o=t.getQuery(n).init({document:e.query,variables:e.variables}),a=new vb({queryManager:t,queryInfo:o,options:$e($e({},e),{fetchPolicy:"network-only"})});Rt(a.queryId===n),o.setObservableQuery(a),r.set(n,a)})),!1!==globalThis.__DEV__&&n.size&&n.forEach((function(e,t){e||!1!==globalThis.__DEV__&&Rt.warn("string"==typeof t?33:34,t)})),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach((function(n,o){var a=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==a&&"cache-only"!==a)&&r.push(n.refetch()),t.getQuery(o).setDiff(null)})),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,o=e.errorPolicy,a=void 0===o?"none":o,i=e.variables,s=e.context,u=void 0===s?{}:s;r=this.transform(r),i=this.getVariables(r,i);var l=function(e){return t.getObservableFromLink(r,u,e).map((function(o){"no-cache"!==n&&(Ab(o,a)&&t.cache.write({query:r,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var i=st(o),s=Ut(o);if(i||s){var u={};if(i&&(u.graphQLErrors=o.errors),s&&(u.protocolErrors=o.extensions[Ct]),"none"===a||s)throw new We(u)}return"ignore"===a&&delete o.errors,o}))};if(this.getDocumentInfo(r).hasClientExports){var c=this.localState.addExportedVariables(r,i,u).then(l);return new ir((function(e){var t=null;return c.then((function(r){return t=r.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return l(i)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,n){var o,a,i=this;void 0===n&&(n=null!==(o=null==t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var s=this.getDocumentInfo(e),u=s.serverQuery,l=s.clientQuery;if(u){var c=this.inFlightLinkObservables,p=this.link,d={query:u,variables:r,operationName:jt(u)||void 0,context:this.prepareContext($e($e({},t),{forceFetch:!n}))};if(t=d.context,n){var f=nt(u),h=re(r),m=c.lookup(f,h);if(!(a=m.observable)){var y=new X([lg(p,d)]);a=m.observable=y,y.beforeNext((function(){c.remove(f,h)}))}}else a=new X([lg(p,d)])}else a=new X([ir.of({data:{}})]),t=this.prepareContext(t);return l&&(a=te(a,(function(e){return i.localState.runResolvers({document:l,remoteResult:e,context:t,variables:r})}))),a},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(r.query);return te(this.getObservableFromLink(o,r.context,r.variables),(function(a){var i=ct(a),s=i.length>0;if(n>=e.lastRequestId){if(s&&"none"===r.errorPolicy)throw e.markError(new We({graphQLErrors:i}));e.markResult(a,o,r,t),e.markReady()}var u={data:a.data,loading:!1,networkStatus:ab.ready};return s&&"ignore"!==r.errorPolicy&&(u.errors=i,u.networkStatus=ab.error),u}),(function(t){var r=_t(t)?t:new We({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r}))},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var o=this;void 0===r&&(r=ab.loading),void 0===n&&(n=t.query);var a,i,s=this.getVariables(n,t.variables),u=this.getQuery(e),l=this.defaultOptions.watchQuery,c=t.fetchPolicy,p=void 0===c?l&&l.fetchPolicy||"cache-first":c,d=t.errorPolicy,f=void 0===d?l&&l.errorPolicy||"none":d,h=t.returnPartialData,m=void 0!==h&&h,y=t.notifyOnNetworkStatusChange,g=void 0!==y&&y,v=t.context,b=Object.assign({},t,{query:n,variables:s,fetchPolicy:p,errorPolicy:f,returnPartialData:m,notifyOnNetworkStatusChange:g,context:void 0===v?{}:v}),_=function(e){b.variables=e;var n=o.fetchQueryByPolicy(u,b,r);return"standby"!==b.fetchPolicy&&n.sources.length>0&&u.observableQuery&&u.observableQuery.applyNextFetchPolicy("after-fetch",t),n},S=function(){return o.fetchCancelFns.delete(e)};
2if(this.fetchCancelFns.set(e,(function(e){S(),setTimeout((function(){return a.cancel(e)}))})),this.getDocumentInfo(b.query).hasClientExports)a=new X(this.localState.addExportedVariables(b.query,b.variables,b.context).then(_).then((function(e){return e.sources}))),i=!0;else{var w=_(b.variables);i=w.fromLink,a=new X(w.sources)}return a.promise.then(S,S),{concast:a,fromLink:i}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,o=e.optimistic,a=void 0!==o&&o,i=e.removeOptimistic,s=void 0===i?a?et("refetchQueries"):void 0:i,u=e.onQueryUpdated,l=new Map;n&&this.getObservableQueries(n).forEach((function(e,r){l.set(r,{oq:e,lastDiff:t.getQuery(r).getDiff()})}));var c=new Map;return r&&this.cache.batch({update:r,optimistic:a&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof Tb&&e.watcher.observableQuery;if(n){if(u){l.delete(n.queryId);var o=u(n,t,r);return!0===o&&(o=n.refetch()),!1!==o&&c.set(n,o),o}null!==u&&l.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),l.size&&l.forEach((function(e,r){var n,o=e.oq,a=e.lastDiff,i=e.diff;if(u){if(!i){var s=o.queryInfo;s.reset(),i=s.getDiff()}n=u(o,i,a)}u&&!0!==n||(n=o.refetch()),!1!==n&&c.set(o,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)})),s&&this.cache.removeOptimistic(s),c},e.prototype.fetchQueryByPolicy=function(e,t,r){var n=this,o=t.query,a=t.variables,i=t.fetchPolicy,s=t.refetchWritePolicy,u=t.errorPolicy,l=t.returnPartialData,c=t.context,p=t.notifyOnNetworkStatusChange,d=e.networkStatus;e.init({document:o,variables:a,networkStatus:r});var f=function(){return e.getDiff()},h=function(t,r){void 0===r&&(r=e.networkStatus||ab.loading);var i=t.result;!1===globalThis.__DEV__||l||Lt(i,{})||wb(t.missing);var s=function(e){return ir.of($e({data:e,loading:cb(r),networkStatus:r},t.complete?null:{partial:!0}))};return i&&n.getDocumentInfo(o).hasForcedResolvers?n.localState.runResolvers({document:o,remoteResult:{data:i},context:c,variables:a,onlyRunForcedResolvers:!0}).then((function(e){return s(e.data||void 0)})):"none"===u&&r===ab.refetch&&Array.isArray(t.missing)?s(void 0):s(i)},m="no-cache"===i?0:r===ab.refetch&&"merge"!==s?1:2,y=function(){return n.getResultsFromLink(e,m,{query:o,variables:a,context:c,fetchPolicy:i,errorPolicy:u})},g=p&&"number"==typeof d&&d!==r&&cb(r);switch(i){default:case"cache-first":return(v=f()).complete?{fromLink:!1,sources:[h(v,e.markReady())]}:l||g?{fromLink:!0,sources:[h(v),y()]}:{fromLink:!0,sources:[y()]};case"cache-and-network":var v;return(v=f()).complete||l||g?{fromLink:!0,sources:[h(v),y()]}:{fromLink:!0,sources:[y()]};case"cache-only":return{fromLink:!1,sources:[h(f(),e.markReady())]};case"network-only":return g?{fromLink:!0,sources:[h(f()),y()]}:{fromLink:!0,sources:[y()]};case"no-cache":return g?{fromLink:!0,sources:[h(e.getDiff()),y()]}:{fromLink:!0,sources:[y()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Tb(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return $e($e($e({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}()})),qb=t((()=>{Z(),ht(),hg(),xt(),Gg(),Nb(),Ib(),Qt(),ye(),Db=!1,Fb=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw Bt(15);var r=e.uri,n=e.credentials,o=e.headers,a=e.cache,i=e.documentTransform,s=e.ssrMode,u=void 0!==s&&s,l=e.ssrForceFetchDelay,c=void 0===l?0:l,p=e.connectToDevTools,d=void 0===p?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1!==globalThis.__DEV__:p,f=e.queryDeduplication,h=void 0===f||f,m=e.defaultOptions,y=e.defaultContext,g=e.assumeImmutableResults,v=void 0===g?a.assumeImmutableResults:g,b=e.resolvers,_=e.typeDefs,S=e.fragmentMatcher,w=e.name,E=e.version,x=e.link;x||(x=r?new qg({uri:r,credentials:n,headers:o}):rg.empty()),this.link=x,this.cache=a,this.disableNetworkFetches=u||c>0,this.queryDeduplication=h,this.defaultOptions=m||Object.create(null),this.typeDefs=_,c&&setTimeout((function(){return t.disableNetworkFetches=!1}),c),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=pt,this.localState=new xb({cache:a,client:this,resolvers:b,fragmentMatcher:S}),this.queryManager=new jb({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:y,documentTransform:i,queryDeduplication:h,ssrMode:u,clientAwareness:{name:w,version:E},localState:this.localState,assumeImmutableResults:v,onBroadcast:d?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0}),d&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("object"==typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this}Db||!1===globalThis.__DEV__||(Db=!0,setTimeout((function(){if("undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,r=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?r="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(r="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),r&&!1!==globalThis.__DEV__&&Rt.log("Download the Apollo DevTools for a better development experience: %s",r)}}),1e4))},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform}
2,enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=ot(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=$e($e({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=ot(this.defaultOptions.query,e)),Rt("cache-and-network"!==e.fetchPolicy,16),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=$e($e({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=ot(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return lg(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach((function(e,t){r.push(t),n.push(e)}));var o=Promise.all(n);return o.queries=r,o.results=n,o.catch((function(e){!1!==globalThis.__DEV__&&Rt.debug(17,e)})),o},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}(),!1!==globalThis.__DEV__&&(Fb.prototype.getMemoryInternals=K)})),Ub=t((()=>{})),Bb=t((()=>{qb(),Ob(),pb(),Ub(),Ye(),lb(),ub(),hg(),Gg(),og(),ut(),hr()}));Z(),ht();var $b=e(Tt()),Vb=function(e){var t=e.client,r=e.children,n=Vt(),o=$b.useContext(n),a=$b.useMemo((function(){return $e($e({},o),{client:t||o.client})}),[o,t]);return Rt(a.client,46),$b.createElement(n.Provider,{value:a},r)},Wb=r((e=>{var t=n(),r=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var o,u={},l=null,c=null;for(o in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,o)&&!s.hasOwnProperty(o)&&(u[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===u[o]&&(u[o]=t[o]);return{$$typeof:r,type:e,key:l,ref:c,props:u,_owner:i.current}}e.Fragment=o,e.jsx=u,e.jsxs=u})),zb=r(((e,t)=>{t.exports=Wb()}));hr();var Qb=Hf.createContext(null),Hb=()=>(0,Hf.useContext)(Qb),Gb=(vr` 3 fragment UserContext on UserDescriptor { 4 id 5 language { 6 locale 7 } 8 currency { 9 code 10 } 11 user { 12 name 13 login 14 email 15 isSubscriber 16 hideImagesInSearchResults 17 alwaysShowFullDescriptions 18 canAccessAdminDashboard 19 canAccessSellersArea 20 canSeeSuperadminComponents 21 role 22 } 23 adminUser { 24 login 25 } 26 } 27`,new RegExp(["Failed to fetch dynamically imported module","Importing a module script failed","error loading dynamically imported module","Unable to preload CSS","Loading chunk [\\d]+ failed"].join("|")));function Kb(e){return new rg((function(t,r){return new ir((function(n){var o,a,i;try{o=r(t).subscribe({next:function(o){o.errors&&(i=e({graphQLErrors:o.errors,response:o,operation:t,forward:r}))?a=i.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}):n.next(o)},error:function(o){(i=e({operation:t,networkError:o,graphQLErrors:o&&o.result&&o.result.errors,forward:r}))?a=i.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}):n.error(o)},complete:function(){i||n.complete.bind(n)()}})}catch(s){e({networkError:s,operation:t,forward:r}),n.error(s)}return function(){o&&o.unsubscribe(),a&&o.unsubscribe()}}))}))}Z(),Qt(),hg();!function(e){function t(t){var r=e.call(this)||this;return r.link=Kb(t),r}or(t,e),t.prototype.request=function(e,t){return this.link.request(e,t)}}(rg);var Yb=r(((e,t)=>{t.exports=e=>{const t=typeof e;return null!==e&&("object"===t||"function"===t)}}));function Jb(e){return e.query.definitions.find((e=>"OperationDefinition"===e.kind))}var Xb=e(r(((e,t)=>{var r=Yb(),n=new Set(["__proto__","prototype","constructor"]);function o(e){const t=e.split("."),r=[];for(let n=0;n<t.length;n++){let e=t[n];for(;"\\"===e[e.length-1]&&void 0!==t[n+1];)e=e.slice(0,-1)+".",e+=t[++n];r.push(e)}return r.some((e=>n.has(e)))?[]:r}t.exports={get(e,t,n){if(!r(e)||"string"!=typeof t)return void 0===n?e:n;const a=o(t);if(0!==a.length){for(let t=0;t<a.length;t++)if(null==(e=e[a[t]])){if(t!==a.length-1)return n;break}return void 0===e?n:e}},set(e,t,n){if(!r(e)||"string"!=typeof t)return e;const a=e,i=o(t);for(let o=0;o<i.length;o++){const t=i[o];r(e[t])||(e[t]={}),o===i.length-1&&(e[t]=n),e=e[t]}return a},delete(e,t){if(!r(e)||"string"!=typeof t)return!1;const n=o(t);for(let o=0;o<n.length;o++){const t=n[o];if(o===n.length-1)return delete e[t],!0;if(e=e[t],!r(e))return!1}},has(e,t){if(!r(e)||"string"!=typeof t)return!1;const n=o(t);if(0===n.length)return!1;for(let o=0;o<n.length;o++){if(!r(e))return!1;if(!(n[o]in e))return!1;e=e[n[o]]}return!0}}}))());function Zb(e,t){const r=t.attachBreadcrumbs,n=Jb(e),o={},a=t.uri;a&&(o.url=a);const i=n.name?.value;i&&(o.operationName=i),r.includeQuery&&(o.query=n.loc?.source?.body??gr(n)),r.includeVariables&&(o.variables=e.variables),r.includeCache&&(o.cache=e.getContext().cache?.data?.data??void 0);const s=r.includeContext;return s&&(o.context=function(e,t){const r={};return t.forEach((t=>{r[t]=Xb.default.get(e,t)})),r}(e.getContext(),s)),{type:"http",category:`graphql.${n.operation}`,data:o}}yr();var e_=r(((e,t)=>{var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function a(e,t,r){return e.concat(t).map((function(e){return o(e,r)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function s(e,t){try{return t in e}catch(r){return!1}}function u(e,t,r){var n={};return r.isMergeableObject(e)&&i(e).forEach((function(t){n[t]=o(e[t],r)})),i(t).forEach((function(a){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,a)||(s(e,a)&&r.isMergeableObject(t[a])?n[a]=function(e,t){if(!t.customMerge)return l;var r=t.customMerge(e);return"function"==typeof r?r:l}(a,r)(e[a],t[a],r):n[a]=o(t[a],r))})),n}function l(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=o;var i=Array.isArray(t);return i!==Array.isArray(e)?o(t,n):i?n.arrayMerge(e,t,n):u(e,t,n)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return l(e,r,t)}),{})};var c=l;t.exports=c})),t_=e(e_()),r_={shouldHandleOperation:void 0,uri:void 0,setTransaction:!0,setFingerprint:!0,attachBreadcrumbs:{includeQuery:!1,includeVariables:!1,includeFetchResult:!1,includeError:!1,includeCache:!1,includeContext:!1,transform:void 0}};function n_(e){return JSON.stringify(e,null,2)}function o_(e,t,r){const n=r.attachBreadcrumbs&&"function"==typeof r.attachBreadcrumbs.transform?r.attachBreadcrumbs.transform(t,e):t;n.data=function(e){const t={};for(const[r,n]of Object.entries(e))t[r]="object"==typeof n?n_(n):n;return t}(n.data),Bi(n)}function a_(e){return a_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a_(e)}function i_(e){var t=function(e,t){if("object"!=a_(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a_(t)?t:t+""}function s_(e,t,r){return(t=i_(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Bb(),Y();var u_=class extends rg{constructor(e={}){super(),s_(this,"options",void 0),this.options=function(e){return(0,t_.default)(r_,e)}(e)}request(e,t){const r=this.options;if(!(r.shouldHandleOperation?.(e)??1))return t(e);r.setTransaction&&function(e){const t=Jb(e).name;t&&na().setTransactionName(t.value)}(e),r.setFingerprint&&function(e){const t=Jb(e).name;t&&na().setFingerprint(["{{ default }}",t.value])}(e);const n=r.attachBreadcrumbs,o=n?Zb(e,r):void 0;return new ir((a=>{const i=t(e).subscribe({next:e=>{n&&(o.level=function(e){return e.errors&&e.errors.length>0?"error":"info"}(e),n.includeFetchResult&&(o.data.fetchResult=e),n.includeError&&e.errors&&e.errors.length>0&&(o.data.error=new We({graphQLErrors:e.errors}))),a.next(e)}
27,complete:()=>{n&&o_(e,o,r),a.complete()},error:t=>{if(n){let a;if(o.level="error",function(e){return"object"==typeof e&&null!==e&&"response"in e&&"result"in e&&"statusCode"in e}(t)){const{result:e,response:r,...i}=t;a=i,n.includeFetchResult&&(o.data.fetchResult=e)}else a=t;n.includeError&&(o.data.error=a),o_(e,o,r)}a.error(t)}});return()=>{i.unsubscribe()}}))}};var l_=e=>"fetch"===e.category&&(e.data?.url??"").includes("/graphql")?null:e;qb(),pg(),Hg(),sb();var c_={merge:(e,t,{mergeObjects:r})=>r(e,t)},p_=new ob({possibleTypes:{SiteContent:["SiteContentWithMenu","SiteContentWithoutMenu"]},typePolicies:{AdInventory:{keyFields:["rec_num"]},Catalogue:{keyFields:["rec_num"]},Showcase:{fields:{state:c_,myItems:c_},AvailableShowcasePaymentMethod:{keyFields:["value"]}},ShowcaseOfSeller:{fields:{showcaseSellerStatsSummary:c_}},ShowcaseItem:{fields:{tags:{merge:(e,t)=>t},status:c_,price:c_,images:c_}},ShowcaseItemPaginator:{keyFields:!1},ShowcaseState:{keyFields:!1},MoneyAmount:{keyFields:!1},ShowcaseItemStatus:{keyFields:!1},ShowcaseStatsSummary:{keyFields:!1},ShowcaseStatsForItem:{keyFields:!1},ShowcaseStatsForDate:{keyFields:!1},ShowcaseStats:{keyFields:!1},ShowcaseStat:{keyFields:!1}}});function d_(e,t=null){const r=t||new qg({uri:"/graphql",credentials:"include",headers:{...T}}),n=new u_({setFingerprint:!1,setTransaction:!1,attachBreadcrumbs:{includeQuery:!0,includeVariables:!0,includeError:!0}}),o=Kb(e);return new Fb({cache:p_,link:ug([n,o,r])})}var f_=Hf.createContext(),h_=Hf.createContext(),m_=()=>(0,Hf.useContext)(f_),y_=()=>(0,Hf.useContext)(h_),g_=zb(),v_=({clientCreationFunction:e,authErrorRedirectUrl:t,children:r})=>{const{onAddError:n}=y_();return(0,g_.jsx)(Vb,{client:e((({operation:e,graphQLErrors:r})=>{const o=yh(e.query.definitions,{operation:"mutation"}),a=!e.getContext()?.hideFeError;o?a&&!r?.[0]?.extensions?.validation&&n("genericPostError"):yh(r,(function({message:e}){return"This action is unauthorized."===e||e.startsWith("You are not authorized to access ")}))?t&&t!==window.location.pathname?window.location.assign(t):window.location.reload():a&&n("genericGetError")})),children:r})},b_=e(B()),__={},S_=function(e,t,r){let n=Promise.resolve();if(t&&t.length>0){const e=document.getElementsByTagName("link"),r=document.querySelector("meta[property=csp-nonce]"),a=r?.nonce||r?.getAttribute("nonce");o=t.map((t=>{var r;if(t=function(e){return"https://cdn.vialibri.net/static/"+e}(t),r=t,(t=import.meta.resolve?import.meta.resolve(r):new URL(r,import.meta.url).href)in __)return;__[t]=!0;const n=t.endsWith(".css");for(let a=e.length-1;a>=0;a--){const r=e[a];if(r.href===t&&(!n||"stylesheet"===r.rel))return}const o=document.createElement("link");return o.rel=n?"stylesheet":"modulepreload",n||(o.as="script"),o.crossOrigin="",o.href=t,a&&o.setAttribute("nonce",a),document.head.appendChild(o),n?new Promise(((e,r)=>{o.addEventListener("load",e),o.addEventListener("error",(()=>r(new Error(`Unable to preload CSS for ${t}`))))})):void 0})),n=Promise.all(o.map((e=>Promise.resolve(e).then((e=>({status:"fulfilled",value:e})),(e=>({status:"rejected",reason:e}))))))}var o;function a(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return n.then((t=>{for(const e of t||[])"rejected"===e.status&&a(e.reason);return e().catch(a)}))},w_="XX",E_="VIALIBRI-LIBRARY-QUERY",x_=e=>new Promise((t=>setTimeout(t,e))),k_=e=>{let t={},r=0;return n=>{r+=1;const o=JSON.stringify(n);if(t[o])return Promise.resolve(t[o]);{let a=r;return x_(400).then((()=>r!==a?void 0:e(n).then((e=>(t[o]=e,e)))))}}},T_=e=>{return t=e.map((e=>e.code)),r=e.map((e=>`${e.code} (${e.symbol})`)),function(e,t,r){for(var n=-1,o=e.length,a=t.length,i={};++n<o;){var s=n<a?t[n]:void 0;r(i,e[n],s)}return i}(t||[],r||[],I);var t,r},O_=(e,t)=>v(t,(function(t){return t.code===e}))?.symbol||"$",I_=["first_edition","signed","dust_jacket","has_image","exclude_paperbacks","exclude_isbns","exclude_pods"],C_=(e,t)=>(e.price_min&&(e.price_min=t(e.price_min)),e.price_max&&(e.price_max=t(e.price_max)),e),R_=e=>{(e=Object.assign({},e)).apply_exclusion_string_to_fields=e.apply_exclusion_string_to_fields?e.apply_exclusion_string_to_fields.join("."):"all_text",e=C_(e,(e=>e/100));for(let t of I_)e[t]&&(e[t]=["true"]);return e.listing_type&&2===e.listing_type.length&&delete e.listing_type,delete e.page,e},A_=(e,t)=>
27{e=Object.assign({},e),t&&(e=dh(e,["title","author","all_text"])),e=C_(e,(e=>100*e));for(let r of I_)uh(e[r],["true"])&&(e[r]=!0);return e.dealer_country_code&&e.dealer_country_code.length&&"string"!=typeof e.dealer_country_code[0]&&(e.dealer_country_code=e.dealer_country_code.map((e=>e.value))),e},P_=e=>(e=Object.assign({},e),delete(e=C_(e,(e=>e/100))).page,e),M_=e=>(e=Object.assign({},e),(e=C_(e,(e=>100*e))).is_exclusive||delete e.is_exclusive,e),j_=e=>{if(0!==Object.entries(e).length)return e;try{const e=JSON.parse(localStorage.getItem(E_));if(null!==e&&0!==Object.entries(e).length)return e}catch(t){}return{}},D_=({id:e,values:t,fromHistory:r})=>{r||(e=>{try{localStorage.setItem(E_,JSON.stringify(e))}catch(t){}})(t);const n=ph({library_id:e,author:t.author,title:t.title,all_text:t.all_text,from_history:r}),o=new URLSearchParams(n).toString();window.open(`/library-search/search?${o}`)},F_=e=>{const t=ph(e,((e,t)=>["title","author","publisher","all_text"].includes(t)));return Object.keys(t).map((t=>e[t])).join(", ")},L_=e=>{const t=new URL(window.location.href).searchParams.get(e);return t||!1},N_=e=>{let t=L_("return-to");return t&&"/"===t.charAt(0)&&"/"!==t.charAt(1)?t:e},q_=e=>new Intl.NumberFormat("en-US").format(e),U_=e=>{const t=new Date(e)-new Date,r=Math.floor(t/1e3/60/60/24),n=Math.floor(t/1e3/60/60-24*r);return ph({days:r,hours:n,minutes:Math.floor(t/1e3/60-24*r*60-60*n)})},B_=(e,t,r=!1)=>{if(1===e.length)return e[0];{const n=[];for(let r=0;r<e.length;r++)n.push(e[r]),r<e.length-2?n.push(", "):r===e.length-2&&n.push(" "+t+" ");return r?n.join(""):n}},$_=({dealer_country_code:e},t,r)=>{if(e){let n=[...e];const o=hh(n,(e=>e===w_)),a=t("or");let i=n.filter((e=>r[e])).map((e=>r[e])).sort();return o.length>0&&i.push(t("an unknown location")),i.length>0?t("Dealers in:")+" "+B_(i,a,!0):""}},V_=(e,t,r)=>{const n={first_edition:t("First Edition"),dust_jacket:t("Dust jacket"),signed:t("Signed"),exclude_paperbacks:t("No paperbacks"),exclude_pods:t("No PoDs"),exclude_isbns:t("No ISBNs"),dealer_country_code:$_(e,t,r),has_image:t("With image")};let o=Object.keys(e).filter((e=>e in n)).map((e=>n[e]));return e.listing_type&&!e.listing_type.includes("auction")&&o.push(t("Exclude auctions")),o.join(", ")},W_=(e,t)=>()=>{window.confirm(e)&&t()};function z_(e){return(t,r)=>(e.includes(t)?e.indexOf(t):9999)-(e.includes(r)?e.indexOf(r):9999)}var Q_="REQUEST_SEARCH_STATUS",H_="RECEIVE_SEARCH_STATUS",G_="SET_FACET_SELECTION",K_="SET_FACET_SUBVALUE",Y_="UPDATE_SEARCH_FROM_FACETS",J_="HIDE_LIBRISTAT",X_="ADD_ERROR",Z_="DISMISS_ERROR",eS="UPDATE_LIBRARY_SEARCH_VALUES",tS="REQUEST_LIBRARY_SEARCH_HISTORY_DELETION",rS="REQUEST_USER_SETTINGS_UPDATE",nS="REQUEST_WANT_DELETION",oS="RECEIVE_WANT_DELETION",aS="REQUEST_WANT_NOTE_UPDATE",iS="REQUEST_WANT_NOTIFICATIONS_UPDATE",sS="WINDOW_WIDTH_CHANGED",uS=(e,t,r)=>({type:G_,facetGroup:e,keys:t,selected:r}),lS=(e,t,r)=>({type:K_,facetGroup:e,key:t,value:r}),cS=e=>({type:X_,key:e}),pS=({author:e,title:t,all_text:r})=>({type:eS,author:e,title:t,all_text:r}),dS=e=>({type:sS,width:e}),fS=(e,t,r=null)=>k(e,(e=>t(cS(e))),r),hS=(e,t,r=null)=>E(e,(e=>t(cS(e))),r),mS=async e=>{if(e){const t=await e.json();if(void 0!==t.redirect)return window.location.assign(t.redirect),new Promise((()=>{}))}},yS=(e,t,r=null)=>n=>(r&&(n=r(n)),fS(e,t,n).then(mS).catch((e=>{if(w(e))return e.response.json().then((e=>({[Ry]:e.form_errors.overall,...e.form_errors.fields})));throw e}))),gS=async(e,t,r,n,o=1)=>{let a=!1;try{const o=await fetch(e,{headers:{Authorization:"Bearer "+t}});200===o.status?a=!0:o.status>=400?r():n((await o.json()).data)}catch(zw){r()}if(!a)return await x_(o<20?333:1e3),gS(e,t,r,n,o+1)},vS=(e,t,r)=>async(n,o)=>{n((e=>({type:Q_,id:e}))(e));const a=r+"1/searches/"+e+"/status";await gS(a,t,(()=>n(cS("genericGetError"))),(t=>n(((e,t)=>({type:H_,id:e,data:t}))(e,t)))),window.location.reload()},bS=()=>(e,t)=>{e({type:J_}),fS("/account/hide-libristat",e)},_S=()=>(e,t)=>{fS("/account/subscription/cancel",e).then(mS)},SS=()=>(e,t)=>{fS("/searches/reset-form-values",e)},wS=e=>(t,r)=>{t(((e=null)=>({type:tS,id:e}))(e));return hS("/library-search/history"+(e?`/${e}`:""),t).then((r=>{t((e=>({type:"RECEIVE_LIBRARY_SEARCH_HISTORY_DELETION",id:e}))(e))}))},ES=e=>(t,r)=>(t((e=>({type:rS,newValues:e}))(e)),fS("/account/settings",t,e).then((e=>{t({type:"RECEIVE_USER_SETTINGS_UPDATE"})}))),xS=e=>(t,r)=>{const n=r().userSettings.library_search_favourites||[],o=n.includes(e)?gh(n,e):function(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return d(p(r)?_(r):[r],b(t,1))}(n,e);return t(ES({library_search_favourites:o}))},kS=e=>(t,r)=>(t((e=>({type:nS,id:e}))(e)),hS("/wants/"+e,t).then((()=>{t((e=>({type:oS,id:e}))(e))}))),TS=(e,t,r,n)=>(o,a)=>(o(r),fS("/wants/"+e,o,t).then((()=>{o(n)}))),OS=(e,t)=>TS(e,{note:t},((e,t)=>({type:aS,id:e,newValue:t}))(e,t),(e=>({type:"RECEIVE_WANT_NOTE_UPDATE",id:e}))(e)),IS=(e,t)=>TS(e,{notifications:t},((e,t)=>({type:iS,id:e,newValue:t}))(e,t),(e=>({type:"RECEIVE_WANT_NOTIFICATIONS_UPDATE",id:e}))(e)),CS=(e,t=!1)=>Object.keys(ph(e,(e=>t?!e.selected:e.selected))),RS=e=>e.sort().join(".")||void 0,AS=()=>(e,t)=>{const{searchData:{queryString:r,queryStringOrder:n,facets:o,displayCurrency:a}}=t(),i=by.default.parse(r);i.year_min=o.year.min||void 0,i.year_max=o.year.max||void 0,i.price_min=o.price.min||void 0,i.price_max=o.price.max||void 0;const s=CS(o.aggregators,!1),u=CS(o.aggregators,!0);delete i.aggregators,delete i.exclude_aggregators,u.length>0&&s.length>0&&(u.length<s.length?i.exclude_aggregators=RS(u):i.aggregators=RS(s)),i.dealer_country_code=RS(CS(o.dealer_country_code)),i.listing_type=o.features.exclude_auctions.selected?"used":void 0;for(let[l,c]of Object.entries(o.features))"exclude_auctions"!==l&&(i[l]=c.selected?"true":void 0);i.currency||!i.price_min&&!i.price_max||(i.currency=a.code),e({type:Y_}),window.location.assign("?"+by.default.stringify(i,{sort:z_(n)}))},PS={displayed:{}},MS={author:"",title:"",all_text:""},jS={},DS={},FS=(e,t,r,n)=>{let o=sh(r.map((e=>[e,{selected:{$set:n}}])));return(0,vy.default)(e,{facets:{[t]:o}})},LS={},NS={},qS=(e,t,r)=>
27(0,vy.default)(e,{[g(e,["id",t])]:{$merge:r}}),US={VIEW:"view",ENGAGEMENT:"engagement"},BS=520,$S=720,VS=1001,WS={PACKAGED:"packaged",COMMISSION:"commission"},zS={},QS={constants:(e=Dm,t)=>(t.type,e),errors:(e=PS,t)=>{switch(t.type){case X_:return(0,vy.default)(e,{displayed:{$set:{[t.key]:!0}}});case Z_:return(0,vy.default)(e,{displayed:{$unset:[t.key]}});default:return e}},librarySearch:(e=MS,t)=>t.type===eS?(0,vy.default)(e,{author:{$set:t.author},title:{$set:t.title},all_text:{$set:t.all_text}}):e,librarySearchHistory:(e=jS,t)=>t.type===tS?t.id?ah(e,(e=>e.id!==t.id)):[]:e,searchData:(e=DS,t)=>{switch(t.type){case Q_:return(0,vy.default)(e,{fetching:{$set:!0}});case H_:return(0,vy.default)(e,{started:{$set:t.data.started},complete:{$set:t.data.complete},aggregatorStatus:{$set:t.data.aggregator_status},fetching:{$set:!1}});case J_:return(0,vy.default)(e,{libristatData:{$set:!1}});case G_:{let i=FS(e,t.facetGroup,t.keys,t.selected);return"aggregators"===t.facetGroup&&(r=i.facets.aggregators,n="selected",a=p(r)?rh:nh,o&&A(r,n,o)&&(n=void 0),a(r,L(n,3)))&&(i=FS(i,"aggregators",Object.keys(i.facets.aggregators),!1)),i}case K_:return(0,vy.default)(e,{facets:{[t.facetGroup]:{[t.key]:{$set:t.value}}}});case Y_:return(0,vy.default)(e,{updating:{$set:!0}});default:return e}var r,n,o,a},userSettings:(e=LS,t)=>t.type===rS?(0,vy.default)(e,{$merge:t.newValues}):e,wants:(e=NS,t)=>{switch(t.type){case nS:return qS(e,t.id,{deleting:!0});case oS:return(0,vy.default)(e,{$splice:[[g(e,["id",t.id]),1]]});case aS:return qS(e,t.id,{note:t.newValue});case iS:return qS(e,t.id,{notifications:t.newValue});default:return e}},windowWidth:(e=zS,t)=>{if(t.type===sS){let r=3;return t.width<=$S?r=1:t.width<VS&&(r=2),{...e,width:t.width,isNarrow:t.width<=BS,columnCount:r}}return e}},HS=Hf.createContext(null);var GS=function(e){e()},KS=function(){return GS};var YS={notify:function(){},get:function(){return[]}};function JS(e,t){var r,n=YS;function o(){i.onStateChange&&i.onStateChange()}function a(){var a,i,s;r||(r=t?t.addNestedSub(o):e.subscribe(o),a=KS(),i=null,s=null,n={clear:function(){i=null,s=null},notify:function(){a((function(){for(var e=i;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],t=i;t;)e.push(t),t=t.next;return e},subscribe:function(e){var t=!0,r=s={callback:e,next:null,prev:s};return r.prev?r.prev.next=r:i=r,function(){t&&null!==i&&(t=!1,r.next?r.next.prev=r.prev:s=r.prev,r.prev?r.prev.next=r.next:i=r.next)}}})}var i={addNestedSub:function(e){return a(),n.subscribe(e)},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(r)},trySubscribe:a,tryUnsubscribe:function(){r&&(r(),r=void 0,n.clear(),n=YS)},getListeners:function(){return n}};return i}var XS="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?Hf.useLayoutEffect:Hf.useEffect;function ZS(e){var t=e.store,r=e.context,n=e.children,o=(0,Hf.useMemo)((function(){return{store:t,subscription:JS(t)}}),[t]),a=(0,Hf.useMemo)((function(){return t.getState()}),[t]);XS((function(){var e=o.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[o,a]);var i=r||HS;return Hf.createElement(i.Provider,{value:o},n)}var ew=r((e=>{var t=60103,r=60106,n=60107,o=60108,a=60114,i=60109,s=60110,u=60112,l=60113,c=60120,p=60115,d=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;t=f("react.element"),r=f("react.portal"),n=f("react.fragment"),o=f("react.strict_mode"),a=f("react.profiler"),i=f("react.provider"),s=f("react.context"),u=f("react.forward_ref"),l=f("react.suspense"),c=f("react.suspense_list"),p=f("react.memo"),d=f("react.lazy"),f("react.block"),f("react.server.block"),f("react.fundamental"),f("react.debug_trace_mode"),f("react.legacy_hidden")}e.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case n:case a:case o:case l:case c:return e;default:switch(e=e&&e.$$typeof){case s:case u:case d:case p:case i:return e;default:return f}}case r:return f}}}(e)===s}})),tw=r(((e,t)=>{t.exports=ew()}))(),rw=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],nw=["reactReduxForwardedRef"],ow=[],aw=[null,null];function iw(e,t){var r=e[1];return[t.payload,r+1]}function sw(e,t,r){XS((function(){return e.apply(void 0,t)}),r)}function uw(e,t,r,n,o,a,i){e.current=n,t.current=o,r.current=!1,a.current&&(a.current=null,i())}function lw(e,t,r,n,o,a,i,s,u,l){if(e){var c=!1,p=null,d=function(){if(!c){var e,r,d=t.getState();try{e=n(d,o.current)}catch(f){r=f,p=f}r||(p=null),e===a.current?i.current||u():(a.current=e,s.current=e,i.current=!0,l({type:"STORE_UPDATED",payload:{error:r}}))}};return r.onStateChange=d,r.trySubscribe(),d(),function(){if(c=!0,r.tryUnsubscribe(),r.onStateChange=null,p)throw p}}}var cw=function(){return[null,0]};function pw(e,t){void 0===t&&(t={});var r=t,n=r.getDisplayName,o=void 0===n?function(e){return"ConnectAdvanced("+e+")"}:n,a=r.methodName,i=void 0===a?"connectAdvanced":a,s=r.renderCountProp,u=void 0===s?void 0:s,l=r.shouldHandleStateChanges,c=void 0===l||l,p=r.storeKey,d=void 0===p?"store":p;r.withRef;var f=r.forwardRef,h=void 0!==f&&f,m=r.context,y=void 0===m?HS:m,g=z(r,rw),v=y;return function(t){var r=t.displayName||t.name||"Component",n=o(r),a=W({},g,{getDisplayName:o,methodName:i,renderCountProp:u,shouldHandleStateChanges:c,storeKey:d,displayName:n,wrappedComponentName:r,WrappedComponent:t}),s=g.pure;var l=s?Hf.useMemo:function(e){return e()};function p(r){var n=(0,Hf.useMemo)((function(){var e=r.reactReduxForwardedRef,t=z(r,nw);return[r.context,e,t]}),[r]),o=n[0],i=n[1],s=n[2],u=(0,Hf.useMemo)((function(){return o&&o.Consumer&&(0,tw.isContextConsumer)(Hf.createElement(o.Consumer,null))?o:v}),[o,v]),p=(0,Hf.useContext)(u),d=Boolean(r.store)&&Boolean(r.store.getState)&&Boolean(r.store.dispatch);Boolean(p)&&Boolean(p.store);var f=d?r.store:p.store,h=(0,Hf.useMemo)((function(){return function(t){return e(t.dispatch,a)}(f)}),[f]),m=(0,Hf.useMemo)((function(){if(!c)return aw;var e=JS(f,d?null:p.subscription);return[e,e.notifyNestedSubs.bind(e)]}),[f,d,p]),y=m[0],g=m[1],b=(0,Hf.useMemo)((function(){return d?p:W({},p,{subscription:y})}),[d,p,y]),_=(0,Hf.useReducer)(iw,ow,cw),S=_[0][0],w=_[1];if(S&&S.error)throw S.error;var E=(0,Hf.useRef)(),x=(0,Hf.useRef)(s),k=(0,Hf.useRef)(),T=(0,Hf.useRef)(!1),O=l((function(){return k.current&&s===x.current?k.current:h(f.getState(),s)}),[f,S,s]);sw(uw,[x,E,T,s,O,k,g]),sw(lw,[c,f,y,h,x,E,T,k,g,w],[f,y,h]);var I=(0,Hf.useMemo)((function(){return Hf.createElement(t,W({},O,{ref:i}))}),[i,t,O]);return(0,Hf.useMemo)((function(){return c?Hf.createElement(u.Provider,{value:b},I):I}),[u,I,b])}
vendor: 5,031 bytes, line 27
27var f=s?Hf.memo(p):p;if(f.WrappedComponent=t,f.displayName=p.displayName=n,h){var m=Hf.forwardRef((function(e,t){return Hf.createElement(f,W({},e,{reactReduxForwardedRef:t}))}));return m.displayName=n,m.WrappedComponent=t,(0,Yf.default)(m,t)}return(0,Yf.default)(f,t)}}function dw(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function fw(e,t){if(dw(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=0;o<r.length;o++)if(!Object.prototype.hasOwnProperty.call(t,r[o])||!dw(e[r[o]],t[r[o]]))return!1;return!0}function hw(e){return function(t,r){var n=e(t,r);function o(){return n}return o.dependsOnOwnProps=!1,o}}function mw(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function yw(e,t){return function(t,r){r.displayName;var n=function(e,t){return n.dependsOnOwnProps?n.mapToProps(e,t):n.mapToProps(e)};return n.dependsOnOwnProps=!0,n.mapToProps=function(t,r){n.mapToProps=e,n.dependsOnOwnProps=mw(e);var o=n(t,r);return"function"==typeof o&&(n.mapToProps=o,n.dependsOnOwnProps=mw(o),o=n(t,r)),o},n}}var gw=[function(e){return"function"==typeof e?yw(e):void 0},function(e){return e?void 0:hw((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?hw((function(t){return function(e,t){var r={},n=function(n){var o=e[n];"function"==typeof o&&(r[n]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)n(o);return r}(e,t)})):void 0}];var vw=[function(e){return"function"==typeof e?yw(e):void 0},function(e){return e?void 0:hw((function(){return{}}))}];function bw(e,t,r){return W({},r,e,t)}var _w=[function(e){return"function"==typeof e?function(e){return function(t,r){r.displayName;var n,o=r.pure,a=r.areMergedPropsEqual,i=!1;return function(t,r,s){var u=e(t,r,s);return i?o&&a(u,n)||(n=u):(i=!0,n=u),n}}}(e):void 0},function(e){return e?void 0:function(){return bw}}],Sw=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function ww(e,t,r,n){return function(o,a){return r(e(o,a),t(n,a),a)}}function Ew(e,t,r,n,o){var a,i,s,u,l,c=o.areStatesEqual,p=o.areOwnPropsEqual,d=o.areStatePropsEqual,f=!1;function h(o,f){var h,m,y=!p(f,i),g=!c(o,a,f,i);return a=o,i=f,y&&g?(s=e(a,i),t.dependsOnOwnProps&&(u=t(n,i)),l=r(s,u,i)):y?(e.dependsOnOwnProps&&(s=e(a,i)),t.dependsOnOwnProps&&(u=t(n,i)),l=r(s,u,i)):g?(h=e(a,i),m=!d(h,s),s=h,m&&(l=r(s,u,i)),l):l}return function(o,c){return f?h(o,c):(s=e(a=o,i=c),u=t(n,i),l=r(s,u,i),f=!0,l)}}function xw(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,o=t.initMergeProps,a=z(t,Sw),i=r(e,a),s=n(e,a),u=o(e,a);return(a.pure?Ew:ww)(i,s,u,e,a)}var kw=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function Tw(e,t,r){for(var n=t.length-1;n>=0;n--){var o=t[n](e);if(o)return o}return function(t,n){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+n.wrappedComponentName+".")}}function Ow(e,t){return e===t}function Iw(e){var t=void 0===e?{}:e,r=t.connectHOC,n=void 0===r?pw:r,o=t.mapStateToPropsFactories,a=void 0===o?vw:o,i=t.mapDispatchToPropsFactories,s=void 0===i?gw:i,u=t.mergePropsFactories,l=void 0===u?_w:u,c=t.selectorFactory,p=void 0===c?xw:c;return function(e,t,r,o){void 0===o&&(o={});var i=o,u=i.pure,c=void 0===u||u,d=i.areStatesEqual,f=void 0===d?Ow:d,h=i.areOwnPropsEqual,m=void 0===h?fw:h,y=i.areStatePropsEqual,g=void 0===y?fw:y,v=i.areMergedPropsEqual,b=void 0===v?fw:v,_=z(i,kw),S=Tw(e,a,"mapStateToProps"),w=Tw(t,s,"mapDispatchToProps"),E=Tw(r,l,"mergeProps");return n(p,W({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:S,initMapDispatchToProps:w,initMergeProps:E,pure:c,areStatesEqual:f,areOwnPropsEqual:m,areStatePropsEqual:g,areMergedPropsEqual:b},_))}}var Cw=Iw();function Rw(){return(0,Hf.useContext)(HS)}function Aw(e){void 0===e&&(e=HS);var t=e===HS?Rw:function(){return(0,Hf.useContext)(e)};return function(){return t().store}}var Pw=Aw();function Mw(e){void 0===e&&(e=HS);var t=e===HS?Pw:Aw(e);return function(){return t().dispatch}}var jw=Mw(),Dw=function(e,t){return e===t};function Fw(e){void 0===e&&(e=HS);var t=e===HS?Rw:function(){return(0,Hf.useContext)(e)};return function(e,r){void 0===r&&(r=Dw);var n=t(),o=function(e,t,r,n){var o,a=(0,Hf.useReducer)((function(e){return e+1}),0)[1],i=(0,Hf.useMemo)((function(){return JS(r,n)}),[r,n]),s=(0,Hf.useRef)(),u=(0,Hf.useRef)(),l=(0,Hf.useRef)(),c=(0,Hf.useRef)(),p=r.getState();try{if(e!==u.current||p!==l.current||s.current){var d=e(p);o=void 0!==c.current&&t(d,c.current)?c.current:d}else o=c.current}catch(zw){throw s.current&&(zw.message+="\nThe error may be correlated with this previous error:\n"+s.current.stack+"\n\n"),zw}return XS((function(){u.current=e,l.current=p,c.current=o,s.current=void 0})),XS((function(){function e(){try{var e=r.getState();if(e===l.current)return;var n=u.current(e);
27if(t(n,c.current))return;c.current=n,l.current=e}catch(zw){s.current=zw}a()}return i.onStateChange=e,i.trySubscribe(),e(),function(){return i.tryUnsubscribe()}}),[r,i]),o}(e,r,n.store,n.subscription);return(0,Hf.useDebugValue)(o),o}}var Lw,Nw=Fw();Lw=b_.unstable_batchedUpdates,GS=Lw;var qw=Hf.createContext({currencies:[],deploymentCommit:"",logErrors:!1,sentryEnvironment:"",recaptchaSiteKey:"",publicSearchApiUrlRoot:"",environment:"",booksTableIsReadOnly:!1,cdnUrlRoot:null,exhibitorsDashboardUrlRoot:"",adminUrlRoot:""}),Uw=()=>(0,Hf.useContext)(qw),Bw=({children:e})=>{const t=Nw((e=>e.errors.displayed)),r=(0,Hf.useMemo)((()=>Object.keys(t)),[t]),n=jw(),o=(0,Hf.useCallback)((e=>n(cS(e))),[n]),a=(0,Hf.useCallback)((e=>n((e=>({type:Z_,key:e}))(e))),[n]),i=(0,Hf.useMemo)((()=>({errorKeys:r})),[r]),s=(0,Hf.useMemo)((()=>({onAddError:o,onDismissError:a})),[o,a]);return(0,g_.jsx)(f_.Provider,{value:i,children:(0,g_.jsx)(h_.Provider,{value:s,children:e})})},$w=(0,g_.jsx)("div",{className:"box box--errors margin-bottom",children:"Something went wrong."}),Vw=({userData:e,clientConstants:t,store:r,children:n})=>{const o=(0,g_.jsx)(qw.Provider,{value:t,children:(0,g_.jsx)(Qb.Provider,{value:e,children:(0,g_.jsx)(ZS,{store:r,children:(0,g_.jsx)(Bw,{children:n})})})});return t.logErrors?(0,g_.jsx)(Xf,{fallback:$w,showDialog:!0,children:o}):(0,g_.jsx)(Ww,{children:o})},Ww=class extends Hf.Component{constructor(e){super(e),this.name="ErrorBoundary ("+e.componentName+")",this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return console.log(e),{hasError:!0,error:e}}componentDidCatch(e,t){}render(){return this.state.hasError?(0,g_.jsx)("div",{className:"box box--errors margin-bottom",children:(0,g_.jsxs)("pre",{children:[this.state.error.toString(),(0,g_.jsx)("br",{}),(0,g_.jsx)("br",{}),this.state.error.stack]})}):this.props.children}};window.onpageshow=function(e){e.persisted&&window.location.reload()},window.addEventListener("beforeunload",(function(){document.body.className=document.body.className+" body--unloading"})),async function(e,t,r,n){if(t.logErrors){!function(e){const t={...e};Ni(t,"react"),gi("react",{version:Hf.version}),Sl(t)}({dsn:"https://[email protected]/5647653",integrations:[zf(),(a={maskAllText:!1},new Df(a))],tracesSampleRate:.01,replaysSessionSampleRate:0,replaysOnErrorSampleRate:1,environment:t.sentryEnvironment,release:t.deploymentCommit,beforeBreadcrumb:l_,ignoreErrors:["ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications","ReferenceError: Can't find variable: gmo",Gb]});const n={id:e.id};e.user&&(n.username=e.user.login,n.email=e.user.email),o=n,oa().setUser(o),r.searchData&&r.searchData.id&&gi("search",{id:r.searchData.id})}var o,a;const i=function(e){const t={...th,...e};return e=>(r,n)=>(t.attachReduxState&&aa().addEventProcessor(((e,t)=>{try{void 0===e.type&&"redux"===e.contexts.state.state.type&&(t.attachments=[...t.attachments||[],{filename:"redux_state.json",data:JSON.stringify(e.contexts.state.state.value)}])}catch(r){}return e})),e(((e,n)=>{const o=r(e,n),a=na(),i=t.actionTransformer(n);null!=i&&Bi({category:Zf,data:i,type:eh});const s=t.stateTransformer(o);if(null!=s){const e=sa(),t=e&&e.getOptions(),r={state:{type:"redux",value:s}};ln(r,"__sentry_override_normalization_depth__",3+(t&&t.normalizeDepth||3)),a.setContext("state",r)}else a.setContext("state",null);const{configureScopeWithState:u}=t;return"function"==typeof u&&u(a,o),o}),n))}({}),s=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||Ch,u=Oh(Ih(QS),r,s(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error(Eh(15))},o={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},a=t.map((function(e){return e(o)}));return n=Ch.apply(void 0,a)(r.dispatch),wh(wh({},r),{},{dispatch:n})}}}(Ah),i)),l=await async function(e){const t={};"en_US"!==e&&(t[e]=(await _r(Object.assign({
27"../../../locales/de_DE/client-strings.js":()=>S_((()=>import("./client-strings-DPt87yCq.js")),__vite__mapDeps([0,1,2])),
27"../../../locales/fr_FR/client-strings.js":()=>S_((()=>import("./client-strings-CUMZ0nX-.js")),__vite__mapDeps([3,1,2])),
27"../../../locales/it_IT/client-strings.js":()=>S_((()=>import("./client-strings-ahzTWHtX.js")),__vite__mapDeps([4,1,2]))}),`../../../locales/${e}/client-strings.js`,6)).default);return t}(e.language.locale);window.addEventListener("resize",(function(){u.dispatch(dS(window.innerWidth))})),u.dispatch(dS(window.innerWidth)),await Promise.all(ih(document.querySelectorAll(".react-component"),(r=>async function(e,t,r,n,o,a){const{name:i,props:s}=n[e.dataset.componentIndex];Bi({category:"vialibri.component",message:"Initialising top level component",data:{componentName:i,props:s}});const{default:u}=await Object.assign({
27"./components/TopLevel/AIAgentConnector.jsx":()=>S_((()=>import("./AIAgentConnector-K1Vu1djk.js")),__vite__mapDeps([5,1,2,6,7,8,9,10,11,12,13,14])),
27"./components/TopLevel/AdminSearchDetails.jsx":()=>S_((()=>import("./AdminSearchDetails-DSyCa_C1.js")),__vite__mapDeps([15,1,2,6,12])),
27"./components/TopLevel/BlogPagination.jsx":()=>S_((()=>import("./BlogPagination-DUGqSLEL.js")),__vite__mapDeps([16,1,2,6,17,18,19,20,21,22,23,13,24])),
27"./components/TopLevel/CalendarEvents.jsx":()=>S_((()=>import("./CalendarEvents-BegqOhNl.js")),__vite__mapDeps([25,1,2,6,26,7,27,9,10,28,29,13,30])),
27"./components/TopLevel/ClipBotSearch.jsx":()=>S_((()=>import("./ClipBotSearch-CukAcvhC.js")),__vite__mapDeps([31,1,2,6,32,21,33,34,22,35,36,37,38,39,7,40,41,42,19,20,43,44,45,46,47,48,49,18,23,12,50,51,13,52,24,53,54,29,30,55,11,14,56,57,17,28,58,59,60,26,8,9,10,61,62,63,64,65,66,67,27,68])),
27"./components/TopLevel/Clipboard.jsx":()=>S_((()=>import("./Clipboard-CmI7iCB_.js")),__vite__mapDeps([69,1,2,6,7,40,35,21,32,33,34,22,36,37,38,39,41,42,19,20,43,44,45,46,47,48,49,18,23,12,50,51,13,52,24,53,54,29,30,55,11,14,56,57,17,28,58,59,60,26,8,9,10,61,62,63,64,65,67,27,70])),
27"./components/TopLevel/CollectionFilters.jsx":()=>S_((()=>import("./CollectionFilters-C9uu-J0_.js")),__vite__mapDeps([71,1,2,6,72,73,38,21,33,74,23,22,75,34,43,76,49,29,13,30,58,12,77,78,44,20,62,56])),
27"./components/TopLevel/ContactForm.jsx":()=>S_((()=>import("./ContactForm-B3ZcGs4Y.js")),__vite__mapDeps([79,1,2,6,80,81,32,21,33,34,22,35,36,37,38,39,12,11,13,14,82,83,63,50,51,52,84,85,86,29,30,78,44,20,62,56,87,88,89,90])),
27"./components/TopLevel/CreateCatalogueForm.jsx":()=>S_((()=>import("./CreateCatalogueForm-wNQotikT.js")),__vite__mapDeps([91,1,2,6,12,80,81,32,21,33,34,22,35,36,37,38,39,11,13,14,82,83,63,50,51,52,84,85,86,29,30,78,44,20,62,56,87,90,92])),
27"./components/TopLevel/DeleteMailingListSubscriber.jsx":()=>S_((()=>import("./DeleteMailingListSubscriber-BGGLZ_39.js")),__vite__mapDeps([93,1,2,6,7,8,9,10,94,13,29,30])),
27"./components/TopLevel/EditMailingListForm.jsx":()=>S_((()=>import("./EditMailingListForm-CTPGcK3g.js")),__vite__mapDeps([95,1,2,6,96,12,8,9,7,10,82,83,13,14,63,32,21,33,34,22,35,36,37,38,39,50,51,52,84,92,27,28,29,30,80,86,78,44,20,62,56,87,93,94,97,98,58,85])),
27"./components/TopLevel/EditSubscription.jsx":()=>S_((()=>import("./EditSubscription-Bh-3I7R2.js")),__vite__mapDeps([99,1,2,6,37,21,22,33,34,38,43,49,13,82,12,83,14,63,32,35,36,39,50,51,52,84,80,81,11,85,86,29,30,78,44,20,62,56,100,73,74,23,75,76,101,89,102,103,104,105,106,107,98,58,108,41,42,19])),
27"./components/TopLevel/FacetEditor.jsx":()=>S_((()=>import("./FacetEditor-DSTZx-9M.js")),__vite__mapDeps([109,1,2,6,77,13,72,73,38,21,33,74,23,22,75,34,43,76,49,29,30,58,12,78,44,20,62,56,110,11,14,84,80])),
27"./components/TopLevel/FinishPasswordResetForm.jsx":()=>S_((()=>import("./FinishPasswordResetForm-D1rND1vw.js")),__vite__mapDeps([111,1,2,6,82,12,83,13,14,63,32,21,33,34,22,35,36,37,38,39,50,51,52,84,80,81,11,85,86,29,30,78,44,20,62,56,87,90,92])),
27"./components/TopLevel/ForgottenUsernameForm.jsx":()=>S_((()=>import("./ForgottenUsernameForm-SU8AGNxx.js")),__vite__mapDeps([112,1,2,6,80,81,32,21,33,34,22,35,36,37,38,39,12,11,13,14,82,83,63,50,51,52,84,85,86,29,30,78,44,20,62,56,87,90])),
27"./components/TopLevel/HarvestData.jsx":()=>S_((()=>import("./HarvestData-Dk0ScX5U.js")),__vite__mapDeps([113,1,2,6,26,7,27,9,10,8,50,51,12,13,52,29,30,28])),
27"./components/TopLevel/HeaderWrapper.jsx":()=>S_((()=>import("./HeaderWrapper-D3e3uvWJ.js")),__vite__mapDeps([114,1,2,6,115,116,21,33,35,46,36,39,38,26,50,51,12,13,52,32,34,22,37,44,20,7,8,9,10,24,29,30,117,56,118,66,94,119,120,121])),
27"./components/TopLevel/HomepageCalendarEvents.jsx":()=>S_((()=>import("./HomepageCalendarEvents-DfPs-W6B.js")),__vite__mapDeps([122,1,2,6,26,123])),
27"./components/TopLevel/HomepageSearchForm.jsx":()=>S_((()=>import("./HomepageSearchForm-b0xFWmPs.js")),__vite__mapDeps([124,1,2,6,125,37,21,22,33,34,38,48,43,49,126,12,50,51,13,52,127,14,58,59,64,82,83,63,32,35,36,39,84,128,57,60,56,81,11,85,80,86,29,30,78,44,20,62,92,105,106,129,98,100,73,74,23,75,76,101,89,102,103,104,130,131,132,46])),
27"./components/TopLevel/LibraryCategoryList.jsx":()=>S_((()=>import("./LibraryCategoryList-EcySEszB.js")),__vite__mapDeps([133,1,2,6,134,33,21,43,22,34,49,12,50,51,13,52,135,11,14,47,37,38,48])),
27"./components/TopLevel/LibrarySearch.jsx":()=>S_((()=>import("./LibrarySearch-DqWx1XgC.js")),__vite__mapDeps([136,1,2,6,12,82,83,13,14,63,32,21,33,34,22,35,36,37,38,39,50,51,52,84,81,11,85,80])),
27"./components/TopLevel/LibrarySearchHistory.jsx":()=>S_((()=>import("./LibrarySearchHistory-DOiuffeN.js")),__vite__mapDeps([137,1,2,6,26])),
27"./components/TopLevel/LibriDirectPayPalCredentials.jsx":()=>S_((()=>import("./LibriDirectPayPalCredentials-DmN80qbt.js")),__vite__mapDeps([138,1,2,6,81,32,21,33,34,22,35,36,37,38,39,12,11,13,14,82,83,63,50,51,52,84,85,80,86,29,30,78,44,20,62,56,87,90,92])),
27"./components/TopLevel/Libristat.jsx":()=>S_((()=>import("./Libristat-D54QwPHn.js")),__vite__mapDeps([139,1,2,6])),
27"./components/TopLevel/LiveOrUpcomingShowcaseHomepageBanner.jsx":()=>S_((()=>import("./LiveOrUpcomingShowcaseHomepageBanner-Cz4GuYKH.js")),__vite__mapDeps([140,1,2,6,116,21,33,35,46,36,39,38,26,50,51,12,13,52,141,142,7,61,24,143,127,144,55,117])),
27"./components/TopLevel/LoginForm.jsx":()=>S_((()=>import("./LoginForm-C67wbFZ_.js")),__vite__mapDeps([145,1,2,6,82,12,83,13,14,63,32,21,33,34,22,35,36,37,38,39,50,51,52,84,81,11,85,80,86,29,30,78,44,20,62,56,90])),
27"./components/TopLevel/MailingListFormWrapper.jsx":()=>S_((()=>import("./MailingListFormWrapper-CaUBPQxs.js")),__vite__mapDeps([146,1,2,6,147,96,12,8,9,7,10,82,83,13,14,63,32,21,33,34,22,35,36,37,38,39,50,51,52,84,92,27,28,29,30,80,81,11,85,86,78,44,20,62,56,87,97,98,58])),
27"./components/TopLevel/MobileContentMenuWrapper.jsx":()=>S_((()=>import("./MobileContentMenuWrapper-Diz2L3CS.js")),__vite__mapDeps([148,1,2,6,149,13,24,118,56])),
27"./components/TopLevel/PageOfBooksFromProps.jsx":()=>S_((()=>import("./PageOfBooksFromProps-q08g0q55.js")),__vite__mapDeps([150,1,2,6,45,34,21,22,33,42,19,20,43,38,46,41,44,47,37,48,49,18,23,12,7,50,51,13,52,24,53,54,29,30,55,11,14,56,57,17,28,58,59,60,40,35,32,36,39,26,8,9,10,61,62,63,64,65,72,73,74,75,76,110,84,80,121,151])),
27"./components/TopLevel/RegistrationForm.jsx":()=>S_((()=>import("./RegistrationForm-D2nxfMWA.js")),__vite__mapDeps([152,1,2,6,80,81,32,21,33,34,22,35,36,37,38,39,12,11,13,14,82,83,63,50,51,52,84,85,86,29,30,78,44,20,62,56,88,89,90,97,7,98,58,108,41,42,19,43])),
27"./components/TopLevel/SearchProgressBar.jsx":()=>S_((()=>import("./SearchProgressBar-CsQsOSzH.js")),__vite__mapDeps([153,1,2,6,33,21])),
27"./components/TopLevel/SearchQueryParametersWrapper.jsx":()=>S_((()=>import("./SearchQueryParametersWrapper-DgRM18Nf.js")),__vite__mapDeps([154,1,2,6,155,126,21,33,34,22])),
27"./components/TopLevel/ShareSelectionButton.jsx":()=>S_((()=>import("./ShareSelectionButton-CG53TilN.js")),__vite__mapDeps([156,1,2,6,24,54,50,51,12,13,52,29,30,55,11,14])),
27"./components/TopLevel/ShareSelectionViaEmail.jsx":()=>S_((()=>import("./ShareSelectionViaEmail-oEX91ggg.js")),__vite__mapDeps([157,1,2,6,96,12,8,9,7,10,82,83,13,14,63,32,21,33,34,22,35,36,37,38,39,50,51,52,84,92,80,81,11,85,86,29,30,78,44,20,62,56,87,88,89])),
27"./components/TopLevel/ShowcaseApp.jsx":()=>S_((()=>import("./ShowcaseApp-Bq0Hyyu4.js")),__vite__mapDeps([158,1,2,6,21,42,33,19,20,22,43,34,116,35,46,36,39,38,26,50,51,12,13,52,32,37,134,49,135,11,14,45,41,44,47,48,18,23,7,24,53,54,29,30,55,56,57,17,28,58,59,60,142,61,143,159,75,76,96,8,9,10,82,83,63,84,92,101,89,102,103,27,104,62,127,144,160,123,141,117,66,67,68,78,80,81,85,86,87,94,98,100,73,74,115,118,119,120,121,128,130,131,132,105,106,147,97,149,151,155,126,161,162,163,164])),
27"./components/TopLevel/ShowcaseHighlightsSidebar.jsx":()=>S_((()=>import("./ShowcaseHighlightsSidebar-CjmrVzBx.js")),__vite__mapDeps([165,1,2,6,116,21,33,35,46,36,39,38,26,50,51,12,13,52,32,34,22,37,142,7,61,24,143,161,8,9,10])),
27"./components/TopLevel/ShowcaseRegistration.jsx":()=>S_((()=>import("./ShowcaseRegistration-CMwP-HMT.js")),__vite__mapDeps([166,1,2,6,167,32,21,33,34,22,35,36,37,38,39,26,102,50,51,12,13,52,53,103,144,55,160,82,83,14,63,84,86,29,30,78,44,20,62,56,168,80,81,11,85,90,100,73,74,23,75,43,76,49,101,89,104,107,98,58,132,46,105,106])),
27"./components/TopLevel/ShowcaseRegistrationAnonymous.jsx":()=>S_((()=>import("./ShowcaseRegistrationAnonymous-C5EC8kTv.js")),__vite__mapDeps([169,1,2,6])),
27"./components/TopLevel/ShowcaseRegistrationThankYou.jsx":()=>S_((()=>import("./ShowcaseRegistrationThankYou-BjBOEsdq.js")),__vite__mapDeps([170,1,2,6,120,32,21,33,34,22,35,36,37,38,39])),
27"./components/TopLevel/ShowcaseSellerApplication.jsx":()=>S_((()=>import("./ShowcaseSellerApplication-DRSrf50v.js")),__vite__mapDeps([171,1,2,6,167,32,21,33,34,22,35,36,37,38,39,26,102,50,51,12,13,52,53,103,144,55,160,82,83,14,63,84,86,29,30,78,44,20,62,56,168,90])),
27"./components/TopLevel/SimpleSearch.jsx":()=>S_((()=>import("./SimpleSearch-DgF7dKtG.js")),__vite__mapDeps([172,1,2,6,82,12,83,13,14,63,32,21,33,34,22,35,36,37,38,39,50,51,52,84,86,29,30,78,44,20,62,56,92,131,81,11,85,80])),
27"./components/TopLevel/StartPasswordResetForm.jsx":()=>S_((()=>import("./StartPasswordResetForm-DippX9sT.js")),__vite__mapDeps([173,1,2,6,81,32,21,33,34,22,35,36,37,38,39,12,11,13,14,82,83,63,50,51,52,84,85,80,86,29,30,78,44,20,62,56,87,90])),
27"./components/TopLevel/SubmitCalendarEvent.jsx":()=>S_((()=>import("./SubmitCalendarEvent-IHha11PL.js")),__vite__mapDeps([174,1,2,6,96,12,8,9,7,10,82,83,13,14,63,32,21,33,34,22,35,36,37,38,39,50,51,52,84,92,101,89,102,103,27,85,80,81,11,86,29,30,78,44,20,62,56,87,105,106,175])),
27"./components/TopLevel/SubscriptionInvoice.jsx":()=>S_((()=>import("./SubscriptionInvoice-D33nc8-k.js")),__vite__mapDeps([176,1,2,6,128,12,13,177,82,83,14,63,32,21,33,34,22,35,36,37,38,39,50,51,52,84,80,81,11,85,86,29,30,78,44,20,62,56,90,92,100,73,74,23,75,43,76,49,101,89,102,103,104,119,178,26,162,42,19])),
27"./components/TopLevel/SubscriptionSummary.jsx":()=>S_((()=>import("./SubscriptionSummary-BoyPM46K.js")),__vite__mapDeps([179,1,2,6,178,26,162,42,21,33,19,20,22,43,34])),
27"./components/TopLevel/UserAccount.jsx":()=>S_((()=>import("./UserAccount-DYsivYOQ.js")),__vite__mapDeps([180,1,2,6,80,81,32,21,33,34,22,35,36,37,38,39,12,11,13,14,82,83,63,50,51,52,84,85,86,29,30,78,44,20,62,56,87,90,108,41,42,19,43])),
27"./components/TopLevel/UserAccountSecurity.jsx":()=>S_((()=>import("./UserAccountSecurity-ByRfArdc.js")),__vite__mapDeps([181,1,2,6,80,81,32,21,33,34,22,35,36,37,38,39,12,11,13,14,82,83,63,50,51,52,84,85,86,29,30,78,44,20,62,56,87,90])),
27"./components/TopLevel/UserSearchPreferences.jsx":()=>S_((()=>import("./UserSearchPreferences-C3xiBavs.js")),__vite__mapDeps([182,1,2,6,125,37,21,22,33,34,38,48,43,49,126,12,50,51,13,52,127,14,58,59,64,82,83,63,32,35,36,39,84,128,73,74,23,75,76,101,89,102,103,104,86,29,30,78,44,20,62,56,87,90,98,85,80,132,46,105,106])),
27"./components/TopLevel/UserSubscription.jsx":()=>S_((()=>import("./UserSubscription-DIGUtN8H.js")),__vite__mapDeps([183,1,2,6,26,50,51,12,13,52])),
27"./components/TopLevel/UserUpdateCard.jsx":()=>S_((()=>import("./UserUpdateCard-JZ0qoas8.js")),__vite__mapDeps([184,1,2,6,177,13,82,12,83,14,63,32,21,33,34,22,35,36,37,38,39,50,51,52,84,80,81,11,85,86,29,30,78,44,20,62,56,90,92,100,73,74,23,75,43,76,49,101,89,102,103,104,119])),
27"./components/TopLevel/WantEditor.jsx":()=>S_((()=>import("./WantEditor-Y-WwkM4c.js")),__vite__mapDeps([185,1,2,6,14,82,12,83,13,63,32,21,33,34,22,35,36,37,38,39,50,51,52,84,81,11,85,80,86,29,30,78,44,20,62,56,92,98,58,129,100,73,74,23,75,43,76,49,101,89,102,103,104,105,106,128,130,131])),
27"./components/TopLevel/WantInterstitialWrapper.jsx":()=>S_((()=>import("./WantInterstitialWrapper-ZdxycGW-.js")),__vite__mapDeps([186,1,2,6,65])),
27"./components/TopLevel/WantsManager.jsx":()=>S_((()=>import("./WantsManager-kh9xK00O.js")),__vite__mapDeps([187,1,2,6,33,21,37,22,34,38,43,49,26,159,75,76,12,135,11,13,14,57,17,18,19,20,23,24,58,59,63,32,35,36,39,50,51,52,70,106,162,42])),
27"./components/TopLevel/WpContentEditLinkWrapper.jsx":()=>S_((()=>import("./WpContentEditLinkWrapper-BYzjnJI9.js")),__vite__mapDeps([188,1,2,6,163])),
27"./components/TopLevel/Years.jsx":()=>S_((()=>import("./Years-2caElYgP.js")),__vite__mapDeps([189,1,2,6,18,19,20,21,22,23]))
27})[`./components/TopLevel/${i}.jsx`]();if(!u)throw new Error("Missing component: "+i);(0,vh.createRoot)(e).render((0,g_.jsx)(jm.LionessProvider,{messages:r,locale:o.language.locale,debug:!1,children:(0,g_.jsx)(Vw,{store:t,userData:o,clientConstants:a,children:(0,g_.jsx)(v_,{clientCreationFunction:d_,children:(0,g_.jsx)(u,{...s})})})}))}(r,u,l,n,e,t)))),document.body.className=document.body.className.replace("body--js-loading","")}(...window.vlInitData);export{My as $,V_ as A,S_ as B,k_ as C,P_ as D,R_ as E,j_ as F,Hb as G,m_ as H,F_ as I,ab as J,zb as K,T_ as L,O_ as M,L_ as N,A_ as O,N_ as P,Gy as Q,q_ as R,U_ as S,B_ as T,s_ as U,y_ as V,e_ as W,lb as X,pb as Y,Ry as Z,pS as _,US as a,Mm as at,IS as b,wS as c,yh as ct,bS as d,lh as dt,Ny as et,SS as f,uh as ft,xS as g,Xf as gt,yS as h,ah as ht,Cw as i,Fm as it,W_ as j,M_ as k,kS as l,dh as lt,lS as m,ih as mt,Nw as n,gy as nt,WS as o,_h as ot,uS as p,sh as pt,Bb as q,jw as r,cy as rt,_S as s,bh as st,Uw as t,Vy as tt,vS as u,ph as ut,AS as v,$_ as w,z_ as x,OS as y,D_ as z}; 28//# sourceMappingURL=index-eSpJ4TSf.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.