@tryghost/sodo-search 1.8.14 → 1.8.16
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 +3 -2
- package/umd/sodo-search.min.js +14 -14
- package/umd/sodo-search.min.js.map +1 -1
package/umd/sodo-search.min.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
(function(te){typeof define=="function"&&define.amd?define(te):te()})(function(){"use strict";var
|
|
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
|
|
1
|
+
(function(te){typeof define=="function"&&define.amd?define(te):te()})(function(){"use strict";var L1=Object.defineProperty;var Rd=te=>{throw TypeError(te)};var _1=(te,re,pe)=>re in te?L1(te,re,{enumerable:!0,configurable:!0,writable:!0,value:pe}):te[re]=pe;var _o=(te,re,pe)=>_1(te,typeof re!="symbol"?re+"":re,pe),R1=(te,re,pe)=>re.has(te)||Rd("Cannot "+pe);var Fd=(te,re,pe)=>re.has(te)?Rd("Cannot add the same private member more than once"):re instanceof WeakSet?re.add(te):re.set(te,pe);var _e=(te,re,pe)=>(R1(te,re,"access private method"),pe);var Y,Id,zd,Md,Dd,bd,Ud,Bd,Vd,Hd,Ro;var te=document.createElement("style");te.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(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
3
|
object-assign
|
|
4
4
|
(c) Sindre Sorhus
|
|
5
5
|
@license MIT
|
|
6
|
-
*/var
|
|
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
7
|
* react.production.min.js
|
|
8
8
|
*
|
|
9
9
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
10
10
|
*
|
|
11
11
|
* This source code is licensed under the MIT license found in the
|
|
12
12
|
* LICENSE file in the root directory of this source tree.
|
|
13
|
-
*/var Io=
|
|
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
14
|
* react-jsx-runtime.production.min.js
|
|
15
15
|
*
|
|
16
16
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
17
17
|
*
|
|
18
18
|
* This source code is licensed under the MIT license found in the
|
|
19
19
|
* LICENSE file in the root directory of this source tree.
|
|
20
|
-
*/var
|
|
20
|
+
*/var 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
21
|
* scheduler.production.min.js
|
|
22
22
|
*
|
|
23
23
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
24
24
|
*
|
|
25
25
|
* This source code is licensed under the MIT license found in the
|
|
26
26
|
* LICENSE file in the root directory of this source tree.
|
|
27
|
-
*/(function(e){var t,n,r,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=_}}}})(
|
|
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
28
|
* react-dom.production.min.js
|
|
29
29
|
*
|
|
30
30
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
31
31
|
*
|
|
32
32
|
* This source code is licensed under the MIT license found in the
|
|
33
33
|
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/var is=D,Q=
|
|
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
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
36
|
`),o=r.stack.split(`
|
|
37
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 hp(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 eu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dp(e){var t=eu(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=dp(e))}function tu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=eu(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 nu(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 ru(e,t){t=t.checked,t!=null&&Ho(e,"checked",t,!1)}function ni(e,t){ru(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 su(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 pp(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=pp(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 ou(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 iu(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 lu(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 au(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"?au(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ds,uu=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},gp=["Webkit","ms","Moz","O"];Object.keys(er).forEach(function(e){gp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),er[t]=er[e]})});function cu(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 fu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=cu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var mp=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(mp[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 hu(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 du(e){un?cn?cn.push(e):cn=[e]:un=e}function pu(){if(un){var e=un,t=cn;if(cn=un=null,hu(e),t)for(e=0;e<t.length;e++)hu(t[e])}}function hi(e,t){return e(t)}function gu(e,t,n,r,s){return e(t,n,r,s)}function di(){}var mu=hi,Mt=!1,pi=!1;function gi(){(un!==null||cn!==null)&&(di(),pu())}function yp(e,t,n){if(pi)return e(t,n);pi=!0;try{return mu(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 vp(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,wp={onError:function(e){rr=!0,ps=e}};function Sp(e,t,n,r,s,o,i,l,a){rr=!1,ps=null,vp.apply(wp,arguments)}function xp(e,t,n,r,s,o,i,l,a){if(Sp.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 yu(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 vu(e){if(Dt(e)!==e)throw Error(j(188))}function Cp(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 vu(s),e;if(o===r)return vu(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 wu(e){if(e=Cp(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 Su(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var xu,vi,Cu,$u,wi=!1,Ge=[],pt=null,gt=null,mt=null,sr=new Map,or=new Map,ir=[],ku="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 Pu(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 $p(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 kp(e){var t=bt(e.target);if(t!==null){var n=Dt(t);if(n!==null){if(t=n.tag,t===13){if(t=yu(n),t!==null){e.blockedOn=t,$u(e.lanePriority,function(){ie.unstable_runWithPriority(e.priority,function(){Cu(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 Eu(e,t,n){ms(e)&&n.delete(t)}function Pp(){for(wi=!1;0<Ge.length;){var e=Ge[0];if(e.blockedOn!==null){e=wr(e.blockedOn),e!==null&&xu(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(Eu),or.forEach(Eu)}function ar(e,t){e.blockedOn===t&&(e.blockedOn=null,wi||(wi=!0,ie.unstable_scheduleCallback(ie.unstable_NormalPriority,Pp)))}function ju(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);)kp(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={},Au={};ot&&(Au=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 Au)return xi[e]=t[n];return e}var Tu=vs("animationend"),Ou=vs("animationiteration"),Nu=vs("animationstart"),Lu=vs("transitionend"),_u=new Map,Ci=new Map,Ep=["abort","abort",Tu,"animationEnd",Ou,"animationIteration",Nu,"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",Lu,"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),_u.set(r,s),Ft(s,[r])}}var jp=ie.unstable_now;jp();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 Ap(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 Tp(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 Ru(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:Lp,Op=Math.log,Np=Math.LN2;function Lp(e){return e===0?32:31-(Op(e)/Np|0)|0}var _p=ie.unstable_UserBlockingPriority,Rp=ie.unstable_runWithPriority,xs=!0;function Fp(e,t,n,r){Mt||di();var s=Pi,o=Mt;Mt=!0;try{gu(s,e,t,n,r)}finally{(Mt=o)||gi()}}function Ip(e,t,n,r){Rp(_p,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<ku.indexOf(e))e=Si(null,e,t,n,r),Ge.push(e);else{var o=Ei(e,t,n,r);if(o===null)s&&Pu(e,r);else{if(s){if(-1<ku.indexOf(e)){e=Si(o,e,t,n,r),Ge.push(e);return}if($p(o,e,t,n,r))return;Pu(e,r)}uc(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=yu(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 uc(e,t,r,s,n),null}var vt=null,ji=null,Cs=null;function Fu(){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 Iu(){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:Iu,this.isPropagationStopped=Iu,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}),zp=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}}),zu=Te(Ps),Mp=Q({},Ps,{dataTransfer:0}),Dp=Te(Mp),bp=Q({},cr,{relatedTarget:0}),Ni=Te(bp),Up=Q({},pn,{animationName:0,elapsedTime:0,pseudoElement:0}),Bp=Te(Up),Vp=Q({},pn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Hp=Te(Vp),Wp=Q({},pn,{data:0}),Mu=Te(Wp),Kp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qp={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"},Gp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Qp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Gp[e])?!!t[e]:!1}function Li(){return Qp}var Jp=Q({},cr,{key:function(e){if(e.key){var t=Kp[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"?qp[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}}),Yp=Te(Jp),Xp=Q({},Ps,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Du=Te(Xp),Zp=Q({},cr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Li}),eg=Te(Zp),tg=Q({},pn,{propertyName:0,elapsedTime:0,pseudoElement:0}),ng=Te(tg),rg=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}),sg=Te(rg),og=[9,13,27,32],_i=ot&&"CompositionEvent"in window,hr=null;ot&&"documentMode"in document&&(hr=document.documentMode);var ig=ot&&"TextEvent"in window&&!hr,bu=ot&&(!_i||hr&&8<hr&&11>=hr),Uu=" ",Bu=!1;function Vu(e,t){switch(e){case"keyup":return og.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var gn=!1;function lg(e,t){switch(e){case"compositionend":return Hu(t);case"keypress":return t.which!==32?null:(Bu=!0,Uu);case"textInput":return e=t.data,e===Uu&&Bu?null:e;default:return null}}function ag(e,t){if(gn)return e==="compositionend"||!_i&&Vu(e,t)?(e=Fu(),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 bu&&t.locale!=="ko"?null:t.data;default:return null}}var ug={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 Wu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ug[e.type]:t==="textarea"}function Ku(e,t,n,r){du(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 cg(e){sc(e,0)}function Es(e){var t=Sn(e);if(tu(t))return e}function fg(e,t){if(e==="change")return t}var qu=!1;if(ot){var Ri;if(ot){var Fi="oninput"in document;if(!Fi){var Gu=document.createElement("div");Gu.setAttribute("oninput","return;"),Fi=typeof Gu.oninput=="function"}Ri=Fi}else Ri=!1;qu=Ri&&(!document.documentMode||9<document.documentMode)}function Qu(){dr&&(dr.detachEvent("onpropertychange",Ju),pr=dr=null)}function Ju(e){if(e.propertyName==="value"&&Es(pr)){var t=[];if(Ku(t,pr,e,ci(e)),e=cg,Mt)e(t);else{Mt=!0;try{hi(e,t)}finally{Mt=!1,gi()}}}}function hg(e,t,n){e==="focusin"?(Qu(),dr=t,pr=n,dr.attachEvent("onpropertychange",Ju)):e==="focusout"&&Qu()}function dg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Es(pr)}function pg(e,t){if(e==="click")return Es(t)}function gg(e,t){if(e==="input"||e==="change")return Es(t)}function mg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fe=typeof Object.is=="function"?Object.is:mg,yg=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(!yg.call(t,n[r])||!Fe(e[n[r]],t[n[r]]))return!1;return!0}function Yu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Xu(e,t){var n=Yu(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=Yu(n)}}function Zu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ec(){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 vg=ot&&"documentMode"in document&&11>=document.documentMode,mn=null,zi=null,mr=null,Mi=!1;function tc(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(Ep,2);for(var nc="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Di=0;Di<nc.length;Di++)Ci.set(nc[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(" "),wg=new Set("cancel close invalid load scroll toggle".split(" ").concat(yr));function rc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,xp(r,t,void 0,e),e.currentTarget=null}function sc(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;rc(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;rc(s,l,u),o=a}}}if(gs)throw e=yi,gs=!1,yi=null,e}function q(e,t){var n=gc(t),r=e+"__bubble";n.has(r)||(ac(t,e,2,!1),n.add(r))}var oc="_reactListening"+Math.random().toString(36).slice(2);function ic(e){e[oc]||(e[oc]=!0,Ga.forEach(function(t){wg.has(t)||lc(t,!1,e,null),lc(t,!0,e,null)}))}function lc(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=gc(o),l=e+"__"+(t?"capture":"bubble");i.has(l)||(t&&(s|=4),ac(o,e,s,t),i.add(l))}function ac(e,t,n,r){var s=Ci.get(t);switch(s===void 0?2:s){case 0:s=Fp;break;case 1:s=Ip;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 uc(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}yp(function(){var u=o,f=ci(n),h=[];e:{var c=_u.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=Yp;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=zu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=Dp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=eg;break;case Tu:case Ou:case Nu:m=Bp;break;case Lu:m=ng;break;case"scroll":m=zp;break;case"wheel":m=sg;break;case"copy":case"cut":case"paste":m=Hp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Du}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=zu,y="onMouseLeave",p="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(w=Du,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&&cc(h,c,m,w,!1),v!==null&&d!==null&&cc(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 $=fg;else if(Wu(c))if(qu)$=gg;else{$=dg;var C=hg}else(m=c.nodeName)&&m.toLowerCase()==="input"&&(c.type==="checkbox"||c.type==="radio")&&($=pg);if($&&($=$(e,u))){Ku(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":(Wu(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,tc(h,n,f);break;case"selectionchange":if(vg)break;case"keydown":case"keyup":tc(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?Vu(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(bu&&n.locale!=="ko"&&(gn||T!=="onCompositionStart"?T==="onCompositionEnd"&&gn&&(P=Fu()):(vt=f,ji="value"in vt?vt.value:vt.textContent,gn=!0)),C=js(u,T),0<C.length&&(T=new Mu(T,e,null,n,f),h.push({event:T,listeners:C}),P?T.data=P:(P=Hu(n),P!==null&&(T.data=P)))),(P=ig?lg(e,n):ag(e,n))&&(u=js(u,"onBeforeInput"),0<u.length&&(f=new Mu("onBeforeInput","beforeinput",null,n,f),h.push({event:f,listeners:u}),f.data=P))}sc(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 cc(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 fc(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 hc=typeof setTimeout=="function"?setTimeout:void 0,Sg=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 dc(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 xg(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,pc="__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=dc(e);e!==null;){if(n=e[wt])return n;e=dc(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 gc(e){var t=e[pc];return t===void 0&&(t=e[pc]=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 mc(e,t,n){if(ge.current!==xt)throw Error(j(168));X(ge,t),X(ke,n)}function yc(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 vc(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=yc(e,t,Ut),r.__reactInternalMemoizedMergedChildContext=e,G(ke),G(ge),X(ge,e)):G(ke),X(ke,n)}var Ki=null,Bt=null,Cg=ie.unstable_runWithPriority,qi=ie.unstable_scheduleCallback,Gi=ie.unstable_cancelCallback,$g=ie.unstable_shouldYield,wc=ie.unstable_requestPaint,Qi=ie.unstable_now,kg=ie.unstable_getCurrentPriorityLevel,Rs=ie.unstable_ImmediatePriority,Sc=ie.unstable_UserBlockingPriority,xc=ie.unstable_NormalPriority,Cc=ie.unstable_LowPriority,$c=ie.unstable_IdlePriority,Ji={},Pg=wc!==void 0?wc:function(){},it=null,Fs=null,Yi=!1,kc=Qi(),me=1e4>kc?Qi:function(){return Qi()-kc};function $n(){switch(kg()){case Rs:return 99;case Sc:return 98;case xc:return 97;case Cc:return 96;case $c:return 95;default:throw Error(j(332))}}function Pc(e){switch(e){case 99:return Rs;case 98:return Sc;case 97:return xc;case 96:return Cc;case 95:return $c;default:throw Error(j(332))}}function Vt(e,t){return e=Pc(e),Cg(e,t)}function Sr(e,t,n){return e=Pc(e),qi(e,t,n)}function Qe(){if(Fs!==null){var e=Fs;Fs=null,Gi(e)}Ec()}function Ec(){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 Eg=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 jc(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 Ac(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 Tc(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 Oc(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 Nc=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 Lc(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 _c(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 Rc(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=Nc,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===Nc&&(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 Fc(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=Fc(!0),Ic=Fc(!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 zc(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 Mc(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 Dc(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(!Dc(e,t)){if(t=vn(n.nextSibling),!t||!Dc(e,t)){e.flags=e.flags&-1025|2,Ye=!1,lt=e;return}Mc(lt,n)}lt=e,Pt=vn(t.firstChild)}else e.flags=e.flags&-1025|2,Ye=!1,lt=e}}function bc(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 bc(e),Ye=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!Bi(t,e.memoizedProps))for(t=Pt;t;)Mc(e,t),t=vn(t.nextSibling);if(bc(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?Ag:Tg,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=Og,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 Uc(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 Bc(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 Uc(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=Uc(s,t,n),a.memoizedState=a.baseState=f),f}function Vc(e,t,n){var r=Kt();return Bc(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 Hc(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 Wc(e,t){return ul(516,4,e,t)}function Qs(e,t){return cl(516,4,e,t)}function Kc(e,t){return cl(4,2,e,t)}function qc(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 Gc(e,t,n){return n=n!=null?n.concat([e]):null,cl(4,2,qc.bind(null,t,e),n)}function fl(){}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]:(n.memoizedState=[e,t],e)}function Jc(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 jg(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},Ag={readContext:Ie,useCallback:function(e,t){return Wt().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:Wc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ul(4,2,qc.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:Hc,useState:Nr,useDebugValue:fl,useDeferredValue:function(e){var t=Nr(e),n=t[0],r=t[1];return Wc(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=jg.bind(null,e[1]),Hc(e),[e,t]},useMutableSource:function(e,t,n){var r=Wt();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},Bc(r,e,t,n)},useOpaqueIdentifier:function(){if(Ye){var e=!1,t=xg(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},Tg={readContext:Ie,useCallback:Qc,useContext:Ie,useEffect:Qs,useImperativeHandle:Gc,useLayoutEffect:Kc,useMemo:Jc,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:Vc,useOpaqueIdentifier:function(){return Tr(Xe)[0]},unstable_isNewReconciler:!1},Og={readContext:Ie,useCallback:Qc,useContext:Ie,useEffect:Qs,useImperativeHandle:Gc,useLayoutEffect:Kc,useMemo:Jc,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:Vc,useOpaqueIdentifier:function(){return Or(Xe)[0]},unstable_isNewReconciler:!1},Ng=It.ReactCurrentOwner,He=!1;function je(e,t,n,r){t.child=e===null?Ic(t,null,n,r):Vs(t,e.child,n,r)}function Yc(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 Xc(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,Zc(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 Zc(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 ef(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 tf(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),_c(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)&&Rc(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||Lc(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,Ac(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)&&Rc(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||Lc(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){ef(e,t);var i=(t.flags&64)!==0;if(!r&&!i)return s&&vc(t,n,!1),at(e,t,o);r=t.stateNode,Ng.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&&vc(t,n,!0),t.child}function nf(e){var t=e.stateNode;t.pendingContext?mc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&mc(e,t.context,!1),nl(e,t.containerInfo)}var Ys={dehydrated:null,retryLane:0};function rf(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=sf(t,e,s,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ys,e):typeof r.unstable_expectedLoadTime=="number"?(e=sf(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=lf(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=of(e,t,r.children,n),t.memoizedState=null,n):o?(r=lf(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=of(e,t,r.children,n),t.memoizedState=null,n)}function sf(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 of(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 lf(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 af(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),jc(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 uf(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&&af(e,n);else if(e.tag===19)af(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 cf,yl,ff,hf;cf=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(){},ff=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)}},hf=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 Lg(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)ff(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":nu(r,o),q("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},q("invalid",r);break;case"textarea":ou(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),su(r,o,!0);break;case"textarea":fs(r),lu(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=au(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,cf(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":nu(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":ou(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"?fu(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&uu(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),su(e,r,!1);break;case"textarea":fs(e),lu(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)}fc(n,r)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)hf(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(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&&ic(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 _g(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+=hp(r),r=r.return;while(r);var s=n}catch(o){s=`
|
|
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
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 Rg=typeof WeakMap=="function"?WeakMap:Map;function df(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 pf(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 Fg=typeof WeakSet=="function"?WeakSet:Set;function gf(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 Ig(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 zg(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&&(Of(n,e),Wg(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&&Oc(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}Oc(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&fc(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&&ju(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(j(163))}function mf(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=cu("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 yf(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)Of(t,n);else{r=t;try{s()}catch(o){Ot(r,o)}}n=n.next}while(n!==e)}break;case 1:if(gf(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:gf(t);break;case 4:xf(e,t)}}function vf(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 wf(e){return e.tag===5||e.tag===3||e.tag===4}function Sf(e){e:{for(var t=e.return;t!==null;){if(wf(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||wf(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 xf(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(yf(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(yf(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&&ru(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"?fu(n,l):i==="dangerouslySetInnerHTML"?uu(n,l):i==="children"?Zn(n,l):Ho(n,i,l,t)}switch(e){case"input":ni(n,r);break;case"textarea":iu(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,ju(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(jl=me(),mf(t.child,!0)),Cf(t);return;case 19:Cf(t);return;case 17:return;case 23:case 24:mf(t,t.memoizedState!==null);return}throw Error(j(163))}function Cf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Fg),t.forEach(function(r){var s=Gg.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Mg(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var Dg=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),Eg.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=Ap(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,Ec)):it.push(n),n=Ji):t===14?n=Sr(99,_l.bind(null,e)):(n=Tp(t),n=Sr(n,$f.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function $f(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=jf();(Ce!==e||ve!==r)&&(On(),Ln(e,r));do try{Bg();break}catch(l){Ef(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=Ru(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=hc(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*Dg(n/1960))-n,10<n){e.timeoutHandle=hc(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?$f.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=Ru(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 bg(){if(ut!==null){var e=ut;ut=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Me(t,me())})}Qe()}function kf(e,t){var n=I;I|=1;try{return e(t)}finally{I=n,I===0&&(On(),Qe())}}function Pf(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,Sg(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 Ef(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 Rg,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=qg.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.
|
|
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.
|
|
41
41
|
|
|
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 $=df(c,o,t);Tc(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=pf(c,o,t);Tc(c,T);break e}}c=c.return}while(c!==null)}Tf(n)}catch(N){t=N,oe===n&&n!==null&&(oe=n=n.return);continue}break}while(!0)}function jf(){var e=Xs.current;return Xs.current=Js,e===null?Js:e}function Mr(e,t){var n=I;I|=16;var r=jf();Ce===e&&ve===t||Ln(e,t);do try{Ug();break}catch(s){Ef(e,s)}while(!0);if(Xi(),I=n,Xs.current=r,oe!==null)throw Error(j(261));return Ce=null,ve=0,fe}function Ug(){for(;oe!==null;)Af(oe)}function Bg(){for(;oe!==null&&!$g();)Af(oe)}function Af(e){var t=Lf(e.alternate,e,qt);e.memoizedProps=e.pendingProps,t===null?Tf(e):oe=t,$l.current=null}function Tf(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&2048){if(n=_g(t),n!==null){n.flags&=2047,oe=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(n=Lg(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,Vg.bind(null,e,t)),null}function Vg(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=ec(),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{Hg()}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:Sf(R),R.flags&=-3;break;case 6:Sf(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,xf(i,l);var $=l.alternate;vf(l),$!==null&&vf($)}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=ec(),g=y.focusedElem,i=y.selectionRange,S!==g&&g&&g.ownerDocument&&Zu(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=Xu(g,$),o=Xu(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&&zg(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,Pg(),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 Hg(){for(;R!==null;){var e=R.alternate;ro||zr===null||(R.flags&8?Su(R,zr)&&(ro=!0):R.tag===13&&Mg(e,R)&&Su(R,zr)&&(ro=!0));var t=R.flags;t&256&&Ig(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,Kg)}return!1}function Wg(e,t){Ol.push(t,e),Et||(Et=!0,Sr(97,function(){return Tt(),null}))}function Of(e,t){Nl.push(t,e),Et||(Et=!0,Sr(97,function(){return Tt(),null}))}function Kg(){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 Nf(e,t,n){t=vl(n,t),t=df(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)Nf(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){Nf(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=pf(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 qg(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 Gg(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 Lf;Lf=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:nf(t),ol();break;case 5:zc(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?rf(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 uf(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=Jg(s),e=Ve(s,e),o){case 0:t=pl(null,t,s,e,n);break e;case 1:t=tf(null,t,s,e,n);break e;case 11:t=Yc(null,t,s,e,n);break e;case 14:t=Xc(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),tf(e,t,r,s,n);case 3:if(nf(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,Ac(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=Ic(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 zc(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),ef(e,t),je(e,t,i,n),t.child;case 6:return e===null&&sl(t),null;case 13:return rf(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),Yc(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),jc(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),Xc(e,t,s,o,r,n);case 15:return Zc(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),_c(t,r,s),tl(t,r,s,n),gl(null,t,r,!0,e,n);case 19:return uf(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 Jg(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 Xa: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 Yg(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 Xg(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=yc(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 _f(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){_f(e,t),(e=e.alternate)&&_f(e,t)}function Zg(){return null}function Ul(e,t,n){var r=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new Yg(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,ic(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 em(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=em(n,r),i=o._internalRoot,typeof s=="function"){var a=s;s=function(){var u=Dl(i);a.call(u)}}Pf(function(){lo(t,i,e,s)})}return Dl(i)}xu=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)}},Cu=function(e){if(e.tag===13){var t=Oe(),n=jt(e);At(e,n,t),bl(e,n)}},$u=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));tu(r),ni(r,s)}}}break;case"textarea":iu(e,n);break;case"select":t=n.value,t!=null&&an(e,!!n.multiple,t,!1)}},hi=kf,gu=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)&&(bg(),Tt())},mu=function(e,t){var n=I;I|=2;try{return e(t)}finally{I=n,I===0&&(On(),Qe())}};function Rf(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Dr(t))throw Error(j(200));return Xg(e,t,null,n)}var tm={Events:[wr,Sn,Ns,du,pu,Tt,{current:!1}]},br={findFiberByHostInstance:bt,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},nm={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=wu(e),e===null?null:e.stateNode},findFiberByHostInstance:br.findFiberByHostInstance||Zg,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(nm),Bt=uo}catch{}}Re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tm,Re.createPortal=Rf,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=wu(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?(Pf(function(){ao(null,null,e,!1,function(){e._reactRootContainer=null,e[wn]=null})}),!0):!1},Re.unstable_batchedUpdates=kf,Re.unstable_createPortal=function(e,t){return Rf(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 Ff(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ff)}catch(e){console.error(e)}}Ff(),Wa.exports=Re;var Bl=Wa.exports;const rm=Fo(Bl),we=ft.createContext({posts:[],authors:[],tags:[],action:"",lastPage:"",page:"",pageData:{},dispatch:(e,t)=>{},searchIndex:null,indexComplete:!1,searchValue:"",t:()=>{},dir:"ltr"});class sm 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 om=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)}}"))),im=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"})),lm=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"})),If=10,am=10,um=()=>({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 zf 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(jm,{})}}_o(zf,"contextType",we);function cm(){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(fm,{})}),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(hm,{}),A.jsx(dm,{})]})}function fm(){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(im,{className:"text-neutral-900 hover:text-neutral-500 h-[1.1rem] w-[1.1rem]"})}):A.jsx(lm,{className:"text-neutral-900",alt:"Search"})}function hm(){const{indexComplete:e,searchValue:t}=D.useContext(we);return!e&&t?A.jsx(om,{className:"shrink-0"}):null}function dm(){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 pm({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 gm({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(pm,{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 mm({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(Df,{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(Df,{text:o,highlight:r,isExcerpt:!0})})]})}function ym({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 Mf({text:e,highlight:t}){const n=ym({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 Df({text:e="",highlight:t="",isExcerpt:n}){var i;e=e||"",t=t||"";let{parts:r,highlightIndexes:s}=Mf({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}=Mf({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(vm,{word:l.text,isExcerpt:n})},a):A.jsx(ft.Fragment,{children:l.text},a));return A.jsx(A.Fragment,{children:o})}function vm({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 wm({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+am;n(s)},children:r("Show more results")})}function Sm({posts:e,selectedResult:t,setSelectedResult:n}){const{t:r}=D.useContext(we),[s,o]=D.useState(If),[i,l]=D.useState([]);if(D.useEffect(()=>{o(If)},[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(mm,{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(wm,{setMaxPosts:o,maxPosts:s,posts:e})]})}function xm({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(Cm,{name:r,avatar:s}),A.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-900 truncate",children:r})]})}function Cm({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 $m({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(xm,{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 km(){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(Pm,{posts:o,authors:i,tags:s}):e?A.jsx(Em,{}):null}function Pm({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($m,{authors:t,selectedResult:i,setSelectedResult:l}),A.jsx(gm,{tags:n,selectedResult:i,setSelectedResult:l}),A.jsx(Sm,{posts:e,selectedResult:i,setSelectedResult:l})]}):null}function Em(){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 jm(){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(cm,{}),A.jsx(km,{})]})})})}class bf 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=`
|
|
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=`
|
|
43
43
|
:root {
|
|
44
44
|
--brandcolor: ${this.context.brandColor||""}
|
|
45
45
|
}
|
|
@@ -47,7 +47,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
47
47
|
.ghost-display {
|
|
48
48
|
display: none;
|
|
49
49
|
}
|
|
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=um(),n={...t.frame.common};return A.jsx("div",{style:t.modalContainer,className:"gh-root-frame",children:A.jsxs(sm,{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(zf,{})]})})}render(){const{showPopup:t}=this.context;return t?this.renderFrameContainer():null}}_o(bf,"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 Am(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 Tm(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 Om=/[^\p{L}\p{N}]+/u,Nm=/(\d{3})/g,Lm=/(\D)(\d{3})/g,_m=/(\d{3})(\D)/g,Uf=/[\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,Om)}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=Uf?e.normalize("NFKD").replace(Uf,"").toLowerCase():e.toLowerCase()),this.prepare&&(e=this.prepare(e)),this.numeric&&3<e.length&&(e=e.replace(Lm,"$1 $2").replace(_m,"$1 $2").replace(Nm,"$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 Rm(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,Bf,co;function Fm(){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()-Bf>=this.priority*this.priority*3):(Hl=setTimeout(Fm,0),Bf=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=Im(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 Im(e,t,n){return t?typeof module<"u"?new(require("worker_threads")).Worker(__dirname+"/worker/node.js"):Promise.resolve().then(()=>Rh).then(function(r){return new r.Worker("undefined/node/node.mjs")}):e?new window.Worker(URL.createObjectURL(new Blob(["onmessage="+Rm.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 Vf(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 Hf(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 Wf(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 Kf(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 qf(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 Gf(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 Gf(t,s||0,o||t.length,!1)};if(r==="splice")return function(s,o){return Gf(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=Jf,this.A=BigInt(e)):(this.B=Qf,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=Jf,this.A=BigInt(e)):(this.B=Qf,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 Qf(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 Jf(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 Yf(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?Xf(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 Xf(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 zm(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 Zf.call(this,e,t,n,r,s,o)};function Zf(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 Zf.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=Xf(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 eh.call(this,o,i,l,a,u,f,h)}return s?this.resolve(t,n,r):this};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{if(t=Tm(e))return this.result=Yf(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 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)if(this.result.length&&e.unshift(this.result),2>e.length)this.result=e[0];else return this.result=Mm.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 Mm(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 nh.call(this,e,t,n,r,s,o,i)};function nh(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 nh.call(l,e,[],n,r,s,o,i)})}if(e.length&&this.result.length)this.result=Dm.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 Dm(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=bm.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($=zm($,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?sh(s):c?rh(s,e,y.index,y.field,y.D,c):s})}return l?sh(s):c?rh(s,e,this.index,this.field,this.D,c):s};function rh(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 sh(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 bm(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=Um.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 Um(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=oh,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=Wf(this.reg),t=null;break;case 1:s="tag",o=this.tag&&Vf(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=Kf(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=Hf(t,this.tag);break;case"doc":this.store=Kl(t,this.store)}}},Vl(Yt.prototype);function oh(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 ih={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"]]),lh=new Map([["ae","a"],["oe","o"],["sh","s"],["kh","k"],["th","t"],["ph","f"],["pf","f"]]),ah=[/([^aeo])h(.)/g,"$1$2",/([aeo])h([^aeo]|$)/g,"$1$2",/(.)\1+/g,"$1"],uh={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 ch={Exact:ih,Default:go,Normalize:go,LatinBalance:{mapper:Jl},LatinAdvanced:{mapper:Jl,matcher:lh,replacer:ah},LatinExtra:{mapper:Jl,replacer:ah.concat([/(?!^)[aeo]/g,""]),matcher:lh},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=uh[r];for(let o=1,i;o<t.length&&(i=t.charAt(o),i==="h"||i==="w"||!(i=uh[i])||i===s||(r+=i,s=i,r.length!==4));o++);e[n]=r}}},CJK:{split:""},LatinExact:ih,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&&ph(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&&ph(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 hh.call(this,m[0],"",t,l,a,c,u);if(o=this.depth&&o!==!1,s===2&&o&&!i)return hh.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=dh(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 fh(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=dh(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 fh(r,h,t,l,i,f,a)};function fh(e,t,n,r,s,o,i){let l=e.length,a=e;if(1<l)a=Yf(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 hh(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 dh(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)?ch[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 ph(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=oh,F.export=function(e,t,n=0,r=0){let s,o;switch(r){case 0:s="reg",o=Wf(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=Vf(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=Kf(t,this.reg);break;case"map":this.map=Kl(t,this.map);break;case"ctx":this.ctx=Hf(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=qf(this.map,o),n="index.map=new Map(["+n+"]);";for(const i of this.ctx.entries()){s=i[0];let l=qf(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 gh=typeof window<"u"&&(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),yo=["map","ctx","tag","reg","cfg"],Zt=se();function mh(e,t={}){if(!this)return new mh(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=mh.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=gh.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=gh.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(Am(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},Vm=ch,Hm={finalize:e=>{let t=[];for(const n of e)t.push(...Km(n));return t}};function Wm(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 Km(e){const t=[];let n="";for(const r of e){const s=r.codePointAt(0);Wm(s)?(n&&(t.push(n),n=""),t.push(r)):n+=r}return n&&t.push(n),t}const Zl=new vo.Encoder(Vm.Default,Hm);class qm{constructor({adminUrl:t,apiKey:n,dir:r}){zd(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,Md).call(this),await _e(this,Y,Ud).call(this),await _e(this,Y,Hd).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,Md=async function(){const t=await _e(this,Y,Dd).call(this);t.length>0&&_e(this,Y,bd).call(this,t)},Dd=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),[]}},bd=function(t){t.forEach(n=>{this.postsIndex.add(n)})},Ud=async function(){const t=await _e(this,Y,Bd).call(this);t.length>0&&_e(this,Y,Vd).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),[]}},Vd=function(t){t.forEach(n=>{this.authorsIndex.add(n)})},Hd=async function(){const t=await _e(this,Y,Wd).call(this);t.length>0&&_e(this,Y,Kd).call(this,t)},Wd=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),[]}},Kd=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 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:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Xm={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Zm={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"},ey={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"},ty={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"},ny={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"},ry={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"},sy={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},oy={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},iy={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},ly={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"},ay={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"},uy={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"},cy={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},fy={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"},hy={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"},dy={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"},py={Authors:"מחברים",Cancel:"ביטול","No matches found":"לא נמצאו התאמות",Posts:"פוסטים","Search posts, tags and authors":"חיפוש פוסטים, תגיות ומחברים","Show more results":"הצגת תוצאות נוספות",Tags:"תגיות"},gy={Authors:"लेखक",Cancel:"रद्द करें","No matches found":"कोई मैच नहीं मिला",Posts:"पोस्ट","Search posts, tags and authors":"पोस्ट, टैग और लेखक की तलाश करें","Show more results":"और परिणाम दिखाएं",Tags:"टैग"},my={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},yy={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"},vy={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"},wy={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Sy={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"},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:"",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:""},Py={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"},Ey={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:"Ангилалууд"},Ay={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Ty={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"},Oy={Authors:"लेखकहरू",Cancel:"रद्द गर्नुहोस्","No matches found":"कुनै परिणाम भेटिएन",Posts:"पोस्टहरू","Search posts, tags and authors":"पोस्टहरू, ट्यागहरू र लेखकहरू खोज्नुहोस्","Show more results":"थप परिणामहरू देखाउनुहोस्",Tags:"ट्यागहरू"},Ny={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"},Ly={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},_y={Authors:"ਲੇਖਕ",Cancel:"ਰੱਦ ਕਰੋ","No matches found":"ਕੋਈ ਮੇਲ ਨਹੀਂ ਮਿਲਿਆ",Posts:"ਪੋਸਟਾਂ","Search posts, tags and authors":"ਪੋਸਟਾਂ, ਟੈਗ ਅਤੇ ਲੇਖਕ ਖੋਜੋ","Show more results":"ਹੋਰ ਨਤੀਜੇ ਦਿਖਾਓ",Tags:"ਟੈਗ"},Ry={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"},Fy={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"},Iy={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"},zy={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"},My={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:""},by={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"},Uy={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:""},Vy={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"},Hy={Authors:"Аутори",Cancel:"Откажите","No matches found":"Нема резултата",Posts:"Објаве","Search posts, tags and authors":"Претражите објаве, tag-ове и ауторе","Show more results":"Прикажите више резултата",Tags:"Tag-ови"},Wy={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"},Ky={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:"குறிச்சொற்கள்"},Gy={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"},Jy={Authors:"Автори",Cancel:"Скасувати","No matches found":"Збігів не знайдено",Posts:"Публікації","Search posts, tags and authors":"Шукайте публікацій, теги та авторів","Show more results":"Показати більше результатів",Tags:"Теги"},Yy={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:""},Zy={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, chuyên mục & tác giả","Show more results":"Xem thêm kết quả",Tags:"Chuyên mục"},e0={Authors:"作者",Cancel:"取消","No matches found":"未找到匹配项",Posts:"文章","Search posts, tags and authors":"搜索文章、标签和作者","Show more results":"显示更多结果",Tags:"标签"},t0={Authors:"作者",Cancel:"取消","No matches found":"無相符結果",Posts:"文章","Search posts, tags and authors":"搜尋文章、標籤與作者","Show more results":"更多結果",Tags:"標籤"};var yh;function vh(){return yh||(yh={"/ghost/i18n/locales/af/search.json":function(){return Gm},"/ghost/i18n/locales/ar/search.json":function(){return Qm},"/ghost/i18n/locales/bg/search.json":function(){return Jm},"/ghost/i18n/locales/bn/search.json":function(){return Ym},"/ghost/i18n/locales/bs/search.json":function(){return Xm},"/ghost/i18n/locales/ca/search.json":function(){return Zm},"/ghost/i18n/locales/cs/search.json":function(){return ey},"/ghost/i18n/locales/da/search.json":function(){return ty},"/ghost/i18n/locales/de/search.json":function(){return ny},"/ghost/i18n/locales/de-CH/search.json":function(){return ry},"/ghost/i18n/locales/el/search.json":function(){return sy},"/ghost/i18n/locales/en/search.json":function(){return oy},"/ghost/i18n/locales/eo/search.json":function(){return iy},"/ghost/i18n/locales/es/search.json":function(){return ly},"/ghost/i18n/locales/et/search.json":function(){return ay},"/ghost/i18n/locales/eu/search.json":function(){return uy},"/ghost/i18n/locales/fa/search.json":function(){return cy},"/ghost/i18n/locales/fi/search.json":function(){return fy},"/ghost/i18n/locales/fr/search.json":function(){return hy},"/ghost/i18n/locales/gd/search.json":function(){return dy},"/ghost/i18n/locales/he/search.json":function(){return py},"/ghost/i18n/locales/hi/search.json":function(){return gy},"/ghost/i18n/locales/hr/search.json":function(){return my},"/ghost/i18n/locales/hu/search.json":function(){return yy},"/ghost/i18n/locales/id/search.json":function(){return vy},"/ghost/i18n/locales/is/search.json":function(){return wy},"/ghost/i18n/locales/it/search.json":function(){return Sy},"/ghost/i18n/locales/ja/search.json":function(){return xy},"/ghost/i18n/locales/ko/search.json":function(){return Cy},"/ghost/i18n/locales/kz/search.json":function(){return $y},"/ghost/i18n/locales/lt/search.json":function(){return ky},"/ghost/i18n/locales/lv/search.json":function(){return Py},"/ghost/i18n/locales/mk/search.json":function(){return Ey},"/ghost/i18n/locales/mn/search.json":function(){return jy},"/ghost/i18n/locales/ms/search.json":function(){return Ay},"/ghost/i18n/locales/nb/search.json":function(){return Ty},"/ghost/i18n/locales/ne/search.json":function(){return Oy},"/ghost/i18n/locales/nl/search.json":function(){return Ny},"/ghost/i18n/locales/nn/search.json":function(){return Ly},"/ghost/i18n/locales/pa/search.json":function(){return _y},"/ghost/i18n/locales/pl/search.json":function(){return Ry},"/ghost/i18n/locales/pt/search.json":function(){return Fy},"/ghost/i18n/locales/pt-BR/search.json":function(){return Iy},"/ghost/i18n/locales/ro/search.json":function(){return zy},"/ghost/i18n/locales/ru/search.json":function(){return My},"/ghost/i18n/locales/si/search.json":function(){return Dy},"/ghost/i18n/locales/sk/search.json":function(){return by},"/ghost/i18n/locales/sl/search.json":function(){return Uy},"/ghost/i18n/locales/sq/search.json":function(){return By},"/ghost/i18n/locales/sr/search.json":function(){return Vy},"/ghost/i18n/locales/sr-Cyrl/search.json":function(){return Hy},"/ghost/i18n/locales/sv/search.json":function(){return Wy},"/ghost/i18n/locales/sw/search.json":function(){return Ky},"/ghost/i18n/locales/ta/search.json":function(){return qy},"/ghost/i18n/locales/th/search.json":function(){return Gy},"/ghost/i18n/locales/tr/search.json":function(){return Qy},"/ghost/i18n/locales/uk/search.json":function(){return Jy},"/ghost/i18n/locales/ur/search.json":function(){return Yy},"/ghost/i18n/locales/uz/search.json":function(){return Xy},"/ghost/i18n/locales/vi/search.json":function(){return Zy},"/ghost/i18n/locales/zh/search.json":function(){return e0},"/ghost/i18n/locales/zh-Hant/search.json":function(){return t0}})}function en(e){function t(n){var r=wh(n,e);if(r!==null)return vh()[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=wh(n,e);return r!==null?r:require.resolve(n)},t}function wh(e,t){var n=n0(e);e=wo(e);var r;e[0]==="/"&&(t="");for(var s=vh(),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 n0(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},Sh=e=>e==null?"":""+e,r0=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},s0=/###/g,xh=e=>e&&e.indexOf("###")>-1?e.replace(s0,"."):e,Ch=e=>!e||z(e),Yr=(e,t,n)=>{const r=z(t)?t.split("."):t;let s=0;for(;s<r.length-1;){if(Ch(e))return{};const o=xh(r[s]);!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++s}return Ch(e)?{}:{obj:e,k:xh(r[s])}},$h=(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},o0=(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]},i0=(e,t,n)=>{const r=So(e,n);return r!==void 0?r:So(t,n)},kh=(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]):kh(e[r],t[r],n):e[r]=t[r]);return e},zn=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var l0={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const a0=e=>z(e)?e.replace(/[&<>"'\/]/g,t=>l0[t]):e;class u0{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 c0=[" ",",","?","!",";"],f0=new u0(20),h0=(e,t,n)=>{t=t||"",n=n||"";const r=c0.filter(i=>t.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const s=f0.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("_","-"),d0={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||d0,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 Ph 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),$h(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?kh(a,r,o):a={...a,...r},$h(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 Eh={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 jh={};class ko extends $o{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),r0(["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&&!h0(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=Eh.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,!jh[`${w[0]}-${d}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(jh[`${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 Ah{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 p0=[{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}],g0={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 m0=["v1","v2","v3"],y0=["v4"],Th={zero:0,one:1,two:2,few:3,many:4,other:5},v0=()=>{const e={};return p0.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:g0[t.fc]}})}),e};class w0{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||y0.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=v0(),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)=>Th[s]-Th[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!m0.includes(this.options.compatibilityJSON)}}const Oh=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=i0(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 S0{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:a0,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=Oh(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(Oh(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=Sh(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=Sh(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 x0=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 C0{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}=x0(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 $0=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class k0 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=>{o0(a.loaded,[o],i),$0(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 Nh=()=>({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}}),Lh=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=()=>{},P0=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=Lh(t),this.services={},this.logger=nt,this.modules={external:[]},P0(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=Nh();this.options={...s,...this.options,...Lh(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=C0);const h=new Ah(this.options);this.store=new Ph(this.options.resources,this.options);const c=this.services;c.logger=nt,c.resourceStore=this.store,c.languageUtils=h,c.pluralResolver=new w0(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 S0(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new k0(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"&&Eh.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 Ah(Nh());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 Ph(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 _h=Xr.createInstance();_h.createInstance=Xr.createInstance;var E0=_h;const Rh=Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})),Dn=qd(Rh);var ra={exports:{}},sa={},Fh={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})(Fh);var j0=Fh.exports,Ih={exports:{}},zh=Object.prototype.toString,Mh=function(t){var n=zh.call(t),r=n==="[object Arguments]";return r||(r=n!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&zh.call(t.callee)==="[object Function]"),r},oa,Dh;function A0(){if(Dh)return oa;Dh=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Mh,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 T0=Array.prototype.slice,O0=Mh,bh=Object.keys,Eo=bh?function(t){return bh(t)}:A0(),Uh=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 O0(r)?Uh(T0.call(r)):Uh(r)})}else Object.keys=Eo;return Object.keys||Eo};var N0=Eo,Bh=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,L0=Error,_0=EvalError,R0=RangeError,F0=ReferenceError,I0=SyntaxError,Vh=TypeError,z0=URIError,M0=Math.abs,D0=Math.floor,b0=Math.max,U0=Math.min,B0=Math.pow,V0=Math.round,H0=Number.isNaN||function(t){return t!==t},W0=H0,K0=function(t){return W0(t)||t===0?t:t<0?-1:1},q0=Object.getOwnPropertyDescriptor,jo=q0;if(jo)try{jo([],"length")}catch{jo=null}var Hh=jo,Ao=Object.defineProperty||!1;if(Ao)try{Ao({},"a",{value:1})}catch{Ao=!1}var G0=Ao,la,Wh;function Q0(){if(Wh)return la;Wh=1;var e=typeof Symbol<"u"&&Symbol,t=Bh;return la=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},la}var aa,Kh;function qh(){return Kh||(Kh=1,aa=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),aa}var ua,Gh;function Qh(){if(Gh)return ua;Gh=1;var e=ia;return ua=e.getPrototypeOf||null,ua}var J0="Function.prototype.bind called on incompatible ",Y0=Object.prototype.toString,X0=Math.max,Z0="[object Function]",Jh=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},ev=function(t,n){for(var r=[],s=n,o=0;s<t.length;s+=1,o+=1)r[o]=t[s];return r},tv=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},nv=function(t){var n=this;if(typeof n!="function"||Y0.apply(n)!==Z0)throw new TypeError(J0+n);for(var r=ev(arguments,1),s,o=function(){if(this instanceof s){var f=n.apply(this,Jh(r,arguments));return Object(f)===f?f:this}return n.apply(t,Jh(r,arguments))},i=X0(0,n.length-r.length),l=[],a=0;a<i;a++)l[a]="$"+a;if(s=Function("binder","return function ("+tv(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},rv=nv,To=Function.prototype.bind||rv,ca=Function.prototype.call,fa,Yh;function Xh(){return Yh||(Yh=1,fa=Function.prototype.apply),fa}var sv=typeof Reflect<"u"&&Reflect&&Reflect.apply,ov=To,iv=Xh(),lv=ca,av=sv,uv=av||ov.call(lv,iv),cv=To,fv=Vh,hv=ca,dv=uv,Zh=function(t){if(t.length<1||typeof t[0]!="function")throw new fv("a function is required");return dv(cv,hv,t)},ha,ed;function pv(){if(ed)return ha;ed=1;var e=Zh,t=Hh,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 ha=r&&typeof r.get=="function"?e([r.get]):typeof o=="function"?function(l){return o(l==null?l:s(l))}:!1,ha}var da,td;function gv(){if(td)return da;td=1;var e=qh(),t=Qh(),n=pv();return da=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,da}var pa,nd;function mv(){if(nd)return pa;nd=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=To;return pa=n.call(e,t),pa}var b,yv=ia,vv=L0,wv=_0,Sv=R0,xv=F0,bn=I0,Un=Vh,Cv=z0,$v=M0,kv=D0,Pv=b0,Ev=U0,jv=B0,Av=V0,Tv=K0,rd=Function,ga=function(e){try{return rd('"use strict"; return ('+e+").constructor;")()}catch{}},Zr=Hh,Ov=G0,ma=function(){throw new Un},Nv=Zr?function(){try{return arguments.callee,ma}catch{try{return Zr(arguments,"callee").get}catch{return ma}}}():ma,Bn=Q0()(),ae=gv(),Lv=Qh(),_v=qh(),sd=Xh(),es=ca,Vn={},Rv=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%":vv,"%eval%":eval,"%EvalError%":wv,"%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%":rd,"%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%":yv,"%Object.getOwnPropertyDescriptor%":Zr,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?b:Promise,"%Proxy%":typeof Proxy>"u"?b:Proxy,"%RangeError%":Sv,"%ReferenceError%":xv,"%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%":Nv,"%TypedArray%":Rv,"%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%":Cv,"%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%":sd,"%Object.defineProperty%":Ov,"%Object.getPrototypeOf%":Lv,"%Math.abs%":$v,"%Math.floor%":kv,"%Math.max%":Pv,"%Math.min%":Ev,"%Math.pow%":jv,"%Math.round%":Av,"%Math.sign%":Tv,"%Reflect.getPrototypeOf%":_v};if(ae)try{null.error}catch(e){var Fv=ae(ae(e));tn["%Error.prototype%"]=Fv}var Iv=function e(t){var n;if(t==="%AsyncFunction%")n=ga("async function () {}");else if(t==="%GeneratorFunction%")n=ga("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=ga("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},od={__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=mv(),zv=ts.call(es,Array.prototype.concat),Mv=ts.call(sd,Array.prototype.splice),id=ts.call(es,String.prototype.replace),No=ts.call(es,String.prototype.slice),Dv=ts.call(es,RegExp.prototype.exec),bv=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Uv=/\\(\\)?/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 id(t,bv,function(o,i,l,a){s[s.length]=l?id(a,Uv,"$1"):i||o}),s},Vv=function(t,n){var r=t,s;if(Oo(od,r)&&(s=od[r],r="%"+s[0]+"%"),Oo(tn,r)){var o=tn[r];if(o===Vn&&(o=Iv(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!")},Hv=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(Dv(/^%?[^%]*%?$/,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=Vv("%"+s+"%",n),i=o.name,l=o.value,a=!1,u=o.alias;u&&(s=u[0],Mv(r,zv([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},ld=Hv,ad=Zh,Wv=ad([ld("%String.prototype.indexOf%")]),Kv=function(t,n){var r=ld(t,!!n);return typeof r=="function"&&Wv(t,".prototype.")>-1?ad([r]):r},qv=N0,ud=Bh(),cd=Kv,Lo=ia,Gv=cd("Array.prototype.push"),fd=cd("Object.prototype.propertyIsEnumerable"),Qv=ud?Lo.getOwnPropertySymbols:null,Jv=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=qv(o),l=ud&&(Lo.getOwnPropertySymbols||Qv);if(l)for(var a=l(o),u=0;u<a.length;++u){var f=a[u];fd(o,f)&&Gv(i,f)}for(var h=0;h<i.length;++h){var c=i[h];if(fd(o,c)){var m=o[c];r[c]=m}}}return r},ya=Jv,Yv=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},Xv=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},Zv=function(){return!Object.assign||Yv()||Xv()?ya:Object.assign},hd={},e1=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"},va={exports:{}};typeof Object.create=="function"?va.exports=function(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:va.exports=function(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t};var t1=va.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(_1){return c(x,k,O,_,_1,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(`
|
|
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, chuyên mục & tác giả","Show more results":"Xem thêm kết quả",Tags:"Chuyên mục"},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
51
|
`)>-1&&(L?M=M.split(`
|
|
52
52
|
`).map(function(Se){return" "+Se}).join(`
|
|
53
53
|
`).substr(2):M=`
|
|
@@ -56,12 +56,12 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
56
56
|
`))):M=x.stylize("[Circular]","special")),$(_)){if(L&&E.match(/^\d+$/))return M;_=JSON.stringify(""+E),_.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(_=_.substr(1,_.length-2),_=x.stylize(_,"name")):(_=_.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),_=x.stylize(_,"string"))}return _+": "+M}function m(x,k,O){var H=x.reduce(function(E,L){return L.indexOf(`
|
|
57
57
|
`)>=0,E+L.replace(/\u001b\[\d\d?m/g,"").length+1},0);return H>60?O[0]+(k===""?"":k+`
|
|
58
58
|
`)+" "+x.join(`,
|
|
59
|
-
`)+" "+O[1]:O[0]+k+" "+x.join(", ")+" "+O[1]}function v(x){return Array.isArray(x)}e.isArray=v;function w(x){return typeof x=="boolean"}e.isBoolean=w;function d(x){return x===null}e.isNull=d;function p(x){return x==null}e.isNullOrUndefined=p;function g(x){return typeof x=="number"}e.isNumber=g;function S(x){return typeof x=="string"}e.isString=S;function y(x){return typeof x=="symbol"}e.isSymbol=y;function $(x){return x===void 0}e.isUndefined=$;function C(x){return P(x)&&de(x)==="[object RegExp]"}e.isRegExp=C;function P(x){return typeof x=="object"&&x!==null}e.isObject=P;function T(x){return P(x)&&de(x)==="[object Date]"}e.isDate=T;function N(x){return P(x)&&(de(x)==="[object Error]"||x instanceof Error)}e.isError=N;function U(x){return typeof x=="function"}e.isFunction=U;function Ne(x){return x===null||typeof x=="boolean"||typeof x=="number"||typeof x=="string"||typeof x=="symbol"||typeof x>"u"}e.isPrimitive=Ne,e.isBuffer=
|
|
59
|
+
`)+" "+O[1]:O[0]+k+" "+x.join(", ")+" "+O[1]}function v(x){return Array.isArray(x)}e.isArray=v;function w(x){return typeof x=="boolean"}e.isBoolean=w;function d(x){return x===null}e.isNull=d;function p(x){return x==null}e.isNullOrUndefined=p;function g(x){return typeof x=="number"}e.isNumber=g;function S(x){return typeof x=="string"}e.isString=S;function y(x){return typeof x=="symbol"}e.isSymbol=y;function $(x){return x===void 0}e.isUndefined=$;function C(x){return P(x)&&de(x)==="[object RegExp]"}e.isRegExp=C;function P(x){return typeof x=="object"&&x!==null}e.isObject=P;function T(x){return P(x)&&de(x)==="[object Date]"}e.isDate=T;function N(x){return P(x)&&(de(x)==="[object Error]"||x instanceof Error)}e.isError=N;function U(x){return typeof x=="function"}e.isFunction=U;function Ne(x){return x===null||typeof x=="boolean"||typeof x=="number"||typeof x=="string"||typeof x=="symbol"||typeof x>"u"}e.isPrimitive=Ne,e.isBuffer=Xv;function de(x){return Object.prototype.toString.call(x)}function ee(x){return x<10?"0"+x.toString(10):x.toString(10)}var be=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function $e(){var x=new Date,k=[ee(x.getHours()),ee(x.getMinutes()),ee(x.getSeconds())].join(":");return[x.getDate(),be[x.getMonth()],k].join(" ")}e.log=function(){console.log("%s - %s",$e(),e.format.apply(e,arguments))},e.inherits=Zv,e._extend=function(x,k){if(!k||!P(k))return x;for(var O=Object.keys(k),H=O.length;H--;)x[O[H]]=k[O[H]];return x};function Le(x,k){return Object.prototype.hasOwnProperty.call(x,k)}})(cd);var e1=Yv();/*!
|
|
60
60
|
* The buffer module from node.js, for the browser.
|
|
61
61
|
*
|
|
62
62
|
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
63
63
|
* @license MIT
|
|
64
|
-
*/function
|
|
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
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 wd(e,t){return typeof e=="string"?e.length<t?e:e.slice(0,t):e}function Sd(e){if(gd||!qe.isFunction(e))return qe.inspect(e);var t=vd(e),n=t?": "+t:"";return"[Function"+n+"]"}function o1(e){return wd(Sd(e.actual),128)+" "+e.operator+" "+wd(Sd(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 xd(e,t){e||Ae(e,!0,t,"==",W.ok)}W.ok=xd,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 dd(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(yd(e)&&yd(t)&&md(e)===md(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return dd(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),i1(e,t,n,r))}function Cd(e){return Object.prototype.toString.call(e)=="[object Arguments]"}function i1(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=Cd(e),o=Cd(t);if(s&&!o||!s&&o)return!1;if(s)return e=pd.call(e),t=pd.call(t),Hn(e,t,n);var i=jd(e),l=jd(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=$d;function $d(e,t,n){Hn(e,t,!0)&&Ae(e,t,n,"notDeepStrictEqual",$d)}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 kd(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 l1(e){var t;try{e()}catch(n){t=n}return t}function Pd(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=l1(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&&kd(s,n)||l)&&Ae(s,n,"Got unwanted exception"+r),e&&s&&n&&!kd(s,n)||!e&&s)throw s}W.throws=function(e,t,n){Pd(!0,e,t,n)},W.doesNotThrow=function(e,t,n){Pd(!1,e,t,n)},W.ifError=function(e){if(e)throw e};function Ed(e,t){e||Ae(e,!0,t,"==",Ed)}W.strict=n1(Ed,W,{equal:W.strictEqual,deepEqual:W.deepStrictEqual,notEqual:W.notStrictEqual,notDeepEqual:W.notDeepStrictEqual}),W.strict.strict=W.strict;var jd=Object.keys||function(e){var t=[];for(var n in e)r1.call(e,n)&&t.push(n);return t},a1=Ih.exports,u1=a1,c1=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++;u1(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 f1=Dn,h1=Dn,Ad=j0,d1=c1;sa.getCallerRoot=function(){try{return Ad(d1(2))}catch{return}},sa.getProcessRoot=function(){let t=process.cwd();const n=h1.join(t,"current");try{f1.statSync(n).isDirectory()&&(t=n)}catch{}try{return Ad(t)}catch{return}};var p1=sa,wa={exports:{}},Sa,Td;function g1(){if(Td)return Sa;Td=1;var e=1e3,t=e*60,n=t*60,r=n*24,s=r*7,o=r*365.25;Sa=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 Sa}function m1(e){n.debug=n,n.default=n,n.coerce=a,n.disable=i,n.enable=s,n.enabled=l,n.humanize=g1(),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 y1=m1;(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=y1(t);const{formatters:l}=e.exports;l.j=function(a){try{return JSON.stringify(a)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}}})(wa,wa.exports);var v1=wa.exports;const w1=p1,Od=v1;ra.exports=function(t){const n=w1.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 Od(r+":"+t)},ra.exports._base=Od;var S1=ra.exports,x1=S1;const C1=[{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"}],$1=E0,Nd=Dn,xa=Dn,Ca=x1("i18n"),Ld=C1,_d=Ld.map(e=>e.code);function Rd(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 k1(e,t){if(!t)return{[e]:{theme:{}}};let n=[];try{n=xa.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=Nd.join(t,`${o}.json`);if(xa.existsSync(a))try{delete require.cache[en("/ghost/i18n/lib").resolve(a)],i=en("/ghost/i18n/lib")(a)}catch{Ca(`Error loading theme locale file: ${o}`),l=!0}else l=!0;if(l)if(o!=="en")try{const u=Nd.join(t,"en.json");xa.existsSync(u)?(delete require.cache[en("/ghost/i18n/lib").resolve(u)],i=en("/ghost/i18n/lib")(u)):i={}}catch{i={}}else Ca("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=$1.createInstance(),s={prefix:"{",suffix:"}"};t==="theme"&&(s.escapeValue=!1);let o;return t!=="theme"?o=Rd(_d,t):(Ca(`generateThemeResources: ${e}, ${n.themePath}`),o=k1(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=_d,Qr.exports.LOCALE_DATA=Ld,Qr.exports.generateResources=Rd;var P1=Qr.exports;const rs=P1;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 E1=In.exports;const j1=Fo(E1);class A1 extends ft.Component{constructor(t){super(t);const n=this.props.locale||"en",r=j1(n,"search"),s=r.dir()||"ltr",o=new qm({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(bf,{})})}}const Fd="sodo-search-root";function T1(){const e=document.createElement("div");e.id=Fd,document.body.appendChild(e)}function O1(){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 N1(){T1()}function L1(){var o;const{adminUrl:e,apiKey:t,stylesUrl:n,locale:r}=O1(),s=(o=e||window.location.origin)==null?void 0:o.replace(/\/+$/,"");N1(),rm.render(A.jsx(ft.StrictMode,{children:A.jsx(A1,{adminUrl:s,apiKey:t,stylesUrl:n,locale:r})}),document.getElementById(Fd))}L1()});
|
|
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()});
|
|
67
67
|
//# sourceMappingURL=sodo-search.min.js.map
|