@tryghost/sodo-search 1.8.17 → 1.8.19
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 +23 -24
- package/umd/sodo-search.min.js +21 -58
- package/umd/sodo-search.min.js.map +1 -1
package/umd/sodo-search.min.js
CHANGED
|
@@ -1,45 +1,13 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
/*$vite$:1*/`,document.head.appendChild(te);var re=typeof document<"u"?document.currentScript:null,pe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Wd(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var Ca={exports:{}},Wn={};/*
|
|
3
|
-
object
|
|
4
|
-
(
|
|
5
|
-
|
|
6
|
-
*/var $a=Object.getOwnPropertySymbols,Kd=Object.prototype.hasOwnProperty,qd=Object.prototype.propertyIsEnumerable;function Gd(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Qd(){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 s={};return"abcdefghijklmnopqrst".split("").forEach(function(o){s[o]=o}),Object.keys(Object.assign({},s)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var ka=Qd()?Object.assign:function(e,t){for(var n,r=Gd(e),s,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var i in n)Kd.call(n,i)&&(r[i]=n[i]);if($a){s=$a(n);for(var l=0;l<s.length;l++)qd.call(n,s[l])&&(r[s[l]]=n[s[l]])}}return r},Pa={exports:{}},V={};/** @license React v17.0.2
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
10
|
-
*
|
|
11
|
-
* This source code is licensed under the MIT license found in the
|
|
12
|
-
* LICENSE file in the root directory of this source tree.
|
|
13
|
-
*/var Io=ka,rn=60103,Ea=60106;V.Fragment=60107,V.StrictMode=60108,V.Profiler=60114;var ja=60109,Aa=60110,Ta=60112;V.Suspense=60113;var Oa=60115,Na=60116;if(typeof Symbol=="function"&&Symbol.for){var Be=Symbol.for;rn=Be("react.element"),Ea=Be("react.portal"),V.Fragment=Be("react.fragment"),V.StrictMode=Be("react.strict_mode"),V.Profiler=Be("react.profiler"),ja=Be("react.provider"),Aa=Be("react.context"),Ta=Be("react.forward_ref"),V.Suspense=Be("react.suspense"),Oa=Be("react.memo"),Na=Be("react.lazy")}var La=typeof Symbol=="function"&&Symbol.iterator;function Jd(e){return e===null||typeof e!="object"?null:(e=La&&e[La]||e["@@iterator"],typeof e=="function"?e:null)}function Kn(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 _a={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ra={};function sn(e,t,n){this.props=e,this.context=t,this.refs=Ra,this.updater=n||_a}sn.prototype.isReactComponent={},sn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Kn(85));this.updater.enqueueSetState(this,e,t,"setState")},sn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Fa(){}Fa.prototype=sn.prototype;function zo(e,t,n){this.props=e,this.context=t,this.refs=Ra,this.updater=n||_a}var Mo=zo.prototype=new Fa;Mo.constructor=zo,Io(Mo,sn.prototype),Mo.isPureReactComponent=!0;var Do={current:null},Ia=Object.prototype.hasOwnProperty,za={key:!0,ref:!0,__self:!0,__source:!0};function Ma(e,t,n){var r,s={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)Ia.call(t,r)&&!za.hasOwnProperty(r)&&(s[r]=t[r]);var l=arguments.length-2;if(l===1)s.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];s.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)s[r]===void 0&&(s[r]=l[r]);return{$$typeof:rn,type:e,key:o,ref:i,props:s,_owner:Do.current}}function Yd(e,t){return{$$typeof:rn,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function bo(e){return typeof e=="object"&&e!==null&&e.$$typeof===rn}function Xd(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Da=/\/+/g;function Uo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Xd(""+e.key):t.toString(36)}function ss(e,t,n,r,s){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case rn:case Ea:i=!0}}if(i)return i=e,s=s(i),e=r===""?"."+Uo(i,0):r,Array.isArray(s)?(n="",e!=null&&(n=e.replace(Da,"$&/")+"/"),ss(s,t,n,"",function(u){return u})):s!=null&&(bo(s)&&(s=Yd(s,n+(!s.key||i&&i.key===s.key?"":(""+s.key).replace(Da,"$&/")+"/")+e)),t.push(s)),1;if(i=0,r=r===""?".":r+":",Array.isArray(e))for(var l=0;l<e.length;l++){o=e[l];var a=r+Uo(o,l);i+=ss(o,t,n,a,s)}else if(a=Jd(e),typeof a=="function")for(e=a.call(e),l=0;!(o=e.next()).done;)o=o.value,a=r+Uo(o,l++),i+=ss(o,t,n,a,s);else if(o==="object")throw t=""+e,Error(Kn(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return i}function os(e,t,n){if(e==null)return e;var r=[],s=0;return ss(e,r,"","",function(o){return t.call(n,o,s++)}),r}function Zd(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 ba={current:null};function st(){var e=ba.current;if(e===null)throw Error(Kn(321));return e}var ep={ReactCurrentDispatcher:ba,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:Do,IsSomeRendererActing:{current:!1},assign:Io};V.Children={map:os,forEach:function(e,t,n){os(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return os(e,function(){t++}),t},toArray:function(e){return os(e,function(t){return t})||[]},only:function(e){if(!bo(e))throw Error(Kn(143));return e}},V.Component=sn,V.PureComponent=zo,V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ep,V.cloneElement=function(e,t,n){if(e==null)throw Error(Kn(267,e));var r=Io({},e.props),s=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=Do.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)Ia.call(t,a)&&!za.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:rn,type:e.type,key:s,ref:o,props:r,_owner:i}},V.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:Aa,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:ja,_context:e},e.Consumer=e},V.createElement=Ma,V.createFactory=function(e){var t=Ma.bind(null,e);return t.type=e,t},V.createRef=function(){return{current:null}},V.forwardRef=function(e){return{$$typeof:Ta,render:e}},V.isValidElement=bo,V.lazy=function(e){return{$$typeof:Na,_payload:{_status:-1,_result:e},_init:Zd}},V.memo=function(e,t){return{$$typeof:Oa,type:e,compare:t===void 0?null:t}},V.useCallback=function(e,t){return st().useCallback(e,t)},V.useContext=function(e,t){return st().useContext(e,t)},V.useDebugValue=function(){},V.useEffect=function(e,t){return st().useEffect(e,t)},V.useImperativeHandle=function(e,t,n){return st().useImperativeHandle(e,t,n)},V.useLayoutEffect=function(e,t){return st().useLayoutEffect(e,t)},V.useMemo=function(e,t){return st().useMemo(e,t)},V.useReducer=function(e,t,n){return st().useReducer(e,t,n)},V.useRef=function(e){return st().useRef(e)},V.useState=function(e){return st().useState(e)},V.version="17.0.2",Pa.exports=V;var D=Pa.exports;const ft=Fo(D);/** @license React v17.0.2
|
|
14
|
-
* react-jsx-runtime.production.min.js
|
|
15
|
-
*
|
|
16
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
17
|
-
*
|
|
18
|
-
* This source code is licensed under the MIT license found in the
|
|
19
|
-
* LICENSE file in the root directory of this source tree.
|
|
20
|
-
*/var tp=D,Ua=60103;if(Wn.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var Ba=Symbol.for;Ua=Ba("react.element"),Wn.Fragment=Ba("react.fragment")}var np=tp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,rp=Object.prototype.hasOwnProperty,sp={key:!0,ref:!0,__self:!0,__source:!0};function Va(e,t,n){var r,s={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)rp.call(t,r)&&!sp.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:Ua,type:e,key:o,ref:i,props:s,_owner:np.current}}Wn.jsx=Va,Wn.jsxs=Va,Ca.exports=Wn;var A=Ca.exports,Ha={exports:{}},Re={},Wa={exports:{}},Ka={};/** @license React v0.20.2
|
|
21
|
-
* scheduler.production.min.js
|
|
22
|
-
*
|
|
23
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
24
|
-
*
|
|
25
|
-
* This source code is licensed under the MIT license found in the
|
|
26
|
-
* LICENSE file in the root directory of this source tree.
|
|
27
|
-
*/(function(e){var t,n,r,s;if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}if(typeof window>"u"||typeof MessageChannel!="function"){var a=null,u=null,f=function(){if(a!==null)try{var E=e.unstable_now();a(!0,E),a=null}catch(L){throw setTimeout(f,0),L}};t=function(E){a!==null?setTimeout(t,0,E):(a=E,setTimeout(f,0))},n=function(E,L){u=setTimeout(E,L)},r=function(){clearTimeout(u)},e.unstable_shouldYield=function(){return!1},s=e.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,c=window.clearTimeout;if(typeof console<"u"){var m=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 m!="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,w=null,d=-1,p=5,g=0;e.unstable_shouldYield=function(){return e.unstable_now()>=g},s=function(){},e.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):p=0<E?Math.floor(1e3/E):5};var S=new MessageChannel,y=S.port2;S.port1.onmessage=function(){if(w!==null){var E=e.unstable_now();g=E+p;try{w(!0,E)?y.postMessage(null):(v=!1,w=null)}catch(L){throw y.postMessage(null),L}}else v=!1},t=function(E){w=E,v||(v=!0,y.postMessage(null))},n=function(E,L){d=h(function(){E(e.unstable_now())},L)},r=function(){c(d),d=-1}}function $(E,L){var _=E.length;E.push(L);e:for(;;){var M=_-1>>>1,B=E[M];if(B!==void 0&&0<T(B,L))E[M]=L,E[_]=B,_=M;else break e}}function C(E){return E=E[0],E===void 0?null:E}function P(E){var L=E[0];if(L!==void 0){var _=E.pop();if(_!==L){E[0]=_;e:for(var M=0,B=E.length;M<B;){var Se=2*(M+1)-1,Ue=E[Se],nn=Se+1,rt=E[nn];if(Ue!==void 0&&0>T(Ue,_))rt!==void 0&&0>T(rt,Ue)?(E[M]=rt,E[nn]=_,M=nn):(E[M]=Ue,E[Se]=_,M=Se);else if(rt!==void 0&&0>T(rt,_))E[M]=rt,E[nn]=_,M=nn;else break e}}return L}return null}function T(E,L){var _=E.sortIndex-L.sortIndex;return _!==0?_:E.id-L.id}var N=[],U=[],Ne=1,de=null,ee=3,be=!1,$e=!1,Le=!1;function x(E){for(var L=C(U);L!==null;){if(L.callback===null)P(U);else if(L.startTime<=E)P(U),L.sortIndex=L.expirationTime,$(N,L);else break;L=C(U)}}function k(E){if(Le=!1,x(E),!$e)if(C(N)!==null)$e=!0,t(O);else{var L=C(U);L!==null&&n(k,L.startTime-E)}}function O(E,L){$e=!1,Le&&(Le=!1,r()),be=!0;var _=ee;try{for(x(L),de=C(N);de!==null&&(!(de.expirationTime>L)||E&&!e.unstable_shouldYield());){var M=de.callback;if(typeof M=="function"){de.callback=null,ee=de.priorityLevel;var B=M(de.expirationTime<=L);L=e.unstable_now(),typeof B=="function"?de.callback=B:de===C(N)&&P(N),x(L)}else P(N);de=C(N)}if(de!==null)var Se=!0;else{var Ue=C(U);Ue!==null&&n(k,Ue.startTime-L),Se=!1}return Se}finally{de=null,ee=_,be=!1}}var H=s;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(E){E.callback=null},e.unstable_continueExecution=function(){$e||be||($e=!0,t(O))},e.unstable_getCurrentPriorityLevel=function(){return ee},e.unstable_getFirstCallbackNode=function(){return C(N)},e.unstable_next=function(E){switch(ee){case 1:case 2:case 3:var L=3;break;default:L=ee}var _=ee;ee=L;try{return E()}finally{ee=_}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=H,e.unstable_runWithPriority=function(E,L){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var _=ee;ee=E;try{return L()}finally{ee=_}},e.unstable_scheduleCallback=function(E,L,_){var M=e.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?M+_:M):_=M,E){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=_+B,E={id:Ne++,callback:L,priorityLevel:E,startTime:_,expirationTime:B,sortIndex:-1},_>M?(E.sortIndex=_,$(U,E),C(N)===null&&E===C(U)&&(Le?r():Le=!0,n(k,_-M))):(E.sortIndex=B,$(N,E),$e||be||($e=!0,t(O))),E},e.unstable_wrapCallback=function(E){var L=ee;return function(){var _=ee;ee=L;try{return E.apply(this,arguments)}finally{ee=_}}}})(Ka),Wa.exports=Ka;var op=Wa.exports;/** @license React v17.0.2
|
|
28
|
-
* react-dom.production.min.js
|
|
29
|
-
*
|
|
30
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
31
|
-
*
|
|
32
|
-
* This source code is licensed under the MIT license found in the
|
|
33
|
-
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/var is=D,Q=ka,ie=op;function j(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(!is)throw Error(j(227));var qa=new Set,qn={};function Ft(e,t){on(e,t),on(e+"Capture",t)}function on(e,t){for(qn[e]=t,e=0;e<t.length;e++)qa.add(t[e])}var ot=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ip=/^[: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]*$/,Ga=Object.prototype.hasOwnProperty,Qa={},Ja={};function lp(e){return Ga.call(Ja,e)?!0:Ga.call(Qa,e)?!1:ip.test(e)?Ja[e]=!0:(Qa[e]=!0,!1)}function ap(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 up(e,t,n,r){if(t===null||typeof t>"u"||ap(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,s,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ue[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];ue[t]=new xe(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){ue[e]=new xe(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ue[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){ue[e]=new xe(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){ue[e]=new xe(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){ue[e]=new xe(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){ue[e]=new xe(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){ue[e]=new xe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Bo=/[\-:]([a-z])/g;function Vo(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(Bo,Vo);ue[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(Bo,Vo);ue[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(Bo,Vo);ue[t]=new xe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){ue[e]=new xe(e,1,!1,e.toLowerCase(),null,!1,!1)}),ue.xlinkHref=new xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){ue[e]=new xe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ho(e,t,n,r){var s=ue.hasOwnProperty(t)?ue[t]:null,o=s!==null?s.type===0:r?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");o||(up(t,n,s,r)&&(n=null),r||s===null?lp(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var It=is.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Gn=60103,zt=60106,ht=60107,Wo=60108,Qn=60114,Ko=60109,qo=60110,ls=60112,Jn=60113,as=60120,us=60115,Go=60116,Qo=60121,Jo=60128,Ya=60129,Yo=60130,Xo=60131;if(typeof Symbol=="function"&&Symbol.for){var le=Symbol.for;Gn=le("react.element"),zt=le("react.portal"),ht=le("react.fragment"),Wo=le("react.strict_mode"),Qn=le("react.profiler"),Ko=le("react.provider"),qo=le("react.context"),ls=le("react.forward_ref"),Jn=le("react.suspense"),as=le("react.suspense_list"),us=le("react.memo"),Go=le("react.lazy"),Qo=le("react.block"),le("react.scope"),Jo=le("react.opaque.id"),Ya=le("react.debug_trace_mode"),Yo=le("react.offscreen"),Xo=le("react.legacy_hidden")}var Xa=typeof Symbol=="function"&&Symbol.iterator;function Yn(e){return e===null||typeof e!="object"?null:(e=Xa&&e[Xa]||e["@@iterator"],typeof e=="function"?e:null)}var Zo;function Xn(e){if(Zo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Zo=t&&t[1]||""}return`
|
|
35
|
-
`+Zo+e}var ei=!1;function cs(e,t){if(!e||ei)return"";ei=!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(a){var r=a}Reflect.construct(e,[],t)}else{try{t.call()}catch(a){r=a}e.call(t.prototype)}else{try{throw Error()}catch(a){r=a}e()}}catch(a){if(a&&r&&typeof a.stack=="string"){for(var s=a.stack.split(`
|
|
36
|
-
`),o=r.stack.split(`
|
|
37
|
-
`),i=s.length-1,l=o.length-1;1<=i&&0<=l&&s[i]!==o[l];)l--;for(;1<=i&&0<=l;i--,l--)if(s[i]!==o[l]){if(i!==1||l!==1)do if(i--,l--,0>l||s[i]!==o[l])return`
|
|
38
|
-
`+s[i].replace(" at new "," at ");while(1<=i&&0<=l);break}}}finally{ei=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Xn(e):""}function cp(e){switch(e.tag){case 5:return Xn(e.type);case 16:return Xn("Lazy");case 13:return Xn("Suspense");case 19:return Xn("SuspenseList");case 0:case 2:case 15:return e=cs(e.type,!1),e;case 11:return e=cs(e.type.render,!1),e;case 22:return e=cs(e.type._render,!1),e;case 1:return e=cs(e.type,!0),e;default:return""}}function ln(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 ht:return"Fragment";case zt:return"Portal";case Qn:return"Profiler";case Wo:return"StrictMode";case Jn:return"Suspense";case as:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qo:return(e.displayName||"Context")+".Consumer";case Ko:return(e._context.displayName||"Context")+".Provider";case ls:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case us:return ln(e.type);case Qo:return ln(e._render);case Go:t=e._payload,e=e._init;try{return ln(e(t))}catch{}}return null}function dt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Za(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fp(e){var t=Za(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 s=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function fs(e){e._valueTracker||(e._valueTracker=fp(e))}function eu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Za(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function hs(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 ti(e,t){var n=t.checked;return Q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function tu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=dt(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 nu(e,t){t=t.checked,t!=null&&Ho(e,"checked",t,!1)}function ni(e,t){nu(e,t);var n=dt(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")?ri(e,t.type,n):t.hasOwnProperty("defaultValue")&&ri(e,t.type,dt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ru(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 ri(e,t,n){(t!=="number"||hs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function hp(e){var t="";return is.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function si(e,t){return e=Q({children:void 0},t),(t=hp(t.children))&&(e.children=t),e}function an(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+dt(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function oi(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(j(91));return Q({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function su(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(j(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(j(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:dt(n)}}function ou(e,t){var n=dt(t.value),r=dt(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 iu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var ii={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function lu(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 li(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?lu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ds,au=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!==ii.svg||"innerHTML"in e)e.innerHTML=t;else{for(ds=ds||document.createElement("div"),ds.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ds.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var er={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},dp=["Webkit","ms","Moz","O"];Object.keys(er).forEach(function(e){dp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),er[t]=er[e]})});function uu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||er.hasOwnProperty(e)&&er[e]?(""+t).trim():t+"px"}function cu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=uu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var pp=Q({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 ai(e,t){if(t){if(pp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function ui(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 ci(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fi=null,un=null,cn=null;function fu(e){if(e=wr(e)){if(typeof fi!="function")throw Error(j(280));var t=e.stateNode;t&&(t=Ns(t),fi(e.stateNode,e.type,t))}}function hu(e){un?cn?cn.push(e):cn=[e]:un=e}function du(){if(un){var e=un,t=cn;if(cn=un=null,fu(e),t)for(e=0;e<t.length;e++)fu(t[e])}}function hi(e,t){return e(t)}function pu(e,t,n,r,s){return e(t,n,r,s)}function di(){}var gu=hi,Mt=!1,pi=!1;function gi(){(un!==null||cn!==null)&&(di(),du())}function gp(e,t,n){if(pi)return e(t,n);pi=!0;try{return gu(e,t,n)}finally{pi=!1,gi()}}function tr(e,t){var n=e.stateNode;if(n===null)return null;var r=Ns(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(j(231,t,typeof n));return n}var mi=!1;if(ot)try{var nr={};Object.defineProperty(nr,"passive",{get:function(){mi=!0}}),window.addEventListener("test",nr,nr),window.removeEventListener("test",nr,nr)}catch{mi=!1}function mp(e,t,n,r,s,o,i,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var rr=!1,ps=null,gs=!1,yi=null,yp={onError:function(e){rr=!0,ps=e}};function vp(e,t,n,r,s,o,i,l,a){rr=!1,ps=null,mp.apply(yp,arguments)}function wp(e,t,n,r,s,o,i,l,a){if(vp.apply(this,arguments),rr){if(rr){var u=ps;rr=!1,ps=null}else throw Error(j(198));gs||(gs=!0,yi=u)}}function Dt(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 mu(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 yu(e){if(Dt(e)!==e)throw Error(j(188))}function Sp(e){var t=e.alternate;if(!t){if(t=Dt(e),t===null)throw Error(j(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return yu(s),e;if(o===r)return yu(s),t;o=o.sibling}throw Error(j(188))}if(n.return!==r.return)n=s,r=o;else{for(var i=!1,l=s.child;l;){if(l===n){i=!0,n=s,r=o;break}if(l===r){i=!0,r=s,n=o;break}l=l.sibling}if(!i){for(l=o.child;l;){if(l===n){i=!0,n=o,r=s;break}if(l===r){i=!0,r=o,n=s;break}l=l.sibling}if(!i)throw Error(j(189))}}if(n.alternate!==r)throw Error(j(190))}if(n.tag!==3)throw Error(j(188));return n.stateNode.current===n?e:t}function vu(e){if(e=Sp(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 wu(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var Su,vi,xu,Cu,wi=!1,Ge=[],pt=null,gt=null,mt=null,sr=new Map,or=new Map,ir=[],$u="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 Si(e,t,n,r,s){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:s,targetContainers:[r]}}function ku(e,t){switch(e){case"focusin":case"focusout":pt=null;break;case"dragenter":case"dragleave":gt=null;break;case"mouseover":case"mouseout":mt=null;break;case"pointerover":case"pointerout":sr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":or.delete(t.pointerId)}}function lr(e,t,n,r,s,o){return e===null||e.nativeEvent!==o?(e=Si(t,n,r,s,o),t!==null&&(t=wr(t),t!==null&&vi(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function xp(e,t,n,r,s){switch(t){case"focusin":return pt=lr(pt,e,t,n,r,s),!0;case"dragenter":return gt=lr(gt,e,t,n,r,s),!0;case"mouseover":return mt=lr(mt,e,t,n,r,s),!0;case"pointerover":var o=s.pointerId;return sr.set(o,lr(sr.get(o)||null,e,t,n,r,s)),!0;case"gotpointercapture":return o=s.pointerId,or.set(o,lr(or.get(o)||null,e,t,n,r,s)),!0}return!1}function Cp(e){var t=bt(e.target);if(t!==null){var n=Dt(t);if(n!==null){if(t=n.tag,t===13){if(t=mu(n),t!==null){e.blockedOn=t,Cu(e.lanePriority,function(){ie.unstable_runWithPriority(e.priority,function(){xu(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ms(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ei(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=wr(n),t!==null&&vi(t),e.blockedOn=n,!1;t.shift()}return!0}function Pu(e,t,n){ms(e)&&n.delete(t)}function $p(){for(wi=!1;0<Ge.length;){var e=Ge[0];if(e.blockedOn!==null){e=wr(e.blockedOn),e!==null&&Su(e);break}for(var t=e.targetContainers;0<t.length;){var n=Ei(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&Ge.shift()}pt!==null&&ms(pt)&&(pt=null),gt!==null&&ms(gt)&&(gt=null),mt!==null&&ms(mt)&&(mt=null),sr.forEach(Pu),or.forEach(Pu)}function ar(e,t){e.blockedOn===t&&(e.blockedOn=null,wi||(wi=!0,ie.unstable_scheduleCallback(ie.unstable_NormalPriority,$p)))}function Eu(e){function t(s){return ar(s,e)}if(0<Ge.length){ar(Ge[0],e);for(var n=1;n<Ge.length;n++){var r=Ge[n];r.blockedOn===e&&(r.blockedOn=null)}}for(pt!==null&&ar(pt,e),gt!==null&&ar(gt,e),mt!==null&&ar(mt,e),sr.forEach(t),or.forEach(t),n=0;n<ir.length;n++)r=ir[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ir.length&&(n=ir[0],n.blockedOn===null);)Cp(n),n.blockedOn===null&&ir.shift()}function ys(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var fn={animationend:ys("Animation","AnimationEnd"),animationiteration:ys("Animation","AnimationIteration"),animationstart:ys("Animation","AnimationStart"),transitionend:ys("Transition","TransitionEnd")},xi={},ju={};ot&&(ju=document.createElement("div").style,"AnimationEvent"in window||(delete fn.animationend.animation,delete fn.animationiteration.animation,delete fn.animationstart.animation),"TransitionEvent"in window||delete fn.transitionend.transition);function vs(e){if(xi[e])return xi[e];if(!fn[e])return e;var t=fn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ju)return xi[e]=t[n];return e}var Au=vs("animationend"),Tu=vs("animationiteration"),Ou=vs("animationstart"),Nu=vs("transitionend"),Lu=new Map,Ci=new Map,kp=["abort","abort",Au,"animationEnd",Tu,"animationIteration",Ou,"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",Nu,"transitionEnd","waiting","waiting"];function $i(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],s=e[n+1];s="on"+(s[0].toUpperCase()+s.slice(1)),Ci.set(r,t),Lu.set(r,s),Ft(s,[r])}}var Pp=ie.unstable_now;Pp();var K=8;function hn(e){if(1&e)return K=15,1;if(2&e)return K=14,2;if(4&e)return K=13,4;var t=24&e;return t!==0?(K=12,t):e&32?(K=11,32):(t=192&e,t!==0?(K=10,t):e&256?(K=9,256):(t=3584&e,t!==0?(K=8,t):e&4096?(K=7,4096):(t=4186112&e,t!==0?(K=6,t):(t=62914560&e,t!==0?(K=5,t):e&67108864?(K=4,67108864):e&134217728?(K=3,134217728):(t=805306368&e,t!==0?(K=2,t):1073741824&e?(K=1,1073741824):(K=8,e))))))}function Ep(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 jp(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(j(358,e))}}function ur(e,t){var n=e.pendingLanes;if(n===0)return K=0;var r=0,s=0,o=e.expiredLanes,i=e.suspendedLanes,l=e.pingedLanes;if(o!==0)r=o,s=K=15;else if(o=n&134217727,o!==0){var a=o&~i;a!==0?(r=hn(a),s=K):(l&=o,l!==0&&(r=hn(l),s=K))}else o=n&~i,o!==0?(r=hn(o),s=K):l!==0&&(r=hn(l),s=K);if(r===0)return 0;if(r=31-yt(r),r=n&((0>r?0:1<<r)<<1)-1,t!==0&&t!==r&&!(t&i)){if(hn(t),s<=K)return t;K=s}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-yt(t),s=1<<n,r|=e[n],t&=~s;return r}function _u(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ws(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=dn(24&~t),e===0?ws(10,t):e;case 10:return e=dn(192&~t),e===0?ws(8,t):e;case 8:return e=dn(3584&~t),e===0&&(e=dn(4186112&~t),e===0&&(e=512)),e;case 2:return t=dn(805306368&~t),t===0&&(t=268435456),t}throw Error(j(358,e))}function dn(e){return e&-e}function ki(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ss(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,e=e.eventTimes,t=31-yt(t),e[t]=n}var yt=Math.clz32?Math.clz32:Op,Ap=Math.log,Tp=Math.LN2;function Op(e){return e===0?32:31-(Ap(e)/Tp|0)|0}var Np=ie.unstable_UserBlockingPriority,Lp=ie.unstable_runWithPriority,xs=!0;function _p(e,t,n,r){Mt||di();var s=Pi,o=Mt;Mt=!0;try{pu(s,e,t,n,r)}finally{(Mt=o)||gi()}}function Rp(e,t,n,r){Lp(Np,Pi.bind(null,e,t,n,r))}function Pi(e,t,n,r){if(xs){var s;if((s=(t&4)===0)&&0<Ge.length&&-1<$u.indexOf(e))e=Si(null,e,t,n,r),Ge.push(e);else{var o=Ei(e,t,n,r);if(o===null)s&&ku(e,r);else{if(s){if(-1<$u.indexOf(e)){e=Si(o,e,t,n,r),Ge.push(e);return}if(xp(o,e,t,n,r))return;ku(e,r)}ac(e,t,r,null,n)}}}}function Ei(e,t,n,r){var s=ci(r);if(s=bt(s),s!==null){var o=Dt(s);if(o===null)s=null;else{var i=o.tag;if(i===13){if(s=mu(o),s!==null)return s;s=null}else if(i===3){if(o.stateNode.hydrate)return o.tag===3?o.stateNode.containerInfo:null;s=null}else o!==s&&(s=null)}}return ac(e,t,r,s,n),null}var vt=null,ji=null,Cs=null;function Ru(){if(Cs)return Cs;var e,t=ji,n=t.length,r,s="value"in vt?vt.value:vt.textContent,o=s.length;for(e=0;e<n&&t[e]===s[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===s[o-r];r++);return Cs=s.slice(e,1<r?1-r:void 0)}function $s(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 ks(){return!0}function Fu(){return!1}function Te(e){function t(n,r,s,o,i){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ks:Fu,this.isPropagationStopped=Fu,this}return Q(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=ks)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ks)},persist:function(){},isPersistent:ks}),t}var pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ai=Te(pn),cr=Q({},pn,{view:0,detail:0}),Fp=Te(cr),Ti,Oi,fr,Ps=Q({},cr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Li,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!==fr&&(fr&&e.type==="mousemove"?(Ti=e.screenX-fr.screenX,Oi=e.screenY-fr.screenY):Oi=Ti=0,fr=e),Ti)},movementY:function(e){return"movementY"in e?e.movementY:Oi}}),Iu=Te(Ps),Ip=Q({},Ps,{dataTransfer:0}),zp=Te(Ip),Mp=Q({},cr,{relatedTarget:0}),Ni=Te(Mp),Dp=Q({},pn,{animationName:0,elapsedTime:0,pseudoElement:0}),bp=Te(Dp),Up=Q({},pn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Bp=Te(Up),Vp=Q({},pn,{data:0}),zu=Te(Vp),Hp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wp={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"},Kp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Kp[e])?!!t[e]:!1}function Li(){return qp}var Gp=Q({},cr,{key:function(e){if(e.key){var t=Hp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$s(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Wp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Li,charCode:function(e){return e.type==="keypress"?$s(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$s(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Qp=Te(Gp),Jp=Q({},Ps,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Mu=Te(Jp),Yp=Q({},cr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Li}),Xp=Te(Yp),Zp=Q({},pn,{propertyName:0,elapsedTime:0,pseudoElement:0}),eg=Te(Zp),tg=Q({},Ps,{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}),ng=Te(tg),rg=[9,13,27,32],_i=ot&&"CompositionEvent"in window,hr=null;ot&&"documentMode"in document&&(hr=document.documentMode);var sg=ot&&"TextEvent"in window&&!hr,Du=ot&&(!_i||hr&&8<hr&&11>=hr),bu=" ",Uu=!1;function Bu(e,t){switch(e){case"keyup":return rg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var gn=!1;function og(e,t){switch(e){case"compositionend":return Vu(t);case"keypress":return t.which!==32?null:(Uu=!0,bu);case"textInput":return e=t.data,e===bu&&Uu?null:e;default:return null}}function ig(e,t){if(gn)return e==="compositionend"||!_i&&Bu(e,t)?(e=Ru(),Cs=ji=vt=null,gn=!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 Du&&t.locale!=="ko"?null:t.data;default:return null}}var lg={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 Hu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!lg[e.type]:t==="textarea"}function Wu(e,t,n,r){hu(r),t=js(t,"onChange"),0<t.length&&(n=new Ai("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var dr=null,pr=null;function ag(e){rc(e,0)}function Es(e){var t=Sn(e);if(eu(t))return e}function ug(e,t){if(e==="change")return t}var Ku=!1;if(ot){var Ri;if(ot){var Fi="oninput"in document;if(!Fi){var qu=document.createElement("div");qu.setAttribute("oninput","return;"),Fi=typeof qu.oninput=="function"}Ri=Fi}else Ri=!1;Ku=Ri&&(!document.documentMode||9<document.documentMode)}function Gu(){dr&&(dr.detachEvent("onpropertychange",Qu),pr=dr=null)}function Qu(e){if(e.propertyName==="value"&&Es(pr)){var t=[];if(Wu(t,pr,e,ci(e)),e=ag,Mt)e(t);else{Mt=!0;try{hi(e,t)}finally{Mt=!1,gi()}}}}function cg(e,t,n){e==="focusin"?(Gu(),dr=t,pr=n,dr.attachEvent("onpropertychange",Qu)):e==="focusout"&&Gu()}function fg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Es(pr)}function hg(e,t){if(e==="click")return Es(t)}function dg(e,t){if(e==="input"||e==="change")return Es(t)}function pg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fe=typeof Object.is=="function"?Object.is:pg,gg=Object.prototype.hasOwnProperty;function gr(e,t){if(Fe(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(!gg.call(t,n[r])||!Fe(e[n[r]],t[n[r]]))return!1;return!0}function Ju(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yu(e,t){var n=Ju(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=Ju(n)}}function Xu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zu(){for(var e=window,t=hs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=hs(e.document)}return t}function Ii(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 mg=ot&&"documentMode"in document&&11>=document.documentMode,mn=null,zi=null,mr=null,Mi=!1;function ec(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mi||mn==null||mn!==hs(r)||(r=mn,"selectionStart"in r&&Ii(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}),mr&&gr(mr,r)||(mr=r,r=js(zi,"onSelect"),0<r.length&&(t=new Ai("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mn)))}$i("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),$i("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),$i(kp,2);for(var tc="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Di=0;Di<tc.length;Di++)Ci.set(tc[Di],0);on("onMouseEnter",["mouseout","mouseover"]),on("onMouseLeave",["mouseout","mouseover"]),on("onPointerEnter",["pointerout","pointerover"]),on("onPointerLeave",["pointerout","pointerover"]),Ft("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ft("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ft("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ft("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ft("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ft("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),yg=new Set("cancel close invalid load scroll toggle".split(" ").concat(yr));function nc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,wp(r,t,void 0,e),e.currentTarget=null}function rc(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==o&&s.isPropagationStopped())break e;nc(s,l,u),o=a}else for(i=0;i<r.length;i++){if(l=r[i],a=l.instance,u=l.currentTarget,l=l.listener,a!==o&&s.isPropagationStopped())break e;nc(s,l,u),o=a}}}if(gs)throw e=yi,gs=!1,yi=null,e}function q(e,t){var n=pc(t),r=e+"__bubble";n.has(r)||(lc(t,e,2,!1),n.add(r))}var sc="_reactListening"+Math.random().toString(36).slice(2);function oc(e){e[sc]||(e[sc]=!0,qa.forEach(function(t){yg.has(t)||ic(t,!1,e,null),ic(t,!0,e,null)}))}function ic(e,t,n,r){var s=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,o=n;e==="selectionchange"&&n.nodeType!==9&&(o=n.ownerDocument);var i=pc(o),l=e+"__"+(t?"capture":"bubble");i.has(l)||(t&&(s|=4),lc(o,e,s,t),i.add(l))}function lc(e,t,n,r){var s=Ci.get(t);switch(s===void 0?2:s){case 0:s=_p;break;case 1:s=Rp;break;default:s=Pi}n=s.bind(null,t,n,e),s=void 0,!mi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function ac(e,t,n,r,s){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var l=r.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(i===4)for(i=r.return;i!==null;){var a=i.tag;if((a===3||a===4)&&(a=i.stateNode.containerInfo,a===s||a.nodeType===8&&a.parentNode===s))return;i=i.return}for(;l!==null;){if(i=bt(l),i===null)return;if(a=i.tag,a===5||a===6){r=o=i;continue e}l=l.parentNode}}r=r.return}gp(function(){var u=o,f=ci(n),h=[];e:{var c=Lu.get(e);if(c!==void 0){var m=Ai,v=e;switch(e){case"keypress":if($s(n)===0)break e;case"keydown":case"keyup":m=Qp;break;case"focusin":v="focus",m=Ni;break;case"focusout":v="blur",m=Ni;break;case"beforeblur":case"afterblur":m=Ni;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":m=Iu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=zp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=Xp;break;case Au:case Tu:case Ou:m=bp;break;case Nu:m=eg;break;case"scroll":m=Fp;break;case"wheel":m=ng;break;case"copy":case"cut":case"paste":m=Bp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Mu}var w=(t&4)!==0,d=!w&&e==="scroll",p=w?c!==null?c+"Capture":null:c;w=[];for(var g=u,S;g!==null;){S=g;var y=S.stateNode;if(S.tag===5&&y!==null&&(S=y,p!==null&&(y=tr(g,p),y!=null&&w.push(vr(g,y,S)))),d)break;g=g.return}0<w.length&&(c=new m(c,v,null,n,f),h.push({event:c,listeners:w}))}}if(!(t&7)){e:{if(c=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",c&&!(t&16)&&(v=n.relatedTarget||n.fromElement)&&(bt(v)||v[wn]))break e;if((m||c)&&(c=f.window===f?f:(c=f.ownerDocument)?c.defaultView||c.parentWindow:window,m?(v=n.relatedTarget||n.toElement,m=u,v=v?bt(v):null,v!==null&&(d=Dt(v),v!==d||v.tag!==5&&v.tag!==6)&&(v=null)):(m=null,v=u),m!==v)){if(w=Iu,y="onMouseLeave",p="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(w=Mu,y="onPointerLeave",p="onPointerEnter",g="pointer"),d=m==null?c:Sn(m),S=v==null?c:Sn(v),c=new w(y,g+"leave",m,n,f),c.target=d,c.relatedTarget=S,y=null,bt(f)===u&&(w=new w(p,g+"enter",v,n,f),w.target=S,w.relatedTarget=d,y=w),d=y,m&&v)t:{for(w=m,p=v,g=0,S=w;S;S=yn(S))g++;for(S=0,y=p;y;y=yn(y))S++;for(;0<g-S;)w=yn(w),g--;for(;0<S-g;)p=yn(p),S--;for(;g--;){if(w===p||p!==null&&w===p.alternate)break t;w=yn(w),p=yn(p)}w=null}else w=null;m!==null&&uc(h,c,m,w,!1),v!==null&&d!==null&&uc(h,d,v,w,!0)}}e:{if(c=u?Sn(u):window,m=c.nodeName&&c.nodeName.toLowerCase(),m==="select"||m==="input"&&c.type==="file")var $=ug;else if(Hu(c))if(Ku)$=dg;else{$=fg;var C=cg}else(m=c.nodeName)&&m.toLowerCase()==="input"&&(c.type==="checkbox"||c.type==="radio")&&($=hg);if($&&($=$(e,u))){Wu(h,$,n,f);break e}C&&C(e,c,u),e==="focusout"&&(C=c._wrapperState)&&C.controlled&&c.type==="number"&&ri(c,"number",c.value)}switch(C=u?Sn(u):window,e){case"focusin":(Hu(C)||C.contentEditable==="true")&&(mn=C,zi=u,mr=null);break;case"focusout":mr=zi=mn=null;break;case"mousedown":Mi=!0;break;case"contextmenu":case"mouseup":case"dragend":Mi=!1,ec(h,n,f);break;case"selectionchange":if(mg)break;case"keydown":case"keyup":ec(h,n,f)}var P;if(_i)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else gn?Bu(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(Du&&n.locale!=="ko"&&(gn||T!=="onCompositionStart"?T==="onCompositionEnd"&&gn&&(P=Ru()):(vt=f,ji="value"in vt?vt.value:vt.textContent,gn=!0)),C=js(u,T),0<C.length&&(T=new zu(T,e,null,n,f),h.push({event:T,listeners:C}),P?T.data=P:(P=Vu(n),P!==null&&(T.data=P)))),(P=sg?og(e,n):ig(e,n))&&(u=js(u,"onBeforeInput"),0<u.length&&(f=new zu("onBeforeInput","beforeinput",null,n,f),h.push({event:f,listeners:u}),f.data=P))}rc(h,t)})}function vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function js(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,o=s.stateNode;s.tag===5&&o!==null&&(s=o,o=tr(e,n),o!=null&&r.unshift(vr(e,o,s)),o=tr(e,t),o!=null&&r.push(vr(e,o,s))),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 uc(e,t,n,r,s){for(var o=t._reactName,i=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,s?(a=tr(n,o),a!=null&&i.unshift(vr(n,a,l))):s||(a=tr(n,o),a!=null&&i.push(vr(n,a,l)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}function As(){}var bi=null,Ui=null;function cc(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Bi(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 fc=typeof setTimeout=="function"?setTimeout:void 0,vg=typeof clearTimeout=="function"?clearTimeout:void 0;function Vi(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function vn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function hc(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 Hi=0;function wg(e){return{$$typeof:Jo,toString:e,valueOf:e}}var Ts=Math.random().toString(36).slice(2),wt="__reactFiber$"+Ts,Os="__reactProps$"+Ts,wn="__reactContainer$"+Ts,dc="__reactEvents$"+Ts;function bt(e){var t=e[wt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[wn]||n[wt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hc(e);e!==null;){if(n=e[wt])return n;e=hc(e)}return t}e=n,n=e.parentNode}return null}function wr(e){return e=e[wt]||e[wn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Sn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(j(33))}function Ns(e){return e[Os]||null}function pc(e){var t=e[dc];return t===void 0&&(t=e[dc]=new Set),t}var Wi=[],xn=-1;function St(e){return{current:e}}function G(e){0>xn||(e.current=Wi[xn],Wi[xn]=null,xn--)}function X(e,t){xn++,Wi[xn]=e.current,e.current=t}var xt={},ge=St(xt),ke=St(!1),Ut=xt;function Cn(e,t){var n=e.type.contextTypes;if(!n)return xt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},o;for(o in n)s[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Pe(e){return e=e.childContextTypes,e!=null}function Ls(){G(ke),G(ge)}function gc(e,t,n){if(ge.current!==xt)throw Error(j(168));X(ge,t),X(ke,n)}function mc(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in e))throw Error(j(108,ln(t)||"Unknown",s));return Q({},n,r)}function _s(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xt,Ut=ge.current,X(ge,e),X(ke,ke.current),!0}function yc(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=mc(e,t,Ut),r.__reactInternalMemoizedMergedChildContext=e,G(ke),G(ge),X(ge,e)):G(ke),X(ke,n)}var Ki=null,Bt=null,Sg=ie.unstable_runWithPriority,qi=ie.unstable_scheduleCallback,Gi=ie.unstable_cancelCallback,xg=ie.unstable_shouldYield,vc=ie.unstable_requestPaint,Qi=ie.unstable_now,Cg=ie.unstable_getCurrentPriorityLevel,Rs=ie.unstable_ImmediatePriority,wc=ie.unstable_UserBlockingPriority,Sc=ie.unstable_NormalPriority,xc=ie.unstable_LowPriority,Cc=ie.unstable_IdlePriority,Ji={},$g=vc!==void 0?vc:function(){},it=null,Fs=null,Yi=!1,$c=Qi(),me=1e4>$c?Qi:function(){return Qi()-$c};function $n(){switch(Cg()){case Rs:return 99;case wc:return 98;case Sc:return 97;case xc:return 96;case Cc:return 95;default:throw Error(j(332))}}function kc(e){switch(e){case 99:return Rs;case 98:return wc;case 97:return Sc;case 96:return xc;case 95:return Cc;default:throw Error(j(332))}}function Vt(e,t){return e=kc(e),Sg(e,t)}function Sr(e,t,n){return e=kc(e),qi(e,t,n)}function Qe(){if(Fs!==null){var e=Fs;Fs=null,Gi(e)}Pc()}function Pc(){if(!Yi&&it!==null){Yi=!0;var e=0;try{var t=it;Vt(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),it=null}catch(n){throw it!==null&&(it=it.slice(e+1)),qi(Rs,Qe),n}finally{Yi=!1}}}var kg=It.ReactCurrentBatchConfig;function Ve(e,t){if(e&&e.defaultProps){t=Q({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Is=St(null),zs=null,kn=null,Ms=null;function Xi(){Ms=kn=zs=null}function Zi(e){var t=Is.current;G(Is),e.type._context._currentValue=t}function Ec(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 Pn(e,t){zs=e,Ms=kn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(He=!0),e.firstContext=null)}function Ie(e,t){if(Ms!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(Ms=e,t=1073741823),t={context:e,observedBits:t,next:null},kn===null){if(zs===null)throw Error(j(308));kn=t,zs.dependencies={lanes:0,firstContext:t,responders:null}}else kn=kn.next=t;return e._currentValue}var Ct=!1;function el(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function jc(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 $t(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function kt(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 Ac(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?s=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?s=o=t:o=o.next=t}else s=o=t;n={baseState:r.baseState,firstBaseUpdate:s,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 xr(e,t,n,r){var s=e.updateQueue;Ct=!1;var o=s.firstBaseUpdate,i=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var a=l,u=a.next;a.next=null,i===null?o=u:i.next=u,i=a;var f=e.alternate;if(f!==null){f=f.updateQueue;var h=f.lastBaseUpdate;h!==i&&(h===null?f.firstBaseUpdate=u:h.next=u,f.lastBaseUpdate=a)}}if(o!==null){h=s.baseState,i=0,f=u=a=null;do{l=o.lane;var c=o.eventTime;if((r&l)===l){f!==null&&(f=f.next={eventTime:c,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var m=e,v=o;switch(l=t,c=n,v.tag){case 1:if(m=v.payload,typeof m=="function"){h=m.call(c,h,l);break e}h=m;break e;case 3:m.flags=m.flags&-4097|64;case 0:if(m=v.payload,l=typeof m=="function"?m.call(c,h,l):m,l==null)break e;h=Q({},h,l);break e;case 2:Ct=!0}}o.callback!==null&&(e.flags|=32,l=s.effects,l===null?s.effects=[o]:l.push(o))}else c={eventTime:c,lane:l,tag:o.tag,payload:o.payload,callback:o.callback,next:null},f===null?(u=f=c,a=h):f=f.next=c,i|=l;if(o=o.next,o===null){if(l=s.shared.pending,l===null)break;o=l.next,l.next=null,s.lastBaseUpdate=l,s.shared.pending=null}}while(!0);f===null&&(a=h),s.baseState=a,s.firstBaseUpdate=u,s.lastBaseUpdate=f,_r|=i,e.lanes=i,e.memoizedState=h}}function Tc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(j(191,s));s.call(r)}}}var Oc=new is.Component().refs;function Ds(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Q({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var bs={isMounted:function(e){return(e=e._reactInternals)?Dt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Oe(),s=jt(e),o=$t(r,s);o.payload=t,n!=null&&(o.callback=n),kt(e,o),At(e,s,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Oe(),s=jt(e),o=$t(r,s);o.tag=1,o.payload=t,n!=null&&(o.callback=n),kt(e,o),At(e,s,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Oe(),r=jt(e),s=$t(n,r);s.tag=2,t!=null&&(s.callback=t),kt(e,s),At(e,r,n)}};function Nc(e,t,n,r,s,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!gr(n,r)||!gr(s,o):!0}function Lc(e,t,n){var r=!1,s=xt,o=t.contextType;return typeof o=="object"&&o!==null?o=Ie(o):(s=Pe(t)?Ut:ge.current,r=t.contextTypes,o=(r=r!=null)?Cn(e,s):xt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=bs,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=o),t}function _c(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&&bs.enqueueReplaceState(t,t.state,null)}function tl(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs=Oc,el(e);var o=t.contextType;typeof o=="object"&&o!==null?s.context=Ie(o):(o=Pe(t)?Ut:ge.current,s.context=Cn(e,o)),xr(e,n,s,r),s.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Ds(e,t,o,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&bs.enqueueReplaceState(s,s.state,null),xr(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4)}var Us=Array.isArray;function Cr(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(j(309));var r=n.stateNode}if(!r)throw Error(j(147,e));var s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var i=r.refs;i===Oc&&(i=r.refs={}),o===null?delete i[s]:i[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(j(284));if(!n._owner)throw Error(j(290,e))}return e}function Bs(e,t){if(e.type!=="textarea")throw Error(j(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Rc(e){function t(d,p){if(e){var g=d.lastEffect;g!==null?(g.nextEffect=p,d.lastEffect=p):d.firstEffect=d.lastEffect=p,p.nextEffect=null,p.flags=8}}function n(d,p){if(!e)return null;for(;p!==null;)t(d,p),p=p.sibling;return null}function r(d,p){for(d=new Map;p!==null;)p.key!==null?d.set(p.key,p):d.set(p.index,p),p=p.sibling;return d}function s(d,p){return d=Nt(d,p),d.index=0,d.sibling=null,d}function o(d,p,g){return d.index=g,e?(g=d.alternate,g!==null?(g=g.index,g<p?(d.flags=2,p):g):(d.flags=2,p)):p}function i(d){return e&&d.alternate===null&&(d.flags=2),d}function l(d,p,g,S){return p===null||p.tag!==6?(p=zl(g,d.mode,S),p.return=d,p):(p=s(p,g),p.return=d,p)}function a(d,p,g,S){return p!==null&&p.elementType===g.type?(S=s(p,g.props),S.ref=Cr(d,p,g),S.return=d,S):(S=io(g.type,g.key,g.props,null,d.mode,S),S.ref=Cr(d,p,g),S.return=d,S)}function u(d,p,g,S){return p===null||p.tag!==4||p.stateNode.containerInfo!==g.containerInfo||p.stateNode.implementation!==g.implementation?(p=Ml(g,d.mode,S),p.return=d,p):(p=s(p,g.children||[]),p.return=d,p)}function f(d,p,g,S,y){return p===null||p.tag!==7?(p=_n(g,d.mode,S,y),p.return=d,p):(p=s(p,g),p.return=d,p)}function h(d,p,g){if(typeof p=="string"||typeof p=="number")return p=zl(""+p,d.mode,g),p.return=d,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Gn:return g=io(p.type,p.key,p.props,null,d.mode,g),g.ref=Cr(d,null,p),g.return=d,g;case zt:return p=Ml(p,d.mode,g),p.return=d,p}if(Us(p)||Yn(p))return p=_n(p,d.mode,g,null),p.return=d,p;Bs(d,p)}return null}function c(d,p,g,S){var y=p!==null?p.key:null;if(typeof g=="string"||typeof g=="number")return y!==null?null:l(d,p,""+g,S);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Gn:return g.key===y?g.type===ht?f(d,p,g.props.children,S,y):a(d,p,g,S):null;case zt:return g.key===y?u(d,p,g,S):null}if(Us(g)||Yn(g))return y!==null?null:f(d,p,g,S,null);Bs(d,g)}return null}function m(d,p,g,S,y){if(typeof S=="string"||typeof S=="number")return d=d.get(g)||null,l(p,d,""+S,y);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Gn:return d=d.get(S.key===null?g:S.key)||null,S.type===ht?f(p,d,S.props.children,y,S.key):a(p,d,S,y);case zt:return d=d.get(S.key===null?g:S.key)||null,u(p,d,S,y)}if(Us(S)||Yn(S))return d=d.get(g)||null,f(p,d,S,y,null);Bs(p,S)}return null}function v(d,p,g,S){for(var y=null,$=null,C=p,P=p=0,T=null;C!==null&&P<g.length;P++){C.index>P?(T=C,C=null):T=C.sibling;var N=c(d,C,g[P],S);if(N===null){C===null&&(C=T);break}e&&C&&N.alternate===null&&t(d,C),p=o(N,p,P),$===null?y=N:$.sibling=N,$=N,C=T}if(P===g.length)return n(d,C),y;if(C===null){for(;P<g.length;P++)C=h(d,g[P],S),C!==null&&(p=o(C,p,P),$===null?y=C:$.sibling=C,$=C);return y}for(C=r(d,C);P<g.length;P++)T=m(C,d,P,g[P],S),T!==null&&(e&&T.alternate!==null&&C.delete(T.key===null?P:T.key),p=o(T,p,P),$===null?y=T:$.sibling=T,$=T);return e&&C.forEach(function(U){return t(d,U)}),y}function w(d,p,g,S){var y=Yn(g);if(typeof y!="function")throw Error(j(150));if(g=y.call(g),g==null)throw Error(j(151));for(var $=y=null,C=p,P=p=0,T=null,N=g.next();C!==null&&!N.done;P++,N=g.next()){C.index>P?(T=C,C=null):T=C.sibling;var U=c(d,C,N.value,S);if(U===null){C===null&&(C=T);break}e&&C&&U.alternate===null&&t(d,C),p=o(U,p,P),$===null?y=U:$.sibling=U,$=U,C=T}if(N.done)return n(d,C),y;if(C===null){for(;!N.done;P++,N=g.next())N=h(d,N.value,S),N!==null&&(p=o(N,p,P),$===null?y=N:$.sibling=N,$=N);return y}for(C=r(d,C);!N.done;P++,N=g.next())N=m(C,d,P,N.value,S),N!==null&&(e&&N.alternate!==null&&C.delete(N.key===null?P:N.key),p=o(N,p,P),$===null?y=N:$.sibling=N,$=N);return e&&C.forEach(function(Ne){return t(d,Ne)}),y}return function(d,p,g,S){var y=typeof g=="object"&&g!==null&&g.type===ht&&g.key===null;y&&(g=g.props.children);var $=typeof g=="object"&&g!==null;if($)switch(g.$$typeof){case Gn:e:{for($=g.key,y=p;y!==null;){if(y.key===$){switch(y.tag){case 7:if(g.type===ht){n(d,y.sibling),p=s(y,g.props.children),p.return=d,d=p;break e}break;default:if(y.elementType===g.type){n(d,y.sibling),p=s(y,g.props),p.ref=Cr(d,y,g),p.return=d,d=p;break e}}n(d,y);break}else t(d,y);y=y.sibling}g.type===ht?(p=_n(g.props.children,d.mode,S,g.key),p.return=d,d=p):(S=io(g.type,g.key,g.props,null,d.mode,S),S.ref=Cr(d,p,g),S.return=d,d=S)}return i(d);case zt:e:{for(y=g.key;p!==null;){if(p.key===y)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(d,p.sibling),p=s(p,g.children||[]),p.return=d,d=p;break e}else{n(d,p);break}else t(d,p);p=p.sibling}p=Ml(g,d.mode,S),p.return=d,d=p}return i(d)}if(typeof g=="string"||typeof g=="number")return g=""+g,p!==null&&p.tag===6?(n(d,p.sibling),p=s(p,g),p.return=d,d=p):(n(d,p),p=zl(g,d.mode,S),p.return=d,d=p),i(d);if(Us(g))return v(d,p,g,S);if(Yn(g))return w(d,p,g,S);if($&&Bs(d,g),typeof g>"u"&&!y)switch(d.tag){case 1:case 22:case 0:case 11:case 15:throw Error(j(152,ln(d.type)||"Component"))}return n(d,p)}}var Vs=Rc(!0),Fc=Rc(!1),$r={},Je=St($r),kr=St($r),Pr=St($r);function Ht(e){if(e===$r)throw Error(j(174));return e}function nl(e,t){switch(X(Pr,t),X(kr,e),X(Je,$r),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:li(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=li(t,e)}G(Je),X(Je,t)}function En(){G(Je),G(kr),G(Pr)}function Ic(e){Ht(Pr.current);var t=Ht(Je.current),n=li(t,e.type);t!==n&&(X(kr,e),X(Je,n))}function rl(e){kr.current===e&&(G(Je),G(kr))}var Z=St(0);function Hs(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 lt=null,Pt=null,Ye=!1;function zc(e,t){var n=De(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 Mc(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(Ye){var t=Pt;if(t){var n=t;if(!Mc(e,t)){if(t=vn(n.nextSibling),!t||!Mc(e,t)){e.flags=e.flags&-1025|2,Ye=!1,lt=e;return}zc(lt,n)}lt=e,Pt=vn(t.firstChild)}else e.flags=e.flags&-1025|2,Ye=!1,lt=e}}function Dc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;lt=e}function Ws(e){if(e!==lt)return!1;if(!Ye)return Dc(e),Ye=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!Bi(t,e.memoizedProps))for(t=Pt;t;)zc(e,t),t=vn(t.nextSibling);if(Dc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Pt=vn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Pt=null}}else Pt=lt?vn(e.stateNode.nextSibling):null;return!0}function ol(){Pt=lt=null,Ye=!1}var jn=[];function il(){for(var e=0;e<jn.length;e++)jn[e]._workInProgressVersionPrimary=null;jn.length=0}var Er=It.ReactCurrentDispatcher,ze=It.ReactCurrentBatchConfig,jr=0,ne=null,ye=null,ce=null,Ks=!1,Ar=!1;function Ee(){throw Error(j(321))}function ll(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fe(e[n],t[n]))return!1;return!0}function al(e,t,n,r,s,o){if(jr=o,ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Er.current=e===null||e.memoizedState===null?Eg:jg,e=n(r,s),Ar){o=0;do{if(Ar=!1,!(25>o))throw Error(j(301));o+=1,ce=ye=null,t.updateQueue=null,Er.current=Ag,e=n(r,s)}while(Ar)}if(Er.current=Js,t=ye!==null&&ye.next!==null,jr=0,ce=ye=ne=null,Ks=!1,t)throw Error(j(300));return e}function Wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ce===null?ne.memoizedState=ce=e:ce=ce.next=e,ce}function Kt(){if(ye===null){var e=ne.alternate;e=e!==null?e.memoizedState:null}else e=ye.next;var t=ce===null?ne.memoizedState:ce.next;if(t!==null)ce=t,ye=e;else{if(e===null)throw Error(j(310));ye=e,e={memoizedState:ye.memoizedState,baseState:ye.baseState,baseQueue:ye.baseQueue,queue:ye.queue,next:null},ce===null?ne.memoizedState=ce=e:ce=ce.next=e}return ce}function Xe(e,t){return typeof t=="function"?t(e):t}function Tr(e){var t=Kt(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=ye,s=r.baseQueue,o=n.pending;if(o!==null){if(s!==null){var i=s.next;s.next=o.next,o.next=i}r.baseQueue=s=o,n.pending=null}if(s!==null){s=s.next,r=r.baseState;var l=i=o=null,a=s;do{var u=a.lane;if((jr&u)===u)l!==null&&(l=l.next={lane:0,action:a.action,eagerReducer:a.eagerReducer,eagerState:a.eagerState,next:null}),r=a.eagerReducer===e?a.eagerState:e(r,a.action);else{var f={lane:u,action:a.action,eagerReducer:a.eagerReducer,eagerState:a.eagerState,next:null};l===null?(i=l=f,o=r):l=l.next=f,ne.lanes|=u,_r|=u}a=a.next}while(a!==null&&a!==s);l===null?o=r:l.next=i,Fe(r,t.memoizedState)||(He=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Or(e){var t=Kt(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,o=t.memoizedState;if(s!==null){n.pending=null;var i=s=s.next;do o=e(o,i.action),i=i.next;while(i!==s);Fe(o,t.memoizedState)||(He=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function bc(e,t,n){var r=t._getVersion;r=r(t._source);var s=t._workInProgressVersionPrimary;if(s!==null?e=s===r:(e=e.mutableReadLanes,(e=(jr&e)===e)&&(t._workInProgressVersionPrimary=r,jn.push(t))),e)return n(t._source);throw jn.push(t),Error(j(350))}function Uc(e,t,n,r){var s=Ce;if(s===null)throw Error(j(349));var o=t._getVersion,i=o(t._source),l=Er.current,a=l.useState(function(){return bc(s,t,n)}),u=a[1],f=a[0];a=ce;var h=e.memoizedState,c=h.refs,m=c.getSnapshot,v=h.source;h=h.subscribe;var w=ne;return e.memoizedState={refs:c,source:t,subscribe:r},l.useEffect(function(){c.getSnapshot=n,c.setSnapshot=u;var d=o(t._source);if(!Fe(i,d)){d=n(t._source),Fe(f,d)||(u(d),d=jt(w),s.mutableReadLanes|=d&s.pendingLanes),d=s.mutableReadLanes,s.entangledLanes|=d;for(var p=s.entanglements,g=d;0<g;){var S=31-yt(g),y=1<<S;p[S]|=d,g&=~y}}},[n,t,r]),l.useEffect(function(){return r(t._source,function(){var d=c.getSnapshot,p=c.setSnapshot;try{p(d(t._source));var g=jt(w);s.mutableReadLanes|=g&s.pendingLanes}catch(S){p(function(){throw S})}})},[t,r]),Fe(m,n)&&Fe(v,t)&&Fe(h,r)||(e={pending:null,dispatch:null,lastRenderedReducer:Xe,lastRenderedState:f},e.dispatch=u=hl.bind(null,ne,e),a.queue=e,a.baseQueue=null,f=bc(s,t,n),a.memoizedState=a.baseState=f),f}function Bc(e,t,n){var r=Kt();return Uc(r,e,t,n)}function Nr(e){var t=Wt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Xe,lastRenderedState:e},e=e.dispatch=hl.bind(null,ne,e),[t.memoizedState,e]}function qs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ne.updateQueue,t===null?(t={lastEffect:null},ne.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 Vc(e){var t=Wt();return e={current:e},t.memoizedState=e}function Gs(){return Kt().memoizedState}function ul(e,t,n,r){var s=Wt();ne.flags|=e,s.memoizedState=qs(1|t,n,void 0,r===void 0?null:r)}function cl(e,t,n,r){var s=Kt();r=r===void 0?null:r;var o=void 0;if(ye!==null){var i=ye.memoizedState;if(o=i.destroy,r!==null&&ll(r,i.deps)){qs(t,n,o,r);return}}ne.flags|=e,s.memoizedState=qs(1|t,n,o,r)}function Hc(e,t){return ul(516,4,e,t)}function Qs(e,t){return cl(516,4,e,t)}function Wc(e,t){return cl(4,2,e,t)}function Kc(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 qc(e,t,n){return n=n!=null?n.concat([e]):null,cl(4,2,Kc.bind(null,t,e),n)}function fl(){}function Gc(e,t){var n=Kt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ll(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Qc(e,t){var n=Kt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ll(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Pg(e,t){var n=$n();Vt(98>n?98:n,function(){e(!0)}),Vt(97<n?97:n,function(){var r=ze.transition;ze.transition=1;try{e(!1),t()}finally{ze.transition=r}})}function hl(e,t,n){var r=Oe(),s=jt(e),o={lane:s,action:n,eagerReducer:null,eagerState:null,next:null},i=t.pending;if(i===null?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===ne||i!==null&&i===ne)Ar=Ks=!0;else{if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,a=i(l,n);if(o.eagerReducer=i,o.eagerState=a,Fe(a,l))return}catch{}finally{}At(e,s,r)}}var Js={readContext:Ie,useCallback:Ee,useContext:Ee,useEffect:Ee,useImperativeHandle:Ee,useLayoutEffect:Ee,useMemo:Ee,useReducer:Ee,useRef:Ee,useState:Ee,useDebugValue:Ee,useDeferredValue:Ee,useTransition:Ee,useMutableSource:Ee,useOpaqueIdentifier:Ee,unstable_isNewReconciler:!1},Eg={readContext:Ie,useCallback:function(e,t){return Wt().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:Hc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ul(4,2,Kc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ul(4,2,e,t)},useMemo:function(e,t){var n=Wt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Wt();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=hl.bind(null,ne,e),[r.memoizedState,e]},useRef:Vc,useState:Nr,useDebugValue:fl,useDeferredValue:function(e){var t=Nr(e),n=t[0],r=t[1];return Hc(function(){var s=ze.transition;ze.transition=1;try{r(e)}finally{ze.transition=s}},[e]),n},useTransition:function(){var e=Nr(!1),t=e[0];return e=Pg.bind(null,e[1]),Vc(e),[e,t]},useMutableSource:function(e,t,n){var r=Wt();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},Uc(r,e,t,n)},useOpaqueIdentifier:function(){if(Ye){var e=!1,t=wg(function(){throw e||(e=!0,n("r:"+(Hi++).toString(36))),Error(j(355))}),n=Nr(t)[1];return!(ne.mode&2)&&(ne.flags|=516,qs(5,function(){n("r:"+(Hi++).toString(36))},void 0,null)),t}return t="r:"+(Hi++).toString(36),Nr(t),t},unstable_isNewReconciler:!1},jg={readContext:Ie,useCallback:Gc,useContext:Ie,useEffect:Qs,useImperativeHandle:qc,useLayoutEffect:Wc,useMemo:Qc,useReducer:Tr,useRef:Gs,useState:function(){return Tr(Xe)},useDebugValue:fl,useDeferredValue:function(e){var t=Tr(Xe),n=t[0],r=t[1];return Qs(function(){var s=ze.transition;ze.transition=1;try{r(e)}finally{ze.transition=s}},[e]),n},useTransition:function(){var e=Tr(Xe)[0];return[Gs().current,e]},useMutableSource:Bc,useOpaqueIdentifier:function(){return Tr(Xe)[0]},unstable_isNewReconciler:!1},Ag={readContext:Ie,useCallback:Gc,useContext:Ie,useEffect:Qs,useImperativeHandle:qc,useLayoutEffect:Wc,useMemo:Qc,useReducer:Or,useRef:Gs,useState:function(){return Or(Xe)},useDebugValue:fl,useDeferredValue:function(e){var t=Or(Xe),n=t[0],r=t[1];return Qs(function(){var s=ze.transition;ze.transition=1;try{r(e)}finally{ze.transition=s}},[e]),n},useTransition:function(){var e=Or(Xe)[0];return[Gs().current,e]},useMutableSource:Bc,useOpaqueIdentifier:function(){return Or(Xe)[0]},unstable_isNewReconciler:!1},Tg=It.ReactCurrentOwner,He=!1;function je(e,t,n,r){t.child=e===null?Fc(t,null,n,r):Vs(t,e.child,n,r)}function Jc(e,t,n,r,s){n=n.render;var o=t.ref;return Pn(t,s),r=al(e,t,n,r,o,s),e!==null&&!He?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~s,at(e,t,s)):(t.flags|=1,je(e,t,r,s),t.child)}function Yc(e,t,n,r,s,o){if(e===null){var i=n.type;return typeof i=="function"&&!Fl(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Xc(e,t,i,r,s,o)):(e=io(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}return i=e.child,!(s&o)&&(s=i.memoizedProps,n=n.compare,n=n!==null?n:gr,n(s,r)&&e.ref===t.ref)?at(e,t,o):(t.flags|=1,e=Nt(i,r),e.ref=t.ref,e.return=t,t.child=e)}function Xc(e,t,n,r,s,o){if(e!==null&&gr(e.memoizedProps,r)&&e.ref===t.ref)if(He=!1,(o&s)!==0)e.flags&16384&&(He=!0);else return t.lanes=e.lanes,at(e,t,o);return pl(e,t,n,r,o)}function dl(e,t,n){var r=t.pendingProps,s=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},oo(t,n);else if(n&1073741824)t.memoizedState={baseLanes:0},oo(t,o!==null?o.baseLanes:n);else return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},oo(t,e),null;else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,oo(t,r);return je(e,t,s,n),t.child}function Zc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function pl(e,t,n,r,s){var o=Pe(n)?Ut:ge.current;return o=Cn(t,o),Pn(t,s),n=al(e,t,n,r,o,s),e!==null&&!He?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~s,at(e,t,s)):(t.flags|=1,je(e,t,n,s),t.child)}function ef(e,t,n,r,s){if(Pe(n)){var o=!0;_s(t)}else o=!1;if(Pn(t,s),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Lc(t,n,r),tl(t,n,r,s),r=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var a=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ie(u):(u=Pe(n)?Ut:ge.current,u=Cn(t,u));var f=n.getDerivedStateFromProps,h=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function";h||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==r||a!==u)&&_c(t,i,r,u),Ct=!1;var c=t.memoizedState;i.state=c,xr(t,r,i,s),a=t.memoizedState,l!==r||c!==a||ke.current||Ct?(typeof f=="function"&&(Ds(t,n,f,r),a=t.memoizedState),(l=Ct||Nc(t,n,l,r,c,a,u))?(h||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4)):(typeof i.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=a),i.props=r,i.state=a,i.context=u,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4),r=!1)}else{i=t.stateNode,jc(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Ve(t.type,l),i.props=u,h=t.pendingProps,c=i.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ie(a):(a=Pe(n)?Ut:ge.current,a=Cn(t,a));var m=n.getDerivedStateFromProps;(f=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==h||c!==a)&&_c(t,i,r,a),Ct=!1,c=t.memoizedState,i.state=c,xr(t,r,i,s);var v=t.memoizedState;l!==h||c!==v||ke.current||Ct?(typeof m=="function"&&(Ds(t,n,m,r),v=t.memoizedState),(u=Ct||Nc(t,n,u,r,c,v,a))?(f||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,v,a),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,v,a)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=v),i.props=r,i.state=v,i.context=a,r=u):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=256),r=!1)}return gl(e,t,n,r,o,s)}function gl(e,t,n,r,s,o){Zc(e,t);var i=(t.flags&64)!==0;if(!r&&!i)return s&&yc(t,n,!1),at(e,t,o);r=t.stateNode,Tg.current=t;var l=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Vs(t,e.child,null,o),t.child=Vs(t,null,l,o)):je(e,t,l,o),t.memoizedState=r.state,s&&yc(t,n,!0),t.child}function tf(e){var t=e.stateNode;t.pendingContext?gc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&gc(e,t.context,!1),nl(e,t.containerInfo)}var Ys={dehydrated:null,retryLane:0};function nf(e,t,n){var r=t.pendingProps,s=Z.current,o=!1,i;return(i=(t.flags&64)!==0)||(i=e!==null&&e.memoizedState===null?!1:(s&2)!==0),i?(o=!0,t.flags&=-65):e!==null&&e.memoizedState===null||r.fallback===void 0||r.unstable_avoidThisFallback===!0||(s|=1),X(Z,s&1),e===null?(r.fallback!==void 0&&sl(t),e=r.children,s=r.fallback,o?(e=rf(t,e,s,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ys,e):typeof r.unstable_expectedLoadTime=="number"?(e=rf(t,e,s,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ys,t.lanes=33554432,e):(n=Il({mode:"visible",children:e},t.mode,n,null),n.return=t,t.child=n)):e.memoizedState!==null?o?(r=of(e,t,r.children,r.fallback,n),o=t.child,s=e.child.memoizedState,o.memoizedState=s===null?{baseLanes:n}:{baseLanes:s.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Ys,r):(n=sf(e,t,r.children,n),t.memoizedState=null,n):o?(r=of(e,t,r.children,r.fallback,n),o=t.child,s=e.child.memoizedState,o.memoizedState=s===null?{baseLanes:n}:{baseLanes:s.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Ys,r):(n=sf(e,t,r.children,n),t.memoizedState=null,n)}function rf(e,t,n,r){var s=e.mode,o=e.child;return t={mode:"hidden",children:t},!(s&2)&&o!==null?(o.childLanes=0,o.pendingProps=t):o=Il(t,s,0,null),n=_n(n,s,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function sf(e,t,n,r){var s=e.child;return e=s.sibling,n=Nt(s,{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 of(e,t,n,r,s){var o=t.mode,i=e.child;e=i.sibling;var l={mode:"hidden",children:n};return!(o&2)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,i=n.lastEffect,i!==null?(t.firstEffect=n.firstEffect,t.lastEffect=i,i.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Nt(i,l),e!==null?r=Nt(e,r):(r=_n(r,o,s,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function lf(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Ec(e.return,t)}function ml(e,t,n,r,s,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s,lastEffect:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s,i.lastEffect=o)}function af(e,t,n){var r=t.pendingProps,s=r.revealOrder,o=r.tail;if(je(e,t,r.children,n),r=Z.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&&lf(e,n);else if(e.tag===19)lf(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(X(Z,r),!(t.mode&2))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Hs(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),ml(t,!1,s,n,o,t.lastEffect);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Hs(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}ml(t,!0,n,null,o,t.lastEffect);break;case"together":ml(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function at(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_r|=t.lanes,n&t.childLanes){if(e!==null&&t.child!==e.child)throw Error(j(153));if(t.child!==null){for(e=t.child,n=Nt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Nt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var uf,yl,cf,ff;uf=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}},yl=function(){},cf=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Ht(Je.current);var o=null;switch(n){case"input":s=ti(e,s),r=ti(e,r),o=[];break;case"option":s=si(e,s),r=si(e,r),o=[];break;case"select":s=Q({},s,{value:void 0}),r=Q({},r,{value:void 0}),o=[];break;case"textarea":s=oi(e,s),r=oi(e,r),o=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=As)}ai(n,r);var i;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var l=s[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(qn.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var a=r[u];if(l=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(i in l)!l.hasOwnProperty(i)||a&&a.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in a)a.hasOwnProperty(i)&&l[i]!==a[i]&&(n||(n={}),n[i]=a[i])}else n||(o||(o=[]),o.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(o=o||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(qn.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&q("scroll",e),o||l===a||(o=[])):typeof a=="object"&&a!==null&&a.$$typeof===Jo?a.toString():(o=o||[]).push(u,a))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},ff=function(e,t,n,r){n!==r&&(t.flags|=4)};function Lr(e,t){if(!Ye)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 Og(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)&&Ls(),null;case 3:return En(),G(ke),G(ge),il(),r=t.stateNode,r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ws(t)?t.flags|=4:r.hydrate||(t.flags|=256)),yl(t),null;case 5:rl(t);var s=Ht(Pr.current);if(n=t.type,e!==null&&t.stateNode!=null)cf(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(t.stateNode===null)throw Error(j(166));return null}if(e=Ht(Je.current),Ws(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[wt]=t,r[Os]=o,n){case"dialog":q("cancel",r),q("close",r);break;case"iframe":case"object":case"embed":q("load",r);break;case"video":case"audio":for(e=0;e<yr.length;e++)q(yr[e],r);break;case"source":q("error",r);break;case"img":case"image":case"link":q("error",r),q("load",r);break;case"details":q("toggle",r);break;case"input":tu(r,o),q("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},q("invalid",r);break;case"textarea":su(r,o),q("invalid",r)}ai(n,o),e=null;for(var i in o)o.hasOwnProperty(i)&&(s=o[i],i==="children"?typeof s=="string"?r.textContent!==s&&(e=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(e=["children",""+s]):qn.hasOwnProperty(i)&&s!=null&&i==="onScroll"&&q("scroll",r));switch(n){case"input":fs(r),ru(r,o,!0);break;case"textarea":fs(r),iu(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=As)}r=e,t.updateQueue=r,r!==null&&(t.flags|=4)}else{switch(i=s.nodeType===9?s:s.ownerDocument,e===ii.html&&(e=lu(n)),e===ii.html?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[wt]=t,e[Os]=r,uf(e,t,!1,!1),t.stateNode=e,i=ui(n,r),n){case"dialog":q("cancel",e),q("close",e),s=r;break;case"iframe":case"object":case"embed":q("load",e),s=r;break;case"video":case"audio":for(s=0;s<yr.length;s++)q(yr[s],e);s=r;break;case"source":q("error",e),s=r;break;case"img":case"image":case"link":q("error",e),q("load",e),s=r;break;case"details":q("toggle",e),s=r;break;case"input":tu(e,r),s=ti(e,r),q("invalid",e);break;case"option":s=si(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=Q({},r,{value:void 0}),q("invalid",e);break;case"textarea":su(e,r),s=oi(e,r),q("invalid",e);break;default:s=r}ai(n,s);var l=s;for(o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="style"?cu(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&au(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Zn(e,a):typeof a=="number"&&Zn(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(qn.hasOwnProperty(o)?a!=null&&o==="onScroll"&&q("scroll",e):a!=null&&Ho(e,o,a,i))}switch(n){case"input":fs(e),ru(e,r,!1);break;case"textarea":fs(e),iu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+dt(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?an(e,!!r.multiple,o,!1):r.defaultValue!=null&&an(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=As)}cc(n,r)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)ff(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(j(166));n=Ht(Pr.current),Ht(Je.current),Ws(t)?(r=t.stateNode,n=t.memoizedProps,r[wt]=t,r.nodeValue!==n&&(t.flags|=4)):(r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[wt]=t,t.stateNode=r)}return null;case 13:return G(Z),r=t.memoizedState,t.flags&64?(t.lanes=n,t):(r=r!==null,n=!1,e===null?t.memoizedProps.fallback!==void 0&&Ws(t):n=e.memoizedState!==null,r&&!n&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||Z.current&1?fe===0&&(fe=3):((fe===0||fe===3)&&(fe=4),Ce===null||!(_r&134217727)&&!(Tn&134217727)||Nn(Ce,ve))),(r||n)&&(t.flags|=4),null);case 4:return En(),yl(t),e===null&&oc(t.stateNode.containerInfo),null;case 10:return Zi(t),null;case 17:return Pe(t.type)&&Ls(),null;case 19:if(G(Z),r=t.memoizedState,r===null)return null;if(o=(t.flags&64)!==0,i=r.rendering,i===null)if(o)Lr(r,!1);else{if(fe!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(i=Hs(e),i!==null){for(t.flags|=64,Lr(r,!1),o=i.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,i=o.alternate,i===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=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return X(Z,Z.current&1|2),t.child}e=e.sibling}r.tail!==null&&me()>Al&&(t.flags|=64,o=!0,Lr(r,!1),t.lanes=33554432)}else{if(!o)if(e=Hs(i),e!==null){if(t.flags|=64,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Lr(r,!0),r.tail===null&&r.tailMode==="hidden"&&!i.alternate&&!Ye)return t=t.lastEffect=r.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*me()-r.renderingStartTime>Al&&n!==1073741824&&(t.flags|=64,o=!0,Lr(r,!1),t.lanes=33554432);r.isBackwards?(i.sibling=t.child,t.child=i):(n=r.last,n!==null?n.sibling=i:t.child=i,r.last=i)}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=Z.current,X(Z,o?t&1|2:t&1),n):null;case 23:case 24:return Rl(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&r.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(j(156,t.tag))}function Ng(e){switch(e.tag){case 1:Pe(e.type)&&Ls();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(En(),G(ke),G(ge),il(),t=e.flags,t&64)throw Error(j(285));return e.flags=t&-4097|64,e;case 5:return rl(e),null;case 13:return G(Z),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return G(Z),null;case 4:return En(),null;case 10:return Zi(e),null;case 23:case 24:return Rl(),null;default:return null}}function vl(e,t){try{var n="",r=t;do n+=cp(r),r=r.return;while(r);var s=n}catch(o){s=`
|
|
39
|
-
Error generating stack: `+o.message+`
|
|
40
|
-
`+o.stack}return{value:e,source:t,stack:s}}function wl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Lg=typeof WeakMap=="function"?WeakMap:Map;function hf(e,t,n){n=$t(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){eo||(eo=!0,Tl=r),wl(e,t)},n}function df(e,t,n){n=$t(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return wl(e,t),r(s)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){typeof r!="function"&&(Ze===null?Ze=new Set([this]):Ze.add(this),wl(e,t));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}var _g=typeof WeakSet=="function"?WeakSet:Set;function pf(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){Ot(e,n)}else t.current=null}function Rg(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&&Vi(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(j(163))}function Fg(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 s=e;r=s.next,s=s.tag,s&4&&s&1&&(Tf(n,e),Vg(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&&Tc(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}Tc(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&cc(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&&Eu(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(j(163))}function gf(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 s=n.memoizedProps.style;s=s!=null&&s.hasOwnProperty("display")?s.display:null,r.style.display=uu("display",s)}}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 mf(e,t){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(Ki,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,s=r.destroy;if(r=r.tag,s!==void 0)if(r&4)Tf(t,n);else{r=t;try{s()}catch(o){Ot(r,o)}}n=n.next}while(n!==e)}break;case 1:if(pf(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){Ot(t,o)}break;case 5:pf(t);break;case 4:Sf(e,t)}}function yf(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 vf(e){return e.tag===5||e.tag===3||e.tag===4}function wf(e){e:{for(var t=e.return;t!==null;){if(vf(t))break e;t=t.return}throw Error(j(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(j(161))}n.flags&16&&(Zn(t,""),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||vf(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?Sl(e,n,t):xl(e,n,t)}function Sl(e,t,n){var r=e.tag,s=r===5||r===6;if(s)e=s?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=As));else if(r!==4&&(e=e.child,e!==null))for(Sl(e,t,n),e=e.sibling;e!==null;)Sl(e,t,n),e=e.sibling}function xl(e,t,n){var r=e.tag,s=r===5||r===6;if(s)e=s?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(xl(e,t,n),e=e.sibling;e!==null;)xl(e,t,n),e=e.sibling}function Sf(e,t){for(var n=t,r=!1,s,o;;){if(!r){r=n.return;e:for(;;){if(r===null)throw Error(j(160));switch(s=r.stateNode,r.tag){case 5:o=!1;break e;case 3:s=s.containerInfo,o=!0;break e;case 4:s=s.containerInfo,o=!0;break e}r=r.return}r=!0}if(n.tag===5||n.tag===6){e:for(var i=e,l=n,a=l;;)if(mf(i,a),a.child!==null&&a.tag!==4)a.child.return=a,a=a.child;else{if(a===l)break e;for(;a.sibling===null;){if(a.return===null||a.return===l)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}o?(i=s,l=n.stateNode,i.nodeType===8?i.parentNode.removeChild(l):i.removeChild(l)):s.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){s=n.stateNode.containerInfo,o=!0,n.child.return=n,n=n.child;continue}}else if(mf(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 Cl(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 s=e!==null?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(n[Os]=r,e==="input"&&r.type==="radio"&&r.name!=null&&nu(n,r),ui(e,s),t=ui(e,r),s=0;s<o.length;s+=2){var i=o[s],l=o[s+1];i==="style"?cu(n,l):i==="dangerouslySetInnerHTML"?au(n,l):i==="children"?Zn(n,l):Ho(n,i,l,t)}switch(e){case"input":ni(n,r);break;case"textarea":ou(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,o=r.value,o!=null?an(n,!!r.multiple,o,!1):e!==!!r.multiple&&(r.defaultValue!=null?an(n,!!r.multiple,r.defaultValue,!0):an(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(j(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,Eu(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(jl=me(),gf(t.child,!0)),xf(t);return;case 19:xf(t);return;case 17:return;case 23:case 24:gf(t,t.memoizedState!==null);return}throw Error(j(163))}function xf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new _g),t.forEach(function(r){var s=Kg.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Ig(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var zg=Math.ceil,Xs=It.ReactCurrentDispatcher,$l=It.ReactCurrentOwner,I=0,Ce=null,oe=null,ve=0,qt=0,kl=St(0),fe=0,Zs=null,An=0,_r=0,Tn=0,Pl=0,El=null,jl=0,Al=1/0;function On(){Al=me()+500}var R=null,eo=!1,Tl=null,Ze=null,Et=!1,Rr=null,Fr=90,Ol=[],Nl=[],ut=null,Ir=0,Ll=null,to=-1,ct=0,no=0,zr=null,ro=!1;function Oe(){return I&48?me():to!==-1?to:to=me()}function jt(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return $n()===99?1:2;if(ct===0&&(ct=An),kg.transition!==0){no!==0&&(no=El!==null?El.pendingLanes:0),e=ct;var t=4186112&~no;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=$n(),I&4&&e===98?e=ws(12,ct):(e=Ep(e),e=ws(e,ct)),e}function At(e,t,n){if(50<Ir)throw Ir=0,Ll=null,Error(j(185));if(e=so(e,t),e===null)return null;Ss(e,t,n),e===Ce&&(Tn|=t,fe===4&&Nn(e,ve));var r=$n();t===1?I&8&&!(I&48)?_l(e):(Me(e,n),I===0&&(On(),Qe())):(!(I&4)||r!==98&&r!==99||(ut===null?ut=new Set([e]):ut.add(e)),Me(e,n)),El=e}function so(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 Me(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,s=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-yt(i),a=1<<l,u=o[l];if(u===-1){if(!(a&r)||a&s){u=t,hn(a);var f=K;o[l]=10<=f?u+250:6<=f?u+5e3:-1}}else u<=t&&(e.expiredLanes|=a);i&=~a}if(r=ur(e,e===Ce?ve:0),t=K,r===0)n!==null&&(n!==Ji&&Gi(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==Ji&&Gi(n)}t===15?(n=_l.bind(null,e),it===null?(it=[n],Fs=qi(Rs,Pc)):it.push(n),n=Ji):t===14?n=Sr(99,_l.bind(null,e)):(n=jp(t),n=Sr(n,Cf.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function Cf(e){if(to=-1,no=ct=0,I&48)throw Error(j(327));var t=e.callbackNode;if(Tt()&&e.callbackNode!==t)return null;var n=ur(e,e===Ce?ve:0);if(n===0)return null;var r=n,s=I;I|=16;var o=Ef();(Ce!==e||ve!==r)&&(On(),Ln(e,r));do try{bg();break}catch(l){Pf(e,l)}while(!0);if(Xi(),Xs.current=o,I=s,oe!==null?r=0:(Ce=null,ve=0,r=fe),An&Tn)Ln(e,0);else if(r!==0){if(r===2&&(I|=64,e.hydrate&&(e.hydrate=!1,Vi(e.containerInfo)),n=_u(e),n!==0&&(r=Mr(e,n))),r===1)throw t=Zs,Ln(e,0),Nn(e,n),Me(e,me()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(j(345));case 2:Gt(e);break;case 3:if(Nn(e,n),(n&62914560)===n&&(r=jl+500-me(),10<r)){if(ur(e,0)!==0)break;if(s=e.suspendedLanes,(s&n)!==n){Oe(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=fc(Gt.bind(null,e),r);break}Gt(e);break;case 4:if(Nn(e,n),(n&4186112)===n)break;for(r=e.eventTimes,s=-1;0<n;){var i=31-yt(n);o=1<<i,i=r[i],i>s&&(s=i),n&=~o}if(n=s,n=me()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*zg(n/1960))-n,10<n){e.timeoutHandle=fc(Gt.bind(null,e),n);break}Gt(e);break;case 5:Gt(e);break;default:throw Error(j(329))}}return Me(e,me()),e.callbackNode===t?Cf.bind(null,e):null}function Nn(e,t){for(t&=~Pl,t&=~Tn,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-yt(t),r=1<<n;e[n]=-1,t&=~r}}function _l(e){if(I&48)throw Error(j(327));if(Tt(),e===Ce&&e.expiredLanes&ve){var t=ve,n=Mr(e,t);An&Tn&&(t=ur(e,t),n=Mr(e,t))}else t=ur(e,0),n=Mr(e,t);if(e.tag!==0&&n===2&&(I|=64,e.hydrate&&(e.hydrate=!1,Vi(e.containerInfo)),t=_u(e),t!==0&&(n=Mr(e,t))),n===1)throw n=Zs,Ln(e,0),Nn(e,t),Me(e,me()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Gt(e),Me(e,me()),null}function Mg(){if(ut!==null){var e=ut;ut=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Me(t,me())})}Qe()}function $f(e,t){var n=I;I|=1;try{return e(t)}finally{I=n,I===0&&(On(),Qe())}}function kf(e,t){var n=I;I&=-2,I|=8;try{return e(t)}finally{I=n,I===0&&(On(),Qe())}}function oo(e,t){X(kl,qt),qt|=t,An|=t}function Rl(){qt=kl.current,G(kl)}function Ln(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,vg(n)),oe!==null)for(n=oe.return;n!==null;){var r=n;switch(r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ls();break;case 3:En(),G(ke),G(ge),il();break;case 5:rl(r);break;case 4:En();break;case 13:G(Z);break;case 19:G(Z);break;case 10:Zi(r);break;case 23:case 24:Rl()}n=n.return}Ce=e,oe=Nt(e.current,null),ve=qt=An=t,fe=0,Zs=null,Pl=Tn=_r=0}function Pf(e,t){do{var n=oe;try{if(Xi(),Er.current=Js,Ks){for(var r=ne.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Ks=!1}if(jr=0,ce=ye=ne=null,Ar=!1,$l.current=null,n===null||n.return===null){fe=1,Zs=t,oe=null;break}e:{var o=e,i=n.return,l=n,a=t;if(t=ve,l.flags|=2048,l.firstEffect=l.lastEffect=null,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a;if(!(l.mode&2)){var f=l.alternate;f?(l.updateQueue=f.updateQueue,l.memoizedState=f.memoizedState,l.lanes=f.lanes):(l.updateQueue=null,l.memoizedState=null)}var h=(Z.current&1)!==0,c=i;do{var m;if(m=c.tag===13){var v=c.memoizedState;if(v!==null)m=v.dehydrated!==null;else{var w=c.memoizedProps;m=w.fallback===void 0?!1:w.unstable_avoidThisFallback!==!0?!0:!h}}if(m){var d=c.updateQueue;if(d===null){var p=new Set;p.add(u),c.updateQueue=p}else d.add(u);if(!(c.mode&2)){if(c.flags|=64,l.flags|=16384,l.flags&=-2981,l.tag===1)if(l.alternate===null)l.tag=17;else{var g=$t(-1,1);g.tag=2,kt(l,g)}l.lanes|=1;break e}a=void 0,l=t;var S=o.pingCache;if(S===null?(S=o.pingCache=new Lg,a=new Set,S.set(u,a)):(a=S.get(u),a===void 0&&(a=new Set,S.set(u,a))),!a.has(l)){a.add(l);var y=Wg.bind(null,o,u,l);u.then(y,y)}c.flags|=4096,c.lanes=t;break e}c=c.return}while(c!==null);a=Error((ln(l.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
|
|
1
|
+
(function(Sr){typeof define=="function"&&define.amd?define(Sr):Sr()})((function(){"use strict";var Sr=document.createElement("style");Sr.textContent=`.App{text-align:center}.App-logo{height:40vmin;pointer-events:none}@media(prefers-reduced-motion:no-preference){.App-logo{animation:App-logo-spin infinite 20s linear}}.App-header{background-color:#282c34;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:calc(10px + 2vmin);color:#fff}.App-link{color:#61dafb}@keyframes App-logo-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(Sr);var No=typeof document<"u"?document.currentScript:null,xr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ro(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Wh(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var s=r.default;if(typeof s=="function"){var l=function i(){var u=!1;try{u=this instanceof i}catch{}return u?Reflect.construct(s,arguments,this.constructor):s.apply(this,arguments)};l.prototype=s.prototype}else l={};return Object.defineProperty(l,"__esModule",{value:!0}),Object.keys(r).forEach(function(i){var u=Object.getOwnPropertyDescriptor(r,i);Object.defineProperty(l,i,u.get?u:{enumerable:!0,get:function(){return r[i]}})}),l}var _o={exports:{}},Vn={};var Lo,Ea;function Fo(){if(Ea)return Lo;Ea=1;var r=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;function i(c){if(c==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(c)}function u(){try{if(!Object.assign)return!1;var c=new String("abc");if(c[5]="de",Object.getOwnPropertyNames(c)[0]==="5")return!1;for(var d={},v=0;v<10;v++)d["_"+String.fromCharCode(v)]=v;var g=Object.getOwnPropertyNames(d).map(function($){return d[$]});if(g.join("")!=="0123456789")return!1;var C={};return"abcdefghijklmnopqrst".split("").forEach(function($){C[$]=$}),Object.keys(Object.assign({},C)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Lo=u()?Object.assign:function(c,d){for(var v,g=i(c),C,$=1;$<arguments.length;$++){v=Object(arguments[$]);for(var P in v)s.call(v,P)&&(g[P]=v[P]);if(r){C=r(v);for(var O=0;O<C.length;O++)l.call(v,C[O])&&(g[C[O]]=v[C[O]])}}return g},Lo}var Io={exports:{}},Le={};var $a;function Kh(){if($a)return Le;$a=1;var r=Fo(),s=60103,l=60106;Le.Fragment=60107,Le.StrictMode=60108,Le.Profiler=60114;var i=60109,u=60110,c=60112;Le.Suspense=60113;var d=60115,v=60116;if(typeof Symbol=="function"&&Symbol.for){var g=Symbol.for;s=g("react.element"),l=g("react.portal"),Le.Fragment=g("react.fragment"),Le.StrictMode=g("react.strict_mode"),Le.Profiler=g("react.profiler"),i=g("react.provider"),u=g("react.context"),c=g("react.forward_ref"),Le.Suspense=g("react.suspense"),d=g("react.memo"),v=g("react.lazy")}var C=typeof Symbol=="function"&&Symbol.iterator;function $(w){return w===null||typeof w!="object"?null:(w=C&&w[C]||w["@@iterator"],typeof w=="function"?w:null)}function P(w){for(var T="https://reactjs.org/docs/error-decoder.html?invariant="+w,q=1;q<arguments.length;q++)T+="&args[]="+encodeURIComponent(arguments[q]);return"Minified React error #"+w+"; visit "+T+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F={};function b(w,T,q){this.props=w,this.context=T,this.refs=F,this.updater=q||O}b.prototype.isReactComponent={},b.prototype.setState=function(w,T){if(typeof w!="object"&&typeof w!="function"&&w!=null)throw Error(P(85));this.updater.enqueueSetState(this,w,T,"setState")},b.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function V(){}V.prototype=b.prototype;function U(w,T,q){this.props=w,this.context=T,this.refs=F,this.updater=q||O}var J=U.prototype=new V;J.constructor=U,r(J,b.prototype),J.isPureReactComponent=!0;var re={current:null},we=Object.prototype.hasOwnProperty,ge={key:!0,ref:!0,__self:!0,__source:!0};function ne(w,T,q){var pe,B={},Z=null,W=null;if(T!=null)for(pe in T.ref!==void 0&&(W=T.ref),T.key!==void 0&&(Z=""+T.key),T)we.call(T,pe)&&!ge.hasOwnProperty(pe)&&(B[pe]=T[pe]);var oe=arguments.length-2;if(oe===1)B.children=q;else if(1<oe){for(var ae=Array(oe),Re=0;Re<oe;Re++)ae[Re]=arguments[Re+2];B.children=ae}if(w&&w.defaultProps)for(pe in oe=w.defaultProps,oe)B[pe]===void 0&&(B[pe]=oe[pe]);return{$$typeof:s,type:w,key:Z,ref:W,props:B,_owner:re.current}}function me(w,T){return{$$typeof:s,type:w.type,key:T,ref:w.ref,props:w.props,_owner:w._owner}}function ie(w){return typeof w=="object"&&w!==null&&w.$$typeof===s}function fe(w){var T={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(q){return T[q]})}var Ee=/\/+/g;function L(w,T){return typeof w=="object"&&w!==null&&w.key!=null?fe(""+w.key):T.toString(36)}function z(w,T,q,pe,B){var Z=typeof w;(Z==="undefined"||Z==="boolean")&&(w=null);var W=!1;if(w===null)W=!0;else switch(Z){case"string":case"number":W=!0;break;case"object":switch(w.$$typeof){case s:case l:W=!0}}if(W)return W=w,B=B(W),w=pe===""?"."+L(W,0):pe,Array.isArray(B)?(q="",w!=null&&(q=w.replace(Ee,"$&/")+"/"),z(B,T,q,"",function(Re){return Re})):B!=null&&(ie(B)&&(B=me(B,q+(!B.key||W&&W.key===B.key?"":(""+B.key).replace(Ee,"$&/")+"/")+w)),T.push(B)),1;if(W=0,pe=pe===""?".":pe+":",Array.isArray(w))for(var oe=0;oe<w.length;oe++){Z=w[oe];var ae=pe+L(Z,oe);W+=z(Z,T,q,ae,B)}else if(ae=$(w),typeof ae=="function")for(w=ae.call(w),oe=0;!(Z=w.next()).done;)Z=Z.value,ae=pe+L(Z,oe++),W+=z(Z,T,q,ae,B);else if(Z==="object")throw T=""+w,Error(P(31,T==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":T));return W}function Y(w,T,q){if(w==null)return w;var pe=[],B=0;return z(w,pe,"","",function(Z){return T.call(q,Z,B++)}),pe}function se(w){if(w._status===-1){var T=w._result;T=T(),w._status=0,w._result=T,T.then(function(q){w._status===0&&(q=q.default,w._status=1,w._result=q)},function(q){w._status===0&&(w._status=2,w._result=q)})}if(w._status===1)return w._result;throw w._result}var de={current:null};function Oe(){var w=de.current;if(w===null)throw Error(P(321));return w}var Ie={ReactCurrentDispatcher:de,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:re,IsSomeRendererActing:{current:!1},assign:r};return Le.Children={map:Y,forEach:function(w,T,q){Y(w,function(){T.apply(this,arguments)},q)},count:function(w){var T=0;return Y(w,function(){T++}),T},toArray:function(w){return Y(w,function(T){return T})||[]},only:function(w){if(!ie(w))throw Error(P(143));return w}},Le.Component=b,Le.PureComponent=U,Le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ie,Le.cloneElement=function(w,T,q){if(w==null)throw Error(P(267,w));var pe=r({},w.props),B=w.key,Z=w.ref,W=w._owner;if(T!=null){if(T.ref!==void 0&&(Z=T.ref,W=re.current),T.key!==void 0&&(B=""+T.key),w.type&&w.type.defaultProps)var oe=w.type.defaultProps;for(ae in T)we.call(T,ae)&&!ge.hasOwnProperty(ae)&&(pe[ae]=T[ae]===void 0&&oe!==void 0?oe[ae]:T[ae])}var ae=arguments.length-2;if(ae===1)pe.children=q;else if(1<ae){oe=Array(ae);for(var Re=0;Re<ae;Re++)oe[Re]=arguments[Re+2];pe.children=oe}return{$$typeof:s,type:w.type,key:B,ref:Z,props:pe,_owner:W}},Le.createContext=function(w,T){return T===void 0&&(T=null),w={$$typeof:u,_calculateChangedBits:T,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider={$$typeof:i,_context:w},w.Consumer=w},Le.createElement=ne,Le.createFactory=function(w){var T=ne.bind(null,w);return T.type=w,T},Le.createRef=function(){return{current:null}},Le.forwardRef=function(w){return{$$typeof:c,render:w}},Le.isValidElement=ie,Le.lazy=function(w){return{$$typeof:v,_payload:{_status:-1,_result:w},_init:se}},Le.memo=function(w,T){return{$$typeof:d,type:w,compare:T===void 0?null:T}},Le.useCallback=function(w,T){return Oe().useCallback(w,T)},Le.useContext=function(w,T){return Oe().useContext(w,T)},Le.useDebugValue=function(){},Le.useEffect=function(w,T){return Oe().useEffect(w,T)},Le.useImperativeHandle=function(w,T,q){return Oe().useImperativeHandle(w,T,q)},Le.useLayoutEffect=function(w,T){return Oe().useLayoutEffect(w,T)},Le.useMemo=function(w,T){return Oe().useMemo(w,T)},Le.useReducer=function(w,T,q){return Oe().useReducer(w,T,q)},Le.useRef=function(w){return Oe().useRef(w)},Le.useState=function(w){return Oe().useState(w)},Le.version="17.0.2",Le}var ja;function Do(){return ja||(ja=1,Io.exports=Kh()),Io.exports}var Aa;function Gh(){if(Aa)return Vn;Aa=1,Fo();var r=Do(),s=60103;if(Vn.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var l=Symbol.for;s=l("react.element"),Vn.Fragment=l("react.fragment")}var i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function d(v,g,C){var $,P={},O=null,F=null;C!==void 0&&(O=""+C),g.key!==void 0&&(O=""+g.key),g.ref!==void 0&&(F=g.ref);for($ in g)u.call(g,$)&&!c.hasOwnProperty($)&&(P[$]=g[$]);if(v&&v.defaultProps)for($ in g=v.defaultProps,g)P[$]===void 0&&(P[$]=g[$]);return{$$typeof:s,type:v,key:O,ref:F,props:P,_owner:i.current}}return Vn.jsx=d,Vn.jsxs=d,Vn}var Oa;function Jh(){return Oa||(Oa=1,_o.exports=Gh()),_o.exports}var te=Jh(),Ne=Do();const Zt=Ro(Ne);var Mo={exports:{}},kt={},zo={exports:{}},bo={};var Ta;function Qh(){return Ta||(Ta=1,(function(r){var s,l,i,u;if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;r.unstable_now=function(){return c.now()}}else{var d=Date,v=d.now();r.unstable_now=function(){return d.now()-v}}if(typeof window>"u"||typeof MessageChannel!="function"){var g=null,C=null,$=function(){if(g!==null)try{var B=r.unstable_now();g(!0,B),g=null}catch(Z){throw setTimeout($,0),Z}};s=function(B){g!==null?setTimeout(s,0,B):(g=B,setTimeout($,0))},l=function(B,Z){C=setTimeout(B,Z)},i=function(){clearTimeout(C)},r.unstable_shouldYield=function(){return!1},u=r.unstable_forceFrameRate=function(){}}else{var P=window.setTimeout,O=window.clearTimeout;if(typeof console<"u"){var F=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 F!="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 b=!1,V=null,U=-1,J=5,re=0;r.unstable_shouldYield=function(){return r.unstable_now()>=re},u=function(){},r.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<B?Math.floor(1e3/B):5};var we=new MessageChannel,ge=we.port2;we.port1.onmessage=function(){if(V!==null){var B=r.unstable_now();re=B+J;try{V(!0,B)?ge.postMessage(null):(b=!1,V=null)}catch(Z){throw ge.postMessage(null),Z}}else b=!1},s=function(B){V=B,b||(b=!0,ge.postMessage(null))},l=function(B,Z){U=P(function(){B(r.unstable_now())},Z)},i=function(){O(U),U=-1}}function ne(B,Z){var W=B.length;B.push(Z);e:for(;;){var oe=W-1>>>1,ae=B[oe];if(ae!==void 0&&0<fe(ae,Z))B[oe]=Z,B[W]=ae,W=oe;else break e}}function me(B){return B=B[0],B===void 0?null:B}function ie(B){var Z=B[0];if(Z!==void 0){var W=B.pop();if(W!==Z){B[0]=W;e:for(var oe=0,ae=B.length;oe<ae;){var Re=2*(oe+1)-1,be=B[Re],pt=Re+1,De=B[pt];if(be!==void 0&&0>fe(be,W))De!==void 0&&0>fe(De,be)?(B[oe]=De,B[pt]=W,oe=pt):(B[oe]=be,B[Re]=W,oe=Re);else if(De!==void 0&&0>fe(De,W))B[oe]=De,B[pt]=W,oe=pt;else break e}}return Z}return null}function fe(B,Z){var W=B.sortIndex-Z.sortIndex;return W!==0?W:B.id-Z.id}var Ee=[],L=[],z=1,Y=null,se=3,de=!1,Oe=!1,Ie=!1;function w(B){for(var Z=me(L);Z!==null;){if(Z.callback===null)ie(L);else if(Z.startTime<=B)ie(L),Z.sortIndex=Z.expirationTime,ne(Ee,Z);else break;Z=me(L)}}function T(B){if(Ie=!1,w(B),!Oe)if(me(Ee)!==null)Oe=!0,s(q);else{var Z=me(L);Z!==null&&l(T,Z.startTime-B)}}function q(B,Z){Oe=!1,Ie&&(Ie=!1,i()),de=!0;var W=se;try{for(w(Z),Y=me(Ee);Y!==null&&(!(Y.expirationTime>Z)||B&&!r.unstable_shouldYield());){var oe=Y.callback;if(typeof oe=="function"){Y.callback=null,se=Y.priorityLevel;var ae=oe(Y.expirationTime<=Z);Z=r.unstable_now(),typeof ae=="function"?Y.callback=ae:Y===me(Ee)&&ie(Ee),w(Z)}else ie(Ee);Y=me(Ee)}if(Y!==null)var Re=!0;else{var be=me(L);be!==null&&l(T,be.startTime-Z),Re=!1}return Re}finally{Y=null,se=W,de=!1}}var pe=u;r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(B){B.callback=null},r.unstable_continueExecution=function(){Oe||de||(Oe=!0,s(q))},r.unstable_getCurrentPriorityLevel=function(){return se},r.unstable_getFirstCallbackNode=function(){return me(Ee)},r.unstable_next=function(B){switch(se){case 1:case 2:case 3:var Z=3;break;default:Z=se}var W=se;se=Z;try{return B()}finally{se=W}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=pe,r.unstable_runWithPriority=function(B,Z){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var W=se;se=B;try{return Z()}finally{se=W}},r.unstable_scheduleCallback=function(B,Z,W){var oe=r.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?oe+W:oe):W=oe,B){case 1:var ae=-1;break;case 2:ae=250;break;case 5:ae=1073741823;break;case 4:ae=1e4;break;default:ae=5e3}return ae=W+ae,B={id:z++,callback:Z,priorityLevel:B,startTime:W,expirationTime:ae,sortIndex:-1},W>oe?(B.sortIndex=W,ne(L,B),me(Ee)===null&&B===me(L)&&(Ie?i():Ie=!0,l(T,W-oe))):(B.sortIndex=ae,ne(Ee,B),Oe||de||(Oe=!0,s(q))),B},r.unstable_wrapCallback=function(B){var Z=se;return function(){var W=se;se=Z;try{return B.apply(this,arguments)}finally{se=W}}}})(bo)),bo}var Na;function Yh(){return Na||(Na=1,zo.exports=Qh()),zo.exports}var Ra;function Xh(){if(Ra)return kt;Ra=1;var r=Do(),s=Fo(),l=Yh();function i(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(!r)throw Error(i(227));var u=new Set,c={};function d(e,t){v(e,t),v(e+"Capture",t)}function v(e,t){for(c[e]=t,e=0;e<t.length;e++)u.add(t[e])}var g=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),C=/^[: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]*$/,$=Object.prototype.hasOwnProperty,P={},O={};function F(e){return $.call(O,e)?!0:$.call(P,e)?!1:C.test(e)?O[e]=!0:(P[e]=!0,!1)}function b(e,t,n,o){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function V(e,t,n,o){if(t===null||typeof t>"u"||b(e,t,n,o))return!0;if(o)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 U(e,t,n,o,a,h,y){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=h,this.removeEmptyString=y}var J={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){J[e]=new U(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];J[t]=new U(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){J[e]=new U(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){J[e]=new U(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){J[e]=new U(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){J[e]=new U(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){J[e]=new U(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){J[e]=new U(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){J[e]=new U(e,5,!1,e.toLowerCase(),null,!1,!1)});var re=/[\-:]([a-z])/g;function we(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(re,we);J[t]=new U(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(re,we);J[t]=new U(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(re,we);J[t]=new U(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){J[e]=new U(e,1,!1,e.toLowerCase(),null,!1,!1)}),J.xlinkHref=new U("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){J[e]=new U(e,1,!1,e.toLowerCase(),null,!0,!0)});function ge(e,t,n,o){var a=J.hasOwnProperty(t)?J[t]:null,h=a!==null?a.type===0:o?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");h||(V(t,n,a,o)&&(n=null),o||a===null?F(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=n===null?a.type===3?!1:"":n:(t=a.attributeName,o=a.attributeNamespace,n===null?e.removeAttribute(t):(a=a.type,n=a===3||a===4&&n===!0?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}var ne=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,me=60103,ie=60106,fe=60107,Ee=60108,L=60114,z=60109,Y=60110,se=60112,de=60113,Oe=60120,Ie=60115,w=60116,T=60121,q=60128,pe=60129,B=60130,Z=60131;if(typeof Symbol=="function"&&Symbol.for){var W=Symbol.for;me=W("react.element"),ie=W("react.portal"),fe=W("react.fragment"),Ee=W("react.strict_mode"),L=W("react.profiler"),z=W("react.provider"),Y=W("react.context"),se=W("react.forward_ref"),de=W("react.suspense"),Oe=W("react.suspense_list"),Ie=W("react.memo"),w=W("react.lazy"),T=W("react.block"),W("react.scope"),q=W("react.opaque.id"),pe=W("react.debug_trace_mode"),B=W("react.offscreen"),Z=W("react.legacy_hidden")}var oe=typeof Symbol=="function"&&Symbol.iterator;function ae(e){return e===null||typeof e!="object"?null:(e=oe&&e[oe]||e["@@iterator"],typeof e=="function"?e:null)}var Re;function be(e){if(Re===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Re=t&&t[1]||""}return`
|
|
3
|
+
`+Re+e}var pt=!1;function De(e,t){if(!e||pt)return"";pt=!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(j){var o=j}Reflect.construct(e,[],t)}else{try{t.call()}catch(j){o=j}e.call(t.prototype)}else{try{throw Error()}catch(j){o=j}e()}}catch(j){if(j&&o&&typeof j.stack=="string"){for(var a=j.stack.split(`
|
|
4
|
+
`),h=o.stack.split(`
|
|
5
|
+
`),y=a.length-1,S=h.length-1;1<=y&&0<=S&&a[y]!==h[S];)S--;for(;1<=y&&0<=S;y--,S--)if(a[y]!==h[S]){if(y!==1||S!==1)do if(y--,S--,0>S||a[y]!==h[S])return`
|
|
6
|
+
`+a[y].replace(" at new "," at ");while(1<=y&&0<=S);break}}}finally{pt=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?be(e):""}function Me(e){switch(e.tag){case 5:return be(e.type);case 16:return be("Lazy");case 13:return be("Suspense");case 19:return be("SuspenseList");case 0:case 2:case 15:return e=De(e.type,!1),e;case 11:return e=De(e.type.render,!1),e;case 22:return e=De(e.type._render,!1),e;case 1:return e=De(e.type,!0),e;default:return""}}function Be(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 fe:return"Fragment";case ie:return"Portal";case L:return"Profiler";case Ee:return"StrictMode";case de:return"Suspense";case Oe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Y:return(e.displayName||"Context")+".Consumer";case z:return(e._context.displayName||"Context")+".Provider";case se:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Ie:return Be(e.type);case T:return Be(e._render);case w:t=e._payload,e=e._init;try{return Be(e(t))}catch{}}return null}function Fe(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Ge(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function yt(e){var t=Ge(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,h=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(y){o=""+y,h.call(this,y)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(y){o=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ot(e){e._valueTracker||(e._valueTracker=yt(e))}function Ze(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=Ge(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function k(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 f(e,t){var n=t.checked;return s({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function p(e,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=Fe(t.value!=null?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function m(e,t){t=t.checked,t!=null&&ge(e,"checked",t,!1)}function x(e,t){m(e,t);var n=Fe(t.value),o=t.type;if(n!=null)o==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?N(e,t.type,n):t.hasOwnProperty("defaultValue")&&N(e,t.type,Fe(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function E(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="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 N(e,t,n){(t!=="number"||k(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function I(e){var t="";return r.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function M(e,t){return e=s({children:void 0},t),(t=I(t.children))&&(e.children=t),e}function Q(e,t,n,o){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&o&&(e[n].defaultSelected=!0)}else{for(n=""+Fe(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,o&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function ee(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(i(91));return s({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ue(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(i(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(i(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Fe(n)}}function K(e,t){var n=Fe(t.value),o=Fe(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),o!=null&&(e.defaultValue=""+o)}function Se(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var _e={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function Ke(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 ze(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ke(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var tt,nt=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,o,a){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,a)})}:e})(function(e,t){if(e.namespaceURI!==_e.svg||"innerHTML"in e)e.innerHTML=t;else{for(tt=tt||document.createElement("div"),tt.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=tt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Lt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ue={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},gt=["Webkit","ms","Moz","O"];Object.keys(Ue).forEach(function(e){gt.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ue[t]=Ue[e]})});function vt(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ue.hasOwnProperty(e)&&Ue[e]?(""+t).trim():t+"px"}function rt(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf("--")===0,a=vt(n,t[n],o);n==="float"&&(n="cssFloat"),o?e.setProperty(n,a):e[n]=a}}var Jn=s({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 Tr(e,t){if(t){if(Jn[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(i(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(t.style!=null&&typeof t.style!="object")throw Error(i(62))}}function Qn(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 Wt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _s=null,rn=null,$t=null;function sn(e){if(e=Yr(e)){if(typeof _s!="function")throw Error(i(280));var t=e.stateNode;t&&(t=Ys(t),_s(e.stateNode,e.type,t))}}function Rn(e){rn?$t?$t.push(e):$t=[e]:rn=e}function Nr(){if(rn){var e=rn,t=$t;if($t=rn=null,sn(e),t)for(e=0;e<t.length;e++)sn(t[e])}}function it(e,t){return e(t)}function zt(e,t,n,o,a){return e(t,n,o,a)}function Kt(){}var Rr=it,_n=!1,Yi=!1;function Xi(){(rn!==null||$t!==null)&&(Kt(),Nr())}function tm(e,t,n){if(Yi)return e(t,n);Yi=!0;try{return Rr(e,t,n)}finally{Yi=!1,Xi()}}function _r(e,t){var n=e.stateNode;if(n===null)return null;var o=Ys(n);if(o===null)return null;n=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(i(231,t,typeof n));return n}var Zi=!1;if(g)try{var Lr={};Object.defineProperty(Lr,"passive",{get:function(){Zi=!0}}),window.addEventListener("test",Lr,Lr),window.removeEventListener("test",Lr,Lr)}catch{Zi=!1}function nm(e,t,n,o,a,h,y,S,j){var D=Array.prototype.slice.call(arguments,3);try{t.apply(n,D)}catch(le){this.onError(le)}}var Fr=!1,Ls=null,Fs=!1,el=null,rm={onError:function(e){Fr=!0,Ls=e}};function sm(e,t,n,o,a,h,y,S,j){Fr=!1,Ls=null,nm.apply(rm,arguments)}function om(e,t,n,o,a,h,y,S,j){if(sm.apply(this,arguments),Fr){if(Fr){var D=Ls;Fr=!1,Ls=null}else throw Error(i(198));Fs||(Fs=!0,el=D)}}function Ln(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&1026)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Ac(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 Oc(e){if(Ln(e)!==e)throw Error(i(188))}function im(e){var t=e.alternate;if(!t){if(t=Ln(e),t===null)throw Error(i(188));return t!==e?null:e}for(var n=e,o=t;;){var a=n.return;if(a===null)break;var h=a.alternate;if(h===null){if(o=a.return,o!==null){n=o;continue}break}if(a.child===h.child){for(h=a.child;h;){if(h===n)return Oc(a),e;if(h===o)return Oc(a),t;h=h.sibling}throw Error(i(188))}if(n.return!==o.return)n=a,o=h;else{for(var y=!1,S=a.child;S;){if(S===n){y=!0,n=a,o=h;break}if(S===o){y=!0,o=a,n=h;break}S=S.sibling}if(!y){for(S=h.child;S;){if(S===n){y=!0,n=h,o=a;break}if(S===o){y=!0,o=h,n=a;break}S=S.sibling}if(!y)throw Error(i(189))}}if(n.alternate!==o)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function Tc(e){if(e=im(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 Nc(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var Rc,tl,_c,Lc,nl=!1,bt=[],on=null,ln=null,an=null,Ir=new Map,Dr=new Map,Mr=[],Fc="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 rl(e,t,n,o,a){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:a,targetContainers:[o]}}function Ic(e,t){switch(e){case"focusin":case"focusout":on=null;break;case"dragenter":case"dragleave":ln=null;break;case"mouseover":case"mouseout":an=null;break;case"pointerover":case"pointerout":Ir.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dr.delete(t.pointerId)}}function zr(e,t,n,o,a,h){return e===null||e.nativeEvent!==h?(e=rl(t,n,o,a,h),t!==null&&(t=Yr(t),t!==null&&tl(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function lm(e,t,n,o,a){switch(t){case"focusin":return on=zr(on,e,t,n,o,a),!0;case"dragenter":return ln=zr(ln,e,t,n,o,a),!0;case"mouseover":return an=zr(an,e,t,n,o,a),!0;case"pointerover":var h=a.pointerId;return Ir.set(h,zr(Ir.get(h)||null,e,t,n,o,a)),!0;case"gotpointercapture":return h=a.pointerId,Dr.set(h,zr(Dr.get(h)||null,e,t,n,o,a)),!0}return!1}function am(e){var t=Fn(e.target);if(t!==null){var n=Ln(t);if(n!==null){if(t=n.tag,t===13){if(t=Ac(n),t!==null){e.blockedOn=t,Lc(e.lanePriority,function(){l.unstable_runWithPriority(e.priority,function(){_c(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Is(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ul(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=Yr(n),t!==null&&tl(t),e.blockedOn=n,!1;t.shift()}return!0}function Dc(e,t,n){Is(e)&&n.delete(t)}function um(){for(nl=!1;0<bt.length;){var e=bt[0];if(e.blockedOn!==null){e=Yr(e.blockedOn),e!==null&&Rc(e);break}for(var t=e.targetContainers;0<t.length;){var n=ul(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&bt.shift()}on!==null&&Is(on)&&(on=null),ln!==null&&Is(ln)&&(ln=null),an!==null&&Is(an)&&(an=null),Ir.forEach(Dc),Dr.forEach(Dc)}function br(e,t){e.blockedOn===t&&(e.blockedOn=null,nl||(nl=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,um)))}function Mc(e){function t(a){return br(a,e)}if(0<bt.length){br(bt[0],e);for(var n=1;n<bt.length;n++){var o=bt[n];o.blockedOn===e&&(o.blockedOn=null)}}for(on!==null&&br(on,e),ln!==null&&br(ln,e),an!==null&&br(an,e),Ir.forEach(t),Dr.forEach(t),n=0;n<Mr.length;n++)o=Mr[n],o.blockedOn===e&&(o.blockedOn=null);for(;0<Mr.length&&(n=Mr[0],n.blockedOn===null);)am(n),n.blockedOn===null&&Mr.shift()}function Ds(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Yn={animationend:Ds("Animation","AnimationEnd"),animationiteration:Ds("Animation","AnimationIteration"),animationstart:Ds("Animation","AnimationStart"),transitionend:Ds("Transition","TransitionEnd")},sl={},zc={};g&&(zc=document.createElement("div").style,"AnimationEvent"in window||(delete Yn.animationend.animation,delete Yn.animationiteration.animation,delete Yn.animationstart.animation),"TransitionEvent"in window||delete Yn.transitionend.transition);function Ms(e){if(sl[e])return sl[e];if(!Yn[e])return e;var t=Yn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in zc)return sl[e]=t[n];return e}var bc=Ms("animationend"),Uc=Ms("animationiteration"),Bc=Ms("animationstart"),qc=Ms("transitionend"),Vc=new Map,ol=new Map,cm=["abort","abort",bc,"animationEnd",Uc,"animationIteration",Bc,"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",qc,"transitionEnd","waiting","waiting"];function il(e,t){for(var n=0;n<e.length;n+=2){var o=e[n],a=e[n+1];a="on"+(a[0].toUpperCase()+a.slice(1)),ol.set(o,t),Vc.set(o,a),d(a,[o])}}var fm=l.unstable_now;fm();var qe=8;function Xn(e){if((1&e)!==0)return qe=15,1;if((2&e)!==0)return qe=14,2;if((4&e)!==0)return qe=13,4;var t=24&e;return t!==0?(qe=12,t):(e&32)!==0?(qe=11,32):(t=192&e,t!==0?(qe=10,t):(e&256)!==0?(qe=9,256):(t=3584&e,t!==0?(qe=8,t):(e&4096)!==0?(qe=7,4096):(t=4186112&e,t!==0?(qe=6,t):(t=62914560&e,t!==0?(qe=5,t):e&67108864?(qe=4,67108864):(e&134217728)!==0?(qe=3,134217728):(t=805306368&e,t!==0?(qe=2,t):(1073741824&e)!==0?(qe=1,1073741824):(qe=8,e))))))}function hm(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 dm(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(i(358,e))}}function Ur(e,t){var n=e.pendingLanes;if(n===0)return qe=0;var o=0,a=0,h=e.expiredLanes,y=e.suspendedLanes,S=e.pingedLanes;if(h!==0)o=h,a=qe=15;else if(h=n&134217727,h!==0){var j=h&~y;j!==0?(o=Xn(j),a=qe):(S&=h,S!==0&&(o=Xn(S),a=qe))}else h=n&~y,h!==0?(o=Xn(h),a=qe):S!==0&&(o=Xn(S),a=qe);if(o===0)return 0;if(o=31-un(o),o=n&((0>o?0:1<<o)<<1)-1,t!==0&&t!==o&&(t&y)===0){if(Xn(t),a<=qe)return t;qe=a}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)n=31-un(t),a=1<<n,o|=e[n],t&=~a;return o}function Hc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function zs(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=Zn(24&~t),e===0?zs(10,t):e;case 10:return e=Zn(192&~t),e===0?zs(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(i(358,e))}function Zn(e){return e&-e}function ll(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bs(e,t,n){e.pendingLanes|=t;var o=t-1;e.suspendedLanes&=o,e.pingedLanes&=o,e=e.eventTimes,t=31-un(t),e[t]=n}var un=Math.clz32?Math.clz32:mm,pm=Math.log,gm=Math.LN2;function mm(e){return e===0?32:31-(pm(e)/gm|0)|0}var ym=l.unstable_UserBlockingPriority,vm=l.unstable_runWithPriority,Us=!0;function wm(e,t,n,o){_n||Kt();var a=al,h=_n;_n=!0;try{zt(a,e,t,n,o)}finally{(_n=h)||Xi()}}function Sm(e,t,n,o){vm(ym,al.bind(null,e,t,n,o))}function al(e,t,n,o){if(Us){var a;if((a=(t&4)===0)&&0<bt.length&&-1<Fc.indexOf(e))e=rl(null,e,t,n,o),bt.push(e);else{var h=ul(e,t,n,o);if(h===null)a&&Ic(e,o);else{if(a){if(-1<Fc.indexOf(e)){e=rl(h,e,t,n,o),bt.push(e);return}if(lm(h,e,t,n,o))return;Ic(e,o)}xf(e,t,o,null,n)}}}}function ul(e,t,n,o){var a=Wt(o);if(a=Fn(a),a!==null){var h=Ln(a);if(h===null)a=null;else{var y=h.tag;if(y===13){if(a=Ac(h),a!==null)return a;a=null}else if(y===3){if(h.stateNode.hydrate)return h.tag===3?h.stateNode.containerInfo:null;a=null}else h!==a&&(a=null)}}return xf(e,t,o,a,n),null}var cn=null,cl=null,Bs=null;function Wc(){if(Bs)return Bs;var e,t=cl,n=t.length,o,a="value"in cn?cn.value:cn.textContent,h=a.length;for(e=0;e<n&&t[e]===a[e];e++);var y=n-e;for(o=1;o<=y&&t[n-o]===a[h-o];o++);return Bs=a.slice(e,1<o?1-o:void 0)}function qs(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 Vs(){return!0}function Kc(){return!1}function Pt(e){function t(n,o,a,h,y){this._reactName=n,this._targetInst=a,this.type=o,this.nativeEvent=h,this.target=y,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(n=e[S],this[S]=n?n(h):h[S]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?Vs:Kc,this.isPropagationStopped=Kc,this}return s(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=Vs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Vs)},persist:function(){},isPersistent:Vs}),t}var er={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fl=Pt(er),Br=s({},er,{view:0,detail:0}),xm=Pt(Br),hl,dl,qr,Hs=s({},Br,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gl,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!==qr&&(qr&&e.type==="mousemove"?(hl=e.screenX-qr.screenX,dl=e.screenY-qr.screenY):dl=hl=0,qr=e),hl)},movementY:function(e){return"movementY"in e?e.movementY:dl}}),Gc=Pt(Hs),Cm=s({},Hs,{dataTransfer:0}),km=Pt(Cm),Pm=s({},Br,{relatedTarget:0}),pl=Pt(Pm),Em=s({},er,{animationName:0,elapsedTime:0,pseudoElement:0}),$m=Pt(Em),jm=s({},er,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Am=Pt(jm),Om=s({},er,{data:0}),Jc=Pt(Om),Tm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nm={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"},Rm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _m(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Rm[e])?!!t[e]:!1}function gl(){return _m}var Lm=s({},Br,{key:function(e){if(e.key){var t=Tm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Nm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gl,charCode:function(e){return e.type==="keypress"?qs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Fm=Pt(Lm),Im=s({},Hs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qc=Pt(Im),Dm=s({},Br,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gl}),Mm=Pt(Dm),zm=s({},er,{propertyName:0,elapsedTime:0,pseudoElement:0}),bm=Pt(zm),Um=s({},Hs,{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}),Bm=Pt(Um),qm=[9,13,27,32],ml=g&&"CompositionEvent"in window,Vr=null;g&&"documentMode"in document&&(Vr=document.documentMode);var Vm=g&&"TextEvent"in window&&!Vr,Yc=g&&(!ml||Vr&&8<Vr&&11>=Vr),Xc=" ",Zc=!1;function ef(e,t){switch(e){case"keyup":return qm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var tr=!1;function Hm(e,t){switch(e){case"compositionend":return tf(t);case"keypress":return t.which!==32?null:(Zc=!0,Xc);case"textInput":return e=t.data,e===Xc&&Zc?null:e;default:return null}}function Wm(e,t){if(tr)return e==="compositionend"||!ml&&ef(e,t)?(e=Wc(),Bs=cl=cn=null,tr=!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 Yc&&t.locale!=="ko"?null:t.data;default:return null}}var Km={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 nf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Km[e.type]:t==="textarea"}function rf(e,t,n,o){Rn(o),t=Ks(t,"onChange"),0<t.length&&(n=new fl("onChange","change",null,n,o),e.push({event:n,listeners:t}))}var Hr=null,Wr=null;function Gm(e){mf(e,0)}function Ws(e){var t=ir(e);if(Ze(t))return e}function Jm(e,t){if(e==="change")return t}var sf=!1;if(g){var yl;if(g){var vl="oninput"in document;if(!vl){var of=document.createElement("div");of.setAttribute("oninput","return;"),vl=typeof of.oninput=="function"}yl=vl}else yl=!1;sf=yl&&(!document.documentMode||9<document.documentMode)}function lf(){Hr&&(Hr.detachEvent("onpropertychange",af),Wr=Hr=null)}function af(e){if(e.propertyName==="value"&&Ws(Wr)){var t=[];if(rf(t,Wr,e,Wt(e)),e=Gm,_n)e(t);else{_n=!0;try{it(e,t)}finally{_n=!1,Xi()}}}}function Qm(e,t,n){e==="focusin"?(lf(),Hr=t,Wr=n,Hr.attachEvent("onpropertychange",af)):e==="focusout"&&lf()}function Ym(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ws(Wr)}function Xm(e,t){if(e==="click")return Ws(t)}function Zm(e,t){if(e==="input"||e==="change")return Ws(t)}function ey(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jt=typeof Object.is=="function"?Object.is:ey,ty=Object.prototype.hasOwnProperty;function Kr(e,t){if(jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++)if(!ty.call(t,n[o])||!jt(e[n[o]],t[n[o]]))return!1;return!0}function uf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cf(e,t){var n=uf(e);e=0;for(var o;n;){if(n.nodeType===3){if(o=e+n.textContent.length,e<=t&&o>=t)return{node:n,offset:t-e};e=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=uf(n)}}function ff(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ff(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hf(){for(var e=window,t=k();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=k(e.document)}return t}function wl(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 ny=g&&"documentMode"in document&&11>=document.documentMode,nr=null,Sl=null,Gr=null,xl=!1;function df(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xl||nr==null||nr!==k(o)||(o=nr,"selectionStart"in o&&wl(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Gr&&Kr(Gr,o)||(Gr=o,o=Ks(Sl,"onSelect"),0<o.length&&(t=new fl("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=nr)))}il("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),il("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),il(cm,2);for(var pf="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Cl=0;Cl<pf.length;Cl++)ol.set(pf[Cl],0);v("onMouseEnter",["mouseout","mouseover"]),v("onMouseLeave",["mouseout","mouseover"]),v("onPointerEnter",["pointerout","pointerover"]),v("onPointerLeave",["pointerout","pointerover"]),d("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),d("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),d("onBeforeInput",["compositionend","keypress","textInput","paste"]),d("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Jr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ry=new Set("cancel close invalid load scroll toggle".split(" ").concat(Jr));function gf(e,t,n){var o=e.type||"unknown-event";e.currentTarget=n,om(o,t,void 0,e),e.currentTarget=null}function mf(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var o=e[n],a=o.event;o=o.listeners;e:{var h=void 0;if(t)for(var y=o.length-1;0<=y;y--){var S=o[y],j=S.instance,D=S.currentTarget;if(S=S.listener,j!==h&&a.isPropagationStopped())break e;gf(a,S,D),h=j}else for(y=0;y<o.length;y++){if(S=o[y],j=S.instance,D=S.currentTarget,S=S.listener,j!==h&&a.isPropagationStopped())break e;gf(a,S,D),h=j}}}if(Fs)throw e=el,Fs=!1,el=null,e}function Ve(e,t){var n=jf(t),o=e+"__bubble";n.has(o)||(Sf(t,e,2,!1),n.add(o))}var yf="_reactListening"+Math.random().toString(36).slice(2);function vf(e){e[yf]||(e[yf]=!0,u.forEach(function(t){ry.has(t)||wf(t,!1,e,null),wf(t,!0,e,null)}))}function wf(e,t,n,o){var a=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,h=n;e==="selectionchange"&&n.nodeType!==9&&(h=n.ownerDocument);var y=jf(h),S=e+"__"+(t?"capture":"bubble");y.has(S)||(t&&(a|=4),Sf(h,e,a,t),y.add(S))}function Sf(e,t,n,o){var a=ol.get(t);switch(a===void 0?2:a){case 0:a=wm;break;case 1:a=Sm;break;default:a=al}n=a.bind(null,t,n,e),a=void 0,!Zi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),o?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function xf(e,t,n,o,a){var h=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var y=o.tag;if(y===3||y===4){var S=o.stateNode.containerInfo;if(S===a||S.nodeType===8&&S.parentNode===a)break;if(y===4)for(y=o.return;y!==null;){var j=y.tag;if((j===3||j===4)&&(j=y.stateNode.containerInfo,j===a||j.nodeType===8&&j.parentNode===a))return;y=y.return}for(;S!==null;){if(y=Fn(S),y===null)return;if(j=y.tag,j===5||j===6){o=h=y;continue e}S=S.parentNode}}o=o.return}tm(function(){var D=h,le=Wt(n),Pe=[];e:{var X=Vc.get(e);if(X!==void 0){var ye=fl,ke=e;switch(e){case"keypress":if(qs(n)===0)break e;case"keydown":case"keyup":ye=Fm;break;case"focusin":ke="focus",ye=pl;break;case"focusout":ke="blur",ye=pl;break;case"beforeblur":case"afterblur":ye=pl;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":ye=Gc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ye=km;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ye=Mm;break;case bc:case Uc:case Bc:ye=$m;break;case qc:ye=bm;break;case"scroll":ye=xm;break;case"wheel":ye=Bm;break;case"copy":case"cut":case"paste":ye=Am;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ye=Qc}var xe=(t&4)!==0,_=!xe&&e==="scroll",A=xe?X!==null?X+"Capture":null:X;xe=[];for(var R=D,H;R!==null;){H=R;var G=H.stateNode;if(H.tag===5&&G!==null&&(H=G,A!==null&&(G=_r(R,A),G!=null&&xe.push(Qr(R,G,H)))),_)break;R=R.return}0<xe.length&&(X=new ye(X,ke,null,n,le),Pe.push({event:X,listeners:xe}))}}if((t&7)===0){e:{if(X=e==="mouseover"||e==="pointerover",ye=e==="mouseout"||e==="pointerout",X&&(t&16)===0&&(ke=n.relatedTarget||n.fromElement)&&(Fn(ke)||ke[or]))break e;if((ye||X)&&(X=le.window===le?le:(X=le.ownerDocument)?X.defaultView||X.parentWindow:window,ye?(ke=n.relatedTarget||n.toElement,ye=D,ke=ke?Fn(ke):null,ke!==null&&(_=Ln(ke),ke!==_||ke.tag!==5&&ke.tag!==6)&&(ke=null)):(ye=null,ke=D),ye!==ke)){if(xe=Gc,G="onMouseLeave",A="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(xe=Qc,G="onPointerLeave",A="onPointerEnter",R="pointer"),_=ye==null?X:ir(ye),H=ke==null?X:ir(ke),X=new xe(G,R+"leave",ye,n,le),X.target=_,X.relatedTarget=H,G=null,Fn(le)===D&&(xe=new xe(A,R+"enter",ke,n,le),xe.target=H,xe.relatedTarget=_,G=xe),_=G,ye&&ke)t:{for(xe=ye,A=ke,R=0,H=xe;H;H=rr(H))R++;for(H=0,G=A;G;G=rr(G))H++;for(;0<R-H;)xe=rr(xe),R--;for(;0<H-R;)A=rr(A),H--;for(;R--;){if(xe===A||A!==null&&xe===A.alternate)break t;xe=rr(xe),A=rr(A)}xe=null}else xe=null;ye!==null&&Cf(Pe,X,ye,xe,!1),ke!==null&&_!==null&&Cf(Pe,_,ke,xe,!0)}}e:{if(X=D?ir(D):window,ye=X.nodeName&&X.nodeName.toLowerCase(),ye==="select"||ye==="input"&&X.type==="file")var $e=Jm;else if(nf(X))if(sf)$e=Zm;else{$e=Ym;var he=Qm}else(ye=X.nodeName)&&ye.toLowerCase()==="input"&&(X.type==="checkbox"||X.type==="radio")&&($e=Xm);if($e&&($e=$e(e,D))){rf(Pe,$e,n,le);break e}he&&he(e,X,D),e==="focusout"&&(he=X._wrapperState)&&he.controlled&&X.type==="number"&&N(X,"number",X.value)}switch(he=D?ir(D):window,e){case"focusin":(nf(he)||he.contentEditable==="true")&&(nr=he,Sl=D,Gr=null);break;case"focusout":Gr=Sl=nr=null;break;case"mousedown":xl=!0;break;case"contextmenu":case"mouseup":case"dragend":xl=!1,df(Pe,n,le);break;case"selectionchange":if(ny)break;case"keydown":case"keyup":df(Pe,n,le)}var je;if(ml)e:{switch(e){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else tr?ef(e,n)&&(Te="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Te="onCompositionStart");Te&&(Yc&&n.locale!=="ko"&&(tr||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&tr&&(je=Wc()):(cn=le,cl="value"in cn?cn.value:cn.textContent,tr=!0)),he=Ks(D,Te),0<he.length&&(Te=new Jc(Te,e,null,n,le),Pe.push({event:Te,listeners:he}),je?Te.data=je:(je=tf(n),je!==null&&(Te.data=je)))),(je=Vm?Hm(e,n):Wm(e,n))&&(D=Ks(D,"onBeforeInput"),0<D.length&&(le=new Jc("onBeforeInput","beforeinput",null,n,le),Pe.push({event:le,listeners:D}),le.data=je))}mf(Pe,t)})}function Qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ks(e,t){for(var n=t+"Capture",o=[];e!==null;){var a=e,h=a.stateNode;a.tag===5&&h!==null&&(a=h,h=_r(e,n),h!=null&&o.unshift(Qr(e,h,a)),h=_r(e,t),h!=null&&o.push(Qr(e,h,a))),e=e.return}return o}function rr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Cf(e,t,n,o,a){for(var h=t._reactName,y=[];n!==null&&n!==o;){var S=n,j=S.alternate,D=S.stateNode;if(j!==null&&j===o)break;S.tag===5&&D!==null&&(S=D,a?(j=_r(n,h),j!=null&&y.unshift(Qr(n,j,S))):a||(j=_r(n,h),j!=null&&y.push(Qr(n,j,S)))),n=n.return}y.length!==0&&e.push({event:t,listeners:y})}function Gs(){}var kl=null,Pl=null;function kf(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function El(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 Pf=typeof setTimeout=="function"?setTimeout:void 0,sy=typeof clearTimeout=="function"?clearTimeout:void 0;function $l(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function sr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function Ef(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 jl=0;function oy(e){return{$$typeof:q,toString:e,valueOf:e}}var Js=Math.random().toString(36).slice(2),fn="__reactFiber$"+Js,Qs="__reactProps$"+Js,or="__reactContainer$"+Js,$f="__reactEvents$"+Js;function Fn(e){var t=e[fn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[or]||n[fn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ef(e);e!==null;){if(n=e[fn])return n;e=Ef(e)}return t}e=n,n=e.parentNode}return null}function Yr(e){return e=e[fn]||e[or],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ir(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function Ys(e){return e[Qs]||null}function jf(e){var t=e[$f];return t===void 0&&(t=e[$f]=new Set),t}var Al=[],lr=-1;function hn(e){return{current:e}}function He(e){0>lr||(e.current=Al[lr],Al[lr]=null,lr--)}function Je(e,t){lr++,Al[lr]=e.current,e.current=t}var dn={},ct=hn(dn),wt=hn(!1),In=dn;function ar(e,t){var n=e.type.contextTypes;if(!n)return dn;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var a={},h;for(h in n)a[h]=t[h];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function St(e){return e=e.childContextTypes,e!=null}function Xs(){He(wt),He(ct)}function Af(e,t,n){if(ct.current!==dn)throw Error(i(168));Je(ct,t),Je(wt,n)}function Of(e,t,n){var o=e.stateNode;if(e=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var a in o)if(!(a in e))throw Error(i(108,Be(t)||"Unknown",a));return s({},n,o)}function Zs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||dn,In=ct.current,Je(ct,e),Je(wt,wt.current),!0}function Tf(e,t,n){var o=e.stateNode;if(!o)throw Error(i(169));n?(e=Of(e,t,In),o.__reactInternalMemoizedMergedChildContext=e,He(wt),He(ct),Je(ct,e)):He(wt),Je(wt,n)}var Ol=null,Dn=null,iy=l.unstable_runWithPriority,Tl=l.unstable_scheduleCallback,Nl=l.unstable_cancelCallback,ly=l.unstable_shouldYield,Nf=l.unstable_requestPaint,Rl=l.unstable_now,ay=l.unstable_getCurrentPriorityLevel,eo=l.unstable_ImmediatePriority,Rf=l.unstable_UserBlockingPriority,_f=l.unstable_NormalPriority,Lf=l.unstable_LowPriority,Ff=l.unstable_IdlePriority,_l={},uy=Nf!==void 0?Nf:function(){},Gt=null,to=null,Ll=!1,If=Rl(),ft=1e4>If?Rl:function(){return Rl()-If};function ur(){switch(ay()){case eo:return 99;case Rf:return 98;case _f:return 97;case Lf:return 96;case Ff:return 95;default:throw Error(i(332))}}function Df(e){switch(e){case 99:return eo;case 98:return Rf;case 97:return _f;case 96:return Lf;case 95:return Ff;default:throw Error(i(332))}}function Mn(e,t){return e=Df(e),iy(e,t)}function Xr(e,t,n){return e=Df(e),Tl(e,t,n)}function Ut(){if(to!==null){var e=to;to=null,Nl(e)}Mf()}function Mf(){if(!Ll&&Gt!==null){Ll=!0;var e=0;try{var t=Gt;Mn(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)),Tl(eo,Ut),n}finally{Ll=!1}}}var cy=ne.ReactCurrentBatchConfig;function Ft(e,t){if(e&&e.defaultProps){t=s({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var no=hn(null),ro=null,cr=null,so=null;function Fl(){so=cr=ro=null}function Il(e){var t=no.current;He(no),e.type._context._currentValue=t}function zf(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 fr(e,t){ro=e,so=cr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(It=!0),e.firstContext=null)}function At(e,t){if(so!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(so=e,t=1073741823),t={context:e,observedBits:t,next:null},cr===null){if(ro===null)throw Error(i(308));cr=t,ro.dependencies={lanes:0,firstContext:t,responders:null}}else cr=cr.next=t;return e._currentValue}var pn=!1;function Dl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function bf(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 gn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function mn(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 Uf(e,t){var n=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var a=null,h=null;if(n=n.firstBaseUpdate,n!==null){do{var y={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};h===null?a=h=y:h=h.next=y,n=n.next}while(n!==null);h===null?a=h=t:h=h.next=t}else a=h=t;n={baseState:o.baseState,firstBaseUpdate:a,lastBaseUpdate:h,shared:o.shared,effects:o.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Zr(e,t,n,o){var a=e.updateQueue;pn=!1;var h=a.firstBaseUpdate,y=a.lastBaseUpdate,S=a.shared.pending;if(S!==null){a.shared.pending=null;var j=S,D=j.next;j.next=null,y===null?h=D:y.next=D,y=j;var le=e.alternate;if(le!==null){le=le.updateQueue;var Pe=le.lastBaseUpdate;Pe!==y&&(Pe===null?le.firstBaseUpdate=D:Pe.next=D,le.lastBaseUpdate=j)}}if(h!==null){Pe=a.baseState,y=0,le=D=j=null;do{S=h.lane;var X=h.eventTime;if((o&S)===S){le!==null&&(le=le.next={eventTime:X,lane:0,tag:h.tag,payload:h.payload,callback:h.callback,next:null});e:{var ye=e,ke=h;switch(S=t,X=n,ke.tag){case 1:if(ye=ke.payload,typeof ye=="function"){Pe=ye.call(X,Pe,S);break e}Pe=ye;break e;case 3:ye.flags=ye.flags&-4097|64;case 0:if(ye=ke.payload,S=typeof ye=="function"?ye.call(X,Pe,S):ye,S==null)break e;Pe=s({},Pe,S);break e;case 2:pn=!0}}h.callback!==null&&(e.flags|=32,S=a.effects,S===null?a.effects=[h]:S.push(h))}else X={eventTime:X,lane:S,tag:h.tag,payload:h.payload,callback:h.callback,next:null},le===null?(D=le=X,j=Pe):le=le.next=X,y|=S;if(h=h.next,h===null){if(S=a.shared.pending,S===null)break;h=S.next,S.next=null,a.lastBaseUpdate=S,a.shared.pending=null}}while(!0);le===null&&(j=Pe),a.baseState=j,a.firstBaseUpdate=D,a.lastBaseUpdate=le,fs|=y,e.lanes=y,e.memoizedState=Pe}}function Bf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],a=o.callback;if(a!==null){if(o.callback=null,o=n,typeof a!="function")throw Error(i(191,a));a.call(o)}}}var qf=new r.Component().refs;function oo(e,t,n,o){t=e.memoizedState,n=n(o,t),n=n==null?t:s({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var io={isMounted:function(e){return(e=e._reactInternals)?Ln(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var o=Et(),a=wn(e),h=gn(o,a);h.payload=t,n!=null&&(h.callback=n),mn(e,h),Sn(e,a,o)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=Et(),a=wn(e),h=gn(o,a);h.tag=1,h.payload=t,n!=null&&(h.callback=n),mn(e,h),Sn(e,a,o)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Et(),o=wn(e),a=gn(n,o);a.tag=2,t!=null&&(a.callback=t),mn(e,a),Sn(e,o,n)}};function Vf(e,t,n,o,a,h,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,h,y):t.prototype&&t.prototype.isPureReactComponent?!Kr(n,o)||!Kr(a,h):!0}function Hf(e,t,n){var o=!1,a=dn,h=t.contextType;return typeof h=="object"&&h!==null?h=At(h):(a=St(t)?In:ct.current,o=t.contextTypes,h=(o=o!=null)?ar(e,a):dn),t=new t(n,h),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=io,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=h),t}function Wf(e,t,n,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&io.enqueueReplaceState(t,t.state,null)}function Ml(e,t,n,o){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=qf,Dl(e);var h=t.contextType;typeof h=="object"&&h!==null?a.context=At(h):(h=St(t)?In:ct.current,a.context=ar(e,h)),Zr(e,n,a,o),a.state=e.memoizedState,h=t.getDerivedStateFromProps,typeof h=="function"&&(oo(e,t,h,n),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&io.enqueueReplaceState(a,a.state,null),Zr(e,n,a,o),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4)}var lo=Array.isArray;function es(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(i(309));var o=n.stateNode}if(!o)throw Error(i(147,e));var a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(h){var y=o.refs;y===qf&&(y=o.refs={}),h===null?delete y[a]:y[a]=h},t._stringRef=a,t)}if(typeof e!="string")throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function ao(e,t){if(e.type!=="textarea")throw Error(i(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Kf(e){function t(_,A){if(e){var R=_.lastEffect;R!==null?(R.nextEffect=A,_.lastEffect=A):_.firstEffect=_.lastEffect=A,A.nextEffect=null,A.flags=8}}function n(_,A){if(!e)return null;for(;A!==null;)t(_,A),A=A.sibling;return null}function o(_,A){for(_=new Map;A!==null;)A.key!==null?_.set(A.key,A):_.set(A.index,A),A=A.sibling;return _}function a(_,A){return _=kn(_,A),_.index=0,_.sibling=null,_}function h(_,A,R){return _.index=R,e?(R=_.alternate,R!==null?(R=R.index,R<A?(_.flags=2,A):R):(_.flags=2,A)):A}function y(_){return e&&_.alternate===null&&(_.flags=2),_}function S(_,A,R,H){return A===null||A.tag!==6?(A=Sa(R,_.mode,H),A.return=_,A):(A=a(A,R),A.return=_,A)}function j(_,A,R,H){return A!==null&&A.elementType===R.type?(H=a(A,R.props),H.ref=es(_,A,R),H.return=_,H):(H=jo(R.type,R.key,R.props,null,_.mode,H),H.ref=es(_,A,R),H.return=_,H)}function D(_,A,R,H){return A===null||A.tag!==4||A.stateNode.containerInfo!==R.containerInfo||A.stateNode.implementation!==R.implementation?(A=xa(R,_.mode,H),A.return=_,A):(A=a(A,R.children||[]),A.return=_,A)}function le(_,A,R,H,G){return A===null||A.tag!==7?(A=wr(R,_.mode,H,G),A.return=_,A):(A=a(A,R),A.return=_,A)}function Pe(_,A,R){if(typeof A=="string"||typeof A=="number")return A=Sa(""+A,_.mode,R),A.return=_,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case me:return R=jo(A.type,A.key,A.props,null,_.mode,R),R.ref=es(_,null,A),R.return=_,R;case ie:return A=xa(A,_.mode,R),A.return=_,A}if(lo(A)||ae(A))return A=wr(A,_.mode,R,null),A.return=_,A;ao(_,A)}return null}function X(_,A,R,H){var G=A!==null?A.key:null;if(typeof R=="string"||typeof R=="number")return G!==null?null:S(_,A,""+R,H);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case me:return R.key===G?R.type===fe?le(_,A,R.props.children,H,G):j(_,A,R,H):null;case ie:return R.key===G?D(_,A,R,H):null}if(lo(R)||ae(R))return G!==null?null:le(_,A,R,H,null);ao(_,R)}return null}function ye(_,A,R,H,G){if(typeof H=="string"||typeof H=="number")return _=_.get(R)||null,S(A,_,""+H,G);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case me:return _=_.get(H.key===null?R:H.key)||null,H.type===fe?le(A,_,H.props.children,G,H.key):j(A,_,H,G);case ie:return _=_.get(H.key===null?R:H.key)||null,D(A,_,H,G)}if(lo(H)||ae(H))return _=_.get(R)||null,le(A,_,H,G,null);ao(A,H)}return null}function ke(_,A,R,H){for(var G=null,$e=null,he=A,je=A=0,Te=null;he!==null&&je<R.length;je++){he.index>je?(Te=he,he=null):Te=he.sibling;var Ae=X(_,he,R[je],H);if(Ae===null){he===null&&(he=Te);break}e&&he&&Ae.alternate===null&&t(_,he),A=h(Ae,A,je),$e===null?G=Ae:$e.sibling=Ae,$e=Ae,he=Te}if(je===R.length)return n(_,he),G;if(he===null){for(;je<R.length;je++)he=Pe(_,R[je],H),he!==null&&(A=h(he,A,je),$e===null?G=he:$e.sibling=he,$e=he);return G}for(he=o(_,he);je<R.length;je++)Te=ye(he,_,je,R[je],H),Te!==null&&(e&&Te.alternate!==null&&he.delete(Te.key===null?je:Te.key),A=h(Te,A,je),$e===null?G=Te:$e.sibling=Te,$e=Te);return e&&he.forEach(function(Pn){return t(_,Pn)}),G}function xe(_,A,R,H){var G=ae(R);if(typeof G!="function")throw Error(i(150));if(R=G.call(R),R==null)throw Error(i(151));for(var $e=G=null,he=A,je=A=0,Te=null,Ae=R.next();he!==null&&!Ae.done;je++,Ae=R.next()){he.index>je?(Te=he,he=null):Te=he.sibling;var Pn=X(_,he,Ae.value,H);if(Pn===null){he===null&&(he=Te);break}e&&he&&Pn.alternate===null&&t(_,he),A=h(Pn,A,je),$e===null?G=Pn:$e.sibling=Pn,$e=Pn,he=Te}if(Ae.done)return n(_,he),G;if(he===null){for(;!Ae.done;je++,Ae=R.next())Ae=Pe(_,Ae.value,H),Ae!==null&&(A=h(Ae,A,je),$e===null?G=Ae:$e.sibling=Ae,$e=Ae);return G}for(he=o(_,he);!Ae.done;je++,Ae=R.next())Ae=ye(he,_,je,Ae.value,H),Ae!==null&&(e&&Ae.alternate!==null&&he.delete(Ae.key===null?je:Ae.key),A=h(Ae,A,je),$e===null?G=Ae:$e.sibling=Ae,$e=Ae);return e&&he.forEach(function(Uy){return t(_,Uy)}),G}return function(_,A,R,H){var G=typeof R=="object"&&R!==null&&R.type===fe&&R.key===null;G&&(R=R.props.children);var $e=typeof R=="object"&&R!==null;if($e)switch(R.$$typeof){case me:e:{for($e=R.key,G=A;G!==null;){if(G.key===$e){switch(G.tag){case 7:if(R.type===fe){n(_,G.sibling),A=a(G,R.props.children),A.return=_,_=A;break e}break;default:if(G.elementType===R.type){n(_,G.sibling),A=a(G,R.props),A.ref=es(_,G,R),A.return=_,_=A;break e}}n(_,G);break}else t(_,G);G=G.sibling}R.type===fe?(A=wr(R.props.children,_.mode,H,R.key),A.return=_,_=A):(H=jo(R.type,R.key,R.props,null,_.mode,H),H.ref=es(_,A,R),H.return=_,_=H)}return y(_);case ie:e:{for(G=R.key;A!==null;){if(A.key===G)if(A.tag===4&&A.stateNode.containerInfo===R.containerInfo&&A.stateNode.implementation===R.implementation){n(_,A.sibling),A=a(A,R.children||[]),A.return=_,_=A;break e}else{n(_,A);break}else t(_,A);A=A.sibling}A=xa(R,_.mode,H),A.return=_,_=A}return y(_)}if(typeof R=="string"||typeof R=="number")return R=""+R,A!==null&&A.tag===6?(n(_,A.sibling),A=a(A,R),A.return=_,_=A):(n(_,A),A=Sa(R,_.mode,H),A.return=_,_=A),y(_);if(lo(R))return ke(_,A,R,H);if(ae(R))return xe(_,A,R,H);if($e&&ao(_,R),typeof R>"u"&&!G)switch(_.tag){case 1:case 22:case 0:case 11:case 15:throw Error(i(152,Be(_.type)||"Component"))}return n(_,A)}}var uo=Kf(!0),Gf=Kf(!1),ts={},Bt=hn(ts),ns=hn(ts),rs=hn(ts);function zn(e){if(e===ts)throw Error(i(174));return e}function zl(e,t){switch(Je(rs,t),Je(ns,e),Je(Bt,ts),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ze(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ze(t,e)}He(Bt),Je(Bt,t)}function hr(){He(Bt),He(ns),He(rs)}function Jf(e){zn(rs.current);var t=zn(Bt.current),n=ze(t,e.type);t!==n&&(Je(ns,e),Je(Bt,n))}function bl(e){ns.current===e&&(He(Bt),He(ns))}var Qe=hn(0);function co(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)!==0)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 Jt=null,yn=null,qt=!1;function Qf(e,t){var n=Nt(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 Yf(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 Ul(e){if(qt){var t=yn;if(t){var n=t;if(!Yf(e,t)){if(t=sr(n.nextSibling),!t||!Yf(e,t)){e.flags=e.flags&-1025|2,qt=!1,Jt=e;return}Qf(Jt,n)}Jt=e,yn=sr(t.firstChild)}else e.flags=e.flags&-1025|2,qt=!1,Jt=e}}function Xf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Jt=e}function fo(e){if(e!==Jt)return!1;if(!qt)return Xf(e),qt=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!El(t,e.memoizedProps))for(t=yn;t;)Qf(e,t),t=sr(t.nextSibling);if(Xf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){yn=sr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}yn=null}}else yn=Jt?sr(e.stateNode.nextSibling):null;return!0}function Bl(){yn=Jt=null,qt=!1}var dr=[];function ql(){for(var e=0;e<dr.length;e++)dr[e]._workInProgressVersionPrimary=null;dr.length=0}var ss=ne.ReactCurrentDispatcher,Ot=ne.ReactCurrentBatchConfig,os=0,Ye=null,ht=null,lt=null,ho=!1,is=!1;function xt(){throw Error(i(321))}function Vl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!jt(e[n],t[n]))return!1;return!0}function Hl(e,t,n,o,a,h){if(os=h,Ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ss.current=e===null||e.memoizedState===null?hy:dy,e=n(o,a),is){h=0;do{if(is=!1,!(25>h))throw Error(i(301));h+=1,lt=ht=null,t.updateQueue=null,ss.current=py,e=n(o,a)}while(is)}if(ss.current=yo,t=ht!==null&&ht.next!==null,os=0,lt=ht=Ye=null,ho=!1,t)throw Error(i(300));return e}function bn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?Ye.memoizedState=lt=e:lt=lt.next=e,lt}function Un(){if(ht===null){var e=Ye.alternate;e=e!==null?e.memoizedState:null}else e=ht.next;var t=lt===null?Ye.memoizedState:lt.next;if(t!==null)lt=t,ht=e;else{if(e===null)throw Error(i(310));ht=e,e={memoizedState:ht.memoizedState,baseState:ht.baseState,baseQueue:ht.baseQueue,queue:ht.queue,next:null},lt===null?Ye.memoizedState=lt=e:lt=lt.next=e}return lt}function Vt(e,t){return typeof t=="function"?t(e):t}function ls(e){var t=Un(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var o=ht,a=o.baseQueue,h=n.pending;if(h!==null){if(a!==null){var y=a.next;a.next=h.next,h.next=y}o.baseQueue=a=h,n.pending=null}if(a!==null){a=a.next,o=o.baseState;var S=y=h=null,j=a;do{var D=j.lane;if((os&D)===D)S!==null&&(S=S.next={lane:0,action:j.action,eagerReducer:j.eagerReducer,eagerState:j.eagerState,next:null}),o=j.eagerReducer===e?j.eagerState:e(o,j.action);else{var le={lane:D,action:j.action,eagerReducer:j.eagerReducer,eagerState:j.eagerState,next:null};S===null?(y=S=le,h=o):S=S.next=le,Ye.lanes|=D,fs|=D}j=j.next}while(j!==null&&j!==a);S===null?h=o:S.next=y,jt(o,t.memoizedState)||(It=!0),t.memoizedState=o,t.baseState=h,t.baseQueue=S,n.lastRenderedState=o}return[t.memoizedState,n.dispatch]}function as(e){var t=Un(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var o=n.dispatch,a=n.pending,h=t.memoizedState;if(a!==null){n.pending=null;var y=a=a.next;do h=e(h,y.action),y=y.next;while(y!==a);jt(h,t.memoizedState)||(It=!0),t.memoizedState=h,t.baseQueue===null&&(t.baseState=h),n.lastRenderedState=h}return[h,o]}function Zf(e,t,n){var o=t._getVersion;o=o(t._source);var a=t._workInProgressVersionPrimary;if(a!==null?e=a===o:(e=e.mutableReadLanes,(e=(os&e)===e)&&(t._workInProgressVersionPrimary=o,dr.push(t))),e)return n(t._source);throw dr.push(t),Error(i(350))}function eh(e,t,n,o){var a=mt;if(a===null)throw Error(i(349));var h=t._getVersion,y=h(t._source),S=ss.current,j=S.useState(function(){return Zf(a,t,n)}),D=j[1],le=j[0];j=lt;var Pe=e.memoizedState,X=Pe.refs,ye=X.getSnapshot,ke=Pe.source;Pe=Pe.subscribe;var xe=Ye;return e.memoizedState={refs:X,source:t,subscribe:o},S.useEffect(function(){X.getSnapshot=n,X.setSnapshot=D;var _=h(t._source);if(!jt(y,_)){_=n(t._source),jt(le,_)||(D(_),_=wn(xe),a.mutableReadLanes|=_&a.pendingLanes),_=a.mutableReadLanes,a.entangledLanes|=_;for(var A=a.entanglements,R=_;0<R;){var H=31-un(R),G=1<<H;A[H]|=_,R&=~G}}},[n,t,o]),S.useEffect(function(){return o(t._source,function(){var _=X.getSnapshot,A=X.setSnapshot;try{A(_(t._source));var R=wn(xe);a.mutableReadLanes|=R&a.pendingLanes}catch(H){A(function(){throw H})}})},[t,o]),jt(ye,n)&&jt(ke,t)&&jt(Pe,o)||(e={pending:null,dispatch:null,lastRenderedReducer:Vt,lastRenderedState:le},e.dispatch=D=Jl.bind(null,Ye,e),j.queue=e,j.baseQueue=null,le=Zf(a,t,n),j.memoizedState=j.baseState=le),le}function th(e,t,n){var o=Un();return eh(o,e,t,n)}function us(e){var t=bn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Vt,lastRenderedState:e},e=e.dispatch=Jl.bind(null,Ye,e),[t.memoizedState,e]}function po(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},t=Ye.updateQueue,t===null?(t={lastEffect:null},Ye.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(o=n.next,n.next=e,e.next=o,t.lastEffect=e)),e}function nh(e){var t=bn();return e={current:e},t.memoizedState=e}function go(){return Un().memoizedState}function Wl(e,t,n,o){var a=bn();Ye.flags|=e,a.memoizedState=po(1|t,n,void 0,o===void 0?null:o)}function Kl(e,t,n,o){var a=Un();o=o===void 0?null:o;var h=void 0;if(ht!==null){var y=ht.memoizedState;if(h=y.destroy,o!==null&&Vl(o,y.deps)){po(t,n,h,o);return}}Ye.flags|=e,a.memoizedState=po(1|t,n,h,o)}function rh(e,t){return Wl(516,4,e,t)}function mo(e,t){return Kl(516,4,e,t)}function sh(e,t){return Kl(4,2,e,t)}function oh(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 ih(e,t,n){return n=n!=null?n.concat([e]):null,Kl(4,2,oh.bind(null,t,e),n)}function Gl(){}function lh(e,t){var n=Un();t=t===void 0?null:t;var o=n.memoizedState;return o!==null&&t!==null&&Vl(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function ah(e,t){var n=Un();t=t===void 0?null:t;var o=n.memoizedState;return o!==null&&t!==null&&Vl(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function fy(e,t){var n=ur();Mn(98>n?98:n,function(){e(!0)}),Mn(97<n?97:n,function(){var o=Ot.transition;Ot.transition=1;try{e(!1),t()}finally{Ot.transition=o}})}function Jl(e,t,n){var o=Et(),a=wn(e),h={lane:a,action:n,eagerReducer:null,eagerState:null,next:null},y=t.pending;if(y===null?h.next=h:(h.next=y.next,y.next=h),t.pending=h,y=e.alternate,e===Ye||y!==null&&y===Ye)is=ho=!0;else{if(e.lanes===0&&(y===null||y.lanes===0)&&(y=t.lastRenderedReducer,y!==null))try{var S=t.lastRenderedState,j=y(S,n);if(h.eagerReducer=y,h.eagerState=j,jt(j,S))return}catch{}Sn(e,a,o)}}var yo={readContext:At,useCallback:xt,useContext:xt,useEffect:xt,useImperativeHandle:xt,useLayoutEffect:xt,useMemo:xt,useReducer:xt,useRef:xt,useState:xt,useDebugValue:xt,useDeferredValue:xt,useTransition:xt,useMutableSource:xt,useOpaqueIdentifier:xt,unstable_isNewReconciler:!1},hy={readContext:At,useCallback:function(e,t){return bn().memoizedState=[e,t===void 0?null:t],e},useContext:At,useEffect:rh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Wl(4,2,oh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Wl(4,2,e,t)},useMemo:function(e,t){var n=bn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=bn();return t=n!==void 0?n(t):t,o.memoizedState=o.baseState=t,e=o.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=Jl.bind(null,Ye,e),[o.memoizedState,e]},useRef:nh,useState:us,useDebugValue:Gl,useDeferredValue:function(e){var t=us(e),n=t[0],o=t[1];return rh(function(){var a=Ot.transition;Ot.transition=1;try{o(e)}finally{Ot.transition=a}},[e]),n},useTransition:function(){var e=us(!1),t=e[0];return e=fy.bind(null,e[1]),nh(e),[e,t]},useMutableSource:function(e,t,n){var o=bn();return o.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},eh(o,e,t,n)},useOpaqueIdentifier:function(){if(qt){var e=!1,t=oy(function(){throw e||(e=!0,n("r:"+(jl++).toString(36))),Error(i(355))}),n=us(t)[1];return(Ye.mode&2)===0&&(Ye.flags|=516,po(5,function(){n("r:"+(jl++).toString(36))},void 0,null)),t}return t="r:"+(jl++).toString(36),us(t),t},unstable_isNewReconciler:!1},dy={readContext:At,useCallback:lh,useContext:At,useEffect:mo,useImperativeHandle:ih,useLayoutEffect:sh,useMemo:ah,useReducer:ls,useRef:go,useState:function(){return ls(Vt)},useDebugValue:Gl,useDeferredValue:function(e){var t=ls(Vt),n=t[0],o=t[1];return mo(function(){var a=Ot.transition;Ot.transition=1;try{o(e)}finally{Ot.transition=a}},[e]),n},useTransition:function(){var e=ls(Vt)[0];return[go().current,e]},useMutableSource:th,useOpaqueIdentifier:function(){return ls(Vt)[0]},unstable_isNewReconciler:!1},py={readContext:At,useCallback:lh,useContext:At,useEffect:mo,useImperativeHandle:ih,useLayoutEffect:sh,useMemo:ah,useReducer:as,useRef:go,useState:function(){return as(Vt)},useDebugValue:Gl,useDeferredValue:function(e){var t=as(Vt),n=t[0],o=t[1];return mo(function(){var a=Ot.transition;Ot.transition=1;try{o(e)}finally{Ot.transition=a}},[e]),n},useTransition:function(){var e=as(Vt)[0];return[go().current,e]},useMutableSource:th,useOpaqueIdentifier:function(){return as(Vt)[0]},unstable_isNewReconciler:!1},gy=ne.ReactCurrentOwner,It=!1;function Ct(e,t,n,o){t.child=e===null?Gf(t,null,n,o):uo(t,e.child,n,o)}function uh(e,t,n,o,a){n=n.render;var h=t.ref;return fr(t,a),o=Hl(e,t,n,o,h,a),e!==null&&!It?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,Qt(e,t,a)):(t.flags|=1,Ct(e,t,o,a),t.child)}function ch(e,t,n,o,a,h){if(e===null){var y=n.type;return typeof y=="function"&&!va(y)&&y.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=y,fh(e,t,y,o,a,h)):(e=jo(n.type,null,o,t,t.mode,h),e.ref=t.ref,e.return=t,t.child=e)}return y=e.child,(a&h)===0&&(a=y.memoizedProps,n=n.compare,n=n!==null?n:Kr,n(a,o)&&e.ref===t.ref)?Qt(e,t,h):(t.flags|=1,e=kn(y,o),e.ref=t.ref,e.return=t,t.child=e)}function fh(e,t,n,o,a,h){if(e!==null&&Kr(e.memoizedProps,o)&&e.ref===t.ref)if(It=!1,(h&a)!==0)(e.flags&16384)!==0&&(It=!0);else return t.lanes=e.lanes,Qt(e,t,h);return Yl(e,t,n,o,h)}function Ql(e,t,n){var o=t.pendingProps,a=o.children,h=e!==null?e.memoizedState:null;if(o.mode==="hidden"||o.mode==="unstable-defer-without-hiding")if((t.mode&4)===0)t.memoizedState={baseLanes:0},$o(t,n);else if((n&1073741824)!==0)t.memoizedState={baseLanes:0},$o(t,h!==null?h.baseLanes:n);else return e=h!==null?h.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},$o(t,e),null;else h!==null?(o=h.baseLanes|n,t.memoizedState=null):o=n,$o(t,o);return Ct(e,t,a,n),t.child}function hh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function Yl(e,t,n,o,a){var h=St(n)?In:ct.current;return h=ar(t,h),fr(t,a),n=Hl(e,t,n,o,h,a),e!==null&&!It?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,Qt(e,t,a)):(t.flags|=1,Ct(e,t,n,a),t.child)}function dh(e,t,n,o,a){if(St(n)){var h=!0;Zs(t)}else h=!1;if(fr(t,a),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Hf(t,n,o),Ml(t,n,o,a),o=!0;else if(e===null){var y=t.stateNode,S=t.memoizedProps;y.props=S;var j=y.context,D=n.contextType;typeof D=="object"&&D!==null?D=At(D):(D=St(n)?In:ct.current,D=ar(t,D));var le=n.getDerivedStateFromProps,Pe=typeof le=="function"||typeof y.getSnapshotBeforeUpdate=="function";Pe||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(S!==o||j!==D)&&Wf(t,y,o,D),pn=!1;var X=t.memoizedState;y.state=X,Zr(t,o,y,a),j=t.memoizedState,S!==o||X!==j||wt.current||pn?(typeof le=="function"&&(oo(t,n,le,o),j=t.memoizedState),(S=pn||Vf(t,n,S,o,X,j,D))?(Pe||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(t.flags|=4)):(typeof y.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=o,t.memoizedState=j),y.props=o,y.state=j,y.context=D,o=S):(typeof y.componentDidMount=="function"&&(t.flags|=4),o=!1)}else{y=t.stateNode,bf(e,t),S=t.memoizedProps,D=t.type===t.elementType?S:Ft(t.type,S),y.props=D,Pe=t.pendingProps,X=y.context,j=n.contextType,typeof j=="object"&&j!==null?j=At(j):(j=St(n)?In:ct.current,j=ar(t,j));var ye=n.getDerivedStateFromProps;(le=typeof ye=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(S!==Pe||X!==j)&&Wf(t,y,o,j),pn=!1,X=t.memoizedState,y.state=X,Zr(t,o,y,a);var ke=t.memoizedState;S!==Pe||X!==ke||wt.current||pn?(typeof ye=="function"&&(oo(t,n,ye,o),ke=t.memoizedState),(D=pn||Vf(t,n,D,o,X,ke,j))?(le||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(o,ke,j),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(o,ke,j)),typeof y.componentDidUpdate=="function"&&(t.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof y.componentDidUpdate!="function"||S===e.memoizedProps&&X===e.memoizedState||(t.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&X===e.memoizedState||(t.flags|=256),t.memoizedProps=o,t.memoizedState=ke),y.props=o,y.state=ke,y.context=j,o=D):(typeof y.componentDidUpdate!="function"||S===e.memoizedProps&&X===e.memoizedState||(t.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&X===e.memoizedState||(t.flags|=256),o=!1)}return Xl(e,t,n,o,h,a)}function Xl(e,t,n,o,a,h){hh(e,t);var y=(t.flags&64)!==0;if(!o&&!y)return a&&Tf(t,n,!1),Qt(e,t,h);o=t.stateNode,gy.current=t;var S=y&&typeof n.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&y?(t.child=uo(t,e.child,null,h),t.child=uo(t,null,S,h)):Ct(e,t,S,h),t.memoizedState=o.state,a&&Tf(t,n,!0),t.child}function ph(e){var t=e.stateNode;t.pendingContext?Af(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Af(e,t.context,!1),zl(e,t.containerInfo)}var vo={dehydrated:null,retryLane:0};function gh(e,t,n){var o=t.pendingProps,a=Qe.current,h=!1,y;return(y=(t.flags&64)!==0)||(y=e!==null&&e.memoizedState===null?!1:(a&2)!==0),y?(h=!0,t.flags&=-65):e!==null&&e.memoizedState===null||o.fallback===void 0||o.unstable_avoidThisFallback===!0||(a|=1),Je(Qe,a&1),e===null?(o.fallback!==void 0&&Ul(t),e=o.children,a=o.fallback,h?(e=mh(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=vo,e):typeof o.unstable_expectedLoadTime=="number"?(e=mh(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=vo,t.lanes=33554432,e):(n=wa({mode:"visible",children:e},t.mode,n,null),n.return=t,t.child=n)):e.memoizedState!==null?h?(o=vh(e,t,o.children,o.fallback,n),h=t.child,a=e.child.memoizedState,h.memoizedState=a===null?{baseLanes:n}:{baseLanes:a.baseLanes|n},h.childLanes=e.childLanes&~n,t.memoizedState=vo,o):(n=yh(e,t,o.children,n),t.memoizedState=null,n):h?(o=vh(e,t,o.children,o.fallback,n),h=t.child,a=e.child.memoizedState,h.memoizedState=a===null?{baseLanes:n}:{baseLanes:a.baseLanes|n},h.childLanes=e.childLanes&~n,t.memoizedState=vo,o):(n=yh(e,t,o.children,n),t.memoizedState=null,n)}function mh(e,t,n,o){var a=e.mode,h=e.child;return t={mode:"hidden",children:t},(a&2)===0&&h!==null?(h.childLanes=0,h.pendingProps=t):h=wa(t,a,0,null),n=wr(n,a,o,null),h.return=e,n.return=e,h.sibling=n,e.child=h,n}function yh(e,t,n,o){var a=e.child;return e=a.sibling,n=kn(a,{mode:"visible",children:n}),(t.mode&2)===0&&(n.lanes=o),n.return=t,n.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function vh(e,t,n,o,a){var h=t.mode,y=e.child;e=y.sibling;var S={mode:"hidden",children:n};return(h&2)===0&&t.child!==y?(n=t.child,n.childLanes=0,n.pendingProps=S,y=n.lastEffect,y!==null?(t.firstEffect=n.firstEffect,t.lastEffect=y,y.nextEffect=null):t.firstEffect=t.lastEffect=null):n=kn(y,S),e!==null?o=kn(e,o):(o=wr(o,h,a,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,o}function wh(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),zf(e.return,t)}function Zl(e,t,n,o,a,h){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:a,lastEffect:h}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=o,y.tail=n,y.tailMode=a,y.lastEffect=h)}function Sh(e,t,n){var o=t.pendingProps,a=o.revealOrder,h=o.tail;if(Ct(e,t,o.children,n),o=Qe.current,(o&2)!==0)o=o&1|2,t.flags|=64;else{if(e!==null&&(e.flags&64)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wh(e,n);else if(e.tag===19)wh(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}o&=1}if(Je(Qe,o),(t.mode&2)===0)t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&co(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Zl(t,!1,a,n,h,t.lastEffect);break;case"backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&co(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Zl(t,!0,n,null,h,t.lastEffect);break;case"together":Zl(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Qt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),fs|=t.lanes,(n&t.childLanes)!==0){if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=kn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=kn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var xh,ea,Ch,kh;xh=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}},ea=function(){},Ch=function(e,t,n,o){var a=e.memoizedProps;if(a!==o){e=t.stateNode,zn(Bt.current);var h=null;switch(n){case"input":a=f(e,a),o=f(e,o),h=[];break;case"option":a=M(e,a),o=M(e,o),h=[];break;case"select":a=s({},a,{value:void 0}),o=s({},o,{value:void 0}),h=[];break;case"textarea":a=ee(e,a),o=ee(e,o),h=[];break;default:typeof a.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=Gs)}Tr(n,o);var y;n=null;for(D in a)if(!o.hasOwnProperty(D)&&a.hasOwnProperty(D)&&a[D]!=null)if(D==="style"){var S=a[D];for(y in S)S.hasOwnProperty(y)&&(n||(n={}),n[y]="")}else D!=="dangerouslySetInnerHTML"&&D!=="children"&&D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&D!=="autoFocus"&&(c.hasOwnProperty(D)?h||(h=[]):(h=h||[]).push(D,null));for(D in o){var j=o[D];if(S=a?.[D],o.hasOwnProperty(D)&&j!==S&&(j!=null||S!=null))if(D==="style")if(S){for(y in S)!S.hasOwnProperty(y)||j&&j.hasOwnProperty(y)||(n||(n={}),n[y]="");for(y in j)j.hasOwnProperty(y)&&S[y]!==j[y]&&(n||(n={}),n[y]=j[y])}else n||(h||(h=[]),h.push(D,n)),n=j;else D==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,S=S?S.__html:void 0,j!=null&&S!==j&&(h=h||[]).push(D,j)):D==="children"?typeof j!="string"&&typeof j!="number"||(h=h||[]).push(D,""+j):D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&(c.hasOwnProperty(D)?(j!=null&&D==="onScroll"&&Ve("scroll",e),h||S===j||(h=[])):typeof j=="object"&&j!==null&&j.$$typeof===q?j.toString():(h=h||[]).push(D,j))}n&&(h=h||[]).push("style",n);var D=h;(t.updateQueue=D)&&(t.flags|=4)}},kh=function(e,t,n,o){n!==o&&(t.flags|=4)};function cs(e,t){if(!qt)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 o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function my(e,t,n){var o=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 St(t.type)&&Xs(),null;case 3:return hr(),He(wt),He(ct),ql(),o=t.stateNode,o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(fo(t)?t.flags|=4:o.hydrate||(t.flags|=256)),ea(t),null;case 5:bl(t);var a=zn(rs.current);if(n=t.type,e!==null&&t.stateNode!=null)Ch(e,t,n,o,a),e.ref!==t.ref&&(t.flags|=128);else{if(!o){if(t.stateNode===null)throw Error(i(166));return null}if(e=zn(Bt.current),fo(t)){o=t.stateNode,n=t.type;var h=t.memoizedProps;switch(o[fn]=t,o[Qs]=h,n){case"dialog":Ve("cancel",o),Ve("close",o);break;case"iframe":case"object":case"embed":Ve("load",o);break;case"video":case"audio":for(e=0;e<Jr.length;e++)Ve(Jr[e],o);break;case"source":Ve("error",o);break;case"img":case"image":case"link":Ve("error",o),Ve("load",o);break;case"details":Ve("toggle",o);break;case"input":p(o,h),Ve("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!h.multiple},Ve("invalid",o);break;case"textarea":ue(o,h),Ve("invalid",o)}Tr(n,h),e=null;for(var y in h)h.hasOwnProperty(y)&&(a=h[y],y==="children"?typeof a=="string"?o.textContent!==a&&(e=["children",a]):typeof a=="number"&&o.textContent!==""+a&&(e=["children",""+a]):c.hasOwnProperty(y)&&a!=null&&y==="onScroll"&&Ve("scroll",o));switch(n){case"input":ot(o),E(o,h,!0);break;case"textarea":ot(o),Se(o);break;case"select":case"option":break;default:typeof h.onClick=="function"&&(o.onclick=Gs)}o=e,t.updateQueue=o,o!==null&&(t.flags|=4)}else{switch(y=a.nodeType===9?a:a.ownerDocument,e===_e.html&&(e=Ke(n)),e===_e.html?n==="script"?(e=y.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=y.createElement(n,{is:o.is}):(e=y.createElement(n),n==="select"&&(y=e,o.multiple?y.multiple=!0:o.size&&(y.size=o.size))):e=y.createElementNS(e,n),e[fn]=t,e[Qs]=o,xh(e,t,!1,!1),t.stateNode=e,y=Qn(n,o),n){case"dialog":Ve("cancel",e),Ve("close",e),a=o;break;case"iframe":case"object":case"embed":Ve("load",e),a=o;break;case"video":case"audio":for(a=0;a<Jr.length;a++)Ve(Jr[a],e);a=o;break;case"source":Ve("error",e),a=o;break;case"img":case"image":case"link":Ve("error",e),Ve("load",e),a=o;break;case"details":Ve("toggle",e),a=o;break;case"input":p(e,o),a=f(e,o),Ve("invalid",e);break;case"option":a=M(e,o);break;case"select":e._wrapperState={wasMultiple:!!o.multiple},a=s({},o,{value:void 0}),Ve("invalid",e);break;case"textarea":ue(e,o),a=ee(e,o),Ve("invalid",e);break;default:a=o}Tr(n,a);var S=a;for(h in S)if(S.hasOwnProperty(h)){var j=S[h];h==="style"?rt(e,j):h==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,j!=null&&nt(e,j)):h==="children"?typeof j=="string"?(n!=="textarea"||j!=="")&&Lt(e,j):typeof j=="number"&&Lt(e,""+j):h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&h!=="autoFocus"&&(c.hasOwnProperty(h)?j!=null&&h==="onScroll"&&Ve("scroll",e):j!=null&&ge(e,h,j,y))}switch(n){case"input":ot(e),E(e,o,!1);break;case"textarea":ot(e),Se(e);break;case"option":o.value!=null&&e.setAttribute("value",""+Fe(o.value));break;case"select":e.multiple=!!o.multiple,h=o.value,h!=null?Q(e,!!o.multiple,h,!1):o.defaultValue!=null&&Q(e,!!o.multiple,o.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=Gs)}kf(n,o)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)kh(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(i(166));n=zn(rs.current),zn(Bt.current),fo(t)?(o=t.stateNode,n=t.memoizedProps,o[fn]=t,o.nodeValue!==n&&(t.flags|=4)):(o=(n.nodeType===9?n:n.ownerDocument).createTextNode(o),o[fn]=t,t.stateNode=o)}return null;case 13:return He(Qe),o=t.memoizedState,(t.flags&64)!==0?(t.lanes=n,t):(o=o!==null,n=!1,e===null?t.memoizedProps.fallback!==void 0&&fo(t):n=e.memoizedState!==null,o&&!n&&(t.mode&2)!==0&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||(Qe.current&1)!==0?at===0&&(at=3):((at===0||at===3)&&(at=4),mt===null||(fs&134217727)===0&&(gr&134217727)===0||yr(mt,dt))),(o||n)&&(t.flags|=4),null);case 4:return hr(),ea(t),e===null&&vf(t.stateNode.containerInfo),null;case 10:return Il(t),null;case 17:return St(t.type)&&Xs(),null;case 19:if(He(Qe),o=t.memoizedState,o===null)return null;if(h=(t.flags&64)!==0,y=o.rendering,y===null)if(h)cs(o,!1);else{if(at!==0||e!==null&&(e.flags&64)!==0)for(e=t.child;e!==null;){if(y=co(e),y!==null){for(t.flags|=64,cs(o,!1),h=y.updateQueue,h!==null&&(t.updateQueue=h,t.flags|=4),o.lastEffect===null&&(t.firstEffect=null),t.lastEffect=o.lastEffect,o=n,n=t.child;n!==null;)h=n,e=o,h.flags&=2,h.nextEffect=null,h.firstEffect=null,h.lastEffect=null,y=h.alternate,y===null?(h.childLanes=0,h.lanes=e,h.child=null,h.memoizedProps=null,h.memoizedState=null,h.updateQueue=null,h.dependencies=null,h.stateNode=null):(h.childLanes=y.childLanes,h.lanes=y.lanes,h.child=y.child,h.memoizedProps=y.memoizedProps,h.memoizedState=y.memoizedState,h.updateQueue=y.updateQueue,h.type=y.type,e=y.dependencies,h.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Je(Qe,Qe.current&1|2),t.child}e=e.sibling}o.tail!==null&&ft()>fa&&(t.flags|=64,h=!0,cs(o,!1),t.lanes=33554432)}else{if(!h)if(e=co(y),e!==null){if(t.flags|=64,h=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),cs(o,!0),o.tail===null&&o.tailMode==="hidden"&&!y.alternate&&!qt)return t=t.lastEffect=o.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*ft()-o.renderingStartTime>fa&&n!==1073741824&&(t.flags|=64,h=!0,cs(o,!1),t.lanes=33554432);o.isBackwards?(y.sibling=t.child,t.child=y):(n=o.last,n!==null?n.sibling=y:t.child=y,o.last=y)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.lastEffect=t.lastEffect,o.renderingStartTime=ft(),n.sibling=null,t=Qe.current,Je(Qe,h?t&1|2:t&1),n):null;case 23:case 24:return ya(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&o.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(i(156,t.tag))}function yy(e){switch(e.tag){case 1:St(e.type)&&Xs();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(hr(),He(wt),He(ct),ql(),t=e.flags,(t&64)!==0)throw Error(i(285));return e.flags=t&-4097|64,e;case 5:return bl(e),null;case 13:return He(Qe),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return He(Qe),null;case 4:return hr(),null;case 10:return Il(e),null;case 23:case 24:return ya(),null;default:return null}}function ta(e,t){try{var n="",o=t;do n+=Me(o),o=o.return;while(o);var a=n}catch(h){a=`
|
|
7
|
+
Error generating stack: `+h.message+`
|
|
8
|
+
`+h.stack}return{value:e,source:t,stack:a}}function na(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var vy=typeof WeakMap=="function"?WeakMap:Map;function Ph(e,t,n){n=gn(-1,n),n.tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){xo||(xo=!0,ha=o),na(e,t)},n}function Eh(e,t,n){n=gn(-1,n),n.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var a=t.value;n.payload=function(){return na(e,t),o(a)}}var h=e.stateNode;return h!==null&&typeof h.componentDidCatch=="function"&&(n.callback=function(){typeof o!="function"&&(Ht===null?Ht=new Set([this]):Ht.add(this),na(e,t));var y=t.stack;this.componentDidCatch(t.value,{componentStack:y!==null?y:""})}),n}var wy=typeof WeakSet=="function"?WeakSet:Set;function $h(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){Cn(e,n)}else t.current=null}function Sy(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,o=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:Ft(t.type,n),o),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&$l(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(i(163))}function xy(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 o=e.create;e.destroy=o()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var a=e;o=a.next,a=a.tag,(a&4)!==0&&(a&1)!==0&&(Uh(n,e),Oy(n,e)),e=o}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(o=n.elementType===n.type?t.memoizedProps:Ft(n.type,t.memoizedProps),e.componentDidUpdate(o,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&Bf(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}Bf(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&kf(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&&Mc(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(i(163))}function jh(e,t){for(var n=e;;){if(n.tag===5){var o=n.stateNode;if(t)o=o.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{o=n.stateNode;var a=n.memoizedProps.style;a=a!=null&&a.hasOwnProperty("display")?a.display:null,o.style.display=vt("display",a)}}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 Ah(e,t){if(Dn&&typeof Dn.onCommitFiberUnmount=="function")try{Dn.onCommitFiberUnmount(Ol,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 o=n,a=o.destroy;if(o=o.tag,a!==void 0)if((o&4)!==0)Uh(t,n);else{o=t;try{a()}catch(h){Cn(o,h)}}n=n.next}while(n!==e)}break;case 1:if($h(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(h){Cn(t,h)}break;case 5:$h(t);break;case 4:Rh(e,t)}}function Oh(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 Th(e){return e.tag===5||e.tag===3||e.tag===4}function Nh(e){e:{for(var t=e.return;t!==null;){if(Th(t))break e;t=t.return}throw Error(i(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var o=!1;break;case 3:t=t.containerInfo,o=!0;break;case 4:t=t.containerInfo,o=!0;break;default:throw Error(i(161))}n.flags&16&&(Lt(t,""),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||Th(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}}o?ra(e,n,t):sa(e,n,t)}function ra(e,t,n){var o=e.tag,a=o===5||o===6;if(a)e=a?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=Gs));else if(o!==4&&(e=e.child,e!==null))for(ra(e,t,n),e=e.sibling;e!==null;)ra(e,t,n),e=e.sibling}function sa(e,t,n){var o=e.tag,a=o===5||o===6;if(a)e=a?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(sa(e,t,n),e=e.sibling;e!==null;)sa(e,t,n),e=e.sibling}function Rh(e,t){for(var n=t,o=!1,a,h;;){if(!o){o=n.return;e:for(;;){if(o===null)throw Error(i(160));switch(a=o.stateNode,o.tag){case 5:h=!1;break e;case 3:a=a.containerInfo,h=!0;break e;case 4:a=a.containerInfo,h=!0;break e}o=o.return}o=!0}if(n.tag===5||n.tag===6){e:for(var y=e,S=n,j=S;;)if(Ah(y,j),j.child!==null&&j.tag!==4)j.child.return=j,j=j.child;else{if(j===S)break e;for(;j.sibling===null;){if(j.return===null||j.return===S)break e;j=j.return}j.sibling.return=j.return,j=j.sibling}h?(y=a,S=n.stateNode,y.nodeType===8?y.parentNode.removeChild(S):y.removeChild(S)):a.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){a=n.stateNode.containerInfo,h=!0,n.child.return=n,n=n.child;continue}}else if(Ah(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&&(o=!1)}n.sibling.return=n.return,n=n.sibling}}function oa(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 o=n=n.next;do(o.tag&3)===3&&(e=o.destroy,o.destroy=void 0,e!==void 0&&e()),o=o.next;while(o!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){o=t.memoizedProps;var a=e!==null?e.memoizedProps:o;e=t.type;var h=t.updateQueue;if(t.updateQueue=null,h!==null){for(n[Qs]=o,e==="input"&&o.type==="radio"&&o.name!=null&&m(n,o),Qn(e,a),t=Qn(e,o),a=0;a<h.length;a+=2){var y=h[a],S=h[a+1];y==="style"?rt(n,S):y==="dangerouslySetInnerHTML"?nt(n,S):y==="children"?Lt(n,S):ge(n,y,S,t)}switch(e){case"input":x(n,o);break;case"textarea":K(n,o);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!o.multiple,h=o.value,h!=null?Q(n,!!o.multiple,h,!1):e!==!!o.multiple&&(o.defaultValue!=null?Q(n,!!o.multiple,o.defaultValue,!0):Q(n,!!o.multiple,o.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(i(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,Mc(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(ca=ft(),jh(t.child,!0)),_h(t);return;case 19:_h(t);return;case 17:return;case 23:case 24:jh(t,t.memoizedState!==null);return}throw Error(i(163))}function _h(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new wy),t.forEach(function(o){var a=Ry.bind(null,e,o);n.has(o)||(n.add(o),o.then(a,a))})}}function Cy(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var ky=Math.ceil,wo=ne.ReactCurrentDispatcher,ia=ne.ReactCurrentOwner,Ce=0,mt=null,et=null,dt=0,Bn=0,la=hn(0),at=0,So=null,pr=0,fs=0,gr=0,aa=0,ua=null,ca=0,fa=1/0;function mr(){fa=ft()+500}var ce=null,xo=!1,ha=null,Ht=null,vn=!1,hs=null,ds=90,da=[],pa=[],Yt=null,ps=0,ga=null,Co=-1,Xt=0,ko=0,gs=null,Po=!1;function Et(){return(Ce&48)!==0?ft():Co!==-1?Co:Co=ft()}function wn(e){if(e=e.mode,(e&2)===0)return 1;if((e&4)===0)return ur()===99?1:2;if(Xt===0&&(Xt=pr),cy.transition!==0){ko!==0&&(ko=ua!==null?ua.pendingLanes:0),e=Xt;var t=4186112&~ko;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=ur(),(Ce&4)!==0&&e===98?e=zs(12,Xt):(e=hm(e),e=zs(e,Xt)),e}function Sn(e,t,n){if(50<ps)throw ps=0,ga=null,Error(i(185));if(e=Eo(e,t),e===null)return null;bs(e,t,n),e===mt&&(gr|=t,at===4&&yr(e,dt));var o=ur();t===1?(Ce&8)!==0&&(Ce&48)===0?ma(e):(Tt(e,n),Ce===0&&(mr(),Ut())):((Ce&4)===0||o!==98&&o!==99||(Yt===null?Yt=new Set([e]):Yt.add(e)),Tt(e,n)),ua=e}function Eo(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 Tt(e,t){for(var n=e.callbackNode,o=e.suspendedLanes,a=e.pingedLanes,h=e.expirationTimes,y=e.pendingLanes;0<y;){var S=31-un(y),j=1<<S,D=h[S];if(D===-1){if((j&o)===0||(j&a)!==0){D=t,Xn(j);var le=qe;h[S]=10<=le?D+250:6<=le?D+5e3:-1}}else D<=t&&(e.expiredLanes|=j);y&=~j}if(o=Ur(e,e===mt?dt:0),t=qe,o===0)n!==null&&(n!==_l&&Nl(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==_l&&Nl(n)}t===15?(n=ma.bind(null,e),Gt===null?(Gt=[n],to=Tl(eo,Mf)):Gt.push(n),n=_l):t===14?n=Xr(99,ma.bind(null,e)):(n=dm(t),n=Xr(n,Lh.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function Lh(e){if(Co=-1,ko=Xt=0,(Ce&48)!==0)throw Error(i(327));var t=e.callbackNode;if(xn()&&e.callbackNode!==t)return null;var n=Ur(e,e===mt?dt:0);if(n===0)return null;var o=n,a=Ce;Ce|=16;var h=Mh();(mt!==e||dt!==o)&&(mr(),vr(e,o));do try{$y();break}catch(S){Dh(e,S)}while(!0);if(Fl(),wo.current=h,Ce=a,et!==null?o=0:(mt=null,dt=0,o=at),(pr&gr)!==0)vr(e,0);else if(o!==0){if(o===2&&(Ce|=64,e.hydrate&&(e.hydrate=!1,$l(e.containerInfo)),n=Hc(e),n!==0&&(o=ms(e,n))),o===1)throw t=So,vr(e,0),yr(e,n),Tt(e,ft()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,o){case 0:case 1:throw Error(i(345));case 2:qn(e);break;case 3:if(yr(e,n),(n&62914560)===n&&(o=ca+500-ft(),10<o)){if(Ur(e,0)!==0)break;if(a=e.suspendedLanes,(a&n)!==n){Et(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Pf(qn.bind(null,e),o);break}qn(e);break;case 4:if(yr(e,n),(n&4186112)===n)break;for(o=e.eventTimes,a=-1;0<n;){var y=31-un(n);h=1<<y,y=o[y],y>a&&(a=y),n&=~h}if(n=a,n=ft()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*ky(n/1960))-n,10<n){e.timeoutHandle=Pf(qn.bind(null,e),n);break}qn(e);break;case 5:qn(e);break;default:throw Error(i(329))}}return Tt(e,ft()),e.callbackNode===t?Lh.bind(null,e):null}function yr(e,t){for(t&=~aa,t&=~gr,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-un(t),o=1<<n;e[n]=-1,t&=~o}}function ma(e){if((Ce&48)!==0)throw Error(i(327));if(xn(),e===mt&&(e.expiredLanes&dt)!==0){var t=dt,n=ms(e,t);(pr&gr)!==0&&(t=Ur(e,t),n=ms(e,t))}else t=Ur(e,0),n=ms(e,t);if(e.tag!==0&&n===2&&(Ce|=64,e.hydrate&&(e.hydrate=!1,$l(e.containerInfo)),t=Hc(e),t!==0&&(n=ms(e,t))),n===1)throw n=So,vr(e,0),yr(e,t),Tt(e,ft()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,qn(e),Tt(e,ft()),null}function Py(){if(Yt!==null){var e=Yt;Yt=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Tt(t,ft())})}Ut()}function Fh(e,t){var n=Ce;Ce|=1;try{return e(t)}finally{Ce=n,Ce===0&&(mr(),Ut())}}function Ih(e,t){var n=Ce;Ce&=-2,Ce|=8;try{return e(t)}finally{Ce=n,Ce===0&&(mr(),Ut())}}function $o(e,t){Je(la,Bn),Bn|=t,pr|=t}function ya(){Bn=la.current,He(la)}function vr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,sy(n)),et!==null)for(n=et.return;n!==null;){var o=n;switch(o.tag){case 1:o=o.type.childContextTypes,o!=null&&Xs();break;case 3:hr(),He(wt),He(ct),ql();break;case 5:bl(o);break;case 4:hr();break;case 13:He(Qe);break;case 19:He(Qe);break;case 10:Il(o);break;case 23:case 24:ya()}n=n.return}mt=e,et=kn(e.current,null),dt=Bn=pr=t,at=0,So=null,aa=gr=fs=0}function Dh(e,t){do{var n=et;try{if(Fl(),ss.current=yo,ho){for(var o=Ye.memoizedState;o!==null;){var a=o.queue;a!==null&&(a.pending=null),o=o.next}ho=!1}if(os=0,lt=ht=Ye=null,is=!1,ia.current=null,n===null||n.return===null){at=1,So=t,et=null;break}e:{var h=e,y=n.return,S=n,j=t;if(t=dt,S.flags|=2048,S.firstEffect=S.lastEffect=null,j!==null&&typeof j=="object"&&typeof j.then=="function"){var D=j;if((S.mode&2)===0){var le=S.alternate;le?(S.updateQueue=le.updateQueue,S.memoizedState=le.memoizedState,S.lanes=le.lanes):(S.updateQueue=null,S.memoizedState=null)}var Pe=(Qe.current&1)!==0,X=y;do{var ye;if(ye=X.tag===13){var ke=X.memoizedState;if(ke!==null)ye=ke.dehydrated!==null;else{var xe=X.memoizedProps;ye=xe.fallback===void 0?!1:xe.unstable_avoidThisFallback!==!0?!0:!Pe}}if(ye){var _=X.updateQueue;if(_===null){var A=new Set;A.add(D),X.updateQueue=A}else _.add(D);if((X.mode&2)===0){if(X.flags|=64,S.flags|=16384,S.flags&=-2981,S.tag===1)if(S.alternate===null)S.tag=17;else{var R=gn(-1,1);R.tag=2,mn(S,R)}S.lanes|=1;break e}j=void 0,S=t;var H=h.pingCache;if(H===null?(H=h.pingCache=new vy,j=new Set,H.set(D,j)):(j=H.get(D),j===void 0&&(j=new Set,H.set(D,j))),!j.has(S)){j.add(S);var G=Ny.bind(null,h,D,S);D.then(G,G)}X.flags|=4096,X.lanes=t;break e}X=X.return}while(X!==null);j=Error((Be(S.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
|
|
41
9
|
|
|
42
|
-
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}fe!==5&&(fe=2),a=vl(a,l),c=i;do{switch(c.tag){case 3:o=a,c.flags|=4096,t&=-t,c.lanes|=t;var $=hf(c,o,t);Ac(c,$);break e;case 1:o=a;var C=c.type,P=c.stateNode;if(!(c.flags&64)&&(typeof C.getDerivedStateFromError=="function"||P!==null&&typeof P.componentDidCatch=="function"&&(Ze===null||!Ze.has(P)))){c.flags|=4096,t&=-t,c.lanes|=t;var T=df(c,o,t);Ac(c,T);break e}}c=c.return}while(c!==null)}Af(n)}catch(N){t=N,oe===n&&n!==null&&(oe=n=n.return);continue}break}while(!0)}function Ef(){var e=Xs.current;return Xs.current=Js,e===null?Js:e}function Mr(e,t){var n=I;I|=16;var r=Ef();Ce===e&&ve===t||Ln(e,t);do try{Dg();break}catch(s){Pf(e,s)}while(!0);if(Xi(),I=n,Xs.current=r,oe!==null)throw Error(j(261));return Ce=null,ve=0,fe}function Dg(){for(;oe!==null;)jf(oe)}function bg(){for(;oe!==null&&!xg();)jf(oe)}function jf(e){var t=Nf(e.alternate,e,qt);e.memoizedProps=e.pendingProps,t===null?Af(e):oe=t,$l.current=null}function Af(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&2048){if(n=Ng(t),n!==null){n.flags&=2047,oe=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(n=Og(n,t,qt),n!==null){oe=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||qt&1073741824||!(n.mode&4)){for(var r=0,s=n.child;s!==null;)r|=s.lanes|s.childLanes,s=s.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);fe===0&&(fe=5)}function Gt(e){var t=$n();return Vt(99,Ug.bind(null,e,t)),null}function Ug(e,t){do Tt();while(Rr!==null);if(I&48)throw Error(j(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(j(177));e.callbackNode=null;var r=n.lanes|n.childLanes,s=r,o=e.pendingLanes&~s;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=s,e.mutableReadLanes&=s,e.entangledLanes&=s,s=e.entanglements;for(var i=e.eventTimes,l=e.expirationTimes;0<o;){var a=31-yt(o),u=1<<a;s[a]=0,i[a]=-1,l[a]=-1,o&=~u}if(ut!==null&&!(r&24)&&ut.has(e)&&ut.delete(e),e===Ce&&(oe=Ce=null,ve=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,r!==null){if(s=I,I|=32,$l.current=null,bi=xs,i=Zu(),Ii(i)){if("selectionStart"in i)l={start:i.selectionStart,end:i.selectionEnd};else e:if(l=(l=i.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&u.rangeCount!==0){l=u.anchorNode,o=u.anchorOffset,a=u.focusNode,u=u.focusOffset;try{l.nodeType,a.nodeType}catch{l=null;break e}var f=0,h=-1,c=-1,m=0,v=0,w=i,d=null;t:for(;;){for(var p;w!==l||o!==0&&w.nodeType!==3||(h=f+o),w!==a||u!==0&&w.nodeType!==3||(c=f+u),w.nodeType===3&&(f+=w.nodeValue.length),(p=w.firstChild)!==null;)d=w,w=p;for(;;){if(w===i)break t;if(d===l&&++m===o&&(h=f),d===a&&++v===u&&(c=f),(p=w.nextSibling)!==null)break;w=d,d=w.parentNode}w=p}l=h===-1||c===-1?null:{start:h,end:c}}else l=null;l=l||{start:0,end:0}}else l=null;Ui={focusedElem:i,selectionRange:l},xs=!1,zr=null,ro=!1,R=r;do try{Bg()}catch(N){if(R===null)throw Error(j(330));Ot(R,N),R=R.nextEffect}while(R!==null);zr=null,R=r;do try{for(i=e;R!==null;){var g=R.flags;if(g&16&&Zn(R.stateNode,""),g&128){var S=R.alternate;if(S!==null){var y=S.ref;y!==null&&(typeof y=="function"?y(null):y.current=null)}}switch(g&1038){case 2:wf(R),R.flags&=-3;break;case 6:wf(R),R.flags&=-3,Cl(R.alternate,R);break;case 1024:R.flags&=-1025;break;case 1028:R.flags&=-1025,Cl(R.alternate,R);break;case 4:Cl(R.alternate,R);break;case 8:l=R,Sf(i,l);var $=l.alternate;yf(l),$!==null&&yf($)}R=R.nextEffect}}catch(N){if(R===null)throw Error(j(330));Ot(R,N),R=R.nextEffect}while(R!==null);if(y=Ui,S=Zu(),g=y.focusedElem,i=y.selectionRange,S!==g&&g&&g.ownerDocument&&Xu(g.ownerDocument.documentElement,g)){for(i!==null&&Ii(g)&&(S=i.start,y=i.end,y===void 0&&(y=S),"selectionStart"in g?(g.selectionStart=S,g.selectionEnd=Math.min(y,g.value.length)):(y=(S=g.ownerDocument||document)&&S.defaultView||window,y.getSelection&&(y=y.getSelection(),l=g.textContent.length,$=Math.min(i.start,l),i=i.end===void 0?$:Math.min(i.end,l),!y.extend&&$>i&&(l=i,i=$,$=l),l=Yu(g,$),o=Yu(g,i),l&&o&&(y.rangeCount!==1||y.anchorNode!==l.node||y.anchorOffset!==l.offset||y.focusNode!==o.node||y.focusOffset!==o.offset)&&(S=S.createRange(),S.setStart(l.node,l.offset),y.removeAllRanges(),$>i?(y.addRange(S),y.extend(o.node,o.offset)):(S.setEnd(o.node,o.offset),y.addRange(S)))))),S=[],y=g;y=y.parentNode;)y.nodeType===1&&S.push({element:y,left:y.scrollLeft,top:y.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<S.length;g++)y=S[g],y.element.scrollLeft=y.left,y.element.scrollTop=y.top}xs=!!bi,Ui=bi=null,e.current=n,R=r;do try{for(g=e;R!==null;){var C=R.flags;if(C&36&&Fg(g,R.alternate,R),C&128){S=void 0;var P=R.ref;if(P!==null){var T=R.stateNode;switch(R.tag){case 5:S=T;break;default:S=T}typeof P=="function"?P(S):P.current=S}}R=R.nextEffect}}catch(N){if(R===null)throw Error(j(330));Ot(R,N),R=R.nextEffect}while(R!==null);R=null,$g(),I=s}else e.current=n;if(Et)Et=!1,Rr=e,Fr=t;else for(R=r;R!==null;)t=R.nextEffect,R.nextEffect=null,R.flags&8&&(C=R,C.sibling=null,C.stateNode=null),R=t;if(r=e.pendingLanes,r===0&&(Ze=null),r===1?e===Ll?Ir++:(Ir=0,Ll=e):Ir=0,n=n.stateNode,Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(Ki,n,void 0,(n.current.flags&64)===64)}catch{}if(Me(e,me()),eo)throw eo=!1,e=Tl,Tl=null,e;return I&8||Qe(),null}function Bg(){for(;R!==null;){var e=R.alternate;ro||zr===null||(R.flags&8?wu(R,zr)&&(ro=!0):R.tag===13&&Ig(e,R)&&wu(R,zr)&&(ro=!0));var t=R.flags;t&256&&Rg(e,R),!(t&512)||Et||(Et=!0,Sr(97,function(){return Tt(),null})),R=R.nextEffect}}function Tt(){if(Fr!==90){var e=97<Fr?97:Fr;return Fr=90,Vt(e,Hg)}return!1}function Vg(e,t){Ol.push(t,e),Et||(Et=!0,Sr(97,function(){return Tt(),null}))}function Tf(e,t){Nl.push(t,e),Et||(Et=!0,Sr(97,function(){return Tt(),null}))}function Hg(){if(Rr===null)return!1;var e=Rr;if(Rr=null,I&48)throw Error(j(331));var t=I;I|=32;var n=Nl;Nl=[];for(var r=0;r<n.length;r+=2){var s=n[r],o=n[r+1],i=s.destroy;if(s.destroy=void 0,typeof i=="function")try{i()}catch(a){if(o===null)throw Error(j(330));Ot(o,a)}}for(n=Ol,Ol=[],r=0;r<n.length;r+=2){s=n[r],o=n[r+1];try{var l=s.create;s.destroy=l()}catch(a){if(o===null)throw Error(j(330));Ot(o,a)}}for(l=e.current.firstEffect;l!==null;)e=l.nextEffect,l.nextEffect=null,l.flags&8&&(l.sibling=null,l.stateNode=null),l=e;return I=t,Qe(),!0}function Of(e,t,n){t=vl(n,t),t=hf(e,t,1),kt(e,t),t=Oe(),e=so(e,1),e!==null&&(Ss(e,1,t),Me(e,t))}function Ot(e,t){if(e.tag===3)Of(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){Of(n,e,t);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ze===null||!Ze.has(r))){e=vl(t,e);var s=df(n,e,1);if(kt(n,s),s=Oe(),n=so(n,1),n!==null)Ss(n,1,s),Me(n,s);else if(typeof r.componentDidCatch=="function"&&(Ze===null||!Ze.has(r)))try{r.componentDidCatch(t,e)}catch{}break}}n=n.return}}function Wg(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Oe(),e.pingedLanes|=e.suspendedLanes&n,Ce===e&&(ve&n)===n&&(fe===4||fe===3&&(ve&62914560)===ve&&500>me()-jl?Ln(e,0):Pl|=n),Me(e,t)}function Kg(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(ct===0&&(ct=An),t=dn(62914560&~ct),t===0&&(t=4194304)):t=$n()===99?1:2:t=1),n=Oe(),e=so(e,t),e!==null&&(Ss(e,t,n),Me(e,n))}var Nf;Nf=function(e,t,n){var r=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||ke.current)He=!0;else if(n&r)He=!!(e.flags&16384);else{switch(He=!1,t.tag){case 3:tf(t),ol();break;case 5:Ic(t);break;case 1:Pe(t.type)&&_s(t);break;case 4:nl(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var s=t.type._context;X(Is,s._currentValue),s._currentValue=r;break;case 13:if(t.memoizedState!==null)return n&t.child.childLanes?nf(e,t,n):(X(Z,Z.current&1),t=at(e,t,n),t!==null?t.sibling:null);X(Z,Z.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&64){if(r)return af(e,t,n);t.flags|=64}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),X(Z,Z.current),r)break;return null;case 23:case 24:return t.lanes=0,dl(e,t,n)}return at(e,t,n)}else He=!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,s=Cn(t,ge.current),Pn(t,n),s=al(null,t,r,e,s,n),t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pe(r)){var o=!0;_s(t)}else o=!1;t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,el(t);var i=r.getDerivedStateFromProps;typeof i=="function"&&Ds(t,r,i,e),s.updater=bs,t.stateNode=s,s._reactInternals=t,tl(t,r,e,n),t=gl(null,t,r,!0,o,n)}else t.tag=0,je(null,t,s,n),t=t.child;return t;case 16:s=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=s._init,s=o(s._payload),t.type=s,o=t.tag=Gg(s),e=Ve(s,e),o){case 0:t=pl(null,t,s,e,n);break e;case 1:t=ef(null,t,s,e,n);break e;case 11:t=Jc(null,t,s,e,n);break e;case 14:t=Yc(null,t,s,Ve(s.type,e),r,n);break e}throw Error(j(306,s,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Ve(r,s),pl(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Ve(r,s),ef(e,t,r,s,n);case 3:if(tf(t),r=t.updateQueue,e===null||r===null)throw Error(j(282));if(r=t.pendingProps,s=t.memoizedState,s=s!==null?s.element:null,jc(e,t),xr(t,r,null,n),r=t.memoizedState.element,r===s)ol(),t=at(e,t,n);else{if(s=t.stateNode,(o=s.hydrate)&&(Pt=vn(t.stateNode.containerInfo.firstChild),lt=t,o=Ye=!0),o){if(e=s.mutableSourceEagerHydrationData,e!=null)for(s=0;s<e.length;s+=2)o=e[s],o._workInProgressVersionPrimary=e[s+1],jn.push(o);for(n=Fc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else je(e,t,r,n),ol();t=t.child}return t;case 5:return Ic(t),e===null&&sl(t),r=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,i=s.children,Bi(r,s)?i=null:o!==null&&Bi(r,o)&&(t.flags|=16),Zc(e,t),je(e,t,i,n),t.child;case 6:return e===null&&sl(t),null;case 13:return nf(e,t,n);case 4:return nl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Vs(t,null,r,n):je(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Ve(r,s),Jc(e,t,r,s,n);case 7:return je(e,t,t.pendingProps,n),t.child;case 8:return je(e,t,t.pendingProps.children,n),t.child;case 12:return je(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value;var l=t.type._context;if(X(Is,l._currentValue),l._currentValue=o,i!==null)if(l=i.value,o=Fe(l,o)?0:(typeof r._calculateChangedBits=="function"?r._calculateChangedBits(l,o):1073741823)|0,o===0){if(i.children===s.children&&!ke.current){t=at(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var a=l.dependencies;if(a!==null){i=l.child;for(var u=a.firstContext;u!==null;){if(u.context===r&&u.observedBits&o){l.tag===1&&(u=$t(-1,n&-n),u.tag=2,kt(l,u)),l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),Ec(l.return,n),a.lanes|=n;break}u=u.next}}else i=l.tag===10&&l.type===t.type?null:l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}je(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,o=t.pendingProps,r=o.children,Pn(t,n),s=Ie(s,o.unstable_observedBits),r=r(s),t.flags|=1,je(e,t,r,n),t.child;case 14:return s=t.type,o=Ve(s,t.pendingProps),o=Ve(s.type,o),Yc(e,t,s,o,r,n);case 15:return Xc(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Ve(r,s),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Pe(r)?(e=!0,_s(t)):e=!1,Pn(t,n),Lc(t,r,s),tl(t,r,s,n),gl(null,t,r,!0,e,n);case 19:return af(e,t,n);case 23:return dl(e,t,n);case 24:return dl(e,t,n)}throw Error(j(156,t.tag))};function qg(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 De(e,t,n,r){return new qg(e,t,n,r)}function Fl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Gg(e){if(typeof e=="function")return Fl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ls)return 11;if(e===us)return 14}return 2}function Nt(e,t){var n=e.alternate;return n===null?(n=De(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 io(e,t,n,r,s,o){var i=2;if(r=e,typeof e=="function")Fl(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case ht:return _n(n.children,s,o,t);case Ya:i=8,s|=16;break;case Wo:i=8,s|=1;break;case Qn:return e=De(12,n,t,s|8),e.elementType=Qn,e.type=Qn,e.lanes=o,e;case Jn:return e=De(13,n,t,s),e.type=Jn,e.elementType=Jn,e.lanes=o,e;case as:return e=De(19,n,t,s),e.elementType=as,e.lanes=o,e;case Yo:return Il(n,s,o,t);case Xo:return e=De(24,n,t,s),e.elementType=Xo,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ko:i=10;break e;case qo:i=9;break e;case ls:i=11;break e;case us:i=14;break e;case Go:i=16,r=null;break e;case Qo:i=22;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=De(i,n,t,s),t.elementType=e,t.type=r,t.lanes=o,t}function _n(e,t,n,r){return e=De(7,e,r,t),e.lanes=n,e}function Il(e,t,n,r){return e=De(23,e,r,t),e.elementType=Yo,e.lanes=n,e}function zl(e,t,n){return e=De(6,e,null,t),e.lanes=n,e}function Ml(e,t,n){return t=De(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Qg(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=ki(0),this.expirationTimes=ki(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ki(0),this.mutableSourceEagerHydrationData=null}function Jg(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:zt,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function lo(e,t,n,r){var s=t.current,o=Oe(),i=jt(s);e:if(n){n=n._reactInternals;t:{if(Dt(n)!==n||n.tag!==1)throw Error(j(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(Pe(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(l!==null);throw Error(j(171))}if(n.tag===1){var a=n.type;if(Pe(a)){n=mc(n,a,l);break e}}n=l}else n=xt;return t.context===null?t.context=n:t.pendingContext=n,t=$t(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),kt(s,t),At(s,i,o),i}function Dl(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 Lf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function bl(e,t){Lf(e,t),(e=e.alternate)&&Lf(e,t)}function Yg(){return null}function Ul(e,t,n){var r=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new Qg(e,t,n!=null&&n.hydrate===!0),t=De(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,el(t),e[wn]=n.current,oc(e.nodeType===8?e.parentNode:e),r)for(e=0;e<r.length;e++){t=r[e];var s=t._getVersion;s=s(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,s]:n.mutableSourceEagerHydrationData.push(t,s)}this._internalRoot=n}Ul.prototype.render=function(e){lo(e,this._internalRoot,null,null)},Ul.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;lo(null,e,null,function(){t[wn]=null})};function Dr(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Xg(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 Ul(e,0,t?{hydrate:!0}:void 0)}function ao(e,t,n,r,s){var o=n._reactRootContainer;if(o){var i=o._internalRoot;if(typeof s=="function"){var l=s;s=function(){var u=Dl(i);l.call(u)}}lo(t,i,e,s)}else{if(o=n._reactRootContainer=Xg(n,r),i=o._internalRoot,typeof s=="function"){var a=s;s=function(){var u=Dl(i);a.call(u)}}kf(function(){lo(t,i,e,s)})}return Dl(i)}Su=function(e){if(e.tag===13){var t=Oe();At(e,4,t),bl(e,4)}},vi=function(e){if(e.tag===13){var t=Oe();At(e,67108864,t),bl(e,67108864)}},xu=function(e){if(e.tag===13){var t=Oe(),n=jt(e);At(e,n,t),bl(e,n)}},Cu=function(e,t){return t()},fi=function(e,t,n){switch(t){case"input":if(ni(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 s=Ns(r);if(!s)throw Error(j(90));eu(r),ni(r,s)}}}break;case"textarea":ou(e,n);break;case"select":t=n.value,t!=null&&an(e,!!n.multiple,t,!1)}},hi=$f,pu=function(e,t,n,r,s){var o=I;I|=4;try{return Vt(98,e.bind(null,t,n,r,s))}finally{I=o,I===0&&(On(),Qe())}},di=function(){!(I&49)&&(Mg(),Tt())},gu=function(e,t){var n=I;I|=2;try{return e(t)}finally{I=n,I===0&&(On(),Qe())}};function _f(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Dr(t))throw Error(j(200));return Jg(e,t,null,n)}var Zg={Events:[wr,Sn,Ns,hu,du,Tt,{current:!1}]},br={findFiberByHostInstance:bt,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},em={bundleType:br.bundleType,version:br.version,rendererPackageName:br.rendererPackageName,rendererConfig:br.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:It.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=vu(e),e===null?null:e.stateNode},findFiberByHostInstance:br.findFiberByHostInstance||Yg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var uo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uo.isDisabled&&uo.supportsFiber)try{Ki=uo.inject(em),Bt=uo}catch{}}Re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zg,Re.createPortal=_f,Re.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(j(188)):Error(j(268,Object.keys(e)));return e=vu(t),e=e===null?null:e.stateNode,e},Re.flushSync=function(e,t){var n=I;if(n&48)return e(t);I|=1;try{if(e)return Vt(99,e.bind(null,t))}finally{I=n,Qe()}},Re.hydrate=function(e,t,n){if(!Dr(t))throw Error(j(200));return ao(null,e,t,!0,n)},Re.render=function(e,t,n){if(!Dr(t))throw Error(j(200));return ao(null,e,t,!1,n)},Re.unmountComponentAtNode=function(e){if(!Dr(e))throw Error(j(40));return e._reactRootContainer?(kf(function(){ao(null,null,e,!1,function(){e._reactRootContainer=null,e[wn]=null})}),!0):!1},Re.unstable_batchedUpdates=$f,Re.unstable_createPortal=function(e,t){return _f(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},Re.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Dr(n))throw Error(j(200));if(e==null||e._reactInternals===void 0)throw Error(j(38));return ao(e,t,n,!1,r)},Re.version="17.0.2";function Rf(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Rf)}catch(e){console.error(e)}}Rf(),Ha.exports=Re;var Bl=Ha.exports;const tm=Fo(Bl),we=ft.createContext({posts:[],authors:[],tags:[],action:"",lastPage:"",page:"",pageData:{},dispatch:(e,t)=>{},searchIndex:null,indexComplete:!1,searchValue:"",t:()=>{},dir:"ltr"});class nm extends D.Component{constructor(){super(...arguments);_o(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.iframeHtml.setAttribute("dir",this.props.searchdir),this.iframeHead=this.node.contentDocument.head,this.iframeRoot=this.node.contentDocument.body,this.forceUpdate())}render(){const{children:n,head:r,title:s="",style:o={},...i}=this.props;return A.jsxs("iframe",{srcDoc:"<!DOCTYPE html>",...i,ref:l=>this.node=l,title:s,style:o,frameBorder:"0",children:[this.iframeHead&&Bl.createPortal(r,this.iframeHead),this.iframeRoot&&Bl.createPortal(n,this.iframeRoot)]})}}const rm=e=>D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:16,width:16,viewBox:"0 0 16 16",...e},D.createElement("title",null,"circle anim"),D.createElement("g",{fill:"#40413F",className:"nc-icon-wrapper"},D.createElement("g",{className:"nc-loop-circle-16-icon-f"},D.createElement("path",{d:"M8 16a8 8 0 1 1 8-8 8.009 8.009 0 0 1-8 8zM8 2a6 6 0 1 0 6 6 6.006 6.006 0 0 0-6-6z",fill:"#D4D4D4"}),D.createElement("path",{d:"M8 0v2a6.006 6.006 0 0 1 6 6h2a8.009 8.009 0 0 0-8-8z","data-color":"color-2"})),D.createElement("style",null,".nc-loop-circle-16-icon-f{--animation-duration:0.5s;transform-origin:8px 8px;animation:nc-loop-circle-anim var(--animation-duration) infinite linear}@keyframes nc-loop-circle-anim{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}"))),sm=e=>D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:16,width:16,...e},D.createElement("path",{strokeLinecap:"round",strokeWidth:.4,fill:"currentColor",stroke:"#000000",strokeLinejoin:"round",d:"M.44,21.44a1.49,1.49,0,0,0,0,2.12,1.5,1.5,0,0,0,2.12,0l9.26-9.26a.25.25,0,0,1,.36,0l9.26,9.26a1.5,1.5,0,0,0,2.12,0,1.49,1.49,0,0,0,0-2.12L14.3,12.18a.25.25,0,0,1,0-.36l9.26-9.26A1.5,1.5,0,0,0,21.44.44L12.18,9.7a.25.25,0,0,1-.36,0L2.56.44A1.5,1.5,0,0,0,.44,2.56L9.7,11.82a.25.25,0,0,1,0,.36Z"})),om=e=>D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:16,width:16,...e},D.createElement("path",{d:"M23.38,21.62l-6.53-6.53a9.15,9.15,0,0,0,1.9-5.59,9.27,9.27,0,1,0-3.66,7.36l6.53,6.53a1.26,1.26,0,0,0,1.76,0A1.25,1.25,0,0,0,23.38,21.62ZM2.75,9.5A6.75,6.75,0,1,1,9.5,16.25,6.76,6.76,0,0,1,2.75,9.5Z",fill:"currentColor"})),Ff=10,im=10,lm=()=>({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"}}});class If extends ft.Component{componentDidMount(){this.sendContainerHeightChangeEvent()}sendContainerHeightChangeEvent(){}componentDidUpdate(){this.sendContainerHeightChangeEvent()}handlePopupClose(t){t.preventDefault(),t.target===t.currentTarget&&this.context.dispatch("update",{showPopup:!1})}render(){return A.jsx(Pm,{})}}_o(If,"contextType",we);function am(){const{searchValue:e,dispatch:t,inputRef:n,t:r}=D.useContext(we),s=D.useRef(null);D.useEffect(()=>{setTimeout(()=>{var a;(a=n==null?void 0:n.current)==null||a.focus()},150);let i=a=>{a.key==="Escape"&&t("update",{showPopup:!1})};const l=s==null?void 0:s.current;return l==null||l.ownerDocument.removeEventListener("keyup",i),l==null||l.ownerDocument.addEventListener("keyup",i),()=>{l==null||l.ownerDocument.removeEventListener("keyup",i)}},[t,n]);let o="z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-t-lg shadow";return e||(o="z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-lg"),A.jsxs("div",{className:o,ref:s,children:[A.jsx("div",{className:"flex items-center justify-center w-4 h-4 me-3",children:A.jsx(um,{})}),A.jsx("input",{ref:n,value:e||"",onChange:i=>{t("update",{searchValue:i.target.value})},onKeyDown:i=>{(i.key==="ArrowUp"||i.key==="ArrowDown")&&i.preventDefault()},className:"grow -my-5 py-5 -ms-3 ps-3 text-[1.65rem] focus-visible:outline-none placeholder:text-gray-400 outline-none truncate",placeholder:r("Search posts, tags and authors")}),A.jsx(cm,{}),A.jsx(fm,{})]})}function um(){const{searchValue:e="",dispatch:t}=D.useContext(we);return e?A.jsx("button",{alt:"Clear",className:"-mb-[1px]",onClick:()=>{t("update",{searchValue:""})},children:A.jsx(sm,{className:"text-neutral-900 hover:text-neutral-500 h-[1.1rem] w-[1.1rem]"})}):A.jsx(om,{className:"text-neutral-900",alt:"Search"})}function cm(){const{indexComplete:e,searchValue:t}=D.useContext(we);return!e&&t?A.jsx(rm,{className:"shrink-0"}):null}function fm(){const{dispatch:e,t}=D.useContext(we);return A.jsx("button",{className:"ms-3 text-sm text-neutral-500 sm:hidden",alt:"Cancel",onClick:()=>{e("update",{showPopup:!1})},children:t("Cancel")})}function hm({tag:e,selectedResult:t,setSelectedResult:n}){const{name:r,url:s,id:o}=e;let i="flex items-center py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer";return o===t&&(i+=" bg-neutral-100"),A.jsxs("div",{className:i,onClick:()=>{s&&(window.location.href=s)},onMouseEnter:()=>{n(o)},children:[A.jsx("p",{className:"me-2 text-sm font-bold text-neutral-400",children:"#"}),A.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-900 truncate",children:r})]})}function dm({tags:e,selectedResult:t,setSelectedResult:n}){const{t:r}=D.useContext(we);if(!(e!=null&&e.length))return null;const s=e.map(o=>A.jsx(hm,{tag:o,selectedResult:t,setSelectedResult:n},o.name));return A.jsxs("div",{className:"border-t border-gray-200 py-3 px-4 sm:px-7",children:[A.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:r("Tags")}),s]})}function pm({post:e,selectedResult:t,setSelectedResult:n}){const{searchValue:r}=D.useContext(we),{title:s,excerpt:o,url:i,id:l}=e;let a="py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer";return l===t&&(a+=" bg-neutral-100"),A.jsxs("div",{className:a,onClick:()=>{i&&(window.location.href=i)},onMouseEnter:()=>{n(l)},children:[A.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-800",children:A.jsx(Mf,{text:s,highlight:r,isExcerpt:!1})}),A.jsx("p",{className:"text-neutral-400 leading-normal text-sm mt-0 mb-0 truncate",children:A.jsx(Mf,{text:o,highlight:r,isExcerpt:!0})})]})}function gm({text:e,highlight:t}){let n="";t==null||t.split(" ").forEach((i,l)=>{const a=String(i).replace(/\W/g,"\\&");l>0?n+="|^"+a+"|\\s"+a:n="^"+a+"|\\s"+a});const r=new RegExp(`${n}`,"ig");let s=e==null?void 0:e.matchAll(r);const o=[];for(const i of s)o.push({startIdx:i==null?void 0:i.index,endIdx:((i==null?void 0:i.index)||0)+((i==null?void 0:i[0].length)||0)});return o}function zf({text:e,highlight:t}){const n=gm({text:e,highlight:t}),r=[];let s=0;return n.forEach(o=>{s===o.startIdx?(r.push({text:e==null?void 0:e.slice(o.startIdx,o.endIdx),type:"highlight"}),s=o.endIdx):(r.push({text:e==null?void 0:e.slice(s,o.startIdx),type:"normal"}),r.push({text:e==null?void 0:e.slice(o.startIdx,o.endIdx),type:"highlight"}),s=o.endIdx)}),s<(e==null?void 0:e.length)&&r.push({text:e==null?void 0:e.slice(s,e.length),type:"normal"}),{parts:r,highlightIndexes:n}}function Mf({text:e="",highlight:t="",isExcerpt:n}){var i;e=e||"",t=t||"";let{parts:r,highlightIndexes:s}=zf({text:e,highlight:t});if(n&&(s!=null&&s[0])){const l=(i=s==null?void 0:s[0])==null?void 0:i.startIdx;if(l>50){e="..."+(e==null?void 0:e.slice(l-20));const{parts:a}=zf({text:e,highlight:t});r=a}}const o=r.map((l,a)=>(l==null?void 0:l.type)==="highlight"?A.jsx(ft.Fragment,{children:A.jsx(mm,{word:l.text,isExcerpt:n})},a):A.jsx(ft.Fragment,{children:l.text},a));return A.jsx(A.Fragment,{children:o})}function mm({word:e,isExcerpt:t}){return t?A.jsx(A.Fragment,{children:A.jsx("span",{className:"font-bold",children:e})}):A.jsx(A.Fragment,{children:A.jsx("span",{className:"font-bold text-neutral-900",children:e})})}function ym({posts:e,maxPosts:t,setMaxPosts:n}){const{t:r}=D.useContext(we);return!(e!=null&&e.length)||t>=(e==null?void 0:e.length)?null:A.jsx("button",{className:"w-full my-3 p-[1rem] border border-neutral-200 hover:border-neutral-300 text-neutral-800 hover:text-black font-semibold rounded transition duration-150 ease hover:ease",onClick:()=>{const s=t+im;n(s)},children:r("Show more results")})}function vm({posts:e,selectedResult:t,setSelectedResult:n}){const{t:r}=D.useContext(we),[s,o]=D.useState(Ff),[i,l]=D.useState([]);if(D.useEffect(()=>{o(Ff)},[e]),D.useEffect(()=>{l(e==null?void 0:e.slice(0,s+1))},[s,e]),!(e!=null&&e.length))return null;function a(){return i.map(u=>A.jsx(pm,{post:u,selectedResult:t,setSelectedResult:n},u.title))}return A.jsxs("div",{className:"border-t border-neutral-200 py-3 px-4 sm:px-7",children:[A.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:r("Posts")}),A.jsx(a,{}),A.jsx(ym,{setMaxPosts:o,maxPosts:s,posts:e})]})}function wm({author:e,selectedResult:t,setSelectedResult:n}){const{name:r,profile_image:s,url:o,id:i}=e;let l="py-[1rem] -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer flex items-center";return i===t&&(l+=" bg-neutral-100"),A.jsxs("div",{className:l,onClick:()=>{o&&(window.location.href=o)},onMouseEnter:()=>{n(i)},children:[A.jsx(Sm,{name:r,avatar:s}),A.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-900 truncate",children:r})]})}function Sm({name:e,avatar:t}){const n=t==null?void 0:t.length,r=e.charAt(0);return n?A.jsx("img",{className:"rounded-full bg-neutral-300 w-7 h-7 me-2 object-cover",src:t,alt:e}):A.jsx("div",{className:"rounded-full bg-neutral-200 w-7 h-7 me-2 flex items-center justify-center font-bold",children:A.jsx("span",{className:"text-neutral-400",children:r})})}function xm({authors:e,selectedResult:t,setSelectedResult:n}){const{t:r}=D.useContext(we);if(!(e!=null&&e.length))return null;const s=e.map(o=>A.jsx(wm,{author:o,selectedResult:t,setSelectedResult:n},o.name));return A.jsxs("div",{className:"border-t border-neutral-200 py-3 px-4 sm:px-7",children:[A.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:r("Authors")}),s]})}function Cm(){const{searchValue:e="",searchIndex:t,indexComplete:n}=D.useContext(we);let r=null,s=[],o=[],i=[];return n&&e&&(r=t==null?void 0:t.search(e),o=(r==null?void 0:r.posts)||[],i=(r==null?void 0:r.authors)||[],s=(r==null?void 0:r.tags)||[]),i=i.filter(a=>{const u=/\/404\/$/;return!(a!=null&&a.url&&u.test(a==null?void 0:a.url))}),s=s.filter(a=>{const u=/\/404\/$/;return!(a!=null&&a.url&&u.test(a==null?void 0:a.url))}),(o==null?void 0:o.length)||(i==null?void 0:i.length)||(s==null?void 0:s.length)?A.jsx($m,{posts:o,authors:i,tags:s}):e?A.jsx(km,{}):null}function $m({posts:e,authors:t,tags:n}){var u;const{searchValue:r}=D.useContext(we),s=D.useMemo(()=>[...t,...n,...e],[t,n,e]),o=((u=s==null?void 0:s[0])==null?void 0:u.id)||null,[i,l]=D.useState(o),a=D.useRef(null);return D.useEffect(()=>{var f;l(((f=s==null?void 0:s[0])==null?void 0:f.id)||null)},[s]),D.useEffect(()=>{let f=c=>{const m=s.findIndex(d=>d.id===i);let v=s[m+1],w=s[m-1];if(c.key==="ArrowUp"&&w?l(w==null?void 0:w.id):c.key==="ArrowDown"&&v&&l(v==null?void 0:v.id),c.key==="Enter"){const d=s.find(p=>p.id===i);window.location.href=d==null?void 0:d.url}};const h=a==null?void 0:a.current;return h==null||h.ownerDocument.removeEventListener("keyup",f),h==null||h.ownerDocument.addEventListener("keyup",f),()=>{var c;(c=h==null?void 0:h.ownerDocument)==null||c.removeEventListener("keyup",f)}},[s,i]),r?A.jsxs("div",{className:"overflow-y-auto max-h-[calc(100vh-172px)] sm:max-h-[70vh] -mt-[1px]",ref:a,children:[A.jsx(xm,{authors:t,selectedResult:i,setSelectedResult:l}),A.jsx(dm,{tags:n,selectedResult:i,setSelectedResult:l}),A.jsx(vm,{posts:e,selectedResult:i,setSelectedResult:l})]}):null}function km(){const{t:e}=D.useContext(we);return A.jsx("div",{className:"py-4 px-7",children:A.jsx("p",{className:"text-[1.65rem] text-neutral-400 leading-normal",children:e("No matches found")})})}function Pm(){const{dispatch:e}=D.useContext(we);return A.jsx(A.Fragment,{children:A.jsx("div",{className:"h-screen w-screen pt-20 antialiased z-50 relative ghost-display",onClick:t=>{t.preventDefault(),t.target===t.currentTarget&&e("update",{showPopup:!1})},children:A.jsxs("div",{className:"bg-white w-full max-w-[95vw] sm:max-w-lg rounded-lg shadow-xl m-auto relative translate-z-0 animate-popup",children:[A.jsx(am,{}),A.jsx(Cm,{})]})})})}class Df extends ft.Component{constructor(t){super(t),this.state={height:null}}onHeightChange(t){this.setState({height:t})}handlePopupClose(t){t.preventDefault(),t.target===t.currentTarget&&this.context.dispatch("update",{showPopup:!1})}renderFrameStyles(){const t=`
|
|
10
|
+
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}at!==5&&(at=2),j=ta(j,S),X=y;do{switch(X.tag){case 3:h=j,X.flags|=4096,t&=-t,X.lanes|=t;var $e=Ph(X,h,t);Uf(X,$e);break e;case 1:h=j;var he=X.type,je=X.stateNode;if((X.flags&64)===0&&(typeof he.getDerivedStateFromError=="function"||je!==null&&typeof je.componentDidCatch=="function"&&(Ht===null||!Ht.has(je)))){X.flags|=4096,t&=-t,X.lanes|=t;var Te=Eh(X,h,t);Uf(X,Te);break e}}X=X.return}while(X!==null)}bh(n)}catch(Ae){t=Ae,et===n&&n!==null&&(et=n=n.return);continue}break}while(!0)}function Mh(){var e=wo.current;return wo.current=yo,e===null?yo:e}function ms(e,t){var n=Ce;Ce|=16;var o=Mh();mt===e&&dt===t||vr(e,t);do try{Ey();break}catch(a){Dh(e,a)}while(!0);if(Fl(),Ce=n,wo.current=o,et!==null)throw Error(i(261));return mt=null,dt=0,at}function Ey(){for(;et!==null;)zh(et)}function $y(){for(;et!==null&&!ly();)zh(et)}function zh(e){var t=qh(e.alternate,e,Bn);e.memoizedProps=e.pendingProps,t===null?bh(e):et=t,ia.current=null}function bh(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&2048)===0){if(n=my(n,t,Bn),n!==null){et=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||(Bn&1073741824)!==0||(n.mode&4)===0){for(var o=0,a=n.child;a!==null;)o|=a.lanes|a.childLanes,a=a.sibling;n.childLanes=o}e!==null&&(e.flags&2048)===0&&(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))}else{if(n=yy(t),n!==null){n.flags&=2047,et=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(t=t.sibling,t!==null){et=t;return}et=t=e}while(t!==null);at===0&&(at=5)}function qn(e){var t=ur();return Mn(99,jy.bind(null,e,t)),null}function jy(e,t){do xn();while(hs!==null);if((Ce&48)!==0)throw Error(i(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null;var o=n.lanes|n.childLanes,a=o,h=e.pendingLanes&~a;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=a,e.mutableReadLanes&=a,e.entangledLanes&=a,a=e.entanglements;for(var y=e.eventTimes,S=e.expirationTimes;0<h;){var j=31-un(h),D=1<<j;a[j]=0,y[j]=-1,S[j]=-1,h&=~D}if(Yt!==null&&(o&24)===0&&Yt.has(e)&&Yt.delete(e),e===mt&&(et=mt=null,dt=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,o!==null){if(a=Ce,Ce|=32,ia.current=null,kl=Us,y=hf(),wl(y)){if("selectionStart"in y)S={start:y.selectionStart,end:y.selectionEnd};else e:if(S=(S=y.ownerDocument)&&S.defaultView||window,(D=S.getSelection&&S.getSelection())&&D.rangeCount!==0){S=D.anchorNode,h=D.anchorOffset,j=D.focusNode,D=D.focusOffset;try{S.nodeType,j.nodeType}catch{S=null;break e}var le=0,Pe=-1,X=-1,ye=0,ke=0,xe=y,_=null;t:for(;;){for(var A;xe!==S||h!==0&&xe.nodeType!==3||(Pe=le+h),xe!==j||D!==0&&xe.nodeType!==3||(X=le+D),xe.nodeType===3&&(le+=xe.nodeValue.length),(A=xe.firstChild)!==null;)_=xe,xe=A;for(;;){if(xe===y)break t;if(_===S&&++ye===h&&(Pe=le),_===j&&++ke===D&&(X=le),(A=xe.nextSibling)!==null)break;xe=_,_=xe.parentNode}xe=A}S=Pe===-1||X===-1?null:{start:Pe,end:X}}else S=null;S=S||{start:0,end:0}}else S=null;Pl={focusedElem:y,selectionRange:S},Us=!1,gs=null,Po=!1,ce=o;do try{Ay()}catch(Ae){if(ce===null)throw Error(i(330));Cn(ce,Ae),ce=ce.nextEffect}while(ce!==null);gs=null,ce=o;do try{for(y=e;ce!==null;){var R=ce.flags;if(R&16&&Lt(ce.stateNode,""),R&128){var H=ce.alternate;if(H!==null){var G=H.ref;G!==null&&(typeof G=="function"?G(null):G.current=null)}}switch(R&1038){case 2:Nh(ce),ce.flags&=-3;break;case 6:Nh(ce),ce.flags&=-3,oa(ce.alternate,ce);break;case 1024:ce.flags&=-1025;break;case 1028:ce.flags&=-1025,oa(ce.alternate,ce);break;case 4:oa(ce.alternate,ce);break;case 8:S=ce,Rh(y,S);var $e=S.alternate;Oh(S),$e!==null&&Oh($e)}ce=ce.nextEffect}}catch(Ae){if(ce===null)throw Error(i(330));Cn(ce,Ae),ce=ce.nextEffect}while(ce!==null);if(G=Pl,H=hf(),R=G.focusedElem,y=G.selectionRange,H!==R&&R&&R.ownerDocument&&ff(R.ownerDocument.documentElement,R)){for(y!==null&&wl(R)&&(H=y.start,G=y.end,G===void 0&&(G=H),"selectionStart"in R?(R.selectionStart=H,R.selectionEnd=Math.min(G,R.value.length)):(G=(H=R.ownerDocument||document)&&H.defaultView||window,G.getSelection&&(G=G.getSelection(),S=R.textContent.length,$e=Math.min(y.start,S),y=y.end===void 0?$e:Math.min(y.end,S),!G.extend&&$e>y&&(S=y,y=$e,$e=S),S=cf(R,$e),h=cf(R,y),S&&h&&(G.rangeCount!==1||G.anchorNode!==S.node||G.anchorOffset!==S.offset||G.focusNode!==h.node||G.focusOffset!==h.offset)&&(H=H.createRange(),H.setStart(S.node,S.offset),G.removeAllRanges(),$e>y?(G.addRange(H),G.extend(h.node,h.offset)):(H.setEnd(h.node,h.offset),G.addRange(H)))))),H=[],G=R;G=G.parentNode;)G.nodeType===1&&H.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<H.length;R++)G=H[R],G.element.scrollLeft=G.left,G.element.scrollTop=G.top}Us=!!kl,Pl=kl=null,e.current=n,ce=o;do try{for(R=e;ce!==null;){var he=ce.flags;if(he&36&&xy(R,ce.alternate,ce),he&128){H=void 0;var je=ce.ref;if(je!==null){var Te=ce.stateNode;ce.tag,H=Te,typeof je=="function"?je(H):je.current=H}}ce=ce.nextEffect}}catch(Ae){if(ce===null)throw Error(i(330));Cn(ce,Ae),ce=ce.nextEffect}while(ce!==null);ce=null,uy(),Ce=a}else e.current=n;if(vn)vn=!1,hs=e,ds=t;else for(ce=o;ce!==null;)t=ce.nextEffect,ce.nextEffect=null,ce.flags&8&&(he=ce,he.sibling=null,he.stateNode=null),ce=t;if(o=e.pendingLanes,o===0&&(Ht=null),o===1?e===ga?ps++:(ps=0,ga=e):ps=0,n=n.stateNode,Dn&&typeof Dn.onCommitFiberRoot=="function")try{Dn.onCommitFiberRoot(Ol,n,void 0,(n.current.flags&64)===64)}catch{}if(Tt(e,ft()),xo)throw xo=!1,e=ha,ha=null,e;return(Ce&8)!==0||Ut(),null}function Ay(){for(;ce!==null;){var e=ce.alternate;Po||gs===null||((ce.flags&8)!==0?Nc(ce,gs)&&(Po=!0):ce.tag===13&&Cy(e,ce)&&Nc(ce,gs)&&(Po=!0));var t=ce.flags;(t&256)!==0&&Sy(e,ce),(t&512)===0||vn||(vn=!0,Xr(97,function(){return xn(),null})),ce=ce.nextEffect}}function xn(){if(ds!==90){var e=97<ds?97:ds;return ds=90,Mn(e,Ty)}return!1}function Oy(e,t){da.push(t,e),vn||(vn=!0,Xr(97,function(){return xn(),null}))}function Uh(e,t){pa.push(t,e),vn||(vn=!0,Xr(97,function(){return xn(),null}))}function Ty(){if(hs===null)return!1;var e=hs;if(hs=null,(Ce&48)!==0)throw Error(i(331));var t=Ce;Ce|=32;var n=pa;pa=[];for(var o=0;o<n.length;o+=2){var a=n[o],h=n[o+1],y=a.destroy;if(a.destroy=void 0,typeof y=="function")try{y()}catch(j){if(h===null)throw Error(i(330));Cn(h,j)}}for(n=da,da=[],o=0;o<n.length;o+=2){a=n[o],h=n[o+1];try{var S=a.create;a.destroy=S()}catch(j){if(h===null)throw Error(i(330));Cn(h,j)}}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 Ce=t,Ut(),!0}function Bh(e,t,n){t=ta(n,t),t=Ph(e,t,1),mn(e,t),t=Et(),e=Eo(e,1),e!==null&&(bs(e,1,t),Tt(e,t))}function Cn(e,t){if(e.tag===3)Bh(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){Bh(n,e,t);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Ht===null||!Ht.has(o))){e=ta(t,e);var a=Eh(n,e,1);if(mn(n,a),a=Et(),n=Eo(n,1),n!==null)bs(n,1,a),Tt(n,a);else if(typeof o.componentDidCatch=="function"&&(Ht===null||!Ht.has(o)))try{o.componentDidCatch(t,e)}catch{}break}}n=n.return}}function Ny(e,t,n){var o=e.pingCache;o!==null&&o.delete(t),t=Et(),e.pingedLanes|=e.suspendedLanes&n,mt===e&&(dt&n)===n&&(at===4||at===3&&(dt&62914560)===dt&&500>ft()-ca?vr(e,0):aa|=n),Tt(e,t)}function Ry(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,(t&2)===0?t=1:(t&4)===0?t=ur()===99?1:2:(Xt===0&&(Xt=pr),t=Zn(62914560&~Xt),t===0&&(t=4194304))),n=Et(),e=Eo(e,t),e!==null&&(bs(e,t,n),Tt(e,n))}var qh;qh=function(e,t,n){var o=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||wt.current)It=!0;else if((n&o)!==0)It=(e.flags&16384)!==0;else{switch(It=!1,t.tag){case 3:ph(t),Bl();break;case 5:Jf(t);break;case 1:St(t.type)&&Zs(t);break;case 4:zl(t,t.stateNode.containerInfo);break;case 10:o=t.memoizedProps.value;var a=t.type._context;Je(no,a._currentValue),a._currentValue=o;break;case 13:if(t.memoizedState!==null)return(n&t.child.childLanes)!==0?gh(e,t,n):(Je(Qe,Qe.current&1),t=Qt(e,t,n),t!==null?t.sibling:null);Je(Qe,Qe.current&1);break;case 19:if(o=(n&t.childLanes)!==0,(e.flags&64)!==0){if(o)return Sh(e,t,n);t.flags|=64}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Je(Qe,Qe.current),o)break;return null;case 23:case 24:return t.lanes=0,Ql(e,t,n)}return Qt(e,t,n)}else It=!1;switch(t.lanes=0,t.tag){case 2:if(o=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=ar(t,ct.current),fr(t,n),a=Hl(null,t,o,e,a,n),t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,St(o)){var h=!0;Zs(t)}else h=!1;t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Dl(t);var y=o.getDerivedStateFromProps;typeof y=="function"&&oo(t,o,y,e),a.updater=io,t.stateNode=a,a._reactInternals=t,Ml(t,o,e,n),t=Xl(null,t,o,!0,h,n)}else t.tag=0,Ct(null,t,a,n),t=t.child;return t;case 16:a=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,h=a._init,a=h(a._payload),t.type=a,h=t.tag=Ly(a),e=Ft(a,e),h){case 0:t=Yl(null,t,a,e,n);break e;case 1:t=dh(null,t,a,e,n);break e;case 11:t=uh(null,t,a,e,n);break e;case 14:t=ch(null,t,a,Ft(a.type,e),o,n);break e}throw Error(i(306,a,""))}return t;case 0:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:Ft(o,a),Yl(e,t,o,a,n);case 1:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:Ft(o,a),dh(e,t,o,a,n);case 3:if(ph(t),o=t.updateQueue,e===null||o===null)throw Error(i(282));if(o=t.pendingProps,a=t.memoizedState,a=a!==null?a.element:null,bf(e,t),Zr(t,o,null,n),o=t.memoizedState.element,o===a)Bl(),t=Qt(e,t,n);else{if(a=t.stateNode,(h=a.hydrate)&&(yn=sr(t.stateNode.containerInfo.firstChild),Jt=t,h=qt=!0),h){if(e=a.mutableSourceEagerHydrationData,e!=null)for(a=0;a<e.length;a+=2)h=e[a],h._workInProgressVersionPrimary=e[a+1],dr.push(h);for(n=Gf(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else Ct(e,t,o,n),Bl();t=t.child}return t;case 5:return Jf(t),e===null&&Ul(t),o=t.type,a=t.pendingProps,h=e!==null?e.memoizedProps:null,y=a.children,El(o,a)?y=null:h!==null&&El(o,h)&&(t.flags|=16),hh(e,t),Ct(e,t,y,n),t.child;case 6:return e===null&&Ul(t),null;case 13:return gh(e,t,n);case 4:return zl(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=uo(t,null,o,n):Ct(e,t,o,n),t.child;case 11:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:Ft(o,a),uh(e,t,o,a,n);case 7:return Ct(e,t,t.pendingProps,n),t.child;case 8:return Ct(e,t,t.pendingProps.children,n),t.child;case 12:return Ct(e,t,t.pendingProps.children,n),t.child;case 10:e:{o=t.type._context,a=t.pendingProps,y=t.memoizedProps,h=a.value;var S=t.type._context;if(Je(no,S._currentValue),S._currentValue=h,y!==null)if(S=y.value,h=jt(S,h)?0:(typeof o._calculateChangedBits=="function"?o._calculateChangedBits(S,h):1073741823)|0,h===0){if(y.children===a.children&&!wt.current){t=Qt(e,t,n);break e}}else for(S=t.child,S!==null&&(S.return=t);S!==null;){var j=S.dependencies;if(j!==null){y=S.child;for(var D=j.firstContext;D!==null;){if(D.context===o&&(D.observedBits&h)!==0){S.tag===1&&(D=gn(-1,n&-n),D.tag=2,mn(S,D)),S.lanes|=n,D=S.alternate,D!==null&&(D.lanes|=n),zf(S.return,n),j.lanes|=n;break}D=D.next}}else y=S.tag===10&&S.type===t.type?null:S.child;if(y!==null)y.return=S;else for(y=S;y!==null;){if(y===t){y=null;break}if(S=y.sibling,S!==null){S.return=y.return,y=S;break}y=y.return}S=y}Ct(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,h=t.pendingProps,o=h.children,fr(t,n),a=At(a,h.unstable_observedBits),o=o(a),t.flags|=1,Ct(e,t,o,n),t.child;case 14:return a=t.type,h=Ft(a,t.pendingProps),h=Ft(a.type,h),ch(e,t,a,h,o,n);case 15:return fh(e,t,t.type,t.pendingProps,o,n);case 17:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:Ft(o,a),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,St(o)?(e=!0,Zs(t)):e=!1,fr(t,n),Hf(t,o,a),Ml(t,o,a,n),Xl(null,t,o,!0,e,n);case 19:return Sh(e,t,n);case 23:return Ql(e,t,n);case 24:return Ql(e,t,n)}throw Error(i(156,t.tag))};function _y(e,t,n,o){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=o,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Nt(e,t,n,o){return new _y(e,t,n,o)}function va(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ly(e){if(typeof e=="function")return va(e)?1:0;if(e!=null){if(e=e.$$typeof,e===se)return 11;if(e===Ie)return 14}return 2}function kn(e,t){var n=e.alternate;return n===null?(n=Nt(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 jo(e,t,n,o,a,h){var y=2;if(o=e,typeof e=="function")va(e)&&(y=1);else if(typeof e=="string")y=5;else e:switch(e){case fe:return wr(n.children,a,h,t);case pe:y=8,a|=16;break;case Ee:y=8,a|=1;break;case L:return e=Nt(12,n,t,a|8),e.elementType=L,e.type=L,e.lanes=h,e;case de:return e=Nt(13,n,t,a),e.type=de,e.elementType=de,e.lanes=h,e;case Oe:return e=Nt(19,n,t,a),e.elementType=Oe,e.lanes=h,e;case B:return wa(n,a,h,t);case Z:return e=Nt(24,n,t,a),e.elementType=Z,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case z:y=10;break e;case Y:y=9;break e;case se:y=11;break e;case Ie:y=14;break e;case w:y=16,o=null;break e;case T:y=22;break e}throw Error(i(130,e==null?e:typeof e,""))}return t=Nt(y,n,t,a),t.elementType=e,t.type=o,t.lanes=h,t}function wr(e,t,n,o){return e=Nt(7,e,o,t),e.lanes=n,e}function wa(e,t,n,o){return e=Nt(23,e,o,t),e.elementType=B,e.lanes=n,e}function Sa(e,t,n){return e=Nt(6,e,null,t),e.lanes=n,e}function xa(e,t,n){return t=Nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fy(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=ll(0),this.expirationTimes=ll(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ll(0),this.mutableSourceEagerHydrationData=null}function Iy(e,t,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ie,key:o==null?null:""+o,children:e,containerInfo:t,implementation:n}}function Ao(e,t,n,o){var a=t.current,h=Et(),y=wn(a);e:if(n){n=n._reactInternals;t:{if(Ln(n)!==n||n.tag!==1)throw Error(i(170));var S=n;do{switch(S.tag){case 3:S=S.stateNode.context;break t;case 1:if(St(S.type)){S=S.stateNode.__reactInternalMemoizedMergedChildContext;break t}}S=S.return}while(S!==null);throw Error(i(171))}if(n.tag===1){var j=n.type;if(St(j)){n=Of(n,j,S);break e}}n=S}else n=dn;return t.context===null?t.context=n:t.pendingContext=n,t=gn(h,y),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),mn(a,t),Sn(a,y,h),y}function Ca(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function Vh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ka(e,t){Vh(e,t),(e=e.alternate)&&Vh(e,t)}function Dy(){return null}function Pa(e,t,n){var o=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new Fy(e,t,n!=null&&n.hydrate===!0),t=Nt(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,Dl(t),e[or]=n.current,vf(e.nodeType===8?e.parentNode:e),o)for(e=0;e<o.length;e++){t=o[e];var a=t._getVersion;a=a(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,a]:n.mutableSourceEagerHydrationData.push(t,a)}this._internalRoot=n}Pa.prototype.render=function(e){Ao(e,this._internalRoot,null,null)},Pa.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ao(null,e,null,function(){t[or]=null})};function ys(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function My(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 Pa(e,0,t?{hydrate:!0}:void 0)}function Oo(e,t,n,o,a){var h=n._reactRootContainer;if(h){var y=h._internalRoot;if(typeof a=="function"){var S=a;a=function(){var D=Ca(y);S.call(D)}}Ao(t,y,e,a)}else{if(h=n._reactRootContainer=My(n,o),y=h._internalRoot,typeof a=="function"){var j=a;a=function(){var D=Ca(y);j.call(D)}}Ih(function(){Ao(t,y,e,a)})}return Ca(y)}Rc=function(e){if(e.tag===13){var t=Et();Sn(e,4,t),ka(e,4)}},tl=function(e){if(e.tag===13){var t=Et();Sn(e,67108864,t),ka(e,67108864)}},_c=function(e){if(e.tag===13){var t=Et(),n=wn(e);Sn(e,n,t),ka(e,n)}},Lc=function(e,t){return t()},_s=function(e,t,n){switch(t){case"input":if(x(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 o=n[t];if(o!==e&&o.form===e.form){var a=Ys(o);if(!a)throw Error(i(90));Ze(o),x(o,a)}}}break;case"textarea":K(e,n);break;case"select":t=n.value,t!=null&&Q(e,!!n.multiple,t,!1)}},it=Fh,zt=function(e,t,n,o,a){var h=Ce;Ce|=4;try{return Mn(98,e.bind(null,t,n,o,a))}finally{Ce=h,Ce===0&&(mr(),Ut())}},Kt=function(){(Ce&49)===0&&(Py(),xn())},Rr=function(e,t){var n=Ce;Ce|=2;try{return e(t)}finally{Ce=n,Ce===0&&(mr(),Ut())}};function Hh(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ys(t))throw Error(i(200));return Iy(e,t,null,n)}var zy={Events:[Yr,ir,Ys,Rn,Nr,xn,{current:!1}]},vs={findFiberByHostInstance:Fn,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},by={bundleType:vs.bundleType,version:vs.version,rendererPackageName:vs.rendererPackageName,rendererConfig:vs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ne.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Tc(e),e===null?null:e.stateNode},findFiberByHostInstance:vs.findFiberByHostInstance||Dy,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var To=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!To.isDisabled&&To.supportsFiber)try{Ol=To.inject(by),Dn=To}catch{}}return kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zy,kt.createPortal=Hh,kt.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(i(188)):Error(i(268,Object.keys(e)));return e=Tc(t),e=e===null?null:e.stateNode,e},kt.flushSync=function(e,t){var n=Ce;if((n&48)!==0)return e(t);Ce|=1;try{if(e)return Mn(99,e.bind(null,t))}finally{Ce=n,Ut()}},kt.hydrate=function(e,t,n){if(!ys(t))throw Error(i(200));return Oo(null,e,t,!0,n)},kt.render=function(e,t,n){if(!ys(t))throw Error(i(200));return Oo(null,e,t,!1,n)},kt.unmountComponentAtNode=function(e){if(!ys(e))throw Error(i(40));return e._reactRootContainer?(Ih(function(){Oo(null,null,e,!1,function(){e._reactRootContainer=null,e[or]=null})}),!0):!1},kt.unstable_batchedUpdates=Fh,kt.unstable_createPortal=function(e,t){return Hh(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},kt.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!ys(n))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return Oo(e,t,n,!1,o)},kt.version="17.0.2",kt}var _a;function Zh(){if(_a)return Mo.exports;_a=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(s){console.error(s)}}return r(),Mo.exports=Xh(),Mo.exports}var Uo=Zh();const ed=Ro(Uo),ut=Zt.createContext({posts:[],authors:[],tags:[],action:"",lastPage:"",page:"",pageData:{},dispatch:(r,s)=>{},searchIndex:null,indexComplete:!1,searchValue:"",t:()=>{},dir:"ltr"}),td=r=>Ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:16,width:16,viewBox:"0 0 16 16",...r},Ne.createElement("title",null,"circle anim"),Ne.createElement("g",{fill:"#40413F",className:"nc-icon-wrapper"},Ne.createElement("g",{className:"nc-loop-circle-16-icon-f"},Ne.createElement("path",{d:"M8 16a8 8 0 1 1 8-8 8.009 8.009 0 0 1-8 8zM8 2a6 6 0 1 0 6 6 6.006 6.006 0 0 0-6-6z",fill:"#D4D4D4"}),Ne.createElement("path",{d:"M8 0v2a6.006 6.006 0 0 1 6 6h2a8.009 8.009 0 0 0-8-8z","data-color":"color-2"})),Ne.createElement("style",null,".nc-loop-circle-16-icon-f{--animation-duration:0.5s;transform-origin:8px 8px;animation:nc-loop-circle-anim var(--animation-duration) infinite linear}@keyframes nc-loop-circle-anim{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}"))),nd=r=>Ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:16,width:16,...r},Ne.createElement("path",{strokeLinecap:"round",strokeWidth:.4,fill:"currentColor",stroke:"#000000",strokeLinejoin:"round",d:"M.44,21.44a1.49,1.49,0,0,0,0,2.12,1.5,1.5,0,0,0,2.12,0l9.26-9.26a.25.25,0,0,1,.36,0l9.26,9.26a1.5,1.5,0,0,0,2.12,0,1.49,1.49,0,0,0,0-2.12L14.3,12.18a.25.25,0,0,1,0-.36l9.26-9.26A1.5,1.5,0,0,0,21.44.44L12.18,9.7a.25.25,0,0,1-.36,0L2.56.44A1.5,1.5,0,0,0,.44,2.56L9.7,11.82a.25.25,0,0,1,0,.36Z"}));class rd extends Ne.Component{componentDidMount(){this.node.addEventListener("load",this.handleLoad)}handleLoad=()=>{this.setupFrameBaseStyle()};componentWillUnmout(){this.node.removeEventListener("load",this.handleLoad)}setupFrameBaseStyle(){this.node.contentDocument&&(this.iframeHtml=this.node.contentDocument.documentElement,this.iframeHtml.setAttribute("dir",this.props.searchdir),this.iframeHead=this.node.contentDocument.head,this.iframeRoot=this.node.contentDocument.body,this.forceUpdate())}render(){const{children:s,head:l,title:i="",style:u={},...c}=this.props;return te.jsxs("iframe",{srcDoc:"<!DOCTYPE html>",...c,ref:d=>this.node=d,title:i,style:u,frameBorder:"0",children:[this.iframeHead&&Uo.createPortal(l,this.iframeHead),this.iframeRoot&&Uo.createPortal(s,this.iframeRoot)]})}}const sd=r=>Ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:16,width:16,...r},Ne.createElement("path",{d:"M23.38,21.62l-6.53-6.53a9.15,9.15,0,0,0,1.9-5.59,9.27,9.27,0,1,0-3.66,7.36l6.53,6.53a1.26,1.26,0,0,0,1.76,0A1.25,1.25,0,0,0,23.38,21.62ZM2.75,9.5A6.75,6.75,0,1,1,9.5,16.25,6.76,6.76,0,0,1,2.75,9.5Z",fill:"currentColor"})),La=10,od=10,id=()=>({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"}}});class ld extends Zt.Component{static contextType=ut;componentDidMount(){this.sendContainerHeightChangeEvent()}sendContainerHeightChangeEvent(){}componentDidUpdate(){this.sendContainerHeightChangeEvent()}handlePopupClose(s){s.preventDefault(),s.target===s.currentTarget&&this.context.dispatch("update",{showPopup:!1})}render(){return te.jsx(Ed,{})}}function ad(){const{searchValue:r,dispatch:s,inputRef:l,t:i}=Ne.useContext(ut),u=Ne.useRef(null);Ne.useEffect(()=>{setTimeout(()=>{l?.current?.focus()},150);let d=g=>{g.key==="Escape"&&s("update",{showPopup:!1})};const v=u?.current;return v?.ownerDocument.removeEventListener("keyup",d),v?.ownerDocument.addEventListener("keyup",d),()=>{v?.ownerDocument.removeEventListener("keyup",d)}},[s,l]);let c="z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-t-lg shadow";return r||(c="z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-lg"),te.jsxs("div",{className:c,ref:u,children:[te.jsx("div",{className:"flex items-center justify-center w-4 h-4 me-3",children:te.jsx(ud,{})}),te.jsx("input",{ref:l,value:r||"",onChange:d=>{s("update",{searchValue:d.target.value})},onKeyDown:d=>{(d.key==="ArrowUp"||d.key==="ArrowDown")&&d.preventDefault()},className:"grow -my-5 py-5 -ms-3 ps-3 text-[1.65rem] focus-visible:outline-none placeholder:text-gray-400 outline-none truncate",placeholder:i("Search posts, tags and authors")}),te.jsx(cd,{}),te.jsx(fd,{})]})}function ud(){const{searchValue:r="",dispatch:s}=Ne.useContext(ut);return r?te.jsx("button",{alt:"Clear",className:"-mb-[1px]",onClick:()=>{s("update",{searchValue:""})},children:te.jsx(nd,{className:"text-neutral-900 hover:text-neutral-500 h-[1.1rem] w-[1.1rem]"})}):te.jsx(sd,{className:"text-neutral-900",alt:"Search"})}function cd(){const{indexComplete:r,searchValue:s}=Ne.useContext(ut);return!r&&s?te.jsx(td,{className:"shrink-0"}):null}function fd(){const{dispatch:r,t:s}=Ne.useContext(ut);return te.jsx("button",{className:"ms-3 text-sm text-neutral-500 sm:hidden",alt:"Cancel",onClick:()=>{r("update",{showPopup:!1})},children:s("Cancel")})}function hd({tag:r,selectedResult:s,setSelectedResult:l}){const{name:i,url:u,id:c}=r;let d="flex items-center py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer";return c===s&&(d+=" bg-neutral-100"),te.jsxs("div",{className:d,onClick:()=>{u&&(window.location.href=u)},onMouseEnter:()=>{l(c)},children:[te.jsx("p",{className:"me-2 text-sm font-bold text-neutral-400",children:"#"}),te.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-900 truncate",children:i})]})}function dd({tags:r,selectedResult:s,setSelectedResult:l}){const{t:i}=Ne.useContext(ut);if(!r?.length)return null;const u=r.map(c=>te.jsx(hd,{tag:c,selectedResult:s,setSelectedResult:l},c.name));return te.jsxs("div",{className:"border-t border-gray-200 py-3 px-4 sm:px-7",children:[te.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:i("Tags")}),u]})}function pd({post:r,selectedResult:s,setSelectedResult:l}){const{searchValue:i}=Ne.useContext(ut),{title:u,excerpt:c,url:d,id:v}=r;let g="py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer";return v===s&&(g+=" bg-neutral-100"),te.jsxs("div",{className:g,onClick:()=>{d&&(window.location.href=d)},onMouseEnter:()=>{l(v)},children:[te.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-800",children:te.jsx(Ia,{text:u,highlight:i,isExcerpt:!1})}),te.jsx("p",{className:"text-neutral-400 leading-normal text-sm mt-0 mb-0 truncate",children:te.jsx(Ia,{text:c,highlight:i,isExcerpt:!0})})]})}function gd({text:r,highlight:s}){let l="";s?.split(" ").forEach((d,v)=>{const g=String(d).replace(/\W/g,"\\&");v>0?l+="|^"+g+"|\\s"+g:l="^"+g+"|\\s"+g});const i=new RegExp(`${l}`,"ig");let u=r?.matchAll(i);const c=[];for(const d of u)c.push({startIdx:d?.index,endIdx:(d?.index||0)+(d?.[0].length||0)});return c}function Fa({text:r,highlight:s}){const l=gd({text:r,highlight:s}),i=[];let u=0;return l.forEach(c=>{u===c.startIdx?(i.push({text:r?.slice(c.startIdx,c.endIdx),type:"highlight"}),u=c.endIdx):(i.push({text:r?.slice(u,c.startIdx),type:"normal"}),i.push({text:r?.slice(c.startIdx,c.endIdx),type:"highlight"}),u=c.endIdx)}),u<r?.length&&i.push({text:r?.slice(u,r.length),type:"normal"}),{parts:i,highlightIndexes:l}}function Ia({text:r="",highlight:s="",isExcerpt:l}){r=r||"",s=s||"";let{parts:i,highlightIndexes:u}=Fa({text:r,highlight:s});if(l&&u?.[0]){const d=u?.[0]?.startIdx;if(d>50){r="..."+r?.slice(d-20);const{parts:v}=Fa({text:r,highlight:s});i=v}}const c=i.map((d,v)=>d?.type==="highlight"?te.jsx(Zt.Fragment,{children:te.jsx(md,{word:d.text,isExcerpt:l})},v):te.jsx(Zt.Fragment,{children:d.text},v));return te.jsx(te.Fragment,{children:c})}function md({word:r,isExcerpt:s}){return s?te.jsx(te.Fragment,{children:te.jsx("span",{className:"font-bold",children:r})}):te.jsx(te.Fragment,{children:te.jsx("span",{className:"font-bold text-neutral-900",children:r})})}function yd({posts:r,maxPosts:s,setMaxPosts:l}){const{t:i}=Ne.useContext(ut);return!r?.length||s>=r?.length?null:te.jsx("button",{className:"w-full my-3 p-[1rem] border border-neutral-200 hover:border-neutral-300 text-neutral-800 hover:text-black font-semibold rounded transition duration-150 ease hover:ease",onClick:()=>{const u=s+od;l(u)},children:i("Show more results")})}function vd({posts:r,selectedResult:s,setSelectedResult:l}){const{t:i}=Ne.useContext(ut),[u,c]=Ne.useState(La),[d,v]=Ne.useState([]);if(Ne.useEffect(()=>{c(La)},[r]),Ne.useEffect(()=>{v(r?.slice(0,u+1))},[u,r]),!r?.length)return null;function g(){return d.map(C=>te.jsx(pd,{post:C,selectedResult:s,setSelectedResult:l},C.title))}return te.jsxs("div",{className:"border-t border-neutral-200 py-3 px-4 sm:px-7",children:[te.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:i("Posts")}),te.jsx(g,{}),te.jsx(yd,{setMaxPosts:c,maxPosts:u,posts:r})]})}function wd({author:r,selectedResult:s,setSelectedResult:l}){const{name:i,profile_image:u,url:c,id:d}=r;let v="py-[1rem] -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer flex items-center";return d===s&&(v+=" bg-neutral-100"),te.jsxs("div",{className:v,onClick:()=>{c&&(window.location.href=c)},onMouseEnter:()=>{l(d)},children:[te.jsx(Sd,{name:i,avatar:u}),te.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-900 truncate",children:i})]})}function Sd({name:r,avatar:s}){const l=s?.length,i=r.charAt(0);return l?te.jsx("img",{className:"rounded-full bg-neutral-300 w-7 h-7 me-2 object-cover",src:s,alt:r}):te.jsx("div",{className:"rounded-full bg-neutral-200 w-7 h-7 me-2 flex items-center justify-center font-bold",children:te.jsx("span",{className:"text-neutral-400",children:i})})}function xd({authors:r,selectedResult:s,setSelectedResult:l}){const{t:i}=Ne.useContext(ut);if(!r?.length)return null;const u=r.map(c=>te.jsx(wd,{author:c,selectedResult:s,setSelectedResult:l},c.name));return te.jsxs("div",{className:"border-t border-neutral-200 py-3 px-4 sm:px-7",children:[te.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:i("Authors")}),u]})}function Cd(){const{searchValue:r="",searchIndex:s,indexComplete:l}=Ne.useContext(ut);let i=null,u=[],c=[],d=[];return l&&r&&(i=s?.search(r),c=i?.posts||[],d=i?.authors||[],u=i?.tags||[]),d=d.filter(g=>{const C=/\/404\/$/;return!(g?.url&&C.test(g?.url))}),u=u.filter(g=>{const C=/\/404\/$/;return!(g?.url&&C.test(g?.url))}),c?.length||d?.length||u?.length?te.jsx(kd,{posts:c,authors:d,tags:u}):r?te.jsx(Pd,{}):null}function kd({posts:r,authors:s,tags:l}){const{searchValue:i}=Ne.useContext(ut),u=Ne.useMemo(()=>[...s,...l,...r],[s,l,r]),c=u?.[0]?.id||null,[d,v]=Ne.useState(c),g=Ne.useRef(null);return Ne.useEffect(()=>{v(u?.[0]?.id||null)},[u]),Ne.useEffect(()=>{let C=P=>{const O=u.findIndex(V=>V.id===d);let F=u[O+1],b=u[O-1];if(P.key==="ArrowUp"&&b?v(b?.id):P.key==="ArrowDown"&&F&&v(F?.id),P.key==="Enter"){const V=u.find(U=>U.id===d);window.location.href=V?.url}};const $=g?.current;return $?.ownerDocument.removeEventListener("keyup",C),$?.ownerDocument.addEventListener("keyup",C),()=>{$?.ownerDocument?.removeEventListener("keyup",C)}},[u,d]),i?te.jsxs("div",{className:"overflow-y-auto max-h-[calc(100vh-172px)] sm:max-h-[70vh] -mt-[1px]",ref:g,children:[te.jsx(xd,{authors:s,selectedResult:d,setSelectedResult:v}),te.jsx(dd,{tags:l,selectedResult:d,setSelectedResult:v}),te.jsx(vd,{posts:r,selectedResult:d,setSelectedResult:v})]}):null}function Pd(){const{t:r}=Ne.useContext(ut);return te.jsx("div",{className:"py-4 px-7",children:te.jsx("p",{className:"text-[1.65rem] text-neutral-400 leading-normal",children:r("No matches found")})})}function Ed(){const{dispatch:r}=Ne.useContext(ut);return te.jsx(te.Fragment,{children:te.jsx("div",{className:"h-screen w-screen pt-20 antialiased z-50 relative ghost-display",onClick:s=>{s.preventDefault(),s.target===s.currentTarget&&r("update",{showPopup:!1})},children:te.jsxs("div",{className:"bg-white w-full max-w-[95vw] sm:max-w-lg rounded-lg shadow-xl m-auto relative translate-z-0 animate-popup",children:[te.jsx(ad,{}),te.jsx(Cd,{})]})})})}class $d extends Zt.Component{static contextType=ut;constructor(s){super(s),this.state={height:null}}onHeightChange(s){this.setState({height:s})}handlePopupClose(s){s.preventDefault(),s.target===s.currentTarget&&this.context.dispatch("update",{showPopup:!1})}renderFrameStyles(){const s=`
|
|
43
11
|
:root {
|
|
44
12
|
--brandcolor: ${this.context.brandColor||""}
|
|
45
13
|
}
|
|
@@ -47,21 +15,16 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
47
15
|
.ghost-display {
|
|
48
16
|
display: none;
|
|
49
17
|
}
|
|
50
|
-
`,n=this.context.stylesUrl;return n?A.jsxs(A.Fragment,{children:[A.jsx("link",{rel:"stylesheet",href:n}),A.jsx("style",{dangerouslySetInnerHTML:{__html:t}}),A.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]}):A.jsxs(A.Fragment,{children:[A.jsx("style",{dangerouslySetInnerHTML:{__html:t}}),A.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]})}renderFrameContainer(){const t=lm(),n={...t.frame.common};return A.jsx("div",{style:t.modalContainer,className:"gh-root-frame",children:A.jsxs(nm,{style:n,title:"portal-popup",head:this.renderFrameStyles(),searchdir:this.context.dir,children:[A.jsx("div",{onClick:r=>this.handlePopupClose(r),className:"absolute top-0 bottom-0 left-0 right-0 block backdrop-blur-[2px] animate-fadein z-0 bg-gradient-to-br from-[rgba(0,0,0,0.2)] to-[rgba(0,0,0,0.1)]"}),A.jsx(If,{})]})})}render(){const{showPopup:t}=this.context;return t?this.renderFrameContainer():null}}_o(Df,"contextType",we);var F;function he(e,t,n){const r=typeof n,s=typeof e;if(r!=="undefined"){if(s!=="undefined"){if(n){if(s==="function"&&r===s)return function(l){return e(n(l))};if(t=e.constructor,t===n.constructor){if(t===Array)return n.concat(e);if(t===Map){var o=new Map(n);for(var i of e)o.set(i[0],i[1]);return o}if(t===Set){i=new Set(n);for(o of e.values())i.add(o);return i}}}return e}return n}return s==="undefined"?t:e}function se(){return Object.create(null)}function We(e){return typeof e=="string"}function Ur(e){return typeof e=="object"}function Em(e){const t=[];for(const n of e.keys())t.push(n);return t}function Br(e,t){if(We(t))e=e[t];else for(let n=0;e&&n<t.length;n++)e=e[t[n]];return e}function jm(e){let t=0;for(let n=0,r;n<e.length;n++)(r=e[n])&&t<r.length&&(t=r.length);return t}const Am=/[^\p{L}\p{N}]+/u,Tm=/(\d{3})/g,Om=/(\D)(\d{3})/g,Nm=/(\d{3})(\D)/g,bf=/[\u0300-\u036f]/g;function Vr(e={}){if(!this||this.constructor!==Vr)return new Vr(...arguments);if(arguments.length)for(e=0;e<arguments.length;e++)this.assign(arguments[e]);else this.assign(e)}F=Vr.prototype,F.assign=function(e){this.normalize=he(e.normalize,!0,this.normalize);let t=e.include,n=t||e.exclude||e.split,r;if(n||n===""){if(typeof n=="object"&&n.constructor!==RegExp){let s="";r=!t,t||(s+="\\p{Z}"),n.letter&&(s+="\\p{L}"),n.number&&(s+="\\p{N}",r=!!t),n.symbol&&(s+="\\p{S}"),n.punctuation&&(s+="\\p{P}"),n.control&&(s+="\\p{C}"),(n=n.char)&&(s+=typeof n=="object"?n.join(""):n);try{this.split=new RegExp("["+(t?"^":"")+s+"]+","u")}catch{this.split=/\s+/}}else this.split=n,r=n===!1||2>"a1a".split(n).length;this.numeric=he(e.numeric,r)}else{try{this.split=he(this.split,Am)}catch{this.split=/\s+/}this.numeric=he(e.numeric,he(this.numeric,!0))}if(this.prepare=he(e.prepare,null,this.prepare),this.finalize=he(e.finalize,null,this.finalize),n=e.filter,this.filter=typeof n=="function"?n:he(n&&new Set(n),null,this.filter),this.dedupe=he(e.dedupe,!0,this.dedupe),this.matcher=he((n=e.matcher)&&new Map(n),null,this.matcher),this.mapper=he((n=e.mapper)&&new Map(n),null,this.mapper),this.stemmer=he((n=e.stemmer)&&new Map(n),null,this.stemmer),this.replacer=he(e.replacer,null,this.replacer),this.minlength=he(e.minlength,1,this.minlength),this.maxlength=he(e.maxlength,1024,this.maxlength),this.rtl=he(e.rtl,!1,this.rtl),(this.cache=n=he(e.cache,!0,this.cache))&&(this.H=null,this.S=typeof n=="number"?n:2e5,this.B=new Map,this.G=new Map,this.L=this.K=128),this.h="",this.M=null,this.A="",this.N=null,this.matcher)for(const s of this.matcher.keys())this.h+=(this.h?"|":"")+s;if(this.stemmer)for(const s of this.stemmer.keys())this.A+=(this.A?"|":"")+s;return this},F.addStemmer=function(e,t){return this.stemmer||(this.stemmer=new Map),this.stemmer.set(e,t),this.A+=(this.A?"|":"")+e,this.N=null,this.cache&&Qt(this),this},F.addFilter=function(e){return typeof e=="function"?this.filter=e:(this.filter||(this.filter=new Set),this.filter.add(e)),this.cache&&Qt(this),this},F.addMapper=function(e,t){return typeof e=="object"?this.addReplacer(e,t):1<e.length?this.addMatcher(e,t):(this.mapper||(this.mapper=new Map),this.mapper.set(e,t),this.cache&&Qt(this),this)},F.addMatcher=function(e,t){return typeof e=="object"?this.addReplacer(e,t):2>e.length&&(this.dedupe||this.mapper)?this.addMapper(e,t):(this.matcher||(this.matcher=new Map),this.matcher.set(e,t),this.h+=(this.h?"|":"")+e,this.M=null,this.cache&&Qt(this),this)},F.addReplacer=function(e,t){return typeof e=="string"?this.addMatcher(e,t):(this.replacer||(this.replacer=[]),this.replacer.push(e,t),this.cache&&Qt(this),this)},F.encode=function(e){if(this.cache&&e.length<=this.K)if(this.H){if(this.B.has(e))return this.B.get(e)}else this.H=setTimeout(Qt,50,this);this.normalize&&(typeof this.normalize=="function"?e=this.normalize(e):e=bf?e.normalize("NFKD").replace(bf,"").toLowerCase():e.toLowerCase()),this.prepare&&(e=this.prepare(e)),this.numeric&&3<e.length&&(e=e.replace(Om,"$1 $2").replace(Nm,"$1 $2").replace(Tm,"$1 "));const t=!(this.dedupe||this.mapper||this.filter||this.matcher||this.stemmer||this.replacer);let n=[],r=this.split||this.split===""?e.split(this.split):e;for(let o=0,i,l;o<r.length;o++)if((i=l=r[o])&&!(i.length<this.minlength||i.length>this.maxlength)){if(t)n.push(i);else if(!this.filter||(typeof this.filter=="function"?this.filter(i):!this.filter.has(i))){if(this.cache&&i.length<=this.L)if(this.H){var s=this.G.get(i);if(s||s===""){s&&n.push(s);continue}}else this.H=setTimeout(Qt,50,this);if(this.stemmer&&2<i.length&&(this.N||(this.N=new RegExp("(?!^)("+this.A+")$")),i=i.replace(this.N,a=>this.stemmer.get(a))),i&&(this.mapper||this.dedupe&&1<i.length)){s="";for(let a=0,u="",f,h;a<i.length;a++)f=i.charAt(a),f===u&&this.dedupe||((h=this.mapper&&this.mapper.get(f))||h===""?h===u&&this.dedupe||!(u=h)||(s+=h):s+=u=f);i=s}if(this.matcher&&1<i.length&&(this.M||(this.M=new RegExp("("+this.h+")","g")),i=i.replace(this.M,a=>this.matcher.get(a))),i&&this.replacer)for(s=0;i&&s<this.replacer.length;s+=2)i=i.replace(this.replacer[s],this.replacer[s+1]);this.cache&&l.length<=this.L&&(this.G.set(l,i),this.G.size>this.S&&(this.G.clear(),this.L=this.L/1.1|0)),i&&n.push(i)}}return this.finalize&&(n=this.finalize(n)||n),this.cache&&e.length<=this.K&&(this.B.set(e,n),this.B.size>this.S&&(this.B.clear(),this.K=this.K/1.1|0)),n};function Qt(e){e.H=null,e.B.clear(),e.G.clear()}let Rn,Hr;async function Lm(e){e=e.data;var t=e.task;const n=e.id;let r=e.args;switch(t){case"init":Hr=e.options||{},(t=e.factory)?(Function("return "+t)()(self),Rn=new self.FlexSearch.Index(Hr),delete self.FlexSearch):Rn=new tt(Hr),postMessage({id:n});break;default:let s;t==="export"&&(r[1]?(r[0]=Hr.export,r[2]=0,r[3]=1):r=null),t==="import"?r[0]&&(e=await Hr.import.call(Rn,r[0]),Rn.import(r[0],e)):(s=r&&Rn[t].apply(Rn,r))&&s.then&&(s=await s),postMessage(t==="search"?{id:n,msg:s}:{id:n})}}function Vl(e){Wr.call(e,"add"),Wr.call(e,"append"),Wr.call(e,"search"),Wr.call(e,"update"),Wr.call(e,"remove")}let Hl,Uf,co;function _m(){Hl=co=0}function Wr(e){this[e+"Async"]=function(){const t=arguments;var n=t[t.length-1];let r;if(typeof n=="function"&&(r=n,delete t[t.length-1]),Hl?co||(co=Date.now()-Uf>=this.priority*this.priority*3):(Hl=setTimeout(_m,0),Uf=Date.now()),co){const o=this;return new Promise(i=>{setTimeout(function(){i(o[e+"Async"].apply(o,t))},0)})}const s=this[e].apply(this,t);return n=s.then?s:new Promise(o=>o(s)),r&&n.then(r),n}}let Fn=0;function Kr(e={}){function t(i){function l(a){a=a.data||a;const u=a.id,f=u&&s.h[u];f&&(f(a.msg),delete s.h[u])}if(this.worker=i,this.h=se(),this.worker)return r?this.worker.on("message",l):this.worker.onmessage=l,e.config?new Promise(function(a){s.h[++Fn]=function(){a(s),1e9<Fn&&(Fn=0)},s.worker.postMessage({id:Fn,task:"init",factory:n,options:e})}):(this.worker.postMessage({task:"init",factory:n,options:e}),this.priority=e.priority||4,this)}if(!this||this.constructor!==Kr)return new Kr(e);let n=typeof self<"u"?self._factory:typeof window<"u"?window._factory:null;n&&(n=n.toString());const r=typeof window>"u",s=this,o=Rm(n,r,e.worker);return o.then?o.then(function(i){return t.call(s,i)}):t.call(this,o)}Lt("add"),Lt("append"),Lt("search"),Lt("update"),Lt("remove"),Lt("clear"),Lt("export"),Lt("import"),Vl(Kr.prototype);function Lt(e){Kr.prototype[e]=function(){const t=this,n=[].slice.call(arguments);var r=n[n.length-1];let s;return typeof r=="function"&&(s=r,n.pop()),r=new Promise(function(o){e==="export"&&typeof n[0]=="function"&&(n[0]=null),t.h[++Fn]=o,t.worker.postMessage({task:e,id:Fn,args:n})}),s?(r.then(s),this):r}}function Rm(e,t,n){return t?typeof module<"u"?new(require("worker_threads")).Worker(__dirname+"/worker/node.js"):Promise.resolve().then(()=>_h).then(function(r){return new r.Worker("undefined/node/node.mjs")}):e?new window.Worker(URL.createObjectURL(new Blob(["onmessage="+Lm.toString()],{type:"text/javascript"}))):new window.Worker(typeof n=="string"?n:(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:re&&re.tagName.toUpperCase()==="SCRIPT"&&re.src||new URL("sodo-search.min.js",document.baseURI).href).replace("/worker.js","/worker/worker.js").replace("flexsearch.bundle.module.min.js","module/worker/worker.js"),{type:"module"})}function Wl(e,t=0){let n=[],r=[];t&&(t=25e4/t*5e3|0);for(const s of e.entries())r.push(s),r.length===t&&(n.push(r),r=[]);return r.length&&n.push(r),n}function Kl(e,t){t||(t=new Map);for(let n=0,r;n<e.length;n++)r=e[n],t.set(r[0],r[1]);return t}function Bf(e,t=0){let n=[],r=[];t&&(t=25e4/t*1e3|0);for(const s of e.entries())r.push([s[0],Wl(s[1])[0]]),r.length===t&&(n.push(r),r=[]);return r.length&&n.push(r),n}function Vf(e,t){t||(t=new Map);for(let n=0,r,s;n<e.length;n++)r=e[n],s=t.get(r[0]),t.set(r[0],Kl(r[1],s));return t}function Hf(e){let t=[],n=[];for(const r of e.keys())n.push(r),n.length===25e4&&(t.push(n),n=[]);return n.length&&t.push(n),t}function Wf(e,t){t||(t=new Set);for(let n=0;n<e.length;n++)t.add(e[n]);return t}function fo(e,t,n,r,s,o,i=0){const l=r&&r.constructor===Array;var a=l?r.shift():r;if(!a)return this.export(e,t,s,o+1);if((a=e((t?t+".":"")+(i+1)+"."+n,JSON.stringify(a)))&&a.then){const u=this;return a.then(function(){return fo.call(u,e,t,n,l?r:null,s,o,i+1)})}return fo.call(this,e,t,n,l?r:null,s,o,i+1)}function Kf(e,t){let n="";for(const r of e.entries()){e=r[0];const s=r[1];let o="";for(let i=0,l;i<s.length;i++){l=s[i]||[""];let a="";for(let u=0;u<l.length;u++)a+=(a?",":"")+(t==="string"?'"'+l[u]+'"':l[u]);a="["+a+"]",o+=(o?",":"")+a}o='["'+e+'",['+o+"]]",n+=(n?",":"")+o}return n}function qf(e,t,n,r){let s=[];for(let o=0,i;o<e.index.length;o++)if(i=e.index[o],t>=i.length)t-=i.length;else{t=i[r?"splice":"slice"](t,n);const l=t.length;if(l&&(s=s.length?s.concat(t):t,n-=l,r&&(e.length-=l),!n))break;t=0}return s}function Jt(e){if(!this||this.constructor!==Jt)return new Jt(e);this.index=e?[e]:[],this.length=e?e.length:0;const t=this;return new Proxy([],{get(n,r){if(r==="length")return t.length;if(r==="push")return function(s){t.index[t.index.length-1].push(s),t.length++};if(r==="pop")return function(){if(t.length)return t.length--,t.index[t.index.length-1].pop()};if(r==="indexOf")return function(s){let o=0;for(let i=0,l,a;i<t.index.length;i++){if(l=t.index[i],a=l.indexOf(s),0<=a)return o+a;o+=l.length}return-1};if(r==="includes")return function(s){for(let o=0;o<t.index.length;o++)if(t.index[o].includes(s))return!0;return!1};if(r==="slice")return function(s,o){return qf(t,s||0,o||t.length,!1)};if(r==="splice")return function(s,o){return qf(t,s||0,o||t.length,!0)};if(r==="constructor")return Array;if(typeof r!="symbol")return(n=t.index[r/2**31|0])&&n[r]},set(n,r,s){return n=r/2**31|0,(t.index[n]||(t.index[n]=[]))[r]=s,t.length++,!0}})}Jt.prototype.clear=function(){this.index.length=0},Jt.prototype.destroy=function(){this.proxy=this.index=null},Jt.prototype.push=function(){};function et(e=8){if(!this||this.constructor!==et)return new et(e);this.index=se(),this.h=[],this.size=0,32<e?(this.B=Qf,this.A=BigInt(e)):(this.B=Gf,this.A=e)}et.prototype.get=function(e){const t=this.index[this.B(e)];return t&&t.get(e)},et.prototype.set=function(e,t){var n=this.B(e);let r=this.index[n];r?(n=r.size,r.set(e,t),(n-=r.size)&&this.size++):(this.index[n]=r=new Map([[e,t]]),this.h.push(r),this.size++)};function Ke(e=8){if(!this||this.constructor!==Ke)return new Ke(e);this.index=se(),this.h=[],this.size=0,32<e?(this.B=Qf,this.A=BigInt(e)):(this.B=Gf,this.A=e)}Ke.prototype.add=function(e){var t=this.B(e);let n=this.index[t];n?(t=n.size,n.add(e),(t-=n.size)&&this.size++):(this.index[t]=n=new Set([e]),this.h.push(n),this.size++)},F=et.prototype,F.has=Ke.prototype.has=function(e){const t=this.index[this.B(e)];return t&&t.has(e)},F.delete=Ke.prototype.delete=function(e){const t=this.index[this.B(e)];t&&t.delete(e)&&this.size--},F.clear=Ke.prototype.clear=function(){this.index=se(),this.h=[],this.size=0},F.values=Ke.prototype.values=function*(){for(let e=0;e<this.h.length;e++)for(let t of this.h[e].values())yield t},F.keys=Ke.prototype.keys=function*(){for(let e=0;e<this.h.length;e++)for(let t of this.h[e].keys())yield t},F.entries=Ke.prototype.entries=function*(){for(let e=0;e<this.h.length;e++)for(let t of this.h[e].entries())yield t};function Gf(e){let t=2**this.A-1;if(typeof e=="number")return e&t;let n=0,r=this.A+1;for(let s=0;s<e.length;s++)n=(n*r^e.charCodeAt(s))&t;return this.A===32?n+2**31:n}function Qf(e){let t=BigInt(2)**this.A-BigInt(1);var n=typeof e;if(n==="bigint")return e&t;if(n==="number")return BigInt(e)&t;n=BigInt(0);let r=this.A+BigInt(1);for(let s=0;s<e.length;s++)n=(n*r^BigInt(e.charCodeAt(s)))&t;return n}Yt.prototype.add=function(e,t,n){if(Ur(e)&&(t=e,e=Br(t,this.key)),t&&(e||e===0)){if(!n&&this.reg.has(e))return this.update(e,t);for(let l=0,a;l<this.field.length;l++){a=this.D[l];var r=this.index.get(this.field[l]);if(typeof a=="function"){var s=a(t);s&&r.add(e,s,!1,!0)}else s=a.I,(!s||s(t))&&(a.constructor===String?a=[""+a]:We(a)&&(a=[a]),Gl(t,a,this.J,0,r,e,a[0],n))}if(this.tag)for(r=0;r<this.F.length;r++){var o=this.F[r];s=this.tag.get(this.R[r]);let l=se();if(typeof o=="function"){if(o=o(t),!o)continue}else{var i=o.I;if(i&&!i(t))continue;o.constructor===String&&(o=""+o),o=Br(t,o)}if(s&&o){We(o)&&(o=[o]);for(let a=0,u,f;a<o.length;a++)if(u=o[a],!l[u]&&(l[u]=1,(i=s.get(u))?f=i:s.set(u,f=[]),!n||!f.includes(e))){if(f.length===2**31-1){if(i=new Jt(f),this.fastupdate)for(let h of this.reg.values())h.includes(f)&&(h[h.indexOf(f)]=i);s.set(u,f=i)}f.push(e),this.fastupdate&&((i=this.reg.get(e))?i.push(f):this.reg.set(e,[f]))}}}if(this.store&&(!n||!this.store.has(e))){let l;if(this.C){l=se();for(let a=0,u;a<this.C.length;a++){if(u=this.C[a],(n=u.I)&&!n(t))continue;let f;if(typeof u=="function"){if(f=u(t),!f)continue;u=[u.V]}else if(We(u)||u.constructor===String){l[u]=t[u];continue}ql(t,l,u,0,u[0],f)}}this.store.set(e,l||t)}this.worker&&(this.fastupdate||this.reg.add(e))}return this};function ql(e,t,n,r,s,o){if(e=e[s],r===n.length-1)t[s]=o||e;else if(e)if(e.constructor===Array)for(t=t[s]=Array(e.length),s=0;s<e.length;s++)ql(e,t,n,r,s);else t=t[s]||(t[s]=se()),s=n[++r],ql(e,t,n,r,s)}function Gl(e,t,n,r,s,o,i,l){if(e=e[i])if(r===t.length-1){if(e.constructor===Array){if(n[r]){for(t=0;t<e.length;t++)s.add(o,e[t],!0,!0);return}e=e.join(" ")}s.add(o,e,l,!0)}else if(e.constructor===Array)for(i=0;i<e.length;i++)Gl(e,t,n,r,s,o,i,l);else i=t[++r],Gl(e,t,n,r,s,o,i,l);else s.db&&s.remove(o)}function Jf(e,t,n,r,s,o,i){const l=e.length;let a=[],u,f;u=se();for(let h=0,c,m,v,w;h<t;h++)for(let d=0;d<l;d++)if(v=e[d],h<v.length&&(c=v[h]))for(let p=0;p<c.length;p++){if(m=c[p],(f=u[m])?u[m]++:(f=0,u[m]=1),w=a[f]||(a[f]=[]),!i){let g=h+(d||!s?0:o||0);w=w[g]||(w[g]=[])}if(w.push(m),i&&n&&f===l-1&&w.length-r===n)return r?w.slice(r):w}if(e=a.length)if(s)a=1<a.length?Yf(a,n,r,i,o):(a=a[0]).length>n||r?a.slice(r,n+r):a;else{if(e<l)return[];if(a=a[e-1],n||r)if(i)(a.length>n||r)&&(a=a.slice(r,n+r));else{s=[];for(let h=0,c;h<a.length;h++)if(c=a[h],c.length>r)r-=c.length;else if((c.length>n||r)&&(c=c.slice(r,n+r),n-=c.length,r&&(r-=c.length)),s.push(c),!n)break;a=1<s.length?[].concat.apply([],s):s[0]}}return a}function Yf(e,t,n,r,s){const o=[],i=se();let l;var a=e.length;let u;if(r){for(s=a-1;0<=s;s--)if(u=(r=e[s])&&r.length){for(a=0;a<u;a++)if(l=r[a],!i[l]){if(i[l]=1,n)n--;else if(o.push(l),o.length===t)return o}}}else for(let f=a-1,h,c=0;0<=f;f--){h=e[f];for(let m=0;m<h.length;m++)if(u=(r=h[m])&&r.length){for(let v=0;v<u;v++)if(l=r[v],!i[l])if(i[l]=1,n)n--;else{let w=(m+(f<a-1&&s||0))/(f+1)|0;if((o[w]||(o[w]=[])).push(l),++c===t)return o}}}return o}function Fm(e,t,n){const r=se(),s=[];for(let o=0,i;o<t.length;o++){i=t[o];for(let l=0;l<i.length;l++)r[i[l]]=1}if(n)for(let o=0,i;o<e.length;o++)i=e[o],r[i]&&(s.push(i),r[i]=0);else for(let o=0,i,l;o<e.result.length;o++)for(i=e.result[o],t=0;t<i.length;t++)l=i[t],r[l]&&((s[o]||(s[o]=[])).push(l),r[l]=0);return s}function Ql(e,t,n,r){if(!e.length)return e;if(e.length===1)return e=e[0],e=n||e.length>t?t?e.slice(n,n+t):e.slice(n):e,r?_t.call(this,e):e;let s=[];for(let o=0,i,l;o<e.length;o++)if((i=e[o])&&(l=i.length)){if(n){if(n>=l){n-=l;continue}n<l&&(i=t?i.slice(n,n+t):i.slice(n),l=i.length,n=0)}if(l>t&&(i=i.slice(0,t),l=t),!s.length&&l>=t)return r?_t.call(this,i):i;if(s.push(i),t-=l,!t)break}return s=1<s.length?[].concat.apply([],s):s[0],r?_t.call(this,s):s}function ho(e,t,n){var r=n[0];if(r.then)return Promise.all(n).then(function(f){return e[t].apply(e,f)});if(r[0]&&r[0].index)return e[t].apply(e,r);r=[];let s=[],o=0,i=0,l,a,u;for(let f=0,h;f<n.length;f++)if(h=n[f]){let c;if(h.constructor===J)c=h.result;else if(h.constructor===Array)c=h;else if(o=h.limit||0,i=h.offset||0,u=h.suggest,a=h.resolve,l=h.enrich&&a,h.index)h.resolve=!1,c=h.index.search(h).result,h.resolve=a;else if(h.and)c=e.and(h.and);else if(h.or)c=e.or(h.or);else if(h.xor)c=e.xor(h.xor);else if(h.not)c=e.not(h.not);else continue;if(c.then)s.push(c);else if(c.length)r[f]=c;else if(!u&&(t==="and"||t==="xor")){r=[];break}}return{O:r,P:s,limit:o,offset:i,enrich:l,resolve:a,suggest:u}}J.prototype.or=function(){const{O:e,P:t,limit:n,offset:r,enrich:s,resolve:o}=ho(this,"or",arguments);return Xf.call(this,e,t,n,r,s,o)};function Xf(e,t,n,r,s,o){if(t.length){const i=this;return Promise.all(t).then(function(l){e=[];for(let a=0,u;a<l.length;a++)(u=l[a]).length&&(e[a]=u);return Xf.call(i,e,[],n,r,s,o)})}return e.length&&(this.result.length&&e.push(this.result),2>e.length?this.result=e[0]:(this.result=Yf(e,n,r,!1,this.h),r=0)),o?this.resolve(n,r,s):this}J.prototype.and=function(){let e=this.result.length,t,n,r,s;if(!e){const o=arguments[0];o&&(e=!!o.suggest,s=o.resolve,t=o.limit,n=o.offset,r=o.enrich&&s)}if(e){const{O:o,P:i,limit:l,offset:a,enrich:u,resolve:f,suggest:h}=ho(this,"and",arguments);return Zf.call(this,o,i,l,a,u,f,h)}return s?this.resolve(t,n,r):this};function Zf(e,t,n,r,s,o,i){if(t.length){const l=this;return Promise.all(t).then(function(a){e=[];for(let u=0,f;u<a.length;u++)(f=a[u]).length&&(e[u]=f);return Zf.call(l,e,[],n,r,s,o,i)})}if(e.length)if(this.result.length&&e.unshift(this.result),2>e.length)this.result=e[0];else{if(t=jm(e))return this.result=Jf(e,t,n,r,i,this.h,o),o?s?_t.call(this.index,this.result):this.result:this;this.result=[]}else i||(this.result=e);return o?this.resolve(n,r,s):this}J.prototype.xor=function(){const{O:e,P:t,limit:n,offset:r,enrich:s,resolve:o,suggest:i}=ho(this,"xor",arguments);return eh.call(this,e,t,n,r,s,o,i)};function eh(e,t,n,r,s,o,i){if(t.length){const l=this;return Promise.all(t).then(function(a){e=[];for(let u=0,f;u<a.length;u++)(f=a[u]).length&&(e[u]=f);return eh.call(l,e,[],n,r,s,o,i)})}if(e.length)if(this.result.length&&e.unshift(this.result),2>e.length)this.result=e[0];else return this.result=Im.call(this,e,n,r,o,this.h),o?s?_t.call(this.index,this.result):this.result:this;else i||(this.result=e);return o?this.resolve(n,r,s):this}function Im(e,t,n,r,s){const o=[],i=se();let l=0;for(let a=0,u;a<e.length;a++)if(u=e[a]){l<u.length&&(l=u.length);for(let f=0,h;f<u.length;f++)if(h=u[f])for(let c=0,m;c<h.length;c++)m=h[c],i[m]=i[m]?2:1}for(let a=0,u,f=0;a<l;a++)for(let h=0,c;h<e.length;h++)if((c=e[h])&&(u=c[a])){for(let m=0,v;m<u.length;m++)if(v=u[m],i[v]===1)if(n)n--;else if(r){if(o.push(v),o.length===t)return o}else{const w=a+(h?s:0);if(o[w]||(o[w]=[]),o[w].push(v),++f===t)return o}}return o}J.prototype.not=function(){const{O:e,P:t,limit:n,offset:r,enrich:s,resolve:o,suggest:i}=ho(this,"not",arguments);return th.call(this,e,t,n,r,s,o,i)};function th(e,t,n,r,s,o,i){if(t.length){const l=this;return Promise.all(t).then(function(a){e=[];for(let u=0,f;u<a.length;u++)(f=a[u]).length&&(e[u]=f);return th.call(l,e,[],n,r,s,o,i)})}if(e.length&&this.result.length)this.result=zm.call(this,e,n,r,o);else if(o)return this.resolve(n,r,s);return o?s?_t.call(this.index,this.result):this.result:this}function zm(e,t,n,r){const s=[];e=new Set(e.flat().flat());for(let o=0,i,l=0;o<this.result.length;o++)if(i=this.result[o]){for(let a=0,u;a<i.length;a++)if(u=i[a],!e.has(u)){if(n)n--;else if(r){if(s.push(u),s.length===t)return s}else if(s[o]||(s[o]=[]),s[o].push(u),++l===t)return s}}return s}function J(e){if(!this||this.constructor!==J)return new J(e);if(e&&e.index)return e.resolve=!1,this.index=e.index,this.h=e.boost||0,this.result=e.index.search(e).result,this;this.index=null,this.result=e||[],this.h=0}J.prototype.limit=function(e){if(this.result.length){const t=[];for(let n=0,r;n<this.result.length;n++)if(r=this.result[n])if(r.length<=e){if(t[n]=r,e-=r.length,!e)break}else{t[n]=r.slice(0,e);break}this.result=t}return this},J.prototype.offset=function(e){if(this.result.length){const t=[];for(let n=0,r;n<this.result.length;n++)(r=this.result[n])&&(r.length<=e?e-=r.length:(t[n]=r.slice(e),e=0));this.result=t}return this},J.prototype.boost=function(e){return this.h+=e,this},J.prototype.resolve=function(e,t,n){const r=this.result,s=this.index;return this.result=this.index=null,r.length?(typeof e=="object"&&(n=e.enrich,t=e.offset,e=e.limit),Ql.call(s,r,e||100,t,n)):r},Yt.prototype.search=function(e,t,n,r){n||(!t&&Ur(e)?(n=e,e=""):Ur(t)&&(n=t,t=0));let s=[];var o=[],i;let l,a,u,f=0;var h=!0;let c;if(n){n.constructor===Array&&(n={index:n}),e=n.query||e;var m=n.pluck;l=n.merge,a=m||n.field||(a=n.index)&&(a.index?null:a),u=this.tag&&n.tag;var v=n.suggest;h=n.resolve!==!1,h||m||!(a=a||this.field)||(We(a)?m=a:(a.constructor===Array&&a.length===1&&(a=a[0]),m=a.field||a.index)),c=(i=this.store&&n.enrich&&h)&&n.highlight,t=n.limit||t;var w=n.offset||0;if(t||(t=100),u&&(!this.db||!r)){u.constructor!==Array&&(u=[u]);var d=[];for(let y=0,$;y<u.length;y++)if($=u[y],$.field&&$.tag){var p=$.tag;if(p.constructor===Array)for(var g=0;g<p.length;g++)d.push($.field,p[g]);else d.push($.field,p)}else{p=Object.keys($);for(let C=0,P,T;C<p.length;C++)if(P=p[C],T=$[P],T.constructor===Array)for(g=0;g<T.length;g++)d.push(P,T[g]);else d.push(P,T)}if(u=d,!e){if(h=[],d.length)for(o=0;o<d.length;o+=2){if(this.db){if(m=this.index.get(d[o]),!m)continue;h.push(m=m.db.tag(d[o+1],t,w,i))}else m=Mm.call(this,d[o],d[o+1],t,w,i);s.push({field:d[o],tag:d[o+1],result:m})}return h.length?Promise.all(h).then(function(y){for(let $=0;$<y.length;$++)s[$].result=y[$];return s}):s}}a&&a.constructor!==Array&&(a=[a])}a||(a=this.field),d=!r&&(this.worker||this.db)&&[];let S;for(let y=0,$,C,P;y<a.length;y++){if(C=a[y],this.db&&this.tag&&!this.D[y])continue;let T;if(We(C)||(T=C,C=T.field,e=T.query||e,t=T.limit||t,w=T.offset||w,v=T.suggest||v,i=this.store&&(T.enrich||i)),r)$=r[y];else if(p=T||n,g=this.index.get(C),u&&(this.db&&(p.tag=u,S=g.db.support_tag_search,p.field=a),S||(p.enrich=!1)),d){d[y]=g.search(e,t,p),p&&i&&(p.enrich=i);continue}else $=g.search(e,t,p),p&&i&&(p.enrich=i);if(P=$&&(h?$.length:$.result.length),u&&P){if(p=[],g=0,this.db&&r){if(!S)for(let N=a.length;N<r.length;N++){let U=r[N];if(U&&U.length)g++,p.push(U);else if(!v)return h?s:new J(s)}}else for(let N=0,U,Ne;N<u.length;N+=2){if(U=this.tag.get(u[N]),!U){if(v)continue;return h?s:new J(s)}if(Ne=(U=U&&U.get(u[N+1]))&&U.length)g++,p.push(U);else if(!v)return h?s:new J(s)}if(g){if($=Fm($,p,h),P=$.length,!P&&!v)return h?$:new J($);g--}}if(P)o[f]=C,s.push($),f++;else if(a.length===1)return h?s:new J(s)}if(d){if(this.db&&u&&u.length&&!S)for(i=0;i<u.length;i+=2){if(o=this.index.get(u[i]),!o){if(v)continue;return h?s:new J(s)}d.push(o.db.tag(u[i+1],t,w,!1))}const y=this;return Promise.all(d).then(function($){return $.length?y.search(e,t,n,$):$})}if(!f)return h?s:new J(s);if(m&&(!i||!this.store))return s[0];for(d=[],w=0;w<o.length;w++){if(v=s[w],i&&v.length&&typeof v[0].doc>"u"&&(this.db?d.push(v=this.index.get(this.field[0]).db.enrich(v)):v=_t.call(this,v)),m)return h?v:new J(v);s[w]={field:o[w],result:v}}if(i&&this.db&&d.length){const y=this;return Promise.all(d).then(function($){for(let C=0;C<$.length;C++)s[C].result=$[C];return l?rh(s):c?nh(s,e,y.index,y.field,y.D,c):s})}return l?rh(s):c?nh(s,e,this.index,this.field,this.D,c):s};function nh(e,t,n,r,s,o){let i,l,a;for(let u=0,f,h,c,m;u<e.length;u++){if(f=e[u].field,!f)continue;let v=e[u].result;c=n.get(f),h=c.encoder,a=c.tokenize,m=s[r.indexOf(f)],h!==i&&(i=h,l=i.encode(t));for(let w=0;w<v.length;w++){let d="",p=Br(v[w].doc,m).split(/\s+/);for(let g=0,S,y;g<p.length;g++){S=p[g],y=h.encode(S),y=1<y.length?y.join(" "):y[0];let $;if(y&&S)for(let C=0,P;C<l.length;C++)if(P=l[C],a==="strict"){if(y===P){d+=(d?" ":"")+o.replace("$1",S),$=!0;break}}else{const T=y.indexOf(P);if(-1<T){d+=(d?" ":"")+S.substring(0,T)+o.replace("$1",S.substring(T,P.length))+S.substring(T+P.length),$=!0;break}}$||(d+=(d?" ":"")+p[g])}v[w].highlight=d}}return e}function rh(e){const t=[],n=se();for(let r=0,s,o;r<e.length;r++){s=e[r],o=s.result;for(let i=0,l,a,u;i<o.length;i++)a=o[i],typeof a!="object"&&(a={id:a}),l=a.id,(u=n[l])?u.push(s.field):(a.field=n[l]=[s.field],t.push(a))}return t}function Mm(e,t,n,r,s){if(e=this.tag.get(e),!e)return[];if((t=(e=e&&e.get(t))&&e.length-r)&&0<t)return(t>n||r)&&(e=e.slice(r,r+n)),s&&(e=_t.call(this,e)),e}function _t(e){if(!this||!this.store)return e;const t=Array(e.length);for(let n=0,r;n<e.length;n++)r=e[n],t[n]={id:r,doc:this.store.get(r)};return t}function Yt(e){if(!this||this.constructor!==Yt)return new Yt(e);const t=e.document||e.doc||e;let n,r;if(this.D=[],this.field=[],this.J=[],this.key=(n=t.key||t.id)&&po(n,this.J)||"id",(r=e.keystore||0)&&(this.keystore=r),this.fastupdate=!!e.fastupdate,this.reg=!this.fastupdate||e.worker||e.db?r?new Ke(r):new Set:r?new et(r):new Map,this.C=(n=t.store||null)&&n&&n!==!0&&[],this.store=n&&(r?new et(r):new Map),this.cache=(n=e.cache||null)&&new Xt(n),e.cache=!1,this.worker=e.worker,this.priority=e.priority||4,this.index=Dm.call(this,e,t),this.tag=null,(n=t.tag)&&(typeof n=="string"&&(n=[n]),n.length)){this.tag=new Map,this.F=[],this.R=[];for(let s=0,o,i;s<n.length;s++){if(o=n[s],i=o.field||o,!i)throw Error("The tag field from the document descriptor is undefined.");o.custom?this.F[s]=o.custom:(this.F[s]=po(i,this.J),o.filter&&(typeof this.F[s]=="string"&&(this.F[s]=new String(this.F[s])),this.F[s].I=o.filter)),this.R[s]=i,this.tag.set(i,new Map)}}if(this.worker){this.fastupdate=!1,e=[];for(const s of this.index.values())s.then&&e.push(s);if(e.length){const s=this;return Promise.all(e).then(function(o){let i=0;for(const l of s.index.entries()){const a=l[0];l[1].then&&s.index.set(a,o[i++])}return s})}}else e.db&&(this.fastupdate=!1,this.mount(e.db))}F=Yt.prototype,F.mount=function(e){let t=this.field;if(this.tag)for(let s=0,o;s<this.R.length;s++){o=this.R[s];var n=void 0;this.index.set(o,n=new tt({},this.reg)),t===this.field&&(t=t.slice(0)),t.push(o),n.tag=this.tag.get(o)}n=[];const r={db:e.db,type:e.type,fastupdate:e.fastupdate};for(let s=0,o,i;s<t.length;s++){r.field=i=t[s],o=this.index.get(i);const l=new e.constructor(e.id,r);l.id=e.id,n[s]=l.mount(o),o.document=!0,s?o.bypass=!0:o.store=this.store}return this.db=!0,Promise.all(n)},F.commit=async function(e,t){const n=[];for(const r of this.index.values())n.push(r.commit(e,t));await Promise.all(n),this.reg.clear()},F.destroy=function(){const e=[];for(const t of this.index.values())e.push(t.destroy());return Promise.all(e)};function Dm(e,t){const n=new Map;let r=t.index||t.field||t;We(r)&&(r=[r]);for(let s=0,o,i;s<r.length;s++){if(o=r[s],We(o)||(i=o,o=o.field),i=Ur(i)?Object.assign({},e,i):e,this.worker){const l=new Kr(i);n.set(o,l)}this.worker||n.set(o,new tt(i,this.reg)),i.custom?this.D[s]=i.custom:(this.D[s]=po(o,this.J),i.filter&&(typeof this.D[s]=="string"&&(this.D[s]=new String(this.D[s])),this.D[s].I=i.filter)),this.field[s]=o}if(this.C){e=t.store,We(e)&&(e=[e]);for(let s=0,o,i;s<e.length;s++)o=e[s],i=o.field||o,o.custom?(this.C[s]=o.custom,o.custom.V=i):(this.C[s]=po(i,this.J),o.filter&&(typeof this.C[s]=="string"&&(this.C[s]=new String(this.C[s])),this.C[s].I=o.filter))}return n}function po(e,t){const n=e.split(":");let r=0;for(let s=0;s<n.length;s++)e=n[s],e[e.length-1]==="]"&&(e=e.substring(0,e.length-2))&&(t[r]=!0),e&&(n[r++]=e);return r<n.length&&(n.length=r),1<r?n:n[0]}F.append=function(e,t){return this.add(e,t,!0)},F.update=function(e,t){return this.remove(e).add(e,t)},F.remove=function(e){Ur(e)&&(e=Br(e,this.key));for(var t of this.index.values())t.remove(e,!0);if(this.reg.has(e)){if(this.tag&&!this.fastupdate)for(let n of this.tag.values())for(let r of n){t=r[0];const s=r[1],o=s.indexOf(e);-1<o&&(1<s.length?s.splice(o,1):n.delete(t))}this.store&&this.store.delete(e),this.reg.delete(e)}return this.cache&&this.cache.remove(e),this},F.clear=function(){const e=[];for(const t of this.index.values()){const n=t.clear();n.then&&e.push(n)}if(this.tag)for(const t of this.tag.values())t.clear();return this.store&&this.store.clear(),this.cache&&this.cache.clear(),e.length?Promise.all(e):this},F.contain=function(e){return this.db?this.index.get(this.field[0]).db.has(e):this.reg.has(e)},F.cleanup=function(){for(const e of this.index.values())e.cleanup();return this},F.get=function(e){return this.db?this.index.get(this.field[0]).db.enrich(e).then(function(t){return t[0]&&t[0].doc||null}):this.store.get(e)||null},F.set=function(e,t){return typeof e=="object"&&(t=e,e=Br(t,this.key)),this.store.set(e,t),this},F.searchCache=sh,F.export=function(e,t,n=0,r=0){if(n<this.field.length){const i=this.field[n];if((t=this.index.get(i).export(e,i,n,r=1))&&t.then){const l=this;return t.then(function(){return l.export(e,i,n+1)})}return this.export(e,i,n+1)}let s,o;switch(r){case 0:s="reg",o=Hf(this.reg),t=null;break;case 1:s="tag",o=this.tag&&Bf(this.tag,this.reg.size),t=null;break;case 2:s="doc",o=this.store&&Wl(this.store),t=null;break;default:return}return fo.call(this,e,t,s,o,n,r)},F.import=function(e,t){var n=e.split(".");n[n.length-1]==="json"&&n.pop();const r=2<n.length?n[0]:"";if(n=2<n.length?n[2]:n[1],this.worker&&r)return this.index.get(r).import(e);if(t){if(typeof t=="string"&&(t=JSON.parse(t)),r)return this.index.get(r).import(n,t);switch(n){case"reg":this.fastupdate=!1,this.reg=Wf(t,this.reg);for(let s=0,o;s<this.field.length;s++)o=this.index.get(this.field[s]),o.fastupdate=!1,o.reg=this.reg;if(this.worker){t=[];for(const s of this.index.values())t.push(s.import(e));return Promise.all(t)}break;case"tag":this.tag=Vf(t,this.tag);break;case"doc":this.store=Kl(t,this.store)}}},Vl(Yt.prototype);function sh(e,t,n){e=(typeof e=="object"?""+e.query:e).toLowerCase(),this.cache||(this.cache=new Xt);let r=this.cache.get(e);if(!r){if(r=this.search(e,t,n),r.then){const s=this;r.then(function(o){return s.cache.set(e,o),o})}this.cache.set(e,r)}return r}function Xt(e){this.limit=e&&e!==!0?e:1e3,this.cache=new Map,this.h=""}Xt.prototype.set=function(e,t){this.cache.set(this.h=e,t),this.cache.size>this.limit&&this.cache.delete(this.cache.keys().next().value)},Xt.prototype.get=function(e){const t=this.cache.get(e);return t&&this.h!==e&&(this.cache.delete(e),this.cache.set(this.h=e,t)),t},Xt.prototype.remove=function(e){for(const t of this.cache){const n=t[0];t[1].includes(e)&&this.cache.delete(n)}},Xt.prototype.clear=function(){this.cache.clear(),this.h=""};const oh={normalize:!1,numeric:!1,dedupe:!1},go={},Jl=new Map([["b","p"],["v","f"],["w","f"],["z","s"],["x","s"],["d","t"],["n","m"],["c","k"],["g","k"],["j","k"],["q","k"],["i","e"],["y","e"],["u","o"]]),ih=new Map([["ae","a"],["oe","o"],["sh","s"],["kh","k"],["th","t"],["ph","f"],["pf","f"]]),lh=[/([^aeo])h(.)/g,"$1$2",/([aeo])h([^aeo]|$)/g,"$1$2",/(.)\1+/g,"$1"],ah={a:"",e:"",i:"",o:"",u:"",y:"",b:1,f:1,p:1,v:1,c:2,g:2,j:2,k:2,q:2,s:2,x:2,z:2,ß:2,d:3,t:3,l:4,m:5,n:5,r:6};var uh={Exact:oh,Default:go,Normalize:go,LatinBalance:{mapper:Jl},LatinAdvanced:{mapper:Jl,matcher:ih,replacer:lh},LatinExtra:{mapper:Jl,replacer:lh.concat([/(?!^)[aeo]/g,""]),matcher:ih},LatinSoundex:{dedupe:!1,include:{letter:!0},finalize:function(e){for(let n=0;n<e.length;n++){var t=e[n];let r=t.charAt(0),s=ah[r];for(let o=1,i;o<t.length&&(i=t.charAt(o),i==="h"||i==="w"||!(i=ah[i])||i===s||(r+=i,s=i,r.length!==4));o++);e[n]=r}}},CJK:{split:""},LatinExact:oh,LatinDefault:go,LatinSimple:go};tt.prototype.remove=function(e,t){const n=this.reg.size&&(this.fastupdate?this.reg.get(e):this.reg.has(e));if(n){if(this.fastupdate){for(let r=0,s;r<n.length;r++)if(s=n[r])if(2>s.length)s.pop();else{const o=s.indexOf(e);o===n.length-1?s.pop():s.splice(o,1)}}else qr(this.map,e),this.depth&&qr(this.ctx,e);t||this.reg.delete(e)}return this.db&&(this.commit_task.push({del:e}),this.T&&dh(this)),this.cache&&this.cache.remove(e),this};function qr(e,t){let n=0;var r=typeof t>"u";if(e.constructor===Array){for(let s=0,o,i;s<e.length;s++)if((o=e[s])&&o.length)if(r)n++;else if(i=o.indexOf(t),0<=i){1<o.length?(o.splice(i,1),n++):delete e[s];break}else n++}else for(let s of e.entries()){r=s[0];const o=qr(s[1],t);o?n+=o:e.delete(r)}return n}const bm={memory:{resolution:1},performance:{resolution:3,fastupdate:!0,context:{depth:1,resolution:1}},match:{tokenize:"forward"},score:{resolution:9,context:{depth:2,resolution:3}}};tt.prototype.add=function(e,t,n,r){if(t&&(e||e===0)){if(!r&&!n&&this.reg.has(e))return this.update(e,t);if(t=this.encoder.encode(t),r=t.length){const u=se(),f=se(),h=this.depth,c=this.resolution;for(let m=0;m<r;m++){let v=t[this.rtl?r-1-m:m];var s=v.length;if(s&&(h||!f[v])){var o=this.score?this.score(t,v,m,null,0):mo(c,r,m),i="";switch(this.tokenize){case"full":if(2<s){for(let w=0,d;w<s;w++)for(o=s;o>w;o--){i=v.substring(w,o),d=this.rtl?s-1-w:w;var l=this.score?this.score(t,v,m,i,d):mo(c,r,m,s,d);Gr(this,f,i,l,e,n)}break}case"bidirectional":case"reverse":if(1<s){for(l=s-1;0<l;l--){i=v[this.rtl?s-1-l:l]+i;var a=this.score?this.score(t,v,m,i,l):mo(c,r,m,s,l);Gr(this,f,i,a,e,n)}i=""}case"forward":if(1<s){for(l=0;l<s;l++)i+=v[this.rtl?s-1-l:l],Gr(this,f,i,o,e,n);break}default:if(Gr(this,f,v,o,e,n),h&&1<r&&m<r-1){for(s=se(),i=this.U,o=v,l=Math.min(h+1,this.rtl?m+1:r-m),s[o]=1,a=1;a<l;a++)if((v=t[this.rtl?r-1-m-a:m+a])&&!s[v]){s[v]=1;const w=this.score?this.score(t,o,m,v,a-1):mo(i+(r/2>i?0:1),r,m,l-1,a-1),d=this.bidirectional&&v>o;Gr(this,u,d?o:v,w,e,n,d?v:o)}}}}}this.fastupdate||this.reg.add(e)}else t=""}return this.db&&(t||this.commit_task.push({del:e}),this.T&&dh(this)),this};function Gr(e,t,n,r,s,o,i){let l=i?e.ctx:e.map,a;if((!t[n]||i&&!(a=t[n])[i])&&(i?(t=a||(t[n]=se()),t[i]=1,(a=l.get(i))?l=a:l.set(i,l=new Map)):t[n]=1,(a=l.get(n))?l=a:l.set(n,l=a=[]),l=l[r]||(l[r]=[]),!o||!l.includes(s))){if(l.length===2**31-1){if(t=new Jt(l),e.fastupdate)for(let u of e.reg.values())u.includes(l)&&(u[u.indexOf(l)]=t);a[r]=l=t}l.push(s),e.fastupdate&&((r=e.reg.get(s))?r.push(l):e.reg.set(s,[l]))}}function mo(e,t,n,r,s){return n&&1<e?t+(r||0)<=e?n+(s||0):(e-1)/(t+(r||0))*(n+(s||0))+1|0:0}tt.prototype.search=function(e,t,n){n||(t||typeof e!="object"?typeof t=="object"&&(n=t,t=0):(n=e,e=""));let r=[],s,o,i,l=0,a,u,f,h,c;n?(e=n.query||e,t=n.limit||t,l=n.offset||0,o=n.context,i=n.suggest,c=(a=n.resolve!==!1)&&n.enrich,f=n.boost,h=n.resolution,u=this.db&&n.tag):a=this.resolve;let m=this.encoder.encode(e);if(s=m.length,t=t||(a?100:0),s===1)return fh.call(this,m[0],"",t,l,a,c,u);if(o=this.depth&&o!==!1,s===2&&o&&!i)return fh.call(this,m[1],m[0],t,l,a,c,u);let v=se(),w=0,d;if(o&&(d=m[0],w=1),h||h===0||(h=d?this.U:this.resolution),this.db){if(this.db.search&&(e=this.db.search(this,m,t,l,i,a,c,u),e!==!1))return e;const p=this;return async function(){for(let g,S;w<s;w++){if((S=m[w])&&!v[S]){if(v[S]=1,g=await Yl(p,S,d,0,0,!1,!1),g=hh(g,r,i,h)){r=g;break}d&&(i&&g&&r.length||(d=S))}i&&d&&w===s-1&&!r.length&&(h=p.resolution,d="",w=-1,v=se())}return ch(r,h,t,l,i,f,a)}()}for(let p,g;w<s;w++){if((g=m[w])&&!v[g]){if(v[g]=1,p=Yl(this,g,d,0,0,!1,!1),p=hh(p,r,i,h)){r=p;break}d&&(i&&p&&r.length||(d=g))}i&&d&&w===s-1&&!r.length&&(h=this.resolution,d="",w=-1,v=se())}return ch(r,h,t,l,i,f,a)};function ch(e,t,n,r,s,o,i){let l=e.length,a=e;if(1<l)a=Jf(e,t,n,r,s,o,i);else if(l===1)return i?Ql.call(null,e[0],n,r):new J(e[0]);return i?a:new J(a)}function fh(e,t,n,r,s,o,i){return e=Yl(this,e,t,n,r,s,o,i),this.db?e.then(function(l){return s?l||[]:new J(l)}):e&&e.length?s?Ql.call(this,e,n,r):new J(e):s?[]:new J}function hh(e,t,n,r){let s=[];if(e&&e.length){if(e.length<=r){t.push(e);return}for(let o=0,i;o<r;o++)(i=e[o])&&(s[o]=i);if(s.length){t.push(s);return}}if(!n)return s}function Yl(e,t,n,r,s,o,i,l){let a;return n&&(a=e.bidirectional&&t>n)&&(a=n,n=t,t=a),e.db?e.db.get(t,n,r,s,o,i,l):(e=n?(e=e.ctx.get(n))&&e.get(t):e.map.get(t),e)}function tt(e,t){if(!this||this.constructor!==tt)return new tt(e);if(e){var n=We(e)?e:e.preset;n&&(e=Object.assign({},bm[n],e))}else e={};n=e.context;const r=n===!0?{depth:1}:n||{},s=We(e.encoder)?uh[e.encoder]:e.encode||e.encoder||{};this.encoder=s.encode?s:typeof s=="object"?new Vr(s):{encode:s},this.resolution=e.resolution||9,this.tokenize=n=(n=e.tokenize)&&n!=="default"&&n!=="exact"&&n||"strict",this.depth=n==="strict"&&r.depth||0,this.bidirectional=r.bidirectional!==!1,this.fastupdate=!!e.fastupdate,this.score=e.score||null,(n=e.keystore||0)&&(this.keystore=n),this.map=n?new et(n):new Map,this.ctx=n?new et(n):new Map,this.reg=t||(this.fastupdate?n?new et(n):new Map:n?new Ke(n):new Set),this.U=r.resolution||3,this.rtl=s.rtl||e.rtl||!1,this.cache=(n=e.cache||null)&&new Xt(n),this.resolve=e.resolve!==!1,(n=e.db)&&(this.db=this.mount(n)),this.T=e.commit!==!1,this.commit_task=[],this.commit_timer=null,this.priority=e.priority||4}F=tt.prototype,F.mount=function(e){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),e.mount(this)},F.commit=function(e,t){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.commit(this,e,t)},F.destroy=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.destroy()};function dh(e){e.commit_timer||(e.commit_timer=setTimeout(function(){e.commit_timer=null,e.db.commit(e,void 0,void 0)},1))}F.clear=function(){return this.map.clear(),this.ctx.clear(),this.reg.clear(),this.cache&&this.cache.clear(),this.db&&(this.commit_timer&&clearTimeout(this.commit_timer),this.commit_timer=null,this.commit_task=[{clear:!0}]),this},F.append=function(e,t){return this.add(e,t,!0)},F.contain=function(e){return this.db?this.db.has(e):this.reg.has(e)},F.update=function(e,t){const n=this,r=this.remove(e);return r&&r.then?r.then(()=>n.add(e,t)):this.add(e,t)},F.cleanup=function(){return this.fastupdate?(qr(this.map),this.depth&&qr(this.ctx),this):this},F.searchCache=sh,F.export=function(e,t,n=0,r=0){let s,o;switch(r){case 0:s="reg",o=Hf(this.reg);break;case 1:s="cfg",o=null;break;case 2:s="map",o=Wl(this.map,this.reg.size);break;case 3:s="ctx",o=Bf(this.ctx,this.reg.size);break;default:return}return fo.call(this,e,t,s,o,n,r)},F.import=function(e,t){if(t)switch(typeof t=="string"&&(t=JSON.parse(t)),e=e.split("."),e[e.length-1]==="json"&&e.pop(),e.length===3&&e.shift(),e=1<e.length?e[1]:e[0],e){case"reg":this.fastupdate=!1,this.reg=Wf(t,this.reg);break;case"map":this.map=Kl(t,this.map);break;case"ctx":this.ctx=Vf(t,this.ctx)}},F.serialize=function(e=!0){let t="",n="",r="";if(this.reg.size){let o;for(var s of this.reg.keys())o||(o=typeof s),t+=(t?",":"")+(o==="string"?'"'+s+'"':s);t="index.reg=new Set(["+t+"]);",n=Kf(this.map,o),n="index.map=new Map(["+n+"]);";for(const i of this.ctx.entries()){s=i[0];let l=Kf(i[1],o);l="new Map(["+l+"])",l='["'+s+'",'+l+"]",r+=(r?",":"")+l}r="index.ctx=new Map(["+r+"]);"}return e?"function inject(index){"+t+n+r+"}":t+n+r},Vl(tt.prototype);const ph=typeof window<"u"&&(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),yo=["map","ctx","tag","reg","cfg"],Zt=se();function gh(e,t={}){if(!this)return new gh(e,t);typeof e=="object"&&(t=e,e=e.name),e||console.info("Default storage space was used, because a name was not passed."),this.id="flexsearch"+(e?":"+e.toLowerCase().replace(/[^a-z0-9_\-]/g,""):""),this.field=t.field?t.field.toLowerCase().replace(/[^a-z0-9_\-]/g,""):"",this.type=t.type,this.fastupdate=this.support_tag_search=!1,this.db=null,this.h={}}F=gh.prototype,F.mount=function(e){return e.encoder?(e.db=this,this.open()):e.mount(this)},F.open=function(){if(this.db)return this.db;let e=this;navigator.storage&&navigator.storage.persist(),Zt[e.id]||(Zt[e.id]=[]),Zt[e.id].push(e.field);const t=ph.open(e.id,1);return t.onupgradeneeded=function(){const n=e.db=this.result;for(let r=0,s;r<yo.length;r++){s=yo[r];for(let o=0,i;o<Zt[e.id].length;o++)i=Zt[e.id][o],n.objectStoreNames.contains(s+(s!=="reg"&&i?":"+i:""))||n.createObjectStore(s+(s!=="reg"&&i?":"+i:""))}},e.db=Rt(t,function(n){e.db=n,e.db.onversionchange=function(){e.close()}})},F.close=function(){this.db&&this.db.close(),this.db=null},F.destroy=function(){const e=ph.deleteDatabase(this.id);return Rt(e)},F.clear=function(){const e=[];for(let n=0,r;n<yo.length;n++){r=yo[n];for(let s=0,o;s<Zt[this.id].length;s++)o=Zt[this.id][s],e.push(r+(r!=="reg"&&o?":"+o:""))}const t=this.db.transaction(e,"readwrite");for(let n=0;n<e.length;n++)t.objectStore(e[n]).clear();return Rt(t)},F.get=function(e,t,n=0,r=0,s=!0,o=!1){e=this.db.transaction((t?"ctx":"map")+(this.field?":"+this.field:""),"readonly").objectStore((t?"ctx":"map")+(this.field?":"+this.field:"")).get(t?t+":"+e:e);const i=this;return Rt(e).then(function(l){let a=[];if(!l||!l.length)return a;if(s){if(!n&&!r&&l.length===1)return l[0];for(let u=0,f;u<l.length;u++)if((f=l[u])&&f.length){if(r>=f.length){r-=f.length;continue}const h=n?r+Math.min(f.length-r,n):f.length;for(let c=r;c<h;c++)a.push(f[c]);if(r=0,a.length===n)break}return o?i.enrich(a):a}return l})},F.tag=function(e,t=0,n=0,r=!1){e=this.db.transaction("tag"+(this.field?":"+this.field:""),"readonly").objectStore("tag"+(this.field?":"+this.field:"")).get(e);const s=this;return Rt(e).then(function(o){return!o||!o.length||n>=o.length?[]:!t&&!n?o:(o=o.slice(n,n+t),r?s.enrich(o):o)})},F.enrich=function(e){typeof e!="object"&&(e=[e]);const t=this.db.transaction("reg","readonly").objectStore("reg"),n=[];for(let r=0;r<e.length;r++)n[r]=Rt(t.get(e[r]));return Promise.all(n).then(function(r){for(let s=0;s<r.length;s++)r[s]={id:e[s],doc:r[s]?JSON.parse(r[s]):null};return r})},F.has=function(e){return e=this.db.transaction("reg","readonly").objectStore("reg").getKey(e),Rt(e).then(function(t){return!!t})},F.search=null,F.info=function(){},F.transaction=function(e,t,n){e+=e!=="reg"&&this.field?":"+this.field:"";let r=this.h[e+":"+t];if(r)return n.call(this,r);let s=this.db.transaction(e,t);this.h[e+":"+t]=r=s.objectStore(e);const o=n.call(this,r);return this.h[e+":"+t]=null,Rt(s).finally(function(){return s=r=null,o})},F.commit=async function(e,t,n){if(t)await this.clear(),e.commit_task=[];else{let r=e.commit_task;e.commit_task=[];for(let s=0,o;s<r.length;s++)if(o=r[s],o.clear){await this.clear(),t=!0;break}else r[s]=o.del;t||(n||(r=r.concat(Em(e.reg))),r.length&&await this.remove(r))}e.reg.size&&(await this.transaction("map","readwrite",function(r){for(const s of e.map){const o=s[0],i=s[1];i.length&&(t?r.put(i,o):r.get(o).onsuccess=function(){let l=this.result;var a;if(l&&l.length){const u=Math.max(l.length,i.length);for(let f=0,h,c;f<u;f++)if((c=i[f])&&c.length){if((h=l[f])&&h.length)for(a=0;a<c.length;a++)h.push(c[a]);else l[f]=c;a=1}}else l=i,a=1;a&&r.put(l,o)})}}),await this.transaction("ctx","readwrite",function(r){for(const s of e.ctx){const o=s[0],i=s[1];for(const l of i){const a=l[0],u=l[1];u.length&&(t?r.put(u,o+":"+a):r.get(o+":"+a).onsuccess=function(){let f=this.result;var h;if(f&&f.length){const c=Math.max(f.length,u.length);for(let m=0,v,w;m<c;m++)if((w=u[m])&&w.length){if((v=f[m])&&v.length)for(h=0;h<w.length;h++)v.push(w[h]);else f[m]=w;h=1}}else f=u,h=1;h&&r.put(f,o+":"+a)})}}}),e.store?await this.transaction("reg","readwrite",function(r){for(const s of e.store){const o=s[0],i=s[1];r.put(typeof i=="object"?JSON.stringify(i):1,o)}}):e.bypass||await this.transaction("reg","readwrite",function(r){for(const s of e.reg.keys())r.put(1,s)}),e.tag&&await this.transaction("tag","readwrite",function(r){for(const s of e.tag){const o=s[0],i=s[1];i.length&&(r.get(o).onsuccess=function(){let l=this.result;l=l&&l.length?l.concat(i):i,r.put(l,o)})}}),e.map.clear(),e.ctx.clear(),e.tag&&e.tag.clear(),e.store&&e.store.clear(),e.document||e.reg.clear())};function Xl(e,t,n){const r=e.value;let s,o=0;for(let i=0,l;i<r.length;i++){if(l=n?r:r[i]){for(let a=0,u,f;a<t.length;a++)if(f=t[a],u=l.indexOf(f),0<=u)if(s=1,1<l.length)l.splice(u,1);else{r[i]=[];break}o+=l.length}if(n)break}o?s&&e.update(r):e.delete(),e.continue()}F.remove=function(e){return typeof e!="object"&&(e=[e]),Promise.all([this.transaction("map","readwrite",function(t){t.openCursor().onsuccess=function(){const n=this.result;n&&Xl(n,e)}}),this.transaction("ctx","readwrite",function(t){t.openCursor().onsuccess=function(){const n=this.result;n&&Xl(n,e)}}),this.transaction("tag","readwrite",function(t){t.openCursor().onsuccess=function(){const n=this.result;n&&Xl(n,e,!0)}}),this.transaction("reg","readwrite",function(t){for(let n=0;n<e.length;n++)t.delete(e[n])})])};function Rt(e,t){return new Promise((n,r)=>{e.onsuccess=e.oncomplete=function(){t&&t(this.result),t=null,n(this.result)},e.onerror=e.onblocked=r,e=null})}const vo={Encoder:Vr,Document:Yt},Um=uh,Bm={finalize:e=>{let t=[];for(const n of e)t.push(...Hm(n));return t}};function Vm(e){return e>=19968&&e<=40959||e>=12352&&e<=12543||e>=44032&&e<=55203||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=191471||e>=196608&&e<=205743||e>=191472&&e<=192095||e>=63744&&e<=64255||e>=194560&&e<=195103}function Hm(e){const t=[];let n="";for(const r of e){const s=r.codePointAt(0);Vm(s)?(n&&(t.push(n),n=""),t.push(r)):n+=r}return n&&t.push(n),t}const Zl=new vo.Encoder(Um.Default,Bm);class Wm{constructor({adminUrl:t,apiKey:n,dir:r}){Fd(this,Y);const s=r==="rtl",o=r==="rtl"?"reverse":"forward";this.apiUrl=t,this.apiKey=n,this.postsIndex=new vo.Document({tokenize:o,rtl:s,document:{id:"id",index:["title","excerpt"],store:!0},encoder:Zl}),this.authorsIndex=new vo.Document({tokenize:o,rtl:s,document:{id:"id",index:["name"],store:!0},encoder:Zl}),this.tagsIndex=new vo.Document({tokenize:o,rtl:s,document:{id:"id",index:["name"],store:!0},encoder:Zl}),this.init=this.init.bind(this),this.search=this.search.bind(this)}async init(){await _e(this,Y,Id).call(this),await _e(this,Y,Dd).call(this),await _e(this,Y,Bd).call(this)}search(t){const n=this.postsIndex.search(t,{enrich:!0}),r=this.authorsIndex.search(t,{enrich:!0}),s=this.tagsIndex.search(t,{enrich:!0});return{posts:_e(this,Y,Ro).call(this,n),authors:_e(this,Y,Ro).call(this,r),tags:_e(this,Y,Ro).call(this,s)}}}Y=new WeakSet,Id=async function(){const t=await _e(this,Y,zd).call(this);t.length>0&&_e(this,Y,Md).call(this,t)},zd=async function(){try{const t=`${this.apiUrl}/ghost/api/content/search-index/posts/?key=${this.apiKey}`;return(await(await fetch(t)).json()).posts}catch(t){return console.error("Error fetching posts:",t),[]}},Md=function(t){t.forEach(n=>{this.postsIndex.add(n)})},Dd=async function(){const t=await _e(this,Y,bd).call(this);t.length>0&&_e(this,Y,Ud).call(this,t)},bd=async function(){try{const t=`${this.apiUrl}/ghost/api/content/search-index/authors/?key=${this.apiKey}`;return(await(await fetch(t)).json()).authors}catch(t){return console.error("Error fetching authors:",t),[]}},Ud=function(t){t.forEach(n=>{this.authorsIndex.add(n)})},Bd=async function(){const t=await _e(this,Y,Vd).call(this);t.length>0&&_e(this,Y,Hd).call(this,t)},Vd=async function(){try{const t=`${this.apiUrl}/ghost/api/content/search-index/tags/?key=${this.apiKey}`;return(await(await fetch(t)).json()).tags}catch(t){return console.error("Error fetching tags:",t),[]}},Hd=function(t){t.forEach(n=>{this.tagsIndex.add(n)})},Ro=function(t){const n=[],r={};return t.forEach(s=>{s.result.forEach(o=>{r[o.id]||(n.push(o.doc),r[o.id]=!0)})}),n};var In={exports:{}};const Km={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},qm={Authors:"الكتّاب",Cancel:"إلغاء","No matches found":"لا يوجد نتائج مطابقة",Posts:"منشورات","Search posts, tags and authors":"قم بالبحث عن المنشورات، الوسوم و الكتّاب","Show more results":"اظهر المزيد من النتائج",Tags:"الوسوم"},Gm={Authors:"Автори",Cancel:"Отказ","No matches found":"Няма съвпадения",Posts:"Публикации","Search posts, tags and authors":"Търсене в публикации, етикети и автори","Show more results":"Покажи още резултати",Tags:"Етикети"},Qm={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Jm={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Ym={Authors:"Autors",Cancel:"Cancel·la","No matches found":"No s'ha trobat cap resultat",Posts:"Articles","Search posts, tags and authors":"Cerca articles, etiquetes i autors","Show more results":"Mostra més resultats",Tags:"Etiquetes"},Xm={Authors:"Autoři",Cancel:"Zrušit","No matches found":"Nenalezeno",Posts:"Články","Search posts, tags and authors":"Prohledat články, štítky a autory","Show more results":"Zobrazit více výsledků",Tags:"Štítky"},Zm={Authors:"Forfattere",Cancel:"Annuller","No matches found":"Ingen resultater fundet",Posts:"Indlæg","Search posts, tags and authors":"Søg i indlæg, tags og forfattere","Show more results":"Vis flere resultater",Tags:"Tags"},ey={Authors:"Autor*innen",Cancel:"Abbrechen","No matches found":"Keine Treffer gefunden",Posts:"Posts","Search posts, tags and authors":"Posts, Tags und Autor*innen durchsuchen","Show more results":"Mehr Ergebnisse anzeigen",Tags:"Tags"},ty={Authors:"Autoren",Cancel:"Abbrechen","No matches found":"Keine Treffer gefunden",Posts:"Beiträge","Search posts, tags and authors":"Nach Posts, Tags und Autoren suchen","Show more results":"Mehr Ergebnisse anzeigen",Tags:"Tags"},ny={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},ry={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},sy={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},oy={Authors:"Autores",Cancel:"Cancelar","No matches found":"No se encontraron resultados",Posts:"Publicaciones","Search posts, tags and authors":"Buscar publicaciones, etiquetas y autores","Show more results":"Mostrar más resultados",Tags:"Etiquetas"},iy={Authors:"Autorid",Cancel:"Tühista","No matches found":"Vasteid ei leitud",Posts:"Postitused","Search posts, tags and authors":"Otsi postitusi, silte ja autoreid","Show more results":"Näita rohkem tulemusi",Tags:"Sildid"},ly={Authors:"Autoreak",Cancel:"Utzi","No matches found":"Ez da bat datorren ezer topatu",Posts:"Artikuluak","Search posts, tags and authors":"Bilatu artikuluak, etiketak eta autoreak","Show more results":"Erakutsi emaitza gehiago",Tags:"Etiketak"},ay={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},uy={Authors:"Kirjoittajat",Cancel:"Peruuta","No matches found":"Ei hakutuloksia",Posts:"Kirjoitukset","Search posts, tags and authors":"Etsi kirjoituksia, tunnisteita ja kirjoittajia","Show more results":"Näytä enemmän tuloksia",Tags:"Tunnisteet"},cy={Authors:"Auteurs",Cancel:"Annuler","No matches found":"Aucun résultat trouvé",Posts:"Articles","Search posts, tags and authors":"Rechercher des articles, des catégories et des auteurs","Show more results":"Plus de résultats",Tags:"Catégories"},fy={Authors:"Ùghdaran",Cancel:"Sguir dheth","No matches found":"Cha deach dad a lorg a fhreagras ris na lorg thu",Posts:"Postaichean","Search posts, tags and authors":"Lorg sna postaichean, tagaichean agus ùghdaran","Show more results":"Seall barrachd thoraidhean",Tags:"Tagaichean"},hy={Authors:"מחברים",Cancel:"ביטול","No matches found":"לא נמצאו התאמות",Posts:"פוסטים","Search posts, tags and authors":"חיפוש פוסטים, תגיות ומחברים","Show more results":"הצגת תוצאות נוספות",Tags:"תגיות"},dy={Authors:"लेखक",Cancel:"रद्द करें","No matches found":"कोई मैच नहीं मिला",Posts:"पोस्ट","Search posts, tags and authors":"पोस्ट, टैग और लेखक की तलाश करें","Show more results":"और परिणाम दिखाएं",Tags:"टैग"},py={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},gy={Authors:"Szerzők",Cancel:"Mégse","No matches found":"Nincs találat",Posts:"Bejegyzések","Search posts, tags and authors":"Keresés a bejegyzések, a címkék és a szerzők között","Show more results":"További találatok megjelenítése",Tags:"Címkék"},my={Authors:"Penulis",Cancel:"Batalkan","No matches found":"Tidak ada hasil yang ditemukan",Posts:"Postingan","Search posts, tags and authors":"Cari postingan, tag, dan penulis","Show more results":"Tampilkan lebih banyak hasil",Tags:"Tag"},yy={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},vy={Authors:"Autori",Cancel:"Annulla","No matches found":"Nessun risultato trovato",Posts:"Articoli","Search posts, tags and authors":"Cerca articoli, tag e autori","Show more results":"Mostra più risultati",Tags:"Tag"},wy={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Sy={Authors:"작성자",Cancel:"취소","No matches found":"일치하는 결과가 없어요",Posts:"게시물","Search posts, tags and authors":"게시물, 태그, 작성자 검색","Show more results":"더 많은 결과 보기",Tags:"태그"},xy={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Cy={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},$y={Authors:"Autori",Cancel:"Atcelt","No matches found":"Nav atrasta neviena atbilstība",Posts:"Ziņas","Search posts, tags and authors":"Meklēt ziņas, atzīmes un autorus","Show more results":"Rādīt vairāk rezultātu",Tags:"Tagi"},ky={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Py={Authors:"Нийтлэгчид",Cancel:"Цуцлах","No matches found":"Тохирох хайлтын үр дүн олдсонгүй",Posts:"Нийтлэлүүд","Search posts, tags and authors":"Нийтлэл, ангилал, нийтлэгчдээр хайх","Show more results":"Илүү олон үр дүн харуулах",Tags:"Ангилалууд"},Ey={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},jy={Authors:"Forfattere",Cancel:"Avbryt","No matches found":"Ingen treff funnet",Posts:"Innlegg","Search posts, tags and authors":"Søk i innlegg, etiketter og forfattere","Show more results":"Vis flere resultater",Tags:"Etiketter"},Ay={Authors:"लेखकहरू",Cancel:"रद्द गर्नुहोस्","No matches found":"कुनै परिणाम भेटिएन",Posts:"पोस्टहरू","Search posts, tags and authors":"पोस्टहरू, ट्यागहरू र लेखकहरू खोज्नुहोस्","Show more results":"थप परिणामहरू देखाउनुहोस्",Tags:"ट्यागहरू"},Ty={Authors:"Auteurs",Cancel:"Annuleren","No matches found":"Geen resultaten gevonden",Posts:"Berichten","Search posts, tags and authors":"Zoek berichten, tags en auteurs","Show more results":"Meer resultaten weergeven",Tags:"Tags"},Oy={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Ny={Authors:"ਲੇਖਕ",Cancel:"ਰੱਦ ਕਰੋ","No matches found":"ਕੋਈ ਮੇਲ ਨਹੀਂ ਮਿਲਿਆ",Posts:"ਪੋਸਟਾਂ","Search posts, tags and authors":"ਪੋਸਟਾਂ, ਟੈਗ ਅਤੇ ਲੇਖਕ ਖੋਜੋ","Show more results":"ਹੋਰ ਨਤੀਜੇ ਦਿਖਾਓ",Tags:"ਟੈਗ"},Ly={Authors:"Autorzy",Cancel:"Anuluj","No matches found":"Nie znaleziono dopasowań",Posts:"Posty","Search posts, tags and authors":"Szukaj postów, tagów lub autorów","Show more results":"Pokaż więcej wyników",Tags:"Tagi"},_y={Authors:"Autores",Cancel:"Cancelar","No matches found":"Nenhum resultado encontrado",Posts:"Publicações","Search posts, tags and authors":"Procurar publicações, marcadores e autores","Show more results":"Mostrar mais resultados",Tags:"Marcadores"},Ry={Authors:"Autores",Cancel:"Cancelar","No matches found":"Nenhum resultado encontrado",Posts:"Publicações","Search posts, tags and authors":"Buscar posts, tags e autores","Show more results":"Mostrar mais resultados",Tags:"Tags"},Fy={Authors:"Autori",Cancel:"Anulează","No matches found":"Nu s-au găsit rezultate",Posts:"Postări","Search posts, tags and authors":"Caută postări, etichete și autori","Show more results":"Afișează mai multe rezultate",Tags:"Etichete"},Iy={Authors:"Авторы",Cancel:"Отмена","No matches found":"Совпадений не найдено",Posts:"Записи","Search posts, tags and authors":"Поиск по записям, тегам и авторам","Show more results":"Показать больше результатов",Tags:"Теги"},zy={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},My={Authors:"Autori",Cancel:"Zrušiť","No matches found":"Nenašli sa žiadne výsledky",Posts:"Príspevky","Search posts, tags and authors":"Vyhľadajte príspevky, tagy a autorov","Show more results":"Zobraziť viac výsledkov",Tags:"Tagy"},Dy={Authors:"Avtorji",Cancel:"Prekliči","No matches found":"Ni najdenih zadetkov",Posts:"Članki","Search posts, tags and authors":"Iščite članke, oznake in avtorje","Show more results":"Prikaži več rezultatov",Tags:"Oznake"},by={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Uy={Authors:"Autori",Cancel:"Otkažite","No matches found":"Nema rezultata",Posts:"Objave","Search posts, tags and authors":"Pretražite objave, tag-ove i autore","Show more results":"Prikažite više rezultata",Tags:"Tag-ovi"},By={Authors:"Аутори",Cancel:"Откажите","No matches found":"Нема резултата",Posts:"Објаве","Search posts, tags and authors":"Претражите објаве, tag-ове и ауторе","Show more results":"Прикажите више резултата",Tags:"Tag-ови"},Vy={Authors:"Författare",Cancel:"Avbryt","No matches found":"Inga träffar hittade",Posts:"Inlägg","Search posts, tags and authors":"Sök inlägg, taggar och författare","Show more results":"Visa fler resultat",Tags:"Taggar"},Hy={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Wy={Authors:"ஆசிரியர்கள்",Cancel:"ரத்து செய்","No matches found":"பொருத்தங்கள் எதுவும் இல்லை",Posts:"பதிவுகள்","Search posts, tags and authors":"பதிவுகள், குறிச்சொற்கள் மற்றும் ஆசிரியர்களைத் தேடுங்கள்","Show more results":"மேலும் முடிவுகளைக் காட்டு",Tags:"குறிச்சொற்கள்"},Ky={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},qy={Authors:"Yazarlar",Cancel:"İptal","No matches found":"Eşleşme bulunamadı",Posts:"Yazılar","Search posts, tags and authors":"Yazıları, etiketleri ve yazarları ara","Show more results":"Daha fazla sonuç göster",Tags:"Etiketler"},Gy={Authors:"Автори",Cancel:"Скасувати","No matches found":"Збігів не знайдено",Posts:"Публікації","Search posts, tags and authors":"Шукайте публікацій, теги та авторів","Show more results":"Показати більше результатів",Tags:"Теги"},Qy={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Jy={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Yy={Authors:"Tác giả",Cancel:"Hủy","No matches found":"Không tìm thấy",Posts:"Bài viết","Search posts, tags and authors":"Tìm bài viết, thẻ & tác giả","Show more results":"Xem thêm kết quả",Tags:"Thẻ"},Xy={Authors:"作者",Cancel:"取消","No matches found":"未找到匹配项",Posts:"文章","Search posts, tags and authors":"搜索文章、标签和作者","Show more results":"显示更多结果",Tags:"标签"},Zy={Authors:"作者",Cancel:"取消","No matches found":"無相符結果",Posts:"文章","Search posts, tags and authors":"搜尋文章、標籤與作者","Show more results":"更多結果",Tags:"標籤"};var mh;function yh(){return mh||(mh={"/ghost/i18n/locales/af/search.json":function(){return Km},"/ghost/i18n/locales/ar/search.json":function(){return qm},"/ghost/i18n/locales/bg/search.json":function(){return Gm},"/ghost/i18n/locales/bn/search.json":function(){return Qm},"/ghost/i18n/locales/bs/search.json":function(){return Jm},"/ghost/i18n/locales/ca/search.json":function(){return Ym},"/ghost/i18n/locales/cs/search.json":function(){return Xm},"/ghost/i18n/locales/da/search.json":function(){return Zm},"/ghost/i18n/locales/de/search.json":function(){return ey},"/ghost/i18n/locales/de-CH/search.json":function(){return ty},"/ghost/i18n/locales/el/search.json":function(){return ny},"/ghost/i18n/locales/en/search.json":function(){return ry},"/ghost/i18n/locales/eo/search.json":function(){return sy},"/ghost/i18n/locales/es/search.json":function(){return oy},"/ghost/i18n/locales/et/search.json":function(){return iy},"/ghost/i18n/locales/eu/search.json":function(){return ly},"/ghost/i18n/locales/fa/search.json":function(){return ay},"/ghost/i18n/locales/fi/search.json":function(){return uy},"/ghost/i18n/locales/fr/search.json":function(){return cy},"/ghost/i18n/locales/gd/search.json":function(){return fy},"/ghost/i18n/locales/he/search.json":function(){return hy},"/ghost/i18n/locales/hi/search.json":function(){return dy},"/ghost/i18n/locales/hr/search.json":function(){return py},"/ghost/i18n/locales/hu/search.json":function(){return gy},"/ghost/i18n/locales/id/search.json":function(){return my},"/ghost/i18n/locales/is/search.json":function(){return yy},"/ghost/i18n/locales/it/search.json":function(){return vy},"/ghost/i18n/locales/ja/search.json":function(){return wy},"/ghost/i18n/locales/ko/search.json":function(){return Sy},"/ghost/i18n/locales/kz/search.json":function(){return xy},"/ghost/i18n/locales/lt/search.json":function(){return Cy},"/ghost/i18n/locales/lv/search.json":function(){return $y},"/ghost/i18n/locales/mk/search.json":function(){return ky},"/ghost/i18n/locales/mn/search.json":function(){return Py},"/ghost/i18n/locales/ms/search.json":function(){return Ey},"/ghost/i18n/locales/nb/search.json":function(){return jy},"/ghost/i18n/locales/ne/search.json":function(){return Ay},"/ghost/i18n/locales/nl/search.json":function(){return Ty},"/ghost/i18n/locales/nn/search.json":function(){return Oy},"/ghost/i18n/locales/pa/search.json":function(){return Ny},"/ghost/i18n/locales/pl/search.json":function(){return Ly},"/ghost/i18n/locales/pt/search.json":function(){return _y},"/ghost/i18n/locales/pt-BR/search.json":function(){return Ry},"/ghost/i18n/locales/ro/search.json":function(){return Fy},"/ghost/i18n/locales/ru/search.json":function(){return Iy},"/ghost/i18n/locales/si/search.json":function(){return zy},"/ghost/i18n/locales/sk/search.json":function(){return My},"/ghost/i18n/locales/sl/search.json":function(){return Dy},"/ghost/i18n/locales/sq/search.json":function(){return by},"/ghost/i18n/locales/sr/search.json":function(){return Uy},"/ghost/i18n/locales/sr-Cyrl/search.json":function(){return By},"/ghost/i18n/locales/sv/search.json":function(){return Vy},"/ghost/i18n/locales/sw/search.json":function(){return Hy},"/ghost/i18n/locales/ta/search.json":function(){return Wy},"/ghost/i18n/locales/th/search.json":function(){return Ky},"/ghost/i18n/locales/tr/search.json":function(){return qy},"/ghost/i18n/locales/uk/search.json":function(){return Gy},"/ghost/i18n/locales/ur/search.json":function(){return Qy},"/ghost/i18n/locales/uz/search.json":function(){return Jy},"/ghost/i18n/locales/vi/search.json":function(){return Yy},"/ghost/i18n/locales/zh/search.json":function(){return Xy},"/ghost/i18n/locales/zh-Hant/search.json":function(){return Zy}})}function en(e){function t(n){var r=vh(n,e);if(r!==null)return yh()[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=vh(n,e);return r!==null?r:require.resolve(n)},t}function vh(e,t){var n=e0(e);e=wo(e);var r;e[0]==="/"&&(t="");for(var s=yh(),o=["",".js",".json"];n?r=wo(t+"/node_modules/"+e):r=wo(t+"/"+e),!r.endsWith("/..");){for(var i=0;i<o.length;i++){var l=r+o[i];if(s[l])return l}if(!n)break;var a=wo(t+"/..");if(a===t)break;t=a}return null}function e0(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 wo(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 Qr={exports:{}};const z=e=>typeof e=="string",Jr=()=>{let e,t;const n=new Promise((r,s)=>{e=r,t=s});return n.resolve=e,n.reject=t,n},wh=e=>e==null?"":""+e,t0=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},n0=/###/g,Sh=e=>e&&e.indexOf("###")>-1?e.replace(n0,"."):e,xh=e=>!e||z(e),Yr=(e,t,n)=>{const r=z(t)?t.split("."):t;let s=0;for(;s<r.length-1;){if(xh(e))return{};const o=Sh(r[s]);!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++s}return xh(e)?{}:{obj:e,k:Sh(r[s])}},Ch=(e,t,n)=>{const{obj:r,k:s}=Yr(e,t,Object);if(r!==void 0||t.length===1){r[s]=n;return}let o=t[t.length-1],i=t.slice(0,t.length-1),l=Yr(e,i,Object);for(;l.obj===void 0&&i.length;)o=`${i[i.length-1]}.${o}`,i=i.slice(0,i.length-1),l=Yr(e,i,Object),l&&l.obj&&typeof l.obj[`${l.k}.${o}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${o}`]=n},r0=(e,t,n,r)=>{const{obj:s,k:o}=Yr(e,t,Object);s[o]=s[o]||[],s[o].push(n)},So=(e,t)=>{const{obj:n,k:r}=Yr(e,t);if(n)return n[r]},s0=(e,t,n)=>{const r=So(e,n);return r!==void 0?r:So(t,n)},$h=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?z(e[r])||e[r]instanceof String||z(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):$h(e[r],t[r],n):e[r]=t[r]);return e},zn=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var o0={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const i0=e=>z(e)?e.replace(/[&<>"'\/]/g,t=>o0[t]):e;class l0{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const a0=[" ",",","?","!",";"],u0=new l0(20),c0=(e,t,n)=>{t=t||"",n=n||"";const r=a0.filter(i=>t.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const s=u0.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let o=!s.test(e);if(!o){const i=e.indexOf(n);i>0&&!s.test(e.substring(0,i))&&(o=!0)}return o},ea=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let s=e;for(let o=0;o<r.length;){if(!s||typeof s!="object")return;let i,l="";for(let a=o;a<r.length;++a)if(a!==o&&(l+=n),l+=r[a],i=s[l],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&a<r.length-1)continue;o+=a-o+1;break}s=i}return s},xo=e=>e&&e.replace("_","-"),f0={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Co{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||f0,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,s){return s&&!this.debug?null:(z(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Co(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Co(this.logger,t)}}var nt=new Co;class $o{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const s=this.observers[r].get(n)||0;this.observers[r].set(n,s+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(i=>{let[l,a]=i;for(let u=0;u<a;u++)l(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[l,a]=i;for(let u=0;u<a;u++)l.apply(l,[t,...r])})}}class kh extends $o{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,i=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],r&&(Array.isArray(r)?l.push(...r):z(r)&&o?l.push(...r.split(o)):l.push(r)));const a=So(this.data,l);return!a&&!n&&!r&&t.indexOf(".")>-1&&(t=l[0],n=l[1],r=l.slice(2).join(".")),a||!i||!z(r)?a:ea(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,s){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let l=[t,n];r&&(l=l.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(l=t.split("."),s=n,n=l[1]),this.addNamespaces(n),Ch(this.data,l,s),o.silent||this.emit("added",t,n,r,s)}addResources(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(z(r[o])||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});s.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,s,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),s=r,r=n,n=l[1]),this.addNamespaces(n);let a=So(this.data,l)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),s?$h(a,r,o):a={...a,...r},Ch(this.data,l,a),i.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(s=>n[s]&&Object.keys(n[s]).length>0)}toJSON(){return this.data}}var Ph={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,s){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,s))}),t}};const Eh={};class ko extends $o{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),t0(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=nt.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const i=r&&t.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!c0(t,r,s);if(i&&!l){const a=t.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:t,namespaces:z(o)?[o]:o};const u=t.split(r);(r!==s||r===s&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),t=u.join(s)}return{key:t,namespaces:z(o)?[o]:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const s=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:l}=this.extractFromKey(t[t.length-1],n),a=l[l.length-1],u=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(f){const y=n.nsSeparator||this.options.nsSeparator;return s?{res:`${a}${y}${i}`,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(n)}:`${a}${y}${i}`}return s?{res:i,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(n)}:i}const h=this.resolve(t,n);let c=h&&h.res;const m=h&&h.usedKey||i,v=h&&h.exactUsedKey||i,w=Object.prototype.toString.apply(c),d=["[object Number]","[object Function]","[object RegExp]"],p=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,S=!z(c)&&typeof c!="boolean"&&typeof c!="number";if(g&&c&&S&&d.indexOf(w)<0&&!(z(p)&&Array.isArray(c))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const y=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,c,{...n,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return s?(h.res=y,h.usedParams=this.getUsedParamsDetails(n),h):y}if(o){const y=Array.isArray(c),$=y?[]:{},C=y?v:m;for(const P in c)if(Object.prototype.hasOwnProperty.call(c,P)){const T=`${C}${o}${P}`;$[P]=this.translate(T,{...n,joinArrays:!1,ns:l}),$[P]===T&&($[P]=c[P])}c=$}}else if(g&&z(p)&&Array.isArray(c))c=c.join(p),c&&(c=this.extendTranslation(c,t,n,r));else{let y=!1,$=!1;const C=n.count!==void 0&&!z(n.count),P=ko.hasDefaultValue(n),T=C?this.pluralResolver.getSuffix(u,n.count,n):"",N=n.ordinal&&C?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",U=C&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),Ne=U&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${T}`]||n[`defaultValue${N}`]||n.defaultValue;!this.isValidLookup(c)&&P&&(y=!0,c=Ne),this.isValidLookup(c)||($=!0,c=i);const ee=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&$?void 0:c,be=P&&Ne!==c&&this.options.updateMissing;if($||y||be){if(this.logger.log(be?"updateKey":"missingKey",u,a,i,be?Ne:c),o){const k=this.resolve(i,{...n,keySeparator:!1});k&&k.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.")}let $e=[];const Le=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Le&&Le[0])for(let k=0;k<Le.length;k++)$e.push(Le[k]);else this.options.saveMissingTo==="all"?$e=this.languageUtils.toResolveHierarchy(n.lng||this.language):$e.push(n.lng||this.language);const x=(k,O,H)=>{const E=P&&H!==c?H:ee;this.options.missingKeyHandler?this.options.missingKeyHandler(k,a,O,E,be,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(k,a,O,E,be,n),this.emit("missingKey",k,a,O,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?$e.forEach(k=>{const O=this.pluralResolver.getSuffixes(k,n);U&&n[`defaultValue${this.options.pluralSeparator}zero`]&&O.indexOf(`${this.options.pluralSeparator}zero`)<0&&O.push(`${this.options.pluralSeparator}zero`),O.forEach(H=>{x([k],i+H,n[`defaultValue${H}`]||Ne)})}):x($e,i,Ne))}c=this.extendTranslation(c,t,n,h,r),$&&c===i&&this.options.appendNamespaceToMissingKey&&(c=`${a}:${i}`),($||y)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?c=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${i}`:i,y?c:void 0):c=this.options.parseMissingKeyHandler(c))}return s?(h.res=c,h.usedParams=this.getUsedParamsDetails(n),h):c}extendTranslation(t,n,r,s,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=z(t)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(u){const c=t.match(this.interpolator.nestingRegexp);f=c&&c.length}let h=r.replace&&!z(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),t=this.interpolator.interpolate(t,h,r.lng||this.language||s.usedLng,r),u){const c=t.match(this.interpolator.nestingRegexp),m=c&&c.length;f<m&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&s&&s.res&&(r.lng=this.language||s.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var c=arguments.length,m=new Array(c),v=0;v<c;v++)m[v]=arguments[v];return o&&o[0]===m[0]&&!r.context?(i.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${n[0]}`),null):i.translate(...m,n)},r)),r.interpolation&&this.interpolator.reset()}const l=r.postProcess||this.options.postProcess,a=z(l)?[l]:l;return t!=null&&a&&a.length&&r.applyPostProcessor!==!1&&(t=Ph.handle(a,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,s,o,i,l;return z(t)&&(t=[t]),t.forEach(a=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(a,n),f=u.key;s=f;let h=u.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const c=n.count!==void 0&&!z(n.count),m=c&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),v=n.context!==void 0&&(z(n.context)||typeof n.context=="number")&&n.context!=="",w=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);h.forEach(d=>{this.isValidLookup(r)||(l=d,!Eh[`${w[0]}-${d}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(Eh[`${w[0]}-${d}`]=!0,this.logger.warn(`key "${s}" for languages "${w.join(", ")}" won't get resolved as namespace "${l}" 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(p=>{if(this.isValidLookup(r))return;i=p;const g=[f];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(g,f,p,d,n);else{let y;c&&(y=this.pluralResolver.getSuffix(p,n.count,n));const $=`${this.options.pluralSeparator}zero`,C=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(g.push(f+y),n.ordinal&&y.indexOf(C)===0&&g.push(f+y.replace(C,this.options.pluralSeparator)),m&&g.push(f+$)),v){const P=`${f}${this.options.contextSeparator}${n.context}`;g.push(P),c&&(g.push(P+y),n.ordinal&&y.indexOf(C)===0&&g.push(P+y.replace(C,this.options.pluralSeparator)),m&&g.push(P+$))}}let S;for(;S=g.pop();)this.isValidLookup(r)||(o=S,r=this.getResource(p,d,S,n))}))})}),{res:r,usedKey:s,exactUsedKey:o,usedLng:i,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,s):this.resourceStore.getResource(t,n,r,s)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!z(t.replace);let s=r?t.replace:t;if(r&&typeof t.count<"u"&&(s.count=t.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!r){s={...s};for(const o of n)delete s[o]}return s}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const ta=e=>e.charAt(0).toUpperCase()+e.slice(1);class jh{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=nt.create("languageUtils")}getScriptPartFromCode(t){if(t=xo(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=xo(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(z(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let s=Intl.getCanonicalLocales(t)[0];if(s&&this.options.lowerCaseLng&&(s=s.toLowerCase()),s)return s}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(s=>s.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=ta(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=ta(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=ta(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const s=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(s))&&(n=s)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(o=>{if(o===s)return o;if(!(o.indexOf("-")<0&&s.indexOf("-")<0)&&(o.indexOf("-")>0&&s.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===s||o.indexOf(s)===0&&s.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),z(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),s=[],o=i=>{i&&(this.isSupportedCode(i)?s.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return z(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):z(t)&&o(this.formatLanguageCode(t)),r.forEach(i=>{s.indexOf(i)<0&&o(this.formatLanguageCode(i))}),s}}let h0=[{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}],d0={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const p0=["v1","v2","v3"],g0=["v4"],Ah={zero:0,one:1,two:2,few:3,many:4,other:5},m0=()=>{const e={};return h0.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:d0[t.fc]}})}),e};class y0{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=nt.create("pluralResolver"),(!this.options.compatibilityJSON||g0.includes(this.options.compatibilityJSON))&&(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=m0(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const r=xo(t==="dev"?"en":t),s=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:s});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let i;try{i=new Intl.PluralRules(r,{type:s})}catch{if(!t.match(/-|_/))return;const a=this.languageUtils.getLanguagePartFromCode(t);i=this.getRule(a,n)}return this.pluralRulesCache[o]=i,i}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(s=>`${n}${s}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((s,o)=>Ah[s]-Ah[o]).map(s=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s}`):r.numbers.map(s=>this.getSuffix(t,s,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(t,r);return s?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${s.select(n)}`:this.getSuffixRetroCompatible(s,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let s=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));const o=()=>this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString();return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?`_plural_${s.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!p0.includes(this.options.compatibilityJSON)}}const Th=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=s0(e,t,n);return!o&&s&&z(n)&&(o=ea(e,n,r),o===void 0&&(o=ea(t,n,r))),o},na=e=>e.replace(/\$/g,"$$$$");class v0{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=nt.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:s,prefix:o,prefixEscaped:i,suffix:l,suffixEscaped:a,formatSeparator:u,unescapeSuffix:f,unescapePrefix:h,nestingPrefix:c,nestingPrefixEscaped:m,nestingSuffix:v,nestingSuffixEscaped:w,nestingOptionsSeparator:d,maxReplaces:p,alwaysFormat:g}=t.interpolation;this.escape=n!==void 0?n:i0,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=o?zn(o):i||"{{",this.suffix=l?zn(l):a||"}}",this.formatSeparator=u||",",this.unescapePrefix=f?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=c?zn(c):m||zn("$t("),this.nestingSuffix=v?zn(v):w||zn(")"),this.nestingOptionsSeparator=d||",",this.maxReplaces=p||1e3,this.alwaysFormat=g!==void 0?g:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,s){let o,i,l;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=m=>{if(m.indexOf(this.formatSeparator)<0){const p=Th(n,a,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(p,void 0,r,{...s,...n,interpolationkey:m}):p}const v=m.split(this.formatSeparator),w=v.shift().trim(),d=v.join(this.formatSeparator).trim();return this.format(Th(n,a,w,this.options.keySeparator,this.options.ignoreJSONStructure),d,r,{...s,...n,interpolationkey:w})};this.resetRegExp();const f=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,h=s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>na(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?na(this.escape(m)):na(m)}].forEach(m=>{for(l=0;o=m.regex.exec(t);){const v=o[1].trim();if(i=u(v),i===void 0)if(typeof f=="function"){const d=f(t,o,s);i=z(d)?d:""}else if(s&&Object.prototype.hasOwnProperty.call(s,v))i="";else if(h){i=o[0];continue}else this.logger.warn(`missed to pass in variable ${v} for interpolating ${t}`),i="";else!z(i)&&!this.useRawValueToEscape&&(i=wh(i));const w=m.safeValue(i);if(t=t.replace(o[0],w),h?(m.regex.lastIndex+=i.length,m.regex.lastIndex-=o[0].length):m.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,o,i;const l=(a,u)=>{const f=this.nestingOptionsSeparator;if(a.indexOf(f)<0)return a;const h=a.split(new RegExp(`${f}[ ]*{`));let c=`{${h[1]}`;a=h[0],c=this.interpolate(c,i);const m=c.match(/'/g),v=c.match(/"/g);(m&&m.length%2===0&&!v||v.length%2!==0)&&(c=c.replace(/'/g,'"'));try{i=JSON.parse(c),u&&(i={...u,...i})}catch(w){return this.logger.warn(`failed parsing options string in nesting for key ${a}`,w),`${a}${f}${c}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,a};for(;s=this.nestingRegexp.exec(t);){let a=[];i={...r},i=i.replace&&!z(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const f=s[1].split(this.formatSeparator).map(h=>h.trim());s[1]=f.shift(),a=f,u=!0}if(o=n(l.call(this,s[1].trim(),i),i),o&&s[0]===t&&!z(o))return o;z(o)||(o=wh(o)),o||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`),o=""),u&&(o=a.reduce((f,h)=>this.format(f,h,r.lng,{...r,interpolationkey:s[1].trim()}),o.trim())),t=t.replace(s[0],o),this.regexp.lastIndex=0}return t}}const w0=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const s=r[1].substring(0,r[1].length-1);t==="currency"&&s.indexOf(":")<0?n.currency||(n.currency=s.trim()):t==="relativetime"&&s.indexOf(":")<0?n.range||(n.range=s.trim()):s.split(";").forEach(i=>{if(i){const[l,...a]=i.split(":"),u=a.join(":").trim().replace(/^'+|'+$/g,""),f=l.trim();n[f]||(n[f]=u),u==="false"&&(n[f]=!1),u==="true"&&(n[f]=!0),isNaN(u)||(n[f]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},Mn=e=>{const t={};return(n,r,s)=>{let o=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(o={...o,[s.interpolationkey]:void 0});const i=r+JSON.stringify(o);let l=t[i];return l||(l=e(xo(r),s),t[i]=l),l(n)}};class S0{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=nt.create("formatter"),this.options=t,this.formats={number:Mn((n,r)=>{const s=new Intl.NumberFormat(n,{...r});return o=>s.format(o)}),currency:Mn((n,r)=>{const s=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>s.format(o)}),datetime:Mn((n,r)=>{const s=new Intl.DateTimeFormat(n,{...r});return o=>s.format(o)}),relativetime:Mn((n,r)=>{const s=new Intl.RelativeTimeFormat(n,{...r});return o=>s.format(o,r.range||"day")}),list:Mn((n,r)=>{const s=new Intl.ListFormat(n,{...r});return o=>s.format(o)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Mn(n)}format(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(l=>l.indexOf(")")>-1)){const l=o.findIndex(a=>a.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,l)].join(this.formatSeparator)}return o.reduce((l,a)=>{const{formatName:u,formatOptions:f}=w0(a);if(this.formats[u]){let h=l;try{const c=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},m=c.locale||c.lng||s.locale||s.lng||r;h=this.formats[u](l,m,{...f,...s,...c})}catch(c){this.logger.warn(c)}return h}else this.logger.warn(`there was no format function for ${u}`);return l},t)}}const x0=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class C0 extends $o{constructor(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=s,this.logger=nt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,s.backend,s)}queueLoad(t,n,r,s){const o={},i={},l={},a={};return t.forEach(u=>{let f=!0;n.forEach(h=>{const c=`${u}|${h}`;!r.reload&&this.store.hasResourceBundle(u,h)?this.state[c]=2:this.state[c]<0||(this.state[c]===1?i[c]===void 0&&(i[c]=!0):(this.state[c]=1,f=!1,i[c]===void 0&&(i[c]=!0),o[c]===void 0&&(o[c]=!0),a[h]===void 0&&(a[h]=!0)))}),f||(l[u]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(a)}}loaded(t,n,r){const s=t.split("|"),o=s[0],i=s[1];n&&this.emit("failedLoading",o,i,n),!n&&r&&this.store.addResourceBundle(o,i,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const l={};this.queue.forEach(a=>{r0(a.loaded,[o],i),x0(a,t),n&&a.errors.push(n),a.pendingCount===0&&!a.done&&(Object.keys(a.loaded).forEach(u=>{l[u]||(l[u]={});const f=a.loaded[u];f.length&&f.forEach(h=>{l[u][h]===void 0&&(l[u][h]=!0)})}),a.done=!0,a.errors.length?a.callback(a.errors):a.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(a=>!a.done)}read(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:s,wait:o,callback:i});return}this.readingCalls++;const l=(u,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(u&&f&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,s+1,o*2,i)},o);return}i(u,f)},a=this.backend[r].bind(this.backend);if(a.length===2){try{const u=a(t,n);u&&typeof u.then=="function"?u.then(f=>l(null,f)).catch(l):l(null,u)}catch(u){l(u)}return}return a(t,n,l)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=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."),s&&s();z(t)&&(t=this.languageUtils.toResolveHierarchy(t)),z(n)&&(n=[n]);const o=this.queueLoad(t,n,r,s);if(!o.toLoad.length)return o.pending.length||s(),null;o.toLoad.forEach(i=>{this.loadOne(i)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),s=r[0],o=r[1];this.read(s,o,"read",void 0,void 0,(i,l)=>{i&&this.logger.warn(`${n}loading namespace ${o} for language ${s} failed`,i),!i&&l&&this.logger.log(`${n}loaded namespace ${o} for language ${s}`,l),this.loaded(t,i,l)})}saveMissing(t,n,r,s,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" 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(!(r==null||r==="")){if(this.backend&&this.backend.create){const a={...i,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let f;u.length===5?f=u(t,n,r,s,a):f=u(t,n,r,s),f&&typeof f.then=="function"?f.then(h=>l(null,h)).catch(l):l(null,f)}catch(f){l(f)}else u(t,n,r,s,l,a)}!t||!t[0]||this.store.addResource(t[0],n,r,s)}}}const Oh=()=>({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:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),z(e[1])&&(t.defaultValue=e[1]),z(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Nh=e=>(z(e.ns)&&(e.ns=[e.ns]),z(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),z(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Po=()=>{},$0=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class Xr extends $o{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Nh(t),this.services={},this.logger=nt,this.modules={external:[]},$0(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(z(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const s=Oh();this.options={...s,...this.options,...Nh(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...s.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=f=>f?typeof f=="function"?new f:f:null;if(!this.options.isClone){this.modules.logger?nt.init(o(this.modules.logger),this.options):nt.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=S0);const h=new jh(this.options);this.store=new kh(this.options.resources,this.options);const c=this.services;c.logger=nt,c.resourceStore=this.store,c.languageUtils=h,c.pluralResolver=new y0(h,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(c.formatter=o(f),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new v0(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new C0(o(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(m){for(var v=arguments.length,w=new Array(v>1?v-1:0),d=1;d<v;d++)w[d-1]=arguments[d];t.emit(m,...w)}),this.modules.languageDetector&&(c.languageDetector=o(this.modules.languageDetector),c.languageDetector.init&&c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=o(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new ko(this.services,this.options),this.translator.on("*",function(m){for(var v=arguments.length,w=new Array(v>1?v-1:0),d=1;d<v;d++)w[d-1]=arguments[d];t.emit(m,...w)}),this.modules.external.forEach(m=>{m.init&&m.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Po),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const 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"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(f=>{this[f]=function(){return t.store[f](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=function(){return t.store[f](...arguments),t}});const a=Jr(),u=()=>{const f=(h,c)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(c),r(h,c)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),a}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Po;const s=z(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],i=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(u=>{u!=="cimode"&&o.indexOf(u)<0&&o.push(u)})};s?i(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(a=>i(a)),this.options.preload&&this.options.preload.forEach(l=>i(l)),this.services.backendConnector.load(o,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(l)})}else r(null)}reloadResources(t,n,r){const s=Jr();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=Po),this.services.backendConnector.reload(t,n,o=>{s.resolve(),r(o)}),s}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Ph.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const s=Jr();this.emit("languageChanging",t);const o=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},i=(a,u)=>{u?(o(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,s.resolve(function(){return r.t(...arguments)}),n&&n(a,function(){return r.t(...arguments)})},l=a=>{!t&&!a&&this.services.languageDetector&&(a=[]);const u=z(a)?a:this.services.languageUtils.getBestMatchFromCodes(a);u&&(this.language||o(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,f=>{i(f,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),s}getFixedT(t,n,r){var s=this;const o=function(i,l){let a;if(typeof l!="object"){for(var u=arguments.length,f=new Array(u>2?u-2:0),h=2;h<u;h++)f[h-2]=arguments[h];a=s.options.overloadTranslationOptionHandler([i,l].concat(f))}else a={...l};a.lng=a.lng||o.lng,a.lngs=a.lngs||o.lngs,a.ns=a.ns||o.ns,a.keyPrefix!==""&&(a.keyPrefix=a.keyPrefix||r||o.keyPrefix);const c=s.options.keySeparator||".";let m;return a.keyPrefix&&Array.isArray(i)?m=i.map(v=>`${a.keyPrefix}${c}${v}`):m=a.keyPrefix?`${a.keyPrefix}${c}${i}`:i,s.t(m,a)};return z(t)?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=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;const r=n.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(l,a)=>{const u=this.services.backendConnector.state[`${l}|${a}`];return u===-1||u===0||u===2};if(n.precheck){const l=n.precheck(this,i);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,t)&&(!s||i(o,t)))}loadNamespaces(t,n){const r=Jr();return this.options.ns?(z(t)&&(t=[t]),t.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Jr();z(t)&&(t=[t]);const s=this.options.preload||[],o=t.filter(i=>s.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return o.length?(this.options.preload=s.concat(o),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["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"],r=this.services&&this.services.languageUtils||new jh(Oh());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Xr(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Po;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const s={...this.options,...t,isClone:!0},o=new Xr(s);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(l=>{o[l]=this[l]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new kh(this.store.data,s),o.services.resourceStore=o.store),o.translator=new ko(o.services,s),o.translator.on("*",function(l){for(var a=arguments.length,u=new Array(a>1?a-1:0),f=1;f<a;f++)u[f-1]=arguments[f];o.emit(l,...u)}),o.init(s,n),o.translator.options=s,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Lh=Xr.createInstance();Lh.createInstance=Xr.createInstance;var k0=Lh;const _h=Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})),Dn=Wd(_h);var ra={exports:{}},sa={},Rh={exports:{}};(function(e){var t=Dn,n=Dn;function r(o){return n.existsSync(t.join(o,"package.json"))}function s(o,i){if(o=o||e.parent.filename,i=i||r,typeof o=="string"&&(o[o.length-1]!==t.sep&&(o+=t.sep),o=o.split(t.sep)),!o.length)throw new Error("package.json not found in path");o.pop();var l=o.join(t.sep);try{if(i(l))return l}catch{}return s(o,i)}e.exports=s})(Rh);var P0=Rh.exports,Fh={exports:{}},Ih=Object.prototype.toString,zh=function(t){var n=Ih.call(t),r=n==="[object Arguments]";return r||(r=n!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Ih.call(t.callee)==="[object Function]"),r},oa,Mh;function E0(){if(Mh)return oa;Mh=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=zh,s=Object.prototype.propertyIsEnumerable,o=!s.call({toString:null},"toString"),i=s.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],a=function(c){var m=c.constructor;return m&&m.prototype===c},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if(typeof window>"u")return!1;for(var c in window)try{if(!u["$"+c]&&t.call(window,c)&&window[c]!==null&&typeof window[c]=="object")try{a(window[c])}catch{return!0}}catch{return!0}return!1}(),h=function(c){if(typeof window>"u"||!f)return a(c);try{return a(c)}catch{return!1}};e=function(m){var v=m!==null&&typeof m=="object",w=n.call(m)==="[object Function]",d=r(m),p=v&&n.call(m)==="[object String]",g=[];if(!v&&!w&&!d)throw new TypeError("Object.keys called on a non-object");var S=i&&w;if(p&&m.length>0&&!t.call(m,0))for(var y=0;y<m.length;++y)g.push(String(y));if(d&&m.length>0)for(var $=0;$<m.length;++$)g.push(String($));else for(var C in m)!(S&&C==="prototype")&&t.call(m,C)&&g.push(String(C));if(o)for(var P=h(m),T=0;T<l.length;++T)!(P&&l[T]==="constructor")&&t.call(m,l[T])&&g.push(l[T]);return g}}return oa=e,oa}var j0=Array.prototype.slice,A0=zh,Dh=Object.keys,Eo=Dh?function(t){return Dh(t)}:E0(),bh=Object.keys;Eo.shim=function(){if(Object.keys){var t=function(){var n=Object.keys(arguments);return n&&n.length===arguments.length}(1,2);t||(Object.keys=function(r){return A0(r)?bh(j0.call(r)):bh(r)})}else Object.keys=Eo;return Object.keys||Eo};var T0=Eo,Uh=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var s=42;t[n]=s;for(var o in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(t,n);if(l.value!==s||l.enumerable!==!0)return!1}return!0},ia=Object,O0=Error,N0=EvalError,L0=RangeError,_0=ReferenceError,R0=SyntaxError,Bh=TypeError,F0=URIError,I0=Math.abs,z0=Math.floor,M0=Math.max,D0=Math.min,b0=Math.pow,U0=Math.round,B0=Number.isNaN||function(t){return t!==t},V0=B0,H0=function(t){return V0(t)||t===0?t:t<0?-1:1},W0=Object.getOwnPropertyDescriptor,jo=W0;if(jo)try{jo([],"length")}catch{jo=null}var Vh=jo,Ao=Object.defineProperty||!1;if(Ao)try{Ao({},"a",{value:1})}catch{Ao=!1}var K0=Ao,la,Hh;function q0(){if(Hh)return la;Hh=1;var e=typeof Symbol<"u"&&Symbol,t=Uh;return la=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},la}var aa,Wh;function Kh(){return Wh||(Wh=1,aa=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),aa}var ua,qh;function Gh(){if(qh)return ua;qh=1;var e=ia;return ua=e.getPrototypeOf||null,ua}var G0="Function.prototype.bind called on incompatible ",Q0=Object.prototype.toString,J0=Math.max,Y0="[object Function]",Qh=function(t,n){for(var r=[],s=0;s<t.length;s+=1)r[s]=t[s];for(var o=0;o<n.length;o+=1)r[o+t.length]=n[o];return r},X0=function(t,n){for(var r=[],s=n,o=0;s<t.length;s+=1,o+=1)r[o]=t[s];return r},Z0=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},ev=function(t){var n=this;if(typeof n!="function"||Q0.apply(n)!==Y0)throw new TypeError(G0+n);for(var r=X0(arguments,1),s,o=function(){if(this instanceof s){var f=n.apply(this,Qh(r,arguments));return Object(f)===f?f:this}return n.apply(t,Qh(r,arguments))},i=J0(0,n.length-r.length),l=[],a=0;a<i;a++)l[a]="$"+a;if(s=Function("binder","return function ("+Z0(l,",")+"){ return binder.apply(this,arguments); }")(o),n.prototype){var u=function(){};u.prototype=n.prototype,s.prototype=new u,u.prototype=null}return s},tv=ev,To=Function.prototype.bind||tv,ca=Function.prototype.call,Jh=Function.prototype.apply,nv=typeof Reflect<"u"&&Reflect&&Reflect.apply,rv=To,sv=Jh,ov=ca,iv=nv,lv=iv||rv.call(ov,sv),av=To,uv=Bh,cv=ca,fv=lv,Yh=function(t){if(t.length<1||typeof t[0]!="function")throw new uv("a function is required");return fv(av,cv,t)},fa,Xh;function hv(){if(Xh)return fa;Xh=1;var e=Yh,t=Vh,n;try{n=[].__proto__===Array.prototype}catch(i){if(!i||typeof i!="object"||!("code"in i)||i.code!=="ERR_PROTO_ACCESS")throw i}var r=!!n&&t&&t(Object.prototype,"__proto__"),s=Object,o=s.getPrototypeOf;return fa=r&&typeof r.get=="function"?e([r.get]):typeof o=="function"?function(l){return o(l==null?l:s(l))}:!1,fa}var ha,Zh;function dv(){if(Zh)return ha;Zh=1;var e=Kh(),t=Gh(),n=hv();return ha=e?function(s){return e(s)}:t?function(s){if(!s||typeof s!="object"&&typeof s!="function")throw new TypeError("getProto: not an object");return t(s)}:n?function(s){return n(s)}:null,ha}var da,ed;function pv(){if(ed)return da;ed=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=To;return da=n.call(e,t),da}var b,gv=ia,mv=O0,yv=N0,vv=L0,wv=_0,bn=R0,Un=Bh,Sv=F0,xv=I0,Cv=z0,$v=M0,kv=D0,Pv=b0,Ev=U0,jv=H0,td=Function,pa=function(e){try{return td('"use strict"; return ('+e+").constructor;")()}catch{}},Zr=Vh,Av=K0,ga=function(){throw new Un},Tv=Zr?function(){try{return arguments.callee,ga}catch{try{return Zr(arguments,"callee").get}catch{return ga}}}():ga,Bn=q0()(),ae=dv(),Ov=Gh(),Nv=Kh(),nd=Jh,es=ca,Vn={},Lv=typeof Uint8Array>"u"||!ae?b:ae(Uint8Array),tn={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?b:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?b:ArrayBuffer,"%ArrayIteratorPrototype%":Bn&&ae?ae([][Symbol.iterator]()):b,"%AsyncFromSyncIteratorPrototype%":b,"%AsyncFunction%":Vn,"%AsyncGenerator%":Vn,"%AsyncGeneratorFunction%":Vn,"%AsyncIteratorPrototype%":Vn,"%Atomics%":typeof Atomics>"u"?b:Atomics,"%BigInt%":typeof BigInt>"u"?b:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?b:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?b:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?b:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":mv,"%eval%":eval,"%EvalError%":yv,"%Float16Array%":typeof Float16Array>"u"?b:Float16Array,"%Float32Array%":typeof Float32Array>"u"?b:Float32Array,"%Float64Array%":typeof Float64Array>"u"?b:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?b:FinalizationRegistry,"%Function%":td,"%GeneratorFunction%":Vn,"%Int8Array%":typeof Int8Array>"u"?b:Int8Array,"%Int16Array%":typeof Int16Array>"u"?b:Int16Array,"%Int32Array%":typeof Int32Array>"u"?b:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Bn&&ae?ae(ae([][Symbol.iterator]())):b,"%JSON%":typeof JSON=="object"?JSON:b,"%Map%":typeof Map>"u"?b:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Bn||!ae?b:ae(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":gv,"%Object.getOwnPropertyDescriptor%":Zr,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?b:Promise,"%Proxy%":typeof Proxy>"u"?b:Proxy,"%RangeError%":vv,"%ReferenceError%":wv,"%Reflect%":typeof Reflect>"u"?b:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?b:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Bn||!ae?b:ae(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?b:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Bn&&ae?ae(""[Symbol.iterator]()):b,"%Symbol%":Bn?Symbol:b,"%SyntaxError%":bn,"%ThrowTypeError%":Tv,"%TypedArray%":Lv,"%TypeError%":Un,"%Uint8Array%":typeof Uint8Array>"u"?b:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?b:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?b:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?b:Uint32Array,"%URIError%":Sv,"%WeakMap%":typeof WeakMap>"u"?b:WeakMap,"%WeakRef%":typeof WeakRef>"u"?b:WeakRef,"%WeakSet%":typeof WeakSet>"u"?b:WeakSet,"%Function.prototype.call%":es,"%Function.prototype.apply%":nd,"%Object.defineProperty%":Av,"%Object.getPrototypeOf%":Ov,"%Math.abs%":xv,"%Math.floor%":Cv,"%Math.max%":$v,"%Math.min%":kv,"%Math.pow%":Pv,"%Math.round%":Ev,"%Math.sign%":jv,"%Reflect.getPrototypeOf%":Nv};if(ae)try{null.error}catch(e){var _v=ae(ae(e));tn["%Error.prototype%"]=_v}var Rv=function e(t){var n;if(t==="%AsyncFunction%")n=pa("async function () {}");else if(t==="%GeneratorFunction%")n=pa("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=pa("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var s=e("%AsyncGenerator%");s&&ae&&(n=ae(s.prototype))}return tn[t]=n,n},rd={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ts=To,Oo=pv(),Fv=ts.call(es,Array.prototype.concat),Iv=ts.call(nd,Array.prototype.splice),sd=ts.call(es,String.prototype.replace),No=ts.call(es,String.prototype.slice),zv=ts.call(es,RegExp.prototype.exec),Mv=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Dv=/\\(\\)?/g,bv=function(t){var n=No(t,0,1),r=No(t,-1);if(n==="%"&&r!=="%")throw new bn("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new bn("invalid intrinsic syntax, expected opening `%`");var s=[];return sd(t,Mv,function(o,i,l,a){s[s.length]=l?sd(a,Dv,"$1"):i||o}),s},Uv=function(t,n){var r=t,s;if(Oo(rd,r)&&(s=rd[r],r="%"+s[0]+"%"),Oo(tn,r)){var o=tn[r];if(o===Vn&&(o=Rv(r)),typeof o>"u"&&!n)throw new Un("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:s,name:r,value:o}}throw new bn("intrinsic "+t+" does not exist!")},Bv=function(t,n){if(typeof t!="string"||t.length===0)throw new Un("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Un('"allowMissing" argument must be a boolean');if(zv(/^%?[^%]*%?$/,t)===null)throw new bn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=bv(t),s=r.length>0?r[0]:"",o=Uv("%"+s+"%",n),i=o.name,l=o.value,a=!1,u=o.alias;u&&(s=u[0],Iv(r,Fv([0,1],u)));for(var f=1,h=!0;f<r.length;f+=1){var c=r[f],m=No(c,0,1),v=No(c,-1);if((m==='"'||m==="'"||m==="`"||v==='"'||v==="'"||v==="`")&&m!==v)throw new bn("property names with quotes must have matching quotes");if((c==="constructor"||!h)&&(a=!0),s+="."+c,i="%"+s+"%",Oo(tn,i))l=tn[i];else if(l!=null){if(!(c in l)){if(!n)throw new Un("base intrinsic for "+t+" exists, but the property is not available.");return}if(Zr&&f+1>=r.length){var w=Zr(l,c);h=!!w,h&&"get"in w&&!("originalValue"in w.get)?l=w.get:l=l[c]}else h=Oo(l,c),l=l[c];h&&!a&&(tn[i]=l)}}return l},od=Bv,id=Yh,Vv=id([od("%String.prototype.indexOf%")]),Hv=function(t,n){var r=od(t,!!n);return typeof r=="function"&&Vv(t,".prototype.")>-1?id([r]):r},Wv=T0,ld=Uh(),ad=Hv,Lo=ia,Kv=ad("Array.prototype.push"),ud=ad("Object.prototype.propertyIsEnumerable"),qv=ld?Lo.getOwnPropertySymbols:null,Gv=function(t,n){if(t==null)throw new TypeError("target must be an object");var r=Lo(t);if(arguments.length===1)return r;for(var s=1;s<arguments.length;++s){var o=Lo(arguments[s]),i=Wv(o),l=ld&&(Lo.getOwnPropertySymbols||qv);if(l)for(var a=l(o),u=0;u<a.length;++u){var f=a[u];ud(o,f)&&Kv(i,f)}for(var h=0;h<i.length;++h){var c=i[h];if(ud(o,c)){var m=o[c];r[c]=m}}}return r},ma=Gv,Qv=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r<t.length;++r)n[t[r]]=t[r];var s=Object.assign({},n),o="";for(var i in s)o+=i;return e!==o},Jv=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch{return e[1]==="y"}return!1},Yv=function(){return!Object.assign||Qv()||Jv()?ma:Object.assign},cd={},Xv=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"},ya={exports:{}};typeof Object.create=="function"?ya.exports=function(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:ya.exports=function(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t};var Zv=ya.exports;(function(e){var t=/%[sdj%]/g;e.format=function(x){if(!S(x)){for(var k=[],O=0;O<arguments.length;O++)k.push(s(arguments[O]));return k.join(" ")}for(var O=1,H=arguments,E=H.length,L=String(x).replace(t,function(M){if(M==="%%")return"%";if(O>=E)return M;switch(M){case"%s":return String(H[O++]);case"%d":return Number(H[O++]);case"%j":try{return JSON.stringify(H[O++])}catch{return"[Circular]"}default:return M}}),_=H[O];O<E;_=H[++O])d(_)||!P(_)?L+=" "+_:L+=" "+s(_);return L},e.deprecate=function(x,k){if($(pe.process))return function(){return e.deprecate(x,k).apply(this,arguments)};if(process.noDeprecation===!0)return x;var O=!1;function H(){if(!O){if(process.throwDeprecation)throw new Error(k);process.traceDeprecation?console.trace(k):console.error(k),O=!0}return x.apply(this,arguments)}return H};var n={},r;e.debuglog=function(x){if($(r)&&(r=process.env.NODE_DEBUG||""),x=x.toUpperCase(),!n[x])if(new RegExp("\\b"+x+"\\b","i").test(r)){var k=process.pid;n[x]=function(){var O=e.format.apply(e,arguments);console.error("%s %d: %s",x,k,O)}}else n[x]=function(){};return n[x]};function s(x,k){var O={seen:[],stylize:i};return arguments.length>=3&&(O.depth=arguments[2]),arguments.length>=4&&(O.colors=arguments[3]),w(k)?O.showHidden=k:k&&e._extend(O,k),$(O.showHidden)&&(O.showHidden=!1),$(O.depth)&&(O.depth=2),$(O.colors)&&(O.colors=!1),$(O.customInspect)&&(O.customInspect=!0),O.colors&&(O.stylize=o),a(O,x,O.depth)}e.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function o(x,k){var O=s.styles[k];return O?"\x1B["+s.colors[O][0]+"m"+x+"\x1B["+s.colors[O][1]+"m":x}function i(x,k){return x}function l(x){var k={};return x.forEach(function(O,H){k[O]=!0}),k}function a(x,k,O){if(x.customInspect&&k&&U(k.inspect)&&k.inspect!==e.inspect&&!(k.constructor&&k.constructor.prototype===k)){var H=k.inspect(O,x);return S(H)||(H=a(x,H,O)),H}var E=u(x,k);if(E)return E;var L=Object.keys(k),_=l(L);if(x.showHidden&&(L=Object.getOwnPropertyNames(k)),N(k)&&(L.indexOf("message")>=0||L.indexOf("description")>=0))return f(k);if(L.length===0){if(U(k)){var M=k.name?": "+k.name:"";return x.stylize("[Function"+M+"]","special")}if(C(k))return x.stylize(RegExp.prototype.toString.call(k),"regexp");if(T(k))return x.stylize(Date.prototype.toString.call(k),"date");if(N(k))return f(k)}var B="",Se=!1,Ue=["{","}"];if(v(k)&&(Se=!0,Ue=["[","]"]),U(k)){var nn=k.name?": "+k.name:"";B=" [Function"+nn+"]"}if(C(k)&&(B=" "+RegExp.prototype.toString.call(k)),T(k)&&(B=" "+Date.prototype.toUTCString.call(k)),N(k)&&(B=" "+f(k)),L.length===0&&(!Se||k.length==0))return Ue[0]+B+Ue[1];if(O<0)return C(k)?x.stylize(RegExp.prototype.toString.call(k),"regexp"):x.stylize("[Object]","special");x.seen.push(k);var rt;return Se?rt=h(x,k,O,_,L):rt=L.map(function(N1){return c(x,k,O,_,N1,Se)}),x.seen.pop(),m(rt,B,Ue)}function u(x,k){if($(k))return x.stylize("undefined","undefined");if(S(k)){var O="'"+JSON.stringify(k).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return x.stylize(O,"string")}if(g(k))return x.stylize(""+k,"number");if(w(k))return x.stylize(""+k,"boolean");if(d(k))return x.stylize("null","null")}function f(x){return"["+Error.prototype.toString.call(x)+"]"}function h(x,k,O,H,E){for(var L=[],_=0,M=k.length;_<M;++_)Le(k,String(_))?L.push(c(x,k,O,H,String(_),!0)):L.push("");return E.forEach(function(B){B.match(/^\d+$/)||L.push(c(x,k,O,H,B,!0))}),L}function c(x,k,O,H,E,L){var _,M,B;if(B=Object.getOwnPropertyDescriptor(k,E)||{value:k[E]},B.get?B.set?M=x.stylize("[Getter/Setter]","special"):M=x.stylize("[Getter]","special"):B.set&&(M=x.stylize("[Setter]","special")),Le(H,E)||(_="["+E+"]"),M||(x.seen.indexOf(B.value)<0?(d(O)?M=a(x,B.value,null):M=a(x,B.value,O-1),M.indexOf(`
|
|
51
|
-
`)>-1&&(
|
|
52
|
-
`).map(function(
|
|
53
|
-
`).substr(2):
|
|
54
|
-
`+
|
|
55
|
-
`).map(function(
|
|
56
|
-
`))):
|
|
57
|
-
`)>=0,
|
|
58
|
-
`)+" "+
|
|
59
|
-
`)+" "+
|
|
60
|
-
|
|
61
|
-
*
|
|
62
|
-
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
63
|
-
* @license MIT
|
|
64
|
-
*/function fd(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,s=0,o=Math.min(n,r);s<o;++s)if(e[s]!==t[s]){n=e[s],r=t[s];break}return n<r?-1:r<n?1:0}function ns(e){return pe.Buffer&&typeof pe.Buffer.isBuffer=="function"?pe.Buffer.isBuffer(e):!!(e!=null&&e._isBuffer)}var qe=cd,t1=Object.prototype.hasOwnProperty,hd=Array.prototype.slice,dd=function(){return(function(){}).name==="foo"}();function pd(e){return Object.prototype.toString.call(e)}function gd(e){return ns(e)||typeof pe.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e?!!(e instanceof DataView||e.buffer&&e.buffer instanceof ArrayBuffer):!1}var W=Fh.exports=wd,n1=/\s*function\s+([^\(\s]*)\s*/;function md(e){if(qe.isFunction(e)){if(dd)return e.name;var t=e.toString(),n=t.match(n1);return n&&n[1]}}W.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=r1(this),this.generatedMessage=!0);var n=t.stackStartFunction||Ae;if(Error.captureStackTrace)Error.captureStackTrace(this,n);else{var r=new Error;if(r.stack){var s=r.stack,o=md(n),i=s.indexOf(`
|
|
65
|
-
`+o);if(i>=0){var l=s.indexOf(`
|
|
66
|
-
`,i+1);s=s.substring(l+1)}this.stack=s}}},qe.inherits(W.AssertionError,Error);function yd(e,t){return typeof e=="string"?e.length<t?e:e.slice(0,t):e}function vd(e){if(dd||!qe.isFunction(e))return qe.inspect(e);var t=md(e),n=t?": "+t:"";return"[Function"+n+"]"}function r1(e){return yd(vd(e.actual),128)+" "+e.operator+" "+yd(vd(e.expected),128)}function Ae(e,t,n,r,s){throw new W.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:s})}W.fail=Ae;function wd(e,t){e||Ae(e,!0,t,"==",W.ok)}W.ok=wd,W.equal=function(t,n,r){t!=n&&Ae(t,n,r,"==",W.equal)},W.notEqual=function(t,n,r){t==n&&Ae(t,n,r,"!=",W.notEqual)},W.deepEqual=function(t,n,r){Hn(t,n,!1)||Ae(t,n,r,"deepEqual",W.deepEqual)},W.deepStrictEqual=function(t,n,r){Hn(t,n,!0)||Ae(t,n,r,"deepStrictEqual",W.deepStrictEqual)};function Hn(e,t,n,r){if(e===t)return!0;if(ns(e)&&ns(t))return fd(e,t)===0;if(qe.isDate(e)&&qe.isDate(t))return e.getTime()===t.getTime();if(qe.isRegExp(e)&&qe.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if((e===null||typeof e!="object")&&(t===null||typeof t!="object"))return n?e===t:e==t;if(gd(e)&&gd(t)&&pd(e)===pd(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return fd(new Uint8Array(e.buffer),new Uint8Array(t.buffer))===0;if(ns(e)!==ns(t))return!1;r=r||{actual:[],expected:[]};var s=r.actual.indexOf(e);return s!==-1&&s===r.expected.indexOf(t)?!0:(r.actual.push(e),r.expected.push(t),s1(e,t,n,r))}function Sd(e){return Object.prototype.toString.call(e)=="[object Arguments]"}function s1(e,t,n,r){if(e==null||t===null||t===void 0)return!1;if(qe.isPrimitive(e)||qe.isPrimitive(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var s=Sd(e),o=Sd(t);if(s&&!o||!s&&o)return!1;if(s)return e=hd.call(e),t=hd.call(t),Hn(e,t,n);var i=Pd(e),l=Pd(t),a,u;if(i.length!==l.length)return!1;for(i.sort(),l.sort(),u=i.length-1;u>=0;u--)if(i[u]!==l[u])return!1;for(u=i.length-1;u>=0;u--)if(a=i[u],!Hn(e[a],t[a],n,r))return!1;return!0}W.notDeepEqual=function(t,n,r){Hn(t,n,!1)&&Ae(t,n,r,"notDeepEqual",W.notDeepEqual)},W.notDeepStrictEqual=xd;function xd(e,t,n){Hn(e,t,!0)&&Ae(e,t,n,"notDeepStrictEqual",xd)}W.strictEqual=function(t,n,r){t!==n&&Ae(t,n,r,"===",W.strictEqual)},W.notStrictEqual=function(t,n,r){t===n&&Ae(t,n,r,"!==",W.notStrictEqual)};function Cd(e,t){if(!e||!t)return!1;if(Object.prototype.toString.call(t)=="[object RegExp]")return t.test(e);try{if(e instanceof t)return!0}catch{}return Error.isPrototypeOf(t)?!1:t.call({},e)===!0}function o1(e){var t;try{e()}catch(n){t=n}return t}function $d(e,t,n,r){var s;if(typeof t!="function")throw new TypeError('"block" argument must be a function');typeof n=="string"&&(r=n,n=null),s=o1(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!s&&Ae(s,n,"Missing expected exception"+r);var o=typeof r=="string",i=!e&&qe.isError(s),l=!e&&s&&!n;if((i&&o&&Cd(s,n)||l)&&Ae(s,n,"Got unwanted exception"+r),e&&s&&n&&!Cd(s,n)||!e&&s)throw s}W.throws=function(e,t,n){$d(!0,e,t,n)},W.doesNotThrow=function(e,t,n){$d(!1,e,t,n)},W.ifError=function(e){if(e)throw e};function kd(e,t){e||Ae(e,!0,t,"==",kd)}W.strict=e1(kd,W,{equal:W.strictEqual,deepEqual:W.deepStrictEqual,notEqual:W.notStrictEqual,notDeepEqual:W.notDeepStrictEqual}),W.strict.strict=W.strict;var Pd=Object.keys||function(e){var t=[];for(var n in e)t1.call(e,n)&&t.push(n);return t},i1=Fh.exports,l1=i1,a1=function(e){var t,n,r,s,o;for(t=Error.prepareStackTrace,Error.prepareStackTrace=function(i,l){return Error.prepareStackTrace=t,l},n=new Error().stack,o=0;o<n.length&&n[o].getFileName()!==__filename;)o++;l1(o<n.length,"Unexpected: unable to find caller/index.js in the stack"),e=!e||isNaN(e)?1:e>n.length-2?n.length-2:e,n=n.slice(o+e+1);do s=n.shift(),r=s&&s.getFileName();while(n.length&&r==="module.js");return r};const u1=Dn,c1=Dn,Ed=P0,f1=a1;sa.getCallerRoot=function(){try{return Ed(f1(2))}catch{return}},sa.getProcessRoot=function(){let t=process.cwd();const n=c1.join(t,"current");try{u1.statSync(n).isDirectory()&&(t=n)}catch{}try{return Ed(t)}catch{return}};var h1=sa,va={exports:{}},wa,jd;function d1(){if(jd)return wa;jd=1;var e=1e3,t=e*60,n=t*60,r=n*24,s=r*7,o=r*365.25;wa=function(f,h){h=h||{};var c=typeof f;if(c==="string"&&f.length>0)return i(f);if(c==="number"&&isFinite(f))return h.long?a(f):l(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))};function i(f){if(f=String(f),!(f.length>100)){var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(f);if(h){var c=parseFloat(h[1]),m=(h[2]||"ms").toLowerCase();switch(m){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*s;case"days":case"day":case"d":return c*r;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*t;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}function l(f){var h=Math.abs(f);return h>=r?Math.round(f/r)+"d":h>=n?Math.round(f/n)+"h":h>=t?Math.round(f/t)+"m":h>=e?Math.round(f/e)+"s":f+"ms"}function a(f){var h=Math.abs(f);return h>=r?u(f,h,r,"day"):h>=n?u(f,h,n,"hour"):h>=t?u(f,h,t,"minute"):h>=e?u(f,h,e,"second"):f+" ms"}function u(f,h,c,m){var v=h>=c*1.5;return Math.round(f/c)+" "+m+(v?"s":"")}return wa}function p1(e){n.debug=n,n.default=n,n.coerce=a,n.disable=i,n.enable=s,n.enabled=l,n.humanize=d1(),n.destroy=u,Object.keys(e).forEach(f=>{n[f]=e[f]}),n.names=[],n.skips=[],n.formatters={};function t(f){let h=0;for(let c=0;c<f.length;c++)h=(h<<5)-h+f.charCodeAt(c),h|=0;return n.colors[Math.abs(h)%n.colors.length]}n.selectColor=t;function n(f){let h,c=null,m,v;function w(...d){if(!w.enabled)return;const p=w,g=Number(new Date),S=g-(h||g);p.diff=S,p.prev=h,p.curr=g,h=g,d[0]=n.coerce(d[0]),typeof d[0]!="string"&&d.unshift("%O");let y=0;d[0]=d[0].replace(/%([a-zA-Z%])/g,(C,P)=>{if(C==="%%")return"%";y++;const T=n.formatters[P];if(typeof T=="function"){const N=d[y];C=T.call(p,N),d.splice(y,1),y--}return C}),n.formatArgs.call(p,d),(p.log||n.log).apply(p,d)}return w.namespace=f,w.useColors=n.useColors(),w.color=n.selectColor(f),w.extend=r,w.destroy=n.destroy,Object.defineProperty(w,"enabled",{enumerable:!0,configurable:!1,get:()=>c!==null?c:(m!==n.namespaces&&(m=n.namespaces,v=n.enabled(f)),v),set:d=>{c=d}}),typeof n.init=="function"&&n.init(w),w}function r(f,h){const c=n(this.namespace+(typeof h>"u"?":":h)+f);return c.log=this.log,c}function s(f){n.save(f),n.namespaces=f,n.names=[],n.skips=[];const h=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const c of h)c[0]==="-"?n.skips.push(c.slice(1)):n.names.push(c)}function o(f,h){let c=0,m=0,v=-1,w=0;for(;c<f.length;)if(m<h.length&&(h[m]===f[c]||h[m]==="*"))h[m]==="*"?(v=m,w=c,m++):(c++,m++);else if(v!==-1)m=v+1,w++,c=w;else return!1;for(;m<h.length&&h[m]==="*";)m++;return m===h.length}function i(){const f=[...n.names,...n.skips.map(h=>"-"+h)].join(",");return n.enable(""),f}function l(f){for(const h of n.skips)if(o(f,h))return!1;for(const h of n.names)if(o(f,h))return!0;return!1}function a(f){return f instanceof Error?f.stack||f.message:f}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}var g1=p1;(function(e,t){t.formatArgs=r,t.save=s,t.load=o,t.useColors=n,t.storage=i(),t.destroy=(()=>{let a=!1;return()=>{a||(a=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let a;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(a=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(a[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(a){if(a[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+a[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const u="color: "+this.color;a.splice(1,0,u,"color: inherit");let f=0,h=0;a[0].replace(/%[a-zA-Z%]/g,c=>{c!=="%%"&&(f++,c==="%c"&&(h=f))}),a.splice(h,0,u)}t.log=console.debug||console.log||(()=>{});function s(a){try{a?t.storage.setItem("debug",a):t.storage.removeItem("debug")}catch{}}function o(){let a;try{a=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!a&&typeof process<"u"&&"env"in process&&(a=process.env.DEBUG),a}function i(){try{return localStorage}catch{}}e.exports=g1(t);const{formatters:l}=e.exports;l.j=function(a){try{return JSON.stringify(a)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}}})(va,va.exports);var m1=va.exports;const y1=h1,Ad=m1;ra.exports=function(t){const n=y1.getCallerRoot();let r;try{const s=en("/node_modules/.pnpm/@tryghost+debug@2.1.0/node_modules/@tryghost/debug/lib")(n+"/package.json");s.alias?r=s.alias:r=s.name}catch{r="undefined"}return Ad(r+":"+t)},ra.exports._base=Ad;var v1=ra.exports,w1=v1;const S1=[{code:"af",label:"Afrikaans"},{code:"ar",label:"Arabic"},{code:"bg",label:"Bulgarian"},{code:"bn",label:"Bengali"},{code:"bs",label:"Bosnian"},{code:"ca",label:"Catalan"},{code:"cs",label:"Czech"},{code:"da",label:"Danish"},{code:"de",label:"German"},{code:"de-CH",label:"Swiss German"},{code:"el",label:"Greek"},{code:"en",label:"English"},{code:"eo",label:"Esperanto"},{code:"es",label:"Spanish"},{code:"et",label:"Estonian"},{code:"eu",label:"Basque"},{code:"fa",label:"Persian/Farsi"},{code:"fi",label:"Finnish"},{code:"fr",label:"French"},{code:"gd",label:"Gaelic (Scottish)"},{code:"he",label:"Hebrew"},{code:"hi",label:"Hindi"},{code:"hr",label:"Croatian"},{code:"hu",label:"Hungarian"},{code:"id",label:"Indonesian"},{code:"is",label:"Icelandic"},{code:"it",label:"Italian"},{code:"ja",label:"Japanese"},{code:"ko",label:"Korean"},{code:"kz",label:"Kazakh"},{code:"lt",label:"Lithuanian"},{code:"lv",label:"Latvian"},{code:"mk",label:"Macedonian"},{code:"mn",label:"Mongolian"},{code:"ms",label:"Malay"},{code:"nb",label:"Norwegian Bokmål"},{code:"ne",label:"Nepali"},{code:"nl",label:"Dutch"},{code:"nn",label:"Norwegian Nynorsk"},{code:"pa",label:"Punjabi"},{code:"pl",label:"Polish"},{code:"pt",label:"Portuguese"},{code:"pt-BR",label:"Portuguese (Brazil)"},{code:"ro",label:"Romanian"},{code:"ru",label:"Russian"},{code:"si",label:"Sinhala"},{code:"sk",label:"Slovak"},{code:"sl",label:"Slovenian"},{code:"sq",label:"Albanian"},{code:"sr",label:"Serbian"},{code:"sr-Cyrl",label:"Serbian (Cyrillic)"},{code:"sv",label:"Swedish"},{code:"sw",label:"Swahili"},{code:"ta",label:"Tamil"},{code:"th",label:"Thai"},{code:"tr",label:"Turkish"},{code:"uk",label:"Ukrainian"},{code:"ur",label:"Urdu"},{code:"uz",label:"Uzbek"},{code:"vi",label:"Vietnamese"},{code:"zh",label:"Chinese"},{code:"zh-Hant",label:"Traditional Chinese"}],x1=k0,Td=Dn,Sa=Dn,xa=w1("i18n"),Od=S1,Nd=Od.map(e=>e.code);function Ld(e,t){return e.reduce((n,r)=>{let s;try{s=en("/ghost/i18n/lib")(`../locales/${r}/${t}.json`)}catch{s=en("/ghost/i18n/lib")(`../locales/en/${t}.json`)}return n[r]={[t]:{...s,...s.default&&typeof s.default=="object"?s.default:{}}},n},{})}function C1(e,t){if(!t)return{[e]:{theme:{}}};let n=[];try{n=Sa.readdirSync(t).filter(o=>o.endsWith(".json")).map(o=>o.replace(".json",""))}catch{n=[e,"en"]}return[...new Set([e,...n,"en"])].reduce((s,o)=>{let i,l=!1;const a=Td.join(t,`${o}.json`);if(Sa.existsSync(a))try{delete require.cache[en("/ghost/i18n/lib").resolve(a)],i=en("/ghost/i18n/lib")(a)}catch{xa(`Error loading theme locale file: ${o}`),l=!0}else l=!0;if(l)if(o!=="en")try{const u=Td.join(t,"en.json");Sa.existsSync(u)?(delete require.cache[en("/ghost/i18n/lib").resolve(u)],i=en("/ghost/i18n/lib")(u)):i={}}catch{i={}}else xa("Theme en.json file not found"),i={};return s[o]={theme:{...i,...i.default&&typeof i.default=="object"?i.default:{}}},s},{})}Qr.exports=(e="en",t="portal",n={})=>{const r=x1.createInstance(),s={prefix:"{",suffix:"}"};t==="theme"&&(s.escapeValue=!1);let o;return t!=="theme"?o=Ld(Nd,t):(xa(`generateThemeResources: ${e}, ${n.themePath}`),o=C1(e,n.themePath)),r.init({lng:e,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:{no:["nb","en"],default:["en"]},ns:t,defaultNS:t,interpolation:s,resources:o}),r},Qr.exports.SUPPORTED_LOCALES=Nd,Qr.exports.LOCALE_DATA=Od,Qr.exports.generateResources=Ld;var $1=Qr.exports;const rs=$1;In.exports=rs,In.exports.default=rs,In.exports.LOCALE_DATA=rs.LOCALE_DATA,In.exports.SUPPORTED_LOCALES=rs.SUPPORTED_LOCALES,In.exports.generateResources=rs.generateResources;var k1=In.exports;const P1=Fo(k1);class E1 extends ft.Component{constructor(t){super(t);const n=this.props.locale||"en",r=P1(n,"search"),s=r.dir()||"ltr",o=new Wm({adminUrl:t.adminUrl,apiKey:t.apiKey,dir:s});this.state={searchIndex:o,showPopup:!1,indexStarted:!1,indexComplete:!1,t:r.t,dir:s,scrollbarWidth:0},this.inputRef=ft.createRef()}componentDidMount(){const t=this.getScrollbarWidth();this.setState({scrollbarWidth:t}),this.initSetup()}componentDidUpdate(t,n){var r,s,o;if(n.showPopup!==this.state.showPopup)try{this.state.showPopup?(this.bodyScroll=(o=(s=(r=window.document)==null?void 0:r.body)==null?void 0:s.style)==null?void 0:o.overflow,this.bodyMargin=window.getComputedStyle(document.body).getPropertyValue("margin-right"),window.document.body.style.overflow="hidden",this.state.scrollbarWidth&&document.body.scrollHeight>window.innerHeight&&(window.document.body.style.marginRight=`calc(${this.bodyMargin} + ${this.state.scrollbarWidth}px)`)):(window.document.body.style.overflow=this.bodyScroll||"",!this.bodyMargin||this.bodyMargin==="0px"?window.document.body.style.marginRight="":window.document.body.style.marginRight=this.bodyMargin)}catch{}this.state.showPopup!==(n==null?void 0:n.showPopup)&&!this.state.showPopup&&this.setState({searchValue:""}),this.state.showPopup&&!this.state.indexStarted&&this.setupSearchIndex()}async setupSearchIndex(){this.setState({indexStarted:!0}),await this.state.searchIndex.init(),this.setState({indexComplete:!0})}componentWillUnmount(){window.removeEventListener("hashchange",this.hashHandler,!1),window.removeEventListener("keydown",this.handleKeyDown,!1)}initSetup(){this.handleSearchUrl(),this.addKeyboardShortcuts(),this.setupCustomTriggerButton(),this.hashHandler=()=>{this.handleSearchUrl()},window.addEventListener("hashchange",this.hashHandler,!1)}getScrollbarWidth(){const t=document.createElement("div");t.style.visibility="hidden",t.style.overflow="scroll",document.body.appendChild(t);const n=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),n}setupCustomTriggerButton(){this.clickHandler=t=>{t.preventDefault(),this.setState({showPopup:!0});const n=document.createElement("input");n.style.opacity="0",n.style.position="fixed",n.style.top="0",document.body.appendChild(n),n.focus(),setTimeout(()=>{this.inputRef.current.focus(),document.body.removeChild(n)},150)},this.customTriggerButtons=this.getCustomTriggerButtons(),this.customTriggerButtons.forEach(t=>{t.removeEventListener("click",this.clickHandler),t.addEventListener("click",this.clickHandler)})}getCustomTriggerButtons(){return document.querySelectorAll("[data-ghost-search]")||[]}handleSearchUrl(){const[t]=window.location.hash.substr(1).split("?");(t==="/search"||t==="/search/")&&(this.setState({showPopup:!0}),window.history.replaceState("",document.title,window.location.pathname))}addKeyboardShortcuts(){const t=this.getCustomTriggerButtons();t!=null&&t.length&&(this.handleKeyDown=n=>{if(n.key==="k"&&n.metaKey)return this.setState({showPopup:!0}),n.preventDefault(),n.stopPropagation(),!1},document.addEventListener("keydown",this.handleKeyDown))}render(){return A.jsx(we.Provider,{value:{page:"search",showPopup:this.state.showPopup,adminUrl:this.props.adminUrl,stylesUrl:this.props.stylesUrl,searchIndex:this.state.searchIndex,indexComplete:this.state.indexComplete,searchValue:this.state.searchValue,inputRef:this.inputRef,onAction:()=>{},dispatch:(t,n)=>{t==="update"&&this.setState({...this.state,...n})},t:this.state.t,dir:this.state.dir},children:A.jsx(Df,{})})}}const _d="sodo-search-root";function j1(){const e=document.createElement("div");e.id=_d,document.body.appendChild(e)}function A1(){const e=document.querySelector("script[data-sodo-search]");if(e){const t=e.dataset.sodoSearch,n=e.dataset.key,r=e.dataset.styles,s=e.dataset.locale||"en";return{adminUrl:t,apiKey:n,stylesUrl:r,locale:s}}return{}}function T1(){j1()}function O1(){var o;const{adminUrl:e,apiKey:t,stylesUrl:n,locale:r}=A1(),s=(o=e||window.location.origin)==null?void 0:o.replace(/\/+$/,"");T1(),tm.render(A.jsx(ft.StrictMode,{children:A.jsx(E1,{adminUrl:s,apiKey:t,stylesUrl:n,locale:r})}),document.getElementById(_d))}O1()});
|
|
18
|
+
`,l=this.context.stylesUrl;return l?te.jsxs(te.Fragment,{children:[te.jsx("link",{rel:"stylesheet",href:l}),te.jsx("style",{dangerouslySetInnerHTML:{__html:s}}),te.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]}):te.jsxs(te.Fragment,{children:[te.jsx("style",{dangerouslySetInnerHTML:{__html:s}}),te.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]})}renderFrameContainer(){const s=id(),l={...s.frame.common};return te.jsx("div",{style:s.modalContainer,className:"gh-root-frame",children:te.jsxs(rd,{style:l,title:"portal-popup",head:this.renderFrameStyles(),searchdir:this.context.dir,children:[te.jsx("div",{onClick:i=>this.handlePopupClose(i),className:"absolute top-0 bottom-0 left-0 right-0 block backdrop-blur-[2px] animate-fadein z-0 bg-gradient-to-br from-[rgba(0,0,0,0.2)] to-[rgba(0,0,0,0.1)]"}),te.jsx(ld,{})]})})}render(){const{showPopup:s}=this.context;return s?this.renderFrameContainer():null}}var ve;function st(r,s,l){const i=typeof l,u=typeof r;if(i!=="undefined"){if(u!=="undefined"){if(l){if(u==="function"&&i===u)return function(v){return r(l(v))};if(s=r.constructor,s===l.constructor){if(s===Array)return l.concat(r);if(s===Map){var c=new Map(l);for(var d of r)c.set(d[0],d[1]);return c}if(s===Set){d=new Set(l);for(c of r.values())d.add(c);return d}}}return r}return l}return u==="undefined"?s:r}function Xe(){return Object.create(null)}function Rt(r){return typeof r=="string"}function Cr(r){return typeof r=="object"}function jd(r){const s=[];for(const l of r.keys())s.push(l);return s}function kr(r,s){if(Rt(s))r=r[s];else for(let l=0;r&&l<s.length;l++)r=r[s[l]];return r}function Ad(r){let s=0;for(let l=0,i;l<r.length;l++)(i=r[l])&&s<i.length&&(s=i.length);return s}const Od=/[^\p{L}\p{N}]+/u,Td=/(\d{3})/g,Nd=/(\D)(\d{3})/g,Rd=/(\d{3})(\D)/g,Da=/[\u0300-\u036f]/g;function Pr(r={}){if(!this||this.constructor!==Pr)return new Pr(...arguments);if(arguments.length)for(r=0;r<arguments.length;r++)this.assign(arguments[r]);else this.assign(r)}ve=Pr.prototype,ve.assign=function(r){this.normalize=st(r.normalize,!0,this.normalize);let s=r.include,l=s||r.exclude||r.split,i;if(l||l===""){if(typeof l=="object"&&l.constructor!==RegExp){let u="";i=!s,s||(u+="\\p{Z}"),l.letter&&(u+="\\p{L}"),l.number&&(u+="\\p{N}",i=!!s),l.symbol&&(u+="\\p{S}"),l.punctuation&&(u+="\\p{P}"),l.control&&(u+="\\p{C}"),(l=l.char)&&(u+=typeof l=="object"?l.join(""):l);try{this.split=new RegExp("["+(s?"^":"")+u+"]+","u")}catch{this.split=/\s+/}}else this.split=l,i=l===!1||2>"a1a".split(l).length;this.numeric=st(r.numeric,i)}else{try{this.split=st(this.split,Od)}catch{this.split=/\s+/}this.numeric=st(r.numeric,st(this.numeric,!0))}if(this.prepare=st(r.prepare,null,this.prepare),this.finalize=st(r.finalize,null,this.finalize),l=r.filter,this.filter=typeof l=="function"?l:st(l&&new Set(l),null,this.filter),this.dedupe=st(r.dedupe,!0,this.dedupe),this.matcher=st((l=r.matcher)&&new Map(l),null,this.matcher),this.mapper=st((l=r.mapper)&&new Map(l),null,this.mapper),this.stemmer=st((l=r.stemmer)&&new Map(l),null,this.stemmer),this.replacer=st(r.replacer,null,this.replacer),this.minlength=st(r.minlength,1,this.minlength),this.maxlength=st(r.maxlength,1024,this.maxlength),this.rtl=st(r.rtl,!1,this.rtl),(this.cache=l=st(r.cache,!0,this.cache))&&(this.H=null,this.S=typeof l=="number"?l:2e5,this.B=new Map,this.G=new Map,this.L=this.K=128),this.h="",this.M=null,this.A="",this.N=null,this.matcher)for(const u of this.matcher.keys())this.h+=(this.h?"|":"")+u;if(this.stemmer)for(const u of this.stemmer.keys())this.A+=(this.A?"|":"")+u;return this},ve.addStemmer=function(r,s){return this.stemmer||(this.stemmer=new Map),this.stemmer.set(r,s),this.A+=(this.A?"|":"")+r,this.N=null,this.cache&&En(this),this},ve.addFilter=function(r){return typeof r=="function"?this.filter=r:(this.filter||(this.filter=new Set),this.filter.add(r)),this.cache&&En(this),this},ve.addMapper=function(r,s){return typeof r=="object"?this.addReplacer(r,s):1<r.length?this.addMatcher(r,s):(this.mapper||(this.mapper=new Map),this.mapper.set(r,s),this.cache&&En(this),this)},ve.addMatcher=function(r,s){return typeof r=="object"?this.addReplacer(r,s):2>r.length&&(this.dedupe||this.mapper)?this.addMapper(r,s):(this.matcher||(this.matcher=new Map),this.matcher.set(r,s),this.h+=(this.h?"|":"")+r,this.M=null,this.cache&&En(this),this)},ve.addReplacer=function(r,s){return typeof r=="string"?this.addMatcher(r,s):(this.replacer||(this.replacer=[]),this.replacer.push(r,s),this.cache&&En(this),this)},ve.encode=function(r){if(this.cache&&r.length<=this.K)if(this.H){if(this.B.has(r))return this.B.get(r)}else this.H=setTimeout(En,50,this);this.normalize&&(typeof this.normalize=="function"?r=this.normalize(r):r=Da?r.normalize("NFKD").replace(Da,"").toLowerCase():r.toLowerCase()),this.prepare&&(r=this.prepare(r)),this.numeric&&3<r.length&&(r=r.replace(Nd,"$1 $2").replace(Rd,"$1 $2").replace(Td,"$1 "));const s=!(this.dedupe||this.mapper||this.filter||this.matcher||this.stemmer||this.replacer);let l=[],i=this.split||this.split===""?r.split(this.split):r;for(let c=0,d,v;c<i.length;c++)if((d=v=i[c])&&!(d.length<this.minlength||d.length>this.maxlength)){if(s)l.push(d);else if(!this.filter||(typeof this.filter=="function"?this.filter(d):!this.filter.has(d))){if(this.cache&&d.length<=this.L)if(this.H){var u=this.G.get(d);if(u||u===""){u&&l.push(u);continue}}else this.H=setTimeout(En,50,this);if(this.stemmer&&2<d.length&&(this.N||(this.N=new RegExp("(?!^)("+this.A+")$")),d=d.replace(this.N,g=>this.stemmer.get(g))),d&&(this.mapper||this.dedupe&&1<d.length)){u="";for(let g=0,C="",$,P;g<d.length;g++)$=d.charAt(g),$===C&&this.dedupe||((P=this.mapper&&this.mapper.get($))||P===""?P===C&&this.dedupe||!(C=P)||(u+=P):u+=C=$);d=u}if(this.matcher&&1<d.length&&(this.M||(this.M=new RegExp("("+this.h+")","g")),d=d.replace(this.M,g=>this.matcher.get(g))),d&&this.replacer)for(u=0;d&&u<this.replacer.length;u+=2)d=d.replace(this.replacer[u],this.replacer[u+1]);this.cache&&v.length<=this.L&&(this.G.set(v,d),this.G.size>this.S&&(this.G.clear(),this.L=this.L/1.1|0)),d&&l.push(d)}}return this.finalize&&(l=this.finalize(l)||l),this.cache&&r.length<=this.K&&(this.B.set(r,l),this.B.size>this.S&&(this.B.clear(),this.K=this.K/1.1|0)),l};function En(r){r.H=null,r.B.clear(),r.G.clear()}let Hn,Er;async function _d(r){r=r.data;var s=r.task;const l=r.id;let i=r.args;if(s==="init")Er=r.options||{},(s=r.factory)?(Function("return "+s)()(self),Hn=new self.FlexSearch.Index(Er),delete self.FlexSearch):Hn=new Mt(Er),postMessage({id:l});else{let u;s==="export"&&(i[1]?(i[0]=Er.export,i[2]=0,i[3]=1):i=null),s==="import"?i[0]&&(r=await Er.import.call(Hn,i[0]),Hn.import(i[0],r)):(u=i&&Hn[s].apply(Hn,i))&&u.then&&(u=await u),postMessage(s==="search"?{id:l,msg:u}:{id:l})}}function Bo(r){$r.call(r,"add"),$r.call(r,"append"),$r.call(r,"search"),$r.call(r,"update"),$r.call(r,"remove")}let qo,Ma,ws;function Ld(){qo=ws=0}function $r(r){this[r+"Async"]=function(){const s=arguments;var l=s[s.length-1];let i;if(typeof l=="function"&&(i=l,delete s[s.length-1]),qo?ws||(ws=Date.now()-Ma>=this.priority*this.priority*3):(qo=setTimeout(Ld,0),Ma=Date.now()),ws){const c=this;return new Promise(d=>{setTimeout(function(){d(c[r+"Async"].apply(c,s))},0)})}const u=this[r].apply(this,s);return l=u.then?u:new Promise(c=>c(u)),i&&l.then(i),l}}let Wn=0;function jr(r={}){function s(d){function v(g){g=g.data||g;const C=g.id,$=C&&u.h[C];$&&($(g.msg),delete u.h[C])}if(this.worker=d,this.h=Xe(),this.worker)return i?this.worker.on("message",v):this.worker.onmessage=v,r.config?new Promise(function(g){u.h[++Wn]=function(){g(u),1e9<Wn&&(Wn=0)},u.worker.postMessage({id:Wn,task:"init",factory:l,options:r})}):(this.worker.postMessage({task:"init",factory:l,options:r}),this.priority=r.priority||4,this)}if(!this||this.constructor!==jr)return new jr(r);let l=typeof self<"u"?self._factory:typeof window<"u"?window._factory:null;l&&(l=l.toString());const i=typeof window>"u",u=this,c=Fd(l,i,r.worker);return c.then?c.then(function(d){return s.call(u,d)}):s.call(this,c)}en("add"),en("append"),en("search"),en("update"),en("remove"),en("clear"),en("export"),en("import"),Bo(jr.prototype);function en(r){jr.prototype[r]=function(){const s=this,l=[].slice.call(arguments);var i=l[l.length-1];let u;return typeof i=="function"&&(u=i,l.pop()),i=new Promise(function(c){r==="export"&&typeof l[0]=="function"&&(l[0]=null),s.h[++Wn]=c,s.worker.postMessage({task:r,id:Wn,args:l})}),u?(i.then(u),this):i}}function Fd(r,s,l){return s?typeof module<"u"?new(require("worker_threads")).Worker(__dirname+"/worker/node.js"):Promise.resolve().then(()=>yu).then(function(i){return new i.Worker("undefined/node/node.mjs")}):r?new window.Worker(URL.createObjectURL(new Blob(["onmessage="+_d.toString()],{type:"text/javascript"}))):new window.Worker(typeof l=="string"?l:(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:No&&No.tagName.toUpperCase()==="SCRIPT"&&No.src||new URL("sodo-search.min.js",document.baseURI).href).replace("/worker.js","/worker/worker.js").replace("flexsearch.bundle.module.min.js","module/worker/worker.js"),{type:"module"})}function Vo(r,s=0){let l=[],i=[];s&&(s=25e4/s*5e3|0);for(const u of r.entries())i.push(u),i.length===s&&(l.push(i),i=[]);return i.length&&l.push(i),l}function Ho(r,s){s||(s=new Map);for(let l=0,i;l<r.length;l++)i=r[l],s.set(i[0],i[1]);return s}function za(r,s=0){let l=[],i=[];s&&(s=25e4/s*1e3|0);for(const u of r.entries())i.push([u[0],Vo(u[1])[0]]),i.length===s&&(l.push(i),i=[]);return i.length&&l.push(i),l}function ba(r,s){s||(s=new Map);for(let l=0,i,u;l<r.length;l++)i=r[l],u=s.get(i[0]),s.set(i[0],Ho(i[1],u));return s}function Ua(r){let s=[],l=[];for(const i of r.keys())l.push(i),l.length===25e4&&(s.push(l),l=[]);return l.length&&s.push(l),s}function Ba(r,s){s||(s=new Set);for(let l=0;l<r.length;l++)s.add(r[l]);return s}function Ss(r,s,l,i,u,c,d=0){const v=i&&i.constructor===Array;var g=v?i.shift():i;if(!g)return this.export(r,s,u,c+1);if((g=r((s?s+".":"")+(d+1)+"."+l,JSON.stringify(g)))&&g.then){const C=this;return g.then(function(){return Ss.call(C,r,s,l,v?i:null,u,c,d+1)})}return Ss.call(this,r,s,l,v?i:null,u,c,d+1)}function qa(r,s){let l="";for(const i of r.entries()){r=i[0];const u=i[1];let c="";for(let d=0,v;d<u.length;d++){v=u[d]||[""];let g="";for(let C=0;C<v.length;C++)g+=(g?",":"")+(s==="string"?'"'+v[C]+'"':v[C]);g="["+g+"]",c+=(c?",":"")+g}c='["'+r+'",['+c+"]]",l+=(l?",":"")+c}return l}function Va(r,s,l,i){let u=[];for(let c=0,d;c<r.index.length;c++)if(d=r.index[c],s>=d.length)s-=d.length;else{s=d[i?"splice":"slice"](s,l);const v=s.length;if(v&&(u=u.length?u.concat(s):s,l-=v,i&&(r.length-=v),!l))break;s=0}return u}function $n(r){if(!this||this.constructor!==$n)return new $n(r);this.index=r?[r]:[],this.length=r?r.length:0;const s=this;return new Proxy([],{get(l,i){if(i==="length")return s.length;if(i==="push")return function(u){s.index[s.index.length-1].push(u),s.length++};if(i==="pop")return function(){if(s.length)return s.length--,s.index[s.index.length-1].pop()};if(i==="indexOf")return function(u){let c=0;for(let d=0,v,g;d<s.index.length;d++){if(v=s.index[d],g=v.indexOf(u),0<=g)return c+g;c+=v.length}return-1};if(i==="includes")return function(u){for(let c=0;c<s.index.length;c++)if(s.index[c].includes(u))return!0;return!1};if(i==="slice")return function(u,c){return Va(s,u||0,c||s.length,!1)};if(i==="splice")return function(u,c){return Va(s,u||0,c||s.length,!0)};if(i==="constructor")return Array;if(typeof i!="symbol")return(l=s.index[i/2**31|0])&&l[i]},set(l,i,u){return l=i/2**31|0,(s.index[l]||(s.index[l]=[]))[i]=u,s.length++,!0}})}$n.prototype.clear=function(){this.index.length=0},$n.prototype.destroy=function(){this.proxy=this.index=null},$n.prototype.push=function(){};function Dt(r=8){if(!this||this.constructor!==Dt)return new Dt(r);this.index=Xe(),this.h=[],this.size=0,32<r?(this.B=Wa,this.A=BigInt(r)):(this.B=Ha,this.A=r)}Dt.prototype.get=function(r){const s=this.index[this.B(r)];return s&&s.get(r)},Dt.prototype.set=function(r,s){var l=this.B(r);let i=this.index[l];i?(l=i.size,i.set(r,s),(l-=i.size)&&this.size++):(this.index[l]=i=new Map([[r,s]]),this.h.push(i),this.size++)};function _t(r=8){if(!this||this.constructor!==_t)return new _t(r);this.index=Xe(),this.h=[],this.size=0,32<r?(this.B=Wa,this.A=BigInt(r)):(this.B=Ha,this.A=r)}_t.prototype.add=function(r){var s=this.B(r);let l=this.index[s];l?(s=l.size,l.add(r),(s-=l.size)&&this.size++):(this.index[s]=l=new Set([r]),this.h.push(l),this.size++)},ve=Dt.prototype,ve.has=_t.prototype.has=function(r){const s=this.index[this.B(r)];return s&&s.has(r)},ve.delete=_t.prototype.delete=function(r){const s=this.index[this.B(r)];s&&s.delete(r)&&this.size--},ve.clear=_t.prototype.clear=function(){this.index=Xe(),this.h=[],this.size=0},ve.values=_t.prototype.values=function*(){for(let r=0;r<this.h.length;r++)for(let s of this.h[r].values())yield s},ve.keys=_t.prototype.keys=function*(){for(let r=0;r<this.h.length;r++)for(let s of this.h[r].keys())yield s},ve.entries=_t.prototype.entries=function*(){for(let r=0;r<this.h.length;r++)for(let s of this.h[r].entries())yield s};function Ha(r){let s=2**this.A-1;if(typeof r=="number")return r&s;let l=0,i=this.A+1;for(let u=0;u<r.length;u++)l=(l*i^r.charCodeAt(u))&s;return this.A===32?l+2**31:l}function Wa(r){let s=BigInt(2)**this.A-BigInt(1);var l=typeof r;if(l==="bigint")return r&s;if(l==="number")return BigInt(r)&s;l=BigInt(0);let i=this.A+BigInt(1);for(let u=0;u<r.length;u++)l=(l*i^BigInt(r.charCodeAt(u)))&s;return l}jn.prototype.add=function(r,s,l){if(Cr(r)&&(s=r,r=kr(s,this.key)),s&&(r||r===0)){if(!l&&this.reg.has(r))return this.update(r,s);for(let v=0,g;v<this.field.length;v++){g=this.D[v];var i=this.index.get(this.field[v]);if(typeof g=="function"){var u=g(s);u&&i.add(r,u,!1,!0)}else u=g.I,(!u||u(s))&&(g.constructor===String?g=[""+g]:Rt(g)&&(g=[g]),Ko(s,g,this.J,0,i,r,g[0],l))}if(this.tag)for(i=0;i<this.F.length;i++){var c=this.F[i];u=this.tag.get(this.R[i]);let v=Xe();if(typeof c=="function"){if(c=c(s),!c)continue}else{var d=c.I;if(d&&!d(s))continue;c.constructor===String&&(c=""+c),c=kr(s,c)}if(u&&c){Rt(c)&&(c=[c]);for(let g=0,C,$;g<c.length;g++)if(C=c[g],!v[C]&&(v[C]=1,(d=u.get(C))?$=d:u.set(C,$=[]),!l||!$.includes(r))){if($.length===2**31-1){if(d=new $n($),this.fastupdate)for(let P of this.reg.values())P.includes($)&&(P[P.indexOf($)]=d);u.set(C,$=d)}$.push(r),this.fastupdate&&((d=this.reg.get(r))?d.push($):this.reg.set(r,[$]))}}}if(this.store&&(!l||!this.store.has(r))){let v;if(this.C){v=Xe();for(let g=0,C;g<this.C.length;g++){if(C=this.C[g],(l=C.I)&&!l(s))continue;let $;if(typeof C=="function"){if($=C(s),!$)continue;C=[C.V]}else if(Rt(C)||C.constructor===String){v[C]=s[C];continue}Wo(s,v,C,0,C[0],$)}}this.store.set(r,v||s)}this.worker&&(this.fastupdate||this.reg.add(r))}return this};function Wo(r,s,l,i,u,c){if(r=r[u],i===l.length-1)s[u]=c||r;else if(r)if(r.constructor===Array)for(s=s[u]=Array(r.length),u=0;u<r.length;u++)Wo(r,s,l,i,u);else s=s[u]||(s[u]=Xe()),u=l[++i],Wo(r,s,l,i,u)}function Ko(r,s,l,i,u,c,d,v){if(r=r[d])if(i===s.length-1){if(r.constructor===Array){if(l[i]){for(s=0;s<r.length;s++)u.add(c,r[s],!0,!0);return}r=r.join(" ")}u.add(c,r,v,!0)}else if(r.constructor===Array)for(d=0;d<r.length;d++)Ko(r,s,l,i,u,c,d,v);else d=s[++i],Ko(r,s,l,i,u,c,d,v);else u.db&&u.remove(c)}function Ka(r,s,l,i,u,c,d){const v=r.length;let g=[],C,$;C=Xe();for(let P=0,O,F,b,V;P<s;P++)for(let U=0;U<v;U++)if(b=r[U],P<b.length&&(O=b[P]))for(let J=0;J<O.length;J++){if(F=O[J],($=C[F])?C[F]++:($=0,C[F]=1),V=g[$]||(g[$]=[]),!d){let re=P+(U||!u?0:c||0);V=V[re]||(V[re]=[])}if(V.push(F),d&&l&&$===v-1&&V.length-i===l)return i?V.slice(i):V}if(r=g.length)if(u)g=1<g.length?Ga(g,l,i,d,c):(g=g[0]).length>l||i?g.slice(i,l+i):g;else{if(r<v)return[];if(g=g[r-1],l||i)if(d)(g.length>l||i)&&(g=g.slice(i,l+i));else{u=[];for(let P=0,O;P<g.length;P++)if(O=g[P],O.length>i)i-=O.length;else if((O.length>l||i)&&(O=O.slice(i,l+i),l-=O.length,i&&(i-=O.length)),u.push(O),!l)break;g=1<u.length?[].concat.apply([],u):u[0]}}return g}function Ga(r,s,l,i,u){const c=[],d=Xe();let v;var g=r.length;let C;if(i){for(u=g-1;0<=u;u--)if(C=(i=r[u])&&i.length){for(g=0;g<C;g++)if(v=i[g],!d[v]){if(d[v]=1,l)l--;else if(c.push(v),c.length===s)return c}}}else for(let $=g-1,P,O=0;0<=$;$--){P=r[$];for(let F=0;F<P.length;F++)if(C=(i=P[F])&&i.length){for(let b=0;b<C;b++)if(v=i[b],!d[v])if(d[v]=1,l)l--;else{let V=(F+($<g-1&&u||0))/($+1)|0;if((c[V]||(c[V]=[])).push(v),++O===s)return c}}}return c}function Id(r,s,l){const i=Xe(),u=[];for(let c=0,d;c<s.length;c++){d=s[c];for(let v=0;v<d.length;v++)i[d[v]]=1}if(l)for(let c=0,d;c<r.length;c++)d=r[c],i[d]&&(u.push(d),i[d]=0);else for(let c=0,d,v;c<r.result.length;c++)for(d=r.result[c],s=0;s<d.length;s++)v=d[s],i[v]&&((u[c]||(u[c]=[])).push(v),i[v]=0);return u}function Go(r,s,l,i){if(!r.length)return r;if(r.length===1)return r=r[0],r=l||r.length>s?s?r.slice(l,l+s):r.slice(l):r,i?tn.call(this,r):r;let u=[];for(let c=0,d,v;c<r.length;c++)if((d=r[c])&&(v=d.length)){if(l){if(l>=v){l-=v;continue}l<v&&(d=s?d.slice(l,l+s):d.slice(l),v=d.length,l=0)}if(v>s&&(d=d.slice(0,s),v=s),!u.length&&v>=s)return i?tn.call(this,d):d;if(u.push(d),s-=v,!s)break}return u=1<u.length?[].concat.apply([],u):u[0],i?tn.call(this,u):u}function xs(r,s,l){var i=l[0];if(i.then)return Promise.all(l).then(function($){return r[s].apply(r,$)});if(i[0]&&i[0].index)return r[s].apply(r,i);i=[];let u=[],c=0,d=0,v,g,C;for(let $=0,P;$<l.length;$++)if(P=l[$]){let O;if(P.constructor===We)O=P.result;else if(P.constructor===Array)O=P;else if(c=P.limit||0,d=P.offset||0,C=P.suggest,g=P.resolve,v=P.enrich&&g,P.index)P.resolve=!1,O=P.index.search(P).result,P.resolve=g;else if(P.and)O=r.and(P.and);else if(P.or)O=r.or(P.or);else if(P.xor)O=r.xor(P.xor);else if(P.not)O=r.not(P.not);else continue;if(O.then)u.push(O);else if(O.length)i[$]=O;else if(!C&&(s==="and"||s==="xor")){i=[];break}}return{O:i,P:u,limit:c,offset:d,enrich:v,resolve:g,suggest:C}}We.prototype.or=function(){const{O:r,P:s,limit:l,offset:i,enrich:u,resolve:c}=xs(this,"or",arguments);return Ja.call(this,r,s,l,i,u,c)};function Ja(r,s,l,i,u,c){if(s.length){const d=this;return Promise.all(s).then(function(v){r=[];for(let g=0,C;g<v.length;g++)(C=v[g]).length&&(r[g]=C);return Ja.call(d,r,[],l,i,u,c)})}return r.length&&(this.result.length&&r.push(this.result),2>r.length?this.result=r[0]:(this.result=Ga(r,l,i,!1,this.h),i=0)),c?this.resolve(l,i,u):this}We.prototype.and=function(){let r=this.result.length,s,l,i,u;if(!r){const c=arguments[0];c&&(r=!!c.suggest,u=c.resolve,s=c.limit,l=c.offset,i=c.enrich&&u)}if(r){const{O:c,P:d,limit:v,offset:g,enrich:C,resolve:$,suggest:P}=xs(this,"and",arguments);return Qa.call(this,c,d,v,g,C,$,P)}return u?this.resolve(s,l,i):this};function Qa(r,s,l,i,u,c,d){if(s.length){const v=this;return Promise.all(s).then(function(g){r=[];for(let C=0,$;C<g.length;C++)($=g[C]).length&&(r[C]=$);return Qa.call(v,r,[],l,i,u,c,d)})}if(r.length)if(this.result.length&&r.unshift(this.result),2>r.length)this.result=r[0];else{if(s=Ad(r))return this.result=Ka(r,s,l,i,d,this.h,c),c?u?tn.call(this.index,this.result):this.result:this;this.result=[]}else d||(this.result=r);return c?this.resolve(l,i,u):this}We.prototype.xor=function(){const{O:r,P:s,limit:l,offset:i,enrich:u,resolve:c,suggest:d}=xs(this,"xor",arguments);return Ya.call(this,r,s,l,i,u,c,d)};function Ya(r,s,l,i,u,c,d){if(s.length){const v=this;return Promise.all(s).then(function(g){r=[];for(let C=0,$;C<g.length;C++)($=g[C]).length&&(r[C]=$);return Ya.call(v,r,[],l,i,u,c,d)})}if(r.length)if(this.result.length&&r.unshift(this.result),2>r.length)this.result=r[0];else return this.result=Dd.call(this,r,l,i,c,this.h),c?u?tn.call(this.index,this.result):this.result:this;else d||(this.result=r);return c?this.resolve(l,i,u):this}function Dd(r,s,l,i,u){const c=[],d=Xe();let v=0;for(let g=0,C;g<r.length;g++)if(C=r[g]){v<C.length&&(v=C.length);for(let $=0,P;$<C.length;$++)if(P=C[$])for(let O=0,F;O<P.length;O++)F=P[O],d[F]=d[F]?2:1}for(let g=0,C,$=0;g<v;g++)for(let P=0,O;P<r.length;P++)if((O=r[P])&&(C=O[g])){for(let F=0,b;F<C.length;F++)if(b=C[F],d[b]===1)if(l)l--;else if(i){if(c.push(b),c.length===s)return c}else{const V=g+(P?u:0);if(c[V]||(c[V]=[]),c[V].push(b),++$===s)return c}}return c}We.prototype.not=function(){const{O:r,P:s,limit:l,offset:i,enrich:u,resolve:c,suggest:d}=xs(this,"not",arguments);return Xa.call(this,r,s,l,i,u,c,d)};function Xa(r,s,l,i,u,c,d){if(s.length){const v=this;return Promise.all(s).then(function(g){r=[];for(let C=0,$;C<g.length;C++)($=g[C]).length&&(r[C]=$);return Xa.call(v,r,[],l,i,u,c,d)})}if(r.length&&this.result.length)this.result=Md.call(this,r,l,i,c);else if(c)return this.resolve(l,i,u);return c?u?tn.call(this.index,this.result):this.result:this}function Md(r,s,l,i){const u=[];r=new Set(r.flat().flat());for(let c=0,d,v=0;c<this.result.length;c++)if(d=this.result[c]){for(let g=0,C;g<d.length;g++)if(C=d[g],!r.has(C)){if(l)l--;else if(i){if(u.push(C),u.length===s)return u}else if(u[c]||(u[c]=[]),u[c].push(C),++v===s)return u}}return u}function We(r){if(!this||this.constructor!==We)return new We(r);if(r&&r.index)return r.resolve=!1,this.index=r.index,this.h=r.boost||0,this.result=r.index.search(r).result,this;this.index=null,this.result=r||[],this.h=0}We.prototype.limit=function(r){if(this.result.length){const s=[];for(let l=0,i;l<this.result.length;l++)if(i=this.result[l])if(i.length<=r){if(s[l]=i,r-=i.length,!r)break}else{s[l]=i.slice(0,r);break}this.result=s}return this},We.prototype.offset=function(r){if(this.result.length){const s=[];for(let l=0,i;l<this.result.length;l++)(i=this.result[l])&&(i.length<=r?r-=i.length:(s[l]=i.slice(r),r=0));this.result=s}return this},We.prototype.boost=function(r){return this.h+=r,this},We.prototype.resolve=function(r,s,l){const i=this.result,u=this.index;return this.result=this.index=null,i.length?(typeof r=="object"&&(l=r.enrich,s=r.offset,r=r.limit),Go.call(u,i,r||100,s,l)):i},jn.prototype.search=function(r,s,l,i){l||(!s&&Cr(r)?(l=r,r=""):Cr(s)&&(l=s,s=0));let u=[];var c=[],d;let v,g,C,$=0;var P=!0;let O;if(l){l.constructor===Array&&(l={index:l}),r=l.query||r;var F=l.pluck;v=l.merge,g=F||l.field||(g=l.index)&&(g.index?null:g),C=this.tag&&l.tag;var b=l.suggest;P=l.resolve!==!1,P||F||!(g=g||this.field)||(Rt(g)?F=g:(g.constructor===Array&&g.length===1&&(g=g[0]),F=g.field||g.index)),O=(d=this.store&&l.enrich&&P)&&l.highlight,s=l.limit||s;var V=l.offset||0;if(s||(s=100),C&&(!this.db||!i)){C.constructor!==Array&&(C=[C]);var U=[];for(let ge=0,ne;ge<C.length;ge++)if(ne=C[ge],ne.field&&ne.tag){var J=ne.tag;if(J.constructor===Array)for(var re=0;re<J.length;re++)U.push(ne.field,J[re]);else U.push(ne.field,J)}else{J=Object.keys(ne);for(let me=0,ie,fe;me<J.length;me++)if(ie=J[me],fe=ne[ie],fe.constructor===Array)for(re=0;re<fe.length;re++)U.push(ie,fe[re]);else U.push(ie,fe)}if(C=U,!r){if(P=[],U.length)for(c=0;c<U.length;c+=2){if(this.db){if(F=this.index.get(U[c]),!F)continue;P.push(F=F.db.tag(U[c+1],s,V,d))}else F=zd.call(this,U[c],U[c+1],s,V,d);u.push({field:U[c],tag:U[c+1],result:F})}return P.length?Promise.all(P).then(function(ge){for(let ne=0;ne<ge.length;ne++)u[ne].result=ge[ne];return u}):u}}g&&g.constructor!==Array&&(g=[g])}g||(g=this.field),U=!i&&(this.worker||this.db)&&[];let we;for(let ge=0,ne,me,ie;ge<g.length;ge++){if(me=g[ge],this.db&&this.tag&&!this.D[ge])continue;let fe;if(Rt(me)||(fe=me,me=fe.field,r=fe.query||r,s=fe.limit||s,V=fe.offset||V,b=fe.suggest||b,d=this.store&&(fe.enrich||d)),i)ne=i[ge];else if(J=fe||l,re=this.index.get(me),C&&(this.db&&(J.tag=C,we=re.db.support_tag_search,J.field=g),we||(J.enrich=!1)),U){U[ge]=re.search(r,s,J),J&&d&&(J.enrich=d);continue}else ne=re.search(r,s,J),J&&d&&(J.enrich=d);if(ie=ne&&(P?ne.length:ne.result.length),C&&ie){if(J=[],re=0,this.db&&i){if(!we)for(let Ee=g.length;Ee<i.length;Ee++){let L=i[Ee];if(L&&L.length)re++,J.push(L);else if(!b)return P?u:new We(u)}}else for(let Ee=0,L,z;Ee<C.length;Ee+=2){if(L=this.tag.get(C[Ee]),!L){if(b)continue;return P?u:new We(u)}if(z=(L=L&&L.get(C[Ee+1]))&&L.length)re++,J.push(L);else if(!b)return P?u:new We(u)}if(re){if(ne=Id(ne,J,P),ie=ne.length,!ie&&!b)return P?ne:new We(ne);re--}}if(ie)c[$]=me,u.push(ne),$++;else if(g.length===1)return P?u:new We(u)}if(U){if(this.db&&C&&C.length&&!we)for(d=0;d<C.length;d+=2){if(c=this.index.get(C[d]),!c){if(b)continue;return P?u:new We(u)}U.push(c.db.tag(C[d+1],s,V,!1))}const ge=this;return Promise.all(U).then(function(ne){return ne.length?ge.search(r,s,l,ne):ne})}if(!$)return P?u:new We(u);if(F&&(!d||!this.store))return u[0];for(U=[],V=0;V<c.length;V++){if(b=u[V],d&&b.length&&typeof b[0].doc>"u"&&(this.db?U.push(b=this.index.get(this.field[0]).db.enrich(b)):b=tn.call(this,b)),F)return P?b:new We(b);u[V]={field:c[V],result:b}}if(d&&this.db&&U.length){const ge=this;return Promise.all(U).then(function(ne){for(let me=0;me<ne.length;me++)u[me].result=ne[me];return v?eu(u):O?Za(u,r,ge.index,ge.field,ge.D,O):u})}return v?eu(u):O?Za(u,r,this.index,this.field,this.D,O):u};function Za(r,s,l,i,u,c){let d,v,g;for(let C=0,$,P,O,F;C<r.length;C++){if($=r[C].field,!$)continue;let b=r[C].result;O=l.get($),P=O.encoder,g=O.tokenize,F=u[i.indexOf($)],P!==d&&(d=P,v=d.encode(s));for(let V=0;V<b.length;V++){let U="",J=kr(b[V].doc,F).split(/\s+/);for(let re=0,we,ge;re<J.length;re++){we=J[re],ge=P.encode(we),ge=1<ge.length?ge.join(" "):ge[0];let ne;if(ge&&we)for(let me=0,ie;me<v.length;me++)if(ie=v[me],g==="strict"){if(ge===ie){U+=(U?" ":"")+c.replace("$1",we),ne=!0;break}}else{const fe=ge.indexOf(ie);if(-1<fe){U+=(U?" ":"")+we.substring(0,fe)+c.replace("$1",we.substring(fe,ie.length))+we.substring(fe+ie.length),ne=!0;break}}ne||(U+=(U?" ":"")+J[re])}b[V].highlight=U}}return r}function eu(r){const s=[],l=Xe();for(let i=0,u,c;i<r.length;i++){u=r[i],c=u.result;for(let d=0,v,g,C;d<c.length;d++)g=c[d],typeof g!="object"&&(g={id:g}),v=g.id,(C=l[v])?C.push(u.field):(g.field=l[v]=[u.field],s.push(g))}return s}function zd(r,s,l,i,u){if(r=this.tag.get(r),!r)return[];if((s=(r=r&&r.get(s))&&r.length-i)&&0<s)return(s>l||i)&&(r=r.slice(i,i+l)),u&&(r=tn.call(this,r)),r}function tn(r){if(!this||!this.store)return r;const s=Array(r.length);for(let l=0,i;l<r.length;l++)i=r[l],s[l]={id:i,doc:this.store.get(i)};return s}function jn(r){if(!this||this.constructor!==jn)return new jn(r);const s=r.document||r.doc||r;let l,i;if(this.D=[],this.field=[],this.J=[],this.key=(l=s.key||s.id)&&Cs(l,this.J)||"id",(i=r.keystore||0)&&(this.keystore=i),this.fastupdate=!!r.fastupdate,this.reg=!this.fastupdate||r.worker||r.db?i?new _t(i):new Set:i?new Dt(i):new Map,this.C=(l=s.store||null)&&l&&l!==!0&&[],this.store=l&&(i?new Dt(i):new Map),this.cache=(l=r.cache||null)&&new An(l),r.cache=!1,this.worker=r.worker,this.priority=r.priority||4,this.index=bd.call(this,r,s),this.tag=null,(l=s.tag)&&(typeof l=="string"&&(l=[l]),l.length)){this.tag=new Map,this.F=[],this.R=[];for(let u=0,c,d;u<l.length;u++){if(c=l[u],d=c.field||c,!d)throw Error("The tag field from the document descriptor is undefined.");c.custom?this.F[u]=c.custom:(this.F[u]=Cs(d,this.J),c.filter&&(typeof this.F[u]=="string"&&(this.F[u]=new String(this.F[u])),this.F[u].I=c.filter)),this.R[u]=d,this.tag.set(d,new Map)}}if(this.worker){this.fastupdate=!1,r=[];for(const u of this.index.values())u.then&&r.push(u);if(r.length){const u=this;return Promise.all(r).then(function(c){let d=0;for(const v of u.index.entries()){const g=v[0];v[1].then&&u.index.set(g,c[d++])}return u})}}else r.db&&(this.fastupdate=!1,this.mount(r.db))}ve=jn.prototype,ve.mount=function(r){let s=this.field;if(this.tag)for(let u=0,c;u<this.R.length;u++){c=this.R[u];var l=void 0;this.index.set(c,l=new Mt({},this.reg)),s===this.field&&(s=s.slice(0)),s.push(c),l.tag=this.tag.get(c)}l=[];const i={db:r.db,type:r.type,fastupdate:r.fastupdate};for(let u=0,c,d;u<s.length;u++){i.field=d=s[u],c=this.index.get(d);const v=new r.constructor(r.id,i);v.id=r.id,l[u]=v.mount(c),c.document=!0,u?c.bypass=!0:c.store=this.store}return this.db=!0,Promise.all(l)},ve.commit=async function(r,s){const l=[];for(const i of this.index.values())l.push(i.commit(r,s));await Promise.all(l),this.reg.clear()},ve.destroy=function(){const r=[];for(const s of this.index.values())r.push(s.destroy());return Promise.all(r)};function bd(r,s){const l=new Map;let i=s.index||s.field||s;Rt(i)&&(i=[i]);for(let u=0,c,d;u<i.length;u++){if(c=i[u],Rt(c)||(d=c,c=c.field),d=Cr(d)?Object.assign({},r,d):r,this.worker){const v=new jr(d);l.set(c,v)}this.worker||l.set(c,new Mt(d,this.reg)),d.custom?this.D[u]=d.custom:(this.D[u]=Cs(c,this.J),d.filter&&(typeof this.D[u]=="string"&&(this.D[u]=new String(this.D[u])),this.D[u].I=d.filter)),this.field[u]=c}if(this.C){r=s.store,Rt(r)&&(r=[r]);for(let u=0,c,d;u<r.length;u++)c=r[u],d=c.field||c,c.custom?(this.C[u]=c.custom,c.custom.V=d):(this.C[u]=Cs(d,this.J),c.filter&&(typeof this.C[u]=="string"&&(this.C[u]=new String(this.C[u])),this.C[u].I=c.filter))}return l}function Cs(r,s){const l=r.split(":");let i=0;for(let u=0;u<l.length;u++)r=l[u],r[r.length-1]==="]"&&(r=r.substring(0,r.length-2))&&(s[i]=!0),r&&(l[i++]=r);return i<l.length&&(l.length=i),1<i?l:l[0]}ve.append=function(r,s){return this.add(r,s,!0)},ve.update=function(r,s){return this.remove(r).add(r,s)},ve.remove=function(r){Cr(r)&&(r=kr(r,this.key));for(var s of this.index.values())s.remove(r,!0);if(this.reg.has(r)){if(this.tag&&!this.fastupdate)for(let l of this.tag.values())for(let i of l){s=i[0];const u=i[1],c=u.indexOf(r);-1<c&&(1<u.length?u.splice(c,1):l.delete(s))}this.store&&this.store.delete(r),this.reg.delete(r)}return this.cache&&this.cache.remove(r),this},ve.clear=function(){const r=[];for(const s of this.index.values()){const l=s.clear();l.then&&r.push(l)}if(this.tag)for(const s of this.tag.values())s.clear();return this.store&&this.store.clear(),this.cache&&this.cache.clear(),r.length?Promise.all(r):this},ve.contain=function(r){return this.db?this.index.get(this.field[0]).db.has(r):this.reg.has(r)},ve.cleanup=function(){for(const r of this.index.values())r.cleanup();return this},ve.get=function(r){return this.db?this.index.get(this.field[0]).db.enrich(r).then(function(s){return s[0]&&s[0].doc||null}):this.store.get(r)||null},ve.set=function(r,s){return typeof r=="object"&&(s=r,r=kr(s,this.key)),this.store.set(r,s),this},ve.searchCache=tu,ve.export=function(r,s,l=0,i=0){if(l<this.field.length){const d=this.field[l];if((s=this.index.get(d).export(r,d,l,i=1))&&s.then){const v=this;return s.then(function(){return v.export(r,d,l+1)})}return this.export(r,d,l+1)}let u,c;switch(i){case 0:u="reg",c=Ua(this.reg),s=null;break;case 1:u="tag",c=this.tag&&za(this.tag,this.reg.size),s=null;break;case 2:u="doc",c=this.store&&Vo(this.store),s=null;break;default:return}return Ss.call(this,r,s,u,c,l,i)},ve.import=function(r,s){var l=r.split(".");l[l.length-1]==="json"&&l.pop();const i=2<l.length?l[0]:"";if(l=2<l.length?l[2]:l[1],this.worker&&i)return this.index.get(i).import(r);if(s){if(typeof s=="string"&&(s=JSON.parse(s)),i)return this.index.get(i).import(l,s);switch(l){case"reg":this.fastupdate=!1,this.reg=Ba(s,this.reg);for(let u=0,c;u<this.field.length;u++)c=this.index.get(this.field[u]),c.fastupdate=!1,c.reg=this.reg;if(this.worker){s=[];for(const u of this.index.values())s.push(u.import(r));return Promise.all(s)}break;case"tag":this.tag=ba(s,this.tag);break;case"doc":this.store=Ho(s,this.store)}}},Bo(jn.prototype);function tu(r,s,l){r=(typeof r=="object"?""+r.query:r).toLowerCase(),this.cache||(this.cache=new An);let i=this.cache.get(r);if(!i){if(i=this.search(r,s,l),i.then){const u=this;i.then(function(c){return u.cache.set(r,c),c})}this.cache.set(r,i)}return i}function An(r){this.limit=r&&r!==!0?r:1e3,this.cache=new Map,this.h=""}An.prototype.set=function(r,s){this.cache.set(this.h=r,s),this.cache.size>this.limit&&this.cache.delete(this.cache.keys().next().value)},An.prototype.get=function(r){const s=this.cache.get(r);return s&&this.h!==r&&(this.cache.delete(r),this.cache.set(this.h=r,s)),s},An.prototype.remove=function(r){for(const s of this.cache){const l=s[0];s[1].includes(r)&&this.cache.delete(l)}},An.prototype.clear=function(){this.cache.clear(),this.h=""};const nu={normalize:!1,numeric:!1,dedupe:!1},ks={},Jo=new Map([["b","p"],["v","f"],["w","f"],["z","s"],["x","s"],["d","t"],["n","m"],["c","k"],["g","k"],["j","k"],["q","k"],["i","e"],["y","e"],["u","o"]]),ru=new Map([["ae","a"],["oe","o"],["sh","s"],["kh","k"],["th","t"],["ph","f"],["pf","f"]]),su=[/([^aeo])h(.)/g,"$1$2",/([aeo])h([^aeo]|$)/g,"$1$2",/(.)\1+/g,"$1"],ou={a:"",e:"",i:"",o:"",u:"",y:"",b:1,f:1,p:1,v:1,c:2,g:2,j:2,k:2,q:2,s:2,x:2,z:2,ß:2,d:3,t:3,l:4,m:5,n:5,r:6};var iu={Exact:nu,Default:ks,Normalize:ks,LatinBalance:{mapper:Jo},LatinAdvanced:{mapper:Jo,matcher:ru,replacer:su},LatinExtra:{mapper:Jo,replacer:su.concat([/(?!^)[aeo]/g,""]),matcher:ru},LatinSoundex:{dedupe:!1,include:{letter:!0},finalize:function(r){for(let l=0;l<r.length;l++){var s=r[l];let i=s.charAt(0),u=ou[i];for(let c=1,d;c<s.length&&(d=s.charAt(c),d==="h"||d==="w"||!(d=ou[d])||d===u||(i+=d,u=d,i.length!==4));c++);r[l]=i}}},CJK:{split:""},LatinExact:nu,LatinDefault:ks,LatinSimple:ks};Mt.prototype.remove=function(r,s){const l=this.reg.size&&(this.fastupdate?this.reg.get(r):this.reg.has(r));if(l){if(this.fastupdate){for(let i=0,u;i<l.length;i++)if(u=l[i])if(2>u.length)u.pop();else{const c=u.indexOf(r);c===l.length-1?u.pop():u.splice(c,1)}}else Ar(this.map,r),this.depth&&Ar(this.ctx,r);s||this.reg.delete(r)}return this.db&&(this.commit_task.push({del:r}),this.T&&cu(this)),this.cache&&this.cache.remove(r),this};function Ar(r,s){let l=0;var i=typeof s>"u";if(r.constructor===Array){for(let u=0,c,d;u<r.length;u++)if((c=r[u])&&c.length)if(i)l++;else if(d=c.indexOf(s),0<=d){1<c.length?(c.splice(d,1),l++):delete r[u];break}else l++}else for(let u of r.entries()){i=u[0];const c=Ar(u[1],s);c?l+=c:r.delete(i)}return l}const Ud={memory:{resolution:1},performance:{resolution:3,fastupdate:!0,context:{depth:1,resolution:1}},match:{tokenize:"forward"},score:{resolution:9,context:{depth:2,resolution:3}}};Mt.prototype.add=function(r,s,l,i){if(s&&(r||r===0)){if(!i&&!l&&this.reg.has(r))return this.update(r,s);if(s=this.encoder.encode(s),i=s.length){const C=Xe(),$=Xe(),P=this.depth,O=this.resolution;for(let F=0;F<i;F++){let b=s[this.rtl?i-1-F:F];var u=b.length;if(u&&(P||!$[b])){var c=this.score?this.score(s,b,F,null,0):Ps(O,i,F),d="";switch(this.tokenize){case"full":if(2<u){for(let V=0,U;V<u;V++)for(c=u;c>V;c--){d=b.substring(V,c),U=this.rtl?u-1-V:V;var v=this.score?this.score(s,b,F,d,U):Ps(O,i,F,u,U);Or(this,$,d,v,r,l)}break}case"bidirectional":case"reverse":if(1<u){for(v=u-1;0<v;v--){d=b[this.rtl?u-1-v:v]+d;var g=this.score?this.score(s,b,F,d,v):Ps(O,i,F,u,v);Or(this,$,d,g,r,l)}d=""}case"forward":if(1<u){for(v=0;v<u;v++)d+=b[this.rtl?u-1-v:v],Or(this,$,d,c,r,l);break}default:if(Or(this,$,b,c,r,l),P&&1<i&&F<i-1){for(u=Xe(),d=this.U,c=b,v=Math.min(P+1,this.rtl?F+1:i-F),u[c]=1,g=1;g<v;g++)if((b=s[this.rtl?i-1-F-g:F+g])&&!u[b]){u[b]=1;const V=this.score?this.score(s,c,F,b,g-1):Ps(d+(i/2>d?0:1),i,F,v-1,g-1),U=this.bidirectional&&b>c;Or(this,C,U?c:b,V,r,l,U?b:c)}}}}}this.fastupdate||this.reg.add(r)}else s=""}return this.db&&(s||this.commit_task.push({del:r}),this.T&&cu(this)),this};function Or(r,s,l,i,u,c,d){let v=d?r.ctx:r.map,g;if((!s[l]||d&&!(g=s[l])[d])&&(d?(s=g||(s[l]=Xe()),s[d]=1,(g=v.get(d))?v=g:v.set(d,v=new Map)):s[l]=1,(g=v.get(l))?v=g:v.set(l,v=g=[]),v=v[i]||(v[i]=[]),!c||!v.includes(u))){if(v.length===2**31-1){if(s=new $n(v),r.fastupdate)for(let C of r.reg.values())C.includes(v)&&(C[C.indexOf(v)]=s);g[i]=v=s}v.push(u),r.fastupdate&&((i=r.reg.get(u))?i.push(v):r.reg.set(u,[v]))}}function Ps(r,s,l,i,u){return l&&1<r?s+(i||0)<=r?l+(u||0):(r-1)/(s+(i||0))*(l+(u||0))+1|0:0}Mt.prototype.search=function(r,s,l){l||(s||typeof r!="object"?typeof s=="object"&&(l=s,s=0):(l=r,r=""));let i=[],u,c,d,v=0,g,C,$,P,O;l?(r=l.query||r,s=l.limit||s,v=l.offset||0,c=l.context,d=l.suggest,O=(g=l.resolve!==!1)&&l.enrich,$=l.boost,P=l.resolution,C=this.db&&l.tag):g=this.resolve;let F=this.encoder.encode(r);if(u=F.length,s=s||(g?100:0),u===1)return au.call(this,F[0],"",s,v,g,O,C);if(c=this.depth&&c!==!1,u===2&&c&&!d)return au.call(this,F[1],F[0],s,v,g,O,C);let b=Xe(),V=0,U;if(c&&(U=F[0],V=1),P||P===0||(P=U?this.U:this.resolution),this.db){if(this.db.search&&(r=this.db.search(this,F,s,v,d,g,O,C),r!==!1))return r;const J=this;return(async function(){for(let re,we;V<u;V++){if((we=F[V])&&!b[we]){if(b[we]=1,re=await Qo(J,we,U,0,0,!1,!1),re=uu(re,i,d,P)){i=re;break}U&&(d&&re&&i.length||(U=we))}d&&U&&V===u-1&&!i.length&&(P=J.resolution,U="",V=-1,b=Xe())}return lu(i,P,s,v,d,$,g)})()}for(let J,re;V<u;V++){if((re=F[V])&&!b[re]){if(b[re]=1,J=Qo(this,re,U,0,0,!1,!1),J=uu(J,i,d,P)){i=J;break}U&&(d&&J&&i.length||(U=re))}d&&U&&V===u-1&&!i.length&&(P=this.resolution,U="",V=-1,b=Xe())}return lu(i,P,s,v,d,$,g)};function lu(r,s,l,i,u,c,d){let v=r.length,g=r;if(1<v)g=Ka(r,s,l,i,u,c,d);else if(v===1)return d?Go.call(null,r[0],l,i):new We(r[0]);return d?g:new We(g)}function au(r,s,l,i,u,c,d){return r=Qo(this,r,s,l,i,u,c,d),this.db?r.then(function(v){return u?v||[]:new We(v)}):r&&r.length?u?Go.call(this,r,l,i):new We(r):u?[]:new We}function uu(r,s,l,i){let u=[];if(r&&r.length){if(r.length<=i){s.push(r);return}for(let c=0,d;c<i;c++)(d=r[c])&&(u[c]=d);if(u.length){s.push(u);return}}if(!l)return u}function Qo(r,s,l,i,u,c,d,v){let g;return l&&(g=r.bidirectional&&s>l)&&(g=l,l=s,s=g),r.db?r.db.get(s,l,i,u,c,d,v):(r=l?(r=r.ctx.get(l))&&r.get(s):r.map.get(s),r)}function Mt(r,s){if(!this||this.constructor!==Mt)return new Mt(r);if(r){var l=Rt(r)?r:r.preset;l&&(r=Object.assign({},Ud[l],r))}else r={};l=r.context;const i=l===!0?{depth:1}:l||{},u=Rt(r.encoder)?iu[r.encoder]:r.encode||r.encoder||{};this.encoder=u.encode?u:typeof u=="object"?new Pr(u):{encode:u},this.resolution=r.resolution||9,this.tokenize=l=(l=r.tokenize)&&l!=="default"&&l!=="exact"&&l||"strict",this.depth=l==="strict"&&i.depth||0,this.bidirectional=i.bidirectional!==!1,this.fastupdate=!!r.fastupdate,this.score=r.score||null,(l=r.keystore||0)&&(this.keystore=l),this.map=l?new Dt(l):new Map,this.ctx=l?new Dt(l):new Map,this.reg=s||(this.fastupdate?l?new Dt(l):new Map:l?new _t(l):new Set),this.U=i.resolution||3,this.rtl=u.rtl||r.rtl||!1,this.cache=(l=r.cache||null)&&new An(l),this.resolve=r.resolve!==!1,(l=r.db)&&(this.db=this.mount(l)),this.T=r.commit!==!1,this.commit_task=[],this.commit_timer=null,this.priority=r.priority||4}ve=Mt.prototype,ve.mount=function(r){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),r.mount(this)},ve.commit=function(r,s){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.commit(this,r,s)},ve.destroy=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.destroy()};function cu(r){r.commit_timer||(r.commit_timer=setTimeout(function(){r.commit_timer=null,r.db.commit(r,void 0,void 0)},1))}ve.clear=function(){return this.map.clear(),this.ctx.clear(),this.reg.clear(),this.cache&&this.cache.clear(),this.db&&(this.commit_timer&&clearTimeout(this.commit_timer),this.commit_timer=null,this.commit_task=[{clear:!0}]),this},ve.append=function(r,s){return this.add(r,s,!0)},ve.contain=function(r){return this.db?this.db.has(r):this.reg.has(r)},ve.update=function(r,s){const l=this,i=this.remove(r);return i&&i.then?i.then(()=>l.add(r,s)):this.add(r,s)},ve.cleanup=function(){return this.fastupdate?(Ar(this.map),this.depth&&Ar(this.ctx),this):this},ve.searchCache=tu,ve.export=function(r,s,l=0,i=0){let u,c;switch(i){case 0:u="reg",c=Ua(this.reg);break;case 1:u="cfg",c=null;break;case 2:u="map",c=Vo(this.map,this.reg.size);break;case 3:u="ctx",c=za(this.ctx,this.reg.size);break;default:return}return Ss.call(this,r,s,u,c,l,i)},ve.import=function(r,s){if(s)switch(typeof s=="string"&&(s=JSON.parse(s)),r=r.split("."),r[r.length-1]==="json"&&r.pop(),r.length===3&&r.shift(),r=1<r.length?r[1]:r[0],r){case"reg":this.fastupdate=!1,this.reg=Ba(s,this.reg);break;case"map":this.map=Ho(s,this.map);break;case"ctx":this.ctx=ba(s,this.ctx)}},ve.serialize=function(r=!0){let s="",l="",i="";if(this.reg.size){let c;for(var u of this.reg.keys())c||(c=typeof u),s+=(s?",":"")+(c==="string"?'"'+u+'"':u);s="index.reg=new Set(["+s+"]);",l=qa(this.map,c),l="index.map=new Map(["+l+"]);";for(const d of this.ctx.entries()){u=d[0];let v=qa(d[1],c);v="new Map(["+v+"])",v='["'+u+'",'+v+"]",i+=(i?",":"")+v}i="index.ctx=new Map(["+i+"]);"}return r?"function inject(index){"+s+l+i+"}":s+l+i},Bo(Mt.prototype);const fu=typeof window<"u"&&(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),Es=["map","ctx","tag","reg","cfg"],On=Xe();function hu(r,s={}){if(!this)return new hu(r,s);typeof r=="object"&&(s=r,r=r.name),r||console.info("Default storage space was used, because a name was not passed."),this.id="flexsearch"+(r?":"+r.toLowerCase().replace(/[^a-z0-9_\-]/g,""):""),this.field=s.field?s.field.toLowerCase().replace(/[^a-z0-9_\-]/g,""):"",this.type=s.type,this.fastupdate=this.support_tag_search=!1,this.db=null,this.h={}}ve=hu.prototype,ve.mount=function(r){return r.encoder?(r.db=this,this.open()):r.mount(this)},ve.open=function(){if(this.db)return this.db;let r=this;navigator.storage&&navigator.storage.persist(),On[r.id]||(On[r.id]=[]),On[r.id].push(r.field);const s=fu.open(r.id,1);return s.onupgradeneeded=function(){const l=r.db=this.result;for(let i=0,u;i<Es.length;i++){u=Es[i];for(let c=0,d;c<On[r.id].length;c++)d=On[r.id][c],l.objectStoreNames.contains(u+(u!=="reg"&&d?":"+d:""))||l.createObjectStore(u+(u!=="reg"&&d?":"+d:""))}},r.db=nn(s,function(l){r.db=l,r.db.onversionchange=function(){r.close()}})},ve.close=function(){this.db&&this.db.close(),this.db=null},ve.destroy=function(){const r=fu.deleteDatabase(this.id);return nn(r)},ve.clear=function(){const r=[];for(let l=0,i;l<Es.length;l++){i=Es[l];for(let u=0,c;u<On[this.id].length;u++)c=On[this.id][u],r.push(i+(i!=="reg"&&c?":"+c:""))}const s=this.db.transaction(r,"readwrite");for(let l=0;l<r.length;l++)s.objectStore(r[l]).clear();return nn(s)},ve.get=function(r,s,l=0,i=0,u=!0,c=!1){r=this.db.transaction((s?"ctx":"map")+(this.field?":"+this.field:""),"readonly").objectStore((s?"ctx":"map")+(this.field?":"+this.field:"")).get(s?s+":"+r:r);const d=this;return nn(r).then(function(v){let g=[];if(!v||!v.length)return g;if(u){if(!l&&!i&&v.length===1)return v[0];for(let C=0,$;C<v.length;C++)if(($=v[C])&&$.length){if(i>=$.length){i-=$.length;continue}const P=l?i+Math.min($.length-i,l):$.length;for(let O=i;O<P;O++)g.push($[O]);if(i=0,g.length===l)break}return c?d.enrich(g):g}return v})},ve.tag=function(r,s=0,l=0,i=!1){r=this.db.transaction("tag"+(this.field?":"+this.field:""),"readonly").objectStore("tag"+(this.field?":"+this.field:"")).get(r);const u=this;return nn(r).then(function(c){return!c||!c.length||l>=c.length?[]:!s&&!l?c:(c=c.slice(l,l+s),i?u.enrich(c):c)})},ve.enrich=function(r){typeof r!="object"&&(r=[r]);const s=this.db.transaction("reg","readonly").objectStore("reg"),l=[];for(let i=0;i<r.length;i++)l[i]=nn(s.get(r[i]));return Promise.all(l).then(function(i){for(let u=0;u<i.length;u++)i[u]={id:r[u],doc:i[u]?JSON.parse(i[u]):null};return i})},ve.has=function(r){return r=this.db.transaction("reg","readonly").objectStore("reg").getKey(r),nn(r).then(function(s){return!!s})},ve.search=null,ve.info=function(){},ve.transaction=function(r,s,l){r+=r!=="reg"&&this.field?":"+this.field:"";let i=this.h[r+":"+s];if(i)return l.call(this,i);let u=this.db.transaction(r,s);this.h[r+":"+s]=i=u.objectStore(r);const c=l.call(this,i);return this.h[r+":"+s]=null,nn(u).finally(function(){return u=i=null,c})},ve.commit=async function(r,s,l){if(s)await this.clear(),r.commit_task=[];else{let i=r.commit_task;r.commit_task=[];for(let u=0,c;u<i.length;u++)if(c=i[u],c.clear){await this.clear(),s=!0;break}else i[u]=c.del;s||(l||(i=i.concat(jd(r.reg))),i.length&&await this.remove(i))}r.reg.size&&(await this.transaction("map","readwrite",function(i){for(const u of r.map){const c=u[0],d=u[1];d.length&&(s?i.put(d,c):i.get(c).onsuccess=function(){let v=this.result;var g;if(v&&v.length){const C=Math.max(v.length,d.length);for(let $=0,P,O;$<C;$++)if((O=d[$])&&O.length){if((P=v[$])&&P.length)for(g=0;g<O.length;g++)P.push(O[g]);else v[$]=O;g=1}}else v=d,g=1;g&&i.put(v,c)})}}),await this.transaction("ctx","readwrite",function(i){for(const u of r.ctx){const c=u[0],d=u[1];for(const v of d){const g=v[0],C=v[1];C.length&&(s?i.put(C,c+":"+g):i.get(c+":"+g).onsuccess=function(){let $=this.result;var P;if($&&$.length){const O=Math.max($.length,C.length);for(let F=0,b,V;F<O;F++)if((V=C[F])&&V.length){if((b=$[F])&&b.length)for(P=0;P<V.length;P++)b.push(V[P]);else $[F]=V;P=1}}else $=C,P=1;P&&i.put($,c+":"+g)})}}}),r.store?await this.transaction("reg","readwrite",function(i){for(const u of r.store){const c=u[0],d=u[1];i.put(typeof d=="object"?JSON.stringify(d):1,c)}}):r.bypass||await this.transaction("reg","readwrite",function(i){for(const u of r.reg.keys())i.put(1,u)}),r.tag&&await this.transaction("tag","readwrite",function(i){for(const u of r.tag){const c=u[0],d=u[1];d.length&&(i.get(c).onsuccess=function(){let v=this.result;v=v&&v.length?v.concat(d):d,i.put(v,c)})}}),r.map.clear(),r.ctx.clear(),r.tag&&r.tag.clear(),r.store&&r.store.clear(),r.document||r.reg.clear())};function Yo(r,s,l){const i=r.value;let u,c=0;for(let d=0,v;d<i.length;d++){if(v=l?i:i[d]){for(let g=0,C,$;g<s.length;g++)if($=s[g],C=v.indexOf($),0<=C)if(u=1,1<v.length)v.splice(C,1);else{i[d]=[];break}c+=v.length}if(l)break}c?u&&r.update(i):r.delete(),r.continue()}ve.remove=function(r){return typeof r!="object"&&(r=[r]),Promise.all([this.transaction("map","readwrite",function(s){s.openCursor().onsuccess=function(){const l=this.result;l&&Yo(l,r)}}),this.transaction("ctx","readwrite",function(s){s.openCursor().onsuccess=function(){const l=this.result;l&&Yo(l,r)}}),this.transaction("tag","readwrite",function(s){s.openCursor().onsuccess=function(){const l=this.result;l&&Yo(l,r,!0)}}),this.transaction("reg","readwrite",function(s){for(let l=0;l<r.length;l++)s.delete(r[l])})])};function nn(r,s){return new Promise((l,i)=>{r.onsuccess=r.oncomplete=function(){s&&s(this.result),s=null,l(this.result)},r.onerror=r.onblocked=i,r=null})}const $s={Encoder:Pr,Document:jn},Bd=iu,qd={finalize:r=>{let s=[];for(const l of r)s.push(...Hd(l));return s}};function Vd(r){return r>=19968&&r<=40959||r>=12352&&r<=12543||r>=44032&&r<=55203||r>=13312&&r<=19903||r>=131072&&r<=173791||r>=173824&&r<=191471||r>=196608&&r<=205743||r>=191472&&r<=192095||r>=63744&&r<=64255||r>=194560&&r<=195103}function Hd(r){const s=[];let l="";for(const i of r){const u=i.codePointAt(0);Vd(u)?(l&&(s.push(l),l=""),s.push(i)):l+=i}return l&&s.push(l),s}const Xo=new $s.Encoder(Bd.Default,qd);class Wd{constructor({adminUrl:s,apiKey:l,dir:i}){const u=i==="rtl",c=i==="rtl"?"reverse":"forward";this.apiUrl=s,this.apiKey=l,this.postsIndex=new $s.Document({tokenize:c,rtl:u,document:{id:"id",index:["title","excerpt"],store:!0},encoder:Xo}),this.authorsIndex=new $s.Document({tokenize:c,rtl:u,document:{id:"id",index:["name"],store:!0},encoder:Xo}),this.tagsIndex=new $s.Document({tokenize:c,rtl:u,document:{id:"id",index:["name"],store:!0},encoder:Xo}),this.init=this.init.bind(this),this.search=this.search.bind(this)}async#t(){const s=await this.#n();s.length>0&&this.#r(s)}async#n(){try{const s=`${this.apiUrl}/ghost/api/content/search-index/posts/?key=${this.apiKey}`;return(await(await fetch(s)).json()).posts}catch(s){return console.error("Error fetching posts:",s),[]}}#r(s){s.forEach(l=>{this.postsIndex.add(l)})}async#s(){const s=await this.#o();s.length>0&&this.#i(s)}async#o(){try{const s=`${this.apiUrl}/ghost/api/content/search-index/authors/?key=${this.apiKey}`;return(await(await fetch(s)).json()).authors}catch(s){return console.error("Error fetching authors:",s),[]}}#i(s){s.forEach(l=>{this.authorsIndex.add(l)})}async#l(){const s=await this.#a();s.length>0&&this.#u(s)}async#a(){try{const s=`${this.apiUrl}/ghost/api/content/search-index/tags/?key=${this.apiKey}`;return(await(await fetch(s)).json()).tags}catch(s){return console.error("Error fetching tags:",s),[]}}#u(s){s.forEach(l=>{this.tagsIndex.add(l)})}async init(){await this.#t(),await this.#s(),await this.#l()}#e(s){const l=[],i={};return s.forEach(u=>{u.result.forEach(c=>{i[c.id]||(l.push(c.doc),i[c.id]=!0)})}),l}search(s){const l=this.postsIndex.search(s,{enrich:!0}),i=this.authorsIndex.search(s,{enrich:!0}),u=this.tagsIndex.search(s,{enrich:!0});return{posts:this.#e(l),authors:this.#e(i),tags:this.#e(u)}}}var Tn={exports:{}};const Kd={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Gd={Authors:"الكتّاب",Cancel:"إلغاء","No matches found":"لا يوجد نتائج مطابقة",Posts:"منشورات","Search posts, tags and authors":"قم بالبحث عن المنشورات، الوسوم و الكتّاب","Show more results":"اظهر المزيد من النتائج",Tags:"الوسوم"},Jd={Authors:"Автори",Cancel:"Отказ","No matches found":"Няма съвпадения",Posts:"Публикации","Search posts, tags and authors":"Търсене в публикации, етикети и автори","Show more results":"Покажи още резултати",Tags:"Етикети"},Qd={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Yd={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Xd={Authors:"Autors",Cancel:"Cancel·la","No matches found":"No s'ha trobat cap resultat",Posts:"Articles","Search posts, tags and authors":"Cerca articles, etiquetes i autors","Show more results":"Mostra més resultats",Tags:"Etiquetes"},Zd={Authors:"Autoři",Cancel:"Zrušit","No matches found":"Nenalezeno",Posts:"Články","Search posts, tags and authors":"Prohledat články, štítky a autory","Show more results":"Zobrazit více výsledků",Tags:"Štítky"},ep={Authors:"Forfattere",Cancel:"Annuller","No matches found":"Ingen resultater fundet",Posts:"Indlæg","Search posts, tags and authors":"Søg i indlæg, tags og forfattere","Show more results":"Vis flere resultater",Tags:"Tags"},tp={Authors:"Autor*innen",Cancel:"Abbrechen","No matches found":"Keine Treffer gefunden",Posts:"Posts","Search posts, tags and authors":"Posts, Tags und Autor*innen durchsuchen","Show more results":"Mehr Ergebnisse anzeigen",Tags:"Tags"},np={Authors:"Autoren",Cancel:"Abbrechen","No matches found":"Keine Treffer gefunden",Posts:"Beiträge","Search posts, tags and authors":"Nach Posts, Tags und Autoren suchen","Show more results":"Mehr Ergebnisse anzeigen",Tags:"Tags"},rp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},sp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},op={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},ip={Authors:"Autores",Cancel:"Cancelar","No matches found":"No se encontraron resultados",Posts:"Publicaciones","Search posts, tags and authors":"Buscar publicaciones, etiquetas y autores","Show more results":"Mostrar más resultados",Tags:"Etiquetas"},lp={Authors:"Autorid",Cancel:"Tühista","No matches found":"Vasteid ei leitud",Posts:"Postitused","Search posts, tags and authors":"Otsi postitusi, silte ja autoreid","Show more results":"Näita rohkem tulemusi",Tags:"Sildid"},ap={Authors:"Autoreak",Cancel:"Utzi","No matches found":"Ez da bat datorren ezer topatu",Posts:"Artikuluak","Search posts, tags and authors":"Bilatu artikuluak, etiketak eta autoreak","Show more results":"Erakutsi emaitza gehiago",Tags:"Etiketak"},up={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},cp={Authors:"Kirjoittajat",Cancel:"Peruuta","No matches found":"Ei hakutuloksia",Posts:"Kirjoitukset","Search posts, tags and authors":"Etsi kirjoituksia, tunnisteita ja kirjoittajia","Show more results":"Näytä enemmän tuloksia",Tags:"Tunnisteet"},fp={Authors:"Auteurs",Cancel:"Annuler","No matches found":"Aucun résultat trouvé",Posts:"Articles","Search posts, tags and authors":"Rechercher des articles, des catégories et des auteurs","Show more results":"Plus de résultats",Tags:"Catégories"},hp={Authors:"Ùghdaran",Cancel:"Sguir dheth","No matches found":"Cha deach dad a lorg a fhreagras ris na lorg thu",Posts:"Postaichean","Search posts, tags and authors":"Lorg sna postaichean, tagaichean agus ùghdaran","Show more results":"Seall barrachd thoraidhean",Tags:"Tagaichean"},dp={Authors:"מחברים",Cancel:"ביטול","No matches found":"לא נמצאו התאמות",Posts:"פוסטים","Search posts, tags and authors":"חיפוש פוסטים, תגיות ומחברים","Show more results":"הצגת תוצאות נוספות",Tags:"תגיות"},pp={Authors:"लेखक",Cancel:"रद्द करें","No matches found":"कोई मैच नहीं मिला",Posts:"पोस्ट","Search posts, tags and authors":"पोस्ट, टैग और लेखक की तलाश करें","Show more results":"और परिणाम दिखाएं",Tags:"टैग"},gp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},mp={Authors:"Szerzők",Cancel:"Mégse","No matches found":"Nincs találat",Posts:"Bejegyzések","Search posts, tags and authors":"Keresés a bejegyzések, a címkék és a szerzők között","Show more results":"További találatok megjelenítése",Tags:"Címkék"},yp={Authors:"Penulis",Cancel:"Batalkan","No matches found":"Tidak ada hasil yang ditemukan",Posts:"Postingan","Search posts, tags and authors":"Cari postingan, tag, dan penulis","Show more results":"Tampilkan lebih banyak hasil",Tags:"Tag"},vp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},wp={Authors:"Autori",Cancel:"Annulla","No matches found":"Nessun risultato trovato",Posts:"Articoli","Search posts, tags and authors":"Cerca articoli, tag e autori","Show more results":"Mostra più risultati",Tags:"Tag"},Sp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},xp={Authors:"작성자",Cancel:"취소","No matches found":"일치하는 결과가 없어요",Posts:"게시물","Search posts, tags and authors":"게시물, 태그, 작성자 검색","Show more results":"더 많은 결과 보기",Tags:"태그"},Cp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},kp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Pp={Authors:"Autori",Cancel:"Atcelt","No matches found":"Nav atrasta neviena atbilstība",Posts:"Ziņas","Search posts, tags and authors":"Meklēt ziņas, atzīmes un autorus","Show more results":"Rādīt vairāk rezultātu",Tags:"Tagi"},Ep={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},$p={Authors:"Нийтлэгчид",Cancel:"Цуцлах","No matches found":"Тохирох хайлтын үр дүн олдсонгүй",Posts:"Нийтлэлүүд","Search posts, tags and authors":"Нийтлэл, ангилал, нийтлэгчдээр хайх","Show more results":"Илүү олон үр дүн харуулах",Tags:"Ангилалууд"},jp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Ap={Authors:"Forfattere",Cancel:"Avbryt","No matches found":"Ingen treff funnet",Posts:"Innlegg","Search posts, tags and authors":"Søk i innlegg, etiketter og forfattere","Show more results":"Vis flere resultater",Tags:"Etiketter"},Op={Authors:"लेखकहरू",Cancel:"रद्द गर्नुहोस्","No matches found":"कुनै परिणाम भेटिएन",Posts:"पोस्टहरू","Search posts, tags and authors":"पोस्टहरू, ट्यागहरू र लेखकहरू खोज्नुहोस्","Show more results":"थप परिणामहरू देखाउनुहोस्",Tags:"ट्यागहरू"},Tp={Authors:"Auteurs",Cancel:"Annuleren","No matches found":"Geen resultaten gevonden",Posts:"Berichten","Search posts, tags and authors":"Zoek berichten, tags en auteurs","Show more results":"Meer resultaten weergeven",Tags:"Tags"},Np={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Rp={Authors:"ਲੇਖਕ",Cancel:"ਰੱਦ ਕਰੋ","No matches found":"ਕੋਈ ਮੇਲ ਨਹੀਂ ਮਿਲਿਆ",Posts:"ਪੋਸਟਾਂ","Search posts, tags and authors":"ਪੋਸਟਾਂ, ਟੈਗ ਅਤੇ ਲੇਖਕ ਖੋਜੋ","Show more results":"ਹੋਰ ਨਤੀਜੇ ਦਿਖਾਓ",Tags:"ਟੈਗ"},_p={Authors:"Autorzy",Cancel:"Anuluj","No matches found":"Nie znaleziono dopasowań",Posts:"Posty","Search posts, tags and authors":"Szukaj postów, tagów lub autorów","Show more results":"Pokaż więcej wyników",Tags:"Tagi"},Lp={Authors:"Autores",Cancel:"Cancelar","No matches found":"Nenhum resultado encontrado",Posts:"Publicações","Search posts, tags and authors":"Procurar publicações, marcadores e autores","Show more results":"Mostrar mais resultados",Tags:"Marcadores"},Fp={Authors:"Autores",Cancel:"Cancelar","No matches found":"Nenhum resultado encontrado",Posts:"Publicações","Search posts, tags and authors":"Buscar posts, tags e autores","Show more results":"Mostrar mais resultados",Tags:"Tags"},Ip={Authors:"Autori",Cancel:"Anulează","No matches found":"Nu s-au găsit rezultate",Posts:"Postări","Search posts, tags and authors":"Caută postări, etichete și autori","Show more results":"Afișează mai multe rezultate",Tags:"Etichete"},Dp={Authors:"Авторы",Cancel:"Отмена","No matches found":"Совпадений не найдено",Posts:"Записи","Search posts, tags and authors":"Поиск по записям, тегам и авторам","Show more results":"Показать больше результатов",Tags:"Теги"},Mp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},zp={Authors:"Autori",Cancel:"Zrušiť","No matches found":"Nenašli sa žiadne výsledky",Posts:"Príspevky","Search posts, tags and authors":"Vyhľadajte príspevky, tagy a autorov","Show more results":"Zobraziť viac výsledkov",Tags:"Tagy"},bp={Authors:"Avtorji",Cancel:"Prekliči","No matches found":"Ni najdenih zadetkov",Posts:"Članki","Search posts, tags and authors":"Iščite članke, oznake in avtorje","Show more results":"Prikaži več rezultatov",Tags:"Oznake"},Up={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Bp={Authors:"Autori",Cancel:"Otkažite","No matches found":"Nema rezultata",Posts:"Objave","Search posts, tags and authors":"Pretražite objave, tag-ove i autore","Show more results":"Prikažite više rezultata",Tags:"Tag-ovi"},qp={Authors:"Аутори",Cancel:"Откажите","No matches found":"Нема резултата",Posts:"Објаве","Search posts, tags and authors":"Претражите објаве, tag-ове и ауторе","Show more results":"Прикажите више резултата",Tags:"Tag-ови"},Vp={Authors:"Författare",Cancel:"Avbryt","No matches found":"Inga träffar hittade",Posts:"Inlägg","Search posts, tags and authors":"Sök inlägg, taggar och författare","Show more results":"Visa fler resultat",Tags:"Taggar"},Hp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Wp={Authors:"ஆசிரியர்கள்",Cancel:"ரத்து செய்","No matches found":"பொருத்தங்கள் எதுவும் இல்லை",Posts:"பதிவுகள்","Search posts, tags and authors":"பதிவுகள், குறிச்சொற்கள் மற்றும் ஆசிரியர்களைத் தேடுங்கள்","Show more results":"மேலும் முடிவுகளைக் காட்டு",Tags:"குறிச்சொற்கள்"},Kp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Gp={Authors:"Yazarlar",Cancel:"İptal","No matches found":"Eşleşme bulunamadı",Posts:"Yazılar","Search posts, tags and authors":"Yazıları, etiketleri ve yazarları ara","Show more results":"Daha fazla sonuç göster",Tags:"Etiketler"},Jp={Authors:"Автори",Cancel:"Скасувати","No matches found":"Збігів не знайдено",Posts:"Публікації","Search posts, tags and authors":"Шукайте публікацій, теги та авторів","Show more results":"Показати більше результатів",Tags:"Теги"},Qp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Yp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Xp={Authors:"Tác giả",Cancel:"Hủy","No matches found":"Không tìm thấy",Posts:"Bài viết","Search posts, tags and authors":"Tìm bài viết, thẻ & tác giả","Show more results":"Xem thêm kết quả",Tags:"Thẻ"},Zp={Authors:"作者",Cancel:"取消","No matches found":"未找到匹配项",Posts:"文章","Search posts, tags and authors":"搜索文章、标签和作者","Show more results":"显示更多结果",Tags:"标签"},eg={Authors:"作者",Cancel:"取消","No matches found":"無相符結果",Posts:"文章","Search posts, tags and authors":"搜尋文章、標籤與作者","Show more results":"更多結果",Tags:"標籤"};var du;function pu(){return du||(du={"/ghost/i18n/locales/af/search.json":function(){return Kd},"/ghost/i18n/locales/ar/search.json":function(){return Gd},"/ghost/i18n/locales/bg/search.json":function(){return Jd},"/ghost/i18n/locales/bn/search.json":function(){return Qd},"/ghost/i18n/locales/bs/search.json":function(){return Yd},"/ghost/i18n/locales/ca/search.json":function(){return Xd},"/ghost/i18n/locales/cs/search.json":function(){return Zd},"/ghost/i18n/locales/da/search.json":function(){return ep},"/ghost/i18n/locales/de/search.json":function(){return tp},"/ghost/i18n/locales/de-CH/search.json":function(){return np},"/ghost/i18n/locales/el/search.json":function(){return rp},"/ghost/i18n/locales/en/search.json":function(){return sp},"/ghost/i18n/locales/eo/search.json":function(){return op},"/ghost/i18n/locales/es/search.json":function(){return ip},"/ghost/i18n/locales/et/search.json":function(){return lp},"/ghost/i18n/locales/eu/search.json":function(){return ap},"/ghost/i18n/locales/fa/search.json":function(){return up},"/ghost/i18n/locales/fi/search.json":function(){return cp},"/ghost/i18n/locales/fr/search.json":function(){return fp},"/ghost/i18n/locales/gd/search.json":function(){return hp},"/ghost/i18n/locales/he/search.json":function(){return dp},"/ghost/i18n/locales/hi/search.json":function(){return pp},"/ghost/i18n/locales/hr/search.json":function(){return gp},"/ghost/i18n/locales/hu/search.json":function(){return mp},"/ghost/i18n/locales/id/search.json":function(){return yp},"/ghost/i18n/locales/is/search.json":function(){return vp},"/ghost/i18n/locales/it/search.json":function(){return wp},"/ghost/i18n/locales/ja/search.json":function(){return Sp},"/ghost/i18n/locales/ko/search.json":function(){return xp},"/ghost/i18n/locales/kz/search.json":function(){return Cp},"/ghost/i18n/locales/lt/search.json":function(){return kp},"/ghost/i18n/locales/lv/search.json":function(){return Pp},"/ghost/i18n/locales/mk/search.json":function(){return Ep},"/ghost/i18n/locales/mn/search.json":function(){return $p},"/ghost/i18n/locales/ms/search.json":function(){return jp},"/ghost/i18n/locales/nb/search.json":function(){return Ap},"/ghost/i18n/locales/ne/search.json":function(){return Op},"/ghost/i18n/locales/nl/search.json":function(){return Tp},"/ghost/i18n/locales/nn/search.json":function(){return Np},"/ghost/i18n/locales/pa/search.json":function(){return Rp},"/ghost/i18n/locales/pl/search.json":function(){return _p},"/ghost/i18n/locales/pt/search.json":function(){return Lp},"/ghost/i18n/locales/pt-BR/search.json":function(){return Fp},"/ghost/i18n/locales/ro/search.json":function(){return Ip},"/ghost/i18n/locales/ru/search.json":function(){return Dp},"/ghost/i18n/locales/si/search.json":function(){return Mp},"/ghost/i18n/locales/sk/search.json":function(){return zp},"/ghost/i18n/locales/sl/search.json":function(){return bp},"/ghost/i18n/locales/sq/search.json":function(){return Up},"/ghost/i18n/locales/sr/search.json":function(){return Bp},"/ghost/i18n/locales/sr-Cyrl/search.json":function(){return qp},"/ghost/i18n/locales/sv/search.json":function(){return Vp},"/ghost/i18n/locales/sw/search.json":function(){return Hp},"/ghost/i18n/locales/ta/search.json":function(){return Wp},"/ghost/i18n/locales/th/search.json":function(){return Kp},"/ghost/i18n/locales/tr/search.json":function(){return Gp},"/ghost/i18n/locales/uk/search.json":function(){return Jp},"/ghost/i18n/locales/ur/search.json":function(){return Qp},"/ghost/i18n/locales/uz/search.json":function(){return Yp},"/ghost/i18n/locales/vi/search.json":function(){return Xp},"/ghost/i18n/locales/zh/search.json":function(){return Zp},"/ghost/i18n/locales/zh-Hant/search.json":function(){return eg}})}function Nn(r){function s(l){var i=gu(l,r);if(i!==null)return pu()[i]();throw new Error('Could not dynamically require "'+l+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}return s.resolve=function(l){var i=gu(l,r);return i!==null?i:require.resolve(l)},s}function gu(r,s){var l=tg(r);r=js(r);var i;r[0]==="/"&&(s="");for(var u=pu(),c=["",".js",".json"];l?i=js(s+"/node_modules/"+r):i=js(s+"/"+r),!i.endsWith("/..");){for(var d=0;d<c.length;d++){var v=i+c[d];if(u[v])return v}if(!l)break;var g=js(s+"/..");if(g===s)break;s=g}return null}function tg(r){var s=r[0];if(s==="/"||s==="\\")return!1;var l=r[1],i=r[2];return!(s==="."&&(!l||l==="/"||l==="\\")||s==="."&&l==="."&&(!i||i==="/"||i==="\\")||l===":"&&(i==="/"||i==="\\"))}function js(r){r=r.replace(/\\/g,"/");for(var s=r.split("/"),l=s[0]==="",i=1;i<s.length;i++)(s[i]==="."||s[i]==="")&&s.splice(i--,1);for(var i=1;i<s.length;i++)s[i]===".."&&i>0&&s[i-1]!==".."&&s[i-1]!=="."&&(s.splice(--i,2),i--);return r=s.join("/"),l&&r[0]!=="/"?r="/"+r:r.length===0&&(r="."),r}var Kn={exports:{}},Zo,mu;function ng(){if(mu)return Zo;mu=1;const r=k=>typeof k=="string",s=()=>{let k,f;const p=new Promise((m,x)=>{k=m,f=x});return p.resolve=k,p.reject=f,p},l=k=>k==null?"":""+k,i=(k,f,p)=>{k.forEach(m=>{f[m]&&(p[m]=f[m])})},u=/###/g,c=k=>k&&k.indexOf("###")>-1?k.replace(u,"."):k,d=k=>!k||r(k),v=(k,f,p)=>{const m=r(f)?f.split("."):f;let x=0;for(;x<m.length-1;){if(d(k))return{};const E=c(m[x]);!k[E]&&p&&(k[E]=new p),Object.prototype.hasOwnProperty.call(k,E)?k=k[E]:k={},++x}return d(k)?{}:{obj:k,k:c(m[x])}},g=(k,f,p)=>{const{obj:m,k:x}=v(k,f,Object);if(m!==void 0||f.length===1){m[x]=p;return}let E=f[f.length-1],N=f.slice(0,f.length-1),I=v(k,N,Object);for(;I.obj===void 0&&N.length;)E=`${N[N.length-1]}.${E}`,N=N.slice(0,N.length-1),I=v(k,N,Object),I&&I.obj&&typeof I.obj[`${I.k}.${E}`]<"u"&&(I.obj=void 0);I.obj[`${I.k}.${E}`]=p},C=(k,f,p,m)=>{const{obj:x,k:E}=v(k,f,Object);x[E]=x[E]||[],x[E].push(p)},$=(k,f)=>{const{obj:p,k:m}=v(k,f);if(p)return p[m]},P=(k,f,p)=>{const m=$(k,p);return m!==void 0?m:$(f,p)},O=(k,f,p)=>{for(const m in f)m!=="__proto__"&&m!=="constructor"&&(m in k?r(k[m])||k[m]instanceof String||r(f[m])||f[m]instanceof String?p&&(k[m]=f[m]):O(k[m],f[m],p):k[m]=f[m]);return k},F=k=>k.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var b={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const V=k=>r(k)?k.replace(/[&<>"'\/]/g,f=>b[f]):k;class U{constructor(f){this.capacity=f,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(f){const p=this.regExpMap.get(f);if(p!==void 0)return p;const m=new RegExp(f);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(f,m),this.regExpQueue.push(f),m}}const J=[" ",",","?","!",";"],re=new U(20),we=(k,f,p)=>{f=f||"",p=p||"";const m=J.filter(N=>f.indexOf(N)<0&&p.indexOf(N)<0);if(m.length===0)return!0;const x=re.getRegExp(`(${m.map(N=>N==="?"?"\\?":N).join("|")})`);let E=!x.test(k);if(!E){const N=k.indexOf(p);N>0&&!x.test(k.substring(0,N))&&(E=!0)}return E},ge=function(k,f){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!k)return;if(k[f])return k[f];const m=f.split(p);let x=k;for(let E=0;E<m.length;){if(!x||typeof x!="object")return;let N,I="";for(let M=E;M<m.length;++M)if(M!==E&&(I+=p),I+=m[M],N=x[I],N!==void 0){if(["string","number","boolean"].indexOf(typeof N)>-1&&M<m.length-1)continue;E+=M-E+1;break}x=N}return x},ne=k=>k&&k.replace("_","-"),me={type:"logger",log(k){this.output("log",k)},warn(k){this.output("warn",k)},error(k){this.output("error",k)},output(k,f){console&&console[k]&&console[k].apply(console,f)}};class ie{constructor(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(f,p)}init(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=p.prefix||"i18next:",this.logger=f||me,this.options=p,this.debug=p.debug}log(){for(var f=arguments.length,p=new Array(f),m=0;m<f;m++)p[m]=arguments[m];return this.forward(p,"log","",!0)}warn(){for(var f=arguments.length,p=new Array(f),m=0;m<f;m++)p[m]=arguments[m];return this.forward(p,"warn","",!0)}error(){for(var f=arguments.length,p=new Array(f),m=0;m<f;m++)p[m]=arguments[m];return this.forward(p,"error","")}deprecate(){for(var f=arguments.length,p=new Array(f),m=0;m<f;m++)p[m]=arguments[m];return this.forward(p,"warn","WARNING DEPRECATED: ",!0)}forward(f,p,m,x){return x&&!this.debug?null:(r(f[0])&&(f[0]=`${m}${this.prefix} ${f[0]}`),this.logger[p](f))}create(f){return new ie(this.logger,{prefix:`${this.prefix}:${f}:`,...this.options})}clone(f){return f=f||this.options,f.prefix=f.prefix||this.prefix,new ie(this.logger,f)}}var fe=new ie;class Ee{constructor(){this.observers={}}on(f,p){return f.split(" ").forEach(m=>{this.observers[m]||(this.observers[m]=new Map);const x=this.observers[m].get(p)||0;this.observers[m].set(p,x+1)}),this}off(f,p){if(this.observers[f]){if(!p){delete this.observers[f];return}this.observers[f].delete(p)}}emit(f){for(var p=arguments.length,m=new Array(p>1?p-1:0),x=1;x<p;x++)m[x-1]=arguments[x];this.observers[f]&&Array.from(this.observers[f].entries()).forEach(N=>{let[I,M]=N;for(let Q=0;Q<M;Q++)I(...m)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(N=>{let[I,M]=N;for(let Q=0;Q<M;Q++)I.apply(I,[f,...m])})}}class L extends Ee{constructor(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=f||{},this.options=p,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(f){this.options.ns.indexOf(f)<0&&this.options.ns.push(f)}removeNamespaces(f){const p=this.options.ns.indexOf(f);p>-1&&this.options.ns.splice(p,1)}getResource(f,p,m){let x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const E=x.keySeparator!==void 0?x.keySeparator:this.options.keySeparator,N=x.ignoreJSONStructure!==void 0?x.ignoreJSONStructure:this.options.ignoreJSONStructure;let I;f.indexOf(".")>-1?I=f.split("."):(I=[f,p],m&&(Array.isArray(m)?I.push(...m):r(m)&&E?I.push(...m.split(E)):I.push(m)));const M=$(this.data,I);return!M&&!p&&!m&&f.indexOf(".")>-1&&(f=I[0],p=I[1],m=I.slice(2).join(".")),M||!N||!r(m)?M:ge(this.data&&this.data[f]&&this.data[f][p],m,E)}addResource(f,p,m,x){let E=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const N=E.keySeparator!==void 0?E.keySeparator:this.options.keySeparator;let I=[f,p];m&&(I=I.concat(N?m.split(N):m)),f.indexOf(".")>-1&&(I=f.split("."),x=p,p=I[1]),this.addNamespaces(p),g(this.data,I,x),E.silent||this.emit("added",f,p,m,x)}addResources(f,p,m){let x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const E in m)(r(m[E])||Array.isArray(m[E]))&&this.addResource(f,p,E,m[E],{silent:!0});x.silent||this.emit("added",f,p,m)}addResourceBundle(f,p,m,x,E){let N=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},I=[f,p];f.indexOf(".")>-1&&(I=f.split("."),x=m,m=p,p=I[1]),this.addNamespaces(p);let M=$(this.data,I)||{};N.skipCopy||(m=JSON.parse(JSON.stringify(m))),x?O(M,m,E):M={...M,...m},g(this.data,I,M),N.silent||this.emit("added",f,p,m)}removeResourceBundle(f,p){this.hasResourceBundle(f,p)&&delete this.data[f][p],this.removeNamespaces(p),this.emit("removed",f,p)}hasResourceBundle(f,p){return this.getResource(f,p)!==void 0}getResourceBundle(f,p){return p||(p=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(f,p)}:this.getResource(f,p)}getDataByLanguage(f){return this.data[f]}hasLanguageSomeTranslations(f){const p=this.getDataByLanguage(f);return!!(p&&Object.keys(p)||[]).find(x=>p[x]&&Object.keys(p[x]).length>0)}toJSON(){return this.data}}var z={processors:{},addPostProcessor(k){this.processors[k.name]=k},handle(k,f,p,m,x){return k.forEach(E=>{this.processors[E]&&(f=this.processors[E].process(f,p,m,x))}),f}};const Y={};class se extends Ee{constructor(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),i(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],f,this),this.options=p,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=fe.create("translator")}changeLanguage(f){f&&(this.language=f)}exists(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(f==null)return!1;const m=this.resolve(f,p);return m&&m.res!==void 0}extractFromKey(f,p){let m=p.nsSeparator!==void 0?p.nsSeparator:this.options.nsSeparator;m===void 0&&(m=":");const x=p.keySeparator!==void 0?p.keySeparator:this.options.keySeparator;let E=p.ns||this.options.defaultNS||[];const N=m&&f.indexOf(m)>-1,I=!this.options.userDefinedKeySeparator&&!p.keySeparator&&!this.options.userDefinedNsSeparator&&!p.nsSeparator&&!we(f,m,x);if(N&&!I){const M=f.match(this.interpolator.nestingRegexp);if(M&&M.length>0)return{key:f,namespaces:r(E)?[E]:E};const Q=f.split(m);(m!==x||m===x&&this.options.ns.indexOf(Q[0])>-1)&&(E=Q.shift()),f=Q.join(x)}return{key:f,namespaces:r(E)?[E]:E}}translate(f,p,m){if(typeof p!="object"&&this.options.overloadTranslationOptionHandler&&(p=this.options.overloadTranslationOptionHandler(arguments)),typeof p=="object"&&(p={...p}),p||(p={}),f==null)return"";Array.isArray(f)||(f=[String(f)]);const x=p.returnDetails!==void 0?p.returnDetails:this.options.returnDetails,E=p.keySeparator!==void 0?p.keySeparator:this.options.keySeparator,{key:N,namespaces:I}=this.extractFromKey(f[f.length-1],p),M=I[I.length-1],Q=p.lng||this.language,ee=p.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(Q&&Q.toLowerCase()==="cimode"){if(ee){const Ue=p.nsSeparator||this.options.nsSeparator;return x?{res:`${M}${Ue}${N}`,usedKey:N,exactUsedKey:N,usedLng:Q,usedNS:M,usedParams:this.getUsedParamsDetails(p)}:`${M}${Ue}${N}`}return x?{res:N,usedKey:N,exactUsedKey:N,usedLng:Q,usedNS:M,usedParams:this.getUsedParamsDetails(p)}:N}const ue=this.resolve(f,p);let K=ue&&ue.res;const Se=ue&&ue.usedKey||N,_e=ue&&ue.exactUsedKey||N,Ke=Object.prototype.toString.apply(K),ze=["[object Number]","[object Function]","[object RegExp]"],tt=p.joinArrays!==void 0?p.joinArrays:this.options.joinArrays,nt=!this.i18nFormat||this.i18nFormat.handleAsObject,Lt=!r(K)&&typeof K!="boolean"&&typeof K!="number";if(nt&&K&&Lt&&ze.indexOf(Ke)<0&&!(r(tt)&&Array.isArray(K))){if(!p.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const Ue=this.options.returnedObjectHandler?this.options.returnedObjectHandler(Se,K,{...p,ns:I}):`key '${N} (${this.language})' returned an object instead of string.`;return x?(ue.res=Ue,ue.usedParams=this.getUsedParamsDetails(p),ue):Ue}if(E){const Ue=Array.isArray(K),gt=Ue?[]:{},vt=Ue?_e:Se;for(const rt in K)if(Object.prototype.hasOwnProperty.call(K,rt)){const Jn=`${vt}${E}${rt}`;gt[rt]=this.translate(Jn,{...p,joinArrays:!1,ns:I}),gt[rt]===Jn&&(gt[rt]=K[rt])}K=gt}}else if(nt&&r(tt)&&Array.isArray(K))K=K.join(tt),K&&(K=this.extendTranslation(K,f,p,m));else{let Ue=!1,gt=!1;const vt=p.count!==void 0&&!r(p.count),rt=se.hasDefaultValue(p),Jn=vt?this.pluralResolver.getSuffix(Q,p.count,p):"",Tr=p.ordinal&&vt?this.pluralResolver.getSuffix(Q,p.count,{ordinal:!1}):"",Qn=vt&&!p.ordinal&&p.count===0&&this.pluralResolver.shouldUseIntlApi(),Wt=Qn&&p[`defaultValue${this.options.pluralSeparator}zero`]||p[`defaultValue${Jn}`]||p[`defaultValue${Tr}`]||p.defaultValue;!this.isValidLookup(K)&&rt&&(Ue=!0,K=Wt),this.isValidLookup(K)||(gt=!0,K=N);const rn=(p.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&>?void 0:K,$t=rt&&Wt!==K&&this.options.updateMissing;if(gt||Ue||$t){if(this.logger.log($t?"updateKey":"missingKey",Q,M,N,$t?Wt:K),E){const it=this.resolve(N,{...p,keySeparator:!1});it&&it.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.")}let sn=[];const Rn=this.languageUtils.getFallbackCodes(this.options.fallbackLng,p.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Rn&&Rn[0])for(let it=0;it<Rn.length;it++)sn.push(Rn[it]);else this.options.saveMissingTo==="all"?sn=this.languageUtils.toResolveHierarchy(p.lng||this.language):sn.push(p.lng||this.language);const Nr=(it,zt,Kt)=>{const Rr=rt&&Kt!==K?Kt:rn;this.options.missingKeyHandler?this.options.missingKeyHandler(it,M,zt,Rr,$t,p):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(it,M,zt,Rr,$t,p),this.emit("missingKey",it,M,zt,K)};this.options.saveMissing&&(this.options.saveMissingPlurals&&vt?sn.forEach(it=>{const zt=this.pluralResolver.getSuffixes(it,p);Qn&&p[`defaultValue${this.options.pluralSeparator}zero`]&&zt.indexOf(`${this.options.pluralSeparator}zero`)<0&&zt.push(`${this.options.pluralSeparator}zero`),zt.forEach(Kt=>{Nr([it],N+Kt,p[`defaultValue${Kt}`]||Wt)})}):Nr(sn,N,Wt))}K=this.extendTranslation(K,f,p,ue,m),gt&&K===N&&this.options.appendNamespaceToMissingKey&&(K=`${M}:${N}`),(gt||Ue)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?K=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${M}:${N}`:N,Ue?K:void 0):K=this.options.parseMissingKeyHandler(K))}return x?(ue.res=K,ue.usedParams=this.getUsedParamsDetails(p),ue):K}extendTranslation(f,p,m,x,E){var N=this;if(this.i18nFormat&&this.i18nFormat.parse)f=this.i18nFormat.parse(f,{...this.options.interpolation.defaultVariables,...m},m.lng||this.language||x.usedLng,x.usedNS,x.usedKey,{resolved:x});else if(!m.skipInterpolation){m.interpolation&&this.interpolator.init({...m,interpolation:{...this.options.interpolation,...m.interpolation}});const Q=r(f)&&(m&&m.interpolation&&m.interpolation.skipOnVariables!==void 0?m.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let ee;if(Q){const K=f.match(this.interpolator.nestingRegexp);ee=K&&K.length}let ue=m.replace&&!r(m.replace)?m.replace:m;if(this.options.interpolation.defaultVariables&&(ue={...this.options.interpolation.defaultVariables,...ue}),f=this.interpolator.interpolate(f,ue,m.lng||this.language||x.usedLng,m),Q){const K=f.match(this.interpolator.nestingRegexp),Se=K&&K.length;ee<Se&&(m.nest=!1)}!m.lng&&this.options.compatibilityAPI!=="v1"&&x&&x.res&&(m.lng=this.language||x.usedLng),m.nest!==!1&&(f=this.interpolator.nest(f,function(){for(var K=arguments.length,Se=new Array(K),_e=0;_e<K;_e++)Se[_e]=arguments[_e];return E&&E[0]===Se[0]&&!m.context?(N.logger.warn(`It seems you are nesting recursively key: ${Se[0]} in key: ${p[0]}`),null):N.translate(...Se,p)},m)),m.interpolation&&this.interpolator.reset()}const I=m.postProcess||this.options.postProcess,M=r(I)?[I]:I;return f!=null&&M&&M.length&&m.applyPostProcessor!==!1&&(f=z.handle(M,f,p,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...x,usedParams:this.getUsedParamsDetails(m)},...m}:m,this)),f}resolve(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m,x,E,N,I;return r(f)&&(f=[f]),f.forEach(M=>{if(this.isValidLookup(m))return;const Q=this.extractFromKey(M,p),ee=Q.key;x=ee;let ue=Q.namespaces;this.options.fallbackNS&&(ue=ue.concat(this.options.fallbackNS));const K=p.count!==void 0&&!r(p.count),Se=K&&!p.ordinal&&p.count===0&&this.pluralResolver.shouldUseIntlApi(),_e=p.context!==void 0&&(r(p.context)||typeof p.context=="number")&&p.context!=="",Ke=p.lngs?p.lngs:this.languageUtils.toResolveHierarchy(p.lng||this.language,p.fallbackLng);ue.forEach(ze=>{this.isValidLookup(m)||(I=ze,!Y[`${Ke[0]}-${ze}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(I)&&(Y[`${Ke[0]}-${ze}`]=!0,this.logger.warn(`key "${x}" for languages "${Ke.join(", ")}" won't get resolved as namespace "${I}" 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!!!")),Ke.forEach(tt=>{if(this.isValidLookup(m))return;N=tt;const nt=[ee];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(nt,ee,tt,ze,p);else{let Ue;K&&(Ue=this.pluralResolver.getSuffix(tt,p.count,p));const gt=`${this.options.pluralSeparator}zero`,vt=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(K&&(nt.push(ee+Ue),p.ordinal&&Ue.indexOf(vt)===0&&nt.push(ee+Ue.replace(vt,this.options.pluralSeparator)),Se&&nt.push(ee+gt)),_e){const rt=`${ee}${this.options.contextSeparator}${p.context}`;nt.push(rt),K&&(nt.push(rt+Ue),p.ordinal&&Ue.indexOf(vt)===0&&nt.push(rt+Ue.replace(vt,this.options.pluralSeparator)),Se&&nt.push(rt+gt))}}let Lt;for(;Lt=nt.pop();)this.isValidLookup(m)||(E=Lt,m=this.getResource(tt,ze,Lt,p))}))})}),{res:m,usedKey:x,exactUsedKey:E,usedLng:N,usedNS:I}}isValidLookup(f){return f!==void 0&&!(!this.options.returnNull&&f===null)&&!(!this.options.returnEmptyString&&f==="")}getResource(f,p,m){let x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(f,p,m,x):this.resourceStore.getResource(f,p,m,x)}getUsedParamsDetails(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const p=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],m=f.replace&&!r(f.replace);let x=m?f.replace:f;if(m&&typeof f.count<"u"&&(x.count=f.count),this.options.interpolation.defaultVariables&&(x={...this.options.interpolation.defaultVariables,...x}),!m){x={...x};for(const E of p)delete x[E]}return x}static hasDefaultValue(f){const p="defaultValue";for(const m in f)if(Object.prototype.hasOwnProperty.call(f,m)&&p===m.substring(0,p.length)&&f[m]!==void 0)return!0;return!1}}const de=k=>k.charAt(0).toUpperCase()+k.slice(1);class Oe{constructor(f){this.options=f,this.supportedLngs=this.options.supportedLngs||!1,this.logger=fe.create("languageUtils")}getScriptPartFromCode(f){if(f=ne(f),!f||f.indexOf("-")<0)return null;const p=f.split("-");return p.length===2||(p.pop(),p[p.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(p.join("-"))}getLanguagePartFromCode(f){if(f=ne(f),!f||f.indexOf("-")<0)return f;const p=f.split("-");return this.formatLanguageCode(p[0])}formatLanguageCode(f){if(r(f)&&f.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let x=Intl.getCanonicalLocales(f)[0];if(x&&this.options.lowerCaseLng&&(x=x.toLowerCase()),x)return x}catch{}const p=["hans","hant","latn","cyrl","cans","mong","arab"];let m=f.split("-");return this.options.lowerCaseLng?m=m.map(x=>x.toLowerCase()):m.length===2?(m[0]=m[0].toLowerCase(),m[1]=m[1].toUpperCase(),p.indexOf(m[1].toLowerCase())>-1&&(m[1]=de(m[1].toLowerCase()))):m.length===3&&(m[0]=m[0].toLowerCase(),m[1].length===2&&(m[1]=m[1].toUpperCase()),m[0]!=="sgn"&&m[2].length===2&&(m[2]=m[2].toUpperCase()),p.indexOf(m[1].toLowerCase())>-1&&(m[1]=de(m[1].toLowerCase())),p.indexOf(m[2].toLowerCase())>-1&&(m[2]=de(m[2].toLowerCase()))),m.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?f.toLowerCase():f}isSupportedCode(f){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(f=this.getLanguagePartFromCode(f)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(f)>-1}getBestMatchFromCodes(f){if(!f)return null;let p;return f.forEach(m=>{if(p)return;const x=this.formatLanguageCode(m);(!this.options.supportedLngs||this.isSupportedCode(x))&&(p=x)}),!p&&this.options.supportedLngs&&f.forEach(m=>{if(p)return;const x=this.getLanguagePartFromCode(m);if(this.isSupportedCode(x))return p=x;p=this.options.supportedLngs.find(E=>{if(E===x)return E;if(!(E.indexOf("-")<0&&x.indexOf("-")<0)&&(E.indexOf("-")>0&&x.indexOf("-")<0&&E.substring(0,E.indexOf("-"))===x||E.indexOf(x)===0&&x.length>1))return E})}),p||(p=this.getFallbackCodes(this.options.fallbackLng)[0]),p}getFallbackCodes(f,p){if(!f)return[];if(typeof f=="function"&&(f=f(p)),r(f)&&(f=[f]),Array.isArray(f))return f;if(!p)return f.default||[];let m=f[p];return m||(m=f[this.getScriptPartFromCode(p)]),m||(m=f[this.formatLanguageCode(p)]),m||(m=f[this.getLanguagePartFromCode(p)]),m||(m=f.default),m||[]}toResolveHierarchy(f,p){const m=this.getFallbackCodes(p||this.options.fallbackLng||[],f),x=[],E=N=>{N&&(this.isSupportedCode(N)?x.push(N):this.logger.warn(`rejecting language code not found in supportedLngs: ${N}`))};return r(f)&&(f.indexOf("-")>-1||f.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&E(this.formatLanguageCode(f)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&E(this.getScriptPartFromCode(f)),this.options.load!=="currentOnly"&&E(this.getLanguagePartFromCode(f))):r(f)&&E(this.formatLanguageCode(f)),m.forEach(N=>{x.indexOf(N)<0&&E(this.formatLanguageCode(N))}),x}}let Ie=[{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}],w={1:k=>+(k>1),2:k=>+(k!=1),3:k=>0,4:k=>k%10==1&&k%100!=11?0:k%10>=2&&k%10<=4&&(k%100<10||k%100>=20)?1:2,5:k=>k==0?0:k==1?1:k==2?2:k%100>=3&&k%100<=10?3:k%100>=11?4:5,6:k=>k==1?0:k>=2&&k<=4?1:2,7:k=>k==1?0:k%10>=2&&k%10<=4&&(k%100<10||k%100>=20)?1:2,8:k=>k==1?0:k==2?1:k!=8&&k!=11?2:3,9:k=>+(k>=2),10:k=>k==1?0:k==2?1:k<7?2:k<11?3:4,11:k=>k==1||k==11?0:k==2||k==12?1:k>2&&k<20?2:3,12:k=>+(k%10!=1||k%100==11),13:k=>+(k!==0),14:k=>k==1?0:k==2?1:k==3?2:3,15:k=>k%10==1&&k%100!=11?0:k%10>=2&&(k%100<10||k%100>=20)?1:2,16:k=>k%10==1&&k%100!=11?0:k!==0?1:2,17:k=>k==1||k%10==1&&k%100!=11?0:1,18:k=>k==0?0:k==1?1:2,19:k=>k==1?0:k==0||k%100>1&&k%100<11?1:k%100>10&&k%100<20?2:3,20:k=>k==1?0:k==0||k%100>0&&k%100<20?1:2,21:k=>k%100==1?1:k%100==2?2:k%100==3||k%100==4?3:0,22:k=>k==1?0:k==2?1:(k<0||k>10)&&k%10==0?2:3};const T=["v1","v2","v3"],q=["v4"],pe={zero:0,one:1,two:2,few:3,many:4,other:5},B=()=>{const k={};return Ie.forEach(f=>{f.lngs.forEach(p=>{k[p]={numbers:f.nr,plurals:w[f.fc]}})}),k};class Z{constructor(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=f,this.options=p,this.logger=fe.create("pluralResolver"),(!this.options.compatibilityJSON||q.includes(this.options.compatibilityJSON))&&(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=B(),this.pluralRulesCache={}}addRule(f,p){this.rules[f]=p}clearCache(){this.pluralRulesCache={}}getRule(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const m=ne(f==="dev"?"en":f),x=p.ordinal?"ordinal":"cardinal",E=JSON.stringify({cleanedCode:m,type:x});if(E in this.pluralRulesCache)return this.pluralRulesCache[E];let N;try{N=new Intl.PluralRules(m,{type:x})}catch{if(!f.match(/-|_/))return;const M=this.languageUtils.getLanguagePartFromCode(f);N=this.getRule(M,p)}return this.pluralRulesCache[E]=N,N}return this.rules[f]||this.rules[this.languageUtils.getLanguagePartFromCode(f)]}needsPlural(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const m=this.getRule(f,p);return this.shouldUseIntlApi()?m&&m.resolvedOptions().pluralCategories.length>1:m&&m.numbers.length>1}getPluralFormsOfKey(f,p){let m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(f,m).map(x=>`${p}${x}`)}getSuffixes(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const m=this.getRule(f,p);return m?this.shouldUseIntlApi()?m.resolvedOptions().pluralCategories.sort((x,E)=>pe[x]-pe[E]).map(x=>`${this.options.prepend}${p.ordinal?`ordinal${this.options.prepend}`:""}${x}`):m.numbers.map(x=>this.getSuffix(f,x,p)):[]}getSuffix(f,p){let m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const x=this.getRule(f,m);return x?this.shouldUseIntlApi()?`${this.options.prepend}${m.ordinal?`ordinal${this.options.prepend}`:""}${x.select(p)}`:this.getSuffixRetroCompatible(x,p):(this.logger.warn(`no plural rule found for: ${f}`),"")}getSuffixRetroCompatible(f,p){const m=f.noAbs?f.plurals(p):f.plurals(Math.abs(p));let x=f.numbers[m];this.options.simplifyPluralSuffix&&f.numbers.length===2&&f.numbers[0]===1&&(x===2?x="plural":x===1&&(x=""));const E=()=>this.options.prepend&&x.toString()?this.options.prepend+x.toString():x.toString();return this.options.compatibilityJSON==="v1"?x===1?"":typeof x=="number"?`_plural_${x.toString()}`:E():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&f.numbers.length===2&&f.numbers[0]===1?E():this.options.prepend&&m.toString()?this.options.prepend+m.toString():m.toString()}shouldUseIntlApi(){return!T.includes(this.options.compatibilityJSON)}}const W=function(k,f,p){let m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",x=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,E=P(k,f,p);return!E&&x&&r(p)&&(E=ge(k,p,m),E===void 0&&(E=ge(f,p,m))),E},oe=k=>k.replace(/\$/g,"$$$$");class ae{constructor(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=fe.create("interpolator"),this.options=f,this.format=f.interpolation&&f.interpolation.format||(p=>p),this.init(f)}init(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};f.interpolation||(f.interpolation={escapeValue:!0});const{escape:p,escapeValue:m,useRawValueToEscape:x,prefix:E,prefixEscaped:N,suffix:I,suffixEscaped:M,formatSeparator:Q,unescapeSuffix:ee,unescapePrefix:ue,nestingPrefix:K,nestingPrefixEscaped:Se,nestingSuffix:_e,nestingSuffixEscaped:Ke,nestingOptionsSeparator:ze,maxReplaces:tt,alwaysFormat:nt}=f.interpolation;this.escape=p!==void 0?p:V,this.escapeValue=m!==void 0?m:!0,this.useRawValueToEscape=x!==void 0?x:!1,this.prefix=E?F(E):N||"{{",this.suffix=I?F(I):M||"}}",this.formatSeparator=Q||",",this.unescapePrefix=ee?"":ue||"-",this.unescapeSuffix=this.unescapePrefix?"":ee||"",this.nestingPrefix=K?F(K):Se||F("$t("),this.nestingSuffix=_e?F(_e):Ke||F(")"),this.nestingOptionsSeparator=ze||",",this.maxReplaces=tt||1e3,this.alwaysFormat=nt!==void 0?nt:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const f=(p,m)=>p&&p.source===m?(p.lastIndex=0,p):new RegExp(m,"g");this.regexp=f(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=f(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=f(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(f,p,m,x){let E,N,I;const M=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},Q=Se=>{if(Se.indexOf(this.formatSeparator)<0){const tt=W(p,M,Se,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(tt,void 0,m,{...x,...p,interpolationkey:Se}):tt}const _e=Se.split(this.formatSeparator),Ke=_e.shift().trim(),ze=_e.join(this.formatSeparator).trim();return this.format(W(p,M,Ke,this.options.keySeparator,this.options.ignoreJSONStructure),ze,m,{...x,...p,interpolationkey:Ke})};this.resetRegExp();const ee=x&&x.missingInterpolationHandler||this.options.missingInterpolationHandler,ue=x&&x.interpolation&&x.interpolation.skipOnVariables!==void 0?x.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:Se=>oe(Se)},{regex:this.regexp,safeValue:Se=>this.escapeValue?oe(this.escape(Se)):oe(Se)}].forEach(Se=>{for(I=0;E=Se.regex.exec(f);){const _e=E[1].trim();if(N=Q(_e),N===void 0)if(typeof ee=="function"){const ze=ee(f,E,x);N=r(ze)?ze:""}else if(x&&Object.prototype.hasOwnProperty.call(x,_e))N="";else if(ue){N=E[0];continue}else this.logger.warn(`missed to pass in variable ${_e} for interpolating ${f}`),N="";else!r(N)&&!this.useRawValueToEscape&&(N=l(N));const Ke=Se.safeValue(N);if(f=f.replace(E[0],Ke),ue?(Se.regex.lastIndex+=N.length,Se.regex.lastIndex-=E[0].length):Se.regex.lastIndex=0,I++,I>=this.maxReplaces)break}}),f}nest(f,p){let m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},x,E,N;const I=(M,Q)=>{const ee=this.nestingOptionsSeparator;if(M.indexOf(ee)<0)return M;const ue=M.split(new RegExp(`${ee}[ ]*{`));let K=`{${ue[1]}`;M=ue[0],K=this.interpolate(K,N);const Se=K.match(/'/g),_e=K.match(/"/g);(Se&&Se.length%2===0&&!_e||_e.length%2!==0)&&(K=K.replace(/'/g,'"'));try{N=JSON.parse(K),Q&&(N={...Q,...N})}catch(Ke){return this.logger.warn(`failed parsing options string in nesting for key ${M}`,Ke),`${M}${ee}${K}`}return N.defaultValue&&N.defaultValue.indexOf(this.prefix)>-1&&delete N.defaultValue,M};for(;x=this.nestingRegexp.exec(f);){let M=[];N={...m},N=N.replace&&!r(N.replace)?N.replace:N,N.applyPostProcessor=!1,delete N.defaultValue;let Q=!1;if(x[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(x[1])){const ee=x[1].split(this.formatSeparator).map(ue=>ue.trim());x[1]=ee.shift(),M=ee,Q=!0}if(E=p(I.call(this,x[1].trim(),N),N),E&&x[0]===f&&!r(E))return E;r(E)||(E=l(E)),E||(this.logger.warn(`missed to resolve ${x[1]} for nesting ${f}`),E=""),Q&&(E=M.reduce((ee,ue)=>this.format(ee,ue,m.lng,{...m,interpolationkey:x[1].trim()}),E.trim())),f=f.replace(x[0],E),this.regexp.lastIndex=0}return f}}const Re=k=>{let f=k.toLowerCase().trim();const p={};if(k.indexOf("(")>-1){const m=k.split("(");f=m[0].toLowerCase().trim();const x=m[1].substring(0,m[1].length-1);f==="currency"&&x.indexOf(":")<0?p.currency||(p.currency=x.trim()):f==="relativetime"&&x.indexOf(":")<0?p.range||(p.range=x.trim()):x.split(";").forEach(N=>{if(N){const[I,...M]=N.split(":"),Q=M.join(":").trim().replace(/^'+|'+$/g,""),ee=I.trim();p[ee]||(p[ee]=Q),Q==="false"&&(p[ee]=!1),Q==="true"&&(p[ee]=!0),isNaN(Q)||(p[ee]=parseInt(Q,10))}})}return{formatName:f,formatOptions:p}},be=k=>{const f={};return(p,m,x)=>{let E=x;x&&x.interpolationkey&&x.formatParams&&x.formatParams[x.interpolationkey]&&x[x.interpolationkey]&&(E={...E,[x.interpolationkey]:void 0});const N=m+JSON.stringify(E);let I=f[N];return I||(I=k(ne(m),x),f[N]=I),I(p)}};class pt{constructor(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=fe.create("formatter"),this.options=f,this.formats={number:be((p,m)=>{const x=new Intl.NumberFormat(p,{...m});return E=>x.format(E)}),currency:be((p,m)=>{const x=new Intl.NumberFormat(p,{...m,style:"currency"});return E=>x.format(E)}),datetime:be((p,m)=>{const x=new Intl.DateTimeFormat(p,{...m});return E=>x.format(E)}),relativetime:be((p,m)=>{const x=new Intl.RelativeTimeFormat(p,{...m});return E=>x.format(E,m.range||"day")}),list:be((p,m)=>{const x=new Intl.ListFormat(p,{...m});return E=>x.format(E)})},this.init(f)}init(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=p.interpolation.formatSeparator||","}add(f,p){this.formats[f.toLowerCase().trim()]=p}addCached(f,p){this.formats[f.toLowerCase().trim()]=be(p)}format(f,p,m){let x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const E=p.split(this.formatSeparator);if(E.length>1&&E[0].indexOf("(")>1&&E[0].indexOf(")")<0&&E.find(I=>I.indexOf(")")>-1)){const I=E.findIndex(M=>M.indexOf(")")>-1);E[0]=[E[0],...E.splice(1,I)].join(this.formatSeparator)}return E.reduce((I,M)=>{const{formatName:Q,formatOptions:ee}=Re(M);if(this.formats[Q]){let ue=I;try{const K=x&&x.formatParams&&x.formatParams[x.interpolationkey]||{},Se=K.locale||K.lng||x.locale||x.lng||m;ue=this.formats[Q](I,Se,{...ee,...x,...K})}catch(K){this.logger.warn(K)}return ue}else this.logger.warn(`there was no format function for ${Q}`);return I},f)}}const De=(k,f)=>{k.pending[f]!==void 0&&(delete k.pending[f],k.pendingCount--)};class Me extends Ee{constructor(f,p,m){let x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=f,this.store=p,this.services=m,this.languageUtils=m.languageUtils,this.options=x,this.logger=fe.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=x.maxParallelReads||10,this.readingCalls=0,this.maxRetries=x.maxRetries>=0?x.maxRetries:5,this.retryTimeout=x.retryTimeout>=1?x.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(m,x.backend,x)}queueLoad(f,p,m,x){const E={},N={},I={},M={};return f.forEach(Q=>{let ee=!0;p.forEach(ue=>{const K=`${Q}|${ue}`;!m.reload&&this.store.hasResourceBundle(Q,ue)?this.state[K]=2:this.state[K]<0||(this.state[K]===1?N[K]===void 0&&(N[K]=!0):(this.state[K]=1,ee=!1,N[K]===void 0&&(N[K]=!0),E[K]===void 0&&(E[K]=!0),M[ue]===void 0&&(M[ue]=!0)))}),ee||(I[Q]=!0)}),(Object.keys(E).length||Object.keys(N).length)&&this.queue.push({pending:N,pendingCount:Object.keys(N).length,loaded:{},errors:[],callback:x}),{toLoad:Object.keys(E),pending:Object.keys(N),toLoadLanguages:Object.keys(I),toLoadNamespaces:Object.keys(M)}}loaded(f,p,m){const x=f.split("|"),E=x[0],N=x[1];p&&this.emit("failedLoading",E,N,p),!p&&m&&this.store.addResourceBundle(E,N,m,void 0,void 0,{skipCopy:!0}),this.state[f]=p?-1:2,p&&m&&(this.state[f]=0);const I={};this.queue.forEach(M=>{C(M.loaded,[E],N),De(M,f),p&&M.errors.push(p),M.pendingCount===0&&!M.done&&(Object.keys(M.loaded).forEach(Q=>{I[Q]||(I[Q]={});const ee=M.loaded[Q];ee.length&&ee.forEach(ue=>{I[Q][ue]===void 0&&(I[Q][ue]=!0)})}),M.done=!0,M.errors.length?M.callback(M.errors):M.callback())}),this.emit("loaded",I),this.queue=this.queue.filter(M=>!M.done)}read(f,p,m){let x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,E=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,N=arguments.length>5?arguments[5]:void 0;if(!f.length)return N(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:f,ns:p,fcName:m,tried:x,wait:E,callback:N});return}this.readingCalls++;const I=(Q,ee)=>{if(this.readingCalls--,this.waitingReads.length>0){const ue=this.waitingReads.shift();this.read(ue.lng,ue.ns,ue.fcName,ue.tried,ue.wait,ue.callback)}if(Q&&ee&&x<this.maxRetries){setTimeout(()=>{this.read.call(this,f,p,m,x+1,E*2,N)},E);return}N(Q,ee)},M=this.backend[m].bind(this.backend);if(M.length===2){try{const Q=M(f,p);Q&&typeof Q.then=="function"?Q.then(ee=>I(null,ee)).catch(I):I(null,Q)}catch(Q){I(Q)}return}return M(f,p,I)}prepareLoading(f,p){let m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},x=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."),x&&x();r(f)&&(f=this.languageUtils.toResolveHierarchy(f)),r(p)&&(p=[p]);const E=this.queueLoad(f,p,m,x);if(!E.toLoad.length)return E.pending.length||x(),null;E.toLoad.forEach(N=>{this.loadOne(N)})}load(f,p,m){this.prepareLoading(f,p,{},m)}reload(f,p,m){this.prepareLoading(f,p,{reload:!0},m)}loadOne(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const m=f.split("|"),x=m[0],E=m[1];this.read(x,E,"read",void 0,void 0,(N,I)=>{N&&this.logger.warn(`${p}loading namespace ${E} for language ${x} failed`,N),!N&&I&&this.logger.log(`${p}loaded namespace ${E} for language ${x}`,I),this.loaded(f,N,I)})}saveMissing(f,p,m,x,E){let N=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},I=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(p)){this.logger.warn(`did not save key "${m}" as the namespace "${p}" 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(!(m==null||m==="")){if(this.backend&&this.backend.create){const M={...N,isUpdate:E},Q=this.backend.create.bind(this.backend);if(Q.length<6)try{let ee;Q.length===5?ee=Q(f,p,m,x,M):ee=Q(f,p,m,x),ee&&typeof ee.then=="function"?ee.then(ue=>I(null,ue)).catch(I):I(null,ee)}catch(ee){I(ee)}else Q(f,p,m,x,I,M)}!f||!f[0]||this.store.addResource(f[0],p,m,x)}}}const Be=()=>({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:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:k=>{let f={};if(typeof k[1]=="object"&&(f=k[1]),r(k[1])&&(f.defaultValue=k[1]),r(k[2])&&(f.tDescription=k[2]),typeof k[2]=="object"||typeof k[3]=="object"){const p=k[3]||k[2];Object.keys(p).forEach(m=>{f[m]=p[m]})}return f},interpolation:{escapeValue:!0,format:k=>k,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Fe=k=>(r(k.ns)&&(k.ns=[k.ns]),r(k.fallbackLng)&&(k.fallbackLng=[k.fallbackLng]),r(k.fallbackNS)&&(k.fallbackNS=[k.fallbackNS]),k.supportedLngs&&k.supportedLngs.indexOf("cimode")<0&&(k.supportedLngs=k.supportedLngs.concat(["cimode"])),k),Ge=()=>{},yt=k=>{Object.getOwnPropertyNames(Object.getPrototypeOf(k)).forEach(p=>{typeof k[p]=="function"&&(k[p]=k[p].bind(k))})};class ot extends Ee{constructor(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Fe(f),this.services={},this.logger=fe,this.modules={external:[]},yt(this),p&&!this.isInitialized&&!f.isClone){if(!this.options.initImmediate)return this.init(f,p),this;setTimeout(()=>{this.init(f,p)},0)}}init(){var f=this;let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof p=="function"&&(m=p,p={}),!p.defaultNS&&p.defaultNS!==!1&&p.ns&&(r(p.ns)?p.defaultNS=p.ns:p.ns.indexOf("translation")<0&&(p.defaultNS=p.ns[0]));const x=Be();this.options={...x,...this.options,...Fe(p)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...x.interpolation,...this.options.interpolation}),p.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=p.keySeparator),p.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=p.nsSeparator);const E=ee=>ee?typeof ee=="function"?new ee:ee:null;if(!this.options.isClone){this.modules.logger?fe.init(E(this.modules.logger),this.options):fe.init(null,this.options);let ee;this.modules.formatter?ee=this.modules.formatter:typeof Intl<"u"&&(ee=pt);const ue=new Oe(this.options);this.store=new L(this.options.resources,this.options);const K=this.services;K.logger=fe,K.resourceStore=this.store,K.languageUtils=ue,K.pluralResolver=new Z(ue,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),ee&&(!this.options.interpolation.format||this.options.interpolation.format===x.interpolation.format)&&(K.formatter=E(ee),K.formatter.init(K,this.options),this.options.interpolation.format=K.formatter.format.bind(K.formatter)),K.interpolator=new ae(this.options),K.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},K.backendConnector=new Me(E(this.modules.backend),K.resourceStore,K,this.options),K.backendConnector.on("*",function(Se){for(var _e=arguments.length,Ke=new Array(_e>1?_e-1:0),ze=1;ze<_e;ze++)Ke[ze-1]=arguments[ze];f.emit(Se,...Ke)}),this.modules.languageDetector&&(K.languageDetector=E(this.modules.languageDetector),K.languageDetector.init&&K.languageDetector.init(K,this.options.detection,this.options)),this.modules.i18nFormat&&(K.i18nFormat=E(this.modules.i18nFormat),K.i18nFormat.init&&K.i18nFormat.init(this)),this.translator=new se(this.services,this.options),this.translator.on("*",function(Se){for(var _e=arguments.length,Ke=new Array(_e>1?_e-1:0),ze=1;ze<_e;ze++)Ke[ze-1]=arguments[ze];f.emit(Se,...Ke)}),this.modules.external.forEach(Se=>{Se.init&&Se.init(this)})}if(this.format=this.options.interpolation.format,m||(m=Ge),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const ee=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);ee.length>0&&ee[0]!=="dev"&&(this.options.lng=ee[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(ee=>{this[ee]=function(){return f.store[ee](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(ee=>{this[ee]=function(){return f.store[ee](...arguments),f}});const M=s(),Q=()=>{const ee=(ue,K)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),M.resolve(K),m(ue,K)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return ee(null,this.t.bind(this));this.changeLanguage(this.options.lng,ee)};return this.options.resources||!this.options.initImmediate?Q():setTimeout(Q,0),M}loadResources(f){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ge;const x=r(f)?f:this.language;if(typeof f=="function"&&(m=f),!this.options.resources||this.options.partialBundledLanguages){if(x&&x.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return m();const E=[],N=I=>{if(!I||I==="cimode")return;this.services.languageUtils.toResolveHierarchy(I).forEach(Q=>{Q!=="cimode"&&E.indexOf(Q)<0&&E.push(Q)})};x?N(x):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(M=>N(M)),this.options.preload&&this.options.preload.forEach(I=>N(I)),this.services.backendConnector.load(E,this.options.ns,I=>{!I&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),m(I)})}else m(null)}reloadResources(f,p,m){const x=s();return typeof f=="function"&&(m=f,f=void 0),typeof p=="function"&&(m=p,p=void 0),f||(f=this.languages),p||(p=this.options.ns),m||(m=Ge),this.services.backendConnector.reload(f,p,E=>{x.resolve(),m(E)}),x}use(f){if(!f)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!f.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return f.type==="backend"&&(this.modules.backend=f),(f.type==="logger"||f.log&&f.warn&&f.error)&&(this.modules.logger=f),f.type==="languageDetector"&&(this.modules.languageDetector=f),f.type==="i18nFormat"&&(this.modules.i18nFormat=f),f.type==="postProcessor"&&z.addPostProcessor(f),f.type==="formatter"&&(this.modules.formatter=f),f.type==="3rdParty"&&this.modules.external.push(f),this}setResolvedLanguage(f){if(!(!f||!this.languages)&&!(["cimode","dev"].indexOf(f)>-1))for(let p=0;p<this.languages.length;p++){const m=this.languages[p];if(!(["cimode","dev"].indexOf(m)>-1)&&this.store.hasLanguageSomeTranslations(m)){this.resolvedLanguage=m;break}}}changeLanguage(f,p){var m=this;this.isLanguageChangingTo=f;const x=s();this.emit("languageChanging",f);const E=M=>{this.language=M,this.languages=this.services.languageUtils.toResolveHierarchy(M),this.resolvedLanguage=void 0,this.setResolvedLanguage(M)},N=(M,Q)=>{Q?(E(Q),this.translator.changeLanguage(Q),this.isLanguageChangingTo=void 0,this.emit("languageChanged",Q),this.logger.log("languageChanged",Q)):this.isLanguageChangingTo=void 0,x.resolve(function(){return m.t(...arguments)}),p&&p(M,function(){return m.t(...arguments)})},I=M=>{!f&&!M&&this.services.languageDetector&&(M=[]);const Q=r(M)?M:this.services.languageUtils.getBestMatchFromCodes(M);Q&&(this.language||E(Q),this.translator.language||this.translator.changeLanguage(Q),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(Q)),this.loadResources(Q,ee=>{N(ee,Q)})};return!f&&this.services.languageDetector&&!this.services.languageDetector.async?I(this.services.languageDetector.detect()):!f&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(I):this.services.languageDetector.detect(I):I(f),x}getFixedT(f,p,m){var x=this;const E=function(N,I){let M;if(typeof I!="object"){for(var Q=arguments.length,ee=new Array(Q>2?Q-2:0),ue=2;ue<Q;ue++)ee[ue-2]=arguments[ue];M=x.options.overloadTranslationOptionHandler([N,I].concat(ee))}else M={...I};M.lng=M.lng||E.lng,M.lngs=M.lngs||E.lngs,M.ns=M.ns||E.ns,M.keyPrefix!==""&&(M.keyPrefix=M.keyPrefix||m||E.keyPrefix);const K=x.options.keySeparator||".";let Se;return M.keyPrefix&&Array.isArray(N)?Se=N.map(_e=>`${M.keyPrefix}${K}${_e}`):Se=M.keyPrefix?`${M.keyPrefix}${K}${N}`:N,x.t(Se,M)};return r(f)?E.lng=f:E.lngs=f,E.ns=p,E.keyPrefix=m,E}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(f){this.options.defaultNS=f}hasLoadedNamespace(f){let p=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;const m=p.lng||this.resolvedLanguage||this.languages[0],x=this.options?this.options.fallbackLng:!1,E=this.languages[this.languages.length-1];if(m.toLowerCase()==="cimode")return!0;const N=(I,M)=>{const Q=this.services.backendConnector.state[`${I}|${M}`];return Q===-1||Q===0||Q===2};if(p.precheck){const I=p.precheck(this,N);if(I!==void 0)return I}return!!(this.hasResourceBundle(m,f)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||N(m,f)&&(!x||N(E,f)))}loadNamespaces(f,p){const m=s();return this.options.ns?(r(f)&&(f=[f]),f.forEach(x=>{this.options.ns.indexOf(x)<0&&this.options.ns.push(x)}),this.loadResources(x=>{m.resolve(),p&&p(x)}),m):(p&&p(),Promise.resolve())}loadLanguages(f,p){const m=s();r(f)&&(f=[f]);const x=this.options.preload||[],E=f.filter(N=>x.indexOf(N)<0&&this.services.languageUtils.isSupportedCode(N));return E.length?(this.options.preload=x.concat(E),this.loadResources(N=>{m.resolve(),p&&p(N)}),m):(p&&p(),Promise.resolve())}dir(f){if(f||(f=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!f)return"rtl";const p=["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"],m=this.services&&this.services.languageUtils||new Oe(Be());return p.indexOf(m.getLanguagePartFromCode(f))>-1||f.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=arguments.length>1?arguments[1]:void 0;return new ot(f,p)}cloneInstance(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ge;const m=f.forkResourceStore;m&&delete f.forkResourceStore;const x={...this.options,...f,isClone:!0},E=new ot(x);return(f.debug!==void 0||f.prefix!==void 0)&&(E.logger=E.logger.clone(f)),["store","services","language"].forEach(I=>{E[I]=this[I]}),E.services={...this.services},E.services.utils={hasLoadedNamespace:E.hasLoadedNamespace.bind(E)},m&&(E.store=new L(this.store.data,x),E.services.resourceStore=E.store),E.translator=new se(E.services,x),E.translator.on("*",function(I){for(var M=arguments.length,Q=new Array(M>1?M-1:0),ee=1;ee<M;ee++)Q[ee-1]=arguments[ee];E.emit(I,...Q)}),E.init(x,p),E.translator.options=x,E.translator.backendConnector.services.utils={hasLoadedNamespace:E.hasLoadedNamespace.bind(E)},E}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ze=ot.createInstance();return Ze.createInstance=ot.createInstance,Zo=Ze,Zo}const yu=Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})),Gn=Wh(yu);var As={exports:{}},Os={},ei={exports:{}},vu;function rg(){return vu||(vu=1,(function(r){var s=Gn,l=Gn;function i(c){return l.existsSync(s.join(c,"package.json"))}function u(c,d){if(c=c||r.parent.filename,d=d||i,typeof c=="string"&&(c[c.length-1]!==s.sep&&(c+=s.sep),c=c.split(s.sep)),!c.length)throw new Error("package.json not found in path");c.pop();var v=c.join(s.sep);try{if(d(v))return v}catch{}return u(c,d)}r.exports=u})(ei)),ei.exports}var ti={exports:{}},ni,wu;function Su(){if(wu)return ni;wu=1;var r=Object.prototype.toString;return ni=function(l){var i=r.call(l),u=i==="[object Arguments]";return u||(u=i!=="[object Array]"&&l!==null&&typeof l=="object"&&typeof l.length=="number"&&l.length>=0&&r.call(l.callee)==="[object Function]"),u},ni}var ri,xu;function sg(){if(xu)return ri;xu=1;var r;if(!Object.keys){var s=Object.prototype.hasOwnProperty,l=Object.prototype.toString,i=Su(),u=Object.prototype.propertyIsEnumerable,c=!u.call({toString:null},"toString"),d=u.call(function(){},"prototype"),v=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],g=function(O){var F=O.constructor;return F&&F.prototype===O},C={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},$=(function(){if(typeof window>"u")return!1;for(var O in window)try{if(!C["$"+O]&&s.call(window,O)&&window[O]!==null&&typeof window[O]=="object")try{g(window[O])}catch{return!0}}catch{return!0}return!1})(),P=function(O){if(typeof window>"u"||!$)return g(O);try{return g(O)}catch{return!1}};r=function(F){var b=F!==null&&typeof F=="object",V=l.call(F)==="[object Function]",U=i(F),J=b&&l.call(F)==="[object String]",re=[];if(!b&&!V&&!U)throw new TypeError("Object.keys called on a non-object");var we=d&&V;if(J&&F.length>0&&!s.call(F,0))for(var ge=0;ge<F.length;++ge)re.push(String(ge));if(U&&F.length>0)for(var ne=0;ne<F.length;++ne)re.push(String(ne));else for(var me in F)!(we&&me==="prototype")&&s.call(F,me)&&re.push(String(me));if(c)for(var ie=P(F),fe=0;fe<v.length;++fe)!(ie&&v[fe]==="constructor")&&s.call(F,v[fe])&&re.push(v[fe]);return re}}return ri=r,ri}var si,Cu;function og(){if(Cu)return si;Cu=1;var r=Array.prototype.slice,s=Su(),l=Object.keys,i=l?function(d){return l(d)}:sg(),u=Object.keys;return i.shim=function(){if(Object.keys){var d=(function(){var v=Object.keys(arguments);return v&&v.length===arguments.length})(1,2);d||(Object.keys=function(g){return s(g)?u(r.call(g)):u(g)})}else Object.keys=i;return Object.keys||i},si=i,si}var oi,ku;function Pu(){return ku||(ku=1,oi=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var s={},l=Symbol("test"),i=Object(l);if(typeof l=="string"||Object.prototype.toString.call(l)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var u=42;s[l]=u;for(var c in s)return!1;if(typeof Object.keys=="function"&&Object.keys(s).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(s).length!==0)return!1;var d=Object.getOwnPropertySymbols(s);if(d.length!==1||d[0]!==l||!Object.prototype.propertyIsEnumerable.call(s,l))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var v=Object.getOwnPropertyDescriptor(s,l);if(v.value!==u||v.enumerable!==!0)return!1}return!0}),oi}var ii,Eu;function li(){return Eu||(Eu=1,ii=Object),ii}var ai,$u;function ig(){return $u||($u=1,ai=Error),ai}var ui,ju;function lg(){return ju||(ju=1,ui=EvalError),ui}var ci,Au;function ag(){return Au||(Au=1,ci=RangeError),ci}var fi,Ou;function ug(){return Ou||(Ou=1,fi=ReferenceError),fi}var hi,Tu;function cg(){return Tu||(Tu=1,hi=SyntaxError),hi}var di,Nu;function Ru(){return Nu||(Nu=1,di=TypeError),di}var pi,_u;function fg(){return _u||(_u=1,pi=URIError),pi}var gi,Lu;function hg(){return Lu||(Lu=1,gi=Math.abs),gi}var mi,Fu;function dg(){return Fu||(Fu=1,mi=Math.floor),mi}var yi,Iu;function pg(){return Iu||(Iu=1,yi=Math.max),yi}var vi,Du;function gg(){return Du||(Du=1,vi=Math.min),vi}var wi,Mu;function mg(){return Mu||(Mu=1,wi=Math.pow),wi}var Si,zu;function yg(){return zu||(zu=1,Si=Math.round),Si}var xi,bu;function vg(){return bu||(bu=1,xi=Number.isNaN||function(s){return s!==s}),xi}var Ci,Uu;function wg(){if(Uu)return Ci;Uu=1;var r=vg();return Ci=function(l){return r(l)||l===0?l:l<0?-1:1},Ci}var ki,Bu;function Sg(){return Bu||(Bu=1,ki=Object.getOwnPropertyDescriptor),ki}var Pi,qu;function Vu(){if(qu)return Pi;qu=1;var r=Sg();if(r)try{r([],"length")}catch{r=null}return Pi=r,Pi}var Ei,Hu;function xg(){if(Hu)return Ei;Hu=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return Ei=r,Ei}var $i,Wu;function Cg(){if(Wu)return $i;Wu=1;var r=typeof Symbol<"u"&&Symbol,s=Pu();return $i=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:s()},$i}var ji,Ku;function Gu(){return Ku||(Ku=1,ji=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),ji}var Ai,Ju;function Qu(){if(Ju)return Ai;Ju=1;var r=li();return Ai=r.getPrototypeOf||null,Ai}var Oi,Yu;function kg(){if(Yu)return Oi;Yu=1;var r="Function.prototype.bind called on incompatible ",s=Object.prototype.toString,l=Math.max,i="[object Function]",u=function(g,C){for(var $=[],P=0;P<g.length;P+=1)$[P]=g[P];for(var O=0;O<C.length;O+=1)$[O+g.length]=C[O];return $},c=function(g,C){for(var $=[],P=C,O=0;P<g.length;P+=1,O+=1)$[O]=g[P];return $},d=function(v,g){for(var C="",$=0;$<v.length;$+=1)C+=v[$],$+1<v.length&&(C+=g);return C};return Oi=function(g){var C=this;if(typeof C!="function"||s.apply(C)!==i)throw new TypeError(r+C);for(var $=c(arguments,1),P,O=function(){if(this instanceof P){var J=C.apply(this,u($,arguments));return Object(J)===J?J:this}return C.apply(g,u($,arguments))},F=l(0,C.length-$.length),b=[],V=0;V<F;V++)b[V]="$"+V;if(P=Function("binder","return function ("+d(b,",")+"){ return binder.apply(this,arguments); }")(O),C.prototype){var U=function(){};U.prototype=C.prototype,P.prototype=new U,U.prototype=null}return P},Oi}var Ti,Xu;function Ts(){if(Xu)return Ti;Xu=1;var r=kg();return Ti=Function.prototype.bind||r,Ti}var Ni,Zu;function Ri(){return Zu||(Zu=1,Ni=Function.prototype.call),Ni}var _i,ec;function tc(){return ec||(ec=1,_i=Function.prototype.apply),_i}var Li,nc;function Pg(){return nc||(nc=1,Li=typeof Reflect<"u"&&Reflect&&Reflect.apply),Li}var Fi,rc;function Eg(){if(rc)return Fi;rc=1;var r=Ts(),s=tc(),l=Ri(),i=Pg();return Fi=i||r.call(l,s),Fi}var Ii,sc;function oc(){if(sc)return Ii;sc=1;var r=Ts(),s=Ru(),l=Ri(),i=Eg();return Ii=function(c){if(c.length<1||typeof c[0]!="function")throw new s("a function is required");return i(r,l,c)},Ii}var Di,ic;function $g(){if(ic)return Di;ic=1;var r=oc(),s=Vu(),l;try{l=[].__proto__===Array.prototype}catch(d){if(!d||typeof d!="object"||!("code"in d)||d.code!=="ERR_PROTO_ACCESS")throw d}var i=!!l&&s&&s(Object.prototype,"__proto__"),u=Object,c=u.getPrototypeOf;return Di=i&&typeof i.get=="function"?r([i.get]):typeof c=="function"?function(v){return c(v==null?v:u(v))}:!1,Di}var Mi,lc;function jg(){if(lc)return Mi;lc=1;var r=Gu(),s=Qu(),l=$g();return Mi=r?function(u){return r(u)}:s?function(u){if(!u||typeof u!="object"&&typeof u!="function")throw new TypeError("getProto: not an object");return s(u)}:l?function(u){return l(u)}:null,Mi}var zi,ac;function Ag(){if(ac)return zi;ac=1;var r=Function.prototype.call,s=Object.prototype.hasOwnProperty,l=Ts();return zi=l.call(r,s),zi}var bi,uc;function Og(){if(uc)return bi;uc=1;var r,s=li(),l=ig(),i=lg(),u=ag(),c=ug(),d=cg(),v=Ru(),g=fg(),C=hg(),$=dg(),P=pg(),O=gg(),F=mg(),b=yg(),V=wg(),U=Function,J=function(De){try{return U('"use strict"; return ('+De+").constructor;")()}catch{}},re=Vu(),we=xg(),ge=function(){throw new v},ne=re?(function(){try{return arguments.callee,ge}catch{try{return re(arguments,"callee").get}catch{return ge}}})():ge,me=Cg()(),ie=jg(),fe=Qu(),Ee=Gu(),L=tc(),z=Ri(),Y={},se=typeof Uint8Array>"u"||!ie?r:ie(Uint8Array),de={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":me&&ie?ie([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":Y,"%AsyncGenerator%":Y,"%AsyncGeneratorFunction%":Y,"%AsyncIteratorPrototype%":Y,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":l,"%eval%":eval,"%EvalError%":i,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":U,"%GeneratorFunction%":Y,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":me&&ie?ie(ie([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!me||!ie?r:ie(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":s,"%Object.getOwnPropertyDescriptor%":re,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":u,"%ReferenceError%":c,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!me||!ie?r:ie(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":me&&ie?ie(""[Symbol.iterator]()):r,"%Symbol%":me?Symbol:r,"%SyntaxError%":d,"%ThrowTypeError%":ne,"%TypedArray%":se,"%TypeError%":v,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":g,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":z,"%Function.prototype.apply%":L,"%Object.defineProperty%":we,"%Object.getPrototypeOf%":fe,"%Math.abs%":C,"%Math.floor%":$,"%Math.max%":P,"%Math.min%":O,"%Math.pow%":F,"%Math.round%":b,"%Math.sign%":V,"%Reflect.getPrototypeOf%":Ee};if(ie)try{null.error}catch(De){var Oe=ie(ie(De));de["%Error.prototype%"]=Oe}var Ie=function De(Me){var Be;if(Me==="%AsyncFunction%")Be=J("async function () {}");else if(Me==="%GeneratorFunction%")Be=J("function* () {}");else if(Me==="%AsyncGeneratorFunction%")Be=J("async function* () {}");else if(Me==="%AsyncGenerator%"){var Fe=De("%AsyncGeneratorFunction%");Fe&&(Be=Fe.prototype)}else if(Me==="%AsyncIteratorPrototype%"){var Ge=De("%AsyncGenerator%");Ge&&ie&&(Be=ie(Ge.prototype))}return de[Me]=Be,Be},w={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},T=Ts(),q=Ag(),pe=T.call(z,Array.prototype.concat),B=T.call(L,Array.prototype.splice),Z=T.call(z,String.prototype.replace),W=T.call(z,String.prototype.slice),oe=T.call(z,RegExp.prototype.exec),ae=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Re=/\\(\\)?/g,be=function(Me){var Be=W(Me,0,1),Fe=W(Me,-1);if(Be==="%"&&Fe!=="%")throw new d("invalid intrinsic syntax, expected closing `%`");if(Fe==="%"&&Be!=="%")throw new d("invalid intrinsic syntax, expected opening `%`");var Ge=[];return Z(Me,ae,function(yt,ot,Ze,k){Ge[Ge.length]=Ze?Z(k,Re,"$1"):ot||yt}),Ge},pt=function(Me,Be){var Fe=Me,Ge;if(q(w,Fe)&&(Ge=w[Fe],Fe="%"+Ge[0]+"%"),q(de,Fe)){var yt=de[Fe];if(yt===Y&&(yt=Ie(Fe)),typeof yt>"u"&&!Be)throw new v("intrinsic "+Me+" exists, but is not available. Please file an issue!");return{alias:Ge,name:Fe,value:yt}}throw new d("intrinsic "+Me+" does not exist!")};return bi=function(Me,Be){if(typeof Me!="string"||Me.length===0)throw new v("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Be!="boolean")throw new v('"allowMissing" argument must be a boolean');if(oe(/^%?[^%]*%?$/,Me)===null)throw new d("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Fe=be(Me),Ge=Fe.length>0?Fe[0]:"",yt=pt("%"+Ge+"%",Be),ot=yt.name,Ze=yt.value,k=!1,f=yt.alias;f&&(Ge=f[0],B(Fe,pe([0,1],f)));for(var p=1,m=!0;p<Fe.length;p+=1){var x=Fe[p],E=W(x,0,1),N=W(x,-1);if((E==='"'||E==="'"||E==="`"||N==='"'||N==="'"||N==="`")&&E!==N)throw new d("property names with quotes must have matching quotes");if((x==="constructor"||!m)&&(k=!0),Ge+="."+x,ot="%"+Ge+"%",q(de,ot))Ze=de[ot];else if(Ze!=null){if(!(x in Ze)){if(!Be)throw new v("base intrinsic for "+Me+" exists, but the property is not available.");return}if(re&&p+1>=Fe.length){var I=re(Ze,x);m=!!I,m&&"get"in I&&!("originalValue"in I.get)?Ze=I.get:Ze=Ze[x]}else m=q(Ze,x),Ze=Ze[x];m&&!k&&(de[ot]=Ze)}}return Ze},bi}var Ui,cc;function Tg(){if(cc)return Ui;cc=1;var r=Og(),s=oc(),l=s([r("%String.prototype.indexOf%")]);return Ui=function(u,c){var d=r(u,!!c);return typeof d=="function"&&l(u,".prototype.")>-1?s([d]):d},Ui}var Bi,fc;function Ng(){if(fc)return Bi;fc=1;var r=og(),s=Pu()(),l=Tg(),i=li(),u=l("Array.prototype.push"),c=l("Object.prototype.propertyIsEnumerable"),d=s?i.getOwnPropertySymbols:null;return Bi=function(g,C){if(g==null)throw new TypeError("target must be an object");var $=i(g);if(arguments.length===1)return $;for(var P=1;P<arguments.length;++P){var O=i(arguments[P]),F=r(O),b=s&&(i.getOwnPropertySymbols||d);if(b)for(var V=b(O),U=0;U<V.length;++U){var J=V[U];c(O,J)&&u(F,J)}for(var re=0;re<F.length;++re){var we=F[re];if(c(O,we)){var ge=O[we];$[we]=ge}}}return $},Bi}var qi,hc;function Rg(){if(hc)return qi;hc=1;var r=Ng(),s=function(){if(!Object.assign)return!1;for(var i="abcdefghijklmnopqrst",u=i.split(""),c={},d=0;d<u.length;++d)c[u[d]]=u[d];var v=Object.assign({},c),g="";for(var C in v)g+=C;return i!==g},l=function(){if(!Object.assign||!Object.preventExtensions)return!1;var i=Object.preventExtensions({1:2});try{Object.assign(i,"xy")}catch{return i[1]==="y"}return!1};return qi=function(){return!Object.assign||s()||l()?r:Object.assign},qi}var Vi={},Hi,dc;function _g(){return dc||(dc=1,Hi=function(s){return s&&typeof s=="object"&&typeof s.copy=="function"&&typeof s.fill=="function"&&typeof s.readUInt8=="function"}),Hi}var Ns={exports:{}},pc;function Lg(){return pc||(pc=1,typeof Object.create=="function"?Ns.exports=function(s,l){s.super_=l,s.prototype=Object.create(l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}})}:Ns.exports=function(s,l){s.super_=l;var i=function(){};i.prototype=l.prototype,s.prototype=new i,s.prototype.constructor=s}),Ns.exports}var gc;function Fg(){return gc||(gc=1,(function(r){var s=/%[sdj%]/g;r.format=function(w){if(!we(w)){for(var T=[],q=0;q<arguments.length;q++)T.push(u(arguments[q]));return T.join(" ")}for(var q=1,pe=arguments,B=pe.length,Z=String(w).replace(s,function(oe){if(oe==="%%")return"%";if(q>=B)return oe;switch(oe){case"%s":return String(pe[q++]);case"%d":return Number(pe[q++]);case"%j":try{return JSON.stringify(pe[q++])}catch{return"[Circular]"}default:return oe}}),W=pe[q];q<B;W=pe[++q])U(W)||!ie(W)?Z+=" "+W:Z+=" "+u(W);return Z},r.deprecate=function(w,T){if(ne(xr.process))return function(){return r.deprecate(w,T).apply(this,arguments)};if(process.noDeprecation===!0)return w;var q=!1;function pe(){if(!q){if(process.throwDeprecation)throw new Error(T);process.traceDeprecation?console.trace(T):console.error(T),q=!0}return w.apply(this,arguments)}return pe};var l={},i;r.debuglog=function(w){if(ne(i)&&(i=process.env.NODE_DEBUG||""),w=w.toUpperCase(),!l[w])if(new RegExp("\\b"+w+"\\b","i").test(i)){var T=process.pid;l[w]=function(){var q=r.format.apply(r,arguments);console.error("%s %d: %s",w,T,q)}}else l[w]=function(){};return l[w]};function u(w,T){var q={seen:[],stylize:d};return arguments.length>=3&&(q.depth=arguments[2]),arguments.length>=4&&(q.colors=arguments[3]),V(T)?q.showHidden=T:T&&r._extend(q,T),ne(q.showHidden)&&(q.showHidden=!1),ne(q.depth)&&(q.depth=2),ne(q.colors)&&(q.colors=!1),ne(q.customInspect)&&(q.customInspect=!0),q.colors&&(q.stylize=c),g(q,w,q.depth)}r.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(w,T){var q=u.styles[T];return q?"\x1B["+u.colors[q][0]+"m"+w+"\x1B["+u.colors[q][1]+"m":w}function d(w,T){return w}function v(w){var T={};return w.forEach(function(q,pe){T[q]=!0}),T}function g(w,T,q){if(w.customInspect&&T&&L(T.inspect)&&T.inspect!==r.inspect&&!(T.constructor&&T.constructor.prototype===T)){var pe=T.inspect(q,w);return we(pe)||(pe=g(w,pe,q)),pe}var B=C(w,T);if(B)return B;var Z=Object.keys(T),W=v(Z);if(w.showHidden&&(Z=Object.getOwnPropertyNames(T)),Ee(T)&&(Z.indexOf("message")>=0||Z.indexOf("description")>=0))return $(T);if(Z.length===0){if(L(T)){var oe=T.name?": "+T.name:"";return w.stylize("[Function"+oe+"]","special")}if(me(T))return w.stylize(RegExp.prototype.toString.call(T),"regexp");if(fe(T))return w.stylize(Date.prototype.toString.call(T),"date");if(Ee(T))return $(T)}var ae="",Re=!1,be=["{","}"];if(b(T)&&(Re=!0,be=["[","]"]),L(T)){var pt=T.name?": "+T.name:"";ae=" [Function"+pt+"]"}if(me(T)&&(ae=" "+RegExp.prototype.toString.call(T)),fe(T)&&(ae=" "+Date.prototype.toUTCString.call(T)),Ee(T)&&(ae=" "+$(T)),Z.length===0&&(!Re||T.length==0))return be[0]+ae+be[1];if(q<0)return me(T)?w.stylize(RegExp.prototype.toString.call(T),"regexp"):w.stylize("[Object]","special");w.seen.push(T);var De;return Re?De=P(w,T,q,W,Z):De=Z.map(function(Me){return O(w,T,q,W,Me,Re)}),w.seen.pop(),F(De,ae,be)}function C(w,T){if(ne(T))return w.stylize("undefined","undefined");if(we(T)){var q="'"+JSON.stringify(T).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return w.stylize(q,"string")}if(re(T))return w.stylize(""+T,"number");if(V(T))return w.stylize(""+T,"boolean");if(U(T))return w.stylize("null","null")}function $(w){return"["+Error.prototype.toString.call(w)+"]"}function P(w,T,q,pe,B){for(var Z=[],W=0,oe=T.length;W<oe;++W)Ie(T,String(W))?Z.push(O(w,T,q,pe,String(W),!0)):Z.push("");return B.forEach(function(ae){ae.match(/^\d+$/)||Z.push(O(w,T,q,pe,ae,!0))}),Z}function O(w,T,q,pe,B,Z){var W,oe,ae;if(ae=Object.getOwnPropertyDescriptor(T,B)||{value:T[B]},ae.get?ae.set?oe=w.stylize("[Getter/Setter]","special"):oe=w.stylize("[Getter]","special"):ae.set&&(oe=w.stylize("[Setter]","special")),Ie(pe,B)||(W="["+B+"]"),oe||(w.seen.indexOf(ae.value)<0?(U(q)?oe=g(w,ae.value,null):oe=g(w,ae.value,q-1),oe.indexOf(`
|
|
19
|
+
`)>-1&&(Z?oe=oe.split(`
|
|
20
|
+
`).map(function(Re){return" "+Re}).join(`
|
|
21
|
+
`).substr(2):oe=`
|
|
22
|
+
`+oe.split(`
|
|
23
|
+
`).map(function(Re){return" "+Re}).join(`
|
|
24
|
+
`))):oe=w.stylize("[Circular]","special")),ne(W)){if(Z&&B.match(/^\d+$/))return oe;W=JSON.stringify(""+B),W.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(W=W.substr(1,W.length-2),W=w.stylize(W,"name")):(W=W.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),W=w.stylize(W,"string"))}return W+": "+oe}function F(w,T,q){var pe=w.reduce(function(B,Z){return Z.indexOf(`
|
|
25
|
+
`)>=0,B+Z.replace(/\u001b\[\d\d?m/g,"").length+1},0);return pe>60?q[0]+(T===""?"":T+`
|
|
26
|
+
`)+" "+w.join(`,
|
|
27
|
+
`)+" "+q[1]:q[0]+T+" "+w.join(", ")+" "+q[1]}function b(w){return Array.isArray(w)}r.isArray=b;function V(w){return typeof w=="boolean"}r.isBoolean=V;function U(w){return w===null}r.isNull=U;function J(w){return w==null}r.isNullOrUndefined=J;function re(w){return typeof w=="number"}r.isNumber=re;function we(w){return typeof w=="string"}r.isString=we;function ge(w){return typeof w=="symbol"}r.isSymbol=ge;function ne(w){return w===void 0}r.isUndefined=ne;function me(w){return ie(w)&&Y(w)==="[object RegExp]"}r.isRegExp=me;function ie(w){return typeof w=="object"&&w!==null}r.isObject=ie;function fe(w){return ie(w)&&Y(w)==="[object Date]"}r.isDate=fe;function Ee(w){return ie(w)&&(Y(w)==="[object Error]"||w instanceof Error)}r.isError=Ee;function L(w){return typeof w=="function"}r.isFunction=L;function z(w){return w===null||typeof w=="boolean"||typeof w=="number"||typeof w=="string"||typeof w=="symbol"||typeof w>"u"}r.isPrimitive=z,r.isBuffer=_g();function Y(w){return Object.prototype.toString.call(w)}function se(w){return w<10?"0"+w.toString(10):w.toString(10)}var de=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Oe(){var w=new Date,T=[se(w.getHours()),se(w.getMinutes()),se(w.getSeconds())].join(":");return[w.getDate(),de[w.getMonth()],T].join(" ")}r.log=function(){console.log("%s - %s",Oe(),r.format.apply(r,arguments))},r.inherits=Lg(),r._extend=function(w,T){if(!T||!ie(T))return w;for(var q=Object.keys(T),pe=q.length;pe--;)w[q[pe]]=T[q[pe]];return w};function Ie(w,T){return Object.prototype.hasOwnProperty.call(w,T)}})(Vi)),Vi}var mc;function Ig(){if(mc)return ti.exports;mc=1;var r=Rg()();function s(L,z){if(L===z)return 0;for(var Y=L.length,se=z.length,de=0,Oe=Math.min(Y,se);de<Oe;++de)if(L[de]!==z[de]){Y=L[de],se=z[de];break}return Y<se?-1:se<Y?1:0}function l(L){return xr.Buffer&&typeof xr.Buffer.isBuffer=="function"?xr.Buffer.isBuffer(L):!!(L!=null&&L._isBuffer)}var i=Fg(),u=Object.prototype.hasOwnProperty,c=Array.prototype.slice,d=(function(){return(function(){}).name==="foo"})();function v(L){return Object.prototype.toString.call(L)}function g(L){return l(L)||typeof xr.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(L):L?!!(L instanceof DataView||L.buffer&&L.buffer instanceof ArrayBuffer):!1}var C=ti.exports=U,$=/\s*function\s+([^\(\s]*)\s*/;function P(L){if(i.isFunction(L)){if(d)return L.name;var z=L.toString(),Y=z.match($);return Y&&Y[1]}}C.AssertionError=function(z){this.name="AssertionError",this.actual=z.actual,this.expected=z.expected,this.operator=z.operator,z.message?(this.message=z.message,this.generatedMessage=!1):(this.message=b(this),this.generatedMessage=!0);var Y=z.stackStartFunction||V;if(Error.captureStackTrace)Error.captureStackTrace(this,Y);else{var se=new Error;if(se.stack){var de=se.stack,Oe=P(Y),Ie=de.indexOf(`
|
|
28
|
+
`+Oe);if(Ie>=0){var w=de.indexOf(`
|
|
29
|
+
`,Ie+1);de=de.substring(w+1)}this.stack=de}}},i.inherits(C.AssertionError,Error);function O(L,z){return typeof L=="string"?L.length<z?L:L.slice(0,z):L}function F(L){if(d||!i.isFunction(L))return i.inspect(L);var z=P(L),Y=z?": "+z:"";return"[Function"+Y+"]"}function b(L){return O(F(L.actual),128)+" "+L.operator+" "+O(F(L.expected),128)}function V(L,z,Y,se,de){throw new C.AssertionError({message:Y,actual:L,expected:z,operator:se,stackStartFunction:de})}C.fail=V;function U(L,z){L||V(L,!0,z,"==",C.ok)}C.ok=U,C.equal=function(z,Y,se){z!=Y&&V(z,Y,se,"==",C.equal)},C.notEqual=function(z,Y,se){z==Y&&V(z,Y,se,"!=",C.notEqual)},C.deepEqual=function(z,Y,se){J(z,Y,!1)||V(z,Y,se,"deepEqual",C.deepEqual)},C.deepStrictEqual=function(z,Y,se){J(z,Y,!0)||V(z,Y,se,"deepStrictEqual",C.deepStrictEqual)};function J(L,z,Y,se){if(L===z)return!0;if(l(L)&&l(z))return s(L,z)===0;if(i.isDate(L)&&i.isDate(z))return L.getTime()===z.getTime();if(i.isRegExp(L)&&i.isRegExp(z))return L.source===z.source&&L.global===z.global&&L.multiline===z.multiline&&L.lastIndex===z.lastIndex&&L.ignoreCase===z.ignoreCase;if((L===null||typeof L!="object")&&(z===null||typeof z!="object"))return Y?L===z:L==z;if(g(L)&&g(z)&&v(L)===v(z)&&!(L instanceof Float32Array||L instanceof Float64Array))return s(new Uint8Array(L.buffer),new Uint8Array(z.buffer))===0;if(l(L)!==l(z))return!1;se=se||{actual:[],expected:[]};var de=se.actual.indexOf(L);return de!==-1&&de===se.expected.indexOf(z)?!0:(se.actual.push(L),se.expected.push(z),we(L,z,Y,se))}function re(L){return Object.prototype.toString.call(L)=="[object Arguments]"}function we(L,z,Y,se){if(L==null||z===null||z===void 0)return!1;if(i.isPrimitive(L)||i.isPrimitive(z))return L===z;if(Y&&Object.getPrototypeOf(L)!==Object.getPrototypeOf(z))return!1;var de=re(L),Oe=re(z);if(de&&!Oe||!de&&Oe)return!1;if(de)return L=c.call(L),z=c.call(z),J(L,z,Y);var Ie=Ee(L),w=Ee(z),T,q;if(Ie.length!==w.length)return!1;for(Ie.sort(),w.sort(),q=Ie.length-1;q>=0;q--)if(Ie[q]!==w[q])return!1;for(q=Ie.length-1;q>=0;q--)if(T=Ie[q],!J(L[T],z[T],Y,se))return!1;return!0}C.notDeepEqual=function(z,Y,se){J(z,Y,!1)&&V(z,Y,se,"notDeepEqual",C.notDeepEqual)},C.notDeepStrictEqual=ge;function ge(L,z,Y){J(L,z,!0)&&V(L,z,Y,"notDeepStrictEqual",ge)}C.strictEqual=function(z,Y,se){z!==Y&&V(z,Y,se,"===",C.strictEqual)},C.notStrictEqual=function(z,Y,se){z===Y&&V(z,Y,se,"!==",C.notStrictEqual)};function ne(L,z){if(!L||!z)return!1;if(Object.prototype.toString.call(z)=="[object RegExp]")return z.test(L);try{if(L instanceof z)return!0}catch{}return Error.isPrototypeOf(z)?!1:z.call({},L)===!0}function me(L){var z;try{L()}catch(Y){z=Y}return z}function ie(L,z,Y,se){var de;if(typeof z!="function")throw new TypeError('"block" argument must be a function');typeof Y=="string"&&(se=Y,Y=null),de=me(z),se=(Y&&Y.name?" ("+Y.name+").":".")+(se?" "+se:"."),L&&!de&&V(de,Y,"Missing expected exception"+se);var Oe=typeof se=="string",Ie=!L&&i.isError(de),w=!L&&de&&!Y;if((Ie&&Oe&&ne(de,Y)||w)&&V(de,Y,"Got unwanted exception"+se),L&&de&&Y&&!ne(de,Y)||!L&&de)throw de}C.throws=function(L,z,Y){ie(!0,L,z,Y)},C.doesNotThrow=function(L,z,Y){ie(!1,L,z,Y)},C.ifError=function(L){if(L)throw L};function fe(L,z){L||V(L,!0,z,"==",fe)}C.strict=r(fe,C,{equal:C.strictEqual,deepEqual:C.deepStrictEqual,notEqual:C.notStrictEqual,notDeepEqual:C.notDeepStrictEqual}),C.strict.strict=C.strict;var Ee=Object.keys||function(L){var z=[];for(var Y in L)u.call(L,Y)&&z.push(Y);return z};return ti.exports}var Wi,yc;function Dg(){if(yc)return Wi;yc=1;var r=Ig();return Wi=function(s){var l,i,u,c,d;for(l=Error.prepareStackTrace,Error.prepareStackTrace=function(v,g){return Error.prepareStackTrace=l,g},i=new Error().stack,d=0;d<i.length&&i[d].getFileName()!==__filename;)d++;r(d<i.length,"Unexpected: unable to find caller/index.js in the stack"),s=!s||isNaN(s)?1:s>i.length-2?i.length-2:s,i=i.slice(d+s+1);do c=i.shift(),u=c&&c.getFileName();while(i.length&&u==="module.js");return u},Wi}var vc;function Mg(){if(vc)return Os;vc=1;const r=Gn,s=Gn,l=rg(),i=Dg();return Os.getCallerRoot=function(){try{return l(i(2))}catch{return}},Os.getProcessRoot=function(){let c=process.cwd();const d=s.join(c,"current");try{r.statSync(d).isDirectory()&&(c=d)}catch{}try{return l(c)}catch{return}},Os}var Ki,wc;function zg(){return wc||(wc=1,Ki=Mg()),Ki}var Rs={exports:{}},Gi,Sc;function bg(){if(Sc)return Gi;Sc=1;var r=1e3,s=r*60,l=s*60,i=l*24,u=i*7,c=i*365.25;Gi=function($,P){P=P||{};var O=typeof $;if(O==="string"&&$.length>0)return d($);if(O==="number"&&isFinite($))return P.long?g($):v($);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify($))};function d($){if($=String($),!($.length>100)){var P=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec($);if(P){var O=parseFloat(P[1]),F=(P[2]||"ms").toLowerCase();switch(F){case"years":case"year":case"yrs":case"yr":case"y":return O*c;case"weeks":case"week":case"w":return O*u;case"days":case"day":case"d":return O*i;case"hours":case"hour":case"hrs":case"hr":case"h":return O*l;case"minutes":case"minute":case"mins":case"min":case"m":return O*s;case"seconds":case"second":case"secs":case"sec":case"s":return O*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return O;default:return}}}}function v($){var P=Math.abs($);return P>=i?Math.round($/i)+"d":P>=l?Math.round($/l)+"h":P>=s?Math.round($/s)+"m":P>=r?Math.round($/r)+"s":$+"ms"}function g($){var P=Math.abs($);return P>=i?C($,P,i,"day"):P>=l?C($,P,l,"hour"):P>=s?C($,P,s,"minute"):P>=r?C($,P,r,"second"):$+" ms"}function C($,P,O,F){var b=P>=O*1.5;return Math.round($/O)+" "+F+(b?"s":"")}return Gi}var Ji,xc;function Ug(){if(xc)return Ji;xc=1;function r(s){i.debug=i,i.default=i,i.coerce=C,i.disable=v,i.enable=c,i.enabled=g,i.humanize=bg(),i.destroy=$,Object.keys(s).forEach(P=>{i[P]=s[P]}),i.names=[],i.skips=[],i.formatters={};function l(P){let O=0;for(let F=0;F<P.length;F++)O=(O<<5)-O+P.charCodeAt(F),O|=0;return i.colors[Math.abs(O)%i.colors.length]}i.selectColor=l;function i(P){let O,F=null,b,V;function U(...J){if(!U.enabled)return;const re=U,we=Number(new Date),ge=we-(O||we);re.diff=ge,re.prev=O,re.curr=we,O=we,J[0]=i.coerce(J[0]),typeof J[0]!="string"&&J.unshift("%O");let ne=0;J[0]=J[0].replace(/%([a-zA-Z%])/g,(ie,fe)=>{if(ie==="%%")return"%";ne++;const Ee=i.formatters[fe];if(typeof Ee=="function"){const L=J[ne];ie=Ee.call(re,L),J.splice(ne,1),ne--}return ie}),i.formatArgs.call(re,J),(re.log||i.log).apply(re,J)}return U.namespace=P,U.useColors=i.useColors(),U.color=i.selectColor(P),U.extend=u,U.destroy=i.destroy,Object.defineProperty(U,"enabled",{enumerable:!0,configurable:!1,get:()=>F!==null?F:(b!==i.namespaces&&(b=i.namespaces,V=i.enabled(P)),V),set:J=>{F=J}}),typeof i.init=="function"&&i.init(U),U}function u(P,O){const F=i(this.namespace+(typeof O>"u"?":":O)+P);return F.log=this.log,F}function c(P){i.save(P),i.namespaces=P,i.names=[],i.skips=[];const O=(typeof P=="string"?P:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const F of O)F[0]==="-"?i.skips.push(F.slice(1)):i.names.push(F)}function d(P,O){let F=0,b=0,V=-1,U=0;for(;F<P.length;)if(b<O.length&&(O[b]===P[F]||O[b]==="*"))O[b]==="*"?(V=b,U=F,b++):(F++,b++);else if(V!==-1)b=V+1,U++,F=U;else return!1;for(;b<O.length&&O[b]==="*";)b++;return b===O.length}function v(){const P=[...i.names,...i.skips.map(O=>"-"+O)].join(",");return i.enable(""),P}function g(P){for(const O of i.skips)if(d(P,O))return!1;for(const O of i.names)if(d(P,O))return!0;return!1}function C(P){return P instanceof Error?P.stack||P.message:P}function $(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return i.enable(i.load()),i}return Ji=r,Ji}var Cc;function Bg(){return Cc||(Cc=1,(function(r,s){s.formatArgs=i,s.save=u,s.load=c,s.useColors=l,s.storage=d(),s.destroy=(()=>{let g=!1;return()=>{g||(g=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),s.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function l(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let g;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(g=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(g[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i(g){if(g[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+g[0]+(this.useColors?"%c ":" ")+"+"+r.exports.humanize(this.diff),!this.useColors)return;const C="color: "+this.color;g.splice(1,0,C,"color: inherit");let $=0,P=0;g[0].replace(/%[a-zA-Z%]/g,O=>{O!=="%%"&&($++,O==="%c"&&(P=$))}),g.splice(P,0,C)}s.log=console.debug||console.log||(()=>{});function u(g){try{g?s.storage.setItem("debug",g):s.storage.removeItem("debug")}catch{}}function c(){let g;try{g=s.storage.getItem("debug")||s.storage.getItem("DEBUG")}catch{}return!g&&typeof process<"u"&&"env"in process&&(g=process.env.DEBUG),g}function d(){try{return localStorage}catch{}}r.exports=Ug()(s);const{formatters:v}=r.exports;v.j=function(g){try{return JSON.stringify(g)}catch(C){return"[UnexpectedJSONParseError]: "+C.message}}})(Rs,Rs.exports)),Rs.exports}var kc;function qg(){if(kc)return As.exports;kc=1;const r=zg(),s=Bg();return As.exports=function(i){const u=r.getCallerRoot();let c;try{const d=Nn("/node_modules/.pnpm/@tryghost+debug@2.2.0/node_modules/@tryghost/debug/lib")(u+"/package.json");d.alias?c=d.alias:c=d.name}catch{c="undefined"}return s(c+":"+i)},As.exports._base=s,As.exports}var Qi,Pc;function Vg(){return Pc||(Pc=1,Qi=qg()),Qi}const Hg=[{code:"af",label:"Afrikaans"},{code:"ar",label:"Arabic"},{code:"bg",label:"Bulgarian"},{code:"bn",label:"Bengali"},{code:"bs",label:"Bosnian"},{code:"ca",label:"Catalan"},{code:"cs",label:"Czech"},{code:"da",label:"Danish"},{code:"de",label:"German"},{code:"de-CH",label:"Swiss German"},{code:"el",label:"Greek"},{code:"en",label:"English"},{code:"eo",label:"Esperanto"},{code:"es",label:"Spanish"},{code:"et",label:"Estonian"},{code:"eu",label:"Basque"},{code:"fa",label:"Persian/Farsi"},{code:"fi",label:"Finnish"},{code:"fr",label:"French"},{code:"gd",label:"Gaelic (Scottish)"},{code:"he",label:"Hebrew"},{code:"hi",label:"Hindi"},{code:"hr",label:"Croatian"},{code:"hu",label:"Hungarian"},{code:"id",label:"Indonesian"},{code:"is",label:"Icelandic"},{code:"it",label:"Italian"},{code:"ja",label:"Japanese"},{code:"ko",label:"Korean"},{code:"kz",label:"Kazakh"},{code:"lt",label:"Lithuanian"},{code:"lv",label:"Latvian"},{code:"mk",label:"Macedonian"},{code:"mn",label:"Mongolian"},{code:"ms",label:"Malay"},{code:"nb",label:"Norwegian Bokmål"},{code:"ne",label:"Nepali"},{code:"nl",label:"Dutch"},{code:"nn",label:"Norwegian Nynorsk"},{code:"pa",label:"Punjabi"},{code:"pl",label:"Polish"},{code:"pt",label:"Portuguese"},{code:"pt-BR",label:"Portuguese (Brazil)"},{code:"ro",label:"Romanian"},{code:"ru",label:"Russian"},{code:"si",label:"Sinhala"},{code:"sk",label:"Slovak"},{code:"sl",label:"Slovenian"},{code:"sq",label:"Albanian"},{code:"sr",label:"Serbian"},{code:"sr-Cyrl",label:"Serbian (Cyrillic)"},{code:"sv",label:"Swedish"},{code:"sw",label:"Swahili"},{code:"ta",label:"Tamil"},{code:"th",label:"Thai"},{code:"tr",label:"Turkish"},{code:"uk",label:"Ukrainian"},{code:"ur",label:"Urdu"},{code:"uz",label:"Uzbek"},{code:"vi",label:"Vietnamese"},{code:"zh",label:"Chinese"},{code:"zh-Hant",label:"Traditional Chinese"}];var Ec;function Wg(){if(Ec)return Kn.exports;Ec=1;const r=ng(),s=Gn,l=Gn,i=Vg()("i18n"),u=Hg,c=u.map(g=>g.code);function d(g,C){return g.reduce(($,P)=>{let O;try{O=Nn("/ghost/i18n/lib")(`../locales/${P}/${C}.json`)}catch{O=Nn("/ghost/i18n/lib")(`../locales/en/${C}.json`)}return $[P]={[C]:{...O,...O.default&&typeof O.default=="object"?O.default:{}}},$},{})}function v(g,C){if(!C)return{[g]:{theme:{}}};let $=[];try{$=l.readdirSync(C).filter(F=>F.endsWith(".json")).map(F=>F.replace(".json",""))}catch{$=[g,"en"]}return[...new Set([g,...$,"en"])].reduce((O,F)=>{let b,V=!1;const U=s.join(C,`${F}.json`);if(l.existsSync(U))try{delete require.cache[Nn("/ghost/i18n/lib").resolve(U)],b=Nn("/ghost/i18n/lib")(U)}catch{i(`Error loading theme locale file: ${F}`),V=!0}else V=!0;if(V)if(F!=="en")try{const J=s.join(C,"en.json");l.existsSync(J)?(delete require.cache[Nn("/ghost/i18n/lib").resolve(J)],b=Nn("/ghost/i18n/lib")(J)):b={}}catch{b={}}else i("Theme en.json file not found"),b={};return O[F]={theme:{...b,...b.default&&typeof b.default=="object"?b.default:{}}},O},{})}return Kn.exports=(g="en",C="portal",$={})=>{const P=r.createInstance(),O={prefix:"{",suffix:"}"};(C==="theme"||C==="portal")&&(O.escapeValue=!1);let F;return C!=="theme"?F=d(c,C):(i(`generateThemeResources: ${g}, ${$.themePath}`),F=v(g,$.themePath)),P.init({lng:g,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:{no:["nb","en"],default:["en"]},ns:C,defaultNS:C,interpolation:O,resources:F}),P},Kn.exports.SUPPORTED_LOCALES=c,Kn.exports.LOCALE_DATA=u,Kn.exports.generateResources=d,Kn.exports}var $c;function Kg(){if($c)return Tn.exports;$c=1;const r=Wg();return Tn.exports=r,Tn.exports.default=r,Tn.exports.LOCALE_DATA=r.LOCALE_DATA,Tn.exports.SUPPORTED_LOCALES=r.SUPPORTED_LOCALES,Tn.exports.generateResources=r.generateResources,Tn.exports}var Gg=Kg();const Jg=Ro(Gg);class Qg extends Zt.Component{constructor(s){super(s);const l=this.props.locale||"en",i=Jg(l,"search"),u=i.dir()||"ltr",c=new Wd({adminUrl:s.adminUrl,apiKey:s.apiKey,dir:u});this.state={searchIndex:c,showPopup:!1,indexStarted:!1,indexComplete:!1,t:i.t,dir:u,scrollbarWidth:0},this.inputRef=Zt.createRef()}componentDidMount(){const s=this.getScrollbarWidth();this.setState({scrollbarWidth:s}),this.initSetup()}componentDidUpdate(s,l){if(l.showPopup!==this.state.showPopup)try{this.state.showPopup?(this.bodyScroll=window.document?.body?.style?.overflow,this.bodyMargin=window.getComputedStyle(document.body).getPropertyValue("margin-right"),window.document.body.style.overflow="hidden",this.state.scrollbarWidth&&document.body.scrollHeight>window.innerHeight&&(window.document.body.style.marginRight=`calc(${this.bodyMargin} + ${this.state.scrollbarWidth}px)`)):(window.document.body.style.overflow=this.bodyScroll||"",!this.bodyMargin||this.bodyMargin==="0px"?window.document.body.style.marginRight="":window.document.body.style.marginRight=this.bodyMargin)}catch{}this.state.showPopup!==l?.showPopup&&!this.state.showPopup&&this.setState({searchValue:""}),this.state.showPopup&&!this.state.indexStarted&&this.setupSearchIndex()}async setupSearchIndex(){this.setState({indexStarted:!0}),await this.state.searchIndex.init(),this.setState({indexComplete:!0})}componentWillUnmount(){window.removeEventListener("hashchange",this.hashHandler,!1),window.removeEventListener("keydown",this.handleKeyDown,!1)}initSetup(){this.handleSearchUrl(),this.addKeyboardShortcuts(),this.setupCustomTriggerButton(),this.hashHandler=()=>{this.handleSearchUrl()},window.addEventListener("hashchange",this.hashHandler,!1)}getScrollbarWidth(){const s=document.createElement("div");s.style.visibility="hidden",s.style.overflow="scroll",document.body.appendChild(s);const l=s.offsetWidth-s.clientWidth;return document.body.removeChild(s),l}setupCustomTriggerButton(){this.clickHandler=s=>{s.preventDefault(),this.setState({showPopup:!0});const l=document.createElement("input");l.style.opacity="0",l.style.position="fixed",l.style.top="0",document.body.appendChild(l),l.focus(),setTimeout(()=>{this.inputRef.current.focus(),document.body.removeChild(l)},150)},this.customTriggerButtons=this.getCustomTriggerButtons(),this.customTriggerButtons.forEach(s=>{s.removeEventListener("click",this.clickHandler),s.addEventListener("click",this.clickHandler)})}getCustomTriggerButtons(){return document.querySelectorAll("[data-ghost-search]")||[]}handleSearchUrl(){const[s]=window.location.hash.substr(1).split("?");(s==="/search"||s==="/search/")&&(this.setState({showPopup:!0}),window.history.replaceState("",document.title,window.location.pathname))}addKeyboardShortcuts(){this.getCustomTriggerButtons()?.length&&(this.handleKeyDown=l=>{if(l.key==="k"&&l.metaKey)return this.setState({showPopup:!0}),l.preventDefault(),l.stopPropagation(),!1},document.addEventListener("keydown",this.handleKeyDown))}render(){return te.jsx(ut.Provider,{value:{page:"search",showPopup:this.state.showPopup,adminUrl:this.props.adminUrl,stylesUrl:this.props.stylesUrl,searchIndex:this.state.searchIndex,indexComplete:this.state.indexComplete,searchValue:this.state.searchValue,inputRef:this.inputRef,onAction:()=>{},dispatch:(s,l)=>{s==="update"&&this.setState({...this.state,...l})},t:this.state.t,dir:this.state.dir},children:te.jsx($d,{})})}}const jc="sodo-search-root";function Yg(){const r=document.createElement("div");r.id=jc,document.body.appendChild(r)}function Xg(){const r=document.querySelector("script[data-sodo-search]");if(r){const s=r.dataset.sodoSearch,l=r.dataset.key,i=r.dataset.styles,u=r.dataset.locale||"en";return{adminUrl:s,apiKey:l,stylesUrl:i,locale:u}}return{}}function Zg(){Yg()}function em(){const{adminUrl:r,apiKey:s,stylesUrl:l,locale:i}=Xg(),u=(r||window.location.origin)?.replace(/\/+$/,"");Zg(),ed.render(te.jsx(Zt.StrictMode,{children:te.jsx(Qg,{adminUrl:u,apiKey:s,stylesUrl:l,locale:i})}),document.getElementById(jc))}em()}));
|
|
67
30
|
//# sourceMappingURL=sodo-search.min.js.map
|