@tryghost/portal 2.28.0 → 2.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/umd/portal.min.js +48 -45
- package/umd/portal.min.js.map +1 -1
package/umd/portal.min.js
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".gh-portal-account-header{display:flex;flex-direction:column;align-items:center;margin:0 0 32px}.gh-portal-account-header .gh-portal-avatar{margin:6px 0 8px!important}.gh-portal-account-data{margin-bottom:40px}footer.gh-portal-account-footer{display:flex}.gh-portal-account-footer.paid{margin-top:12px}.gh-portal-account-footermenu{display:flex;align-items:center;list-style:none;padding:0;margin:0}.gh-portal-account-footerright{display:flex;flex-grow:1;align-items:center;justify-content:flex-end}.gh-portal-account-footermenu li{margin-right:16px}.gh-portal-account-footermenu li:last-of-type{margin-right:0}.gh-portal-freeaccount-newsletter{display:flex;align-items:center;justify-content:space-between;margin-top:24px}.gh-portal-freeaccount-newsletter .label{display:flex;flex-direction:column;flex-grow:1}.gh-portal-free-ctatext{margin-top:-12px}.gh-portal-cancelcontinue-container{margin:24px 0 32px}.gh-portal-list-detail .gh-portal-email-notice{display:flex;align-items:center;gap:5px;margin-top:6px;color:var(--red);font-weight:500;font-size:1.25rem;letter-spacing:.2px}.gh-portal-email-notice-icon{width:20px;height:20px}.gh-portal-billing-button-loader{width:32px;height:32px;margin-right:-3px;opacity:.6}.gh-portal-product-icon{width:52px;margin-right:12px;border-radius:2px}.gh-portal-account-discountcontainer{position:relative;display:flex;align-items:center}.gh-portal-account-old-price{text-decoration:line-through;color:var(--grey9)!important}.gh-portal-account-tagicon{width:16px;height:16px;color:var(--brandcolor);margin-right:5px;z-index:999}@media (max-width: 390px){.gh-portal-account-footer{padding:0!important}}@media (max-width: 340px){.gh-portal-account-footer{padding:0!important;flex-wrap:wrap;gap:12px}.gh-portal-account-footer .gh-portal-account-footerright{justify-content:flex-start}}.gh-email-suppressed-page-title{margin-bottom:14px}.gh-email-suppressed-page-icon{display:block;width:38px;height:38px;margin:0 auto 18px}.gh-email-suppressed-page-text{padding:0 14px;text-align:center;color:var(--grey6)}.gh-email-faq-footer-text{color:var(--grey8)}.gh-portal-list-detail.email-newsletter .gh-email-faq-page-button{display:block;margin-top:3px}.accountEmail .gh-email-faq-page-button{margin-left:4px}.emailReceivingFAQ .gh-portal-btn-back,.emailReceivingFAQ .gh-portal-btn-back:hover{left:calc(6vmin - 14px)}.emailReceivingFAQ .gh-portal-closeicon-container{right:calc(6vmin - 20px)}@media (max-width: 480px){.emailReceivingFAQ .gh-portal-btn-back,.emailReceivingFAQ .gh-portal-btn-back:hover{left:16px}.emailReceivingFAQ .gh-portal-closeicon-container{right:24px}}.gh-email-faq-page-button{color:var(--brandcolor);cursor:pointer;background:none;transition:color linear .1s;font-size:1.45rem}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
-
(function(
|
|
2
|
+
(function(Ie){typeof define=="function"&&define.amd?define(Ie):Ie()})(function(){var Su,wm,xm;"use strict";var a2=Object.defineProperty;var s2=(Ie,$e,an)=>$e in Ie?a2(Ie,$e,{enumerable:!0,configurable:!0,writable:!0,value:an}):Ie[$e]=an;var Z=(Ie,$e,an)=>(s2(Ie,typeof $e!="symbol"?$e+"":$e,an),an);function Ie(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $e={},an={get exports(){return $e},set exports(e){$e=e}},Rr={};/*
|
|
3
3
|
object-assign
|
|
4
4
|
(c) Sindre Sorhus
|
|
5
5
|
@license MIT
|
|
6
|
-
*/var Nu=Object.getOwnPropertySymbols,
|
|
6
|
+
*/var Nu=Object.getOwnPropertySymbols,Sm=Object.prototype.hasOwnProperty,Em=Object.prototype.propertyIsEnumerable;function Cm(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Pm(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Tu=Pm()?Object.assign:function(e,t){for(var n,r=Cm(e),i,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var a in n)Sm.call(n,a)&&(r[a]=n[a]);if(Nu){i=Nu(n);for(var s=0;s<i.length;s++)Em.call(n,i[s])&&(r[i[s]]=n[i[s]])}}return r},x={},Nm={get exports(){return x},set exports(e){x=e}},A={};/** @license React v17.0.2
|
|
7
7
|
* react.production.min.js
|
|
8
8
|
*
|
|
9
9
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
10
10
|
*
|
|
11
11
|
* This source code is licensed under the MIT license found in the
|
|
12
12
|
* LICENSE file in the root directory of this source tree.
|
|
13
|
-
*/var ts=Tu,$n=60103,$u=60106;A.Fragment=60107,A.StrictMode=60108,A.Profiler=60114;var Ru=60109,Ou=60110,Du=60112;A.Suspense=60113;var Lu=60115,
|
|
13
|
+
*/var ts=Tu,$n=60103,$u=60106;A.Fragment=60107,A.StrictMode=60108,A.Profiler=60114;var Ru=60109,Ou=60110,Du=60112;A.Suspense=60113;var Lu=60115,Iu=60116;if(typeof Symbol=="function"&&Symbol.for){var We=Symbol.for;$n=We("react.element"),$u=We("react.portal"),A.Fragment=We("react.fragment"),A.StrictMode=We("react.strict_mode"),A.Profiler=We("react.profiler"),Ru=We("react.provider"),Ou=We("react.context"),Du=We("react.forward_ref"),A.Suspense=We("react.suspense"),Lu=We("react.memo"),Iu=We("react.lazy")}var ju=typeof Symbol=="function"&&Symbol.iterator;function Tm(e){return e===null||typeof e!="object"?null:(e=ju&&e[ju]||e["@@iterator"],typeof e=="function"?e:null)}function Or(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Au={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Mu={};function Rn(e,t,n){this.props=e,this.context=t,this.refs=Mu,this.updater=n||Au}Rn.prototype.isReactComponent={},Rn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Or(85));this.updater.enqueueSetState(this,e,t,"setState")},Rn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function zu(){}zu.prototype=Rn.prototype;function ns(e,t,n){this.props=e,this.context=t,this.refs=Mu,this.updater=n||Au}var rs=ns.prototype=new zu;rs.constructor=ns,ts(rs,Rn.prototype),rs.isPureReactComponent=!0;var is={current:null},Fu=Object.prototype.hasOwnProperty,Uu={key:!0,ref:!0,__self:!0,__source:!0};function Bu(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)Fu.call(t,r)&&!Uu.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:$n,type:e,key:o,ref:a,props:i,_owner:is.current}}function $m(e,t){return{$$typeof:$n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function os(e){return typeof e=="object"&&e!==null&&e.$$typeof===$n}function Rm(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Yu=/\/+/g;function as(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Rm(""+e.key):t.toString(36)}function Hi(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case $n:case $u:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+as(a,0):r,Array.isArray(i)?(n="",e!=null&&(n=e.replace(Yu,"$&/")+"/"),Hi(i,t,n,"",function(c){return c})):i!=null&&(os(i)&&(i=$m(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(Yu,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",Array.isArray(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+as(o,s);a+=Hi(o,t,n,l,i)}else if(l=Tm(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+as(o,s++),a+=Hi(o,t,n,l,i);else if(o==="object")throw t=""+e,Error(Or(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return a}function Gi(e,t,n){if(e==null)return e;var r=[],i=0;return Hi(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Om(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(n){e._status===0&&(n=n.default,e._status=1,e._result=n)},function(n){e._status===0&&(e._status=2,e._result=n)})}if(e._status===1)return e._result;throw e._result}var Hu={current:null};function ft(){var e=Hu.current;if(e===null)throw Error(Or(321));return e}var Dm={ReactCurrentDispatcher:Hu,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:is,IsSomeRendererActing:{current:!1},assign:ts};A.Children={map:Gi,forEach:function(e,t,n){Gi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Gi(e,function(){t++}),t},toArray:function(e){return Gi(e,function(t){return t})||[]},only:function(e){if(!os(e))throw Error(Or(143));return e}},A.Component=Rn,A.PureComponent=ns,A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Dm,A.cloneElement=function(e,t,n){if(e==null)throw Error(Or(267,e));var r=ts({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=is.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)Fu.call(t,l)&&!Uu.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:$n,type:e.type,key:i,ref:o,props:r,_owner:a}},A.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:Ou,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:Ru,_context:e},e.Consumer=e},A.createElement=Bu,A.createFactory=function(e){var t=Bu.bind(null,e);return t.type=e,t},A.createRef=function(){return{current:null}},A.forwardRef=function(e){return{$$typeof:Du,render:e}},A.isValidElement=os,A.lazy=function(e){return{$$typeof:Iu,_payload:{_status:-1,_result:e},_init:Om}},A.memo=function(e,t){return{$$typeof:Lu,type:e,compare:t===void 0?null:t}},A.useCallback=function(e,t){return ft().useCallback(e,t)},A.useContext=function(e,t){return ft().useContext(e,t)},A.useDebugValue=function(){},A.useEffect=function(e,t){return ft().useEffect(e,t)},A.useImperativeHandle=function(e,t,n){return ft().useImperativeHandle(e,t,n)},A.useLayoutEffect=function(e,t){return ft().useLayoutEffect(e,t)},A.useMemo=function(e,t){return ft().useMemo(e,t)},A.useReducer=function(e,t,n){return ft().useReducer(e,t,n)},A.useRef=function(e){return ft().useRef(e)},A.useState=function(e){return ft().useState(e)},A.version="17.0.2",function(e){e.exports=A}(Nm);const q=Ie(x);/** @license React v17.0.2
|
|
14
14
|
* react-jsx-runtime.production.min.js
|
|
15
15
|
*
|
|
16
16
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
17
17
|
*
|
|
18
18
|
* This source code is licensed under the MIT license found in the
|
|
19
19
|
* LICENSE file in the root directory of this source tree.
|
|
20
|
-
*/var
|
|
20
|
+
*/var Lm=x,Gu=60103;if(Rr.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var Wu=Symbol.for;Gu=Wu("react.element"),Rr.Fragment=Wu("react.fragment")}var Im=Lm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,jm=Object.prototype.hasOwnProperty,Am={key:!0,ref:!0,__self:!0,__source:!0};function Vu(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)jm.call(t,r)&&!Am.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Gu,type:e,key:o,ref:a,props:i,_owner:Im.current}}Rr.jsx=Vu,Rr.jsxs=Vu,function(e){e.exports=Rr}(an);const U=$e.Fragment,u=$e.jsx,b=$e.jsxs;var Dr={},Mm={get exports(){return Dr},set exports(e){Dr=e}},je={},ss={},zm={get exports(){return ss},set exports(e){ss=e}},Ku={};/** @license React v0.20.2
|
|
21
21
|
* scheduler.production.min.js
|
|
22
22
|
*
|
|
23
23
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
24
24
|
*
|
|
25
25
|
* This source code is licensed under the MIT license found in the
|
|
26
26
|
* LICENSE file in the root directory of this source tree.
|
|
27
|
-
*/(function(e){var t,n,r,i;if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}if(typeof window>"u"||typeof MessageChannel!="function"){var l=null,c=null,p=function(){if(l!==null)try{var P=e.unstable_now();l(!0,P),l=null}catch(D){throw setTimeout(p,0),D}};t=function(P){l!==null?setTimeout(t,0,P):(l=P,setTimeout(p,0))},n=function(P,D){c=setTimeout(P,D)},r=function(){clearTimeout(c)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,f=window.clearTimeout;if(typeof console<"u"){var y=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof y!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,_=null,
|
|
27
|
+
*/(function(e){var t,n,r,i;if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}if(typeof window>"u"||typeof MessageChannel!="function"){var l=null,c=null,p=function(){if(l!==null)try{var P=e.unstable_now();l(!0,P),l=null}catch(D){throw setTimeout(p,0),D}};t=function(P){l!==null?setTimeout(t,0,P):(l=P,setTimeout(p,0))},n=function(P,D){c=setTimeout(P,D)},r=function(){clearTimeout(c)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,f=window.clearTimeout;if(typeof console<"u"){var y=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof y!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,_=null,m=-1,h=5,g=0;e.unstable_shouldYield=function(){return e.unstable_now()>=g},i=function(){},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):h=0<P?Math.floor(1e3/P):5};var w=new MessageChannel,k=w.port2;w.port1.onmessage=function(){if(_!==null){var P=e.unstable_now();g=P+h;try{_(!0,P)?k.postMessage(null):(v=!1,_=null)}catch(D){throw k.postMessage(null),D}}else v=!1},t=function(P){_=P,v||(v=!0,k.postMessage(null))},n=function(P,D){m=d(function(){P(e.unstable_now())},D)},r=function(){f(m),m=-1}}function C(P,D){var j=P.length;P.push(D);e:for(;;){var B=j-1>>>1,ie=P[B];if(ie!==void 0&&0<O(ie,D))P[B]=D,P[j]=ie,j=B;else break e}}function S(P){return P=P[0],P===void 0?null:P}function $(P){var D=P[0];if(D!==void 0){var j=P.pop();if(j!==D){P[0]=j;e:for(var B=0,ie=P.length;B<ie;){var Le=2*(B+1)-1,Ge=P[Le],Pt=Le+1,Nt=P[Pt];if(Ge!==void 0&&0>O(Ge,j))Nt!==void 0&&0>O(Nt,Ge)?(P[B]=Nt,P[Pt]=j,B=Pt):(P[B]=Ge,P[Le]=j,B=Le);else if(Nt!==void 0&&0>O(Nt,j))P[B]=Nt,P[Pt]=j,B=Pt;else break e}}return D}return null}function O(P,D){var j=P.sortIndex-D.sortIndex;return j!==0?j:P.id-D.id}var N=[],F=[],He=1,te=null,re=3,Ze=!1,dt=!1,pt=!1;function Ct(P){for(var D=S(F);D!==null;){if(D.callback===null)$(F);else if(D.startTime<=P)$(F),D.sortIndex=D.expirationTime,C(N,D);else break;D=S(F)}}function Tr(P){if(pt=!1,Ct(P),!dt)if(S(N)!==null)dt=!0,t(Tn);else{var D=S(F);D!==null&&n(Tr,D.startTime-P)}}function Tn(P,D){dt=!1,pt&&(pt=!1,r()),Ze=!0;var j=re;try{for(Ct(D),te=S(N);te!==null&&(!(te.expirationTime>D)||P&&!e.unstable_shouldYield());){var B=te.callback;if(typeof B=="function"){te.callback=null,re=te.priorityLevel;var ie=B(te.expirationTime<=D);D=e.unstable_now(),typeof ie=="function"?te.callback=ie:te===S(N)&&$(N),Ct(D)}else $(N);te=S(N)}if(te!==null)var Le=!0;else{var Ge=S(F);Ge!==null&&n(Tr,Ge.startTime-D),Le=!1}return Le}finally{te=null,re=j,Ze=!1}}var Eu=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_continueExecution=function(){dt||Ze||(dt=!0,t(Tn))},e.unstable_getCurrentPriorityLevel=function(){return re},e.unstable_getFirstCallbackNode=function(){return S(N)},e.unstable_next=function(P){switch(re){case 1:case 2:case 3:var D=3;break;default:D=re}var j=re;re=D;try{return P()}finally{re=j}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=Eu,e.unstable_runWithPriority=function(P,D){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var j=re;re=P;try{return D()}finally{re=j}},e.unstable_scheduleCallback=function(P,D,j){var B=e.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?B+j:B):j=B,P){case 1:var ie=-1;break;case 2:ie=250;break;case 5:ie=1073741823;break;case 4:ie=1e4;break;default:ie=5e3}return ie=j+ie,P={id:He++,callback:D,priorityLevel:P,startTime:j,expirationTime:ie,sortIndex:-1},j>B?(P.sortIndex=j,C(F,P),S(N)===null&&P===S(F)&&(pt?r():pt=!0,n(Tr,j-B))):(P.sortIndex=ie,C(N,P),dt||Ze||(dt=!0,t(Tn))),P},e.unstable_wrapCallback=function(P){var D=re;return function(){var j=re;re=D;try{return P.apply(this,arguments)}finally{re=j}}}})(Ku),function(e){e.exports=Ku}(zm);/** @license React v17.0.2
|
|
28
28
|
* react-dom.production.min.js
|
|
29
29
|
*
|
|
30
30
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
31
31
|
*
|
|
32
32
|
* This source code is licensed under the MIT license found in the
|
|
33
33
|
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/var Wi=x,W=Tu,ae=ss;function E(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!Wi)throw Error(E(227));var qu=new Set,Lr={};function sn(e,t){On(e,t),On(e+"Capture",t)}function On(e,t){for(Lr[e]=t,e=0;e<t.length;e++)qu.add(t[e])}var ht=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),
|
|
34
|
+
*/var Wi=x,W=Tu,ae=ss;function E(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!Wi)throw Error(E(227));var qu=new Set,Lr={};function sn(e,t){On(e,t),On(e+"Capture",t)}function On(e,t){for(Lr[e]=t,e=0;e<t.length;e++)qu.add(t[e])}var ht=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fm=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Qu=Object.prototype.hasOwnProperty,Ju={},Xu={};function Um(e){return Qu.call(Xu,e)?!0:Qu.call(Ju,e)?!1:Fm.test(e)?Xu[e]=!0:(Ju[e]=!0,!1)}function Bm(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ym(e,t,n,r){if(t===null||typeof t>"u"||Bm(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function xe(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ce[e]=new xe(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ce[t]=new xe(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){ce[e]=new xe(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ce[e]=new xe(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ce[e]=new xe(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){ce[e]=new xe(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){ce[e]=new xe(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){ce[e]=new xe(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){ce[e]=new xe(e,5,!1,e.toLowerCase(),null,!1,!1)});var ls=/[\-:]([a-z])/g;function cs(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ls,cs);ce[t]=new xe(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ls,cs);ce[t]=new xe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ls,cs);ce[t]=new xe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){ce[e]=new xe(e,1,!1,e.toLowerCase(),null,!1,!1)}),ce.xlinkHref=new xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){ce[e]=new xe(e,1,!1,e.toLowerCase(),null,!0,!0)});function us(e,t,n,r){var i=ce.hasOwnProperty(t)?ce[t]:null,o=i!==null?i.type===0:r?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");o||(Ym(t,n,i,r)&&(n=null),r||i===null?Um(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var ln=Wi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ir=60103,cn=60106,Tt=60107,ds=60108,jr=60114,ps=60109,fs=60110,Vi=60112,Ar=60113,Ki=60120,qi=60115,hs=60116,gs=60121,ms=60128,Zu=60129,ys=60130,vs=60131;if(typeof Symbol=="function"&&Symbol.for){var se=Symbol.for;Ir=se("react.element"),cn=se("react.portal"),Tt=se("react.fragment"),ds=se("react.strict_mode"),jr=se("react.profiler"),ps=se("react.provider"),fs=se("react.context"),Vi=se("react.forward_ref"),Ar=se("react.suspense"),Ki=se("react.suspense_list"),qi=se("react.memo"),hs=se("react.lazy"),gs=se("react.block"),se("react.scope"),ms=se("react.opaque.id"),Zu=se("react.debug_trace_mode"),ys=se("react.offscreen"),vs=se("react.legacy_hidden")}var ed=typeof Symbol=="function"&&Symbol.iterator;function Mr(e){return e===null||typeof e!="object"?null:(e=ed&&e[ed]||e["@@iterator"],typeof e=="function"?e:null)}var bs;function zr(e){if(bs===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);bs=t&&t[1]||""}return`
|
|
35
35
|
`+bs+e}var ws=!1;function Qi(e,t){if(!e||ws)return"";ws=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&typeof l.stack=="string"){for(var i=l.stack.split(`
|
|
36
36
|
`),o=r.stack.split(`
|
|
37
37
|
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s])return`
|
|
38
|
-
`+i[a].replace(" at new "," at ");while(1<=a&&0<=s);break}}}finally{ws=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?zr(e):""}function Hg(e){switch(e.tag){case 5:return zr(e.type);case 16:return zr("Lazy");case 13:return zr("Suspense");case 19:return zr("SuspenseList");case 0:case 2:case 15:return e=Qi(e.type,!1),e;case 11:return e=Qi(e.type.render,!1),e;case 22:return e=Qi(e.type._render,!1),e;case 1:return e=Qi(e.type,!0),e;default:return""}}function Dn(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Tt:return"Fragment";case cn:return"Portal";case Ir:return"Profiler";case ds:return"StrictMode";case Ar:return"Suspense";case Ki:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fs:return(e.displayName||"Context")+".Consumer";case ps:return(e._context.displayName||"Context")+".Provider";case Vi:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case qi:return Dn(e.type);case ms:return Dn(e._render);case hs:t=e._payload,e=e._init;try{return Dn(e(t))}catch{}}return null}function $t(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function td(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gg(e){var t=td(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ji(e){e._valueTracker||(e._valueTracker=Gg(e))}function nd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=td(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Xi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function xs(e,t){var n=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function rd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=$t(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function id(e,t){t=t.checked,t!=null&&us(e,"checked",t,!1)}function ks(e,t){id(e,t);var n=$t(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?_s(e,t.type,n):t.hasOwnProperty("defaultValue")&&_s(e,t.type,$t(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function od(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function _s(e,t,n){(t!=="number"||Xi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Wg(e){var t="";return Wi.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function Ss(e,t){return e=W({children:void 0},t),(t=Wg(t.children))&&(e.children=t),e}function Ln(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+$t(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Es(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(E(91));return W({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ad(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(E(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(E(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:$t(n)}}function sd(e,t){var n=$t(t.value),r=$t(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ld(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var Cs={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function cd(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ps(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?cd(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Zi,ud=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==Cs.svg||"innerHTML"in e)e.innerHTML=t;else{for(Zi=Zi||document.createElement("div"),Zi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Zi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ur={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Vg=["Webkit","ms","Moz","O"];Object.keys(Ur).forEach(function(e){Vg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ur[t]=Ur[e]})});function dd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ur.hasOwnProperty(e)&&Ur[e]?(""+t).trim():t+"px"}function pd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=dd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Kg=W({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ns(e,t){if(t){if(Kg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function Ts(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function $s(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Rs=null,jn=null,In=null;function fd(e){if(e=ai(e)){if(typeof Rs!="function")throw Error(E(280));var t=e.stateNode;t&&(t=vo(t),Rs(e.stateNode,e.type,t))}}function hd(e){jn?In?In.push(e):In=[e]:jn=e}function md(){if(jn){var e=jn,t=In;if(In=jn=null,fd(e),t)for(e=0;e<t.length;e++)fd(t[e])}}function Os(e,t){return e(t)}function gd(e,t,n,r,i){return e(t,n,r,i)}function Ds(){}var yd=Os,un=!1,Ls=!1;function js(){(jn!==null||In!==null)&&(Ds(),md())}function qg(e,t,n){if(Ls)return e(t,n);Ls=!0;try{return yd(e,t,n)}finally{Ls=!1,js()}}function Br(e,t){var n=e.stateNode;if(n===null)return null;var r=vo(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(E(231,t,typeof n));return n}var Is=!1;if(ht)try{var Yr={};Object.defineProperty(Yr,"passive",{get:function(){Is=!0}}),window.addEventListener("test",Yr,Yr),window.removeEventListener("test",Yr,Yr)}catch{Is=!1}function Qg(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(p){this.onError(p)}}var Hr=!1,eo=null,to=!1,As=null,Jg={onError:function(e){Hr=!0,eo=e}};function Xg(e,t,n,r,i,o,a,s,l){Hr=!1,eo=null,Qg.apply(Jg,arguments)}function Zg(e,t,n,r,i,o,a,s,l){if(Xg.apply(this,arguments),Hr){if(Hr){var c=eo;Hr=!1,eo=null}else throw Error(E(198));to||(to=!0,As=c)}}function dn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&1026&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function vd(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function bd(e){if(dn(e)!==e)throw Error(E(188))}function ey(e){var t=e.alternate;if(!t){if(t=dn(e),t===null)throw Error(E(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return bd(i),e;if(o===r)return bd(i),t;o=o.sibling}throw Error(E(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(E(189))}}if(n.alternate!==r)throw Error(E(190))}if(n.tag!==3)throw Error(E(188));return n.stateNode.current===n?e:t}function wd(e){if(e=ey(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function xd(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var kd,Ms,_d,Sd,zs=!1,et=[],Rt=null,Ot=null,Dt=null,Gr=new Map,Wr=new Map,Vr=[],Ed="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Fs(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:i,targetContainers:[r]}}function Cd(e,t){switch(e){case"focusin":case"focusout":Rt=null;break;case"dragenter":case"dragleave":Ot=null;break;case"mouseover":case"mouseout":Dt=null;break;case"pointerover":case"pointerout":Gr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wr.delete(t.pointerId)}}function Kr(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e=Fs(t,n,r,i,o),t!==null&&(t=ai(t),t!==null&&Ms(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function ty(e,t,n,r,i){switch(t){case"focusin":return Rt=Kr(Rt,e,t,n,r,i),!0;case"dragenter":return Ot=Kr(Ot,e,t,n,r,i),!0;case"mouseover":return Dt=Kr(Dt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Gr.set(o,Kr(Gr.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Wr.set(o,Kr(Wr.get(o)||null,e,t,n,r,i)),!0}return!1}function ny(e){var t=pn(e.target);if(t!==null){var n=dn(t);if(n!==null){if(t=n.tag,t===13){if(t=vd(n),t!==null){e.blockedOn=t,Sd(e.lanePriority,function(){ae.unstable_runWithPriority(e.priority,function(){_d(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function no(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ws(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=ai(n),t!==null&&Ms(t),e.blockedOn=n,!1;t.shift()}return!0}function Pd(e,t,n){no(e)&&n.delete(t)}function ry(){for(zs=!1;0<et.length;){var e=et[0];if(e.blockedOn!==null){e=ai(e.blockedOn),e!==null&&kd(e);break}for(var t=e.targetContainers;0<t.length;){var n=Ws(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&et.shift()}Rt!==null&&no(Rt)&&(Rt=null),Ot!==null&&no(Ot)&&(Ot=null),Dt!==null&&no(Dt)&&(Dt=null),Gr.forEach(Pd),Wr.forEach(Pd)}function qr(e,t){e.blockedOn===t&&(e.blockedOn=null,zs||(zs=!0,ae.unstable_scheduleCallback(ae.unstable_NormalPriority,ry)))}function Nd(e){function t(i){return qr(i,e)}if(0<et.length){qr(et[0],e);for(var n=1;n<et.length;n++){var r=et[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Rt!==null&&qr(Rt,e),Ot!==null&&qr(Ot,e),Dt!==null&&qr(Dt,e),Gr.forEach(t),Wr.forEach(t),n=0;n<Vr.length;n++)r=Vr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Vr.length&&(n=Vr[0],n.blockedOn===null);)ny(n),n.blockedOn===null&&Vr.shift()}function ro(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var An={animationend:ro("Animation","AnimationEnd"),animationiteration:ro("Animation","AnimationIteration"),animationstart:ro("Animation","AnimationStart"),transitionend:ro("Transition","TransitionEnd")},Us={},Td={};ht&&(Td=document.createElement("div").style,"AnimationEvent"in window||(delete An.animationend.animation,delete An.animationiteration.animation,delete An.animationstart.animation),"TransitionEvent"in window||delete An.transitionend.transition);function io(e){if(Us[e])return Us[e];if(!An[e])return e;var t=An[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Td)return Us[e]=t[n];return e}var $d=io("animationend"),Rd=io("animationiteration"),Od=io("animationstart"),Dd=io("transitionend"),Ld=new Map,Bs=new Map,iy=["abort","abort",$d,"animationEnd",Rd,"animationIteration",Od,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Dd,"transitionEnd","waiting","waiting"];function Ys(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Bs.set(r,t),Ld.set(r,i),sn(i,[r])}}var oy=ae.unstable_now;oy();var B=8;function Mn(e){if(1&e)return B=15,1;if(2&e)return B=14,2;if(4&e)return B=13,4;var t=24&e;return t!==0?(B=12,t):e&32?(B=11,32):(t=192&e,t!==0?(B=10,t):e&256?(B=9,256):(t=3584&e,t!==0?(B=8,t):e&4096?(B=7,4096):(t=4186112&e,t!==0?(B=6,t):(t=62914560&e,t!==0?(B=5,t):e&67108864?(B=4,67108864):e&134217728?(B=3,134217728):(t=805306368&e,t!==0?(B=2,t):1073741824&e?(B=1,1073741824):(B=8,e))))))}function ay(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function sy(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(E(358,e))}}function Qr(e,t){var n=e.pendingLanes;if(n===0)return B=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(o!==0)r=o,i=B=15;else if(o=n&134217727,o!==0){var l=o&~a;l!==0?(r=Mn(l),i=B):(s&=o,s!==0&&(r=Mn(s),i=B))}else o=n&~a,o!==0?(r=Mn(o),i=B):s!==0&&(r=Mn(s),i=B);if(r===0)return 0;if(r=31-Lt(r),r=n&((0>r?0:1<<r)<<1)-1,t!==0&&t!==r&&!(t&a)){if(Mn(t),i<=B)return t;B=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Lt(t),i=1<<n,r|=e[n],t&=~i;return r}function jd(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function oo(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=zn(24&~t),e===0?oo(10,t):e;case 10:return e=zn(192&~t),e===0?oo(8,t):e;case 8:return e=zn(3584&~t),e===0&&(e=zn(4186112&~t),e===0&&(e=512)),e;case 2:return t=zn(805306368&~t),t===0&&(t=268435456),t}throw Error(E(358,e))}function zn(e){return e&-e}function Hs(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ao(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,e=e.eventTimes,t=31-Lt(t),e[t]=n}var Lt=Math.clz32?Math.clz32:uy,ly=Math.log,cy=Math.LN2;function uy(e){return e===0?32:31-(ly(e)/cy|0)|0}var dy=ae.unstable_UserBlockingPriority,py=ae.unstable_runWithPriority,so=!0;function fy(e,t,n,r){un||Ds();var i=Gs,o=un;un=!0;try{gd(i,e,t,n,r)}finally{(un=o)||js()}}function hy(e,t,n,r){py(dy,Gs.bind(null,e,t,n,r))}function Gs(e,t,n,r){if(so){var i;if((i=(t&4)===0)&&0<et.length&&-1<Ed.indexOf(e))e=Fs(null,e,t,n,r),et.push(e);else{var o=Ws(e,t,n,r);if(o===null)i&&Cd(e,r);else{if(i){if(-1<Ed.indexOf(e)){e=Fs(o,e,t,n,r),et.push(e);return}if(ty(o,e,t,n,r))return;Cd(e,r)}dp(e,t,r,null,n)}}}}function Ws(e,t,n,r){var i=$s(r);if(i=pn(i),i!==null){var o=dn(i);if(o===null)i=null;else{var a=o.tag;if(a===13){if(i=vd(o),i!==null)return i;i=null}else if(a===3){if(o.stateNode.hydrate)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return dp(e,t,r,i,n),null}var jt=null,Vs=null,lo=null;function Id(){if(lo)return lo;var e,t=Vs,n=t.length,r,i="value"in jt?jt.value:jt.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return lo=i.slice(e,1<r?1-r:void 0)}function co(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function uo(){return!0}function Ad(){return!1}function Re(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?uo:Ad,this.isPropagationStopped=Ad,this}return W(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=uo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=uo)},persist:function(){},isPersistent:uo}),t}var Fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ks=Re(Fn),Jr=W({},Fn,{view:0,detail:0}),my=Re(Jr),qs,Qs,Xr,po=W({},Jr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xs,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Xr&&(Xr&&e.type==="mousemove"?(qs=e.screenX-Xr.screenX,Qs=e.screenY-Xr.screenY):Qs=qs=0,Xr=e),qs)},movementY:function(e){return"movementY"in e?e.movementY:Qs}}),Md=Re(po),gy=W({},po,{dataTransfer:0}),yy=Re(gy),vy=W({},Jr,{relatedTarget:0}),Js=Re(vy),by=W({},Fn,{animationName:0,elapsedTime:0,pseudoElement:0}),wy=Re(by),xy=W({},Fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ky=Re(xy),_y=W({},Fn,{data:0}),zd=Re(_y),Sy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ey={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Cy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Py(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Cy[e])?!!t[e]:!1}function Xs(){return Py}var Ny=W({},Jr,{key:function(e){if(e.key){var t=Sy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=co(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ey[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xs,charCode:function(e){return e.type==="keypress"?co(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?co(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ty=Re(Ny),$y=W({},po,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fd=Re($y),Ry=W({},Jr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xs}),Oy=Re(Ry),Dy=W({},Fn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ly=Re(Dy),jy=W({},po,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Iy=Re(jy),Ay=[9,13,27,32],Zs=ht&&"CompositionEvent"in window,Zr=null;ht&&"documentMode"in document&&(Zr=document.documentMode);var My=ht&&"TextEvent"in window&&!Zr,Ud=ht&&(!Zs||Zr&&8<Zr&&11>=Zr),Bd=String.fromCharCode(32),Yd=!1;function Hd(e,t){switch(e){case"keyup":return Ay.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Un=!1;function zy(e,t){switch(e){case"compositionend":return Gd(t);case"keypress":return t.which!==32?null:(Yd=!0,Bd);case"textInput":return e=t.data,e===Bd&&Yd?null:e;default:return null}}function Fy(e,t){if(Un)return e==="compositionend"||!Zs&&Hd(e,t)?(e=Id(),lo=Vs=jt=null,Un=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ud&&t.locale!=="ko"?null:t.data;default:return null}}var Uy={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Uy[e.type]:t==="textarea"}function Vd(e,t,n,r){hd(r),t=ho(t,"onChange"),0<t.length&&(n=new Ks("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ei=null,ti=null;function By(e){ap(e,0)}function fo(e){var t=Wn(e);if(nd(t))return e}function Yy(e,t){if(e==="change")return t}var Kd=!1;if(ht){var el;if(ht){var tl="oninput"in document;if(!tl){var qd=document.createElement("div");qd.setAttribute("oninput","return;"),tl=typeof qd.oninput=="function"}el=tl}else el=!1;Kd=el&&(!document.documentMode||9<document.documentMode)}function Qd(){ei&&(ei.detachEvent("onpropertychange",Jd),ti=ei=null)}function Jd(e){if(e.propertyName==="value"&&fo(ti)){var t=[];if(Vd(t,ti,e,$s(e)),e=By,un)e(t);else{un=!0;try{Os(e,t)}finally{un=!1,js()}}}}function Hy(e,t,n){e==="focusin"?(Qd(),ei=t,ti=n,ei.attachEvent("onpropertychange",Jd)):e==="focusout"&&Qd()}function Gy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return fo(ti)}function Wy(e,t){if(e==="click")return fo(t)}function Vy(e,t){if(e==="input"||e==="change")return fo(t)}function Ky(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ae=typeof Object.is=="function"?Object.is:Ky,qy=Object.prototype.hasOwnProperty;function ni(e,t){if(Ae(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!qy.call(t,n[r])||!Ae(e[n[r]],t[n[r]]))return!1;return!0}function Xd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zd(e,t){var n=Xd(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Xd(n)}}function ep(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ep(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function tp(){for(var e=window,t=Xi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Xi(e.document)}return t}function nl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Qy=ht&&"documentMode"in document&&11>=document.documentMode,Bn=null,rl=null,ri=null,il=!1;function np(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;il||Bn==null||Bn!==Xi(r)||(r=Bn,"selectionStart"in r&&nl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ri&&ni(ri,r)||(ri=r,r=ho(rl,"onSelect"),0<r.length&&(t=new Ks("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Bn)))}Ys("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Ys("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Ys(iy,2);for(var rp="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),ol=0;ol<rp.length;ol++)Bs.set(rp[ol],0);On("onMouseEnter",["mouseout","mouseover"]),On("onMouseLeave",["mouseout","mouseover"]),On("onPointerEnter",["pointerout","pointerover"]),On("onPointerLeave",["pointerout","pointerover"]),sn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),sn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),sn("onBeforeInput",["compositionend","keypress","textInput","paste"]),sn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),sn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),sn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ii="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ip=new Set("cancel close invalid load scroll toggle".split(" ").concat(ii));function op(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Zg(r,t,void 0,e),e.currentTarget=null}function ap(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;op(i,s,c),o=l}else for(a=0;a<r.length;a++){if(s=r[a],l=s.instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;op(i,s,c),o=l}}}if(to)throw e=As,to=!1,As=null,e}function H(e,t){var n=yp(t),r=e+"__bubble";n.has(r)||(up(t,e,2,!1),n.add(r))}var sp="_reactListening"+Math.random().toString(36).slice(2);function lp(e){e[sp]||(e[sp]=!0,qu.forEach(function(t){ip.has(t)||cp(t,!1,e,null),cp(t,!0,e,null)}))}function cp(e,t,n,r){var i=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,o=n;if(e==="selectionchange"&&n.nodeType!==9&&(o=n.ownerDocument),r!==null&&!t&&ip.has(e)){if(e!=="scroll")return;i|=2,o=r}var a=yp(o),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),up(o,e,i,t),a.add(s))}function up(e,t,n,r){var i=Bs.get(t);switch(i===void 0?2:i){case 0:i=fy;break;case 1:i=hy;break;default:i=Gs}n=i.bind(null,t,n,e),i=void 0,!Is||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function dp(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;s!==null;){if(a=pn(s),a===null)return;if(l=a.tag,l===5||l===6){r=o=a;continue e}s=s.parentNode}}r=r.return}qg(function(){var c=o,p=$s(n),d=[];e:{var f=Ld.get(e);if(f!==void 0){var y=Ks,v=e;switch(e){case"keypress":if(co(n)===0)break e;case"keydown":case"keyup":y=Ty;break;case"focusin":v="focus",y=Js;break;case"focusout":v="blur",y=Js;break;case"beforeblur":case"afterblur":y=Js;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=Md;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=yy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=Oy;break;case $d:case Rd:case Od:y=wy;break;case Dd:y=Ly;break;case"scroll":y=my;break;case"wheel":y=Iy;break;case"copy":case"cut":case"paste":y=ky;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Fd}var _=(t&4)!==0,g=!_&&e==="scroll",h=_?f!==null?f+"Capture":null:f;_=[];for(var m=c,w;m!==null;){w=m;var k=w.stateNode;if(w.tag===5&&k!==null&&(w=k,h!==null&&(k=Br(m,h),k!=null&&_.push(oi(m,k,w)))),g)break;m=m.return}0<_.length&&(f=new y(f,v,null,n,p),d.push({event:f,listeners:_}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",f&&!(t&16)&&(v=n.relatedTarget||n.fromElement)&&(pn(v)||v[Gn]))break e;if((y||f)&&(f=p.window===p?p:(f=p.ownerDocument)?f.defaultView||f.parentWindow:window,y?(v=n.relatedTarget||n.toElement,y=c,v=v?pn(v):null,v!==null&&(g=dn(v),v!==g||v.tag!==5&&v.tag!==6)&&(v=null)):(y=null,v=c),y!==v)){if(_=Md,k="onMouseLeave",h="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(_=Fd,k="onPointerLeave",h="onPointerEnter",m="pointer"),g=y==null?f:Wn(y),w=v==null?f:Wn(v),f=new _(k,m+"leave",y,n,p),f.target=g,f.relatedTarget=w,k=null,pn(p)===c&&(_=new _(h,m+"enter",v,n,p),_.target=w,_.relatedTarget=g,k=_),g=k,y&&v)t:{for(_=y,h=v,m=0,w=_;w;w=Yn(w))m++;for(w=0,k=h;k;k=Yn(k))w++;for(;0<m-w;)_=Yn(_),m--;for(;0<w-m;)h=Yn(h),w--;for(;m--;){if(_===h||h!==null&&_===h.alternate)break t;_=Yn(_),h=Yn(h)}_=null}else _=null;y!==null&&pp(d,f,y,_,!1),v!==null&&g!==null&&pp(d,g,v,_,!0)}}e:{if(f=c?Wn(c):window,y=f.nodeName&&f.nodeName.toLowerCase(),y==="select"||y==="input"&&f.type==="file")var C=Yy;else if(Wd(f))if(Kd)C=Vy;else{C=Gy;var S=Hy}else(y=f.nodeName)&&y.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(C=Wy);if(C&&(C=C(e,c))){Vd(d,C,n,p);break e}S&&S(e,f,c),e==="focusout"&&(S=f._wrapperState)&&S.controlled&&f.type==="number"&&_s(f,"number",f.value)}switch(S=c?Wn(c):window,e){case"focusin":(Wd(S)||S.contentEditable==="true")&&(Bn=S,rl=c,ri=null);break;case"focusout":ri=rl=Bn=null;break;case"mousedown":il=!0;break;case"contextmenu":case"mouseup":case"dragend":il=!1,np(d,n,p);break;case"selectionchange":if(Qy)break;case"keydown":case"keyup":np(d,n,p)}var $;if(Zs)e:{switch(e){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else Un?Hd(e,n)&&(O="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(O="onCompositionStart");O&&(Ud&&n.locale!=="ko"&&(Un||O!=="onCompositionStart"?O==="onCompositionEnd"&&Un&&($=Id()):(jt=p,Vs="value"in jt?jt.value:jt.textContent,Un=!0)),S=ho(c,O),0<S.length&&(O=new zd(O,e,null,n,p),d.push({event:O,listeners:S}),$?O.data=$:($=Gd(n),$!==null&&(O.data=$)))),($=My?zy(e,n):Fy(e,n))&&(c=ho(c,"onBeforeInput"),0<c.length&&(p=new zd("onBeforeInput","beforeinput",null,n,p),d.push({event:p,listeners:c}),p.data=$))}ap(d,t)})}function oi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ho(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Br(e,n),o!=null&&r.unshift(oi(e,o,i)),o=Br(e,t),o!=null&&r.push(oi(e,o,i))),e=e.return}return r}function Yn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function pp(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&c!==null&&(s=c,i?(l=Br(n,o),l!=null&&a.unshift(oi(n,l,s))):i||(l=Br(n,o),l!=null&&a.push(oi(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}function mo(){}var al=null,sl=null;function fp(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function ll(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var hp=typeof setTimeout=="function"?setTimeout:void 0,Jy=typeof clearTimeout=="function"?clearTimeout:void 0;function cl(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function Hn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function mp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ul=0;function Xy(e){return{$$typeof:gs,toString:e,valueOf:e}}var go=Math.random().toString(36).slice(2),It="__reactFiber$"+go,yo="__reactProps$"+go,Gn="__reactContainer$"+go,gp="__reactEvents$"+go;function pn(e){var t=e[It];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Gn]||n[It]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=mp(e);e!==null;){if(n=e[It])return n;e=mp(e)}return t}e=n,n=e.parentNode}return null}function ai(e){return e=e[It]||e[Gn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Wn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(E(33))}function vo(e){return e[yo]||null}function yp(e){var t=e[gp];return t===void 0&&(t=e[gp]=new Set),t}var dl=[],Vn=-1;function At(e){return{current:e}}function G(e){0>Vn||(e.current=dl[Vn],dl[Vn]=null,Vn--)}function Q(e,t){Vn++,dl[Vn]=e.current,e.current=t}var Mt={},me=At(Mt),Ce=At(!1),fn=Mt;function Kn(e,t){var n=e.type.contextTypes;if(!n)return Mt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Pe(e){return e=e.childContextTypes,e!=null}function bo(){G(Ce),G(me)}function vp(e,t,n){if(me.current!==Mt)throw Error(E(168));Q(me,t),Q(Ce,n)}function bp(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(E(108,Dn(t)||"Unknown",i));return W({},n,r)}function wo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mt,fn=me.current,Q(me,e),Q(Ce,Ce.current),!0}function wp(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=bp(e,t,fn),r.__reactInternalMemoizedMergedChildContext=e,G(Ce),G(me),Q(me,e)):G(Ce),Q(Ce,n)}var pl=null,hn=null,Zy=ae.unstable_runWithPriority,fl=ae.unstable_scheduleCallback,hl=ae.unstable_cancelCallback,e0=ae.unstable_shouldYield,xp=ae.unstable_requestPaint,ml=ae.unstable_now,t0=ae.unstable_getCurrentPriorityLevel,xo=ae.unstable_ImmediatePriority,kp=ae.unstable_UserBlockingPriority,_p=ae.unstable_NormalPriority,Sp=ae.unstable_LowPriority,Ep=ae.unstable_IdlePriority,gl={},n0=xp!==void 0?xp:function(){},mt=null,ko=null,yl=!1,Cp=ml(),ge=1e4>Cp?ml:function(){return ml()-Cp};function qn(){switch(t0()){case xo:return 99;case kp:return 98;case _p:return 97;case Sp:return 96;case Ep:return 95;default:throw Error(E(332))}}function Pp(e){switch(e){case 99:return xo;case 98:return kp;case 97:return _p;case 96:return Sp;case 95:return Ep;default:throw Error(E(332))}}function mn(e,t){return e=Pp(e),Zy(e,t)}function si(e,t,n){return e=Pp(e),fl(e,t,n)}function tt(){if(ko!==null){var e=ko;ko=null,hl(e)}Np()}function Np(){if(!yl&&mt!==null){yl=!0;var e=0;try{var t=mt;mn(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),mt=null}catch(n){throw mt!==null&&(mt=mt.slice(e+1)),fl(xo,tt),n}finally{yl=!1}}}var r0=ln.ReactCurrentBatchConfig;function Ve(e,t){if(e&&e.defaultProps){t=W({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var _o=At(null),So=null,Qn=null,Eo=null;function vl(){Eo=Qn=So=null}function bl(e){var t=_o.current;G(_o),e.type._context._currentValue=t}function Tp(e,t){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)===t){if(n===null||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,n!==null&&(n.childLanes|=t);e=e.return}}function Jn(e,t){So=e,Eo=Qn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ke=!0),e.firstContext=null)}function Me(e,t){if(Eo!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(Eo=e,t=1073741823),t={context:e,observedBits:t,next:null},Qn===null){if(So===null)throw Error(E(308));Qn=t,So.dependencies={lanes:0,firstContext:t,responders:null}}else Qn=Qn.next=t;return e._currentValue}var zt=!1;function wl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function $p(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ft(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ut(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function Rp(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function li(e,t,n,r){var i=e.updateQueue;zt=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?o=c:a.next=c,a=l;var p=e.alternate;if(p!==null){p=p.updateQueue;var d=p.lastBaseUpdate;d!==a&&(d===null?p.firstBaseUpdate=c:d.next=c,p.lastBaseUpdate=l)}}if(o!==null){d=i.baseState,a=0,p=c=l=null;do{s=o.lane;var f=o.eventTime;if((r&s)===s){p!==null&&(p=p.next={eventTime:f,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var y=e,v=o;switch(s=t,f=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){d=y.call(f,d,s);break e}d=y;break e;case 3:y.flags=y.flags&-4097|64;case 0:if(y=v.payload,s=typeof y=="function"?y.call(f,d,s):y,s==null)break e;d=W({},d,s);break e;case 2:zt=!0}}o.callback!==null&&(e.flags|=32,s=i.effects,s===null?i.effects=[o]:s.push(o))}else f={eventTime:f,lane:s,tag:o.tag,payload:o.payload,callback:o.callback,next:null},p===null?(c=p=f,l=d):p=p.next=f,a|=s;if(o=o.next,o===null){if(s=i.shared.pending,s===null)break;o=s.next,s.next=null,i.lastBaseUpdate=s,i.shared.pending=null}}while(1);p===null&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=p,wi|=a,e.lanes=a,e.memoizedState=d}}function Op(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(E(191,i));i.call(r)}}}var Dp=new Wi.Component().refs;function Co(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:W({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Po={isMounted:function(e){return(e=e._reactInternals)?dn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Oe(),i=Ht(e),o=Ft(r,i);o.payload=t,n!=null&&(o.callback=n),Ut(e,o),Gt(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Oe(),i=Ht(e),o=Ft(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),Ut(e,o),Gt(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Oe(),r=Ht(e),i=Ft(n,r);i.tag=2,t!=null&&(i.callback=t),Ut(e,i),Gt(e,r,n)}};function Lp(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!ni(n,r)||!ni(i,o):!0}function jp(e,t,n){var r=!1,i=Mt,o=t.contextType;return typeof o=="object"&&o!==null?o=Me(o):(i=Pe(t)?fn:me.current,r=t.contextTypes,o=(r=r!=null)?Kn(e,i):Mt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Po,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ip(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Po.enqueueReplaceState(t,t.state,null)}function xl(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Dp,wl(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Me(o):(o=Pe(t)?fn:me.current,i.context=Kn(e,o)),li(e,n,i,r),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Co(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Po.enqueueReplaceState(i,i.state,null),li(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4)}var No=Array.isArray;function ci(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(E(309));var r=n.stateNode}if(!r)throw Error(E(147,e));var i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=r.refs;a===Dp&&(a=r.refs={}),o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(E(284));if(!n._owner)throw Error(E(290,e))}return e}function To(e,t){if(e.type!=="textarea")throw Error(E(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Ap(e){function t(g,h){if(e){var m=g.lastEffect;m!==null?(m.nextEffect=h,g.lastEffect=h):g.firstEffect=g.lastEffect=h,h.nextEffect=null,h.flags=8}}function n(g,h){if(!e)return null;for(;h!==null;)t(g,h),h=h.sibling;return null}function r(g,h){for(g=new Map;h!==null;)h.key!==null?g.set(h.key,h):g.set(h.index,h),h=h.sibling;return g}function i(g,h){return g=Kt(g,h),g.index=0,g.sibling=null,g}function o(g,h,m){return g.index=m,e?(m=g.alternate,m!==null?(m=m.index,m<h?(g.flags=2,h):m):(g.flags=2,h)):h}function a(g){return e&&g.alternate===null&&(g.flags=2),g}function s(g,h,m,w){return h===null||h.tag!==6?(h=rc(m,g.mode,w),h.return=g,h):(h=i(h,m),h.return=g,h)}function l(g,h,m,w){return h!==null&&h.elementType===m.type?(w=i(h,m.props),w.ref=ci(g,h,m),w.return=g,w):(w=Vo(m.type,m.key,m.props,null,g.mode,w),w.ref=ci(g,h,m),w.return=g,w)}function c(g,h,m,w){return h===null||h.tag!==4||h.stateNode.containerInfo!==m.containerInfo||h.stateNode.implementation!==m.implementation?(h=ic(m,g.mode,w),h.return=g,h):(h=i(h,m.children||[]),h.return=g,h)}function p(g,h,m,w,k){return h===null||h.tag!==7?(h=or(m,g.mode,w,k),h.return=g,h):(h=i(h,m),h.return=g,h)}function d(g,h,m){if(typeof h=="string"||typeof h=="number")return h=rc(""+h,g.mode,m),h.return=g,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case jr:return m=Vo(h.type,h.key,h.props,null,g.mode,m),m.ref=ci(g,null,h),m.return=g,m;case cn:return h=ic(h,g.mode,m),h.return=g,h}if(No(h)||Mr(h))return h=or(h,g.mode,m,null),h.return=g,h;To(g,h)}return null}function f(g,h,m,w){var k=h!==null?h.key:null;if(typeof m=="string"||typeof m=="number")return k!==null?null:s(g,h,""+m,w);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case jr:return m.key===k?m.type===Tt?p(g,h,m.props.children,w,k):l(g,h,m,w):null;case cn:return m.key===k?c(g,h,m,w):null}if(No(m)||Mr(m))return k!==null?null:p(g,h,m,w,null);To(g,m)}return null}function y(g,h,m,w,k){if(typeof w=="string"||typeof w=="number")return g=g.get(m)||null,s(h,g,""+w,k);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case jr:return g=g.get(w.key===null?m:w.key)||null,w.type===Tt?p(h,g,w.props.children,k,w.key):l(h,g,w,k);case cn:return g=g.get(w.key===null?m:w.key)||null,c(h,g,w,k)}if(No(w)||Mr(w))return g=g.get(m)||null,p(h,g,w,k,null);To(h,w)}return null}function v(g,h,m,w){for(var k=null,C=null,S=h,$=h=0,O=null;S!==null&&$<m.length;$++){S.index>$?(O=S,S=null):O=S.sibling;var N=f(g,S,m[$],w);if(N===null){S===null&&(S=O);break}e&&S&&N.alternate===null&&t(g,S),h=o(N,h,$),C===null?k=N:C.sibling=N,C=N,S=O}if($===m.length)return n(g,S),k;if(S===null){for(;$<m.length;$++)S=d(g,m[$],w),S!==null&&(h=o(S,h,$),C===null?k=S:C.sibling=S,C=S);return k}for(S=r(g,S);$<m.length;$++)O=y(S,g,$,m[$],w),O!==null&&(e&&O.alternate!==null&&S.delete(O.key===null?$:O.key),h=o(O,h,$),C===null?k=O:C.sibling=O,C=O);return e&&S.forEach(function(F){return t(g,F)}),k}function _(g,h,m,w){var k=Mr(m);if(typeof k!="function")throw Error(E(150));if(m=k.call(m),m==null)throw Error(E(151));for(var C=k=null,S=h,$=h=0,O=null,N=m.next();S!==null&&!N.done;$++,N=m.next()){S.index>$?(O=S,S=null):O=S.sibling;var F=f(g,S,N.value,w);if(F===null){S===null&&(S=O);break}e&&S&&F.alternate===null&&t(g,S),h=o(F,h,$),C===null?k=F:C.sibling=F,C=F,S=O}if(N.done)return n(g,S),k;if(S===null){for(;!N.done;$++,N=m.next())N=d(g,N.value,w),N!==null&&(h=o(N,h,$),C===null?k=N:C.sibling=N,C=N);return k}for(S=r(g,S);!N.done;$++,N=m.next())N=y(S,g,$,N.value,w),N!==null&&(e&&N.alternate!==null&&S.delete(N.key===null?$:N.key),h=o(N,h,$),C===null?k=N:C.sibling=N,C=N);return e&&S.forEach(function(He){return t(g,He)}),k}return function(g,h,m,w){var k=typeof m=="object"&&m!==null&&m.type===Tt&&m.key===null;k&&(m=m.props.children);var C=typeof m=="object"&&m!==null;if(C)switch(m.$$typeof){case jr:e:{for(C=m.key,k=h;k!==null;){if(k.key===C){switch(k.tag){case 7:if(m.type===Tt){n(g,k.sibling),h=i(k,m.props.children),h.return=g,g=h;break e}break;default:if(k.elementType===m.type){n(g,k.sibling),h=i(k,m.props),h.ref=ci(g,k,m),h.return=g,g=h;break e}}n(g,k);break}else t(g,k);k=k.sibling}m.type===Tt?(h=or(m.props.children,g.mode,w,m.key),h.return=g,g=h):(w=Vo(m.type,m.key,m.props,null,g.mode,w),w.ref=ci(g,h,m),w.return=g,g=w)}return a(g);case cn:e:{for(k=m.key;h!==null;){if(h.key===k)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){n(g,h.sibling),h=i(h,m.children||[]),h.return=g,g=h;break e}else{n(g,h);break}else t(g,h);h=h.sibling}h=ic(m,g.mode,w),h.return=g,g=h}return a(g)}if(typeof m=="string"||typeof m=="number")return m=""+m,h!==null&&h.tag===6?(n(g,h.sibling),h=i(h,m),h.return=g,g=h):(n(g,h),h=rc(m,g.mode,w),h.return=g,g=h),a(g);if(No(m))return v(g,h,m,w);if(Mr(m))return _(g,h,m,w);if(C&&To(g,m),typeof m>"u"&&!k)switch(g.tag){case 1:case 22:case 0:case 11:case 15:throw Error(E(152,Dn(g.type)||"Component"))}return n(g,h)}}var $o=Ap(!0),Mp=Ap(!1),ui={},nt=At(ui),di=At(ui),pi=At(ui);function gn(e){if(e===ui)throw Error(E(174));return e}function kl(e,t){switch(Q(pi,t),Q(di,e),Q(nt,ui),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ps(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ps(t,e)}G(nt),Q(nt,t)}function Xn(){G(nt),G(di),G(pi)}function zp(e){gn(pi.current);var t=gn(nt.current),n=Ps(t,e.type);t!==n&&(Q(di,e),Q(nt,n))}function _l(e){di.current===e&&(G(nt),G(di))}var J=At(0);function Ro(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var gt=null,Bt=null,rt=!1;function Fp(e,t){var n=Ue(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Up(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function Sl(e){if(rt){var t=Bt;if(t){var n=t;if(!Up(e,t)){if(t=Hn(n.nextSibling),!t||!Up(e,t)){e.flags=e.flags&-1025|2,rt=!1,gt=e;return}Fp(gt,n)}gt=e,Bt=Hn(t.firstChild)}else e.flags=e.flags&-1025|2,rt=!1,gt=e}}function Bp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;gt=e}function Oo(e){if(e!==gt)return!1;if(!rt)return Bp(e),rt=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!ll(t,e.memoizedProps))for(t=Bt;t;)Fp(e,t),t=Hn(t.nextSibling);if(Bp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Bt=Hn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Bt=null}}else Bt=gt?Hn(e.stateNode.nextSibling):null;return!0}function El(){Bt=gt=null,rt=!1}var Zn=[];function Cl(){for(var e=0;e<Zn.length;e++)Zn[e]._workInProgressVersionPrimary=null;Zn.length=0}var fi=ln.ReactCurrentDispatcher,ze=ln.ReactCurrentBatchConfig,hi=0,ee=null,ye=null,ue=null,Do=!1,mi=!1;function Ne(){throw Error(E(321))}function Pl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ae(e[n],t[n]))return!1;return!0}function Nl(e,t,n,r,i,o){if(hi=o,ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fi.current=e===null||e.memoizedState===null?o0:a0,e=n(r,i),mi){o=0;do{if(mi=!1,!(25>o))throw Error(E(301));o+=1,ue=ye=null,t.updateQueue=null,fi.current=s0,e=n(r,i)}while(mi)}if(fi.current=Ao,t=ye!==null&&ye.next!==null,hi=0,ue=ye=ee=null,Do=!1,t)throw Error(E(300));return e}function yn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ue===null?ee.memoizedState=ue=e:ue=ue.next=e,ue}function vn(){if(ye===null){var e=ee.alternate;e=e!==null?e.memoizedState:null}else e=ye.next;var t=ue===null?ee.memoizedState:ue.next;if(t!==null)ue=t,ye=e;else{if(e===null)throw Error(E(310));ye=e,e={memoizedState:ye.memoizedState,baseState:ye.baseState,baseQueue:ye.baseQueue,queue:ye.queue,next:null},ue===null?ee.memoizedState=ue=e:ue=ue.next=e}return ue}function it(e,t){return typeof t=="function"?t(e):t}function gi(e){var t=vn(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=ye,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(i!==null){i=i.next,r=r.baseState;var s=a=o=null,l=i;do{var c=l.lane;if((hi&c)===c)s!==null&&(s=s.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),r=l.eagerReducer===e?l.eagerState:e(r,l.action);else{var p={lane:c,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};s===null?(a=s=p,o=r):s=s.next=p,ee.lanes|=c,wi|=c}l=l.next}while(l!==null&&l!==i);s===null?o=r:s.next=a,Ae(r,t.memoizedState)||(Ke=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function yi(e){var t=vn(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Ae(o,t.memoizedState)||(Ke=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Yp(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(i!==null?e=i===r:(e=e.mutableReadLanes,(e=(hi&e)===e)&&(t._workInProgressVersionPrimary=r,Zn.push(t))),e)return n(t._source);throw Zn.push(t),Error(E(350))}function Hp(e,t,n,r){var i=ke;if(i===null)throw Error(E(349));var o=t._getVersion,a=o(t._source),s=fi.current,l=s.useState(function(){return Yp(i,t,n)}),c=l[1],p=l[0];l=ue;var d=e.memoizedState,f=d.refs,y=f.getSnapshot,v=d.source;d=d.subscribe;var _=ee;return e.memoizedState={refs:f,source:t,subscribe:r},s.useEffect(function(){f.getSnapshot=n,f.setSnapshot=c;var g=o(t._source);if(!Ae(a,g)){g=n(t._source),Ae(p,g)||(c(g),g=Ht(_),i.mutableReadLanes|=g&i.pendingLanes),g=i.mutableReadLanes,i.entangledLanes|=g;for(var h=i.entanglements,m=g;0<m;){var w=31-Lt(m),k=1<<w;h[w]|=g,m&=~k}}},[n,t,r]),s.useEffect(function(){return r(t._source,function(){var g=f.getSnapshot,h=f.setSnapshot;try{h(g(t._source));var m=Ht(_);i.mutableReadLanes|=m&i.pendingLanes}catch(w){h(function(){throw w})}})},[t,r]),Ae(y,n)&&Ae(v,t)&&Ae(d,r)||(e={pending:null,dispatch:null,lastRenderedReducer:it,lastRenderedState:p},e.dispatch=c=Ol.bind(null,ee,e),l.queue=e,l.baseQueue=null,p=Yp(i,t,n),l.memoizedState=l.baseState=p),p}function Gp(e,t,n){var r=vn();return Hp(r,e,t,n)}function vi(e){var t=yn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:it,lastRenderedState:e},e=e.dispatch=Ol.bind(null,ee,e),[t.memoizedState,e]}function Lo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ee.updateQueue,t===null?(t={lastEffect:null},ee.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Wp(e){var t=yn();return e={current:e},t.memoizedState=e}function jo(){return vn().memoizedState}function Tl(e,t,n,r){var i=yn();ee.flags|=e,i.memoizedState=Lo(1|t,n,void 0,r===void 0?null:r)}function $l(e,t,n,r){var i=vn();r=r===void 0?null:r;var o=void 0;if(ye!==null){var a=ye.memoizedState;if(o=a.destroy,r!==null&&Pl(r,a.deps)){Lo(t,n,o,r);return}}ee.flags|=e,i.memoizedState=Lo(1|t,n,o,r)}function Vp(e,t){return Tl(516,4,e,t)}function Io(e,t){return $l(516,4,e,t)}function Kp(e,t){return $l(4,2,e,t)}function qp(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Qp(e,t,n){return n=n!=null?n.concat([e]):null,$l(4,2,qp.bind(null,t,e),n)}function Rl(){}function Jp(e,t){var n=vn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Pl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xp(e,t){var n=vn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Pl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function i0(e,t){var n=qn();mn(98>n?98:n,function(){e(!0)}),mn(97<n?97:n,function(){var r=ze.transition;ze.transition=1;try{e(!1),t()}finally{ze.transition=r}})}function Ol(e,t,n){var r=Oe(),i=Ht(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(a===null?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===ee||a!==null&&a===ee)mi=Do=!0;else{if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,l=a(s,n);if(o.eagerReducer=a,o.eagerState=l,Ae(l,s))return}catch{}finally{}Gt(e,i,r)}}var Ao={readContext:Me,useCallback:Ne,useContext:Ne,useEffect:Ne,useImperativeHandle:Ne,useLayoutEffect:Ne,useMemo:Ne,useReducer:Ne,useRef:Ne,useState:Ne,useDebugValue:Ne,useDeferredValue:Ne,useTransition:Ne,useMutableSource:Ne,useOpaqueIdentifier:Ne,unstable_isNewReconciler:!1},o0={readContext:Me,useCallback:function(e,t){return yn().memoizedState=[e,t===void 0?null:t],e},useContext:Me,useEffect:Vp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Tl(4,2,qp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Tl(4,2,e,t)},useMemo:function(e,t){var n=yn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=yn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=Ol.bind(null,ee,e),[r.memoizedState,e]},useRef:Wp,useState:vi,useDebugValue:Rl,useDeferredValue:function(e){var t=vi(e),n=t[0],r=t[1];return Vp(function(){var i=ze.transition;ze.transition=1;try{r(e)}finally{ze.transition=i}},[e]),n},useTransition:function(){var e=vi(!1),t=e[0];return e=i0.bind(null,e[1]),Wp(e),[e,t]},useMutableSource:function(e,t,n){var r=yn();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},Hp(r,e,t,n)},useOpaqueIdentifier:function(){if(rt){var e=!1,t=Xy(function(){throw e||(e=!0,n("r:"+(ul++).toString(36))),Error(E(355))}),n=vi(t)[1];return!(ee.mode&2)&&(ee.flags|=516,Lo(5,function(){n("r:"+(ul++).toString(36))},void 0,null)),t}return t="r:"+(ul++).toString(36),vi(t),t},unstable_isNewReconciler:!1},a0={readContext:Me,useCallback:Jp,useContext:Me,useEffect:Io,useImperativeHandle:Qp,useLayoutEffect:Kp,useMemo:Xp,useReducer:gi,useRef:jo,useState:function(){return gi(it)},useDebugValue:Rl,useDeferredValue:function(e){var t=gi(it),n=t[0],r=t[1];return Io(function(){var i=ze.transition;ze.transition=1;try{r(e)}finally{ze.transition=i}},[e]),n},useTransition:function(){var e=gi(it)[0];return[jo().current,e]},useMutableSource:Gp,useOpaqueIdentifier:function(){return gi(it)[0]},unstable_isNewReconciler:!1},s0={readContext:Me,useCallback:Jp,useContext:Me,useEffect:Io,useImperativeHandle:Qp,useLayoutEffect:Kp,useMemo:Xp,useReducer:yi,useRef:jo,useState:function(){return yi(it)},useDebugValue:Rl,useDeferredValue:function(e){var t=yi(it),n=t[0],r=t[1];return Io(function(){var i=ze.transition;ze.transition=1;try{r(e)}finally{ze.transition=i}},[e]),n},useTransition:function(){var e=yi(it)[0];return[jo().current,e]},useMutableSource:Gp,useOpaqueIdentifier:function(){return yi(it)[0]},unstable_isNewReconciler:!1},l0=ln.ReactCurrentOwner,Ke=!1;function Te(e,t,n,r){t.child=e===null?Mp(t,null,n,r):$o(t,e.child,n,r)}function Zp(e,t,n,r,i){n=n.render;var o=t.ref;return Jn(t,i),r=Nl(e,t,n,r,o,i),e!==null&&!Ke?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,yt(e,t,i)):(t.flags|=1,Te(e,t,r,i),t.child)}function ef(e,t,n,r,i,o){if(e===null){var a=n.type;return typeof a=="function"&&!tc(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,tf(e,t,a,r,i,o)):(e=Vo(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}return a=e.child,!(i&o)&&(i=a.memoizedProps,n=n.compare,n=n!==null?n:ni,n(i,r)&&e.ref===t.ref)?yt(e,t,o):(t.flags|=1,e=Kt(a,r),e.ref=t.ref,e.return=t,t.child=e)}function tf(e,t,n,r,i,o){if(e!==null&&ni(e.memoizedProps,r)&&e.ref===t.ref)if(Ke=!1,(o&i)!==0)e.flags&16384&&(Ke=!0);else return t.lanes=e.lanes,yt(e,t,o);return Ll(e,t,n,r,o)}function Dl(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden"||r.mode==="unstable-defer-without-hiding")if(!(t.mode&4))t.memoizedState={baseLanes:0},Wo(t,n);else if(n&1073741824)t.memoizedState={baseLanes:0},Wo(t,o!==null?o.baseLanes:n);else return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Wo(t,e),null;else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Wo(t,r);return Te(e,t,i,n),t.child}function nf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function Ll(e,t,n,r,i){var o=Pe(n)?fn:me.current;return o=Kn(t,o),Jn(t,i),n=Nl(e,t,n,r,o,i),e!==null&&!Ke?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,yt(e,t,i)):(t.flags|=1,Te(e,t,n,i),t.child)}function rf(e,t,n,r,i){if(Pe(n)){var o=!0;wo(t)}else o=!1;if(Jn(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),jp(t,n,r),xl(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=Me(c):(c=Pe(n)?fn:me.current,c=Kn(t,c));var p=n.getDerivedStateFromProps,d=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==c)&&Ip(t,a,r,c),zt=!1;var f=t.memoizedState;a.state=f,li(t,r,a,i),l=t.memoizedState,s!==r||f!==l||Ce.current||zt?(typeof p=="function"&&(Co(t,n,p,r),l=t.memoizedState),(s=zt||Lp(t,n,s,r,f,l,c))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4)):(typeof a.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4),r=!1)}else{a=t.stateNode,$p(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Ve(t.type,s),a.props=c,d=t.pendingProps,f=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=Me(l):(l=Pe(n)?fn:me.current,l=Kn(t,l));var y=n.getDerivedStateFromProps;(p=typeof y=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||f!==l)&&Ip(t,a,r,l),zt=!1,f=t.memoizedState,a.state=f,li(t,r,a,i);var v=t.memoizedState;s!==d||f!==v||Ce.current||zt?(typeof y=="function"&&(Co(t,n,y,r),v=t.memoizedState),(c=zt||Lp(t,n,c,r,f,v,l))?(p||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,v,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,v,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=v),a.props=r,a.state=v,a.context=l,r=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return jl(e,t,n,r,o,i)}function jl(e,t,n,r,i,o){nf(e,t);var a=(t.flags&64)!==0;if(!r&&!a)return i&&wp(t,n,!1),yt(e,t,o);r=t.stateNode,l0.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=$o(t,e.child,null,o),t.child=$o(t,null,s,o)):Te(e,t,s,o),t.memoizedState=r.state,i&&wp(t,n,!0),t.child}function of(e){var t=e.stateNode;t.pendingContext?vp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&vp(e,t.context,!1),kl(e,t.containerInfo)}var Mo={dehydrated:null,retryLane:0};function af(e,t,n){var r=t.pendingProps,i=J.current,o=!1,a;return(a=(t.flags&64)!==0)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-65):e!==null&&e.memoizedState===null||r.fallback===void 0||r.unstable_avoidThisFallback===!0||(i|=1),Q(J,i&1),e===null?(r.fallback!==void 0&&Sl(t),e=r.children,i=r.fallback,o?(e=sf(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Mo,e):typeof r.unstable_expectedLoadTime=="number"?(e=sf(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Mo,t.lanes=33554432,e):(n=nc({mode:"visible",children:e},t.mode,n,null),n.return=t,t.child=n)):e.memoizedState!==null?o?(r=cf(e,t,r.children,r.fallback,n),o=t.child,i=e.child.memoizedState,o.memoizedState=i===null?{baseLanes:n}:{baseLanes:i.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Mo,r):(n=lf(e,t,r.children,n),t.memoizedState=null,n):o?(r=cf(e,t,r.children,r.fallback,n),o=t.child,i=e.child.memoizedState,o.memoizedState=i===null?{baseLanes:n}:{baseLanes:i.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Mo,r):(n=lf(e,t,r.children,n),t.memoizedState=null,n)}function sf(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},!(i&2)&&o!==null?(o.childLanes=0,o.pendingProps=t):o=nc(t,i,0,null),n=or(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function lf(e,t,n,r){var i=e.child;return e=i.sibling,n=Kt(i,{mode:"visible",children:n}),!(t.mode&2)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function cf(e,t,n,r,i){var o=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return!(o&2)&&t.child!==a?(n=t.child,n.childLanes=0,n.pendingProps=s,a=n.lastEffect,a!==null?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Kt(a,s),e!==null?r=Kt(e,r):(r=or(r,o,i,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function uf(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Tp(e.return,t)}function Il(e,t,n,r,i,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function df(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Te(e,t,r.children,n),r=J.current,r&2)r=r&1|2,t.flags|=64;else{if(e!==null&&e.flags&64)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&uf(e,n);else if(e.tag===19)uf(e,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Q(J,r),!(t.mode&2))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Ro(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Il(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ro(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Il(t,!0,n,null,o,t.lastEffect);break;case"together":Il(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function yt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),wi|=t.lanes,n&t.childLanes){if(e!==null&&t.child!==e.child)throw Error(E(153));if(t.child!==null){for(e=t.child,n=Kt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Kt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var pf,Al,ff,hf;pf=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Al=function(){},ff=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,gn(nt.current);var o=null;switch(n){case"input":i=xs(e,i),r=xs(e,r),o=[];break;case"option":i=Ss(e,i),r=Ss(e,r),o=[];break;case"select":i=W({},i,{value:void 0}),r=W({},r,{value:void 0}),o=[];break;case"textarea":i=Es(e,i),r=Es(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=mo)}Ns(n,r);var a;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Lr.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var l=r[c];if(s=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(o||(o=[]),o.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Lr.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&H("scroll",e),o||s===l||(o=[])):typeof l=="object"&&l!==null&&l.$$typeof===gs?l.toString():(o=o||[]).push(c,l))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}},hf=function(e,t,n,r){n!==r&&(t.flags|=4)};function bi(e,t){if(!rt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function c0(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Pe(t.type)&&bo(),null;case 3:return Xn(),G(Ce),G(me),Cl(),r=t.stateNode,r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Oo(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Al(t),null;case 5:_l(t);var i=gn(pi.current);if(n=t.type,e!==null&&t.stateNode!=null)ff(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(t.stateNode===null)throw Error(E(166));return null}if(e=gn(nt.current),Oo(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[It]=t,r[yo]=o,n){case"dialog":H("cancel",r),H("close",r);break;case"iframe":case"object":case"embed":H("load",r);break;case"video":case"audio":for(e=0;e<ii.length;e++)H(ii[e],r);break;case"source":H("error",r);break;case"img":case"image":case"link":H("error",r),H("load",r);break;case"details":H("toggle",r);break;case"input":rd(r,o),H("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},H("invalid",r);break;case"textarea":ad(r,o),H("invalid",r)}Ns(n,o),e=null;for(var a in o)o.hasOwnProperty(a)&&(i=o[a],a==="children"?typeof i=="string"?r.textContent!==i&&(e=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(e=["children",""+i]):Lr.hasOwnProperty(a)&&i!=null&&a==="onScroll"&&H("scroll",r));switch(n){case"input":Ji(r),od(r,o,!0);break;case"textarea":Ji(r),ld(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=mo)}r=e,t.updateQueue=r,r!==null&&(t.flags|=4)}else{switch(a=i.nodeType===9?i:i.ownerDocument,e===Cs.html&&(e=cd(n)),e===Cs.html?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[It]=t,e[yo]=r,pf(e,t,!1,!1),t.stateNode=e,a=Ts(n,r),n){case"dialog":H("cancel",e),H("close",e),i=r;break;case"iframe":case"object":case"embed":H("load",e),i=r;break;case"video":case"audio":for(i=0;i<ii.length;i++)H(ii[i],e);i=r;break;case"source":H("error",e),i=r;break;case"img":case"image":case"link":H("error",e),H("load",e),i=r;break;case"details":H("toggle",e),i=r;break;case"input":rd(e,r),i=xs(e,r),H("invalid",e);break;case"option":i=Ss(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=W({},r,{value:void 0}),H("invalid",e);break;case"textarea":ad(e,r),i=Es(e,r),H("invalid",e);break;default:i=r}Ns(n,i);var s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?pd(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&ud(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Fr(e,l):typeof l=="number"&&Fr(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Lr.hasOwnProperty(o)?l!=null&&o==="onScroll"&&H("scroll",e):l!=null&&us(e,o,l,a))}switch(n){case"input":Ji(e),od(e,r,!1);break;case"textarea":Ji(e),ld(e);break;case"option":r.value!=null&&e.setAttribute("value",""+$t(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Ln(e,!!r.multiple,o,!1):r.defaultValue!=null&&Ln(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=mo)}fp(n,r)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)hf(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(E(166));n=gn(pi.current),gn(nt.current),Oo(t)?(r=t.stateNode,n=t.memoizedProps,r[It]=t,r.nodeValue!==n&&(t.flags|=4)):(r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[It]=t,t.stateNode=r)}return null;case 13:return G(J),r=t.memoizedState,t.flags&64?(t.lanes=n,t):(r=r!==null,n=!1,e===null?t.memoizedProps.fallback!==void 0&&Oo(t):n=e.memoizedState!==null,r&&!n&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||J.current&1?de===0&&(de=3):((de===0||de===3)&&(de=4),ke===null||!(wi&134217727)&&!(tr&134217727)||rr(ke,ve))),(r||n)&&(t.flags|=4),null);case 4:return Xn(),Al(t),e===null&&lp(t.stateNode.containerInfo),null;case 10:return bl(t),null;case 17:return Pe(t.type)&&bo(),null;case 19:if(G(J),r=t.memoizedState,r===null)return null;if(o=(t.flags&64)!==0,a=r.rendering,a===null)if(o)bi(r,!1);else{if(de!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(a=Ro(e),a!==null){for(t.flags|=64,bi(r,!1),o=a.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),r.lastEffect===null&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Q(J,J.current&1|2),t.child}e=e.sibling}r.tail!==null&&ge()>Kl&&(t.flags|=64,o=!0,bi(r,!1),t.lanes=33554432)}else{if(!o)if(e=Ro(a),e!==null){if(t.flags|=64,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),bi(r,!0),r.tail===null&&r.tailMode==="hidden"&&!a.alternate&&!rt)return t=t.lastEffect=r.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*ge()-r.renderingStartTime>Kl&&n!==1073741824&&(t.flags|=64,o=!0,bi(r,!1),t.lanes=33554432);r.isBackwards?(a.sibling=t.child,t.child=a):(n=r.last,n!==null?n.sibling=a:t.child=a,r.last=a)}return r.tail!==null?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=ge(),n.sibling=null,t=J.current,Q(J,o?t&1|2:t&1),n):null;case 23:case 24:return ec(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&r.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(E(156,t.tag))}function u0(e){switch(e.tag){case 1:Pe(e.type)&&bo();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(Xn(),G(Ce),G(me),Cl(),t=e.flags,t&64)throw Error(E(285));return e.flags=t&-4097|64,e;case 5:return _l(e),null;case 13:return G(J),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return G(J),null;case 4:return Xn(),null;case 10:return bl(e),null;case 23:case 24:return ec(),null;default:return null}}function Ml(e,t){try{var n="",r=t;do n+=Hg(r),r=r.return;while(r);var i=n}catch(o){i=`
|
|
38
|
+
`+i[a].replace(" at new "," at ");while(1<=a&&0<=s);break}}}finally{ws=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?zr(e):""}function Hm(e){switch(e.tag){case 5:return zr(e.type);case 16:return zr("Lazy");case 13:return zr("Suspense");case 19:return zr("SuspenseList");case 0:case 2:case 15:return e=Qi(e.type,!1),e;case 11:return e=Qi(e.type.render,!1),e;case 22:return e=Qi(e.type._render,!1),e;case 1:return e=Qi(e.type,!0),e;default:return""}}function Dn(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Tt:return"Fragment";case cn:return"Portal";case jr:return"Profiler";case ds:return"StrictMode";case Ar:return"Suspense";case Ki:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fs:return(e.displayName||"Context")+".Consumer";case ps:return(e._context.displayName||"Context")+".Provider";case Vi:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case qi:return Dn(e.type);case gs:return Dn(e._render);case hs:t=e._payload,e=e._init;try{return Dn(e(t))}catch{}}return null}function $t(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function td(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gm(e){var t=td(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ji(e){e._valueTracker||(e._valueTracker=Gm(e))}function nd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=td(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Xi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function xs(e,t){var n=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function rd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=$t(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function id(e,t){t=t.checked,t!=null&&us(e,"checked",t,!1)}function ks(e,t){id(e,t);var n=$t(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?_s(e,t.type,n):t.hasOwnProperty("defaultValue")&&_s(e,t.type,$t(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function od(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function _s(e,t,n){(t!=="number"||Xi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Wm(e){var t="";return Wi.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function Ss(e,t){return e=W({children:void 0},t),(t=Wm(t.children))&&(e.children=t),e}function Ln(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+$t(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Es(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(E(91));return W({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ad(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(E(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(E(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:$t(n)}}function sd(e,t){var n=$t(t.value),r=$t(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ld(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var Cs={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function cd(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ps(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?cd(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Zi,ud=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==Cs.svg||"innerHTML"in e)e.innerHTML=t;else{for(Zi=Zi||document.createElement("div"),Zi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Zi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ur={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Vm=["Webkit","ms","Moz","O"];Object.keys(Ur).forEach(function(e){Vm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ur[t]=Ur[e]})});function dd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ur.hasOwnProperty(e)&&Ur[e]?(""+t).trim():t+"px"}function pd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=dd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Km=W({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ns(e,t){if(t){if(Km[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function Ts(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function $s(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Rs=null,In=null,jn=null;function fd(e){if(e=ai(e)){if(typeof Rs!="function")throw Error(E(280));var t=e.stateNode;t&&(t=vo(t),Rs(e.stateNode,e.type,t))}}function hd(e){In?jn?jn.push(e):jn=[e]:In=e}function gd(){if(In){var e=In,t=jn;if(jn=In=null,fd(e),t)for(e=0;e<t.length;e++)fd(t[e])}}function Os(e,t){return e(t)}function md(e,t,n,r,i){return e(t,n,r,i)}function Ds(){}var yd=Os,un=!1,Ls=!1;function Is(){(In!==null||jn!==null)&&(Ds(),gd())}function qm(e,t,n){if(Ls)return e(t,n);Ls=!0;try{return yd(e,t,n)}finally{Ls=!1,Is()}}function Br(e,t){var n=e.stateNode;if(n===null)return null;var r=vo(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(E(231,t,typeof n));return n}var js=!1;if(ht)try{var Yr={};Object.defineProperty(Yr,"passive",{get:function(){js=!0}}),window.addEventListener("test",Yr,Yr),window.removeEventListener("test",Yr,Yr)}catch{js=!1}function Qm(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(p){this.onError(p)}}var Hr=!1,eo=null,to=!1,As=null,Jm={onError:function(e){Hr=!0,eo=e}};function Xm(e,t,n,r,i,o,a,s,l){Hr=!1,eo=null,Qm.apply(Jm,arguments)}function Zm(e,t,n,r,i,o,a,s,l){if(Xm.apply(this,arguments),Hr){if(Hr){var c=eo;Hr=!1,eo=null}else throw Error(E(198));to||(to=!0,As=c)}}function dn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&1026&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function vd(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function bd(e){if(dn(e)!==e)throw Error(E(188))}function ey(e){var t=e.alternate;if(!t){if(t=dn(e),t===null)throw Error(E(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return bd(i),e;if(o===r)return bd(i),t;o=o.sibling}throw Error(E(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(E(189))}}if(n.alternate!==r)throw Error(E(190))}if(n.tag!==3)throw Error(E(188));return n.stateNode.current===n?e:t}function wd(e){if(e=ey(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function xd(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var kd,Ms,_d,Sd,zs=!1,et=[],Rt=null,Ot=null,Dt=null,Gr=new Map,Wr=new Map,Vr=[],Ed="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Fs(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:i,targetContainers:[r]}}function Cd(e,t){switch(e){case"focusin":case"focusout":Rt=null;break;case"dragenter":case"dragleave":Ot=null;break;case"mouseover":case"mouseout":Dt=null;break;case"pointerover":case"pointerout":Gr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wr.delete(t.pointerId)}}function Kr(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e=Fs(t,n,r,i,o),t!==null&&(t=ai(t),t!==null&&Ms(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function ty(e,t,n,r,i){switch(t){case"focusin":return Rt=Kr(Rt,e,t,n,r,i),!0;case"dragenter":return Ot=Kr(Ot,e,t,n,r,i),!0;case"mouseover":return Dt=Kr(Dt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Gr.set(o,Kr(Gr.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Wr.set(o,Kr(Wr.get(o)||null,e,t,n,r,i)),!0}return!1}function ny(e){var t=pn(e.target);if(t!==null){var n=dn(t);if(n!==null){if(t=n.tag,t===13){if(t=vd(n),t!==null){e.blockedOn=t,Sd(e.lanePriority,function(){ae.unstable_runWithPriority(e.priority,function(){_d(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function no(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ws(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=ai(n),t!==null&&Ms(t),e.blockedOn=n,!1;t.shift()}return!0}function Pd(e,t,n){no(e)&&n.delete(t)}function ry(){for(zs=!1;0<et.length;){var e=et[0];if(e.blockedOn!==null){e=ai(e.blockedOn),e!==null&&kd(e);break}for(var t=e.targetContainers;0<t.length;){var n=Ws(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&et.shift()}Rt!==null&&no(Rt)&&(Rt=null),Ot!==null&&no(Ot)&&(Ot=null),Dt!==null&&no(Dt)&&(Dt=null),Gr.forEach(Pd),Wr.forEach(Pd)}function qr(e,t){e.blockedOn===t&&(e.blockedOn=null,zs||(zs=!0,ae.unstable_scheduleCallback(ae.unstable_NormalPriority,ry)))}function Nd(e){function t(i){return qr(i,e)}if(0<et.length){qr(et[0],e);for(var n=1;n<et.length;n++){var r=et[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Rt!==null&&qr(Rt,e),Ot!==null&&qr(Ot,e),Dt!==null&&qr(Dt,e),Gr.forEach(t),Wr.forEach(t),n=0;n<Vr.length;n++)r=Vr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Vr.length&&(n=Vr[0],n.blockedOn===null);)ny(n),n.blockedOn===null&&Vr.shift()}function ro(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var An={animationend:ro("Animation","AnimationEnd"),animationiteration:ro("Animation","AnimationIteration"),animationstart:ro("Animation","AnimationStart"),transitionend:ro("Transition","TransitionEnd")},Us={},Td={};ht&&(Td=document.createElement("div").style,"AnimationEvent"in window||(delete An.animationend.animation,delete An.animationiteration.animation,delete An.animationstart.animation),"TransitionEvent"in window||delete An.transitionend.transition);function io(e){if(Us[e])return Us[e];if(!An[e])return e;var t=An[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Td)return Us[e]=t[n];return e}var $d=io("animationend"),Rd=io("animationiteration"),Od=io("animationstart"),Dd=io("transitionend"),Ld=new Map,Bs=new Map,iy=["abort","abort",$d,"animationEnd",Rd,"animationIteration",Od,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Dd,"transitionEnd","waiting","waiting"];function Ys(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Bs.set(r,t),Ld.set(r,i),sn(i,[r])}}var oy=ae.unstable_now;oy();var Y=8;function Mn(e){if(1&e)return Y=15,1;if(2&e)return Y=14,2;if(4&e)return Y=13,4;var t=24&e;return t!==0?(Y=12,t):e&32?(Y=11,32):(t=192&e,t!==0?(Y=10,t):e&256?(Y=9,256):(t=3584&e,t!==0?(Y=8,t):e&4096?(Y=7,4096):(t=4186112&e,t!==0?(Y=6,t):(t=62914560&e,t!==0?(Y=5,t):e&67108864?(Y=4,67108864):e&134217728?(Y=3,134217728):(t=805306368&e,t!==0?(Y=2,t):1073741824&e?(Y=1,1073741824):(Y=8,e))))))}function ay(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function sy(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(E(358,e))}}function Qr(e,t){var n=e.pendingLanes;if(n===0)return Y=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(o!==0)r=o,i=Y=15;else if(o=n&134217727,o!==0){var l=o&~a;l!==0?(r=Mn(l),i=Y):(s&=o,s!==0&&(r=Mn(s),i=Y))}else o=n&~a,o!==0?(r=Mn(o),i=Y):s!==0&&(r=Mn(s),i=Y);if(r===0)return 0;if(r=31-Lt(r),r=n&((0>r?0:1<<r)<<1)-1,t!==0&&t!==r&&!(t&a)){if(Mn(t),i<=Y)return t;Y=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Lt(t),i=1<<n,r|=e[n],t&=~i;return r}function Id(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function oo(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=zn(24&~t),e===0?oo(10,t):e;case 10:return e=zn(192&~t),e===0?oo(8,t):e;case 8:return e=zn(3584&~t),e===0&&(e=zn(4186112&~t),e===0&&(e=512)),e;case 2:return t=zn(805306368&~t),t===0&&(t=268435456),t}throw Error(E(358,e))}function zn(e){return e&-e}function Hs(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ao(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,e=e.eventTimes,t=31-Lt(t),e[t]=n}var Lt=Math.clz32?Math.clz32:uy,ly=Math.log,cy=Math.LN2;function uy(e){return e===0?32:31-(ly(e)/cy|0)|0}var dy=ae.unstable_UserBlockingPriority,py=ae.unstable_runWithPriority,so=!0;function fy(e,t,n,r){un||Ds();var i=Gs,o=un;un=!0;try{md(i,e,t,n,r)}finally{(un=o)||Is()}}function hy(e,t,n,r){py(dy,Gs.bind(null,e,t,n,r))}function Gs(e,t,n,r){if(so){var i;if((i=(t&4)===0)&&0<et.length&&-1<Ed.indexOf(e))e=Fs(null,e,t,n,r),et.push(e);else{var o=Ws(e,t,n,r);if(o===null)i&&Cd(e,r);else{if(i){if(-1<Ed.indexOf(e)){e=Fs(o,e,t,n,r),et.push(e);return}if(ty(o,e,t,n,r))return;Cd(e,r)}dp(e,t,r,null,n)}}}}function Ws(e,t,n,r){var i=$s(r);if(i=pn(i),i!==null){var o=dn(i);if(o===null)i=null;else{var a=o.tag;if(a===13){if(i=vd(o),i!==null)return i;i=null}else if(a===3){if(o.stateNode.hydrate)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return dp(e,t,r,i,n),null}var It=null,Vs=null,lo=null;function jd(){if(lo)return lo;var e,t=Vs,n=t.length,r,i="value"in It?It.value:It.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return lo=i.slice(e,1<r?1-r:void 0)}function co(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function uo(){return!0}function Ad(){return!1}function Re(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?uo:Ad,this.isPropagationStopped=Ad,this}return W(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=uo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=uo)},persist:function(){},isPersistent:uo}),t}var Fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ks=Re(Fn),Jr=W({},Fn,{view:0,detail:0}),gy=Re(Jr),qs,Qs,Xr,po=W({},Jr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xs,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Xr&&(Xr&&e.type==="mousemove"?(qs=e.screenX-Xr.screenX,Qs=e.screenY-Xr.screenY):Qs=qs=0,Xr=e),qs)},movementY:function(e){return"movementY"in e?e.movementY:Qs}}),Md=Re(po),my=W({},po,{dataTransfer:0}),yy=Re(my),vy=W({},Jr,{relatedTarget:0}),Js=Re(vy),by=W({},Fn,{animationName:0,elapsedTime:0,pseudoElement:0}),wy=Re(by),xy=W({},Fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ky=Re(xy),_y=W({},Fn,{data:0}),zd=Re(_y),Sy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ey={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Cy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Py(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Cy[e])?!!t[e]:!1}function Xs(){return Py}var Ny=W({},Jr,{key:function(e){if(e.key){var t=Sy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=co(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ey[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xs,charCode:function(e){return e.type==="keypress"?co(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?co(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ty=Re(Ny),$y=W({},po,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fd=Re($y),Ry=W({},Jr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xs}),Oy=Re(Ry),Dy=W({},Fn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ly=Re(Dy),Iy=W({},po,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),jy=Re(Iy),Ay=[9,13,27,32],Zs=ht&&"CompositionEvent"in window,Zr=null;ht&&"documentMode"in document&&(Zr=document.documentMode);var My=ht&&"TextEvent"in window&&!Zr,Ud=ht&&(!Zs||Zr&&8<Zr&&11>=Zr),Bd=String.fromCharCode(32),Yd=!1;function Hd(e,t){switch(e){case"keyup":return Ay.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Un=!1;function zy(e,t){switch(e){case"compositionend":return Gd(t);case"keypress":return t.which!==32?null:(Yd=!0,Bd);case"textInput":return e=t.data,e===Bd&&Yd?null:e;default:return null}}function Fy(e,t){if(Un)return e==="compositionend"||!Zs&&Hd(e,t)?(e=jd(),lo=Vs=It=null,Un=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ud&&t.locale!=="ko"?null:t.data;default:return null}}var Uy={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Uy[e.type]:t==="textarea"}function Vd(e,t,n,r){hd(r),t=ho(t,"onChange"),0<t.length&&(n=new Ks("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ei=null,ti=null;function By(e){ap(e,0)}function fo(e){var t=Wn(e);if(nd(t))return e}function Yy(e,t){if(e==="change")return t}var Kd=!1;if(ht){var el;if(ht){var tl="oninput"in document;if(!tl){var qd=document.createElement("div");qd.setAttribute("oninput","return;"),tl=typeof qd.oninput=="function"}el=tl}else el=!1;Kd=el&&(!document.documentMode||9<document.documentMode)}function Qd(){ei&&(ei.detachEvent("onpropertychange",Jd),ti=ei=null)}function Jd(e){if(e.propertyName==="value"&&fo(ti)){var t=[];if(Vd(t,ti,e,$s(e)),e=By,un)e(t);else{un=!0;try{Os(e,t)}finally{un=!1,Is()}}}}function Hy(e,t,n){e==="focusin"?(Qd(),ei=t,ti=n,ei.attachEvent("onpropertychange",Jd)):e==="focusout"&&Qd()}function Gy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return fo(ti)}function Wy(e,t){if(e==="click")return fo(t)}function Vy(e,t){if(e==="input"||e==="change")return fo(t)}function Ky(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ae=typeof Object.is=="function"?Object.is:Ky,qy=Object.prototype.hasOwnProperty;function ni(e,t){if(Ae(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!qy.call(t,n[r])||!Ae(e[n[r]],t[n[r]]))return!1;return!0}function Xd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zd(e,t){var n=Xd(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Xd(n)}}function ep(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ep(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function tp(){for(var e=window,t=Xi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Xi(e.document)}return t}function nl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Qy=ht&&"documentMode"in document&&11>=document.documentMode,Bn=null,rl=null,ri=null,il=!1;function np(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;il||Bn==null||Bn!==Xi(r)||(r=Bn,"selectionStart"in r&&nl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ri&&ni(ri,r)||(ri=r,r=ho(rl,"onSelect"),0<r.length&&(t=new Ks("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Bn)))}Ys("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Ys("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Ys(iy,2);for(var rp="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),ol=0;ol<rp.length;ol++)Bs.set(rp[ol],0);On("onMouseEnter",["mouseout","mouseover"]),On("onMouseLeave",["mouseout","mouseover"]),On("onPointerEnter",["pointerout","pointerover"]),On("onPointerLeave",["pointerout","pointerover"]),sn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),sn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),sn("onBeforeInput",["compositionend","keypress","textInput","paste"]),sn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),sn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),sn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ii="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ip=new Set("cancel close invalid load scroll toggle".split(" ").concat(ii));function op(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Zm(r,t,void 0,e),e.currentTarget=null}function ap(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;op(i,s,c),o=l}else for(a=0;a<r.length;a++){if(s=r[a],l=s.instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;op(i,s,c),o=l}}}if(to)throw e=As,to=!1,As=null,e}function H(e,t){var n=yp(t),r=e+"__bubble";n.has(r)||(up(t,e,2,!1),n.add(r))}var sp="_reactListening"+Math.random().toString(36).slice(2);function lp(e){e[sp]||(e[sp]=!0,qu.forEach(function(t){ip.has(t)||cp(t,!1,e,null),cp(t,!0,e,null)}))}function cp(e,t,n,r){var i=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,o=n;if(e==="selectionchange"&&n.nodeType!==9&&(o=n.ownerDocument),r!==null&&!t&&ip.has(e)){if(e!=="scroll")return;i|=2,o=r}var a=yp(o),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),up(o,e,i,t),a.add(s))}function up(e,t,n,r){var i=Bs.get(t);switch(i===void 0?2:i){case 0:i=fy;break;case 1:i=hy;break;default:i=Gs}n=i.bind(null,t,n,e),i=void 0,!js||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function dp(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;s!==null;){if(a=pn(s),a===null)return;if(l=a.tag,l===5||l===6){r=o=a;continue e}s=s.parentNode}}r=r.return}qm(function(){var c=o,p=$s(n),d=[];e:{var f=Ld.get(e);if(f!==void 0){var y=Ks,v=e;switch(e){case"keypress":if(co(n)===0)break e;case"keydown":case"keyup":y=Ty;break;case"focusin":v="focus",y=Js;break;case"focusout":v="blur",y=Js;break;case"beforeblur":case"afterblur":y=Js;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=Md;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=yy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=Oy;break;case $d:case Rd:case Od:y=wy;break;case Dd:y=Ly;break;case"scroll":y=gy;break;case"wheel":y=jy;break;case"copy":case"cut":case"paste":y=ky;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Fd}var _=(t&4)!==0,m=!_&&e==="scroll",h=_?f!==null?f+"Capture":null:f;_=[];for(var g=c,w;g!==null;){w=g;var k=w.stateNode;if(w.tag===5&&k!==null&&(w=k,h!==null&&(k=Br(g,h),k!=null&&_.push(oi(g,k,w)))),m)break;g=g.return}0<_.length&&(f=new y(f,v,null,n,p),d.push({event:f,listeners:_}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",f&&!(t&16)&&(v=n.relatedTarget||n.fromElement)&&(pn(v)||v[Gn]))break e;if((y||f)&&(f=p.window===p?p:(f=p.ownerDocument)?f.defaultView||f.parentWindow:window,y?(v=n.relatedTarget||n.toElement,y=c,v=v?pn(v):null,v!==null&&(m=dn(v),v!==m||v.tag!==5&&v.tag!==6)&&(v=null)):(y=null,v=c),y!==v)){if(_=Md,k="onMouseLeave",h="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(_=Fd,k="onPointerLeave",h="onPointerEnter",g="pointer"),m=y==null?f:Wn(y),w=v==null?f:Wn(v),f=new _(k,g+"leave",y,n,p),f.target=m,f.relatedTarget=w,k=null,pn(p)===c&&(_=new _(h,g+"enter",v,n,p),_.target=w,_.relatedTarget=m,k=_),m=k,y&&v)t:{for(_=y,h=v,g=0,w=_;w;w=Yn(w))g++;for(w=0,k=h;k;k=Yn(k))w++;for(;0<g-w;)_=Yn(_),g--;for(;0<w-g;)h=Yn(h),w--;for(;g--;){if(_===h||h!==null&&_===h.alternate)break t;_=Yn(_),h=Yn(h)}_=null}else _=null;y!==null&&pp(d,f,y,_,!1),v!==null&&m!==null&&pp(d,m,v,_,!0)}}e:{if(f=c?Wn(c):window,y=f.nodeName&&f.nodeName.toLowerCase(),y==="select"||y==="input"&&f.type==="file")var C=Yy;else if(Wd(f))if(Kd)C=Vy;else{C=Gy;var S=Hy}else(y=f.nodeName)&&y.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(C=Wy);if(C&&(C=C(e,c))){Vd(d,C,n,p);break e}S&&S(e,f,c),e==="focusout"&&(S=f._wrapperState)&&S.controlled&&f.type==="number"&&_s(f,"number",f.value)}switch(S=c?Wn(c):window,e){case"focusin":(Wd(S)||S.contentEditable==="true")&&(Bn=S,rl=c,ri=null);break;case"focusout":ri=rl=Bn=null;break;case"mousedown":il=!0;break;case"contextmenu":case"mouseup":case"dragend":il=!1,np(d,n,p);break;case"selectionchange":if(Qy)break;case"keydown":case"keyup":np(d,n,p)}var $;if(Zs)e:{switch(e){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else Un?Hd(e,n)&&(O="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(O="onCompositionStart");O&&(Ud&&n.locale!=="ko"&&(Un||O!=="onCompositionStart"?O==="onCompositionEnd"&&Un&&($=jd()):(It=p,Vs="value"in It?It.value:It.textContent,Un=!0)),S=ho(c,O),0<S.length&&(O=new zd(O,e,null,n,p),d.push({event:O,listeners:S}),$?O.data=$:($=Gd(n),$!==null&&(O.data=$)))),($=My?zy(e,n):Fy(e,n))&&(c=ho(c,"onBeforeInput"),0<c.length&&(p=new zd("onBeforeInput","beforeinput",null,n,p),d.push({event:p,listeners:c}),p.data=$))}ap(d,t)})}function oi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ho(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Br(e,n),o!=null&&r.unshift(oi(e,o,i)),o=Br(e,t),o!=null&&r.push(oi(e,o,i))),e=e.return}return r}function Yn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function pp(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&c!==null&&(s=c,i?(l=Br(n,o),l!=null&&a.unshift(oi(n,l,s))):i||(l=Br(n,o),l!=null&&a.push(oi(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}function go(){}var al=null,sl=null;function fp(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function ll(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var hp=typeof setTimeout=="function"?setTimeout:void 0,Jy=typeof clearTimeout=="function"?clearTimeout:void 0;function cl(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function Hn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function gp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ul=0;function Xy(e){return{$$typeof:ms,toString:e,valueOf:e}}var mo=Math.random().toString(36).slice(2),jt="__reactFiber$"+mo,yo="__reactProps$"+mo,Gn="__reactContainer$"+mo,mp="__reactEvents$"+mo;function pn(e){var t=e[jt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Gn]||n[jt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=gp(e);e!==null;){if(n=e[jt])return n;e=gp(e)}return t}e=n,n=e.parentNode}return null}function ai(e){return e=e[jt]||e[Gn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Wn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(E(33))}function vo(e){return e[yo]||null}function yp(e){var t=e[mp];return t===void 0&&(t=e[mp]=new Set),t}var dl=[],Vn=-1;function At(e){return{current:e}}function G(e){0>Vn||(e.current=dl[Vn],dl[Vn]=null,Vn--)}function Q(e,t){Vn++,dl[Vn]=e.current,e.current=t}var Mt={},ge=At(Mt),Ce=At(!1),fn=Mt;function Kn(e,t){var n=e.type.contextTypes;if(!n)return Mt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Pe(e){return e=e.childContextTypes,e!=null}function bo(){G(Ce),G(ge)}function vp(e,t,n){if(ge.current!==Mt)throw Error(E(168));Q(ge,t),Q(Ce,n)}function bp(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(E(108,Dn(t)||"Unknown",i));return W({},n,r)}function wo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mt,fn=ge.current,Q(ge,e),Q(Ce,Ce.current),!0}function wp(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=bp(e,t,fn),r.__reactInternalMemoizedMergedChildContext=e,G(Ce),G(ge),Q(ge,e)):G(Ce),Q(Ce,n)}var pl=null,hn=null,Zy=ae.unstable_runWithPriority,fl=ae.unstable_scheduleCallback,hl=ae.unstable_cancelCallback,e0=ae.unstable_shouldYield,xp=ae.unstable_requestPaint,gl=ae.unstable_now,t0=ae.unstable_getCurrentPriorityLevel,xo=ae.unstable_ImmediatePriority,kp=ae.unstable_UserBlockingPriority,_p=ae.unstable_NormalPriority,Sp=ae.unstable_LowPriority,Ep=ae.unstable_IdlePriority,ml={},n0=xp!==void 0?xp:function(){},gt=null,ko=null,yl=!1,Cp=gl(),me=1e4>Cp?gl:function(){return gl()-Cp};function qn(){switch(t0()){case xo:return 99;case kp:return 98;case _p:return 97;case Sp:return 96;case Ep:return 95;default:throw Error(E(332))}}function Pp(e){switch(e){case 99:return xo;case 98:return kp;case 97:return _p;case 96:return Sp;case 95:return Ep;default:throw Error(E(332))}}function gn(e,t){return e=Pp(e),Zy(e,t)}function si(e,t,n){return e=Pp(e),fl(e,t,n)}function tt(){if(ko!==null){var e=ko;ko=null,hl(e)}Np()}function Np(){if(!yl&>!==null){yl=!0;var e=0;try{var t=gt;gn(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),gt=null}catch(n){throw gt!==null&&(gt=gt.slice(e+1)),fl(xo,tt),n}finally{yl=!1}}}var r0=ln.ReactCurrentBatchConfig;function Ve(e,t){if(e&&e.defaultProps){t=W({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var _o=At(null),So=null,Qn=null,Eo=null;function vl(){Eo=Qn=So=null}function bl(e){var t=_o.current;G(_o),e.type._context._currentValue=t}function Tp(e,t){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)===t){if(n===null||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,n!==null&&(n.childLanes|=t);e=e.return}}function Jn(e,t){So=e,Eo=Qn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ke=!0),e.firstContext=null)}function Me(e,t){if(Eo!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(Eo=e,t=1073741823),t={context:e,observedBits:t,next:null},Qn===null){if(So===null)throw Error(E(308));Qn=t,So.dependencies={lanes:0,firstContext:t,responders:null}}else Qn=Qn.next=t;return e._currentValue}var zt=!1;function wl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function $p(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ft(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ut(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function Rp(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function li(e,t,n,r){var i=e.updateQueue;zt=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?o=c:a.next=c,a=l;var p=e.alternate;if(p!==null){p=p.updateQueue;var d=p.lastBaseUpdate;d!==a&&(d===null?p.firstBaseUpdate=c:d.next=c,p.lastBaseUpdate=l)}}if(o!==null){d=i.baseState,a=0,p=c=l=null;do{s=o.lane;var f=o.eventTime;if((r&s)===s){p!==null&&(p=p.next={eventTime:f,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var y=e,v=o;switch(s=t,f=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){d=y.call(f,d,s);break e}d=y;break e;case 3:y.flags=y.flags&-4097|64;case 0:if(y=v.payload,s=typeof y=="function"?y.call(f,d,s):y,s==null)break e;d=W({},d,s);break e;case 2:zt=!0}}o.callback!==null&&(e.flags|=32,s=i.effects,s===null?i.effects=[o]:s.push(o))}else f={eventTime:f,lane:s,tag:o.tag,payload:o.payload,callback:o.callback,next:null},p===null?(c=p=f,l=d):p=p.next=f,a|=s;if(o=o.next,o===null){if(s=i.shared.pending,s===null)break;o=s.next,s.next=null,i.lastBaseUpdate=s,i.shared.pending=null}}while(1);p===null&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=p,wi|=a,e.lanes=a,e.memoizedState=d}}function Op(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(E(191,i));i.call(r)}}}var Dp=new Wi.Component().refs;function Co(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:W({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Po={isMounted:function(e){return(e=e._reactInternals)?dn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Oe(),i=Ht(e),o=Ft(r,i);o.payload=t,n!=null&&(o.callback=n),Ut(e,o),Gt(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Oe(),i=Ht(e),o=Ft(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),Ut(e,o),Gt(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Oe(),r=Ht(e),i=Ft(n,r);i.tag=2,t!=null&&(i.callback=t),Ut(e,i),Gt(e,r,n)}};function Lp(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!ni(n,r)||!ni(i,o):!0}function Ip(e,t,n){var r=!1,i=Mt,o=t.contextType;return typeof o=="object"&&o!==null?o=Me(o):(i=Pe(t)?fn:ge.current,r=t.contextTypes,o=(r=r!=null)?Kn(e,i):Mt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Po,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function jp(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Po.enqueueReplaceState(t,t.state,null)}function xl(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Dp,wl(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Me(o):(o=Pe(t)?fn:ge.current,i.context=Kn(e,o)),li(e,n,i,r),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Co(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Po.enqueueReplaceState(i,i.state,null),li(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4)}var No=Array.isArray;function ci(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(E(309));var r=n.stateNode}if(!r)throw Error(E(147,e));var i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=r.refs;a===Dp&&(a=r.refs={}),o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(E(284));if(!n._owner)throw Error(E(290,e))}return e}function To(e,t){if(e.type!=="textarea")throw Error(E(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Ap(e){function t(m,h){if(e){var g=m.lastEffect;g!==null?(g.nextEffect=h,m.lastEffect=h):m.firstEffect=m.lastEffect=h,h.nextEffect=null,h.flags=8}}function n(m,h){if(!e)return null;for(;h!==null;)t(m,h),h=h.sibling;return null}function r(m,h){for(m=new Map;h!==null;)h.key!==null?m.set(h.key,h):m.set(h.index,h),h=h.sibling;return m}function i(m,h){return m=Kt(m,h),m.index=0,m.sibling=null,m}function o(m,h,g){return m.index=g,e?(g=m.alternate,g!==null?(g=g.index,g<h?(m.flags=2,h):g):(m.flags=2,h)):h}function a(m){return e&&m.alternate===null&&(m.flags=2),m}function s(m,h,g,w){return h===null||h.tag!==6?(h=rc(g,m.mode,w),h.return=m,h):(h=i(h,g),h.return=m,h)}function l(m,h,g,w){return h!==null&&h.elementType===g.type?(w=i(h,g.props),w.ref=ci(m,h,g),w.return=m,w):(w=Vo(g.type,g.key,g.props,null,m.mode,w),w.ref=ci(m,h,g),w.return=m,w)}function c(m,h,g,w){return h===null||h.tag!==4||h.stateNode.containerInfo!==g.containerInfo||h.stateNode.implementation!==g.implementation?(h=ic(g,m.mode,w),h.return=m,h):(h=i(h,g.children||[]),h.return=m,h)}function p(m,h,g,w,k){return h===null||h.tag!==7?(h=or(g,m.mode,w,k),h.return=m,h):(h=i(h,g),h.return=m,h)}function d(m,h,g){if(typeof h=="string"||typeof h=="number")return h=rc(""+h,m.mode,g),h.return=m,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Ir:return g=Vo(h.type,h.key,h.props,null,m.mode,g),g.ref=ci(m,null,h),g.return=m,g;case cn:return h=ic(h,m.mode,g),h.return=m,h}if(No(h)||Mr(h))return h=or(h,m.mode,g,null),h.return=m,h;To(m,h)}return null}function f(m,h,g,w){var k=h!==null?h.key:null;if(typeof g=="string"||typeof g=="number")return k!==null?null:s(m,h,""+g,w);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Ir:return g.key===k?g.type===Tt?p(m,h,g.props.children,w,k):l(m,h,g,w):null;case cn:return g.key===k?c(m,h,g,w):null}if(No(g)||Mr(g))return k!==null?null:p(m,h,g,w,null);To(m,g)}return null}function y(m,h,g,w,k){if(typeof w=="string"||typeof w=="number")return m=m.get(g)||null,s(h,m,""+w,k);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Ir:return m=m.get(w.key===null?g:w.key)||null,w.type===Tt?p(h,m,w.props.children,k,w.key):l(h,m,w,k);case cn:return m=m.get(w.key===null?g:w.key)||null,c(h,m,w,k)}if(No(w)||Mr(w))return m=m.get(g)||null,p(h,m,w,k,null);To(h,w)}return null}function v(m,h,g,w){for(var k=null,C=null,S=h,$=h=0,O=null;S!==null&&$<g.length;$++){S.index>$?(O=S,S=null):O=S.sibling;var N=f(m,S,g[$],w);if(N===null){S===null&&(S=O);break}e&&S&&N.alternate===null&&t(m,S),h=o(N,h,$),C===null?k=N:C.sibling=N,C=N,S=O}if($===g.length)return n(m,S),k;if(S===null){for(;$<g.length;$++)S=d(m,g[$],w),S!==null&&(h=o(S,h,$),C===null?k=S:C.sibling=S,C=S);return k}for(S=r(m,S);$<g.length;$++)O=y(S,m,$,g[$],w),O!==null&&(e&&O.alternate!==null&&S.delete(O.key===null?$:O.key),h=o(O,h,$),C===null?k=O:C.sibling=O,C=O);return e&&S.forEach(function(F){return t(m,F)}),k}function _(m,h,g,w){var k=Mr(g);if(typeof k!="function")throw Error(E(150));if(g=k.call(g),g==null)throw Error(E(151));for(var C=k=null,S=h,$=h=0,O=null,N=g.next();S!==null&&!N.done;$++,N=g.next()){S.index>$?(O=S,S=null):O=S.sibling;var F=f(m,S,N.value,w);if(F===null){S===null&&(S=O);break}e&&S&&F.alternate===null&&t(m,S),h=o(F,h,$),C===null?k=F:C.sibling=F,C=F,S=O}if(N.done)return n(m,S),k;if(S===null){for(;!N.done;$++,N=g.next())N=d(m,N.value,w),N!==null&&(h=o(N,h,$),C===null?k=N:C.sibling=N,C=N);return k}for(S=r(m,S);!N.done;$++,N=g.next())N=y(S,m,$,N.value,w),N!==null&&(e&&N.alternate!==null&&S.delete(N.key===null?$:N.key),h=o(N,h,$),C===null?k=N:C.sibling=N,C=N);return e&&S.forEach(function(He){return t(m,He)}),k}return function(m,h,g,w){var k=typeof g=="object"&&g!==null&&g.type===Tt&&g.key===null;k&&(g=g.props.children);var C=typeof g=="object"&&g!==null;if(C)switch(g.$$typeof){case Ir:e:{for(C=g.key,k=h;k!==null;){if(k.key===C){switch(k.tag){case 7:if(g.type===Tt){n(m,k.sibling),h=i(k,g.props.children),h.return=m,m=h;break e}break;default:if(k.elementType===g.type){n(m,k.sibling),h=i(k,g.props),h.ref=ci(m,k,g),h.return=m,m=h;break e}}n(m,k);break}else t(m,k);k=k.sibling}g.type===Tt?(h=or(g.props.children,m.mode,w,g.key),h.return=m,m=h):(w=Vo(g.type,g.key,g.props,null,m.mode,w),w.ref=ci(m,h,g),w.return=m,m=w)}return a(m);case cn:e:{for(k=g.key;h!==null;){if(h.key===k)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(m,h.sibling),h=i(h,g.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=ic(g,m.mode,w),h.return=m,m=h}return a(m)}if(typeof g=="string"||typeof g=="number")return g=""+g,h!==null&&h.tag===6?(n(m,h.sibling),h=i(h,g),h.return=m,m=h):(n(m,h),h=rc(g,m.mode,w),h.return=m,m=h),a(m);if(No(g))return v(m,h,g,w);if(Mr(g))return _(m,h,g,w);if(C&&To(m,g),typeof g>"u"&&!k)switch(m.tag){case 1:case 22:case 0:case 11:case 15:throw Error(E(152,Dn(m.type)||"Component"))}return n(m,h)}}var $o=Ap(!0),Mp=Ap(!1),ui={},nt=At(ui),di=At(ui),pi=At(ui);function mn(e){if(e===ui)throw Error(E(174));return e}function kl(e,t){switch(Q(pi,t),Q(di,e),Q(nt,ui),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ps(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ps(t,e)}G(nt),Q(nt,t)}function Xn(){G(nt),G(di),G(pi)}function zp(e){mn(pi.current);var t=mn(nt.current),n=Ps(t,e.type);t!==n&&(Q(di,e),Q(nt,n))}function _l(e){di.current===e&&(G(nt),G(di))}var J=At(0);function Ro(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var mt=null,Bt=null,rt=!1;function Fp(e,t){var n=Ue(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Up(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function Sl(e){if(rt){var t=Bt;if(t){var n=t;if(!Up(e,t)){if(t=Hn(n.nextSibling),!t||!Up(e,t)){e.flags=e.flags&-1025|2,rt=!1,mt=e;return}Fp(mt,n)}mt=e,Bt=Hn(t.firstChild)}else e.flags=e.flags&-1025|2,rt=!1,mt=e}}function Bp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;mt=e}function Oo(e){if(e!==mt)return!1;if(!rt)return Bp(e),rt=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!ll(t,e.memoizedProps))for(t=Bt;t;)Fp(e,t),t=Hn(t.nextSibling);if(Bp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Bt=Hn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Bt=null}}else Bt=mt?Hn(e.stateNode.nextSibling):null;return!0}function El(){Bt=mt=null,rt=!1}var Zn=[];function Cl(){for(var e=0;e<Zn.length;e++)Zn[e]._workInProgressVersionPrimary=null;Zn.length=0}var fi=ln.ReactCurrentDispatcher,ze=ln.ReactCurrentBatchConfig,hi=0,ee=null,ye=null,ue=null,Do=!1,gi=!1;function Ne(){throw Error(E(321))}function Pl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ae(e[n],t[n]))return!1;return!0}function Nl(e,t,n,r,i,o){if(hi=o,ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fi.current=e===null||e.memoizedState===null?o0:a0,e=n(r,i),gi){o=0;do{if(gi=!1,!(25>o))throw Error(E(301));o+=1,ue=ye=null,t.updateQueue=null,fi.current=s0,e=n(r,i)}while(gi)}if(fi.current=Ao,t=ye!==null&&ye.next!==null,hi=0,ue=ye=ee=null,Do=!1,t)throw Error(E(300));return e}function yn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ue===null?ee.memoizedState=ue=e:ue=ue.next=e,ue}function vn(){if(ye===null){var e=ee.alternate;e=e!==null?e.memoizedState:null}else e=ye.next;var t=ue===null?ee.memoizedState:ue.next;if(t!==null)ue=t,ye=e;else{if(e===null)throw Error(E(310));ye=e,e={memoizedState:ye.memoizedState,baseState:ye.baseState,baseQueue:ye.baseQueue,queue:ye.queue,next:null},ue===null?ee.memoizedState=ue=e:ue=ue.next=e}return ue}function it(e,t){return typeof t=="function"?t(e):t}function mi(e){var t=vn(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=ye,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(i!==null){i=i.next,r=r.baseState;var s=a=o=null,l=i;do{var c=l.lane;if((hi&c)===c)s!==null&&(s=s.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),r=l.eagerReducer===e?l.eagerState:e(r,l.action);else{var p={lane:c,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};s===null?(a=s=p,o=r):s=s.next=p,ee.lanes|=c,wi|=c}l=l.next}while(l!==null&&l!==i);s===null?o=r:s.next=a,Ae(r,t.memoizedState)||(Ke=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function yi(e){var t=vn(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Ae(o,t.memoizedState)||(Ke=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Yp(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(i!==null?e=i===r:(e=e.mutableReadLanes,(e=(hi&e)===e)&&(t._workInProgressVersionPrimary=r,Zn.push(t))),e)return n(t._source);throw Zn.push(t),Error(E(350))}function Hp(e,t,n,r){var i=ke;if(i===null)throw Error(E(349));var o=t._getVersion,a=o(t._source),s=fi.current,l=s.useState(function(){return Yp(i,t,n)}),c=l[1],p=l[0];l=ue;var d=e.memoizedState,f=d.refs,y=f.getSnapshot,v=d.source;d=d.subscribe;var _=ee;return e.memoizedState={refs:f,source:t,subscribe:r},s.useEffect(function(){f.getSnapshot=n,f.setSnapshot=c;var m=o(t._source);if(!Ae(a,m)){m=n(t._source),Ae(p,m)||(c(m),m=Ht(_),i.mutableReadLanes|=m&i.pendingLanes),m=i.mutableReadLanes,i.entangledLanes|=m;for(var h=i.entanglements,g=m;0<g;){var w=31-Lt(g),k=1<<w;h[w]|=m,g&=~k}}},[n,t,r]),s.useEffect(function(){return r(t._source,function(){var m=f.getSnapshot,h=f.setSnapshot;try{h(m(t._source));var g=Ht(_);i.mutableReadLanes|=g&i.pendingLanes}catch(w){h(function(){throw w})}})},[t,r]),Ae(y,n)&&Ae(v,t)&&Ae(d,r)||(e={pending:null,dispatch:null,lastRenderedReducer:it,lastRenderedState:p},e.dispatch=c=Ol.bind(null,ee,e),l.queue=e,l.baseQueue=null,p=Yp(i,t,n),l.memoizedState=l.baseState=p),p}function Gp(e,t,n){var r=vn();return Hp(r,e,t,n)}function vi(e){var t=yn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:it,lastRenderedState:e},e=e.dispatch=Ol.bind(null,ee,e),[t.memoizedState,e]}function Lo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ee.updateQueue,t===null?(t={lastEffect:null},ee.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Wp(e){var t=yn();return e={current:e},t.memoizedState=e}function Io(){return vn().memoizedState}function Tl(e,t,n,r){var i=yn();ee.flags|=e,i.memoizedState=Lo(1|t,n,void 0,r===void 0?null:r)}function $l(e,t,n,r){var i=vn();r=r===void 0?null:r;var o=void 0;if(ye!==null){var a=ye.memoizedState;if(o=a.destroy,r!==null&&Pl(r,a.deps)){Lo(t,n,o,r);return}}ee.flags|=e,i.memoizedState=Lo(1|t,n,o,r)}function Vp(e,t){return Tl(516,4,e,t)}function jo(e,t){return $l(516,4,e,t)}function Kp(e,t){return $l(4,2,e,t)}function qp(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Qp(e,t,n){return n=n!=null?n.concat([e]):null,$l(4,2,qp.bind(null,t,e),n)}function Rl(){}function Jp(e,t){var n=vn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Pl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xp(e,t){var n=vn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Pl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function i0(e,t){var n=qn();gn(98>n?98:n,function(){e(!0)}),gn(97<n?97:n,function(){var r=ze.transition;ze.transition=1;try{e(!1),t()}finally{ze.transition=r}})}function Ol(e,t,n){var r=Oe(),i=Ht(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(a===null?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===ee||a!==null&&a===ee)gi=Do=!0;else{if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,l=a(s,n);if(o.eagerReducer=a,o.eagerState=l,Ae(l,s))return}catch{}finally{}Gt(e,i,r)}}var Ao={readContext:Me,useCallback:Ne,useContext:Ne,useEffect:Ne,useImperativeHandle:Ne,useLayoutEffect:Ne,useMemo:Ne,useReducer:Ne,useRef:Ne,useState:Ne,useDebugValue:Ne,useDeferredValue:Ne,useTransition:Ne,useMutableSource:Ne,useOpaqueIdentifier:Ne,unstable_isNewReconciler:!1},o0={readContext:Me,useCallback:function(e,t){return yn().memoizedState=[e,t===void 0?null:t],e},useContext:Me,useEffect:Vp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Tl(4,2,qp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Tl(4,2,e,t)},useMemo:function(e,t){var n=yn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=yn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=Ol.bind(null,ee,e),[r.memoizedState,e]},useRef:Wp,useState:vi,useDebugValue:Rl,useDeferredValue:function(e){var t=vi(e),n=t[0],r=t[1];return Vp(function(){var i=ze.transition;ze.transition=1;try{r(e)}finally{ze.transition=i}},[e]),n},useTransition:function(){var e=vi(!1),t=e[0];return e=i0.bind(null,e[1]),Wp(e),[e,t]},useMutableSource:function(e,t,n){var r=yn();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},Hp(r,e,t,n)},useOpaqueIdentifier:function(){if(rt){var e=!1,t=Xy(function(){throw e||(e=!0,n("r:"+(ul++).toString(36))),Error(E(355))}),n=vi(t)[1];return!(ee.mode&2)&&(ee.flags|=516,Lo(5,function(){n("r:"+(ul++).toString(36))},void 0,null)),t}return t="r:"+(ul++).toString(36),vi(t),t},unstable_isNewReconciler:!1},a0={readContext:Me,useCallback:Jp,useContext:Me,useEffect:jo,useImperativeHandle:Qp,useLayoutEffect:Kp,useMemo:Xp,useReducer:mi,useRef:Io,useState:function(){return mi(it)},useDebugValue:Rl,useDeferredValue:function(e){var t=mi(it),n=t[0],r=t[1];return jo(function(){var i=ze.transition;ze.transition=1;try{r(e)}finally{ze.transition=i}},[e]),n},useTransition:function(){var e=mi(it)[0];return[Io().current,e]},useMutableSource:Gp,useOpaqueIdentifier:function(){return mi(it)[0]},unstable_isNewReconciler:!1},s0={readContext:Me,useCallback:Jp,useContext:Me,useEffect:jo,useImperativeHandle:Qp,useLayoutEffect:Kp,useMemo:Xp,useReducer:yi,useRef:Io,useState:function(){return yi(it)},useDebugValue:Rl,useDeferredValue:function(e){var t=yi(it),n=t[0],r=t[1];return jo(function(){var i=ze.transition;ze.transition=1;try{r(e)}finally{ze.transition=i}},[e]),n},useTransition:function(){var e=yi(it)[0];return[Io().current,e]},useMutableSource:Gp,useOpaqueIdentifier:function(){return yi(it)[0]},unstable_isNewReconciler:!1},l0=ln.ReactCurrentOwner,Ke=!1;function Te(e,t,n,r){t.child=e===null?Mp(t,null,n,r):$o(t,e.child,n,r)}function Zp(e,t,n,r,i){n=n.render;var o=t.ref;return Jn(t,i),r=Nl(e,t,n,r,o,i),e!==null&&!Ke?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,yt(e,t,i)):(t.flags|=1,Te(e,t,r,i),t.child)}function ef(e,t,n,r,i,o){if(e===null){var a=n.type;return typeof a=="function"&&!tc(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,tf(e,t,a,r,i,o)):(e=Vo(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}return a=e.child,!(i&o)&&(i=a.memoizedProps,n=n.compare,n=n!==null?n:ni,n(i,r)&&e.ref===t.ref)?yt(e,t,o):(t.flags|=1,e=Kt(a,r),e.ref=t.ref,e.return=t,t.child=e)}function tf(e,t,n,r,i,o){if(e!==null&&ni(e.memoizedProps,r)&&e.ref===t.ref)if(Ke=!1,(o&i)!==0)e.flags&16384&&(Ke=!0);else return t.lanes=e.lanes,yt(e,t,o);return Ll(e,t,n,r,o)}function Dl(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden"||r.mode==="unstable-defer-without-hiding")if(!(t.mode&4))t.memoizedState={baseLanes:0},Wo(t,n);else if(n&1073741824)t.memoizedState={baseLanes:0},Wo(t,o!==null?o.baseLanes:n);else return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Wo(t,e),null;else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Wo(t,r);return Te(e,t,i,n),t.child}function nf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function Ll(e,t,n,r,i){var o=Pe(n)?fn:ge.current;return o=Kn(t,o),Jn(t,i),n=Nl(e,t,n,r,o,i),e!==null&&!Ke?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,yt(e,t,i)):(t.flags|=1,Te(e,t,n,i),t.child)}function rf(e,t,n,r,i){if(Pe(n)){var o=!0;wo(t)}else o=!1;if(Jn(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Ip(t,n,r),xl(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=Me(c):(c=Pe(n)?fn:ge.current,c=Kn(t,c));var p=n.getDerivedStateFromProps,d=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==c)&&jp(t,a,r,c),zt=!1;var f=t.memoizedState;a.state=f,li(t,r,a,i),l=t.memoizedState,s!==r||f!==l||Ce.current||zt?(typeof p=="function"&&(Co(t,n,p,r),l=t.memoizedState),(s=zt||Lp(t,n,s,r,f,l,c))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4)):(typeof a.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4),r=!1)}else{a=t.stateNode,$p(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Ve(t.type,s),a.props=c,d=t.pendingProps,f=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=Me(l):(l=Pe(n)?fn:ge.current,l=Kn(t,l));var y=n.getDerivedStateFromProps;(p=typeof y=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||f!==l)&&jp(t,a,r,l),zt=!1,f=t.memoizedState,a.state=f,li(t,r,a,i);var v=t.memoizedState;s!==d||f!==v||Ce.current||zt?(typeof y=="function"&&(Co(t,n,y,r),v=t.memoizedState),(c=zt||Lp(t,n,c,r,f,v,l))?(p||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,v,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,v,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=v),a.props=r,a.state=v,a.context=l,r=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return Il(e,t,n,r,o,i)}function Il(e,t,n,r,i,o){nf(e,t);var a=(t.flags&64)!==0;if(!r&&!a)return i&&wp(t,n,!1),yt(e,t,o);r=t.stateNode,l0.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=$o(t,e.child,null,o),t.child=$o(t,null,s,o)):Te(e,t,s,o),t.memoizedState=r.state,i&&wp(t,n,!0),t.child}function of(e){var t=e.stateNode;t.pendingContext?vp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&vp(e,t.context,!1),kl(e,t.containerInfo)}var Mo={dehydrated:null,retryLane:0};function af(e,t,n){var r=t.pendingProps,i=J.current,o=!1,a;return(a=(t.flags&64)!==0)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-65):e!==null&&e.memoizedState===null||r.fallback===void 0||r.unstable_avoidThisFallback===!0||(i|=1),Q(J,i&1),e===null?(r.fallback!==void 0&&Sl(t),e=r.children,i=r.fallback,o?(e=sf(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Mo,e):typeof r.unstable_expectedLoadTime=="number"?(e=sf(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Mo,t.lanes=33554432,e):(n=nc({mode:"visible",children:e},t.mode,n,null),n.return=t,t.child=n)):e.memoizedState!==null?o?(r=cf(e,t,r.children,r.fallback,n),o=t.child,i=e.child.memoizedState,o.memoizedState=i===null?{baseLanes:n}:{baseLanes:i.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Mo,r):(n=lf(e,t,r.children,n),t.memoizedState=null,n):o?(r=cf(e,t,r.children,r.fallback,n),o=t.child,i=e.child.memoizedState,o.memoizedState=i===null?{baseLanes:n}:{baseLanes:i.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Mo,r):(n=lf(e,t,r.children,n),t.memoizedState=null,n)}function sf(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},!(i&2)&&o!==null?(o.childLanes=0,o.pendingProps=t):o=nc(t,i,0,null),n=or(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function lf(e,t,n,r){var i=e.child;return e=i.sibling,n=Kt(i,{mode:"visible",children:n}),!(t.mode&2)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function cf(e,t,n,r,i){var o=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return!(o&2)&&t.child!==a?(n=t.child,n.childLanes=0,n.pendingProps=s,a=n.lastEffect,a!==null?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Kt(a,s),e!==null?r=Kt(e,r):(r=or(r,o,i,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function uf(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Tp(e.return,t)}function jl(e,t,n,r,i,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function df(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Te(e,t,r.children,n),r=J.current,r&2)r=r&1|2,t.flags|=64;else{if(e!==null&&e.flags&64)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&uf(e,n);else if(e.tag===19)uf(e,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Q(J,r),!(t.mode&2))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Ro(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),jl(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ro(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}jl(t,!0,n,null,o,t.lastEffect);break;case"together":jl(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function yt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),wi|=t.lanes,n&t.childLanes){if(e!==null&&t.child!==e.child)throw Error(E(153));if(t.child!==null){for(e=t.child,n=Kt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Kt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var pf,Al,ff,hf;pf=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Al=function(){},ff=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,mn(nt.current);var o=null;switch(n){case"input":i=xs(e,i),r=xs(e,r),o=[];break;case"option":i=Ss(e,i),r=Ss(e,r),o=[];break;case"select":i=W({},i,{value:void 0}),r=W({},r,{value:void 0}),o=[];break;case"textarea":i=Es(e,i),r=Es(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=go)}Ns(n,r);var a;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Lr.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var l=r[c];if(s=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(o||(o=[]),o.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Lr.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&H("scroll",e),o||s===l||(o=[])):typeof l=="object"&&l!==null&&l.$$typeof===ms?l.toString():(o=o||[]).push(c,l))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}},hf=function(e,t,n,r){n!==r&&(t.flags|=4)};function bi(e,t){if(!rt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function c0(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Pe(t.type)&&bo(),null;case 3:return Xn(),G(Ce),G(ge),Cl(),r=t.stateNode,r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Oo(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Al(t),null;case 5:_l(t);var i=mn(pi.current);if(n=t.type,e!==null&&t.stateNode!=null)ff(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(t.stateNode===null)throw Error(E(166));return null}if(e=mn(nt.current),Oo(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[jt]=t,r[yo]=o,n){case"dialog":H("cancel",r),H("close",r);break;case"iframe":case"object":case"embed":H("load",r);break;case"video":case"audio":for(e=0;e<ii.length;e++)H(ii[e],r);break;case"source":H("error",r);break;case"img":case"image":case"link":H("error",r),H("load",r);break;case"details":H("toggle",r);break;case"input":rd(r,o),H("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},H("invalid",r);break;case"textarea":ad(r,o),H("invalid",r)}Ns(n,o),e=null;for(var a in o)o.hasOwnProperty(a)&&(i=o[a],a==="children"?typeof i=="string"?r.textContent!==i&&(e=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(e=["children",""+i]):Lr.hasOwnProperty(a)&&i!=null&&a==="onScroll"&&H("scroll",r));switch(n){case"input":Ji(r),od(r,o,!0);break;case"textarea":Ji(r),ld(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=go)}r=e,t.updateQueue=r,r!==null&&(t.flags|=4)}else{switch(a=i.nodeType===9?i:i.ownerDocument,e===Cs.html&&(e=cd(n)),e===Cs.html?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[jt]=t,e[yo]=r,pf(e,t,!1,!1),t.stateNode=e,a=Ts(n,r),n){case"dialog":H("cancel",e),H("close",e),i=r;break;case"iframe":case"object":case"embed":H("load",e),i=r;break;case"video":case"audio":for(i=0;i<ii.length;i++)H(ii[i],e);i=r;break;case"source":H("error",e),i=r;break;case"img":case"image":case"link":H("error",e),H("load",e),i=r;break;case"details":H("toggle",e),i=r;break;case"input":rd(e,r),i=xs(e,r),H("invalid",e);break;case"option":i=Ss(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=W({},r,{value:void 0}),H("invalid",e);break;case"textarea":ad(e,r),i=Es(e,r),H("invalid",e);break;default:i=r}Ns(n,i);var s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?pd(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&ud(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Fr(e,l):typeof l=="number"&&Fr(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Lr.hasOwnProperty(o)?l!=null&&o==="onScroll"&&H("scroll",e):l!=null&&us(e,o,l,a))}switch(n){case"input":Ji(e),od(e,r,!1);break;case"textarea":Ji(e),ld(e);break;case"option":r.value!=null&&e.setAttribute("value",""+$t(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Ln(e,!!r.multiple,o,!1):r.defaultValue!=null&&Ln(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=go)}fp(n,r)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)hf(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(E(166));n=mn(pi.current),mn(nt.current),Oo(t)?(r=t.stateNode,n=t.memoizedProps,r[jt]=t,r.nodeValue!==n&&(t.flags|=4)):(r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[jt]=t,t.stateNode=r)}return null;case 13:return G(J),r=t.memoizedState,t.flags&64?(t.lanes=n,t):(r=r!==null,n=!1,e===null?t.memoizedProps.fallback!==void 0&&Oo(t):n=e.memoizedState!==null,r&&!n&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||J.current&1?de===0&&(de=3):((de===0||de===3)&&(de=4),ke===null||!(wi&134217727)&&!(tr&134217727)||rr(ke,ve))),(r||n)&&(t.flags|=4),null);case 4:return Xn(),Al(t),e===null&&lp(t.stateNode.containerInfo),null;case 10:return bl(t),null;case 17:return Pe(t.type)&&bo(),null;case 19:if(G(J),r=t.memoizedState,r===null)return null;if(o=(t.flags&64)!==0,a=r.rendering,a===null)if(o)bi(r,!1);else{if(de!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(a=Ro(e),a!==null){for(t.flags|=64,bi(r,!1),o=a.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),r.lastEffect===null&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Q(J,J.current&1|2),t.child}e=e.sibling}r.tail!==null&&me()>Kl&&(t.flags|=64,o=!0,bi(r,!1),t.lanes=33554432)}else{if(!o)if(e=Ro(a),e!==null){if(t.flags|=64,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),bi(r,!0),r.tail===null&&r.tailMode==="hidden"&&!a.alternate&&!rt)return t=t.lastEffect=r.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*me()-r.renderingStartTime>Kl&&n!==1073741824&&(t.flags|=64,o=!0,bi(r,!1),t.lanes=33554432);r.isBackwards?(a.sibling=t.child,t.child=a):(n=r.last,n!==null?n.sibling=a:t.child=a,r.last=a)}return r.tail!==null?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=me(),n.sibling=null,t=J.current,Q(J,o?t&1|2:t&1),n):null;case 23:case 24:return ec(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&r.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(E(156,t.tag))}function u0(e){switch(e.tag){case 1:Pe(e.type)&&bo();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(Xn(),G(Ce),G(ge),Cl(),t=e.flags,t&64)throw Error(E(285));return e.flags=t&-4097|64,e;case 5:return _l(e),null;case 13:return G(J),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return G(J),null;case 4:return Xn(),null;case 10:return bl(e),null;case 23:case 24:return ec(),null;default:return null}}function Ml(e,t){try{var n="",r=t;do n+=Hm(r),r=r.return;while(r);var i=n}catch(o){i=`
|
|
39
39
|
Error generating stack: `+o.message+`
|
|
40
|
-
`+o.stack}return{value:e,source:t,stack:i}}function zl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var d0=typeof WeakMap=="function"?WeakMap:Map;function mf(e,t,n){n=Ft(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Uo||(Uo=!0,ql=r),zl(e,t)},n}function gf(e,t,n){n=Ft(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return zl(e,t),r(i)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){typeof r!="function"&&(ot===null?ot=new Set([this]):ot.add(this),zl(e,t));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}var p0=typeof WeakSet=="function"?WeakSet:Set;function yf(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){Vt(e,n)}else t.current=null}function f0(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var n=e.memoizedProps,r=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:Ve(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&cl(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(E(163))}function h0(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var i=e;r=i.next,i=i.tag,i&4&&i&1&&(Of(n,e),k0(n,e)),e=r}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Ve(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&Op(n,t,e);return;case 3:if(t=n.updateQueue,t!==null){if(e=null,n.child!==null)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}Op(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&fp(n.type,n.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&Nd(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(E(163))}function vf(e,t){for(var n=e;;){if(n.tag===5){var r=n.stateNode;if(t)r=r.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=i!=null&&i.hasOwnProperty("display")?i.display:null,r.style.display=dd("display",i)}}else if(n.tag===6)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function bf(e,t){if(hn&&typeof hn.onCommitFiberUnmount=="function")try{hn.onCommitFiberUnmount(pl,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,i!==void 0)if(r&4)Of(t,n);else{r=t;try{i()}catch(o){Vt(r,o)}}n=n.next}while(n!==e)}break;case 1:if(yf(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){Vt(t,o)}break;case 5:yf(t);break;case 4:_f(e,t)}}function wf(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function xf(e){return e.tag===5||e.tag===3||e.tag===4}function kf(e){e:{for(var t=e.return;t!==null;){if(xf(t))break e;t=t.return}throw Error(E(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:t=t.containerInfo,r=!0;break;case 4:t=t.containerInfo,r=!0;break;default:throw Error(E(161))}n.flags&16&&(Fr(t,""),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||xf(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}r?Fl(e,n,t):Ul(e,n,t)}function Fl(e,t,n){var r=e.tag,i=r===5||r===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=mo));else if(r!==4&&(e=e.child,e!==null))for(Fl(e,t,n),e=e.sibling;e!==null;)Fl(e,t,n),e=e.sibling}function Ul(e,t,n){var r=e.tag,i=r===5||r===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ul(e,t,n),e=e.sibling;e!==null;)Ul(e,t,n),e=e.sibling}function _f(e,t){for(var n=t,r=!1,i,o;;){if(!r){r=n.return;e:for(;;){if(r===null)throw Error(E(160));switch(i=r.stateNode,r.tag){case 5:o=!1;break e;case 3:i=i.containerInfo,o=!0;break e;case 4:i=i.containerInfo,o=!0;break e}r=r.return}r=!0}if(n.tag===5||n.tag===6){e:for(var a=e,s=n,l=s;;)if(bf(a,l),l.child!==null&&l.tag!==4)l.child.return=l,l=l.child;else{if(l===s)break e;for(;l.sibling===null;){if(l.return===null||l.return===s)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}o?(a=i,s=n.stateNode,a.nodeType===8?a.parentNode.removeChild(s):a.removeChild(s)):i.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){i=n.stateNode.containerInfo,o=!0,n.child.return=n,n=n.child;continue}}else if(bf(e,n),n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return,n.tag===4&&(r=!1)}n.sibling.return=n.return,n=n.sibling}}function Bl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var r=n=n.next;do(r.tag&3)===3&&(e=r.destroy,r.destroy=void 0,e!==void 0&&e()),r=r.next;while(r!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){r=t.memoizedProps;var i=e!==null?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(n[yo]=r,e==="input"&&r.type==="radio"&&r.name!=null&&id(n,r),Ts(e,i),t=Ts(e,r),i=0;i<o.length;i+=2){var a=o[i],s=o[i+1];a==="style"?pd(n,s):a==="dangerouslySetInnerHTML"?ud(n,s):a==="children"?Fr(n,s):us(n,a,s,t)}switch(e){case"input":ks(n,r);break;case"textarea":sd(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,o=r.value,o!=null?Ln(n,!!r.multiple,o,!1):e!==!!r.multiple&&(r.defaultValue!=null?Ln(n,!!r.multiple,r.defaultValue,!0):Ln(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(E(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,Nd(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(Vl=ge(),vf(t.child,!0)),Sf(t);return;case 19:Sf(t);return;case 17:return;case 23:case 24:vf(t,t.memoizedState!==null);return}throw Error(E(163))}function Sf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new p0),t.forEach(function(r){var i=E0.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function m0(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var g0=Math.ceil,zo=ln.ReactCurrentDispatcher,Yl=ln.ReactCurrentOwner,L=0,ke=null,oe=null,ve=0,bn=0,Hl=At(0),de=0,Fo=null,er=0,wi=0,tr=0,Gl=0,Wl=null,Vl=0,Kl=1/0;function nr(){Kl=ge()+500}var T=null,Uo=!1,ql=null,ot=null,Yt=!1,xi=null,ki=90,Ql=[],Jl=[],vt=null,_i=0,Xl=null,Bo=-1,bt=0,Yo=0,Si=null,Ho=!1;function Oe(){return L&48?ge():Bo!==-1?Bo:Bo=ge()}function Ht(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return qn()===99?1:2;if(bt===0&&(bt=er),r0.transition!==0){Yo!==0&&(Yo=Wl!==null?Wl.pendingLanes:0),e=bt;var t=4186112&~Yo;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=qn(),L&4&&e===98?e=oo(12,bt):(e=ay(e),e=oo(e,bt)),e}function Gt(e,t,n){if(50<_i)throw _i=0,Xl=null,Error(E(185));if(e=Go(e,t),e===null)return null;ao(e,t,n),e===ke&&(tr|=t,de===4&&rr(e,ve));var r=qn();t===1?L&8&&!(L&48)?Zl(e):(Fe(e,n),L===0&&(nr(),tt())):(!(L&4)||r!==98&&r!==99||(vt===null?vt=new Set([e]):vt.add(e)),Fe(e,n)),Wl=e}function Go(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}function Fe(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var s=31-Lt(a),l=1<<s,c=o[s];if(c===-1){if(!(l&r)||l&i){c=t,Mn(l);var p=B;o[s]=10<=p?c+250:6<=p?c+5e3:-1}}else c<=t&&(e.expiredLanes|=l);a&=~l}if(r=Qr(e,e===ke?ve:0),t=B,r===0)n!==null&&(n!==gl&&hl(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==gl&&hl(n)}t===15?(n=Zl.bind(null,e),mt===null?(mt=[n],ko=fl(xo,Np)):mt.push(n),n=gl):t===14?n=si(99,Zl.bind(null,e)):(n=sy(t),n=si(n,Ef.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function Ef(e){if(Bo=-1,Yo=bt=0,L&48)throw Error(E(327));var t=e.callbackNode;if(Wt()&&e.callbackNode!==t)return null;var n=Qr(e,e===ke?ve:0);if(n===0)return null;var r=n,i=L;L|=16;var o=Tf();(ke!==e||ve!==r)&&(nr(),ir(e,r));do try{b0();break}catch(s){Nf(e,s)}while(1);if(vl(),zo.current=o,L=i,oe!==null?r=0:(ke=null,ve=0,r=de),er&tr)ir(e,0);else if(r!==0){if(r===2&&(L|=64,e.hydrate&&(e.hydrate=!1,cl(e.containerInfo)),n=jd(e),n!==0&&(r=Ei(e,n))),r===1)throw t=Fo,ir(e,0),rr(e,n),Fe(e,ge()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(E(345));case 2:wn(e);break;case 3:if(rr(e,n),(n&62914560)===n&&(r=Vl+500-ge(),10<r)){if(Qr(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){Oe(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=hp(wn.bind(null,e),r);break}wn(e);break;case 4:if(rr(e,n),(n&4186112)===n)break;for(r=e.eventTimes,i=-1;0<n;){var a=31-Lt(n);o=1<<a,a=r[a],a>i&&(i=a),n&=~o}if(n=i,n=ge()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*g0(n/1960))-n,10<n){e.timeoutHandle=hp(wn.bind(null,e),n);break}wn(e);break;case 5:wn(e);break;default:throw Error(E(329))}}return Fe(e,ge()),e.callbackNode===t?Ef.bind(null,e):null}function rr(e,t){for(t&=~Gl,t&=~tr,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Lt(t),r=1<<n;e[n]=-1,t&=~r}}function Zl(e){if(L&48)throw Error(E(327));if(Wt(),e===ke&&e.expiredLanes&ve){var t=ve,n=Ei(e,t);er&tr&&(t=Qr(e,t),n=Ei(e,t))}else t=Qr(e,0),n=Ei(e,t);if(e.tag!==0&&n===2&&(L|=64,e.hydrate&&(e.hydrate=!1,cl(e.containerInfo)),t=jd(e),t!==0&&(n=Ei(e,t))),n===1)throw n=Fo,ir(e,0),rr(e,t),Fe(e,ge()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,wn(e),Fe(e,ge()),null}function y0(){if(vt!==null){var e=vt;vt=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Fe(t,ge())})}tt()}function Cf(e,t){var n=L;L|=1;try{return e(t)}finally{L=n,L===0&&(nr(),tt())}}function Pf(e,t){var n=L;L&=-2,L|=8;try{return e(t)}finally{L=n,L===0&&(nr(),tt())}}function Wo(e,t){Q(Hl,bn),bn|=t,er|=t}function ec(){bn=Hl.current,G(Hl)}function ir(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Jy(n)),oe!==null)for(n=oe.return;n!==null;){var r=n;switch(r.tag){case 1:r=r.type.childContextTypes,r!=null&&bo();break;case 3:Xn(),G(Ce),G(me),Cl();break;case 5:_l(r);break;case 4:Xn();break;case 13:G(J);break;case 19:G(J);break;case 10:bl(r);break;case 23:case 24:ec()}n=n.return}ke=e,oe=Kt(e.current,null),ve=bn=er=t,de=0,Fo=null,Gl=tr=wi=0}function Nf(e,t){do{var n=oe;try{if(vl(),fi.current=Ao,Do){for(var r=ee.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Do=!1}if(hi=0,ue=ye=ee=null,mi=!1,Yl.current=null,n===null||n.return===null){de=1,Fo=t,oe=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=ve,s.flags|=2048,s.firstEffect=s.lastEffect=null,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l;if(!(s.mode&2)){var p=s.alternate;p?(s.updateQueue=p.updateQueue,s.memoizedState=p.memoizedState,s.lanes=p.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=(J.current&1)!==0,f=a;do{var y;if(y=f.tag===13){var v=f.memoizedState;if(v!==null)y=v.dehydrated!==null;else{var _=f.memoizedProps;y=_.fallback===void 0?!1:_.unstable_avoidThisFallback!==!0?!0:!d}}if(y){var g=f.updateQueue;if(g===null){var h=new Set;h.add(c),f.updateQueue=h}else g.add(c);if(!(f.mode&2)){if(f.flags|=64,s.flags|=16384,s.flags&=-2981,s.tag===1)if(s.alternate===null)s.tag=17;else{var m=Ft(-1,1);m.tag=2,Ut(s,m)}s.lanes|=1;break e}l=void 0,s=t;var w=o.pingCache;if(w===null?(w=o.pingCache=new d0,l=new Set,w.set(c,l)):(l=w.get(c),l===void 0&&(l=new Set,w.set(c,l))),!l.has(s)){l.add(s);var k=S0.bind(null,o,c,s);c.then(k,k)}f.flags|=4096,f.lanes=t;break e}f=f.return}while(f!==null);l=Error((Dn(s.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
|
|
40
|
+
`+o.stack}return{value:e,source:t,stack:i}}function zl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var d0=typeof WeakMap=="function"?WeakMap:Map;function gf(e,t,n){n=Ft(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Uo||(Uo=!0,ql=r),zl(e,t)},n}function mf(e,t,n){n=Ft(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return zl(e,t),r(i)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){typeof r!="function"&&(ot===null?ot=new Set([this]):ot.add(this),zl(e,t));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}var p0=typeof WeakSet=="function"?WeakSet:Set;function yf(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){Vt(e,n)}else t.current=null}function f0(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var n=e.memoizedProps,r=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:Ve(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&cl(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(E(163))}function h0(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var i=e;r=i.next,i=i.tag,i&4&&i&1&&(Of(n,e),k0(n,e)),e=r}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Ve(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&Op(n,t,e);return;case 3:if(t=n.updateQueue,t!==null){if(e=null,n.child!==null)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}Op(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&fp(n.type,n.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&Nd(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(E(163))}function vf(e,t){for(var n=e;;){if(n.tag===5){var r=n.stateNode;if(t)r=r.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=i!=null&&i.hasOwnProperty("display")?i.display:null,r.style.display=dd("display",i)}}else if(n.tag===6)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function bf(e,t){if(hn&&typeof hn.onCommitFiberUnmount=="function")try{hn.onCommitFiberUnmount(pl,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,i!==void 0)if(r&4)Of(t,n);else{r=t;try{i()}catch(o){Vt(r,o)}}n=n.next}while(n!==e)}break;case 1:if(yf(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){Vt(t,o)}break;case 5:yf(t);break;case 4:_f(e,t)}}function wf(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function xf(e){return e.tag===5||e.tag===3||e.tag===4}function kf(e){e:{for(var t=e.return;t!==null;){if(xf(t))break e;t=t.return}throw Error(E(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:t=t.containerInfo,r=!0;break;case 4:t=t.containerInfo,r=!0;break;default:throw Error(E(161))}n.flags&16&&(Fr(t,""),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||xf(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}r?Fl(e,n,t):Ul(e,n,t)}function Fl(e,t,n){var r=e.tag,i=r===5||r===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=go));else if(r!==4&&(e=e.child,e!==null))for(Fl(e,t,n),e=e.sibling;e!==null;)Fl(e,t,n),e=e.sibling}function Ul(e,t,n){var r=e.tag,i=r===5||r===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ul(e,t,n),e=e.sibling;e!==null;)Ul(e,t,n),e=e.sibling}function _f(e,t){for(var n=t,r=!1,i,o;;){if(!r){r=n.return;e:for(;;){if(r===null)throw Error(E(160));switch(i=r.stateNode,r.tag){case 5:o=!1;break e;case 3:i=i.containerInfo,o=!0;break e;case 4:i=i.containerInfo,o=!0;break e}r=r.return}r=!0}if(n.tag===5||n.tag===6){e:for(var a=e,s=n,l=s;;)if(bf(a,l),l.child!==null&&l.tag!==4)l.child.return=l,l=l.child;else{if(l===s)break e;for(;l.sibling===null;){if(l.return===null||l.return===s)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}o?(a=i,s=n.stateNode,a.nodeType===8?a.parentNode.removeChild(s):a.removeChild(s)):i.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){i=n.stateNode.containerInfo,o=!0,n.child.return=n,n=n.child;continue}}else if(bf(e,n),n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return,n.tag===4&&(r=!1)}n.sibling.return=n.return,n=n.sibling}}function Bl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var r=n=n.next;do(r.tag&3)===3&&(e=r.destroy,r.destroy=void 0,e!==void 0&&e()),r=r.next;while(r!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){r=t.memoizedProps;var i=e!==null?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(n[yo]=r,e==="input"&&r.type==="radio"&&r.name!=null&&id(n,r),Ts(e,i),t=Ts(e,r),i=0;i<o.length;i+=2){var a=o[i],s=o[i+1];a==="style"?pd(n,s):a==="dangerouslySetInnerHTML"?ud(n,s):a==="children"?Fr(n,s):us(n,a,s,t)}switch(e){case"input":ks(n,r);break;case"textarea":sd(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,o=r.value,o!=null?Ln(n,!!r.multiple,o,!1):e!==!!r.multiple&&(r.defaultValue!=null?Ln(n,!!r.multiple,r.defaultValue,!0):Ln(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(E(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,Nd(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(Vl=me(),vf(t.child,!0)),Sf(t);return;case 19:Sf(t);return;case 17:return;case 23:case 24:vf(t,t.memoizedState!==null);return}throw Error(E(163))}function Sf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new p0),t.forEach(function(r){var i=E0.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function g0(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var m0=Math.ceil,zo=ln.ReactCurrentDispatcher,Yl=ln.ReactCurrentOwner,L=0,ke=null,oe=null,ve=0,bn=0,Hl=At(0),de=0,Fo=null,er=0,wi=0,tr=0,Gl=0,Wl=null,Vl=0,Kl=1/0;function nr(){Kl=me()+500}var T=null,Uo=!1,ql=null,ot=null,Yt=!1,xi=null,ki=90,Ql=[],Jl=[],vt=null,_i=0,Xl=null,Bo=-1,bt=0,Yo=0,Si=null,Ho=!1;function Oe(){return L&48?me():Bo!==-1?Bo:Bo=me()}function Ht(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return qn()===99?1:2;if(bt===0&&(bt=er),r0.transition!==0){Yo!==0&&(Yo=Wl!==null?Wl.pendingLanes:0),e=bt;var t=4186112&~Yo;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=qn(),L&4&&e===98?e=oo(12,bt):(e=ay(e),e=oo(e,bt)),e}function Gt(e,t,n){if(50<_i)throw _i=0,Xl=null,Error(E(185));if(e=Go(e,t),e===null)return null;ao(e,t,n),e===ke&&(tr|=t,de===4&&rr(e,ve));var r=qn();t===1?L&8&&!(L&48)?Zl(e):(Fe(e,n),L===0&&(nr(),tt())):(!(L&4)||r!==98&&r!==99||(vt===null?vt=new Set([e]):vt.add(e)),Fe(e,n)),Wl=e}function Go(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}function Fe(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var s=31-Lt(a),l=1<<s,c=o[s];if(c===-1){if(!(l&r)||l&i){c=t,Mn(l);var p=Y;o[s]=10<=p?c+250:6<=p?c+5e3:-1}}else c<=t&&(e.expiredLanes|=l);a&=~l}if(r=Qr(e,e===ke?ve:0),t=Y,r===0)n!==null&&(n!==ml&&hl(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==ml&&hl(n)}t===15?(n=Zl.bind(null,e),gt===null?(gt=[n],ko=fl(xo,Np)):gt.push(n),n=ml):t===14?n=si(99,Zl.bind(null,e)):(n=sy(t),n=si(n,Ef.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function Ef(e){if(Bo=-1,Yo=bt=0,L&48)throw Error(E(327));var t=e.callbackNode;if(Wt()&&e.callbackNode!==t)return null;var n=Qr(e,e===ke?ve:0);if(n===0)return null;var r=n,i=L;L|=16;var o=Tf();(ke!==e||ve!==r)&&(nr(),ir(e,r));do try{b0();break}catch(s){Nf(e,s)}while(1);if(vl(),zo.current=o,L=i,oe!==null?r=0:(ke=null,ve=0,r=de),er&tr)ir(e,0);else if(r!==0){if(r===2&&(L|=64,e.hydrate&&(e.hydrate=!1,cl(e.containerInfo)),n=Id(e),n!==0&&(r=Ei(e,n))),r===1)throw t=Fo,ir(e,0),rr(e,n),Fe(e,me()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(E(345));case 2:wn(e);break;case 3:if(rr(e,n),(n&62914560)===n&&(r=Vl+500-me(),10<r)){if(Qr(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){Oe(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=hp(wn.bind(null,e),r);break}wn(e);break;case 4:if(rr(e,n),(n&4186112)===n)break;for(r=e.eventTimes,i=-1;0<n;){var a=31-Lt(n);o=1<<a,a=r[a],a>i&&(i=a),n&=~o}if(n=i,n=me()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*m0(n/1960))-n,10<n){e.timeoutHandle=hp(wn.bind(null,e),n);break}wn(e);break;case 5:wn(e);break;default:throw Error(E(329))}}return Fe(e,me()),e.callbackNode===t?Ef.bind(null,e):null}function rr(e,t){for(t&=~Gl,t&=~tr,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Lt(t),r=1<<n;e[n]=-1,t&=~r}}function Zl(e){if(L&48)throw Error(E(327));if(Wt(),e===ke&&e.expiredLanes&ve){var t=ve,n=Ei(e,t);er&tr&&(t=Qr(e,t),n=Ei(e,t))}else t=Qr(e,0),n=Ei(e,t);if(e.tag!==0&&n===2&&(L|=64,e.hydrate&&(e.hydrate=!1,cl(e.containerInfo)),t=Id(e),t!==0&&(n=Ei(e,t))),n===1)throw n=Fo,ir(e,0),rr(e,t),Fe(e,me()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,wn(e),Fe(e,me()),null}function y0(){if(vt!==null){var e=vt;vt=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Fe(t,me())})}tt()}function Cf(e,t){var n=L;L|=1;try{return e(t)}finally{L=n,L===0&&(nr(),tt())}}function Pf(e,t){var n=L;L&=-2,L|=8;try{return e(t)}finally{L=n,L===0&&(nr(),tt())}}function Wo(e,t){Q(Hl,bn),bn|=t,er|=t}function ec(){bn=Hl.current,G(Hl)}function ir(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Jy(n)),oe!==null)for(n=oe.return;n!==null;){var r=n;switch(r.tag){case 1:r=r.type.childContextTypes,r!=null&&bo();break;case 3:Xn(),G(Ce),G(ge),Cl();break;case 5:_l(r);break;case 4:Xn();break;case 13:G(J);break;case 19:G(J);break;case 10:bl(r);break;case 23:case 24:ec()}n=n.return}ke=e,oe=Kt(e.current,null),ve=bn=er=t,de=0,Fo=null,Gl=tr=wi=0}function Nf(e,t){do{var n=oe;try{if(vl(),fi.current=Ao,Do){for(var r=ee.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Do=!1}if(hi=0,ue=ye=ee=null,gi=!1,Yl.current=null,n===null||n.return===null){de=1,Fo=t,oe=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=ve,s.flags|=2048,s.firstEffect=s.lastEffect=null,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l;if(!(s.mode&2)){var p=s.alternate;p?(s.updateQueue=p.updateQueue,s.memoizedState=p.memoizedState,s.lanes=p.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=(J.current&1)!==0,f=a;do{var y;if(y=f.tag===13){var v=f.memoizedState;if(v!==null)y=v.dehydrated!==null;else{var _=f.memoizedProps;y=_.fallback===void 0?!1:_.unstable_avoidThisFallback!==!0?!0:!d}}if(y){var m=f.updateQueue;if(m===null){var h=new Set;h.add(c),f.updateQueue=h}else m.add(c);if(!(f.mode&2)){if(f.flags|=64,s.flags|=16384,s.flags&=-2981,s.tag===1)if(s.alternate===null)s.tag=17;else{var g=Ft(-1,1);g.tag=2,Ut(s,g)}s.lanes|=1;break e}l=void 0,s=t;var w=o.pingCache;if(w===null?(w=o.pingCache=new d0,l=new Set,w.set(c,l)):(l=w.get(c),l===void 0&&(l=new Set,w.set(c,l))),!l.has(s)){l.add(s);var k=S0.bind(null,o,c,s);c.then(k,k)}f.flags|=4096,f.lanes=t;break e}f=f.return}while(f!==null);l=Error((Dn(s.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
|
|
41
41
|
|
|
42
|
-
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}de!==5&&(de=2),l=Ml(l,s),f=a;do{switch(f.tag){case 3:o=l,f.flags|=4096,t&=-t,f.lanes|=t;var C=mf(f,o,t);Rp(f,C);break e;case 1:o=l;var S=f.type,$=f.stateNode;if(!(f.flags&64)&&(typeof S.getDerivedStateFromError=="function"||$!==null&&typeof $.componentDidCatch=="function"&&(ot===null||!ot.has($)))){f.flags|=4096,t&=-t,f.lanes|=t;var O=gf(f,o,t);Rp(f,O);break e}}f=f.return}while(f!==null)}Rf(n)}catch(N){t=N,oe===n&&n!==null&&(oe=n=n.return);continue}break}while(1)}function Tf(){var e=zo.current;return zo.current=Ao,e===null?Ao:e}function Ei(e,t){var n=L;L|=16;var r=Tf();ke===e&&ve===t||ir(e,t);do try{v0();break}catch(i){Nf(e,i)}while(1);if(vl(),L=n,zo.current=r,oe!==null)throw Error(E(261));return ke=null,ve=0,de}function v0(){for(;oe!==null;)$f(oe)}function b0(){for(;oe!==null&&!e0();)$f(oe)}function $f(e){var t=Lf(e.alternate,e,bn);e.memoizedProps=e.pendingProps,t===null?Rf(e):oe=t,Yl.current=null}function Rf(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&2048){if(n=u0(t),n!==null){n.flags&=2047,oe=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(n=c0(n,t,bn),n!==null){oe=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||bn&1073741824||!(n.mode&4)){for(var r=0,i=n.child;i!==null;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}if(t=t.sibling,t!==null){oe=t;return}oe=t=e}while(t!==null);de===0&&(de=5)}function wn(e){var t=qn();return mn(99,w0.bind(null,e,t)),null}function w0(e,t){do Wt();while(xi!==null);if(L&48)throw Error(E(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(E(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var a=e.eventTimes,s=e.expirationTimes;0<o;){var l=31-Lt(o),c=1<<l;i[l]=0,a[l]=-1,s[l]=-1,o&=~c}if(vt!==null&&!(r&24)&&vt.has(e)&&vt.delete(e),e===ke&&(oe=ke=null,ve=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,r!==null){if(i=L,L|=32,Yl.current=null,al=so,a=tp(),nl(a)){if("selectionStart"in a)s={start:a.selectionStart,end:a.selectionEnd};else e:if(s=(s=a.ownerDocument)&&s.defaultView||window,(c=s.getSelection&&s.getSelection())&&c.rangeCount!==0){s=c.anchorNode,o=c.anchorOffset,l=c.focusNode,c=c.focusOffset;try{s.nodeType,l.nodeType}catch{s=null;break e}var p=0,d=-1,f=-1,y=0,v=0,_=a,g=null;t:for(;;){for(var h;_!==s||o!==0&&_.nodeType!==3||(d=p+o),_!==l||c!==0&&_.nodeType!==3||(f=p+c),_.nodeType===3&&(p+=_.nodeValue.length),(h=_.firstChild)!==null;)g=_,_=h;for(;;){if(_===a)break t;if(g===s&&++y===o&&(d=p),g===l&&++v===c&&(f=p),(h=_.nextSibling)!==null)break;_=g,g=_.parentNode}_=h}s=d===-1||f===-1?null:{start:d,end:f}}else s=null;s=s||{start:0,end:0}}else s=null;sl={focusedElem:a,selectionRange:s},so=!1,Si=null,Ho=!1,T=r;do try{x0()}catch(N){if(T===null)throw Error(E(330));Vt(T,N),T=T.nextEffect}while(T!==null);Si=null,T=r;do try{for(a=e;T!==null;){var m=T.flags;if(m&16&&Fr(T.stateNode,""),m&128){var w=T.alternate;if(w!==null){var k=w.ref;k!==null&&(typeof k=="function"?k(null):k.current=null)}}switch(m&1038){case 2:kf(T),T.flags&=-3;break;case 6:kf(T),T.flags&=-3,Bl(T.alternate,T);break;case 1024:T.flags&=-1025;break;case 1028:T.flags&=-1025,Bl(T.alternate,T);break;case 4:Bl(T.alternate,T);break;case 8:s=T,_f(a,s);var C=s.alternate;wf(s),C!==null&&wf(C)}T=T.nextEffect}}catch(N){if(T===null)throw Error(E(330));Vt(T,N),T=T.nextEffect}while(T!==null);if(k=sl,w=tp(),m=k.focusedElem,a=k.selectionRange,w!==m&&m&&m.ownerDocument&&ep(m.ownerDocument.documentElement,m)){for(a!==null&&nl(m)&&(w=a.start,k=a.end,k===void 0&&(k=w),"selectionStart"in m?(m.selectionStart=w,m.selectionEnd=Math.min(k,m.value.length)):(k=(w=m.ownerDocument||document)&&w.defaultView||window,k.getSelection&&(k=k.getSelection(),s=m.textContent.length,C=Math.min(a.start,s),a=a.end===void 0?C:Math.min(a.end,s),!k.extend&&C>a&&(s=a,a=C,C=s),s=Zd(m,C),o=Zd(m,a),s&&o&&(k.rangeCount!==1||k.anchorNode!==s.node||k.anchorOffset!==s.offset||k.focusNode!==o.node||k.focusOffset!==o.offset)&&(w=w.createRange(),w.setStart(s.node,s.offset),k.removeAllRanges(),C>a?(k.addRange(w),k.extend(o.node,o.offset)):(w.setEnd(o.node,o.offset),k.addRange(w)))))),w=[],k=m;k=k.parentNode;)k.nodeType===1&&w.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<w.length;m++)k=w[m],k.element.scrollLeft=k.left,k.element.scrollTop=k.top}so=!!al,sl=al=null,e.current=n,T=r;do try{for(m=e;T!==null;){var S=T.flags;if(S&36&&h0(m,T.alternate,T),S&128){w=void 0;var $=T.ref;if($!==null){var O=T.stateNode;switch(T.tag){case 5:w=O;break;default:w=O}typeof $=="function"?$(w):$.current=w}}T=T.nextEffect}}catch(N){if(T===null)throw Error(E(330));Vt(T,N),T=T.nextEffect}while(T!==null);T=null,n0(),L=i}else e.current=n;if(Yt)Yt=!1,xi=e,ki=t;else for(T=r;T!==null;)t=T.nextEffect,T.nextEffect=null,T.flags&8&&(S=T,S.sibling=null,S.stateNode=null),T=t;if(r=e.pendingLanes,r===0&&(ot=null),r===1?e===Xl?_i++:(_i=0,Xl=e):_i=0,n=n.stateNode,hn&&typeof hn.onCommitFiberRoot=="function")try{hn.onCommitFiberRoot(pl,n,void 0,(n.current.flags&64)===64)}catch{}if(Fe(e,ge()),Uo)throw Uo=!1,e=ql,ql=null,e;return L&8||tt(),null}function x0(){for(;T!==null;){var e=T.alternate;Ho||Si===null||(T.flags&8?xd(T,Si)&&(Ho=!0):T.tag===13&&m0(e,T)&&xd(T,Si)&&(Ho=!0));var t=T.flags;t&256&&f0(e,T),!(t&512)||Yt||(Yt=!0,si(97,function(){return Wt(),null})),T=T.nextEffect}}function Wt(){if(ki!==90){var e=97<ki?97:ki;return ki=90,mn(e,_0)}return!1}function k0(e,t){Ql.push(t,e),Yt||(Yt=!0,si(97,function(){return Wt(),null}))}function Of(e,t){Jl.push(t,e),Yt||(Yt=!0,si(97,function(){return Wt(),null}))}function _0(){if(xi===null)return!1;var e=xi;if(xi=null,L&48)throw Error(E(331));var t=L;L|=32;var n=Jl;Jl=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],a=i.destroy;if(i.destroy=void 0,typeof a=="function")try{a()}catch(l){if(o===null)throw Error(E(330));Vt(o,l)}}for(n=Ql,Ql=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var s=i.create;i.destroy=s()}catch(l){if(o===null)throw Error(E(330));Vt(o,l)}}for(s=e.current.firstEffect;s!==null;)e=s.nextEffect,s.nextEffect=null,s.flags&8&&(s.sibling=null,s.stateNode=null),s=e;return L=t,tt(),!0}function Df(e,t,n){t=Ml(n,t),t=mf(e,t,1),Ut(e,t),t=Oe(),e=Go(e,1),e!==null&&(ao(e,1,t),Fe(e,t))}function Vt(e,t){if(e.tag===3)Df(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){Df(n,e,t);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ot===null||!ot.has(r))){e=Ml(t,e);var i=gf(n,e,1);if(Ut(n,i),i=Oe(),n=Go(n,1),n!==null)ao(n,1,i),Fe(n,i);else if(typeof r.componentDidCatch=="function"&&(ot===null||!ot.has(r)))try{r.componentDidCatch(t,e)}catch{}break}}n=n.return}}function S0(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Oe(),e.pingedLanes|=e.suspendedLanes&n,ke===e&&(ve&n)===n&&(de===4||de===3&&(ve&62914560)===ve&&500>ge()-Vl?ir(e,0):Gl|=n),Fe(e,t)}function E0(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(bt===0&&(bt=er),t=zn(62914560&~bt),t===0&&(t=4194304)):t=qn()===99?1:2:t=1),n=Oe(),e=Go(e,t),e!==null&&(ao(e,t,n),Fe(e,n))}var Lf;Lf=function(e,t,n){var r=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Ce.current)Ke=!0;else if(n&r)Ke=!!(e.flags&16384);else{switch(Ke=!1,t.tag){case 3:of(t),El();break;case 5:zp(t);break;case 1:Pe(t.type)&&wo(t);break;case 4:kl(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;Q(_o,i._currentValue),i._currentValue=r;break;case 13:if(t.memoizedState!==null)return n&t.child.childLanes?af(e,t,n):(Q(J,J.current&1),t=yt(e,t,n),t!==null?t.sibling:null);Q(J,J.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&64){if(r)return df(e,t,n);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Q(J,J.current),r)break;return null;case 23:case 24:return t.lanes=0,Dl(e,t,n)}return yt(e,t,n)}else Ke=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=Kn(t,me.current),Jn(t,n),i=Nl(null,t,r,e,i,n),t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pe(r)){var o=!0;wo(t)}else o=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,wl(t);var a=r.getDerivedStateFromProps;typeof a=="function"&&Co(t,r,a,e),i.updater=Po,t.stateNode=i,i._reactInternals=t,xl(t,r,e,n),t=jl(null,t,r,!0,o,n)}else t.tag=0,Te(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=i._init,i=o(i._payload),t.type=i,o=t.tag=P0(i),e=Ve(i,e),o){case 0:t=Ll(null,t,i,e,n);break e;case 1:t=rf(null,t,i,e,n);break e;case 11:t=Zp(null,t,i,e,n);break e;case 14:t=ef(null,t,i,Ve(i.type,e),r,n);break e}throw Error(E(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ve(r,i),Ll(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ve(r,i),rf(e,t,r,i,n);case 3:if(of(t),r=t.updateQueue,e===null||r===null)throw Error(E(282));if(r=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,$p(e,t),li(t,r,null,n),r=t.memoizedState.element,r===i)El(),t=yt(e,t,n);else{if(i=t.stateNode,(o=i.hydrate)&&(Bt=Hn(t.stateNode.containerInfo.firstChild),gt=t,o=rt=!0),o){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i<e.length;i+=2)o=e[i],o._workInProgressVersionPrimary=e[i+1],Zn.push(o);for(n=Mp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else Te(e,t,r,n),El();t=t.child}return t;case 5:return zp(t),e===null&&Sl(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,ll(r,i)?a=null:o!==null&&ll(r,o)&&(t.flags|=16),nf(e,t),Te(e,t,a,n),t.child;case 6:return e===null&&Sl(t),null;case 13:return af(e,t,n);case 4:return kl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=$o(t,null,r,n):Te(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ve(r,i),Zp(e,t,r,i,n);case 7:return Te(e,t,t.pendingProps,n),t.child;case 8:return Te(e,t,t.pendingProps.children,n),t.child;case 12:return Te(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value;var s=t.type._context;if(Q(_o,s._currentValue),s._currentValue=o,a!==null)if(s=a.value,o=Ae(s,o)?0:(typeof r._calculateChangedBits=="function"?r._calculateChangedBits(s,o):1073741823)|0,o===0){if(a.children===i.children&&!Ce.current){t=yt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){a=s.child;for(var c=l.firstContext;c!==null;){if(c.context===r&&c.observedBits&o){s.tag===1&&(c=Ft(-1,n&-n),c.tag=2,Ut(s,c)),s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),Tp(s.return,n),l.lanes|=n;break}c=c.next}}else a=s.tag===10&&s.type===t.type?null:s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===t){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}Te(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps,r=o.children,Jn(t,n),i=Me(i,o.unstable_observedBits),r=r(i),t.flags|=1,Te(e,t,r,n),t.child;case 14:return i=t.type,o=Ve(i,t.pendingProps),o=Ve(i.type,o),ef(e,t,i,o,r,n);case 15:return tf(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ve(r,i),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Pe(r)?(e=!0,wo(t)):e=!1,Jn(t,n),jp(t,r,i),xl(t,r,i,n),jl(null,t,r,!0,e,n);case 19:return df(e,t,n);case 23:return Dl(e,t,n);case 24:return Dl(e,t,n)}throw Error(E(156,t.tag))};function C0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Ue(e,t,n,r){return new C0(e,t,n,r)}function tc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function P0(e){if(typeof e=="function")return tc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Vi)return 11;if(e===qi)return 14}return 2}function Kt(e,t){var n=e.alternate;return n===null?(n=Ue(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Vo(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")tc(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Tt:return or(n.children,i,o,t);case Zu:a=8,i|=16;break;case ds:a=8,i|=1;break;case Ir:return e=Ue(12,n,t,i|8),e.elementType=Ir,e.type=Ir,e.lanes=o,e;case Ar:return e=Ue(13,n,t,i),e.type=Ar,e.elementType=Ar,e.lanes=o,e;case Ki:return e=Ue(19,n,t,i),e.elementType=Ki,e.lanes=o,e;case ys:return nc(n,i,o,t);case vs:return e=Ue(24,n,t,i),e.elementType=vs,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ps:a=10;break e;case fs:a=9;break e;case Vi:a=11;break e;case qi:a=14;break e;case hs:a=16,r=null;break e;case ms:a=22;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=Ue(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function or(e,t,n,r){return e=Ue(7,e,r,t),e.lanes=n,e}function nc(e,t,n,r){return e=Ue(23,e,r,t),e.elementType=ys,e.lanes=n,e}function rc(e,t,n){return e=Ue(6,e,null,t),e.lanes=n,e}function ic(e,t,n){return t=Ue(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function N0(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Hs(0),this.expirationTimes=Hs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hs(0),this.mutableSourceEagerHydrationData=null}function T0(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:cn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ko(e,t,n,r){var i=t.current,o=Oe(),a=Ht(i);e:if(n){n=n._reactInternals;t:{if(dn(n)!==n||n.tag!==1)throw Error(E(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(Pe(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(s!==null);throw Error(E(171))}if(n.tag===1){var l=n.type;if(Pe(l)){n=bp(n,l,s);break e}}n=s}else n=Mt;return t.context===null?t.context=n:t.pendingContext=n,t=Ft(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),Ut(i,t),Gt(i,a,o),a}function oc(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function jf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ac(e,t){jf(e,t),(e=e.alternate)&&jf(e,t)}function $0(){return null}function sc(e,t,n){var r=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new N0(e,t,n!=null&&n.hydrate===!0),t=Ue(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,wl(t),e[Gn]=n.current,lp(e.nodeType===8?e.parentNode:e),r)for(e=0;e<r.length;e++){t=r[e];var i=t._getVersion;i=i(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}sc.prototype.render=function(e){Ko(e,this._internalRoot,null,null)},sc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ko(null,e,null,function(){t[Gn]=null})};function Ci(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function R0(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new sc(e,0,t?{hydrate:!0}:void 0)}function qo(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if(typeof i=="function"){var s=i;i=function(){var c=oc(a);s.call(c)}}Ko(t,a,e,i)}else{if(o=n._reactRootContainer=R0(n,r),a=o._internalRoot,typeof i=="function"){var l=i;i=function(){var c=oc(a);l.call(c)}}Pf(function(){Ko(t,a,e,i)})}return oc(a)}kd=function(e){if(e.tag===13){var t=Oe();Gt(e,4,t),ac(e,4)}},Ms=function(e){if(e.tag===13){var t=Oe();Gt(e,67108864,t),ac(e,67108864)}},_d=function(e){if(e.tag===13){var t=Oe(),n=Ht(e);Gt(e,n,t),ac(e,n)}},Sd=function(e,t){return t()},Rs=function(e,t,n){switch(t){case"input":if(ks(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=vo(r);if(!i)throw Error(E(90));nd(r),ks(r,i)}}}break;case"textarea":sd(e,n);break;case"select":t=n.value,t!=null&&Ln(e,!!n.multiple,t,!1)}},Os=Cf,gd=function(e,t,n,r,i){var o=L;L|=4;try{return mn(98,e.bind(null,t,n,r,i))}finally{L=o,L===0&&(nr(),tt())}},Ds=function(){!(L&49)&&(y0(),Wt())},yd=function(e,t){var n=L;L|=2;try{return e(t)}finally{L=n,L===0&&(nr(),tt())}};function If(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ci(t))throw Error(E(200));return T0(e,t,null,n)}var O0={Events:[ai,Wn,vo,hd,md,Wt,{current:!1}]},Pi={findFiberByHostInstance:pn,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},D0={bundleType:Pi.bundleType,version:Pi.version,rendererPackageName:Pi.rendererPackageName,rendererConfig:Pi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ln.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=wd(e),e===null?null:e.stateNode},findFiberByHostInstance:Pi.findFiberByHostInstance||$0,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qo.isDisabled&&Qo.supportsFiber)try{pl=Qo.inject(D0),hn=Qo}catch{}}Ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O0,Ie.createPortal=If,Ie.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(E(188)):Error(E(268,Object.keys(e)));return e=wd(t),e=e===null?null:e.stateNode,e},Ie.flushSync=function(e,t){var n=L;if(n&48)return e(t);L|=1;try{if(e)return mn(99,e.bind(null,t))}finally{L=n,tt()}},Ie.hydrate=function(e,t,n){if(!Ci(t))throw Error(E(200));return qo(null,e,t,!0,n)},Ie.render=function(e,t,n){if(!Ci(t))throw Error(E(200));return qo(null,e,t,!1,n)},Ie.unmountComponentAtNode=function(e){if(!Ci(e))throw Error(E(40));return e._reactRootContainer?(Pf(function(){qo(null,null,e,!1,function(){e._reactRootContainer=null,e[Gn]=null})}),!0):!1},Ie.unstable_batchedUpdates=Cf,Ie.unstable_createPortal=function(e,t){return If(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},Ie.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ci(n))throw Error(E(200));if(e==null||e._reactInternals===void 0)throw Error(E(38));return qo(e,t,n,!1,r)},Ie.version="17.0.2",function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=Ie}(Mg);const L0=je(Dr),l2="",Af=Object.prototype.toString;function lc(e){switch(Af.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return lr(e,Error)}}function ar(e,t){return Af.call(e)===`[object ${t}]`}function Mf(e){return ar(e,"ErrorEvent")}function zf(e){return ar(e,"DOMError")}function j0(e){return ar(e,"DOMException")}function xn(e){return ar(e,"String")}function Ff(e){return e===null||typeof e!="object"&&typeof e!="function"}function sr(e){return ar(e,"Object")}function cc(e){return typeof Event<"u"&&lr(e,Event)}function I0(e){return typeof Element<"u"&&lr(e,Element)}function A0(e){return ar(e,"RegExp")}function uc(e){return!!(e&&e.then&&typeof e.then=="function")}function M0(e){return sr(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function z0(e){return typeof e=="number"&&e!==e}function lr(e,t){try{return e instanceof t}catch{return!1}}function Jo(e){return e&&e.Math==Math?e:void 0}const Be=typeof globalThis=="object"&&Jo(globalThis)||typeof window=="object"&&Jo(window)||typeof self=="object"&&Jo(self)||typeof global=="object"&&Jo(global)||function(){return this}()||{};function Ni(){return Be}function dc(e,t,n){const r=n||Be,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const F0=Ni(),U0=80;function pc(e,t={}){try{let n=e;const r=5,i=[];let o=0,a=0;const s=" > ",l=s.length;let c;const p=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||U0;for(;n&&o++<r&&(c=B0(n,p),!(c==="html"||o>1&&a+i.length*l+c.length>=d));)i.push(c),a+=c.length,n=n.parentNode;return i.reverse().join(s)}catch{return"<unknown>"}}function B0(e,t){const n=e,r=[];let i,o,a,s,l;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());const c=t&&t.length?t.filter(d=>n.getAttribute(d)).map(d=>[d,n.getAttribute(d)]):null;if(c&&c.length)c.forEach(d=>{r.push(`[${d[0]}="${d[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&xn(i))for(o=i.split(/\s+/),l=0;l<o.length;l++)r.push(`.${o[l]}`);const p=["aria-label","type","name","title","alt"];for(l=0;l<p.length;l++)a=p[l],s=n.getAttribute(a),s&&r.push(`[${a}="${s}"]`);return r.join("")}function Y0(){try{return F0.document.location.href}catch{return""}}class be extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}const H0=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function G0(e){return e==="http"||e==="https"}function Ti(e,t=!1){const{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${a}`}function W0(e){const t=H0.exec(e);if(!t)throw new be(`Invalid Sentry Dsn: ${e}`);const[n,r,i="",o,a="",s]=t.slice(1);let l="",c=s;const p=c.split("/");if(p.length>1&&(l=p.slice(0,-1).join("/"),c=p.pop()),c){const d=c.match(/^\d+/);d&&(c=d[0])}return Uf({host:o,pass:i,path:l,projectId:c,port:a,protocol:n,publicKey:r})}function Uf(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function V0(e){if(!(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__))return;const{port:t,projectId:n,protocol:r}=e;if(["protocol","publicKey","host","projectId"].forEach(o=>{if(!e[o])throw new be(`Invalid Sentry Dsn: ${o} missing`)}),!n.match(/^\d+$/))throw new be(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!G0(r))throw new be(`Invalid Sentry Dsn: Invalid protocol ${r}`);if(t&&isNaN(parseInt(t,10)))throw new be(`Invalid Sentry Dsn: Invalid port ${t}`);return!0}function Bf(e){const t=typeof e=="string"?W0(e):Uf(e);return V0(t),t}const K0="Sentry Logger ",Xo=["debug","info","warn","error","log","assert","trace"];function Yf(e){if(!("console"in Be))return e();const t=Be.console,n={};Xo.forEach(r=>{const i=t[r]&&t[r].__sentry_original__;r in t&&i&&(n[r]=t[r],t[r]=i)});try{return e()}finally{Object.keys(n).forEach(r=>{t[r]=n[r]})}}function Hf(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1}};return typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?Xo.forEach(n=>{t[n]=(...r)=>{e&&Yf(()=>{Be.console[n](`${K0}[${n}]:`,...r)})}}):Xo.forEach(n=>{t[n]=()=>{}}),t}let j;typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?j=dc("logger",Hf):j=Hf();function $i(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Gf(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const i=e[r];try{n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function q0(e,t,n=!1){return xn(e)?A0(t)?t.test(e):xn(t)?n?e===t:e.includes(t):!1:!1}function Zo(e,t=[],n=!1){return t.some(r=>q0(e,r,n))}function pe(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);if(typeof i=="function")try{Wf(i,r)}catch{}e[t]=i}function fc(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function Wf(e,t){const n=t.prototype||{};e.prototype=t.prototype=n,fc(e,"__sentry_original__",t)}function hc(e){return e.__sentry_original__}function Q0(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function Vf(e){if(lc(e))return{message:e.message,name:e.name,stack:e.stack,...qf(e)};if(cc(e)){const t={type:e.type,target:Kf(e.target),currentTarget:Kf(e.currentTarget),...qf(e)};return typeof CustomEvent<"u"&&lr(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Kf(e){try{return I0(e)?pc(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function qf(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function J0(e,t=40){const n=Object.keys(Vf(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return $i(n[0],t);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:$i(i,t)}return""}function mc(e){return gc(e,new Map)}function gc(e,t){if(sr(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=gc(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(gc(i,t))}),r}return e}const Qf=50,Jf=/\(error: (.*)\)/;function Xf(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const i=[],o=n.split(`
|
|
43
|
-
`);for(let a=r;a<o.length;a++){const s=o[a];if(s.length>1024)continue;const l=Jf.test(s)?s.replace(Jf,"$1"):s;for(const c of t){const p=c(l);if(p){i.push(p);break}}if(i.length>=Qf)break}return Z0(i)}}function X0(e){return Array.isArray(e)?Xf(...e):e}function Z0(e){if(!e.length)return[];const t=e.slice(0,Qf),n=t[t.length-1].function;n&&/sentryWrapped/.test(n)&&t.pop(),t.reverse();const r=t[t.length-1].function;return r&&/captureMessage|captureException/.test(r)&&t.pop(),t.map(i=>({...i,filename:i.filename||t[t.length-1].filename,function:i.function||"?"}))}const yc="<anonymous>";function qt(e){try{return!e||typeof e!="function"?yc:e.name||yc}catch{return yc}}const vc=Ni();function Zf(){if(!("fetch"in vc))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function bc(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function ev(){if(!Zf())return!1;if(bc(vc.fetch))return!0;let e=!1;const t=vc.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=bc(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&
|
|
42
|
+
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}de!==5&&(de=2),l=Ml(l,s),f=a;do{switch(f.tag){case 3:o=l,f.flags|=4096,t&=-t,f.lanes|=t;var C=gf(f,o,t);Rp(f,C);break e;case 1:o=l;var S=f.type,$=f.stateNode;if(!(f.flags&64)&&(typeof S.getDerivedStateFromError=="function"||$!==null&&typeof $.componentDidCatch=="function"&&(ot===null||!ot.has($)))){f.flags|=4096,t&=-t,f.lanes|=t;var O=mf(f,o,t);Rp(f,O);break e}}f=f.return}while(f!==null)}Rf(n)}catch(N){t=N,oe===n&&n!==null&&(oe=n=n.return);continue}break}while(1)}function Tf(){var e=zo.current;return zo.current=Ao,e===null?Ao:e}function Ei(e,t){var n=L;L|=16;var r=Tf();ke===e&&ve===t||ir(e,t);do try{v0();break}catch(i){Nf(e,i)}while(1);if(vl(),L=n,zo.current=r,oe!==null)throw Error(E(261));return ke=null,ve=0,de}function v0(){for(;oe!==null;)$f(oe)}function b0(){for(;oe!==null&&!e0();)$f(oe)}function $f(e){var t=Lf(e.alternate,e,bn);e.memoizedProps=e.pendingProps,t===null?Rf(e):oe=t,Yl.current=null}function Rf(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&2048){if(n=u0(t),n!==null){n.flags&=2047,oe=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(n=c0(n,t,bn),n!==null){oe=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||bn&1073741824||!(n.mode&4)){for(var r=0,i=n.child;i!==null;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}if(t=t.sibling,t!==null){oe=t;return}oe=t=e}while(t!==null);de===0&&(de=5)}function wn(e){var t=qn();return gn(99,w0.bind(null,e,t)),null}function w0(e,t){do Wt();while(xi!==null);if(L&48)throw Error(E(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(E(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var a=e.eventTimes,s=e.expirationTimes;0<o;){var l=31-Lt(o),c=1<<l;i[l]=0,a[l]=-1,s[l]=-1,o&=~c}if(vt!==null&&!(r&24)&&vt.has(e)&&vt.delete(e),e===ke&&(oe=ke=null,ve=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,r!==null){if(i=L,L|=32,Yl.current=null,al=so,a=tp(),nl(a)){if("selectionStart"in a)s={start:a.selectionStart,end:a.selectionEnd};else e:if(s=(s=a.ownerDocument)&&s.defaultView||window,(c=s.getSelection&&s.getSelection())&&c.rangeCount!==0){s=c.anchorNode,o=c.anchorOffset,l=c.focusNode,c=c.focusOffset;try{s.nodeType,l.nodeType}catch{s=null;break e}var p=0,d=-1,f=-1,y=0,v=0,_=a,m=null;t:for(;;){for(var h;_!==s||o!==0&&_.nodeType!==3||(d=p+o),_!==l||c!==0&&_.nodeType!==3||(f=p+c),_.nodeType===3&&(p+=_.nodeValue.length),(h=_.firstChild)!==null;)m=_,_=h;for(;;){if(_===a)break t;if(m===s&&++y===o&&(d=p),m===l&&++v===c&&(f=p),(h=_.nextSibling)!==null)break;_=m,m=_.parentNode}_=h}s=d===-1||f===-1?null:{start:d,end:f}}else s=null;s=s||{start:0,end:0}}else s=null;sl={focusedElem:a,selectionRange:s},so=!1,Si=null,Ho=!1,T=r;do try{x0()}catch(N){if(T===null)throw Error(E(330));Vt(T,N),T=T.nextEffect}while(T!==null);Si=null,T=r;do try{for(a=e;T!==null;){var g=T.flags;if(g&16&&Fr(T.stateNode,""),g&128){var w=T.alternate;if(w!==null){var k=w.ref;k!==null&&(typeof k=="function"?k(null):k.current=null)}}switch(g&1038){case 2:kf(T),T.flags&=-3;break;case 6:kf(T),T.flags&=-3,Bl(T.alternate,T);break;case 1024:T.flags&=-1025;break;case 1028:T.flags&=-1025,Bl(T.alternate,T);break;case 4:Bl(T.alternate,T);break;case 8:s=T,_f(a,s);var C=s.alternate;wf(s),C!==null&&wf(C)}T=T.nextEffect}}catch(N){if(T===null)throw Error(E(330));Vt(T,N),T=T.nextEffect}while(T!==null);if(k=sl,w=tp(),g=k.focusedElem,a=k.selectionRange,w!==g&&g&&g.ownerDocument&&ep(g.ownerDocument.documentElement,g)){for(a!==null&&nl(g)&&(w=a.start,k=a.end,k===void 0&&(k=w),"selectionStart"in g?(g.selectionStart=w,g.selectionEnd=Math.min(k,g.value.length)):(k=(w=g.ownerDocument||document)&&w.defaultView||window,k.getSelection&&(k=k.getSelection(),s=g.textContent.length,C=Math.min(a.start,s),a=a.end===void 0?C:Math.min(a.end,s),!k.extend&&C>a&&(s=a,a=C,C=s),s=Zd(g,C),o=Zd(g,a),s&&o&&(k.rangeCount!==1||k.anchorNode!==s.node||k.anchorOffset!==s.offset||k.focusNode!==o.node||k.focusOffset!==o.offset)&&(w=w.createRange(),w.setStart(s.node,s.offset),k.removeAllRanges(),C>a?(k.addRange(w),k.extend(o.node,o.offset)):(w.setEnd(o.node,o.offset),k.addRange(w)))))),w=[],k=g;k=k.parentNode;)k.nodeType===1&&w.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<w.length;g++)k=w[g],k.element.scrollLeft=k.left,k.element.scrollTop=k.top}so=!!al,sl=al=null,e.current=n,T=r;do try{for(g=e;T!==null;){var S=T.flags;if(S&36&&h0(g,T.alternate,T),S&128){w=void 0;var $=T.ref;if($!==null){var O=T.stateNode;switch(T.tag){case 5:w=O;break;default:w=O}typeof $=="function"?$(w):$.current=w}}T=T.nextEffect}}catch(N){if(T===null)throw Error(E(330));Vt(T,N),T=T.nextEffect}while(T!==null);T=null,n0(),L=i}else e.current=n;if(Yt)Yt=!1,xi=e,ki=t;else for(T=r;T!==null;)t=T.nextEffect,T.nextEffect=null,T.flags&8&&(S=T,S.sibling=null,S.stateNode=null),T=t;if(r=e.pendingLanes,r===0&&(ot=null),r===1?e===Xl?_i++:(_i=0,Xl=e):_i=0,n=n.stateNode,hn&&typeof hn.onCommitFiberRoot=="function")try{hn.onCommitFiberRoot(pl,n,void 0,(n.current.flags&64)===64)}catch{}if(Fe(e,me()),Uo)throw Uo=!1,e=ql,ql=null,e;return L&8||tt(),null}function x0(){for(;T!==null;){var e=T.alternate;Ho||Si===null||(T.flags&8?xd(T,Si)&&(Ho=!0):T.tag===13&&g0(e,T)&&xd(T,Si)&&(Ho=!0));var t=T.flags;t&256&&f0(e,T),!(t&512)||Yt||(Yt=!0,si(97,function(){return Wt(),null})),T=T.nextEffect}}function Wt(){if(ki!==90){var e=97<ki?97:ki;return ki=90,gn(e,_0)}return!1}function k0(e,t){Ql.push(t,e),Yt||(Yt=!0,si(97,function(){return Wt(),null}))}function Of(e,t){Jl.push(t,e),Yt||(Yt=!0,si(97,function(){return Wt(),null}))}function _0(){if(xi===null)return!1;var e=xi;if(xi=null,L&48)throw Error(E(331));var t=L;L|=32;var n=Jl;Jl=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],a=i.destroy;if(i.destroy=void 0,typeof a=="function")try{a()}catch(l){if(o===null)throw Error(E(330));Vt(o,l)}}for(n=Ql,Ql=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var s=i.create;i.destroy=s()}catch(l){if(o===null)throw Error(E(330));Vt(o,l)}}for(s=e.current.firstEffect;s!==null;)e=s.nextEffect,s.nextEffect=null,s.flags&8&&(s.sibling=null,s.stateNode=null),s=e;return L=t,tt(),!0}function Df(e,t,n){t=Ml(n,t),t=gf(e,t,1),Ut(e,t),t=Oe(),e=Go(e,1),e!==null&&(ao(e,1,t),Fe(e,t))}function Vt(e,t){if(e.tag===3)Df(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){Df(n,e,t);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ot===null||!ot.has(r))){e=Ml(t,e);var i=mf(n,e,1);if(Ut(n,i),i=Oe(),n=Go(n,1),n!==null)ao(n,1,i),Fe(n,i);else if(typeof r.componentDidCatch=="function"&&(ot===null||!ot.has(r)))try{r.componentDidCatch(t,e)}catch{}break}}n=n.return}}function S0(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Oe(),e.pingedLanes|=e.suspendedLanes&n,ke===e&&(ve&n)===n&&(de===4||de===3&&(ve&62914560)===ve&&500>me()-Vl?ir(e,0):Gl|=n),Fe(e,t)}function E0(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(bt===0&&(bt=er),t=zn(62914560&~bt),t===0&&(t=4194304)):t=qn()===99?1:2:t=1),n=Oe(),e=Go(e,t),e!==null&&(ao(e,t,n),Fe(e,n))}var Lf;Lf=function(e,t,n){var r=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Ce.current)Ke=!0;else if(n&r)Ke=!!(e.flags&16384);else{switch(Ke=!1,t.tag){case 3:of(t),El();break;case 5:zp(t);break;case 1:Pe(t.type)&&wo(t);break;case 4:kl(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;Q(_o,i._currentValue),i._currentValue=r;break;case 13:if(t.memoizedState!==null)return n&t.child.childLanes?af(e,t,n):(Q(J,J.current&1),t=yt(e,t,n),t!==null?t.sibling:null);Q(J,J.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&64){if(r)return df(e,t,n);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Q(J,J.current),r)break;return null;case 23:case 24:return t.lanes=0,Dl(e,t,n)}return yt(e,t,n)}else Ke=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=Kn(t,ge.current),Jn(t,n),i=Nl(null,t,r,e,i,n),t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pe(r)){var o=!0;wo(t)}else o=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,wl(t);var a=r.getDerivedStateFromProps;typeof a=="function"&&Co(t,r,a,e),i.updater=Po,t.stateNode=i,i._reactInternals=t,xl(t,r,e,n),t=Il(null,t,r,!0,o,n)}else t.tag=0,Te(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=i._init,i=o(i._payload),t.type=i,o=t.tag=P0(i),e=Ve(i,e),o){case 0:t=Ll(null,t,i,e,n);break e;case 1:t=rf(null,t,i,e,n);break e;case 11:t=Zp(null,t,i,e,n);break e;case 14:t=ef(null,t,i,Ve(i.type,e),r,n);break e}throw Error(E(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ve(r,i),Ll(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ve(r,i),rf(e,t,r,i,n);case 3:if(of(t),r=t.updateQueue,e===null||r===null)throw Error(E(282));if(r=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,$p(e,t),li(t,r,null,n),r=t.memoizedState.element,r===i)El(),t=yt(e,t,n);else{if(i=t.stateNode,(o=i.hydrate)&&(Bt=Hn(t.stateNode.containerInfo.firstChild),mt=t,o=rt=!0),o){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i<e.length;i+=2)o=e[i],o._workInProgressVersionPrimary=e[i+1],Zn.push(o);for(n=Mp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else Te(e,t,r,n),El();t=t.child}return t;case 5:return zp(t),e===null&&Sl(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,ll(r,i)?a=null:o!==null&&ll(r,o)&&(t.flags|=16),nf(e,t),Te(e,t,a,n),t.child;case 6:return e===null&&Sl(t),null;case 13:return af(e,t,n);case 4:return kl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=$o(t,null,r,n):Te(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ve(r,i),Zp(e,t,r,i,n);case 7:return Te(e,t,t.pendingProps,n),t.child;case 8:return Te(e,t,t.pendingProps.children,n),t.child;case 12:return Te(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value;var s=t.type._context;if(Q(_o,s._currentValue),s._currentValue=o,a!==null)if(s=a.value,o=Ae(s,o)?0:(typeof r._calculateChangedBits=="function"?r._calculateChangedBits(s,o):1073741823)|0,o===0){if(a.children===i.children&&!Ce.current){t=yt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){a=s.child;for(var c=l.firstContext;c!==null;){if(c.context===r&&c.observedBits&o){s.tag===1&&(c=Ft(-1,n&-n),c.tag=2,Ut(s,c)),s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),Tp(s.return,n),l.lanes|=n;break}c=c.next}}else a=s.tag===10&&s.type===t.type?null:s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===t){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}Te(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps,r=o.children,Jn(t,n),i=Me(i,o.unstable_observedBits),r=r(i),t.flags|=1,Te(e,t,r,n),t.child;case 14:return i=t.type,o=Ve(i,t.pendingProps),o=Ve(i.type,o),ef(e,t,i,o,r,n);case 15:return tf(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ve(r,i),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Pe(r)?(e=!0,wo(t)):e=!1,Jn(t,n),Ip(t,r,i),xl(t,r,i,n),Il(null,t,r,!0,e,n);case 19:return df(e,t,n);case 23:return Dl(e,t,n);case 24:return Dl(e,t,n)}throw Error(E(156,t.tag))};function C0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Ue(e,t,n,r){return new C0(e,t,n,r)}function tc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function P0(e){if(typeof e=="function")return tc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Vi)return 11;if(e===qi)return 14}return 2}function Kt(e,t){var n=e.alternate;return n===null?(n=Ue(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Vo(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")tc(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Tt:return or(n.children,i,o,t);case Zu:a=8,i|=16;break;case ds:a=8,i|=1;break;case jr:return e=Ue(12,n,t,i|8),e.elementType=jr,e.type=jr,e.lanes=o,e;case Ar:return e=Ue(13,n,t,i),e.type=Ar,e.elementType=Ar,e.lanes=o,e;case Ki:return e=Ue(19,n,t,i),e.elementType=Ki,e.lanes=o,e;case ys:return nc(n,i,o,t);case vs:return e=Ue(24,n,t,i),e.elementType=vs,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ps:a=10;break e;case fs:a=9;break e;case Vi:a=11;break e;case qi:a=14;break e;case hs:a=16,r=null;break e;case gs:a=22;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=Ue(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function or(e,t,n,r){return e=Ue(7,e,r,t),e.lanes=n,e}function nc(e,t,n,r){return e=Ue(23,e,r,t),e.elementType=ys,e.lanes=n,e}function rc(e,t,n){return e=Ue(6,e,null,t),e.lanes=n,e}function ic(e,t,n){return t=Ue(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function N0(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Hs(0),this.expirationTimes=Hs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hs(0),this.mutableSourceEagerHydrationData=null}function T0(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:cn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ko(e,t,n,r){var i=t.current,o=Oe(),a=Ht(i);e:if(n){n=n._reactInternals;t:{if(dn(n)!==n||n.tag!==1)throw Error(E(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(Pe(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(s!==null);throw Error(E(171))}if(n.tag===1){var l=n.type;if(Pe(l)){n=bp(n,l,s);break e}}n=s}else n=Mt;return t.context===null?t.context=n:t.pendingContext=n,t=Ft(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),Ut(i,t),Gt(i,a,o),a}function oc(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function If(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ac(e,t){If(e,t),(e=e.alternate)&&If(e,t)}function $0(){return null}function sc(e,t,n){var r=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new N0(e,t,n!=null&&n.hydrate===!0),t=Ue(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,wl(t),e[Gn]=n.current,lp(e.nodeType===8?e.parentNode:e),r)for(e=0;e<r.length;e++){t=r[e];var i=t._getVersion;i=i(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}sc.prototype.render=function(e){Ko(e,this._internalRoot,null,null)},sc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ko(null,e,null,function(){t[Gn]=null})};function Ci(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function R0(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new sc(e,0,t?{hydrate:!0}:void 0)}function qo(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if(typeof i=="function"){var s=i;i=function(){var c=oc(a);s.call(c)}}Ko(t,a,e,i)}else{if(o=n._reactRootContainer=R0(n,r),a=o._internalRoot,typeof i=="function"){var l=i;i=function(){var c=oc(a);l.call(c)}}Pf(function(){Ko(t,a,e,i)})}return oc(a)}kd=function(e){if(e.tag===13){var t=Oe();Gt(e,4,t),ac(e,4)}},Ms=function(e){if(e.tag===13){var t=Oe();Gt(e,67108864,t),ac(e,67108864)}},_d=function(e){if(e.tag===13){var t=Oe(),n=Ht(e);Gt(e,n,t),ac(e,n)}},Sd=function(e,t){return t()},Rs=function(e,t,n){switch(t){case"input":if(ks(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=vo(r);if(!i)throw Error(E(90));nd(r),ks(r,i)}}}break;case"textarea":sd(e,n);break;case"select":t=n.value,t!=null&&Ln(e,!!n.multiple,t,!1)}},Os=Cf,md=function(e,t,n,r,i){var o=L;L|=4;try{return gn(98,e.bind(null,t,n,r,i))}finally{L=o,L===0&&(nr(),tt())}},Ds=function(){!(L&49)&&(y0(),Wt())},yd=function(e,t){var n=L;L|=2;try{return e(t)}finally{L=n,L===0&&(nr(),tt())}};function jf(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ci(t))throw Error(E(200));return T0(e,t,null,n)}var O0={Events:[ai,Wn,vo,hd,gd,Wt,{current:!1}]},Pi={findFiberByHostInstance:pn,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},D0={bundleType:Pi.bundleType,version:Pi.version,rendererPackageName:Pi.rendererPackageName,rendererConfig:Pi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ln.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=wd(e),e===null?null:e.stateNode},findFiberByHostInstance:Pi.findFiberByHostInstance||$0,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qo.isDisabled&&Qo.supportsFiber)try{pl=Qo.inject(D0),hn=Qo}catch{}}je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O0,je.createPortal=jf,je.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(E(188)):Error(E(268,Object.keys(e)));return e=wd(t),e=e===null?null:e.stateNode,e},je.flushSync=function(e,t){var n=L;if(n&48)return e(t);L|=1;try{if(e)return gn(99,e.bind(null,t))}finally{L=n,tt()}},je.hydrate=function(e,t,n){if(!Ci(t))throw Error(E(200));return qo(null,e,t,!0,n)},je.render=function(e,t,n){if(!Ci(t))throw Error(E(200));return qo(null,e,t,!1,n)},je.unmountComponentAtNode=function(e){if(!Ci(e))throw Error(E(40));return e._reactRootContainer?(Pf(function(){qo(null,null,e,!1,function(){e._reactRootContainer=null,e[Gn]=null})}),!0):!1},je.unstable_batchedUpdates=Cf,je.unstable_createPortal=function(e,t){return jf(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},je.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ci(n))throw Error(E(200));if(e==null||e._reactInternals===void 0)throw Error(E(38));return qo(e,t,n,!1,r)},je.version="17.0.2",function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=je}(Mm);const L0=Ie(Dr),l2="",Af=Object.prototype.toString;function lc(e){switch(Af.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return lr(e,Error)}}function ar(e,t){return Af.call(e)===`[object ${t}]`}function Mf(e){return ar(e,"ErrorEvent")}function zf(e){return ar(e,"DOMError")}function I0(e){return ar(e,"DOMException")}function xn(e){return ar(e,"String")}function Ff(e){return e===null||typeof e!="object"&&typeof e!="function"}function sr(e){return ar(e,"Object")}function cc(e){return typeof Event<"u"&&lr(e,Event)}function j0(e){return typeof Element<"u"&&lr(e,Element)}function A0(e){return ar(e,"RegExp")}function uc(e){return!!(e&&e.then&&typeof e.then=="function")}function M0(e){return sr(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function z0(e){return typeof e=="number"&&e!==e}function lr(e,t){try{return e instanceof t}catch{return!1}}function Jo(e){return e&&e.Math==Math?e:void 0}const Be=typeof globalThis=="object"&&Jo(globalThis)||typeof window=="object"&&Jo(window)||typeof self=="object"&&Jo(self)||typeof global=="object"&&Jo(global)||function(){return this}()||{};function Ni(){return Be}function dc(e,t,n){const r=n||Be,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const F0=Ni(),U0=80;function pc(e,t={}){try{let n=e;const r=5,i=[];let o=0,a=0;const s=" > ",l=s.length;let c;const p=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||U0;for(;n&&o++<r&&(c=B0(n,p),!(c==="html"||o>1&&a+i.length*l+c.length>=d));)i.push(c),a+=c.length,n=n.parentNode;return i.reverse().join(s)}catch{return"<unknown>"}}function B0(e,t){const n=e,r=[];let i,o,a,s,l;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());const c=t&&t.length?t.filter(d=>n.getAttribute(d)).map(d=>[d,n.getAttribute(d)]):null;if(c&&c.length)c.forEach(d=>{r.push(`[${d[0]}="${d[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&xn(i))for(o=i.split(/\s+/),l=0;l<o.length;l++)r.push(`.${o[l]}`);const p=["aria-label","type","name","title","alt"];for(l=0;l<p.length;l++)a=p[l],s=n.getAttribute(a),s&&r.push(`[${a}="${s}"]`);return r.join("")}function Y0(){try{return F0.document.location.href}catch{return""}}class be extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}const H0=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function G0(e){return e==="http"||e==="https"}function Ti(e,t=!1){const{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${a}`}function W0(e){const t=H0.exec(e);if(!t)throw new be(`Invalid Sentry Dsn: ${e}`);const[n,r,i="",o,a="",s]=t.slice(1);let l="",c=s;const p=c.split("/");if(p.length>1&&(l=p.slice(0,-1).join("/"),c=p.pop()),c){const d=c.match(/^\d+/);d&&(c=d[0])}return Uf({host:o,pass:i,path:l,projectId:c,port:a,protocol:n,publicKey:r})}function Uf(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function V0(e){if(!(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__))return;const{port:t,projectId:n,protocol:r}=e;if(["protocol","publicKey","host","projectId"].forEach(o=>{if(!e[o])throw new be(`Invalid Sentry Dsn: ${o} missing`)}),!n.match(/^\d+$/))throw new be(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!G0(r))throw new be(`Invalid Sentry Dsn: Invalid protocol ${r}`);if(t&&isNaN(parseInt(t,10)))throw new be(`Invalid Sentry Dsn: Invalid port ${t}`);return!0}function Bf(e){const t=typeof e=="string"?W0(e):Uf(e);return V0(t),t}const K0="Sentry Logger ",Xo=["debug","info","warn","error","log","assert","trace"];function Yf(e){if(!("console"in Be))return e();const t=Be.console,n={};Xo.forEach(r=>{const i=t[r]&&t[r].__sentry_original__;r in t&&i&&(n[r]=t[r],t[r]=i)});try{return e()}finally{Object.keys(n).forEach(r=>{t[r]=n[r]})}}function Hf(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1}};return typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?Xo.forEach(n=>{t[n]=(...r)=>{e&&Yf(()=>{Be.console[n](`${K0}[${n}]:`,...r)})}}):Xo.forEach(n=>{t[n]=()=>{}}),t}let I;typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?I=dc("logger",Hf):I=Hf();function $i(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Gf(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const i=e[r];try{n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function q0(e,t,n=!1){return xn(e)?A0(t)?t.test(e):xn(t)?n?e===t:e.includes(t):!1:!1}function Zo(e,t=[],n=!1){return t.some(r=>q0(e,r,n))}function pe(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);if(typeof i=="function")try{Wf(i,r)}catch{}e[t]=i}function fc(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function Wf(e,t){const n=t.prototype||{};e.prototype=t.prototype=n,fc(e,"__sentry_original__",t)}function hc(e){return e.__sentry_original__}function Q0(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function Vf(e){if(lc(e))return{message:e.message,name:e.name,stack:e.stack,...qf(e)};if(cc(e)){const t={type:e.type,target:Kf(e.target),currentTarget:Kf(e.currentTarget),...qf(e)};return typeof CustomEvent<"u"&&lr(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Kf(e){try{return j0(e)?pc(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function qf(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function J0(e,t=40){const n=Object.keys(Vf(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return $i(n[0],t);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:$i(i,t)}return""}function gc(e){return mc(e,new Map)}function mc(e,t){if(sr(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=mc(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(mc(i,t))}),r}return e}const Qf=50,Jf=/\(error: (.*)\)/;function Xf(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const i=[],o=n.split(`
|
|
43
|
+
`);for(let a=r;a<o.length;a++){const s=o[a];if(s.length>1024)continue;const l=Jf.test(s)?s.replace(Jf,"$1"):s;for(const c of t){const p=c(l);if(p){i.push(p);break}}if(i.length>=Qf)break}return Z0(i)}}function X0(e){return Array.isArray(e)?Xf(...e):e}function Z0(e){if(!e.length)return[];const t=e.slice(0,Qf),n=t[t.length-1].function;n&&/sentryWrapped/.test(n)&&t.pop(),t.reverse();const r=t[t.length-1].function;return r&&/captureMessage|captureException/.test(r)&&t.pop(),t.map(i=>({...i,filename:i.filename||t[t.length-1].filename,function:i.function||"?"}))}const yc="<anonymous>";function qt(e){try{return!e||typeof e!="function"?yc:e.name||yc}catch{return yc}}const vc=Ni();function Zf(){if(!("fetch"in vc))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function bc(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function ev(){if(!Zf())return!1;if(bc(vc.fetch))return!0;let e=!1;const t=vc.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=bc(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}const ea=Ni();function tv(){const e=ea.chrome,t=e&&e.app&&e.app.runtime,n="history"in ea&&!!ea.history.pushState&&!!ea.history.replaceState;return!t&&n}const V=Ni(),Ri={},eh={};function nv(e){if(!eh[e])switch(eh[e]=!0,e){case"console":rv();break;case"dom":dv();break;case"xhr":av();break;case"fetch":iv();break;case"history":sv();break;case"error":pv();break;case"unhandledrejection":fv();break;default:(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.warn("unknown instrumentation type:",e);return}}function Qt(e,t){Ri[e]=Ri[e]||[],Ri[e].push(t),nv(e)}function qe(e,t){if(!(!e||!Ri[e]))for(const n of Ri[e]||[])try{n(t)}catch(r){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.error(`Error while triggering instrumentation handler.
|
|
44
44
|
Type: ${e}
|
|
45
45
|
Name: ${qt(n)}
|
|
46
|
-
Error:`,r)}}function rv(){"console"in V&&Xo.forEach(function(e){e in V.console&&pe(V.console,e,function(t){return function(...n){qe("console",{args:n,level:e}),t&&t.apply(V.console,n)}})})}function iv(){ev()&&pe(V,"fetch",function(e){return function(...t){const{method:n,url:r}=ov(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return qe("fetch",{...i}),e.apply(V,t).then(o=>(qe("fetch",{...i,endTimestamp:Date.now(),response:o}),o),o=>{throw qe("fetch",{...i,endTimestamp:Date.now(),error:o}),o})}})}function wc(e,t){return!!e&&typeof e=="object"&&!!e[t]}function th(e){return typeof e=="string"?e:e?wc(e,"url")?e.url:e.toString?e.toString():"":""}function ov(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:th(n),method:wc(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:th(t),method:wc(t,"method")?String(t.method).toUpperCase():"GET"}}function av(){if(!("XMLHttpRequest"in V))return;const e=XMLHttpRequest.prototype;pe(e,"open",function(t){return function(...n){const r=n[1],i=this.__sentry_xhr__={method:xn(n[0])?n[0].toUpperCase():n[0],url:n[1],request_headers:{}};xn(r)&&i.method==="POST"&&r.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const o=()=>{const a=this.__sentry_xhr__;if(a&&this.readyState===4){try{a.status_code=this.status}catch{}qe("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?pe(this,"onreadystatechange",function(a){return function(...s){return o(),a.apply(this,s)}}):this.addEventListener("readystatechange",o),pe(this,"setRequestHeader",function(a){return function(...s){const[l,c]=s,p=this.__sentry_xhr__;return p&&(p.request_headers[l]=c),a.apply(this,s)}}),t.apply(this,n)}}),pe(e,"send",function(t){return function(...n){return this.__sentry_xhr__&&n[0]!==void 0&&(this.__sentry_xhr__.body=n[0]),qe("xhr",{args:n,startTimestamp:Date.now(),xhr:this}),t.apply(this,n)}})}let ta;function sv(){if(!tv())return;const e=V.onpopstate;V.onpopstate=function(...n){const r=V.location.href,i=ta;if(ta=r,qe("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const o=ta,a=String(i);ta=a,qe("history",{from:o,to:a})}return n.apply(this,r)}}pe(V.history,"pushState",t),pe(V.history,"replaceState",t)}const lv=1e3;let na,ra;function cv(e,t){if(!e||e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch{}return!1}function uv(e){if(e.type!=="keypress")return!1;try{const t=e.target;if(!t||!t.tagName)return!0;if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)return!1}catch{}return!0}function nh(e,t=!1){return n=>{if(!n||ra===n||uv(n))return;const r=n.type==="keypress"?"input":n.type;na===void 0?(e({event:n,name:r,global:t}),ra=n):cv(ra,n)&&(e({event:n,name:r,global:t}),ra=n),clearTimeout(na),na=V.setTimeout(()=>{na=void 0},lv)}}function dv(){if(!("document"in V))return;const e=qe.bind(null,"dom"),t=nh(e,!0);V.document.addEventListener("click",t,!1),V.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=V[n]&&V[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(pe(r,"addEventListener",function(i){return function(o,a,s){if(o==="click"||o=="keypress")try{const l=this,c=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},p=c[o]=c[o]||{refCount:0};if(!p.handler){const d=nh(e);p.handler=d,i.call(this,o,d,s)}p.refCount++}catch{}return i.call(this,o,a,s)}}),pe(r,"removeEventListener",function(i){return function(o,a,s){if(o==="click"||o=="keypress")try{const l=this,c=l.__sentry_instrumentation_handlers__||{},p=c[o];p&&(p.refCount--,p.refCount<=0&&(i.call(this,o,p.handler,s),p.handler=void 0,delete c[o]),Object.keys(c).length===0&&delete l.__sentry_instrumentation_handlers__)}catch{}return i.call(this,o,a,s)}}))})}let ia=null;function pv(){ia=V.onerror,V.onerror=function(e,t,n,r,i){return qe("error",{column:r,error:i,line:n,msg:e,url:t}),ia&&!ia.__SENTRY_LOADER__?ia.apply(this,arguments):!1},V.onerror.__SENTRY_INSTRUMENTED__=!0}let oa=null;function fv(){oa=V.onunhandledrejection,V.onunhandledrejection=function(e){return qe("unhandledrejection",e),oa&&!oa.__SENTRY_LOADER__?oa.apply(this,arguments):!0},V.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function hv(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let o=0;o<t.length;o++)if(t[o]===i)return!0;return t.push(i),!1}function r(i){if(e)t.delete(i);else for(let o=0;o<t.length;o++)if(t[o]===i){t.splice(o,1);break}}return[n,r]}function cr(){const e=Be,t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");const n=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>Math.random()*16;return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function rh(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Jt(e){const{message:t,event_id:n}=e;if(t)return t;const r=rh(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function xc(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function Oi(e,t){const n=rh(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const o={...i&&i.data,...t.data};n.mechanism.data=o}}function ih(e){if(e&&e.__sentry_captured__)return!0;try{fc(e,"__sentry_captured__",!0)}catch{}return!1}function oh(e){return Array.isArray(e)?e:[e]}function mv(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function gv(){return"npm"}function ah(){return!mv()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function yv(e,t){return e.require(t)}function Xt(e,t=1/0,n=1/0){try{return kc("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function sh(e,t=3,n=100*1024){const r=Xt(e,t);return xv(r)>n?sh(e,t-1,n):r}function kc(e,t,n=1/0,r=1/0,i=hv()){const[o,a]=i;if(t===null||["number","boolean","string"].includes(typeof t)&&!z0(t))return t;const s=vv(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;let l=n;if(typeof t.__sentry_override_normalization_depth__=="number"&&(l=t.__sentry_override_normalization_depth__),l===0)return s.replace("object ","");if(o(t))return"[Circular ~]";const c=t;if(c&&typeof c.toJSON=="function")try{const y=c.toJSON();return kc("",y,l-1,r,i)}catch{}const p=Array.isArray(t)?[]:{};let d=0;const f=Vf(t);for(const y in f){if(!Object.prototype.hasOwnProperty.call(f,y))continue;if(d>=r){p[y]="[MaxProperties ~]";break}const v=f[y];p[y]=kc(y,v,l-1,r,i),d++}return a(t),p}function vv(e,t){try{return e==="domain"&&t&&typeof t=="object"&&t._events?"[Domain]":e==="domainEmitter"?"[DomainEmitter]":typeof global<"u"&&t===global?"[Global]":typeof window<"u"&&t===window?"[Window]":typeof document<"u"&&t===document?"[Document]":M0(t)?"[SyntheticEvent]":typeof t=="number"&&t!==t?"[NaN]":t===void 0?"[undefined]":typeof t=="function"?`[Function: ${qt(t)}]`:typeof t=="symbol"?`[${String(t)}]`:typeof t=="bigint"?`[BigInt: ${String(t)}]`:`[object ${bv(t)}]`}catch(n){return`**non-serializable** (${n})`}}function bv(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function wv(e){return~-encodeURI(e).split(/%..|./).length}function xv(e){return wv(JSON.stringify(e))}var wt;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(wt||(wt={}));function kn(e){return new _e(t=>{t(e)})}function aa(e){return new _e((t,n)=>{n(e)})}class _e{__init(){this._state=wt.PENDING}__init2(){this._handlers=[]}constructor(t){_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);try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new _e((r,i)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(a){i(a)}},o=>{if(!n)i(o);else try{r(n(o))}catch(a){i(a)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new _e((n,r)=>{let i,o;return this.then(a=>{o=!1,i=a,t&&t()},a=>{o=!0,i=a,t&&t()}).then(()=>{if(o){r(i);return}n(i)})})}__init3(){this._resolve=t=>{this._setResult(wt.RESOLVED,t)}}__init4(){this._reject=t=>{this._setResult(wt.REJECTED,t)}}__init5(){this._setResult=(t,n)=>{if(this._state===wt.PENDING){if(uc(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init6(){this._executeHandlers=()=>{if(this._state===wt.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===wt.RESOLVED&&n[1](this._value),this._state===wt.REJECTED&&n[2](this._value),n[0]=!0)})}}}function kv(e){const t=[];function n(){return e===void 0||t.length<e}function r(a){return t.splice(t.indexOf(a),1)[0]}function i(a){if(!n())return aa(new be("Not adding Promise because buffer limit was reached."));const s=a();return t.indexOf(s)===-1&&t.push(s),s.then(()=>r(s)).then(null,()=>r(s).then(null,()=>{})),s}function o(a){return new _e((s,l)=>{let c=t.length;if(!c)return s(!0);const p=setTimeout(()=>{a&&a>0&&s(!1)},a);t.forEach(d=>{kn(d).then(()=>{--c||(clearTimeout(p),s(!0))},l)})})}return{$:t,add:i,drain:o}}function _c(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const _v=["fatal","error","warning","log","info","debug"];function Sv(e){return e==="warn"?"warning":_v.includes(e)?e:"log"}const lh=Ni(),Sc={nowSeconds:()=>Date.now()/1e3};function Ev(){const{performance:e}=lh;if(!e||!e.now)return;const t=Date.now()-e.now();return{now:()=>e.now(),timeOrigin:t}}function Cv(){try{return yv(module,"perf_hooks").performance}catch{return}}const Ec=ah()?Cv():Ev(),ch=Ec===void 0?Sc:{nowSeconds:()=>(Ec.timeOrigin+Ec.now())/1e3},sa=Sc.nowSeconds.bind(Sc),uh=ch.nowSeconds.bind(ch);(()=>{const{performance:e}=lh;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=i<t,a=e.timing&&e.timing.navigationStart,l=typeof a=="number"?Math.abs(a+n-r):t,c=l<t;return o||c?i<=l?e.timeOrigin:a:r})();function Di(e,t=[]){return[e,t]}function Pv(e,t){const[n,r]=e;return[n,[...r,t]]}function dh(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function Cc(e,t){return(t||new TextEncoder).encode(e)}function Nv(e,t){const[n,r]=e;let i=JSON.stringify(n);function o(a){typeof i=="string"?i=typeof a=="string"?i+a:[Cc(i,t),a]:i.push(typeof a=="string"?Cc(a,t):a)}for(const a of r){const[s,l]=a;if(o(`
|
|
46
|
+
Error:`,r)}}function rv(){"console"in V&&Xo.forEach(function(e){e in V.console&&pe(V.console,e,function(t){return function(...n){qe("console",{args:n,level:e}),t&&t.apply(V.console,n)}})})}function iv(){ev()&&pe(V,"fetch",function(e){return function(...t){const{method:n,url:r}=ov(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return qe("fetch",{...i}),e.apply(V,t).then(o=>(qe("fetch",{...i,endTimestamp:Date.now(),response:o}),o),o=>{throw qe("fetch",{...i,endTimestamp:Date.now(),error:o}),o})}})}function wc(e,t){return!!e&&typeof e=="object"&&!!e[t]}function th(e){return typeof e=="string"?e:e?wc(e,"url")?e.url:e.toString?e.toString():"":""}function ov(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:th(n),method:wc(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:th(t),method:wc(t,"method")?String(t.method).toUpperCase():"GET"}}function av(){if(!("XMLHttpRequest"in V))return;const e=XMLHttpRequest.prototype;pe(e,"open",function(t){return function(...n){const r=n[1],i=this.__sentry_xhr__={method:xn(n[0])?n[0].toUpperCase():n[0],url:n[1],request_headers:{}};xn(r)&&i.method==="POST"&&r.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const o=()=>{const a=this.__sentry_xhr__;if(a&&this.readyState===4){try{a.status_code=this.status}catch{}qe("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?pe(this,"onreadystatechange",function(a){return function(...s){return o(),a.apply(this,s)}}):this.addEventListener("readystatechange",o),pe(this,"setRequestHeader",function(a){return function(...s){const[l,c]=s,p=this.__sentry_xhr__;return p&&(p.request_headers[l]=c),a.apply(this,s)}}),t.apply(this,n)}}),pe(e,"send",function(t){return function(...n){return this.__sentry_xhr__&&n[0]!==void 0&&(this.__sentry_xhr__.body=n[0]),qe("xhr",{args:n,startTimestamp:Date.now(),xhr:this}),t.apply(this,n)}})}let ta;function sv(){if(!tv())return;const e=V.onpopstate;V.onpopstate=function(...n){const r=V.location.href,i=ta;if(ta=r,qe("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const o=ta,a=String(i);ta=a,qe("history",{from:o,to:a})}return n.apply(this,r)}}pe(V.history,"pushState",t),pe(V.history,"replaceState",t)}const lv=1e3;let na,ra;function cv(e,t){if(!e||e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch{}return!1}function uv(e){if(e.type!=="keypress")return!1;try{const t=e.target;if(!t||!t.tagName)return!0;if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)return!1}catch{}return!0}function nh(e,t=!1){return n=>{if(!n||ra===n||uv(n))return;const r=n.type==="keypress"?"input":n.type;na===void 0?(e({event:n,name:r,global:t}),ra=n):cv(ra,n)&&(e({event:n,name:r,global:t}),ra=n),clearTimeout(na),na=V.setTimeout(()=>{na=void 0},lv)}}function dv(){if(!("document"in V))return;const e=qe.bind(null,"dom"),t=nh(e,!0);V.document.addEventListener("click",t,!1),V.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=V[n]&&V[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(pe(r,"addEventListener",function(i){return function(o,a,s){if(o==="click"||o=="keypress")try{const l=this,c=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},p=c[o]=c[o]||{refCount:0};if(!p.handler){const d=nh(e);p.handler=d,i.call(this,o,d,s)}p.refCount++}catch{}return i.call(this,o,a,s)}}),pe(r,"removeEventListener",function(i){return function(o,a,s){if(o==="click"||o=="keypress")try{const l=this,c=l.__sentry_instrumentation_handlers__||{},p=c[o];p&&(p.refCount--,p.refCount<=0&&(i.call(this,o,p.handler,s),p.handler=void 0,delete c[o]),Object.keys(c).length===0&&delete l.__sentry_instrumentation_handlers__)}catch{}return i.call(this,o,a,s)}}))})}let ia=null;function pv(){ia=V.onerror,V.onerror=function(e,t,n,r,i){return qe("error",{column:r,error:i,line:n,msg:e,url:t}),ia&&!ia.__SENTRY_LOADER__?ia.apply(this,arguments):!1},V.onerror.__SENTRY_INSTRUMENTED__=!0}let oa=null;function fv(){oa=V.onunhandledrejection,V.onunhandledrejection=function(e){return qe("unhandledrejection",e),oa&&!oa.__SENTRY_LOADER__?oa.apply(this,arguments):!0},V.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function hv(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let o=0;o<t.length;o++)if(t[o]===i)return!0;return t.push(i),!1}function r(i){if(e)t.delete(i);else for(let o=0;o<t.length;o++)if(t[o]===i){t.splice(o,1);break}}return[n,r]}function cr(){const e=Be,t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");const n=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>Math.random()*16;return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function rh(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Jt(e){const{message:t,event_id:n}=e;if(t)return t;const r=rh(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function xc(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function Oi(e,t){const n=rh(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const o={...i&&i.data,...t.data};n.mechanism.data=o}}function ih(e){if(e&&e.__sentry_captured__)return!0;try{fc(e,"__sentry_captured__",!0)}catch{}return!1}function oh(e){return Array.isArray(e)?e:[e]}function gv(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function mv(){return"npm"}function ah(){return!gv()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function yv(e,t){return e.require(t)}function Xt(e,t=1/0,n=1/0){try{return kc("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function sh(e,t=3,n=100*1024){const r=Xt(e,t);return xv(r)>n?sh(e,t-1,n):r}function kc(e,t,n=1/0,r=1/0,i=hv()){const[o,a]=i;if(t===null||["number","boolean","string"].includes(typeof t)&&!z0(t))return t;const s=vv(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;let l=n;if(typeof t.__sentry_override_normalization_depth__=="number"&&(l=t.__sentry_override_normalization_depth__),l===0)return s.replace("object ","");if(o(t))return"[Circular ~]";const c=t;if(c&&typeof c.toJSON=="function")try{const y=c.toJSON();return kc("",y,l-1,r,i)}catch{}const p=Array.isArray(t)?[]:{};let d=0;const f=Vf(t);for(const y in f){if(!Object.prototype.hasOwnProperty.call(f,y))continue;if(d>=r){p[y]="[MaxProperties ~]";break}const v=f[y];p[y]=kc(y,v,l-1,r,i),d++}return a(t),p}function vv(e,t){try{return e==="domain"&&t&&typeof t=="object"&&t._events?"[Domain]":e==="domainEmitter"?"[DomainEmitter]":typeof global<"u"&&t===global?"[Global]":typeof window<"u"&&t===window?"[Window]":typeof document<"u"&&t===document?"[Document]":M0(t)?"[SyntheticEvent]":typeof t=="number"&&t!==t?"[NaN]":t===void 0?"[undefined]":typeof t=="function"?`[Function: ${qt(t)}]`:typeof t=="symbol"?`[${String(t)}]`:typeof t=="bigint"?`[BigInt: ${String(t)}]`:`[object ${bv(t)}]`}catch(n){return`**non-serializable** (${n})`}}function bv(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function wv(e){return~-encodeURI(e).split(/%..|./).length}function xv(e){return wv(JSON.stringify(e))}var wt;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(wt||(wt={}));function kn(e){return new _e(t=>{t(e)})}function aa(e){return new _e((t,n)=>{n(e)})}class _e{__init(){this._state=wt.PENDING}__init2(){this._handlers=[]}constructor(t){_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);try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new _e((r,i)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(a){i(a)}},o=>{if(!n)i(o);else try{r(n(o))}catch(a){i(a)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new _e((n,r)=>{let i,o;return this.then(a=>{o=!1,i=a,t&&t()},a=>{o=!0,i=a,t&&t()}).then(()=>{if(o){r(i);return}n(i)})})}__init3(){this._resolve=t=>{this._setResult(wt.RESOLVED,t)}}__init4(){this._reject=t=>{this._setResult(wt.REJECTED,t)}}__init5(){this._setResult=(t,n)=>{if(this._state===wt.PENDING){if(uc(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init6(){this._executeHandlers=()=>{if(this._state===wt.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===wt.RESOLVED&&n[1](this._value),this._state===wt.REJECTED&&n[2](this._value),n[0]=!0)})}}}function kv(e){const t=[];function n(){return e===void 0||t.length<e}function r(a){return t.splice(t.indexOf(a),1)[0]}function i(a){if(!n())return aa(new be("Not adding Promise because buffer limit was reached."));const s=a();return t.indexOf(s)===-1&&t.push(s),s.then(()=>r(s)).then(null,()=>r(s).then(null,()=>{})),s}function o(a){return new _e((s,l)=>{let c=t.length;if(!c)return s(!0);const p=setTimeout(()=>{a&&a>0&&s(!1)},a);t.forEach(d=>{kn(d).then(()=>{--c||(clearTimeout(p),s(!0))},l)})})}return{$:t,add:i,drain:o}}function _c(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const _v=["fatal","error","warning","log","info","debug"];function Sv(e){return e==="warn"?"warning":_v.includes(e)?e:"log"}const lh=Ni(),Sc={nowSeconds:()=>Date.now()/1e3};function Ev(){const{performance:e}=lh;if(!e||!e.now)return;const t=Date.now()-e.now();return{now:()=>e.now(),timeOrigin:t}}function Cv(){try{return yv(module,"perf_hooks").performance}catch{return}}const Ec=ah()?Cv():Ev(),ch=Ec===void 0?Sc:{nowSeconds:()=>(Ec.timeOrigin+Ec.now())/1e3},sa=Sc.nowSeconds.bind(Sc),uh=ch.nowSeconds.bind(ch);(()=>{const{performance:e}=lh;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=i<t,a=e.timing&&e.timing.navigationStart,l=typeof a=="number"?Math.abs(a+n-r):t,c=l<t;return o||c?i<=l?e.timeOrigin:a:r})();function Di(e,t=[]){return[e,t]}function Pv(e,t){const[n,r]=e;return[n,[...r,t]]}function dh(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function Cc(e,t){return(t||new TextEncoder).encode(e)}function Nv(e,t){const[n,r]=e;let i=JSON.stringify(n);function o(a){typeof i=="string"?i=typeof a=="string"?i+a:[Cc(i,t),a]:i.push(typeof a=="string"?Cc(a,t):a)}for(const a of r){const[s,l]=a;if(o(`
|
|
47
47
|
${JSON.stringify(s)}
|
|
48
|
-
`),typeof l=="string"||l instanceof Uint8Array)o(l);else{let c;try{c=JSON.stringify(l)}catch{c=JSON.stringify(Xt(l))}o(c)}}return typeof i=="string"?i:Tv(i)}function Tv(e){const t=e.reduce((i,o)=>i+o.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function $v(e,t){const n=typeof e.data=="string"?Cc(e.data,t):e.data;return[mc({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const Rv={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay"};function ph(e){return Rv[e]}function fh(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Ov(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&{dsn:Ti(r)},...e.type==="transaction"&&i&&{trace:mc({...i})}}}function Dv(e,t,n){const r=[{type:"client_report"},{timestamp:n||sa(),discarded_events:e}];return Di(t?{dsn:t}:{},[r])}const Lv=60*1e3;function jv(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Lv:r-t}function Iv(e,t){return e[t]||e.all||0}function Av(e,t,n=Date.now()){return Iv(e,t)>n}function Mv(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},o=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(o)for(const s of o.trim().split(",")){const[l,c]=s.split(":",2),p=parseInt(l,10),d=(isNaN(p)?60:p)*1e3;if(!c)i.all=r+d;else for(const f of c.split(";"))i[f]=r+d}else a?i.all=r+jv(a,r):t===429&&(i.all=r+60*1e3);return i}const hh="production";function zv(e){const t=uh(),n={sid:cr(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Uv(n)};return e&&ur(n,e),n}function ur(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||uh(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:cr()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n: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),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Fv(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),ur(e,n)}function Uv(e){return mc({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const Bv=100;class Zt{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(t){const n=new Zt;return t&&(n._breadcrumbs=[...t._breadcrumbs],n._tags={...t._tags},n._extra={...t._extra},n._contexts={...t._contexts},n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=[...t._eventProcessors],n._requestSession=t._requestSession,n._attachments=[...t._attachments],n._sdkProcessingMetadata={...t._sdkProcessingMetadata}),n}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&ur(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if(typeof t=="function"){const n=t(this);return n instanceof Zt?n:this}return t instanceof Zt?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):sr(t)&&(t=t,this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(t,n){const r=typeof n=="number"?n:Bv;if(r<=0)return this;const i={timestamp:sa(),...t};return this._breadcrumbs=[...this._breadcrumbs,i].slice(-r),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(t,n={}){if(this._extra&&Object.keys(this._extra).length&&(t.extra={...this._extra,...t.extra}),this._tags&&Object.keys(this._tags).length&&(t.tags={...this._tags,...t.tags}),this._user&&Object.keys(this._user).length&&(t.user={...this._user,...t.user}),this._contexts&&Object.keys(this._contexts).length&&(t.contexts={...this._contexts,...t.contexts}),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts={trace:this._span.getTraceContext(),...t.contexts};const r=this._span.transaction&&this._span.transaction.name;r&&(t.tags={transaction:r,...t.tags})}return this._applyFingerprint(t),t.breadcrumbs=[...t.breadcrumbs||[],...this._breadcrumbs],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...mh(),...this._eventProcessors],t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}_notifyEventProcessors(t,n,r,i=0){return new _e((o,a)=>{const s=t[i];if(n===null||typeof s!="function")o(n);else{const l=s({...n},r);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&s.id&&l===null&&j.log(`Event processor "${s.id}" dropped event`),uc(l)?l.then(c=>this._notifyEventProcessors(t,c,r,i+1).then(o)).then(null,a):this._notifyEventProcessors(t,l,r,i+1).then(o).then(null,a)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}_applyFingerprint(t){t.fingerprint=t.fingerprint?oh(t.fingerprint):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function mh(){return dc("globalEventProcessors",()=>[])}function Pc(e){mh().push(e)}const Nc=4,Yv=100;class Tc{constructor(t,n=new Zt,r=Nc){this._version=r,this._stack=[{scope:n}],t&&this.bindClient(t)}isOlderThan(t){return this._version<t}bindClient(t){const n=this.getStackTop();n.client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=Zt.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const n=this.pushScope();try{t(n)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:cr(),i=new Error("Sentry syntheticException");return this._withClient((o,a)=>{o.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},a)}),r}captureMessage(t,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:cr(),o=new Error(t);return this._withClient((a,s)=>{a.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:i},s)}),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:cr();return t.type||(this._lastEventId=r),this._withClient((i,o)=>{i.captureEvent(t,{...n,event_id:r},o)}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:a=Yv}=i.getOptions&&i.getOptions()||{};if(a<=0)return;const l={timestamp:sa(),...t},c=o?Yf(()=>o(l,n)):l;c!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",c,n),r.addBreadcrumb(c,a))}setUser(t){this.getScope().setUser(t)}setTags(t){this.getScope().setTags(t)}setExtras(t){this.getScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=gh(this);try{t(this)}finally{gh(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){return this._callExtensionMethod("startTransaction",t,n)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&Fv(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:o=hh}=r&&r.getOptions()||{},{userAgent:a}=Be.navigator||{},s=zv({release:i,environment:o,user:n.getUser(),...a&&{userAgent:a},...t}),l=n.getSession&&n.getSession();return l&&l.status==="ok"&&ur(l,{status:"exited"}),this.endSession(),n.setSession(s),s}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_withClient(t){const{scope:n,client:r}=this.getStackTop();r&&t(r,n)}_callExtensionMethod(t,...n){const i=la().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,n);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function la(){return Be.__SENTRY__=Be.__SENTRY__||{extensions:{},hub:void 0},Be}function gh(e){const t=la(),n=en(t);return $c(t,e),n}function ne(){const e=la();return(!yh(e)||en(e).isOlderThan(Nc))&&$c(e,new Tc),ah()?Hv(e):en(e)}function Hv(e){try{const t=la().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return en(e);if(!yh(n)||en(n).isOlderThan(Nc)){const r=en(e).getStackTop();$c(n,new Tc(r.client,Zt.clone(r.scope)))}return en(n)}catch{return en(e)}}function yh(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function en(e){return dc("hub",()=>new Tc,e)}function $c(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function vh(e,t){return ne().captureException(e,{captureContext:t})}function bh(e){ne().withScope(e)}const Gv="7";function wh(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Wv(e){return`${wh(e)}${e.projectId}/envelope/`}function Vv(e,t){return Q0({sentry_key:e.publicKey,sentry_version:Gv,...t&&{sentry_client:`${t.name}/${t.version}`}})}function Kv(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${Wv(e)}?${Vv(e,r)}`}function qv(e,t){const n=Bf(e),r=`${wh(n)}embed/error-page/`;let i=`dsn=${Ti(n)}`;for(const o in t)if(o!=="dsn")if(o==="user"){const a=t.user;if(!a)continue;a.name&&(i+=`&name=${encodeURIComponent(a.name)}`),a.email&&(i+=`&email=${encodeURIComponent(a.email)}`)}else i+=`&${encodeURIComponent(o)}=${encodeURIComponent(t[o])}`;return`${r}?${i}`}function Qv(e,t){return 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}function Jv(e,t,n,r){const i=fh(n),o={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&{dsn:Ti(t)}},a="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e];return Di(o,[a])}function Xv(e,t,n,r){const i=fh(n),o=e.type&&e.type!=="replay_event"?e.type:"event";Qv(e,n&&n.sdk);const a=Ov(e,i,r,t);return delete e.sdkProcessingMetadata,Di(a,[[{type:o},e]])}const xh=[];function Zv(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function e1(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(a=>{a.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=oh(n(t)):r=t;const i=Zv(r),o=n1(i,a=>a.name==="Debug");if(o!==-1){const[a]=i.splice(o,1);i.push(a)}return i}function t1(e){const t={};return e.forEach(n=>{n&&kh(n,t)}),t}function kh(e,t){t[e.name]=e,xh.indexOf(e.name)===-1&&(e.setupOnce(Pc,ne),xh.push(e.name),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.log(`Integration installed: ${e.name}`))}function n1(e,t){for(let n=0;n<e.length;n++)if(t(e[n])===!0)return n;return-1}function r1(e,t,n,r){const{normalizeDepth:i=3,normalizeMaxBreadth:o=1e3}=e,a={...t,event_id:t.event_id||n.event_id||cr(),timestamp:t.timestamp||sa()},s=n.integrations||e.integrations.map(p=>p.name);i1(a,e),a1(a,s),o1(a,e.stackParser);let l=r;n.captureContext&&(l=Zt.clone(l).update(n.captureContext));let c=kn(a);if(l){if(l.getAttachments){const p=[...n.attachments||[],...l.getAttachments()];p.length&&(n.attachments=p)}c=l.applyToEvent(a,n)}return c.then(p=>typeof i=="number"&&i>0?s1(p,i,o):p)}function i1(e,t){const{environment:n,release:r,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:hh),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=$i(e.message,o));const a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=$i(a.value,o));const s=e.request;s&&s.url&&(s.url=$i(s.url,o))}function o1(e,t){const n=Be._sentryDebugIds;if(!n)return;const r=Object.keys(n).reduce((a,s)=>{const l=t(s);for(let c=l.length-1;c>=0;c--){const p=l[c];if(p.filename){a[p.filename]=n[s];break}}return a},{}),i=new Set;try{e.exception.values.forEach(a=>{a.stacktrace.frames.forEach(s=>{s.filename&&i.add(s.filename)})})}catch{}e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const o=e.debug_meta.images;i.forEach(a=>{r[a]&&o.push({type:"sourcemap",code_file:a,debug_id:r[a]})})}function a1(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function s1(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:Xt(i.data,t,n)}}))},...e.user&&{user:Xt(e.user,t,n)},...e.contexts&&{contexts:Xt(e.contexts,t,n)},...e.extra&&{extra:Xt(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Xt(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>(i.data&&(i.data=Xt(i.data,t,n)),i))),r}const _h="Not capturing exception because it's already been captured.";class _n{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}__init5(){this._hooks={}}constructor(t){if(_n.prototype.__init.call(this),_n.prototype.__init2.call(this),_n.prototype.__init3.call(this),_n.prototype.__init4.call(this),_n.prototype.__init5.call(this),this._options=t,t.dsn){this._dsn=Bf(t.dsn);const n=Kv(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}else(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn("No DSN provided, client will not do anything.")}captureException(t,n,r){if(ih(t)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.log(_h);return}let i=n&&n.event_id;return this._process(this.eventFromException(t,n).then(o=>this._captureEvent(o,n,r)).then(o=>{i=o})),i}captureMessage(t,n,r,i){let o=r&&r.event_id;const a=Ff(t)?this.eventFromMessage(String(t),n,r):this.eventFromException(t,r);return this._process(a.then(s=>this._captureEvent(s,r,i)).then(s=>{o=s})),o}captureEvent(t,n,r){if(n&&n.originalException&&ih(n.originalException)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.log(_h);return}let i=n&&n.event_id;return this._process(this._captureEvent(t,n,r).then(o=>{i=o})),i}captureSession(t){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn("SDK not enabled, will not capture session.");return}typeof t.release!="string"?(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),ur(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?this._isClientDoneProcessing(t).then(r=>n.flush(t).then(i=>r&&i)):kn(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,n))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=t1(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){kh(t,this._integrations)}sendEvent(t,n={}){if(this._dsn){let r=Xv(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=Pv(r,$v(o,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(r);i&&i.then(o=>this.emit("afterSendEvent",t,o),null)}}sendSession(t){if(this._dsn){const n=Jv(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const i=`${t}:${n}`;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.log(`Adding outcome: "${i}"`),this._outcomes[i]=this._outcomes[i]+1||1}}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_updateSessionFromEvent(t,n){let r=!1,i=!1;const o=n.exception&&n.exception.values;if(o){i=!0;for(const l of o){const c=l.mechanism;if(c&&c.handled===!1){r=!0;break}}}const a=t.status==="ok";(a&&t.errors===0||a&&r)&&(ur(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new _e(n=>{let r=0;const i=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=i,t&&r>=t&&(clearInterval(o),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._dsn!==void 0}_prepareEvent(t,n,r){const i=this.getOptions(),o=Object.keys(this._integrations);return!n.integrations&&o.length>0&&(n.integrations=o),r1(i,t,n,r)}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(i=>i.event_id,i=>{if(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__){const o=i;o.logLevel==="log"?j.log(o.message):j.warn(o)}})}_processEvent(t,n,r){const i=this.getOptions(),{sampleRate:o}=i;if(!this._isEnabled())return aa(new be("SDK not enabled, will not capture event.","log"));const a=Eh(t),s=Sh(t),l=t.type||"error",c=`before send for type \`${l}\``;if(s&&typeof o=="number"&&Math.random()>o)return this.recordDroppedEvent("sample_rate","error",t),aa(new be(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const p=l==="replay_event"?"replay":l;return this._prepareEvent(t,n,r).then(d=>{if(d===null)throw this.recordDroppedEvent("event_processor",p,t),new be("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return d;const y=c1(i,d,n);return l1(y,c)}).then(d=>{if(d===null)throw this.recordDroppedEvent("before_send",p,t),new be(`${c} returned \`null\`, will not send event.`,"log");const f=r&&r.getSession();!a&&f&&this._updateSessionFromEvent(f,d);const y=d.transaction_info;if(a&&y&&d.transaction!==t.transaction){const v="custom";d.transaction_info={...y,source:v}}return this.sendEvent(d,n),d}).then(null,d=>{throw d instanceof be?d:(this.captureException(d,{data:{__sentry__:!0},originalException:d}),new be(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
49
|
-
Reason: ${d}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this._transport&&this._dsn)return this.emit("beforeEnvelope",t),this._transport.send(t).then(null,n=>{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&
|
|
50
|
-
Event: ${Jt(e)}`),!0):
|
|
51
|
-
Event: ${Jt(e)}`),!0):
|
|
52
|
-
Event: ${Jt(e)}`),!0):y1(e,t.denyUrls)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&
|
|
48
|
+
`),typeof l=="string"||l instanceof Uint8Array)o(l);else{let c;try{c=JSON.stringify(l)}catch{c=JSON.stringify(Xt(l))}o(c)}}return typeof i=="string"?i:Tv(i)}function Tv(e){const t=e.reduce((i,o)=>i+o.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function $v(e,t){const n=typeof e.data=="string"?Cc(e.data,t):e.data;return[gc({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const Rv={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay"};function ph(e){return Rv[e]}function fh(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Ov(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&{dsn:Ti(r)},...e.type==="transaction"&&i&&{trace:gc({...i})}}}function Dv(e,t,n){const r=[{type:"client_report"},{timestamp:n||sa(),discarded_events:e}];return Di(t?{dsn:t}:{},[r])}const Lv=60*1e3;function Iv(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Lv:r-t}function jv(e,t){return e[t]||e.all||0}function Av(e,t,n=Date.now()){return jv(e,t)>n}function Mv(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},o=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(o)for(const s of o.trim().split(",")){const[l,c]=s.split(":",2),p=parseInt(l,10),d=(isNaN(p)?60:p)*1e3;if(!c)i.all=r+d;else for(const f of c.split(";"))i[f]=r+d}else a?i.all=r+Iv(a,r):t===429&&(i.all=r+60*1e3);return i}const hh="production";function zv(e){const t=uh(),n={sid:cr(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Uv(n)};return e&&ur(n,e),n}function ur(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||uh(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:cr()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n: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),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Fv(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),ur(e,n)}function Uv(e){return gc({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const Bv=100;class Zt{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(t){const n=new Zt;return t&&(n._breadcrumbs=[...t._breadcrumbs],n._tags={...t._tags},n._extra={...t._extra},n._contexts={...t._contexts},n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=[...t._eventProcessors],n._requestSession=t._requestSession,n._attachments=[...t._attachments],n._sdkProcessingMetadata={...t._sdkProcessingMetadata}),n}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&ur(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if(typeof t=="function"){const n=t(this);return n instanceof Zt?n:this}return t instanceof Zt?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):sr(t)&&(t=t,this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(t,n){const r=typeof n=="number"?n:Bv;if(r<=0)return this;const i={timestamp:sa(),...t};return this._breadcrumbs=[...this._breadcrumbs,i].slice(-r),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(t,n={}){if(this._extra&&Object.keys(this._extra).length&&(t.extra={...this._extra,...t.extra}),this._tags&&Object.keys(this._tags).length&&(t.tags={...this._tags,...t.tags}),this._user&&Object.keys(this._user).length&&(t.user={...this._user,...t.user}),this._contexts&&Object.keys(this._contexts).length&&(t.contexts={...this._contexts,...t.contexts}),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts={trace:this._span.getTraceContext(),...t.contexts};const r=this._span.transaction&&this._span.transaction.name;r&&(t.tags={transaction:r,...t.tags})}return this._applyFingerprint(t),t.breadcrumbs=[...t.breadcrumbs||[],...this._breadcrumbs],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...gh(),...this._eventProcessors],t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}_notifyEventProcessors(t,n,r,i=0){return new _e((o,a)=>{const s=t[i];if(n===null||typeof s!="function")o(n);else{const l=s({...n},r);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&s.id&&l===null&&I.log(`Event processor "${s.id}" dropped event`),uc(l)?l.then(c=>this._notifyEventProcessors(t,c,r,i+1).then(o)).then(null,a):this._notifyEventProcessors(t,l,r,i+1).then(o).then(null,a)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}_applyFingerprint(t){t.fingerprint=t.fingerprint?oh(t.fingerprint):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function gh(){return dc("globalEventProcessors",()=>[])}function Pc(e){gh().push(e)}const Nc=4,Yv=100;class Tc{constructor(t,n=new Zt,r=Nc){this._version=r,this._stack=[{scope:n}],t&&this.bindClient(t)}isOlderThan(t){return this._version<t}bindClient(t){const n=this.getStackTop();n.client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=Zt.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const n=this.pushScope();try{t(n)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:cr(),i=new Error("Sentry syntheticException");return this._withClient((o,a)=>{o.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},a)}),r}captureMessage(t,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:cr(),o=new Error(t);return this._withClient((a,s)=>{a.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:i},s)}),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:cr();return t.type||(this._lastEventId=r),this._withClient((i,o)=>{i.captureEvent(t,{...n,event_id:r},o)}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:a=Yv}=i.getOptions&&i.getOptions()||{};if(a<=0)return;const l={timestamp:sa(),...t},c=o?Yf(()=>o(l,n)):l;c!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",c,n),r.addBreadcrumb(c,a))}setUser(t){this.getScope().setUser(t)}setTags(t){this.getScope().setTags(t)}setExtras(t){this.getScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=mh(this);try{t(this)}finally{mh(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){return this._callExtensionMethod("startTransaction",t,n)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&Fv(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:o=hh}=r&&r.getOptions()||{},{userAgent:a}=Be.navigator||{},s=zv({release:i,environment:o,user:n.getUser(),...a&&{userAgent:a},...t}),l=n.getSession&&n.getSession();return l&&l.status==="ok"&&ur(l,{status:"exited"}),this.endSession(),n.setSession(s),s}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_withClient(t){const{scope:n,client:r}=this.getStackTop();r&&t(r,n)}_callExtensionMethod(t,...n){const i=la().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,n);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function la(){return Be.__SENTRY__=Be.__SENTRY__||{extensions:{},hub:void 0},Be}function mh(e){const t=la(),n=en(t);return $c(t,e),n}function ne(){const e=la();return(!yh(e)||en(e).isOlderThan(Nc))&&$c(e,new Tc),ah()?Hv(e):en(e)}function Hv(e){try{const t=la().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return en(e);if(!yh(n)||en(n).isOlderThan(Nc)){const r=en(e).getStackTop();$c(n,new Tc(r.client,Zt.clone(r.scope)))}return en(n)}catch{return en(e)}}function yh(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function en(e){return dc("hub",()=>new Tc,e)}function $c(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function vh(e,t){return ne().captureException(e,{captureContext:t})}function bh(e){ne().withScope(e)}const Gv="7";function wh(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Wv(e){return`${wh(e)}${e.projectId}/envelope/`}function Vv(e,t){return Q0({sentry_key:e.publicKey,sentry_version:Gv,...t&&{sentry_client:`${t.name}/${t.version}`}})}function Kv(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${Wv(e)}?${Vv(e,r)}`}function qv(e,t){const n=Bf(e),r=`${wh(n)}embed/error-page/`;let i=`dsn=${Ti(n)}`;for(const o in t)if(o!=="dsn")if(o==="user"){const a=t.user;if(!a)continue;a.name&&(i+=`&name=${encodeURIComponent(a.name)}`),a.email&&(i+=`&email=${encodeURIComponent(a.email)}`)}else i+=`&${encodeURIComponent(o)}=${encodeURIComponent(t[o])}`;return`${r}?${i}`}function Qv(e,t){return 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}function Jv(e,t,n,r){const i=fh(n),o={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&{dsn:Ti(t)}},a="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e];return Di(o,[a])}function Xv(e,t,n,r){const i=fh(n),o=e.type&&e.type!=="replay_event"?e.type:"event";Qv(e,n&&n.sdk);const a=Ov(e,i,r,t);return delete e.sdkProcessingMetadata,Di(a,[[{type:o},e]])}const xh=[];function Zv(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function e1(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(a=>{a.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=oh(n(t)):r=t;const i=Zv(r),o=n1(i,a=>a.name==="Debug");if(o!==-1){const[a]=i.splice(o,1);i.push(a)}return i}function t1(e){const t={};return e.forEach(n=>{n&&kh(n,t)}),t}function kh(e,t){t[e.name]=e,xh.indexOf(e.name)===-1&&(e.setupOnce(Pc,ne),xh.push(e.name),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.log(`Integration installed: ${e.name}`))}function n1(e,t){for(let n=0;n<e.length;n++)if(t(e[n])===!0)return n;return-1}function r1(e,t,n,r){const{normalizeDepth:i=3,normalizeMaxBreadth:o=1e3}=e,a={...t,event_id:t.event_id||n.event_id||cr(),timestamp:t.timestamp||sa()},s=n.integrations||e.integrations.map(p=>p.name);i1(a,e),a1(a,s),o1(a,e.stackParser);let l=r;n.captureContext&&(l=Zt.clone(l).update(n.captureContext));let c=kn(a);if(l){if(l.getAttachments){const p=[...n.attachments||[],...l.getAttachments()];p.length&&(n.attachments=p)}c=l.applyToEvent(a,n)}return c.then(p=>typeof i=="number"&&i>0?s1(p,i,o):p)}function i1(e,t){const{environment:n,release:r,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:hh),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=$i(e.message,o));const a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=$i(a.value,o));const s=e.request;s&&s.url&&(s.url=$i(s.url,o))}function o1(e,t){const n=Be._sentryDebugIds;if(!n)return;const r=Object.keys(n).reduce((a,s)=>{const l=t(s);for(let c=l.length-1;c>=0;c--){const p=l[c];if(p.filename){a[p.filename]=n[s];break}}return a},{}),i=new Set;try{e.exception.values.forEach(a=>{a.stacktrace.frames.forEach(s=>{s.filename&&i.add(s.filename)})})}catch{}e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const o=e.debug_meta.images;i.forEach(a=>{r[a]&&o.push({type:"sourcemap",code_file:a,debug_id:r[a]})})}function a1(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function s1(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:Xt(i.data,t,n)}}))},...e.user&&{user:Xt(e.user,t,n)},...e.contexts&&{contexts:Xt(e.contexts,t,n)},...e.extra&&{extra:Xt(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Xt(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>(i.data&&(i.data=Xt(i.data,t,n)),i))),r}const _h="Not capturing exception because it's already been captured.";class _n{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}__init5(){this._hooks={}}constructor(t){if(_n.prototype.__init.call(this),_n.prototype.__init2.call(this),_n.prototype.__init3.call(this),_n.prototype.__init4.call(this),_n.prototype.__init5.call(this),this._options=t,t.dsn){this._dsn=Bf(t.dsn);const n=Kv(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}else(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.warn("No DSN provided, client will not do anything.")}captureException(t,n,r){if(ih(t)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.log(_h);return}let i=n&&n.event_id;return this._process(this.eventFromException(t,n).then(o=>this._captureEvent(o,n,r)).then(o=>{i=o})),i}captureMessage(t,n,r,i){let o=r&&r.event_id;const a=Ff(t)?this.eventFromMessage(String(t),n,r):this.eventFromException(t,r);return this._process(a.then(s=>this._captureEvent(s,r,i)).then(s=>{o=s})),o}captureEvent(t,n,r){if(n&&n.originalException&&ih(n.originalException)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.log(_h);return}let i=n&&n.event_id;return this._process(this._captureEvent(t,n,r).then(o=>{i=o})),i}captureSession(t){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.warn("SDK not enabled, will not capture session.");return}typeof t.release!="string"?(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),ur(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?this._isClientDoneProcessing(t).then(r=>n.flush(t).then(i=>r&&i)):kn(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,n))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=t1(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){kh(t,this._integrations)}sendEvent(t,n={}){if(this._dsn){let r=Xv(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=Pv(r,$v(o,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(r);i&&i.then(o=>this.emit("afterSendEvent",t,o),null)}}sendSession(t){if(this._dsn){const n=Jv(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const i=`${t}:${n}`;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.log(`Adding outcome: "${i}"`),this._outcomes[i]=this._outcomes[i]+1||1}}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_updateSessionFromEvent(t,n){let r=!1,i=!1;const o=n.exception&&n.exception.values;if(o){i=!0;for(const l of o){const c=l.mechanism;if(c&&c.handled===!1){r=!0;break}}}const a=t.status==="ok";(a&&t.errors===0||a&&r)&&(ur(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new _e(n=>{let r=0;const i=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=i,t&&r>=t&&(clearInterval(o),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._dsn!==void 0}_prepareEvent(t,n,r){const i=this.getOptions(),o=Object.keys(this._integrations);return!n.integrations&&o.length>0&&(n.integrations=o),r1(i,t,n,r)}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(i=>i.event_id,i=>{if(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__){const o=i;o.logLevel==="log"?I.log(o.message):I.warn(o)}})}_processEvent(t,n,r){const i=this.getOptions(),{sampleRate:o}=i;if(!this._isEnabled())return aa(new be("SDK not enabled, will not capture event.","log"));const a=Eh(t),s=Sh(t),l=t.type||"error",c=`before send for type \`${l}\``;if(s&&typeof o=="number"&&Math.random()>o)return this.recordDroppedEvent("sample_rate","error",t),aa(new be(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const p=l==="replay_event"?"replay":l;return this._prepareEvent(t,n,r).then(d=>{if(d===null)throw this.recordDroppedEvent("event_processor",p,t),new be("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return d;const y=c1(i,d,n);return l1(y,c)}).then(d=>{if(d===null)throw this.recordDroppedEvent("before_send",p,t),new be(`${c} returned \`null\`, will not send event.`,"log");const f=r&&r.getSession();!a&&f&&this._updateSessionFromEvent(f,d);const y=d.transaction_info;if(a&&y&&d.transaction!==t.transaction){const v="custom";d.transaction_info={...y,source:v}}return this.sendEvent(d,n),d}).then(null,d=>{throw d instanceof be?d:(this.captureException(d,{data:{__sentry__:!0},originalException:d}),new be(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
49
|
+
Reason: ${d}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this._transport&&this._dsn)return this.emit("beforeEnvelope",t),this._transport.send(t).then(null,n=>{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.error("Error while sending event:",n)});(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[r,i]=n.split(":");return{reason:r,category:i,quantity:t[n]}})}}function l1(e,t){const n=`${t} must return \`null\` or a valid event.`;if(uc(e))return e.then(r=>{if(!sr(r)&&r!==null)throw new be(n);return r},r=>{throw new be(`${t} rejected with ${r}`)});if(!sr(e)&&e!==null)throw new be(n);return e}function c1(e,t,n){const{beforeSend:r,beforeSendTransaction:i}=e;return Sh(t)&&r?r(t,n):Eh(t)&&i?i(t,n):t}function Sh(e){return e.type===void 0}function Eh(e){return e.type==="transaction"}function u1(e,t){t.debug===!0&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?I.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));const n=ne();n.getScope().update(t.initialScope);const i=new e(t);n.bindClient(i)}const d1=30;function Ch(e,t,n=kv(e.bufferSize||d1)){let r={};const i=a=>n.drain(a);function o(a){const s=[];if(dh(a,(d,f)=>{const y=ph(f);if(Av(r,y)){const v=Ph(d,f);e.recordDroppedEvent("ratelimit_backoff",y,v)}else s.push(d)}),s.length===0)return kn();const l=Di(a[0],s),c=d=>{dh(l,(f,y)=>{const v=Ph(f,y);e.recordDroppedEvent(d,ph(y),v)})},p=()=>t({body:Nv(l,e.textEncoder)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=Mv(r,d),d),d=>{throw c("network_error"),d});return n.add(p).then(d=>d,d=>{if(d instanceof be)return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.error("Skipped sending event because buffer is full."),c("queue_overflow"),kn();throw d})}return o.__sentry__baseTransport__=!0,{send:o,flush:i}}function Ph(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}const ca="7.47.0";let Nh;class Li{constructor(){Li.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=Li.id}setupOnce(){Nh=Function.prototype.toString,Function.prototype.toString=function(...t){const n=hc(this)||this;return Nh.apply(n,t)}}}Li.__initStatic();const p1=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class dr{static __initStatic(){this.id="InboundFilters"}__init(){this.name=dr.id}constructor(t={}){this._options=t,dr.prototype.__init.call(this)}setupOnce(t,n){const r=i=>{const o=n();if(o){const a=o.getIntegration(dr);if(a){const s=o.getClient(),l=s?s.getOptions():{},c=f1(a._options,l);return h1(i,c)?null:i}}return i};r.id=this.name,t(r)}}dr.__initStatic();function f1(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...p1],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function h1(e,t){return t.ignoreInternal&&w1(e)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.warn(`Event dropped due to being internal Sentry Error.
|
|
50
|
+
Event: ${Jt(e)}`),!0):g1(e,t.ignoreErrors)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
51
|
+
Event: ${Jt(e)}`),!0):m1(e,t.ignoreTransactions)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
52
|
+
Event: ${Jt(e)}`),!0):y1(e,t.denyUrls)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.warn(`Event dropped due to being matched by \`denyUrls\` option.
|
|
53
53
|
Event: ${Jt(e)}.
|
|
54
|
-
Url: ${ua(e)}`),!0):v1(e,t.allowUrls)?!1:((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&
|
|
54
|
+
Url: ${ua(e)}`),!0):v1(e,t.allowUrls)?!1:((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
|
55
55
|
Event: ${Jt(e)}.
|
|
56
|
-
Url: ${ua(e)}`),!0)}function m1(e,t){return e.type||!t||!t.length?!1:b1(e).some(n=>Zo(n,t))}function g1(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Zo(n,t):!1}function y1(e,t){if(!t||!t.length)return!1;const n=ua(e);return n?Zo(n,t):!1}function v1(e,t){if(!t||!t.length)return!0;const n=ua(e);return n?Zo(n,t):!0}function b1(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.error(`Cannot extract message for event ${Jt(e)}`),[]}return[]}function w1(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function x1(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function ua(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?x1(t):null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.error(`Cannot extract url for event ${Jt(e)}`),null}}const M=Be;let Rc=0;function Th(){return Rc>0}function k1(){Rc++,setTimeout(()=>{Rc--})}function pr(e,t={},n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return i;if(hc(e))return e}catch{return e}const r=function(){const i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const o=i.map(a=>pr(a,t));return e.apply(this,o)}catch(o){throw k1(),bh(a=>{a.addEventProcessor(s=>(t.mechanism&&(xc(s,void 0,void 0),Oi(s,t.mechanism)),s.extra={...s.extra,arguments:i},s)),vh(o)}),o}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}Wf(r,e),fc(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function $h(e,t){const n=Dc(e,t),r={type:t&&t.name,value:C1(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function _1(e,t,n,r){const o=ne().getClient(),a=o&&o.getOptions().normalizeDepth,s={exception:{values:[{type:cc(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${J0(t)}`}]},extra:{__serialized__:sh(t,a)}};if(n){const l=Dc(e,n);l.length&&(s.exception.values[0].stacktrace={frames:l})}return s}function Oc(e,t){return{exception:{values:[$h(e,t)]}}}function Dc(e,t){const n=t.stacktrace||t.stack||"",r=E1(t);try{return e(n,r)}catch{}return[]}const S1=/Minified React error #\d+;/i;function E1(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(S1.test(e.message))return 1}return 0}function C1(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function P1(e,t,n,r){const i=n&&n.syntheticException||void 0,o=Lc(e,t,i,r);return Oi(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),kn(o)}function N1(e,t,n="info",r,i){const o=r&&r.syntheticException||void 0,a=jc(e,t,o,i);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),kn(a)}function Lc(e,t,n,r,i){let o;if(Mf(t)&&t.error)return Oc(e,t.error);if(zf(t)||j0(t)){const a=t;if("stack"in t)o=Oc(e,t);else{const s=a.name||(zf(a)?"DOMError":"DOMException"),l=a.message?`${s}: ${a.message}`:s;o=jc(e,l,n,r),xc(o,l)}return"code"in a&&(o.tags={...o.tags,"DOMException.code":`${a.code}`}),o}return lc(t)?Oc(e,t):sr(t)||cc(t)?(o=_1(e,t,n,i),Oi(o,{synthetic:!0}),o):(o=jc(e,t,n,r),xc(o,`${t}`,void 0),Oi(o,{synthetic:!0}),o)}function jc(e,t,n,r){const i={message:t};if(r&&n){const o=Dc(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]})}return i}const da=1024,Rh="Breadcrumbs";class ji{static __initStatic(){this.id=Rh}__init(){this.name=ji.id}constructor(t){ji.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t}}setupOnce(){this.options.console&&Qt("console",$1),this.options.dom&&Qt("dom",T1(this.options.dom)),this.options.xhr&&Qt("xhr",R1),this.options.fetch&&Qt("fetch",O1),this.options.history&&Qt("history",D1)}addSentryBreadcrumb(t){this.options.sentry&&ne().addBreadcrumb({category:`sentry.${t.type==="transaction"?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:Jt(t)},{event:t})}}ji.__initStatic();function T1(e){function t(n){let r,i=typeof e=="object"?e.serializeAttribute:void 0,o=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;o&&o>da&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn(`\`dom.maxStringLength\` cannot exceed ${da}, but a value of ${o} was configured. Sentry will use ${da} instead.`),o=da),typeof i=="string"&&(i=[i]);try{const a=n.event;r=L1(a)?pc(a.target,{keyAttrs:i,maxStringLength:o}):pc(a,{keyAttrs:i,maxStringLength:o})}catch{r="<unknown>"}r.length!==0&&ne().addBreadcrumb({category:`ui.${n.name}`,message:r},{event:n.event,name:n.name,global:n.global})}return t}function $1(e){for(let n=0;n<e.args.length;n++)if(e.args[n]==="ref=Ref<"){e.args[n+1]="viewRef";break}const t={category:"console",data:{arguments:e.args,logger:"console"},level:Sv(e.level),message:Gf(e.args," ")};if(e.level==="assert")if(e.args[0]===!1)t.message=`Assertion failed: ${Gf(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);else return;ne().addBreadcrumb(t,{input:e.args,level:e.level})}function R1(e){const{startTimestamp:t,endTimestamp:n}=e;if(!t||!n||!e.xhr.__sentry_xhr__)return;const{method:r,url:i,status_code:o,body:a}=e.xhr.__sentry_xhr__,s={method:r,url:i,status_code:o},l={xhr:e.xhr,input:a,startTimestamp:t,endTimestamp:n};ne().addBreadcrumb({category:"xhr",data:s,type:"http"},l)}function O1(e){const{startTimestamp:t,endTimestamp:n}=e;if(n&&!(e.fetchData.url.match(/sentry_key/)&&e.fetchData.method==="POST"))if(e.error){const r=e.fetchData,i={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n};ne().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},i)}else{const r={...e.fetchData,status_code:e.response&&e.response.status},i={input:e.args,response:e.response,startTimestamp:t,endTimestamp:n};ne().addBreadcrumb({category:"fetch",data:r,type:"http"},i)}}function D1(e){let t=e.from,n=e.to;const r=_c(M.location.href);let i=_c(t);const o=_c(n);i.path||(i=r),r.protocol===o.protocol&&r.host===o.host&&(n=o.relative),r.protocol===i.protocol&&r.host===i.host&&(t=i.relative),ne().addBreadcrumb({category:"navigation",data:{from:t,to:n}})}function L1(e){return e&&!!e.target}function j1(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Ti(r)}},o=I1(e);return Di(i,[o])}function I1(e){return[{type:"user_report"},e]}class A1 extends _n{constructor(t){const n=M.SENTRY_SDK_SOURCE||gv();t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${n}:@sentry/browser`,version:ca}],version:ca},super(t),t.sendClientReports&&M.document&&M.document.addEventListener("visibilitychange",()=>{M.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return P1(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return N1(this._options.stackParser,t,n,r,this._options.attachStacktrace)}sendEvent(t,n){const r=this.getIntegrationById(Rh);r&&r.addSentryBreadcrumb&&r.addSentryBreadcrumb(t),super.sendEvent(t,n)}captureUserFeedback(t){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn("SDK not enabled, will not capture user feedback.");return}const n=j1(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.log("No outcomes to send");return}if(!this._dsn){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.log("No dsn provided, will not send outcomes");return}(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.log("Sending outcomes:",t);const n=Dv(t,this._options.tunnel&&Ti(this._dsn));this._sendEnvelope(n)}}let Ii;function M1(){if(Ii)return Ii;if(bc(M.fetch))return Ii=M.fetch.bind(M);const e=M.document;let t=M.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return Ii=t.bind(M)}function z1(){Ii=void 0}function F1(e,t=M1()){let n=0,r=0;function i(o){const a=o.body.length;n+=a,r++;const s={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,s).then(l=>(n-=a,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return z1(),n-=a,r--,aa(l)}}return Ch(e,i)}const U1=4;function B1(e){function t(n){return new _e((r,i)=>{const o=new XMLHttpRequest;o.onerror=i,o.onreadystatechange=()=>{o.readyState===U1&&r({statusCode:o.status,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")}})},o.open("POST",e.url);for(const a in e.headers)Object.prototype.hasOwnProperty.call(e.headers,a)&&o.setRequestHeader(a,e.headers[a]);o.send(n.body)})}return Ch(e,t)}const pa="?",Y1=30,H1=40,G1=50;function Ic(e,t,n,r){const i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const W1=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?(?:async )?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,V1=/\((\S*)(?::(\d+))(?::(\d+))\)/,K1=[Y1,e=>{const t=W1.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const o=V1.exec(t[2]);o&&(t[2]=o[1],t[3]=o[2],t[4]=o[3])}const[r,i]=Oh(t[1]||pa,t[2]);return Ic(i,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],q1=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Q1=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,J1=[G1,e=>{const t=q1.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=Q1.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let r=t[3],i=t[1]||pa;return[i,r]=Oh(i,r),Ic(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],X1=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Z1=Xf(...[K1,J1,[H1,e=>{const t=X1.exec(e);return t?Ic(t[2],t[1]||pa,+t[3],t[4]?+t[4]:void 0):void 0}]]),Oh=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:pa,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class tn{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=tn.id}__init2(){this._installFunc={onerror:eb,onunhandledrejection:tb}}constructor(t){tn.prototype.__init.call(this),tn.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...t}}setupOnce(){Error.stackTraceLimit=50;const t=this._options;for(const n in t){const r=this._installFunc[n];r&&t[n]&&(ib(n),r(),this._installFunc[n]=void 0)}}}tn.__initStatic();function eb(){Qt("error",e=>{const[t,n,r]=jh();if(!t.getIntegration(tn))return;const{msg:i,url:o,line:a,column:s,error:l}=e;if(Th()||l&&l.__sentry_own_request__)return;const c=l===void 0&&xn(i)?rb(i,o,a,s):Dh(Lc(n,l||i,void 0,r,!1),o,a,s);c.level="error",Lh(t,l,c,"onerror")})}function tb(){Qt("unhandledrejection",e=>{const[t,n,r]=jh();if(!t.getIntegration(tn))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch{}if(Th()||i&&i.__sentry_own_request__)return!0;const o=Ff(i)?nb(i):Lc(n,i,void 0,r,!0);o.level="error",Lh(t,i,o,"onunhandledrejection")})}function nb(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function rb(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=Mf(e)?e.message:e,a="Error";const s=o.match(i);return s&&(a=s[1],o=s[2]),Dh({exception:{values:[{type:a,value:o}]}},t,n,r)}function Dh(e,t,n,r){const i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},l=s.frames=s.frames||[],c=isNaN(parseInt(r,10))?void 0:r,p=isNaN(parseInt(n,10))?void 0:n,d=xn(t)&&t.length>0?t:Y0();return l.length===0&&l.push({colno:c,filename:d,function:"?",in_app:!0,lineno:p}),e}function ib(e){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.log(`Global Handler attached: ${e}`)}function Lh(e,t,n,r){Oi(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function jh(){const e=ne(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}const ob=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class Ai{static __initStatic(){this.id="TryCatch"}__init(){this.name=Ai.id}constructor(t){Ai.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t}}setupOnce(){this._options.setTimeout&&pe(M,"setTimeout",Ih),this._options.setInterval&&pe(M,"setInterval",Ih),this._options.requestAnimationFrame&&pe(M,"requestAnimationFrame",ab),this._options.XMLHttpRequest&&"XMLHttpRequest"in M&&pe(XMLHttpRequest.prototype,"send",sb);const t=this._options.eventTarget;t&&(Array.isArray(t)?t:ob).forEach(lb)}}Ai.__initStatic();function Ih(e){return function(...t){const n=t[0];return t[0]=pr(n,{mechanism:{data:{function:qt(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function ab(e){return function(t){return e.apply(this,[pr(t,{mechanism:{data:{function:"requestAnimationFrame",handler:qt(e)},handled:!0,type:"instrument"}})])}}function sb(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&pe(n,i,function(o){const a={mechanism:{data:{function:i,handler:qt(o)},handled:!0,type:"instrument"}},s=hc(o);return s&&(a.mechanism.data.handler=qt(s)),pr(o,a)})}),e.apply(this,t)}}function lb(e){const t=M,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(pe(n,"addEventListener",function(r){return function(i,o,a){try{typeof o.handleEvent=="function"&&(o.handleEvent=pr(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:qt(o),target:e},handled:!0,type:"instrument"}}))}catch{}return r.apply(this,[i,pr(o,{mechanism:{data:{function:"addEventListener",handler:qt(o),target:e},handled:!0,type:"instrument"}}),a])}}),pe(n,"removeEventListener",function(r){return function(i,o,a){const s=o;try{const l=s&&s.__sentry_wrapped__;l&&r.call(this,i,l,a)}catch{}return r.call(this,i,s,a)}}))}const cb="cause",ub=5;class fr{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=fr.id}constructor(t={}){fr.prototype.__init.call(this),this._key=t.key||cb,this._limit=t.limit||ub}setupOnce(){const t=ne().getClient();t&&Pc((n,r)=>{const i=ne().getIntegration(fr);return i?db(t.getOptions().stackParser,i._key,i._limit,n,r):n})}}fr.__initStatic();function db(e,t,n,r,i){if(!r.exception||!r.exception.values||!i||!lr(i.originalException,Error))return r;const o=Ah(e,n,i.originalException,t);return r.exception.values=[...o,...r.exception.values],r}function Ah(e,t,n,r,i=[]){if(!lr(n[r],Error)||i.length+1>=t)return i;const o=$h(e,n[r]);return Ah(e,t,n[r],r,[o,...i])}class hr{constructor(){hr.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=hr.id}setupOnce(){Pc(t=>{if(ne().getIntegration(hr)){if(!M.navigator&&!M.location&&!M.document)return t;const n=t.request&&t.request.url||M.location&&M.location.href,{referrer:r}=M.document||{},{userAgent:i}=M.navigator||{},o={...t.request&&t.request.headers,...r&&{Referer:r},...i&&{"User-Agent":i}},a={...t.request,...n&&{url:n},headers:o};return{...t,request:a}}return t})}}hr.__initStatic();class mr{constructor(){mr.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=mr.id}setupOnce(t,n){const r=i=>{if(i.type)return i;const o=n().getIntegration(mr);if(o){try{if(pb(i,o._previousEvent))return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{return o._previousEvent=i}return o._previousEvent=i}return i};r.id=this.name,t(r)}}mr.__initStatic();function pb(e,t){return t?!!(fb(e,t)||hb(e,t)):!1}function fb(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!zh(e,t)||!Mh(e,t))}function hb(e,t){const n=Fh(t),r=Fh(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!zh(e,t)||!Mh(e,t))}function Mh(e,t){let n=Uh(e),r=Uh(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){const o=r[i],a=n[i];if(o.filename!==a.filename||o.lineno!==a.lineno||o.colno!==a.colno||o.function!==a.function)return!1}return!0}function zh(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function Fh(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Uh(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}const mb=[new dr,new Li,new Ai,new ji,new tn,new fr,new mr,new hr];function gb(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=mb),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),M.SENTRY_RELEASE&&M.SENTRY_RELEASE.id&&(e.release=M.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:X0(e.stackParser||Z1),integrations:e1(e),transport:e.transport||(Zf()?F1:B1)};u1(A1,t),e.autoSessionTracking&&yb()}function Bh(e={},t=ne()){if(!M.document){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.error("Global document not defined in showReportDialog call");return}const{client:n,scope:r}=t.getStackTop(),i=e.dsn||n&&n.getDsn();if(!i){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.error("DSN not configured for showReportDialog call");return}r&&(e.user={...r.getUser(),...e.user}),e.eventId||(e.eventId=t.lastEventId());const o=M.document.createElement("script");o.async=!0,o.src=qv(i,e),e.onLoad&&(o.onload=e.onLoad);const a=M.document.head||M.document.body;a?a.appendChild(o):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.error("Not injecting report dialog. No injection point found in HTML")}function Yh(e){e.startSession({ignoreDuration:!0}),e.captureSession()}function yb(){if(typeof M.document>"u"){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&j.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}const e=ne();e.captureSession&&(Yh(e),Qt("history",({from:t,to:n})=>{t===void 0||t===n||Yh(ne())}))}function vb(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:ca}],version:ca},gb(e)}var Ac={},bb={get exports(){return Ac},set exports(e){Ac=e}},z={};/** @license React v16.13.1
|
|
56
|
+
Url: ${ua(e)}`),!0)}function g1(e,t){return e.type||!t||!t.length?!1:b1(e).some(n=>Zo(n,t))}function m1(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Zo(n,t):!1}function y1(e,t){if(!t||!t.length)return!1;const n=ua(e);return n?Zo(n,t):!1}function v1(e,t){if(!t||!t.length)return!0;const n=ua(e);return n?Zo(n,t):!0}function b1(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.error(`Cannot extract message for event ${Jt(e)}`),[]}return[]}function w1(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function x1(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function ua(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?x1(t):null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.error(`Cannot extract url for event ${Jt(e)}`),null}}const M=Be;let Rc=0;function Th(){return Rc>0}function k1(){Rc++,setTimeout(()=>{Rc--})}function pr(e,t={},n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return i;if(hc(e))return e}catch{return e}const r=function(){const i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const o=i.map(a=>pr(a,t));return e.apply(this,o)}catch(o){throw k1(),bh(a=>{a.addEventProcessor(s=>(t.mechanism&&(xc(s,void 0,void 0),Oi(s,t.mechanism)),s.extra={...s.extra,arguments:i},s)),vh(o)}),o}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}Wf(r,e),fc(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function $h(e,t){const n=Dc(e,t),r={type:t&&t.name,value:C1(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function _1(e,t,n,r){const o=ne().getClient(),a=o&&o.getOptions().normalizeDepth,s={exception:{values:[{type:cc(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${J0(t)}`}]},extra:{__serialized__:sh(t,a)}};if(n){const l=Dc(e,n);l.length&&(s.exception.values[0].stacktrace={frames:l})}return s}function Oc(e,t){return{exception:{values:[$h(e,t)]}}}function Dc(e,t){const n=t.stacktrace||t.stack||"",r=E1(t);try{return e(n,r)}catch{}return[]}const S1=/Minified React error #\d+;/i;function E1(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(S1.test(e.message))return 1}return 0}function C1(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function P1(e,t,n,r){const i=n&&n.syntheticException||void 0,o=Lc(e,t,i,r);return Oi(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),kn(o)}function N1(e,t,n="info",r,i){const o=r&&r.syntheticException||void 0,a=Ic(e,t,o,i);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),kn(a)}function Lc(e,t,n,r,i){let o;if(Mf(t)&&t.error)return Oc(e,t.error);if(zf(t)||I0(t)){const a=t;if("stack"in t)o=Oc(e,t);else{const s=a.name||(zf(a)?"DOMError":"DOMException"),l=a.message?`${s}: ${a.message}`:s;o=Ic(e,l,n,r),xc(o,l)}return"code"in a&&(o.tags={...o.tags,"DOMException.code":`${a.code}`}),o}return lc(t)?Oc(e,t):sr(t)||cc(t)?(o=_1(e,t,n,i),Oi(o,{synthetic:!0}),o):(o=Ic(e,t,n,r),xc(o,`${t}`,void 0),Oi(o,{synthetic:!0}),o)}function Ic(e,t,n,r){const i={message:t};if(r&&n){const o=Dc(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]})}return i}const da=1024,Rh="Breadcrumbs";class Ii{static __initStatic(){this.id=Rh}__init(){this.name=Ii.id}constructor(t){Ii.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t}}setupOnce(){this.options.console&&Qt("console",$1),this.options.dom&&Qt("dom",T1(this.options.dom)),this.options.xhr&&Qt("xhr",R1),this.options.fetch&&Qt("fetch",O1),this.options.history&&Qt("history",D1)}addSentryBreadcrumb(t){this.options.sentry&&ne().addBreadcrumb({category:`sentry.${t.type==="transaction"?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:Jt(t)},{event:t})}}Ii.__initStatic();function T1(e){function t(n){let r,i=typeof e=="object"?e.serializeAttribute:void 0,o=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;o&&o>da&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.warn(`\`dom.maxStringLength\` cannot exceed ${da}, but a value of ${o} was configured. Sentry will use ${da} instead.`),o=da),typeof i=="string"&&(i=[i]);try{const a=n.event;r=L1(a)?pc(a.target,{keyAttrs:i,maxStringLength:o}):pc(a,{keyAttrs:i,maxStringLength:o})}catch{r="<unknown>"}r.length!==0&&ne().addBreadcrumb({category:`ui.${n.name}`,message:r},{event:n.event,name:n.name,global:n.global})}return t}function $1(e){for(let n=0;n<e.args.length;n++)if(e.args[n]==="ref=Ref<"){e.args[n+1]="viewRef";break}const t={category:"console",data:{arguments:e.args,logger:"console"},level:Sv(e.level),message:Gf(e.args," ")};if(e.level==="assert")if(e.args[0]===!1)t.message=`Assertion failed: ${Gf(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);else return;ne().addBreadcrumb(t,{input:e.args,level:e.level})}function R1(e){const{startTimestamp:t,endTimestamp:n}=e;if(!t||!n||!e.xhr.__sentry_xhr__)return;const{method:r,url:i,status_code:o,body:a}=e.xhr.__sentry_xhr__,s={method:r,url:i,status_code:o},l={xhr:e.xhr,input:a,startTimestamp:t,endTimestamp:n};ne().addBreadcrumb({category:"xhr",data:s,type:"http"},l)}function O1(e){const{startTimestamp:t,endTimestamp:n}=e;if(n&&!(e.fetchData.url.match(/sentry_key/)&&e.fetchData.method==="POST"))if(e.error){const r=e.fetchData,i={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n};ne().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},i)}else{const r={...e.fetchData,status_code:e.response&&e.response.status},i={input:e.args,response:e.response,startTimestamp:t,endTimestamp:n};ne().addBreadcrumb({category:"fetch",data:r,type:"http"},i)}}function D1(e){let t=e.from,n=e.to;const r=_c(M.location.href);let i=_c(t);const o=_c(n);i.path||(i=r),r.protocol===o.protocol&&r.host===o.host&&(n=o.relative),r.protocol===i.protocol&&r.host===i.host&&(t=i.relative),ne().addBreadcrumb({category:"navigation",data:{from:t,to:n}})}function L1(e){return e&&!!e.target}function I1(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Ti(r)}},o=j1(e);return Di(i,[o])}function j1(e){return[{type:"user_report"},e]}class A1 extends _n{constructor(t){const n=M.SENTRY_SDK_SOURCE||mv();t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${n}:@sentry/browser`,version:ca}],version:ca},super(t),t.sendClientReports&&M.document&&M.document.addEventListener("visibilitychange",()=>{M.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return P1(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return N1(this._options.stackParser,t,n,r,this._options.attachStacktrace)}sendEvent(t,n){const r=this.getIntegrationById(Rh);r&&r.addSentryBreadcrumb&&r.addSentryBreadcrumb(t),super.sendEvent(t,n)}captureUserFeedback(t){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.warn("SDK not enabled, will not capture user feedback.");return}const n=I1(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.log("No outcomes to send");return}if(!this._dsn){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.log("No dsn provided, will not send outcomes");return}(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.log("Sending outcomes:",t);const n=Dv(t,this._options.tunnel&&Ti(this._dsn));this._sendEnvelope(n)}}let ji;function M1(){if(ji)return ji;if(bc(M.fetch))return ji=M.fetch.bind(M);const e=M.document;let t=M.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return ji=t.bind(M)}function z1(){ji=void 0}function F1(e,t=M1()){let n=0,r=0;function i(o){const a=o.body.length;n+=a,r++;const s={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,s).then(l=>(n-=a,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return z1(),n-=a,r--,aa(l)}}return Ch(e,i)}const U1=4;function B1(e){function t(n){return new _e((r,i)=>{const o=new XMLHttpRequest;o.onerror=i,o.onreadystatechange=()=>{o.readyState===U1&&r({statusCode:o.status,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")}})},o.open("POST",e.url);for(const a in e.headers)Object.prototype.hasOwnProperty.call(e.headers,a)&&o.setRequestHeader(a,e.headers[a]);o.send(n.body)})}return Ch(e,t)}const pa="?",Y1=30,H1=40,G1=50;function jc(e,t,n,r){const i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const W1=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?(?:async )?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,V1=/\((\S*)(?::(\d+))(?::(\d+))\)/,K1=[Y1,e=>{const t=W1.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const o=V1.exec(t[2]);o&&(t[2]=o[1],t[3]=o[2],t[4]=o[3])}const[r,i]=Oh(t[1]||pa,t[2]);return jc(i,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],q1=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Q1=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,J1=[G1,e=>{const t=q1.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=Q1.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let r=t[3],i=t[1]||pa;return[i,r]=Oh(i,r),jc(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],X1=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Z1=Xf(...[K1,J1,[H1,e=>{const t=X1.exec(e);return t?jc(t[2],t[1]||pa,+t[3],t[4]?+t[4]:void 0):void 0}]]),Oh=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:pa,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class tn{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=tn.id}__init2(){this._installFunc={onerror:eb,onunhandledrejection:tb}}constructor(t){tn.prototype.__init.call(this),tn.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...t}}setupOnce(){Error.stackTraceLimit=50;const t=this._options;for(const n in t){const r=this._installFunc[n];r&&t[n]&&(ib(n),r(),this._installFunc[n]=void 0)}}}tn.__initStatic();function eb(){Qt("error",e=>{const[t,n,r]=Ih();if(!t.getIntegration(tn))return;const{msg:i,url:o,line:a,column:s,error:l}=e;if(Th()||l&&l.__sentry_own_request__)return;const c=l===void 0&&xn(i)?rb(i,o,a,s):Dh(Lc(n,l||i,void 0,r,!1),o,a,s);c.level="error",Lh(t,l,c,"onerror")})}function tb(){Qt("unhandledrejection",e=>{const[t,n,r]=Ih();if(!t.getIntegration(tn))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch{}if(Th()||i&&i.__sentry_own_request__)return!0;const o=Ff(i)?nb(i):Lc(n,i,void 0,r,!0);o.level="error",Lh(t,i,o,"onunhandledrejection")})}function nb(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function rb(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=Mf(e)?e.message:e,a="Error";const s=o.match(i);return s&&(a=s[1],o=s[2]),Dh({exception:{values:[{type:a,value:o}]}},t,n,r)}function Dh(e,t,n,r){const i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},l=s.frames=s.frames||[],c=isNaN(parseInt(r,10))?void 0:r,p=isNaN(parseInt(n,10))?void 0:n,d=xn(t)&&t.length>0?t:Y0();return l.length===0&&l.push({colno:c,filename:d,function:"?",in_app:!0,lineno:p}),e}function ib(e){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.log(`Global Handler attached: ${e}`)}function Lh(e,t,n,r){Oi(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function Ih(){const e=ne(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}const ob=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class Ai{static __initStatic(){this.id="TryCatch"}__init(){this.name=Ai.id}constructor(t){Ai.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t}}setupOnce(){this._options.setTimeout&&pe(M,"setTimeout",jh),this._options.setInterval&&pe(M,"setInterval",jh),this._options.requestAnimationFrame&&pe(M,"requestAnimationFrame",ab),this._options.XMLHttpRequest&&"XMLHttpRequest"in M&&pe(XMLHttpRequest.prototype,"send",sb);const t=this._options.eventTarget;t&&(Array.isArray(t)?t:ob).forEach(lb)}}Ai.__initStatic();function jh(e){return function(...t){const n=t[0];return t[0]=pr(n,{mechanism:{data:{function:qt(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function ab(e){return function(t){return e.apply(this,[pr(t,{mechanism:{data:{function:"requestAnimationFrame",handler:qt(e)},handled:!0,type:"instrument"}})])}}function sb(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&pe(n,i,function(o){const a={mechanism:{data:{function:i,handler:qt(o)},handled:!0,type:"instrument"}},s=hc(o);return s&&(a.mechanism.data.handler=qt(s)),pr(o,a)})}),e.apply(this,t)}}function lb(e){const t=M,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(pe(n,"addEventListener",function(r){return function(i,o,a){try{typeof o.handleEvent=="function"&&(o.handleEvent=pr(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:qt(o),target:e},handled:!0,type:"instrument"}}))}catch{}return r.apply(this,[i,pr(o,{mechanism:{data:{function:"addEventListener",handler:qt(o),target:e},handled:!0,type:"instrument"}}),a])}}),pe(n,"removeEventListener",function(r){return function(i,o,a){const s=o;try{const l=s&&s.__sentry_wrapped__;l&&r.call(this,i,l,a)}catch{}return r.call(this,i,s,a)}}))}const cb="cause",ub=5;class fr{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=fr.id}constructor(t={}){fr.prototype.__init.call(this),this._key=t.key||cb,this._limit=t.limit||ub}setupOnce(){const t=ne().getClient();t&&Pc((n,r)=>{const i=ne().getIntegration(fr);return i?db(t.getOptions().stackParser,i._key,i._limit,n,r):n})}}fr.__initStatic();function db(e,t,n,r,i){if(!r.exception||!r.exception.values||!i||!lr(i.originalException,Error))return r;const o=Ah(e,n,i.originalException,t);return r.exception.values=[...o,...r.exception.values],r}function Ah(e,t,n,r,i=[]){if(!lr(n[r],Error)||i.length+1>=t)return i;const o=$h(e,n[r]);return Ah(e,t,n[r],r,[o,...i])}class hr{constructor(){hr.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=hr.id}setupOnce(){Pc(t=>{if(ne().getIntegration(hr)){if(!M.navigator&&!M.location&&!M.document)return t;const n=t.request&&t.request.url||M.location&&M.location.href,{referrer:r}=M.document||{},{userAgent:i}=M.navigator||{},o={...t.request&&t.request.headers,...r&&{Referer:r},...i&&{"User-Agent":i}},a={...t.request,...n&&{url:n},headers:o};return{...t,request:a}}return t})}}hr.__initStatic();class gr{constructor(){gr.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=gr.id}setupOnce(t,n){const r=i=>{if(i.type)return i;const o=n().getIntegration(gr);if(o){try{if(pb(i,o._previousEvent))return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{return o._previousEvent=i}return o._previousEvent=i}return i};r.id=this.name,t(r)}}gr.__initStatic();function pb(e,t){return t?!!(fb(e,t)||hb(e,t)):!1}function fb(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!zh(e,t)||!Mh(e,t))}function hb(e,t){const n=Fh(t),r=Fh(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!zh(e,t)||!Mh(e,t))}function Mh(e,t){let n=Uh(e),r=Uh(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){const o=r[i],a=n[i];if(o.filename!==a.filename||o.lineno!==a.lineno||o.colno!==a.colno||o.function!==a.function)return!1}return!0}function zh(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function Fh(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Uh(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}const gb=[new dr,new Li,new Ai,new Ii,new tn,new fr,new gr,new hr];function mb(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=gb),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),M.SENTRY_RELEASE&&M.SENTRY_RELEASE.id&&(e.release=M.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:X0(e.stackParser||Z1),integrations:e1(e),transport:e.transport||(Zf()?F1:B1)};u1(A1,t),e.autoSessionTracking&&yb()}function Bh(e={},t=ne()){if(!M.document){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.error("Global document not defined in showReportDialog call");return}const{client:n,scope:r}=t.getStackTop(),i=e.dsn||n&&n.getDsn();if(!i){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.error("DSN not configured for showReportDialog call");return}r&&(e.user={...r.getUser(),...e.user}),e.eventId||(e.eventId=t.lastEventId());const o=M.document.createElement("script");o.async=!0,o.src=qv(i,e),e.onLoad&&(o.onload=e.onLoad);const a=M.document.head||M.document.body;a?a.appendChild(o):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.error("Not injecting report dialog. No injection point found in HTML")}function Yh(e){e.startSession({ignoreDuration:!0}),e.captureSession()}function yb(){if(typeof M.document>"u"){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}const e=ne();e.captureSession&&(Yh(e),Qt("history",({from:t,to:n})=>{t===void 0||t===n||Yh(ne())}))}function vb(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:ca}],version:ca},mb(e)}var Ac={},bb={get exports(){return Ac},set exports(e){Ac=e}},z={};/** @license React v16.13.1
|
|
57
57
|
* react-is.production.min.js
|
|
58
58
|
*
|
|
59
59
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
60
60
|
*
|
|
61
61
|
* This source code is licensed under the MIT license found in the
|
|
62
62
|
* LICENSE file in the root directory of this source tree.
|
|
63
|
-
*/var le=typeof Symbol=="function"&&Symbol.for,Mc=le?Symbol.for("react.element"):60103,zc=le?Symbol.for("react.portal"):60106,fa=le?Symbol.for("react.fragment"):60107,ha=le?Symbol.for("react.strict_mode"):60108,
|
|
63
|
+
*/var le=typeof Symbol=="function"&&Symbol.for,Mc=le?Symbol.for("react.element"):60103,zc=le?Symbol.for("react.portal"):60106,fa=le?Symbol.for("react.fragment"):60107,ha=le?Symbol.for("react.strict_mode"):60108,ga=le?Symbol.for("react.profiler"):60114,ma=le?Symbol.for("react.provider"):60109,ya=le?Symbol.for("react.context"):60110,Fc=le?Symbol.for("react.async_mode"):60111,va=le?Symbol.for("react.concurrent_mode"):60111,ba=le?Symbol.for("react.forward_ref"):60112,wa=le?Symbol.for("react.suspense"):60113,wb=le?Symbol.for("react.suspense_list"):60120,xa=le?Symbol.for("react.memo"):60115,ka=le?Symbol.for("react.lazy"):60116,xb=le?Symbol.for("react.block"):60121,kb=le?Symbol.for("react.fundamental"):60117,_b=le?Symbol.for("react.responder"):60118,Sb=le?Symbol.for("react.scope"):60119;function De(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Mc:switch(e=e.type,e){case Fc:case va:case fa:case ga:case ha:case wa:return e;default:switch(e=e&&e.$$typeof,e){case ya:case ba:case ka:case xa:case ma:return e;default:return t}}case zc:return t}}}function Hh(e){return De(e)===va}z.AsyncMode=Fc,z.ConcurrentMode=va,z.ContextConsumer=ya,z.ContextProvider=ma,z.Element=Mc,z.ForwardRef=ba,z.Fragment=fa,z.Lazy=ka,z.Memo=xa,z.Portal=zc,z.Profiler=ga,z.StrictMode=ha,z.Suspense=wa,z.isAsyncMode=function(e){return Hh(e)||De(e)===Fc},z.isConcurrentMode=Hh,z.isContextConsumer=function(e){return De(e)===ya},z.isContextProvider=function(e){return De(e)===ma},z.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Mc},z.isForwardRef=function(e){return De(e)===ba},z.isFragment=function(e){return De(e)===fa},z.isLazy=function(e){return De(e)===ka},z.isMemo=function(e){return De(e)===xa},z.isPortal=function(e){return De(e)===zc},z.isProfiler=function(e){return De(e)===ga},z.isStrictMode=function(e){return De(e)===ha},z.isSuspense=function(e){return De(e)===wa},z.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===fa||e===va||e===ga||e===ha||e===wa||e===wb||typeof e=="object"&&e!==null&&(e.$$typeof===ka||e.$$typeof===xa||e.$$typeof===ma||e.$$typeof===ya||e.$$typeof===ba||e.$$typeof===kb||e.$$typeof===_b||e.$$typeof===Sb||e.$$typeof===xb)},z.typeOf=De,function(e){e.exports=z}(bb);var Gh=Ac,Eb={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Cb={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Wh={};Wh[Gh.ForwardRef]=Eb,Wh[Gh.Memo]=Cb;function Pb(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}const Vh={componentStack:null,error:null,eventId:null};function Nb(e,t){const n=new WeakMap;function r(i,o){if(!n.has(i)){if(i.cause)return n.set(i,!0),r(i.cause,o);i.cause=o}}r(e,t)}class Mi extends x.Component{__init(){this.state=Vh}__init2(){this._openFallbackReportDialog=!0}constructor(t){super(t),Mi.prototype.__init.call(this),Mi.prototype.__init2.call(this),Mi.prototype.__init3.call(this);const n=ne().getClient();n&&n.on&&t.showDialog&&(this._openFallbackReportDialog=!1,n.on("afterSendEvent",r=>{!r.type&&r.event_id===this._lastEventId&&Bh({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,{componentStack:n}){const{beforeCapture:r,onError:i,showDialog:o,dialogOptions:a}=this.props;bh(s=>{if(Pb(x.version)&&lc(t)){const c=new Error(t.message);c.name=`React ErrorBoundary ${c.name}`,c.stack=n,Nb(t,c)}r&&r(s,t,n);const l=vh(t,{contexts:{react:{componentStack:n}}});i&&i(t,n,l),o&&(this._lastEventId=l,this._openFallbackReportDialog&&Bh({...a,eventId:l})),this.setState({error:t,componentStack:n,eventId:l})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:n,eventId:r}=this.state,{onUnmount:i}=this.props;i&&i(t,n,r)}__init3(){this.resetErrorBoundary=()=>{const{onReset:t}=this.props,{error:n,componentStack:r,eventId:i}=this.state;t&&t(n,r,i),this.setState(Vh)}}render(){const{fallback:t,children:n}=this.props,r=this.state;if(r.error){let i;return typeof t=="function"?i=t({error:r.error,componentStack:r.componentStack,resetError:this.resetErrorBoundary,eventId:r.eventId}):i=t,x.isValidElement(i)?i:(t&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&I.warn("fallback did not produce a valid ReactElement"),null)}return typeof n=="function"?n():n}}class Uc extends x.Component{constructor(){super(...arguments);Z(this,"handleLoad",()=>{this.setupFrameBaseStyle()})}componentDidMount(){this.node.addEventListener("load",this.handleLoad)}componentWillUnmout(){this.node.removeEventListener("load",this.handleLoad)}setupFrameBaseStyle(){this.node.contentDocument&&(this.iframeHtml=this.node.contentDocument.documentElement,this.iframeHead=this.node.contentDocument.head,this.iframeRoot=this.node.contentDocument.body,this.forceUpdate())}render(){const{children:n,head:r,title:i="",style:o={},dataTestId:a="",...s}=this.props;return b("iframe",{srcDoc:"<!DOCTYPE html>","data-testid":a,ref:l=>this.node=l,title:i,style:o,frameBorder:"0",...s,children:[this.iframeHead&&Dr.createPortal(r,this.iframeHead),this.iframeRoot&&Dr.createPortal(n,this.iframeRoot)]})}}const Bc=e=>x.createElement("svg",{id:"Regular",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},x.createElement("defs",null,x.createElement("style",null,".cls-1{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:0.8px;}")),x.createElement("circle",{className:"cls-1",cx:12,cy:9.75,r:5.25}),x.createElement("path",{className:"cls-1",d:"M18.913,20.876a9.746,9.746,0,0,0-13.826,0"}),x.createElement("circle",{className:"cls-1",cx:12,cy:12,r:11.25})),Kh=`
|
|
64
64
|
.gh-portal-avatar {
|
|
65
65
|
position: relative;
|
|
66
66
|
display: flex;
|
|
@@ -308,7 +308,7 @@ Url: ${ua(e)}`),!0)}function m1(e,t){return e.type||!t||!t.length?!1:b1(e).some(
|
|
|
308
308
|
display: none;
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
`,
|
|
311
|
+
`,Ib=Hc+`
|
|
312
312
|
.gh-portal-triggerbtn-wrapper {
|
|
313
313
|
display: inline-flex;
|
|
314
314
|
align-items: flex-start;
|
|
@@ -382,11 +382,11 @@ Url: ${ua(e)}`),!0)}function m1(e,t){return e.type||!t||!t.length?!1:b1(e).some(
|
|
|
382
382
|
width: 60px;
|
|
383
383
|
height: 60px;
|
|
384
384
|
}
|
|
385
|
-
`+Kh,xt=e=>{if(!e)return"";const t=new Date(e),n={year:"numeric",month:"short",day:"numeric"};return t.toLocaleDateString("en-GB",n)};function Gc(){const[e]=window.location.hash.substr(1).split("?");e&&/^\/portal\/?(?:\/(\w+(?:\/\w+)*))?\/?$/.test(e)&&window.history.pushState("",document.title,window.location.pathname+window.location.search)}function Ib({page:e}){const t={signin:"#/portal/signin",signup:"#/portal/signup"};return Object.keys(t).includes(e)?t[e]:t.default}function qh({page:e,siteUrl:t}){const n=t||`${window.location.protocol}//${window.location.host}${window.location.pathname}`,r=Ib({page:e});return`${n}${r}`}function gr(){return!(navigator&&navigator.cookieEnabled)}function Ab({event:e}){var i,o,a,s;const n=(((s=(a=(o=(i=e==null?void 0:e.exception)==null?void 0:i.values)==null?void 0:o[0])==null?void 0:a.stacktrace)==null?void 0:s.frames)||[]).map(l=>l.filename).filter(l=>!!l);return(n[n.length-1]||"").includes("@tryghost/portal")}function Qe({member:e={}}){if(kt({member:e})){const n=(e.subscriptions||[]).find(r=>["active","trialing","unpaid","past_due"].includes(r.status));return!(n!=null&&n.price)&&(n!=null&&n.plan)&&(n.price=n.plan),n}return null}function yr({member:e={}}){if(!e)return!1;const t=Qe({member:e});if(t){const{price:n}=t;return n&&n.amount===0}else if(!t&&e.paid)return!0;return!1}function kt({member:e={}}){return e&&e.paid}function Mb({product:e}){return e!=null&&e.monthlyPrice?e.monthlyPrice.currency:null}function zi({member:e}){var t,n,r;return((r=(n=(t=e==null?void 0:e.subscriptions)==null?void 0:t[0])==null?void 0:n.tier)==null?void 0:r.expiry_at)!==void 0}function Wc({member:e}){var t,n,r;return(r=(n=(t=e==null?void 0:e.subscriptions)==null?void 0:t[0])==null?void 0:n.tier)!=null&&r.expiry_at?xt(e.subscriptions[0].tier.expiry_at):""}function zb({site:e,member:t}){const n=Sn({member:t}),r=n==null?void 0:n.currency,i=Ea({site:e});return n!=null&&n.id?i.filter(o=>Da(Mb({product:o}),r)):i}function Fb({prices:e,currency:t}){return e.filter(n=>Da(n.currency||"",t||""))}function Qh({subscription:e}){var t,n;return e&&e.price?{...e.price,stripe_price_id:e.price.id,id:e.price.price_id,price:e.price.amount/100,name:e.price.nickname,tierId:(t=e.tier)==null?void 0:t.id,cadence:((n=e.price)==null?void 0:n.interval)==="month"?"month":"year",currency:e.price.currency.toLowerCase(),currency_symbol:fe(e.price.currency)}:null}function Sn({member:e}){const t=Qe({member:e});return Qh({subscription:t})}function Ub({priceId:e,site:t,member:n}){const r=Sn({member:n}),{tierId:i,cadence:o}=Cn({site:t,priceId:e});return(r==null?void 0:r.tierId)===i&&(r==null?void 0:r.cadence)===o}function Bb({member:e,subscriptionId:t}){return kt({member:e})?(e.subscriptions||[]).find(r=>r.id===t):null}function Jh({member:e}){var n;const t=Qe({member:e});return((n=t==null?void 0:t.tier)==null?void 0:n.name)||""}function _a({plans:e,site:t={}}){return e=e||Ra({site:t}),!e||e.length===0||e.length===1&&e[0].type==="free"}function Yb(e,t){const r=Ea({site:e}).find(i=>i.type==="paid");return t==="monthly"?{cadence:"month",tierId:r.id}:t==="yearly"?{cadence:"year",tierId:r.id}:{priceId:t}}function Hb({site:e={},priceId:t}){const n=$a({site:e});if(t==="free")return!n||n.length===0||n.find(r=>r.type==="free");if(n&&n.length>0&&t==="monthly"){const r=n.find(o=>o.name==="Monthly"),i=n.find(o=>o.interval==="month");return r||i}else if(n&&n.length>0&&t==="yearly"){const r=n.find(o=>o.name==="Yearly"),i=n.find(o=>o.interval==="year");return r||i}else if(n&&n.length>0&&t)return n.find(r=>r.id===t);return null}function at({site:e={},pageQuery:t=""}){return Ra({site:e,pageQuery:t}).length===0||e&&e.members_signup_access==="invite"}function Sa({site:e}){const{portal_products:t}=e||{};return!!t}function Xh({site:e}){return(e==null?void 0:e.comments_enabled)&&(e==null?void 0:e.comments_enabled)!=="off"}function Gb({site:e}){var t,n,r,i,o,a;try{if(!e)return null;if(e.tiers&&(e.products=e.tiers),e.products=(t=e.products)==null?void 0:t.map(s=>({...s,monthlyPrice:s.monthly_price,yearlyPrice:s.yearly_price})),e.is_stripe_configured=!!e.paid_members_enabled,e.members_signup_access="all",e.members_enabled||(e.members_signup_access="none"),e.members_invite_only&&(e.members_signup_access="invite"),e.allow_self_signup=!1,e.members_signup_access!=="all"&&(e.allow_self_signup=!1),e.paid_members_enabled&&(e.allow_self_signup=!0),(n=e.portal_plans)!=null&&n.includes("free")&&(e.allow_self_signup=!0),(i=(r=e.products)==null?void 0:r[0])!=null&&i.visibility){e.portal_products=e.products.filter(l=>l.visibility!=="none"&&l.type==="paid").map(l=>l.id);const s=e.products.find(l=>l.type==="free");s&&(e.portal_plans=(o=e.portal_plans)==null?void 0:o.filter(l=>l!=="free"),(s==null?void 0:s.visibility)==="public"&&((a=e.portal_plans)==null||a.push("free")))}return e}catch(s){console.warn("[Portal] Failed to read site data:",s)}}function Ea({site:e}){const{portal_products:t,products:n=[],portal_plans:r=[]}=e||{};return!r.includes("monthly")&&!r.includes("yearly")?[]:n.filter(i=>!!i).filter(i=>e.is_stripe_configured?!0:i.type!=="paid").filter(i=>!!(i.monthlyPrice&&i.yearlyPrice)).filter(i=>Object.keys(i.monthlyPrice).length>0&&Object.keys(i.yearlyPrice).length>0).filter(i=>t&&n.length>1?t.includes(i.id):!0).sort((i,o)=>{var a,s;return((a=i==null?void 0:i.monthlyPrice)==null?void 0:a.amount)-((s=o==null?void 0:o.monthlyPrice)==null?void 0:s.amount)}).map(i=>(i.monthlyPrice={...i.monthlyPrice,currency_symbol:fe(i.monthlyPrice.currency)},i.yearlyPrice={...i.yearlyPrice,currency_symbol:fe(i.yearlyPrice.currency)},i))}function vr({site:e}){const{products:t=[]}=e||{};return t.find(n=>n.type==="free")}function Vc({site:e}){const{products:t=[],portal_plans:n=[]}=e||{};return!n.includes("monthly")&&!n.includes("yearly")?[]:t.filter(r=>!!r).filter(r=>!!(r.monthlyPrice&&r.yearlyPrice)).filter(r=>Object.keys(r.monthlyPrice).length>0&&Object.keys(r.yearlyPrice).length>0).sort((r,i)=>{var o,a;return((o=r==null?void 0:r.monthlyPrice)==null?void 0:o.amount)-((a=i==null?void 0:i.monthlyPrice)==null?void 0:a.amount)}).map(r=>(r.monthlyPrice={...r.monthlyPrice,currency_symbol:fe(r.monthlyPrice.currency)},r.yearlyPrice={...r.yearlyPrice,currency_symbol:fe(r.yearlyPrice.currency)},r))}function Ca({site:e,pageQuery:t}){const n=Ea({site:e});return t==="free"&&En({site:e})?[]:(En({site:e})&&n.unshift({id:"free"}),n)}function Pa({site:e}){return Ca({site:e}).some(n=>!!(n!=null&&n.trial_days))}function Zh({site:e}){const t=vr({site:e});return(t==null?void 0:t.benefits)||[]}function em({site:e}){return Ta({site:e})?"Free membership":"Free"}function tm({site:e}){const t=vr({site:e});return t==null?void 0:t.description}function Wb({site:e}){var n;const t=vr({site:e});return!!(t!=null&&t.description||(n=t==null?void 0:t.benefits)!=null&&n.length)}function br({site:e,productId:t}){return Vc({site:e}).find(r=>r.id===t)}function Vb({site:e=null,products:t=null}){return!e&&!t?[]:(t||Ea({site:e})).reduce((i,o)=>(o.monthlyPrice&&o.yearlyPrice&&(i.push(o.monthlyPrice),i.push(o.yearlyPrice)),i),[])}function En({site:e}){const{allow_self_signup:t,portal_plans:n}=e||{};return t&&n.includes("free")}function wr({site:e}){const{newsletters:t=[]}=e||{};return t==null||t.sort((n,r)=>n.sort_order-r.sort_order),t}function Na({site:e}){const{newsletters:t}=e||{};return(t==null?void 0:t.length)>1}function nm({member:e}){var t;return(t=e==null?void 0:e.email_suppression)==null?void 0:t.suppressed}function Ta({site:e}){return Ca({site:e}).length===1&&En({site:e})}function Kc({sub:e}={}){return!!(e!=null&&e.trial_end_at&&!rm(new Date(e==null?void 0:e.trial_end_at)))}function rm(e){const t=new Date;return t.setHours(0,0,0,0),e<t}function im({site:e,priceId:t}){return t==="free"?vr({site:e}):Vc({site:e}).find(r=>{var i,o;return((i=r==null?void 0:r.monthlyPrice)==null?void 0:i.id)===t||((o=r==null?void 0:r.yearlyPrice)==null?void 0:o.id)===t})}function Cn({site:e,priceId:t}){var o;if(t==="free")return vr({site:e});const r=Vc({site:e}).find(a=>{var s,l;return((s=a==null?void 0:a.monthlyPrice)==null?void 0:s.id)===t||((l=a==null?void 0:a.yearlyPrice)==null?void 0:l.id)===t});let i="month";return((o=r==null?void 0:r.yearlyPrice)==null?void 0:o.id)===t&&(i="year"),{tierId:r==null?void 0:r.id,cadence:i}}function $a({site:e,products:t=null}){const{portal_plans:n=[],is_stripe_configured:r}=e||{};return r?Vb({site:e,products:t}).filter(o=>!!(o&&o.id)).map(o=>({...o,price_id:o.id,price:o.amount/100,name:o.nickname,currency_symbol:fe(o.currency)})).filter(o=>o.amount!==0&&o.type==="recurring").filter(o=>o.interval==="month"?n.includes("monthly"):o.interval==="year"?n.includes("yearly"):!1).sort((o,a)=>o.amount-a.amount).sort((o,a)=>!o.currency||!a.currency?0:o.currency.localeCompare(a.currency,void 0,{ignorePunctuation:!0})):[]}function Kb({site:e}){const t=$a({site:e});let n={currency:"usd",currency_symbol:"$"};return(t==null?void 0:t.length)>0&&(n.currency=t[0].currency,n.currency_symbol=t[0].currency_symbol),n}function Ra({site:e={},pageQuery:t=""}={}){const{allow_self_signup:n,portal_plans:r}=e||{},i=[];if(n&&r.includes("free")){const a=Kb({site:e});i.push({id:"free",type:"free",price:0,amount:0,name:em({site:e}),...a})}return t==="free"&&En({site:e})||$a({site:e}).forEach(s=>{i.push(s)}),i}const qb=({member:e})=>e?e.email:"",qc=({member:e})=>e?e.email_suppression:"",Qb=({site:e})=>e&&e.firstpromoter_account,Jb=({member:e})=>e?e.name:"",Oa=({site:e})=>{var n;const{members_support_address:t}=e||{};if((t==null?void 0:t.indexOf("@"))<0){const r=Qc({site:e}),i=(r==null?void 0:r.replace(/^(www)\.(?=[^/]*\..{2,5})/,""))||"";return`${t}@${i}`}if(((n=t==null?void 0:t.split("@"))==null?void 0:n.length)>1){const[r,i]=t.split("@"),o=(i==null?void 0:i.replace(/^(www)\.(?=[^/]*\..{2,5})/,""))||"";return`${r}@${o}`}return t||""},Xb=({site:e})=>{const t=wr({site:e}),n=t==null?void 0:t[0];if(n)return n.sender_email||`noreply@${Qc({site:e})}`},Qc=({site:e})=>{try{return new URL(e.url).origin.replace(/^http(s?):\/\//,"").replace(/\/$/,"")}catch{return e.url.replace(/^http(s?):\/\//,"").replace(/\/$/,"")}},fe=e=>Intl.NumberFormat("en",{currency:e,style:"currency"}).format(0).replace(/[\d\s.]/g,""),Jc=e=>isNaN(e)?0:e/100,Zb=(e={})=>{const t=fe(e.currency),n=Jc(e.amount);return`${t}${n}/${e.interval}`},xr=e=>e==null?"":e.toLocaleString(),X=({type:e,status:t,autoHide:n,duration:r=2600,closeable:i,state:o,message:a,meta:s={}})=>{let l=0;return o&&o.popupNotification&&(l=(o.popupNotification.count||0)+1),{type:e,status:t,autoHide:n,closeable:i,duration:r,meta:s,message:a,count:l}};function Da(e,t){return(e==null?void 0:e.toLowerCase())===(t==null?void 0:t.toLowerCase())}function om({site:e,pageQuery:t}){var i,o;const n=/^(?:(\S+?))?\/monthly$/,r=/^(?:(\S+?))?\/yearly$/;if(n.test(t||"")){const[,a]=t.match(n),s=br({site:e,productId:a});return(i=s==null?void 0:s.monthlyPrice)==null?void 0:i.id}else if(r.test(t||"")){const[,a]=t.match(r),s=br({site:e,productId:a});return(o=s==null?void 0:s.yearlyPrice)==null?void 0:o.id}return null}const ew=({offer:e,price:t,useFormatted:n=!1})=>{const r=t.amount;let i;return e.type==="fixed"&&Da(e.currency,t.currency)?(i=(r-e.amount)/100,i=i>0?i:0):e.type==="percent"?i=(r-r*e.amount/100)/100:i=r/100,n?Intl.NumberFormat("en",{currency:t==null?void 0:t.currency,style:"currency"}).format(i):i},tw=({site:e,offer:t})=>(t==null?void 0:t.status)!=="active"?!1:!!br({site:e,productId:t.tier.id});function nw({tier:e,priceId:t}){return e!=null&&e.monthly_price?{id:`price-${t}`,active:!0,type:"recurring",nickname:"Monthly",currency:e.currency,amount:e.monthly_price,interval:"month"}:null}function rw({tier:e,priceId:t}){return e!=null&&e.yearly_price?{id:`price-${t}`,active:!0,type:"recurring",nickname:"Yearly",currency:e.currency,amount:e.yearly_price,interval:"year"}:null}function iw({tier:e}){var t;return(t=e==null?void 0:e.benefits)==null?void 0:t.map(n=>({name:n}))}const ow=({tiers:e})=>{let t=0;return e.map(n=>{let r=nw({tier:n,priceId:t});t+=1;let i=rw({tier:n,priceId:t});t+=1;let o=iw({tier:n});return{...n,benefits:o,monthly_price:r,yearly_price:i}})};function La(){const e="ghost-history";try{const t=localStorage.getItem(e);if(t){const n=JSON.parse(t);if(Array.isArray(n))return n}}catch(t){console.warn("[Portal] Failed to load member URL history:",t)}}function aw({member:e}){if(!(e!=null&&e.created_at))return!1;const t=new Date,n=new Date(e.created_at),r=t.getTime()-n.getTime();return Math.round(r/(1e3*60*60))<24}const sw=function(){return lw()||am()},lw=function(){const[e]=window.location.hash.substr(1).split("?");return e==="/portal/preview"},am=function(){const[e]=window.location.hash.substr(1).split("?");return e==="/portal/preview/offer"},cw={preview:sw,offerPreview:am,dev:function({customSiteUrl:e=""}={}){return!1},test:function(){return!1}},K=(e=[],t={})=>e.some(n=>{const r=cw[n];return!!(r&&r(t))}),sm={"icon-1":$b,"icon-2":Rb,"icon-3":Ob,"icon-4":Db,"icon-5":Lb},lm=({brandColor:e,hasText:t})=>({frame:{zIndex:"3999998",position:"fixed",bottom:"0",right:"0",width:"500px",maxWidth:"500px",height:"98px",animation:"250ms ease 0s 1 normal none running animation-bhegco",transition:"opacity 0.3s ease 0s",overflow:"hidden",...{...t?{}:{width:"105px"},...K(["preview"])?{opacity:1}:{}}},userIcon:{width:"34px",height:"34px",color:"#fff"},buttonIcon:{width:"24px",height:"24px",color:"#fff"},closeIcon:{width:"20px",height:"20px",color:"#fff"}});class cm extends q.Component{constructor(t){super(t),this.state={},this.container=q.createRef(),this.height=null,this.width=null}updateHeight(t){this.props.updateHeight&&this.props.updateHeight(t)}updateWidth(t){this.props.updateWidth&&this.props.updateWidth(t)}componentDidMount(){this.container&&(this.height=this.container.current&&this.container.current.offsetHeight,this.width=this.container.current&&this.container.current.offsetWidth,this.updateHeight(this.height),this.updateWidth(this.width))}componentDidUpdate(){if(this.container){const t=this.container.current&&this.container.current.offsetHeight;let n=this.container.current&&this.container.current.offsetWidth;t!==this.height&&(this.height=t,this.updateHeight(this.height)),n!==this.width&&(this.width=n,this.updateWidth(this.width))}}renderTriggerIcon(){const{portal_button_icon:t="",portal_button_style:n=""}=this.context.site||{},r=lm({brandColor:this.context.brandColor}),i=this.context.member&&this.context.member.avatar_image;if(!n.includes("icon")&&!this.context.member)return null;if(i)return u(Yc,{gravatar:i});if(this.context.member)return u(Bc,{style:r.userIcon});if(Object.keys(sm).includes(t)){const o=sm[t];return u(o,{style:r.buttonIcon})}else return t?u("img",{style:{width:"26px",height:"26px"},src:t,alt:""}):(this.hasText()&&(r.userIcon.width="26px",r.userIcon.height="26px"),u(Bc,{style:r.userIcon}))}hasText(){const{portal_button_signup_text:t,portal_button_style:n}=this.context.site;return["icon-and-text","text-only"].includes(n)&&!this.context.member&&t}renderText(){const{portal_button_signup_text:t}=this.context.site;return this.hasText()?b("span",{className:"gh-portal-triggerbtn-label",children:[" ",t," "]}):null}onToggle(){const{showPopup:t,member:n,site:r}=this.context;if(t)this.context.onAction("closePopup");else{const i=at({site:r})?"signin":"signup",o=n?"accountHome":i;this.context.onAction("openPopup",{page:o})}}render(){const t=this.hasText(),{member:n}=this.context,r=n?"halo":"";return t?u("div",{className:"gh-portal-triggerbtn-wrapper",ref:this.container,children:b("div",{className:"gh-portal-triggerbtn-container with-label",onClick:i=>this.onToggle(i),"data-testid":"portal-trigger-button",children:[this.renderTriggerIcon(),t?this.renderText():""]})}):u("div",{className:"gh-portal-triggerbtn-wrapper",children:u("div",{className:"gh-portal-triggerbtn-container "+r,onClick:i=>this.onToggle(i),"data-testid":"portal-trigger-button",children:this.renderTriggerIcon()})})}}Z(cm,"contextType",R);class um extends q.Component{constructor(t){super(t),this.state={width:null}}onWidthChange(t){this.setState({width:t})}hasText(){const{portal_button_signup_text:t,portal_button_style:n}=this.context.site;return["icon-and-text","text-only"].includes(n)&&!this.context.member&&t}renderFrameStyles(){const t=`
|
|
385
|
+
`+Kh,xt=e=>{if(!e)return"";const t=new Date(e),n={year:"numeric",month:"short",day:"numeric"};return t.toLocaleDateString("en-GB",n)};function Gc(){const[e]=window.location.hash.substr(1).split("?");e&&/^\/portal\/?(?:\/(\w+(?:\/\w+)*))?\/?$/.test(e)&&window.history.pushState("",document.title,window.location.pathname+window.location.search)}function jb({page:e}){const t={signin:"#/portal/signin",signup:"#/portal/signup"};return Object.keys(t).includes(e)?t[e]:t.default}function qh({page:e,siteUrl:t}){const n=t||`${window.location.protocol}//${window.location.host}${window.location.pathname}`,r=jb({page:e});return`${n}${r}`}function mr(){return!(navigator&&navigator.cookieEnabled)}function Ab({event:e}){var i,o,a,s;const n=(((s=(a=(o=(i=e==null?void 0:e.exception)==null?void 0:i.values)==null?void 0:o[0])==null?void 0:a.stacktrace)==null?void 0:s.frames)||[]).map(l=>l.filename).filter(l=>!!l);return(n[n.length-1]||"").includes("@tryghost/portal")}function Qe({member:e={}}){if(kt({member:e})){const n=(e.subscriptions||[]).find(r=>["active","trialing","unpaid","past_due"].includes(r.status));return!(n!=null&&n.price)&&(n!=null&&n.plan)&&(n.price=n.plan),n}return null}function yr({member:e={}}){if(!e)return!1;const t=Qe({member:e});if(t){const{price:n}=t;return n&&n.amount===0}else if(!t&&e.paid)return!0;return!1}function kt({member:e={}}){return e&&e.paid}function Mb({product:e}){return e!=null&&e.monthlyPrice?e.monthlyPrice.currency:null}function zi({member:e}){var t,n,r;return((r=(n=(t=e==null?void 0:e.subscriptions)==null?void 0:t[0])==null?void 0:n.tier)==null?void 0:r.expiry_at)!==void 0}function Wc({member:e}){var t,n,r;return(r=(n=(t=e==null?void 0:e.subscriptions)==null?void 0:t[0])==null?void 0:n.tier)!=null&&r.expiry_at?xt(e.subscriptions[0].tier.expiry_at):""}function zb({site:e,member:t}){const n=Sn({member:t}),r=n==null?void 0:n.currency,i=Ea({site:e});return n!=null&&n.id?i.filter(o=>Da(Mb({product:o}),r)):i}function Fb({prices:e,currency:t}){return e.filter(n=>Da(n.currency||"",t||""))}function Qh({subscription:e}){var t,n;return e&&e.price?{...e.price,stripe_price_id:e.price.id,id:e.price.price_id,price:e.price.amount/100,name:e.price.nickname,tierId:(t=e.tier)==null?void 0:t.id,cadence:((n=e.price)==null?void 0:n.interval)==="month"?"month":"year",currency:e.price.currency.toLowerCase(),currency_symbol:fe(e.price.currency)}:null}function Sn({member:e}){const t=Qe({member:e});return Qh({subscription:t})}function Ub({priceId:e,site:t,member:n}){const r=Sn({member:n}),{tierId:i,cadence:o}=Cn({site:t,priceId:e});return(r==null?void 0:r.tierId)===i&&(r==null?void 0:r.cadence)===o}function Bb({member:e,subscriptionId:t}){return kt({member:e})?(e.subscriptions||[]).find(r=>r.id===t):null}function Jh({member:e}){var n;const t=Qe({member:e});return((n=t==null?void 0:t.tier)==null?void 0:n.name)||""}function _a({plans:e,site:t={}}){return e=e||Ra({site:t}),!e||e.length===0||e.length===1&&e[0].type==="free"}function Yb(e,t){const r=Ea({site:e}).find(i=>i.type==="paid");return t==="monthly"?{cadence:"month",tierId:r.id}:t==="yearly"?{cadence:"year",tierId:r.id}:{priceId:t}}function Hb({site:e={},priceId:t}){const n=$a({site:e});if(t==="free")return!n||n.length===0||n.find(r=>r.type==="free");if(n&&n.length>0&&t==="monthly"){const r=n.find(o=>o.name==="Monthly"),i=n.find(o=>o.interval==="month");return r||i}else if(n&&n.length>0&&t==="yearly"){const r=n.find(o=>o.name==="Yearly"),i=n.find(o=>o.interval==="year");return r||i}else if(n&&n.length>0&&t)return n.find(r=>r.id===t);return null}function at({site:e={},pageQuery:t=""}){return Ra({site:e,pageQuery:t}).length===0||e&&e.members_signup_access==="invite"}function Sa({site:e}){const{portal_products:t}=e||{};return!!t}function Xh({site:e}){return(e==null?void 0:e.comments_enabled)&&(e==null?void 0:e.comments_enabled)!=="off"}function Gb({site:e}){var t,n,r,i,o,a;try{if(!e)return null;if(e.tiers&&(e.products=e.tiers),e.products=(t=e.products)==null?void 0:t.map(s=>({...s,monthlyPrice:s.monthly_price,yearlyPrice:s.yearly_price})),e.is_stripe_configured=!!e.paid_members_enabled,e.members_signup_access="all",e.members_enabled||(e.members_signup_access="none"),e.members_invite_only&&(e.members_signup_access="invite"),e.allow_self_signup=!1,e.members_signup_access!=="all"&&(e.allow_self_signup=!1),e.paid_members_enabled&&(e.allow_self_signup=!0),(n=e.portal_plans)!=null&&n.includes("free")&&(e.allow_self_signup=!0),(i=(r=e.products)==null?void 0:r[0])!=null&&i.visibility){e.portal_products=e.products.filter(l=>l.visibility!=="none"&&l.type==="paid").map(l=>l.id);const s=e.products.find(l=>l.type==="free");s&&(e.portal_plans=(o=e.portal_plans)==null?void 0:o.filter(l=>l!=="free"),(s==null?void 0:s.visibility)==="public"&&((a=e.portal_plans)==null||a.push("free")))}return e}catch(s){console.warn("[Portal] Failed to read site data:",s)}}function Ea({site:e}){const{portal_products:t,products:n=[],portal_plans:r=[]}=e||{};return!r.includes("monthly")&&!r.includes("yearly")?[]:n.filter(i=>!!i).filter(i=>e.is_stripe_configured?!0:i.type!=="paid").filter(i=>!!(i.monthlyPrice&&i.yearlyPrice)).filter(i=>Object.keys(i.monthlyPrice).length>0&&Object.keys(i.yearlyPrice).length>0).filter(i=>t&&n.length>1?t.includes(i.id):!0).sort((i,o)=>{var a,s;return((a=i==null?void 0:i.monthlyPrice)==null?void 0:a.amount)-((s=o==null?void 0:o.monthlyPrice)==null?void 0:s.amount)}).map(i=>(i.monthlyPrice={...i.monthlyPrice,currency_symbol:fe(i.monthlyPrice.currency)},i.yearlyPrice={...i.yearlyPrice,currency_symbol:fe(i.yearlyPrice.currency)},i))}function vr({site:e}){const{products:t=[]}=e||{};return t.find(n=>n.type==="free")}function Vc({site:e}){const{products:t=[],portal_plans:n=[]}=e||{};return!n.includes("monthly")&&!n.includes("yearly")?[]:t.filter(r=>!!r).filter(r=>!!(r.monthlyPrice&&r.yearlyPrice)).filter(r=>Object.keys(r.monthlyPrice).length>0&&Object.keys(r.yearlyPrice).length>0).sort((r,i)=>{var o,a;return((o=r==null?void 0:r.monthlyPrice)==null?void 0:o.amount)-((a=i==null?void 0:i.monthlyPrice)==null?void 0:a.amount)}).map(r=>(r.monthlyPrice={...r.monthlyPrice,currency_symbol:fe(r.monthlyPrice.currency)},r.yearlyPrice={...r.yearlyPrice,currency_symbol:fe(r.yearlyPrice.currency)},r))}function Ca({site:e,pageQuery:t}){const n=Ea({site:e});return t==="free"&&En({site:e})?[]:(En({site:e})&&n.unshift({id:"free"}),n)}function Pa({site:e}){return Ca({site:e}).some(n=>!!(n!=null&&n.trial_days))}function Zh({site:e}){const t=vr({site:e});return(t==null?void 0:t.benefits)||[]}function eg({site:e}){return Ta({site:e})?"Free membership":"Free"}function tg({site:e}){const t=vr({site:e});return t==null?void 0:t.description}function Wb({site:e}){var n;const t=vr({site:e});return!!(t!=null&&t.description||(n=t==null?void 0:t.benefits)!=null&&n.length)}function br({site:e,productId:t}){return Vc({site:e}).find(r=>r.id===t)}function Vb({site:e=null,products:t=null}){return!e&&!t?[]:(t||Ea({site:e})).reduce((i,o)=>(o.monthlyPrice&&o.yearlyPrice&&(i.push(o.monthlyPrice),i.push(o.yearlyPrice)),i),[])}function En({site:e}){const{allow_self_signup:t,portal_plans:n}=e||{};return t&&n.includes("free")}function wr({site:e}){const{newsletters:t=[]}=e||{};return t==null||t.sort((n,r)=>n.sort_order-r.sort_order),t}function Na({site:e}){const{newsletters:t}=e||{};return(t==null?void 0:t.length)>1}function ng({member:e}){var t;return(t=e==null?void 0:e.email_suppression)==null?void 0:t.suppressed}function Ta({site:e}){return Ca({site:e}).length===1&&En({site:e})}function Kc({sub:e}={}){return!!(e!=null&&e.trial_end_at&&!rg(new Date(e==null?void 0:e.trial_end_at)))}function rg(e){const t=new Date;return t.setHours(0,0,0,0),e<t}function ig({site:e,priceId:t}){return t==="free"?vr({site:e}):Vc({site:e}).find(r=>{var i,o;return((i=r==null?void 0:r.monthlyPrice)==null?void 0:i.id)===t||((o=r==null?void 0:r.yearlyPrice)==null?void 0:o.id)===t})}function Cn({site:e,priceId:t}){var o;if(t==="free")return vr({site:e});const r=Vc({site:e}).find(a=>{var s,l;return((s=a==null?void 0:a.monthlyPrice)==null?void 0:s.id)===t||((l=a==null?void 0:a.yearlyPrice)==null?void 0:l.id)===t});let i="month";return((o=r==null?void 0:r.yearlyPrice)==null?void 0:o.id)===t&&(i="year"),{tierId:r==null?void 0:r.id,cadence:i}}function $a({site:e,products:t=null}){const{portal_plans:n=[],is_stripe_configured:r}=e||{};return r?Vb({site:e,products:t}).filter(o=>!!(o&&o.id)).map(o=>({...o,price_id:o.id,price:o.amount/100,name:o.nickname,currency_symbol:fe(o.currency)})).filter(o=>o.amount!==0&&o.type==="recurring").filter(o=>o.interval==="month"?n.includes("monthly"):o.interval==="year"?n.includes("yearly"):!1).sort((o,a)=>o.amount-a.amount).sort((o,a)=>!o.currency||!a.currency?0:o.currency.localeCompare(a.currency,void 0,{ignorePunctuation:!0})):[]}function Kb({site:e}){const t=$a({site:e});let n={currency:"usd",currency_symbol:"$"};return(t==null?void 0:t.length)>0&&(n.currency=t[0].currency,n.currency_symbol=t[0].currency_symbol),n}function Ra({site:e={},pageQuery:t=""}={}){const{allow_self_signup:n,portal_plans:r}=e||{},i=[];if(n&&r.includes("free")){const a=Kb({site:e});i.push({id:"free",type:"free",price:0,amount:0,name:eg({site:e}),...a})}return t==="free"&&En({site:e})||$a({site:e}).forEach(s=>{i.push(s)}),i}const qb=({member:e})=>e?e.email:"",qc=({member:e})=>e?e.email_suppression:"",Qb=({site:e})=>e&&e.firstpromoter_account,Jb=({member:e})=>e?e.name:"",Oa=({site:e})=>{var n;const{members_support_address:t}=e||{};if((t==null?void 0:t.indexOf("@"))<0){const r=Qc({site:e}),i=(r==null?void 0:r.replace(/^(www)\.(?=[^/]*\..{2,5})/,""))||"";return`${t}@${i}`}if(((n=t==null?void 0:t.split("@"))==null?void 0:n.length)>1){const[r,i]=t.split("@"),o=(i==null?void 0:i.replace(/^(www)\.(?=[^/]*\..{2,5})/,""))||"";return`${r}@${o}`}return t||""},Xb=({site:e})=>{const t=wr({site:e}),n=t==null?void 0:t[0];if(n)return n.sender_email||`noreply@${Qc({site:e})}`},Qc=({site:e})=>{try{return new URL(e.url).origin.replace(/^http(s?):\/\//,"").replace(/\/$/,"")}catch{return e.url.replace(/^http(s?):\/\//,"").replace(/\/$/,"")}},fe=e=>Intl.NumberFormat("en",{currency:e,style:"currency"}).format(0).replace(/[\d\s.]/g,""),Jc=e=>isNaN(e)?0:e/100,Zb=(e={})=>{const t=fe(e.currency),n=Jc(e.amount);return`${t}${n}/${e.interval}`},xr=e=>e==null?"":e.toLocaleString(),X=({type:e,status:t,autoHide:n,duration:r=2600,closeable:i,state:o,message:a,meta:s={}})=>{let l=0;return o&&o.popupNotification&&(l=(o.popupNotification.count||0)+1),{type:e,status:t,autoHide:n,closeable:i,duration:r,meta:s,message:a,count:l}};function Da(e,t){return(e==null?void 0:e.toLowerCase())===(t==null?void 0:t.toLowerCase())}function og({site:e,pageQuery:t}){var i,o;const n=/^(?:(\S+?))?\/monthly$/,r=/^(?:(\S+?))?\/yearly$/;if(n.test(t||"")){const[,a]=t.match(n),s=br({site:e,productId:a});return(i=s==null?void 0:s.monthlyPrice)==null?void 0:i.id}else if(r.test(t||"")){const[,a]=t.match(r),s=br({site:e,productId:a});return(o=s==null?void 0:s.yearlyPrice)==null?void 0:o.id}return null}const ew=({offer:e,price:t,useFormatted:n=!1})=>{const r=t.amount;let i;return e.type==="fixed"&&Da(e.currency,t.currency)?(i=(r-e.amount)/100,i=i>0?i:0):e.type==="percent"?i=(r-r*e.amount/100)/100:i=r/100,n?Intl.NumberFormat("en",{currency:t==null?void 0:t.currency,style:"currency"}).format(i):i},tw=({site:e,offer:t})=>(t==null?void 0:t.status)!=="active"?!1:!!br({site:e,productId:t.tier.id});function nw({tier:e,priceId:t}){return e!=null&&e.monthly_price?{id:`price-${t}`,active:!0,type:"recurring",nickname:"Monthly",currency:e.currency,amount:e.monthly_price,interval:"month"}:null}function rw({tier:e,priceId:t}){return e!=null&&e.yearly_price?{id:`price-${t}`,active:!0,type:"recurring",nickname:"Yearly",currency:e.currency,amount:e.yearly_price,interval:"year"}:null}function iw({tier:e}){var t;return(t=e==null?void 0:e.benefits)==null?void 0:t.map(n=>({name:n}))}const ow=({tiers:e})=>{let t=0;return e.map(n=>{let r=nw({tier:n,priceId:t});t+=1;let i=rw({tier:n,priceId:t});t+=1;let o=iw({tier:n});return{...n,benefits:o,monthly_price:r,yearly_price:i}})};function La(){const e="ghost-history";try{const t=localStorage.getItem(e);if(t){const n=JSON.parse(t);if(Array.isArray(n))return n}}catch(t){console.warn("[Portal] Failed to load member URL history:",t)}}function aw({member:e}){if(!(e!=null&&e.created_at))return!1;const t=new Date,n=new Date(e.created_at),r=t.getTime()-n.getTime();return Math.round(r/(1e3*60*60))<24}const sw=function(){return lw()||ag()},lw=function(){const[e]=window.location.hash.substr(1).split("?");return e==="/portal/preview"},ag=function(){const[e]=window.location.hash.substr(1).split("?");return e==="/portal/preview/offer"},cw={preview:sw,offerPreview:ag,dev:function({customSiteUrl:e=""}={}){return!1},test:function(){return!1}},K=(e=[],t={})=>e.some(n=>{const r=cw[n];return!!(r&&r(t))}),sg={"icon-1":$b,"icon-2":Rb,"icon-3":Ob,"icon-4":Db,"icon-5":Lb},lg=({brandColor:e,hasText:t})=>({frame:{zIndex:"3999998",position:"fixed",bottom:"0",right:"0",width:"500px",maxWidth:"500px",height:"98px",animation:"250ms ease 0s 1 normal none running animation-bhegco",transition:"opacity 0.3s ease 0s",overflow:"hidden",...{...t?{}:{width:"105px"},...K(["preview"])?{opacity:1}:{}}},userIcon:{width:"34px",height:"34px",color:"#fff"},buttonIcon:{width:"24px",height:"24px",color:"#fff"},closeIcon:{width:"20px",height:"20px",color:"#fff"}});class cg extends q.Component{constructor(t){super(t),this.state={},this.container=q.createRef(),this.height=null,this.width=null}updateHeight(t){this.props.updateHeight&&this.props.updateHeight(t)}updateWidth(t){this.props.updateWidth&&this.props.updateWidth(t)}componentDidMount(){this.container&&(this.height=this.container.current&&this.container.current.offsetHeight,this.width=this.container.current&&this.container.current.offsetWidth,this.updateHeight(this.height),this.updateWidth(this.width))}componentDidUpdate(){if(this.container){const t=this.container.current&&this.container.current.offsetHeight;let n=this.container.current&&this.container.current.offsetWidth;t!==this.height&&(this.height=t,this.updateHeight(this.height)),n!==this.width&&(this.width=n,this.updateWidth(this.width))}}renderTriggerIcon(){const{portal_button_icon:t="",portal_button_style:n=""}=this.context.site||{},r=lg({brandColor:this.context.brandColor}),i=this.context.member&&this.context.member.avatar_image;if(!n.includes("icon")&&!this.context.member)return null;if(i)return u(Yc,{gravatar:i});if(this.context.member)return u(Bc,{style:r.userIcon});if(Object.keys(sg).includes(t)){const o=sg[t];return u(o,{style:r.buttonIcon})}else return t?u("img",{style:{width:"26px",height:"26px"},src:t,alt:""}):(this.hasText()&&(r.userIcon.width="26px",r.userIcon.height="26px"),u(Bc,{style:r.userIcon}))}hasText(){const{portal_button_signup_text:t,portal_button_style:n}=this.context.site;return["icon-and-text","text-only"].includes(n)&&!this.context.member&&t}renderText(){const{portal_button_signup_text:t}=this.context.site;return this.hasText()?b("span",{className:"gh-portal-triggerbtn-label",children:[" ",t," "]}):null}onToggle(){const{showPopup:t,member:n,site:r}=this.context;if(t)this.context.onAction("closePopup");else{const i=at({site:r})?"signin":"signup",o=n?"accountHome":i;this.context.onAction("openPopup",{page:o})}}render(){const t=this.hasText(),{member:n}=this.context,r=n?"halo":"";return t?u("div",{className:"gh-portal-triggerbtn-wrapper",ref:this.container,children:b("div",{className:"gh-portal-triggerbtn-container with-label",onClick:i=>this.onToggle(i),"data-testid":"portal-trigger-button",children:[this.renderTriggerIcon(),t?this.renderText():""]})}):u("div",{className:"gh-portal-triggerbtn-wrapper",children:u("div",{className:"gh-portal-triggerbtn-container "+r,onClick:i=>this.onToggle(i),"data-testid":"portal-trigger-button",children:this.renderTriggerIcon()})})}}Z(cg,"contextType",R);class ug extends q.Component{constructor(t){super(t),this.state={width:null}}onWidthChange(t){this.setState({width:t})}hasText(){const{portal_button_signup_text:t,portal_button_style:n}=this.context.site;return["icon-and-text","text-only"].includes(n)&&!this.context.member&&t}renderFrameStyles(){const t=`
|
|
386
386
|
:root {
|
|
387
387
|
--brandcolor: ${this.context.brandColor}
|
|
388
388
|
}
|
|
389
|
-
`+
|
|
389
|
+
`+Ib;return u("style",{dangerouslySetInnerHTML:{__html:t}})}render(){const{portal_button:t}=this.context.site,{showPopup:n}=this.context;if(!t||K(["offerPreview"]))return null;const r=this.hasText(),o={...lg({brandColor:this.context.brandColor,hasText:r}).frame};if(this.state.width){const a=this.state.width+2;o.width=`${a}px`}return u(Uc,{dataTestId:"portal-trigger-frame",className:"gh-portal-triggerbtn-iframe",style:o,title:"portal-trigger",head:this.renderFrameStyles(),children:u(cg,{isPopupOpen:n,updateWidth:a=>this.onWidthChange(a)})})}}Z(ug,"contextType",R);const uw=Hc+`
|
|
390
390
|
.gh-portal-notification-wrapper {
|
|
391
391
|
position: relative;
|
|
392
392
|
overflow: hidden;
|
|
@@ -517,11 +517,11 @@ Url: ${ua(e)}`),!0)}function m1(e,t){return e.type||!t||!t.length?!1:b1(e).some(
|
|
|
517
517
|
animation-name: notification-slideout-mobile;
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
|
-
`,Xc=e=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},x.createElement("defs",null,x.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.2px !important;}")),x.createElement("path",{className:"a",d:"M.75 23.249l22.5-22.5M23.25 23.249L.75.749"})),
|
|
520
|
+
`,Xc=e=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},x.createElement("defs",null,x.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.2px !important;}")),x.createElement("path",{className:"a",d:"M.75 23.249l22.5-22.5M23.25 23.249L.75.749"})),dg=e=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},x.createElement("defs",null,x.createElement("style",null,".checkmark-icon-fill{fill:currentColor;}")),x.createElement("path",{className:"checkmark-icon-fill",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})),Zc=e=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},x.createElement("defs",null,x.createElement("style",null,".warning-icon-fill{fill:currentColor;}")),x.createElement("path",{className:"warning-icon-fill",d:"M23.25,23.235a.75.75,0,0,0,.661-1.105l-11.25-21a.782.782,0,0,0-1.322,0l-11.25,21A.75.75,0,0,0,.75,23.235ZM12,20.485a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,20.485Zm0-12.25a1,1,0,0,1,1,1V14.7a1,1,0,0,1-2,0V9.235A1,1,0,0,1,12,8.235Z"})),dw=({qsParams:e,action:t,status:n})=>{if(n&&["true","false"].includes(n)){const r=JSON.parse(n);return{type:t,status:r?"success":"error",duration:3e3,autoHide:!!r}}return{}},pw=({status:e,billingOnly:t})=>{if(!t&&["success"].includes(e))return{type:"stripe:checkout",status:["success"].includes(e)?"success":"warning",duration:3e3,autoHide:!0};if(t&&["billing-update-success","billing-update-cancel"].includes(e))return{type:"stripe:billing-update",status:e==="billing-update-success"?"success":"warning",duration:3e3,autoHide:!0,closeable:!0}},pg=(e=[])=>{const t=window.location.search||"",n=new URLSearchParams(t);e.forEach(i=>{n.delete(i)});const r=n.toString()?`?${n}`:"";window.history.replaceState({},"",`${window.location.pathname}${r}`)};function fg({billingOnly:e=!1}={}){const t=window.location.search;if(!t)return null;const n=new URLSearchParams(t),r=n.get("action"),i=n.get("success"),o=n.get("stripe");let a=null;return o?pw({qsParams:n,status:o,billingOnly:e}):r&&i&&!e?dw({qsParams:n,action:r,status:i}):a}const fw=()=>({frame:{zIndex:"4000000",position:"fixed",top:"0",right:"0",maxWidth:"415px",width:"100%",height:"120px",animation:"250ms ease 0s 1 normal none running animation-bhegco",transition:"opacity 0.3s ease 0s",overflow:"hidden"}}),hw=({type:e,status:t,context:n})=>{const r=qh({page:"signin",siteUrl:n.site.url}),i=qh({page:"signup",siteUrl:n.site.url});if(e==="signin"&&t==="success"&&n.member){const o=n.member.firstname||"";return b("p",{children:["Welcome back",o?", "+o:"","!",u("br",{}),"You've successfully signed in."]})}else{if(e==="signin"&&t==="error")return b("p",{children:["Could not sign in. Login link expired. ",u("a",{href:r,target:"_parent",children:"Click here to retry"})]});if(e==="signup"&&t==="success")return b("p",{children:["You've successfully subscribed to ",u("br",{}),u("strong",{children:n.site.title})]});if(e==="signup-paid"&&t==="success")return b("p",{children:["You've successfully subscribed to ",u("br",{}),u("strong",{children:n.site.title})]});if(e==="updateEmail"&&t==="success")return u("p",{children:"Success! Your email is updated."});if(e==="updateEmail"&&t==="error")return u("p",{children:"Could not update email! Invalid link."});if(e==="signup"&&t==="error")return b("p",{children:["Signup error: Invalid link ",u("br",{}),u("a",{href:i,target:"_parent",children:"Click here to retry"})]});if(e==="signup-paid"&&t==="error")return b("p",{children:["Signup error: Invalid link ",u("br",{}),u("a",{href:i,target:"_parent",children:"Click here to retry"})]});if(e==="stripe:checkout"&&t==="success")return n.member?u("p",{children:"Success! Your account is fully activated, you now have access to all content."}):u("p",{children:"Success! Check your email for magic link to sign-in."});if(e==="stripe:checkout"&&t==="warning")return n.member?u("p",{children:"Plan upgrade was cancelled."}):u("p",{children:"Plan checkout was cancelled."})}return u("p",{children:t==="success"?"Success":"Error"})};class hg extends q.Component{constructor(){super(),this.state={className:""}}componentWillUnmount(){clearTimeout(this.timeoutId)}onNotificationClose(){this.props.onHideNotification()}componentDidUpdate(){const{showPopup:t}=this.context;!this.state.className&&t&&this.setState({className:"slideout"})}componentDidMount(){const{autoHide:t,duration:n=2400}=this.props,{showPopup:r}=this.context;r?this.setState({className:"slideout"}):t&&(this.timeoutId=setTimeout(()=>{this.setState({className:"slideout"})},n))}onAnimationEnd(t){(t.animationName==="notification-slideout"||t.animationName==="notification-slideout-mobile")&&this.props.onHideNotification(t)}render(){const{type:t,status:n}=this.props,{className:r=""}=this.state,i=n?` ${n}`:" neutral",o=r?` ${r}`:"";return u("div",{className:"gh-portal-notification-wrapper",children:b("div",{className:`gh-portal-notification${i}${o}`,onAnimationEnd:a=>this.onAnimationEnd(a),children:[n==="error"?u(Zc,{className:"gh-portal-notification-icon error",alt:""}):u(dg,{className:"gh-portal-notification-icon success",alt:""}),u(hw,{type:t,status:n,context:this.context}),u(Xc,{className:"gh-portal-notification-closeicon",alt:"Close",onClick:a=>this.onNotificationClose(a)})]})})}}Z(hg,"contextType",R);class gg extends q.Component{constructor(){super();const{type:t,status:n,autoHide:r,duration:i}=fg()||{};this.state={active:!0,type:t,status:n,autoHide:r,duration:i,className:""}}onHideNotification(){const t=this.state.type,n=[];["signin","signup"].includes(t)?n.push("action","success"):["stripe:checkout"].includes(t)&&n.push("stripe"),pg(n),this.context.onAction("refreshMemberData"),this.setState({active:!1})}renderFrameStyles(){const t=`
|
|
521
521
|
:root {
|
|
522
522
|
--brandcolor: ${this.context.brandColor}
|
|
523
523
|
}
|
|
524
|
-
`+uw;return u("style",{dangerouslySetInnerHTML:{__html:t}})}render(){const n={...fw({brandColor:this.context.brandColor}).frame};if(!this.state.active)return null;const{type:r,status:i,autoHide:o,duration:a}=this.state;return r&&i?u(Uc,{style:n,title:"portal-notification",head:this.renderFrameStyles(),className:"gh-portal-notification-iframe",children:u(
|
|
524
|
+
`+uw;return u("style",{dangerouslySetInnerHTML:{__html:t}})}render(){const n={...fw({brandColor:this.context.brandColor}).frame};if(!this.state.active)return null;const{type:r,status:i,autoHide:o,duration:a}=this.state;return r&&i?u(Uc,{style:n,title:"portal-notification",head:this.renderFrameStyles(),className:"gh-portal-notification-iframe",children:u(hg,{type:r,status:i,autoHide:o,duration:a,onHideNotification:s=>this.onHideNotification(s)})}):null}}Z(gg,"contextType",R);const Fi=e=>x.createElement("svg",{id:"loader-1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",width:"40px",height:"40px",viewBox:"0 0 40 40",enableBackground:"new 0 0 40 40",xmlSpace:"preserve",...e},x.createElement("path",{opacity:.2,fill:"#000",d:"M20.201,5.169c-8.254,0-14.946,6.692-14.946,14.946c0,8.255,6.692,14.946,14.946,14.946 s14.946-6.691,14.946-14.946C35.146,11.861,28.455,5.169,20.201,5.169z M20.201,31.749c-6.425,0-11.634-5.208-11.634-11.634 c0-6.425,5.209-11.634,11.634-11.634c6.425,0,11.633,5.209,11.633,11.634C31.834,26.541,26.626,31.749,20.201,31.749z"}),x.createElement("path",{fill:"#000",d:"M26.013,10.047l1.654-2.866c-2.198-1.272-4.743-2.012-7.466-2.012h0v3.312h0 C22.32,8.481,24.301,9.057,26.013,10.047z"},x.createElement("animateTransform",{attributeType:"xml",attributeName:"transform",type:"rotate",from:"0 20 20",to:"360 20 20",dur:"0.5s",repeatCount:"indefinite"}))),gw=`
|
|
525
525
|
.gh-portal-btn-main {
|
|
526
526
|
box-shadow: none;
|
|
527
527
|
position: relative;
|
|
@@ -573,7 +573,7 @@ Url: ${ua(e)}`),!0)}function m1(e,t){return e.type||!t||!t.length?!1:b1(e).some(
|
|
|
573
573
|
.gh-portal-loadingicon.dark rect {
|
|
574
574
|
fill: var(--grey0);
|
|
575
575
|
}
|
|
576
|
-
`,
|
|
576
|
+
`,mw=({brandColor:e,retry:t,disabled:n,style:r={},isPrimary:i})=>{let o=e||"#3eb0ef",a="1.0",s="auto";return n&&(a="0.5",s="none"),{button:{...i?{color:"#fff"}:{},...i?{backgroundColor:o}:{},opacity:a,pointerEvents:s,...r||{}}}};function he({label:e,onClick:t,disabled:n=!1,retry:r=!1,brandColor:i,isRunning:o,isPrimary:a=!0,isDestructive:s=!1,classes:l="",style:c={},tabindex:p=void 0,dataTestId:d}){let f=mw({disabled:n,retry:r,brandColor:i,style:c,isPrimary:a}),y="gh-portal-btn";a&&(y+=" gh-portal-btn-main gh-portal-btn-primary"),s&&(y+=" gh-portal-btn-destructive"),l&&(y+=" "+l),mr()&&(n=!0);const v=a?"gh-portal-loadingicon":"gh-portal-loadingicon dark";return u("button",{className:y,style:f.button,onClick:_=>t(_),disabled:n,type:"submit",tabIndex:p,"data-test-button":d,children:o?u(Fi,{className:v}):e})}const yw=e=>x.createElement("svg",{id:"Regular",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},x.createElement("defs",null,x.createElement("style",null,".cls-1{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px;fill-rule:evenodd;}")),x.createElement("path",{className:"cls-1",d:"M16.25,23.25,5.53,12.53a.749.749,0,0,1,0-1.06L16.25.75"})),vw=`
|
|
577
577
|
.gh-portal-btn-back,
|
|
578
578
|
.gh-portal-btn-back:hover {
|
|
579
579
|
box-shadow: none;
|
|
@@ -679,8 +679,8 @@ Url: ${ua(e)}`),!0)}function m1(e,t){return e.type||!t||!t.length?!1:b1(e).some(
|
|
|
679
679
|
width: 38px !important;
|
|
680
680
|
height: 22px !important;
|
|
681
681
|
}
|
|
682
|
-
`;function
|
|
683
|
-
`;let we=(Su=class extends q.Component{constructor(){super(...arguments);Z(this,"closePopup",()=>{this.context.onAction("closePopup")})}render(){const{onClick:n}=this.props;return u("div",{className:"gh-portal-closeicon-container","data-test-button":"close-popup",children:u(Xc,{className:"gh-portal-closeicon",alt:"Close",onClick:n||this.closePopup})})}},Z(Su,"contextType",R),Su);const
|
|
682
|
+
`;function Ia({id:e,label:t="",onToggle:n,checked:r=!1,dataTestId:i="switch-input"}){const{action:o}=x.useContext(R),[a,s]=x.useState(r),l=["updateNewsletter:failed","updateNewsletter:success"].includes(o);return x.useEffect(()=>{s(r)},[r,l]),u("div",{className:"gh-portal-for-switch","data-test-switch":i,children:b("label",{className:"switch",htmlFor:e,children:[u("input",{type:"checkbox",checked:a,id:e,onChange:()=>{},"aria-label":t}),u("span",{className:"input-toggle-component",onClick:c=>{s(!a),n(c,!a)},"data-testid":i})]})})}const ww=`.gh-portal-account-header{display:flex;flex-direction:column;align-items:center;margin:0 0 32px}.gh-portal-account-header .gh-portal-avatar{margin:6px 0 8px!important}.gh-portal-account-data{margin-bottom:40px}footer.gh-portal-account-footer{display:flex}.gh-portal-account-footer.paid{margin-top:12px}.gh-portal-account-footermenu{display:flex;align-items:center;list-style:none;padding:0;margin:0}.gh-portal-account-footerright{display:flex;flex-grow:1;align-items:center;justify-content:flex-end}.gh-portal-account-footermenu li{margin-right:16px}.gh-portal-account-footermenu li:last-of-type{margin-right:0}.gh-portal-freeaccount-newsletter{display:flex;align-items:center;justify-content:space-between;margin-top:24px}.gh-portal-freeaccount-newsletter .label{display:flex;flex-direction:column;flex-grow:1}.gh-portal-free-ctatext{margin-top:-12px}.gh-portal-cancelcontinue-container{margin:24px 0 32px}.gh-portal-list-detail .gh-portal-email-notice{display:flex;align-items:center;gap:5px;margin-top:6px;color:var(--red);font-weight:500;font-size:1.25rem;letter-spacing:.2px}.gh-portal-email-notice-icon{width:20px;height:20px}.gh-portal-billing-button-loader{width:32px;height:32px;margin-right:-3px;opacity:.6}.gh-portal-product-icon{width:52px;margin-right:12px;border-radius:2px}.gh-portal-account-discountcontainer{position:relative;display:flex;align-items:center}.gh-portal-account-old-price{text-decoration:line-through;color:var(--grey9)!important}.gh-portal-account-tagicon{width:16px;height:16px;color:var(--brandcolor);margin-right:5px;z-index:999}@media (max-width: 390px){.gh-portal-account-footer{padding:0!important}}@media (max-width: 340px){.gh-portal-account-footer{padding:0!important;flex-wrap:wrap;gap:12px}.gh-portal-account-footer .gh-portal-account-footerright{justify-content:flex-start}}
|
|
683
|
+
`;let we=(Su=class extends q.Component{constructor(){super(...arguments);Z(this,"closePopup",()=>{this.context.onAction("closePopup")})}render(){const{onClick:n}=this.props;return u("div",{className:"gh-portal-closeicon-container","data-test-button":"close-popup",children:u(Xc,{className:"gh-portal-closeicon",alt:"Close",onClick:n||this.closePopup})})}},Z(Su,"contextType",R),Su);const mg=e=>x.createElement("svg",{width:15,height:14,viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("path",{d:"M1 6.89286L6.10714 12L13.9643 1",stroke:"#222222",strokeWidth:2}));function xw(e,t){if(isNaN(e)||isNaN(t))return 0;const n=e?100-Math.floor(t/12*100/e):0;return n>=1&&n<100?n:0}const kw=({site:e})=>`
|
|
684
684
|
.gh-portal-products {
|
|
685
685
|
display: flex;
|
|
686
686
|
flex-direction: column;
|
|
@@ -1165,7 +1165,7 @@ Url: ${ua(e)}`),!0)}function m1(e,t){return e.type||!t||!t.length?!1:b1(e).some(
|
|
|
1165
1165
|
min-height: unset;
|
|
1166
1166
|
}
|
|
1167
1167
|
}
|
|
1168
|
-
`,_r=q.createContext({selectedInterval:"month",selectedProduct:"free",selectedPlan:null,setSelectedProduct:null});function _w({product:e}){return!e.benefits||!e.benefits.length?null:e.benefits.map((t,n)=>{const r=(t==null?void 0:t.id)||`benefit-${n}`;return b("div",{className:"gh-portal-product-benefit",children:[u(gm,{className:"gh-portal-benefit-checkmark",alt:""}),u("div",{className:"gh-portal-benefit-title",children:t.name})]},r)})}function eu({product:e,hide:t=!1}){return!e.benefits||!e.benefits.length||t?null:u("div",{className:"gh-portal-product-benefits",children:u(_w,{product:e})})}function ym({price:e}){const{site:t}=x.useContext(R),{portal_plans:n}=t;return!n.includes("monthly")||!n.includes("yearly")?u("div",{className:"gh-portal-product-alternative-price"}):u("div",{className:"gh-portal-product-alternative-price",children:Zb(e)})}function Sw({trialDays:e,discount:t,selectedInterval:n}){const{site:r,t:i}=x.useContext(R);return Pa({site:r})?e?u("span",{className:"gh-portal-discount-label",children:i("{{trialDays}} days free",{trialDays:e})}):null:n==="year"?u("span",{className:"gh-portal-discount-label",children:i("{{discount}}% discount",{discount:t})}):null}function vm({product:e}){const{selectedInterval:t}=x.useContext(_r),{site:n}=x.useContext(R),r=e.monthlyPrice,i=e.yearlyPrice,o=e.trial_days,a=t==="month"?r:i,s=t==="month"?i:r;if(!r||!i)return null;const l=xw(e.monthlyPrice.amount,e.yearlyPrice.amount),c=fe(a.currency);return Pa({site:n})?u(Y,{children:b("div",{className:"gh-portal-product-card-pricecontainer",children:[b("div",{className:"gh-portal-product-card-price-trial",children:[b("div",{className:"gh-portal-product-price",children:[u("span",{className:"currency-sign"+(c.length>1?" long":""),children:c}),u("span",{className:"amount","data-testid":"product-amount",children:xr(Jc(a.amount))}),b("span",{className:"billing-period",children:["/",a.interval]})]}),u(Sw,{trialDays:o,discount:l,selectedInterval:t})]}),t==="year"?u(bm,{discount:l,trialDays:o}):"",u(ym,{price:s})]})}):b("div",{className:"gh-portal-product-card-pricecontainer",children:[b("div",{className:"gh-portal-product-card-price-trial",children:[b("div",{className:"gh-portal-product-price",children:[u("span",{className:"currency-sign"+(c.length>1?" long":""),children:c}),u("span",{className:"amount","data-testid":"product-amount",children:xr(Jc(a.amount))}),b("span",{className:"billing-period",children:["/",a.interval]})]}),t==="year"?u(bm,{discount:l}):""]}),u(ym,{price:s})]})}function Ew({products:e,handleChooseSignup:t}){const{site:n,action:r}=x.useContext(R),{selectedProduct:i,setSelectedProduct:o}=x.useContext(_r);let a=i==="free"?"gh-portal-product-card free checked":"gh-portal-product-card free";const s=vr({site:n});let l=tm({site:n}),c=r==="signup:running";gr()&&(c=!0);let p="$";e&&e[1]?p=fe(e[1].monthlyPrice.currency):p="$";const d=Ta({site:n}),f=Zh({site:n});if(d){if(!l&&!f.length)return null;a+=" only-free"}return!l&&!f.length&&(l="Free preview"),u(Y,{children:b("div",{className:a,onClick:y=>{y.stopPropagation(),o("free")},"data-test-tier":"free",children:[b("div",{className:"gh-portal-product-card-header",children:[u("h4",{className:"gh-portal-product-name",children:em({site:n})}),d?"":u("div",{className:"gh-portal-product-card-pricecontainer free-trial-disabled",children:b("div",{className:"gh-portal-product-price",children:[u("span",{className:"currency-sign"+(p.length>1?" long":""),children:p}),u("span",{className:"amount","data-testid":"product-amount",children:"0"})]})})]}),b("div",{className:"gh-portal-product-card-details",children:[b("div",{className:"gh-portal-product-card-detaildata",children:[l?u("div",{className:"gh-portal-product-description","data-testid":"product-description",children:l}):"",u(eu,{product:s})]}),d?"":u("div",{className:"gh-portal-btn-product",children:u("button",{"data-test-button":"select-tier",className:"gh-portal-btn",disabled:c,onClick:y=>{t(y,"free")},children:i==="free"&&c?u(Fi,{className:"gh-portal-loadingicon"}):"Choose"})})]})]})})}function Cw({selectedProduct:e,product:t,disabled:n,noOfProducts:r,trialDays:i}){return e===t.id&&n?u(Fi,{className:"gh-portal-loadingicon"}):i>0?"Start "+i+"-day free trial":r>1?"Choose":"Continue"}function Pw({product:e,products:t,selectedInterval:n,handleChooseSignup:r}){var f;const{selectedProduct:i,setSelectedProduct:o}=x.useContext(_r),{action:a}=x.useContext(R),s=e.trial_days,l=i===e.id?"gh-portal-product-card checked":"gh-portal-product-card",c=(f=t==null?void 0:t.filter(y=>y.type==="paid"))==null?void 0:f.length;let p=!!["signup:running","checkoutPlan:running"].includes(a);gr()&&(p=!0);let d=e.description;return(!e.benefits||!e.benefits.length)&&!d&&(d="Full access"),u(Y,{children:b("div",{className:l,onClick:y=>{y.stopPropagation(),o(e.id)},"data-test-tier":"paid",children:[b("div",{className:"gh-portal-product-card-header",children:[u("h4",{className:"gh-portal-product-name",children:e.name}),u(vm,{product:e})]}),b("div",{className:"gh-portal-product-card-details",children:[b("div",{className:"gh-portal-product-card-detaildata",children:[u("div",{className:"gh-portal-product-description","data-testid":"product-description",children:d}),u(eu,{product:e})]}),u("div",{className:"gh-portal-btn-product",children:u("button",{"data-test-button":"select-tier",disabled:p,className:"gh-portal-btn",onClick:y=>{const v=xm({products:t,selectedInterval:n,selectedProduct:e.id});r(y,v.id)},children:u(Cw,{selectedProduct:i,product:e,disabled:p,noOfProducts:c,trialDays:s})})})]})]},e.id)})}function Nw({products:e,selectedInterval:t,handleChooseSignup:n}){return e.map(r=>r.id==="free"?u(Ew,{products:e,handleChooseSignup:n},r.id):u(Pw,{products:e,product:r,selectedInterval:t,handleChooseSignup:n},r.id))}function bm({discount:e,trialDays:t}){const{site:n}=x.useContext(R),{portal_plans:r}=n;return e===0||!r.includes("monthly")?null:Pa({site:n})?u(Y,{children:b("span",{className:"gh-portal-discount-label-trial",children:[e,"% discount"]})}):u(Y,{children:b("span",{className:"gh-portal-discount-label",children:[e,"% discount"]})})}function wm({products:e,selectedInterval:t,setSelectedInterval:n}){const{site:r,t:i}=x.useContext(R),{portal_plans:o}=r;return!o.includes("monthly")||!o.includes("yearly")?null:u("div",{className:"gh-portal-logged-out-form-container",children:b("div",{className:"gh-portal-products-pricetoggle"+(t==="month"?" left":""),children:[u("button",{"data-test-button":"switch-monthly",className:"gh-portal-btn"+(t==="month"?" active":""),onClick:a=>{n("month")},children:i("Monthly")}),u("button",{"data-test-button":"switch-yearly",className:"gh-portal-btn"+(t==="year"?" active":""),onClick:a=>{n("year")},children:i("Yearly")})]})})}function xm({products:e,selectedProduct:t,selectedInterval:n}){let r=null;if(t==="free")r={id:"free"};else{let i=e.find(o=>o.id===t);i||(i=e.find(o=>o.type==="paid")),r=n==="month"?i==null?void 0:i.monthlyPrice:i==null?void 0:i.yearlyPrice}return r}function Ia({portalPlans:e,selectedInterval:t="year"}){if(t==="month"&&e.includes("monthly"))return"month";if(t==="year"&&e.includes("yearly"))return"year";if(e.includes("monthly"))return"month";if(e.includes("yearly"))return"year"}function km({onPlanSelect:e,products:t,type:n=null,handleChooseSignup:r}){var g,h;const{site:i}=x.useContext(R),{portal_plans:o}=i,a=Ia({portalPlans:o}),s=t.length>0?t[0].id:"free",[l,c]=x.useState(a),[p,d]=x.useState(s),f=xm({products:t,selectedInterval:l,selectedProduct:p}),y=Ia({portalPlans:o,selectedInterval:l});if(x.useEffect(()=>{d(s)},[s]),x.useEffect(()=>{e(null,f.id)},[f.id,e]),!o.includes("monthly")&&!o.includes("yearly")||t.length===0)return null;let v="gh-portal-products";n==="upgrade"&&(v+=" gh-portal-upgrade-product");let _=((g=t.find(m=>m.id===p))==null?void 0:g.id)||((h=t.find(m=>m.type==="paid"))==null?void 0:h.id);return u(_r.Provider,{value:{selectedInterval:y,selectedProduct:_,setSelectedProduct:d},children:b("section",{className:v,children:[Ta({site:i})?"":u(wm,{products:t,selectedInterval:y,setSelectedInterval:c}),u("div",{className:"gh-portal-products-grid",children:u(Nw,{products:t,selectedInterval:y,handleChooseSignup:r})})]})})}function Tw({onPlanSelect:e,selectedPlan:t,products:n,type:r=null}){var h;const{site:i,member:o}=x.useContext(R),{portal_plans:a}=i,s=Sn({member:o}),l=im({site:i,priceId:s.id}),c=Ia({portalPlans:a,selectedInterval:s.interval}),p=(l==null?void 0:l.id)||((h=n==null?void 0:n[0])==null?void 0:h.id),[d,f]=x.useState(c),[y,v]=x.useState(p),_=Ia({portalPlans:a,selectedInterval:d});if(x.useEffect(()=>{v(p)},[p]),!a.includes("monthly")&&!a.includes("yearly")||n.length===0)return null;let g="gh-portal-products";return r==="upgrade"&&(g+=" gh-portal-upgrade-product"),r==="changePlan"&&(g+=" gh-portal-upgrade-product gh-portal-change-plan"),u(_r.Provider,{value:{selectedInterval:_,selectedProduct:y,selectedPlan:t,setSelectedProduct:v},children:b("section",{className:g,children:[u(wm,{selectedInterval:_,setSelectedInterval:f}),u("div",{className:"gh-portal-products-grid",children:u(Ow,{products:n,onPlanSelect:e})})]})})}function $w({product:e,selectedPrice:t,activePrice:n}){return e!=null&&e.description?u("div",{className:"gh-portal-product-description","data-testid":"product-description",children:e.description}):null}function Rw({product:e,onPlanSelect:t}){const{member:n,site:r}=x.useContext(R),{selectedProduct:i,setSelectedProduct:o,selectedInterval:a}=x.useContext(_r),s=i===e.id?"gh-portal-product-card checked":"gh-portal-product-card",l=e.monthlyPrice,c=e.yearlyPrice,p=Sn({member:n}),d=a==="month"?l:c,f=Ub({member:n,site:r,priceId:d.id});return b("div",{className:s+(f?" disabled":""),onClick:y=>{y.stopPropagation(),o(e.id)},"data-test-tier":"paid",children:[b("div",{className:"gh-portal-product-card-header",children:[u("h4",{className:"gh-portal-product-name",children:e.name}),u(vm,{product:e})]}),b("div",{className:"gh-portal-product-card-details",children:[b("div",{className:"gh-portal-product-card-detaildata",children:[e.description?u($w,{product:e,selectedPrice:d,activePrice:p}):"",u(eu,{product:e})]}),f?u("div",{className:"gh-portal-btn-product",children:u("span",{className:"gh-portal-current-plan",children:u("span",{children:"Current plan"})})}):u("div",{className:"gh-portal-btn-product",children:u("button",{"data-test-button":"select-tier",className:"gh-portal-btn",onClick:()=>{t(null,d==null?void 0:d.id)},children:"Choose"})})]})]},e.id)}function Ow({products:e,onPlanSelect:t}){return e.map(n=>n.id==="free"?null:u(Rw,{product:n,onPlanSelect:t},n.id))}function Dw({products:e,selectedPlan:t,onPlanSelect:n,onPlanCheckout:r,changePlan:i=!1}){return gr()&&(n=()=>{}),i?u("section",{className:"gh-portal-plans",children:u("div",{children:u(Tw,{type:"changePlan",products:e,selectedPlan:t,onPlanSelect:n})})}):u("section",{className:"gh-portal-plans",children:u("div",{children:u(km,{type:"upgrade",products:e,onPlanSelect:n,handleChooseSignup:(...a)=>{r(...a)}})})})}const Lw=`
|
|
1168
|
+
`,_r=q.createContext({selectedInterval:"month",selectedProduct:"free",selectedPlan:null,setSelectedProduct:null});function _w({product:e}){return!e.benefits||!e.benefits.length?null:e.benefits.map((t,n)=>{const r=(t==null?void 0:t.id)||`benefit-${n}`;return b("div",{className:"gh-portal-product-benefit",children:[u(mg,{className:"gh-portal-benefit-checkmark",alt:""}),u("div",{className:"gh-portal-benefit-title",children:t.name})]},r)})}function eu({product:e,hide:t=!1}){return!e.benefits||!e.benefits.length||t?null:u("div",{className:"gh-portal-product-benefits",children:u(_w,{product:e})})}function yg({price:e}){const{site:t}=x.useContext(R),{portal_plans:n}=t;return!n.includes("monthly")||!n.includes("yearly")?u("div",{className:"gh-portal-product-alternative-price"}):u("div",{className:"gh-portal-product-alternative-price",children:Zb(e)})}function Sw({trialDays:e,discount:t,selectedInterval:n}){const{site:r,t:i}=x.useContext(R);return Pa({site:r})?e?u("span",{className:"gh-portal-discount-label",children:i("{{trialDays}} days free",{trialDays:e})}):null:n==="year"?u("span",{className:"gh-portal-discount-label",children:i("{{discount}}% discount",{discount:t})}):null}function vg({product:e}){const{selectedInterval:t}=x.useContext(_r),{site:n}=x.useContext(R),r=e.monthlyPrice,i=e.yearlyPrice,o=e.trial_days,a=t==="month"?r:i,s=t==="month"?i:r;if(!r||!i)return null;const l=xw(e.monthlyPrice.amount,e.yearlyPrice.amount),c=fe(a.currency);return Pa({site:n})?u(U,{children:b("div",{className:"gh-portal-product-card-pricecontainer",children:[b("div",{className:"gh-portal-product-card-price-trial",children:[b("div",{className:"gh-portal-product-price",children:[u("span",{className:"currency-sign"+(c.length>1?" long":""),children:c}),u("span",{className:"amount","data-testid":"product-amount",children:xr(Jc(a.amount))}),b("span",{className:"billing-period",children:["/",a.interval]})]}),u(Sw,{trialDays:o,discount:l,selectedInterval:t})]}),t==="year"?u(bg,{discount:l,trialDays:o}):"",u(yg,{price:s})]})}):b("div",{className:"gh-portal-product-card-pricecontainer",children:[b("div",{className:"gh-portal-product-card-price-trial",children:[b("div",{className:"gh-portal-product-price",children:[u("span",{className:"currency-sign"+(c.length>1?" long":""),children:c}),u("span",{className:"amount","data-testid":"product-amount",children:xr(Jc(a.amount))}),b("span",{className:"billing-period",children:["/",a.interval]})]}),t==="year"?u(bg,{discount:l}):""]}),u(yg,{price:s})]})}function Ew({products:e,handleChooseSignup:t}){const{site:n,action:r}=x.useContext(R),{selectedProduct:i,setSelectedProduct:o}=x.useContext(_r);let a=i==="free"?"gh-portal-product-card free checked":"gh-portal-product-card free";const s=vr({site:n});let l=tg({site:n}),c=r==="signup:running";mr()&&(c=!0);let p="$";e&&e[1]?p=fe(e[1].monthlyPrice.currency):p="$";const d=Ta({site:n}),f=Zh({site:n});if(d){if(!l&&!f.length)return null;a+=" only-free"}return!l&&!f.length&&(l="Free preview"),u(U,{children:b("div",{className:a,onClick:y=>{y.stopPropagation(),o("free")},"data-test-tier":"free",children:[b("div",{className:"gh-portal-product-card-header",children:[u("h4",{className:"gh-portal-product-name",children:eg({site:n})}),d?"":u("div",{className:"gh-portal-product-card-pricecontainer free-trial-disabled",children:b("div",{className:"gh-portal-product-price",children:[u("span",{className:"currency-sign"+(p.length>1?" long":""),children:p}),u("span",{className:"amount","data-testid":"product-amount",children:"0"})]})})]}),b("div",{className:"gh-portal-product-card-details",children:[b("div",{className:"gh-portal-product-card-detaildata",children:[l?u("div",{className:"gh-portal-product-description","data-testid":"product-description",children:l}):"",u(eu,{product:s})]}),d?"":u("div",{className:"gh-portal-btn-product",children:u("button",{"data-test-button":"select-tier",className:"gh-portal-btn",disabled:c,onClick:y=>{t(y,"free")},children:i==="free"&&c?u(Fi,{className:"gh-portal-loadingicon"}):"Choose"})})]})]})})}function Cw({selectedProduct:e,product:t,disabled:n,noOfProducts:r,trialDays:i}){return e===t.id&&n?u(Fi,{className:"gh-portal-loadingicon"}):i>0?"Start "+i+"-day free trial":r>1?"Choose":"Continue"}function Pw({product:e,products:t,selectedInterval:n,handleChooseSignup:r}){var f;const{selectedProduct:i,setSelectedProduct:o}=x.useContext(_r),{action:a}=x.useContext(R),s=e.trial_days,l=i===e.id?"gh-portal-product-card checked":"gh-portal-product-card",c=(f=t==null?void 0:t.filter(y=>y.type==="paid"))==null?void 0:f.length;let p=!!["signup:running","checkoutPlan:running"].includes(a);mr()&&(p=!0);let d=e.description;return(!e.benefits||!e.benefits.length)&&!d&&(d="Full access"),u(U,{children:b("div",{className:l,onClick:y=>{y.stopPropagation(),o(e.id)},"data-test-tier":"paid",children:[b("div",{className:"gh-portal-product-card-header",children:[u("h4",{className:"gh-portal-product-name",children:e.name}),u(vg,{product:e})]}),b("div",{className:"gh-portal-product-card-details",children:[b("div",{className:"gh-portal-product-card-detaildata",children:[u("div",{className:"gh-portal-product-description","data-testid":"product-description",children:d}),u(eu,{product:e})]}),u("div",{className:"gh-portal-btn-product",children:u("button",{"data-test-button":"select-tier",disabled:p,className:"gh-portal-btn",onClick:y=>{const v=xg({products:t,selectedInterval:n,selectedProduct:e.id});r(y,v.id)},children:u(Cw,{selectedProduct:i,product:e,disabled:p,noOfProducts:c,trialDays:s})})})]})]},e.id)})}function Nw({products:e,selectedInterval:t,handleChooseSignup:n}){return e.map(r=>r.id==="free"?u(Ew,{products:e,handleChooseSignup:n},r.id):u(Pw,{products:e,product:r,selectedInterval:t,handleChooseSignup:n},r.id))}function bg({discount:e,trialDays:t}){const{site:n}=x.useContext(R),{portal_plans:r}=n;return e===0||!r.includes("monthly")?null:Pa({site:n})?u(U,{children:b("span",{className:"gh-portal-discount-label-trial",children:[e,"% discount"]})}):u(U,{children:b("span",{className:"gh-portal-discount-label",children:[e,"% discount"]})})}function wg({products:e,selectedInterval:t,setSelectedInterval:n}){const{site:r,t:i}=x.useContext(R),{portal_plans:o}=r;return!o.includes("monthly")||!o.includes("yearly")?null:u("div",{className:"gh-portal-logged-out-form-container",children:b("div",{className:"gh-portal-products-pricetoggle"+(t==="month"?" left":""),children:[u("button",{"data-test-button":"switch-monthly",className:"gh-portal-btn"+(t==="month"?" active":""),onClick:a=>{n("month")},children:i("Monthly")}),u("button",{"data-test-button":"switch-yearly",className:"gh-portal-btn"+(t==="year"?" active":""),onClick:a=>{n("year")},children:i("Yearly")})]})})}function xg({products:e,selectedProduct:t,selectedInterval:n}){let r=null;if(t==="free")r={id:"free"};else{let i=e.find(o=>o.id===t);i||(i=e.find(o=>o.type==="paid")),r=n==="month"?i==null?void 0:i.monthlyPrice:i==null?void 0:i.yearlyPrice}return r}function ja({portalPlans:e,selectedInterval:t="year"}){if(t==="month"&&e.includes("monthly"))return"month";if(t==="year"&&e.includes("yearly"))return"year";if(e.includes("monthly"))return"month";if(e.includes("yearly"))return"year"}function kg({onPlanSelect:e,products:t,type:n=null,handleChooseSignup:r}){var m,h;const{site:i}=x.useContext(R),{portal_plans:o}=i,a=ja({portalPlans:o}),s=t.length>0?t[0].id:"free",[l,c]=x.useState(a),[p,d]=x.useState(s),f=xg({products:t,selectedInterval:l,selectedProduct:p}),y=ja({portalPlans:o,selectedInterval:l});if(x.useEffect(()=>{d(s)},[s]),x.useEffect(()=>{e(null,f.id)},[f.id,e]),!o.includes("monthly")&&!o.includes("yearly")||t.length===0)return null;let v="gh-portal-products";n==="upgrade"&&(v+=" gh-portal-upgrade-product");let _=((m=t.find(g=>g.id===p))==null?void 0:m.id)||((h=t.find(g=>g.type==="paid"))==null?void 0:h.id);return u(_r.Provider,{value:{selectedInterval:y,selectedProduct:_,setSelectedProduct:d},children:b("section",{className:v,children:[Ta({site:i})?"":u(wg,{products:t,selectedInterval:y,setSelectedInterval:c}),u("div",{className:"gh-portal-products-grid",children:u(Nw,{products:t,selectedInterval:y,handleChooseSignup:r})})]})})}function Tw({onPlanSelect:e,selectedPlan:t,products:n,type:r=null}){var h;const{site:i,member:o}=x.useContext(R),{portal_plans:a}=i,s=Sn({member:o}),l=ig({site:i,priceId:s.id}),c=ja({portalPlans:a,selectedInterval:s.interval}),p=(l==null?void 0:l.id)||((h=n==null?void 0:n[0])==null?void 0:h.id),[d,f]=x.useState(c),[y,v]=x.useState(p),_=ja({portalPlans:a,selectedInterval:d});if(x.useEffect(()=>{v(p)},[p]),!a.includes("monthly")&&!a.includes("yearly")||n.length===0)return null;let m="gh-portal-products";return r==="upgrade"&&(m+=" gh-portal-upgrade-product"),r==="changePlan"&&(m+=" gh-portal-upgrade-product gh-portal-change-plan"),u(_r.Provider,{value:{selectedInterval:_,selectedProduct:y,selectedPlan:t,setSelectedProduct:v},children:b("section",{className:m,children:[u(wg,{selectedInterval:_,setSelectedInterval:f}),u("div",{className:"gh-portal-products-grid",children:u(Ow,{products:n,onPlanSelect:e})})]})})}function $w({product:e,selectedPrice:t,activePrice:n}){return e!=null&&e.description?u("div",{className:"gh-portal-product-description","data-testid":"product-description",children:e.description}):null}function Rw({product:e,onPlanSelect:t}){const{member:n,site:r}=x.useContext(R),{selectedProduct:i,setSelectedProduct:o,selectedInterval:a}=x.useContext(_r),s=i===e.id?"gh-portal-product-card checked":"gh-portal-product-card",l=e.monthlyPrice,c=e.yearlyPrice,p=Sn({member:n}),d=a==="month"?l:c,f=Ub({member:n,site:r,priceId:d.id});return b("div",{className:s+(f?" disabled":""),onClick:y=>{y.stopPropagation(),o(e.id)},"data-test-tier":"paid",children:[b("div",{className:"gh-portal-product-card-header",children:[u("h4",{className:"gh-portal-product-name",children:e.name}),u(vg,{product:e})]}),b("div",{className:"gh-portal-product-card-details",children:[b("div",{className:"gh-portal-product-card-detaildata",children:[e.description?u($w,{product:e,selectedPrice:d,activePrice:p}):"",u(eu,{product:e})]}),f?u("div",{className:"gh-portal-btn-product",children:u("span",{className:"gh-portal-current-plan",children:u("span",{children:"Current plan"})})}):u("div",{className:"gh-portal-btn-product",children:u("button",{"data-test-button":"select-tier",className:"gh-portal-btn",onClick:()=>{t(null,d==null?void 0:d.id)},children:"Choose"})})]})]},e.id)}function Ow({products:e,onPlanSelect:t}){return e.map(n=>n.id==="free"?null:u(Rw,{product:n,onPlanSelect:t},n.id))}function Dw({products:e,selectedPlan:t,onPlanSelect:n,onPlanCheckout:r,changePlan:i=!1}){return mr()&&(n=()=>{}),i?u("section",{className:"gh-portal-plans",children:u("div",{children:u(Tw,{type:"changePlan",products:e,selectedPlan:t,onPlanSelect:n})})}):u("section",{className:"gh-portal-plans",children:u("div",{children:u(kg,{type:"upgrade",products:e,onPlanSelect:n,handleChooseSignup:(...a)=>{r(...a)}})})})}const Lw=`
|
|
1169
1169
|
.account-plan.full-size .gh-portal-main-title {
|
|
1170
1170
|
font-size: 3.2rem;
|
|
1171
1171
|
margin-top: 44px;
|
|
@@ -1194,7 +1194,7 @@ Url: ${ua(e)}`),!0)}function m1(e,t){return e.type||!t||!t.length?!1:b1(e).some(
|
|
|
1194
1194
|
height: 62px;
|
|
1195
1195
|
padding: 6px 12px;
|
|
1196
1196
|
}
|
|
1197
|
-
`;function
|
|
1197
|
+
`;function Iw({confirmationType:e}){if(e==="changePlan")return"Confirm subscription";if(e==="cancel")return"Cancel subscription";if(e==="subscribe")return"Subscribe"}const jw=({onBack:e,showConfirmation:t,confirmationType:n})=>{const{member:r}=x.useContext(R);let i=kt({member:r})?"Change plan":"Choose a plan";return t&&(i=Iw({confirmationType:n})),u("header",{className:"gh-portal-detail-header",children:u("h3",{className:"gh-portal-main-title",children:i})})},Aw=({member:e,onCancelSubscription:t,action:n,brandColor:r})=>{const{site:i,t:o}=x.useContext(R);if(!e.paid)return null;const a=Qe({member:e});if(!a||a.cancel_at_period_end)return null;const s=o("Cancel subscription"),l=["cancelSubscription:running"].includes(n),c=!!l,p=!!a.cancel_at_period_end,d=!a.cancelAtPeriodEnd;return u("div",{className:"gh-portal-expire-container",children:u(he,{dataTestId:"cancel-subscription",onClick:f=>{t({subscriptionId:a.id,cancelAtPeriodEnd:!0})},isRunning:l,disabled:c,isPrimary:p,isDestructive:d,classes:Sa({site:i})?"gh-portal-btn-text mt2 mb4":"",brandColor:r,label:s,style:{width:"100%"}})})},Mw=({plan:e,type:t,onConfirm:n})=>{const{site:r,action:i,member:o,brandColor:a,t:s}=x.useContext(R),[l,c]=x.useState(""),p=Qe({member:o}),d=["updateSubscription:running","checkoutPlan:running","cancelSubscription:running"].includes(i),f=s("Confirm");let y=xt(p.current_period_end);Sn({member:o}).id!==e.id&&(y="today");const _=xr(e.price),m=`${e.currency_symbol}${_}/${e.interval} – Starting ${y}`,h=ig({site:r,priceId:e==null?void 0:e.id}),g=Sa({site:r})?h==null?void 0:h.name:s("Price");return t==="changePlan"?b("div",{className:"gh-portal-logged-out-form-container",children:[b("div",{className:"gh-portal-list mb6",children:[u("section",{children:b("div",{className:"gh-portal-list-detail",children:[u("h3",{children:s("Account")}),u("p",{children:o.email})]})}),u("section",{children:b("div",{className:"gh-portal-list-detail",children:[u("h3",{children:g}),u("p",{children:m})]})})]}),u(he,{dataTestId:"confirm-action",onClick:w=>n(w,e),isRunning:d,isPrimary:!0,brandColor:a,label:f,style:{width:"100%",height:"40px"}})]}):b("div",{className:"gh-portal-logged-out-form-container gh-portal-cancellation-form",children:[b("p",{children:["If you cancel your subscription now, you will continue to have access until ",u("strong",{children:xt(p.current_period_end)}),"."]}),b("section",{className:"gh-portal-input-section",children:[u("div",{className:"gh-portal-input-labelcontainer",children:u("label",{className:"gh-portal-input-label",children:s("Cancellation reason")})}),u("textarea",{"data-test-input":"cancellation-reason",className:"gh-portal-input",label:"Cancellation reason",type:"text",name:"cancellation_reason",placeholder:"",value:l,onChange:w=>c(w.target.value),rows:"2",maxLength:"500"},"cancellation_reason")]}),u(he,{dataTestId:"confirm-cancel-subscription",onClick:w=>n(w,l),isRunning:d,isPrimary:!0,brandColor:a,label:f+" cancellation",style:{width:"100%",height:"40px"}})]})},zw=({plans:e,selectedPlan:t,onPlanSelect:n,onCancelSubscription:r})=>{const{member:i,action:o,brandColor:a}=x.useContext(R);return b("section",{children:[u("div",{className:"gh-portal-section gh-portal-accountplans-main",children:u(_g,{showLabel:!1,plans:e,selectedPlan:t,onPlanSelect:n,changePlan:!0})}),u(Aw,{member:i,onCancelSubscription:r,action:o,brandColor:a})]})};function _g({showLabel:e,plans:t,selectedPlan:n,onPlanSelect:r,onPlanCheckout:i,changePlan:o=!1}){const{site:a,member:s}=x.useContext(R),l=zb({site:a,member:s});return u(Dw,{products:l,selectedPlan:n,changePlan:o,onPlanSelect:r,onPlanCheckout:i})}const Fw=({plans:e,selectedPlan:t,onPlanSelect:n,onPlanCheckout:r})=>{let i="";return e.length===1&&(i="singleplan"),u("section",{children:u("div",{className:`gh-portal-section gh-portal-accountplans-main ${i}`,children:u(_g,{showLabel:!1,plans:e,selectedPlan:t,onPlanSelect:n,onPlanCheckout:r})})})},Uw=({plans:e,selectedPlan:t,confirmationPlan:n,confirmationType:r,showConfirmation:i=!1,onPlanSelect:o,onPlanCheckout:a,onConfirm:s,onCancelSubscription:l})=>{const{member:c}=x.useContext(R),p=zi({member:c})&&yr({member:c});return!kt({member:c})||p?u(Fw,{plans:e,selectedPlan:t,onPlanSelect:o,onPlanCheckout:a}):i?u(Mw,{plan:n,type:r,onConfirm:s}):u(zw,{plans:e,selectedPlan:t,onCancelSubscription:l,onPlanSelect:o})};class Sg extends q.Component{constructor(n,r){super(n,r);Z(this,"onPlanSelect",(n,r)=>{n==null||n.preventDefault();const{member:i}=this.context,o=zi({member:i})?yr({member:i}):!1;if(!kt({member:i})||o)this.timeoutId=setTimeout(()=>{this.setState(()=>({selectedPlan:r}))},5);else{const a=this.prices.find(c=>c.id===r),l=this.getActivePriceId({member:i})?"changePlan":"subscribe";r!==this.state.selectedPlan&&this.setState({confirmationPlan:a,confirmationType:l,showConfirmation:!0})}});this.state=this.getInitialState()}componentDidMount(){const{member:n}=this.context;n||this.context.onAction("switchPage",{page:"signin"})}componentWillUnmount(){clearTimeout(this.timeoutId)}getInitialState(){const{member:n,site:r}=this.context;this.prices=$a({site:r});let i=Sn({member:n});i&&(this.prices=Fb({prices:this.prices,currency:i.currency}));let o=i?this.prices.find(s=>s.id===i.id):null;return!kt({member:n})&&this.prices.length>0&&(o=this.prices[0]),{selectedPlan:o?o.id:null}}handleSignout(n){n.preventDefault(),this.context.onAction("signout")}onBack(n){this.state.showConfirmation?this.cancelConfirmPage():this.context.onAction("back")}cancelConfirmPage(){this.setState({showConfirmation:!1,confirmationPlan:null,confirmationType:null})}onPlanCheckout(n,r){const{onAction:i,member:o}=this.context;let{confirmationPlan:a,selectedPlan:s}=this.state;r&&(s=r);const l=zi({member:o})?!yr({member:o}):!0;if(kt({member:o})&&l){const c=Qe({member:o}),p=c?c.id:"";p&&i("updateSubscription",{plan:a.name,planId:a.id,subscriptionId:p,cancelAtPeriodEnd:!1})}else i("checkoutPlan",{plan:s})}onCancelSubscription({subscriptionId:n,cancelAtPeriodEnd:r}){const{member:i}=this.context,o=Bb({subscriptionId:n,member:i}),a=Qh({subscription:o});this.setState({showConfirmation:!0,confirmationPlan:a,confirmationType:"cancel"})}onCancelSubscriptionConfirmation(n){const{member:r}=this.context,i=Qe({member:r});if(!i)return null;this.context.onAction("cancelSubscription",{subscriptionId:i.id,cancelAtPeriodEnd:!0,cancellationReason:n})}getActivePriceId({member:n}){const r=Sn({member:n});return r?r.id:null}onConfirm(n,r){const{confirmationType:i}=this.state;if(i==="cancel")return this.onCancelSubscriptionConfirmation(r);if(["changePlan","subscribe"].includes(i))return this.onPlanCheckout()}render(){const n=this.prices,{selectedPlan:r,showConfirmation:i,confirmationPlan:o,confirmationType:a}=this.state,{lastPage:s}=this.context;return u(U,{children:b("div",{className:"gh-portal-content",children:[u(kr,{onClick:l=>this.onBack(l),hidden:!s&&!i}),u(we,{}),u(jw,{onBack:l=>this.onBack(l),confirmationType:a,showConfirmation:i}),u(Uw,{plans:n,selectedPlan:r,showConfirmation:i,confirmationPlan:o,confirmationType:a,onConfirm:(...l)=>this.onConfirm(...l),onCancelSubscription:l=>this.onCancelSubscription(l),onPlanSelect:this.onPlanSelect,onPlanCheckout:(l,c)=>this.onPlanCheckout(l,c)})]})})}}Z(Sg,"contextType",R);const Bw=`
|
|
1198
1198
|
.gh-portal-input {
|
|
1199
1199
|
-webkit-appearance: none;
|
|
1200
1200
|
-moz-appearance: none;
|
|
@@ -1255,7 +1255,7 @@ Url: ${ua(e)}`),!0)}function m1(e,t){return e.type||!t||!t.length?!1:b1(e).some(
|
|
|
1255
1255
|
.gh-portal-popup-container:not(.preview) .gh-portal-input:disabled::placeholder {
|
|
1256
1256
|
color: var(--grey9);
|
|
1257
1257
|
}
|
|
1258
|
-
`;function Yw({message:e,style:t}){return e?u("p",{style:{...t||{}},children:e}):null}function Hw({name:e,id:t,label:n,hideLabel:r,type:i,value:o,placeholder:a,disabled:s=!1,onChange:l=()=>{},onBlur:c=()=>{},onKeyDown:p=()=>{},tabindex:d,maxlength:f,autoFocus:y,errorMessage:v}){const _=x.useRef(null);t=t||`input-${e}`;const
|
|
1258
|
+
`;function Yw({message:e,style:t}){return e?u("p",{style:{...t||{}},children:e}):null}function Hw({name:e,id:t,label:n,hideLabel:r,type:i,value:o,placeholder:a,disabled:s=!1,onChange:l=()=>{},onBlur:c=()=>{},onKeyDown:p=()=>{},tabindex:d,maxlength:f,autoFocus:y,errorMessage:v}){const _=x.useRef(null);t=t||`input-${e}`;const m=r?"gh-portal-input-label hidden":"gh-portal-input-label",h=v?"gh-portal-input error":"gh-portal-input";mr()&&(s=!0),K(["preview"])&&(s=!0);let g="",w="",k="";switch(t){case"input-email":g="off",w="off",k="off";break;case"input-name":g="off",w="off";break}return x.useEffect(()=>{y&&_.current.focus()},[y]),b("section",{className:"gh-portal-input-section",children:[b("div",{className:"gh-portal-input-labelcontainer",children:[b("label",{htmlFor:t,className:m,children:[" ",n," "]}),u(Yw,{message:v,name:e})]}),u("input",{"data-test-input":t,ref:_,id:t,className:h,type:i,name:e,value:o,placeholder:a,onChange:C=>l(C,e),onKeyDown:C=>p(C,e),onBlur:C=>c(C,e),disabled:s,tabIndex:d,maxLength:f,autoComplete:g,autoCorrect:w,autoCapitalize:k,"aria-label":n})]})}class Eg extends q.Component{render(){const{t}=this.context;return u(U,{children:b("button",{className:"gh-portal-btn gh-portal-btn-site-title-back",onClick:()=>{this.props.onBack?this.props.onBack():this.context.onAction("closePopup")},children:[u("span",{children:"← "})," ",t("Back")]})})}}Z(Eg,"contextType",R);const Gw=e=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e},x.createElement("g",{transform:"matrix(0.6666666666666666,0,0,0.6666666666666666,0,0)"},x.createElement("path",{d:"M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-7.5,9a2,2,0,1,1,2-2A2,2,0,0,1,12,18.5ZM16.25,9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5V6.75a4.25,4.25,0,0,1,8.5,0Z",style:{fill:"#000000"}})));function Ww({newsletter:e,subscribedNewsletters:t,setSubscribedNewsletters:n}){const r=t.some(i=>i.id===(e==null?void 0:e.id));return e.paid?b("section",{className:"gh-portal-list-toggle-wrapper","data-test-toggle-wrapper":!0,children:[b("div",{className:"gh-portal-list-detail gh-portal-list-big",children:[u("h3",{children:e.name}),u("p",{children:e.description})]}),u("div",{class:"gh-portal-lock-icon-container",children:u(Gw,{className:"gh-portal-lock-icon",alt:"",title:"Unlock access to all newsletters by becoming a paid subscriber."})})]}):b("section",{className:"gh-portal-list-toggle-wrapper","data-test-toggle-wrapper":!0,children:[b("div",{className:"gh-portal-list-detail gh-portal-list-big",children:[u("h3",{children:e.name}),u("p",{children:e.description})]}),u("div",{children:u(Ia,{id:e.id,onToggle:(i,o)=>{let a=[];o?a=t.filter(s=>s.id!==e.id).concat(e):a=t.filter(s=>s.id!==e.id),n(a)},checked:r})})]})}function Vw({subscribedNewsletters:e,setSubscribedNewsletters:t}){const{site:n}=x.useContext(R);return wr({site:n}).map(i=>u(Ww,{newsletter:i,subscribedNewsletters:e,setSubscribedNewsletters:t},i==null?void 0:i.id))}function tu({pageData:e,onBack:t}){const{brandColor:n,site:r,onAction:i,action:o,t:a}=x.useContext(R),l=wr({site:r}).filter(_=>_.subscribe_on_signup);let c=!1;o==="signup:running"&&(c=!0);let p=a("Continue"),d=!1;o==="signup:failed"&&(p=a("Retry"),d=!0);const f=o==="signup:running",[y,v]=x.useState(l);return b("div",{className:"gh-portal-content with-footer gh-portal-newsletter-selection",children:[u("p",{className:"gh-portal-text-center gh-portal-text-large",children:a("Choose your newsletters")}),u("div",{className:"gh-portal-section",children:u("div",{className:"gh-portal-list",children:u(Vw,{subscribedNewsletters:y,setSubscribedNewsletters:v})})}),u("footer",{className:"gh-portal-action-footer",children:b("div",{style:{width:"100%"},children:[u("div",{style:{marginBottom:"20px"},children:u(he,{isRunning:c,retry:d,disabled:f,onClick:_=>{let m=y.map(C=>({id:C.id}));const{name:h,email:g,plan:w,offerId:k}=e;i("signup",{name:h,email:g,plan:w,newsletters:m,offerId:k})},brandColor:n,label:p,style:{width:"100%"}})}),u("div",{children:u("button",{className:"gh-portal-btn gh-portal-btn-link gh-portal-btn-different-plan",onClick:()=>{t()},children:u("span",{children:a("Choose a different plan")})})})]})})]})}const Kw=({field:e,onChange:t,onBlur:n=()=>{},onKeyDown:r=()=>{}})=>e?u(U,{children:u(Hw,{label:e.label,type:e.type,name:e.name,placeholder:e.placeholder,disabled:e.disabled,value:e.value,onKeyDown:r,onChange:i=>t(i,e),onBlur:i=>n(i,e),tabIndex:e.tabindex,errorMessage:e.errorMessage,autoFocus:e.autoFocus},e.name)}):null;class Aa extends x.Component{constructor(t){super(t),this.state={}}render(){const{fields:t,onChange:n,onBlur:r,onKeyDown:i}=this.props,o=t.map(a=>u(Kw,{field:a,onChange:n,onBlur:r,onKeyDown:i},a.name));return u(U,{children:o})}}const qw=e=>!!e&&/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(String(e).toLowerCase()),Qw=({field:e})=>{if(e.required&&!e.value)switch(e.name){case"name":return"Enter your name";case"email":return"Enter your email address";default:return`Please enter ${e.name}`}return e.type==="email"&&!qw(e.value)?"Invalid email address":null},Ma=({fields:e})=>{const t={};return e.forEach(n=>{const r=n.name,i=Qw({field:n});t[r]=i}),t},Jw=e=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e},x.createElement("defs",null,x.createElement("style",null,".inviteicon{fill: currentColor;}")),x.createElement("path",{className:"inviteicon",d:"M23.991 11.464l-.036-.146-.028-.068-.011-.027-.115-.114-.018-.021-.008-.005h-.001l-3.774-2.596v-7.987c0-.276-.224-.5-.5-.5h-15c-.276 0-.5.224-.5.5v7.987l-3.774 2.595-.003.002-.006.004-.015.016-.118.118-.011.027-.028.068-.036.146-.009.037v10.5c0 1.103.897 2 2 2h20c1.103 0 2-.897 2-2v-10.5l-.009-.036zm-1.383.03l-2.608 1.738v-3.531l2.608 1.793zm-18.608 1.738l-2.608-1.739 2.608-1.792v3.531zm18 9.768h-20c-.551 0-1-.449-1-1v-9.566l5.223 3.482c.085.057.181.084.276.084.162 0 .32-.078.417-.223.153-.23.091-.54-.139-.693l-1.777-1.185v-12.899h14v12.899l-1.777 1.185c-.23.153-.292.463-.139.693.096.145.255.223.416.223.095 0 .191-.027.277-.084l5.223-3.482v9.566c0 .551-.449 1-1 1zM15.812 16.109c-.088-.07-.198-.109-.312-.109h-7c-.114 0-.224.039-.312.109l-5 4c-.215.173-.25.487-.078.703.173.215.487.251.703.078l4.862-3.89h6.649l4.863 3.891c.093.073.203.109.313.109.147 0 .292-.065.391-.188.172-.216.137-.53-.078-.703l-5.001-4zM11.706 12.779c.087.064.191.096.294.096s.207-.032.294-.096c.482-.35 4.706-3.497 4.706-6.101 0-1.868-1.387-2.984-2.728-2.984-.772 0-1.674.379-2.272 1.368-.598-.988-1.5-1.368-2.272-1.368-1.341-.001-2.728 1.116-2.728 2.984 0 2.604 4.224 5.751 4.706 6.101zm-1.978-8.086c.844 0 1.511.681 1.786 1.822.108.45.864.45.973 0 .274-1.141.942-1.822 1.786-1.822.85 0 1.728.742 1.728 1.984 0 1.646-2.658 4.037-4 5.072-1.342-1.035-4-3.426-4-5.072-.001-1.241.877-1.984 1.727-1.984z"})),Xw=`
|
|
1259
1259
|
.gh-portal-back-sitetitle {
|
|
1260
1260
|
position: absolute;
|
|
1261
1261
|
top: 35px;
|
|
@@ -1444,9 +1444,13 @@ footer.gh-portal-signup-footer.invite-only .gh-portal-signup-message {
|
|
|
1444
1444
|
color: var(--grey4);
|
|
1445
1445
|
}
|
|
1446
1446
|
|
|
1447
|
-
.gh-portal-signup-terms {
|
|
1447
|
+
.gh-portal-signup-terms-wrapper {
|
|
1448
1448
|
width: 100%;
|
|
1449
1449
|
max-width: 420px;
|
|
1450
|
+
margin: -16px auto 36px;
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
.gh-portal-signup-terms-wrapper.free-only {
|
|
1450
1454
|
margin: 16px auto -8px;
|
|
1451
1455
|
}
|
|
1452
1456
|
|
|
@@ -1473,9 +1477,9 @@ footer.gh-portal-signup-footer.invite-only .gh-portal-signup-message {
|
|
|
1473
1477
|
float: left;
|
|
1474
1478
|
width: 18px;
|
|
1475
1479
|
height: 18px;
|
|
1476
|
-
margin:
|
|
1477
|
-
background: var(--
|
|
1478
|
-
border: 1px solid var(--
|
|
1480
|
+
margin: 1px 0 0;
|
|
1481
|
+
background: var(--white);
|
|
1482
|
+
border: 1px solid var(--grey10);
|
|
1479
1483
|
border-radius: 4px;
|
|
1480
1484
|
transition: background 0.15s ease-in-out, border-color 0.15s ease-in-out;
|
|
1481
1485
|
}
|
|
@@ -1511,7 +1515,6 @@ footer.gh-portal-signup-footer.invite-only .gh-portal-signup-message {
|
|
|
1511
1515
|
.gh-portal-signup-terms.gh-portal-error .checkbox,
|
|
1512
1516
|
.gh-portal-signup-terms.gh-portal-error label:hover input:not(:checked) + .checkbox {
|
|
1513
1517
|
border: 1px solid var(--red);
|
|
1514
|
-
background: var(--white);
|
|
1515
1518
|
box-shadow: 0 0 0 3px rgb(240, 37, 37, .15);
|
|
1516
1519
|
}
|
|
1517
1520
|
|
|
@@ -1552,7 +1555,7 @@ footer.gh-portal-signup-footer.invite-only .gh-portal-signup-message {
|
|
|
1552
1555
|
transform: translateX(-50%);
|
|
1553
1556
|
}
|
|
1554
1557
|
}
|
|
1555
|
-
`;class
|
|
1558
|
+
`;class Cg extends q.Component{constructor(n){super(n);Z(this,"handleSelectPlan",(n,r)=>{n&&n.preventDefault(),this.timeoutId=setTimeout(()=>{this.setState(i=>({plan:r}))},5)});this.state={name:"",email:"",plan:"free",showNewsletterSelection:!1,termsCheckboxChecked:!1}}componentDidMount(){const{member:n}=this.context;n&&this.context.onAction("switchPage",{page:"accountHome"}),this.handleSelectedPlan()}componentDidUpdate(){this.handleSelectedPlan()}handleSelectedPlan(){const{site:n,pageQuery:r}=this.context,i=Ra({site:n,pageQuery:r}),o=this.getSelectedPriceId(i,this.state.plan);o!==this.state.plan&&this.setState({plan:o})}componentWillUnmount(){clearTimeout(this.timeoutId)}getFormErrors(n){const i=this.context.site.portal_signup_checkbox_required&&!n.termsCheckboxChecked;return{...Ma({fields:this.getInputFields({state:n})}),checkbox:i}}doSignup(){this.setState(n=>({errors:this.getFormErrors(n)}),()=>{const{site:n,onAction:r}=this.context,{name:i,email:o,plan:a,errors:s}=this.state;s&&Object.values(s).filter(c=>!!c).length>0||(Na({site:n})?this.setState({showNewsletterSelection:!0,pageData:{name:i,email:o,plan:a},errors:{}}):(this.setState({errors:{}}),r("signup",{name:i,email:o,plan:a})))})}handleSignup(n){n.preventDefault(),this.doSignup()}handleChooseSignup(n,r){n.preventDefault(),this.setState({plan:r},()=>{this.doSignup()})}handleInputChange(n,r){const i=r.name,o=n.target.value;this.setState({[i]:o})}onKeyDown(n){n.keyCode===13&&this.handleSignup(n)}getSelectedPriceId(n=[],r){return!n||n.length===0?"free":n.some(o=>o.id===r)?r:n[0].id||"free"}getInputFields({state:n,fieldNames:r}){const{site:{portal_name:i},t:o}=this.context,a=n.errors||{},s=[{type:"email",value:n.email,placeholder:"jamie@example.com",label:o("Email"),name:"email",required:!0,tabindex:2,errorMessage:a.email||""}];return i&&s.unshift({type:"text",value:n.name,placeholder:"Jamie Larson",label:o("Name"),name:"name",required:!0,tabindex:1,errorMessage:a.name||""}),s[0].autoFocus=!0,r&&r.length>0?s.filter(l=>r.includes(l.name)):s}renderSignupTerms(){var c;const{site:n}=this.context;if(n.portal_signup_terms_html===null||n.portal_signup_terms_html==="")return null;const r=p=>{this.setState({termsCheckboxChecked:p.target.checked})},i=u("div",{className:"gh-portal-signup-terms-content",dangerouslySetInnerHTML:{__html:n.portal_signup_terms_html}}),o=n.portal_signup_checkbox_required?b("label",{children:[u("input",{type:"checkbox",checked:!!this.state.termsCheckboxChecked,required:!0,onChange:r}),u("span",{class:"checkbox"}),i]}):i,s=`gh-portal-signup-terms ${(c=this.state.errors)!=null&&c.checkbox?"gh-portal-error":""}`;return u("div",{className:s,onClick:p=>{p.target.tagName==="A"&&(p.preventDefault(),window.open(p.target.href,"_blank"))},children:o})}renderSubmitButton(){const{action:n,site:r,brandColor:i,pageQuery:o,t:a}=this.context;if(at({site:r,pageQuery:o}))return null;let s=a("Continue");const l=o==="free"&&En({site:r});if(_a({site:r})||l)s=a("Sign up");else return null;let c=!1;n==="signup:running"&&(s=a("Sending..."),c=!0);let p=!1;return n==="signup:failed"&&(s=a("Retry"),p=!0),u(he,{style:{width:"100%"},retry:p,onClick:f=>this.handleSignup(f),disabled:n==="signup:running",brandColor:i,label:s,isRunning:c,tabIndex:"3"})}renderProducts(){const{site:n,pageQuery:r}=this.context,i=Ca({site:n,pageQuery:r});return u(U,{children:u(kg,{handleChooseSignup:(...o)=>this.handleChooseSignup(...o),products:i,onPlanSelect:this.handleSelectPlan})})}renderFreeTrialMessage(){const{site:n,t:r}=this.context;return Pa({site:n})&&!at({site:n})?u("p",{className:"gh-portal-free-trial-notification","data-testid":"free-trial-notification-text",children:r("After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.")}):null}renderLoginMessage(){const{brandColor:n,onAction:r,t:i}=this.context;return b("div",{children:[this.renderFreeTrialMessage(),b("div",{className:"gh-portal-signup-message",children:[u("div",{children:i("Already a member?")}),u("button",{"data-test-button":"signin-switch",className:"gh-portal-btn gh-portal-btn-link",style:{color:n},onClick:()=>r("switchPage",{page:"signin"}),children:u("span",{children:i("Sign in")})})]})]})}renderForm(){const n=this.getInputFields({state:this.state}),{site:r,pageQuery:i,t:o}=this.context;if(this.state.showNewsletterSelection)return u(tu,{pageData:this.state.pageData,onBack:()=>{this.setState({showNewsletterSelection:!1})}});if(at({site:r,pageQuery:i}))return u("section",{children:b("div",{className:"gh-portal-section",children:[u("p",{className:"gh-portal-invite-only-notification","data-testid":"invite-only-notification-text",children:o("This site is invite-only, contact the owner for access.")}),this.renderLoginMessage()]})});const a=Zh({site:r}),s=tg({site:r}),l=i==="free"&&En({site:r}),c=Ta({site:r})||l,p=!l&&(a.length||s);return u("section",{className:"gh-portal-signup",children:b("div",{className:"gh-portal-section",children:[u("div",{className:"gh-portal-logged-out-form-container",children:u(Aa,{fields:n,onChange:(d,f)=>this.handleInputChange(d,f),onKeyDown:d=>this.onKeyDown(d)})}),b("div",{children:[c?b(U,{children:[this.renderProducts(),u("div",{className:"gh-portal-signup-terms-wrapper free-only",children:this.renderSignupTerms()})]}):b(U,{children:[u("div",{className:"gh-portal-signup-terms-wrapper",children:this.renderSignupTerms()}),this.renderProducts()]}),c?u("div",{className:"gh-portal-btn-container"+(p?" sticky m24":""),children:b("div",{className:"gh-portal-logged-out-form-container",children:[this.renderSubmitButton(),this.renderLoginMessage()]})}):this.renderLoginMessage()]})]})})}renderSiteLogo(){const{site:n,pageQuery:r}=this.context,i=n.icon;return i?u("img",{className:"gh-portal-signup-logo",src:i,alt:n.title}):at({site:n,pageQuery:r})?u(Jw,{className:"gh-portal-icon gh-portal-icon-invitation"}):null}renderFormHeader(){const{site:n}=this.context,r=n.title||"";return b("header",{className:"gh-portal-signup-header",children:[this.renderSiteLogo(),u("h1",{className:"gh-portal-main-title","data-testid":"site-title-text",children:r})]})}getClassNames(){const{site:n,pageQuery:r}=this.context,i=Ra({site:n,pageQuery:r}),o=this.getInputFields({state:this.state});let a="",s="";return(i.length<=1||at({site:n}))&&(i.length===1&&i[0].type==="free"||at({site:n,pageQuery:r})?(a=Wb({site:n})?"singleplan":"noplan",o.length===1&&(a="single-field"),at({site:n})&&(s="invite-only",a="invite-only")):a="singleplan"),{sectionClass:a,footerClass:s}}render(){let{sectionClass:n}=this.getClassNames();return b(U,{children:[u("div",{className:"gh-portal-back-sitetitle",children:u(Eg,{onBack:()=>{this.state.showNewsletterSelection?this.setState({showNewsletterSelection:!1}):this.context.onAction("closePopup")}})}),u(we,{}),b("div",{className:"gh-portal-content signup "+n,children:[this.renderFormHeader(),this.renderForm()]})]})}}Z(Cg,"contextType",R);const Zw=e=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},x.createElement("defs",null,x.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1px;}")),x.createElement("rect",{className:"a",x:.75,y:4.5,width:22.5,height:15,rx:1.5,ry:1.5}),x.createElement("line",{className:"a",x1:15.687,y1:9.975,x2:19.5,y2:13.5}),x.createElement("line",{className:"a",x1:8.313,y1:9.975,x2:4.5,y2:13.5}),x.createElement("path",{className:"a",d:"M22.88,5.014l-9.513,6.56a2.406,2.406,0,0,1-2.734,0L1.12,5.014"})),ex=`
|
|
1556
1559
|
.gh-portal-icon-envelope {
|
|
1557
1560
|
width: 44px;
|
|
1558
1561
|
margin: 12px 0 10px;
|
|
@@ -1569,7 +1572,7 @@ footer.gh-portal-signup-footer.invite-only .gh-portal-signup-message {
|
|
|
1569
1572
|
text-align: center;
|
|
1570
1573
|
margin-bottom: 30px;
|
|
1571
1574
|
}
|
|
1572
|
-
`;class
|
|
1575
|
+
`;class Pg extends q.Component{renderFormHeader(){const{t}=this.context;let n=t("Now check your email!"),r=t("A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.");return this.context.lastPage==="signup"&&(n=t("Now check your email!"),r=t("To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!")),b("section",{className:"gh-portal-inbox-notification",children:[b("header",{className:"gh-portal-header",children:[u(Zw,{className:"gh-portal-icon gh-portal-icon-envelope"}),u("h2",{className:"gh-portal-main-title",children:n})]}),u("p",{children:r})]})}renderLoginMessage(){const{t}=this.context;return u(U,{children:u("div",{style:{color:"#1d1d1d",fontWeight:"bold",cursor:"pointer"},onClick:()=>this.context.onAction("switchPage",{page:"signin"}),children:t("Back to Log in")})})}handleClose(t){this.context.onAction("closePopup")}renderCloseButton(){const{t}=this.context,n=t("Close");return u(he,{style:{width:"100%"},onClick:r=>this.handleClose(r),brandColor:this.context.brandColor,label:n})}render(){return b("div",{className:"gh-portal-content",children:[u(we,{}),this.renderFormHeader(),this.renderCloseButton()]})}}Z(Pg,"contextType",R);const tx=`
|
|
1573
1576
|
.gh-portal-popupnotification {
|
|
1574
1577
|
position: absolute;
|
|
1575
1578
|
top: 8px;
|
|
@@ -1662,7 +1665,7 @@ footer.gh-portal-signup-footer.invite-only .gh-portal-signup-message {
|
|
|
1662
1665
|
opacity: 0;
|
|
1663
1666
|
}
|
|
1664
1667
|
}
|
|
1665
|
-
`,nx=({hide:e=!1,onClose:t})=>e?null:u(Xc,{className:"closeicon",alt:"Close",onClick:t}),rx=({message:e,site:t})=>{const r=`mailto:${Oa({site:t})}`;return e?u("p",{children:e}):b("p",{children:[" An unexpected error occured. Please try again or ",u("a",{href:r,onClick:()=>{r&&window.open(r)},children:"contact support"})," if the error persists."]})};class
|
|
1668
|
+
`,nx=({hide:e=!1,onClose:t})=>e?null:u(Xc,{className:"closeicon",alt:"Close",onClick:t}),rx=({message:e,site:t})=>{const r=`mailto:${Oa({site:t})}`;return e?u("p",{children:e}):b("p",{children:[" An unexpected error occured. Please try again or ",u("a",{href:r,onClick:()=>{r&&window.open(r)},children:"contact support"})," if the error persists."]})};class Ng extends q.Component{constructor(){super(),this.state={className:""}}onAnimationEnd(t){const{popupNotification:n}=this.context,{type:r}=n||{};t.animationName==="popupnotification-slideout"&&(r==="stripe:billing-update"&&pg(["stripe"]),this.context.onAction("clearPopupNotification"))}closeNotification(t){this.context.onAction("clearPopupNotification")}componentDidUpdate(){const{popupNotification:t}=this.context;t.count!==this.state.notificationCount&&(clearTimeout(this.timeoutId),this.handlePopupNotification({popupNotification:t}))}handlePopupNotification({popupNotification:t}){if(this.setState({notificationCount:t.count}),t.autoHide){const{duration:n=2600}=t;this.timeoutId=setTimeout(()=>{this.setState(r=>r.className!=="slideout"?{className:"slideout",notificationCount:t.count}:{})},n)}}componentDidMount(){const{popupNotification:t}=this.context;this.handlePopupNotification({popupNotification:t})}componentWillUnmount(){clearTimeout(this.timeoutId)}render(){const{popupNotification:t,site:n}=this.context,{className:r}=this.state,{type:i,status:o,closeable:a,message:s}=t,l=o?` ${o}`:"",c=r?` ${r}`:"";return b("div",{className:`gh-portal-popupnotification${l}${c}`,onAnimationEnd:p=>this.onAnimationEnd(p),children:[o==="error"?u(Zc,{className:"gh-portal-popupnotification-icon error",alt:""}):u(dg,{className:"gh-portal-popupnotification-icon success",alt:""}),u(rx,{type:i,status:o,message:s,site:n}),u(nx,{hide:!a,onClose:p=>this.closeNotification(p)})]})}}Z(Ng,"contextType",R);const ix=({site:e})=>`
|
|
1666
1669
|
.gh-portal-offer {
|
|
1667
1670
|
padding-bottom: 0;
|
|
1668
1671
|
overflow: unset;
|
|
@@ -1787,7 +1790,7 @@ footer.gh-portal-signup-footer.invite-only .gh-portal-signup-message {
|
|
|
1787
1790
|
.gh-portal-cancel {
|
|
1788
1791
|
white-space: nowrap;
|
|
1789
1792
|
}
|
|
1790
|
-
`;class Tm extends q.Component{constructor(t,n){var r,i;super(t,n),this.state={name:((r=n==null?void 0:n.member)==null?void 0:r.name)||"",email:((i=n==null?void 0:n.member)==null?void 0:i.email)||"",plan:"free",showNewsletterSelection:!1}}getInputFields({state:t,fieldNames:n}){const{portal_name:r}=this.context.site,{member:i,t:o}=this.context,a=t.errors||{},s=[{type:"email",value:(i==null?void 0:i.email)||t.email,placeholder:"jamie@example.com",label:o("Email"),name:"email",disabled:!!i,required:!0,tabindex:2,errorMessage:a.email||""}];let l=!!r;return i&&!(i!=null&&i.name)&&(l=!1),l&&s.unshift({type:"text",value:(i==null?void 0:i.name)||t.name,placeholder:"Jamie Larson",label:o("Name"),name:"name",disabled:!!i,required:!0,tabindex:1,errorMessage:a.name||""}),s[0].autoFocus=!0,n&&n.length>0?s.filter(c=>n.includes(c.name)):s}onKeyDown(t){t.keyCode===13&&this.handleSignup(t)}handleSignup(t){t.preventDefault();const{pageData:n,site:r}=this.context;if(!n)return null;const i=br({site:r,productId:n.tier.id}),o=n.cadence==="month"?i.monthlyPrice:i.yearlyPrice;this.setState(a=>({errors:Ma({fields:this.getInputFields({state:a})})}),()=>{const{onAction:a}=this.context,{name:s,email:l,errors:c}=this.state;if(!(c&&Object.values(c).filter(d=>!!d).length>0)){const d={name:s,email:l,plan:o==null?void 0:o.id,offerId:n==null?void 0:n.id};Na({site:r})?this.setState({showNewsletterSelection:!0,pageData:d,errors:{}}):(a("signup",d),this.setState({errors:{}}))}})}handleInputChange(t,n){const r=n.name,i=t.target.value;this.setState({[r]:i})}renderSiteLogo(){const{site:t}=this.context,n=t.icon;return n?u("img",{className:"gh-portal-signup-logo",src:n,alt:t.title}):null}renderFormHeader(){const{site:t}=this.context,n=t.title||"";return b("header",{className:"gh-portal-signup-header",children:[this.renderSiteLogo(),u("h2",{className:"gh-portal-main-title",children:n})]})}renderForm(){const t=this.getInputFields({state:this.state});return this.state.showNewsletterSelection?u(tu,{pageData:this.state.pageData,onBack:()=>{this.setState({showNewsletterSelection:!1})}}):u("section",{children:u("div",{className:"gh-portal-section",children:u(Aa,{fields:t,onChange:(n,r)=>this.handleInputChange(n,r),onKeyDown:n=>this.onKeyDown(n)})})})}renderSubmitButton(){const{action:t,brandColor:n,t:r}=this.context,{pageData:i}=this.context;let o=r("Continue");i.type==="trial"&&(o=r("Start {{amount}}-day free trial",{amount:i.amount}));let a=!1;t==="signup:running"&&(o=r("Sending..."),a=!0);let s=!1;return t==="signup:failed"&&(o=r("Retry"),s=!0),u(he,{style:{width:"100%"},retry:s,onClick:c=>this.handleSignup(c),disabled:t==="signup:running",brandColor:n,label:o,isRunning:a,tabindex:"3",classes:"sticky bottom"})}renderLoginMessage(){const{member:t}=this.context;if(t)return null;const{brandColor:n,onAction:r,t:i}=this.context;return b("div",{className:"gh-portal-signup-message",children:[u("div",{children:i("Already a member?")}),u("button",{className:"gh-portal-btn gh-portal-btn-link",style:{color:n},onClick:()=>r("switchPage",{page:"signin"}),children:u("span",{children:i("Sign in")})})]})}renderOfferTag(){const{pageData:t}=this.context;return t.amount<=0?u(Y,{}):t.type==="fixed"?b("h5",{className:"gh-portal-discount-label",children:[fe(t.currency),t.amount/100," off"]}):t.type==="trial"?b("h5",{className:"gh-portal-discount-label",children:[t.amount," days free"]}):b("h5",{className:"gh-portal-discount-label",children:[t.amount,"% off"]})}renderBenefits({product:t}){const n=t.benefits||[];if(!(n!=null&&n.length))return;const r=n.map((i,o)=>b("div",{className:"gh-portal-product-benefit",children:[u(gm,{className:"gh-portal-benefit-checkmark"}),u("div",{className:"gh-portal-benefit-title",children:i.name})]},`${i.name}-${o}`));return u("div",{className:"gh-portal-product-benefits",children:r})}getOriginalPrice({offer:t,product:n}){const r=t.cadence==="month"?n.monthlyPrice:n.yearlyPrice,i=this.renderRoundedPrice(r.amount/100);return`${fe(r.currency)}${i}/${t.cadence}`}getUpdatedPrice({offer:t,product:n}){const r=t.cadence==="month"?n.monthlyPrice:n.yearlyPrice,i=r.amount;let o;return t.type==="fixed"&&Da(t.currency,r.currency)?(o=(i-t.amount)/100,o>0?o:0):t.type==="percent"?(o=(i-i*t.amount/100)/100,o):i/100}renderRoundedPrice(t){if(t%1!==0){const n=Math.round(t*100)/100;return Number(n).toFixed(2)}return t}getOffAmount({offer:t}){return t.type==="fixed"?`${fe(t.currency)}${t.amount/100}`:t.type==="percent"?`${t.amount}%`:t.type==="trial"?t.amount:""}renderOfferMessage({offer:t,product:n,price:r}){const i=t.duration;let o="";const a=this.getOriginalPrice({offer:t,product:n});let s="";if(i==="once")o=`for first ${t.cadence}`,s=`Renews at ${a}.`;else if(i==="forever")o="forever";else if(i==="repeating"){const l=t.duration_in_months||"";l===1?o="for first month":o=`for first ${l} months`,s=`Renews at ${a}.`}return i==="trial"?b("p",{className:"footnote",children:["Try free for ",t.amount," days, then ",a,". ",u("span",{class:"gh-portal-cancel",children:"Cancel anytime."})]}):b("p",{className:"footnote",children:[this.getOffAmount({offer:t})," off ",o,". ",s]})}renderProductLabel({product:t,offer:n}){const{site:r,t:i}=this.context;return Sa({site:r})?b("h4",{className:"gh-portal-plan-name",children:[t.name," - ",n.cadence==="month"?i("Monthly"):i("Yearly")]}):u("h4",{className:"gh-portal-plan-name",children:n.cadence==="month"?i("Monthly"):i("Yearly")})}renderUpdatedTierPrice({offer:t,currencyClass:n,updatedPrice:r,price:i}){return t.type==="trial"?u("div",{className:"gh-portal-product-card-pricecontainer offer-type-trial",children:b("div",{className:"gh-portal-product-price",children:[u("span",{className:"currency-sign "+n,children:fe(i.currency)}),u("span",{className:"amount",children:xr(this.renderRoundedPrice(r))})]})}):u("div",{className:"gh-portal-product-card-pricecontainer",children:b("div",{className:"gh-portal-product-price",children:[u("span",{className:"currency-sign "+n,children:fe(i.currency)}),u("span",{className:"amount",children:xr(this.renderRoundedPrice(r))})]})})}renderOldTierPrice({offer:t,price:n}){return t.type==="trial"?null:b("div",{className:"gh-portal-offer-oldprice",children:[fe(n.currency)," ",xr(n.amount/100)]})}renderProductCard({product:t,offer:n,currencyClass:r,updatedPrice:i,price:o,benefits:a}){const{t:s}=this.context;return this.state.showNewsletterSelection?null:b(Y,{children:[u("div",{className:"gh-portal-product-card top",children:b("div",{className:"gh-portal-product-card-header",children:[b("h4",{className:"gh-portal-product-name",children:[t.name," - ",n.cadence==="month"?s("Monthly"):s("Yearly")]}),this.renderOldTierPrice({offer:n,price:o}),this.renderUpdatedTierPrice({offer:n,currencyClass:r,updatedPrice:i,price:o}),this.renderOfferMessage({offer:n,product:t,price:o})]})}),b("div",{children:[u("div",{className:"gh-portal-product-card bottom",children:b("div",{className:"gh-portal-product-card-detaildata",children:[t.description?u("div",{className:"gh-portal-product-description",children:t.description}):"",a.length?this.renderBenefits({product:t}):""]})}),u("div",{className:"gh-portal-btn-container sticky m32",children:this.renderSubmitButton()}),this.renderLoginMessage()]})]})}render(){const{pageData:t,site:n}=this.context;if(!t)return null;const r=br({site:n,productId:t.tier.id});if(!r)return null;const i=t.cadence==="month"?r.monthlyPrice:r.yearlyPrice,o=this.getUpdatedPrice({offer:t,product:r}),a=r.benefits||[],s=fe(i.currency).length>1?"long":"";return u(Y,{children:b("div",{className:"gh-portal-content gh-portal-offer",children:[u(we,{}),this.renderFormHeader(),b("div",{className:"gh-portal-offer-bar",children:[b("div",{className:"gh-portal-offer-title",children:[t.display_title?u("h4",{children:t.display_title}):u("h4",{className:"placeholder",children:"Black Friday"}),this.renderOfferTag()]}),t.display_description?u("p",{children:t.display_description}):""]}),this.renderForm(),this.renderProductCard({product:r,offer:t,currencyClass:s,updatedPrice:o,price:i,benefits:a})]})})}}Z(Tm,"contextType",R);const $m=e=>x.createElement("svg",{width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("defs",null,x.createElement("style",null,"path{stroke:currentColor;}")),x.createElement("path",{d:"M9.20837 15.8011C9.83721 15.4781 10.4682 15.1573 11.1013 14.8386C22.77 8.94169 22.1989 10.0903 32.1897 10.0903C36.3605 10.0903 38.4812 12.8045 39.7132 16.7796V16.8053L42.7451 26.9244V26.9436C42.8892 27.4178 42.92 27.9192 42.835 28.4075C42.75 28.8958 42.5516 29.3572 42.2558 29.7549C41.9599 30.1525 41.5748 30.4751 41.1316 30.6967C40.6883 30.9184 40.1992 31.0329 39.7036 31.0311H31.9073C31.4217 31.0324 30.9426 31.144 30.5064 31.3574C30.0701 31.5708 29.688 31.8805 29.3888 32.2631C29.0915 32.6461 28.8867 33.0927 28.7904 33.568C28.6941 34.0433 28.7089 34.5344 28.8337 35.003L30.2358 40.2935C30.3448 40.7044 30.3548 41.1353 30.265 41.5508C30.1752 41.9662 29.9882 42.3545 29.7192 42.6837C29.4535 43.0094 29.1162 43.2693 28.7335 43.4432C28.3508 43.6172 27.9332 43.7004 27.5131 43.6864C27.093 43.6724 26.6818 43.5617 26.3115 43.3627C25.9412 43.1637 25.6219 42.882 25.3784 42.5394L17.6046 30.5883C17.3083 30.1754 16.9182 29.8388 16.4664 29.6062C16.0146 29.3736 15.514 29.2517 15.0058 29.2504H9.20837M6 32.4587H9.20833V10.0003H6",stroke:"black",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"})),Rm=e=>x.createElement("svg",{width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("defs",null,x.createElement("style",null,"path{stroke:currentColor;}")),x.createElement("path",{d:"M9.20837 33.8868C9.83721 34.2098 10.4682 34.5306 11.1013 34.8493C22.77 40.7462 22.1989 39.5976 32.1897 39.5976C36.3605 39.5976 38.4812 36.8834 39.7132 32.9083V32.8826L42.7451 22.7635V22.7443C42.8892 22.2701 42.92 21.7687 42.835 21.2804C42.75 20.7922 42.5516 20.3307 42.2558 19.9331C41.9599 19.5355 41.5748 19.2129 41.1316 18.9912C40.6883 18.7695 40.1992 18.655 39.7036 18.6568H31.9073C31.4217 18.6555 30.9426 18.5439 30.5064 18.3305C30.0701 18.1171 29.688 17.8074 29.3888 17.4248C29.0915 17.0418 28.8867 16.5952 28.7904 16.1199C28.6941 15.6446 28.7089 15.1535 28.8337 14.6849L30.2358 9.39439C30.3448 8.98352 30.3548 8.55265 30.265 8.13716C30.1752 7.72167 29.9882 7.33339 29.7192 7.00418C29.4535 6.67851 29.1162 6.41858 28.7335 6.24467C28.3508 6.07075 27.9332 5.98754 27.5131 6.00151C27.093 6.01548 26.6818 6.12626 26.3115 6.32522C25.9412 6.52418 25.6219 6.80594 25.3784 7.14856L17.6046 19.0996C17.3083 19.5125 16.9182 19.8491 16.4664 20.0817C16.0146 20.3143 15.514 20.4362 15.0058 20.4375H9.20837M6 17.2292H9.20833V39.6876H6",stroke:"black",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"})),ox=e=>x.createElement("svg",{width:96,height:56,viewBox:"0 0 96 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("path",{d:"M9.00004 34.973C9.66499 35.3085 10.3322 35.6418 11.0017 35.9729C23.3405 42.0995 22.7366 40.9062 33.3011 40.9062C37.7115 40.9062 39.954 38.0862 41.2567 33.9563V33.9296L44.4627 23.4164V23.3964C44.6151 22.9038 44.6477 22.3828 44.5578 21.8756C44.4679 21.3683 44.2581 20.8888 43.9453 20.4757C43.6324 20.0626 43.2253 19.7275 42.7565 19.4972C42.2878 19.2669 41.7706 19.1479 41.2466 19.1498H33.0026C32.489 19.1484 31.9825 19.0325 31.5211 18.8108C31.0598 18.5891 30.6558 18.2673 30.3394 17.8698C30.025 17.4718 29.8084 17.0078 29.7066 16.5141C29.6048 16.0203 29.6205 15.51 29.7525 15.0232L31.235 9.5266C31.3503 9.09972 31.3609 8.65208 31.2659 8.2204C31.171 7.78873 30.9732 7.38533 30.6888 7.0433C30.4078 6.70494 30.0511 6.43489 29.6465 6.2542C29.2418 6.07351 28.8002 5.98706 28.3559 6.00157C27.9117 6.01609 27.4769 6.13118 27.0854 6.33789C26.6938 6.5446 26.3562 6.83734 26.0987 7.19329L17.8784 19.6098C17.5652 20.0388 17.1527 20.3885 16.6749 20.6301C16.1971 20.8718 15.6678 20.9985 15.1304 20.9998H9.00004M9 17.6666L9 40.9997",stroke:"black",strokeWidth:2.85,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M86.2148 20.027C85.5499 19.6915 84.8826 19.3582 84.2132 19.0271C71.8743 12.9005 72.4782 14.0938 61.9137 14.0938C57.5034 14.0938 55.2609 16.9138 53.9581 21.0437V21.0704L50.7521 31.5836V31.6036C50.5997 32.0962 50.5672 32.6172 50.657 33.1244C50.7469 33.6317 50.9567 34.1112 51.2695 34.5243C51.5824 34.9374 51.9896 35.2725 52.4583 35.5028C52.927 35.7331 53.4442 35.8521 53.9683 35.8502H62.2123C62.7258 35.8516 63.2324 35.9675 63.6937 36.1892C64.155 36.4109 64.5591 36.7327 64.8754 37.1302C65.1899 37.5282 65.4064 37.9922 65.5082 38.4859C65.61 38.9797 65.5943 39.49 65.4624 39.9768L63.9798 45.4734C63.8646 45.9003 63.854 46.3479 63.9489 46.7796C64.0439 47.2113 64.2416 47.6147 64.526 47.9567C64.807 48.2951 65.1637 48.5651 65.5684 48.7458C65.973 48.9265 66.4147 49.0129 66.8589 48.9984C67.3031 48.9839 67.7379 48.8688 68.1295 48.6621C68.521 48.4554 68.8587 48.1627 69.1162 47.8067L77.3364 35.3902C77.6497 34.9612 78.0622 34.6115 78.5399 34.3699C79.0177 34.1282 79.547 34.0015 80.0844 34.0002H86.2148M86.2148 37.3334V14.0003",stroke:"black",strokeWidth:2.85,strokeLinecap:"round",strokeLinejoin:"round"}));class _t extends Error{static async fromApiResponse(t){if(t.status===400||t.status===429)try{const n=await t.json();if(n.errors&&Array.isArray(n.errors)&&n.errors.length>0&&n.errors[0].message)return new _t(n.errors[0].message)}catch{return!1}}static getMessageFromError(t,n){return t instanceof _t?t.message:n}}function za({siteUrl:e=window.location.origin,apiUrl:t,apiKey:n}){const r="members/api";function i({type:l,resource:c}){if(l==="members")return`${e.replace(/\/$/,"")}/${r}/${c}/`}function o({resource:l,params:c=""}){return t&&n?`${t.replace(/\/$/,"")}/${l}/?key=${n}&limit=all${c}`:""}function a({url:l,method:c="GET",headers:p={},credentials:d=void 0,body:f=void 0}){return fetch(l,{method:c,headers:p,credentials:d,body:f})}const s={};return s.site={read(){const l=i({type:"members",resource:"site"});return a({url:l,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(c){if(c.ok)return c.json();throw new Error("Failed to fetch site data")})},newsletters(){const l=o({resource:"newsletters"});return a({url:l,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(c){if(c.ok)return c.json();throw new Error("Failed to fetch site data")})},tiers(){const l=o({resource:"tiers",params:"&include=monthly_price,yearly_price,benefits"});return a({url:l,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(c){if(c.ok)return c.json();throw new Error("Failed to fetch site data")})},settings(){const l=o({resource:"settings"});return a({url:l,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(c){if(c.ok)return c.json();throw new Error("Failed to fetch site data")})},offer({offerId:l}){const c=o({resource:`offers/${l}`});return a({url:c,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(p){if(p.ok)return p.json();throw new Error("Failed to fetch offer data")})}},s.feedback={async add({uuid:l,postId:c,score:p}){let d=i({type:"members",resource:"feedback"});d=d+`?uuid=${l}`;const y=await a({url:d,method:"POST",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({feedback:[{post_id:c,score:p}]})});if(y.ok)return y.json();throw await _t.fromApiResponse(y)??new Error("Failed to save feedback")}},s.member={identity(){const l=i({type:"members",resource:"session"});return a({url:l,credentials:"same-origin"}).then(function(c){return!c.ok||c.status===204?null:c.text()})},sessionData(){const l=i({type:"members",resource:"member"});return a({url:l,credentials:"same-origin"}).then(function(c){return!c.ok||c.status===204?null:c.json()})},update({name:l,subscribed:c,newsletters:p,enableCommentNotifications:d}){const f=i({type:"members",resource:"member"}),y={name:l,subscribed:c,newsletters:p};return d!==void 0&&(y.enable_comment_notifications=d),a({url:f,method:"PUT",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(y)}).then(function(v){return v.ok?v.json():null})},deleteSuppression(){const l=i({type:"members",resource:"member/suppression"});return a({url:l,method:"DELETE"}).then(function(c){if(!c.ok)throw new Error("Your email has failed to resubscribe, please try again");return!0})},async sendMagicLink({email:l,emailType:c,labels:p,name:d,oldEmail:f,newsletters:y,redirect:v}){const _=i({type:"members",resource:"send-magic-link"}),g={name:d,email:l,newsletters:y,oldEmail:f,emailType:c,labels:p,requestSrc:"portal",redirect:v},h=La();h&&(g.urlHistory=h);const m=await a({url:_,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(g)});if(m.ok)return"Success";{const w=await _t.fromApiResponse(m);throw w||new Error("Failed to send magic link email")}},signout(){const l=i({type:"members",resource:"session"});return a({url:l,method:"DELETE"}).then(function(c){if(c.ok)return window.location.replace(e),"Success";throw new Error("Failed to signout")})},async newsletters({uuid:l}){let c=i({type:"members",resource:"member/newsletters"});return c=c+`?uuid=${l}`,a({url:c,credentials:"same-origin"}).then(function(p){return!p.ok||p.status===204?null:p.json()})},async updateNewsletters({uuid:l,newsletters:c,enableCommentNotifications:p}){let d=i({type:"members",resource:"member/newsletters"});d=d+`?uuid=${l}`;const f={newsletters:c};return p!==void 0&&(f.enable_comment_notifications=p),a({url:d,method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(f)}).then(function(y){if(y.ok)return y.json();throw new Error("Failed to update email preferences")})},async updateEmailAddress({email:l}){const c=await s.member.identity(),p=i({type:"members",resource:"member/email"});return a({url:p,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:l,identity:c})}).then(function(f){if(f.ok)return"Success";throw new Error("Failed to send email address verification email")})},async checkoutPlan({plan:l,tierId:c,cadence:p,cancelUrl:d,successUrl:f,email:y,name:v,offerId:_,newsletters:g,metadata:h={}}={}){var $,O;const m=new URL(e),w=await s.member.identity(),k=i({type:"members",resource:"create-stripe-checkout-session"});if(!d){const N=window.location.href.startsWith(m.href)?new URL(window.location.href):new URL(e);N.searchParams.set("stripe","cancel"),d=N.href}const C={name:v,newsletters:JSON.stringify(g),requestSrc:"portal",fp_tid:(O=($=window.FPROM||window.$FPROM)==null?void 0:$.data)==null?void 0:O.tid,urlHistory:La(),...h},S={priceId:_?null:l,offerId:_,identity:w,metadata:C,successUrl:f,cancelUrl:d};return y&&(S.customerEmail=y),c&&p&&(delete S.priceId,S.tierId=_?null:c,S.cadence=_?null:p),a({url:k,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(S)}).then(async function(N){var F,He;if(!N.ok){const te=await N.json(),re=((He=(F=te==null?void 0:te.errors)==null?void 0:F[0])==null?void 0:He.message)||"Failed to signup, please try again.";throw new Error(re)}return N.json()}).then(function(N){return N.url?window.location.assign(N.url):window.Stripe(N.publicKey).redirectToCheckout({sessionId:N.sessionId}).then(function(He){if(He.error)throw new Error(He.error.message)})})},async editBilling({successUrl:l,cancelUrl:c,subscriptionId:p}={}){const d=new URL(e),f=await s.member.identity(),y=i({type:"members",resource:"create-stripe-update-session"});if(!l){const v=new URL(e);v.searchParams.set("stripe","billing-update-success"),l=v.href}if(!c){const v=window.location.href.startsWith(d.href)?new URL(window.location.href):new URL(e);v.searchParams.set("stripe","billing-update-cancel"),c=v.href}return a({url:y,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identity:f,subscription_id:p,successUrl:l,cancelUrl:c})}).then(function(v){if(!v.ok)throw new Error("Unable to create stripe checkout session");return v.json()}).then(function(v){return window.Stripe(v.publicKey).redirectToCheckout({sessionId:v.sessionId})}).then(function(v){if(v.error)throw new Error(v.error.message)}).catch(function(v){throw v})},async updateSubscription({subscriptionId:l,tierId:c,cadence:p,planId:d,smartCancel:f,cancelAtPeriodEnd:y,cancellationReason:v}){const _=await s.member.identity(),g=i({type:"members",resource:"subscriptions"})+l+"/",h={smart_cancel:f,cancel_at_period_end:y,cancellation_reason:v,identity:_,priceId:d};return c&&p&&(delete h.priceId,h.tierId=c,h.cadence=p),a({url:g,method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(h)})}},s.init=async()=>{let[l]=await Promise.all([s.member.sessionData()]),c={},p=[],d=[],f={};try{[{settings:f},{tiers:d},{newsletters:p}]=await Promise.all([s.site.settings(),s.site.tiers(),s.site.newsletters()]),c={...f,newsletters:p,tiers:ow({tiers:d})}}catch{}return c=Gb({site:c}),{site:c,member:l}},s}class Om extends q.Component{render(){return u("div",{style:{display:"flex",flexDirection:"column",color:"#313131"},children:u("div",{style:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"12px",height:"50px"},children:u(Fi,{className:"gh-portal-loadingicon dark"})})})}}const ax=`
|
|
1793
|
+
`;class Tg extends q.Component{constructor(t,n){var r,i;super(t,n),this.state={name:((r=n==null?void 0:n.member)==null?void 0:r.name)||"",email:((i=n==null?void 0:n.member)==null?void 0:i.email)||"",plan:"free",showNewsletterSelection:!1}}getInputFields({state:t,fieldNames:n}){const{portal_name:r}=this.context.site,{member:i,t:o}=this.context,a=t.errors||{},s=[{type:"email",value:(i==null?void 0:i.email)||t.email,placeholder:"jamie@example.com",label:o("Email"),name:"email",disabled:!!i,required:!0,tabindex:2,errorMessage:a.email||""}];let l=!!r;return i&&!(i!=null&&i.name)&&(l=!1),l&&s.unshift({type:"text",value:(i==null?void 0:i.name)||t.name,placeholder:"Jamie Larson",label:o("Name"),name:"name",disabled:!!i,required:!0,tabindex:1,errorMessage:a.name||""}),s[0].autoFocus=!0,n&&n.length>0?s.filter(c=>n.includes(c.name)):s}onKeyDown(t){t.keyCode===13&&this.handleSignup(t)}handleSignup(t){t.preventDefault();const{pageData:n,site:r}=this.context;if(!n)return null;const i=br({site:r,productId:n.tier.id}),o=n.cadence==="month"?i.monthlyPrice:i.yearlyPrice;this.setState(a=>({errors:Ma({fields:this.getInputFields({state:a})})}),()=>{const{onAction:a}=this.context,{name:s,email:l,errors:c}=this.state;if(!(c&&Object.values(c).filter(d=>!!d).length>0)){const d={name:s,email:l,plan:o==null?void 0:o.id,offerId:n==null?void 0:n.id};Na({site:r})?this.setState({showNewsletterSelection:!0,pageData:d,errors:{}}):(a("signup",d),this.setState({errors:{}}))}})}handleInputChange(t,n){const r=n.name,i=t.target.value;this.setState({[r]:i})}renderSiteLogo(){const{site:t}=this.context,n=t.icon;return n?u("img",{className:"gh-portal-signup-logo",src:n,alt:t.title}):null}renderFormHeader(){const{site:t}=this.context,n=t.title||"";return b("header",{className:"gh-portal-signup-header",children:[this.renderSiteLogo(),u("h2",{className:"gh-portal-main-title",children:n})]})}renderForm(){const t=this.getInputFields({state:this.state});return this.state.showNewsletterSelection?u(tu,{pageData:this.state.pageData,onBack:()=>{this.setState({showNewsletterSelection:!1})}}):u("section",{children:u("div",{className:"gh-portal-section",children:u(Aa,{fields:t,onChange:(n,r)=>this.handleInputChange(n,r),onKeyDown:n=>this.onKeyDown(n)})})})}renderSubmitButton(){const{action:t,brandColor:n,t:r}=this.context,{pageData:i}=this.context;let o=r("Continue");i.type==="trial"&&(o=r("Start {{amount}}-day free trial",{amount:i.amount}));let a=!1;t==="signup:running"&&(o=r("Sending..."),a=!0);let s=!1;return t==="signup:failed"&&(o=r("Retry"),s=!0),u(he,{style:{width:"100%"},retry:s,onClick:c=>this.handleSignup(c),disabled:t==="signup:running",brandColor:n,label:o,isRunning:a,tabindex:"3",classes:"sticky bottom"})}renderLoginMessage(){const{member:t}=this.context;if(t)return null;const{brandColor:n,onAction:r,t:i}=this.context;return b("div",{className:"gh-portal-signup-message",children:[u("div",{children:i("Already a member?")}),u("button",{className:"gh-portal-btn gh-portal-btn-link",style:{color:n},onClick:()=>r("switchPage",{page:"signin"}),children:u("span",{children:i("Sign in")})})]})}renderOfferTag(){const{pageData:t}=this.context;return t.amount<=0?u(U,{}):t.type==="fixed"?b("h5",{className:"gh-portal-discount-label",children:[fe(t.currency),t.amount/100," off"]}):t.type==="trial"?b("h5",{className:"gh-portal-discount-label",children:[t.amount," days free"]}):b("h5",{className:"gh-portal-discount-label",children:[t.amount,"% off"]})}renderBenefits({product:t}){const n=t.benefits||[];if(!(n!=null&&n.length))return;const r=n.map((i,o)=>b("div",{className:"gh-portal-product-benefit",children:[u(mg,{className:"gh-portal-benefit-checkmark"}),u("div",{className:"gh-portal-benefit-title",children:i.name})]},`${i.name}-${o}`));return u("div",{className:"gh-portal-product-benefits",children:r})}getOriginalPrice({offer:t,product:n}){const r=t.cadence==="month"?n.monthlyPrice:n.yearlyPrice,i=this.renderRoundedPrice(r.amount/100);return`${fe(r.currency)}${i}/${t.cadence}`}getUpdatedPrice({offer:t,product:n}){const r=t.cadence==="month"?n.monthlyPrice:n.yearlyPrice,i=r.amount;let o;return t.type==="fixed"&&Da(t.currency,r.currency)?(o=(i-t.amount)/100,o>0?o:0):t.type==="percent"?(o=(i-i*t.amount/100)/100,o):i/100}renderRoundedPrice(t){if(t%1!==0){const n=Math.round(t*100)/100;return Number(n).toFixed(2)}return t}getOffAmount({offer:t}){return t.type==="fixed"?`${fe(t.currency)}${t.amount/100}`:t.type==="percent"?`${t.amount}%`:t.type==="trial"?t.amount:""}renderOfferMessage({offer:t,product:n,price:r}){const i=t.duration;let o="";const a=this.getOriginalPrice({offer:t,product:n});let s="";if(i==="once")o=`for first ${t.cadence}`,s=`Renews at ${a}.`;else if(i==="forever")o="forever";else if(i==="repeating"){const l=t.duration_in_months||"";l===1?o="for first month":o=`for first ${l} months`,s=`Renews at ${a}.`}return i==="trial"?b("p",{className:"footnote",children:["Try free for ",t.amount," days, then ",a,". ",u("span",{class:"gh-portal-cancel",children:"Cancel anytime."})]}):b("p",{className:"footnote",children:[this.getOffAmount({offer:t})," off ",o,". ",s]})}renderProductLabel({product:t,offer:n}){const{site:r,t:i}=this.context;return Sa({site:r})?b("h4",{className:"gh-portal-plan-name",children:[t.name," - ",n.cadence==="month"?i("Monthly"):i("Yearly")]}):u("h4",{className:"gh-portal-plan-name",children:n.cadence==="month"?i("Monthly"):i("Yearly")})}renderUpdatedTierPrice({offer:t,currencyClass:n,updatedPrice:r,price:i}){return t.type==="trial"?u("div",{className:"gh-portal-product-card-pricecontainer offer-type-trial",children:b("div",{className:"gh-portal-product-price",children:[u("span",{className:"currency-sign "+n,children:fe(i.currency)}),u("span",{className:"amount",children:xr(this.renderRoundedPrice(r))})]})}):u("div",{className:"gh-portal-product-card-pricecontainer",children:b("div",{className:"gh-portal-product-price",children:[u("span",{className:"currency-sign "+n,children:fe(i.currency)}),u("span",{className:"amount",children:xr(this.renderRoundedPrice(r))})]})})}renderOldTierPrice({offer:t,price:n}){return t.type==="trial"?null:b("div",{className:"gh-portal-offer-oldprice",children:[fe(n.currency)," ",xr(n.amount/100)]})}renderProductCard({product:t,offer:n,currencyClass:r,updatedPrice:i,price:o,benefits:a}){const{t:s}=this.context;return this.state.showNewsletterSelection?null:b(U,{children:[u("div",{className:"gh-portal-product-card top",children:b("div",{className:"gh-portal-product-card-header",children:[b("h4",{className:"gh-portal-product-name",children:[t.name," - ",n.cadence==="month"?s("Monthly"):s("Yearly")]}),this.renderOldTierPrice({offer:n,price:o}),this.renderUpdatedTierPrice({offer:n,currencyClass:r,updatedPrice:i,price:o}),this.renderOfferMessage({offer:n,product:t,price:o})]})}),b("div",{children:[u("div",{className:"gh-portal-product-card bottom",children:b("div",{className:"gh-portal-product-card-detaildata",children:[t.description?u("div",{className:"gh-portal-product-description",children:t.description}):"",a.length?this.renderBenefits({product:t}):""]})}),u("div",{className:"gh-portal-btn-container sticky m32",children:this.renderSubmitButton()}),this.renderLoginMessage()]})]})}render(){const{pageData:t,site:n}=this.context;if(!t)return null;const r=br({site:n,productId:t.tier.id});if(!r)return null;const i=t.cadence==="month"?r.monthlyPrice:r.yearlyPrice,o=this.getUpdatedPrice({offer:t,product:r}),a=r.benefits||[],s=fe(i.currency).length>1?"long":"";return u(U,{children:b("div",{className:"gh-portal-content gh-portal-offer",children:[u(we,{}),this.renderFormHeader(),b("div",{className:"gh-portal-offer-bar",children:[b("div",{className:"gh-portal-offer-title",children:[t.display_title?u("h4",{children:t.display_title}):u("h4",{className:"placeholder",children:"Black Friday"}),this.renderOfferTag()]}),t.display_description?u("p",{children:t.display_description}):""]}),this.renderForm(),this.renderProductCard({product:r,offer:t,currencyClass:s,updatedPrice:o,price:i,benefits:a})]})})}}Z(Tg,"contextType",R);const $g=e=>x.createElement("svg",{width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("defs",null,x.createElement("style",null,"path{stroke:currentColor;}")),x.createElement("path",{d:"M9.20837 15.8011C9.83721 15.4781 10.4682 15.1573 11.1013 14.8386C22.77 8.94169 22.1989 10.0903 32.1897 10.0903C36.3605 10.0903 38.4812 12.8045 39.7132 16.7796V16.8053L42.7451 26.9244V26.9436C42.8892 27.4178 42.92 27.9192 42.835 28.4075C42.75 28.8958 42.5516 29.3572 42.2558 29.7549C41.9599 30.1525 41.5748 30.4751 41.1316 30.6967C40.6883 30.9184 40.1992 31.0329 39.7036 31.0311H31.9073C31.4217 31.0324 30.9426 31.144 30.5064 31.3574C30.0701 31.5708 29.688 31.8805 29.3888 32.2631C29.0915 32.6461 28.8867 33.0927 28.7904 33.568C28.6941 34.0433 28.7089 34.5344 28.8337 35.003L30.2358 40.2935C30.3448 40.7044 30.3548 41.1353 30.265 41.5508C30.1752 41.9662 29.9882 42.3545 29.7192 42.6837C29.4535 43.0094 29.1162 43.2693 28.7335 43.4432C28.3508 43.6172 27.9332 43.7004 27.5131 43.6864C27.093 43.6724 26.6818 43.5617 26.3115 43.3627C25.9412 43.1637 25.6219 42.882 25.3784 42.5394L17.6046 30.5883C17.3083 30.1754 16.9182 29.8388 16.4664 29.6062C16.0146 29.3736 15.514 29.2517 15.0058 29.2504H9.20837M6 32.4587H9.20833V10.0003H6",stroke:"black",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"})),Rg=e=>x.createElement("svg",{width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("defs",null,x.createElement("style",null,"path{stroke:currentColor;}")),x.createElement("path",{d:"M9.20837 33.8868C9.83721 34.2098 10.4682 34.5306 11.1013 34.8493C22.77 40.7462 22.1989 39.5976 32.1897 39.5976C36.3605 39.5976 38.4812 36.8834 39.7132 32.9083V32.8826L42.7451 22.7635V22.7443C42.8892 22.2701 42.92 21.7687 42.835 21.2804C42.75 20.7922 42.5516 20.3307 42.2558 19.9331C41.9599 19.5355 41.5748 19.2129 41.1316 18.9912C40.6883 18.7695 40.1992 18.655 39.7036 18.6568H31.9073C31.4217 18.6555 30.9426 18.5439 30.5064 18.3305C30.0701 18.1171 29.688 17.8074 29.3888 17.4248C29.0915 17.0418 28.8867 16.5952 28.7904 16.1199C28.6941 15.6446 28.7089 15.1535 28.8337 14.6849L30.2358 9.39439C30.3448 8.98352 30.3548 8.55265 30.265 8.13716C30.1752 7.72167 29.9882 7.33339 29.7192 7.00418C29.4535 6.67851 29.1162 6.41858 28.7335 6.24467C28.3508 6.07075 27.9332 5.98754 27.5131 6.00151C27.093 6.01548 26.6818 6.12626 26.3115 6.32522C25.9412 6.52418 25.6219 6.80594 25.3784 7.14856L17.6046 19.0996C17.3083 19.5125 16.9182 19.8491 16.4664 20.0817C16.0146 20.3143 15.514 20.4362 15.0058 20.4375H9.20837M6 17.2292H9.20833V39.6876H6",stroke:"black",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"})),ox=e=>x.createElement("svg",{width:96,height:56,viewBox:"0 0 96 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("path",{d:"M9.00004 34.973C9.66499 35.3085 10.3322 35.6418 11.0017 35.9729C23.3405 42.0995 22.7366 40.9062 33.3011 40.9062C37.7115 40.9062 39.954 38.0862 41.2567 33.9563V33.9296L44.4627 23.4164V23.3964C44.6151 22.9038 44.6477 22.3828 44.5578 21.8756C44.4679 21.3683 44.2581 20.8888 43.9453 20.4757C43.6324 20.0626 43.2253 19.7275 42.7565 19.4972C42.2878 19.2669 41.7706 19.1479 41.2466 19.1498H33.0026C32.489 19.1484 31.9825 19.0325 31.5211 18.8108C31.0598 18.5891 30.6558 18.2673 30.3394 17.8698C30.025 17.4718 29.8084 17.0078 29.7066 16.5141C29.6048 16.0203 29.6205 15.51 29.7525 15.0232L31.235 9.5266C31.3503 9.09972 31.3609 8.65208 31.2659 8.2204C31.171 7.78873 30.9732 7.38533 30.6888 7.0433C30.4078 6.70494 30.0511 6.43489 29.6465 6.2542C29.2418 6.07351 28.8002 5.98706 28.3559 6.00157C27.9117 6.01609 27.4769 6.13118 27.0854 6.33789C26.6938 6.5446 26.3562 6.83734 26.0987 7.19329L17.8784 19.6098C17.5652 20.0388 17.1527 20.3885 16.6749 20.6301C16.1971 20.8718 15.6678 20.9985 15.1304 20.9998H9.00004M9 17.6666L9 40.9997",stroke:"black",strokeWidth:2.85,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M86.2148 20.027C85.5499 19.6915 84.8826 19.3582 84.2132 19.0271C71.8743 12.9005 72.4782 14.0938 61.9137 14.0938C57.5034 14.0938 55.2609 16.9138 53.9581 21.0437V21.0704L50.7521 31.5836V31.6036C50.5997 32.0962 50.5672 32.6172 50.657 33.1244C50.7469 33.6317 50.9567 34.1112 51.2695 34.5243C51.5824 34.9374 51.9896 35.2725 52.4583 35.5028C52.927 35.7331 53.4442 35.8521 53.9683 35.8502H62.2123C62.7258 35.8516 63.2324 35.9675 63.6937 36.1892C64.155 36.4109 64.5591 36.7327 64.8754 37.1302C65.1899 37.5282 65.4064 37.9922 65.5082 38.4859C65.61 38.9797 65.5943 39.49 65.4624 39.9768L63.9798 45.4734C63.8646 45.9003 63.854 46.3479 63.9489 46.7796C64.0439 47.2113 64.2416 47.6147 64.526 47.9567C64.807 48.2951 65.1637 48.5651 65.5684 48.7458C65.973 48.9265 66.4147 49.0129 66.8589 48.9984C67.3031 48.9839 67.7379 48.8688 68.1295 48.6621C68.521 48.4554 68.8587 48.1627 69.1162 47.8067L77.3364 35.3902C77.6497 34.9612 78.0622 34.6115 78.5399 34.3699C79.0177 34.1282 79.547 34.0015 80.0844 34.0002H86.2148M86.2148 37.3334V14.0003",stroke:"black",strokeWidth:2.85,strokeLinecap:"round",strokeLinejoin:"round"}));class _t extends Error{static async fromApiResponse(t){if(t.status===400||t.status===429)try{const n=await t.json();if(n.errors&&Array.isArray(n.errors)&&n.errors.length>0&&n.errors[0].message)return new _t(n.errors[0].message)}catch{return!1}}static getMessageFromError(t,n){return t instanceof _t?t.message:n}}function za({siteUrl:e=window.location.origin,apiUrl:t,apiKey:n}){const r="members/api";function i({type:l,resource:c}){if(l==="members")return`${e.replace(/\/$/,"")}/${r}/${c}/`}function o({resource:l,params:c=""}){return t&&n?`${t.replace(/\/$/,"")}/${l}/?key=${n}&limit=all${c}`:""}function a({url:l,method:c="GET",headers:p={},credentials:d=void 0,body:f=void 0}){return fetch(l,{method:c,headers:p,credentials:d,body:f})}const s={};return s.site={read(){const l=i({type:"members",resource:"site"});return a({url:l,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(c){if(c.ok)return c.json();throw new Error("Failed to fetch site data")})},newsletters(){const l=o({resource:"newsletters"});return a({url:l,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(c){if(c.ok)return c.json();throw new Error("Failed to fetch site data")})},tiers(){const l=o({resource:"tiers",params:"&include=monthly_price,yearly_price,benefits"});return a({url:l,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(c){if(c.ok)return c.json();throw new Error("Failed to fetch site data")})},settings(){const l=o({resource:"settings"});return a({url:l,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(c){if(c.ok)return c.json();throw new Error("Failed to fetch site data")})},offer({offerId:l}){const c=o({resource:`offers/${l}`});return a({url:c,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(p){if(p.ok)return p.json();throw new Error("Failed to fetch offer data")})}},s.feedback={async add({uuid:l,postId:c,score:p}){let d=i({type:"members",resource:"feedback"});d=d+`?uuid=${l}`;const y=await a({url:d,method:"POST",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({feedback:[{post_id:c,score:p}]})});if(y.ok)return y.json();throw await _t.fromApiResponse(y)??new Error("Failed to save feedback")}},s.member={identity(){const l=i({type:"members",resource:"session"});return a({url:l,credentials:"same-origin"}).then(function(c){return!c.ok||c.status===204?null:c.text()})},sessionData(){const l=i({type:"members",resource:"member"});return a({url:l,credentials:"same-origin"}).then(function(c){return!c.ok||c.status===204?null:c.json()})},update({name:l,subscribed:c,newsletters:p,enableCommentNotifications:d}){const f=i({type:"members",resource:"member"}),y={name:l,subscribed:c,newsletters:p};return d!==void 0&&(y.enable_comment_notifications=d),a({url:f,method:"PUT",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(y)}).then(function(v){return v.ok?v.json():null})},deleteSuppression(){const l=i({type:"members",resource:"member/suppression"});return a({url:l,method:"DELETE"}).then(function(c){if(!c.ok)throw new Error("Your email has failed to resubscribe, please try again");return!0})},async sendMagicLink({email:l,emailType:c,labels:p,name:d,oldEmail:f,newsletters:y,redirect:v}){const _=i({type:"members",resource:"send-magic-link"}),m={name:d,email:l,newsletters:y,oldEmail:f,emailType:c,labels:p,requestSrc:"portal",redirect:v},h=La();h&&(m.urlHistory=h);const g=await a({url:_,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(m)});if(g.ok)return"Success";{const w=await _t.fromApiResponse(g);throw w||new Error("Failed to send magic link email")}},signout(){const l=i({type:"members",resource:"session"});return a({url:l,method:"DELETE"}).then(function(c){if(c.ok)return window.location.replace(e),"Success";throw new Error("Failed to signout")})},async newsletters({uuid:l}){let c=i({type:"members",resource:"member/newsletters"});return c=c+`?uuid=${l}`,a({url:c,credentials:"same-origin"}).then(function(p){return!p.ok||p.status===204?null:p.json()})},async updateNewsletters({uuid:l,newsletters:c,enableCommentNotifications:p}){let d=i({type:"members",resource:"member/newsletters"});d=d+`?uuid=${l}`;const f={newsletters:c};return p!==void 0&&(f.enable_comment_notifications=p),a({url:d,method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(f)}).then(function(y){if(y.ok)return y.json();throw new Error("Failed to update email preferences")})},async updateEmailAddress({email:l}){const c=await s.member.identity(),p=i({type:"members",resource:"member/email"});return a({url:p,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:l,identity:c})}).then(function(f){if(f.ok)return"Success";throw new Error("Failed to send email address verification email")})},async checkoutPlan({plan:l,tierId:c,cadence:p,cancelUrl:d,successUrl:f,email:y,name:v,offerId:_,newsletters:m,metadata:h={}}={}){var $,O;const g=new URL(e),w=await s.member.identity(),k=i({type:"members",resource:"create-stripe-checkout-session"});if(!d){const N=window.location.href.startsWith(g.href)?new URL(window.location.href):new URL(e);N.searchParams.set("stripe","cancel"),d=N.href}const C={name:v,newsletters:JSON.stringify(m),requestSrc:"portal",fp_tid:(O=($=window.FPROM||window.$FPROM)==null?void 0:$.data)==null?void 0:O.tid,urlHistory:La(),...h},S={priceId:_?null:l,offerId:_,identity:w,metadata:C,successUrl:f,cancelUrl:d};return y&&(S.customerEmail=y),c&&p&&(delete S.priceId,S.tierId=_?null:c,S.cadence=_?null:p),a({url:k,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(S)}).then(async function(N){var F,He;if(!N.ok){const te=await N.json(),re=((He=(F=te==null?void 0:te.errors)==null?void 0:F[0])==null?void 0:He.message)||"Failed to signup, please try again.";throw new Error(re)}return N.json()}).then(function(N){return N.url?window.location.assign(N.url):window.Stripe(N.publicKey).redirectToCheckout({sessionId:N.sessionId}).then(function(He){if(He.error)throw new Error(He.error.message)})})},async editBilling({successUrl:l,cancelUrl:c,subscriptionId:p}={}){const d=new URL(e),f=await s.member.identity(),y=i({type:"members",resource:"create-stripe-update-session"});if(!l){const v=new URL(e);v.searchParams.set("stripe","billing-update-success"),l=v.href}if(!c){const v=window.location.href.startsWith(d.href)?new URL(window.location.href):new URL(e);v.searchParams.set("stripe","billing-update-cancel"),c=v.href}return a({url:y,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identity:f,subscription_id:p,successUrl:l,cancelUrl:c})}).then(function(v){if(!v.ok)throw new Error("Unable to create stripe checkout session");return v.json()}).then(function(v){return window.Stripe(v.publicKey).redirectToCheckout({sessionId:v.sessionId})}).then(function(v){if(v.error)throw new Error(v.error.message)}).catch(function(v){throw v})},async updateSubscription({subscriptionId:l,tierId:c,cadence:p,planId:d,smartCancel:f,cancelAtPeriodEnd:y,cancellationReason:v}){const _=await s.member.identity(),m=i({type:"members",resource:"subscriptions"})+l+"/",h={smart_cancel:f,cancel_at_period_end:y,cancellation_reason:v,identity:_,priceId:d};return c&&p&&(delete h.priceId,h.tierId=c,h.cadence=p),a({url:m,method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(h)})}},s.init=async()=>{let[l]=await Promise.all([s.member.sessionData()]),c={},p=[],d=[],f={};try{[{settings:f},{tiers:d},{newsletters:p}]=await Promise.all([s.site.settings(),s.site.tiers(),s.site.newsletters()]),c={...f,newsletters:p,tiers:ow({tiers:d})}}catch{}return c=Gb({site:c}),{site:c,member:l}},s}class Og extends q.Component{render(){return u("div",{style:{display:"flex",flexDirection:"column",color:"#313131"},children:u("div",{style:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"12px",height:"50px"},children:u(Fi,{className:"gh-portal-loadingicon dark"})})})}}const ax=`
|
|
1791
1794
|
.gh-portal-feedback {
|
|
1792
1795
|
|
|
1793
1796
|
}
|
|
@@ -1941,8 +1944,8 @@ footer.gh-portal-signup-footer.invite-only .gh-portal-signup-message {
|
|
|
1941
1944
|
}
|
|
1942
1945
|
}
|
|
1943
1946
|
}
|
|
1944
|
-
`;function sx({error:e}){const{onAction:t}=x.useContext(R);return b("div",{className:"gh-portal-content gh-portal-feedback with-footer",children:[u(we,{}),u("div",{class:"gh-feedback-icon gh-feedback-icon-error",children:u(ox,{})}),u("h1",{className:"gh-portal-main-title",children:"Sorry, that didn’t work."}),u("div",{children:u("p",{className:"gh-portal-text-center",children:e})}),u(he,{style:{width:"100%"},retry:!1,onClick:()=>t("closePopup"),disabled:!1,brandColor:"#000000",label:"Close",isRunning:!1,tabindex:"3",classes:"sticky bottom"})]})}const lx=({onConfirm:e,loading:t,initialScore:n})=>{const{onAction:r,brandColor:i,t:o}=x.useContext(R),[a,s]=x.useState(n),l=y=>{y.stopPropagation()},c=()=>{r("closePopup")},p=async y=>{y.stopPropagation(),await e(a)},d=y=>{const v="gh-feedback-button";return y===a?`${v} gh-feedback-button-selected`:v},f=y=>y===a?{color:i}:{};return b("div",{className:"gh-portal-confirm-dialog",onMouseDown:l,children:[u("h1",{className:"gh-portal-confirm-title",children:o("Give feedback on this post")}),b("div",{className:"gh-feedback-buttons-group",children:[b("button",{className:d(1),style:f(1),onClick:()=>s(1),children:[u(
|
|
1945
|
-
`,hx="",
|
|
1947
|
+
`;function sx({error:e}){const{onAction:t}=x.useContext(R);return b("div",{className:"gh-portal-content gh-portal-feedback with-footer",children:[u(we,{}),u("div",{class:"gh-feedback-icon gh-feedback-icon-error",children:u(ox,{})}),u("h1",{className:"gh-portal-main-title",children:"Sorry, that didn’t work."}),u("div",{children:u("p",{className:"gh-portal-text-center",children:e})}),u(he,{style:{width:"100%"},retry:!1,onClick:()=>t("closePopup"),disabled:!1,brandColor:"#000000",label:"Close",isRunning:!1,tabindex:"3",classes:"sticky bottom"})]})}const lx=({onConfirm:e,loading:t,initialScore:n})=>{const{onAction:r,brandColor:i,t:o}=x.useContext(R),[a,s]=x.useState(n),l=y=>{y.stopPropagation()},c=()=>{r("closePopup")},p=async y=>{y.stopPropagation(),await e(a)},d=y=>{const v="gh-feedback-button";return y===a?`${v} gh-feedback-button-selected`:v},f=y=>y===a?{color:i}:{};return b("div",{className:"gh-portal-confirm-dialog",onMouseDown:l,children:[u("h1",{className:"gh-portal-confirm-title",children:o("Give feedback on this post")}),b("div",{className:"gh-feedback-buttons-group",children:[b("button",{className:d(1),style:f(1),onClick:()=>s(1),children:[u(Rg,{}),o("More like this")]}),b("button",{className:d(0),style:f(0),onClick:()=>s(0),children:[u($g,{}),o("Less like this")]})]}),u(he,{classes:"gh-portal-confirm-button",retry:!1,onClick:p,disabled:!1,brandColor:i,label:o("Submit feedback"),isRunning:t,tabindex:"3"}),u(we,{close:()=>c()})]})};async function cx({siteUrl:e,uuid:t,postId:n,score:r}){await za({siteUrl:e}).feedback.add({uuid:t,postId:n,score:r})}const ux=({action:e,score:t})=>(x.useEffect(()=>{e(t)}),u(Og,{})),dx=({positive:e})=>{const{onAction:t,brandColor:n,t:r}=x.useContext(R);return b("div",{className:"gh-portal-content gh-portal-feedback",children:[u(we,{}),u("div",{className:"gh-feedback-icon",children:e?u(Rg,{}):u($g,{})}),u("h1",{className:"gh-portal-main-title",children:r("Thanks for the feedback!")}),u("p",{className:"gh-portal-text-center",children:r("Your input helps shape what gets published.")}),u(he,{style:{width:"100%"},retry:!1,onClick:()=>t("closePopup"),disabled:!1,brandColor:n,label:r("Close"),isRunning:!1,tabindex:"3",classes:"sticky bottom"})]})};function px(){const{site:e,pageData:t,member:n}=x.useContext(R),{uuid:r,postId:i,score:o}=t,[a,s]=x.useState(o),l=a===1,c=!!n,[p,d]=x.useState(c),[f,y]=x.useState(c),[v,_]=x.useState(null),m=async g=>{y(!0);try{await cx({siteUrl:e.url,uuid:r,postId:i,score:g}),s(g)}catch(w){const k=_t.getMessageFromError(w,"There was a problem submitting your feedback. Please try again a little later.");_(k)}y(!1)},h=async g=>{await m(g),d(!0)};if(v)return u(sx,{error:v});if(p){if(f)return u(ux,{action:m,score:a})}else return u(lx,{onConfirm:h,loading:f,initialScore:a});return u(dx,{positive:l})}const fx=`.gh-email-suppressed-page-title{margin-bottom:14px}.gh-email-suppressed-page-icon{display:block;width:38px;height:38px;margin:0 auto 18px}.gh-email-suppressed-page-text{padding:0 14px;text-align:center;color:var(--grey6)}.gh-email-faq-footer-text{color:var(--grey8)}.gh-portal-list-detail.email-newsletter .gh-email-faq-page-button{display:block;margin-top:3px}.accountEmail .gh-email-faq-page-button{margin-left:4px}.emailReceivingFAQ .gh-portal-btn-back,.emailReceivingFAQ .gh-portal-btn-back:hover{left:calc(6vmin - 14px)}.emailReceivingFAQ .gh-portal-closeicon-container{right:calc(6vmin - 20px)}@media (max-width: 480px){.emailReceivingFAQ .gh-portal-btn-back,.emailReceivingFAQ .gh-portal-btn-back:hover{left:16px}.emailReceivingFAQ .gh-portal-closeicon-container{right:24px}}.gh-email-faq-page-button{color:var(--brandcolor);cursor:pointer;background:none;transition:color linear .1s;font-size:1.45rem}
|
|
1948
|
+
`,hx="",gx="",mx=`
|
|
1946
1949
|
.gh-portal-main-title {
|
|
1947
1950
|
text-align: center;
|
|
1948
1951
|
color: var(--grey0);
|
|
@@ -3108,11 +3111,11 @@ footer.gh-portal-signup-footer.invite-only .gh-portal-signup-message {
|
|
|
3108
3111
|
.gh-portal-hide {
|
|
3109
3112
|
display: none;
|
|
3110
3113
|
}
|
|
3111
|
-
`;function bx({site:e}){return Hc+gx+ww+Lw+Bw+kw({site:e})+bw+mw+vw+Kh+ex+Xw+ix({site:e})+tx+yx+vx+ax+fx+hx+mx}class Dm extends q.Component{constructor(t){super(t),this.state={email:""}}componentDidMount(){const{member:t}=this.context;t&&this.context.onAction("switchPage",{page:"accountHome"})}handleSignin(t){t.preventDefault(),this.setState(n=>({errors:Ma({fields:this.getInputFields({state:n})})}),async()=>{const{email:n,errors:r}=this.state,{redirect:i}=this.context.pageData??{};r&&Object.values(r).filter(a=>!!a).length>0||this.context.onAction("signin",{email:n,redirect:i})})}handleInputChange(t,n){const r=n.name;this.setState({[r]:t.target.value})}onKeyDown(t){t.keyCode===13&&this.handleSignin(t)}getInputFields({state:t}){const{t:n}=this.context,r=t.errors||{};return[{type:"email",value:t.email,placeholder:"jamie@example.com",label:n("Email"),name:"email",required:!0,errorMessage:r.email||"",autoFocus:!0}]}renderSubmitButton(){const{action:t,t:n}=this.context;let r=!1;const i=t==="signin:running";let o=n(i?"Sending login link...":"Continue");const a=!!i;return t==="signin:failed"&&(o=n("Retry"),r=!0),u(he,{dataTestId:"signin",retry:r,style:{width:"100%"},onClick:s=>this.handleSignin(s),disabled:a,brandColor:this.context.brandColor,label:o,isRunning:i})}renderSignupMessage(){const{brandColor:t,t:n}=this.context;return b("div",{className:"gh-portal-signup-message",children:[u("div",{children:n("Don't have an account?")}),u("button",{"data-test-button":"signup-switch",className:"gh-portal-btn gh-portal-btn-link",style:{color:t},onClick:()=>this.context.onAction("switchPage",{page:"signup"}),children:u("span",{children:n("Sign up")})})]})}renderForm(){return u("section",{children:u("div",{className:"gh-portal-section",children:u(Aa,{fields:this.getInputFields({state:this.state}),onChange:(t,n)=>this.handleInputChange(t,n),onKeyDown:(t,n)=>this.onKeyDown(t,n)})})})}renderSiteLogo(){const t=this.context.site.icon;return t?u("img",{className:"gh-portal-signup-logo",src:t,alt:this.context.site.title}):null}renderFormHeader(){const{t}=this.context;return b("header",{className:"gh-portal-signin-header",children:[this.renderSiteLogo(),u("h1",{className:"gh-portal-main-title",children:t("Sign in")})]})}render(){return b(Y,{children:[u(we,{}),b("div",{className:"gh-portal-logged-out-form-container",children:[b("div",{className:"gh-portal-content signin",children:[this.renderFormHeader(),this.renderForm()]}),b("footer",{className:"gh-portal-signin-footer",children:[this.renderSubmitButton(),this.renderSignupMessage()]})]})]})}}Z(Dm,"contextType",R);const wx=({onClose:e,handleSignout:t,supportAddress:n=""})=>{const r=`mailto:${n}`;return b("footer",{className:"gh-portal-account-footer",children:[u("ul",{className:"gh-portal-account-footermenu",children:u("li",{children:u("button",{"data-test-button":"footer-signout",className:"gh-portal-btn",name:"logout","aria-label":"logout",onClick:i=>t(i),children:"Sign out"})})}),u("div",{className:"gh-portal-account-footerright",children:u("ul",{className:"gh-portal-account-footermenu",children:u("li",{children:u("a",{"data-test-link":"footer-support",className:"gh-portal-btn gh-portal-btn-branded",href:r,onClick:()=>{r&&window.open(r)},children:"Contact support"})})})})]})},xx=()=>{const{member:e,brandColor:t,t:n}=x.useContext(R),r=e.avatar_image;return b("header",{className:"gh-portal-account-header",children:[u(Yc,{gravatar:r,style:{userIcon:{color:t,width:"56px",height:"56px",padding:"2px"}}}),u("h2",{className:"gh-portal-main-title",children:n("Your account")})]})},kx=()=>{const{site:e,action:t,brandColor:n,onAction:r}=x.useContext(R),{is_stripe_configured:i}=e;if(!i||_a({site:e}))return null;const o=["checkoutPlan:running"].includes(t),a=()=>{r("switchPage",{page:"accountPlan",lastPage:"accountHome"})};return u(he,{dataTestId:"view-plans",isRunning:o,label:"View plans",onClick:()=>a(),brandColor:n,style:{width:"100%"}})},_x=()=>{const{member:e,site:t}=x.useContext(R),{is_stripe_configured:n}=t;if(!n||_a({site:t}))return null;const r=Qe({member:e}),i=yr({member:e});if(i&&!r)return null;if(r){const o=r==null?void 0:r.current_period_end;if(i&&Wc({member:e})){const a=Wc({member:e}),s=xt(a);return u("div",{className:"gh-portal-section",children:b("p",{className:"gh-portal-text-center gh-portal-free-ctatext",children:["Your subscription will expire on ",s]})})}if(r!=null&&r.cancel_at_period_end)return null;if(Kc({sub:r})){const a=xt(r.trial_end_at);return u("div",{className:"gh-portal-section",children:b("p",{className:"gh-portal-text-center gh-portal-free-ctatext",children:["Your subscription will start on ",a]})})}return u("div",{className:"gh-portal-section",children:b("p",{className:"gh-portal-text-center gh-portal-free-ctatext",children:["Your subscription will renew on ",xt(o)]})})}return b("div",{className:"gh-portal-section",children:[u("p",{className:"gh-portal-text-center gh-portal-free-ctatext",children:"You currently have a free membership, upgrade to a paid subscription for full access."}),u(kx,{})]})},Sx=()=>{const{member:e,onAction:t,action:n,brandColor:r}=x.useContext(R),i=Qe({member:e});if(!i||!i.cancel_at_period_end)return null;const o=i.cancel_at_period_end?"Continue subscription":"Cancel subscription",a=["cancelSubscription:running"].includes(n),s=!!a,l=!!i.cancel_at_period_end;return b("div",{className:"gh-portal-cancelcontinue-container",children:[u(()=>{if(!i.cancel_at_period_end)return null;const p=i.current_period_end;return b("p",{className:"gh-portal-text-center gh-portal-free-ctatext",children:["Your subscription will expire on ",xt(p)]})},{}),u(he,{onClick:p=>{t("continueSubscription",{subscriptionId:i.id})},isRunning:a,disabled:s,isPrimary:l,brandColor:r,label:o,style:{width:"100%"}})]})},Ex=e=>x.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("defs",null,x.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px;}")),x.createElement("path",{d:"M22.939 2.56V8.817C22.9391 9.61244 22.6232 10.3754 22.061 10.938L10.5 22.5C10.2187 22.7812 9.83721 22.9392 9.43946 22.9392C9.04172 22.9392 8.66026 22.7812 8.37896 22.5L1.49997 15.62C1.21876 15.3387 1.06079 14.9572 1.06079 14.5595C1.06079 14.1618 1.21876 13.7803 1.49997 13.499L13.061 1.938C13.6236 1.37572 14.3865 1.0599 15.182 1.06H21.439C21.8368 1.06 22.2183 1.21803 22.4996 1.49934C22.7809 1.78064 22.939 2.16217 22.939 2.56V2.56Z",className:"a"}),x.createElement("path",{d:"M17.689 7.81C16.8605 7.81 16.189 7.13842 16.189 6.31C16.189 5.48157 16.8605 4.81 17.689 4.81C18.5174 4.81 19.189 5.48157 19.189 6.31C19.189 7.13842 18.5174 7.81 17.689 7.81Z",className:"a"})),Cx=()=>{const{member:e,site:t,onAction:n}=x.useContext(R),r=()=>{const d=Qe({member:e});n("editBilling",{subscriptionId:d.id})},i=()=>{const{is_stripe_configured:d}=t;d&&n("switchPage",{page:"accountPlan",lastPage:"accountHome"})},o=({price:d,isComplimentary:f,subscription:y})=>{const{offer:v,start_date:_}=y||{};let g="";if(d){const{amount:S=0,currency:$,interval:O}=d;g=`${Intl.NumberFormat("en",{currency:$,style:"currency"}).format(S/100)}/${O}`}let h=Nx({price:d,offer:v,subscriptionStartDate:_});const m=Wc({member:e});f&&(m?g=`Complimentary - Expires ${m}`:g=g?`Complimentary (${g})`:"Complimentary");let w="";h&&(w="gh-portal-account-old-price");const k=()=>h?b("p",{className:"gh-portal-account-discountcontainer",children:[u(Ex,{className:"gh-portal-account-tagicon"}),u("span",{children:h})]}):null,C=Kc({sub:y});return C&&(w="gh-portal-account-old-price"),C?b(Y,{children:[u("p",{className:w,children:g}),u(Px,{subscription:y})]}):b(Y,{children:[u("p",{className:w,children:g}),u(k,{})]})},a=({isComplimentary:d})=>(zi({member:e})?!1:d)||_a({site:t})?null:u("button",{className:"gh-portal-btn gh-portal-btn-list",onClick:y=>i(),"data-test-button":"change-plan",children:"Change"}),s=({defaultCardLast4:d})=>{if(d){const f=`**** **** **** ${d}`;return u("p",{children:f})}return null},l=({defaultCardLast4:d,isComplimentary:f})=>{const{action:y}=x.useContext(R),v=y==="editBilling:running"?u(Fi,{className:"gh-portal-billing-button-loader"}):"Update";return f?null:b("section",{children:[b("div",{className:"gh-portal-list-detail",children:[u("h3",{children:"Billing info"}),u(s,{defaultCardLast4:d})]}),u("button",{className:"gh-portal-btn gh-portal-btn-list",onClick:_=>r(),"data-test-button":"update-billing",children:v})]})},c=Qe({member:e}),p=yr({member:e});if(c||p){const{price:d,default_payment_card_last4:f}=c||{};let y="Plan";return Sa({site:t})&&Jh({member:e})&&(y=Jh({member:e})),b(Y,{children:[b("section",{children:[b("div",{className:"gh-portal-list-detail",children:[u("h3",{children:y}),u(o,{price:d,isComplimentary:p,subscription:c})]}),u(a,{isComplimentary:p})]}),u(l,{isComplimentary:p,defaultCardLast4:f})]})}return null};function Px({subscription:e,priceLabel:t}){if(Kc({sub:e})){const n=xt(e.trial_end_at);return u("p",{className:"gh-portal-account-discountcontainer",children:u("div",{children:b("span",{children:["Free Trial – Ends ",n]})})})}return null}function Nx({offer:e,price:t,subscriptionStartDate:n}){let r="";if((e==null?void 0:e.type)==="trial"||(e==null?void 0:e.duration)==="once")return"";if(e){const i=e.duration;let o="";if(i==="forever")o="Forever";else if(i==="repeating"){const a=e.duration_in_months||0;let s=new Date(n),l=new Date(s.setMonth(s.getMonth()+a));if(rm(l))return"";o=`Ends ${xt(l)}`}r=`${ew({offer:e,price:t,useFormatted:!0})}/${t.interval}${o?` — ${o}`:""}`}return r}function Tx(){const{member:e,site:t,onAction:n}=x.useContext(R);let{newsletters:r}=e;const i=!!(r!=null&&r.length);let o=i?"Subscribed":"Unsubscribed";const a=(s,l)=>{var d;s.preventDefault();const c=wr({site:t}),p=(d=e==null?void 0:e.newsletters)!=null&&d.length?[]:c;n("updateNewsletterPreference",{newsletters:p})};return b("section",{children:[b("div",{className:"gh-portal-list-detail email-newsletter",children:[u("h3",{children:"Email newsletter"}),b("p",{children:[o," ",qc({member:e})&&i&&u("button",{className:"gh-portal-btn-text gh-email-faq-page-button",onClick:()=>n("switchPage",{page:"emailReceivingFAQ",lastPage:"accountHome"}),children:"Not receiving emails?"})]})]}),u("div",{children:u(ja,{dataTestId:"default-newsletter-toggle",id:"default-newsletter-toggle",onToggle:s=>{a(s)},checked:i})})]})}const Lm=e=>x.createElement("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e},x.createElement("path",{d:"m12.79 12.376 4.08 4.079m-4.08 0 4.08-4.08",stroke:"red",strokeWidth:1.35,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"m10.439 17.994-2.664-2.652-2.86 1.478.111-4.239m0 0L1.677 9.232a1.344 1.344 0 0 1-.366-1.222 1.369 1.369 0 0 1 .904-1.05l13.111-4.374a1.369 1.369 0 0 1 1.76 1.758L15 10m-9.974 2.581 11.67-9.727",stroke:"#A3A3A3",strokeWidth:1.35,strokeLinecap:"round",strokeLinejoin:"round"}));function $x(){const{onAction:e,member:t,t:n}=x.useContext(R),r=nm({member:t}),i=r?"emailSuppressed":"accountEmail";return b("section",{children:[b("div",{className:"gh-portal-list-detail",children:[u("h3",{children:n("Emails")}),r?b("p",{className:"gh-portal-email-notice",children:[u(Lm,{className:"gh-portal-email-notice-icon"}),b("span",{children:["You're ",u("span",{className:"gh-mobile-shortener",children:"currently "}),"not receiving emails"]})]}):u("p",{children:n("Update your preferences")})]}),u("button",{className:"gh-portal-btn gh-portal-btn-list",onClick:o=>{e("switchPage",{page:i,lastPage:"accountHome"})},"data-test-button":"manage-newsletters",children:n("Manage")})]})}const Rx=()=>{const{member:e,onAction:t,site:n}=x.useContext(R),{name:r,email:i}=e,o=()=>{t("switchPage",{page:"accountProfile",lastPage:"accountHome"})},a=Na({site:n})||Xh({site:n})||nm({member:e});return u("div",{children:b("div",{className:"gh-portal-list",children:[b("section",{children:[b("div",{className:"gh-portal-list-detail",children:[u("h3",{children:r||"Account"}),u("p",{children:i})]}),u("button",{"data-test-button":"edit-profile",className:"gh-portal-btn gh-portal-btn-list",onClick:s=>o(),children:"Edit"})]}),u(Cx,{}),a?u($x,{}):u(Tx,{})]})})},Ox=()=>b("div",{className:"gh-portal-content gh-portal-account-main",children:[u(we,{}),u(xx,{}),b("section",{className:"gh-portal-account-data",children:[u(_x,{}),u(Sx,{}),u(Rx,{})]})]});class jm extends q.Component{componentDidMount(){const{member:t}=this.context;t||this.context.onAction("switchPage",{page:"signin",pageData:{redirect:window.location.href}})}handleSignout(t){t.preventDefault(),this.context.onAction("signout")}render(){const{member:t,site:n}=this.context,r=Oa({site:n});return t?b("div",{className:"gh-portal-account-wrapper",children:[u(Ox,{}),u(wx,{onClose:()=>this.context.onAction("closePopup"),handleSignout:i=>this.handleSignout(i),supportAddress:r})]}):null}}Z(jm,"contextType",R);class Im extends q.Component{constructor(t,n){super(t,n);const{name:r="",email:i=""}=n.member||{};this.state={name:r,email:i}}componentDidMount(){const{member:t}=this.context;t||this.context.onAction("switchPage",{page:"signin"})}handleSignout(t){t.preventDefault(),this.context.onAction("signout")}onBack(t){this.context.onAction("back")}onProfileSave(t){t.preventDefault(),this.setState(n=>({errors:Ma({fields:this.getInputFields({state:n})})}),()=>{const{email:n,name:r,errors:i}=this.state;i&&Object.values(i).filter(a=>!!a).length>0||(this.context.onAction("clearPopupNotification"),this.context.onAction("updateProfile",{email:n,name:r}))})}renderSaveButton(){const{t}=this.context,n=this.context.action==="updateProfile:running";let r=t("Save");return this.context.action==="updateProfile:failed"&&(r=t("Retry")),u(he,{dataTestId:"save-button",isRunning:n,onClick:o=>this.onProfileSave(o),disabled:!!n,brandColor:this.context.brandColor,label:r,style:{width:"100%"}})}renderDeleteAccountButton(){const{t}=this.context;return u("div",{style:{cursor:"pointer",color:"red"},role:"button",children:t("Delete account")})}renderAccountFooter(){return u("footer",{className:"gh-portal-action-footer",children:this.renderSaveButton()})}renderHeader(){const{t}=this.context;return b("header",{className:"gh-portal-detail-header",children:[u(kr,{brandColor:this.context.brandColor,hidden:!this.context.lastPage,onClick:n=>this.onBack(n)}),u("h3",{className:"gh-portal-main-title",children:t("Account settings")})]})}renderUserAvatar(){const t=this.context.member&&this.context.member.avatar_image;return u("div",{style:{position:"relative",display:"flex",width:"64px",height:"64px",marginBottom:"6px",borderRadius:"100%",boxShadow:"0 0 0 3px #fff",border:"1px solid gray",overflow:"hidden",justifyContent:"center",alignItems:"center"},children:u(Yc,{gravatar:t,style:{userIcon:{color:"black",width:"56px",height:"56px"}}})})}handleInputChange(t,n){const r=n.name;this.setState({[r]:t.target.value})}getInputFields({state:t,fieldNames:n}){const{t:r}=this.context,i=t.errors||{},o=[{type:"text",value:t.name,placeholder:"Jamie Larson",label:r("Name"),name:"name",required:!0,errorMessage:i.name||""},{type:"email",value:t.email,placeholder:"jamie@example.com",label:r("Email"),name:"email",required:!0,errorMessage:i.email||""}];return n&&n.length>0?o.filter(a=>n.includes(a.name)):o}onKeyDown(t){t.keyCode===13&&this.onProfileSave(t)}renderProfileData(){return u("div",{className:"gh-portal-section",children:u(Aa,{fields:this.getInputFields({state:this.state}),onChange:(t,n)=>this.handleInputChange(t,n),onKeyDown:(t,n)=>this.onKeyDown(t,n)})})}render(){const{member:t}=this.context;return t?b(Y,{children:[b("div",{className:"gh-portal-content with-footer",children:[u(we,{}),this.renderHeader(),u("div",{className:"gh-portal-section",children:this.renderProfileData()})]}),this.renderAccountFooter()]}):null}}Z(Im,"contextType",R);const Dx=e=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},x.createElement("defs",null,x.createElement("style",null,`.a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px!important;}
|
|
3112
|
-
`)),x.createElement("title",null,"check-circle-1"),x.createElement("path",{className:"a",d:"M6,13.223,8.45,16.7a1.049,1.049,0,0,0,1.707.051L18,6.828"}),x.createElement("circle",{className:"a",cx:12,cy:11.999,r:11.25}));function Lx(){const{brandColor:e,lastPage:t,onAction:n,t:r}=x.useContext(R);return b("header",{className:"gh-portal-detail-header",children:[u(kr,{brandColor:e,hidden:!t,onClick:i=>{n("back")}}),u("h3",{className:"gh-portal-main-title",children:r("Email preferences")})]})}function Am({show:e,checked:t}){let n=[];return e&&n.push("gh-portal-checkmark-show"),t&&n.push("gh-portal-toggle-checked"),n.push("gh-portal-checkmark-container"),u("div",{className:n.join(" "),children:u(Dx,{className:"gh-portal-checkmark-icon",alt:""})})}function jx({newsletter:e,subscribedNewsletters:t,setSubscribedNewsletters:n}){const r=t.some(l=>l.id===(e==null?void 0:e.id)),[i,o]=x.useState(!1),[a,s]=x.useState(null);return b("section",{className:"gh-portal-list-toggle-wrapper","data-test-toggle-wrapper":!0,children:[b("div",{className:"gh-portal-list-detail",children:[u("h3",{children:e.name}),u("p",{children:e==null?void 0:e.description})]}),b("div",{style:{display:"flex",alignItems:"center"},children:[u(Am,{show:i,checked:r}),u(ja,{id:e.id,onToggle:(l,c)=>{let p=[];if(c){p=t.filter(f=>f.id!==e.id).concat(e),o(!0),clearTimeout(a);let d=setTimeout(()=>{o(!1)},2e3);s(d)}else{p=t.filter(f=>f.id!==e.id),o(!0),clearTimeout(a);let d=setTimeout(()=>{o(!1)},2e3);s(d)}n(p)},checked:r})]})]})}function Ix({updateCommentNotifications:e,isCommentsEnabled:t,enableCommentNotifications:n}){const{t:r}=x.useContext(R),i=!!n,[o,a]=x.useState(!1),[s,l]=x.useState(null);return t?b("section",{className:"gh-portal-list-toggle-wrapper","data-test-toggle-wrapper":!0,children:[b("div",{className:"gh-portal-list-detail",children:[u("h3",{children:r("Comments")}),u("p",{children:r("Get notified when someone replies to your comment")})]}),b("div",{style:{display:"flex",alignItems:"center"},children:[u(Am,{show:o,checked:i}),u(ja,{id:"comments",onToggle:(c,p)=>{a(!0),clearTimeout(s);let d=setTimeout(()=>{a(!1)},2e3);l(d),e(p)},checked:i})]})]}):null}function Ax({subscribedNewsletters:e,setSubscribedNewsletters:t}){const{site:n}=x.useContext(R);return wr({site:n}).map(i=>u(jx,{newsletter:i,subscribedNewsletters:e,setSubscribedNewsletters:t},i==null?void 0:i.id))}function Mx({site:e,isPaid:t}){const{t:n}=x.useContext(R);return t?u("p",{style:{textAlign:"center",marginTop:"12px",marginBottom:"0",color:"var(--grey6)"},children:n("Unsubscribing from emails will not cancel your paid subscription to {{title}}",{title:e==null?void 0:e.title})}):null}function Mm({notification:e,subscribedNewsletters:t,updateSubscribedNewsletters:n,updateCommentNotifications:r,unsubscribeAll:i,isPaidMember:o,isCommentsEnabled:a,enableCommentNotifications:s}){const{brandColor:l,onAction:c,member:p,site:d,t:f}=x.useContext(R),y=!(t!=null&&t.length)&&(a&&!s||!a);return b("div",{className:"gh-portal-content with-footer",children:[u(we,{}),u(Lx,{}),u(e||(()=>null),{}),u("div",{className:"gh-portal-section flex",children:b("div",{className:"gh-portal-list",children:[u(Ax,{subscribedNewsletters:t,setSubscribedNewsletters:g=>{let h=g.map(m=>({id:m.id}));n(h)}}),u(Ix,{isCommentsEnabled:a,enableCommentNotifications:s,updateCommentNotifications:r})]})}),b("footer",{className:"gh-portal-action-footer"+(qc({member:p})?" gh-feature-suppressions":""),children:[b("div",{style:{width:"100%"},children:[u(he,{isRunning:!1,onClick:g=>{i()},disabled:y,brandColor:l,isPrimary:!1,label:f("Unsubscribe from all emails"),isDestructive:!0,style:{width:"100%"},dataTestId:"unsubscribe-from-all-emails"}),u(Mx,{isPaid:o,site:d})]}),qc({member:p})&&!y&&b("div",{className:"gh-portal-footer-secondary",children:[u("span",{className:"gh-portal-footer-secondary-light",children:f("Not receiving emails?")}),b("button",{className:"gh-portal-btn-text gh-email-faq-page-button",onClick:()=>c("switchPage",{page:"emailReceivingFAQ"}),children:[f("Get help")," →"]})]})]})]})}function zx(){const{member:e,onAction:t,site:n,t:r}=x.useContext(R);x.useEffect(()=>{e||t("switchPage",{page:"signin"})},[e,t]);const i=[...(e==null?void 0:e.newsletters)||[]],[o,a]=x.useState(i),{comments_enabled:s}=n,{enable_comment_notifications:l}=e||{};return x.useEffect(()=>{a((e==null?void 0:e.newsletters)||[])},[e==null?void 0:e.newsletters]),u(Mm,{notification:null,subscribedNewsletters:o,updateSubscribedNewsletters:c=>{a(c),t("updateNewsletterPreference",{newsletters:c})},updateCommentNotifications:async c=>{t("updateNewsletterPreference",{enableCommentNotifications:c})},unsubscribeAll:()=>{a([]),t("showPopupNotification",{action:"updated:success",message:r("Email preference updated.")});const c={newsletters:[]};s&&(c.enableCommentNotifications=!1),t("updateNewsletterPreference",c)},isPaidMember:kt({member:e}),isCommentsEnabled:s!=="off",enableCommentNotifications:l})}function Fx(){const{site:e}=x.useContext(R),t=e.icon;return t?u("img",{className:"gh-portal-unsubscribe-logo",src:t,alt:e.title}):null}function Ux(){const{site:e}=x.useContext(R),t=e.title||"";return b("header",{className:"gh-portal-header",children:[u(Fx,{}),u("h2",{className:"gh-portal-publication-title",children:t})]})}async function nu({api:e,memberUuid:t,newsletters:n,enableCommentNotifications:r}){try{return await e.member.updateNewsletters({uuid:t,newsletters:n,enableCommentNotifications:r})}catch{}}function Bx(){const{site:e,pageData:t,onAction:n,t:r}=x.useContext(R),i=za({siteUrl:e.url}),[o,a]=x.useState(),s=wr({site:e}),l=s.filter(m=>m.subscribe_on_signup),[c,p]=x.useState(!1),[d,f]=x.useState(l),[y,v]=x.useState(!1),{comments_enabled:_}=e,{enable_comment_notifications:g=!1}=o||{};return x.useEffect(()=>{const m=za({siteUrl:e.url});(async()=>{const w=await m.member.newsletters({uuid:t.uuid});a(w);const k=(w==null?void 0:w.newsletters)||[];if(f(k),(s==null?void 0:s.length)===1&&!_){const C=await nu({api:m,memberUuid:t.uuid,newsletters:[]});f(C.newsletters)}else if(t.newsletterUuid){const C=await nu({api:m,memberUuid:t.uuid,newsletters:k==null?void 0:k.filter(S=>S.uuid!==t.newsletterUuid)});f(C.newsletters)}else if(t.comments&&_){const C=await nu({api:m,memberUuid:t.uuid,enableCommentNotifications:!1});a(C)}})()},[_,t.uuid,t.newsletterUuid,t.comments,e.url,s==null?void 0:s.length]),o===null?b("div",{className:"gh-portal-content gh-portal-feedback with-footer",children:[u(we,{}),u("div",{class:"gh-feedback-icon gh-feedback-icon-error",children:u(Zc,{})}),u("h1",{className:"gh-portal-main-title",children:r("That didn't go to plan")}),u("div",{children:u("p",{className:"gh-portal-text-center",children:r("We couldn't unsubscribe you as the email address was not found. Please contact the site owner.")})}),u(he,{style:{width:"100%"},retry:!1,onClick:()=>n("closePopup"),disabled:!1,brandColor:"#000000",label:r("Close"),isRunning:!1,tabindex:"3",classes:"sticky bottom"})]}):(s==null?void 0:s.length)===1&&!_&&!y?b("div",{className:"gh-portal-content gh-portal-unsubscribe with-footer",children:[u(we,{}),u(Ux,{}),u("h1",{className:"gh-portal-main-title",children:r("Successfully unsubscribed")}),b("div",{children:[b("p",{className:"gh-portal-text-center",children:[u("strong",{children:o==null?void 0:o.email})," will no longer receive this newsletter."]}),b("p",{className:"gh-portal-text-center",children:["Didn't mean to do this? Manage your preferences",u("button",{className:"gh-portal-btn-link gh-portal-btn-branded gh-portal-btn-inline",onClick:()=>{v(!0)},children:"here"}),"."]})]})]}):u(Mm,{notification:()=>{if(t.comments&&_)return u(Y,{children:b("p",{className:`gh-portal-text-center gh-portal-header-message ${c?"gh-portal-hide":""}`,children:[u("strong",{children:o==null?void 0:o.email})," will no longer receive emails when someone replies to your comments."]})});const m=s==null?void 0:s.find(k=>k.uuid===t.newsletterUuid);return u(Y,{children:b("p",{className:`gh-portal-text-center gh-portal-header-message ${c?"gh-portal-hide":""}`,children:[u("strong",{children:o==null?void 0:o.email})," will no longer receive ",u("strong",{children:m==null?void 0:m.name})," newsletter."]})})},subscribedNewsletters:d,updateSubscribedNewsletters:async m=>{f(m),p(!0),await i.member.updateNewsletters({uuid:t.uuid,newsletters:m})},updateCommentNotifications:async m=>{const w=await i.member.updateNewsletters({uuid:t.uuid,enableCommentNotifications:m});a(w)},unsubscribeAll:async()=>{p(!0),f([]),n("showPopupNotification",{action:"updated:success",message:r("Email preference updated.")});const m=await i.member.updateNewsletters({uuid:t.uuid,newsletters:[],enableCommentNotifications:!1});a(m)},isPaidMember:(o==null?void 0:o.status)!=="free",isCommentsEnabled:_!=="off",enableCommentNotifications:g})}function Yx(){const{brandColor:e,lastPage:t,onAction:n,action:r,site:i,t:o}=x.useContext(R);x.useEffect(()=>{["removeEmailFromSuppressionList:success"].includes(r)&&n("refreshMemberData"),["removeEmailFromSuppressionList:failed","refreshMemberData:failed"].includes(r)&&n("back"),["refreshMemberData:success"].includes(r)&&(Na({site:i})||Xh({site:i})?(n("switchPage",{page:"accountEmail",lastPage:"accountHome"}),n("showPopupNotification",{message:o("You have been successfully resubscribed")})):n("back"))},[r,n,i,o]);const a=["removeEmailFromSuppressionList:running","refreshMemberData:running"].includes(r),s=()=>{n("removeEmailFromSuppressionList")};return b("div",{className:"gh-email-suppressed-page",children:[b("header",{className:"gh-portal-detail-header",children:[u(kr,{brandColor:e,hidden:!t,onClick:()=>{n("back")}}),u(we,{})]}),u(Lm,{className:"gh-email-suppressed-page-icon"}),b("div",{className:"gh-email-suppressed-page-text",children:[u("h3",{className:"gh-portal-main-title gh-email-suppressed-page-title",children:o("Emails disabled")}),u("p",{children:o("You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.")})]}),u(he,{dataTestId:"resubscribe-email",classes:"gh-portal-confirm-button",onClick:s,disabled:a,brandColor:e,label:o("Re-enable emails"),isRunning:a})]})}function Hx(){const{brandColor:e,onAction:t,site:n}=x.useContext(R),r=`mailto:${Oa({site:n})}`;return b("div",{className:"gh-email-suppression-faq",children:[b("header",{className:"gh-portal-detail-header",children:[u(kr,{brandColor:e,onClick:()=>{t("switchPage",{page:"emailSuppressed",lastPage:"accountHome"})}}),u(we,{})]}),b("div",{class:"gh-longform",children:[u("h3",{children:"Why has my email been disabled?"}),u("p",{children:"Newsletters can be disabled on your account for two reasons: A previous email was marked as spam, or attempting to send an email resulted in a permanent failure (bounce)."}),u("h4",{children:"Spam complaints"}),u("p",{children:"If a newsletter is flagged as spam, emails are automatically disabled for that address to make sure you no longer receive any unwanted messages."}),u("p",{children:"If the spam complaint was accidental, or you would like to begin receiving emails again, you can resubscribe to emails by clicking the button on the previous screen."}),u("p",{children:"Once resubscribed, if you still don't see emails in your inbox, check your spam folder. Some inbox providers keep a record of previous spam complaints and will continue to flag emails. If this happens, mark the latest newsletter as 'Not spam' to move it back to your primary inbox."}),u("h4",{children:"Permanent failure (bounce)"}),u("p",{children:"When an inbox fails to accept an email it is commonly called a bounce. In many cases, this can be temporary. However, in some cases, a bounced email can be returned as a permanent failure when an email address is invalid or non-existent."}),u("p",{children:"In the event a permanent failure is received when attempting to send a newsletter, emails will be disabled on the account."}),u("p",{children:"If you would like to start receiving emails again, the best next steps are to check your email address on file for any issues and then click resubscribe on the previous screen."}),u("p",{children:u("a",{className:"gh-portal-btn gh-portal-btn-branded",href:r,onClick:()=>{r&&window.open(r)},children:"Need more help? Contact support"})})]})]})}function Gx(){const{brandColor:e,onAction:t,site:n,lastPage:r,member:i}=x.useContext(R),o=Oa({site:n}),a=`mailto:${o}`,s=Xb({site:n});return b("div",{className:"gh-email-receiving-faq",children:[b("header",{className:"gh-portal-detail-header",children:[u(kr,{brandColor:e,onClick:()=>{r?t("switchPage",{page:"accountHome"}):t("switchPage",{page:"accountEmail",lastPage:"accountHome"})}}),u(we,{})]}),b("div",{class:"gh-longform",children:[u("h3",{children:"Help! I'm not receiving emails"}),u("p",{children:"If you're not receiving the email newsletter you've subscribed to, here are few things to check."}),u("h4",{children:"Verify your email address is correct"}),b("p",{children:["The email address we have for you is ",u("strong",{children:i.email})," — if that's not correct, you can update it in your ",u("button",{className:"gh-portal-btn-text",onClick:()=>t("switchPage",{lastPage:"emailReceivingFAQ",page:"accountProfile"}),children:"account settings area"}),"."]}),u("h4",{children:"Check spam & promotions folders"}),u("p",{children:`Make sure emails aren't accidentally ending up in the Spam or Promotions folders of your inbox. If they are, click on "Mark as not spam" and/or "Move to inbox".`}),u("h4",{children:"Create a new contact"}),b("p",{children:["In your email client add ",u("strong",{children:s})," to your contacts list. This signals to your mail provider that emails sent from this address should be trusted."]}),u("h4",{children:"Send an email and say hi!"}),b("p",{children:["Send an email to ",u("strong",{children:s})," and say hello. This can also help signal to your mail provider that emails to-and-from this address should be trusted."]}),u("h4",{children:"Check with your mail provider"}),b("p",{children:["If you have a corporate or government email account, reach out to your IT department and ask them to allow emails to be received from ",u("strong",{children:s})]}),u("h4",{children:"Get in touch for help"}),b("p",{children:["If you've completed all these checks and you're still not receiving emails, you can reach out to get support by contacting ",u("a",{href:a,onClick:()=>{a&&window.open(a)},children:o}),"."]})]})]})}const ru={signin:Dm,signup:Cm,accountHome:jm,accountPlan:Sm,accountProfile:Im,accountEmail:zx,signupNewsletter:tu,unsubscribe:Bx,magiclink:Pm,loading:Om,offer:Tm,feedback:px,emailSuppressed:Yx,emailSuppressionFAQ:Hx,emailReceivingFAQ:Gx},iu=function({page:e}){return Object.keys(ru).includes(e)?e:"signup"},Wx=function({page:e}){return e.includes("account")},Vx=function({page:e}){return e.includes("offer")},Kx=e=>x.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM11.8326 2.33879C6.37785 2.95189 3.95901 5.20797 3.41126 9.74699C3.34896 10.2632 3.22642 10.7805 3.10443 11.2954C2.93277 12.02 2.76221 12.74 2.76221 13.4458C2.76221 17.9885 6.5856 21.556 11.1283 21.556C12.8959 21.556 14.4433 20.8144 15.8756 20.048C19.0536 18.3478 22.0328 16.2597 22.0328 12.5411C22.0328 9.91512 20.1051 7.56932 18.466 5.5747C18.3834 5.47416 18.3015 5.37451 18.2206 5.27577C17.3866 4.25742 14.4333 2.04643 11.8326 2.33879Z",fill:"#15171A"}));class ou extends q.Component{render(){const{t}=this.context;return b("a",{href:"https://ghost.org",target:"_blank",rel:"noopener noreferrer",onClick:()=>{window.open("https://ghost.org","_blank")},children:[u(Kx,{}),t("Powered by Ghost")]})}}Z(ou,"contextType",R);const zm=({member:e})=>({modalContainer:{zIndex:"3999999",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",overflow:"hidden"},frame:{common:{margin:"auto",position:"relative",padding:"0",outline:"0",width:"100%",opacity:"1",overflow:"hidden",height:"100%"}},page:{links:{width:"600px"}}});function qx({message:e}){return gr()?u("div",{className:"gh-portal-cookiebanner",children:e}):null}class Fm extends q.Component{componentDidMount(){this.node&&!K(["preview"])&&!this.props.isMobile&&(this.node.focus(),this.keyUphandler=t=>{t.key==="Escape"&&this.dismissPopup(t)},this.node.ownerDocument.removeEventListener("keyup",this.keyUphandler),this.node.ownerDocument.addEventListener("keyup",this.keyUphandler)),this.sendContainerHeightChangeEvent()}dismissPopup(t){var i;const n=t.target&&t.target.tagName;(n!=="INPUT"||n==="INPUT"&&!((i=t==null?void 0:t.target)!=null&&i.value))&&this.context.onAction("closePopup")}sendContainerHeightChangeEvent(){var t,n;this.node&&K(["preview"])&&((t=this.node)==null?void 0:t.clientHeight)!==this.lastContainerHeight&&(this.lastContainerHeight=(n=this.node)==null?void 0:n.clientHeight,window.document.body.style.overflow="hidden",window.document.body.style["scrollbar-width"]="none",window.parent.postMessage({type:"portal-preview-updated",payload:{height:this.lastContainerHeight}},"*"))}componentDidUpdate(){this.sendContainerHeightChangeEvent()}componentWillUnmount(){this.node&&this.node.ownerDocument.removeEventListener("keyup",this.keyUphandler)}handlePopupClose(t){K(["preview"])||t.target===t.currentTarget&&this.context.onAction("closePopup")}renderActivePage(){const{page:t}=this.context;iu({page:t});const n=ru[t];return u(n,{})}renderPopupNotification(){const{popupNotification:t}=this.context;return!t||!t.type?null:u(Nm,{})}render(){const{page:t,pageQuery:n,site:r,customSiteUrl:i}=this.context,a=Ca({site:r}).length;iu({page:t});const l={...zm({page:t}).page[t]};let c="",p="regular",d="",f=t;switch(t){case"signup":d="Cookies must be enabled in your browser to sign up.";break;case"signin":d="Cookies must be enabled in your browser to sign in.";break;case"accountHome":f="account-home";break;case"accountProfile":f="account-profile";break;case"accountPlan":f="account-plan";break;default:d="Cookies must be enabled in your browser.",f=t;break}a>1&&!at({site:r,pageQuery:n})&&t==="signup"&&(f+=" full-size",p="full");const y=En({site:r});(y&&a>2||!y&&a>1)&&t==="accountPlan"&&(f+=" full-size",p="full"),(t==="emailSuppressionFAQ"||t==="emailReceivingFAQ")&&(f+=" large-size");let v="gh-portal-popup-container";K(["preview"])&&(f+=" preview"),K(["preview"],{customSiteUrl:i})&&!r.disableBackground&&(v+=" preview"),K(["dev"])&&(v+=" dev");const _=`${v} ${c} ${f}`;return b(Y,{children:[u("div",{className:"gh-portal-popup-wrapper "+f,onClick:g=>this.handlePopupClose(g),children:b("div",{className:_,style:l,ref:g=>this.node=g,tabIndex:-1,children:[u(qx,{message:d}),this.renderPopupNotification(),this.renderActivePage(),p==="full"?u("div",{className:"gh-portal-powered inside "+(K(["preview"])?"hidden ":"")+f,children:u(ou,{})}):""]})}),u("div",{className:"gh-portal-powered outside "+(K(["preview"])?"hidden ":"")+f,children:u(ou,{})})]})}}Z(Fm,"contextType",R);class Um extends q.Component{constructor(t){super(t),this.state={height:null}}renderCurrentPage(t){const n=ru[t];return u(n,{})}onHeightChange(t){this.setState({height:t})}handlePopupClose(t){t.preventDefault(),t.target===t.currentTarget&&this.context.onAction("closePopup")}renderFrameStyles(){const{site:t}=this.context,n=bx({site:t}),r=`
|
|
3114
|
+
`;function bx({site:e}){return Hc+mx+ww+Lw+Bw+kw({site:e})+bw+gw+vw+Kh+ex+Xw+ix({site:e})+tx+yx+vx+ax+fx+hx+gx}class Dg extends q.Component{constructor(t){super(t),this.state={email:""}}componentDidMount(){const{member:t}=this.context;t&&this.context.onAction("switchPage",{page:"accountHome"})}handleSignin(t){t.preventDefault(),this.setState(n=>({errors:Ma({fields:this.getInputFields({state:n})})}),async()=>{const{email:n,errors:r}=this.state,{redirect:i}=this.context.pageData??{};r&&Object.values(r).filter(a=>!!a).length>0||this.context.onAction("signin",{email:n,redirect:i})})}handleInputChange(t,n){const r=n.name;this.setState({[r]:t.target.value})}onKeyDown(t){t.keyCode===13&&this.handleSignin(t)}getInputFields({state:t}){const{t:n}=this.context,r=t.errors||{};return[{type:"email",value:t.email,placeholder:"jamie@example.com",label:n("Email"),name:"email",required:!0,errorMessage:r.email||"",autoFocus:!0}]}renderSubmitButton(){const{action:t,t:n}=this.context;let r=!1;const i=t==="signin:running";let o=n(i?"Sending login link...":"Continue");const a=!!i;return t==="signin:failed"&&(o=n("Retry"),r=!0),u(he,{dataTestId:"signin",retry:r,style:{width:"100%"},onClick:s=>this.handleSignin(s),disabled:a,brandColor:this.context.brandColor,label:o,isRunning:i})}renderSignupMessage(){const{brandColor:t,t:n}=this.context;return b("div",{className:"gh-portal-signup-message",children:[u("div",{children:n("Don't have an account?")}),u("button",{"data-test-button":"signup-switch",className:"gh-portal-btn gh-portal-btn-link",style:{color:t},onClick:()=>this.context.onAction("switchPage",{page:"signup"}),children:u("span",{children:n("Sign up")})})]})}renderForm(){return u("section",{children:u("div",{className:"gh-portal-section",children:u(Aa,{fields:this.getInputFields({state:this.state}),onChange:(t,n)=>this.handleInputChange(t,n),onKeyDown:(t,n)=>this.onKeyDown(t,n)})})})}renderSiteLogo(){const t=this.context.site.icon;return t?u("img",{className:"gh-portal-signup-logo",src:t,alt:this.context.site.title}):null}renderFormHeader(){const{t}=this.context;return b("header",{className:"gh-portal-signin-header",children:[this.renderSiteLogo(),u("h1",{className:"gh-portal-main-title",children:t("Sign in")})]})}render(){return b(U,{children:[u(we,{}),b("div",{className:"gh-portal-logged-out-form-container",children:[b("div",{className:"gh-portal-content signin",children:[this.renderFormHeader(),this.renderForm()]}),b("footer",{className:"gh-portal-signin-footer",children:[this.renderSubmitButton(),this.renderSignupMessage()]})]})]})}}Z(Dg,"contextType",R);const wx=({onClose:e,handleSignout:t,supportAddress:n=""})=>{const r=`mailto:${n}`;return b("footer",{className:"gh-portal-account-footer",children:[u("ul",{className:"gh-portal-account-footermenu",children:u("li",{children:u("button",{"data-test-button":"footer-signout",className:"gh-portal-btn",name:"logout","aria-label":"logout",onClick:i=>t(i),children:"Sign out"})})}),u("div",{className:"gh-portal-account-footerright",children:u("ul",{className:"gh-portal-account-footermenu",children:u("li",{children:u("a",{"data-test-link":"footer-support",className:"gh-portal-btn gh-portal-btn-branded",href:r,onClick:()=>{r&&window.open(r)},children:"Contact support"})})})})]})},xx=()=>{const{member:e,brandColor:t,t:n}=x.useContext(R),r=e.avatar_image;return b("header",{className:"gh-portal-account-header",children:[u(Yc,{gravatar:r,style:{userIcon:{color:t,width:"56px",height:"56px",padding:"2px"}}}),u("h2",{className:"gh-portal-main-title",children:n("Your account")})]})},kx=()=>{const{site:e,action:t,brandColor:n,onAction:r}=x.useContext(R),{is_stripe_configured:i}=e;if(!i||_a({site:e}))return null;const o=["checkoutPlan:running"].includes(t),a=()=>{r("switchPage",{page:"accountPlan",lastPage:"accountHome"})};return u(he,{dataTestId:"view-plans",isRunning:o,label:"View plans",onClick:()=>a(),brandColor:n,style:{width:"100%"}})},_x=()=>{const{member:e,site:t}=x.useContext(R),{is_stripe_configured:n}=t;if(!n||_a({site:t}))return null;const r=Qe({member:e}),i=yr({member:e});if(i&&!r)return null;if(r){const o=r==null?void 0:r.current_period_end;if(i&&Wc({member:e})){const a=Wc({member:e}),s=xt(a);return u("div",{className:"gh-portal-section",children:b("p",{className:"gh-portal-text-center gh-portal-free-ctatext",children:["Your subscription will expire on ",s]})})}if(r!=null&&r.cancel_at_period_end)return null;if(Kc({sub:r})){const a=xt(r.trial_end_at);return u("div",{className:"gh-portal-section",children:b("p",{className:"gh-portal-text-center gh-portal-free-ctatext",children:["Your subscription will start on ",a]})})}return u("div",{className:"gh-portal-section",children:b("p",{className:"gh-portal-text-center gh-portal-free-ctatext",children:["Your subscription will renew on ",xt(o)]})})}return b("div",{className:"gh-portal-section",children:[u("p",{className:"gh-portal-text-center gh-portal-free-ctatext",children:"You currently have a free membership, upgrade to a paid subscription for full access."}),u(kx,{})]})},Sx=()=>{const{member:e,onAction:t,action:n,brandColor:r}=x.useContext(R),i=Qe({member:e});if(!i||!i.cancel_at_period_end)return null;const o=i.cancel_at_period_end?"Continue subscription":"Cancel subscription",a=["cancelSubscription:running"].includes(n),s=!!a,l=!!i.cancel_at_period_end;return b("div",{className:"gh-portal-cancelcontinue-container",children:[u(()=>{if(!i.cancel_at_period_end)return null;const p=i.current_period_end;return b("p",{className:"gh-portal-text-center gh-portal-free-ctatext",children:["Your subscription will expire on ",xt(p)]})},{}),u(he,{onClick:p=>{t("continueSubscription",{subscriptionId:i.id})},isRunning:a,disabled:s,isPrimary:l,brandColor:r,label:o,style:{width:"100%"}})]})},Ex=e=>x.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("defs",null,x.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px;}")),x.createElement("path",{d:"M22.939 2.56V8.817C22.9391 9.61244 22.6232 10.3754 22.061 10.938L10.5 22.5C10.2187 22.7812 9.83721 22.9392 9.43946 22.9392C9.04172 22.9392 8.66026 22.7812 8.37896 22.5L1.49997 15.62C1.21876 15.3387 1.06079 14.9572 1.06079 14.5595C1.06079 14.1618 1.21876 13.7803 1.49997 13.499L13.061 1.938C13.6236 1.37572 14.3865 1.0599 15.182 1.06H21.439C21.8368 1.06 22.2183 1.21803 22.4996 1.49934C22.7809 1.78064 22.939 2.16217 22.939 2.56V2.56Z",className:"a"}),x.createElement("path",{d:"M17.689 7.81C16.8605 7.81 16.189 7.13842 16.189 6.31C16.189 5.48157 16.8605 4.81 17.689 4.81C18.5174 4.81 19.189 5.48157 19.189 6.31C19.189 7.13842 18.5174 7.81 17.689 7.81Z",className:"a"})),Cx=()=>{const{member:e,site:t,onAction:n}=x.useContext(R),r=()=>{const d=Qe({member:e});n("editBilling",{subscriptionId:d.id})},i=()=>{const{is_stripe_configured:d}=t;d&&n("switchPage",{page:"accountPlan",lastPage:"accountHome"})},o=({price:d,isComplimentary:f,subscription:y})=>{const{offer:v,start_date:_}=y||{};let m="";if(d){const{amount:S=0,currency:$,interval:O}=d;m=`${Intl.NumberFormat("en",{currency:$,style:"currency"}).format(S/100)}/${O}`}let h=Nx({price:d,offer:v,subscriptionStartDate:_});const g=Wc({member:e});f&&(g?m=`Complimentary - Expires ${g}`:m=m?`Complimentary (${m})`:"Complimentary");let w="";h&&(w="gh-portal-account-old-price");const k=()=>h?b("p",{className:"gh-portal-account-discountcontainer",children:[u(Ex,{className:"gh-portal-account-tagicon"}),u("span",{children:h})]}):null,C=Kc({sub:y});return C&&(w="gh-portal-account-old-price"),C?b(U,{children:[u("p",{className:w,children:m}),u(Px,{subscription:y})]}):b(U,{children:[u("p",{className:w,children:m}),u(k,{})]})},a=({isComplimentary:d})=>(zi({member:e})?!1:d)||_a({site:t})?null:u("button",{className:"gh-portal-btn gh-portal-btn-list",onClick:y=>i(),"data-test-button":"change-plan",children:"Change"}),s=({defaultCardLast4:d})=>{if(d){const f=`**** **** **** ${d}`;return u("p",{children:f})}return null},l=({defaultCardLast4:d,isComplimentary:f})=>{const{action:y}=x.useContext(R),v=y==="editBilling:running"?u(Fi,{className:"gh-portal-billing-button-loader"}):"Update";return f?null:b("section",{children:[b("div",{className:"gh-portal-list-detail",children:[u("h3",{children:"Billing info"}),u(s,{defaultCardLast4:d})]}),u("button",{className:"gh-portal-btn gh-portal-btn-list",onClick:_=>r(),"data-test-button":"update-billing",children:v})]})},c=Qe({member:e}),p=yr({member:e});if(c||p){const{price:d,default_payment_card_last4:f}=c||{};let y="Plan";return Sa({site:t})&&Jh({member:e})&&(y=Jh({member:e})),b(U,{children:[b("section",{children:[b("div",{className:"gh-portal-list-detail",children:[u("h3",{children:y}),u(o,{price:d,isComplimentary:p,subscription:c})]}),u(a,{isComplimentary:p})]}),u(l,{isComplimentary:p,defaultCardLast4:f})]})}return null};function Px({subscription:e,priceLabel:t}){if(Kc({sub:e})){const n=xt(e.trial_end_at);return u("p",{className:"gh-portal-account-discountcontainer",children:u("div",{children:b("span",{children:["Free Trial – Ends ",n]})})})}return null}function Nx({offer:e,price:t,subscriptionStartDate:n}){let r="";if((e==null?void 0:e.type)==="trial"||(e==null?void 0:e.duration)==="once")return"";if(e){const i=e.duration;let o="";if(i==="forever")o="Forever";else if(i==="repeating"){const a=e.duration_in_months||0;let s=new Date(n),l=new Date(s.setMonth(s.getMonth()+a));if(rg(l))return"";o=`Ends ${xt(l)}`}r=`${ew({offer:e,price:t,useFormatted:!0})}/${t.interval}${o?` — ${o}`:""}`}return r}function Tx(){const{member:e,site:t,onAction:n}=x.useContext(R);let{newsletters:r}=e;const i=!!(r!=null&&r.length);let o=i?"Subscribed":"Unsubscribed";const a=(s,l)=>{var d;s.preventDefault();const c=wr({site:t}),p=(d=e==null?void 0:e.newsletters)!=null&&d.length?[]:c;n("updateNewsletterPreference",{newsletters:p})};return b("section",{children:[b("div",{className:"gh-portal-list-detail email-newsletter",children:[u("h3",{children:"Email newsletter"}),b("p",{children:[o," ",qc({member:e})&&i&&u("button",{className:"gh-portal-btn-text gh-email-faq-page-button",onClick:()=>n("switchPage",{page:"emailReceivingFAQ",lastPage:"accountHome"}),children:"Not receiving emails?"})]})]}),u("div",{children:u(Ia,{dataTestId:"default-newsletter-toggle",id:"default-newsletter-toggle",onToggle:s=>{a(s)},checked:i})})]})}const Lg=e=>x.createElement("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e},x.createElement("path",{d:"m12.79 12.376 4.08 4.079m-4.08 0 4.08-4.08",stroke:"red",strokeWidth:1.35,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"m10.439 17.994-2.664-2.652-2.86 1.478.111-4.239m0 0L1.677 9.232a1.344 1.344 0 0 1-.366-1.222 1.369 1.369 0 0 1 .904-1.05l13.111-4.374a1.369 1.369 0 0 1 1.76 1.758L15 10m-9.974 2.581 11.67-9.727",stroke:"#A3A3A3",strokeWidth:1.35,strokeLinecap:"round",strokeLinejoin:"round"}));function $x(){const{onAction:e,member:t,t:n}=x.useContext(R),r=ng({member:t}),i=r?"emailSuppressed":"accountEmail";return b("section",{children:[b("div",{className:"gh-portal-list-detail",children:[u("h3",{children:n("Emails")}),r?b("p",{className:"gh-portal-email-notice",children:[u(Lg,{className:"gh-portal-email-notice-icon"}),b("span",{children:["You're ",u("span",{className:"gh-mobile-shortener",children:"currently "}),"not receiving emails"]})]}):u("p",{children:n("Update your preferences")})]}),u("button",{className:"gh-portal-btn gh-portal-btn-list",onClick:o=>{e("switchPage",{page:i,lastPage:"accountHome"})},"data-test-button":"manage-newsletters",children:n("Manage")})]})}const Rx=()=>{const{member:e,onAction:t,site:n}=x.useContext(R),{name:r,email:i}=e,o=()=>{t("switchPage",{page:"accountProfile",lastPage:"accountHome"})},a=Na({site:n})||Xh({site:n})||ng({member:e});return u("div",{children:b("div",{className:"gh-portal-list",children:[b("section",{children:[b("div",{className:"gh-portal-list-detail",children:[u("h3",{children:r||"Account"}),u("p",{children:i})]}),u("button",{"data-test-button":"edit-profile",className:"gh-portal-btn gh-portal-btn-list",onClick:s=>o(),children:"Edit"})]}),u(Cx,{}),a?u($x,{}):u(Tx,{})]})})},Ox=()=>b("div",{className:"gh-portal-content gh-portal-account-main",children:[u(we,{}),u(xx,{}),b("section",{className:"gh-portal-account-data",children:[u(_x,{}),u(Sx,{}),u(Rx,{})]})]});class Ig extends q.Component{componentDidMount(){const{member:t}=this.context;t||this.context.onAction("switchPage",{page:"signin",pageData:{redirect:window.location.href}})}handleSignout(t){t.preventDefault(),this.context.onAction("signout")}render(){const{member:t,site:n}=this.context,r=Oa({site:n});return t?b("div",{className:"gh-portal-account-wrapper",children:[u(Ox,{}),u(wx,{onClose:()=>this.context.onAction("closePopup"),handleSignout:i=>this.handleSignout(i),supportAddress:r})]}):null}}Z(Ig,"contextType",R);class jg extends q.Component{constructor(t,n){super(t,n);const{name:r="",email:i=""}=n.member||{};this.state={name:r,email:i}}componentDidMount(){const{member:t}=this.context;t||this.context.onAction("switchPage",{page:"signin"})}handleSignout(t){t.preventDefault(),this.context.onAction("signout")}onBack(t){this.context.onAction("back")}onProfileSave(t){t.preventDefault(),this.setState(n=>({errors:Ma({fields:this.getInputFields({state:n})})}),()=>{const{email:n,name:r,errors:i}=this.state;i&&Object.values(i).filter(a=>!!a).length>0||(this.context.onAction("clearPopupNotification"),this.context.onAction("updateProfile",{email:n,name:r}))})}renderSaveButton(){const{t}=this.context,n=this.context.action==="updateProfile:running";let r=t("Save");return this.context.action==="updateProfile:failed"&&(r=t("Retry")),u(he,{dataTestId:"save-button",isRunning:n,onClick:o=>this.onProfileSave(o),disabled:!!n,brandColor:this.context.brandColor,label:r,style:{width:"100%"}})}renderDeleteAccountButton(){const{t}=this.context;return u("div",{style:{cursor:"pointer",color:"red"},role:"button",children:t("Delete account")})}renderAccountFooter(){return u("footer",{className:"gh-portal-action-footer",children:this.renderSaveButton()})}renderHeader(){const{t}=this.context;return b("header",{className:"gh-portal-detail-header",children:[u(kr,{brandColor:this.context.brandColor,hidden:!this.context.lastPage,onClick:n=>this.onBack(n)}),u("h3",{className:"gh-portal-main-title",children:t("Account settings")})]})}renderUserAvatar(){const t=this.context.member&&this.context.member.avatar_image;return u("div",{style:{position:"relative",display:"flex",width:"64px",height:"64px",marginBottom:"6px",borderRadius:"100%",boxShadow:"0 0 0 3px #fff",border:"1px solid gray",overflow:"hidden",justifyContent:"center",alignItems:"center"},children:u(Yc,{gravatar:t,style:{userIcon:{color:"black",width:"56px",height:"56px"}}})})}handleInputChange(t,n){const r=n.name;this.setState({[r]:t.target.value})}getInputFields({state:t,fieldNames:n}){const{t:r}=this.context,i=t.errors||{},o=[{type:"text",value:t.name,placeholder:"Jamie Larson",label:r("Name"),name:"name",required:!0,errorMessage:i.name||""},{type:"email",value:t.email,placeholder:"jamie@example.com",label:r("Email"),name:"email",required:!0,errorMessage:i.email||""}];return n&&n.length>0?o.filter(a=>n.includes(a.name)):o}onKeyDown(t){t.keyCode===13&&this.onProfileSave(t)}renderProfileData(){return u("div",{className:"gh-portal-section",children:u(Aa,{fields:this.getInputFields({state:this.state}),onChange:(t,n)=>this.handleInputChange(t,n),onKeyDown:(t,n)=>this.onKeyDown(t,n)})})}render(){const{member:t}=this.context;return t?b(U,{children:[b("div",{className:"gh-portal-content with-footer",children:[u(we,{}),this.renderHeader(),u("div",{className:"gh-portal-section",children:this.renderProfileData()})]}),this.renderAccountFooter()]}):null}}Z(jg,"contextType",R);const Dx=e=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},x.createElement("defs",null,x.createElement("style",null,`.a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px!important;}
|
|
3115
|
+
`)),x.createElement("title",null,"check-circle-1"),x.createElement("path",{className:"a",d:"M6,13.223,8.45,16.7a1.049,1.049,0,0,0,1.707.051L18,6.828"}),x.createElement("circle",{className:"a",cx:12,cy:11.999,r:11.25}));function Lx(){const{brandColor:e,lastPage:t,onAction:n,t:r}=x.useContext(R);return b("header",{className:"gh-portal-detail-header",children:[u(kr,{brandColor:e,hidden:!t,onClick:i=>{n("back")}}),u("h3",{className:"gh-portal-main-title",children:r("Email preferences")})]})}function Ag({show:e,checked:t}){let n=[];return e&&n.push("gh-portal-checkmark-show"),t&&n.push("gh-portal-toggle-checked"),n.push("gh-portal-checkmark-container"),u("div",{className:n.join(" "),children:u(Dx,{className:"gh-portal-checkmark-icon",alt:""})})}function Ix({newsletter:e,subscribedNewsletters:t,setSubscribedNewsletters:n}){const r=t.some(l=>l.id===(e==null?void 0:e.id)),[i,o]=x.useState(!1),[a,s]=x.useState(null);return b("section",{className:"gh-portal-list-toggle-wrapper","data-test-toggle-wrapper":!0,children:[b("div",{className:"gh-portal-list-detail",children:[u("h3",{children:e.name}),u("p",{children:e==null?void 0:e.description})]}),b("div",{style:{display:"flex",alignItems:"center"},children:[u(Ag,{show:i,checked:r}),u(Ia,{id:e.id,onToggle:(l,c)=>{let p=[];if(c){p=t.filter(f=>f.id!==e.id).concat(e),o(!0),clearTimeout(a);let d=setTimeout(()=>{o(!1)},2e3);s(d)}else{p=t.filter(f=>f.id!==e.id),o(!0),clearTimeout(a);let d=setTimeout(()=>{o(!1)},2e3);s(d)}n(p)},checked:r})]})]})}function jx({updateCommentNotifications:e,isCommentsEnabled:t,enableCommentNotifications:n}){const{t:r}=x.useContext(R),i=!!n,[o,a]=x.useState(!1),[s,l]=x.useState(null);return t?b("section",{className:"gh-portal-list-toggle-wrapper","data-test-toggle-wrapper":!0,children:[b("div",{className:"gh-portal-list-detail",children:[u("h3",{children:r("Comments")}),u("p",{children:r("Get notified when someone replies to your comment")})]}),b("div",{style:{display:"flex",alignItems:"center"},children:[u(Ag,{show:o,checked:i}),u(Ia,{id:"comments",onToggle:(c,p)=>{a(!0),clearTimeout(s);let d=setTimeout(()=>{a(!1)},2e3);l(d),e(p)},checked:i})]})]}):null}function Ax({subscribedNewsletters:e,setSubscribedNewsletters:t}){const{site:n}=x.useContext(R);return wr({site:n}).map(i=>u(Ix,{newsletter:i,subscribedNewsletters:e,setSubscribedNewsletters:t},i==null?void 0:i.id))}function Mx({site:e,isPaid:t}){const{t:n}=x.useContext(R);return t?u("p",{style:{textAlign:"center",marginTop:"12px",marginBottom:"0",color:"var(--grey6)"},children:n("Unsubscribing from emails will not cancel your paid subscription to {{title}}",{title:e==null?void 0:e.title})}):null}function Mg({notification:e,subscribedNewsletters:t,updateSubscribedNewsletters:n,updateCommentNotifications:r,unsubscribeAll:i,isPaidMember:o,isCommentsEnabled:a,enableCommentNotifications:s}){const{brandColor:l,onAction:c,member:p,site:d,t:f}=x.useContext(R),y=!(t!=null&&t.length)&&(a&&!s||!a);return b("div",{className:"gh-portal-content with-footer",children:[u(we,{}),u(Lx,{}),u(e||(()=>null),{}),u("div",{className:"gh-portal-section flex",children:b("div",{className:"gh-portal-list",children:[u(Ax,{subscribedNewsletters:t,setSubscribedNewsletters:m=>{let h=m.map(g=>({id:g.id}));n(h)}}),u(jx,{isCommentsEnabled:a,enableCommentNotifications:s,updateCommentNotifications:r})]})}),b("footer",{className:"gh-portal-action-footer"+(qc({member:p})?" gh-feature-suppressions":""),children:[b("div",{style:{width:"100%"},children:[u(he,{isRunning:!1,onClick:m=>{i()},disabled:y,brandColor:l,isPrimary:!1,label:f("Unsubscribe from all emails"),isDestructive:!0,style:{width:"100%"},dataTestId:"unsubscribe-from-all-emails"}),u(Mx,{isPaid:o,site:d})]}),qc({member:p})&&!y&&b("div",{className:"gh-portal-footer-secondary",children:[u("span",{className:"gh-portal-footer-secondary-light",children:f("Not receiving emails?")}),b("button",{className:"gh-portal-btn-text gh-email-faq-page-button",onClick:()=>c("switchPage",{page:"emailReceivingFAQ"}),children:[f("Get help")," →"]})]})]})]})}function zx(){const{member:e,onAction:t,site:n,t:r}=x.useContext(R);x.useEffect(()=>{e||t("switchPage",{page:"signin"})},[e,t]);const i=[...(e==null?void 0:e.newsletters)||[]],[o,a]=x.useState(i),{comments_enabled:s}=n,{enable_comment_notifications:l}=e||{};return x.useEffect(()=>{a((e==null?void 0:e.newsletters)||[])},[e==null?void 0:e.newsletters]),u(Mg,{notification:null,subscribedNewsletters:o,updateSubscribedNewsletters:c=>{a(c),t("updateNewsletterPreference",{newsletters:c})},updateCommentNotifications:async c=>{t("updateNewsletterPreference",{enableCommentNotifications:c})},unsubscribeAll:()=>{a([]),t("showPopupNotification",{action:"updated:success",message:r("Email preference updated.")});const c={newsletters:[]};s&&(c.enableCommentNotifications=!1),t("updateNewsletterPreference",c)},isPaidMember:kt({member:e}),isCommentsEnabled:s!=="off",enableCommentNotifications:l})}function Fx(){const{site:e}=x.useContext(R),t=e.icon;return t?u("img",{className:"gh-portal-unsubscribe-logo",src:t,alt:e.title}):null}function Ux(){const{site:e}=x.useContext(R),t=e.title||"";return b("header",{className:"gh-portal-header",children:[u(Fx,{}),u("h2",{className:"gh-portal-publication-title",children:t})]})}async function nu({api:e,memberUuid:t,newsletters:n,enableCommentNotifications:r}){try{return await e.member.updateNewsletters({uuid:t,newsletters:n,enableCommentNotifications:r})}catch{}}function Bx(){const{site:e,pageData:t,onAction:n,t:r}=x.useContext(R),i=za({siteUrl:e.url}),[o,a]=x.useState(),s=wr({site:e}),l=s.filter(g=>g.subscribe_on_signup),[c,p]=x.useState(!1),[d,f]=x.useState(l),[y,v]=x.useState(!1),{comments_enabled:_}=e,{enable_comment_notifications:m=!1}=o||{};return x.useEffect(()=>{const g=za({siteUrl:e.url});(async()=>{const w=await g.member.newsletters({uuid:t.uuid});a(w);const k=(w==null?void 0:w.newsletters)||[];if(f(k),(s==null?void 0:s.length)===1&&!_){const C=await nu({api:g,memberUuid:t.uuid,newsletters:[]});f(C.newsletters)}else if(t.newsletterUuid){const C=await nu({api:g,memberUuid:t.uuid,newsletters:k==null?void 0:k.filter(S=>S.uuid!==t.newsletterUuid)});f(C.newsletters)}else if(t.comments&&_){const C=await nu({api:g,memberUuid:t.uuid,enableCommentNotifications:!1});a(C)}})()},[_,t.uuid,t.newsletterUuid,t.comments,e.url,s==null?void 0:s.length]),o===null?b("div",{className:"gh-portal-content gh-portal-feedback with-footer",children:[u(we,{}),u("div",{class:"gh-feedback-icon gh-feedback-icon-error",children:u(Zc,{})}),u("h1",{className:"gh-portal-main-title",children:r("That didn't go to plan")}),u("div",{children:u("p",{className:"gh-portal-text-center",children:r("We couldn't unsubscribe you as the email address was not found. Please contact the site owner.")})}),u(he,{style:{width:"100%"},retry:!1,onClick:()=>n("closePopup"),disabled:!1,brandColor:"#000000",label:r("Close"),isRunning:!1,tabindex:"3",classes:"sticky bottom"})]}):(s==null?void 0:s.length)===1&&!_&&!y?b("div",{className:"gh-portal-content gh-portal-unsubscribe with-footer",children:[u(we,{}),u(Ux,{}),u("h1",{className:"gh-portal-main-title",children:r("Successfully unsubscribed")}),b("div",{children:[b("p",{className:"gh-portal-text-center",children:[u("strong",{children:o==null?void 0:o.email})," will no longer receive this newsletter."]}),b("p",{className:"gh-portal-text-center",children:["Didn't mean to do this? Manage your preferences",u("button",{className:"gh-portal-btn-link gh-portal-btn-branded gh-portal-btn-inline",onClick:()=>{v(!0)},children:"here"}),"."]})]})]}):u(Mg,{notification:()=>{if(t.comments&&_)return u(U,{children:b("p",{className:`gh-portal-text-center gh-portal-header-message ${c?"gh-portal-hide":""}`,children:[u("strong",{children:o==null?void 0:o.email})," will no longer receive emails when someone replies to your comments."]})});const g=s==null?void 0:s.find(k=>k.uuid===t.newsletterUuid);return u(U,{children:b("p",{className:`gh-portal-text-center gh-portal-header-message ${c?"gh-portal-hide":""}`,children:[u("strong",{children:o==null?void 0:o.email})," will no longer receive ",u("strong",{children:g==null?void 0:g.name})," newsletter."]})})},subscribedNewsletters:d,updateSubscribedNewsletters:async g=>{f(g),p(!0),await i.member.updateNewsletters({uuid:t.uuid,newsletters:g})},updateCommentNotifications:async g=>{const w=await i.member.updateNewsletters({uuid:t.uuid,enableCommentNotifications:g});a(w)},unsubscribeAll:async()=>{p(!0),f([]),n("showPopupNotification",{action:"updated:success",message:r("Email preference updated.")});const g=await i.member.updateNewsletters({uuid:t.uuid,newsletters:[],enableCommentNotifications:!1});a(g)},isPaidMember:(o==null?void 0:o.status)!=="free",isCommentsEnabled:_!=="off",enableCommentNotifications:m})}function Yx(){const{brandColor:e,lastPage:t,onAction:n,action:r,site:i,t:o}=x.useContext(R);x.useEffect(()=>{["removeEmailFromSuppressionList:success"].includes(r)&&n("refreshMemberData"),["removeEmailFromSuppressionList:failed","refreshMemberData:failed"].includes(r)&&n("back"),["refreshMemberData:success"].includes(r)&&(Na({site:i})||Xh({site:i})?(n("switchPage",{page:"accountEmail",lastPage:"accountHome"}),n("showPopupNotification",{message:o("You have been successfully resubscribed")})):n("back"))},[r,n,i,o]);const a=["removeEmailFromSuppressionList:running","refreshMemberData:running"].includes(r),s=()=>{n("removeEmailFromSuppressionList")};return b("div",{className:"gh-email-suppressed-page",children:[b("header",{className:"gh-portal-detail-header",children:[u(kr,{brandColor:e,hidden:!t,onClick:()=>{n("back")}}),u(we,{})]}),u(Lg,{className:"gh-email-suppressed-page-icon"}),b("div",{className:"gh-email-suppressed-page-text",children:[u("h3",{className:"gh-portal-main-title gh-email-suppressed-page-title",children:o("Emails disabled")}),u("p",{children:o("You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.")})]}),u(he,{dataTestId:"resubscribe-email",classes:"gh-portal-confirm-button",onClick:s,disabled:a,brandColor:e,label:o("Re-enable emails"),isRunning:a})]})}function Hx(){const{brandColor:e,onAction:t,site:n}=x.useContext(R),r=`mailto:${Oa({site:n})}`;return b("div",{className:"gh-email-suppression-faq",children:[b("header",{className:"gh-portal-detail-header",children:[u(kr,{brandColor:e,onClick:()=>{t("switchPage",{page:"emailSuppressed",lastPage:"accountHome"})}}),u(we,{})]}),b("div",{class:"gh-longform",children:[u("h3",{children:"Why has my email been disabled?"}),u("p",{children:"Newsletters can be disabled on your account for two reasons: A previous email was marked as spam, or attempting to send an email resulted in a permanent failure (bounce)."}),u("h4",{children:"Spam complaints"}),u("p",{children:"If a newsletter is flagged as spam, emails are automatically disabled for that address to make sure you no longer receive any unwanted messages."}),u("p",{children:"If the spam complaint was accidental, or you would like to begin receiving emails again, you can resubscribe to emails by clicking the button on the previous screen."}),u("p",{children:"Once resubscribed, if you still don't see emails in your inbox, check your spam folder. Some inbox providers keep a record of previous spam complaints and will continue to flag emails. If this happens, mark the latest newsletter as 'Not spam' to move it back to your primary inbox."}),u("h4",{children:"Permanent failure (bounce)"}),u("p",{children:"When an inbox fails to accept an email it is commonly called a bounce. In many cases, this can be temporary. However, in some cases, a bounced email can be returned as a permanent failure when an email address is invalid or non-existent."}),u("p",{children:"In the event a permanent failure is received when attempting to send a newsletter, emails will be disabled on the account."}),u("p",{children:"If you would like to start receiving emails again, the best next steps are to check your email address on file for any issues and then click resubscribe on the previous screen."}),u("p",{children:u("a",{className:"gh-portal-btn gh-portal-btn-branded",href:r,onClick:()=>{r&&window.open(r)},children:"Need more help? Contact support"})})]})]})}function Gx(){const{brandColor:e,onAction:t,site:n,lastPage:r,member:i}=x.useContext(R),o=Oa({site:n}),a=`mailto:${o}`,s=Xb({site:n});return b("div",{className:"gh-email-receiving-faq",children:[b("header",{className:"gh-portal-detail-header",children:[u(kr,{brandColor:e,onClick:()=>{r?t("switchPage",{page:"accountHome"}):t("switchPage",{page:"accountEmail",lastPage:"accountHome"})}}),u(we,{})]}),b("div",{class:"gh-longform",children:[u("h3",{children:"Help! I'm not receiving emails"}),u("p",{children:"If you're not receiving the email newsletter you've subscribed to, here are few things to check."}),u("h4",{children:"Verify your email address is correct"}),b("p",{children:["The email address we have for you is ",u("strong",{children:i.email})," — if that's not correct, you can update it in your ",u("button",{className:"gh-portal-btn-text",onClick:()=>t("switchPage",{lastPage:"emailReceivingFAQ",page:"accountProfile"}),children:"account settings area"}),"."]}),u("h4",{children:"Check spam & promotions folders"}),u("p",{children:`Make sure emails aren't accidentally ending up in the Spam or Promotions folders of your inbox. If they are, click on "Mark as not spam" and/or "Move to inbox".`}),u("h4",{children:"Create a new contact"}),b("p",{children:["In your email client add ",u("strong",{children:s})," to your contacts list. This signals to your mail provider that emails sent from this address should be trusted."]}),u("h4",{children:"Send an email and say hi!"}),b("p",{children:["Send an email to ",u("strong",{children:s})," and say hello. This can also help signal to your mail provider that emails to-and-from this address should be trusted."]}),u("h4",{children:"Check with your mail provider"}),b("p",{children:["If you have a corporate or government email account, reach out to your IT department and ask them to allow emails to be received from ",u("strong",{children:s})]}),u("h4",{children:"Get in touch for help"}),b("p",{children:["If you've completed all these checks and you're still not receiving emails, you can reach out to get support by contacting ",u("a",{href:a,onClick:()=>{a&&window.open(a)},children:o}),"."]})]})]})}const ru={signin:Dg,signup:Cg,accountHome:Ig,accountPlan:Sg,accountProfile:jg,accountEmail:zx,signupNewsletter:tu,unsubscribe:Bx,magiclink:Pg,loading:Og,offer:Tg,feedback:px,emailSuppressed:Yx,emailSuppressionFAQ:Hx,emailReceivingFAQ:Gx},iu=function({page:e}){return Object.keys(ru).includes(e)?e:"signup"},Wx=function({page:e}){return e.includes("account")},Vx=function({page:e}){return e.includes("offer")},Kx=e=>x.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM11.8326 2.33879C6.37785 2.95189 3.95901 5.20797 3.41126 9.74699C3.34896 10.2632 3.22642 10.7805 3.10443 11.2954C2.93277 12.02 2.76221 12.74 2.76221 13.4458C2.76221 17.9885 6.5856 21.556 11.1283 21.556C12.8959 21.556 14.4433 20.8144 15.8756 20.048C19.0536 18.3478 22.0328 16.2597 22.0328 12.5411C22.0328 9.91512 20.1051 7.56932 18.466 5.5747C18.3834 5.47416 18.3015 5.37451 18.2206 5.27577C17.3866 4.25742 14.4333 2.04643 11.8326 2.33879Z",fill:"#15171A"}));class ou extends q.Component{render(){const{t}=this.context;return b("a",{href:"https://ghost.org",target:"_blank",rel:"noopener noreferrer",onClick:()=>{window.open("https://ghost.org","_blank")},children:[u(Kx,{}),t("Powered by Ghost")]})}}Z(ou,"contextType",R);const zg=({member:e})=>({modalContainer:{zIndex:"3999999",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",overflow:"hidden"},frame:{common:{margin:"auto",position:"relative",padding:"0",outline:"0",width:"100%",opacity:"1",overflow:"hidden",height:"100%"}},page:{links:{width:"600px"}}});function qx({message:e}){return mr()?u("div",{className:"gh-portal-cookiebanner",children:e}):null}class Fg extends q.Component{componentDidMount(){this.node&&!K(["preview"])&&!this.props.isMobile&&(this.node.focus(),this.keyUphandler=t=>{t.key==="Escape"&&this.dismissPopup(t)},this.node.ownerDocument.removeEventListener("keyup",this.keyUphandler),this.node.ownerDocument.addEventListener("keyup",this.keyUphandler)),this.sendContainerHeightChangeEvent()}dismissPopup(t){var i;const n=t.target&&t.target.tagName;(n!=="INPUT"||n==="INPUT"&&!((i=t==null?void 0:t.target)!=null&&i.value))&&this.context.onAction("closePopup")}sendContainerHeightChangeEvent(){var t,n;this.node&&K(["preview"])&&((t=this.node)==null?void 0:t.clientHeight)!==this.lastContainerHeight&&(this.lastContainerHeight=(n=this.node)==null?void 0:n.clientHeight,window.document.body.style.overflow="hidden",window.document.body.style["scrollbar-width"]="none",window.parent.postMessage({type:"portal-preview-updated",payload:{height:this.lastContainerHeight}},"*"))}componentDidUpdate(){this.sendContainerHeightChangeEvent()}componentWillUnmount(){this.node&&this.node.ownerDocument.removeEventListener("keyup",this.keyUphandler)}handlePopupClose(t){K(["preview"])||t.target===t.currentTarget&&this.context.onAction("closePopup")}renderActivePage(){const{page:t}=this.context;iu({page:t});const n=ru[t];return u(n,{})}renderPopupNotification(){const{popupNotification:t}=this.context;return!t||!t.type?null:u(Ng,{})}render(){const{page:t,pageQuery:n,site:r,customSiteUrl:i}=this.context,a=Ca({site:r}).length;iu({page:t});const l={...zg({page:t}).page[t]};let c="",p="regular",d="",f=t;switch(t){case"signup":d="Cookies must be enabled in your browser to sign up.";break;case"signin":d="Cookies must be enabled in your browser to sign in.";break;case"accountHome":f="account-home";break;case"accountProfile":f="account-profile";break;case"accountPlan":f="account-plan";break;default:d="Cookies must be enabled in your browser.",f=t;break}a>1&&!at({site:r,pageQuery:n})&&t==="signup"&&(f+=" full-size",p="full");const y=En({site:r});(y&&a>2||!y&&a>1)&&t==="accountPlan"&&(f+=" full-size",p="full"),(t==="emailSuppressionFAQ"||t==="emailReceivingFAQ")&&(f+=" large-size");let v="gh-portal-popup-container";K(["preview"])&&(f+=" preview"),K(["preview"],{customSiteUrl:i})&&!r.disableBackground&&(v+=" preview"),K(["dev"])&&(v+=" dev");const _=`${v} ${c} ${f}`;return b(U,{children:[u("div",{className:"gh-portal-popup-wrapper "+f,onClick:m=>this.handlePopupClose(m),children:b("div",{className:_,style:l,ref:m=>this.node=m,tabIndex:-1,children:[u(qx,{message:d}),this.renderPopupNotification(),this.renderActivePage(),p==="full"?u("div",{className:"gh-portal-powered inside "+(K(["preview"])?"hidden ":"")+f,children:u(ou,{})}):""]})}),u("div",{className:"gh-portal-powered outside "+(K(["preview"])?"hidden ":"")+f,children:u(ou,{})})]})}}Z(Fg,"contextType",R);class Ug extends q.Component{constructor(t){super(t),this.state={height:null}}renderCurrentPage(t){const n=ru[t];return u(n,{})}onHeightChange(t){this.setState({height:t})}handlePopupClose(t){t.preventDefault(),t.target===t.currentTarget&&this.context.onAction("closePopup")}renderFrameStyles(){const{site:t}=this.context,n=bx({site:t}),r=`
|
|
3113
3116
|
:root {
|
|
3114
3117
|
--brandcolor: ${this.context.brandColor}
|
|
3115
3118
|
}
|
|
3116
|
-
`+n;return b(Y,{children:[u("style",{dangerouslySetInnerHTML:{__html:r}}),u("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]})}renderFrameContainer(){const{member:t,site:n,customSiteUrl:r}=this.context,i=zm({member:t}),o=window.innerWidth<480,a={...i.frame.common};let s="gh-portal-popup-background";return K(["preview"])&&(i.modalContainer.zIndex="3999997"),K(["preview"],{customSiteUrl:r})&&!n.disableBackground&&(s+=" preview"),K(["dev"])&&(s+=" dev"),u("div",{style:i.modalContainer,children:b(Uc,{style:a,title:"portal-popup",head:this.renderFrameStyles(),dataTestId:"portal-popup-frame",children:[u("div",{className:s,onClick:l=>this.handlePopupClose(l)}),u(Fm,{isMobile:o})]})})}render(){const{showPopup:t}=this.context;return t?this.renderFrameContainer():null}}Z(Um,"contextType",R),Fa({products:au({numOfProducts:1})});function Se(){return(new Date().getTime()/1e3|0).toString(16)+"xxxxxxxxxxxxxxxx".replace(/[x]/g,function(){return(Math.random()*16|0).toString(16)}).toLowerCase()}function Fa({title:e="The Blueprint",description:t="Thoughts, stories and ideas.",logo:n="https://static.ghost.org/v4.0.0/images/ghost-orb-1.png",icon:r="https://static.ghost.org/v4.0.0/images/ghost-orb-1.png",url:i="https://portal.localhost",plans:o={monthly:5e3,yearly:15e4,currency:"USD"},products:a=au({numOfProducts:1}),portalProducts:s=a.map($=>$.id),accentColor:l="#45C32E",portalPlans:c=["free","monthly","yearly"],allowSelfSignup:p=!0,membersSignupAccess:d="all",freePriceName:f="Free",freePriceDescription:y="Free preview",isStripeConfigured:v=!0,portalButton:_=!0,portalName:g=!0,portalButtonIcon:h="icon-1",portalButtonSignupText:m="Subscribe now",portalButtonStyle:w="icon-and-text",membersSupportAddress:k="support@example.com",newsletters:C=[],commentsEnabled:S}={}){return{title:e,description:t,logo:n,icon:r,accent_color:l,url:i,plans:o,products:a,portal_products:s,allow_self_signup:p,members_signup_access:d,free_price_name:f,free_price_description:y,is_stripe_configured:v,portal_button:_,portal_name:g,portal_plans:c,portal_button_icon:h,portal_button_signup_text:m,portal_button_style:w,members_support_address:k,comments_enabled:!!S,newsletters:C}}function Bm({name:e="Black Friday",code:t="black-friday",displayTitle:n="Black Friday Sale!",displayDescription:r="Special deal for Black Friday. Subscribe now for only $15 per month and get additional benefits like accessing our podcast.",type:i="percent",cadence:o="month",amount:a=50,duration:s="repeating",durationInMonths:l=null,currencyRestriction:c=!1,currency:p=null,status:d="active",tierId:f="",tierName:y="Basic"}={}){return{id:`offer_${Se()}`,name:e,code:t,display_title:n,display_description:r,type:i,cadence:o,amount:a,duration:s,duration_in_months:l,currency_restriction:c,currency:p,status:d,tier:{id:`${f}`,name:y}}}function Je({name:e="Jamie Larson",email:t="jamie@example.com",firstname:n="Jamie",subscriptions:r=[],paid:i=!1,avatarImage:o="",subscribed:a=!0,email_suppression:s={suppressed:!1,info:null}}={}){return{uuid:`member_${Se()}`,email:t,name:e,firstname:n,paid:i,subscribed:a,avatar_image:o,subscriptions:r,email_suppression:s}}function au({numOfProducts:e=3}={}){const n=[Sr({name:"Bronze",description:"Access to all members articles",monthlyPrice:Ye({interval:"month",amount:700}),yearlyPrice:Ye({interval:"year",amount:7e3}),numOfBenefits:2}),Sr({name:"Silver",description:"Access to all members articles and weekly podcast",monthlyPrice:Ye({interval:"month",amount:1200}),yearlyPrice:Ye({interval:"year",amount:12e3}),numOfBenefits:3}),Sr({name:"Friends of the Blueprint",description:"Get access to everything and lock in early adopter pricing for life + listen to my podcast",monthlyPrice:Ye({interval:"month",amount:18e3}),yearlyPrice:Ye({interval:"year",amount:17e3}),numOfBenefits:4})].slice(0,e),r=Ym({});return[...n,r]}function Sr({type:e="paid",name:t="Basic",description:n="",id:r=`product_${Se()}`,monthlyPrice:i=Ye(),yearlyPrice:o=Ye({interval:"year"}),numOfBenefits:a=2}){return{id:r,name:t,description:n,monthlyPrice:e==="free"?null:i,yearlyPrice:e==="free"?null:o,type:e,benefits:Hm({numOfBenefits:a})}}function Ym({name:e="Free tier",description:t="Free tier description",id:n=`product_${Se()}`,numOfBenefits:r=2}){return{id:n,name:e,type:"free",description:t,benefits:Hm({numOfBenefits:r})}}function Hm({numOfBenefits:e}){return[Ua({name:"Limited early adopter pricing"}),Ua({name:"Latest gear reviews"}),Ua({name:"Weekly email newsletter"}),Ua({name:"Listen to my podcast"})].slice(0,e)}function Ua({id:e=`benefit_${Se()}`,name:t="Benefit"}){return{id:e,name:t}}function Ye({interval:e="month",amount:t=e==="month"?500:5e3,nickname:n=e==="month"?"Monthly":"Yearly",description:r=null,currency:i="usd",active:o=!0,id:a=`price_${Se()}`}={}){return{id:a,active:o,nickname:n,currency:i,amount:t,interval:e,description:r,stripe_price_id:`price_${Se()}`,stripe_product_id:`prod_${Se()}`,type:"recurring"}}function Pn({id:e=`sub_${Se()}`,status:t="active",currency:n="USD",interval:r="year",amount:i=r==="month"?500:5e3,nickname:o=r==="month"?"Monthly":"Yearly",cardLast4:a="4242",offer:s=Jx,priceId:l=`price_${Se()}`,startDate:c="2021-10-05T03:18:30.000Z",currentPeriodEnd:p="2022-10-05T03:18:30.000Z",cancelAtPeriodEnd:d=!1}={}){return{id:e,customer:{id:`cus_${Se()}`,name:"Jamie",email:"jamie@example.com"},plan:{id:`price_${Se()}`,nickname:o,amount:i,interval:r,currency:n},offer:s,status:t,start_date:c,default_payment_card_last4:a,cancel_at_period_end:d,cancellation_reason:null,current_period_end:p,price:{id:`stripe_price_${Se()}`,price_id:l,nickname:o,amount:i,interval:r,type:"recurring",currency:n,product:{id:`stripe_prod_${Se()}`,product_id:`prod_${Se()}`}}}}function Gm(){const e=au({numOfProducts:1}),t=e.map(r=>r.id);return Fa({products:e,portalPlans:["free","monthly","yearly"],portalProducts:t})}Gm();const Qx=Fa({products:[Sr({numOfBenefits:2,type:"free"})]}),Jx=Bm({tierId:(wg=Qx.products[0])==null?void 0:wg.id});Je(),Je({paid:!0,subscriptions:[Pn()]}),Je({paid:!0,subscriptions:[]}),Je({paid:!0,subscriptions:[Pn({amount:0})]}),Je({paid:!0,subscriptions:[Pn({amount:1500,startDate:"2019-05-01T11:42:40.000Z",currentPeriodEnd:"2021-06-05T11:42:40.000Z"})]}),Gm();const Ba=[Ym({name:"Free",description:"Free tier description which is actually a pretty long description",numOfBenefits:2}),Sr({name:"The Blueprint",description:"",monthlyPrice:Ye({interval:"month",amount:500}),yearlyPrice:Ye({interval:"year",amount:5e3}),numOfBenefits:3}),Sr({name:"Friends of the Blueprint Silver",description:"Access to all members articles and weekly podcast",monthlyPrice:Ye({interval:"month",amount:1200}),yearlyPrice:Ye({interval:"year",amount:11e3}),numOfBenefits:4})],Er=Fa({title:"The Blueprint",description:"Thoughts, stories and ideas.",logo:"https://static.ghost.org/v4.0.0/images/ghost-orb-1.png",icon:"https://static.ghost.org/v4.0.0/images/ghost-orb-1.png",accentColor:"#45C32E",url:"https://portal.localhost",plans:{monthly:5e3,yearly:15e4,currency:"USD"},products:Ba,portalProducts:Ba.map(e=>e.id),allowSelfSignup:!0,membersSignupAccess:"all",freePriceName:"Free",freePriceDescription:"Free preview",isStripeConfigured:!0,portalButton:!0,portalName:!0,portalPlans:["free","monthly","yearly"],portalButtonIcon:"icon-1",portalButtonSignupText:"Subscribe now",portalButtonStyle:"icon-and-text",membersSupportAddress:"support@example.com",commentsEnabled:!0,newsletters:[{id:"weekly",name:"Weekly Rundown",description:"Best of last week",subscribe_on_signup:!0,paid:!0},{id:"daily",name:"Daily Brief",description:"One email every day",subscribe_on_signup:!1,paid:!1}]}),Wm=Bm({tierId:(xg=Er.products[1])==null?void 0:xg.id}),Ya={free:Je({name:"Jamie Larson",email:"jamie@example.com",firstname:"Jamie",subscriptions:[],paid:!1,avatarImage:"",subscribed:!0}),paid:Je({paid:!0,subscriptions:[Pn({status:"active",currency:"USD",interval:"year",amount:5e3,cardLast4:"4242",startDate:"2021-10-05T03:18:30.000Z",currentPeriodEnd:"2022-10-05T03:18:30.000Z",cancelAtPeriodEnd:!1})]}),complimentary:Je({paid:!0,subscriptions:[]}),complimentaryWithSubscription:Je({paid:!0,subscriptions:[Pn({amount:0})]}),preview:Je({paid:!0,subscriptions:[Pn({amount:1500,startDate:"2019-05-01T11:42:40.000Z",currentPeriodEnd:"2021-06-05T11:42:40.000Z"})]})};function Xx(){var n;if(!Ba||!Ba[1])return null;let e=(n=Er==null?void 0:Er.products)==null?void 0:n[1].monthlyPrice,t=Je({paid:!0,subscriptions:[Pn({offer:null,priceId:e==null?void 0:e.id,status:"active",currency:e==null?void 0:e.currency,interval:e==null?void 0:e.interval,amount:e==null?void 0:e.amount,cardLast4:"4242",startDate:"2021-10-05T03:18:30.000Z",currentPeriodEnd:"2022-10-05T03:18:30.000Z",cancelAtPeriodEnd:!1})]});return{site:Er,member:t}}function Zx({data:e,state:t}){return{page:e.page,popupNotification:null,lastPage:e.lastPage||null,pageData:e.pageData||t.pageData}}function ek({state:e}){return{showPopup:!e.showPopup}}function tk({data:e}){return{showPopup:!0,page:e.page,...e.pageQuery?{pageQuery:e.pageQuery}:{},...e.pageData?{pageData:e.pageData}:{}}}function nk({state:e}){return e.lastPage?{page:e.lastPage}:Vm({state:e})}function Vm({state:e}){return Gc(),{showPopup:!1,lastPage:null,pageQuery:"",popupNotification:null,page:e.page==="magiclink"?"":e.page}}function rk({data:e}){return{showNotification:!0,...e}}function ik({state:e}){return{showNotification:!1}}async function ok({api:e,state:t}){try{return await e.member.signout(),{action:"signout:success"}}catch{return{action:"signout:failed",popupNotification:X({type:"signout:failed",autoHide:!1,closeable:!0,state:t,status:"error",message:"Failed to log out, please try again"})}}}async function ak({data:e,api:t,state:n}){try{return await t.member.sendMagicLink({...e,emailType:"signin"}),{page:"magiclink",lastPage:"signin"}}catch(r){return{action:"signin:failed",popupNotification:X({type:"signin:failed",autoHide:!1,closeable:!0,state:n,status:"error",message:_t.getMessageFromError(r,"Failed to log in, please try again")})}}}async function sk({data:e,state:t,api:n}){try{let{plan:r,tierId:i,cadence:o,email:a,name:s,newsletters:l,offerId:c}=e;if(r.toLowerCase()==="free")await n.member.sendMagicLink({emailType:"signup",...e});else return i&&o?await n.member.checkoutPlan({plan:r,tierId:i,cadence:o,email:a,name:s,newsletters:l,offerId:c}):({tierId:i,cadence:o}=Cn({site:t==null?void 0:t.site,priceId:r}),await n.member.checkoutPlan({plan:r,tierId:i,cadence:o,email:a,name:s,newsletters:l,offerId:c})),{page:"loading"};return{page:"magiclink",lastPage:"signup"}}catch(r){const i=(r==null?void 0:r.message)||"Failed to sign up, please try again";return{action:"signup:failed",popupNotification:X({type:"signup:failed",autoHide:!1,closeable:!0,state:t,status:"error",message:i})}}}async function lk({data:e,state:t,api:n}){try{let{plan:r,offerId:i,tierId:o,cadence:a}=e;(!o||!a)&&({tierId:o,cadence:a}=Cn({site:t==null?void 0:t.site,priceId:r})),await n.member.checkoutPlan({plan:r,tierId:o,cadence:a,offerId:i,metadata:{checkoutType:"upgrade"}})}catch{return{action:"checkoutPlan:failed",popupNotification:X({type:"checkoutPlan:failed",autoHide:!1,closeable:!0,state:t,status:"error",message:"Failed to process checkout, please try again"})}}}async function ck({data:e,state:t,api:n}){try{const{plan:r,planId:i,subscriptionId:o,cancelAtPeriodEnd:a}=e,{tierId:s,cadence:l}=Cn({site:t==null?void 0:t.site,priceId:i});await n.member.updateSubscription({planName:r,tierId:s,cadence:l,subscriptionId:o,cancelAtPeriodEnd:a,planId:i});const c=await n.member.sessionData(),p="updateSubscription:success";return{action:p,popupNotification:X({type:p,autoHide:!0,closeable:!0,state:t,status:"success",message:"Subscription plan updated successfully"}),page:"accountHome",member:c}}catch{return{action:"updateSubscription:failed",popupNotification:X({type:"updateSubscription:failed",autoHide:!1,closeable:!0,state:t,status:"error",message:"Failed to update subscription, please try again"})}}}async function uk({data:e,state:t,api:n}){try{const{subscriptionId:r,cancellationReason:i}=e;return await n.member.updateSubscription({subscriptionId:r,smartCancel:!0,cancellationReason:i}),{action:"cancelSubscription:success",page:"accountHome",member:await n.member.sessionData()}}catch{return{action:"cancelSubscription:failed",popupNotification:X({type:"cancelSubscription:failed",autoHide:!1,closeable:!0,state:t,status:"error",message:"Failed to cancel subscription, please try again"})}}}async function dk({data:e,state:t,api:n}){try{const{subscriptionId:r}=e;return await n.member.updateSubscription({subscriptionId:r,cancelAtPeriodEnd:!1}),{action:"continueSubscription:success",page:"accountHome",member:await n.member.sessionData()}}catch{return{action:"continueSubscription:failed",popupNotification:X({type:"continueSubscription:failed",autoHide:!1,closeable:!0,state:t,status:"error",message:"Failed to cancel subscription, please try again"})}}}async function pk({data:e,state:t,api:n}){try{await n.member.editBilling(e)}catch{return{action:"editBilling:failed",popupNotification:X({type:"editBilling:failed",autoHide:!1,closeable:!0,state:t,status:"error",message:"Failed to update billing information, please try again"})}}}async function fk(){return{popupNotification:null}}async function hk({data:e,state:t}){let{action:n,message:r=""}=e;return n=n||"showPopupNotification:success",{popupNotification:X({type:n,autoHide:!0,closeable:!0,state:t,status:"success",message:r})}}async function mk({data:e,state:t,api:n}){try{const{newsletters:r,enableCommentNotifications:i}=e;if(!r&&i===void 0)return{};const o={};return r&&(o.newsletters=r),i!==void 0&&(o.enableCommentNotifications=i),{action:"updateNewsletterPref:success",member:await n.member.update(o)}}catch{return{action:"updateNewsletterPref:failed",popupNotification:X({type:"updateNewsletter:failed",autoHide:!0,closeable:!0,state:t,status:"error",message:"Failed to update newsletter settings"})}}}async function gk({state:e,api:t}){try{return await t.member.deleteSuppression(),{action:"removeEmailFromSuppressionList:success",popupNotification:X({type:"removeEmailFromSuppressionList:success",autoHide:!0,closeable:!0,state:e,status:"success",message:"You have been successfully resubscribed"})}}catch{return{action:"removeEmailFromSuppressionList:failed",popupNotification:X({type:"removeEmailFromSuppressionList:failed",autoHide:!0,closeable:!0,state:e,status:"error",message:"Your email has failed to resubscribe, please try again"})}}}async function yk({data:e,state:t,api:n}){try{const{subscribed:r}=e,i=await n.member.update({subscribed:r});if(!i)throw new Error("Failed to update newsletter");const o="updateNewsletter:success";return{action:o,member:i,popupNotification:X({type:o,autoHide:!0,closeable:!0,state:t,status:"success",message:"Email newsletter settings updated"})}}catch{return{action:"updateNewsletter:failed",popupNotification:X({type:"updateNewsletter:failed",autoHide:!0,closeable:!0,state:t,status:"error",message:"Failed to update newsletter settings"})}}}async function vk({data:e,state:t,api:n}){const{email:r}=e,i=qb({member:t.member});if(r!==i)try{return await n.member.updateEmailAddress({email:r}),{success:!0}}catch(o){return{success:!1,error:o}}return null}async function bk({data:e,state:t,api:n}){const{name:r}=e;if(Jb({member:t.member})!==r)try{const o=await n.member.update({name:r});if(!o)throw new Error("Failed to update member");return{member:o,success:!0}}catch(o){return{success:!1,error:o}}return null}async function wk({state:e,api:t}){if(e.member)try{const n=await t.member.sessionData();return n?{member:n,success:!0,action:"refreshMemberData:success"}:null}catch(n){return{success:!1,error:n,action:"refreshMemberData:failed"}}return null}async function xk({data:e,state:t,api:n}){const[r,i]=await Promise.all([bk({data:e,state:t,api:n}),vk({data:e,state:t,api:n})]);if(r&&i){if(i.success)return{action:"updateProfile:success",...r.success?{member:r.member}:{},page:"accountHome",popupNotification:X({type:"updateProfile:success",autoHide:!0,closeable:!0,status:"success",state:t,message:"Check your inbox to verify email update"})};const o=r.success?"Failed to send verification email":"Failed to update account data";return{action:"updateProfile:failed",...r.success?{member:r.member}:{},popupNotification:X({type:"updateProfile:failed",autoHide:!0,closeable:!0,status:"error",message:o,state:t})}}else if(r){const o=r.success?"updateProfile:success":"updateProfile:failed",a=r.success?"success":"error",s=r.success?"Account details updated successfully":"Failed to update account details";return{action:o,...r.success?{member:r.member}:{},...r.success?{page:"accountHome"}:{},popupNotification:X({type:o,autoHide:r.success,closeable:!0,status:a,state:t,message:s})}}else if(i){const o=i.success?"updateProfile:success":"updateProfile:failed",a=i.success?"success":"error",s=i.success?"Check your inbox to verify email update":"Failed to send verification email";return{action:o,...i.success?{page:"accountHome"}:{},popupNotification:X({type:o,autoHide:i.success,closeable:!0,status:a,state:t,message:s})}}return{action:"updateProfile:success",page:"accountHome",popupNotification:X({type:"updateProfile:success",autoHide:!0,closeable:!0,status:"success",state:t,message:"Account details updated successfully"})}}const kk={togglePopup:ek,openPopup:tk,closePopup:Vm,switchPage:Zx,openNotification:rk,closeNotification:ik,back:nk,signout:ok,signin:ak,signup:sk,updateSubscription:ck,cancelSubscription:uk,continueSubscription:dk,updateNewsletter:yk,updateProfile:xk,refreshMemberData:wk,clearPopupNotification:fk,editBilling:pk,checkoutPlan:lk,updateNewsletterPreference:mk,showPopupNotification:hk,removeEmailFromSuppressionList:gk};async function _k({action:e,data:t,state:n,api:r}){const i=kk[e];return i?await i({data:t,state:n,api:r})||{}:{}}const v2="";function Sk({event:e,form:t,errorEl:n,siteUrl:r,submitHandler:i}){var _;t.removeEventListener("submit",i),e.preventDefault(),n&&(n.innerText=""),t.classList.remove("success","invalid","error");let o=e.target.querySelector("input[data-members-email]"),a=e.target.querySelector("input[data-members-name]"),s=((_=t==null?void 0:t.dataset)==null?void 0:_.membersAutoredirect)||"true",l=o==null?void 0:o.value,c=a&&a.value||void 0,p,d=[],f=e.target.querySelectorAll("input[data-members-label]")||[];for(let g=0;g<f.length;++g)d.push(f[g].value);t.dataset.membersForm&&(p=t.dataset.membersForm),t.classList.add("loading");const y=La(),v={email:l,emailType:p,labels:d,name:c,autoRedirect:s==="true"};y&&(v.urlHistory=y),fetch(`${r}/members/api/send-magic-link/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(v)}).then(function(g){if(t.addEventListener("submit",i),t.classList.remove("loading"),g.ok)t.classList.add("success");else return _t.fromApiResponse(g).then(h=>{throw h})}).catch(g=>{n&&(n.innerText=_t.getMessageFromError(g,"There was an error sending the email, please try again")),t.classList.add("error")})}function Ek({event:e,el:t,errorEl:n,siteUrl:r,site:i,member:o,clickHandler:a}){t.removeEventListener("click",a),e.preventDefault();let s=t.dataset.membersPlan,l=Yb(i,s.toLowerCase()),c=t.dataset.membersSuccess,p=t.dataset.membersCancel,d,f;c&&(d=new URL(c,window.location.href).href),p&&(f=new URL(p,window.location.href).href),n&&(n.innerText=""),t.classList.add("loading");const y=o?{checkoutType:"upgrade"}:{},v=La();return v&&(y.urlHistory=v),fetch(`${r}/members/api/session`,{credentials:"same-origin"}).then(function(_){return _.ok?_.text():null}).then(function(_){return fetch(`${r}/members/api/create-stripe-checkout-session/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l,identity:_,successUrl:d,cancelUrl:f,metadata:y})}).then(function(g){if(!g.ok)throw new Error("Could not create stripe checkout session");return g.json()})}).then(function(_){return _.url?window.location.assign(_.url):window.Stripe(_.publicKey).redirectToCheckout({sessionId:_.sessionId}).then(function(h){if(h.error)throw new Error(h.error.message)})}).catch(function(_){console.error(_),t.addEventListener("click",a),t.classList.remove("loading"),n&&(n.innerText=_.message),t.classList.add("error")})}function Ck({siteUrl:e,site:t,member:n}){e&&(e=e.replace(/\/$/,""),Array.prototype.forEach.call(document.querySelectorAll("form[data-members-form]"),function(r){let i=r.querySelector("[data-members-error]");function o(a){Sk({event:a,errorEl:i,form:r,siteUrl:e,submitHandler:o})}r.addEventListener("submit",o)}),Array.prototype.forEach.call(document.querySelectorAll("[data-members-plan]"),function(r){let i=r.querySelector("[data-members-error]");function o(a){Ek({el:r,event:a,errorEl:i,member:n,site:t,siteUrl:e,clickHandler:o})}r.addEventListener("click",o)}),Array.prototype.forEach.call(document.querySelectorAll("[data-members-edit-billing]"),function(r){let i=r.querySelector("[data-members-error]"),o=r.dataset.membersSuccess,a=r.dataset.membersCancel,s,l;o&&(s=new URL(o,window.location.href).href),a&&(l=new URL(a,window.location.href).href);function c(p){r.removeEventListener("click",c),p.preventDefault(),i&&(i.innerText=""),r.classList.add("loading"),fetch(`${e}/members/api/session`,{credentials:"same-origin"}).then(function(d){return d.ok?d.text():null}).then(function(d){return fetch(`${e}/members/api/create-stripe-update-session/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identity:d,successUrl:s,cancelUrl:l})}).then(function(f){if(!f.ok)throw new Error("Could not create stripe checkout session");return f.json()})}).then(function(d){return window.Stripe(d.publicKey).redirectToCheckout({sessionId:d.sessionId})}).then(function(d){if(d.error)throw new Error(d.error.message)}).catch(function(d){console.error(d),r.addEventListener("click",c),r.classList.remove("loading"),i&&(i.innerText=d.message),r.classList.add("error")})}r.addEventListener("click",c)}),Array.prototype.forEach.call(document.querySelectorAll("[data-members-signout]"),function(r){function i(o){r.removeEventListener("click",i),o.preventDefault(),r.classList.remove("error"),r.classList.add("loading"),fetch(`${e}/members/api/session`,{method:"DELETE"}).then(function(a){a.ok?window.location.replace(e):(r.addEventListener("click",i),r.classList.remove("loading"),r.classList.add("error"))})}r.addEventListener("click",i)}),Array.prototype.forEach.call(document.querySelectorAll("[data-members-cancel-subscription]"),function(r){let i=r.parentElement.querySelector("[data-members-error]");function o(a){r.removeEventListener("click",o),a.preventDefault(),r.classList.remove("error"),r.classList.add("loading");let s=r.dataset.membersCancelSubscription;return i&&(i.innerText=""),fetch(`${e}/members/api/session`,{credentials:"same-origin"}).then(function(l){return l.ok?l.text():null}).then(function(l){return fetch(`${e}/members/api/subscriptions/${s}/`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({identity:l,smart_cancel:!0})})}).then(function(l){l.ok?window.location.reload():(r.addEventListener("click",o),r.classList.remove("loading"),r.classList.add("error"),i&&(i.innerText="There was an error cancelling your subscription, please try again."))})}r.addEventListener("click",o)}),Array.prototype.forEach.call(document.querySelectorAll("[data-members-continue-subscription]"),function(r){let i=r.parentElement.querySelector("[data-members-error]");function o(a){r.removeEventListener("click",o),a.preventDefault(),r.classList.remove("error"),r.classList.add("loading");let s=r.dataset.membersContinueSubscription;return i&&(i.innerText=""),fetch(`${e}/members/api/session`,{credentials:"same-origin"}).then(function(l){return l.ok?l.text():null}).then(function(l){return fetch(`${e}/members/api/subscriptions/${s}/`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({identity:l,cancel_at_period_end:!1})})}).then(function(l){l.ok?window.location.reload():(r.addEventListener("click",o),r.classList.remove("loading"),r.classList.add("error"),i&&(i.innerText="There was an error continuing your subscription, please try again."))})}r.addEventListener("click",o)}))}var su={},Pk={get exports(){return su},set exports(e){su=e}};const Nk={"{{discount}}% discount":"{{discount}}% afslag","{{trialDays}} days free":"{{trialDays}} dae gratis","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"'n Aanmeldingskakel is na u inboks gestuur. As dit nie binne 3 minute aankom nie, maak seker om u spam-velde te kyk.",Account:"Rekening","Account settings":"Rekening instellings","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Na die gratis proefperiode, sal gewone prys vir die opsie wat jy gekies het betaal. Jy kan altyd voor die tyd kanselleer.","Already a member?":"Reeds 'n lid?",Back:"Terug","Back to Log in":"Terug na aanmelding","Cancel subscription":"Kanseleer subskripsie","Cancellation reason":"Rede vir kansellasie","Choose a different plan":"Kies 'n ander plan","Choose your newsletters":"Kies jou nuusbriewe",Close:"Maak toe",Comments:"Kommentaar",Confirm:"Bevestig",Continue:"Gaan voort","Delete account":"Sluit rekening","Don't have an account?":"Nog nie 'n rekening nie?",Email:"Epos","Email preference updated.":"Epos instellings opgedateer.","Email preferences":"Epos instellings",Emails:"Eposse","Emails disabled":"Eposse afgeskakel","Get help":"Kry hulp","Get notified when someone replies to your comment":"Ontvang kennisgewing wanneer iemand op jou kommentaar reageer","Give feedback on this post":"Gee terugvoering oor hierdie berig","Less like this":"Minder soos hierdie",Manage:"Beheer",Monthly:"Maandeliks","More like this":"Meer soos hierdie",Name:"Naam","Not receiving emails?":"Ontvang nie eposse nie?","Now check your email!":"Kyk nou na u epos!","Powered by Ghost":"Aangedryf deur Ghost",Price:"Prys","Re-enable emails":"Her-aktiveer eposse",Retry:"Probeer weer",Save:"Stoor","Sending login link...":"Stuur aanmeldingskakel...","Sending...":"Besig om te stuur...","Sign in":"Skakel in","Sign up":"Meld aan","Start {{amount}}-day free trial":"Begin {{amount}}-dae gratis proefperiode","Submit feedback":"Stuur terugvoering","Successfully unsubscribed":"Suksesvol afgeskakel","Thanks for the feedback!":"Dankie vir die terugvoering!","That didn't go to plan":"Dit het soos die plan nie verloop nie","This site is invite-only, contact the owner for access.":"Die webwerf is net vir uitnodigings, kontak die eienaar vir toegang.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Om aanmelding te voltooi, klik op die bevestigingskakel in jou inboks. As dit nie binne 3 minute aankom nie, kyk na jou spam-velde!","Unsubscribe from all emails":"Skakel van alle eposse af","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Deur van eposse af te skakel, sal nie jou betaalde subskripsie van {{title}} kanselleer nie","Update your preferences":"Opdateer jou voorkeure","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Ons kon nie jou afskakel nie, omdat die eposadres nie gevind is nie. Kontak asseblief die webwerf eienaar.",Yearly:"Jaarliks","You have been successfully resubscribed":"Jy is suksesvol her-aangeskakel","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Jy kry nie eposse nie, omdat jy onlangs 'n boodskap as spam gemerk het, of omdat boodskappe nie na die epos adres wat jy verskaf het gestuur kon word nie.","Your account":"Jou rekening","Your input helps shape what gets published.":"Jou invoer help om te bepaal wat gepubliseer word."},Tk={"{{discount}}% discount":"{{discount}}% de descompte","{{trialDays}} days free":"{{trialDays}} dies de franc","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"S'ha enviat un enllaç d'inici de sessió al teu correu electrònic. Si no t'arriba en 3 minuts, reivsa la teva carpeta de correu brossa.",Account:"Compte","Account settings":"Configuració del compte","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Després que finalitzi el període de prova gratuït, se't cobrarà el preu regular del nivell que hagis triat. Sempre pots cancel·lar abans d'això.","Already a member?":"Ja ets membre?",Back:"Tornar enrere","Back to Log in":"TOrnar al inici de sessió","Cancel subscription":"Cancel·la la subscripció","Cancellation reason":"Motiu de la cancel·lació","Choose a different plan":"Seleccioneu un pla diferent","Choose your newsletters":"Selecciona els teus butlletins",Close:"Tancar",Comments:"Comentaris",Confirm:"Confirmar",Continue:"Continuar","Delete account":"Esborra compte","Don't have an account?":"No tens un compte?",Email:"Correu electrònic","Email preference updated.":"Preferència del correu electrònic actualitzada","Email preferences":"Preferència del correu electrònic",Emails:"Correus electrònics","Emails disabled":"Correus electrònics desactivats","Get help":"Demanar ajuda","Get notified when someone replies to your comment":"Rep notificacions quan algú et respongui al teu comentari","Give feedback on this post":"Enviar comentaris sobre aquesta publicació","Less like this":"Menys com aquesta",Manage:"Gestionar",Monthly:"Mensual","More like this":"Més com aquesta",Name:"Nom","Not receiving emails?":"No reps els correus electrònics?","Now check your email!":"Revisar ara el teu correu electrònic!","Powered by Ghost":"Impulsat per Ghost",Price:"Preu","Re-enable emails":"Torna a activar els correus electrònics",Retry:"Torna-ho a provar",Save:"Desa","Sending login link...":"Enviant enllaç d'inici de sesió...","Sending...":"Enviant","Sign in":"Inici de sesió","Sign up":"Registrar-se","Start {{amount}}-day free trial":"Comença el període de proves de {{amount}} dies","Submit feedback":"Enviar comentaris","Successfully unsubscribed":"T'has donat de baixa correctament","Thanks for the feedback!":"Gràcies pels teus comentaris!","That didn't go to plan":"Això no ha anat com estava previst","This site is invite-only, contact the owner for access.":"Aquest llog és només per invitació, contacta amb el propietari per obtenir accés.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Per completar el registre, fes clic sobre l'enllaç de confirmació al teu correu electrònic. Si no t'arria en 3 minuts, revisa la teva carpeta de correu brossa!","Unsubscribe from all emails":"Cancel·la les subscripcions a tots els correus electrònics","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Cancel·lar la subscripció al teu correu electrònic no cancel·larà la teva subscripció de pagament a {{title}}","Update your preferences":"Actualitza les preferències","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"No hem pogut cancel·lar la teva subscripció ja que no s'ha trobar la direcció de correu electrònic. Si us plau, contacta amb el propietari del lloc web.",Yearly:"Anual","You have been successfully resubscribed":"T'has tornat a subscribir amb èxit","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"No estas reben correus electrònics perquè has marcat recentment com SPAM o perque no s'han pogut entregar els missatges a la direcció de correu electrònic proporcionada.","Your account":"El teu copte","Your input helps shape what gets published.":"La teva opinió ajuda a definir el que es publica."},$k={"{{discount}}% discount":"{{discount}}% sleva","{{trialDays}} days free":"{{trialDays}} dní zdarma","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Odkaz pro přihlášení byl odeslán do vaší e-mailové schránky. Pokud nepřijde do 3 minut, zkontrolujte prosím svou složku nevyžádaných zpráv (spam).",Account:"Účet","Account settings":"Nastavení účtu","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Po skončení zkušební doby vám bude účtována běžná cena pro vybranou úroveň. Vždy můžete předtím zrušit odběr.","Already a member?":"Již jste členem?",Back:"Zpět","Back to Log in":"Zpět na přihlášení","Cancel subscription":"Zrušit odběr","Cancellation reason":"Důvod zrušení","Choose a different plan":"Vybrat jiný plán","Choose your newsletters":"Vyberte si newsletter",Close:"Zavřít",Comments:"Komentáře",Confirm:"Potvrdit",Continue:"Pokračovat","Delete account":"Smazat účet","Don't have an account?":"Nemáte účet?",Email:"E-mail","Email preference updated.":"Předvolby e-mailu byly aktualizovány.","Email preferences":"Předvolby e-mailu",Emails:"E-maily","Emails disabled":"E-maily vypnuty","Get help":"Získat pomoc","Get notified when someone replies to your comment":"Dostávat upozornění, když někdo odpoví na váš komentář","Give feedback on this post":"Dát zpětnou vazbu k tomuto příspěvku","Less like this":"Méně podobných",Manage:"Spravovat",Monthly:"Měsíčně","More like this":"Víc podobných",Name:"Jméno","Not receiving emails?":"Nepřicházejí vám e-maily?","Now check your email!":"Zkontrolujte svou e-mailovou schránku!","Powered by Ghost":"Používá technologii Ghost",Price:"Cena","Re-enable emails":"Znovu povolit e-maily",Retry:"Zkusit znovu",Save:"Uložit","Sending login link...":"Odesílání přihlašovacího odkazu...","Sending...":"Odesílání...","Sign in":"Přihlásit se","Sign up":"Registrovat se","Start {{amount}}-day free trial":"Začít {{amount}}denní zkušební verzi zdarma","Submit feedback":"Odeslat zpětnou vazbu","Successfully unsubscribed":"Úspěšné odhlášení","Thanks for the feedback!":"Děkujeme za zpětnou vazbu!","That didn't go to plan":"Něco se nepovedlo","This site is invite-only, contact the owner for access.":"Tento web je pouze pro pozvané, kontaktujte provozovatele pro přístup.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Pro dokončení registrace klikněte na potvrzovací odkaz ve vaší e-mailové schránce. Pokud nepřijde do 3 minut, zkontrolujte prosím složku nevyžádaných zpráv (spam)!","Unsubscribe from all emails":"Odhlásit se od všech e-mailů","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Odhlášení ze newsletterů nezruší váš placený odběr {{title}}","Update your preferences":"Aktualizovat předvolby","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Nemohli jsme vás odhlásit, protože e-mailová adresa nebyla nalezena. Kontaktujte prosím provozovatele webu.",Yearly:"Ročně","You have been successfully resubscribed":"Úspěšně jste se opět přihlásili k odběru","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Nepřicházejí vám e-maily, protože jste buď označili nedávnou zprávu jako spam, nebo doručování zpráv na vámi zadaný e-mail nefunguje.","Your account":"Váš účet","Your input helps shape what gets published.":"Vaše připomínky pomáhají spoluvytvářet obsah webu."},Rk={"{{discount}}% discount":"{{discount}}% Rabatt","{{trialDays}} days free":"{{trialDays}} Tage kostenlos","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Ein Login-Link wurde an Deine E-Mail-Adresse gesendet. Falls die E-Mail nicht innerhalb von 3 Minuten ankommt, überprüfe bitte Deinen Spam-Ordner.",Account:"Benutzerkonto","Account settings":"Benutzerkonto-Einstellungen","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Wenn das kostenlose Testabo endet, wirst Du den regulären Preis für den gewählten Tarif bezahlen. Du kannst das Abonnement jederzeit kündigen.","Already a member?":"Bereits Mitglied?",Back:"Zurück","Back to Log in":"Zurück zur Anmeldung","Cancel subscription":"Abonnierung kündigen","Cancellation reason":"Kündigungsgrund","Choose a different plan":"Wähle einen anderen Plan","Choose your newsletters":"Wähle Deine Newsletter",Close:"Schließen",Comments:"Kommentare",Confirm:"Bestätigen",Continue:"Weiter","Delete account":"Konto löschen","Don't have an account?":"Noch kein Konto?",Email:"Email","Email preference updated.":"Email Einstellungen aktualisiert.","Email preferences":"Email Einstellungen",Emails:"Emails","Emails disabled":"Emails deaktiviert","Get help":"Hilfe erhalten","Get notified when someone replies to your comment":"Erhalte eine Benachrichtigung, wenn jemand auf Deinen Kommentar antwortet","Give feedback on this post":"Gebe Feedback zu diesem Beitrag","Less like this":"Weniger davon",Manage:"Verwalten",Monthly:"Monatlich","More like this":"Mehr davon",Name:"Name","Not receiving emails?":"Keine Emails erhalten?","Now check your email!":"Überprüfe jetzt Deine E-Mails!","Powered by Ghost":"Powered by Ghost",Price:"Preis","Re-enable emails":"Emails wieder aktivieren",Retry:"Nochmals versuchen",Save:"Speichern","Sending login link...":"Sende Login-Link...","Sending...":"Sende...","Sign in":"Einloggen","Sign up":"Registrieren","Start {{amount}}-day free trial":"Starte {{amount}}-tägiges kostenloses Testabo","Submit feedback":"Feedback senden","Successfully unsubscribed":"Erfolgreich abgemeldet","Thanks for the feedback!":"Danke für das Feedback!","That didn't go to plan":"Das verlief nicht nach Plan","This site is invite-only, contact the owner for access.":"Diese Seite ist nur nach Einladung zugänglich. Bitte kontaktiere den Seitenbetreiber.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Um die Registrierung abzuschließen, klicke auf den Bestätigungslink in Deinem E-Mail Postfach. Falls die E-Mail nicht innerhalb von 3 Minuten ankommt, überprüfe bitte Deinen Spam-Ordner!","Unsubscribe from all emails":"Von allen Emails abmelden","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Wenn Du Dich von Emails abmeldest, wird Dein bezahltes Abonnement bei {{title}} nicht gekündigt","Update your preferences":"Aktualisiere Deine Einstellungen","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Wir konnten Dich nicht abmelden, da die E-Mail-Adresse nicht gefunden wurde. Bitte kontaktiere den Seitenbetreiber.",Yearly:"Jährlich","You have been successfully resubscribed":"Du wurdest erfolgreich wieder angemeldet","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Du erhältst keine Emails, da Du entweder eine kürzlich empfangene Nachricht als Spam markiert hast oder weil Nachrichten nicht an Deine angegebene E-Mail-Adresse zugestellt werden konnten.","Your account":"Dein Konto","Your input helps shape what gets published.":"Deine Eingaben helfen dabei, was veröffentlicht wird."},Ok={"{{discount}}% discount":"","{{trialDays}} days free":"","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"",Account:"","Account settings":"","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"","Already a member?":"",Back:"","Back to Log in":"","Cancel subscription":"","Cancellation reason":"","Choose a different plan":"","Choose your newsletters":"",Close:"",Comments:"",Confirm:"",Continue:"","Delete account":"","Don't have an account?":"",Email:"","Email preference updated.":"","Email preferences":"",Emails:"","Emails disabled":"","Get help":"","Get notified when someone replies to your comment":"","Give feedback on this post":"","Less like this":"",Manage:"",Monthly:"","More like this":"",Name:"","Not receiving emails?":"","Now check your email!":"","Powered by Ghost":"",Price:"","Re-enable emails":"",Retry:"",Save:"","Sending login link...":"","Sending...":"","Sign in":"","Sign up":"","Start {{amount}}-day free trial":"","Submit feedback":"","Successfully unsubscribed":"","Thanks for the feedback!":"","That didn't go to plan":"","This site is invite-only, contact the owner for access.":"","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"","Unsubscribe from all emails":"","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"","Update your preferences":"","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"",Yearly:"","You have been successfully resubscribed":"","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"","Your account":"","Your input helps shape what gets published.":""},Dk={"{{discount}}% discount":"{{discount}}% rabato","{{trialDays}} days free":"{{trialDays}} tagoj senpagaj","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Sendis ensalutan ligilon al via enirkesto. Se ĝi ne alvenas post 3 minutoj, nepre kontrolu vian trudmesaĝdosieron.",Account:"Konto","Account settings":"Kontagordoj","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Post senpaga provo finiĝos, vi pagos la regulan prezon por la nivelo, kiun vi elektis. Vi ĉiam povas nuligi antaŭ tiam.","Already a member?":"Ĉu membro jam?",Back:"Reen","Back to Log in":"Reen al Ensaluto","Cancel subscription":"Nuligu abonon","Cancellation reason":"Nuliga kialo","Choose a different plan":"Elektu alian planon","Choose your newsletters":"Elektu viajn bultenojn",Close:"Fermu",Comments:"Komentoj",Confirm:"Konfirmu",Continue:"Daŭrigu","Delete account":"Forigu konton","Don't have an account?":"Ĉu ne havas konton?",Email:"Retadreso","Email preference updated.":"Retpoŝta agordo ĝisdatigita.","Email preferences":"Retpoŝtaj agordoj",Emails:"Retpoŝtoj","Emails disabled":"Retpoŝtoj malŝaltitaj","Get help":"Ricevi helpon","Get notified when someone replies to your comment":"Estu sciiga kiam iu respondos al via komento","Give feedback on this post":"Donu komentojn pri ĉi tiu afiŝo","Less like this":"Malpli tiel",Manage:"Administru",Monthly:"Monate","More like this":"Pli kiel ĉi tio",Name:"Nomo","Not receiving emails?":"","Now check your email!":"Bonvolu kontroli vian retpoŝton nun!","Powered by Ghost":"Funkciigita de Ghost",Price:"Kosto","Re-enable emails":"Reŝalti retpoŝtojn",Retry:"Reprovu",Save:"Konservi","Sending login link...":"Sendanta ensaluta ligilo...","Sending...":"Sendante...","Sign in":"Ensalutu","Sign up":"Aliĝu","Start {{amount}}-day free trial":"Komencu senpaga {{amount}}-taga provo","Submit feedback":"Sendu rimarkojn","Successfully unsubscribed":"Sukcese malabonita","Thanks for the feedback!":"Dankon pro la rimarkoj!","That didn't go to plan":"Tio ne iris laŭ la intenco","This site is invite-only, contact the owner for access.":"Ĉi tiu retejo estas nur por invitiĝuloj, kontaktu la proprietulo por alireblo.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Por kompletigi aliĝon, premu la konfirman ligilon en via enirkesto. Se ĝi ne alvenas ene de 3 minutoj, kontrolu vian trudmesaĝdosieron!","Unsubscribe from all emails":"Malabonu de ĉiuj retpoŝtoj","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Malabonigi de retpoŝtoj ne nuligos vian pagitan abonon al {{title}}","Update your preferences":"Ĝisdatigu viajn agordojn","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Ni ne povis malaboni vin ĉar la retadreso ne estis trovita. Bonvolu kontakti la proprietulo de la retejo",Yearly:"Jare","You have been successfully resubscribed":"Vi sukcese reaboniĝis","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Vi ne ricevas retpoŝtojn ĉar vi aŭ markis lastatempan mesaĝon kiel trudmesaĝo, aŭ ĉar mesaĝoj ne povis liveri al via provizita retadreso.","Your account":"Via konto","Your input helps shape what gets published.":"Via enigo helpas formi kio estas aperigita."},Lk={"{{discount}}% discount":"{{discount}}% de descuento","{{trialDays}} days free":"{{trialDays}} días gratis","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Se ha enviado un enlace de inicio de sesión a tu correo. Si no llega en 3 minutos, revisa tu carpeta de spam.",Account:"Cuenta","Account settings":"Configuración de la cuenta","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Después de que finalice el período de prueba gratuito, se te cobrará el precio regular del nivel que hayas elegido. Siempre puedes cancelar antes de eso.","Already a member?":"¿Ya eres miembro?",Back:"Atrás","Back to Log in":"Volver al inicio de sesión","Cancel subscription":"Cancelar suscripción","Cancellation reason":"Razón de cancelación","Choose a different plan":"Elige un plan diferente","Choose your newsletters":"Elige tus boletines",Close:"Cerrar",Comments:"Comentarios",Confirm:"Confirmar",Continue:"Continuar","Delete account":"Eliminar cuenta","Don't have an account?":"¿No tienes una cuenta?",Email:"Correo electrónico","Email preference updated.":"Preferencia de correo electrónico actualizada.","Email preferences":"Preferencias de correo electrónico",Emails:"Correos electrónicos","Emails disabled":"Correos electrónicos desactivados","Get help":"Obtener ayuda","Get notified when someone replies to your comment":"Recibe notificaciones cuando alguien responda a tu comentario","Give feedback on this post":"Envía comentarios sobre esta publicación","Less like this":"Menos como esto",Manage:"Administrar",Monthly:"Mensual","More like this":"Más como esto",Name:"Nombre","Not receiving emails?":"¿No recibes correos electrónicos?","Now check your email!":"¡Ahora revisa tu correo electrónico!","Powered by Ghost":"Desarrollado por Ghost",Price:"Precio","Re-enable emails":"Reactivar correos electrónicos",Retry:"Reintentar",Save:"Guardar","Sending login link...":"Enviando enlace de inicio de sesión...","Sending...":"Enviando...","Sign in":"Iniciar sesión","Sign up":"Registrarse","Start {{amount}}-day free trial":"Comienza el período de prueba gratuito de {{amount}} días","Submit feedback":"Enviar comentarios","Successfully unsubscribed":"Te has dado de baja correctamente","Thanks for the feedback!":"¡Gracias por tus comentarios!","That didn't go to plan":"Eso no salió según lo planeado","This site is invite-only, contact the owner for access.":"Este sitio es solo por invitación, contacta al propietario para obtener acceso.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Para completar el registro, haz clic en el enlace de confirmación en tu correo electrónico. Si no llega en 3 minutos, ¡revisa tu carpeta de spam!","Unsubscribe from all emails":"Cancelar suscripción a todos los correos electrónicos","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Cancelar la suscripción a los correos electrónicos no cancelará tu suscripción de pago a {{title}}","Update your preferences":"Actualiza tus preferencias","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"No pudimos cancelar tu suscripción ya que no se encontró la dirección de correo electrónico. Por favor, contacta al propietario del sitio.",Yearly:"Anual","You have been successfully resubscribed":"Te has vuelto a suscribir con éxito","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"No estás recibiendo correos electrónicos porque marcaste un mensaje reciente como spam o porque no se pudieron entregar los mensajes a la dirección de correo electrónico proporcionada.","Your account":"Tu cuenta","Your input helps shape what gets published.":"Tu opinión ayuda a definir lo que se publica."},jk={"{{discount}}% discount":"{{discount}}% de réduction","{{trialDays}} days free":"{{trialDays}} jours gratuits","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Un lien de connexion a été envoyé à ta boîte de réception. S'il n'arrive pas dans les 3 minutes, vérifie ton dossier spam.",Account:"Compte","Account settings":"Paramètres du compte","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"À la fin de la période d'essai gratuite, le prix normal de l'abonnement choisi sera facturé. Tu peux toujours annuler d'ici là.","Already a member?":"Déjà membre ?",Back:"Retour","Back to Log in":"Retour à Connexion","Cancel subscription":"Annuler abonnement","Cancellation reason":"Raison pour l'annulation","Choose a different plan":"Choisir un autre abonnement","Choose your newsletters":"Choisir les newsletters",Close:"Fermer",Comments:"Commentaires",Confirm:"Confirmer",Continue:"Continuer","Delete account":"Fermer le compte","Don't have an account?":"Tu n'as pas encore de compte ?",Email:"E-mail","Email preference updated.":"Préférences d'e-mail mises à jour.","Email preferences":"Préférences d'e-mail",Emails:"E-mails","Emails disabled":"E-mails désactivés","Get help":"Obtenir de l'aide","Get notified when someone replies to your comment":"Être notifié lorsque quelqu'un répond à ton commentaire","Give feedback on this post":"Donner ton avis sur cet article","Less like this":"Moins de ça",Manage:"Gérer",Monthly:"Mensuel","More like this":"Plus de ça",Name:"Nom","Not receiving emails?":"Tu n'as pas reçu d'e-mail ?","Now check your email!":"Maintenant, vérifie ta boite de réception.","Powered by Ghost":"Créé avec Ghost",Price:"Prix","Re-enable emails":"Ré-activer les e-mails",Retry:"Réesayer",Save:"Sauvegarder","Sending login link...":"Envoi du lien de connexion...","Sending...":"Envoi...","Sign in":"Se connecter","Sign up":"S'enregistrer","Start {{amount}}-day free trial":"Commencer l'essai gratuit de {{amount}} jours","Submit feedback":"Envoyer ton avis","Successfully unsubscribed":"Désabonnement réussi","Thanks for the feedback!":"Merci pour ton avis !","That didn't go to plan":"Cela n'a pas fonctionné comme prévu","This site is invite-only, contact the owner for access.":"Ce site est réservé aux invités, contacte le propriétaire pour y accéder.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Pour confirmer ton inscription, clique sur le lien de confirmation envoyé dans ta boite de réception. S'il ne te parvient pas dans les 3 minutes, vérifie ton dossier spam.","Unsubscribe from all emails":"Se désinscrire de tous les -mails","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"La désinscription des e-mails n'annulera ton abonnement payant à {{title}}","Update your preferences":"Mettre à jour tes préférences","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"La désinscription n'a pas fonctionné car ton adresse e-mail n'a pas été trouvée. Merci de contacter le propriétaire du site.",Yearly:"Annuel","You have been successfully resubscribed":"Tu as été réinscrit avec succès","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Tu ne reçois pas d'e-mails parce que tu as marqué un message récent comme spam, ou parce que les messages n'ont pas pu être livrés à l'adresse e-mail que tu as indiquée.","Your account":"Ton compte","Your input helps shape what gets published.":"Ton avis aide à améliorer ce qui est publié."},Ik={"{{discount}}% discount":"{{discount}}% kedvezmény","{{trialDays}} days free":"{{trialDays}} nap ingyen","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"A bejelentkezéshez szükséges linket elküldtük a megadott email címre. Ha nem érkezne meg 3 percen belül, kérjük ellenőrizze a spam mappát!",Account:"Fiók","Account settings":"Fiók beállítások","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Az ingyenes próbaidőszak lejárta után a kiválasztott csomag normál díját fogjuk felszámolni. A feliratkozás bármikor ingyenesen lemondható a próbaidőszak alatt.","Already a member?":"Már van fiókja?",Back:"Vissza","Back to Log in":"Vissza a bejelentkezéshez","Cancel subscription":"Feliratkozás megszűntetése","Cancellation reason":"A megszűntetés oka","Choose a different plan":"Válasszon másik csomagot","Choose your newsletters":"Válassza ki a hírleveleket",Close:"Bezár",Comments:"Kommentek",Confirm:"Jóváhgyás",Continue:"Folytatás","Delete account":"Fiók törlése","Don't have an account?":"Még nincs fiókja?",Email:"Email","Email preference updated.":"Email beállítások elmentve","Email preferences":"Email beállítások",Emails:"Email-ek","Emails disabled":"Email-ek kikapcsolva","Get help":"Kérjen segítséget","Get notified when someone replies to your comment":"Értesítést kérek ha valaki válaszol a kommentemre","Give feedback on this post":"Hogy tetszett ez a cikk?","Less like this":"Kevesebb ilyet",Manage:"Kezelés",Monthly:"Havi","More like this":"Több ilyet",Name:"Név","Not receiving emails?":"Nem érkeznek meg az email-ek?","Now check your email!":"Ellenőrizze az postafiókját","Powered by Ghost":"Powered by Ghost",Price:"Ár","Re-enable emails":"Email-ek aktiválása",Retry:"Újra",Save:"Mentés","Sending login link...":"Bejelenkezési link küldése...","Sending...":"Küldés...","Sign in":"Bejelentkezés","Sign up":"Regisztráció","Start {{amount}}-day free trial":"{{amount}} napos próbaidőszak kezdése","Submit feedback":"Visszajelzés küldése","Successfully unsubscribed":"Sikeres leiratkozás","Thanks for the feedback!":"Köszönjük a visszajelzést","That didn't go to plan":"Hiba történt","This site is invite-only, contact the owner for access.":"A website csak meghívóval látogatható. Meghívóért lépjen kapcsolatba az oldal tulajdonosával!","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"A regisztráció befejezéséhez kérjük kattintson az email-ben kapott linkre. Ha a link nem érkezne meg 3 percen belül kérjük ellenőrizze a spam mappát.","Unsubscribe from all emails":"Leiratkozás minden email-ről","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Az email-ről történő leiratkozás nem szűnteti meg a fiókját","Update your preferences":"Beállítások mentése","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Ehhez az email-hez nem tartozik fiók. Kérjük lépjen kapcsolatba az oldal tulajdonosával.",Yearly:"Éves","You have been successfully resubscribed":"Sikeres feliratkozás","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Azért nem kap email-t mert vagy spam-nek jelölt egy tőlünk kapott hírlevelet, vagy azért mert a megadott email cím nem tud üzeneteket fogadni.","Your account":"Fiók","Your input helps shape what gets published.":"A visszajelzése segít abban, hogy mit publikáljunk"},Ak={"{{discount}}% discount":"{{discount}}% sconto","{{trialDays}} days free":"{{trialDays}} giorni gratis","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Un link di accesso è stato inviato alla tua casella di posta. Se non la ricevi entro 3 minuti, controllare la cartella della posta indesiderata.",Account:"Account","Account settings":"Impostazioni Account","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Al termine della prova gratuita, ti verrà addebitato il prezzo normale per il livello che hai scelto. Puoi sempre annullare prima della fine della prova gratuita.","Already a member?":"Sei già un membro?",Back:"Indietro","Back to Log in":"Torna al Log-in","Cancel subscription":"Cancella la tua iscrizione","Cancellation reason":"Motivo della cancellazione","Choose a different plan":"Scegli un piano differente","Choose your newsletters":"Scegli la tua newsletter",Close:"Chiudi",Comments:"Commenti",Confirm:"Conferma",Continue:"Continua","Delete account":"Cancella account","Don't have an account?":"Non hai un account?",Email:"Email","Email preference updated.":"Impostazioni Email aggiornate","Email preferences":"Impostazioni Email",Emails:"Email","Emails disabled":"Email disattivate","Get help":"Chiedi aiuto","Get notified when someone replies to your comment":"Ricevi una notifica quando qualcuno risponde al tuo commento","Give feedback on this post":"Manda un feedback per questo post","Less like this":"Meno come questo",Manage:"",Monthly:"Mensile","More like this":"Più come questo",Name:"Nome","Not receiving emails?":"Non ricevi email?","Now check your email!":"Ora controlla la tua email!","Powered by Ghost":"Creato con Ghost",Price:"Prezzo","Re-enable emails":"Attiva di nuovo le email",Retry:"Riprova",Save:"Salva","Sending login link...":"Invio link di accesso...","Sending...":"Invia...","Sign in":"Accedi","Sign up":"Iscriviti","Start {{amount}}-day free trial":"Inizia {{amount}}-giorni di prova","Submit feedback":"Invia feedback","Successfully unsubscribed":"Hai cancellato la tua iscrizione con successo","Thanks for the feedback!":"Grazie per i feedback","That didn't go to plan":"Non è andato come previsto","This site is invite-only, contact the owner for access.":"Questo sito é accessibile solo su invito, contatta il proprietario per accedere.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Per completare l'accesso, clicca il link di conferma nella tua email. Se non la ricevi entro 3 minuti, controllare la cartella della posta indesiderata!","Unsubscribe from all emails":"Cancella l'iscrizione da tutte le email","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"L'annullamento dell'iscrizione alle e-mail non annullerà l'abbonamento a pagamento a {{title}}","Update your preferences":"Aggiorna le tue preferenze","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Non è stato possibile annullare l'iscrizione poiché l'indirizzo e-mail non è stato trovato. Si prega di contattare il proprietario del sito.",Yearly:"Annuale","You have been successfully resubscribed":"Sei stato nuovamente iscritt* con successo","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Non ricevi email perché hai contrassegnato un messaggio recente come spam o perché non è stato possibile recapitare i messaggi all'indirizzo email fornito.","Your account":"Il tuo account","Your input helps shape what gets published.":"Il tuo contributo aiuta a dare forma a ciò che viene pubblicato."},Mk={"{{discount}}% discount":"{{discount}}% хямдрал","{{trialDays}} days free":"{{trialDays}} өдөр үнэгүй","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Таны имэйл рүү нэвтрэх холбоосыг илгээлээ. Хэрвээ 3 минутын дотор ирэхгүй бол спамаа шалгана уу.",Account:"Бүртгэл","Account settings":"Бүртгэлийн тохиргоо","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Үнэгүй туршилтын хугацаа дуусахад таны данснаас сонгосон багцын үнэ хасагдана. Гэвч та өмнө нь цуцлах боломжтой.","Already a member?":"Бүртгэлтэй юу?",Back:"Буцах","Back to Log in":"Нэвтрэх хэсэг рүү буцах","Cancel subscription":"Захиалгаа цуцлах","Cancellation reason":"Цуцалсан шалтгаан","Choose a different plan":"Өөр багц сонгох","Choose your newsletters":"Товхимолоо сонгох",Close:"Хаах",Comments:"Сэтгэгдлүүд",Confirm:"Баталгаажуулах",Continue:"Үргэлжлүүлэх","Delete account":"Бүртгэлээ устгах","Don't have an account?":"Бүргэлгүй юу?",Email:"Имэйл","Email preference updated.":"Имэйлийн тохиргоо шинэчлэгдлээ.","Email preferences":"Имэйлийн тохиргоо",Emails:"Имэйлүүд","Emails disabled":"Имэйлийг идэхгүй болгосон","Get help":"Тусламж","Get notified when someone replies to your comment":"Хэн нэгэн таны сэтгэгдэлд хариу бичих үед мэдэгдэх","Give feedback on this post":"Энэ нийтлэлд саналаа өгөх","Less like this":"Таалагдсангүй",Manage:"Удирдах",Monthly:"Сарын","More like this":"Таалагдлаа",Name:"Нэр","Not receiving emails?":"Имэйл ирээгүй юу?","Now check your email!":"Одоо имэйлээ шалгана уу!","Powered by Ghost":"Ghost дээр суурилав",Price:"Үнэ","Re-enable emails":"Имэйлийг дахин идэвхжүүлэх",Retry:"Дахин оролдох",Save:"Хадгалах","Sending login link...":"Нэвтрэх холбоосыг илгээж байна...","Sending...":"Илгээж байна...","Sign in":"Нэвтрэх","Sign up":"Бүртгүүлэх","Start {{amount}}-day free trial":"{{amount}} өдрийн үнэгүй туршилтыг эхлүүлэх","Submit feedback":"Саналаа илгээх","Successfully unsubscribed":"Захиалгыг амжилттай цуцаллаа","Thanks for the feedback!":"Саналаа илгээсэнд баярлалаа!","That didn't go to plan":"","This site is invite-only, contact the owner for access.":"Энэхүү сайт руу зөвхөн урилгаар нэвтрэх боломжтой тул та админд нь хандана уу.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Тан руу илгээсэн баталгаажуулах холбоос дээр дарж бүртгэлээ дуусгана уу. Хэрвээ 3 минутын дотор ирэхгүй бол спамаа шалгана уу!","Unsubscribe from all emails":"Бүх имэйлийг зогсоох","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Имэйлийг зогсоосон ч таны {{title}} төлбөртэй захиалга цуцлагдахгүй","Update your preferences":"Тохиргоогоо шинэчлэх","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Энэхүү имэйл хаяг олдоогүй учир захиалгыг цуцлах боломжгүй. Та сайтын админд хандана уу.",Yearly:"Жилийн","You have been successfully resubscribed":"Таны захиалга амжилттай дахин идэвхжлээ","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Таны имэйл хүлээж авахгүй байгаа шалтгаан нь нэг бол та аль нэг имэйлийг спам гэж тэмдэглэсэн, эсвэл таны хаяг имэйл хүлээж авах боломжгүй байна.","Your account":"Таны бүртгэл","Your input helps shape what gets published.":"Таны санал дараа дараагийн нийтлэлийг илүү чанартай болгоход туслана"},zk={"{{discount}}% discount":"{{discount}}% korting","{{trialDays}} days free":"{{trialDays}} dagen gratis","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Je hebt een email met een login link ontvangen. Check je spamfolder als hij niet binnen de 3 minuten aankomt.",Account:"Account","Account settings":"Gegevens","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Na de proefperiode zal het normale tarief in rekening worden gebracht voor het door jou gekozen abonnement.","Already a member?":"Al lid?",Back:"Terug","Back to Log in":"Terug naar inloggen","Cancel subscription":"Abonnement opzeggen","Cancellation reason":"Reden voor opzegging","Choose a different plan":"Kies een ander abonnement","Choose your newsletters":"Kies jouw nieuwsbrieven",Close:"Sluiten",Comments:"Reacties",Confirm:"Bevestigen",Continue:"Doorgaan","Delete account":"Account verwijderen","Don't have an account?":"Heb je nog geen account?",Email:"E-mail","Email preference updated.":"E-mailinstellingen aanpassen","Email preferences":"E-mailinstellingen",Emails:"E-mails","Emails disabled":"E-mails zijn uitgeschakeld","Get help":"Lees meer","Get notified when someone replies to your comment":"Blijf op de hoogte als iemand op jouw reactie reageert","Give feedback on this post":"Deel je mening over dit artikel","Less like this":"Minder hiervan",Manage:"Beheer",Monthly:"Maandelijks","More like this":"Meer hiervan",Name:"Naam","Not receiving emails?":"Ontvang je geen e-mails?","Now check your email!":"Bekijk nu jouw e-mails!","Powered by Ghost":"Powered by Ghost",Price:"Prijs","Re-enable emails":"E-mails weer inschakelen",Retry:"Opnieuw proberen",Save:"Opslaan","Sending login link...":"Inloglink versturen...","Sending...":"Versturen...","Sign in":"Inloggen","Sign up":"Registreren","Start {{amount}}-day free trial":"Start gratis je {{amount}}-daagse proefperiode","Submit feedback":"Deel je feedback","Successfully unsubscribed":"Succesvol uitgeschreven","Thanks for the feedback!":"Bedankt voor je feedback!","That didn't go to plan":"Er ging iets mis","This site is invite-only, contact the owner for access.":"Deze site is alleen toegankelijk op uitnodiging, neem contact op met de eigenaar.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Klik op de bevestigingslink in de e-mail om je registratie af te ronden. Check ook je spamfolder als hij niet binnen de 3 minuten aankomt.","Unsubscribe from all emails":"Uitschrijven voor alles","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Je betaalde abonnement voor {{title}} wordt niet geannuleerd als je je uitschrijft voor e-mails","Update your preferences":"Voorkeuren aanpassen","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Het is niet gelukt om je uit te schrijven, omdat je e-mailadres niet is gevonden. Neem contact met ons op.",Yearly:"Jaarlijks","You have been successfully resubscribed":"Je bent weer succesvol geabonneerd","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Je ontvangt geen e-mails omdat je ofwel een recent bericht als spam had gemarkeerd, of omdat de berichten niet verzonden konden worden naar jouw e-mailadres.","Your account":"Jouw account","Your input helps shape what gets published.":"Jouw mening helpt bepalen wat er gepubliceerd wordt."},Fk={"{{discount}}% discount":"Rabat {{discount}}%","{{trialDays}} days free":"{{trialDays}} darmowych dni","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Link do logowania został wysłany do twojej skrzynki odbiorczej. Jeśli nie dotrze w ciągu 3 minut, sprawdź swój folder spamu.",Account:"Konto","Account settings":"Ustawienia konta","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Po zakończeniu okresu próbnego zostanie naliczona regularna opłata za wybrany poziom subskrypcji. Zawsze możesz anulować subskrypcję zanim to nastąpi.","Already a member?":"Masz już konto?",Back:"Wstecz","Back to Log in":"Wróć do logowania","Cancel subscription":"Anuluj subskrypcję","Cancellation reason":"Powód anulowania","Choose a different plan":"Wybierz inny plan","Choose your newsletters":"Wybierz swoje newslettery",Close:"Zamknij",Comments:"Komentarze",Confirm:"Potwierdź",Continue:"Dalej","Delete account":"Skasuj konto","Don't have an account?":"Nie masz jeszcze konta?",Email:"Email","Email preference updated.":"Ustawienia email zaktualizowane","Email preferences":"Ustawienia email",Emails:"Emaile","Emails disabled":"Wysyłanie emaili zablokowane","Get help":"Uzyskaj pomoc","Get notified when someone replies to your comment":"Otrzymaj powiadomienie gdy ktoś odpowie na twój komentarz","Give feedback on this post":"Oceń ten wpis","Less like this":"Mniej podobnych",Manage:"Zarządzaj",Monthly:"Miesięcznie","More like this":"Więcej podobnych",Name:"Imię i nazwisko","Not receiving emails?":"Nie dostajesz emaili?","Now check your email!":"Teraz sprawdź swoją pocztę!","Powered by Ghost":"Oparto na Ghost",Price:"Cena","Re-enable emails":"Włącz ponownie emaile",Retry:"Powtórz",Save:"Zapisz","Sending login link...":"Wysyłanie linku do logowania...","Sending...":"Wysyłanie...","Sign in":"Zaloguj się","Sign up":"Zarejestruj się","Start {{amount}}-day free trial":"Rozpocznij {{amount}}-dniowy okres próbny","Submit feedback":"Wyślij ocenę","Successfully unsubscribed":"Wypisanie udane","Thanks for the feedback!":"Dziękujemy za ocenę!","That didn't go to plan":"Coś poszło nie tak","This site is invite-only, contact the owner for access.":"Ta strona jest tylko na zaproszenie, skontaktuj się z właścicielem aby uzyskać dostęp.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Aby dokończyć rejestrację, kliknij w link przesłany na twoją skrzynkę pocztową. Jeśli nie dotrze on w ciągu 3 minut, sprawdź folder spamu!","Unsubscribe from all emails":"Wypisz się w wszystkich emaili","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Wypisanie się z otrzymywania emaili nie powoduje anulowania płatnej subskrypcji {{title}}","Update your preferences":"Zaktualizuj preferencje","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Nie udało się wypisać, bo nie znaleziono adresu email. Skontaktuj się w właścicielem strony.",Yearly:"Rocznie","You have been successfully resubscribed":"Zostałeś ponownie zapisany","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Nie otrzymujesz powiadomień email, ponieważ oznaczyłeś ostatnią wiadomość jako spam lub nie udało się dostarczyć wiadomości na podany adres email.","Your account":"Twoje konto","Your input helps shape what gets published.":"Twoja ocena pomoże nam lepiej kształtować nasz publikacje."},Uk={"{{discount}}% discount":"{{discount}}% de desconto","{{trialDays}} days free":"{{trialDays}} dias grátis","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Um link de acesso foi enviado para o seu email. Se a mensagem não chegar dentro de 3 minutos, verifique sua pasta de spam.",Account:"Conta","Account settings":"Configurações de conta","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Quando o teste grátis acabar, será cobrado o preço normal do plano que você escolheu. Você sempre pode cancelar antes.","Already a member?":"Já é membro?",Back:"Voltar","Back to Log in":"Voltar para login","Cancel subscription":"Cancelar inscrição","Cancellation reason":"Motivo do cancelamento","Choose a different plan":"Escolher plano diferente","Choose your newsletters":"Escolher suas newsletters",Close:"Fechar",Comments:"Comentários",Confirm:"Confirmar",Continue:"Continuar","Delete account":"Excluir conta","Don't have an account?":"Não tem uma conta?",Email:"Email","Email preference updated.":"Preferências de email atualizadas.","Email preferences":"Preferências de email",Emails:"Emails","Emails disabled":"Emails desativados","Get help":"Obter ajuda","Get notified when someone replies to your comment":"Receber notificação quando alguém responder seu comentário","Give feedback on this post":"Enviar feedback sobre esta postagem","Less like this":"Menos como este",Manage:"Gerenciar",Monthly:"Mensal","More like this":"Mais como este",Name:"Nome","Not receiving emails?":"Não está recebendo emails?","Now check your email!":"Agora veja seu email!","Powered by Ghost":"Powered by Ghost",Price:"Preço","Re-enable emails":"Reativar emails",Retry:"Tentar de novo",Save:"Salvar","Sending login link...":"Enviando link de acesso...","Sending...":"Enviando...","Sign in":"Entrar","Sign up":"Cadastrar","Start {{amount}}-day free trial":"Começar teste grátis de {{amount}} dias","Submit feedback":"Enviar avaliação","Successfully unsubscribed":"Inscrição cancelada com sucesso","Thanks for the feedback!":"Obrigado pela avaliação!","That didn't go to plan":"Algo não saiu como planejado","This site is invite-only, contact the owner for access.":"Este site é apenas para convidados. Contate o proprietário para obter acesso.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Para completar o cadastro, clique no link de confirmação enviado para sua caixa de entrada. Se o link não chegar detro de 3 minutos, confira a pasta de spam!","Unsubscribe from all emails":"Cancelar inscrição em todos os emails","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Cancelar a inscrição nos emails não cancelará sua assinatura paga em {{title}}","Update your preferences":"Atualizar preferências","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Não conseguimos cancelar sua inscrição já que o email não foi encontrado. Por favor, entre em contato com o proprietário do site.",Yearly:"Anualmente","You have been successfully resubscribed":"Você foi reinscrito com sucesso","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Você não está recebendo emails porque, ou classificou uma mensagem recente como spam, ou as mensagens não puderam ser entregues no endereço de email que você forneceu.","Your account":"Sua conta","Your input helps shape what gets published.":"Sua resposta ajuda a moldar o que será publicado."},Bk={"{{discount}}% discount":"{{discount}}% rabatt","{{trialDays}} days free":"{{trialDays}} dagar gratis","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"En inloggningslänk har skickats till din inkorg. Om den inte anländer inom 3 minuter, kontrollera din skräppostmapp.",Account:"Konto","Account settings":"Kontoinställningar","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Efter att en gratis provperiod avslutas debiteras du det ordinarie priset för den nivå du har valt. Du kan alltid avbryta innan dess.","Already a member?":"Redan medlem?",Back:"Tillbaka","Back to Log in":"Tillbaka till inloggning","Cancel subscription":"Avbryt prenumeration","Cancellation reason":"Anledning till avslut","Choose a different plan":"Välj en annan prenumeration","Choose your newsletters":"Välj dina nyhetsbrev",Close:"Stäng",Comments:"Kommentarer",Confirm:"Bekräfta",Continue:"Fortsätt","Delete account":"Radera konto","Don't have an account?":"Har du inget konto?",Email:"E-post","Email preference updated.":"Inställningar för e-post uppdaterade.","Email preferences":"E-postinställningar",Emails:"E-postmeddelanden","Emails disabled":"E-post inaktiverad","Get help":"Få hjälp","Get notified when someone replies to your comment":"Få en avisering när någon svarar på din kommentar","Give feedback on this post":"Ge feedback på det här inlägget","Less like this":"Mindre sånt här",Manage:"Hantera",Monthly:"Månadsvis","More like this":"Mer sånt här",Name:"Namn","Not receiving emails?":"Får du inga e-postmeddelanden?","Now check your email!":"Kolla nu din e-post!","Powered by Ghost":"Drivs av Ghost",Price:"Pris","Re-enable emails":"Återaktivera e-post",Retry:"Försök igen",Save:"Spara","Sending login link...":"Skickar inloggningslänk...","Sending...":"Skickar...","Sign in":"Logga in","Sign up":"Registrera dig","Start {{amount}}-day free trial":"Starta {{amount}}-dagars gratis testperiod","Submit feedback":"Skicka feedback","Successfully unsubscribed":"Prenumerationen avslutades framgångsrikt","Thanks for the feedback!":"Tack för din feedback!","That didn't go to plan":"Det där fungerade inte som tänkt","This site is invite-only, contact the owner for access.":"Den här sidan är endast för inbjudna, kontakta ägaren för åtkomst.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"För att slutföra registreringen, klicka på bekräftelselänken i din inkorg. Om den inte kommer fram inom 3 minuter, kolla din skräppostmapp!","Unsubscribe from all emails":"Avregistrera från alla e-postutskick","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Avregistrering från e-postmeddelanden kommer inte att avbryta din betalda prenumeration på {{title}}","Update your preferences":"Uppdatera dina inställningar","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Vi kunde inte avsluta din prenumeration eftersom e-postadressen inte hittades. Vänligen kontakta webbplatsens ägare.",Yearly:"Årligen","You have been successfully resubscribed":"Du har nu prenumererat igen","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Du får inte e-postmeddelanden eftersom du antingen markerade ett nyligt meddelande som skräppost, eller för att meddelanden inte kunde levereras till din angivna e-postadress.","Your account":"Ditt konto","Your input helps shape what gets published.":"Din åsikt hjälper till att forma vad som publiceras."},Yk={"{{discount}}% discount":"Giảm {{discount}}%","{{trialDays}} days free":"{{trialDays}} ngày miễn phí còn lại","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Liên kết đăng nhập đã được gửi đến hộp thư của bạn. Nếu trong vòng 3 phút bạn vẫn chưa thấy, hãy kiểm tra thư hộp thư rác của bạn.",Account:"Tài khoản","Account settings":"Cài đặt","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Sau khi kết thúc thời gian dùng thử miễn phí, bạn sẽ được tính giá thường cho gói dịch vụ mà bạn đã chọn. Bạn có thể hủy trước khi thời gian dùng thử kết thúc.","Already a member?":"Bạn đã là thành viên?",Back:"Quay về","Back to Log in":"Quay về đăng nhập","Cancel subscription":"Hủy thuê bao","Cancellation reason":"Lý do hủy thuê bao","Choose a different plan":"Chọn gói dịch vụ khác","Choose your newsletters":"Chọn bản tin bạn muốn nhận",Close:"Đóng",Comments:"Bình luận",Confirm:"Xác nhận",Continue:"Tiếp tục","Delete account":"Xóa tài khoản","Don't have an account?":"Bạn chưa có tài khoản?",Email:"Email","Email preference updated.":"Cập nhật email","Email preferences":"Cài đặt email",Emails:"Emails","Emails disabled":"Tắt chức năng email","Get help":"Trợ giúp","Get notified when someone replies to your comment":"Nhận thông báo khi có ai đó trả lời bình luận","Give feedback on this post":"Phản hồi bài viết này","Less like this":"Không thích lắm",Manage:"Quản lý",Monthly:"Mỗi tháng","More like this":"Thích bài viết dạng này",Name:"Tên","Not receiving emails?":"Bạn không nhận được email?","Now check your email!":"Kiểm tra email ngay bây giờ!","Powered by Ghost":"Cung cấp bởi Ghost",Price:"Giá","Re-enable emails":"Kích hoạt lại email nhận",Retry:"Thử lại",Save:"Lưu","Sending login link...":"Đang gửi liên kết đăng nhập","Sending...":"Đang gửi","Sign in":"Đăng nhập","Sign up":"Đăng ký","Start {{amount}}-day free trial":"Bắt đầu dùng thử {{amount}} ngày","Submit feedback":"Gửi phản hồi","Successfully unsubscribed":"Đã hủy đăng ký thành công","Thanks for the feedback!":"Cám ơn phản hồi của bạn!","That didn't go to plan":"Không thực hiện được","This site is invite-only, contact the owner for access.":"Trang web này chỉ dành cho những người được mời, hãy liên hệ với chủ sở hữu để có quyền truy cập.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Để hoàn tất đăng ký, hãy nhấp vào liên kết xác nhận trong hộp thư đến của bạn. Nếu nó không đến trong vòng 3 phút, hãy kiểm tra thư mục thư rác của bạn!","Unsubscribe from all emails":"Hủy theo dõi tất cả email","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Việc hủy đăng ký nhận email sẽ không hủy gói đăng ký trả phí của bạn đối với {{title}}","Update your preferences":"Cập nhật cài đặt","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Chúng tôi không thể hủy đăng ký bạn vì không tìm thấy địa chỉ email. Vui lòng liên hệ với chủ sở hữu trang web.",Yearly:"Mỗi năm","You have been successfully resubscribed":"Bạn đã đăng ký lại thành công","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Bạn không nhận được email vì bạn đã đánh dấu thư gần đây là thư rác, hoặc vì không thể gửi thư đến địa chỉ email bạn đã cung cấp.","Your account":"Tài khoản của bạn","Your input helps shape what gets published.":"Thông tin của bạn giúp định hình nội dung được xuất bản."};var Km;function qm(){return Km||(Km={"/i18n/locales/af/portal.json":function(){return Nk},"/i18n/locales/ca/portal.json":function(){return Tk},"/i18n/locales/cs/portal.json":function(){return $k},"/i18n/locales/de/portal.json":function(){return Rk},"/i18n/locales/en/portal.json":function(){return Ok},"/i18n/locales/eo/portal.json":function(){return Dk},"/i18n/locales/es/portal.json":function(){return Lk},"/i18n/locales/fr/portal.json":function(){return jk},"/i18n/locales/hu/portal.json":function(){return Ik},"/i18n/locales/it/portal.json":function(){return Ak},"/i18n/locales/mn/portal.json":function(){return Mk},"/i18n/locales/nl/portal.json":function(){return zk},"/i18n/locales/pl/portal.json":function(){return Fk},"/i18n/locales/pt-br/portal.json":function(){return Uk},"/i18n/locales/sv/portal.json":function(){return Bk},"/i18n/locales/vi/portal.json":function(){return Yk}})}function Hk(e){function t(n){var r=Qm(n,e);if(r!==null)return qm()[r]();throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}return t.resolve=function(n){var r=Qm(n,e);return r!==null?r:require.resolve(n)},t}function Qm(e,t){var n=Gk(e);e=Ha(e);var r;e[0]==="/"&&(t="");for(var i=qm(),o=["",".js",".json"];n?r=Ha(t+"/node_modules/"+e):r=Ha(t+"/"+e),!r.endsWith("/..");){for(var a=0;a<o.length;a++){var s=r+o[a];if(i[s])return s}if(!n)break;var l=Ha(t+"/..");if(l===t)break;t=l}return null}function Gk(e){var t=e[0];if(t==="/"||t==="\\")return!1;var n=e[1],r=e[2];return!(t==="."&&(!n||n==="/"||n==="\\")||t==="."&&n==="."&&(!r||r==="/"||r==="\\")||n===":"&&(r==="/"||r==="\\"))}function Ha(e){e=e.replace(/\\/g,"/");for(var t=e.split("/"),n=t[0]==="",r=1;r<t.length;r++)(t[r]==="."||t[r]==="")&&t.splice(r--,1);for(var r=1;r<t.length;r++)t[r]===".."&&r>0&&t[r-1]!==".."&&t[r-1]!=="."&&(t.splice(--r,2),r--);return e=t.join("/"),n&&e[0]!=="/"?e="/"+e:e.length===0&&(e="."),e}var Ga={},Wk={get exports(){return Ga},set exports(e){Ga=e}},Cr={},Vk={get exports(){return Cr},set exports(e){Cr=e}};(function(e){function t(n){return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Vk);var lu={},Kk={get exports(){return lu},set exports(e){lu=e}};(function(e){function t(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Kk);var cu={},qk={get exports(){return cu},set exports(e){cu=e}},Wa={},Qk={get exports(){return Wa},set exports(e){Wa=e}},uu={},Jk={get exports(){return uu},set exports(e){uu=e}};(function(e){var t=Cr.default;function n(r,i){if(t(r)!=="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var a=o.call(r,i||"default");if(t(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Jk),function(e){var t=Cr.default,n=uu;function r(i){var o=n(i,"string");return t(o)==="symbol"?o:String(o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Qk),function(e){var t=Wa;function n(i,o){for(var a=0;a<o.length;a++){var s=o[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,t(s.key),s)}}function r(i,o,a){return o&&n(i.prototype,o),a&&n(i,a),Object.defineProperty(i,"prototype",{writable:!1}),i}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(qk);var Va={},Xk={get exports(){return Va},set exports(e){Va=e}};(function(e){function t(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Xk);var du={},Zk={get exports(){return du},set exports(e){du=e}},pu={},e_={get exports(){return pu},set exports(e){pu=e}};(function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,a){return o.__proto__=a,o},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(e_),function(e){var t=pu;function n(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),i&&t(r,i)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Zk);var fu={},t_={get exports(){return fu},set exports(e){fu=e}};(function(e){var t=Cr.default,n=Va;function r(i,o){if(o&&(t(o)==="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return n(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(t_);var hu={},n_={get exports(){return hu},set exports(e){hu=e}};(function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(n_);var mu={},r_={get exports(){return mu},set exports(e){mu=e}};(function(e){var t=Wa;function n(r,i,o){return i=t(i),i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(r_);var gu={},i_={get exports(){return gu},set exports(e){gu=e}},yu={},o_={get exports(){return yu},set exports(e){yu=e}};(function(e){function t(n){if(Array.isArray(n))return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(o_);var vu={},a_={get exports(){return vu},set exports(e){vu=e}};(function(e){function t(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(a_);var bu={},s_={get exports(){return bu},set exports(e){bu=e}},wu={},l_={get exports(){return wu},set exports(e){wu=e}};(function(e){function t(n,r){(r==null||r>n.length)&&(r=n.length);for(var i=0,o=new Array(r);i<r;i++)o[i]=n[i];return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(l_),function(e){var t=wu;function n(r,i){if(r){if(typeof r=="string")return t(r,i);var o=Object.prototype.toString.call(r).slice(8,-1);if(o==="Object"&&r.constructor&&(o=r.constructor.name),o==="Map"||o==="Set")return Array.from(r);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return t(r,i)}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(s_);var xu={},c_={get exports(){return xu},set exports(e){xu=e}};(function(e){function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3117
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(c_),function(e){var t=yu,n=vu,r=bu,i=xu;function o(a){return t(a)||n(a)||r(a)||i()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(i_);var u_=Cr,d_=lu,p_=cu,f_=Va,h_=du,m_=fu,g_=hu,y_=mu,v_=gu;function St(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Ui=St(u_),st=St(d_),lt=St(p_),Nn=St(f_),Ka=St(h_),Bi=St(m_),nn=St(g_),rn=St(y_),b_=St(v_);function Jm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jm(Object(n),!0).forEach(function(r){rn.default(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var w_={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,n){console&&console[t]&&console[t].apply(console,n)}},x_=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};st.default(this,e),this.init(t,n)}return lt.default(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||w_,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,i,o){return o&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(i).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new e(this.logger,Xm(Xm({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new e(this.logger,n)}}]),e}(),ct=new x_,on=function(){function e(){st.default(this,e),this.observers={}}return lt.default(e,[{key:"on",value:function(n,r){var i=this;return n.split(" ").forEach(function(o){i.observers[o]=i.observers[o]||[],i.observers[o].push(r)}),this}},{key:"off",value:function(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(i){return i!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.observers[n]){var a=[].concat(this.observers[n]);a.forEach(function(l){l.apply(void 0,i)})}if(this.observers["*"]){var s=[].concat(this.observers["*"]);s.forEach(function(l){l.apply(l,[n].concat(i))})}}}]),e}();function Yi(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function Zm(e){return e==null?"":""+e}function k_(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function ku(e,t,n){function r(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return i()?{}:{obj:e,k:r(o.shift())}}function eg(e,t,n){var r=ku(e,t,Object),i=r.obj,o=r.k;i[o]=n}function __(e,t,n,r){var i=ku(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],r&&(o[a]=o[a].concat(n)),r||o[a].push(n)}function qa(e,t){var n=ku(e,t),r=n.obj,i=n.k;if(r)return r[i]}function S_(e,t,n){var r=qa(e,n);return r!==void 0?r:qa(t,n)}function tg(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):tg(e[r],t[r],n):e[r]=t[r]);return e}function Pr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var E_={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function C_(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return E_[t]}):e}var Qa=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,P_=[" ",",","?","!",";"];function N_(e,t,n){t=t||"",n=n||"";var r=P_.filter(function(s){return t.indexOf(s)<0&&n.indexOf(s)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}function Ja(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,o=0;o<r.length;++o){if(!i||typeof i[r[o]]=="string"&&o+1<r.length)return;if(i[r[o]]===void 0){for(var a=2,s=r.slice(o,o+a).join(n),l=i[s];l===void 0&&r.length>o+a;)a++,s=r.slice(o,o+a).join(n),l=i[s];if(l===void 0)return;if(l===null)return null;if(t.endsWith(s)){if(typeof l=="string")return l;if(s&&typeof l[s]=="string")return l[s]}var c=r.slice(o+a).join(n);return c?Ja(l,c,n):void 0}i=i[r[o]]}return i}}function ng(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ng(Object(n),!0).forEach(function(r){rn.default(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ng(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function T_(e){var t=$_();return function(){var r=nn.default(e),i;if(t){var o=nn.default(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Bi.default(this,i)}}function $_(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var R_=function(e){Ka.default(n,e);var t=T_(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return st.default(this,n),i=t.call(this),Qa&&on.call(Nn.default(i)),i.data=r||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return lt.default(n,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,c=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,p=[i,o];a&&typeof a!="string"&&(p=p.concat(a)),a&&typeof a=="string"&&(p=p.concat(l?a.split(l):a)),i.indexOf(".")>-1&&(p=i.split("."));var d=qa(this.data,p);return d||!c||typeof a!="string"?d:Ja(this.data&&this.data[i]&&this.data[i][o],a,l)}},{key:"addResource",value:function(i,o,a,s){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},c=this.options.keySeparator;c===void 0&&(c=".");var p=[i,o];a&&(p=p.concat(c?a.split(c):a)),i.indexOf(".")>-1&&(p=i.split("."),s=o,o=p[1]),this.addNamespaces(o),eg(this.data,p,s),l.silent||this.emit("added",i,o,a,s)}},{key:"addResources",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var l in a)(typeof a[l]=="string"||Object.prototype.toString.apply(a[l])==="[object Array]")&&this.addResource(i,o,l,a[l],{silent:!0});s.silent||this.emit("added",i,o,a)}},{key:"addResourceBundle",value:function(i,o,a,s,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},p=[i,o];i.indexOf(".")>-1&&(p=i.split("."),s=a,a=o,o=p[1]),this.addNamespaces(o);var d=qa(this.data,p)||{};s?tg(d,a,l):d=Xa(Xa({},d),a),eg(this.data,p,d),c.silent||this.emit("added",i,o,a)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Xa(Xa({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),a=o&&Object.keys(o)||[];return!!a.find(function(s){return o[s]&&Object.keys(o[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(on),rg={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,i,o){var a=this;return t.forEach(function(s){a.processors[s]&&(n=a.processors[s].process(n,r,i,o))}),n}};function ig(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ee(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ig(Object(n),!0).forEach(function(r){rn.default(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ig(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function O_(e){var t=D_();return function(){var r=nn.default(e),i;if(t){var o=nn.default(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Bi.default(this,i)}}function D_(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var og={},ag=function(e){Ka.default(n,e);var t=O_(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return st.default(this,n),i=t.call(this),Qa&&on.call(Nn.default(i)),k_(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,Nn.default(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=ct.create("translator"),i}return lt.default(n,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var a=this.resolve(i,o);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(i,o){var a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,l=o.ns||this.options.defaultNS||[],c=a&&i.indexOf(a)>-1,p=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!N_(i,a,s);if(c&&!p){var d=i.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:i,namespaces:l};var f=i.split(a);(a!==s||a===s&&this.options.ns.indexOf(f[0])>-1)&&(l=f.shift()),i=f.join(s)}return typeof l=="string"&&(l=[l]),{key:i,namespaces:l}}},{key:"translate",value:function(i,o,a){var s=this;if(Ui.default(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var l=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,c=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,p=this.extractFromKey(i[i.length-1],o),d=p.key,f=p.namespaces,y=f[f.length-1],v=o.lng||this.language,_=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(v&&v.toLowerCase()==="cimode"){if(_){var g=o.nsSeparator||this.options.nsSeparator;return l?{res:"".concat(y).concat(g).concat(d),usedKey:d,exactUsedKey:d,usedLng:v,usedNS:y}:"".concat(y).concat(g).concat(d)}return l?{res:d,usedKey:d,exactUsedKey:d,usedLng:v,usedNS:y}:d}var h=this.resolve(i,o),m=h&&h.res,w=h&&h.usedKey||d,k=h&&h.exactUsedKey||d,C=Object.prototype.toString.apply(m),S=["[object Number]","[object Function]","[object RegExp]"],$=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,O=!this.i18nFormat||this.i18nFormat.handleAsObject,N=typeof m!="string"&&typeof m!="boolean"&&typeof m!="number";if(O&&m&&N&&S.indexOf(C)<0&&!(typeof $=="string"&&C==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var F=this.options.returnedObjectHandler?this.options.returnedObjectHandler(w,m,Ee(Ee({},o),{},{ns:f})):"key '".concat(d," (").concat(this.language,")' returned an object instead of string.");return l?(h.res=F,h):F}if(c){var He=C==="[object Array]",te=He?[]:{},re=He?k:w;for(var Ze in m)if(Object.prototype.hasOwnProperty.call(m,Ze)){var dt="".concat(re).concat(c).concat(Ze);te[Ze]=this.translate(dt,Ee(Ee({},o),{joinArrays:!1,ns:f})),te[Ze]===dt&&(te[Ze]=m[Ze])}m=te}}else if(O&&typeof $=="string"&&C==="[object Array]")m=m.join($),m&&(m=this.extendTranslation(m,i,o,a));else{var pt=!1,Ct=!1,Tr=o.count!==void 0&&typeof o.count!="string",Tn=n.hasDefaultValue(o),Eu=Tr?this.pluralResolver.getSuffix(v,o.count,o):"",P=o["defaultValue".concat(Eu)]||o.defaultValue;!this.isValidLookup(m)&&Tn&&(pt=!0,m=P),this.isValidLookup(m)||(Ct=!0,m=d);var D=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,I=D&&Ct?void 0:m,U=Tn&&P!==m&&this.options.updateMissing;if(Ct||pt||U){if(this.logger.log(U?"updateKey":"missingKey",v,y,d,U?P:m),c){var ie=this.resolve(d,Ee(Ee({},o),{},{keySeparator:!1}));ie&&ie.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var Le=[],Ge=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ge&&Ge[0])for(var Pt=0;Pt<Ge.length;Pt++)Le.push(Ge[Pt]);else this.options.saveMissingTo==="all"?Le=this.languageUtils.toResolveHierarchy(o.lng||this.language):Le.push(o.lng||this.language);var Nt=function($r,Pu,kg){var _g=Tn&&kg!==m?kg:I;s.options.missingKeyHandler?s.options.missingKeyHandler($r,y,Pu,_g,U,o):s.backendConnector&&s.backendConnector.saveMissing&&s.backendConnector.saveMissing($r,y,Pu,_g,U,o),s.emit("missingKey",$r,y,Pu,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Tr?Le.forEach(function(Cu){s.pluralResolver.getSuffixes(Cu,o).forEach(function($r){Nt([Cu],d+$r,o["defaultValue".concat($r)]||P)})}):Nt(Le,d,P))}m=this.extendTranslation(m,i,o,h,a),Ct&&m===d&&this.options.appendNamespaceToMissingKey&&(m="".concat(y,":").concat(d)),(Ct||pt)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(y,":").concat(d):d,pt?m:void 0):m=this.options.parseMissingKeyHandler(m))}return l?(h.res=m,h):m}},{key:"extendTranslation",value:function(i,o,a,s,l){var c=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,Ee(Ee({},this.options.interpolation.defaultVariables),a),s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init(Ee(Ee({},a),{interpolation:Ee(Ee({},this.options.interpolation),a.interpolation)}));var p=typeof i=="string"&&(a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),d;if(p){var f=i.match(this.interpolator.nestingRegexp);d=f&&f.length}var y=a.replace&&typeof a.replace!="string"?a.replace:a;if(this.options.interpolation.defaultVariables&&(y=Ee(Ee({},this.options.interpolation.defaultVariables),y)),i=this.interpolator.interpolate(i,y,a.lng||this.language,a),p){var v=i.match(this.interpolator.nestingRegexp),_=v&&v.length;d<_&&(a.nest=!1)}!a.lng&&this.options.compatibilityAPI!=="v1"&&s&&s.res&&(a.lng=s.usedLng),a.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var m=arguments.length,w=new Array(m),k=0;k<m;k++)w[k]=arguments[k];return l&&l[0]===w[0]&&!a.context?(c.logger.warn("It seems you are nesting recursively key: ".concat(w[0]," in key: ").concat(o[0])),null):c.translate.apply(c,w.concat([o]))},a)),a.interpolation&&this.interpolator.reset()}var g=a.postProcess||this.options.postProcess,h=typeof g=="string"?[g]:g;return i!=null&&h&&h.length&&a.applyPostProcessor!==!1&&(i=rg.handle(h,i,o,this.options&&this.options.postProcessPassResolved?Ee({i18nResolved:s},a):a,this)),i}},{key:"resolve",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,l,c,p,d;return typeof i=="string"&&(i=[i]),i.forEach(function(f){if(!o.isValidLookup(s)){var y=o.extractFromKey(f,a),v=y.key;l=v;var _=y.namespaces;o.options.fallbackNS&&(_=_.concat(o.options.fallbackNS));var g=a.count!==void 0&&typeof a.count!="string",h=g&&!a.ordinal&&a.count===0&&o.pluralResolver.shouldUseIntlApi(),m=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",w=a.lngs?a.lngs:o.languageUtils.toResolveHierarchy(a.lng||o.language,a.fallbackLng);_.forEach(function(k){o.isValidLookup(s)||(d=k,!og["".concat(w[0],"-").concat(k)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(d)&&(og["".concat(w[0],"-").concat(k)]=!0,o.logger.warn('key "'.concat(l,'" for languages "').concat(w.join(", "),`" won't get resolved as namespace "`).concat(d,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),w.forEach(function(C){if(!o.isValidLookup(s)){p=C;var S=[v];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(S,v,C,k,a);else{var $;g&&($=o.pluralResolver.getSuffix(C,a.count,a));var O="".concat(o.options.pluralSeparator,"zero");if(g&&(S.push(v+$),h&&S.push(v+O)),m){var N="".concat(v).concat(o.options.contextSeparator).concat(a.context);S.push(N),g&&(S.push(N+$),h&&S.push(N+O))}}for(var F;F=S.pop();)o.isValidLookup(s)||(c=F,s=o.getResource(C,k,F,a))}}))})}}),{res:s,usedKey:l,exactUsedKey:c,usedLng:p,usedNS:d}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,a,s):this.resourceStore.getResource(i,o,a,s)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)&&o===a.substring(0,o.length)&&i[a]!==void 0)return!0;return!1}}]),n}(on);function _u(e){return e.charAt(0).toUpperCase()+e.slice(1)}var sg=function(){function e(t){st.default(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ct.create("languageUtils")}return lt.default(e,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],i=n.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=_u(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=_u(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=_u(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var i;return n.forEach(function(o){if(!i){var a=r.formatLanguageCode(o);(!r.options.supportedLngs||r.isSupportedCode(a))&&(i=a)}}),!i&&this.options.supportedLngs&&n.forEach(function(o){if(!i){var a=r.getLanguagePartFromCode(o);if(r.isSupportedCode(a))return i=a;i=r.options.supportedLngs.find(function(s){if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&s.indexOf(a)===0)return s})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],n),a=[],s=function(c){c&&(i.isSupportedCode(c)?a.push(c):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(c)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(n))):typeof n=="string"&&s(this.formatLanguageCode(n)),o.forEach(function(l){a.indexOf(l)<0&&s(i.formatLanguageCode(l))}),a}}]),e}(),L_=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],j_={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}},I_=["v1","v2","v3"],lg={zero:0,one:1,two:2,few:3,many:4,other:5};function A_(){var e={};return L_.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:j_[t.fc]}})}),e}var M_=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};st.default(this,e),this.languageUtils=t,this.options=n,this.logger=ct.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=A_()}return lt.default(e,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(function(o){return"".concat(r).concat(o)})}},{key:"getSuffixes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(a,s){return lg[a]-lg[s]}).map(function(a){return"".concat(r.options.prepend).concat(a)}):o.numbers.map(function(a){return r.getSuffix(n,a,i)}):[]}},{key:"getSuffix",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(r)):this.getSuffixRetroCompatible(o,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var i=this,o=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),a=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var s=function(){return i.options.prepend&&a.toString()?i.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?s():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!I_.includes(this.options.compatibilityJSON)}}]),e}();function cg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cg(Object(n),!0).forEach(function(r){rn.default(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ug(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=S_(e,t,n);return!o&&i&&typeof n=="string"&&(o=Ja(e,n,r),o===void 0&&(o=Ja(t,n,r))),o}var z_=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};st.default(this,e),this.logger=ct.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return lt.default(e,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:C_,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?Pr(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?Pr(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?Pr(r.nestingPrefix):r.nestingPrefixEscaped||Pr("$t("),this.nestingSuffix=r.nestingSuffix?Pr(r.nestingSuffix):r.nestingSuffixEscaped||Pr(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(n,r,i,o){var a=this,s,l,c,p=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(g){return g.replace(/\$/g,"$$$$")}var f=function(h){if(h.indexOf(a.formatSeparator)<0){var m=ug(r,p,h,a.options.keySeparator,a.options.ignoreJSONStructure);return a.alwaysFormat?a.format(m,void 0,i,Xe(Xe(Xe({},o),r),{},{interpolationkey:h})):m}var w=h.split(a.formatSeparator),k=w.shift().trim(),C=w.join(a.formatSeparator).trim();return a.format(ug(r,p,k,a.options.keySeparator,a.options.ignoreJSONStructure),C,i,Xe(Xe(Xe({},o),r),{},{interpolationkey:k}))};this.resetRegExp();var y=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,v=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,_=[{regex:this.regexpUnescape,safeValue:function(h){return d(h)}},{regex:this.regexp,safeValue:function(h){return a.escapeValue?d(a.escape(h)):d(h)}}];return _.forEach(function(g){for(c=0;s=g.regex.exec(n);){var h=s[1].trim();if(l=f(h),l===void 0)if(typeof y=="function"){var m=y(n,s,o);l=typeof m=="string"?m:""}else if(o&&Object.prototype.hasOwnProperty.call(o,h))l="";else if(v){l=s[0];continue}else a.logger.warn("missed to pass in variable ".concat(h," for interpolating ").concat(n)),l="";else typeof l!="string"&&!a.useRawValueToEscape&&(l=Zm(l));var w=g.safeValue(l);if(n=n.replace(s[0],w),v?(g.regex.lastIndex+=l.length,g.regex.lastIndex-=s[0].length):g.regex.lastIndex=0,c++,c>=a.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,l;function c(y,v){var _=this.nestingOptionsSeparator;if(y.indexOf(_)<0)return y;var g=y.split(new RegExp("".concat(_,"[ ]*{"))),h="{".concat(g[1]);y=g[0],h=this.interpolate(h,l);var m=h.match(/'/g),w=h.match(/"/g);(m&&m.length%2===0&&!w||w.length%2!==0)&&(h=h.replace(/'/g,'"'));try{l=JSON.parse(h),v&&(l=Xe(Xe({},v),l))}catch(k){return this.logger.warn("failed parsing options string in nesting for key ".concat(y),k),"".concat(y).concat(_).concat(h)}return delete l.defaultValue,y}for(;a=this.nestingRegexp.exec(n);){var p=[];l=Xe({},o),l=l.replace&&typeof l.replace!="string"?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;var d=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var f=a[1].split(this.formatSeparator).map(function(y){return y.trim()});a[1]=f.shift(),p=f,d=!0}if(s=r(c.call(this,a[1].trim(),l),l),s&&a[0]===n&&typeof s!="string")return s;typeof s!="string"&&(s=Zm(s)),s||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(n)),s=""),d&&(s=p.reduce(function(y,v){return i.format(y,v,o.lng,Xe(Xe({},o),{},{interpolationkey:a[1].trim()}))},s.trim())),n=n.replace(a[0],s),this.regexp.lastIndex=0}return n}}]),e}();function dg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dg(Object(n),!0).forEach(function(r){rn.default(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function F_(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(t==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var o=i.split(";");o.forEach(function(a){if(a){var s=a.split(":"),l=b_.default(s),c=l[0],p=l.slice(1),d=p.join(":").trim().replace(/^'+|'+$/g,"");n[c.trim()]||(n[c.trim()]=d),d==="false"&&(n[c.trim()]=!1),d==="true"&&(n[c.trim()]=!0),isNaN(d)||(n[c.trim()]=parseInt(d,10))}})}}return{formatName:t,formatOptions:n}}function Nr(e){var t={};return function(r,i,o){var a=i+JSON.stringify(o),s=t[a];return s||(s=e(i,o),t[a]=s),s(r)}}var U_=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};st.default(this,e),this.logger=ct.create("formatter"),this.options=t,this.formats={number:Nr(function(n,r){var i=new Intl.NumberFormat(n,Et({},r));return function(o){return i.format(o)}}),currency:Nr(function(n,r){var i=new Intl.NumberFormat(n,Et(Et({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:Nr(function(n,r){var i=new Intl.DateTimeFormat(n,Et({},r));return function(o){return i.format(o)}}),relativetime:Nr(function(n,r){var i=new Intl.RelativeTimeFormat(n,Et({},r));return function(o){return i.format(o,r.range||"day")}}),list:Nr(function(n,r){var i=new Intl.ListFormat(n,Et({},r));return function(o){return i.format(o)}})},this.init(t)}return lt.default(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=r.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=Nr(r)}},{key:"format",value:function(n,r,i){var o=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=r.split(this.formatSeparator),l=s.reduce(function(c,p){var d=F_(p),f=d.formatName,y=d.formatOptions;if(o.formats[f]){var v=c;try{var _=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},g=_.locale||_.lng||a.locale||a.lng||i;v=o.formats[f](c,g,Et(Et(Et({},y),a),_))}catch(h){o.logger.warn(h)}return v}else o.logger.warn("there was no format function for ".concat(f));return c},n);return l}}]),e}();function pg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pg(Object(n),!0).forEach(function(r){rn.default(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function B_(e){var t=Y_();return function(){var r=nn.default(e),i;if(t){var o=nn.default(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Bi.default(this,i)}}function Y_(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function H_(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var G_=function(e){Ka.default(n,e);var t=B_(n);function n(r,i,o){var a,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return st.default(this,n),a=t.call(this),Qa&&on.call(Nn.default(a)),a.backend=r,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=s,a.logger=ct.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=s.maxParallelReads||10,a.readingCalls=0,a.maxRetries=s.maxRetries>=0?s.maxRetries:5,a.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,s.backend,s),a}return lt.default(n,[{key:"queueLoad",value:function(i,o,a,s){var l=this,c={},p={},d={},f={};return i.forEach(function(y){var v=!0;o.forEach(function(_){var g="".concat(y,"|").concat(_);!a.reload&&l.store.hasResourceBundle(y,_)?l.state[g]=2:l.state[g]<0||(l.state[g]===1?p[g]===void 0&&(p[g]=!0):(l.state[g]=1,v=!1,p[g]===void 0&&(p[g]=!0),c[g]===void 0&&(c[g]=!0),f[_]===void 0&&(f[_]=!0)))}),v||(d[y]=!0)}),(Object.keys(c).length||Object.keys(p).length)&&this.queue.push({pending:p,pendingCount:Object.keys(p).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(c),pending:Object.keys(p),toLoadLanguages:Object.keys(d),toLoadNamespaces:Object.keys(f)}}},{key:"loaded",value:function(i,o,a){var s=i.split("|"),l=s[0],c=s[1];o&&this.emit("failedLoading",l,c,o),a&&this.store.addResourceBundle(l,c,a),this.state[i]=o?-1:2;var p={};this.queue.forEach(function(d){__(d.loaded,[l],c),H_(d,i),o&&d.errors.push(o),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(function(f){p[f]||(p[f]={});var y=d.loaded[f];y.length&&y.forEach(function(v){p[f][v]===void 0&&(p[f][v]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",p),this.queue=this.queue.filter(function(d){return!d.done})}},{key:"read",value:function(i,o,a){var s=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,p=arguments.length>5?arguments[5]:void 0;if(!i.length)return p(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:a,tried:l,wait:c,callback:p});return}this.readingCalls++;var d=function(_,g){if(s.readingCalls--,s.waitingReads.length>0){var h=s.waitingReads.shift();s.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(_&&g&&l<s.maxRetries){setTimeout(function(){s.read.call(s,i,o,a,l+1,c*2,p)},c);return}p(_,g)},f=this.backend[a].bind(this.backend);if(f.length===2){try{var y=f(i,o);y&&typeof y.then=="function"?y.then(function(v){return d(null,v)}).catch(d):d(null,y)}catch(v){d(v)}return}return f(i,o,d)}},{key:"prepareLoading",value:function(i,o){var a=this,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var c=this.queueLoad(i,o,s,l);if(!c.toLoad.length)return c.pending.length||l(),null;c.toLoad.forEach(function(p){a.loadOne(p)})}},{key:"load",value:function(i,o,a){this.prepareLoading(i,o,{},a)}},{key:"reload",value:function(i,o,a){this.prepareLoading(i,o,{reload:!0},a)}},{key:"loadOne",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=i.split("|"),l=s[0],c=s[1];this.read(l,c,"read",void 0,void 0,function(p,d){p&&o.logger.warn("".concat(a,"loading namespace ").concat(c," for language ").concat(l," failed"),p),!p&&d&&o.logger.log("".concat(a,"loaded namespace ").concat(c," for language ").concat(l),d),o.loaded(i,p,d)})}},{key:"saveMissing",value:function(i,o,a,s,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},p=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend&&this.backend.create){var d=fg(fg({},c),{},{isUpdate:l}),f=this.backend.create.bind(this.backend);if(f.length<6)try{var y;f.length===5?y=f(i,o,a,s,d):y=f(i,o,a,s),y&&typeof y.then=="function"?y.then(function(v){return p(null,v)}).catch(p):p(null,y)}catch(v){p(v)}else f(i,o,a,s,p,d)}!i||!i[0]||this.store.addResource(i[0],o,a,s)}}}]),n}(on);function hg(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var n={};if(Ui.default(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),Ui.default(t[2])==="object"||Ui.default(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(t,n,r,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function mg(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function gg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ut(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gg(Object(n),!0).forEach(function(r){rn.default(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function W_(e){var t=V_();return function(){var r=nn.default(e),i;if(t){var o=nn.default(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Bi.default(this,i)}}function V_(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Za(){}function K_(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var es=function(e){Ka.default(n,e);var t=W_(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(st.default(this,n),r=t.call(this),Qa&&on.call(Nn.default(r)),r.options=mg(i),r.services={},r.logger=ct,r.modules={external:[]},K_(Nn.default(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),Bi.default(r,Nn.default(r));setTimeout(function(){r.init(i,o)},0)}return r}return lt.default(n,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(a=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var s=hg();this.options=ut(ut(ut({},s),this.options),mg(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=ut(ut({},s.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function l(h){return h?typeof h=="function"?new h:h:null}if(!this.options.isClone){this.modules.logger?ct.init(l(this.modules.logger),this.options):ct.init(null,this.options);var c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=U_);var p=new sg(this.options);this.store=new R_(this.options.resources,this.options);var d=this.services;d.logger=ct,d.resourceStore=this.store,d.languageUtils=p,d.pluralResolver=new M_(p,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(d.formatter=l(c),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new z_(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new G_(l(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(h){for(var m=arguments.length,w=new Array(m>1?m-1:0),k=1;k<m;k++)w[k-1]=arguments[k];i.emit.apply(i,[h].concat(w))}),this.modules.languageDetector&&(d.languageDetector=l(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=l(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new ag(this.services,this.options),this.translator.on("*",function(h){for(var m=arguments.length,w=new Array(m>1?m-1:0),k=1;k<m;k++)w[k-1]=arguments[k];i.emit.apply(i,[h].concat(w))}),this.modules.external.forEach(function(h){h.init&&h.init(i)})}if(this.format=this.options.interpolation.format,a||(a=Za),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var y=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];y.forEach(function(h){i[h]=function(){var m;return(m=i.store)[h].apply(m,arguments)}});var v=["addResource","addResources","addResourceBundle","removeResourceBundle"];v.forEach(function(h){i[h]=function(){var m;return(m=i.store)[h].apply(m,arguments),i}});var _=Yi(),g=function(){var m=function(k,C){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),_.resolve(C),a(k,C)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return m(null,i.t.bind(i));i.changeLanguage(i.options.lng,m)};return this.options.resources||!this.options.initImmediate?g():setTimeout(g,0),_}},{key:"loadResources",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Za,s=a,l=typeof i=="string"?i:this.language;if(typeof i=="function"&&(s=i),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode")return s();var c=[],p=function(y){if(y){var v=o.services.languageUtils.toResolveHierarchy(y);v.forEach(function(_){c.indexOf(_)<0&&c.push(_)})}};if(l)p(l);else{var d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.forEach(function(f){return p(f)})}this.options.preload&&this.options.preload.forEach(function(f){return p(f)}),this.services.backendConnector.load(c,this.options.ns,function(f){!f&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),s(f)})}else s(null)}},{key:"reloadResources",value:function(i,o,a){var s=Yi();return i||(i=this.languages),o||(o=this.options.ns),a||(a=Za),this.services.backendConnector.reload(i,o,function(l){s.resolve(),a(l)}),s}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&rg.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o<this.languages.length;o++){var a=this.languages[o];if(!(["cimode","dev"].indexOf(a)>-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(i,o){var a=this;this.isLanguageChangingTo=i;var s=Yi();this.emit("languageChanging",i);var l=function(f){a.language=f,a.languages=a.services.languageUtils.toResolveHierarchy(f),a.resolvedLanguage=void 0,a.setResolvedLanguage(f)},c=function(f,y){y?(l(y),a.translator.changeLanguage(y),a.isLanguageChangingTo=void 0,a.emit("languageChanged",y),a.logger.log("languageChanged",y)):a.isLanguageChangingTo=void 0,s.resolve(function(){return a.t.apply(a,arguments)}),o&&o(f,function(){return a.t.apply(a,arguments)})},p=function(f){!i&&!f&&a.services.languageDetector&&(f=[]);var y=typeof f=="string"?f:a.services.languageUtils.getBestMatchFromCodes(f);y&&(a.language||l(y),a.translator.language||a.translator.changeLanguage(y),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage&&a.services.languageDetector.cacheUserLanguage(y)),a.loadResources(y,function(v){c(v,y)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?p(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(p):this.services.languageDetector.detect(p):p(i),s}},{key:"getFixedT",value:function(i,o,a){var s=this,l=function c(p,d){var f;if(Ui.default(d)!=="object"){for(var y=arguments.length,v=new Array(y>2?y-2:0),_=2;_<y;_++)v[_-2]=arguments[_];f=s.options.overloadTranslationOptionHandler([p,d].concat(v))}else f=ut({},d);f.lng=f.lng||c.lng,f.lngs=f.lngs||c.lngs,f.ns=f.ns||c.ns,f.keyPrefix=f.keyPrefix||a||c.keyPrefix;var g=s.options.keySeparator||".",h;return f.keyPrefix&&Array.isArray(p)?h=p.map(function(m){return"".concat(f.keyPrefix).concat(g).concat(m)}):h=f.keyPrefix?"".concat(f.keyPrefix).concat(g).concat(p):p,s.t(h,f)};return typeof i=="string"?l.lng=i:l.lngs=i,l.ns=o,l.keyPrefix=a,l}},{key:"t",value:function(){var i;return this.translator&&(i=this.translator).translate.apply(i,arguments)}},{key:"exists",value:function(){var i;return this.translator&&(i=this.translator).exists.apply(i,arguments)}},{key:"setDefaultNamespace",value:function(i){this.options.defaultNS=i}},{key:"hasLoadedNamespace",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var p=function(y,v){var _=o.services.backendConnector.state["".concat(y,"|").concat(v)];return _===-1||_===2};if(a.precheck){var d=a.precheck(this,p);if(d!==void 0)return d}return!!(this.hasResourceBundle(s,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||p(s,i)&&(!l||p(c,i)))}},{key:"loadNamespaces",value:function(i,o){var a=this,s=Yi();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(l){a.options.ns.indexOf(l)<0&&a.options.ns.push(l)}),this.loadResources(function(l){s.resolve(),o&&o(l)}),s):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var a=Yi();typeof i=="string"&&(i=[i]);var s=this.options.preload||[],l=i.filter(function(c){return s.indexOf(c)<0});return l.length?(this.options.preload=s.concat(l),this.loadResources(function(c){a.resolve(),o&&o(c)}),a):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services&&this.services.languageUtils||new sg(hg());return o.indexOf(a.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Za,s=ut(ut(ut({},this.options),o),{isClone:!0}),l=new n(s);(o.debug!==void 0||o.prefix!==void 0)&&(l.logger=l.logger.clone(o));var c=["store","services","language"];return c.forEach(function(p){l[p]=i[p]}),l.services=ut({},this.services),l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l.translator=new ag(l.services,l.options),l.translator.on("*",function(p){for(var d=arguments.length,f=new Array(d>1?d-1:0),y=1;y<d;y++)f[y-1]=arguments[y];l.emit.apply(l,[p].concat(f))}),l.init(s,a),l.translator.options=l.options,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(on);rn.default(es,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new es(e,t)});var yg=es.createInstance();yg.createInstance=es.createInstance;var q_=yg;const Q_=q_,vg=["af","ca","cs","de","en","eo","es","fr","hu","it","mn","nl","pl","pt-br","sv","vi"];Wk.exports=(e="en",t="portal")=>{const n=Q_.createInstance();return n.init({lng:e,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:!1,ns:t,defaultNS:t,resources:vg.reduce((r,i)=>(r[i]={[t]:Hk("/i18n/lib")(`../locales/${i}/${t}.json`)},r),{})}),n},Ga.SUPPORTED_LOCALES=vg,function(e){e.exports=Ga}(Pk);const J_=je(su),X_={showPopup:!0,site:Er,member:Ya.free,page:"accountEmail",...Xx(),pageData:Wm};function Z_({site:e,children:t}){const{portal_sentry:n}=e||{};return n&&n.dsn?u(Mi,{children:t}):u(Y,{children:t})}class e2 extends q.Component{constructor(t){super(t),this.setupCustomTriggerButton(t),this.state={site:null,member:null,page:"loading",showPopup:!1,action:"init:running",initStatus:"running",lastPage:null,customSiteUrl:t.customSiteUrl}}componentDidMount(){this.initSetup()}componentDidUpdate(t,n){var r,i,o;if(n.showPopup!==this.state.showPopup){this.handleCustomTriggerClassUpdate();try{this.state.showPopup?(this.bodyScroll=(o=(i=(r=window.document)==null?void 0:r.body)==null?void 0:i.style)==null?void 0:o.overflow,window.document.body.style.overflow="hidden"):window.document.body.style.overflow=this.bodyScroll||""}catch{}}if(this.state.initStatus==="success"&&n.initStatus!==this.state.initStatus){const{siteUrl:a}=this.props,s=this.getContextFromState();this.sendPortalReadyEvent(),Ck({siteUrl:a,site:s.site,member:s.member})}}componentWillUnmount(){clearTimeout(this.timeoutId),this.customTriggerButtons&&this.customTriggerButtons.forEach(t=>{t.removeEventListener("click",this.clickHandler)}),window.removeEventListener("hashchange",this.hashHandler,!1)}sendPortalReadyEvent(){window.self!==window.parent&&window.parent.postMessage({type:"portal-ready",payload:{}},"*")}setupCustomTriggerButton(){this.clickHandler=r=>{r.preventDefault();const i=r.currentTarget,o=i&&i.dataset.portal,{page:a,pageQuery:s}=this.getPageFromLinkPath(o)||{};this.state.initStatus==="success"&&(s&&s!=="free"?this.handleSignupQuery({site:this.state.site,pageQuery:s}):this.dispatchAction("openPopup",{page:a,pageQuery:s}))};const t="[data-portal]",n="gh-portal-close";this.customTriggerButtons=document.querySelectorAll(t)||[],this.customTriggerButtons.forEach(r=>{r.classList.add(n),r.removeEventListener("click",this.clickHandler),r.addEventListener("click",this.clickHandler)})}handleCustomTriggerClassUpdate(){var r;const t="gh-portal-open",n="gh-portal-close";(r=this.customTriggerButtons)==null||r.forEach(i=>{const o=this.state.showPopup?t:n,a=this.state.showPopup?n:t;i.classList.add(o),i.classList.remove(a)})}async initSetup(){try{const{site:t,member:n,page:r,showPopup:i,popupNotification:o,lastPage:a,pageQuery:s,pageData:l}=await this.fetchData(),c=this.props.siteI18nEnabled?t.locale:"en",p=J_(c,"portal"),d={site:t,member:n,page:r,lastPage:a,pageQuery:s,showPopup:i,pageData:l,popupNotification:o,t:p.t,action:"init:success",initStatus:"success"};this.handleSignupQuery({site:t,pageQuery:s,member:n}),this.setState(d),this.hashHandler=()=>{this.updateStateForPreviewLinks()},window.addEventListener("hashchange",this.hashHandler,!1)}catch(t){console.error("[Portal] Failed to initialize:",t),this.setState({action:"init:failed",initStatus:"failed"})}}async fetchData(){const{site:t,member:n}=await this.fetchApiData(),{site:r,...i}=this.fetchDevData(),{site:o,...a}=this.fetchLinkData(),{site:s,...l}=this.fetchPreviewData(),{site:c,...p}=this.fetchNotificationData();return{member:n,page:"",site:{...t,...o,...s,...c,...r,plans:{...(r||{}).plans,...(t||{}).plans,...(s||{}).plans}},...i,...a,...p,...l}}fetchDevData(){return K(["dev"])&&!this.state.customSiteUrl?X_:K(["test"])?{showPopup:this.props.showPopup!==void 0?this.props.showPopup:!0}:{}}fetchOfferQueryStrData(t=""){const n=new URLSearchParams(t),r={};for(let i of n.entries()){const o=i[0],a=decodeURIComponent(i[1]);o==="name"?r.name=a||"":o==="code"?r.code=a||"":o==="display_title"?r.display_title=a||"":o==="display_description"?r.display_description=a||"":o==="type"?r.type=a||"":o==="cadence"?r.cadence=a||"":o==="duration"?r.duration=a||"":o==="duration_in_months"&&!isNaN(Number(a))?r.duration_in_months=Number(a):o==="amount"&&!isNaN(Number(a))?r.amount=Number(a):o==="currency"?r.currency=a||"":o==="status"?r.status=a||"":o==="tier_id"&&(r.tier={id:a||Wm.tier.id})}return{page:"offer",pageData:r}}fetchQueryStrData(t=""){const n=new URLSearchParams(t),r={site:{plans:{}}},i=[];let o,a=null,s,l,c;for(let p of n.entries()){const d=p[0],f=decodeURIComponent(p[1]);if(d==="button")r.site.portal_button=JSON.parse(f);else if(d==="name")r.site.portal_name=JSON.parse(f);else if(d==="isFree"&&JSON.parse(f))i.push("free");else if(d==="isMonthly"&&JSON.parse(f))i.push("monthly");else if(d==="isYearly"&&JSON.parse(f))i.push("yearly");else if(d==="portalPrices")o=f?f.split(","):[];else if(d==="portalProducts")a=f?f.split(","):[];else if(d==="page"&&f)r.page=f;else if(d==="accentColor"&&(f===""||f))r.site.accent_color=f;else if(d==="buttonIcon"&&f)r.site.portal_button_icon=f;else if(d==="signupButtonText")r.site.portal_button_signup_text=f||"";else if(d==="signupTermsHtml")r.site.portal_signup_terms_html=f||"";else if(d==="signupCheckboxRequired")r.site.portal_signup_checkbox_required=JSON.parse(f);else if(d==="buttonStyle"&&f)r.site.portal_button_style=f;else if(d==="monthlyPrice"&&!isNaN(Number(f)))r.site.plans.monthly=Number(f),s=Number(f);else if(d==="yearlyPrice"&&!isNaN(Number(f)))r.site.plans.yearly=Number(f),l=Number(f);else if(d==="currency"&&f){const y=f.toUpperCase();r.site.plans.currency=y,r.site.plans.currency_symbol=fe(y),c=y}else d==="disableBackground"?r.site.disableBackground=JSON.parse(f):d==="allowSelfSignup"?r.site.allow_self_signup=JSON.parse(f):d==="membersSignupAccess"&&f&&(r.site.members_signup_access=f)}return r.site.portal_plans=i,r.site.portal_products=a,o?r.site.portal_plans=o:s&&l&&c&&(r.site.prices=[{id:"monthly",stripe_price_id:"dummy_stripe_monthly",stripe_product_id:"dummy_stripe_product",active:1,nickname:"Monthly",currency:c,amount:s,type:"recurring",interval:"month"},{id:"yearly",stripe_price_id:"dummy_stripe_yearly",stripe_product_id:"dummy_stripe_product",active:1,nickname:"Yearly",currency:c,amount:l,type:"recurring",interval:"year"}]),r}fetchNotificationData(){const{type:t,status:n,duration:r,autoHide:i,closeable:o}=fm({billingOnly:!0})||{};return["stripe:billing-update"].includes(t)?n==="success"?{showPopup:!0,popupNotification:X({type:t,status:n,duration:r,closeable:o,autoHide:i,state:this.state,message:n==="success"?"Billing info updated successfully":""})}:{showPopup:!0}:{}}fetchLinkData(){const t=new URLSearchParams(window.location.search);if(t.get("uuid")&&t.get("action")==="unsubscribe")return{showPopup:!0,page:"unsubscribe",pageData:{uuid:t.get("uuid"),newsletterUuid:t.get("newsletter"),comments:t.get("comments")}};const[n,r]=window.location.hash.substr(1).split("?"),i=new URLSearchParams(r??""),o=/^(?:(\w+?))?\/monthly$/,a=/^(?:(\w+?))?\/yearly$/,s=/^offers\/(\w+?)\/?$/,l=/^\/portal\/?(?:\/(\w+(?:\/\w+)*))?\/?$/,c=/^\/feedback\/(\w+?)\/(\w+?)\/?$/;if(n&&c.test(n)&&i.get("uuid")){const[,p,d]=n.match(c),f=parseInt(d);if(f===1||f===0)return{showPopup:!0,page:"feedback",pageData:{uuid:i.get("uuid"),postId:p,score:f}}}if(n&&l.test(n)){const[,p]=n.match(l),{page:d,pageQuery:f}=this.getPageFromLinkPath(p)||{},y=["accountPlan","accountProfile"].includes(d)?"accountHome":null;return{showPopup:!(["monthly","yearly"].includes(f)||o.test(f)||a.test(f)||s.test(f)),...d?{page:d}:{},...f?{pageQuery:f}:{},...y?{lastPage:y}:{}}}return{}}fetchPreviewData(){const[,t]=window.location.hash.substr(1).split("?");if(K(["preview"])){let n={};return K(["offerPreview"])?n=this.fetchOfferQueryStrData(t):n=this.fetchQueryStrData(t),{...n,showPopup:!0}}return{}}getColorOverride(){const t=document.querySelector("script[data-ghost]");return t&&t.dataset.accentColor?t.dataset.accentColor:!1}async fetchApiData(){const{siteUrl:t,customSiteUrl:n,apiUrl:r,apiKey:i}=this.props;try{this.GhostApi=this.props.api||za({siteUrl:t,apiUrl:r,apiKey:i});const{site:o,member:a}=await this.GhostApi.init(),s=this.getColorOverride();return s&&(o.accent_color=s),this.setupFirstPromoter({site:o,member:a}),this.setupSentry({site:o}),{site:o,member:a}}catch(o){if(K(["dev","test"],{customSiteUrl:n}))return{};throw o}}setupSentry({site:t}){if(K(["test"]))return null;const{portal_sentry:n,portal_version:r,version:i}=t,a=`portal@2.28.0|ghost@${i}`;n&&n.dsn&&vb({dsn:n.dsn,environment:n.env||"development",release:a,beforeSend:s=>Ab({event:s})?s:null,allowUrls:[/https?:\/\/((www)\.)?unpkg\.com\/@tryghost\/portal/]})}setupFirstPromoter({site:t,member:n}){if(K(["test"]))return null;const r=Qb({site:t});let i=Qc({site:t});if(i=i==null?void 0:i.replace(/^(\S*\.)?(\S*\.\S*)$/i,".$2"),r&&i){const o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src="https://cdn.firstpromoter.com/fprom.js",o.onload=o.onreadystatechange=function(){let s=this.readyState;if(!s||s==="complete"||s==="loaded")try{if(window.$FPROM.init(r,i),aw({member:n})){const l=n.email,c=n.uuid;if(window.$FPROM)window.$FPROM.trackSignup({email:l,uid:c});else{const p=window._fprom||[];window._fprom=p,p.push(["event","signup"]),p.push(["email",l]),p.push(["uid",c])}}}catch{}};const a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(o,a)}}async dispatchAction(t,n){clearTimeout(this.timeoutId),this.setState({action:`${t}:running`});try{const r=await _k({action:t,data:n,state:this.state,api:this.GhostApi});this.setState(r),r&&r.action&&!r.action.includes(":failed")&&(this.timeoutId=setTimeout(()=>{this.setState({action:""})},2e3))}catch(r){const i=X({type:`${t}:failed`,autoHide:!0,closeable:!0,status:"error",state:this.state,meta:{error:r}});this.setState({action:`${t}:failed`,popupNotification:i})}}updateStateForPreviewLinks(){const{site:t,...n}=this.fetchPreviewData(),{site:r,...i}=this.fetchLinkData(),o={site:{...this.state.site,...r||{},...t||{},plans:{...this.state.site&&this.state.site.plans,...(r||{}).plans,...(t||{}).plans}},...i,...n};this.handleSignupQuery({site:o.site,pageQuery:o.pageQuery}),this.setState(o)}async handleOfferQuery({site:t,offerId:n,member:r=this.state.member}){const{portal_button:i}=t;if(Gc(),!kt({member:r}))try{const o=await this.GhostApi.site.offer({offerId:n}),a=o==null?void 0:o.offers[0];if(tw({site:t,offer:a}))if(i)this.dispatchAction("openPopup",{page:"offer",pageData:o==null?void 0:o.offers[0]});else{const s=br({site:t,productId:a.tier.id}),l=a.cadence==="month"?s.monthlyPrice:s.yearlyPrice;if(this.dispatchAction("openPopup",{page:"loading"}),r){const{tierId:c,cadence:p}=Cn({site:t,priceId:l.id});this.dispatchAction("checkoutPlan",{plan:l.id,offerId:n,tierId:c,cadence:p})}else{const{tierId:c,cadence:p}=Cn({site:t,priceId:l.id});this.dispatchAction("signup",{plan:l.id,offerId:n,tierId:c,cadence:p})}}}catch{}}handleSignupQuery({site:t,pageQuery:n,member:r}){const i=/^offers\/(\w+?)\/?$/;let o=n;if(i.test(n||"")){const[,s]=n.match(i);this.handleOfferQuery({site:t,offerId:s,member:r});return}om({site:t,pageQuery:n})&&(o=om({site:t,pageQuery:n}));const a=Hb({site:t,priceId:o});if(n&&n!=="free"){Gc();const s=(a==null?void 0:a.id)||o;s!=="free"&&this.dispatchAction("openPopup",{page:"loading"});const{tierId:l,cadence:c}=Cn({site:t,priceId:s});this.dispatchAction("signup",{plan:s,tierId:l,cadence:c})}}getPageFromLinkPath(t){const n=/^signup\/?(?:\/(\w+?))?\/?$/,r=/^signup\/?(?:\/(\w+?))\/monthly\/?$/,i=/^signup\/?(?:\/(\w+?))\/yearly\/?$/;if(/^offers\/(\w+?)\/?$/.test(t))return{pageQuery:t};if(t==="signup")return{page:"signup"};if(r.test(t)){const[,a]=t.match(r);return{page:"signup",pageQuery:`${a}/monthly`}}else if(i.test(t)){const[,a]=t.match(i);return{page:"signup",pageQuery:`${a}/yearly`}}else if(n.test(t)){const[,a]=t.match(n);return{page:"signup",pageQuery:a}}else{if(t==="signup/free")return{page:"signup",pageQuery:"free"};if(t==="signup/monthly")return{page:"signup",pageQuery:"monthly"};if(t==="signup/yearly")return{page:"signup",pageQuery:"yearly"};if(t==="signin")return{page:"signin"};if(t==="account")return{page:"accountHome"};if(t==="account/plans")return{page:"accountPlan"};if(t==="account/profile")return{page:"accountProfile"};if(t==="account/newsletters")return{page:"accountEmail"}}return{}}getAccentColor(){const{accent_color:t}=this.state.site||{};return t}getContextPage({site:t,page:n,member:r}){if(!n){const i=at({site:t})?"signin":"signup";n=r?"accountHome":i}return n==="accountPlan"&&yr({member:r})&&!zi({member:r})&&(n="accountHome"),iu({page:n})}getContextMember({page:t,member:n,customSiteUrl:r}){return K(["dev","preview"],{customSiteUrl:r})?Wx({page:t})||Vx({page:t})?K(["dev"],{customSiteUrl:r})?n||Ya.free:K(["preview"])?Ya.preview:Ya.paid:null:n}getContextFromState(){const{site:t,member:n,action:r,page:i,lastPage:o,showPopup:a,pageQuery:s,pageData:l,popupNotification:c,customSiteUrl:p,t:d}=this.state,f=this.getContextPage({site:t,page:i,member:n}),y=this.getContextMember({page:f,member:n,customSiteUrl:p});return{site:t,action:r,brandColor:this.getAccentColor(),page:f,pageQuery:s,pageData:l,member:y,lastPage:o,showPopup:a,popupNotification:c,customSiteUrl:p,t:d,onAction:(v,_)=>this.dispatchAction(v,_)}}render(){return this.state.initStatus==="success"?u(Z_,{site:this.state.site,children:b(R.Provider,{value:this.getContextFromState(),children:[u(Um,{}),u(um,{}),u(mm,{})]})}):null}}const bg="ghost-portal-root";function t2(){const e=document.createElement("div");e.id=bg,document.body.appendChild(e)}function n2(){const e=document.querySelector("script[data-ghost]");if(e){const t=e.dataset.i18n==="true",n=e.dataset.ghost,r=e.dataset.key,i=e.dataset.api;return{siteUrl:n,apiKey:r,apiUrl:i,siteI18nEnabled:t}}return{}}function r2(){const e=new URL(window.location.href);e.searchParams.get("token")&&(e.searchParams.delete("token"),window.history.replaceState({},document.title,e.href))}function i2({siteUrl:e}){t2(),r2()}function o2(){const{siteUrl:e,apiKey:t,apiUrl:n,siteI18nEnabled:r}=n2(),i=e||window.location.origin;i2({siteUrl:i}),L0.render(u(q.StrictMode,{children:u(e2,{siteUrl:i,customSiteUrl:e,apiKey:t,apiUrl:n,siteI18nEnabled:r})}),document.getElementById(bg))}o2()});
|
|
3119
|
+
`+n;return b(U,{children:[u("style",{dangerouslySetInnerHTML:{__html:r}}),u("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]})}renderFrameContainer(){const{member:t,site:n,customSiteUrl:r}=this.context,i=zg({member:t}),o=window.innerWidth<480,a={...i.frame.common};let s="gh-portal-popup-background";return K(["preview"])&&(i.modalContainer.zIndex="3999997"),K(["preview"],{customSiteUrl:r})&&!n.disableBackground&&(s+=" preview"),K(["dev"])&&(s+=" dev"),u("div",{style:i.modalContainer,children:b(Uc,{style:a,title:"portal-popup",head:this.renderFrameStyles(),dataTestId:"portal-popup-frame",children:[u("div",{className:s,onClick:l=>this.handlePopupClose(l)}),u(Fg,{isMobile:o})]})})}render(){const{showPopup:t}=this.context;return t?this.renderFrameContainer():null}}Z(Ug,"contextType",R),Fa({products:au({numOfProducts:1})});function Se(){return(new Date().getTime()/1e3|0).toString(16)+"xxxxxxxxxxxxxxxx".replace(/[x]/g,function(){return(Math.random()*16|0).toString(16)}).toLowerCase()}function Fa({title:e="The Blueprint",description:t="Thoughts, stories and ideas.",logo:n="https://static.ghost.org/v4.0.0/images/ghost-orb-1.png",icon:r="https://static.ghost.org/v4.0.0/images/ghost-orb-1.png",url:i="https://portal.localhost",plans:o={monthly:5e3,yearly:15e4,currency:"USD"},products:a=au({numOfProducts:1}),portalProducts:s=a.map($=>$.id),accentColor:l="#45C32E",portalPlans:c=["free","monthly","yearly"],allowSelfSignup:p=!0,membersSignupAccess:d="all",freePriceName:f="Free",freePriceDescription:y="Free preview",isStripeConfigured:v=!0,portalButton:_=!0,portalName:m=!0,portalButtonIcon:h="icon-1",portalButtonSignupText:g="Subscribe now",portalButtonStyle:w="icon-and-text",membersSupportAddress:k="support@example.com",newsletters:C=[],commentsEnabled:S}={}){return{title:e,description:t,logo:n,icon:r,accent_color:l,url:i,plans:o,products:a,portal_products:s,allow_self_signup:p,members_signup_access:d,free_price_name:f,free_price_description:y,is_stripe_configured:v,portal_button:_,portal_name:m,portal_plans:c,portal_button_icon:h,portal_button_signup_text:g,portal_button_style:w,members_support_address:k,comments_enabled:!!S,newsletters:C}}function Bg({name:e="Black Friday",code:t="black-friday",displayTitle:n="Black Friday Sale!",displayDescription:r="Special deal for Black Friday. Subscribe now for only $15 per month and get additional benefits like accessing our podcast.",type:i="percent",cadence:o="month",amount:a=50,duration:s="repeating",durationInMonths:l=null,currencyRestriction:c=!1,currency:p=null,status:d="active",tierId:f="",tierName:y="Basic"}={}){return{id:`offer_${Se()}`,name:e,code:t,display_title:n,display_description:r,type:i,cadence:o,amount:a,duration:s,duration_in_months:l,currency_restriction:c,currency:p,status:d,tier:{id:`${f}`,name:y}}}function Je({name:e="Jamie Larson",email:t="jamie@example.com",firstname:n="Jamie",subscriptions:r=[],paid:i=!1,avatarImage:o="",subscribed:a=!0,email_suppression:s={suppressed:!1,info:null}}={}){return{uuid:`member_${Se()}`,email:t,name:e,firstname:n,paid:i,subscribed:a,avatar_image:o,subscriptions:r,email_suppression:s}}function au({numOfProducts:e=3}={}){const n=[Sr({name:"Bronze",description:"Access to all members articles",monthlyPrice:Ye({interval:"month",amount:700}),yearlyPrice:Ye({interval:"year",amount:7e3}),numOfBenefits:2}),Sr({name:"Silver",description:"Access to all members articles and weekly podcast",monthlyPrice:Ye({interval:"month",amount:1200}),yearlyPrice:Ye({interval:"year",amount:12e3}),numOfBenefits:3}),Sr({name:"Friends of the Blueprint",description:"Get access to everything and lock in early adopter pricing for life + listen to my podcast",monthlyPrice:Ye({interval:"month",amount:18e3}),yearlyPrice:Ye({interval:"year",amount:17e3}),numOfBenefits:4})].slice(0,e),r=Yg({});return[...n,r]}function Sr({type:e="paid",name:t="Basic",description:n="",id:r=`product_${Se()}`,monthlyPrice:i=Ye(),yearlyPrice:o=Ye({interval:"year"}),numOfBenefits:a=2}){return{id:r,name:t,description:n,monthlyPrice:e==="free"?null:i,yearlyPrice:e==="free"?null:o,type:e,benefits:Hg({numOfBenefits:a})}}function Yg({name:e="Free tier",description:t="Free tier description",id:n=`product_${Se()}`,numOfBenefits:r=2}){return{id:n,name:e,type:"free",description:t,benefits:Hg({numOfBenefits:r})}}function Hg({numOfBenefits:e}){return[Ua({name:"Limited early adopter pricing"}),Ua({name:"Latest gear reviews"}),Ua({name:"Weekly email newsletter"}),Ua({name:"Listen to my podcast"})].slice(0,e)}function Ua({id:e=`benefit_${Se()}`,name:t="Benefit"}){return{id:e,name:t}}function Ye({interval:e="month",amount:t=e==="month"?500:5e3,nickname:n=e==="month"?"Monthly":"Yearly",description:r=null,currency:i="usd",active:o=!0,id:a=`price_${Se()}`}={}){return{id:a,active:o,nickname:n,currency:i,amount:t,interval:e,description:r,stripe_price_id:`price_${Se()}`,stripe_product_id:`prod_${Se()}`,type:"recurring"}}function Pn({id:e=`sub_${Se()}`,status:t="active",currency:n="USD",interval:r="year",amount:i=r==="month"?500:5e3,nickname:o=r==="month"?"Monthly":"Yearly",cardLast4:a="4242",offer:s=Jx,priceId:l=`price_${Se()}`,startDate:c="2021-10-05T03:18:30.000Z",currentPeriodEnd:p="2022-10-05T03:18:30.000Z",cancelAtPeriodEnd:d=!1}={}){return{id:e,customer:{id:`cus_${Se()}`,name:"Jamie",email:"jamie@example.com"},plan:{id:`price_${Se()}`,nickname:o,amount:i,interval:r,currency:n},offer:s,status:t,start_date:c,default_payment_card_last4:a,cancel_at_period_end:d,cancellation_reason:null,current_period_end:p,price:{id:`stripe_price_${Se()}`,price_id:l,nickname:o,amount:i,interval:r,type:"recurring",currency:n,product:{id:`stripe_prod_${Se()}`,product_id:`prod_${Se()}`}}}}function Gg(){const e=au({numOfProducts:1}),t=e.map(r=>r.id);return Fa({products:e,portalPlans:["free","monthly","yearly"],portalProducts:t})}Gg();const Qx=Fa({products:[Sr({numOfBenefits:2,type:"free"})]}),Jx=Bg({tierId:(wm=Qx.products[0])==null?void 0:wm.id});Je(),Je({paid:!0,subscriptions:[Pn()]}),Je({paid:!0,subscriptions:[]}),Je({paid:!0,subscriptions:[Pn({amount:0})]}),Je({paid:!0,subscriptions:[Pn({amount:1500,startDate:"2019-05-01T11:42:40.000Z",currentPeriodEnd:"2021-06-05T11:42:40.000Z"})]}),Gg();const Ba=[Yg({name:"Free",description:"Free tier description which is actually a pretty long description",numOfBenefits:2}),Sr({name:"The Blueprint",description:"",monthlyPrice:Ye({interval:"month",amount:500}),yearlyPrice:Ye({interval:"year",amount:5e3}),numOfBenefits:3}),Sr({name:"Friends of the Blueprint Silver",description:"Access to all members articles and weekly podcast",monthlyPrice:Ye({interval:"month",amount:1200}),yearlyPrice:Ye({interval:"year",amount:11e3}),numOfBenefits:4})],Er=Fa({title:"The Blueprint",description:"Thoughts, stories and ideas.",logo:"https://static.ghost.org/v4.0.0/images/ghost-orb-1.png",icon:"https://static.ghost.org/v4.0.0/images/ghost-orb-1.png",accentColor:"#45C32E",url:"https://portal.localhost",plans:{monthly:5e3,yearly:15e4,currency:"USD"},products:Ba,portalProducts:Ba.map(e=>e.id),allowSelfSignup:!0,membersSignupAccess:"all",freePriceName:"Free",freePriceDescription:"Free preview",isStripeConfigured:!0,portalButton:!0,portalName:!0,portalPlans:["free","monthly","yearly"],portalButtonIcon:"icon-1",portalButtonSignupText:"Subscribe now",portalButtonStyle:"icon-and-text",membersSupportAddress:"support@example.com",commentsEnabled:!0,newsletters:[{id:"weekly",name:"Weekly Rundown",description:"Best of last week",subscribe_on_signup:!0,paid:!0},{id:"daily",name:"Daily Brief",description:"One email every day",subscribe_on_signup:!1,paid:!1}]}),Wg=Bg({tierId:(xm=Er.products[1])==null?void 0:xm.id}),Ya={free:Je({name:"Jamie Larson",email:"jamie@example.com",firstname:"Jamie",subscriptions:[],paid:!1,avatarImage:"",subscribed:!0}),paid:Je({paid:!0,subscriptions:[Pn({status:"active",currency:"USD",interval:"year",amount:5e3,cardLast4:"4242",startDate:"2021-10-05T03:18:30.000Z",currentPeriodEnd:"2022-10-05T03:18:30.000Z",cancelAtPeriodEnd:!1})]}),complimentary:Je({paid:!0,subscriptions:[]}),complimentaryWithSubscription:Je({paid:!0,subscriptions:[Pn({amount:0})]}),preview:Je({paid:!0,subscriptions:[Pn({amount:1500,startDate:"2019-05-01T11:42:40.000Z",currentPeriodEnd:"2021-06-05T11:42:40.000Z"})]})};function Xx(){var n;if(!Ba||!Ba[1])return null;let e=(n=Er==null?void 0:Er.products)==null?void 0:n[1].monthlyPrice,t=Je({paid:!0,subscriptions:[Pn({offer:null,priceId:e==null?void 0:e.id,status:"active",currency:e==null?void 0:e.currency,interval:e==null?void 0:e.interval,amount:e==null?void 0:e.amount,cardLast4:"4242",startDate:"2021-10-05T03:18:30.000Z",currentPeriodEnd:"2022-10-05T03:18:30.000Z",cancelAtPeriodEnd:!1})]});return{site:Er,member:t}}function Zx({data:e,state:t}){return{page:e.page,popupNotification:null,lastPage:e.lastPage||null,pageData:e.pageData||t.pageData}}function ek({state:e}){return{showPopup:!e.showPopup}}function tk({data:e}){return{showPopup:!0,page:e.page,...e.pageQuery?{pageQuery:e.pageQuery}:{},...e.pageData?{pageData:e.pageData}:{}}}function nk({state:e}){return e.lastPage?{page:e.lastPage}:Vg({state:e})}function Vg({state:e}){return Gc(),{showPopup:!1,lastPage:null,pageQuery:"",popupNotification:null,page:e.page==="magiclink"?"":e.page}}function rk({data:e}){return{showNotification:!0,...e}}function ik({state:e}){return{showNotification:!1}}async function ok({api:e,state:t}){try{return await e.member.signout(),{action:"signout:success"}}catch{return{action:"signout:failed",popupNotification:X({type:"signout:failed",autoHide:!1,closeable:!0,state:t,status:"error",message:"Failed to log out, please try again"})}}}async function ak({data:e,api:t,state:n}){try{return await t.member.sendMagicLink({...e,emailType:"signin"}),{page:"magiclink",lastPage:"signin"}}catch(r){return{action:"signin:failed",popupNotification:X({type:"signin:failed",autoHide:!1,closeable:!0,state:n,status:"error",message:_t.getMessageFromError(r,"Failed to log in, please try again")})}}}async function sk({data:e,state:t,api:n}){try{let{plan:r,tierId:i,cadence:o,email:a,name:s,newsletters:l,offerId:c}=e;if(r.toLowerCase()==="free")await n.member.sendMagicLink({emailType:"signup",...e});else return i&&o?await n.member.checkoutPlan({plan:r,tierId:i,cadence:o,email:a,name:s,newsletters:l,offerId:c}):({tierId:i,cadence:o}=Cn({site:t==null?void 0:t.site,priceId:r}),await n.member.checkoutPlan({plan:r,tierId:i,cadence:o,email:a,name:s,newsletters:l,offerId:c})),{page:"loading"};return{page:"magiclink",lastPage:"signup"}}catch(r){const i=(r==null?void 0:r.message)||"Failed to sign up, please try again";return{action:"signup:failed",popupNotification:X({type:"signup:failed",autoHide:!1,closeable:!0,state:t,status:"error",message:i})}}}async function lk({data:e,state:t,api:n}){try{let{plan:r,offerId:i,tierId:o,cadence:a}=e;(!o||!a)&&({tierId:o,cadence:a}=Cn({site:t==null?void 0:t.site,priceId:r})),await n.member.checkoutPlan({plan:r,tierId:o,cadence:a,offerId:i,metadata:{checkoutType:"upgrade"}})}catch{return{action:"checkoutPlan:failed",popupNotification:X({type:"checkoutPlan:failed",autoHide:!1,closeable:!0,state:t,status:"error",message:"Failed to process checkout, please try again"})}}}async function ck({data:e,state:t,api:n}){try{const{plan:r,planId:i,subscriptionId:o,cancelAtPeriodEnd:a}=e,{tierId:s,cadence:l}=Cn({site:t==null?void 0:t.site,priceId:i});await n.member.updateSubscription({planName:r,tierId:s,cadence:l,subscriptionId:o,cancelAtPeriodEnd:a,planId:i});const c=await n.member.sessionData(),p="updateSubscription:success";return{action:p,popupNotification:X({type:p,autoHide:!0,closeable:!0,state:t,status:"success",message:"Subscription plan updated successfully"}),page:"accountHome",member:c}}catch{return{action:"updateSubscription:failed",popupNotification:X({type:"updateSubscription:failed",autoHide:!1,closeable:!0,state:t,status:"error",message:"Failed to update subscription, please try again"})}}}async function uk({data:e,state:t,api:n}){try{const{subscriptionId:r,cancellationReason:i}=e;return await n.member.updateSubscription({subscriptionId:r,smartCancel:!0,cancellationReason:i}),{action:"cancelSubscription:success",page:"accountHome",member:await n.member.sessionData()}}catch{return{action:"cancelSubscription:failed",popupNotification:X({type:"cancelSubscription:failed",autoHide:!1,closeable:!0,state:t,status:"error",message:"Failed to cancel subscription, please try again"})}}}async function dk({data:e,state:t,api:n}){try{const{subscriptionId:r}=e;return await n.member.updateSubscription({subscriptionId:r,cancelAtPeriodEnd:!1}),{action:"continueSubscription:success",page:"accountHome",member:await n.member.sessionData()}}catch{return{action:"continueSubscription:failed",popupNotification:X({type:"continueSubscription:failed",autoHide:!1,closeable:!0,state:t,status:"error",message:"Failed to cancel subscription, please try again"})}}}async function pk({data:e,state:t,api:n}){try{await n.member.editBilling(e)}catch{return{action:"editBilling:failed",popupNotification:X({type:"editBilling:failed",autoHide:!1,closeable:!0,state:t,status:"error",message:"Failed to update billing information, please try again"})}}}async function fk(){return{popupNotification:null}}async function hk({data:e,state:t}){let{action:n,message:r=""}=e;return n=n||"showPopupNotification:success",{popupNotification:X({type:n,autoHide:!0,closeable:!0,state:t,status:"success",message:r})}}async function gk({data:e,state:t,api:n}){try{const{newsletters:r,enableCommentNotifications:i}=e;if(!r&&i===void 0)return{};const o={};return r&&(o.newsletters=r),i!==void 0&&(o.enableCommentNotifications=i),{action:"updateNewsletterPref:success",member:await n.member.update(o)}}catch{return{action:"updateNewsletterPref:failed",popupNotification:X({type:"updateNewsletter:failed",autoHide:!0,closeable:!0,state:t,status:"error",message:"Failed to update newsletter settings"})}}}async function mk({state:e,api:t}){try{return await t.member.deleteSuppression(),{action:"removeEmailFromSuppressionList:success",popupNotification:X({type:"removeEmailFromSuppressionList:success",autoHide:!0,closeable:!0,state:e,status:"success",message:"You have been successfully resubscribed"})}}catch{return{action:"removeEmailFromSuppressionList:failed",popupNotification:X({type:"removeEmailFromSuppressionList:failed",autoHide:!0,closeable:!0,state:e,status:"error",message:"Your email has failed to resubscribe, please try again"})}}}async function yk({data:e,state:t,api:n}){try{const{subscribed:r}=e,i=await n.member.update({subscribed:r});if(!i)throw new Error("Failed to update newsletter");const o="updateNewsletter:success";return{action:o,member:i,popupNotification:X({type:o,autoHide:!0,closeable:!0,state:t,status:"success",message:"Email newsletter settings updated"})}}catch{return{action:"updateNewsletter:failed",popupNotification:X({type:"updateNewsletter:failed",autoHide:!0,closeable:!0,state:t,status:"error",message:"Failed to update newsletter settings"})}}}async function vk({data:e,state:t,api:n}){const{email:r}=e,i=qb({member:t.member});if(r!==i)try{return await n.member.updateEmailAddress({email:r}),{success:!0}}catch(o){return{success:!1,error:o}}return null}async function bk({data:e,state:t,api:n}){const{name:r}=e;if(Jb({member:t.member})!==r)try{const o=await n.member.update({name:r});if(!o)throw new Error("Failed to update member");return{member:o,success:!0}}catch(o){return{success:!1,error:o}}return null}async function wk({state:e,api:t}){if(e.member)try{const n=await t.member.sessionData();return n?{member:n,success:!0,action:"refreshMemberData:success"}:null}catch(n){return{success:!1,error:n,action:"refreshMemberData:failed"}}return null}async function xk({data:e,state:t,api:n}){const[r,i]=await Promise.all([bk({data:e,state:t,api:n}),vk({data:e,state:t,api:n})]);if(r&&i){if(i.success)return{action:"updateProfile:success",...r.success?{member:r.member}:{},page:"accountHome",popupNotification:X({type:"updateProfile:success",autoHide:!0,closeable:!0,status:"success",state:t,message:"Check your inbox to verify email update"})};const o=r.success?"Failed to send verification email":"Failed to update account data";return{action:"updateProfile:failed",...r.success?{member:r.member}:{},popupNotification:X({type:"updateProfile:failed",autoHide:!0,closeable:!0,status:"error",message:o,state:t})}}else if(r){const o=r.success?"updateProfile:success":"updateProfile:failed",a=r.success?"success":"error",s=r.success?"Account details updated successfully":"Failed to update account details";return{action:o,...r.success?{member:r.member}:{},...r.success?{page:"accountHome"}:{},popupNotification:X({type:o,autoHide:r.success,closeable:!0,status:a,state:t,message:s})}}else if(i){const o=i.success?"updateProfile:success":"updateProfile:failed",a=i.success?"success":"error",s=i.success?"Check your inbox to verify email update":"Failed to send verification email";return{action:o,...i.success?{page:"accountHome"}:{},popupNotification:X({type:o,autoHide:i.success,closeable:!0,status:a,state:t,message:s})}}return{action:"updateProfile:success",page:"accountHome",popupNotification:X({type:"updateProfile:success",autoHide:!0,closeable:!0,status:"success",state:t,message:"Account details updated successfully"})}}const kk={togglePopup:ek,openPopup:tk,closePopup:Vg,switchPage:Zx,openNotification:rk,closeNotification:ik,back:nk,signout:ok,signin:ak,signup:sk,updateSubscription:ck,cancelSubscription:uk,continueSubscription:dk,updateNewsletter:yk,updateProfile:xk,refreshMemberData:wk,clearPopupNotification:fk,editBilling:pk,checkoutPlan:lk,updateNewsletterPreference:gk,showPopupNotification:hk,removeEmailFromSuppressionList:mk};async function _k({action:e,data:t,state:n,api:r}){const i=kk[e];return i?await i({data:t,state:n,api:r})||{}:{}}const v2="";function Sk({event:e,form:t,errorEl:n,siteUrl:r,submitHandler:i}){var _;t.removeEventListener("submit",i),e.preventDefault(),n&&(n.innerText=""),t.classList.remove("success","invalid","error");let o=e.target.querySelector("input[data-members-email]"),a=e.target.querySelector("input[data-members-name]"),s=((_=t==null?void 0:t.dataset)==null?void 0:_.membersAutoredirect)||"true",l=o==null?void 0:o.value,c=a&&a.value||void 0,p,d=[],f=e.target.querySelectorAll("input[data-members-label]")||[];for(let m=0;m<f.length;++m)d.push(f[m].value);t.dataset.membersForm&&(p=t.dataset.membersForm),t.classList.add("loading");const y=La(),v={email:l,emailType:p,labels:d,name:c,autoRedirect:s==="true"};y&&(v.urlHistory=y),fetch(`${r}/members/api/send-magic-link/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(v)}).then(function(m){if(t.addEventListener("submit",i),t.classList.remove("loading"),m.ok)t.classList.add("success");else return _t.fromApiResponse(m).then(h=>{throw h})}).catch(m=>{n&&(n.innerText=_t.getMessageFromError(m,"There was an error sending the email, please try again")),t.classList.add("error")})}function Ek({event:e,el:t,errorEl:n,siteUrl:r,site:i,member:o,clickHandler:a}){t.removeEventListener("click",a),e.preventDefault();let s=t.dataset.membersPlan,l=Yb(i,s.toLowerCase()),c=t.dataset.membersSuccess,p=t.dataset.membersCancel,d,f;c&&(d=new URL(c,window.location.href).href),p&&(f=new URL(p,window.location.href).href),n&&(n.innerText=""),t.classList.add("loading");const y=o?{checkoutType:"upgrade"}:{},v=La();return v&&(y.urlHistory=v),fetch(`${r}/members/api/session`,{credentials:"same-origin"}).then(function(_){return _.ok?_.text():null}).then(function(_){return fetch(`${r}/members/api/create-stripe-checkout-session/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...l,identity:_,successUrl:d,cancelUrl:f,metadata:y})}).then(function(m){if(!m.ok)throw new Error("Could not create stripe checkout session");return m.json()})}).then(function(_){return _.url?window.location.assign(_.url):window.Stripe(_.publicKey).redirectToCheckout({sessionId:_.sessionId}).then(function(h){if(h.error)throw new Error(h.error.message)})}).catch(function(_){console.error(_),t.addEventListener("click",a),t.classList.remove("loading"),n&&(n.innerText=_.message),t.classList.add("error")})}function Ck({siteUrl:e,site:t,member:n}){e&&(e=e.replace(/\/$/,""),Array.prototype.forEach.call(document.querySelectorAll("form[data-members-form]"),function(r){let i=r.querySelector("[data-members-error]");function o(a){Sk({event:a,errorEl:i,form:r,siteUrl:e,submitHandler:o})}r.addEventListener("submit",o)}),Array.prototype.forEach.call(document.querySelectorAll("[data-members-plan]"),function(r){let i=r.querySelector("[data-members-error]");function o(a){Ek({el:r,event:a,errorEl:i,member:n,site:t,siteUrl:e,clickHandler:o})}r.addEventListener("click",o)}),Array.prototype.forEach.call(document.querySelectorAll("[data-members-edit-billing]"),function(r){let i=r.querySelector("[data-members-error]"),o=r.dataset.membersSuccess,a=r.dataset.membersCancel,s,l;o&&(s=new URL(o,window.location.href).href),a&&(l=new URL(a,window.location.href).href);function c(p){r.removeEventListener("click",c),p.preventDefault(),i&&(i.innerText=""),r.classList.add("loading"),fetch(`${e}/members/api/session`,{credentials:"same-origin"}).then(function(d){return d.ok?d.text():null}).then(function(d){return fetch(`${e}/members/api/create-stripe-update-session/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identity:d,successUrl:s,cancelUrl:l})}).then(function(f){if(!f.ok)throw new Error("Could not create stripe checkout session");return f.json()})}).then(function(d){return window.Stripe(d.publicKey).redirectToCheckout({sessionId:d.sessionId})}).then(function(d){if(d.error)throw new Error(d.error.message)}).catch(function(d){console.error(d),r.addEventListener("click",c),r.classList.remove("loading"),i&&(i.innerText=d.message),r.classList.add("error")})}r.addEventListener("click",c)}),Array.prototype.forEach.call(document.querySelectorAll("[data-members-signout]"),function(r){function i(o){r.removeEventListener("click",i),o.preventDefault(),r.classList.remove("error"),r.classList.add("loading"),fetch(`${e}/members/api/session`,{method:"DELETE"}).then(function(a){a.ok?window.location.replace(e):(r.addEventListener("click",i),r.classList.remove("loading"),r.classList.add("error"))})}r.addEventListener("click",i)}),Array.prototype.forEach.call(document.querySelectorAll("[data-members-cancel-subscription]"),function(r){let i=r.parentElement.querySelector("[data-members-error]");function o(a){r.removeEventListener("click",o),a.preventDefault(),r.classList.remove("error"),r.classList.add("loading");let s=r.dataset.membersCancelSubscription;return i&&(i.innerText=""),fetch(`${e}/members/api/session`,{credentials:"same-origin"}).then(function(l){return l.ok?l.text():null}).then(function(l){return fetch(`${e}/members/api/subscriptions/${s}/`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({identity:l,smart_cancel:!0})})}).then(function(l){l.ok?window.location.reload():(r.addEventListener("click",o),r.classList.remove("loading"),r.classList.add("error"),i&&(i.innerText="There was an error cancelling your subscription, please try again."))})}r.addEventListener("click",o)}),Array.prototype.forEach.call(document.querySelectorAll("[data-members-continue-subscription]"),function(r){let i=r.parentElement.querySelector("[data-members-error]");function o(a){r.removeEventListener("click",o),a.preventDefault(),r.classList.remove("error"),r.classList.add("loading");let s=r.dataset.membersContinueSubscription;return i&&(i.innerText=""),fetch(`${e}/members/api/session`,{credentials:"same-origin"}).then(function(l){return l.ok?l.text():null}).then(function(l){return fetch(`${e}/members/api/subscriptions/${s}/`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({identity:l,cancel_at_period_end:!1})})}).then(function(l){l.ok?window.location.reload():(r.addEventListener("click",o),r.classList.remove("loading"),r.classList.add("error"),i&&(i.innerText="There was an error continuing your subscription, please try again."))})}r.addEventListener("click",o)}))}var su={},Pk={get exports(){return su},set exports(e){su=e}};const Nk={"{{discount}}% discount":"{{discount}}% afslag","{{trialDays}} days free":"{{trialDays}} dae gratis","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"'n Aanmeldskakel is na u epos gestuur. As dit nie binne 3 minute aankom nie, moet u asseblief u spam-vouer nagaan.",Account:"Rekening","Account settings":"Rekening instellings","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Na afloop van die gratis proeftydperk sal u die vasgestelde pry vir die vlak wat u gekies het, betaal. U kan altyd voor die tyd kanselleer.","Already a member?":"Is u reeds 'n lid?",Back:"Terug","Back to Log in":"Terug na aanmelding","Cancel subscription":"Kanselleer inskrywing","Cancellation reason":"Kansellasie rede","Choose a different plan":"Kies 'n ander plan","Choose your newsletters":"Kies u nuusbriefs",Close:"Sluit",Comments:"Kommentaar",Confirm:"Bevestig",Continue:"Gaan voort","Delete account":"Verwyder rekening","Don't have an account?":"Het u nie 'n rekening nie?",Email:"E-pos","Email preference updated.":"E-pos instellings opgedateer.","Email preferences":"E-pos instellings",Emails:"E-posse","Emails disabled":"E-posse afgeskakel","Get help":"Kry hulp","Get notified when someone replies to your comment":"Ontvang 'n kennisgewing wanneer iemand op u kommentaar reageer","Give feedback on this post":"Gee terugvoering oor hierdie pos","Less like this":"Minder soos hierdie",Manage:"Bestuur",Monthly:"Maandeliks","More like this":"Meer soos hierdie",Name:"Naam","Not receiving emails?":"Ontvang u nie e-posse nie?","Now check your email!":"Kyk nou u e-pos!","Powered by Ghost":"Aangedryf deur Ghost",Price:"Prys","Re-enable emails":"Her-aktiveer eposse",Retry:"Probeer weer",Save:"Stoor","Sending login link...":"Stuur aanmeldskakel...","Sending...":"Stuur...","Sign in":"Meld aan","Sign up":"Registreer","Start {{amount}}-day free trial":"Begin {{amount}}-dag gratis proeftydperk","Submit feedback":"Stuur terugvoering","Successfully unsubscribed":"Suksesvol afgemeld","Thanks for the feedback!":"Dankie vir die terugvoering!","That didn't go to plan":"Dit het nie volgens plan verloop nie","This site is invite-only, contact the owner for access.":"Hierdie webwerf is slegs op uitnodiging, kontak die eienaar vir toegang.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Om die registrasie te voltooi, kliek op die bevestigingskakel in jou inboks. As dit nie binne 3 minute aankom nie, kontroleer asseblief jou spam-vouer!","Unsubscribe from all emails":"Meld af van alle e-posse","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Deur van eposse af te skakel, sal nie u betaalde subskripsie van {{title}} kanselleer nie","Update your preferences":"Opdateer u voorkeure","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Ons kon u nie afskakel nie, omdat die e-pos adres nie gevind is nie. Kontak asseblief die webwerf eienaar.",Yearly:"Jaarliks","You have been successfully resubscribed":"U is suksesvol heringeskryf","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"U ontvang nie e-posse nie, omdat u onlangs 'n boodskap as spam gemerk het, of omdat boodskappe nie na die e-pos adres wat u verskaf het gestuur kon word nie.","Your account":"U rekening","Your input helps shape what gets published.":"U insette help om te bepaal wat gepubliseer word."},Tk={"{{discount}}% discount":"{{discount}}% de descompte","{{trialDays}} days free":"{{trialDays}} dies de franc","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"S'ha enviat un enllaç d'inici de sessió al teu correu electrònic. Si no t'arriba en 3 minuts, reivsa la teva carpeta de correu brossa.",Account:"Compte","Account settings":"Configuració del compte","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Després que finalitzi el període de prova gratuït, se't cobrarà el preu regular del nivell que hagis triat. Sempre pots cancel·lar abans d'això.","Already a member?":"Ja ets membre?",Back:"Tornar enrere","Back to Log in":"TOrnar al inici de sessió","Cancel subscription":"Cancel·la la subscripció","Cancellation reason":"Motiu de la cancel·lació","Choose a different plan":"Seleccioneu un pla diferent","Choose your newsletters":"Selecciona els teus butlletins",Close:"Tancar",Comments:"Comentaris",Confirm:"Confirmar",Continue:"Continuar","Delete account":"Esborra compte","Don't have an account?":"No tens un compte?",Email:"Correu electrònic","Email preference updated.":"Preferència del correu electrònic actualitzada","Email preferences":"Preferència del correu electrònic",Emails:"Correus electrònics","Emails disabled":"Correus electrònics desactivats","Get help":"Demanar ajuda","Get notified when someone replies to your comment":"Rep notificacions quan algú et respongui al teu comentari","Give feedback on this post":"Enviar comentaris sobre aquesta publicació","Less like this":"Menys com aquesta",Manage:"Gestionar",Monthly:"Mensual","More like this":"Més com aquesta",Name:"Nom","Not receiving emails?":"No reps els correus electrònics?","Now check your email!":"Revisar ara el teu correu electrònic!","Powered by Ghost":"Impulsat per Ghost",Price:"Preu","Re-enable emails":"Torna a activar els correus electrònics",Retry:"Torna-ho a provar",Save:"Desa","Sending login link...":"Enviant enllaç d'inici de sesió...","Sending...":"Enviant","Sign in":"Inici de sesió","Sign up":"Registrar-se","Start {{amount}}-day free trial":"Comença el període de proves de {{amount}} dies","Submit feedback":"Enviar comentaris","Successfully unsubscribed":"T'has donat de baixa correctament","Thanks for the feedback!":"Gràcies pels teus comentaris!","That didn't go to plan":"Això no ha anat com estava previst","This site is invite-only, contact the owner for access.":"Aquest llog és només per invitació, contacta amb el propietari per obtenir accés.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Per completar el registre, fes clic sobre l'enllaç de confirmació al teu correu electrònic. Si no t'arria en 3 minuts, revisa la teva carpeta de correu brossa!","Unsubscribe from all emails":"Cancel·la les subscripcions a tots els correus electrònics","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Cancel·lar la subscripció al teu correu electrònic no cancel·larà la teva subscripció de pagament a {{title}}","Update your preferences":"Actualitza les preferències","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"No hem pogut cancel·lar la teva subscripció ja que no s'ha trobar la direcció de correu electrònic. Si us plau, contacta amb el propietari del lloc web.",Yearly:"Anual","You have been successfully resubscribed":"T'has tornat a subscribir amb èxit","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"No estas reben correus electrònics perquè has marcat recentment com SPAM o perque no s'han pogut entregar els missatges a la direcció de correu electrònic proporcionada.","Your account":"El teu copte","Your input helps shape what gets published.":"La teva opinió ajuda a definir el que es publica."},$k={"{{discount}}% discount":"{{discount}}% sleva","{{trialDays}} days free":"{{trialDays}} dní zdarma","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Odkaz pro přihlášení byl odeslán do vaší e-mailové schránky. Pokud nepřijde do 3 minut, zkontrolujte prosím svou složku nevyžádaných zpráv (spam).",Account:"Účet","Account settings":"Nastavení účtu","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Po skončení zkušební doby vám bude účtována běžná cena pro vybranou úroveň. Vždy můžete předtím zrušit odběr.","Already a member?":"Již jste členem?",Back:"Zpět","Back to Log in":"Zpět na přihlášení","Cancel subscription":"Zrušit odběr","Cancellation reason":"Důvod zrušení","Choose a different plan":"Vybrat jiný plán","Choose your newsletters":"Vyberte si newsletter",Close:"Zavřít",Comments:"Komentáře",Confirm:"Potvrdit",Continue:"Pokračovat","Delete account":"Smazat účet","Don't have an account?":"Nemáte účet?",Email:"E-mail","Email preference updated.":"Předvolby e-mailu byly aktualizovány.","Email preferences":"Předvolby e-mailu",Emails:"E-maily","Emails disabled":"E-maily vypnuty","Get help":"Získat pomoc","Get notified when someone replies to your comment":"Dostávat upozornění, když někdo odpoví na váš komentář","Give feedback on this post":"Dát zpětnou vazbu k tomuto příspěvku","Less like this":"Méně podobných",Manage:"Spravovat",Monthly:"Měsíčně","More like this":"Víc podobných",Name:"Jméno","Not receiving emails?":"Nepřicházejí vám e-maily?","Now check your email!":"Zkontrolujte svou e-mailovou schránku!","Powered by Ghost":"Používá technologii Ghost",Price:"Cena","Re-enable emails":"Znovu povolit e-maily",Retry:"Zkusit znovu",Save:"Uložit","Sending login link...":"Odesílání přihlašovacího odkazu...","Sending...":"Odesílání...","Sign in":"Přihlásit se","Sign up":"Registrovat se","Start {{amount}}-day free trial":"Začít {{amount}}denní zkušební verzi zdarma","Submit feedback":"Odeslat zpětnou vazbu","Successfully unsubscribed":"Úspěšné odhlášení","Thanks for the feedback!":"Děkujeme za zpětnou vazbu!","That didn't go to plan":"Něco se nepovedlo","This site is invite-only, contact the owner for access.":"Tento web je pouze pro pozvané, kontaktujte provozovatele pro přístup.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Pro dokončení registrace klikněte na potvrzovací odkaz ve vaší e-mailové schránce. Pokud nepřijde do 3 minut, zkontrolujte prosím složku nevyžádaných zpráv (spam)!","Unsubscribe from all emails":"Odhlásit se od všech e-mailů","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Odhlášení ze newsletterů nezruší váš placený odběr {{title}}","Update your preferences":"Aktualizovat předvolby","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Nemohli jsme vás odhlásit, protože e-mailová adresa nebyla nalezena. Kontaktujte prosím provozovatele webu.",Yearly:"Ročně","You have been successfully resubscribed":"Úspěšně jste se opět přihlásili k odběru","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Nepřicházejí vám e-maily, protože jste buď označili nedávnou zprávu jako spam, nebo doručování zpráv na vámi zadaný e-mail nefunguje.","Your account":"Váš účet","Your input helps shape what gets published.":"Vaše připomínky pomáhají spoluvytvářet obsah webu."},Rk={"{{discount}}% discount":"{{discount}}% Rabatt","{{trialDays}} days free":"{{trialDays}} Tage kostenlos","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Ein Login-Link wurde an Deine E-Mail-Adresse gesendet. Falls die E-Mail nicht innerhalb von 3 Minuten ankommt, überprüfe bitte Deinen Spam-Ordner.",Account:"Benutzerkonto","Account settings":"Benutzerkonto-Einstellungen","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Wenn das kostenlose Testabo endet, wirst Du den regulären Preis für den gewählten Tarif bezahlen. Du kannst das Abonnement jederzeit kündigen.","Already a member?":"Bereits Mitglied?",Back:"Zurück","Back to Log in":"Zurück zur Anmeldung","Cancel subscription":"Abonnierung kündigen","Cancellation reason":"Kündigungsgrund","Choose a different plan":"Wähle einen anderen Plan","Choose your newsletters":"Wähle Deine Newsletter",Close:"Schließen",Comments:"Kommentare",Confirm:"Bestätigen",Continue:"Weiter","Delete account":"Konto löschen","Don't have an account?":"Noch kein Konto?",Email:"Email","Email preference updated.":"Email Einstellungen aktualisiert.","Email preferences":"Email Einstellungen",Emails:"Emails","Emails disabled":"Emails deaktiviert","Get help":"Hilfe erhalten","Get notified when someone replies to your comment":"Erhalte eine Benachrichtigung, wenn jemand auf Deinen Kommentar antwortet","Give feedback on this post":"Gebe Feedback zu diesem Beitrag","Less like this":"Weniger davon",Manage:"Verwalten",Monthly:"Monatlich","More like this":"Mehr davon",Name:"Name","Not receiving emails?":"Keine Emails erhalten?","Now check your email!":"Überprüfe jetzt Deine E-Mails!","Powered by Ghost":"Powered by Ghost",Price:"Preis","Re-enable emails":"Emails wieder aktivieren",Retry:"Nochmals versuchen",Save:"Speichern","Sending login link...":"Sende Login-Link...","Sending...":"Sende...","Sign in":"Einloggen","Sign up":"Registrieren","Start {{amount}}-day free trial":"Starte {{amount}}-tägiges kostenloses Testabo","Submit feedback":"Feedback senden","Successfully unsubscribed":"Erfolgreich abgemeldet","Thanks for the feedback!":"Danke für das Feedback!","That didn't go to plan":"Das verlief nicht nach Plan","This site is invite-only, contact the owner for access.":"Diese Seite ist nur nach Einladung zugänglich. Bitte kontaktiere den Seitenbetreiber.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Um die Registrierung abzuschließen, klicke auf den Bestätigungslink in Deinem E-Mail Postfach. Falls die E-Mail nicht innerhalb von 3 Minuten ankommt, überprüfe bitte Deinen Spam-Ordner!","Unsubscribe from all emails":"Von allen Emails abmelden","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Wenn Du Dich von Emails abmeldest, wird Dein bezahltes Abonnement bei {{title}} nicht gekündigt","Update your preferences":"Aktualisiere Deine Einstellungen","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Wir konnten Dich nicht abmelden, da die E-Mail-Adresse nicht gefunden wurde. Bitte kontaktiere den Seitenbetreiber.",Yearly:"Jährlich","You have been successfully resubscribed":"Du wurdest erfolgreich wieder angemeldet","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Du erhältst keine Emails, da Du entweder eine kürzlich empfangene Nachricht als Spam markiert hast oder weil Nachrichten nicht an Deine angegebene E-Mail-Adresse zugestellt werden konnten.","Your account":"Dein Konto","Your input helps shape what gets published.":"Deine Eingaben helfen dabei, was veröffentlicht wird."},Ok={"{{discount}}% discount":"","{{trialDays}} days free":"","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"",Account:"","Account settings":"","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"","Already a member?":"",Back:"","Back to Log in":"","Cancel subscription":"","Cancellation reason":"","Choose a different plan":"","Choose your newsletters":"",Close:"",Comments:"",Confirm:"",Continue:"","Delete account":"","Don't have an account?":"",Email:"","Email preference updated.":"","Email preferences":"",Emails:"","Emails disabled":"","Get help":"","Get notified when someone replies to your comment":"","Give feedback on this post":"","Less like this":"",Manage:"",Monthly:"","More like this":"",Name:"","Not receiving emails?":"","Now check your email!":"","Powered by Ghost":"",Price:"","Re-enable emails":"",Retry:"",Save:"","Sending login link...":"","Sending...":"","Sign in":"","Sign up":"","Start {{amount}}-day free trial":"","Submit feedback":"","Successfully unsubscribed":"","Thanks for the feedback!":"","That didn't go to plan":"","This site is invite-only, contact the owner for access.":"","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"","Unsubscribe from all emails":"","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"","Update your preferences":"","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"",Yearly:"","You have been successfully resubscribed":"","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"","Your account":"","Your input helps shape what gets published.":""},Dk={"{{discount}}% discount":"{{discount}}% rabato","{{trialDays}} days free":"{{trialDays}} tagoj senpagaj","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Sendis ensalutan ligilon al via enirkesto. Se ĝi ne alvenas post 3 minutoj, nepre kontrolu vian trudmesaĝdosieron.",Account:"Konto","Account settings":"Kontagordoj","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Post senpaga provo finiĝos, vi pagos la regulan prezon por la nivelo, kiun vi elektis. Vi ĉiam povas nuligi antaŭ tiam.","Already a member?":"Ĉu membro jam?",Back:"Reen","Back to Log in":"Reen al Ensaluto","Cancel subscription":"Nuligu abonon","Cancellation reason":"Nuliga kialo","Choose a different plan":"Elektu alian planon","Choose your newsletters":"Elektu viajn bultenojn",Close:"Fermu",Comments:"Komentoj",Confirm:"Konfirmu",Continue:"Daŭrigu","Delete account":"Forigu konton","Don't have an account?":"Ĉu ne havas konton?",Email:"Retadreso","Email preference updated.":"Retpoŝta agordo ĝisdatigita.","Email preferences":"Retpoŝtaj agordoj",Emails:"Retpoŝtoj","Emails disabled":"Retpoŝtoj malŝaltitaj","Get help":"Ricevi helpon","Get notified when someone replies to your comment":"Estu sciiga kiam iu respondos al via komento","Give feedback on this post":"Donu komentojn pri ĉi tiu afiŝo","Less like this":"Malpli tiel",Manage:"Administru",Monthly:"Monate","More like this":"Pli kiel ĉi tio",Name:"Nomo","Not receiving emails?":"","Now check your email!":"Bonvolu kontroli vian retpoŝton nun!","Powered by Ghost":"Funkciigita de Ghost",Price:"Kosto","Re-enable emails":"Reŝalti retpoŝtojn",Retry:"Reprovu",Save:"Konservi","Sending login link...":"Sendanta ensaluta ligilo...","Sending...":"Sendante...","Sign in":"Ensalutu","Sign up":"Aliĝu","Start {{amount}}-day free trial":"Komencu senpaga {{amount}}-taga provo","Submit feedback":"Sendu rimarkojn","Successfully unsubscribed":"Sukcese malabonita","Thanks for the feedback!":"Dankon pro la rimarkoj!","That didn't go to plan":"Tio ne iris laŭ la intenco","This site is invite-only, contact the owner for access.":"Ĉi tiu retejo estas nur por invitiĝuloj, kontaktu la proprietulo por alireblo.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Por kompletigi aliĝon, premu la konfirman ligilon en via enirkesto. Se ĝi ne alvenas ene de 3 minutoj, kontrolu vian trudmesaĝdosieron!","Unsubscribe from all emails":"Malabonu de ĉiuj retpoŝtoj","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Malabonigi de retpoŝtoj ne nuligos vian pagitan abonon al {{title}}","Update your preferences":"Ĝisdatigu viajn agordojn","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Ni ne povis malaboni vin ĉar la retadreso ne estis trovita. Bonvolu kontakti la proprietulo de la retejo",Yearly:"Jare","You have been successfully resubscribed":"Vi sukcese reaboniĝis","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Vi ne ricevas retpoŝtojn ĉar vi aŭ markis lastatempan mesaĝon kiel trudmesaĝo, aŭ ĉar mesaĝoj ne povis liveri al via provizita retadreso.","Your account":"Via konto","Your input helps shape what gets published.":"Via enigo helpas formi kio estas aperigita."},Lk={"{{discount}}% discount":"{{discount}}% de descuento","{{trialDays}} days free":"{{trialDays}} días gratis","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Se ha enviado un enlace de inicio de sesión a tu correo. Si no llega en 3 minutos, revisa tu carpeta de spam.",Account:"Cuenta","Account settings":"Configuración de la cuenta","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Después de que finalice el período de prueba gratuito, se te cobrará el precio regular del nivel que hayas elegido. Siempre puedes cancelar antes de eso.","Already a member?":"¿Ya eres miembro?",Back:"Atrás","Back to Log in":"Volver al inicio de sesión","Cancel subscription":"Cancelar suscripción","Cancellation reason":"Razón de cancelación","Choose a different plan":"Elige un plan diferente","Choose your newsletters":"Elige tus boletines",Close:"Cerrar",Comments:"Comentarios",Confirm:"Confirmar",Continue:"Continuar","Delete account":"Eliminar cuenta","Don't have an account?":"¿No tienes una cuenta?",Email:"Correo electrónico","Email preference updated.":"Preferencia de correo electrónico actualizada.","Email preferences":"Preferencias de correo electrónico",Emails:"Correos electrónicos","Emails disabled":"Correos electrónicos desactivados","Get help":"Obtener ayuda","Get notified when someone replies to your comment":"Recibe notificaciones cuando alguien responda a tu comentario","Give feedback on this post":"Envía comentarios sobre esta publicación","Less like this":"Menos como esto",Manage:"Administrar",Monthly:"Mensual","More like this":"Más como esto",Name:"Nombre","Not receiving emails?":"¿No recibes correos electrónicos?","Now check your email!":"¡Ahora revisa tu correo electrónico!","Powered by Ghost":"Desarrollado por Ghost",Price:"Precio","Re-enable emails":"Reactivar correos electrónicos",Retry:"Reintentar",Save:"Guardar","Sending login link...":"Enviando enlace de inicio de sesión...","Sending...":"Enviando...","Sign in":"Iniciar sesión","Sign up":"Registrarse","Start {{amount}}-day free trial":"Comienza el período de prueba gratuito de {{amount}} días","Submit feedback":"Enviar comentarios","Successfully unsubscribed":"Te has dado de baja correctamente","Thanks for the feedback!":"¡Gracias por tus comentarios!","That didn't go to plan":"Eso no salió según lo planeado","This site is invite-only, contact the owner for access.":"Este sitio es solo por invitación, contacta al propietario para obtener acceso.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Para completar el registro, haz clic en el enlace de confirmación en tu correo electrónico. Si no llega en 3 minutos, ¡revisa tu carpeta de spam!","Unsubscribe from all emails":"Cancelar suscripción a todos los correos electrónicos","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Cancelar la suscripción a los correos electrónicos no cancelará tu suscripción de pago a {{title}}","Update your preferences":"Actualiza tus preferencias","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"No pudimos cancelar tu suscripción ya que no se encontró la dirección de correo electrónico. Por favor, contacta al propietario del sitio.",Yearly:"Anual","You have been successfully resubscribed":"Te has vuelto a suscribir con éxito","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"No estás recibiendo correos electrónicos porque marcaste un mensaje reciente como spam o porque no se pudieron entregar los mensajes a la dirección de correo electrónico proporcionada.","Your account":"Tu cuenta","Your input helps shape what gets published.":"Tu opinión ayuda a definir lo que se publica."},Ik={"{{discount}}% discount":"{{discount}}% de réduction","{{trialDays}} days free":"{{trialDays}} jours gratuits","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Un lien de connexion a été envoyé à ta boîte de réception. S’il n’arrive pas dans les 3 minutes, vérifie ton dossier spam.",Account:"Compte","Account settings":"Paramètres du compte","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"À la fin de la période d’essai gratuite, le prix normal de l’abonnement choisi sera facturé. Tu peux toujours annuler d’ici là.","Already a member?":"Déjà membre ?",Back:"Retour","Back to Log in":"Retour à Connexion","Cancel subscription":"Annuler l’abonnement","Cancellation reason":"Raison pour l’annulation","Choose a different plan":"Choisir un autre abonnement","Choose your newsletters":"Choisir les newsletters",Close:"Fermer",Comments:"Commentaires",Confirm:"Confirmer",Continue:"Continuer","Delete account":"Fermer le compte","Don't have an account?":"Tu n’as pas encore de compte ?",Email:"E-mail","Email preference updated.":"Préférences d’e-mail mises à jour.","Email preferences":"Préférences d’e-mail",Emails:"E-mails","Emails disabled":"E-mails désactivés","Get help":"Obtenir de l’aide","Get notified when someone replies to your comment":"Sois notifié lorsque quelqu’un répond à ton commentaire","Give feedback on this post":"Donne ton avis sur cet article","Less like this":"Moins de ça",Manage:"Gérer",Monthly:"Mensuel","More like this":"Plus de ça",Name:"Nom","Not receiving emails?":"Tu n’as pas reçu d’e-mails ?","Now check your email!":"Maintenant, vérifie ta boite de réception.","Powered by Ghost":"Créé avec Ghost",Price:"Prix","Re-enable emails":"Ré-activer les e-mails",Retry:"Réesayer",Save:"Sauvegarder","Sending login link...":"Envoi du lien de connexion…","Sending...":"Envoi…","Sign in":"Se connecter","Sign up":"S’enregistrer","Start {{amount}}-day free trial":"Commencer l’essai gratuit de {{amount}} jours","Submit feedback":"Envoie ton avis","Successfully unsubscribed":"Désabonnement réussi","Thanks for the feedback!":"Merci pour ton avis !","That didn't go to plan":"Cela n’a pas fonctionné comme prévu","This site is invite-only, contact the owner for access.":"Ce site est réservé aux invités, contacte le propriétaire pour y accéder.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Pour confirmer ton inscription, clique sur le lien de confirmation envoyé dans ta boite de réception. S’il ne te parvient pas dans les 3 minutes, vérifie ton dossier spam.","Unsubscribe from all emails":"Se désinscrire de tous les e-mails","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"La désinscription des e-mails n’annulera pas ton abonnement payant à {{title}}","Update your preferences":"Mets à jour tes préférences","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"La désinscription n’a pas fonctionné car ton adresse e-mail n’a pas été trouvée. Merci de contacter le propriétaire du site.",Yearly:"Annuel","You have been successfully resubscribed":"Tu as été réinscrit avec succès","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Tu ne reçois pas d’e-mails parce que tu as marqué un message récent comme spam, ou parce que les messages n’ont pas pu être livrés à l’adresse e-mail que tu as indiquée.","Your account":"Ton compte","Your input helps shape what gets published.":"Ton avis aide à améliorer ce qui est publié."},jk={"{{discount}}% discount":"{{discount}}% kedvezmény","{{trialDays}} days free":"{{trialDays}} nap ingyen","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"A bejelentkezéshez szükséges linket elküldtük a megadott email címre. Ha nem érkezne meg 3 percen belül, kérjük ellenőrizze a spam mappát!",Account:"Fiók","Account settings":"Fiók beállítások","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Az ingyenes próbaidőszak lejárta után a kiválasztott csomag normál díját fogjuk felszámolni. A feliratkozás bármikor ingyenesen lemondható a próbaidőszak alatt.","Already a member?":"Már van fiókja?",Back:"Vissza","Back to Log in":"Vissza a bejelentkezéshez","Cancel subscription":"Feliratkozás megszűntetése","Cancellation reason":"A megszűntetés oka","Choose a different plan":"Válasszon másik csomagot","Choose your newsletters":"Válassza ki a hírleveleket",Close:"Bezár",Comments:"Kommentek",Confirm:"Jóváhgyás",Continue:"Folytatás","Delete account":"Fiók törlése","Don't have an account?":"Még nincs fiókja?",Email:"Email","Email preference updated.":"Email beállítások elmentve","Email preferences":"Email beállítások",Emails:"Email-ek","Emails disabled":"Email-ek kikapcsolva","Get help":"Kérjen segítséget","Get notified when someone replies to your comment":"Értesítést kérek ha valaki válaszol a kommentemre","Give feedback on this post":"Hogy tetszett ez a cikk?","Less like this":"Kevesebb ilyet",Manage:"Kezelés",Monthly:"Havi","More like this":"Több ilyet",Name:"Név","Not receiving emails?":"Nem érkeznek meg az email-ek?","Now check your email!":"Ellenőrizze az postafiókját","Powered by Ghost":"Powered by Ghost",Price:"Ár","Re-enable emails":"Email-ek aktiválása",Retry:"Újra",Save:"Mentés","Sending login link...":"Bejelenkezési link küldése...","Sending...":"Küldés...","Sign in":"Bejelentkezés","Sign up":"Regisztráció","Start {{amount}}-day free trial":"{{amount}} napos próbaidőszak kezdése","Submit feedback":"Visszajelzés küldése","Successfully unsubscribed":"Sikeres leiratkozás","Thanks for the feedback!":"Köszönjük a visszajelzést","That didn't go to plan":"Hiba történt","This site is invite-only, contact the owner for access.":"A website csak meghívóval látogatható. Meghívóért lépjen kapcsolatba az oldal tulajdonosával!","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"A regisztráció befejezéséhez kérjük kattintson az email-ben kapott linkre. Ha a link nem érkezne meg 3 percen belül kérjük ellenőrizze a spam mappát.","Unsubscribe from all emails":"Leiratkozás minden email-ről","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Az email-ről történő leiratkozás nem szűnteti meg a fiókját","Update your preferences":"Beállítások mentése","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Ehhez az email-hez nem tartozik fiók. Kérjük lépjen kapcsolatba az oldal tulajdonosával.",Yearly:"Éves","You have been successfully resubscribed":"Sikeres feliratkozás","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Azért nem kap email-t mert vagy spam-nek jelölt egy tőlünk kapott hírlevelet, vagy azért mert a megadott email cím nem tud üzeneteket fogadni.","Your account":"Fiók","Your input helps shape what gets published.":"A visszajelzése segít abban, hogy mit publikáljunk"},Ak={"{{discount}}% discount":"{{discount}}% sconto","{{trialDays}} days free":"{{trialDays}} giorni gratis","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Un link di accesso è stato inviato alla tua casella di posta. Se non la ricevi entro 3 minuti, controllare la cartella della posta indesiderata.",Account:"Account","Account settings":"Impostazioni Account","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Al termine della prova gratuita, ti verrà addebitato il prezzo normale per il livello che hai scelto. Puoi sempre annullare prima della fine della prova gratuita.","Already a member?":"Sei già un membro?",Back:"Indietro","Back to Log in":"Torna al Log-in","Cancel subscription":"Cancella la tua iscrizione","Cancellation reason":"Motivo della cancellazione","Choose a different plan":"Scegli un piano differente","Choose your newsletters":"Scegli la tua newsletter",Close:"Chiudi",Comments:"Commenti",Confirm:"Conferma",Continue:"Continua","Delete account":"Cancella account","Don't have an account?":"Non hai un account?",Email:"Email","Email preference updated.":"Impostazioni Email aggiornate","Email preferences":"Impostazioni Email",Emails:"Email","Emails disabled":"Email disattivate","Get help":"Chiedi aiuto","Get notified when someone replies to your comment":"Ricevi una notifica quando qualcuno risponde al tuo commento","Give feedback on this post":"Manda un feedback per questo post","Less like this":"Meno come questo",Manage:"",Monthly:"Mensile","More like this":"Più come questo",Name:"Nome","Not receiving emails?":"Non ricevi email?","Now check your email!":"Ora controlla la tua email!","Powered by Ghost":"Creato con Ghost",Price:"Prezzo","Re-enable emails":"Attiva di nuovo le email",Retry:"Riprova",Save:"Salva","Sending login link...":"Invio link di accesso...","Sending...":"Invia...","Sign in":"Accedi","Sign up":"Iscriviti","Start {{amount}}-day free trial":"Inizia {{amount}}-giorni di prova","Submit feedback":"Invia feedback","Successfully unsubscribed":"Hai cancellato la tua iscrizione con successo","Thanks for the feedback!":"Grazie per i feedback","That didn't go to plan":"Non è andato come previsto","This site is invite-only, contact the owner for access.":"Questo sito é accessibile solo su invito, contatta il proprietario per accedere.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Per completare l'accesso, clicca il link di conferma nella tua email. Se non la ricevi entro 3 minuti, controllare la cartella della posta indesiderata!","Unsubscribe from all emails":"Cancella l'iscrizione da tutte le email","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"L'annullamento dell'iscrizione alle e-mail non annullerà l'abbonamento a pagamento a {{title}}","Update your preferences":"Aggiorna le tue preferenze","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Non è stato possibile annullare l'iscrizione poiché l'indirizzo e-mail non è stato trovato. Si prega di contattare il proprietario del sito.",Yearly:"Annuale","You have been successfully resubscribed":"Sei stato nuovamente iscritt* con successo","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Non ricevi email perché hai contrassegnato un messaggio recente come spam o perché non è stato possibile recapitare i messaggi all'indirizzo email fornito.","Your account":"Il tuo account","Your input helps shape what gets published.":"Il tuo contributo aiuta a dare forma a ciò che viene pubblicato."},Mk={"{{discount}}% discount":"{{discount}}% хямдрал","{{trialDays}} days free":"{{trialDays}} өдөр үнэгүй","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Таны имэйл рүү нэвтрэх холбоосыг илгээлээ. Хэрвээ 3 минутын дотор ирэхгүй бол спамаа шалгана уу.",Account:"Бүртгэл","Account settings":"Бүртгэлийн тохиргоо","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Үнэгүй туршилтын хугацаа дуусахад таны данснаас сонгосон багцын үнэ хасагдана. Гэвч та өмнө нь цуцлах боломжтой.","Already a member?":"Бүртгэлтэй юу?",Back:"Буцах","Back to Log in":"Нэвтрэх хэсэг рүү буцах","Cancel subscription":"Захиалгаа цуцлах","Cancellation reason":"Цуцалсан шалтгаан","Choose a different plan":"Өөр багц сонгох","Choose your newsletters":"Товхимолоо сонгох",Close:"Хаах",Comments:"Сэтгэгдлүүд",Confirm:"Баталгаажуулах",Continue:"Үргэлжлүүлэх","Delete account":"Бүртгэлээ устгах","Don't have an account?":"Бүргэлгүй юу?",Email:"Имэйл","Email preference updated.":"Имэйлийн тохиргоо шинэчлэгдлээ.","Email preferences":"Имэйлийн тохиргоо",Emails:"Имэйлүүд","Emails disabled":"Имэйлийг идэхгүй болгосон","Get help":"Тусламж","Get notified when someone replies to your comment":"Хэн нэгэн таны сэтгэгдэлд хариу бичих үед мэдэгдэх","Give feedback on this post":"Энэ нийтлэлд саналаа өгөх","Less like this":"Таалагдсангүй",Manage:"Удирдах",Monthly:"Сарын","More like this":"Таалагдлаа",Name:"Нэр","Not receiving emails?":"Имэйл ирээгүй юу?","Now check your email!":"Одоо имэйлээ шалгана уу!","Powered by Ghost":"Ghost дээр суурилав",Price:"Үнэ","Re-enable emails":"Имэйлийг дахин идэвхжүүлэх",Retry:"Дахин оролдох",Save:"Хадгалах","Sending login link...":"Нэвтрэх холбоосыг илгээж байна...","Sending...":"Илгээж байна...","Sign in":"Нэвтрэх","Sign up":"Бүртгүүлэх","Start {{amount}}-day free trial":"{{amount}} өдрийн үнэгүй туршилтыг эхлүүлэх","Submit feedback":"Саналаа илгээх","Successfully unsubscribed":"Захиалгыг амжилттай цуцаллаа","Thanks for the feedback!":"Саналаа илгээсэнд баярлалаа!","That didn't go to plan":"","This site is invite-only, contact the owner for access.":"Энэхүү сайт руу зөвхөн урилгаар нэвтрэх боломжтой тул та админд нь хандана уу.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Тан руу илгээсэн баталгаажуулах холбоос дээр дарж бүртгэлээ дуусгана уу. Хэрвээ 3 минутын дотор ирэхгүй бол спамаа шалгана уу!","Unsubscribe from all emails":"Бүх имэйлийг зогсоох","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Имэйлийг зогсоосон ч таны {{title}} төлбөртэй захиалга цуцлагдахгүй","Update your preferences":"Тохиргоогоо шинэчлэх","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Энэхүү имэйл хаяг олдоогүй учир захиалгыг цуцлах боломжгүй. Та сайтын админд хандана уу.",Yearly:"Жилийн","You have been successfully resubscribed":"Таны захиалга амжилттай дахин идэвхжлээ","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Таны имэйл хүлээж авахгүй байгаа шалтгаан нь нэг бол та аль нэг имэйлийг спам гэж тэмдэглэсэн, эсвэл таны хаяг имэйл хүлээж авах боломжгүй байна.","Your account":"Таны бүртгэл","Your input helps shape what gets published.":"Таны санал дараа дараагийн нийтлэлийг илүү чанартай болгоход туслана"},zk={"{{discount}}% discount":"{{discount}}% korting","{{trialDays}} days free":"{{trialDays}} dagen gratis","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Je hebt een email met een login link ontvangen. Check je spamfolder als hij niet binnen de 3 minuten aankomt.",Account:"Account","Account settings":"Gegevens","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Na de proefperiode zal het normale tarief in rekening worden gebracht voor het door jou gekozen abonnement.","Already a member?":"Al lid?",Back:"Terug","Back to Log in":"Terug naar inloggen","Cancel subscription":"Abonnement opzeggen","Cancellation reason":"Reden voor opzegging","Choose a different plan":"Kies een ander abonnement","Choose your newsletters":"Kies jouw nieuwsbrieven",Close:"Sluiten",Comments:"Reacties",Confirm:"Bevestigen",Continue:"Doorgaan","Delete account":"Account verwijderen","Don't have an account?":"Heb je nog geen account?",Email:"E-mail","Email preference updated.":"E-mailinstellingen aanpassen","Email preferences":"E-mailinstellingen",Emails:"E-mails","Emails disabled":"E-mails zijn uitgeschakeld","Get help":"Lees meer","Get notified when someone replies to your comment":"Blijf op de hoogte als iemand op jouw reactie reageert","Give feedback on this post":"Deel je mening over dit artikel","Less like this":"Minder hiervan",Manage:"Beheer",Monthly:"Maandelijks","More like this":"Meer hiervan",Name:"Naam","Not receiving emails?":"Ontvang je geen e-mails?","Now check your email!":"Bekijk nu jouw e-mails!","Powered by Ghost":"Powered by Ghost",Price:"Prijs","Re-enable emails":"E-mails weer inschakelen",Retry:"Opnieuw proberen",Save:"Opslaan","Sending login link...":"Inloglink versturen...","Sending...":"Versturen...","Sign in":"Inloggen","Sign up":"Registreren","Start {{amount}}-day free trial":"Start gratis je {{amount}}-daagse proefperiode","Submit feedback":"Deel je feedback","Successfully unsubscribed":"Succesvol uitgeschreven","Thanks for the feedback!":"Bedankt voor je feedback!","That didn't go to plan":"Er ging iets mis","This site is invite-only, contact the owner for access.":"Deze site is alleen toegankelijk op uitnodiging, neem contact op met de eigenaar.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Klik op de bevestigingslink in de e-mail om je registratie af te ronden. Check ook je spamfolder als hij niet binnen de 3 minuten aankomt.","Unsubscribe from all emails":"Uitschrijven voor alles","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Je betaalde abonnement voor {{title}} wordt niet geannuleerd als je je uitschrijft voor e-mails","Update your preferences":"Voorkeuren aanpassen","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Het is niet gelukt om je uit te schrijven, omdat je e-mailadres niet is gevonden. Neem contact met ons op.",Yearly:"Jaarlijks","You have been successfully resubscribed":"Je bent weer succesvol geabonneerd","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Je ontvangt geen e-mails omdat je ofwel een recent bericht als spam had gemarkeerd, of omdat de berichten niet verzonden konden worden naar jouw e-mailadres.","Your account":"Jouw account","Your input helps shape what gets published.":"Jouw mening helpt bepalen wat er gepubliceerd wordt."},Fk={"{{discount}}% discount":"Rabat {{discount}}%","{{trialDays}} days free":"{{trialDays}} darmowych dni","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Link do logowania został wysłany do twojej skrzynki odbiorczej. Jeśli nie dotrze w ciągu 3 minut, sprawdź swój folder spamu.",Account:"Konto","Account settings":"Ustawienia konta","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Po zakończeniu okresu próbnego zostanie naliczona regularna opłata za wybrany poziom subskrypcji. Zawsze możesz anulować subskrypcję zanim to nastąpi.","Already a member?":"Masz już konto?",Back:"Wstecz","Back to Log in":"Wróć do logowania","Cancel subscription":"Anuluj subskrypcję","Cancellation reason":"Powód anulowania","Choose a different plan":"Wybierz inny plan","Choose your newsletters":"Wybierz swoje newslettery",Close:"Zamknij",Comments:"Komentarze",Confirm:"Potwierdź",Continue:"Dalej","Delete account":"Skasuj konto","Don't have an account?":"Nie masz jeszcze konta?",Email:"Email","Email preference updated.":"Ustawienia email zaktualizowane","Email preferences":"Ustawienia email",Emails:"Emaile","Emails disabled":"Wysyłanie emaili zablokowane","Get help":"Uzyskaj pomoc","Get notified when someone replies to your comment":"Otrzymaj powiadomienie gdy ktoś odpowie na twój komentarz","Give feedback on this post":"Oceń ten wpis","Less like this":"Mniej podobnych",Manage:"Zarządzaj",Monthly:"Miesięcznie","More like this":"Więcej podobnych",Name:"Imię i nazwisko","Not receiving emails?":"Nie dostajesz emaili?","Now check your email!":"Teraz sprawdź swoją pocztę!","Powered by Ghost":"Oparto na Ghost",Price:"Cena","Re-enable emails":"Włącz ponownie emaile",Retry:"Powtórz",Save:"Zapisz","Sending login link...":"Wysyłanie linku do logowania...","Sending...":"Wysyłanie...","Sign in":"Zaloguj się","Sign up":"Zarejestruj się","Start {{amount}}-day free trial":"Rozpocznij {{amount}}-dniowy okres próbny","Submit feedback":"Wyślij ocenę","Successfully unsubscribed":"Wypisanie udane","Thanks for the feedback!":"Dziękujemy za ocenę!","That didn't go to plan":"Coś poszło nie tak","This site is invite-only, contact the owner for access.":"Ta strona jest tylko na zaproszenie, skontaktuj się z właścicielem aby uzyskać dostęp.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Aby dokończyć rejestrację, kliknij w link przesłany na twoją skrzynkę pocztową. Jeśli nie dotrze on w ciągu 3 minut, sprawdź folder spamu!","Unsubscribe from all emails":"Wypisz się w wszystkich emaili","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Wypisanie się z otrzymywania emaili nie powoduje anulowania płatnej subskrypcji {{title}}","Update your preferences":"Zaktualizuj preferencje","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Nie udało się wypisać, bo nie znaleziono adresu email. Skontaktuj się w właścicielem strony.",Yearly:"Rocznie","You have been successfully resubscribed":"Zostałeś ponownie zapisany","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Nie otrzymujesz powiadomień email, ponieważ oznaczyłeś ostatnią wiadomość jako spam lub nie udało się dostarczyć wiadomości na podany adres email.","Your account":"Twoje konto","Your input helps shape what gets published.":"Twoja ocena pomoże nam lepiej kształtować nasz publikacje."},Uk={"{{discount}}% discount":"{{discount}}% de desconto","{{trialDays}} days free":"{{trialDays}} dias grátis","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Um link de acesso foi enviado para o seu email. Se a mensagem não chegar dentro de 3 minutos, verifique sua pasta de spam.",Account:"Conta","Account settings":"Configurações de conta","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Quando o teste grátis acabar, será cobrado o preço normal do plano que você escolheu. Você sempre pode cancelar antes.","Already a member?":"Já é membro?",Back:"Voltar","Back to Log in":"Voltar para login","Cancel subscription":"Cancelar inscrição","Cancellation reason":"Motivo do cancelamento","Choose a different plan":"Escolher plano diferente","Choose your newsletters":"Escolher suas newsletters",Close:"Fechar",Comments:"Comentários",Confirm:"Confirmar",Continue:"Continuar","Delete account":"Excluir conta","Don't have an account?":"Não tem uma conta?",Email:"Email","Email preference updated.":"Preferências de email atualizadas.","Email preferences":"Preferências de email",Emails:"Emails","Emails disabled":"Emails desativados","Get help":"Obter ajuda","Get notified when someone replies to your comment":"Receber notificação quando alguém responder seu comentário","Give feedback on this post":"Enviar feedback sobre esta postagem","Less like this":"Menos como este",Manage:"Gerenciar",Monthly:"Mensal","More like this":"Mais como este",Name:"Nome","Not receiving emails?":"Não está recebendo emails?","Now check your email!":"Agora veja seu email!","Powered by Ghost":"Powered by Ghost",Price:"Preço","Re-enable emails":"Reativar emails",Retry:"Tentar de novo",Save:"Salvar","Sending login link...":"Enviando link de acesso...","Sending...":"Enviando...","Sign in":"Entrar","Sign up":"Cadastrar","Start {{amount}}-day free trial":"Começar teste grátis de {{amount}} dias","Submit feedback":"Enviar avaliação","Successfully unsubscribed":"Inscrição cancelada com sucesso","Thanks for the feedback!":"Obrigado pela avaliação!","That didn't go to plan":"Algo não saiu como planejado","This site is invite-only, contact the owner for access.":"Este site é apenas para convidados. Contate o proprietário para obter acesso.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Para completar o cadastro, clique no link de confirmação enviado para sua caixa de entrada. Se o link não chegar detro de 3 minutos, confira a pasta de spam!","Unsubscribe from all emails":"Cancelar inscrição em todos os emails","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Cancelar a inscrição nos emails não cancelará sua assinatura paga em {{title}}","Update your preferences":"Atualizar preferências","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Não conseguimos cancelar sua inscrição já que o email não foi encontrado. Por favor, entre em contato com o proprietário do site.",Yearly:"Anualmente","You have been successfully resubscribed":"Você foi reinscrito com sucesso","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Você não está recebendo emails porque, ou classificou uma mensagem recente como spam, ou as mensagens não puderam ser entregues no endereço de email que você forneceu.","Your account":"Sua conta","Your input helps shape what gets published.":"Sua resposta ajuda a moldar o que será publicado."},Bk={"{{discount}}% discount":"{{discount}}% rabatt","{{trialDays}} days free":"{{trialDays}} dagar gratis","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"En inloggningslänk har skickats till din inkorg. Om den inte anländer inom 3 minuter, kontrollera din skräppostmapp.",Account:"Konto","Account settings":"Kontoinställningar","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Efter att en gratis provperiod avslutas debiteras du det ordinarie priset för den nivå du har valt. Du kan alltid avbryta innan dess.","Already a member?":"Redan medlem?",Back:"Tillbaka","Back to Log in":"Tillbaka till inloggning","Cancel subscription":"Avbryt prenumeration","Cancellation reason":"Anledning till avslut","Choose a different plan":"Välj en annan prenumeration","Choose your newsletters":"Välj dina nyhetsbrev",Close:"Stäng",Comments:"Kommentarer",Confirm:"Bekräfta",Continue:"Fortsätt","Delete account":"Radera konto","Don't have an account?":"Har du inget konto?",Email:"E-post","Email preference updated.":"Inställningar för e-post uppdaterade.","Email preferences":"E-postinställningar",Emails:"E-postmeddelanden","Emails disabled":"E-post inaktiverad","Get help":"Få hjälp","Get notified when someone replies to your comment":"Få en avisering när någon svarar på din kommentar","Give feedback on this post":"Ge feedback på det här inlägget","Less like this":"Mindre sånt här",Manage:"Hantera",Monthly:"Månadsvis","More like this":"Mer sånt här",Name:"Namn","Not receiving emails?":"Får du inga e-postmeddelanden?","Now check your email!":"Kolla nu din e-post!","Powered by Ghost":"Drivs av Ghost",Price:"Pris","Re-enable emails":"Återaktivera e-post",Retry:"Försök igen",Save:"Spara","Sending login link...":"Skickar inloggningslänk...","Sending...":"Skickar...","Sign in":"Logga in","Sign up":"Registrera dig","Start {{amount}}-day free trial":"Starta {{amount}}-dagars gratis testperiod","Submit feedback":"Skicka feedback","Successfully unsubscribed":"Prenumerationen avslutades framgångsrikt","Thanks for the feedback!":"Tack för din feedback!","That didn't go to plan":"Det där fungerade inte som tänkt","This site is invite-only, contact the owner for access.":"Den här sidan är endast för inbjudna, kontakta ägaren för åtkomst.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"För att slutföra registreringen, klicka på bekräftelselänken i din inkorg. Om den inte kommer fram inom 3 minuter, kolla din skräppostmapp!","Unsubscribe from all emails":"Avregistrera från alla e-postutskick","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Avregistrering från e-postmeddelanden kommer inte att avbryta din betalda prenumeration på {{title}}","Update your preferences":"Uppdatera dina inställningar","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Vi kunde inte avsluta din prenumeration eftersom e-postadressen inte hittades. Vänligen kontakta webbplatsens ägare.",Yearly:"Årligen","You have been successfully resubscribed":"Du har nu prenumererat igen","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Du får inte e-postmeddelanden eftersom du antingen markerade ett nyligt meddelande som skräppost, eller för att meddelanden inte kunde levereras till din angivna e-postadress.","Your account":"Ditt konto","Your input helps shape what gets published.":"Din åsikt hjälper till att forma vad som publiceras."},Yk={"{{discount}}% discount":"Giảm {{discount}}%","{{trialDays}} days free":"{{trialDays}} ngày miễn phí còn lại","A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.":"Liên kết đăng nhập đã được gửi đến hộp thư của bạn. Nếu trong vòng 3 phút bạn vẫn chưa thấy, hãy kiểm tra thư hộp thư rác của bạn.",Account:"Tài khoản","Account settings":"Cài đặt","After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.":"Sau khi kết thúc thời gian dùng thử miễn phí, bạn sẽ được tính giá thường cho gói dịch vụ mà bạn đã chọn. Bạn có thể hủy trước khi thời gian dùng thử kết thúc.","Already a member?":"Bạn đã là thành viên?",Back:"Quay về","Back to Log in":"Quay về đăng nhập","Cancel subscription":"Hủy thuê bao","Cancellation reason":"Lý do hủy thuê bao","Choose a different plan":"Chọn gói dịch vụ khác","Choose your newsletters":"Chọn bản tin bạn muốn nhận",Close:"Đóng",Comments:"Bình luận",Confirm:"Xác nhận",Continue:"Tiếp tục","Delete account":"Xóa tài khoản","Don't have an account?":"Bạn chưa có tài khoản?",Email:"Email","Email preference updated.":"Cập nhật email","Email preferences":"Cài đặt email",Emails:"Emails","Emails disabled":"Tắt chức năng email","Get help":"Trợ giúp","Get notified when someone replies to your comment":"Nhận thông báo khi có ai đó trả lời bình luận","Give feedback on this post":"Phản hồi bài viết này","Less like this":"Không thích lắm",Manage:"Quản lý",Monthly:"Mỗi tháng","More like this":"Thích bài viết dạng này",Name:"Tên","Not receiving emails?":"Bạn không nhận được email?","Now check your email!":"Kiểm tra email ngay bây giờ!","Powered by Ghost":"Cung cấp bởi Ghost",Price:"Giá","Re-enable emails":"Kích hoạt lại email nhận",Retry:"Thử lại",Save:"Lưu","Sending login link...":"Đang gửi liên kết đăng nhập","Sending...":"Đang gửi","Sign in":"Đăng nhập","Sign up":"Đăng ký","Start {{amount}}-day free trial":"Bắt đầu dùng thử {{amount}} ngày","Submit feedback":"Gửi phản hồi","Successfully unsubscribed":"Đã hủy đăng ký thành công","Thanks for the feedback!":"Cám ơn phản hồi của bạn!","That didn't go to plan":"Không thực hiện được","This site is invite-only, contact the owner for access.":"Trang web này chỉ dành cho những người được mời, hãy liên hệ với chủ sở hữu để có quyền truy cập.","To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!":"Để hoàn tất đăng ký, hãy nhấp vào liên kết xác nhận trong hộp thư đến của bạn. Nếu nó không đến trong vòng 3 phút, hãy kiểm tra thư mục thư rác của bạn!","Unsubscribe from all emails":"Hủy theo dõi tất cả email","Unsubscribing from emails will not cancel your paid subscription to {{title}}":"Việc hủy đăng ký nhận email sẽ không hủy gói đăng ký trả phí của bạn đối với {{title}}","Update your preferences":"Cập nhật cài đặt","We couldn't unsubscribe you as the email address was not found. Please contact the site owner.":"Chúng tôi không thể hủy đăng ký bạn vì không tìm thấy địa chỉ email. Vui lòng liên hệ với chủ sở hữu trang web.",Yearly:"Mỗi năm","You have been successfully resubscribed":"Bạn đã đăng ký lại thành công","You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.":"Bạn không nhận được email vì bạn đã đánh dấu thư gần đây là thư rác, hoặc vì không thể gửi thư đến địa chỉ email bạn đã cung cấp.","Your account":"Tài khoản của bạn","Your input helps shape what gets published.":"Thông tin của bạn giúp định hình nội dung được xuất bản."};var Kg;function qg(){return Kg||(Kg={"/i18n/locales/af/portal.json":function(){return Nk},"/i18n/locales/ca/portal.json":function(){return Tk},"/i18n/locales/cs/portal.json":function(){return $k},"/i18n/locales/de/portal.json":function(){return Rk},"/i18n/locales/en/portal.json":function(){return Ok},"/i18n/locales/eo/portal.json":function(){return Dk},"/i18n/locales/es/portal.json":function(){return Lk},"/i18n/locales/fr/portal.json":function(){return Ik},"/i18n/locales/hu/portal.json":function(){return jk},"/i18n/locales/it/portal.json":function(){return Ak},"/i18n/locales/mn/portal.json":function(){return Mk},"/i18n/locales/nl/portal.json":function(){return zk},"/i18n/locales/pl/portal.json":function(){return Fk},"/i18n/locales/pt-br/portal.json":function(){return Uk},"/i18n/locales/sv/portal.json":function(){return Bk},"/i18n/locales/vi/portal.json":function(){return Yk}})}function Hk(e){function t(n){var r=Qg(n,e);if(r!==null)return qg()[r]();throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}return t.resolve=function(n){var r=Qg(n,e);return r!==null?r:require.resolve(n)},t}function Qg(e,t){var n=Gk(e);e=Ha(e);var r;e[0]==="/"&&(t="");for(var i=qg(),o=["",".js",".json"];n?r=Ha(t+"/node_modules/"+e):r=Ha(t+"/"+e),!r.endsWith("/..");){for(var a=0;a<o.length;a++){var s=r+o[a];if(i[s])return s}if(!n)break;var l=Ha(t+"/..");if(l===t)break;t=l}return null}function Gk(e){var t=e[0];if(t==="/"||t==="\\")return!1;var n=e[1],r=e[2];return!(t==="."&&(!n||n==="/"||n==="\\")||t==="."&&n==="."&&(!r||r==="/"||r==="\\")||n===":"&&(r==="/"||r==="\\"))}function Ha(e){e=e.replace(/\\/g,"/");for(var t=e.split("/"),n=t[0]==="",r=1;r<t.length;r++)(t[r]==="."||t[r]==="")&&t.splice(r--,1);for(var r=1;r<t.length;r++)t[r]===".."&&r>0&&t[r-1]!==".."&&t[r-1]!=="."&&(t.splice(--r,2),r--);return e=t.join("/"),n&&e[0]!=="/"?e="/"+e:e.length===0&&(e="."),e}var Ga={},Wk={get exports(){return Ga},set exports(e){Ga=e}},Cr={},Vk={get exports(){return Cr},set exports(e){Cr=e}};(function(e){function t(n){return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Vk);var lu={},Kk={get exports(){return lu},set exports(e){lu=e}};(function(e){function t(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Kk);var cu={},qk={get exports(){return cu},set exports(e){cu=e}},Wa={},Qk={get exports(){return Wa},set exports(e){Wa=e}},uu={},Jk={get exports(){return uu},set exports(e){uu=e}};(function(e){var t=Cr.default;function n(r,i){if(t(r)!=="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var a=o.call(r,i||"default");if(t(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Jk),function(e){var t=Cr.default,n=uu;function r(i){var o=n(i,"string");return t(o)==="symbol"?o:String(o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Qk),function(e){var t=Wa;function n(i,o){for(var a=0;a<o.length;a++){var s=o[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,t(s.key),s)}}function r(i,o,a){return o&&n(i.prototype,o),a&&n(i,a),Object.defineProperty(i,"prototype",{writable:!1}),i}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(qk);var Va={},Xk={get exports(){return Va},set exports(e){Va=e}};(function(e){function t(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Xk);var du={},Zk={get exports(){return du},set exports(e){du=e}},pu={},e_={get exports(){return pu},set exports(e){pu=e}};(function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,a){return o.__proto__=a,o},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(e_),function(e){var t=pu;function n(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),i&&t(r,i)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Zk);var fu={},t_={get exports(){return fu},set exports(e){fu=e}};(function(e){var t=Cr.default,n=Va;function r(i,o){if(o&&(t(o)==="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return n(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(t_);var hu={},n_={get exports(){return hu},set exports(e){hu=e}};(function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(n_);var gu={},r_={get exports(){return gu},set exports(e){gu=e}};(function(e){var t=Wa;function n(r,i,o){return i=t(i),i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(r_);var mu={},i_={get exports(){return mu},set exports(e){mu=e}},yu={},o_={get exports(){return yu},set exports(e){yu=e}};(function(e){function t(n){if(Array.isArray(n))return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(o_);var vu={},a_={get exports(){return vu},set exports(e){vu=e}};(function(e){function t(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(a_);var bu={},s_={get exports(){return bu},set exports(e){bu=e}},wu={},l_={get exports(){return wu},set exports(e){wu=e}};(function(e){function t(n,r){(r==null||r>n.length)&&(r=n.length);for(var i=0,o=new Array(r);i<r;i++)o[i]=n[i];return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(l_),function(e){var t=wu;function n(r,i){if(r){if(typeof r=="string")return t(r,i);var o=Object.prototype.toString.call(r).slice(8,-1);if(o==="Object"&&r.constructor&&(o=r.constructor.name),o==="Map"||o==="Set")return Array.from(r);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return t(r,i)}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(s_);var xu={},c_={get exports(){return xu},set exports(e){xu=e}};(function(e){function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3120
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(c_),function(e){var t=yu,n=vu,r=bu,i=xu;function o(a){return t(a)||n(a)||r(a)||i()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(i_);var u_=Cr,d_=lu,p_=cu,f_=Va,h_=du,g_=fu,m_=hu,y_=gu,v_=mu;function St(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Ui=St(u_),st=St(d_),lt=St(p_),Nn=St(f_),Ka=St(h_),Bi=St(g_),nn=St(m_),rn=St(y_),b_=St(v_);function Jg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jg(Object(n),!0).forEach(function(r){rn.default(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var w_={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,n){console&&console[t]&&console[t].apply(console,n)}},x_=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};st.default(this,e),this.init(t,n)}return lt.default(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||w_,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,i,o){return o&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(i).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new e(this.logger,Xg(Xg({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new e(this.logger,n)}}]),e}(),ct=new x_,on=function(){function e(){st.default(this,e),this.observers={}}return lt.default(e,[{key:"on",value:function(n,r){var i=this;return n.split(" ").forEach(function(o){i.observers[o]=i.observers[o]||[],i.observers[o].push(r)}),this}},{key:"off",value:function(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(i){return i!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.observers[n]){var a=[].concat(this.observers[n]);a.forEach(function(l){l.apply(void 0,i)})}if(this.observers["*"]){var s=[].concat(this.observers["*"]);s.forEach(function(l){l.apply(l,[n].concat(i))})}}}]),e}();function Yi(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function Zg(e){return e==null?"":""+e}function k_(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function ku(e,t,n){function r(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return i()?{}:{obj:e,k:r(o.shift())}}function em(e,t,n){var r=ku(e,t,Object),i=r.obj,o=r.k;i[o]=n}function __(e,t,n,r){var i=ku(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],r&&(o[a]=o[a].concat(n)),r||o[a].push(n)}function qa(e,t){var n=ku(e,t),r=n.obj,i=n.k;if(r)return r[i]}function S_(e,t,n){var r=qa(e,n);return r!==void 0?r:qa(t,n)}function tm(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):tm(e[r],t[r],n):e[r]=t[r]);return e}function Pr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var E_={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function C_(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return E_[t]}):e}var Qa=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,P_=[" ",",","?","!",";"];function N_(e,t,n){t=t||"",n=n||"";var r=P_.filter(function(s){return t.indexOf(s)<0&&n.indexOf(s)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}function Ja(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,o=0;o<r.length;++o){if(!i||typeof i[r[o]]=="string"&&o+1<r.length)return;if(i[r[o]]===void 0){for(var a=2,s=r.slice(o,o+a).join(n),l=i[s];l===void 0&&r.length>o+a;)a++,s=r.slice(o,o+a).join(n),l=i[s];if(l===void 0)return;if(l===null)return null;if(t.endsWith(s)){if(typeof l=="string")return l;if(s&&typeof l[s]=="string")return l[s]}var c=r.slice(o+a).join(n);return c?Ja(l,c,n):void 0}i=i[r[o]]}return i}}function nm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nm(Object(n),!0).forEach(function(r){rn.default(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function T_(e){var t=$_();return function(){var r=nn.default(e),i;if(t){var o=nn.default(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Bi.default(this,i)}}function $_(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var R_=function(e){Ka.default(n,e);var t=T_(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return st.default(this,n),i=t.call(this),Qa&&on.call(Nn.default(i)),i.data=r||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return lt.default(n,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,c=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,p=[i,o];a&&typeof a!="string"&&(p=p.concat(a)),a&&typeof a=="string"&&(p=p.concat(l?a.split(l):a)),i.indexOf(".")>-1&&(p=i.split("."));var d=qa(this.data,p);return d||!c||typeof a!="string"?d:Ja(this.data&&this.data[i]&&this.data[i][o],a,l)}},{key:"addResource",value:function(i,o,a,s){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},c=this.options.keySeparator;c===void 0&&(c=".");var p=[i,o];a&&(p=p.concat(c?a.split(c):a)),i.indexOf(".")>-1&&(p=i.split("."),s=o,o=p[1]),this.addNamespaces(o),em(this.data,p,s),l.silent||this.emit("added",i,o,a,s)}},{key:"addResources",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var l in a)(typeof a[l]=="string"||Object.prototype.toString.apply(a[l])==="[object Array]")&&this.addResource(i,o,l,a[l],{silent:!0});s.silent||this.emit("added",i,o,a)}},{key:"addResourceBundle",value:function(i,o,a,s,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},p=[i,o];i.indexOf(".")>-1&&(p=i.split("."),s=a,a=o,o=p[1]),this.addNamespaces(o);var d=qa(this.data,p)||{};s?tm(d,a,l):d=Xa(Xa({},d),a),em(this.data,p,d),c.silent||this.emit("added",i,o,a)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Xa(Xa({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),a=o&&Object.keys(o)||[];return!!a.find(function(s){return o[s]&&Object.keys(o[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(on),rm={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,i,o){var a=this;return t.forEach(function(s){a.processors[s]&&(n=a.processors[s].process(n,r,i,o))}),n}};function im(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ee(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?im(Object(n),!0).forEach(function(r){rn.default(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):im(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function O_(e){var t=D_();return function(){var r=nn.default(e),i;if(t){var o=nn.default(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Bi.default(this,i)}}function D_(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var om={},am=function(e){Ka.default(n,e);var t=O_(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return st.default(this,n),i=t.call(this),Qa&&on.call(Nn.default(i)),k_(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,Nn.default(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=ct.create("translator"),i}return lt.default(n,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var a=this.resolve(i,o);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(i,o){var a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,l=o.ns||this.options.defaultNS||[],c=a&&i.indexOf(a)>-1,p=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!N_(i,a,s);if(c&&!p){var d=i.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:i,namespaces:l};var f=i.split(a);(a!==s||a===s&&this.options.ns.indexOf(f[0])>-1)&&(l=f.shift()),i=f.join(s)}return typeof l=="string"&&(l=[l]),{key:i,namespaces:l}}},{key:"translate",value:function(i,o,a){var s=this;if(Ui.default(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var l=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,c=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,p=this.extractFromKey(i[i.length-1],o),d=p.key,f=p.namespaces,y=f[f.length-1],v=o.lng||this.language,_=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(v&&v.toLowerCase()==="cimode"){if(_){var m=o.nsSeparator||this.options.nsSeparator;return l?{res:"".concat(y).concat(m).concat(d),usedKey:d,exactUsedKey:d,usedLng:v,usedNS:y}:"".concat(y).concat(m).concat(d)}return l?{res:d,usedKey:d,exactUsedKey:d,usedLng:v,usedNS:y}:d}var h=this.resolve(i,o),g=h&&h.res,w=h&&h.usedKey||d,k=h&&h.exactUsedKey||d,C=Object.prototype.toString.apply(g),S=["[object Number]","[object Function]","[object RegExp]"],$=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,O=!this.i18nFormat||this.i18nFormat.handleAsObject,N=typeof g!="string"&&typeof g!="boolean"&&typeof g!="number";if(O&&g&&N&&S.indexOf(C)<0&&!(typeof $=="string"&&C==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var F=this.options.returnedObjectHandler?this.options.returnedObjectHandler(w,g,Ee(Ee({},o),{},{ns:f})):"key '".concat(d," (").concat(this.language,")' returned an object instead of string.");return l?(h.res=F,h):F}if(c){var He=C==="[object Array]",te=He?[]:{},re=He?k:w;for(var Ze in g)if(Object.prototype.hasOwnProperty.call(g,Ze)){var dt="".concat(re).concat(c).concat(Ze);te[Ze]=this.translate(dt,Ee(Ee({},o),{joinArrays:!1,ns:f})),te[Ze]===dt&&(te[Ze]=g[Ze])}g=te}}else if(O&&typeof $=="string"&&C==="[object Array]")g=g.join($),g&&(g=this.extendTranslation(g,i,o,a));else{var pt=!1,Ct=!1,Tr=o.count!==void 0&&typeof o.count!="string",Tn=n.hasDefaultValue(o),Eu=Tr?this.pluralResolver.getSuffix(v,o.count,o):"",P=o["defaultValue".concat(Eu)]||o.defaultValue;!this.isValidLookup(g)&&Tn&&(pt=!0,g=P),this.isValidLookup(g)||(Ct=!0,g=d);var D=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,j=D&&Ct?void 0:g,B=Tn&&P!==g&&this.options.updateMissing;if(Ct||pt||B){if(this.logger.log(B?"updateKey":"missingKey",v,y,d,B?P:g),c){var ie=this.resolve(d,Ee(Ee({},o),{},{keySeparator:!1}));ie&&ie.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var Le=[],Ge=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ge&&Ge[0])for(var Pt=0;Pt<Ge.length;Pt++)Le.push(Ge[Pt]);else this.options.saveMissingTo==="all"?Le=this.languageUtils.toResolveHierarchy(o.lng||this.language):Le.push(o.lng||this.language);var Nt=function($r,Pu,km){var _m=Tn&&km!==g?km:j;s.options.missingKeyHandler?s.options.missingKeyHandler($r,y,Pu,_m,B,o):s.backendConnector&&s.backendConnector.saveMissing&&s.backendConnector.saveMissing($r,y,Pu,_m,B,o),s.emit("missingKey",$r,y,Pu,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Tr?Le.forEach(function(Cu){s.pluralResolver.getSuffixes(Cu,o).forEach(function($r){Nt([Cu],d+$r,o["defaultValue".concat($r)]||P)})}):Nt(Le,d,P))}g=this.extendTranslation(g,i,o,h,a),Ct&&g===d&&this.options.appendNamespaceToMissingKey&&(g="".concat(y,":").concat(d)),(Ct||pt)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(y,":").concat(d):d,pt?g:void 0):g=this.options.parseMissingKeyHandler(g))}return l?(h.res=g,h):g}},{key:"extendTranslation",value:function(i,o,a,s,l){var c=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,Ee(Ee({},this.options.interpolation.defaultVariables),a),s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init(Ee(Ee({},a),{interpolation:Ee(Ee({},this.options.interpolation),a.interpolation)}));var p=typeof i=="string"&&(a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),d;if(p){var f=i.match(this.interpolator.nestingRegexp);d=f&&f.length}var y=a.replace&&typeof a.replace!="string"?a.replace:a;if(this.options.interpolation.defaultVariables&&(y=Ee(Ee({},this.options.interpolation.defaultVariables),y)),i=this.interpolator.interpolate(i,y,a.lng||this.language,a),p){var v=i.match(this.interpolator.nestingRegexp),_=v&&v.length;d<_&&(a.nest=!1)}!a.lng&&this.options.compatibilityAPI!=="v1"&&s&&s.res&&(a.lng=s.usedLng),a.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var g=arguments.length,w=new Array(g),k=0;k<g;k++)w[k]=arguments[k];return l&&l[0]===w[0]&&!a.context?(c.logger.warn("It seems you are nesting recursively key: ".concat(w[0]," in key: ").concat(o[0])),null):c.translate.apply(c,w.concat([o]))},a)),a.interpolation&&this.interpolator.reset()}var m=a.postProcess||this.options.postProcess,h=typeof m=="string"?[m]:m;return i!=null&&h&&h.length&&a.applyPostProcessor!==!1&&(i=rm.handle(h,i,o,this.options&&this.options.postProcessPassResolved?Ee({i18nResolved:s},a):a,this)),i}},{key:"resolve",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,l,c,p,d;return typeof i=="string"&&(i=[i]),i.forEach(function(f){if(!o.isValidLookup(s)){var y=o.extractFromKey(f,a),v=y.key;l=v;var _=y.namespaces;o.options.fallbackNS&&(_=_.concat(o.options.fallbackNS));var m=a.count!==void 0&&typeof a.count!="string",h=m&&!a.ordinal&&a.count===0&&o.pluralResolver.shouldUseIntlApi(),g=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",w=a.lngs?a.lngs:o.languageUtils.toResolveHierarchy(a.lng||o.language,a.fallbackLng);_.forEach(function(k){o.isValidLookup(s)||(d=k,!om["".concat(w[0],"-").concat(k)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(d)&&(om["".concat(w[0],"-").concat(k)]=!0,o.logger.warn('key "'.concat(l,'" for languages "').concat(w.join(", "),`" won't get resolved as namespace "`).concat(d,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),w.forEach(function(C){if(!o.isValidLookup(s)){p=C;var S=[v];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(S,v,C,k,a);else{var $;m&&($=o.pluralResolver.getSuffix(C,a.count,a));var O="".concat(o.options.pluralSeparator,"zero");if(m&&(S.push(v+$),h&&S.push(v+O)),g){var N="".concat(v).concat(o.options.contextSeparator).concat(a.context);S.push(N),m&&(S.push(N+$),h&&S.push(N+O))}}for(var F;F=S.pop();)o.isValidLookup(s)||(c=F,s=o.getResource(C,k,F,a))}}))})}}),{res:s,usedKey:l,exactUsedKey:c,usedLng:p,usedNS:d}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,a,s):this.resourceStore.getResource(i,o,a,s)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)&&o===a.substring(0,o.length)&&i[a]!==void 0)return!0;return!1}}]),n}(on);function _u(e){return e.charAt(0).toUpperCase()+e.slice(1)}var sm=function(){function e(t){st.default(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ct.create("languageUtils")}return lt.default(e,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],i=n.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=_u(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=_u(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=_u(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var i;return n.forEach(function(o){if(!i){var a=r.formatLanguageCode(o);(!r.options.supportedLngs||r.isSupportedCode(a))&&(i=a)}}),!i&&this.options.supportedLngs&&n.forEach(function(o){if(!i){var a=r.getLanguagePartFromCode(o);if(r.isSupportedCode(a))return i=a;i=r.options.supportedLngs.find(function(s){if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&s.indexOf(a)===0)return s})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],n),a=[],s=function(c){c&&(i.isSupportedCode(c)?a.push(c):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(c)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(n))):typeof n=="string"&&s(this.formatLanguageCode(n)),o.forEach(function(l){a.indexOf(l)<0&&s(i.formatLanguageCode(l))}),a}}]),e}(),L_=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],I_={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}},j_=["v1","v2","v3"],lm={zero:0,one:1,two:2,few:3,many:4,other:5};function A_(){var e={};return L_.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:I_[t.fc]}})}),e}var M_=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};st.default(this,e),this.languageUtils=t,this.options=n,this.logger=ct.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=A_()}return lt.default(e,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(function(o){return"".concat(r).concat(o)})}},{key:"getSuffixes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(a,s){return lm[a]-lm[s]}).map(function(a){return"".concat(r.options.prepend).concat(a)}):o.numbers.map(function(a){return r.getSuffix(n,a,i)}):[]}},{key:"getSuffix",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(r)):this.getSuffixRetroCompatible(o,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var i=this,o=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),a=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var s=function(){return i.options.prepend&&a.toString()?i.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?s():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!j_.includes(this.options.compatibilityJSON)}}]),e}();function cm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cm(Object(n),!0).forEach(function(r){rn.default(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function um(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=S_(e,t,n);return!o&&i&&typeof n=="string"&&(o=Ja(e,n,r),o===void 0&&(o=Ja(t,n,r))),o}var z_=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};st.default(this,e),this.logger=ct.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return lt.default(e,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:C_,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?Pr(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?Pr(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?Pr(r.nestingPrefix):r.nestingPrefixEscaped||Pr("$t("),this.nestingSuffix=r.nestingSuffix?Pr(r.nestingSuffix):r.nestingSuffixEscaped||Pr(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(n,r,i,o){var a=this,s,l,c,p=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(m){return m.replace(/\$/g,"$$$$")}var f=function(h){if(h.indexOf(a.formatSeparator)<0){var g=um(r,p,h,a.options.keySeparator,a.options.ignoreJSONStructure);return a.alwaysFormat?a.format(g,void 0,i,Xe(Xe(Xe({},o),r),{},{interpolationkey:h})):g}var w=h.split(a.formatSeparator),k=w.shift().trim(),C=w.join(a.formatSeparator).trim();return a.format(um(r,p,k,a.options.keySeparator,a.options.ignoreJSONStructure),C,i,Xe(Xe(Xe({},o),r),{},{interpolationkey:k}))};this.resetRegExp();var y=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,v=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,_=[{regex:this.regexpUnescape,safeValue:function(h){return d(h)}},{regex:this.regexp,safeValue:function(h){return a.escapeValue?d(a.escape(h)):d(h)}}];return _.forEach(function(m){for(c=0;s=m.regex.exec(n);){var h=s[1].trim();if(l=f(h),l===void 0)if(typeof y=="function"){var g=y(n,s,o);l=typeof g=="string"?g:""}else if(o&&Object.prototype.hasOwnProperty.call(o,h))l="";else if(v){l=s[0];continue}else a.logger.warn("missed to pass in variable ".concat(h," for interpolating ").concat(n)),l="";else typeof l!="string"&&!a.useRawValueToEscape&&(l=Zg(l));var w=m.safeValue(l);if(n=n.replace(s[0],w),v?(m.regex.lastIndex+=l.length,m.regex.lastIndex-=s[0].length):m.regex.lastIndex=0,c++,c>=a.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,l;function c(y,v){var _=this.nestingOptionsSeparator;if(y.indexOf(_)<0)return y;var m=y.split(new RegExp("".concat(_,"[ ]*{"))),h="{".concat(m[1]);y=m[0],h=this.interpolate(h,l);var g=h.match(/'/g),w=h.match(/"/g);(g&&g.length%2===0&&!w||w.length%2!==0)&&(h=h.replace(/'/g,'"'));try{l=JSON.parse(h),v&&(l=Xe(Xe({},v),l))}catch(k){return this.logger.warn("failed parsing options string in nesting for key ".concat(y),k),"".concat(y).concat(_).concat(h)}return delete l.defaultValue,y}for(;a=this.nestingRegexp.exec(n);){var p=[];l=Xe({},o),l=l.replace&&typeof l.replace!="string"?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;var d=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var f=a[1].split(this.formatSeparator).map(function(y){return y.trim()});a[1]=f.shift(),p=f,d=!0}if(s=r(c.call(this,a[1].trim(),l),l),s&&a[0]===n&&typeof s!="string")return s;typeof s!="string"&&(s=Zg(s)),s||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(n)),s=""),d&&(s=p.reduce(function(y,v){return i.format(y,v,o.lng,Xe(Xe({},o),{},{interpolationkey:a[1].trim()}))},s.trim())),n=n.replace(a[0],s),this.regexp.lastIndex=0}return n}}]),e}();function dm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dm(Object(n),!0).forEach(function(r){rn.default(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function F_(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(t==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var o=i.split(";");o.forEach(function(a){if(a){var s=a.split(":"),l=b_.default(s),c=l[0],p=l.slice(1),d=p.join(":").trim().replace(/^'+|'+$/g,"");n[c.trim()]||(n[c.trim()]=d),d==="false"&&(n[c.trim()]=!1),d==="true"&&(n[c.trim()]=!0),isNaN(d)||(n[c.trim()]=parseInt(d,10))}})}}return{formatName:t,formatOptions:n}}function Nr(e){var t={};return function(r,i,o){var a=i+JSON.stringify(o),s=t[a];return s||(s=e(i,o),t[a]=s),s(r)}}var U_=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};st.default(this,e),this.logger=ct.create("formatter"),this.options=t,this.formats={number:Nr(function(n,r){var i=new Intl.NumberFormat(n,Et({},r));return function(o){return i.format(o)}}),currency:Nr(function(n,r){var i=new Intl.NumberFormat(n,Et(Et({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:Nr(function(n,r){var i=new Intl.DateTimeFormat(n,Et({},r));return function(o){return i.format(o)}}),relativetime:Nr(function(n,r){var i=new Intl.RelativeTimeFormat(n,Et({},r));return function(o){return i.format(o,r.range||"day")}}),list:Nr(function(n,r){var i=new Intl.ListFormat(n,Et({},r));return function(o){return i.format(o)}})},this.init(t)}return lt.default(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=r.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=Nr(r)}},{key:"format",value:function(n,r,i){var o=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=r.split(this.formatSeparator),l=s.reduce(function(c,p){var d=F_(p),f=d.formatName,y=d.formatOptions;if(o.formats[f]){var v=c;try{var _=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},m=_.locale||_.lng||a.locale||a.lng||i;v=o.formats[f](c,m,Et(Et(Et({},y),a),_))}catch(h){o.logger.warn(h)}return v}else o.logger.warn("there was no format function for ".concat(f));return c},n);return l}}]),e}();function pm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pm(Object(n),!0).forEach(function(r){rn.default(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function B_(e){var t=Y_();return function(){var r=nn.default(e),i;if(t){var o=nn.default(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Bi.default(this,i)}}function Y_(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function H_(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var G_=function(e){Ka.default(n,e);var t=B_(n);function n(r,i,o){var a,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return st.default(this,n),a=t.call(this),Qa&&on.call(Nn.default(a)),a.backend=r,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=s,a.logger=ct.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=s.maxParallelReads||10,a.readingCalls=0,a.maxRetries=s.maxRetries>=0?s.maxRetries:5,a.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,s.backend,s),a}return lt.default(n,[{key:"queueLoad",value:function(i,o,a,s){var l=this,c={},p={},d={},f={};return i.forEach(function(y){var v=!0;o.forEach(function(_){var m="".concat(y,"|").concat(_);!a.reload&&l.store.hasResourceBundle(y,_)?l.state[m]=2:l.state[m]<0||(l.state[m]===1?p[m]===void 0&&(p[m]=!0):(l.state[m]=1,v=!1,p[m]===void 0&&(p[m]=!0),c[m]===void 0&&(c[m]=!0),f[_]===void 0&&(f[_]=!0)))}),v||(d[y]=!0)}),(Object.keys(c).length||Object.keys(p).length)&&this.queue.push({pending:p,pendingCount:Object.keys(p).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(c),pending:Object.keys(p),toLoadLanguages:Object.keys(d),toLoadNamespaces:Object.keys(f)}}},{key:"loaded",value:function(i,o,a){var s=i.split("|"),l=s[0],c=s[1];o&&this.emit("failedLoading",l,c,o),a&&this.store.addResourceBundle(l,c,a),this.state[i]=o?-1:2;var p={};this.queue.forEach(function(d){__(d.loaded,[l],c),H_(d,i),o&&d.errors.push(o),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(function(f){p[f]||(p[f]={});var y=d.loaded[f];y.length&&y.forEach(function(v){p[f][v]===void 0&&(p[f][v]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",p),this.queue=this.queue.filter(function(d){return!d.done})}},{key:"read",value:function(i,o,a){var s=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,p=arguments.length>5?arguments[5]:void 0;if(!i.length)return p(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:a,tried:l,wait:c,callback:p});return}this.readingCalls++;var d=function(_,m){if(s.readingCalls--,s.waitingReads.length>0){var h=s.waitingReads.shift();s.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(_&&m&&l<s.maxRetries){setTimeout(function(){s.read.call(s,i,o,a,l+1,c*2,p)},c);return}p(_,m)},f=this.backend[a].bind(this.backend);if(f.length===2){try{var y=f(i,o);y&&typeof y.then=="function"?y.then(function(v){return d(null,v)}).catch(d):d(null,y)}catch(v){d(v)}return}return f(i,o,d)}},{key:"prepareLoading",value:function(i,o){var a=this,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var c=this.queueLoad(i,o,s,l);if(!c.toLoad.length)return c.pending.length||l(),null;c.toLoad.forEach(function(p){a.loadOne(p)})}},{key:"load",value:function(i,o,a){this.prepareLoading(i,o,{},a)}},{key:"reload",value:function(i,o,a){this.prepareLoading(i,o,{reload:!0},a)}},{key:"loadOne",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=i.split("|"),l=s[0],c=s[1];this.read(l,c,"read",void 0,void 0,function(p,d){p&&o.logger.warn("".concat(a,"loading namespace ").concat(c," for language ").concat(l," failed"),p),!p&&d&&o.logger.log("".concat(a,"loaded namespace ").concat(c," for language ").concat(l),d),o.loaded(i,p,d)})}},{key:"saveMissing",value:function(i,o,a,s,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},p=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend&&this.backend.create){var d=fm(fm({},c),{},{isUpdate:l}),f=this.backend.create.bind(this.backend);if(f.length<6)try{var y;f.length===5?y=f(i,o,a,s,d):y=f(i,o,a,s),y&&typeof y.then=="function"?y.then(function(v){return p(null,v)}).catch(p):p(null,y)}catch(v){p(v)}else f(i,o,a,s,p,d)}!i||!i[0]||this.store.addResource(i[0],o,a,s)}}}]),n}(on);function hm(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var n={};if(Ui.default(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),Ui.default(t[2])==="object"||Ui.default(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(t,n,r,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function gm(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function mm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ut(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mm(Object(n),!0).forEach(function(r){rn.default(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function W_(e){var t=V_();return function(){var r=nn.default(e),i;if(t){var o=nn.default(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Bi.default(this,i)}}function V_(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Za(){}function K_(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var es=function(e){Ka.default(n,e);var t=W_(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(st.default(this,n),r=t.call(this),Qa&&on.call(Nn.default(r)),r.options=gm(i),r.services={},r.logger=ct,r.modules={external:[]},K_(Nn.default(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),Bi.default(r,Nn.default(r));setTimeout(function(){r.init(i,o)},0)}return r}return lt.default(n,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(a=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var s=hm();this.options=ut(ut(ut({},s),this.options),gm(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=ut(ut({},s.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function l(h){return h?typeof h=="function"?new h:h:null}if(!this.options.isClone){this.modules.logger?ct.init(l(this.modules.logger),this.options):ct.init(null,this.options);var c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=U_);var p=new sm(this.options);this.store=new R_(this.options.resources,this.options);var d=this.services;d.logger=ct,d.resourceStore=this.store,d.languageUtils=p,d.pluralResolver=new M_(p,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(d.formatter=l(c),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new z_(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new G_(l(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(h){for(var g=arguments.length,w=new Array(g>1?g-1:0),k=1;k<g;k++)w[k-1]=arguments[k];i.emit.apply(i,[h].concat(w))}),this.modules.languageDetector&&(d.languageDetector=l(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=l(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new am(this.services,this.options),this.translator.on("*",function(h){for(var g=arguments.length,w=new Array(g>1?g-1:0),k=1;k<g;k++)w[k-1]=arguments[k];i.emit.apply(i,[h].concat(w))}),this.modules.external.forEach(function(h){h.init&&h.init(i)})}if(this.format=this.options.interpolation.format,a||(a=Za),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var y=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];y.forEach(function(h){i[h]=function(){var g;return(g=i.store)[h].apply(g,arguments)}});var v=["addResource","addResources","addResourceBundle","removeResourceBundle"];v.forEach(function(h){i[h]=function(){var g;return(g=i.store)[h].apply(g,arguments),i}});var _=Yi(),m=function(){var g=function(k,C){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),_.resolve(C),a(k,C)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return g(null,i.t.bind(i));i.changeLanguage(i.options.lng,g)};return this.options.resources||!this.options.initImmediate?m():setTimeout(m,0),_}},{key:"loadResources",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Za,s=a,l=typeof i=="string"?i:this.language;if(typeof i=="function"&&(s=i),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode")return s();var c=[],p=function(y){if(y){var v=o.services.languageUtils.toResolveHierarchy(y);v.forEach(function(_){c.indexOf(_)<0&&c.push(_)})}};if(l)p(l);else{var d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.forEach(function(f){return p(f)})}this.options.preload&&this.options.preload.forEach(function(f){return p(f)}),this.services.backendConnector.load(c,this.options.ns,function(f){!f&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),s(f)})}else s(null)}},{key:"reloadResources",value:function(i,o,a){var s=Yi();return i||(i=this.languages),o||(o=this.options.ns),a||(a=Za),this.services.backendConnector.reload(i,o,function(l){s.resolve(),a(l)}),s}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&rm.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o<this.languages.length;o++){var a=this.languages[o];if(!(["cimode","dev"].indexOf(a)>-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(i,o){var a=this;this.isLanguageChangingTo=i;var s=Yi();this.emit("languageChanging",i);var l=function(f){a.language=f,a.languages=a.services.languageUtils.toResolveHierarchy(f),a.resolvedLanguage=void 0,a.setResolvedLanguage(f)},c=function(f,y){y?(l(y),a.translator.changeLanguage(y),a.isLanguageChangingTo=void 0,a.emit("languageChanged",y),a.logger.log("languageChanged",y)):a.isLanguageChangingTo=void 0,s.resolve(function(){return a.t.apply(a,arguments)}),o&&o(f,function(){return a.t.apply(a,arguments)})},p=function(f){!i&&!f&&a.services.languageDetector&&(f=[]);var y=typeof f=="string"?f:a.services.languageUtils.getBestMatchFromCodes(f);y&&(a.language||l(y),a.translator.language||a.translator.changeLanguage(y),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage&&a.services.languageDetector.cacheUserLanguage(y)),a.loadResources(y,function(v){c(v,y)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?p(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(p):this.services.languageDetector.detect(p):p(i),s}},{key:"getFixedT",value:function(i,o,a){var s=this,l=function c(p,d){var f;if(Ui.default(d)!=="object"){for(var y=arguments.length,v=new Array(y>2?y-2:0),_=2;_<y;_++)v[_-2]=arguments[_];f=s.options.overloadTranslationOptionHandler([p,d].concat(v))}else f=ut({},d);f.lng=f.lng||c.lng,f.lngs=f.lngs||c.lngs,f.ns=f.ns||c.ns,f.keyPrefix=f.keyPrefix||a||c.keyPrefix;var m=s.options.keySeparator||".",h;return f.keyPrefix&&Array.isArray(p)?h=p.map(function(g){return"".concat(f.keyPrefix).concat(m).concat(g)}):h=f.keyPrefix?"".concat(f.keyPrefix).concat(m).concat(p):p,s.t(h,f)};return typeof i=="string"?l.lng=i:l.lngs=i,l.ns=o,l.keyPrefix=a,l}},{key:"t",value:function(){var i;return this.translator&&(i=this.translator).translate.apply(i,arguments)}},{key:"exists",value:function(){var i;return this.translator&&(i=this.translator).exists.apply(i,arguments)}},{key:"setDefaultNamespace",value:function(i){this.options.defaultNS=i}},{key:"hasLoadedNamespace",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var p=function(y,v){var _=o.services.backendConnector.state["".concat(y,"|").concat(v)];return _===-1||_===2};if(a.precheck){var d=a.precheck(this,p);if(d!==void 0)return d}return!!(this.hasResourceBundle(s,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||p(s,i)&&(!l||p(c,i)))}},{key:"loadNamespaces",value:function(i,o){var a=this,s=Yi();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(l){a.options.ns.indexOf(l)<0&&a.options.ns.push(l)}),this.loadResources(function(l){s.resolve(),o&&o(l)}),s):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var a=Yi();typeof i=="string"&&(i=[i]);var s=this.options.preload||[],l=i.filter(function(c){return s.indexOf(c)<0});return l.length?(this.options.preload=s.concat(l),this.loadResources(function(c){a.resolve(),o&&o(c)}),a):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services&&this.services.languageUtils||new sm(hm());return o.indexOf(a.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Za,s=ut(ut(ut({},this.options),o),{isClone:!0}),l=new n(s);(o.debug!==void 0||o.prefix!==void 0)&&(l.logger=l.logger.clone(o));var c=["store","services","language"];return c.forEach(function(p){l[p]=i[p]}),l.services=ut({},this.services),l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l.translator=new am(l.services,l.options),l.translator.on("*",function(p){for(var d=arguments.length,f=new Array(d>1?d-1:0),y=1;y<d;y++)f[y-1]=arguments[y];l.emit.apply(l,[p].concat(f))}),l.init(s,a),l.translator.options=l.options,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(on);rn.default(es,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new es(e,t)});var ym=es.createInstance();ym.createInstance=es.createInstance;var q_=ym;const Q_=q_,vm=["af","ca","cs","de","en","eo","es","fr","hu","it","mn","nl","pl","pt-br","sv","vi"];Wk.exports=(e="en",t="portal")=>{const n=Q_.createInstance();return n.init({lng:e,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:!1,ns:t,defaultNS:t,resources:vm.reduce((r,i)=>(r[i]={[t]:Hk("/i18n/lib")(`../locales/${i}/${t}.json`)},r),{})}),n},Ga.SUPPORTED_LOCALES=vm,function(e){e.exports=Ga}(Pk);const J_=Ie(su),X_={showPopup:!0,site:Er,member:Ya.free,page:"accountEmail",...Xx(),pageData:Wg};function Z_({site:e,children:t}){const{portal_sentry:n}=e||{};return n&&n.dsn?u(Mi,{children:t}):u(U,{children:t})}class e2 extends q.Component{constructor(t){super(t),this.setupCustomTriggerButton(t),this.state={site:null,member:null,page:"loading",showPopup:!1,action:"init:running",initStatus:"running",lastPage:null,customSiteUrl:t.customSiteUrl}}componentDidMount(){this.initSetup()}componentDidUpdate(t,n){var r,i,o;if(n.showPopup!==this.state.showPopup){this.handleCustomTriggerClassUpdate();try{this.state.showPopup?(this.bodyScroll=(o=(i=(r=window.document)==null?void 0:r.body)==null?void 0:i.style)==null?void 0:o.overflow,window.document.body.style.overflow="hidden"):window.document.body.style.overflow=this.bodyScroll||""}catch{}}if(this.state.initStatus==="success"&&n.initStatus!==this.state.initStatus){const{siteUrl:a}=this.props,s=this.getContextFromState();this.sendPortalReadyEvent(),Ck({siteUrl:a,site:s.site,member:s.member})}}componentWillUnmount(){clearTimeout(this.timeoutId),this.customTriggerButtons&&this.customTriggerButtons.forEach(t=>{t.removeEventListener("click",this.clickHandler)}),window.removeEventListener("hashchange",this.hashHandler,!1)}sendPortalReadyEvent(){window.self!==window.parent&&window.parent.postMessage({type:"portal-ready",payload:{}},"*")}setupCustomTriggerButton(){this.clickHandler=r=>{r.preventDefault();const i=r.currentTarget,o=i&&i.dataset.portal,{page:a,pageQuery:s}=this.getPageFromLinkPath(o)||{};this.state.initStatus==="success"&&(s&&s!=="free"?this.handleSignupQuery({site:this.state.site,pageQuery:s}):this.dispatchAction("openPopup",{page:a,pageQuery:s}))};const t="[data-portal]",n="gh-portal-close";this.customTriggerButtons=document.querySelectorAll(t)||[],this.customTriggerButtons.forEach(r=>{r.classList.add(n),r.removeEventListener("click",this.clickHandler),r.addEventListener("click",this.clickHandler)})}handleCustomTriggerClassUpdate(){var r;const t="gh-portal-open",n="gh-portal-close";(r=this.customTriggerButtons)==null||r.forEach(i=>{const o=this.state.showPopup?t:n,a=this.state.showPopup?n:t;i.classList.add(o),i.classList.remove(a)})}async initSetup(){try{const{site:t,member:n,page:r,showPopup:i,popupNotification:o,lastPage:a,pageQuery:s,pageData:l}=await this.fetchData(),c=this.props.siteI18nEnabled?t.locale:"en",p=J_(c,"portal"),d={site:t,member:n,page:r,lastPage:a,pageQuery:s,showPopup:i,pageData:l,popupNotification:o,t:p.t,action:"init:success",initStatus:"success"};this.handleSignupQuery({site:t,pageQuery:s,member:n}),this.setState(d),this.hashHandler=()=>{this.updateStateForPreviewLinks()},window.addEventListener("hashchange",this.hashHandler,!1)}catch(t){console.error("[Portal] Failed to initialize:",t),this.setState({action:"init:failed",initStatus:"failed"})}}async fetchData(){const{site:t,member:n}=await this.fetchApiData(),{site:r,...i}=this.fetchDevData(),{site:o,...a}=this.fetchLinkData(),{site:s,...l}=this.fetchPreviewData(),{site:c,...p}=this.fetchNotificationData();return{member:n,page:"",site:{...t,...o,...s,...c,...r,plans:{...(r||{}).plans,...(t||{}).plans,...(s||{}).plans}},...i,...a,...p,...l}}fetchDevData(){return K(["dev"])&&!this.state.customSiteUrl?X_:K(["test"])?{showPopup:this.props.showPopup!==void 0?this.props.showPopup:!0}:{}}fetchOfferQueryStrData(t=""){const n=new URLSearchParams(t),r={};for(let i of n.entries()){const o=i[0],a=decodeURIComponent(i[1]);o==="name"?r.name=a||"":o==="code"?r.code=a||"":o==="display_title"?r.display_title=a||"":o==="display_description"?r.display_description=a||"":o==="type"?r.type=a||"":o==="cadence"?r.cadence=a||"":o==="duration"?r.duration=a||"":o==="duration_in_months"&&!isNaN(Number(a))?r.duration_in_months=Number(a):o==="amount"&&!isNaN(Number(a))?r.amount=Number(a):o==="currency"?r.currency=a||"":o==="status"?r.status=a||"":o==="tier_id"&&(r.tier={id:a||Wg.tier.id})}return{page:"offer",pageData:r}}fetchQueryStrData(t=""){const n=new URLSearchParams(t),r={site:{plans:{}}},i=[];let o,a=null,s,l,c;for(let p of n.entries()){const d=p[0],f=decodeURIComponent(p[1]);if(d==="button")r.site.portal_button=JSON.parse(f);else if(d==="name")r.site.portal_name=JSON.parse(f);else if(d==="isFree"&&JSON.parse(f))i.push("free");else if(d==="isMonthly"&&JSON.parse(f))i.push("monthly");else if(d==="isYearly"&&JSON.parse(f))i.push("yearly");else if(d==="portalPrices")o=f?f.split(","):[];else if(d==="portalProducts")a=f?f.split(","):[];else if(d==="page"&&f)r.page=f;else if(d==="accentColor"&&(f===""||f))r.site.accent_color=f;else if(d==="buttonIcon"&&f)r.site.portal_button_icon=f;else if(d==="signupButtonText")r.site.portal_button_signup_text=f||"";else if(d==="signupTermsHtml")r.site.portal_signup_terms_html=f||"";else if(d==="signupCheckboxRequired")r.site.portal_signup_checkbox_required=JSON.parse(f);else if(d==="buttonStyle"&&f)r.site.portal_button_style=f;else if(d==="monthlyPrice"&&!isNaN(Number(f)))r.site.plans.monthly=Number(f),s=Number(f);else if(d==="yearlyPrice"&&!isNaN(Number(f)))r.site.plans.yearly=Number(f),l=Number(f);else if(d==="currency"&&f){const y=f.toUpperCase();r.site.plans.currency=y,r.site.plans.currency_symbol=fe(y),c=y}else d==="disableBackground"?r.site.disableBackground=JSON.parse(f):d==="allowSelfSignup"?r.site.allow_self_signup=JSON.parse(f):d==="membersSignupAccess"&&f&&(r.site.members_signup_access=f)}return r.site.portal_plans=i,r.site.portal_products=a,o?r.site.portal_plans=o:s&&l&&c&&(r.site.prices=[{id:"monthly",stripe_price_id:"dummy_stripe_monthly",stripe_product_id:"dummy_stripe_product",active:1,nickname:"Monthly",currency:c,amount:s,type:"recurring",interval:"month"},{id:"yearly",stripe_price_id:"dummy_stripe_yearly",stripe_product_id:"dummy_stripe_product",active:1,nickname:"Yearly",currency:c,amount:l,type:"recurring",interval:"year"}]),r}fetchNotificationData(){const{type:t,status:n,duration:r,autoHide:i,closeable:o}=fg({billingOnly:!0})||{};return["stripe:billing-update"].includes(t)?n==="success"?{showPopup:!0,popupNotification:X({type:t,status:n,duration:r,closeable:o,autoHide:i,state:this.state,message:n==="success"?"Billing info updated successfully":""})}:{showPopup:!0}:{}}fetchLinkData(){const t=new URLSearchParams(window.location.search);if(t.get("uuid")&&t.get("action")==="unsubscribe")return{showPopup:!0,page:"unsubscribe",pageData:{uuid:t.get("uuid"),newsletterUuid:t.get("newsletter"),comments:t.get("comments")}};const[n,r]=window.location.hash.substr(1).split("?"),i=new URLSearchParams(r??""),o=/^(?:(\w+?))?\/monthly$/,a=/^(?:(\w+?))?\/yearly$/,s=/^offers\/(\w+?)\/?$/,l=/^\/portal\/?(?:\/(\w+(?:\/\w+)*))?\/?$/,c=/^\/feedback\/(\w+?)\/(\w+?)\/?$/;if(n&&c.test(n)&&i.get("uuid")){const[,p,d]=n.match(c),f=parseInt(d);if(f===1||f===0)return{showPopup:!0,page:"feedback",pageData:{uuid:i.get("uuid"),postId:p,score:f}}}if(n&&l.test(n)){const[,p]=n.match(l),{page:d,pageQuery:f}=this.getPageFromLinkPath(p)||{},y=["accountPlan","accountProfile"].includes(d)?"accountHome":null;return{showPopup:!(["monthly","yearly"].includes(f)||o.test(f)||a.test(f)||s.test(f)),...d?{page:d}:{},...f?{pageQuery:f}:{},...y?{lastPage:y}:{}}}return{}}fetchPreviewData(){const[,t]=window.location.hash.substr(1).split("?");if(K(["preview"])){let n={};return K(["offerPreview"])?n=this.fetchOfferQueryStrData(t):n=this.fetchQueryStrData(t),{...n,showPopup:!0}}return{}}getColorOverride(){const t=document.querySelector("script[data-ghost]");return t&&t.dataset.accentColor?t.dataset.accentColor:!1}async fetchApiData(){const{siteUrl:t,customSiteUrl:n,apiUrl:r,apiKey:i}=this.props;try{this.GhostApi=this.props.api||za({siteUrl:t,apiUrl:r,apiKey:i});const{site:o,member:a}=await this.GhostApi.init(),s=this.getColorOverride();return s&&(o.accent_color=s),this.setupFirstPromoter({site:o,member:a}),this.setupSentry({site:o}),{site:o,member:a}}catch(o){if(K(["dev","test"],{customSiteUrl:n}))return{};throw o}}setupSentry({site:t}){if(K(["test"]))return null;const{portal_sentry:n,portal_version:r,version:i}=t,a=`portal@2.28.1|ghost@${i}`;n&&n.dsn&&vb({dsn:n.dsn,environment:n.env||"development",release:a,beforeSend:s=>Ab({event:s})?s:null,allowUrls:[/https?:\/\/((www)\.)?unpkg\.com\/@tryghost\/portal/]})}setupFirstPromoter({site:t,member:n}){if(K(["test"]))return null;const r=Qb({site:t});let i=Qc({site:t});if(i=i==null?void 0:i.replace(/^(\S*\.)?(\S*\.\S*)$/i,".$2"),r&&i){const o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src="https://cdn.firstpromoter.com/fprom.js",o.onload=o.onreadystatechange=function(){let s=this.readyState;if(!s||s==="complete"||s==="loaded")try{if(window.$FPROM.init(r,i),aw({member:n})){const l=n.email,c=n.uuid;if(window.$FPROM)window.$FPROM.trackSignup({email:l,uid:c});else{const p=window._fprom||[];window._fprom=p,p.push(["event","signup"]),p.push(["email",l]),p.push(["uid",c])}}}catch{}};const a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(o,a)}}async dispatchAction(t,n){clearTimeout(this.timeoutId),this.setState({action:`${t}:running`});try{const r=await _k({action:t,data:n,state:this.state,api:this.GhostApi});this.setState(r),r&&r.action&&!r.action.includes(":failed")&&(this.timeoutId=setTimeout(()=>{this.setState({action:""})},2e3))}catch(r){const i=X({type:`${t}:failed`,autoHide:!0,closeable:!0,status:"error",state:this.state,meta:{error:r}});this.setState({action:`${t}:failed`,popupNotification:i})}}updateStateForPreviewLinks(){const{site:t,...n}=this.fetchPreviewData(),{site:r,...i}=this.fetchLinkData(),o={site:{...this.state.site,...r||{},...t||{},plans:{...this.state.site&&this.state.site.plans,...(r||{}).plans,...(t||{}).plans}},...i,...n};this.handleSignupQuery({site:o.site,pageQuery:o.pageQuery}),this.setState(o)}async handleOfferQuery({site:t,offerId:n,member:r=this.state.member}){const{portal_button:i}=t;if(Gc(),!kt({member:r}))try{const o=await this.GhostApi.site.offer({offerId:n}),a=o==null?void 0:o.offers[0];if(tw({site:t,offer:a}))if(i)this.dispatchAction("openPopup",{page:"offer",pageData:o==null?void 0:o.offers[0]});else{const s=br({site:t,productId:a.tier.id}),l=a.cadence==="month"?s.monthlyPrice:s.yearlyPrice;if(this.dispatchAction("openPopup",{page:"loading"}),r){const{tierId:c,cadence:p}=Cn({site:t,priceId:l.id});this.dispatchAction("checkoutPlan",{plan:l.id,offerId:n,tierId:c,cadence:p})}else{const{tierId:c,cadence:p}=Cn({site:t,priceId:l.id});this.dispatchAction("signup",{plan:l.id,offerId:n,tierId:c,cadence:p})}}}catch{}}handleSignupQuery({site:t,pageQuery:n,member:r}){const i=/^offers\/(\w+?)\/?$/;let o=n;if(i.test(n||"")){const[,s]=n.match(i);this.handleOfferQuery({site:t,offerId:s,member:r});return}og({site:t,pageQuery:n})&&(o=og({site:t,pageQuery:n}));const a=Hb({site:t,priceId:o});if(n&&n!=="free"){Gc();const s=(a==null?void 0:a.id)||o;s!=="free"&&this.dispatchAction("openPopup",{page:"loading"});const{tierId:l,cadence:c}=Cn({site:t,priceId:s});this.dispatchAction("signup",{plan:s,tierId:l,cadence:c})}}getPageFromLinkPath(t){const n=/^signup\/?(?:\/(\w+?))?\/?$/,r=/^signup\/?(?:\/(\w+?))\/monthly\/?$/,i=/^signup\/?(?:\/(\w+?))\/yearly\/?$/;if(/^offers\/(\w+?)\/?$/.test(t))return{pageQuery:t};if(t==="signup")return{page:"signup"};if(r.test(t)){const[,a]=t.match(r);return{page:"signup",pageQuery:`${a}/monthly`}}else if(i.test(t)){const[,a]=t.match(i);return{page:"signup",pageQuery:`${a}/yearly`}}else if(n.test(t)){const[,a]=t.match(n);return{page:"signup",pageQuery:a}}else{if(t==="signup/free")return{page:"signup",pageQuery:"free"};if(t==="signup/monthly")return{page:"signup",pageQuery:"monthly"};if(t==="signup/yearly")return{page:"signup",pageQuery:"yearly"};if(t==="signin")return{page:"signin"};if(t==="account")return{page:"accountHome"};if(t==="account/plans")return{page:"accountPlan"};if(t==="account/profile")return{page:"accountProfile"};if(t==="account/newsletters")return{page:"accountEmail"}}return{}}getAccentColor(){const{accent_color:t}=this.state.site||{};return t}getContextPage({site:t,page:n,member:r}){if(!n){const i=at({site:t})?"signin":"signup";n=r?"accountHome":i}return n==="accountPlan"&&yr({member:r})&&!zi({member:r})&&(n="accountHome"),iu({page:n})}getContextMember({page:t,member:n,customSiteUrl:r}){return K(["dev","preview"],{customSiteUrl:r})?Wx({page:t})||Vx({page:t})?K(["dev"],{customSiteUrl:r})?n||Ya.free:K(["preview"])?Ya.preview:Ya.paid:null:n}getContextFromState(){const{site:t,member:n,action:r,page:i,lastPage:o,showPopup:a,pageQuery:s,pageData:l,popupNotification:c,customSiteUrl:p,t:d}=this.state,f=this.getContextPage({site:t,page:i,member:n}),y=this.getContextMember({page:f,member:n,customSiteUrl:p});return{site:t,action:r,brandColor:this.getAccentColor(),page:f,pageQuery:s,pageData:l,member:y,lastPage:o,showPopup:a,popupNotification:c,customSiteUrl:p,t:d,onAction:(v,_)=>this.dispatchAction(v,_)}}render(){return this.state.initStatus==="success"?u(Z_,{site:this.state.site,children:b(R.Provider,{value:this.getContextFromState(),children:[u(Ug,{}),u(ug,{}),u(gg,{})]})}):null}}const bm="ghost-portal-root";function t2(){const e=document.createElement("div");e.id=bm,document.body.appendChild(e)}function n2(){const e=document.querySelector("script[data-ghost]");if(e){const t=e.dataset.i18n==="true",n=e.dataset.ghost,r=e.dataset.key,i=e.dataset.api;return{siteUrl:n,apiKey:r,apiUrl:i,siteI18nEnabled:t}}return{}}function r2(){const e=new URL(window.location.href);e.searchParams.get("token")&&(e.searchParams.delete("token"),window.history.replaceState({},document.title,e.href))}function i2({siteUrl:e}){t2(),r2()}function o2(){const{siteUrl:e,apiKey:t,apiUrl:n,siteI18nEnabled:r}=n2(),i=e||window.location.origin;i2({siteUrl:i}),L0.render(u(q.StrictMode,{children:u(e2,{siteUrl:i,customSiteUrl:e,apiKey:t,apiUrl:n,siteI18nEnabled:r})}),document.getElementById(bm))}o2()});
|
|
3118
3121
|
//# sourceMappingURL=portal.min.js.map
|