@tryghost/sodo-search 1.8.21 → 1.8.22
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 +7 -7
- package/umd/main.css +1 -1
- package/umd/sodo-search.min.js +21 -21
- package/umd/sodo-search.min.js.map +1 -1
package/umd/sodo-search.min.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
/*$vite$:1*/`,document.head.appendChild(Sr);var No=typeof document<"u"?document.currentScript:null,xr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ro(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Wh(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var s=r.default;if(typeof s=="function"){var l=function i(){var u=!1;try{u=this instanceof i}catch{}return u?Reflect.construct(s,arguments,this.constructor):s.apply(this,arguments)};l.prototype=s.prototype}else l={};return Object.defineProperty(l,"__esModule",{value:!0}),Object.keys(r).forEach(function(i){var u=Object.getOwnPropertyDescriptor(r,i);Object.defineProperty(l,i,u.get?u:{enumerable:!0,get:function(){return r[i]}})}),l}var _o={exports:{}},Vn={};var Lo,Ea;function Fo(){if(Ea)return Lo;Ea=1;var r=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;function i(c){if(c==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(c)}function u(){try{if(!Object.assign)return!1;var c=new String("abc");if(c[5]="de",Object.getOwnPropertyNames(c)[0]==="5")return!1;for(var d={},v=0;v<10;v++)d["_"+String.fromCharCode(v)]=v;var g=Object.getOwnPropertyNames(d).map(function($){return d[$]});if(g.join("")!=="0123456789")return!1;var C={};return"abcdefghijklmnopqrst".split("").forEach(function($){C[$]=$}),Object.keys(Object.assign({},C)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Lo=u()?Object.assign:function(c,d){for(var v,g=i(c),C,$=1;$<arguments.length;$++){v=Object(arguments[$]);for(var P in v)s.call(v,P)&&(g[P]=v[P]);if(r){C=r(v);for(var O=0;O<C.length;O++)l.call(v,C[O])&&(g[C[O]]=v[C[O]])}}return g},Lo}var Io={exports:{}},Le={};var $a;function Kh(){if($a)return Le;$a=1;var r=Fo(),s=60103,l=60106;Le.Fragment=60107,Le.StrictMode=60108,Le.Profiler=60114;var i=60109,u=60110,c=60112;Le.Suspense=60113;var d=60115,v=60116;if(typeof Symbol=="function"&&Symbol.for){var g=Symbol.for;s=g("react.element"),l=g("react.portal"),Le.Fragment=g("react.fragment"),Le.StrictMode=g("react.strict_mode"),Le.Profiler=g("react.profiler"),i=g("react.provider"),u=g("react.context"),c=g("react.forward_ref"),Le.Suspense=g("react.suspense"),d=g("react.memo"),v=g("react.lazy")}var C=typeof Symbol=="function"&&Symbol.iterator;function $(w){return w===null||typeof w!="object"?null:(w=C&&w[C]||w["@@iterator"],typeof w=="function"?w:null)}function P(w){for(var T="https://reactjs.org/docs/error-decoder.html?invariant="+w,q=1;q<arguments.length;q++)T+="&args[]="+encodeURIComponent(arguments[q]);return"Minified React error #"+w+"; visit "+T+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F={};function b(w,T,q){this.props=w,this.context=T,this.refs=F,this.updater=q||O}b.prototype.isReactComponent={},b.prototype.setState=function(w,T){if(typeof w!="object"&&typeof w!="function"&&w!=null)throw Error(P(85));this.updater.enqueueSetState(this,w,T,"setState")},b.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function V(){}V.prototype=b.prototype;function U(w,T,q){this.props=w,this.context=T,this.refs=F,this.updater=q||O}var J=U.prototype=new V;J.constructor=U,r(J,b.prototype),J.isPureReactComponent=!0;var re={current:null},we=Object.prototype.hasOwnProperty,ge={key:!0,ref:!0,__self:!0,__source:!0};function ne(w,T,q){var pe,B={},Z=null,W=null;if(T!=null)for(pe in T.ref!==void 0&&(W=T.ref),T.key!==void 0&&(Z=""+T.key),T)we.call(T,pe)&&!ge.hasOwnProperty(pe)&&(B[pe]=T[pe]);var oe=arguments.length-2;if(oe===1)B.children=q;else if(1<oe){for(var ae=Array(oe),Re=0;Re<oe;Re++)ae[Re]=arguments[Re+2];B.children=ae}if(w&&w.defaultProps)for(pe in oe=w.defaultProps,oe)B[pe]===void 0&&(B[pe]=oe[pe]);return{$$typeof:s,type:w,key:Z,ref:W,props:B,_owner:re.current}}function me(w,T){return{$$typeof:s,type:w.type,key:T,ref:w.ref,props:w.props,_owner:w._owner}}function ie(w){return typeof w=="object"&&w!==null&&w.$$typeof===s}function fe(w){var T={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(q){return T[q]})}var Ee=/\/+/g;function L(w,T){return typeof w=="object"&&w!==null&&w.key!=null?fe(""+w.key):T.toString(36)}function z(w,T,q,pe,B){var Z=typeof w;(Z==="undefined"||Z==="boolean")&&(w=null);var W=!1;if(w===null)W=!0;else switch(Z){case"string":case"number":W=!0;break;case"object":switch(w.$$typeof){case s:case l:W=!0}}if(W)return W=w,B=B(W),w=pe===""?"."+L(W,0):pe,Array.isArray(B)?(q="",w!=null&&(q=w.replace(Ee,"$&/")+"/"),z(B,T,q,"",function(Re){return Re})):B!=null&&(ie(B)&&(B=me(B,q+(!B.key||W&&W.key===B.key?"":(""+B.key).replace(Ee,"$&/")+"/")+w)),T.push(B)),1;if(W=0,pe=pe===""?".":pe+":",Array.isArray(w))for(var oe=0;oe<w.length;oe++){Z=w[oe];var ae=pe+L(Z,oe);W+=z(Z,T,q,ae,B)}else if(ae=$(w),typeof ae=="function")for(w=ae.call(w),oe=0;!(Z=w.next()).done;)Z=Z.value,ae=pe+L(Z,oe++),W+=z(Z,T,q,ae,B);else if(Z==="object")throw T=""+w,Error(P(31,T==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":T));return W}function Y(w,T,q){if(w==null)return w;var pe=[],B=0;return z(w,pe,"","",function(Z){return T.call(q,Z,B++)}),pe}function se(w){if(w._status===-1){var T=w._result;T=T(),w._status=0,w._result=T,T.then(function(q){w._status===0&&(q=q.default,w._status=1,w._result=q)},function(q){w._status===0&&(w._status=2,w._result=q)})}if(w._status===1)return w._result;throw w._result}var de={current:null};function Oe(){var w=de.current;if(w===null)throw Error(P(321));return w}var Ie={ReactCurrentDispatcher:de,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:re,IsSomeRendererActing:{current:!1},assign:r};return Le.Children={map:Y,forEach:function(w,T,q){Y(w,function(){T.apply(this,arguments)},q)},count:function(w){var T=0;return Y(w,function(){T++}),T},toArray:function(w){return Y(w,function(T){return T})||[]},only:function(w){if(!ie(w))throw Error(P(143));return w}},Le.Component=b,Le.PureComponent=U,Le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ie,Le.cloneElement=function(w,T,q){if(w==null)throw Error(P(267,w));var pe=r({},w.props),B=w.key,Z=w.ref,W=w._owner;if(T!=null){if(T.ref!==void 0&&(Z=T.ref,W=re.current),T.key!==void 0&&(B=""+T.key),w.type&&w.type.defaultProps)var oe=w.type.defaultProps;for(ae in T)we.call(T,ae)&&!ge.hasOwnProperty(ae)&&(pe[ae]=T[ae]===void 0&&oe!==void 0?oe[ae]:T[ae])}var ae=arguments.length-2;if(ae===1)pe.children=q;else if(1<ae){oe=Array(ae);for(var Re=0;Re<ae;Re++)oe[Re]=arguments[Re+2];pe.children=oe}return{$$typeof:s,type:w.type,key:B,ref:Z,props:pe,_owner:W}},Le.createContext=function(w,T){return T===void 0&&(T=null),w={$$typeof:u,_calculateChangedBits:T,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider={$$typeof:i,_context:w},w.Consumer=w},Le.createElement=ne,Le.createFactory=function(w){var T=ne.bind(null,w);return T.type=w,T},Le.createRef=function(){return{current:null}},Le.forwardRef=function(w){return{$$typeof:c,render:w}},Le.isValidElement=ie,Le.lazy=function(w){return{$$typeof:v,_payload:{_status:-1,_result:w},_init:se}},Le.memo=function(w,T){return{$$typeof:d,type:w,compare:T===void 0?null:T}},Le.useCallback=function(w,T){return Oe().useCallback(w,T)},Le.useContext=function(w,T){return Oe().useContext(w,T)},Le.useDebugValue=function(){},Le.useEffect=function(w,T){return Oe().useEffect(w,T)},Le.useImperativeHandle=function(w,T,q){return Oe().useImperativeHandle(w,T,q)},Le.useLayoutEffect=function(w,T){return Oe().useLayoutEffect(w,T)},Le.useMemo=function(w,T){return Oe().useMemo(w,T)},Le.useReducer=function(w,T,q){return Oe().useReducer(w,T,q)},Le.useRef=function(w){return Oe().useRef(w)},Le.useState=function(w){return Oe().useState(w)},Le.version="17.0.2",Le}var ja;function Do(){return ja||(ja=1,Io.exports=Kh()),Io.exports}var Aa;function Gh(){if(Aa)return Vn;Aa=1,Fo();var r=Do(),s=60103;if(Vn.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var l=Symbol.for;s=l("react.element"),Vn.Fragment=l("react.fragment")}var i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function d(v,g,C){var $,P={},O=null,F=null;C!==void 0&&(O=""+C),g.key!==void 0&&(O=""+g.key),g.ref!==void 0&&(F=g.ref);for($ in g)u.call(g,$)&&!c.hasOwnProperty($)&&(P[$]=g[$]);if(v&&v.defaultProps)for($ in g=v.defaultProps,g)P[$]===void 0&&(P[$]=g[$]);return{$$typeof:s,type:v,key:O,ref:F,props:P,_owner:i.current}}return Vn.jsx=d,Vn.jsxs=d,Vn}var Oa;function Jh(){return Oa||(Oa=1,_o.exports=Gh()),_o.exports}var te=Jh(),Ne=Do();const Zt=Ro(Ne);var Mo={exports:{}},kt={},zo={exports:{}},bo={};var Ta;function Qh(){return Ta||(Ta=1,(function(r){var s,l,i,u;if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;r.unstable_now=function(){return c.now()}}else{var d=Date,v=d.now();r.unstable_now=function(){return d.now()-v}}if(typeof window>"u"||typeof MessageChannel!="function"){var g=null,C=null,$=function(){if(g!==null)try{var B=r.unstable_now();g(!0,B),g=null}catch(Z){throw setTimeout($,0),Z}};s=function(B){g!==null?setTimeout(s,0,B):(g=B,setTimeout($,0))},l=function(B,Z){C=setTimeout(B,Z)},i=function(){clearTimeout(C)},r.unstable_shouldYield=function(){return!1},u=r.unstable_forceFrameRate=function(){}}else{var P=window.setTimeout,O=window.clearTimeout;if(typeof console<"u"){var F=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof F!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var b=!1,V=null,U=-1,J=5,re=0;r.unstable_shouldYield=function(){return r.unstable_now()>=re},u=function(){},r.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<B?Math.floor(1e3/B):5};var we=new MessageChannel,ge=we.port2;we.port1.onmessage=function(){if(V!==null){var B=r.unstable_now();re=B+J;try{V(!0,B)?ge.postMessage(null):(b=!1,V=null)}catch(Z){throw ge.postMessage(null),Z}}else b=!1},s=function(B){V=B,b||(b=!0,ge.postMessage(null))},l=function(B,Z){U=P(function(){B(r.unstable_now())},Z)},i=function(){O(U),U=-1}}function ne(B,Z){var W=B.length;B.push(Z);e:for(;;){var oe=W-1>>>1,ae=B[oe];if(ae!==void 0&&0<fe(ae,Z))B[oe]=Z,B[W]=ae,W=oe;else break e}}function me(B){return B=B[0],B===void 0?null:B}function ie(B){var Z=B[0];if(Z!==void 0){var W=B.pop();if(W!==Z){B[0]=W;e:for(var oe=0,ae=B.length;oe<ae;){var Re=2*(oe+1)-1,be=B[Re],pt=Re+1,De=B[pt];if(be!==void 0&&0>fe(be,W))De!==void 0&&0>fe(De,be)?(B[oe]=De,B[pt]=W,oe=pt):(B[oe]=be,B[Re]=W,oe=Re);else if(De!==void 0&&0>fe(De,W))B[oe]=De,B[pt]=W,oe=pt;else break e}}return Z}return null}function fe(B,Z){var W=B.sortIndex-Z.sortIndex;return W!==0?W:B.id-Z.id}var Ee=[],L=[],z=1,Y=null,se=3,de=!1,Oe=!1,Ie=!1;function w(B){for(var Z=me(L);Z!==null;){if(Z.callback===null)ie(L);else if(Z.startTime<=B)ie(L),Z.sortIndex=Z.expirationTime,ne(Ee,Z);else break;Z=me(L)}}function T(B){if(Ie=!1,w(B),!Oe)if(me(Ee)!==null)Oe=!0,s(q);else{var Z=me(L);Z!==null&&l(T,Z.startTime-B)}}function q(B,Z){Oe=!1,Ie&&(Ie=!1,i()),de=!0;var W=se;try{for(w(Z),Y=me(Ee);Y!==null&&(!(Y.expirationTime>Z)||B&&!r.unstable_shouldYield());){var oe=Y.callback;if(typeof oe=="function"){Y.callback=null,se=Y.priorityLevel;var ae=oe(Y.expirationTime<=Z);Z=r.unstable_now(),typeof ae=="function"?Y.callback=ae:Y===me(Ee)&&ie(Ee),w(Z)}else ie(Ee);Y=me(Ee)}if(Y!==null)var Re=!0;else{var be=me(L);be!==null&&l(T,be.startTime-Z),Re=!1}return Re}finally{Y=null,se=W,de=!1}}var pe=u;r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(B){B.callback=null},r.unstable_continueExecution=function(){Oe||de||(Oe=!0,s(q))},r.unstable_getCurrentPriorityLevel=function(){return se},r.unstable_getFirstCallbackNode=function(){return me(Ee)},r.unstable_next=function(B){switch(se){case 1:case 2:case 3:var Z=3;break;default:Z=se}var W=se;se=Z;try{return B()}finally{se=W}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=pe,r.unstable_runWithPriority=function(B,Z){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var W=se;se=B;try{return Z()}finally{se=W}},r.unstable_scheduleCallback=function(B,Z,W){var oe=r.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?oe+W:oe):W=oe,B){case 1:var ae=-1;break;case 2:ae=250;break;case 5:ae=1073741823;break;case 4:ae=1e4;break;default:ae=5e3}return ae=W+ae,B={id:z++,callback:Z,priorityLevel:B,startTime:W,expirationTime:ae,sortIndex:-1},W>oe?(B.sortIndex=W,ne(L,B),me(Ee)===null&&B===me(L)&&(Ie?i():Ie=!0,l(T,W-oe))):(B.sortIndex=ae,ne(Ee,B),Oe||de||(Oe=!0,s(q))),B},r.unstable_wrapCallback=function(B){var Z=se;return function(){var W=se;se=Z;try{return B.apply(this,arguments)}finally{se=W}}}})(bo)),bo}var Na;function Yh(){return Na||(Na=1,zo.exports=Qh()),zo.exports}var Ra;function Xh(){if(Ra)return kt;Ra=1;var r=Do(),s=Fo(),l=Yh();function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(i(227));var u=new Set,c={};function d(e,t){v(e,t),v(e+"Capture",t)}function v(e,t){for(c[e]=t,e=0;e<t.length;e++)u.add(t[e])}var g=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),C=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,$=Object.prototype.hasOwnProperty,P={},O={};function F(e){return $.call(O,e)?!0:$.call(P,e)?!1:C.test(e)?O[e]=!0:(P[e]=!0,!1)}function b(e,t,n,o){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function V(e,t,n,o){if(t===null||typeof t>"u"||b(e,t,n,o))return!0;if(o)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function U(e,t,n,o,a,h,y){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=h,this.removeEmptyString=y}var J={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){J[e]=new U(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];J[t]=new U(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){J[e]=new U(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){J[e]=new U(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){J[e]=new U(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){J[e]=new U(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){J[e]=new U(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){J[e]=new U(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){J[e]=new U(e,5,!1,e.toLowerCase(),null,!1,!1)});var re=/[\-:]([a-z])/g;function we(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(re,we);J[t]=new U(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(re,we);J[t]=new U(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(re,we);J[t]=new U(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){J[e]=new U(e,1,!1,e.toLowerCase(),null,!1,!1)}),J.xlinkHref=new U("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){J[e]=new U(e,1,!1,e.toLowerCase(),null,!0,!0)});function ge(e,t,n,o){var a=J.hasOwnProperty(t)?J[t]:null,h=a!==null?a.type===0:o?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");h||(V(t,n,a,o)&&(n=null),o||a===null?F(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=n===null?a.type===3?!1:"":n:(t=a.attributeName,o=a.attributeNamespace,n===null?e.removeAttribute(t):(a=a.type,n=a===3||a===4&&n===!0?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}var ne=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,me=60103,ie=60106,fe=60107,Ee=60108,L=60114,z=60109,Y=60110,se=60112,de=60113,Oe=60120,Ie=60115,w=60116,T=60121,q=60128,pe=60129,B=60130,Z=60131;if(typeof Symbol=="function"&&Symbol.for){var W=Symbol.for;me=W("react.element"),ie=W("react.portal"),fe=W("react.fragment"),Ee=W("react.strict_mode"),L=W("react.profiler"),z=W("react.provider"),Y=W("react.context"),se=W("react.forward_ref"),de=W("react.suspense"),Oe=W("react.suspense_list"),Ie=W("react.memo"),w=W("react.lazy"),T=W("react.block"),W("react.scope"),q=W("react.opaque.id"),pe=W("react.debug_trace_mode"),B=W("react.offscreen"),Z=W("react.legacy_hidden")}var oe=typeof Symbol=="function"&&Symbol.iterator;function ae(e){return e===null||typeof e!="object"?null:(e=oe&&e[oe]||e["@@iterator"],typeof e=="function"?e:null)}var Re;function be(e){if(Re===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Re=t&&t[1]||""}return`
|
|
3
|
-
`+
|
|
4
|
-
`),
|
|
5
|
-
`),y=
|
|
6
|
-
`+a[y].replace(" at new "," at ");while(1<=y&&0<=S);break}}}finally{pt=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?be(e):""}function Me(e){switch(e.tag){case 5:return be(e.type);case 16:return be("Lazy");case 13:return be("Suspense");case 19:return be("SuspenseList");case 0:case 2:case 15:return e=De(e.type,!1),e;case 11:return e=De(e.type.render,!1),e;case 22:return e=De(e.type._render,!1),e;case 1:return e=De(e.type,!0),e;default:return""}}function Be(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fe:return"Fragment";case ie:return"Portal";case L:return"Profiler";case Ee:return"StrictMode";case de:return"Suspense";case Oe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Y:return(e.displayName||"Context")+".Consumer";case z:return(e._context.displayName||"Context")+".Provider";case se:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Ie:return Be(e.type);case T:return Be(e._render);case w:t=e._payload,e=e._init;try{return Be(e(t))}catch{}}return null}function Fe(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Ge(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function yt(e){var t=Ge(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,h=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(y){o=""+y,h.call(this,y)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(y){o=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ot(e){e._valueTracker||(e._valueTracker=yt(e))}function Ze(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=Ge(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function k(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function f(e,t){var n=t.checked;return s({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function p(e,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=Fe(t.value!=null?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function m(e,t){t=t.checked,t!=null&&ge(e,"checked",t,!1)}function x(e,t){m(e,t);var n=Fe(t.value),o=t.type;if(n!=null)o==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?N(e,t.type,n):t.hasOwnProperty("defaultValue")&&N(e,t.type,Fe(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function E(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function N(e,t,n){(t!=="number"||k(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function I(e){var t="";return r.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function M(e,t){return e=s({children:void 0},t),(t=I(t.children))&&(e.children=t),e}function Q(e,t,n,o){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&o&&(e[n].defaultSelected=!0)}else{for(n=""+Fe(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,o&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function ee(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(i(91));return s({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ue(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(i(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(i(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Fe(n)}}function K(e,t){var n=Fe(t.value),o=Fe(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),o!=null&&(e.defaultValue=""+o)}function Se(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var _e={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function Ke(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ze(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ke(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var tt,nt=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,o,a){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,a)})}:e})(function(e,t){if(e.namespaceURI!==_e.svg||"innerHTML"in e)e.innerHTML=t;else{for(tt=tt||document.createElement("div"),tt.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=tt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Lt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ue={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},gt=["Webkit","ms","Moz","O"];Object.keys(Ue).forEach(function(e){gt.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ue[t]=Ue[e]})});function vt(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ue.hasOwnProperty(e)&&Ue[e]?(""+t).trim():t+"px"}function rt(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf("--")===0,a=vt(n,t[n],o);n==="float"&&(n="cssFloat"),o?e.setProperty(n,a):e[n]=a}}var Jn=s({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Tr(e,t){if(t){if(Jn[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(i(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(t.style!=null&&typeof t.style!="object")throw Error(i(62))}}function Qn(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Wt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _s=null,rn=null,$t=null;function sn(e){if(e=Yr(e)){if(typeof _s!="function")throw Error(i(280));var t=e.stateNode;t&&(t=Ys(t),_s(e.stateNode,e.type,t))}}function Rn(e){rn?$t?$t.push(e):$t=[e]:rn=e}function Nr(){if(rn){var e=rn,t=$t;if($t=rn=null,sn(e),t)for(e=0;e<t.length;e++)sn(t[e])}}function it(e,t){return e(t)}function zt(e,t,n,o,a){return e(t,n,o,a)}function Kt(){}var Rr=it,_n=!1,Yi=!1;function Xi(){(rn!==null||$t!==null)&&(Kt(),Nr())}function tm(e,t,n){if(Yi)return e(t,n);Yi=!0;try{return Rr(e,t,n)}finally{Yi=!1,Xi()}}function _r(e,t){var n=e.stateNode;if(n===null)return null;var o=Ys(n);if(o===null)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(i(231,t,typeof n));return n}var Zi=!1;if(g)try{var Lr={};Object.defineProperty(Lr,"passive",{get:function(){Zi=!0}}),window.addEventListener("test",Lr,Lr),window.removeEventListener("test",Lr,Lr)}catch{Zi=!1}function nm(e,t,n,o,a,h,y,S,j){var D=Array.prototype.slice.call(arguments,3);try{t.apply(n,D)}catch(le){this.onError(le)}}var Fr=!1,Ls=null,Fs=!1,el=null,rm={onError:function(e){Fr=!0,Ls=e}};function sm(e,t,n,o,a,h,y,S,j){Fr=!1,Ls=null,nm.apply(rm,arguments)}function om(e,t,n,o,a,h,y,S,j){if(sm.apply(this,arguments),Fr){if(Fr){var D=Ls;Fr=!1,Ls=null}else throw Error(i(198));Fs||(Fs=!0,el=D)}}function Ln(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&1026)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Ac(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Oc(e){if(Ln(e)!==e)throw Error(i(188))}function im(e){var t=e.alternate;if(!t){if(t=Ln(e),t===null)throw Error(i(188));return t!==e?null:e}for(var n=e,o=t;;){var a=n.return;if(a===null)break;var h=a.alternate;if(h===null){if(o=a.return,o!==null){n=o;continue}break}if(a.child===h.child){for(h=a.child;h;){if(h===n)return Oc(a),e;if(h===o)return Oc(a),t;h=h.sibling}throw Error(i(188))}if(n.return!==o.return)n=a,o=h;else{for(var y=!1,S=a.child;S;){if(S===n){y=!0,n=a,o=h;break}if(S===o){y=!0,o=a,n=h;break}S=S.sibling}if(!y){for(S=h.child;S;){if(S===n){y=!0,n=h,o=a;break}if(S===o){y=!0,o=h,n=a;break}S=S.sibling}if(!y)throw Error(i(189))}}if(n.alternate!==o)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function Tc(e){if(e=im(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Nc(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var Rc,tl,_c,Lc,nl=!1,bt=[],on=null,ln=null,an=null,Ir=new Map,Dr=new Map,Mr=[],Fc="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function rl(e,t,n,o,a){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:a,targetContainers:[o]}}function Ic(e,t){switch(e){case"focusin":case"focusout":on=null;break;case"dragenter":case"dragleave":ln=null;break;case"mouseover":case"mouseout":an=null;break;case"pointerover":case"pointerout":Ir.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dr.delete(t.pointerId)}}function zr(e,t,n,o,a,h){return e===null||e.nativeEvent!==h?(e=rl(t,n,o,a,h),t!==null&&(t=Yr(t),t!==null&&tl(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function lm(e,t,n,o,a){switch(t){case"focusin":return on=zr(on,e,t,n,o,a),!0;case"dragenter":return ln=zr(ln,e,t,n,o,a),!0;case"mouseover":return an=zr(an,e,t,n,o,a),!0;case"pointerover":var h=a.pointerId;return Ir.set(h,zr(Ir.get(h)||null,e,t,n,o,a)),!0;case"gotpointercapture":return h=a.pointerId,Dr.set(h,zr(Dr.get(h)||null,e,t,n,o,a)),!0}return!1}function am(e){var t=Fn(e.target);if(t!==null){var n=Ln(t);if(n!==null){if(t=n.tag,t===13){if(t=Ac(n),t!==null){e.blockedOn=t,Lc(e.lanePriority,function(){l.unstable_runWithPriority(e.priority,function(){_c(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Is(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ul(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=Yr(n),t!==null&&tl(t),e.blockedOn=n,!1;t.shift()}return!0}function Dc(e,t,n){Is(e)&&n.delete(t)}function um(){for(nl=!1;0<bt.length;){var e=bt[0];if(e.blockedOn!==null){e=Yr(e.blockedOn),e!==null&&Rc(e);break}for(var t=e.targetContainers;0<t.length;){var n=ul(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&bt.shift()}on!==null&&Is(on)&&(on=null),ln!==null&&Is(ln)&&(ln=null),an!==null&&Is(an)&&(an=null),Ir.forEach(Dc),Dr.forEach(Dc)}function br(e,t){e.blockedOn===t&&(e.blockedOn=null,nl||(nl=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,um)))}function Mc(e){function t(a){return br(a,e)}if(0<bt.length){br(bt[0],e);for(var n=1;n<bt.length;n++){var o=bt[n];o.blockedOn===e&&(o.blockedOn=null)}}for(on!==null&&br(on,e),ln!==null&&br(ln,e),an!==null&&br(an,e),Ir.forEach(t),Dr.forEach(t),n=0;n<Mr.length;n++)o=Mr[n],o.blockedOn===e&&(o.blockedOn=null);for(;0<Mr.length&&(n=Mr[0],n.blockedOn===null);)am(n),n.blockedOn===null&&Mr.shift()}function Ds(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Yn={animationend:Ds("Animation","AnimationEnd"),animationiteration:Ds("Animation","AnimationIteration"),animationstart:Ds("Animation","AnimationStart"),transitionend:Ds("Transition","TransitionEnd")},sl={},zc={};g&&(zc=document.createElement("div").style,"AnimationEvent"in window||(delete Yn.animationend.animation,delete Yn.animationiteration.animation,delete Yn.animationstart.animation),"TransitionEvent"in window||delete Yn.transitionend.transition);function Ms(e){if(sl[e])return sl[e];if(!Yn[e])return e;var t=Yn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in zc)return sl[e]=t[n];return e}var bc=Ms("animationend"),Uc=Ms("animationiteration"),Bc=Ms("animationstart"),qc=Ms("transitionend"),Vc=new Map,ol=new Map,cm=["abort","abort",bc,"animationEnd",Uc,"animationIteration",Bc,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",qc,"transitionEnd","waiting","waiting"];function il(e,t){for(var n=0;n<e.length;n+=2){var o=e[n],a=e[n+1];a="on"+(a[0].toUpperCase()+a.slice(1)),ol.set(o,t),Vc.set(o,a),d(a,[o])}}var fm=l.unstable_now;fm();var qe=8;function Xn(e){if((1&e)!==0)return qe=15,1;if((2&e)!==0)return qe=14,2;if((4&e)!==0)return qe=13,4;var t=24&e;return t!==0?(qe=12,t):(e&32)!==0?(qe=11,32):(t=192&e,t!==0?(qe=10,t):(e&256)!==0?(qe=9,256):(t=3584&e,t!==0?(qe=8,t):(e&4096)!==0?(qe=7,4096):(t=4186112&e,t!==0?(qe=6,t):(t=62914560&e,t!==0?(qe=5,t):e&67108864?(qe=4,67108864):(e&134217728)!==0?(qe=3,134217728):(t=805306368&e,t!==0?(qe=2,t):(1073741824&e)!==0?(qe=1,1073741824):(qe=8,e))))))}function hm(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function dm(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(i(358,e))}}function Ur(e,t){var n=e.pendingLanes;if(n===0)return qe=0;var o=0,a=0,h=e.expiredLanes,y=e.suspendedLanes,S=e.pingedLanes;if(h!==0)o=h,a=qe=15;else if(h=n&134217727,h!==0){var j=h&~y;j!==0?(o=Xn(j),a=qe):(S&=h,S!==0&&(o=Xn(S),a=qe))}else h=n&~y,h!==0?(o=Xn(h),a=qe):S!==0&&(o=Xn(S),a=qe);if(o===0)return 0;if(o=31-un(o),o=n&((0>o?0:1<<o)<<1)-1,t!==0&&t!==o&&(t&y)===0){if(Xn(t),a<=qe)return t;qe=a}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)n=31-un(t),a=1<<n,o|=e[n],t&=~a;return o}function Hc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function zs(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=Zn(24&~t),e===0?zs(10,t):e;case 10:return e=Zn(192&~t),e===0?zs(8,t):e;case 8:return e=Zn(3584&~t),e===0&&(e=Zn(4186112&~t),e===0&&(e=512)),e;case 2:return t=Zn(805306368&~t),t===0&&(t=268435456),t}throw Error(i(358,e))}function Zn(e){return e&-e}function ll(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bs(e,t,n){e.pendingLanes|=t;var o=t-1;e.suspendedLanes&=o,e.pingedLanes&=o,e=e.eventTimes,t=31-un(t),e[t]=n}var un=Math.clz32?Math.clz32:mm,pm=Math.log,gm=Math.LN2;function mm(e){return e===0?32:31-(pm(e)/gm|0)|0}var ym=l.unstable_UserBlockingPriority,vm=l.unstable_runWithPriority,Us=!0;function wm(e,t,n,o){_n||Kt();var a=al,h=_n;_n=!0;try{zt(a,e,t,n,o)}finally{(_n=h)||Xi()}}function Sm(e,t,n,o){vm(ym,al.bind(null,e,t,n,o))}function al(e,t,n,o){if(Us){var a;if((a=(t&4)===0)&&0<bt.length&&-1<Fc.indexOf(e))e=rl(null,e,t,n,o),bt.push(e);else{var h=ul(e,t,n,o);if(h===null)a&&Ic(e,o);else{if(a){if(-1<Fc.indexOf(e)){e=rl(h,e,t,n,o),bt.push(e);return}if(lm(h,e,t,n,o))return;Ic(e,o)}xf(e,t,o,null,n)}}}}function ul(e,t,n,o){var a=Wt(o);if(a=Fn(a),a!==null){var h=Ln(a);if(h===null)a=null;else{var y=h.tag;if(y===13){if(a=Ac(h),a!==null)return a;a=null}else if(y===3){if(h.stateNode.hydrate)return h.tag===3?h.stateNode.containerInfo:null;a=null}else h!==a&&(a=null)}}return xf(e,t,o,a,n),null}var cn=null,cl=null,Bs=null;function Wc(){if(Bs)return Bs;var e,t=cl,n=t.length,o,a="value"in cn?cn.value:cn.textContent,h=a.length;for(e=0;e<n&&t[e]===a[e];e++);var y=n-e;for(o=1;o<=y&&t[n-o]===a[h-o];o++);return Bs=a.slice(e,1<o?1-o:void 0)}function qs(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Vs(){return!0}function Kc(){return!1}function Pt(e){function t(n,o,a,h,y){this._reactName=n,this._targetInst=a,this.type=o,this.nativeEvent=h,this.target=y,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(n=e[S],this[S]=n?n(h):h[S]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?Vs:Kc,this.isPropagationStopped=Kc,this}return s(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Vs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Vs)},persist:function(){},isPersistent:Vs}),t}var er={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fl=Pt(er),Br=s({},er,{view:0,detail:0}),xm=Pt(Br),hl,dl,qr,Hs=s({},Br,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gl,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==qr&&(qr&&e.type==="mousemove"?(hl=e.screenX-qr.screenX,dl=e.screenY-qr.screenY):dl=hl=0,qr=e),hl)},movementY:function(e){return"movementY"in e?e.movementY:dl}}),Gc=Pt(Hs),Cm=s({},Hs,{dataTransfer:0}),km=Pt(Cm),Pm=s({},Br,{relatedTarget:0}),pl=Pt(Pm),Em=s({},er,{animationName:0,elapsedTime:0,pseudoElement:0}),$m=Pt(Em),jm=s({},er,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Am=Pt(jm),Om=s({},er,{data:0}),Jc=Pt(Om),Tm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nm={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Rm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _m(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Rm[e])?!!t[e]:!1}function gl(){return _m}var Lm=s({},Br,{key:function(e){if(e.key){var t=Tm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Nm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gl,charCode:function(e){return e.type==="keypress"?qs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Fm=Pt(Lm),Im=s({},Hs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qc=Pt(Im),Dm=s({},Br,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gl}),Mm=Pt(Dm),zm=s({},er,{propertyName:0,elapsedTime:0,pseudoElement:0}),bm=Pt(zm),Um=s({},Hs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Bm=Pt(Um),qm=[9,13,27,32],ml=g&&"CompositionEvent"in window,Vr=null;g&&"documentMode"in document&&(Vr=document.documentMode);var Vm=g&&"TextEvent"in window&&!Vr,Yc=g&&(!ml||Vr&&8<Vr&&11>=Vr),Xc=" ",Zc=!1;function ef(e,t){switch(e){case"keyup":return qm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var tr=!1;function Hm(e,t){switch(e){case"compositionend":return tf(t);case"keypress":return t.which!==32?null:(Zc=!0,Xc);case"textInput":return e=t.data,e===Xc&&Zc?null:e;default:return null}}function Wm(e,t){if(tr)return e==="compositionend"||!ml&&ef(e,t)?(e=Wc(),Bs=cl=cn=null,tr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Yc&&t.locale!=="ko"?null:t.data;default:return null}}var Km={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function nf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Km[e.type]:t==="textarea"}function rf(e,t,n,o){Rn(o),t=Ks(t,"onChange"),0<t.length&&(n=new fl("onChange","change",null,n,o),e.push({event:n,listeners:t}))}var Hr=null,Wr=null;function Gm(e){mf(e,0)}function Ws(e){var t=ir(e);if(Ze(t))return e}function Jm(e,t){if(e==="change")return t}var sf=!1;if(g){var yl;if(g){var vl="oninput"in document;if(!vl){var of=document.createElement("div");of.setAttribute("oninput","return;"),vl=typeof of.oninput=="function"}yl=vl}else yl=!1;sf=yl&&(!document.documentMode||9<document.documentMode)}function lf(){Hr&&(Hr.detachEvent("onpropertychange",af),Wr=Hr=null)}function af(e){if(e.propertyName==="value"&&Ws(Wr)){var t=[];if(rf(t,Wr,e,Wt(e)),e=Gm,_n)e(t);else{_n=!0;try{it(e,t)}finally{_n=!1,Xi()}}}}function Qm(e,t,n){e==="focusin"?(lf(),Hr=t,Wr=n,Hr.attachEvent("onpropertychange",af)):e==="focusout"&&lf()}function Ym(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ws(Wr)}function Xm(e,t){if(e==="click")return Ws(t)}function Zm(e,t){if(e==="input"||e==="change")return Ws(t)}function ey(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jt=typeof Object.is=="function"?Object.is:ey,ty=Object.prototype.hasOwnProperty;function Kr(e,t){if(jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++)if(!ty.call(t,n[o])||!jt(e[n[o]],t[n[o]]))return!1;return!0}function uf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cf(e,t){var n=uf(e);e=0;for(var o;n;){if(n.nodeType===3){if(o=e+n.textContent.length,e<=t&&o>=t)return{node:n,offset:t-e};e=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=uf(n)}}function ff(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ff(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hf(){for(var e=window,t=k();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=k(e.document)}return t}function wl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var ny=g&&"documentMode"in document&&11>=document.documentMode,nr=null,Sl=null,Gr=null,xl=!1;function df(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xl||nr==null||nr!==k(o)||(o=nr,"selectionStart"in o&&wl(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Gr&&Kr(Gr,o)||(Gr=o,o=Ks(Sl,"onSelect"),0<o.length&&(t=new fl("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=nr)))}il("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),il("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),il(cm,2);for(var pf="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Cl=0;Cl<pf.length;Cl++)ol.set(pf[Cl],0);v("onMouseEnter",["mouseout","mouseover"]),v("onMouseLeave",["mouseout","mouseover"]),v("onPointerEnter",["pointerout","pointerover"]),v("onPointerLeave",["pointerout","pointerover"]),d("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),d("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),d("onBeforeInput",["compositionend","keypress","textInput","paste"]),d("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Jr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ry=new Set("cancel close invalid load scroll toggle".split(" ").concat(Jr));function gf(e,t,n){var o=e.type||"unknown-event";e.currentTarget=n,om(o,t,void 0,e),e.currentTarget=null}function mf(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var o=e[n],a=o.event;o=o.listeners;e:{var h=void 0;if(t)for(var y=o.length-1;0<=y;y--){var S=o[y],j=S.instance,D=S.currentTarget;if(S=S.listener,j!==h&&a.isPropagationStopped())break e;gf(a,S,D),h=j}else for(y=0;y<o.length;y++){if(S=o[y],j=S.instance,D=S.currentTarget,S=S.listener,j!==h&&a.isPropagationStopped())break e;gf(a,S,D),h=j}}}if(Fs)throw e=el,Fs=!1,el=null,e}function Ve(e,t){var n=jf(t),o=e+"__bubble";n.has(o)||(Sf(t,e,2,!1),n.add(o))}var yf="_reactListening"+Math.random().toString(36).slice(2);function vf(e){e[yf]||(e[yf]=!0,u.forEach(function(t){ry.has(t)||wf(t,!1,e,null),wf(t,!0,e,null)}))}function wf(e,t,n,o){var a=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,h=n;e==="selectionchange"&&n.nodeType!==9&&(h=n.ownerDocument);var y=jf(h),S=e+"__"+(t?"capture":"bubble");y.has(S)||(t&&(a|=4),Sf(h,e,a,t),y.add(S))}function Sf(e,t,n,o){var a=ol.get(t);switch(a===void 0?2:a){case 0:a=wm;break;case 1:a=Sm;break;default:a=al}n=a.bind(null,t,n,e),a=void 0,!Zi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),o?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function xf(e,t,n,o,a){var h=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var y=o.tag;if(y===3||y===4){var S=o.stateNode.containerInfo;if(S===a||S.nodeType===8&&S.parentNode===a)break;if(y===4)for(y=o.return;y!==null;){var j=y.tag;if((j===3||j===4)&&(j=y.stateNode.containerInfo,j===a||j.nodeType===8&&j.parentNode===a))return;y=y.return}for(;S!==null;){if(y=Fn(S),y===null)return;if(j=y.tag,j===5||j===6){o=h=y;continue e}S=S.parentNode}}o=o.return}tm(function(){var D=h,le=Wt(n),Pe=[];e:{var X=Vc.get(e);if(X!==void 0){var ye=fl,ke=e;switch(e){case"keypress":if(qs(n)===0)break e;case"keydown":case"keyup":ye=Fm;break;case"focusin":ke="focus",ye=pl;break;case"focusout":ke="blur",ye=pl;break;case"beforeblur":case"afterblur":ye=pl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ye=Gc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ye=km;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ye=Mm;break;case bc:case Uc:case Bc:ye=$m;break;case qc:ye=bm;break;case"scroll":ye=xm;break;case"wheel":ye=Bm;break;case"copy":case"cut":case"paste":ye=Am;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ye=Qc}var xe=(t&4)!==0,_=!xe&&e==="scroll",A=xe?X!==null?X+"Capture":null:X;xe=[];for(var R=D,H;R!==null;){H=R;var G=H.stateNode;if(H.tag===5&&G!==null&&(H=G,A!==null&&(G=_r(R,A),G!=null&&xe.push(Qr(R,G,H)))),_)break;R=R.return}0<xe.length&&(X=new ye(X,ke,null,n,le),Pe.push({event:X,listeners:xe}))}}if((t&7)===0){e:{if(X=e==="mouseover"||e==="pointerover",ye=e==="mouseout"||e==="pointerout",X&&(t&16)===0&&(ke=n.relatedTarget||n.fromElement)&&(Fn(ke)||ke[or]))break e;if((ye||X)&&(X=le.window===le?le:(X=le.ownerDocument)?X.defaultView||X.parentWindow:window,ye?(ke=n.relatedTarget||n.toElement,ye=D,ke=ke?Fn(ke):null,ke!==null&&(_=Ln(ke),ke!==_||ke.tag!==5&&ke.tag!==6)&&(ke=null)):(ye=null,ke=D),ye!==ke)){if(xe=Gc,G="onMouseLeave",A="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(xe=Qc,G="onPointerLeave",A="onPointerEnter",R="pointer"),_=ye==null?X:ir(ye),H=ke==null?X:ir(ke),X=new xe(G,R+"leave",ye,n,le),X.target=_,X.relatedTarget=H,G=null,Fn(le)===D&&(xe=new xe(A,R+"enter",ke,n,le),xe.target=H,xe.relatedTarget=_,G=xe),_=G,ye&&ke)t:{for(xe=ye,A=ke,R=0,H=xe;H;H=rr(H))R++;for(H=0,G=A;G;G=rr(G))H++;for(;0<R-H;)xe=rr(xe),R--;for(;0<H-R;)A=rr(A),H--;for(;R--;){if(xe===A||A!==null&&xe===A.alternate)break t;xe=rr(xe),A=rr(A)}xe=null}else xe=null;ye!==null&&Cf(Pe,X,ye,xe,!1),ke!==null&&_!==null&&Cf(Pe,_,ke,xe,!0)}}e:{if(X=D?ir(D):window,ye=X.nodeName&&X.nodeName.toLowerCase(),ye==="select"||ye==="input"&&X.type==="file")var $e=Jm;else if(nf(X))if(sf)$e=Zm;else{$e=Ym;var he=Qm}else(ye=X.nodeName)&&ye.toLowerCase()==="input"&&(X.type==="checkbox"||X.type==="radio")&&($e=Xm);if($e&&($e=$e(e,D))){rf(Pe,$e,n,le);break e}he&&he(e,X,D),e==="focusout"&&(he=X._wrapperState)&&he.controlled&&X.type==="number"&&N(X,"number",X.value)}switch(he=D?ir(D):window,e){case"focusin":(nf(he)||he.contentEditable==="true")&&(nr=he,Sl=D,Gr=null);break;case"focusout":Gr=Sl=nr=null;break;case"mousedown":xl=!0;break;case"contextmenu":case"mouseup":case"dragend":xl=!1,df(Pe,n,le);break;case"selectionchange":if(ny)break;case"keydown":case"keyup":df(Pe,n,le)}var je;if(ml)e:{switch(e){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else tr?ef(e,n)&&(Te="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Te="onCompositionStart");Te&&(Yc&&n.locale!=="ko"&&(tr||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&tr&&(je=Wc()):(cn=le,cl="value"in cn?cn.value:cn.textContent,tr=!0)),he=Ks(D,Te),0<he.length&&(Te=new Jc(Te,e,null,n,le),Pe.push({event:Te,listeners:he}),je?Te.data=je:(je=tf(n),je!==null&&(Te.data=je)))),(je=Vm?Hm(e,n):Wm(e,n))&&(D=Ks(D,"onBeforeInput"),0<D.length&&(le=new Jc("onBeforeInput","beforeinput",null,n,le),Pe.push({event:le,listeners:D}),le.data=je))}mf(Pe,t)})}function Qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ks(e,t){for(var n=t+"Capture",o=[];e!==null;){var a=e,h=a.stateNode;a.tag===5&&h!==null&&(a=h,h=_r(e,n),h!=null&&o.unshift(Qr(e,h,a)),h=_r(e,t),h!=null&&o.push(Qr(e,h,a))),e=e.return}return o}function rr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Cf(e,t,n,o,a){for(var h=t._reactName,y=[];n!==null&&n!==o;){var S=n,j=S.alternate,D=S.stateNode;if(j!==null&&j===o)break;S.tag===5&&D!==null&&(S=D,a?(j=_r(n,h),j!=null&&y.unshift(Qr(n,j,S))):a||(j=_r(n,h),j!=null&&y.push(Qr(n,j,S)))),n=n.return}y.length!==0&&e.push({event:t,listeners:y})}function Gs(){}var kl=null,Pl=null;function kf(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function El(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Pf=typeof setTimeout=="function"?setTimeout:void 0,sy=typeof clearTimeout=="function"?clearTimeout:void 0;function $l(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function sr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function Ef(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var jl=0;function oy(e){return{$$typeof:q,toString:e,valueOf:e}}var Js=Math.random().toString(36).slice(2),fn="__reactFiber$"+Js,Qs="__reactProps$"+Js,or="__reactContainer$"+Js,$f="__reactEvents$"+Js;function Fn(e){var t=e[fn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[or]||n[fn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ef(e);e!==null;){if(n=e[fn])return n;e=Ef(e)}return t}e=n,n=e.parentNode}return null}function Yr(e){return e=e[fn]||e[or],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ir(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function Ys(e){return e[Qs]||null}function jf(e){var t=e[$f];return t===void 0&&(t=e[$f]=new Set),t}var Al=[],lr=-1;function hn(e){return{current:e}}function He(e){0>lr||(e.current=Al[lr],Al[lr]=null,lr--)}function Je(e,t){lr++,Al[lr]=e.current,e.current=t}var dn={},ct=hn(dn),wt=hn(!1),In=dn;function ar(e,t){var n=e.type.contextTypes;if(!n)return dn;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var a={},h;for(h in n)a[h]=t[h];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function St(e){return e=e.childContextTypes,e!=null}function Xs(){He(wt),He(ct)}function Af(e,t,n){if(ct.current!==dn)throw Error(i(168));Je(ct,t),Je(wt,n)}function Of(e,t,n){var o=e.stateNode;if(e=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var a in o)if(!(a in e))throw Error(i(108,Be(t)||"Unknown",a));return s({},n,o)}function Zs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||dn,In=ct.current,Je(ct,e),Je(wt,wt.current),!0}function Tf(e,t,n){var o=e.stateNode;if(!o)throw Error(i(169));n?(e=Of(e,t,In),o.__reactInternalMemoizedMergedChildContext=e,He(wt),He(ct),Je(ct,e)):He(wt),Je(wt,n)}var Ol=null,Dn=null,iy=l.unstable_runWithPriority,Tl=l.unstable_scheduleCallback,Nl=l.unstable_cancelCallback,ly=l.unstable_shouldYield,Nf=l.unstable_requestPaint,Rl=l.unstable_now,ay=l.unstable_getCurrentPriorityLevel,eo=l.unstable_ImmediatePriority,Rf=l.unstable_UserBlockingPriority,_f=l.unstable_NormalPriority,Lf=l.unstable_LowPriority,Ff=l.unstable_IdlePriority,_l={},uy=Nf!==void 0?Nf:function(){},Gt=null,to=null,Ll=!1,If=Rl(),ft=1e4>If?Rl:function(){return Rl()-If};function ur(){switch(ay()){case eo:return 99;case Rf:return 98;case _f:return 97;case Lf:return 96;case Ff:return 95;default:throw Error(i(332))}}function Df(e){switch(e){case 99:return eo;case 98:return Rf;case 97:return _f;case 96:return Lf;case 95:return Ff;default:throw Error(i(332))}}function Mn(e,t){return e=Df(e),iy(e,t)}function Xr(e,t,n){return e=Df(e),Tl(e,t,n)}function Ut(){if(to!==null){var e=to;to=null,Nl(e)}Mf()}function Mf(){if(!Ll&&Gt!==null){Ll=!0;var e=0;try{var t=Gt;Mn(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),Gt=null}catch(n){throw Gt!==null&&(Gt=Gt.slice(e+1)),Tl(eo,Ut),n}finally{Ll=!1}}}var cy=ne.ReactCurrentBatchConfig;function Ft(e,t){if(e&&e.defaultProps){t=s({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var no=hn(null),ro=null,cr=null,so=null;function Fl(){so=cr=ro=null}function Il(e){var t=no.current;He(no),e.type._context._currentValue=t}function zf(e,t){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)===t){if(n===null||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,n!==null&&(n.childLanes|=t);e=e.return}}function fr(e,t){ro=e,so=cr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(It=!0),e.firstContext=null)}function At(e,t){if(so!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(so=e,t=1073741823),t={context:e,observedBits:t,next:null},cr===null){if(ro===null)throw Error(i(308));cr=t,ro.dependencies={lanes:0,firstContext:t,responders:null}}else cr=cr.next=t;return e._currentValue}var pn=!1;function Dl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function bf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function gn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function mn(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function Uf(e,t){var n=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var a=null,h=null;if(n=n.firstBaseUpdate,n!==null){do{var y={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};h===null?a=h=y:h=h.next=y,n=n.next}while(n!==null);h===null?a=h=t:h=h.next=t}else a=h=t;n={baseState:o.baseState,firstBaseUpdate:a,lastBaseUpdate:h,shared:o.shared,effects:o.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Zr(e,t,n,o){var a=e.updateQueue;pn=!1;var h=a.firstBaseUpdate,y=a.lastBaseUpdate,S=a.shared.pending;if(S!==null){a.shared.pending=null;var j=S,D=j.next;j.next=null,y===null?h=D:y.next=D,y=j;var le=e.alternate;if(le!==null){le=le.updateQueue;var Pe=le.lastBaseUpdate;Pe!==y&&(Pe===null?le.firstBaseUpdate=D:Pe.next=D,le.lastBaseUpdate=j)}}if(h!==null){Pe=a.baseState,y=0,le=D=j=null;do{S=h.lane;var X=h.eventTime;if((o&S)===S){le!==null&&(le=le.next={eventTime:X,lane:0,tag:h.tag,payload:h.payload,callback:h.callback,next:null});e:{var ye=e,ke=h;switch(S=t,X=n,ke.tag){case 1:if(ye=ke.payload,typeof ye=="function"){Pe=ye.call(X,Pe,S);break e}Pe=ye;break e;case 3:ye.flags=ye.flags&-4097|64;case 0:if(ye=ke.payload,S=typeof ye=="function"?ye.call(X,Pe,S):ye,S==null)break e;Pe=s({},Pe,S);break e;case 2:pn=!0}}h.callback!==null&&(e.flags|=32,S=a.effects,S===null?a.effects=[h]:S.push(h))}else X={eventTime:X,lane:S,tag:h.tag,payload:h.payload,callback:h.callback,next:null},le===null?(D=le=X,j=Pe):le=le.next=X,y|=S;if(h=h.next,h===null){if(S=a.shared.pending,S===null)break;h=S.next,S.next=null,a.lastBaseUpdate=S,a.shared.pending=null}}while(!0);le===null&&(j=Pe),a.baseState=j,a.firstBaseUpdate=D,a.lastBaseUpdate=le,fs|=y,e.lanes=y,e.memoizedState=Pe}}function Bf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],a=o.callback;if(a!==null){if(o.callback=null,o=n,typeof a!="function")throw Error(i(191,a));a.call(o)}}}var qf=new r.Component().refs;function oo(e,t,n,o){t=e.memoizedState,n=n(o,t),n=n==null?t:s({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var io={isMounted:function(e){return(e=e._reactInternals)?Ln(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var o=Et(),a=wn(e),h=gn(o,a);h.payload=t,n!=null&&(h.callback=n),mn(e,h),Sn(e,a,o)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=Et(),a=wn(e),h=gn(o,a);h.tag=1,h.payload=t,n!=null&&(h.callback=n),mn(e,h),Sn(e,a,o)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Et(),o=wn(e),a=gn(n,o);a.tag=2,t!=null&&(a.callback=t),mn(e,a),Sn(e,o,n)}};function Vf(e,t,n,o,a,h,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,h,y):t.prototype&&t.prototype.isPureReactComponent?!Kr(n,o)||!Kr(a,h):!0}function Hf(e,t,n){var o=!1,a=dn,h=t.contextType;return typeof h=="object"&&h!==null?h=At(h):(a=St(t)?In:ct.current,o=t.contextTypes,h=(o=o!=null)?ar(e,a):dn),t=new t(n,h),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=io,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=h),t}function Wf(e,t,n,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&io.enqueueReplaceState(t,t.state,null)}function Ml(e,t,n,o){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=qf,Dl(e);var h=t.contextType;typeof h=="object"&&h!==null?a.context=At(h):(h=St(t)?In:ct.current,a.context=ar(e,h)),Zr(e,n,a,o),a.state=e.memoizedState,h=t.getDerivedStateFromProps,typeof h=="function"&&(oo(e,t,h,n),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&io.enqueueReplaceState(a,a.state,null),Zr(e,n,a,o),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4)}var lo=Array.isArray;function es(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(i(309));var o=n.stateNode}if(!o)throw Error(i(147,e));var a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(h){var y=o.refs;y===qf&&(y=o.refs={}),h===null?delete y[a]:y[a]=h},t._stringRef=a,t)}if(typeof e!="string")throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function ao(e,t){if(e.type!=="textarea")throw Error(i(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Kf(e){function t(_,A){if(e){var R=_.lastEffect;R!==null?(R.nextEffect=A,_.lastEffect=A):_.firstEffect=_.lastEffect=A,A.nextEffect=null,A.flags=8}}function n(_,A){if(!e)return null;for(;A!==null;)t(_,A),A=A.sibling;return null}function o(_,A){for(_=new Map;A!==null;)A.key!==null?_.set(A.key,A):_.set(A.index,A),A=A.sibling;return _}function a(_,A){return _=kn(_,A),_.index=0,_.sibling=null,_}function h(_,A,R){return _.index=R,e?(R=_.alternate,R!==null?(R=R.index,R<A?(_.flags=2,A):R):(_.flags=2,A)):A}function y(_){return e&&_.alternate===null&&(_.flags=2),_}function S(_,A,R,H){return A===null||A.tag!==6?(A=Sa(R,_.mode,H),A.return=_,A):(A=a(A,R),A.return=_,A)}function j(_,A,R,H){return A!==null&&A.elementType===R.type?(H=a(A,R.props),H.ref=es(_,A,R),H.return=_,H):(H=jo(R.type,R.key,R.props,null,_.mode,H),H.ref=es(_,A,R),H.return=_,H)}function D(_,A,R,H){return A===null||A.tag!==4||A.stateNode.containerInfo!==R.containerInfo||A.stateNode.implementation!==R.implementation?(A=xa(R,_.mode,H),A.return=_,A):(A=a(A,R.children||[]),A.return=_,A)}function le(_,A,R,H,G){return A===null||A.tag!==7?(A=wr(R,_.mode,H,G),A.return=_,A):(A=a(A,R),A.return=_,A)}function Pe(_,A,R){if(typeof A=="string"||typeof A=="number")return A=Sa(""+A,_.mode,R),A.return=_,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case me:return R=jo(A.type,A.key,A.props,null,_.mode,R),R.ref=es(_,null,A),R.return=_,R;case ie:return A=xa(A,_.mode,R),A.return=_,A}if(lo(A)||ae(A))return A=wr(A,_.mode,R,null),A.return=_,A;ao(_,A)}return null}function X(_,A,R,H){var G=A!==null?A.key:null;if(typeof R=="string"||typeof R=="number")return G!==null?null:S(_,A,""+R,H);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case me:return R.key===G?R.type===fe?le(_,A,R.props.children,H,G):j(_,A,R,H):null;case ie:return R.key===G?D(_,A,R,H):null}if(lo(R)||ae(R))return G!==null?null:le(_,A,R,H,null);ao(_,R)}return null}function ye(_,A,R,H,G){if(typeof H=="string"||typeof H=="number")return _=_.get(R)||null,S(A,_,""+H,G);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case me:return _=_.get(H.key===null?R:H.key)||null,H.type===fe?le(A,_,H.props.children,G,H.key):j(A,_,H,G);case ie:return _=_.get(H.key===null?R:H.key)||null,D(A,_,H,G)}if(lo(H)||ae(H))return _=_.get(R)||null,le(A,_,H,G,null);ao(A,H)}return null}function ke(_,A,R,H){for(var G=null,$e=null,he=A,je=A=0,Te=null;he!==null&&je<R.length;je++){he.index>je?(Te=he,he=null):Te=he.sibling;var Ae=X(_,he,R[je],H);if(Ae===null){he===null&&(he=Te);break}e&&he&&Ae.alternate===null&&t(_,he),A=h(Ae,A,je),$e===null?G=Ae:$e.sibling=Ae,$e=Ae,he=Te}if(je===R.length)return n(_,he),G;if(he===null){for(;je<R.length;je++)he=Pe(_,R[je],H),he!==null&&(A=h(he,A,je),$e===null?G=he:$e.sibling=he,$e=he);return G}for(he=o(_,he);je<R.length;je++)Te=ye(he,_,je,R[je],H),Te!==null&&(e&&Te.alternate!==null&&he.delete(Te.key===null?je:Te.key),A=h(Te,A,je),$e===null?G=Te:$e.sibling=Te,$e=Te);return e&&he.forEach(function(Pn){return t(_,Pn)}),G}function xe(_,A,R,H){var G=ae(R);if(typeof G!="function")throw Error(i(150));if(R=G.call(R),R==null)throw Error(i(151));for(var $e=G=null,he=A,je=A=0,Te=null,Ae=R.next();he!==null&&!Ae.done;je++,Ae=R.next()){he.index>je?(Te=he,he=null):Te=he.sibling;var Pn=X(_,he,Ae.value,H);if(Pn===null){he===null&&(he=Te);break}e&&he&&Pn.alternate===null&&t(_,he),A=h(Pn,A,je),$e===null?G=Pn:$e.sibling=Pn,$e=Pn,he=Te}if(Ae.done)return n(_,he),G;if(he===null){for(;!Ae.done;je++,Ae=R.next())Ae=Pe(_,Ae.value,H),Ae!==null&&(A=h(Ae,A,je),$e===null?G=Ae:$e.sibling=Ae,$e=Ae);return G}for(he=o(_,he);!Ae.done;je++,Ae=R.next())Ae=ye(he,_,je,Ae.value,H),Ae!==null&&(e&&Ae.alternate!==null&&he.delete(Ae.key===null?je:Ae.key),A=h(Ae,A,je),$e===null?G=Ae:$e.sibling=Ae,$e=Ae);return e&&he.forEach(function(Uy){return t(_,Uy)}),G}return function(_,A,R,H){var G=typeof R=="object"&&R!==null&&R.type===fe&&R.key===null;G&&(R=R.props.children);var $e=typeof R=="object"&&R!==null;if($e)switch(R.$$typeof){case me:e:{for($e=R.key,G=A;G!==null;){if(G.key===$e){switch(G.tag){case 7:if(R.type===fe){n(_,G.sibling),A=a(G,R.props.children),A.return=_,_=A;break e}break;default:if(G.elementType===R.type){n(_,G.sibling),A=a(G,R.props),A.ref=es(_,G,R),A.return=_,_=A;break e}}n(_,G);break}else t(_,G);G=G.sibling}R.type===fe?(A=wr(R.props.children,_.mode,H,R.key),A.return=_,_=A):(H=jo(R.type,R.key,R.props,null,_.mode,H),H.ref=es(_,A,R),H.return=_,_=H)}return y(_);case ie:e:{for(G=R.key;A!==null;){if(A.key===G)if(A.tag===4&&A.stateNode.containerInfo===R.containerInfo&&A.stateNode.implementation===R.implementation){n(_,A.sibling),A=a(A,R.children||[]),A.return=_,_=A;break e}else{n(_,A);break}else t(_,A);A=A.sibling}A=xa(R,_.mode,H),A.return=_,_=A}return y(_)}if(typeof R=="string"||typeof R=="number")return R=""+R,A!==null&&A.tag===6?(n(_,A.sibling),A=a(A,R),A.return=_,_=A):(n(_,A),A=Sa(R,_.mode,H),A.return=_,_=A),y(_);if(lo(R))return ke(_,A,R,H);if(ae(R))return xe(_,A,R,H);if($e&&ao(_,R),typeof R>"u"&&!G)switch(_.tag){case 1:case 22:case 0:case 11:case 15:throw Error(i(152,Be(_.type)||"Component"))}return n(_,A)}}var uo=Kf(!0),Gf=Kf(!1),ts={},Bt=hn(ts),ns=hn(ts),rs=hn(ts);function zn(e){if(e===ts)throw Error(i(174));return e}function zl(e,t){switch(Je(rs,t),Je(ns,e),Je(Bt,ts),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ze(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ze(t,e)}He(Bt),Je(Bt,t)}function hr(){He(Bt),He(ns),He(rs)}function Jf(e){zn(rs.current);var t=zn(Bt.current),n=ze(t,e.type);t!==n&&(Je(ns,e),Je(Bt,n))}function bl(e){ns.current===e&&(He(Bt),He(ns))}var Qe=hn(0);function co(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&64)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Jt=null,yn=null,qt=!1;function Qf(e,t){var n=Nt(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Yf(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function Ul(e){if(qt){var t=yn;if(t){var n=t;if(!Yf(e,t)){if(t=sr(n.nextSibling),!t||!Yf(e,t)){e.flags=e.flags&-1025|2,qt=!1,Jt=e;return}Qf(Jt,n)}Jt=e,yn=sr(t.firstChild)}else e.flags=e.flags&-1025|2,qt=!1,Jt=e}}function Xf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Jt=e}function fo(e){if(e!==Jt)return!1;if(!qt)return Xf(e),qt=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!El(t,e.memoizedProps))for(t=yn;t;)Qf(e,t),t=sr(t.nextSibling);if(Xf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){yn=sr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}yn=null}}else yn=Jt?sr(e.stateNode.nextSibling):null;return!0}function Bl(){yn=Jt=null,qt=!1}var dr=[];function ql(){for(var e=0;e<dr.length;e++)dr[e]._workInProgressVersionPrimary=null;dr.length=0}var ss=ne.ReactCurrentDispatcher,Ot=ne.ReactCurrentBatchConfig,os=0,Ye=null,ht=null,lt=null,ho=!1,is=!1;function xt(){throw Error(i(321))}function Vl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!jt(e[n],t[n]))return!1;return!0}function Hl(e,t,n,o,a,h){if(os=h,Ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ss.current=e===null||e.memoizedState===null?hy:dy,e=n(o,a),is){h=0;do{if(is=!1,!(25>h))throw Error(i(301));h+=1,lt=ht=null,t.updateQueue=null,ss.current=py,e=n(o,a)}while(is)}if(ss.current=yo,t=ht!==null&&ht.next!==null,os=0,lt=ht=Ye=null,ho=!1,t)throw Error(i(300));return e}function bn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?Ye.memoizedState=lt=e:lt=lt.next=e,lt}function Un(){if(ht===null){var e=Ye.alternate;e=e!==null?e.memoizedState:null}else e=ht.next;var t=lt===null?Ye.memoizedState:lt.next;if(t!==null)lt=t,ht=e;else{if(e===null)throw Error(i(310));ht=e,e={memoizedState:ht.memoizedState,baseState:ht.baseState,baseQueue:ht.baseQueue,queue:ht.queue,next:null},lt===null?Ye.memoizedState=lt=e:lt=lt.next=e}return lt}function Vt(e,t){return typeof t=="function"?t(e):t}function ls(e){var t=Un(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var o=ht,a=o.baseQueue,h=n.pending;if(h!==null){if(a!==null){var y=a.next;a.next=h.next,h.next=y}o.baseQueue=a=h,n.pending=null}if(a!==null){a=a.next,o=o.baseState;var S=y=h=null,j=a;do{var D=j.lane;if((os&D)===D)S!==null&&(S=S.next={lane:0,action:j.action,eagerReducer:j.eagerReducer,eagerState:j.eagerState,next:null}),o=j.eagerReducer===e?j.eagerState:e(o,j.action);else{var le={lane:D,action:j.action,eagerReducer:j.eagerReducer,eagerState:j.eagerState,next:null};S===null?(y=S=le,h=o):S=S.next=le,Ye.lanes|=D,fs|=D}j=j.next}while(j!==null&&j!==a);S===null?h=o:S.next=y,jt(o,t.memoizedState)||(It=!0),t.memoizedState=o,t.baseState=h,t.baseQueue=S,n.lastRenderedState=o}return[t.memoizedState,n.dispatch]}function as(e){var t=Un(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var o=n.dispatch,a=n.pending,h=t.memoizedState;if(a!==null){n.pending=null;var y=a=a.next;do h=e(h,y.action),y=y.next;while(y!==a);jt(h,t.memoizedState)||(It=!0),t.memoizedState=h,t.baseQueue===null&&(t.baseState=h),n.lastRenderedState=h}return[h,o]}function Zf(e,t,n){var o=t._getVersion;o=o(t._source);var a=t._workInProgressVersionPrimary;if(a!==null?e=a===o:(e=e.mutableReadLanes,(e=(os&e)===e)&&(t._workInProgressVersionPrimary=o,dr.push(t))),e)return n(t._source);throw dr.push(t),Error(i(350))}function eh(e,t,n,o){var a=mt;if(a===null)throw Error(i(349));var h=t._getVersion,y=h(t._source),S=ss.current,j=S.useState(function(){return Zf(a,t,n)}),D=j[1],le=j[0];j=lt;var Pe=e.memoizedState,X=Pe.refs,ye=X.getSnapshot,ke=Pe.source;Pe=Pe.subscribe;var xe=Ye;return e.memoizedState={refs:X,source:t,subscribe:o},S.useEffect(function(){X.getSnapshot=n,X.setSnapshot=D;var _=h(t._source);if(!jt(y,_)){_=n(t._source),jt(le,_)||(D(_),_=wn(xe),a.mutableReadLanes|=_&a.pendingLanes),_=a.mutableReadLanes,a.entangledLanes|=_;for(var A=a.entanglements,R=_;0<R;){var H=31-un(R),G=1<<H;A[H]|=_,R&=~G}}},[n,t,o]),S.useEffect(function(){return o(t._source,function(){var _=X.getSnapshot,A=X.setSnapshot;try{A(_(t._source));var R=wn(xe);a.mutableReadLanes|=R&a.pendingLanes}catch(H){A(function(){throw H})}})},[t,o]),jt(ye,n)&&jt(ke,t)&&jt(Pe,o)||(e={pending:null,dispatch:null,lastRenderedReducer:Vt,lastRenderedState:le},e.dispatch=D=Jl.bind(null,Ye,e),j.queue=e,j.baseQueue=null,le=Zf(a,t,n),j.memoizedState=j.baseState=le),le}function th(e,t,n){var o=Un();return eh(o,e,t,n)}function us(e){var t=bn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Vt,lastRenderedState:e},e=e.dispatch=Jl.bind(null,Ye,e),[t.memoizedState,e]}function po(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},t=Ye.updateQueue,t===null?(t={lastEffect:null},Ye.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(o=n.next,n.next=e,e.next=o,t.lastEffect=e)),e}function nh(e){var t=bn();return e={current:e},t.memoizedState=e}function go(){return Un().memoizedState}function Wl(e,t,n,o){var a=bn();Ye.flags|=e,a.memoizedState=po(1|t,n,void 0,o===void 0?null:o)}function Kl(e,t,n,o){var a=Un();o=o===void 0?null:o;var h=void 0;if(ht!==null){var y=ht.memoizedState;if(h=y.destroy,o!==null&&Vl(o,y.deps)){po(t,n,h,o);return}}Ye.flags|=e,a.memoizedState=po(1|t,n,h,o)}function rh(e,t){return Wl(516,4,e,t)}function mo(e,t){return Kl(516,4,e,t)}function sh(e,t){return Kl(4,2,e,t)}function oh(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ih(e,t,n){return n=n!=null?n.concat([e]):null,Kl(4,2,oh.bind(null,t,e),n)}function Gl(){}function lh(e,t){var n=Un();t=t===void 0?null:t;var o=n.memoizedState;return o!==null&&t!==null&&Vl(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function ah(e,t){var n=Un();t=t===void 0?null:t;var o=n.memoizedState;return o!==null&&t!==null&&Vl(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function fy(e,t){var n=ur();Mn(98>n?98:n,function(){e(!0)}),Mn(97<n?97:n,function(){var o=Ot.transition;Ot.transition=1;try{e(!1),t()}finally{Ot.transition=o}})}function Jl(e,t,n){var o=Et(),a=wn(e),h={lane:a,action:n,eagerReducer:null,eagerState:null,next:null},y=t.pending;if(y===null?h.next=h:(h.next=y.next,y.next=h),t.pending=h,y=e.alternate,e===Ye||y!==null&&y===Ye)is=ho=!0;else{if(e.lanes===0&&(y===null||y.lanes===0)&&(y=t.lastRenderedReducer,y!==null))try{var S=t.lastRenderedState,j=y(S,n);if(h.eagerReducer=y,h.eagerState=j,jt(j,S))return}catch{}Sn(e,a,o)}}var yo={readContext:At,useCallback:xt,useContext:xt,useEffect:xt,useImperativeHandle:xt,useLayoutEffect:xt,useMemo:xt,useReducer:xt,useRef:xt,useState:xt,useDebugValue:xt,useDeferredValue:xt,useTransition:xt,useMutableSource:xt,useOpaqueIdentifier:xt,unstable_isNewReconciler:!1},hy={readContext:At,useCallback:function(e,t){return bn().memoizedState=[e,t===void 0?null:t],e},useContext:At,useEffect:rh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Wl(4,2,oh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Wl(4,2,e,t)},useMemo:function(e,t){var n=bn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=bn();return t=n!==void 0?n(t):t,o.memoizedState=o.baseState=t,e=o.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=Jl.bind(null,Ye,e),[o.memoizedState,e]},useRef:nh,useState:us,useDebugValue:Gl,useDeferredValue:function(e){var t=us(e),n=t[0],o=t[1];return rh(function(){var a=Ot.transition;Ot.transition=1;try{o(e)}finally{Ot.transition=a}},[e]),n},useTransition:function(){var e=us(!1),t=e[0];return e=fy.bind(null,e[1]),nh(e),[e,t]},useMutableSource:function(e,t,n){var o=bn();return o.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},eh(o,e,t,n)},useOpaqueIdentifier:function(){if(qt){var e=!1,t=oy(function(){throw e||(e=!0,n("r:"+(jl++).toString(36))),Error(i(355))}),n=us(t)[1];return(Ye.mode&2)===0&&(Ye.flags|=516,po(5,function(){n("r:"+(jl++).toString(36))},void 0,null)),t}return t="r:"+(jl++).toString(36),us(t),t},unstable_isNewReconciler:!1},dy={readContext:At,useCallback:lh,useContext:At,useEffect:mo,useImperativeHandle:ih,useLayoutEffect:sh,useMemo:ah,useReducer:ls,useRef:go,useState:function(){return ls(Vt)},useDebugValue:Gl,useDeferredValue:function(e){var t=ls(Vt),n=t[0],o=t[1];return mo(function(){var a=Ot.transition;Ot.transition=1;try{o(e)}finally{Ot.transition=a}},[e]),n},useTransition:function(){var e=ls(Vt)[0];return[go().current,e]},useMutableSource:th,useOpaqueIdentifier:function(){return ls(Vt)[0]},unstable_isNewReconciler:!1},py={readContext:At,useCallback:lh,useContext:At,useEffect:mo,useImperativeHandle:ih,useLayoutEffect:sh,useMemo:ah,useReducer:as,useRef:go,useState:function(){return as(Vt)},useDebugValue:Gl,useDeferredValue:function(e){var t=as(Vt),n=t[0],o=t[1];return mo(function(){var a=Ot.transition;Ot.transition=1;try{o(e)}finally{Ot.transition=a}},[e]),n},useTransition:function(){var e=as(Vt)[0];return[go().current,e]},useMutableSource:th,useOpaqueIdentifier:function(){return as(Vt)[0]},unstable_isNewReconciler:!1},gy=ne.ReactCurrentOwner,It=!1;function Ct(e,t,n,o){t.child=e===null?Gf(t,null,n,o):uo(t,e.child,n,o)}function uh(e,t,n,o,a){n=n.render;var h=t.ref;return fr(t,a),o=Hl(e,t,n,o,h,a),e!==null&&!It?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,Qt(e,t,a)):(t.flags|=1,Ct(e,t,o,a),t.child)}function ch(e,t,n,o,a,h){if(e===null){var y=n.type;return typeof y=="function"&&!va(y)&&y.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=y,fh(e,t,y,o,a,h)):(e=jo(n.type,null,o,t,t.mode,h),e.ref=t.ref,e.return=t,t.child=e)}return y=e.child,(a&h)===0&&(a=y.memoizedProps,n=n.compare,n=n!==null?n:Kr,n(a,o)&&e.ref===t.ref)?Qt(e,t,h):(t.flags|=1,e=kn(y,o),e.ref=t.ref,e.return=t,t.child=e)}function fh(e,t,n,o,a,h){if(e!==null&&Kr(e.memoizedProps,o)&&e.ref===t.ref)if(It=!1,(h&a)!==0)(e.flags&16384)!==0&&(It=!0);else return t.lanes=e.lanes,Qt(e,t,h);return Yl(e,t,n,o,h)}function Ql(e,t,n){var o=t.pendingProps,a=o.children,h=e!==null?e.memoizedState:null;if(o.mode==="hidden"||o.mode==="unstable-defer-without-hiding")if((t.mode&4)===0)t.memoizedState={baseLanes:0},$o(t,n);else if((n&1073741824)!==0)t.memoizedState={baseLanes:0},$o(t,h!==null?h.baseLanes:n);else return e=h!==null?h.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},$o(t,e),null;else h!==null?(o=h.baseLanes|n,t.memoizedState=null):o=n,$o(t,o);return Ct(e,t,a,n),t.child}function hh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function Yl(e,t,n,o,a){var h=St(n)?In:ct.current;return h=ar(t,h),fr(t,a),n=Hl(e,t,n,o,h,a),e!==null&&!It?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,Qt(e,t,a)):(t.flags|=1,Ct(e,t,n,a),t.child)}function dh(e,t,n,o,a){if(St(n)){var h=!0;Zs(t)}else h=!1;if(fr(t,a),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Hf(t,n,o),Ml(t,n,o,a),o=!0;else if(e===null){var y=t.stateNode,S=t.memoizedProps;y.props=S;var j=y.context,D=n.contextType;typeof D=="object"&&D!==null?D=At(D):(D=St(n)?In:ct.current,D=ar(t,D));var le=n.getDerivedStateFromProps,Pe=typeof le=="function"||typeof y.getSnapshotBeforeUpdate=="function";Pe||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(S!==o||j!==D)&&Wf(t,y,o,D),pn=!1;var X=t.memoizedState;y.state=X,Zr(t,o,y,a),j=t.memoizedState,S!==o||X!==j||wt.current||pn?(typeof le=="function"&&(oo(t,n,le,o),j=t.memoizedState),(S=pn||Vf(t,n,S,o,X,j,D))?(Pe||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(t.flags|=4)):(typeof y.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=o,t.memoizedState=j),y.props=o,y.state=j,y.context=D,o=S):(typeof y.componentDidMount=="function"&&(t.flags|=4),o=!1)}else{y=t.stateNode,bf(e,t),S=t.memoizedProps,D=t.type===t.elementType?S:Ft(t.type,S),y.props=D,Pe=t.pendingProps,X=y.context,j=n.contextType,typeof j=="object"&&j!==null?j=At(j):(j=St(n)?In:ct.current,j=ar(t,j));var ye=n.getDerivedStateFromProps;(le=typeof ye=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(S!==Pe||X!==j)&&Wf(t,y,o,j),pn=!1,X=t.memoizedState,y.state=X,Zr(t,o,y,a);var ke=t.memoizedState;S!==Pe||X!==ke||wt.current||pn?(typeof ye=="function"&&(oo(t,n,ye,o),ke=t.memoizedState),(D=pn||Vf(t,n,D,o,X,ke,j))?(le||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(o,ke,j),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(o,ke,j)),typeof y.componentDidUpdate=="function"&&(t.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof y.componentDidUpdate!="function"||S===e.memoizedProps&&X===e.memoizedState||(t.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&X===e.memoizedState||(t.flags|=256),t.memoizedProps=o,t.memoizedState=ke),y.props=o,y.state=ke,y.context=j,o=D):(typeof y.componentDidUpdate!="function"||S===e.memoizedProps&&X===e.memoizedState||(t.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&X===e.memoizedState||(t.flags|=256),o=!1)}return Xl(e,t,n,o,h,a)}function Xl(e,t,n,o,a,h){hh(e,t);var y=(t.flags&64)!==0;if(!o&&!y)return a&&Tf(t,n,!1),Qt(e,t,h);o=t.stateNode,gy.current=t;var S=y&&typeof n.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&y?(t.child=uo(t,e.child,null,h),t.child=uo(t,null,S,h)):Ct(e,t,S,h),t.memoizedState=o.state,a&&Tf(t,n,!0),t.child}function ph(e){var t=e.stateNode;t.pendingContext?Af(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Af(e,t.context,!1),zl(e,t.containerInfo)}var vo={dehydrated:null,retryLane:0};function gh(e,t,n){var o=t.pendingProps,a=Qe.current,h=!1,y;return(y=(t.flags&64)!==0)||(y=e!==null&&e.memoizedState===null?!1:(a&2)!==0),y?(h=!0,t.flags&=-65):e!==null&&e.memoizedState===null||o.fallback===void 0||o.unstable_avoidThisFallback===!0||(a|=1),Je(Qe,a&1),e===null?(o.fallback!==void 0&&Ul(t),e=o.children,a=o.fallback,h?(e=mh(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=vo,e):typeof o.unstable_expectedLoadTime=="number"?(e=mh(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=vo,t.lanes=33554432,e):(n=wa({mode:"visible",children:e},t.mode,n,null),n.return=t,t.child=n)):e.memoizedState!==null?h?(o=vh(e,t,o.children,o.fallback,n),h=t.child,a=e.child.memoizedState,h.memoizedState=a===null?{baseLanes:n}:{baseLanes:a.baseLanes|n},h.childLanes=e.childLanes&~n,t.memoizedState=vo,o):(n=yh(e,t,o.children,n),t.memoizedState=null,n):h?(o=vh(e,t,o.children,o.fallback,n),h=t.child,a=e.child.memoizedState,h.memoizedState=a===null?{baseLanes:n}:{baseLanes:a.baseLanes|n},h.childLanes=e.childLanes&~n,t.memoizedState=vo,o):(n=yh(e,t,o.children,n),t.memoizedState=null,n)}function mh(e,t,n,o){var a=e.mode,h=e.child;return t={mode:"hidden",children:t},(a&2)===0&&h!==null?(h.childLanes=0,h.pendingProps=t):h=wa(t,a,0,null),n=wr(n,a,o,null),h.return=e,n.return=e,h.sibling=n,e.child=h,n}function yh(e,t,n,o){var a=e.child;return e=a.sibling,n=kn(a,{mode:"visible",children:n}),(t.mode&2)===0&&(n.lanes=o),n.return=t,n.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function vh(e,t,n,o,a){var h=t.mode,y=e.child;e=y.sibling;var S={mode:"hidden",children:n};return(h&2)===0&&t.child!==y?(n=t.child,n.childLanes=0,n.pendingProps=S,y=n.lastEffect,y!==null?(t.firstEffect=n.firstEffect,t.lastEffect=y,y.nextEffect=null):t.firstEffect=t.lastEffect=null):n=kn(y,S),e!==null?o=kn(e,o):(o=wr(o,h,a,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,o}function wh(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),zf(e.return,t)}function Zl(e,t,n,o,a,h){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:a,lastEffect:h}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=o,y.tail=n,y.tailMode=a,y.lastEffect=h)}function Sh(e,t,n){var o=t.pendingProps,a=o.revealOrder,h=o.tail;if(Ct(e,t,o.children,n),o=Qe.current,(o&2)!==0)o=o&1|2,t.flags|=64;else{if(e!==null&&(e.flags&64)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wh(e,n);else if(e.tag===19)wh(e,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(Je(Qe,o),(t.mode&2)===0)t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&co(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Zl(t,!1,a,n,h,t.lastEffect);break;case"backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&co(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Zl(t,!0,n,null,h,t.lastEffect);break;case"together":Zl(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Qt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),fs|=t.lanes,(n&t.childLanes)!==0){if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=kn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=kn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var xh,ea,Ch,kh;xh=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},ea=function(){},Ch=function(e,t,n,o){var a=e.memoizedProps;if(a!==o){e=t.stateNode,zn(Bt.current);var h=null;switch(n){case"input":a=f(e,a),o=f(e,o),h=[];break;case"option":a=M(e,a),o=M(e,o),h=[];break;case"select":a=s({},a,{value:void 0}),o=s({},o,{value:void 0}),h=[];break;case"textarea":a=ee(e,a),o=ee(e,o),h=[];break;default:typeof a.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=Gs)}Tr(n,o);var y;n=null;for(D in a)if(!o.hasOwnProperty(D)&&a.hasOwnProperty(D)&&a[D]!=null)if(D==="style"){var S=a[D];for(y in S)S.hasOwnProperty(y)&&(n||(n={}),n[y]="")}else D!=="dangerouslySetInnerHTML"&&D!=="children"&&D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&D!=="autoFocus"&&(c.hasOwnProperty(D)?h||(h=[]):(h=h||[]).push(D,null));for(D in o){var j=o[D];if(S=a?.[D],o.hasOwnProperty(D)&&j!==S&&(j!=null||S!=null))if(D==="style")if(S){for(y in S)!S.hasOwnProperty(y)||j&&j.hasOwnProperty(y)||(n||(n={}),n[y]="");for(y in j)j.hasOwnProperty(y)&&S[y]!==j[y]&&(n||(n={}),n[y]=j[y])}else n||(h||(h=[]),h.push(D,n)),n=j;else D==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,S=S?S.__html:void 0,j!=null&&S!==j&&(h=h||[]).push(D,j)):D==="children"?typeof j!="string"&&typeof j!="number"||(h=h||[]).push(D,""+j):D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&(c.hasOwnProperty(D)?(j!=null&&D==="onScroll"&&Ve("scroll",e),h||S===j||(h=[])):typeof j=="object"&&j!==null&&j.$$typeof===q?j.toString():(h=h||[]).push(D,j))}n&&(h=h||[]).push("style",n);var D=h;(t.updateQueue=D)&&(t.flags|=4)}},kh=function(e,t,n,o){n!==o&&(t.flags|=4)};function cs(e,t){if(!qt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function my(e,t,n){var o=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return St(t.type)&&Xs(),null;case 3:return hr(),He(wt),He(ct),ql(),o=t.stateNode,o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(fo(t)?t.flags|=4:o.hydrate||(t.flags|=256)),ea(t),null;case 5:bl(t);var a=zn(rs.current);if(n=t.type,e!==null&&t.stateNode!=null)Ch(e,t,n,o,a),e.ref!==t.ref&&(t.flags|=128);else{if(!o){if(t.stateNode===null)throw Error(i(166));return null}if(e=zn(Bt.current),fo(t)){o=t.stateNode,n=t.type;var h=t.memoizedProps;switch(o[fn]=t,o[Qs]=h,n){case"dialog":Ve("cancel",o),Ve("close",o);break;case"iframe":case"object":case"embed":Ve("load",o);break;case"video":case"audio":for(e=0;e<Jr.length;e++)Ve(Jr[e],o);break;case"source":Ve("error",o);break;case"img":case"image":case"link":Ve("error",o),Ve("load",o);break;case"details":Ve("toggle",o);break;case"input":p(o,h),Ve("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!h.multiple},Ve("invalid",o);break;case"textarea":ue(o,h),Ve("invalid",o)}Tr(n,h),e=null;for(var y in h)h.hasOwnProperty(y)&&(a=h[y],y==="children"?typeof a=="string"?o.textContent!==a&&(e=["children",a]):typeof a=="number"&&o.textContent!==""+a&&(e=["children",""+a]):c.hasOwnProperty(y)&&a!=null&&y==="onScroll"&&Ve("scroll",o));switch(n){case"input":ot(o),E(o,h,!0);break;case"textarea":ot(o),Se(o);break;case"select":case"option":break;default:typeof h.onClick=="function"&&(o.onclick=Gs)}o=e,t.updateQueue=o,o!==null&&(t.flags|=4)}else{switch(y=a.nodeType===9?a:a.ownerDocument,e===_e.html&&(e=Ke(n)),e===_e.html?n==="script"?(e=y.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=y.createElement(n,{is:o.is}):(e=y.createElement(n),n==="select"&&(y=e,o.multiple?y.multiple=!0:o.size&&(y.size=o.size))):e=y.createElementNS(e,n),e[fn]=t,e[Qs]=o,xh(e,t,!1,!1),t.stateNode=e,y=Qn(n,o),n){case"dialog":Ve("cancel",e),Ve("close",e),a=o;break;case"iframe":case"object":case"embed":Ve("load",e),a=o;break;case"video":case"audio":for(a=0;a<Jr.length;a++)Ve(Jr[a],e);a=o;break;case"source":Ve("error",e),a=o;break;case"img":case"image":case"link":Ve("error",e),Ve("load",e),a=o;break;case"details":Ve("toggle",e),a=o;break;case"input":p(e,o),a=f(e,o),Ve("invalid",e);break;case"option":a=M(e,o);break;case"select":e._wrapperState={wasMultiple:!!o.multiple},a=s({},o,{value:void 0}),Ve("invalid",e);break;case"textarea":ue(e,o),a=ee(e,o),Ve("invalid",e);break;default:a=o}Tr(n,a);var S=a;for(h in S)if(S.hasOwnProperty(h)){var j=S[h];h==="style"?rt(e,j):h==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,j!=null&&nt(e,j)):h==="children"?typeof j=="string"?(n!=="textarea"||j!=="")&&Lt(e,j):typeof j=="number"&&Lt(e,""+j):h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&h!=="autoFocus"&&(c.hasOwnProperty(h)?j!=null&&h==="onScroll"&&Ve("scroll",e):j!=null&&ge(e,h,j,y))}switch(n){case"input":ot(e),E(e,o,!1);break;case"textarea":ot(e),Se(e);break;case"option":o.value!=null&&e.setAttribute("value",""+Fe(o.value));break;case"select":e.multiple=!!o.multiple,h=o.value,h!=null?Q(e,!!o.multiple,h,!1):o.defaultValue!=null&&Q(e,!!o.multiple,o.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=Gs)}kf(n,o)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)kh(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(i(166));n=zn(rs.current),zn(Bt.current),fo(t)?(o=t.stateNode,n=t.memoizedProps,o[fn]=t,o.nodeValue!==n&&(t.flags|=4)):(o=(n.nodeType===9?n:n.ownerDocument).createTextNode(o),o[fn]=t,t.stateNode=o)}return null;case 13:return He(Qe),o=t.memoizedState,(t.flags&64)!==0?(t.lanes=n,t):(o=o!==null,n=!1,e===null?t.memoizedProps.fallback!==void 0&&fo(t):n=e.memoizedState!==null,o&&!n&&(t.mode&2)!==0&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||(Qe.current&1)!==0?at===0&&(at=3):((at===0||at===3)&&(at=4),mt===null||(fs&134217727)===0&&(gr&134217727)===0||yr(mt,dt))),(o||n)&&(t.flags|=4),null);case 4:return hr(),ea(t),e===null&&vf(t.stateNode.containerInfo),null;case 10:return Il(t),null;case 17:return St(t.type)&&Xs(),null;case 19:if(He(Qe),o=t.memoizedState,o===null)return null;if(h=(t.flags&64)!==0,y=o.rendering,y===null)if(h)cs(o,!1);else{if(at!==0||e!==null&&(e.flags&64)!==0)for(e=t.child;e!==null;){if(y=co(e),y!==null){for(t.flags|=64,cs(o,!1),h=y.updateQueue,h!==null&&(t.updateQueue=h,t.flags|=4),o.lastEffect===null&&(t.firstEffect=null),t.lastEffect=o.lastEffect,o=n,n=t.child;n!==null;)h=n,e=o,h.flags&=2,h.nextEffect=null,h.firstEffect=null,h.lastEffect=null,y=h.alternate,y===null?(h.childLanes=0,h.lanes=e,h.child=null,h.memoizedProps=null,h.memoizedState=null,h.updateQueue=null,h.dependencies=null,h.stateNode=null):(h.childLanes=y.childLanes,h.lanes=y.lanes,h.child=y.child,h.memoizedProps=y.memoizedProps,h.memoizedState=y.memoizedState,h.updateQueue=y.updateQueue,h.type=y.type,e=y.dependencies,h.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Je(Qe,Qe.current&1|2),t.child}e=e.sibling}o.tail!==null&&ft()>fa&&(t.flags|=64,h=!0,cs(o,!1),t.lanes=33554432)}else{if(!h)if(e=co(y),e!==null){if(t.flags|=64,h=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),cs(o,!0),o.tail===null&&o.tailMode==="hidden"&&!y.alternate&&!qt)return t=t.lastEffect=o.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*ft()-o.renderingStartTime>fa&&n!==1073741824&&(t.flags|=64,h=!0,cs(o,!1),t.lanes=33554432);o.isBackwards?(y.sibling=t.child,t.child=y):(n=o.last,n!==null?n.sibling=y:t.child=y,o.last=y)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.lastEffect=t.lastEffect,o.renderingStartTime=ft(),n.sibling=null,t=Qe.current,Je(Qe,h?t&1|2:t&1),n):null;case 23:case 24:return ya(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&o.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(i(156,t.tag))}function yy(e){switch(e.tag){case 1:St(e.type)&&Xs();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(hr(),He(wt),He(ct),ql(),t=e.flags,(t&64)!==0)throw Error(i(285));return e.flags=t&-4097|64,e;case 5:return bl(e),null;case 13:return He(Qe),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return He(Qe),null;case 4:return hr(),null;case 10:return Il(e),null;case 23:case 24:return ya(),null;default:return null}}function ta(e,t){try{var n="",o=t;do n+=Me(o),o=o.return;while(o);var a=n}catch(h){a=`
|
|
7
|
-
Error generating stack: `+
|
|
8
|
-
`+h.stack}return{value:e,source:t,stack:a}}function na(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var vy=typeof WeakMap=="function"?WeakMap:Map;function Ph(e,t,n){n=gn(-1,n),n.tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){xo||(xo=!0,ha=o),na(e,t)},n}function Eh(e,t,n){n=gn(-1,n),n.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var a=t.value;n.payload=function(){return na(e,t),o(a)}}var h=e.stateNode;return h!==null&&typeof h.componentDidCatch=="function"&&(n.callback=function(){typeof o!="function"&&(Ht===null?Ht=new Set([this]):Ht.add(this),na(e,t));var y=t.stack;this.componentDidCatch(t.value,{componentStack:y!==null?y:""})}),n}var wy=typeof WeakSet=="function"?WeakSet:Set;function $h(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){Cn(e,n)}else t.current=null}function Sy(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var n=e.memoizedProps,o=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:Ft(t.type,n),o),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&$l(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(i(163))}function xy(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var o=e.create;e.destroy=o()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var a=e;o=a.next,a=a.tag,(a&4)!==0&&(a&1)!==0&&(Uh(n,e),Oy(n,e)),e=o}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(o=n.elementType===n.type?t.memoizedProps:Ft(n.type,t.memoizedProps),e.componentDidUpdate(o,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&Bf(n,t,e);return;case 3:if(t=n.updateQueue,t!==null){if(e=null,n.child!==null)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}Bf(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&kf(n.type,n.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&Mc(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(i(163))}function jh(e,t){for(var n=e;;){if(n.tag===5){var o=n.stateNode;if(t)o=o.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{o=n.stateNode;var a=n.memoizedProps.style;a=a!=null&&a.hasOwnProperty("display")?a.display:null,o.style.display=vt("display",a)}}else if(n.tag===6)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Ah(e,t){if(Dn&&typeof Dn.onCommitFiberUnmount=="function")try{Dn.onCommitFiberUnmount(Ol,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var n=e=e.next;do{var o=n,a=o.destroy;if(o=o.tag,a!==void 0)if((o&4)!==0)Uh(t,n);else{o=t;try{a()}catch(h){Cn(o,h)}}n=n.next}while(n!==e)}break;case 1:if($h(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(h){Cn(t,h)}break;case 5:$h(t);break;case 4:Rh(e,t)}}function Oh(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Th(e){return e.tag===5||e.tag===3||e.tag===4}function Nh(e){e:{for(var t=e.return;t!==null;){if(Th(t))break e;t=t.return}throw Error(i(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var o=!1;break;case 3:t=t.containerInfo,o=!0;break;case 4:t=t.containerInfo,o=!0;break;default:throw Error(i(161))}n.flags&16&&(Lt(t,""),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||Th(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}o?ra(e,n,t):sa(e,n,t)}function ra(e,t,n){var o=e.tag,a=o===5||o===6;if(a)e=a?e.stateNode:e.stateNode.instance,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Gs));else if(o!==4&&(e=e.child,e!==null))for(ra(e,t,n),e=e.sibling;e!==null;)ra(e,t,n),e=e.sibling}function sa(e,t,n){var o=e.tag,a=o===5||o===6;if(a)e=a?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(sa(e,t,n),e=e.sibling;e!==null;)sa(e,t,n),e=e.sibling}function Rh(e,t){for(var n=t,o=!1,a,h;;){if(!o){o=n.return;e:for(;;){if(o===null)throw Error(i(160));switch(a=o.stateNode,o.tag){case 5:h=!1;break e;case 3:a=a.containerInfo,h=!0;break e;case 4:a=a.containerInfo,h=!0;break e}o=o.return}o=!0}if(n.tag===5||n.tag===6){e:for(var y=e,S=n,j=S;;)if(Ah(y,j),j.child!==null&&j.tag!==4)j.child.return=j,j=j.child;else{if(j===S)break e;for(;j.sibling===null;){if(j.return===null||j.return===S)break e;j=j.return}j.sibling.return=j.return,j=j.sibling}h?(y=a,S=n.stateNode,y.nodeType===8?y.parentNode.removeChild(S):y.removeChild(S)):a.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){a=n.stateNode.containerInfo,h=!0,n.child.return=n,n=n.child;continue}}else if(Ah(e,n),n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return,n.tag===4&&(o=!1)}n.sibling.return=n.return,n=n.sibling}}function oa(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do(o.tag&3)===3&&(e=o.destroy,o.destroy=void 0,e!==void 0&&e()),o=o.next;while(o!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){o=t.memoizedProps;var a=e!==null?e.memoizedProps:o;e=t.type;var h=t.updateQueue;if(t.updateQueue=null,h!==null){for(n[Qs]=o,e==="input"&&o.type==="radio"&&o.name!=null&&m(n,o),Qn(e,a),t=Qn(e,o),a=0;a<h.length;a+=2){var y=h[a],S=h[a+1];y==="style"?rt(n,S):y==="dangerouslySetInnerHTML"?nt(n,S):y==="children"?Lt(n,S):ge(n,y,S,t)}switch(e){case"input":x(n,o);break;case"textarea":K(n,o);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!o.multiple,h=o.value,h!=null?Q(n,!!o.multiple,h,!1):e!==!!o.multiple&&(o.defaultValue!=null?Q(n,!!o.multiple,o.defaultValue,!0):Q(n,!!o.multiple,o.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(i(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,Mc(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(ca=ft(),jh(t.child,!0)),_h(t);return;case 19:_h(t);return;case 17:return;case 23:case 24:jh(t,t.memoizedState!==null);return}throw Error(i(163))}function _h(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new wy),t.forEach(function(o){var a=Ry.bind(null,e,o);n.has(o)||(n.add(o),o.then(a,a))})}}function Cy(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var ky=Math.ceil,wo=ne.ReactCurrentDispatcher,ia=ne.ReactCurrentOwner,Ce=0,mt=null,et=null,dt=0,Bn=0,la=hn(0),at=0,So=null,pr=0,fs=0,gr=0,aa=0,ua=null,ca=0,fa=1/0;function mr(){fa=ft()+500}var ce=null,xo=!1,ha=null,Ht=null,vn=!1,hs=null,ds=90,da=[],pa=[],Yt=null,ps=0,ga=null,Co=-1,Xt=0,ko=0,gs=null,Po=!1;function Et(){return(Ce&48)!==0?ft():Co!==-1?Co:Co=ft()}function wn(e){if(e=e.mode,(e&2)===0)return 1;if((e&4)===0)return ur()===99?1:2;if(Xt===0&&(Xt=pr),cy.transition!==0){ko!==0&&(ko=ua!==null?ua.pendingLanes:0),e=Xt;var t=4186112&~ko;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=ur(),(Ce&4)!==0&&e===98?e=zs(12,Xt):(e=hm(e),e=zs(e,Xt)),e}function Sn(e,t,n){if(50<ps)throw ps=0,ga=null,Error(i(185));if(e=Eo(e,t),e===null)return null;bs(e,t,n),e===mt&&(gr|=t,at===4&&yr(e,dt));var o=ur();t===1?(Ce&8)!==0&&(Ce&48)===0?ma(e):(Tt(e,n),Ce===0&&(mr(),Ut())):((Ce&4)===0||o!==98&&o!==99||(Yt===null?Yt=new Set([e]):Yt.add(e)),Tt(e,n)),ua=e}function Eo(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}function Tt(e,t){for(var n=e.callbackNode,o=e.suspendedLanes,a=e.pingedLanes,h=e.expirationTimes,y=e.pendingLanes;0<y;){var S=31-un(y),j=1<<S,D=h[S];if(D===-1){if((j&o)===0||(j&a)!==0){D=t,Xn(j);var le=qe;h[S]=10<=le?D+250:6<=le?D+5e3:-1}}else D<=t&&(e.expiredLanes|=j);y&=~j}if(o=Ur(e,e===mt?dt:0),t=qe,o===0)n!==null&&(n!==_l&&Nl(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==_l&&Nl(n)}t===15?(n=ma.bind(null,e),Gt===null?(Gt=[n],to=Tl(eo,Mf)):Gt.push(n),n=_l):t===14?n=Xr(99,ma.bind(null,e)):(n=dm(t),n=Xr(n,Lh.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function Lh(e){if(Co=-1,ko=Xt=0,(Ce&48)!==0)throw Error(i(327));var t=e.callbackNode;if(xn()&&e.callbackNode!==t)return null;var n=Ur(e,e===mt?dt:0);if(n===0)return null;var o=n,a=Ce;Ce|=16;var h=Mh();(mt!==e||dt!==o)&&(mr(),vr(e,o));do try{$y();break}catch(S){Dh(e,S)}while(!0);if(Fl(),wo.current=h,Ce=a,et!==null?o=0:(mt=null,dt=0,o=at),(pr&gr)!==0)vr(e,0);else if(o!==0){if(o===2&&(Ce|=64,e.hydrate&&(e.hydrate=!1,$l(e.containerInfo)),n=Hc(e),n!==0&&(o=ms(e,n))),o===1)throw t=So,vr(e,0),yr(e,n),Tt(e,ft()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,o){case 0:case 1:throw Error(i(345));case 2:qn(e);break;case 3:if(yr(e,n),(n&62914560)===n&&(o=ca+500-ft(),10<o)){if(Ur(e,0)!==0)break;if(a=e.suspendedLanes,(a&n)!==n){Et(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Pf(qn.bind(null,e),o);break}qn(e);break;case 4:if(yr(e,n),(n&4186112)===n)break;for(o=e.eventTimes,a=-1;0<n;){var y=31-un(n);h=1<<y,y=o[y],y>a&&(a=y),n&=~h}if(n=a,n=ft()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*ky(n/1960))-n,10<n){e.timeoutHandle=Pf(qn.bind(null,e),n);break}qn(e);break;case 5:qn(e);break;default:throw Error(i(329))}}return Tt(e,ft()),e.callbackNode===t?Lh.bind(null,e):null}function yr(e,t){for(t&=~aa,t&=~gr,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-un(t),o=1<<n;e[n]=-1,t&=~o}}function ma(e){if((Ce&48)!==0)throw Error(i(327));if(xn(),e===mt&&(e.expiredLanes&dt)!==0){var t=dt,n=ms(e,t);(pr&gr)!==0&&(t=Ur(e,t),n=ms(e,t))}else t=Ur(e,0),n=ms(e,t);if(e.tag!==0&&n===2&&(Ce|=64,e.hydrate&&(e.hydrate=!1,$l(e.containerInfo)),t=Hc(e),t!==0&&(n=ms(e,t))),n===1)throw n=So,vr(e,0),yr(e,t),Tt(e,ft()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,qn(e),Tt(e,ft()),null}function Py(){if(Yt!==null){var e=Yt;Yt=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Tt(t,ft())})}Ut()}function Fh(e,t){var n=Ce;Ce|=1;try{return e(t)}finally{Ce=n,Ce===0&&(mr(),Ut())}}function Ih(e,t){var n=Ce;Ce&=-2,Ce|=8;try{return e(t)}finally{Ce=n,Ce===0&&(mr(),Ut())}}function $o(e,t){Je(la,Bn),Bn|=t,pr|=t}function ya(){Bn=la.current,He(la)}function vr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,sy(n)),et!==null)for(n=et.return;n!==null;){var o=n;switch(o.tag){case 1:o=o.type.childContextTypes,o!=null&&Xs();break;case 3:hr(),He(wt),He(ct),ql();break;case 5:bl(o);break;case 4:hr();break;case 13:He(Qe);break;case 19:He(Qe);break;case 10:Il(o);break;case 23:case 24:ya()}n=n.return}mt=e,et=kn(e.current,null),dt=Bn=pr=t,at=0,So=null,aa=gr=fs=0}function Dh(e,t){do{var n=et;try{if(Fl(),ss.current=yo,ho){for(var o=Ye.memoizedState;o!==null;){var a=o.queue;a!==null&&(a.pending=null),o=o.next}ho=!1}if(os=0,lt=ht=Ye=null,is=!1,ia.current=null,n===null||n.return===null){at=1,So=t,et=null;break}e:{var h=e,y=n.return,S=n,j=t;if(t=dt,S.flags|=2048,S.firstEffect=S.lastEffect=null,j!==null&&typeof j=="object"&&typeof j.then=="function"){var D=j;if((S.mode&2)===0){var le=S.alternate;le?(S.updateQueue=le.updateQueue,S.memoizedState=le.memoizedState,S.lanes=le.lanes):(S.updateQueue=null,S.memoizedState=null)}var Pe=(Qe.current&1)!==0,X=y;do{var ye;if(ye=X.tag===13){var ke=X.memoizedState;if(ke!==null)ye=ke.dehydrated!==null;else{var xe=X.memoizedProps;ye=xe.fallback===void 0?!1:xe.unstable_avoidThisFallback!==!0?!0:!Pe}}if(ye){var _=X.updateQueue;if(_===null){var A=new Set;A.add(D),X.updateQueue=A}else _.add(D);if((X.mode&2)===0){if(X.flags|=64,S.flags|=16384,S.flags&=-2981,S.tag===1)if(S.alternate===null)S.tag=17;else{var R=gn(-1,1);R.tag=2,mn(S,R)}S.lanes|=1;break e}j=void 0,S=t;var H=h.pingCache;if(H===null?(H=h.pingCache=new vy,j=new Set,H.set(D,j)):(j=H.get(D),j===void 0&&(j=new Set,H.set(D,j))),!j.has(S)){j.add(S);var G=Ny.bind(null,h,D,S);D.then(G,G)}X.flags|=4096,X.lanes=t;break e}X=X.return}while(X!==null);j=Error((Be(S.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
|
|
1
|
+
(function($r){typeof define=="function"&&define.amd?define($r):$r()})((function(){"use strict";var $r=document.createElement("style");$r.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($r);var bo=typeof document<"u"?document.currentScript:null,Er=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Io(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function qh(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var s=r.default;if(typeof s=="function"){var i=function l(){var a=!1;try{a=this instanceof l}catch{}return a?Reflect.construct(s,arguments,this.constructor):s.apply(this,arguments)};i.prototype=s.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(r).forEach(function(l){var a=Object.getOwnPropertyDescriptor(r,l);Object.defineProperty(i,l,a.get?a:{enumerable:!0,get:function(){return r[l]}})}),i}var Fo={exports:{}},Hn={};var Mo,_a;function zo(){if(_a)return Mo;_a=1;var r=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function l(h){if(h==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(h)}function a(){try{if(!Object.assign)return!1;var h=new String("abc");if(h[5]="de",Object.getOwnPropertyNames(h)[0]==="5")return!1;for(var p={},v=0;v<10;v++)p["_"+String.fromCharCode(v)]=v;var g=Object.getOwnPropertyNames(p).map(function(k){return p[k]});if(g.join("")!=="0123456789")return!1;var w={};return"abcdefghijklmnopqrst".split("").forEach(function(k){w[k]=k}),Object.keys(Object.assign({},w)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Mo=a()?Object.assign:function(h,p){for(var v,g=l(h),w,k=1;k<arguments.length;k++){v=Object(arguments[k]);for(var $ in v)s.call(v,$)&&(g[$]=v[$]);if(r){w=r(v);for(var j=0;j<w.length;j++)i.call(v,w[j])&&(g[w[j]]=v[w[j]])}}return g},Mo}var Do={exports:{}},be={};var La;function Wh(){if(La)return be;La=1;var r=zo(),s=60103,i=60106;be.Fragment=60107,be.StrictMode=60108,be.Profiler=60114;var l=60109,a=60110,h=60112;be.Suspense=60113;var p=60115,v=60116;if(typeof Symbol=="function"&&Symbol.for){var g=Symbol.for;s=g("react.element"),i=g("react.portal"),be.Fragment=g("react.fragment"),be.StrictMode=g("react.strict_mode"),be.Profiler=g("react.profiler"),l=g("react.provider"),a=g("react.context"),h=g("react.forward_ref"),be.Suspense=g("react.suspense"),p=g("react.memo"),v=g("react.lazy")}var w=typeof Symbol=="function"&&Symbol.iterator;function k(S){return S===null||typeof S!="object"?null:(S=w&&S[w]||S["@@iterator"],typeof S=="function"?S:null)}function $(S){for(var O="https://reactjs.org/docs/error-decoder.html?invariant="+S,W=1;W<arguments.length;W++)O+="&args[]="+encodeURIComponent(arguments[W]);return"Minified React error #"+S+"; visit "+O+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A={};function z(S,O,W){this.props=S,this.context=O,this.refs=A,this.updater=W||j}z.prototype.isReactComponent={},z.prototype.setState=function(S,O){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error($(85));this.updater.enqueueSetState(this,S,O,"setState")},z.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function _(){}_.prototype=z.prototype;function R(S,O,W){this.props=S,this.context=O,this.refs=A,this.updater=W||j}var q=R.prototype=new _;q.constructor=R,r(q,z.prototype),q.isPureReactComponent=!0;var Q={current:null},ue=Object.prototype.hasOwnProperty,pe={key:!0,ref:!0,__self:!0,__source:!0};function ce(S,O,W){var ge,V={},ee=null,G=null;if(O!=null)for(ge in O.ref!==void 0&&(G=O.ref),O.key!==void 0&&(ee=""+O.key),O)ue.call(O,ge)&&!pe.hasOwnProperty(ge)&&(V[ge]=O[ge]);var H=arguments.length-2;if(H===1)V.children=W;else if(1<H){for(var ie=Array(H),Ne=0;Ne<H;Ne++)ie[Ne]=arguments[Ne+2];V.children=ie}if(S&&S.defaultProps)for(ge in H=S.defaultProps,H)V[ge]===void 0&&(V[ge]=H[ge]);return{$$typeof:s,type:S,key:ee,ref:G,props:V,_owner:Q.current}}function ae(S,O){return{$$typeof:s,type:S.type,key:O,ref:S.ref,props:S.props,_owner:S._owner}}function ne(S){return typeof S=="object"&&S!==null&&S.$$typeof===s}function re(S){var O={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(W){return O[W]})}var fe=/\/+/g;function b(S,O){return typeof S=="object"&&S!==null&&S.key!=null?re(""+S.key):O.toString(36)}function M(S,O,W,ge,V){var ee=typeof S;(ee==="undefined"||ee==="boolean")&&(S=null);var G=!1;if(S===null)G=!0;else switch(ee){case"string":case"number":G=!0;break;case"object":switch(S.$$typeof){case s:case i:G=!0}}if(G)return G=S,V=V(G),S=ge===""?"."+b(G,0):ge,Array.isArray(V)?(W="",S!=null&&(W=S.replace(fe,"$&/")+"/"),M(V,O,W,"",function(Ne){return Ne})):V!=null&&(ne(V)&&(V=ae(V,W+(!V.key||G&&G.key===V.key?"":(""+V.key).replace(fe,"$&/")+"/")+S)),O.push(V)),1;if(G=0,ge=ge===""?".":ge+":",Array.isArray(S))for(var H=0;H<S.length;H++){ee=S[H];var ie=ge+b(ee,H);G+=M(ee,O,W,ie,V)}else if(ie=k(S),typeof ie=="function")for(S=ie.call(S),H=0;!(ee=S.next()).done;)ee=ee.value,ie=ge+b(ee,H++),G+=M(ee,O,W,ie,V);else if(ee==="object")throw O=""+S,Error($(31,O==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":O));return G}function K(S,O,W){if(S==null)return S;var ge=[],V=0;return M(S,ge,"","",function(ee){return O.call(W,ee,V++)}),ge}function se(S){if(S._status===-1){var O=S._result;O=O(),S._status=0,S._result=O,O.then(function(W){S._status===0&&(W=W.default,S._status=1,S._result=W)},function(W){S._status===0&&(S._status=2,S._result=W)})}if(S._status===1)return S._result;throw S._result}var he={current:null};function Se(){var S=he.current;if(S===null)throw Error($(321));return S}var Te={ReactCurrentDispatcher:he,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:Q,IsSomeRendererActing:{current:!1},assign:r};return be.Children={map:K,forEach:function(S,O,W){K(S,function(){O.apply(this,arguments)},W)},count:function(S){var O=0;return K(S,function(){O++}),O},toArray:function(S){return K(S,function(O){return O})||[]},only:function(S){if(!ne(S))throw Error($(143));return S}},be.Component=z,be.PureComponent=R,be.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Te,be.cloneElement=function(S,O,W){if(S==null)throw Error($(267,S));var ge=r({},S.props),V=S.key,ee=S.ref,G=S._owner;if(O!=null){if(O.ref!==void 0&&(ee=O.ref,G=Q.current),O.key!==void 0&&(V=""+O.key),S.type&&S.type.defaultProps)var H=S.type.defaultProps;for(ie in O)ue.call(O,ie)&&!pe.hasOwnProperty(ie)&&(ge[ie]=O[ie]===void 0&&H!==void 0?H[ie]:O[ie])}var ie=arguments.length-2;if(ie===1)ge.children=W;else if(1<ie){H=Array(ie);for(var Ne=0;Ne<ie;Ne++)H[Ne]=arguments[Ne+2];ge.children=H}return{$$typeof:s,type:S.type,key:V,ref:ee,props:ge,_owner:G}},be.createContext=function(S,O){return O===void 0&&(O=null),S={$$typeof:a,_calculateChangedBits:O,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider={$$typeof:l,_context:S},S.Consumer=S},be.createElement=ce,be.createFactory=function(S){var O=ce.bind(null,S);return O.type=S,O},be.createRef=function(){return{current:null}},be.forwardRef=function(S){return{$$typeof:h,render:S}},be.isValidElement=ne,be.lazy=function(S){return{$$typeof:v,_payload:{_status:-1,_result:S},_init:se}},be.memo=function(S,O){return{$$typeof:p,type:S,compare:O===void 0?null:O}},be.useCallback=function(S,O){return Se().useCallback(S,O)},be.useContext=function(S,O){return Se().useContext(S,O)},be.useDebugValue=function(){},be.useEffect=function(S,O){return Se().useEffect(S,O)},be.useImperativeHandle=function(S,O,W){return Se().useImperativeHandle(S,O,W)},be.useLayoutEffect=function(S,O){return Se().useLayoutEffect(S,O)},be.useMemo=function(S,O){return Se().useMemo(S,O)},be.useReducer=function(S,O,W){return Se().useReducer(S,O,W)},be.useRef=function(S){return Se().useRef(S)},be.useState=function(S){return Se().useState(S)},be.version="17.0.2",be}var ba;function Uo(){return ba||(ba=1,Do.exports=Wh()),Do.exports}var Ia;function Kh(){if(Ia)return Hn;Ia=1,zo();var r=Uo(),s=60103;if(Hn.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var i=Symbol.for;s=i("react.element"),Hn.Fragment=i("react.fragment")}var l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,h={key:!0,ref:!0,__self:!0,__source:!0};function p(v,g,w){var k,$={},j=null,A=null;w!==void 0&&(j=""+w),g.key!==void 0&&(j=""+g.key),g.ref!==void 0&&(A=g.ref);for(k in g)a.call(g,k)&&!h.hasOwnProperty(k)&&($[k]=g[k]);if(v&&v.defaultProps)for(k in g=v.defaultProps,g)$[k]===void 0&&($[k]=g[k]);return{$$typeof:s,type:v,key:j,ref:A,props:$,_owner:l.current}}return Hn.jsx=p,Hn.jsxs=p,Hn}var Fa;function Gh(){return Fa||(Fa=1,Fo.exports=Kh()),Fo.exports}var le=Gh(),_e=Uo();const en=Io(_e);var Bo={exports:{}},kt={},Vo={exports:{}},Ho={};var Ma;function Qh(){return Ma||(Ma=1,(function(r){var s,i,l,a;if(typeof performance=="object"&&typeof performance.now=="function"){var h=performance;r.unstable_now=function(){return h.now()}}else{var p=Date,v=p.now();r.unstable_now=function(){return p.now()-v}}if(typeof window>"u"||typeof MessageChannel!="function"){var g=null,w=null,k=function(){if(g!==null)try{var V=r.unstable_now();g(!0,V),g=null}catch(ee){throw setTimeout(k,0),ee}};s=function(V){g!==null?setTimeout(s,0,V):(g=V,setTimeout(k,0))},i=function(V,ee){w=setTimeout(V,ee)},l=function(){clearTimeout(w)},r.unstable_shouldYield=function(){return!1},a=r.unstable_forceFrameRate=function(){}}else{var $=window.setTimeout,j=window.clearTimeout;if(typeof console<"u"){var A=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 A!="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 z=!1,_=null,R=-1,q=5,Q=0;r.unstable_shouldYield=function(){return r.unstable_now()>=Q},a=function(){},r.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<V?Math.floor(1e3/V):5};var ue=new MessageChannel,pe=ue.port2;ue.port1.onmessage=function(){if(_!==null){var V=r.unstable_now();Q=V+q;try{_(!0,V)?pe.postMessage(null):(z=!1,_=null)}catch(ee){throw pe.postMessage(null),ee}}else z=!1},s=function(V){_=V,z||(z=!0,pe.postMessage(null))},i=function(V,ee){R=$(function(){V(r.unstable_now())},ee)},l=function(){j(R),R=-1}}function ce(V,ee){var G=V.length;V.push(ee);e:for(;;){var H=G-1>>>1,ie=V[H];if(ie!==void 0&&0<re(ie,ee))V[H]=ee,V[G]=ie,G=H;else break e}}function ae(V){return V=V[0],V===void 0?null:V}function ne(V){var ee=V[0];if(ee!==void 0){var G=V.pop();if(G!==ee){V[0]=G;e:for(var H=0,ie=V.length;H<ie;){var Ne=2*(H+1)-1,De=V[Ne],pt=Ne+1,Fe=V[pt];if(De!==void 0&&0>re(De,G))Fe!==void 0&&0>re(Fe,De)?(V[H]=Fe,V[pt]=G,H=pt):(V[H]=De,V[Ne]=G,H=Ne);else if(Fe!==void 0&&0>re(Fe,G))V[H]=Fe,V[pt]=G,H=pt;else break e}}return ee}return null}function re(V,ee){var G=V.sortIndex-ee.sortIndex;return G!==0?G:V.id-ee.id}var fe=[],b=[],M=1,K=null,se=3,he=!1,Se=!1,Te=!1;function S(V){for(var ee=ae(b);ee!==null;){if(ee.callback===null)ne(b);else if(ee.startTime<=V)ne(b),ee.sortIndex=ee.expirationTime,ce(fe,ee);else break;ee=ae(b)}}function O(V){if(Te=!1,S(V),!Se)if(ae(fe)!==null)Se=!0,s(W);else{var ee=ae(b);ee!==null&&i(O,ee.startTime-V)}}function W(V,ee){Se=!1,Te&&(Te=!1,l()),he=!0;var G=se;try{for(S(ee),K=ae(fe);K!==null&&(!(K.expirationTime>ee)||V&&!r.unstable_shouldYield());){var H=K.callback;if(typeof H=="function"){K.callback=null,se=K.priorityLevel;var ie=H(K.expirationTime<=ee);ee=r.unstable_now(),typeof ie=="function"?K.callback=ie:K===ae(fe)&&ne(fe),S(ee)}else ne(fe);K=ae(fe)}if(K!==null)var Ne=!0;else{var De=ae(b);De!==null&&i(O,De.startTime-ee),Ne=!1}return Ne}finally{K=null,se=G,he=!1}}var ge=a;r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(V){V.callback=null},r.unstable_continueExecution=function(){Se||he||(Se=!0,s(W))},r.unstable_getCurrentPriorityLevel=function(){return se},r.unstable_getFirstCallbackNode=function(){return ae(fe)},r.unstable_next=function(V){switch(se){case 1:case 2:case 3:var ee=3;break;default:ee=se}var G=se;se=ee;try{return V()}finally{se=G}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=ge,r.unstable_runWithPriority=function(V,ee){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var G=se;se=V;try{return ee()}finally{se=G}},r.unstable_scheduleCallback=function(V,ee,G){var H=r.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?H+G:H):G=H,V){case 1:var ie=-1;break;case 2:ie=250;break;case 5:ie=1073741823;break;case 4:ie=1e4;break;default:ie=5e3}return ie=G+ie,V={id:M++,callback:ee,priorityLevel:V,startTime:G,expirationTime:ie,sortIndex:-1},G>H?(V.sortIndex=G,ce(b,V),ae(fe)===null&&V===ae(b)&&(Te?l():Te=!0,i(O,G-H))):(V.sortIndex=ie,ce(fe,V),Se||he||(Se=!0,s(W))),V},r.unstable_wrapCallback=function(V){var ee=se;return function(){var G=se;se=ee;try{return V.apply(this,arguments)}finally{se=G}}}})(Ho)),Ho}var za;function Jh(){return za||(za=1,Vo.exports=Qh()),Vo.exports}var Da;function Yh(){if(Da)return kt;Da=1;var r=Uo(),s=zo(),i=Jh();function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(l(227));var a=new Set,h={};function p(e,t){v(e,t),v(e+"Capture",t)}function v(e,t){for(h[e]=t,e=0;e<t.length;e++)a.add(t[e])}var g=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),w=/^[: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]*$/,k=Object.prototype.hasOwnProperty,$={},j={};function A(e){return k.call(j,e)?!0:k.call($,e)?!1:w.test(e)?j[e]=!0:($[e]=!0,!1)}function z(e,t,n,o){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function _(e,t,n,o){if(t===null||typeof t>"u"||z(e,t,n,o))return!0;if(o)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function R(e,t,n,o,u,f,y){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=u,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=f,this.removeEmptyString=y}var q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){q[e]=new R(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];q[t]=new R(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){q[e]=new R(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){q[e]=new R(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){q[e]=new R(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){q[e]=new R(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){q[e]=new R(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){q[e]=new R(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){q[e]=new R(e,5,!1,e.toLowerCase(),null,!1,!1)});var Q=/[\-:]([a-z])/g;function ue(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(Q,ue);q[t]=new R(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(Q,ue);q[t]=new R(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(Q,ue);q[t]=new R(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){q[e]=new R(e,1,!1,e.toLowerCase(),null,!1,!1)}),q.xlinkHref=new R("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){q[e]=new R(e,1,!1,e.toLowerCase(),null,!0,!0)});function pe(e,t,n,o){var u=q.hasOwnProperty(t)?q[t]:null,f=u!==null?u.type===0:o?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");f||(_(t,n,u,o)&&(n=null),o||u===null?A(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):u.mustUseProperty?e[u.propertyName]=n===null?u.type===3?!1:"":n:(t=u.attributeName,o=u.attributeNamespace,n===null?e.removeAttribute(t):(u=u.type,n=u===3||u===4&&n===!0?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}var ce=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ae=60103,ne=60106,re=60107,fe=60108,b=60114,M=60109,K=60110,se=60112,he=60113,Se=60120,Te=60115,S=60116,O=60121,W=60128,ge=60129,V=60130,ee=60131;if(typeof Symbol=="function"&&Symbol.for){var G=Symbol.for;ae=G("react.element"),ne=G("react.portal"),re=G("react.fragment"),fe=G("react.strict_mode"),b=G("react.profiler"),M=G("react.provider"),K=G("react.context"),se=G("react.forward_ref"),he=G("react.suspense"),Se=G("react.suspense_list"),Te=G("react.memo"),S=G("react.lazy"),O=G("react.block"),G("react.scope"),W=G("react.opaque.id"),ge=G("react.debug_trace_mode"),V=G("react.offscreen"),ee=G("react.legacy_hidden")}var H=typeof Symbol=="function"&&Symbol.iterator;function ie(e){return e===null||typeof e!="object"?null:(e=H&&e[H]||e["@@iterator"],typeof e=="function"?e:null)}var Ne;function De(e){if(Ne===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ne=t&&t[1]||""}return`
|
|
3
|
+
`+Ne+e}var pt=!1;function Fe(e,t){if(!e||pt)return"";pt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(T){var o=T}Reflect.construct(e,[],t)}else{try{t.call()}catch(T){o=T}e.call(t.prototype)}else{try{throw Error()}catch(T){o=T}e()}}catch(T){if(T&&o&&typeof T.stack=="string"){for(var u=T.stack.split(`
|
|
4
|
+
`),f=o.stack.split(`
|
|
5
|
+
`),y=u.length-1,x=f.length-1;1<=y&&0<=x&&u[y]!==f[x];)x--;for(;1<=y&&0<=x;y--,x--)if(u[y]!==f[x]){if(y!==1||x!==1)do if(y--,x--,0>x||u[y]!==f[x])return`
|
|
6
|
+
`+u[y].replace(" at new "," at ");while(1<=y&&0<=x);break}}}finally{pt=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?De(e):""}function Me(e){switch(e.tag){case 5:return De(e.type);case 16:return De("Lazy");case 13:return De("Suspense");case 19:return De("SuspenseList");case 0:case 2:case 15:return e=Fe(e.type,!1),e;case 11:return e=Fe(e.type.render,!1),e;case 22:return e=Fe(e.type._render,!1),e;case 1:return e=Fe(e.type,!0),e;default:return""}}function Be(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case re:return"Fragment";case ne:return"Portal";case b:return"Profiler";case fe:return"StrictMode";case he:return"Suspense";case Se:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case K:return(e.displayName||"Context")+".Consumer";case M:return(e._context.displayName||"Context")+".Provider";case se:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Te:return Be(e.type);case O:return Be(e._render);case S:t=e._payload,e=e._init;try{return Be(e(t))}catch{}}return null}function Ie(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Ge(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function yt(e){var t=Ge(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var u=n.get,f=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(y){o=""+y,f.call(this,y)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(y){o=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ot(e){e._valueTracker||(e._valueTracker=yt(e))}function Ze(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=Ge(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function P(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 c(e,t){var n=t.checked;return s({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function d(e,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=Ie(t.value!=null?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function m(e,t){t=t.checked,t!=null&&pe(e,"checked",t,!1)}function C(e,t){m(e,t);var n=Ie(t.value),o=t.type;if(n!=null)o==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?L(e,t.type,n):t.hasOwnProperty("defaultValue")&&L(e,t.type,Ie(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function E(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function L(e,t,n){(t!=="number"||P(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function D(e){var t="";return r.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function B(e,t){return e=s({children:void 0},t),(t=D(t.children))&&(e.children=t),e}function Z(e,t,n,o){if(e=e.options,t){t={};for(var u=0;u<n.length;u++)t["$"+n[u]]=!0;for(n=0;n<e.length;n++)u=t.hasOwnProperty("$"+e[n].value),e[n].selected!==u&&(e[n].selected=u),u&&o&&(e[n].defaultSelected=!0)}else{for(n=""+Ie(n),t=null,u=0;u<e.length;u++){if(e[u].value===n){e[u].selected=!0,o&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function oe(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(l(91));return s({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function me(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(l(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(l(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ie(n)}}function Y(e,t){var n=Ie(t.value),o=Ie(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),o!=null&&(e.defaultValue=""+o)}function Ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var Le={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function Ke(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ze(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ke(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var tt,nt=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,o,u){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,u)})}:e})(function(e,t){if(e.namespaceURI!==Le.svg||"innerHTML"in e)e.innerHTML=t;else{for(tt=tt||document.createElement("div"),tt.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=tt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function bt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ue={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},gt=["Webkit","ms","Moz","O"];Object.keys(Ue).forEach(function(e){gt.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ue[t]=Ue[e]})});function vt(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ue.hasOwnProperty(e)&&Ue[e]?(""+t).trim():t+"px"}function rt(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf("--")===0,u=vt(n,t[n],o);n==="float"&&(n="cssFloat"),o?e.setProperty(n,u):e[n]=u}}var er=s({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Nr(e,t){if(t){if(er[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(l(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(l(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(l(61))}if(t.style!=null&&typeof t.style!="object")throw Error(l(62))}}function tr(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 Kt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fs=null,sn=null,Et=null;function on(e){if(e=Xr(e)){if(typeof Fs!="function")throw Error(l(280));var t=e.stateNode;t&&(t=to(t),Fs(e.stateNode,e.type,t))}}function Rn(e){sn?Et?Et.push(e):Et=[e]:sn=e}function Rr(){if(sn){var e=sn,t=Et;if(Et=sn=null,on(e),t)for(e=0;e<t.length;e++)on(t[e])}}function it(e,t){return e(t)}function zt(e,t,n,o,u){return e(t,n,o,u)}function Gt(){}var _r=it,_n=!1,ol=!1;function il(){(sn!==null||Et!==null)&&(Gt(),Rr())}function nm(e,t,n){if(ol)return e(t,n);ol=!0;try{return _r(e,t,n)}finally{ol=!1,il()}}function Lr(e,t){var n=e.stateNode;if(n===null)return null;var o=to(n);if(o===null)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(l(231,t,typeof n));return n}var ll=!1;if(g)try{var br={};Object.defineProperty(br,"passive",{get:function(){ll=!0}}),window.addEventListener("test",br,br),window.removeEventListener("test",br,br)}catch{ll=!1}function rm(e,t,n,o,u,f,y,x,T){var U=Array.prototype.slice.call(arguments,3);try{t.apply(n,U)}catch(de){this.onError(de)}}var Ir=!1,Ms=null,zs=!1,al=null,sm={onError:function(e){Ir=!0,Ms=e}};function om(e,t,n,o,u,f,y,x,T){Ir=!1,Ms=null,rm.apply(sm,arguments)}function im(e,t,n,o,u,f,y,x,T){if(om.apply(this,arguments),Ir){if(Ir){var U=Ms;Ir=!1,Ms=null}else throw Error(l(198));zs||(zs=!0,al=U)}}function Ln(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&1026)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function jc(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 Ac(e){if(Ln(e)!==e)throw Error(l(188))}function lm(e){var t=e.alternate;if(!t){if(t=Ln(e),t===null)throw Error(l(188));return t!==e?null:e}for(var n=e,o=t;;){var u=n.return;if(u===null)break;var f=u.alternate;if(f===null){if(o=u.return,o!==null){n=o;continue}break}if(u.child===f.child){for(f=u.child;f;){if(f===n)return Ac(u),e;if(f===o)return Ac(u),t;f=f.sibling}throw Error(l(188))}if(n.return!==o.return)n=u,o=f;else{for(var y=!1,x=u.child;x;){if(x===n){y=!0,n=u,o=f;break}if(x===o){y=!0,o=u,n=f;break}x=x.sibling}if(!y){for(x=f.child;x;){if(x===n){y=!0,n=f,o=u;break}if(x===o){y=!0,o=f,n=u;break}x=x.sibling}if(!y)throw Error(l(189))}}if(n.alternate!==o)throw Error(l(190))}if(n.tag!==3)throw Error(l(188));return n.stateNode.current===n?e:t}function Tc(e){if(e=lm(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 Oc(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var Nc,ul,Rc,_c,cl=!1,Dt=[],ln=null,an=null,un=null,Fr=new Map,Mr=new Map,zr=[],Lc="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 fl(e,t,n,o,u){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:u,targetContainers:[o]}}function bc(e,t){switch(e){case"focusin":case"focusout":ln=null;break;case"dragenter":case"dragleave":an=null;break;case"mouseover":case"mouseout":un=null;break;case"pointerover":case"pointerout":Fr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mr.delete(t.pointerId)}}function Dr(e,t,n,o,u,f){return e===null||e.nativeEvent!==f?(e=fl(t,n,o,u,f),t!==null&&(t=Xr(t),t!==null&&ul(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function am(e,t,n,o,u){switch(t){case"focusin":return ln=Dr(ln,e,t,n,o,u),!0;case"dragenter":return an=Dr(an,e,t,n,o,u),!0;case"mouseover":return un=Dr(un,e,t,n,o,u),!0;case"pointerover":var f=u.pointerId;return Fr.set(f,Dr(Fr.get(f)||null,e,t,n,o,u)),!0;case"gotpointercapture":return f=u.pointerId,Mr.set(f,Dr(Mr.get(f)||null,e,t,n,o,u)),!0}return!1}function um(e){var t=bn(e.target);if(t!==null){var n=Ln(t);if(n!==null){if(t=n.tag,t===13){if(t=jc(n),t!==null){e.blockedOn=t,_c(e.lanePriority,function(){i.unstable_runWithPriority(e.priority,function(){Rc(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ds(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=yl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=Xr(n),t!==null&&ul(t),e.blockedOn=n,!1;t.shift()}return!0}function Ic(e,t,n){Ds(e)&&n.delete(t)}function cm(){for(cl=!1;0<Dt.length;){var e=Dt[0];if(e.blockedOn!==null){e=Xr(e.blockedOn),e!==null&&Nc(e);break}for(var t=e.targetContainers;0<t.length;){var n=yl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&Dt.shift()}ln!==null&&Ds(ln)&&(ln=null),an!==null&&Ds(an)&&(an=null),un!==null&&Ds(un)&&(un=null),Fr.forEach(Ic),Mr.forEach(Ic)}function Ur(e,t){e.blockedOn===t&&(e.blockedOn=null,cl||(cl=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,cm)))}function Fc(e){function t(u){return Ur(u,e)}if(0<Dt.length){Ur(Dt[0],e);for(var n=1;n<Dt.length;n++){var o=Dt[n];o.blockedOn===e&&(o.blockedOn=null)}}for(ln!==null&&Ur(ln,e),an!==null&&Ur(an,e),un!==null&&Ur(un,e),Fr.forEach(t),Mr.forEach(t),n=0;n<zr.length;n++)o=zr[n],o.blockedOn===e&&(o.blockedOn=null);for(;0<zr.length&&(n=zr[0],n.blockedOn===null);)um(n),n.blockedOn===null&&zr.shift()}function Us(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var nr={animationend:Us("Animation","AnimationEnd"),animationiteration:Us("Animation","AnimationIteration"),animationstart:Us("Animation","AnimationStart"),transitionend:Us("Transition","TransitionEnd")},hl={},Mc={};g&&(Mc=document.createElement("div").style,"AnimationEvent"in window||(delete nr.animationend.animation,delete nr.animationiteration.animation,delete nr.animationstart.animation),"TransitionEvent"in window||delete nr.transitionend.transition);function Bs(e){if(hl[e])return hl[e];if(!nr[e])return e;var t=nr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Mc)return hl[e]=t[n];return e}var zc=Bs("animationend"),Dc=Bs("animationiteration"),Uc=Bs("animationstart"),Bc=Bs("transitionend"),Vc=new Map,dl=new Map,fm=["abort","abort",zc,"animationEnd",Dc,"animationIteration",Uc,"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",Bc,"transitionEnd","waiting","waiting"];function pl(e,t){for(var n=0;n<e.length;n+=2){var o=e[n],u=e[n+1];u="on"+(u[0].toUpperCase()+u.slice(1)),dl.set(o,t),Vc.set(o,u),p(u,[o])}}var hm=i.unstable_now;hm();var Ve=8;function rr(e){if((1&e)!==0)return Ve=15,1;if((2&e)!==0)return Ve=14,2;if((4&e)!==0)return Ve=13,4;var t=24&e;return t!==0?(Ve=12,t):(e&32)!==0?(Ve=11,32):(t=192&e,t!==0?(Ve=10,t):(e&256)!==0?(Ve=9,256):(t=3584&e,t!==0?(Ve=8,t):(e&4096)!==0?(Ve=7,4096):(t=4186112&e,t!==0?(Ve=6,t):(t=62914560&e,t!==0?(Ve=5,t):e&67108864?(Ve=4,67108864):(e&134217728)!==0?(Ve=3,134217728):(t=805306368&e,t!==0?(Ve=2,t):(1073741824&e)!==0?(Ve=1,1073741824):(Ve=8,e))))))}function dm(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 pm(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(l(358,e))}}function Br(e,t){var n=e.pendingLanes;if(n===0)return Ve=0;var o=0,u=0,f=e.expiredLanes,y=e.suspendedLanes,x=e.pingedLanes;if(f!==0)o=f,u=Ve=15;else if(f=n&134217727,f!==0){var T=f&~y;T!==0?(o=rr(T),u=Ve):(x&=f,x!==0&&(o=rr(x),u=Ve))}else f=n&~y,f!==0?(o=rr(f),u=Ve):x!==0&&(o=rr(x),u=Ve);if(o===0)return 0;if(o=31-cn(o),o=n&((0>o?0:1<<o)<<1)-1,t!==0&&t!==o&&(t&y)===0){if(rr(t),u<=Ve)return t;Ve=u}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)n=31-cn(t),u=1<<n,o|=e[n],t&=~u;return o}function Hc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Vs(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=sr(24&~t),e===0?Vs(10,t):e;case 10:return e=sr(192&~t),e===0?Vs(8,t):e;case 8:return e=sr(3584&~t),e===0&&(e=sr(4186112&~t),e===0&&(e=512)),e;case 2:return t=sr(805306368&~t),t===0&&(t=268435456),t}throw Error(l(358,e))}function sr(e){return e&-e}function gl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Hs(e,t,n){e.pendingLanes|=t;var o=t-1;e.suspendedLanes&=o,e.pingedLanes&=o,e=e.eventTimes,t=31-cn(t),e[t]=n}var cn=Math.clz32?Math.clz32:ym,gm=Math.log,mm=Math.LN2;function ym(e){return e===0?32:31-(gm(e)/mm|0)|0}var vm=i.unstable_UserBlockingPriority,wm=i.unstable_runWithPriority,qs=!0;function Sm(e,t,n,o){_n||Gt();var u=ml,f=_n;_n=!0;try{zt(u,e,t,n,o)}finally{(_n=f)||il()}}function xm(e,t,n,o){wm(vm,ml.bind(null,e,t,n,o))}function ml(e,t,n,o){if(qs){var u;if((u=(t&4)===0)&&0<Dt.length&&-1<Lc.indexOf(e))e=fl(null,e,t,n,o),Dt.push(e);else{var f=yl(e,t,n,o);if(f===null)u&&bc(e,o);else{if(u){if(-1<Lc.indexOf(e)){e=fl(f,e,t,n,o),Dt.push(e);return}if(am(f,e,t,n,o))return;bc(e,o)}Sf(e,t,o,null,n)}}}}function yl(e,t,n,o){var u=Kt(o);if(u=bn(u),u!==null){var f=Ln(u);if(f===null)u=null;else{var y=f.tag;if(y===13){if(u=jc(f),u!==null)return u;u=null}else if(y===3){if(f.stateNode.hydrate)return f.tag===3?f.stateNode.containerInfo:null;u=null}else f!==u&&(u=null)}}return Sf(e,t,o,u,n),null}var fn=null,vl=null,Ws=null;function qc(){if(Ws)return Ws;var e,t=vl,n=t.length,o,u="value"in fn?fn.value:fn.textContent,f=u.length;for(e=0;e<n&&t[e]===u[e];e++);var y=n-e;for(o=1;o<=y&&t[n-o]===u[f-o];o++);return Ws=u.slice(e,1<o?1-o:void 0)}function Ks(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 Gs(){return!0}function Wc(){return!1}function Pt(e){function t(n,o,u,f,y){this._reactName=n,this._targetInst=u,this.type=o,this.nativeEvent=f,this.target=y,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(n=e[x],this[x]=n?n(f):f[x]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Gs:Wc,this.isPropagationStopped=Wc,this}return s(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Gs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Gs)},persist:function(){},isPersistent:Gs}),t}var or={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wl=Pt(or),Vr=s({},or,{view:0,detail:0}),Cm=Pt(Vr),Sl,xl,Hr,Qs=s({},Vr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kl,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!==Hr&&(Hr&&e.type==="mousemove"?(Sl=e.screenX-Hr.screenX,xl=e.screenY-Hr.screenY):xl=Sl=0,Hr=e),Sl)},movementY:function(e){return"movementY"in e?e.movementY:xl}}),Kc=Pt(Qs),km=s({},Qs,{dataTransfer:0}),Pm=Pt(km),$m=s({},Vr,{relatedTarget:0}),Cl=Pt($m),Em=s({},or,{animationName:0,elapsedTime:0,pseudoElement:0}),jm=Pt(Em),Am=s({},or,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Tm=Pt(Am),Om=s({},or,{data:0}),Gc=Pt(Om),Nm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rm={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"},_m={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Lm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=_m[e])?!!t[e]:!1}function kl(){return Lm}var bm=s({},Vr,{key:function(e){if(e.key){var t=Nm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ks(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Rm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kl,charCode:function(e){return e.type==="keypress"?Ks(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ks(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Im=Pt(bm),Fm=s({},Qs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qc=Pt(Fm),Mm=s({},Vr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kl}),zm=Pt(Mm),Dm=s({},or,{propertyName:0,elapsedTime:0,pseudoElement:0}),Um=Pt(Dm),Bm=s({},Qs,{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}),Vm=Pt(Bm),Hm=[9,13,27,32],Pl=g&&"CompositionEvent"in window,qr=null;g&&"documentMode"in document&&(qr=document.documentMode);var qm=g&&"TextEvent"in window&&!qr,Jc=g&&(!Pl||qr&&8<qr&&11>=qr),Yc=" ",Xc=!1;function Zc(e,t){switch(e){case"keyup":return Hm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ef(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ir=!1;function Wm(e,t){switch(e){case"compositionend":return ef(t);case"keypress":return t.which!==32?null:(Xc=!0,Yc);case"textInput":return e=t.data,e===Yc&&Xc?null:e;default:return null}}function Km(e,t){if(ir)return e==="compositionend"||!Pl&&Zc(e,t)?(e=qc(),Ws=vl=fn=null,ir=!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 Jc&&t.locale!=="ko"?null:t.data;default:return null}}var Gm={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 tf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Gm[e.type]:t==="textarea"}function nf(e,t,n,o){Rn(o),t=Ys(t,"onChange"),0<t.length&&(n=new wl("onChange","change",null,n,o),e.push({event:n,listeners:t}))}var Wr=null,Kr=null;function Qm(e){gf(e,0)}function Js(e){var t=fr(e);if(Ze(t))return e}function Jm(e,t){if(e==="change")return t}var rf=!1;if(g){var $l;if(g){var El="oninput"in document;if(!El){var sf=document.createElement("div");sf.setAttribute("oninput","return;"),El=typeof sf.oninput=="function"}$l=El}else $l=!1;rf=$l&&(!document.documentMode||9<document.documentMode)}function of(){Wr&&(Wr.detachEvent("onpropertychange",lf),Kr=Wr=null)}function lf(e){if(e.propertyName==="value"&&Js(Kr)){var t=[];if(nf(t,Kr,e,Kt(e)),e=Qm,_n)e(t);else{_n=!0;try{it(e,t)}finally{_n=!1,il()}}}}function Ym(e,t,n){e==="focusin"?(of(),Wr=t,Kr=n,Wr.attachEvent("onpropertychange",lf)):e==="focusout"&&of()}function Xm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Js(Kr)}function Zm(e,t){if(e==="click")return Js(t)}function ey(e,t){if(e==="input"||e==="change")return Js(t)}function ty(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jt=typeof Object.is=="function"?Object.is:ty,ny=Object.prototype.hasOwnProperty;function Gr(e,t){if(jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++)if(!ny.call(t,n[o])||!jt(e[n[o]],t[n[o]]))return!1;return!0}function af(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function uf(e,t){var n=af(e);e=0;for(var o;n;){if(n.nodeType===3){if(o=e+n.textContent.length,e<=t&&o>=t)return{node:n,offset:t-e};e=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=af(n)}}function cf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?cf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ff(){for(var e=window,t=P();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=P(e.document)}return t}function jl(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 ry=g&&"documentMode"in document&&11>=document.documentMode,lr=null,Al=null,Qr=null,Tl=!1;function hf(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Tl||lr==null||lr!==P(o)||(o=lr,"selectionStart"in o&&jl(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Qr&&Gr(Qr,o)||(Qr=o,o=Ys(Al,"onSelect"),0<o.length&&(t=new wl("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=lr)))}pl("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),pl("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),pl(fm,2);for(var df="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Ol=0;Ol<df.length;Ol++)dl.set(df[Ol],0);v("onMouseEnter",["mouseout","mouseover"]),v("onMouseLeave",["mouseout","mouseover"]),v("onPointerEnter",["pointerout","pointerover"]),v("onPointerLeave",["pointerout","pointerover"]),p("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),p("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),p("onBeforeInput",["compositionend","keypress","textInput","paste"]),p("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Jr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),sy=new Set("cancel close invalid load scroll toggle".split(" ").concat(Jr));function pf(e,t,n){var o=e.type||"unknown-event";e.currentTarget=n,im(o,t,void 0,e),e.currentTarget=null}function gf(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var o=e[n],u=o.event;o=o.listeners;e:{var f=void 0;if(t)for(var y=o.length-1;0<=y;y--){var x=o[y],T=x.instance,U=x.currentTarget;if(x=x.listener,T!==f&&u.isPropagationStopped())break e;pf(u,x,U),f=T}else for(y=0;y<o.length;y++){if(x=o[y],T=x.instance,U=x.currentTarget,x=x.listener,T!==f&&u.isPropagationStopped())break e;pf(u,x,U),f=T}}}if(zs)throw e=al,zs=!1,al=null,e}function qe(e,t){var n=Ef(t),o=e+"__bubble";n.has(o)||(wf(t,e,2,!1),n.add(o))}var mf="_reactListening"+Math.random().toString(36).slice(2);function yf(e){e[mf]||(e[mf]=!0,a.forEach(function(t){sy.has(t)||vf(t,!1,e,null),vf(t,!0,e,null)}))}function vf(e,t,n,o){var u=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,f=n;e==="selectionchange"&&n.nodeType!==9&&(f=n.ownerDocument);var y=Ef(f),x=e+"__"+(t?"capture":"bubble");y.has(x)||(t&&(u|=4),wf(f,e,u,t),y.add(x))}function wf(e,t,n,o){var u=dl.get(t);switch(u===void 0?2:u){case 0:u=Sm;break;case 1:u=xm;break;default:u=ml}n=u.bind(null,t,n,e),u=void 0,!ll||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),o?u!==void 0?e.addEventListener(t,n,{capture:!0,passive:u}):e.addEventListener(t,n,!0):u!==void 0?e.addEventListener(t,n,{passive:u}):e.addEventListener(t,n,!1)}function Sf(e,t,n,o,u){var f=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var y=o.tag;if(y===3||y===4){var x=o.stateNode.containerInfo;if(x===u||x.nodeType===8&&x.parentNode===u)break;if(y===4)for(y=o.return;y!==null;){var T=y.tag;if((T===3||T===4)&&(T=y.stateNode.containerInfo,T===u||T.nodeType===8&&T.parentNode===u))return;y=y.return}for(;x!==null;){if(y=bn(x),y===null)return;if(T=y.tag,T===5||T===6){o=f=y;continue e}x=x.parentNode}}o=o.return}nm(function(){var U=f,de=Kt(n),Ee=[];e:{var te=Vc.get(e);if(te!==void 0){var xe=wl,$e=e;switch(e){case"keypress":if(Ks(n)===0)break e;case"keydown":case"keyup":xe=Im;break;case"focusin":$e="focus",xe=Cl;break;case"focusout":$e="blur",xe=Cl;break;case"beforeblur":case"afterblur":xe=Cl;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":xe=Kc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":xe=Pm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":xe=zm;break;case zc:case Dc:case Uc:xe=jm;break;case Bc:xe=Um;break;case"scroll":xe=Cm;break;case"wheel":xe=Vm;break;case"copy":case"cut":case"paste":xe=Tm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":xe=Qc}var ke=(t&4)!==0,F=!ke&&e==="scroll",N=ke?te!==null?te+"Capture":null:te;ke=[];for(var I=U,J;I!==null;){J=I;var X=J.stateNode;if(J.tag===5&&X!==null&&(J=X,N!==null&&(X=Lr(I,N),X!=null&&ke.push(Yr(I,X,J)))),F)break;I=I.return}0<ke.length&&(te=new xe(te,$e,null,n,de),Ee.push({event:te,listeners:ke}))}}if((t&7)===0){e:{if(te=e==="mouseover"||e==="pointerover",xe=e==="mouseout"||e==="pointerout",te&&(t&16)===0&&($e=n.relatedTarget||n.fromElement)&&(bn($e)||$e[cr]))break e;if((xe||te)&&(te=de.window===de?de:(te=de.ownerDocument)?te.defaultView||te.parentWindow:window,xe?($e=n.relatedTarget||n.toElement,xe=U,$e=$e?bn($e):null,$e!==null&&(F=Ln($e),$e!==F||$e.tag!==5&&$e.tag!==6)&&($e=null)):(xe=null,$e=U),xe!==$e)){if(ke=Kc,X="onMouseLeave",N="onMouseEnter",I="mouse",(e==="pointerout"||e==="pointerover")&&(ke=Qc,X="onPointerLeave",N="onPointerEnter",I="pointer"),F=xe==null?te:fr(xe),J=$e==null?te:fr($e),te=new ke(X,I+"leave",xe,n,de),te.target=F,te.relatedTarget=J,X=null,bn(de)===U&&(ke=new ke(N,I+"enter",$e,n,de),ke.target=J,ke.relatedTarget=F,X=ke),F=X,xe&&$e)t:{for(ke=xe,N=$e,I=0,J=ke;J;J=ar(J))I++;for(J=0,X=N;X;X=ar(X))J++;for(;0<I-J;)ke=ar(ke),I--;for(;0<J-I;)N=ar(N),J--;for(;I--;){if(ke===N||N!==null&&ke===N.alternate)break t;ke=ar(ke),N=ar(N)}ke=null}else ke=null;xe!==null&&xf(Ee,te,xe,ke,!1),$e!==null&&F!==null&&xf(Ee,F,$e,ke,!0)}}e:{if(te=U?fr(U):window,xe=te.nodeName&&te.nodeName.toLowerCase(),xe==="select"||xe==="input"&&te.type==="file")var je=Jm;else if(tf(te))if(rf)je=ey;else{je=Xm;var we=Ym}else(xe=te.nodeName)&&xe.toLowerCase()==="input"&&(te.type==="checkbox"||te.type==="radio")&&(je=Zm);if(je&&(je=je(e,U))){nf(Ee,je,n,de);break e}we&&we(e,te,U),e==="focusout"&&(we=te._wrapperState)&&we.controlled&&te.type==="number"&&L(te,"number",te.value)}switch(we=U?fr(U):window,e){case"focusin":(tf(we)||we.contentEditable==="true")&&(lr=we,Al=U,Qr=null);break;case"focusout":Qr=Al=lr=null;break;case"mousedown":Tl=!0;break;case"contextmenu":case"mouseup":case"dragend":Tl=!1,hf(Ee,n,de);break;case"selectionchange":if(ry)break;case"keydown":case"keyup":hf(Ee,n,de)}var Ae;if(Pl)e:{switch(e){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else ir?Zc(e,n)&&(Re="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Re="onCompositionStart");Re&&(Jc&&n.locale!=="ko"&&(ir||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&ir&&(Ae=qc()):(fn=de,vl="value"in fn?fn.value:fn.textContent,ir=!0)),we=Ys(U,Re),0<we.length&&(Re=new Gc(Re,e,null,n,de),Ee.push({event:Re,listeners:we}),Ae?Re.data=Ae:(Ae=ef(n),Ae!==null&&(Re.data=Ae)))),(Ae=qm?Wm(e,n):Km(e,n))&&(U=Ys(U,"onBeforeInput"),0<U.length&&(de=new Gc("onBeforeInput","beforeinput",null,n,de),Ee.push({event:de,listeners:U}),de.data=Ae))}gf(Ee,t)})}function Yr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ys(e,t){for(var n=t+"Capture",o=[];e!==null;){var u=e,f=u.stateNode;u.tag===5&&f!==null&&(u=f,f=Lr(e,n),f!=null&&o.unshift(Yr(e,f,u)),f=Lr(e,t),f!=null&&o.push(Yr(e,f,u))),e=e.return}return o}function ar(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function xf(e,t,n,o,u){for(var f=t._reactName,y=[];n!==null&&n!==o;){var x=n,T=x.alternate,U=x.stateNode;if(T!==null&&T===o)break;x.tag===5&&U!==null&&(x=U,u?(T=Lr(n,f),T!=null&&y.unshift(Yr(n,T,x))):u||(T=Lr(n,f),T!=null&&y.push(Yr(n,T,x)))),n=n.return}y.length!==0&&e.push({event:t,listeners:y})}function Xs(){}var Nl=null,Rl=null;function Cf(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function _l(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 kf=typeof setTimeout=="function"?setTimeout:void 0,oy=typeof clearTimeout=="function"?clearTimeout:void 0;function Ll(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function ur(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function Pf(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 bl=0;function iy(e){return{$$typeof:W,toString:e,valueOf:e}}var Zs=Math.random().toString(36).slice(2),hn="__reactFiber$"+Zs,eo="__reactProps$"+Zs,cr="__reactContainer$"+Zs,$f="__reactEvents$"+Zs;function bn(e){var t=e[hn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[cr]||n[hn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Pf(e);e!==null;){if(n=e[hn])return n;e=Pf(e)}return t}e=n,n=e.parentNode}return null}function Xr(e){return e=e[hn]||e[cr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function fr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(l(33))}function to(e){return e[eo]||null}function Ef(e){var t=e[$f];return t===void 0&&(t=e[$f]=new Set),t}var Il=[],hr=-1;function dn(e){return{current:e}}function We(e){0>hr||(e.current=Il[hr],Il[hr]=null,hr--)}function Qe(e,t){hr++,Il[hr]=e.current,e.current=t}var pn={},ct=dn(pn),wt=dn(!1),In=pn;function dr(e,t){var n=e.type.contextTypes;if(!n)return pn;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var u={},f;for(f in n)u[f]=t[f];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=u),u}function St(e){return e=e.childContextTypes,e!=null}function no(){We(wt),We(ct)}function jf(e,t,n){if(ct.current!==pn)throw Error(l(168));Qe(ct,t),Qe(wt,n)}function Af(e,t,n){var o=e.stateNode;if(e=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var u in o)if(!(u in e))throw Error(l(108,Be(t)||"Unknown",u));return s({},n,o)}function ro(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pn,In=ct.current,Qe(ct,e),Qe(wt,wt.current),!0}function Tf(e,t,n){var o=e.stateNode;if(!o)throw Error(l(169));n?(e=Af(e,t,In),o.__reactInternalMemoizedMergedChildContext=e,We(wt),We(ct),Qe(ct,e)):We(wt),Qe(wt,n)}var Fl=null,Fn=null,ly=i.unstable_runWithPriority,Ml=i.unstable_scheduleCallback,zl=i.unstable_cancelCallback,ay=i.unstable_shouldYield,Of=i.unstable_requestPaint,Dl=i.unstable_now,uy=i.unstable_getCurrentPriorityLevel,so=i.unstable_ImmediatePriority,Nf=i.unstable_UserBlockingPriority,Rf=i.unstable_NormalPriority,_f=i.unstable_LowPriority,Lf=i.unstable_IdlePriority,Ul={},cy=Of!==void 0?Of:function(){},Qt=null,oo=null,Bl=!1,bf=Dl(),ft=1e4>bf?Dl:function(){return Dl()-bf};function pr(){switch(uy()){case so:return 99;case Nf:return 98;case Rf:return 97;case _f:return 96;case Lf:return 95;default:throw Error(l(332))}}function If(e){switch(e){case 99:return so;case 98:return Nf;case 97:return Rf;case 96:return _f;case 95:return Lf;default:throw Error(l(332))}}function Mn(e,t){return e=If(e),ly(e,t)}function Zr(e,t,n){return e=If(e),Ml(e,t,n)}function Ut(){if(oo!==null){var e=oo;oo=null,zl(e)}Ff()}function Ff(){if(!Bl&&Qt!==null){Bl=!0;var e=0;try{var t=Qt;Mn(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),Qt=null}catch(n){throw Qt!==null&&(Qt=Qt.slice(e+1)),Ml(so,Ut),n}finally{Bl=!1}}}var fy=ce.ReactCurrentBatchConfig;function It(e,t){if(e&&e.defaultProps){t=s({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var io=dn(null),lo=null,gr=null,ao=null;function Vl(){ao=gr=lo=null}function Hl(e){var t=io.current;We(io),e.type._context._currentValue=t}function Mf(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 mr(e,t){lo=e,ao=gr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ft=!0),e.firstContext=null)}function At(e,t){if(ao!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(ao=e,t=1073741823),t={context:e,observedBits:t,next:null},gr===null){if(lo===null)throw Error(l(308));gr=t,lo.dependencies={lanes:0,firstContext:t,responders:null}}else gr=gr.next=t;return e._currentValue}var gn=!1;function ql(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function zf(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 mn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function yn(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 Df(e,t){var n=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var u=null,f=null;if(n=n.firstBaseUpdate,n!==null){do{var y={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};f===null?u=f=y:f=f.next=y,n=n.next}while(n!==null);f===null?u=f=t:f=f.next=t}else u=f=t;n={baseState:o.baseState,firstBaseUpdate:u,lastBaseUpdate:f,shared:o.shared,effects:o.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function es(e,t,n,o){var u=e.updateQueue;gn=!1;var f=u.firstBaseUpdate,y=u.lastBaseUpdate,x=u.shared.pending;if(x!==null){u.shared.pending=null;var T=x,U=T.next;T.next=null,y===null?f=U:y.next=U,y=T;var de=e.alternate;if(de!==null){de=de.updateQueue;var Ee=de.lastBaseUpdate;Ee!==y&&(Ee===null?de.firstBaseUpdate=U:Ee.next=U,de.lastBaseUpdate=T)}}if(f!==null){Ee=u.baseState,y=0,de=U=T=null;do{x=f.lane;var te=f.eventTime;if((o&x)===x){de!==null&&(de=de.next={eventTime:te,lane:0,tag:f.tag,payload:f.payload,callback:f.callback,next:null});e:{var xe=e,$e=f;switch(x=t,te=n,$e.tag){case 1:if(xe=$e.payload,typeof xe=="function"){Ee=xe.call(te,Ee,x);break e}Ee=xe;break e;case 3:xe.flags=xe.flags&-4097|64;case 0:if(xe=$e.payload,x=typeof xe=="function"?xe.call(te,Ee,x):xe,x==null)break e;Ee=s({},Ee,x);break e;case 2:gn=!0}}f.callback!==null&&(e.flags|=32,x=u.effects,x===null?u.effects=[f]:x.push(f))}else te={eventTime:te,lane:x,tag:f.tag,payload:f.payload,callback:f.callback,next:null},de===null?(U=de=te,T=Ee):de=de.next=te,y|=x;if(f=f.next,f===null){if(x=u.shared.pending,x===null)break;f=x.next,x.next=null,u.lastBaseUpdate=x,u.shared.pending=null}}while(!0);de===null&&(T=Ee),u.baseState=T,u.firstBaseUpdate=U,u.lastBaseUpdate=de,hs|=y,e.lanes=y,e.memoizedState=Ee}}function Uf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],u=o.callback;if(u!==null){if(o.callback=null,o=n,typeof u!="function")throw Error(l(191,u));u.call(o)}}}var Bf=new r.Component().refs;function uo(e,t,n,o){t=e.memoizedState,n=n(o,t),n=n==null?t:s({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var co={isMounted:function(e){return(e=e._reactInternals)?Ln(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var o=$t(),u=Sn(e),f=mn(o,u);f.payload=t,n!=null&&(f.callback=n),yn(e,f),xn(e,u,o)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=$t(),u=Sn(e),f=mn(o,u);f.tag=1,f.payload=t,n!=null&&(f.callback=n),yn(e,f),xn(e,u,o)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=$t(),o=Sn(e),u=mn(n,o);u.tag=2,t!=null&&(u.callback=t),yn(e,u),xn(e,o,n)}};function Vf(e,t,n,o,u,f,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,f,y):t.prototype&&t.prototype.isPureReactComponent?!Gr(n,o)||!Gr(u,f):!0}function Hf(e,t,n){var o=!1,u=pn,f=t.contextType;return typeof f=="object"&&f!==null?f=At(f):(u=St(t)?In:ct.current,o=t.contextTypes,f=(o=o!=null)?dr(e,u):pn),t=new t(n,f),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=co,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=u,e.__reactInternalMemoizedMaskedChildContext=f),t}function qf(e,t,n,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&co.enqueueReplaceState(t,t.state,null)}function Wl(e,t,n,o){var u=e.stateNode;u.props=n,u.state=e.memoizedState,u.refs=Bf,ql(e);var f=t.contextType;typeof f=="object"&&f!==null?u.context=At(f):(f=St(t)?In:ct.current,u.context=dr(e,f)),es(e,n,u,o),u.state=e.memoizedState,f=t.getDerivedStateFromProps,typeof f=="function"&&(uo(e,t,f,n),u.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(t=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),t!==u.state&&co.enqueueReplaceState(u,u.state,null),es(e,n,u,o),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4)}var fo=Array.isArray;function ts(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(l(309));var o=n.stateNode}if(!o)throw Error(l(147,e));var u=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===u?t.ref:(t=function(f){var y=o.refs;y===Bf&&(y=o.refs={}),f===null?delete y[u]:y[u]=f},t._stringRef=u,t)}if(typeof e!="string")throw Error(l(284));if(!n._owner)throw Error(l(290,e))}return e}function ho(e,t){if(e.type!=="textarea")throw Error(l(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Wf(e){function t(F,N){if(e){var I=F.lastEffect;I!==null?(I.nextEffect=N,F.lastEffect=N):F.firstEffect=F.lastEffect=N,N.nextEffect=null,N.flags=8}}function n(F,N){if(!e)return null;for(;N!==null;)t(F,N),N=N.sibling;return null}function o(F,N){for(F=new Map;N!==null;)N.key!==null?F.set(N.key,N):F.set(N.index,N),N=N.sibling;return F}function u(F,N){return F=Pn(F,N),F.index=0,F.sibling=null,F}function f(F,N,I){return F.index=I,e?(I=F.alternate,I!==null?(I=I.index,I<N?(F.flags=2,N):I):(F.flags=2,N)):N}function y(F){return e&&F.alternate===null&&(F.flags=2),F}function x(F,N,I,J){return N===null||N.tag!==6?(N=Aa(I,F.mode,J),N.return=F,N):(N=u(N,I),N.return=F,N)}function T(F,N,I,J){return N!==null&&N.elementType===I.type?(J=u(N,I.props),J.ref=ts(F,N,I),J.return=F,J):(J=No(I.type,I.key,I.props,null,F.mode,J),J.ref=ts(F,N,I),J.return=F,J)}function U(F,N,I,J){return N===null||N.tag!==4||N.stateNode.containerInfo!==I.containerInfo||N.stateNode.implementation!==I.implementation?(N=Ta(I,F.mode,J),N.return=F,N):(N=u(N,I.children||[]),N.return=F,N)}function de(F,N,I,J,X){return N===null||N.tag!==7?(N=Pr(I,F.mode,J,X),N.return=F,N):(N=u(N,I),N.return=F,N)}function Ee(F,N,I){if(typeof N=="string"||typeof N=="number")return N=Aa(""+N,F.mode,I),N.return=F,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case ae:return I=No(N.type,N.key,N.props,null,F.mode,I),I.ref=ts(F,null,N),I.return=F,I;case ne:return N=Ta(N,F.mode,I),N.return=F,N}if(fo(N)||ie(N))return N=Pr(N,F.mode,I,null),N.return=F,N;ho(F,N)}return null}function te(F,N,I,J){var X=N!==null?N.key:null;if(typeof I=="string"||typeof I=="number")return X!==null?null:x(F,N,""+I,J);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case ae:return I.key===X?I.type===re?de(F,N,I.props.children,J,X):T(F,N,I,J):null;case ne:return I.key===X?U(F,N,I,J):null}if(fo(I)||ie(I))return X!==null?null:de(F,N,I,J,null);ho(F,I)}return null}function xe(F,N,I,J,X){if(typeof J=="string"||typeof J=="number")return F=F.get(I)||null,x(N,F,""+J,X);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case ae:return F=F.get(J.key===null?I:J.key)||null,J.type===re?de(N,F,J.props.children,X,J.key):T(N,F,J,X);case ne:return F=F.get(J.key===null?I:J.key)||null,U(N,F,J,X)}if(fo(J)||ie(J))return F=F.get(I)||null,de(N,F,J,X,null);ho(N,J)}return null}function $e(F,N,I,J){for(var X=null,je=null,we=N,Ae=N=0,Re=null;we!==null&&Ae<I.length;Ae++){we.index>Ae?(Re=we,we=null):Re=we.sibling;var Oe=te(F,we,I[Ae],J);if(Oe===null){we===null&&(we=Re);break}e&&we&&Oe.alternate===null&&t(F,we),N=f(Oe,N,Ae),je===null?X=Oe:je.sibling=Oe,je=Oe,we=Re}if(Ae===I.length)return n(F,we),X;if(we===null){for(;Ae<I.length;Ae++)we=Ee(F,I[Ae],J),we!==null&&(N=f(we,N,Ae),je===null?X=we:je.sibling=we,je=we);return X}for(we=o(F,we);Ae<I.length;Ae++)Re=xe(we,F,Ae,I[Ae],J),Re!==null&&(e&&Re.alternate!==null&&we.delete(Re.key===null?Ae:Re.key),N=f(Re,N,Ae),je===null?X=Re:je.sibling=Re,je=Re);return e&&we.forEach(function($n){return t(F,$n)}),X}function ke(F,N,I,J){var X=ie(I);if(typeof X!="function")throw Error(l(150));if(I=X.call(I),I==null)throw Error(l(151));for(var je=X=null,we=N,Ae=N=0,Re=null,Oe=I.next();we!==null&&!Oe.done;Ae++,Oe=I.next()){we.index>Ae?(Re=we,we=null):Re=we.sibling;var $n=te(F,we,Oe.value,J);if($n===null){we===null&&(we=Re);break}e&&we&&$n.alternate===null&&t(F,we),N=f($n,N,Ae),je===null?X=$n:je.sibling=$n,je=$n,we=Re}if(Oe.done)return n(F,we),X;if(we===null){for(;!Oe.done;Ae++,Oe=I.next())Oe=Ee(F,Oe.value,J),Oe!==null&&(N=f(Oe,N,Ae),je===null?X=Oe:je.sibling=Oe,je=Oe);return X}for(we=o(F,we);!Oe.done;Ae++,Oe=I.next())Oe=xe(we,F,Ae,Oe.value,J),Oe!==null&&(e&&Oe.alternate!==null&&we.delete(Oe.key===null?Ae:Oe.key),N=f(Oe,N,Ae),je===null?X=Oe:je.sibling=Oe,je=Oe);return e&&we.forEach(function(By){return t(F,By)}),X}return function(F,N,I,J){var X=typeof I=="object"&&I!==null&&I.type===re&&I.key===null;X&&(I=I.props.children);var je=typeof I=="object"&&I!==null;if(je)switch(I.$$typeof){case ae:e:{for(je=I.key,X=N;X!==null;){if(X.key===je){switch(X.tag){case 7:if(I.type===re){n(F,X.sibling),N=u(X,I.props.children),N.return=F,F=N;break e}break;default:if(X.elementType===I.type){n(F,X.sibling),N=u(X,I.props),N.ref=ts(F,X,I),N.return=F,F=N;break e}}n(F,X);break}else t(F,X);X=X.sibling}I.type===re?(N=Pr(I.props.children,F.mode,J,I.key),N.return=F,F=N):(J=No(I.type,I.key,I.props,null,F.mode,J),J.ref=ts(F,N,I),J.return=F,F=J)}return y(F);case ne:e:{for(X=I.key;N!==null;){if(N.key===X)if(N.tag===4&&N.stateNode.containerInfo===I.containerInfo&&N.stateNode.implementation===I.implementation){n(F,N.sibling),N=u(N,I.children||[]),N.return=F,F=N;break e}else{n(F,N);break}else t(F,N);N=N.sibling}N=Ta(I,F.mode,J),N.return=F,F=N}return y(F)}if(typeof I=="string"||typeof I=="number")return I=""+I,N!==null&&N.tag===6?(n(F,N.sibling),N=u(N,I),N.return=F,F=N):(n(F,N),N=Aa(I,F.mode,J),N.return=F,F=N),y(F);if(fo(I))return $e(F,N,I,J);if(ie(I))return ke(F,N,I,J);if(je&&ho(F,I),typeof I>"u"&&!X)switch(F.tag){case 1:case 22:case 0:case 11:case 15:throw Error(l(152,Be(F.type)||"Component"))}return n(F,N)}}var po=Wf(!0),Kf=Wf(!1),ns={},Bt=dn(ns),rs=dn(ns),ss=dn(ns);function zn(e){if(e===ns)throw Error(l(174));return e}function Kl(e,t){switch(Qe(ss,t),Qe(rs,e),Qe(Bt,ns),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ze(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ze(t,e)}We(Bt),Qe(Bt,t)}function yr(){We(Bt),We(rs),We(ss)}function Gf(e){zn(ss.current);var t=zn(Bt.current),n=ze(t,e.type);t!==n&&(Qe(rs,e),Qe(Bt,n))}function Gl(e){rs.current===e&&(We(Bt),We(rs))}var Je=dn(0);function go(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&64)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Jt=null,vn=null,Vt=!1;function Qf(e,t){var n=Nt(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Jf(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 Ql(e){if(Vt){var t=vn;if(t){var n=t;if(!Jf(e,t)){if(t=ur(n.nextSibling),!t||!Jf(e,t)){e.flags=e.flags&-1025|2,Vt=!1,Jt=e;return}Qf(Jt,n)}Jt=e,vn=ur(t.firstChild)}else e.flags=e.flags&-1025|2,Vt=!1,Jt=e}}function Yf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Jt=e}function mo(e){if(e!==Jt)return!1;if(!Vt)return Yf(e),Vt=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!_l(t,e.memoizedProps))for(t=vn;t;)Qf(e,t),t=ur(t.nextSibling);if(Yf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){vn=ur(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}vn=null}}else vn=Jt?ur(e.stateNode.nextSibling):null;return!0}function Jl(){vn=Jt=null,Vt=!1}var vr=[];function Yl(){for(var e=0;e<vr.length;e++)vr[e]._workInProgressVersionPrimary=null;vr.length=0}var os=ce.ReactCurrentDispatcher,Tt=ce.ReactCurrentBatchConfig,is=0,Xe=null,ht=null,lt=null,yo=!1,ls=!1;function xt(){throw Error(l(321))}function Xl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!jt(e[n],t[n]))return!1;return!0}function Zl(e,t,n,o,u,f){if(is=f,Xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,os.current=e===null||e.memoizedState===null?dy:py,e=n(o,u),ls){f=0;do{if(ls=!1,!(25>f))throw Error(l(301));f+=1,lt=ht=null,t.updateQueue=null,os.current=gy,e=n(o,u)}while(ls)}if(os.current=xo,t=ht!==null&&ht.next!==null,is=0,lt=ht=Xe=null,yo=!1,t)throw Error(l(300));return e}function Dn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?Xe.memoizedState=lt=e:lt=lt.next=e,lt}function Un(){if(ht===null){var e=Xe.alternate;e=e!==null?e.memoizedState:null}else e=ht.next;var t=lt===null?Xe.memoizedState:lt.next;if(t!==null)lt=t,ht=e;else{if(e===null)throw Error(l(310));ht=e,e={memoizedState:ht.memoizedState,baseState:ht.baseState,baseQueue:ht.baseQueue,queue:ht.queue,next:null},lt===null?Xe.memoizedState=lt=e:lt=lt.next=e}return lt}function Ht(e,t){return typeof t=="function"?t(e):t}function as(e){var t=Un(),n=t.queue;if(n===null)throw Error(l(311));n.lastRenderedReducer=e;var o=ht,u=o.baseQueue,f=n.pending;if(f!==null){if(u!==null){var y=u.next;u.next=f.next,f.next=y}o.baseQueue=u=f,n.pending=null}if(u!==null){u=u.next,o=o.baseState;var x=y=f=null,T=u;do{var U=T.lane;if((is&U)===U)x!==null&&(x=x.next={lane:0,action:T.action,eagerReducer:T.eagerReducer,eagerState:T.eagerState,next:null}),o=T.eagerReducer===e?T.eagerState:e(o,T.action);else{var de={lane:U,action:T.action,eagerReducer:T.eagerReducer,eagerState:T.eagerState,next:null};x===null?(y=x=de,f=o):x=x.next=de,Xe.lanes|=U,hs|=U}T=T.next}while(T!==null&&T!==u);x===null?f=o:x.next=y,jt(o,t.memoizedState)||(Ft=!0),t.memoizedState=o,t.baseState=f,t.baseQueue=x,n.lastRenderedState=o}return[t.memoizedState,n.dispatch]}function us(e){var t=Un(),n=t.queue;if(n===null)throw Error(l(311));n.lastRenderedReducer=e;var o=n.dispatch,u=n.pending,f=t.memoizedState;if(u!==null){n.pending=null;var y=u=u.next;do f=e(f,y.action),y=y.next;while(y!==u);jt(f,t.memoizedState)||(Ft=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),n.lastRenderedState=f}return[f,o]}function Xf(e,t,n){var o=t._getVersion;o=o(t._source);var u=t._workInProgressVersionPrimary;if(u!==null?e=u===o:(e=e.mutableReadLanes,(e=(is&e)===e)&&(t._workInProgressVersionPrimary=o,vr.push(t))),e)return n(t._source);throw vr.push(t),Error(l(350))}function Zf(e,t,n,o){var u=mt;if(u===null)throw Error(l(349));var f=t._getVersion,y=f(t._source),x=os.current,T=x.useState(function(){return Xf(u,t,n)}),U=T[1],de=T[0];T=lt;var Ee=e.memoizedState,te=Ee.refs,xe=te.getSnapshot,$e=Ee.source;Ee=Ee.subscribe;var ke=Xe;return e.memoizedState={refs:te,source:t,subscribe:o},x.useEffect(function(){te.getSnapshot=n,te.setSnapshot=U;var F=f(t._source);if(!jt(y,F)){F=n(t._source),jt(de,F)||(U(F),F=Sn(ke),u.mutableReadLanes|=F&u.pendingLanes),F=u.mutableReadLanes,u.entangledLanes|=F;for(var N=u.entanglements,I=F;0<I;){var J=31-cn(I),X=1<<J;N[J]|=F,I&=~X}}},[n,t,o]),x.useEffect(function(){return o(t._source,function(){var F=te.getSnapshot,N=te.setSnapshot;try{N(F(t._source));var I=Sn(ke);u.mutableReadLanes|=I&u.pendingLanes}catch(J){N(function(){throw J})}})},[t,o]),jt(xe,n)&&jt($e,t)&&jt(Ee,o)||(e={pending:null,dispatch:null,lastRenderedReducer:Ht,lastRenderedState:de},e.dispatch=U=ra.bind(null,Xe,e),T.queue=e,T.baseQueue=null,de=Xf(u,t,n),T.memoizedState=T.baseState=de),de}function eh(e,t,n){var o=Un();return Zf(o,e,t,n)}function cs(e){var t=Dn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Ht,lastRenderedState:e},e=e.dispatch=ra.bind(null,Xe,e),[t.memoizedState,e]}function vo(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},t=Xe.updateQueue,t===null?(t={lastEffect:null},Xe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(o=n.next,n.next=e,e.next=o,t.lastEffect=e)),e}function th(e){var t=Dn();return e={current:e},t.memoizedState=e}function wo(){return Un().memoizedState}function ea(e,t,n,o){var u=Dn();Xe.flags|=e,u.memoizedState=vo(1|t,n,void 0,o===void 0?null:o)}function ta(e,t,n,o){var u=Un();o=o===void 0?null:o;var f=void 0;if(ht!==null){var y=ht.memoizedState;if(f=y.destroy,o!==null&&Xl(o,y.deps)){vo(t,n,f,o);return}}Xe.flags|=e,u.memoizedState=vo(1|t,n,f,o)}function nh(e,t){return ea(516,4,e,t)}function So(e,t){return ta(516,4,e,t)}function rh(e,t){return ta(4,2,e,t)}function sh(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 oh(e,t,n){return n=n!=null?n.concat([e]):null,ta(4,2,sh.bind(null,t,e),n)}function na(){}function ih(e,t){var n=Un();t=t===void 0?null:t;var o=n.memoizedState;return o!==null&&t!==null&&Xl(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function lh(e,t){var n=Un();t=t===void 0?null:t;var o=n.memoizedState;return o!==null&&t!==null&&Xl(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function hy(e,t){var n=pr();Mn(98>n?98:n,function(){e(!0)}),Mn(97<n?97:n,function(){var o=Tt.transition;Tt.transition=1;try{e(!1),t()}finally{Tt.transition=o}})}function ra(e,t,n){var o=$t(),u=Sn(e),f={lane:u,action:n,eagerReducer:null,eagerState:null,next:null},y=t.pending;if(y===null?f.next=f:(f.next=y.next,y.next=f),t.pending=f,y=e.alternate,e===Xe||y!==null&&y===Xe)ls=yo=!0;else{if(e.lanes===0&&(y===null||y.lanes===0)&&(y=t.lastRenderedReducer,y!==null))try{var x=t.lastRenderedState,T=y(x,n);if(f.eagerReducer=y,f.eagerState=T,jt(T,x))return}catch{}xn(e,u,o)}}var xo={readContext:At,useCallback:xt,useContext:xt,useEffect:xt,useImperativeHandle:xt,useLayoutEffect:xt,useMemo:xt,useReducer:xt,useRef:xt,useState:xt,useDebugValue:xt,useDeferredValue:xt,useTransition:xt,useMutableSource:xt,useOpaqueIdentifier:xt,unstable_isNewReconciler:!1},dy={readContext:At,useCallback:function(e,t){return Dn().memoizedState=[e,t===void 0?null:t],e},useContext:At,useEffect:nh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ea(4,2,sh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ea(4,2,e,t)},useMemo:function(e,t){var n=Dn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=Dn();return t=n!==void 0?n(t):t,o.memoizedState=o.baseState=t,e=o.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=ra.bind(null,Xe,e),[o.memoizedState,e]},useRef:th,useState:cs,useDebugValue:na,useDeferredValue:function(e){var t=cs(e),n=t[0],o=t[1];return nh(function(){var u=Tt.transition;Tt.transition=1;try{o(e)}finally{Tt.transition=u}},[e]),n},useTransition:function(){var e=cs(!1),t=e[0];return e=hy.bind(null,e[1]),th(e),[e,t]},useMutableSource:function(e,t,n){var o=Dn();return o.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},Zf(o,e,t,n)},useOpaqueIdentifier:function(){if(Vt){var e=!1,t=iy(function(){throw e||(e=!0,n("r:"+(bl++).toString(36))),Error(l(355))}),n=cs(t)[1];return(Xe.mode&2)===0&&(Xe.flags|=516,vo(5,function(){n("r:"+(bl++).toString(36))},void 0,null)),t}return t="r:"+(bl++).toString(36),cs(t),t},unstable_isNewReconciler:!1},py={readContext:At,useCallback:ih,useContext:At,useEffect:So,useImperativeHandle:oh,useLayoutEffect:rh,useMemo:lh,useReducer:as,useRef:wo,useState:function(){return as(Ht)},useDebugValue:na,useDeferredValue:function(e){var t=as(Ht),n=t[0],o=t[1];return So(function(){var u=Tt.transition;Tt.transition=1;try{o(e)}finally{Tt.transition=u}},[e]),n},useTransition:function(){var e=as(Ht)[0];return[wo().current,e]},useMutableSource:eh,useOpaqueIdentifier:function(){return as(Ht)[0]},unstable_isNewReconciler:!1},gy={readContext:At,useCallback:ih,useContext:At,useEffect:So,useImperativeHandle:oh,useLayoutEffect:rh,useMemo:lh,useReducer:us,useRef:wo,useState:function(){return us(Ht)},useDebugValue:na,useDeferredValue:function(e){var t=us(Ht),n=t[0],o=t[1];return So(function(){var u=Tt.transition;Tt.transition=1;try{o(e)}finally{Tt.transition=u}},[e]),n},useTransition:function(){var e=us(Ht)[0];return[wo().current,e]},useMutableSource:eh,useOpaqueIdentifier:function(){return us(Ht)[0]},unstable_isNewReconciler:!1},my=ce.ReactCurrentOwner,Ft=!1;function Ct(e,t,n,o){t.child=e===null?Kf(t,null,n,o):po(t,e.child,n,o)}function ah(e,t,n,o,u){n=n.render;var f=t.ref;return mr(t,u),o=Zl(e,t,n,o,f,u),e!==null&&!Ft?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~u,Yt(e,t,u)):(t.flags|=1,Ct(e,t,o,u),t.child)}function uh(e,t,n,o,u,f){if(e===null){var y=n.type;return typeof y=="function"&&!Ea(y)&&y.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=y,ch(e,t,y,o,u,f)):(e=No(n.type,null,o,t,t.mode,f),e.ref=t.ref,e.return=t,t.child=e)}return y=e.child,(u&f)===0&&(u=y.memoizedProps,n=n.compare,n=n!==null?n:Gr,n(u,o)&&e.ref===t.ref)?Yt(e,t,f):(t.flags|=1,e=Pn(y,o),e.ref=t.ref,e.return=t,t.child=e)}function ch(e,t,n,o,u,f){if(e!==null&&Gr(e.memoizedProps,o)&&e.ref===t.ref)if(Ft=!1,(f&u)!==0)(e.flags&16384)!==0&&(Ft=!0);else return t.lanes=e.lanes,Yt(e,t,f);return oa(e,t,n,o,f)}function sa(e,t,n){var o=t.pendingProps,u=o.children,f=e!==null?e.memoizedState:null;if(o.mode==="hidden"||o.mode==="unstable-defer-without-hiding")if((t.mode&4)===0)t.memoizedState={baseLanes:0},Oo(t,n);else if((n&1073741824)!==0)t.memoizedState={baseLanes:0},Oo(t,f!==null?f.baseLanes:n);else return e=f!==null?f.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Oo(t,e),null;else f!==null?(o=f.baseLanes|n,t.memoizedState=null):o=n,Oo(t,o);return Ct(e,t,u,n),t.child}function fh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function oa(e,t,n,o,u){var f=St(n)?In:ct.current;return f=dr(t,f),mr(t,u),n=Zl(e,t,n,o,f,u),e!==null&&!Ft?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~u,Yt(e,t,u)):(t.flags|=1,Ct(e,t,n,u),t.child)}function hh(e,t,n,o,u){if(St(n)){var f=!0;ro(t)}else f=!1;if(mr(t,u),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Hf(t,n,o),Wl(t,n,o,u),o=!0;else if(e===null){var y=t.stateNode,x=t.memoizedProps;y.props=x;var T=y.context,U=n.contextType;typeof U=="object"&&U!==null?U=At(U):(U=St(n)?In:ct.current,U=dr(t,U));var de=n.getDerivedStateFromProps,Ee=typeof de=="function"||typeof y.getSnapshotBeforeUpdate=="function";Ee||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(x!==o||T!==U)&&qf(t,y,o,U),gn=!1;var te=t.memoizedState;y.state=te,es(t,o,y,u),T=t.memoizedState,x!==o||te!==T||wt.current||gn?(typeof de=="function"&&(uo(t,n,de,o),T=t.memoizedState),(x=gn||Vf(t,n,x,o,te,T,U))?(Ee||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(t.flags|=4)):(typeof y.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=o,t.memoizedState=T),y.props=o,y.state=T,y.context=U,o=x):(typeof y.componentDidMount=="function"&&(t.flags|=4),o=!1)}else{y=t.stateNode,zf(e,t),x=t.memoizedProps,U=t.type===t.elementType?x:It(t.type,x),y.props=U,Ee=t.pendingProps,te=y.context,T=n.contextType,typeof T=="object"&&T!==null?T=At(T):(T=St(n)?In:ct.current,T=dr(t,T));var xe=n.getDerivedStateFromProps;(de=typeof xe=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(x!==Ee||te!==T)&&qf(t,y,o,T),gn=!1,te=t.memoizedState,y.state=te,es(t,o,y,u);var $e=t.memoizedState;x!==Ee||te!==$e||wt.current||gn?(typeof xe=="function"&&(uo(t,n,xe,o),$e=t.memoizedState),(U=gn||Vf(t,n,U,o,te,$e,T))?(de||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(o,$e,T),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(o,$e,T)),typeof y.componentDidUpdate=="function"&&(t.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof y.componentDidUpdate!="function"||x===e.memoizedProps&&te===e.memoizedState||(t.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&te===e.memoizedState||(t.flags|=256),t.memoizedProps=o,t.memoizedState=$e),y.props=o,y.state=$e,y.context=T,o=U):(typeof y.componentDidUpdate!="function"||x===e.memoizedProps&&te===e.memoizedState||(t.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&te===e.memoizedState||(t.flags|=256),o=!1)}return ia(e,t,n,o,f,u)}function ia(e,t,n,o,u,f){fh(e,t);var y=(t.flags&64)!==0;if(!o&&!y)return u&&Tf(t,n,!1),Yt(e,t,f);o=t.stateNode,my.current=t;var x=y&&typeof n.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&y?(t.child=po(t,e.child,null,f),t.child=po(t,null,x,f)):Ct(e,t,x,f),t.memoizedState=o.state,u&&Tf(t,n,!0),t.child}function dh(e){var t=e.stateNode;t.pendingContext?jf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&jf(e,t.context,!1),Kl(e,t.containerInfo)}var Co={dehydrated:null,retryLane:0};function ph(e,t,n){var o=t.pendingProps,u=Je.current,f=!1,y;return(y=(t.flags&64)!==0)||(y=e!==null&&e.memoizedState===null?!1:(u&2)!==0),y?(f=!0,t.flags&=-65):e!==null&&e.memoizedState===null||o.fallback===void 0||o.unstable_avoidThisFallback===!0||(u|=1),Qe(Je,u&1),e===null?(o.fallback!==void 0&&Ql(t),e=o.children,u=o.fallback,f?(e=gh(t,e,u,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Co,e):typeof o.unstable_expectedLoadTime=="number"?(e=gh(t,e,u,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Co,t.lanes=33554432,e):(n=ja({mode:"visible",children:e},t.mode,n,null),n.return=t,t.child=n)):e.memoizedState!==null?f?(o=yh(e,t,o.children,o.fallback,n),f=t.child,u=e.child.memoizedState,f.memoizedState=u===null?{baseLanes:n}:{baseLanes:u.baseLanes|n},f.childLanes=e.childLanes&~n,t.memoizedState=Co,o):(n=mh(e,t,o.children,n),t.memoizedState=null,n):f?(o=yh(e,t,o.children,o.fallback,n),f=t.child,u=e.child.memoizedState,f.memoizedState=u===null?{baseLanes:n}:{baseLanes:u.baseLanes|n},f.childLanes=e.childLanes&~n,t.memoizedState=Co,o):(n=mh(e,t,o.children,n),t.memoizedState=null,n)}function gh(e,t,n,o){var u=e.mode,f=e.child;return t={mode:"hidden",children:t},(u&2)===0&&f!==null?(f.childLanes=0,f.pendingProps=t):f=ja(t,u,0,null),n=Pr(n,u,o,null),f.return=e,n.return=e,f.sibling=n,e.child=f,n}function mh(e,t,n,o){var u=e.child;return e=u.sibling,n=Pn(u,{mode:"visible",children:n}),(t.mode&2)===0&&(n.lanes=o),n.return=t,n.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function yh(e,t,n,o,u){var f=t.mode,y=e.child;e=y.sibling;var x={mode:"hidden",children:n};return(f&2)===0&&t.child!==y?(n=t.child,n.childLanes=0,n.pendingProps=x,y=n.lastEffect,y!==null?(t.firstEffect=n.firstEffect,t.lastEffect=y,y.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Pn(y,x),e!==null?o=Pn(e,o):(o=Pr(o,f,u,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,o}function vh(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Mf(e.return,t)}function la(e,t,n,o,u,f){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:u,lastEffect:f}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=o,y.tail=n,y.tailMode=u,y.lastEffect=f)}function wh(e,t,n){var o=t.pendingProps,u=o.revealOrder,f=o.tail;if(Ct(e,t,o.children,n),o=Je.current,(o&2)!==0)o=o&1|2,t.flags|=64;else{if(e!==null&&(e.flags&64)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&vh(e,n);else if(e.tag===19)vh(e,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(Qe(Je,o),(t.mode&2)===0)t.memoizedState=null;else switch(u){case"forwards":for(n=t.child,u=null;n!==null;)e=n.alternate,e!==null&&go(e)===null&&(u=n),n=n.sibling;n=u,n===null?(u=t.child,t.child=null):(u=n.sibling,n.sibling=null),la(t,!1,u,n,f,t.lastEffect);break;case"backwards":for(n=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&go(e)===null){t.child=u;break}e=u.sibling,u.sibling=n,n=u,u=e}la(t,!0,n,null,f,t.lastEffect);break;case"together":la(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Yt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),hs|=t.lanes,(n&t.childLanes)!==0){if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,n=Pn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Pn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var Sh,aa,xh,Ch;Sh=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}},aa=function(){},xh=function(e,t,n,o){var u=e.memoizedProps;if(u!==o){e=t.stateNode,zn(Bt.current);var f=null;switch(n){case"input":u=c(e,u),o=c(e,o),f=[];break;case"option":u=B(e,u),o=B(e,o),f=[];break;case"select":u=s({},u,{value:void 0}),o=s({},o,{value:void 0}),f=[];break;case"textarea":u=oe(e,u),o=oe(e,o),f=[];break;default:typeof u.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=Xs)}Nr(n,o);var y;n=null;for(U in u)if(!o.hasOwnProperty(U)&&u.hasOwnProperty(U)&&u[U]!=null)if(U==="style"){var x=u[U];for(y in x)x.hasOwnProperty(y)&&(n||(n={}),n[y]="")}else U!=="dangerouslySetInnerHTML"&&U!=="children"&&U!=="suppressContentEditableWarning"&&U!=="suppressHydrationWarning"&&U!=="autoFocus"&&(h.hasOwnProperty(U)?f||(f=[]):(f=f||[]).push(U,null));for(U in o){var T=o[U];if(x=u?.[U],o.hasOwnProperty(U)&&T!==x&&(T!=null||x!=null))if(U==="style")if(x){for(y in x)!x.hasOwnProperty(y)||T&&T.hasOwnProperty(y)||(n||(n={}),n[y]="");for(y in T)T.hasOwnProperty(y)&&x[y]!==T[y]&&(n||(n={}),n[y]=T[y])}else n||(f||(f=[]),f.push(U,n)),n=T;else U==="dangerouslySetInnerHTML"?(T=T?T.__html:void 0,x=x?x.__html:void 0,T!=null&&x!==T&&(f=f||[]).push(U,T)):U==="children"?typeof T!="string"&&typeof T!="number"||(f=f||[]).push(U,""+T):U!=="suppressContentEditableWarning"&&U!=="suppressHydrationWarning"&&(h.hasOwnProperty(U)?(T!=null&&U==="onScroll"&&qe("scroll",e),f||x===T||(f=[])):typeof T=="object"&&T!==null&&T.$$typeof===W?T.toString():(f=f||[]).push(U,T))}n&&(f=f||[]).push("style",n);var U=f;(t.updateQueue=U)&&(t.flags|=4)}},Ch=function(e,t,n,o){n!==o&&(t.flags|=4)};function fs(e,t){if(!Vt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function yy(e,t,n){var o=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return St(t.type)&&no(),null;case 3:return yr(),We(wt),We(ct),Yl(),o=t.stateNode,o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(mo(t)?t.flags|=4:o.hydrate||(t.flags|=256)),aa(t),null;case 5:Gl(t);var u=zn(ss.current);if(n=t.type,e!==null&&t.stateNode!=null)xh(e,t,n,o,u),e.ref!==t.ref&&(t.flags|=128);else{if(!o){if(t.stateNode===null)throw Error(l(166));return null}if(e=zn(Bt.current),mo(t)){o=t.stateNode,n=t.type;var f=t.memoizedProps;switch(o[hn]=t,o[eo]=f,n){case"dialog":qe("cancel",o),qe("close",o);break;case"iframe":case"object":case"embed":qe("load",o);break;case"video":case"audio":for(e=0;e<Jr.length;e++)qe(Jr[e],o);break;case"source":qe("error",o);break;case"img":case"image":case"link":qe("error",o),qe("load",o);break;case"details":qe("toggle",o);break;case"input":d(o,f),qe("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!f.multiple},qe("invalid",o);break;case"textarea":me(o,f),qe("invalid",o)}Nr(n,f),e=null;for(var y in f)f.hasOwnProperty(y)&&(u=f[y],y==="children"?typeof u=="string"?o.textContent!==u&&(e=["children",u]):typeof u=="number"&&o.textContent!==""+u&&(e=["children",""+u]):h.hasOwnProperty(y)&&u!=null&&y==="onScroll"&&qe("scroll",o));switch(n){case"input":ot(o),E(o,f,!0);break;case"textarea":ot(o),Ce(o);break;case"select":case"option":break;default:typeof f.onClick=="function"&&(o.onclick=Xs)}o=e,t.updateQueue=o,o!==null&&(t.flags|=4)}else{switch(y=u.nodeType===9?u:u.ownerDocument,e===Le.html&&(e=Ke(n)),e===Le.html?n==="script"?(e=y.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=y.createElement(n,{is:o.is}):(e=y.createElement(n),n==="select"&&(y=e,o.multiple?y.multiple=!0:o.size&&(y.size=o.size))):e=y.createElementNS(e,n),e[hn]=t,e[eo]=o,Sh(e,t,!1,!1),t.stateNode=e,y=tr(n,o),n){case"dialog":qe("cancel",e),qe("close",e),u=o;break;case"iframe":case"object":case"embed":qe("load",e),u=o;break;case"video":case"audio":for(u=0;u<Jr.length;u++)qe(Jr[u],e);u=o;break;case"source":qe("error",e),u=o;break;case"img":case"image":case"link":qe("error",e),qe("load",e),u=o;break;case"details":qe("toggle",e),u=o;break;case"input":d(e,o),u=c(e,o),qe("invalid",e);break;case"option":u=B(e,o);break;case"select":e._wrapperState={wasMultiple:!!o.multiple},u=s({},o,{value:void 0}),qe("invalid",e);break;case"textarea":me(e,o),u=oe(e,o),qe("invalid",e);break;default:u=o}Nr(n,u);var x=u;for(f in x)if(x.hasOwnProperty(f)){var T=x[f];f==="style"?rt(e,T):f==="dangerouslySetInnerHTML"?(T=T?T.__html:void 0,T!=null&&nt(e,T)):f==="children"?typeof T=="string"?(n!=="textarea"||T!=="")&&bt(e,T):typeof T=="number"&&bt(e,""+T):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(h.hasOwnProperty(f)?T!=null&&f==="onScroll"&&qe("scroll",e):T!=null&&pe(e,f,T,y))}switch(n){case"input":ot(e),E(e,o,!1);break;case"textarea":ot(e),Ce(e);break;case"option":o.value!=null&&e.setAttribute("value",""+Ie(o.value));break;case"select":e.multiple=!!o.multiple,f=o.value,f!=null?Z(e,!!o.multiple,f,!1):o.defaultValue!=null&&Z(e,!!o.multiple,o.defaultValue,!0);break;default:typeof u.onClick=="function"&&(e.onclick=Xs)}Cf(n,o)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)Ch(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(l(166));n=zn(ss.current),zn(Bt.current),mo(t)?(o=t.stateNode,n=t.memoizedProps,o[hn]=t,o.nodeValue!==n&&(t.flags|=4)):(o=(n.nodeType===9?n:n.ownerDocument).createTextNode(o),o[hn]=t,t.stateNode=o)}return null;case 13:return We(Je),o=t.memoizedState,(t.flags&64)!==0?(t.lanes=n,t):(o=o!==null,n=!1,e===null?t.memoizedProps.fallback!==void 0&&mo(t):n=e.memoizedState!==null,o&&!n&&(t.mode&2)!==0&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||(Je.current&1)!==0?at===0&&(at=3):((at===0||at===3)&&(at=4),mt===null||(hs&134217727)===0&&(Sr&134217727)===0||Cr(mt,dt))),(o||n)&&(t.flags|=4),null);case 4:return yr(),aa(t),e===null&&yf(t.stateNode.containerInfo),null;case 10:return Hl(t),null;case 17:return St(t.type)&&no(),null;case 19:if(We(Je),o=t.memoizedState,o===null)return null;if(f=(t.flags&64)!==0,y=o.rendering,y===null)if(f)fs(o,!1);else{if(at!==0||e!==null&&(e.flags&64)!==0)for(e=t.child;e!==null;){if(y=go(e),y!==null){for(t.flags|=64,fs(o,!1),f=y.updateQueue,f!==null&&(t.updateQueue=f,t.flags|=4),o.lastEffect===null&&(t.firstEffect=null),t.lastEffect=o.lastEffect,o=n,n=t.child;n!==null;)f=n,e=o,f.flags&=2,f.nextEffect=null,f.firstEffect=null,f.lastEffect=null,y=f.alternate,y===null?(f.childLanes=0,f.lanes=e,f.child=null,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=y.childLanes,f.lanes=y.lanes,f.child=y.child,f.memoizedProps=y.memoizedProps,f.memoizedState=y.memoizedState,f.updateQueue=y.updateQueue,f.type=y.type,e=y.dependencies,f.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Qe(Je,Je.current&1|2),t.child}e=e.sibling}o.tail!==null&&ft()>wa&&(t.flags|=64,f=!0,fs(o,!1),t.lanes=33554432)}else{if(!f)if(e=go(y),e!==null){if(t.flags|=64,f=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),fs(o,!0),o.tail===null&&o.tailMode==="hidden"&&!y.alternate&&!Vt)return t=t.lastEffect=o.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*ft()-o.renderingStartTime>wa&&n!==1073741824&&(t.flags|=64,f=!0,fs(o,!1),t.lanes=33554432);o.isBackwards?(y.sibling=t.child,t.child=y):(n=o.last,n!==null?n.sibling=y:t.child=y,o.last=y)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.lastEffect=t.lastEffect,o.renderingStartTime=ft(),n.sibling=null,t=Je.current,Qe(Je,f?t&1|2:t&1),n):null;case 23:case 24:return $a(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&o.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(l(156,t.tag))}function vy(e){switch(e.tag){case 1:St(e.type)&&no();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(yr(),We(wt),We(ct),Yl(),t=e.flags,(t&64)!==0)throw Error(l(285));return e.flags=t&-4097|64,e;case 5:return Gl(e),null;case 13:return We(Je),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return We(Je),null;case 4:return yr(),null;case 10:return Hl(e),null;case 23:case 24:return $a(),null;default:return null}}function ua(e,t){try{var n="",o=t;do n+=Me(o),o=o.return;while(o);var u=n}catch(f){u=`
|
|
7
|
+
Error generating stack: `+f.message+`
|
|
8
|
+
`+f.stack}return{value:e,source:t,stack:u}}function ca(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var wy=typeof WeakMap=="function"?WeakMap:Map;function kh(e,t,n){n=mn(-1,n),n.tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){$o||($o=!0,Sa=o),ca(e,t)},n}function Ph(e,t,n){n=mn(-1,n),n.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var u=t.value;n.payload=function(){return ca(e,t),o(u)}}var f=e.stateNode;return f!==null&&typeof f.componentDidCatch=="function"&&(n.callback=function(){typeof o!="function"&&(qt===null?qt=new Set([this]):qt.add(this),ca(e,t));var y=t.stack;this.componentDidCatch(t.value,{componentStack:y!==null?y:""})}),n}var Sy=typeof WeakSet=="function"?WeakSet:Set;function $h(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){kn(e,n)}else t.current=null}function xy(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var n=e.memoizedProps,o=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:It(t.type,n),o),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&Ll(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(l(163))}function Cy(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var o=e.create;e.destroy=o()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var u=e;o=u.next,u=u.tag,(u&4)!==0&&(u&1)!==0&&(Dh(n,e),Oy(n,e)),e=o}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(o=n.elementType===n.type?t.memoizedProps:It(n.type,t.memoizedProps),e.componentDidUpdate(o,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&Uf(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}Uf(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&Cf(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&&Fc(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(l(163))}function Eh(e,t){for(var n=e;;){if(n.tag===5){var o=n.stateNode;if(t)o=o.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{o=n.stateNode;var u=n.memoizedProps.style;u=u!=null&&u.hasOwnProperty("display")?u.display:null,o.style.display=vt("display",u)}}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 jh(e,t){if(Fn&&typeof Fn.onCommitFiberUnmount=="function")try{Fn.onCommitFiberUnmount(Fl,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var n=e=e.next;do{var o=n,u=o.destroy;if(o=o.tag,u!==void 0)if((o&4)!==0)Dh(t,n);else{o=t;try{u()}catch(f){kn(o,f)}}n=n.next}while(n!==e)}break;case 1:if($h(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(f){kn(t,f)}break;case 5:$h(t);break;case 4:Nh(e,t)}}function Ah(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Th(e){return e.tag===5||e.tag===3||e.tag===4}function Oh(e){e:{for(var t=e.return;t!==null;){if(Th(t))break e;t=t.return}throw Error(l(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var o=!1;break;case 3:t=t.containerInfo,o=!0;break;case 4:t=t.containerInfo,o=!0;break;default:throw Error(l(161))}n.flags&16&&(bt(t,""),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||Th(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}o?fa(e,n,t):ha(e,n,t)}function fa(e,t,n){var o=e.tag,u=o===5||o===6;if(u)e=u?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=Xs));else if(o!==4&&(e=e.child,e!==null))for(fa(e,t,n),e=e.sibling;e!==null;)fa(e,t,n),e=e.sibling}function ha(e,t,n){var o=e.tag,u=o===5||o===6;if(u)e=u?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(ha(e,t,n),e=e.sibling;e!==null;)ha(e,t,n),e=e.sibling}function Nh(e,t){for(var n=t,o=!1,u,f;;){if(!o){o=n.return;e:for(;;){if(o===null)throw Error(l(160));switch(u=o.stateNode,o.tag){case 5:f=!1;break e;case 3:u=u.containerInfo,f=!0;break e;case 4:u=u.containerInfo,f=!0;break e}o=o.return}o=!0}if(n.tag===5||n.tag===6){e:for(var y=e,x=n,T=x;;)if(jh(y,T),T.child!==null&&T.tag!==4)T.child.return=T,T=T.child;else{if(T===x)break e;for(;T.sibling===null;){if(T.return===null||T.return===x)break e;T=T.return}T.sibling.return=T.return,T=T.sibling}f?(y=u,x=n.stateNode,y.nodeType===8?y.parentNode.removeChild(x):y.removeChild(x)):u.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){u=n.stateNode.containerInfo,f=!0,n.child.return=n,n=n.child;continue}}else if(jh(e,n),n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return,n.tag===4&&(o=!1)}n.sibling.return=n.return,n=n.sibling}}function da(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do(o.tag&3)===3&&(e=o.destroy,o.destroy=void 0,e!==void 0&&e()),o=o.next;while(o!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){o=t.memoizedProps;var u=e!==null?e.memoizedProps:o;e=t.type;var f=t.updateQueue;if(t.updateQueue=null,f!==null){for(n[eo]=o,e==="input"&&o.type==="radio"&&o.name!=null&&m(n,o),tr(e,u),t=tr(e,o),u=0;u<f.length;u+=2){var y=f[u],x=f[u+1];y==="style"?rt(n,x):y==="dangerouslySetInnerHTML"?nt(n,x):y==="children"?bt(n,x):pe(n,y,x,t)}switch(e){case"input":C(n,o);break;case"textarea":Y(n,o);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!o.multiple,f=o.value,f!=null?Z(n,!!o.multiple,f,!1):e!==!!o.multiple&&(o.defaultValue!=null?Z(n,!!o.multiple,o.defaultValue,!0):Z(n,!!o.multiple,o.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(l(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,Fc(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(va=ft(),Eh(t.child,!0)),Rh(t);return;case 19:Rh(t);return;case 17:return;case 23:case 24:Eh(t,t.memoizedState!==null);return}throw Error(l(163))}function Rh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Sy),t.forEach(function(o){var u=_y.bind(null,e,o);n.has(o)||(n.add(o),o.then(u,u))})}}function ky(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var Py=Math.ceil,ko=ce.ReactCurrentDispatcher,pa=ce.ReactCurrentOwner,Pe=0,mt=null,et=null,dt=0,Bn=0,ga=dn(0),at=0,Po=null,wr=0,hs=0,Sr=0,ma=0,ya=null,va=0,wa=1/0;function xr(){wa=ft()+500}var ye=null,$o=!1,Sa=null,qt=null,wn=!1,ds=null,ps=90,xa=[],Ca=[],Xt=null,gs=0,ka=null,Eo=-1,Zt=0,jo=0,ms=null,Ao=!1;function $t(){return(Pe&48)!==0?ft():Eo!==-1?Eo:Eo=ft()}function Sn(e){if(e=e.mode,(e&2)===0)return 1;if((e&4)===0)return pr()===99?1:2;if(Zt===0&&(Zt=wr),fy.transition!==0){jo!==0&&(jo=ya!==null?ya.pendingLanes:0),e=Zt;var t=4186112&~jo;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=pr(),(Pe&4)!==0&&e===98?e=Vs(12,Zt):(e=dm(e),e=Vs(e,Zt)),e}function xn(e,t,n){if(50<gs)throw gs=0,ka=null,Error(l(185));if(e=To(e,t),e===null)return null;Hs(e,t,n),e===mt&&(Sr|=t,at===4&&Cr(e,dt));var o=pr();t===1?(Pe&8)!==0&&(Pe&48)===0?Pa(e):(Ot(e,n),Pe===0&&(xr(),Ut())):((Pe&4)===0||o!==98&&o!==99||(Xt===null?Xt=new Set([e]):Xt.add(e)),Ot(e,n)),ya=e}function To(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 Ot(e,t){for(var n=e.callbackNode,o=e.suspendedLanes,u=e.pingedLanes,f=e.expirationTimes,y=e.pendingLanes;0<y;){var x=31-cn(y),T=1<<x,U=f[x];if(U===-1){if((T&o)===0||(T&u)!==0){U=t,rr(T);var de=Ve;f[x]=10<=de?U+250:6<=de?U+5e3:-1}}else U<=t&&(e.expiredLanes|=T);y&=~T}if(o=Br(e,e===mt?dt:0),t=Ve,o===0)n!==null&&(n!==Ul&&zl(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==Ul&&zl(n)}t===15?(n=Pa.bind(null,e),Qt===null?(Qt=[n],oo=Ml(so,Ff)):Qt.push(n),n=Ul):t===14?n=Zr(99,Pa.bind(null,e)):(n=pm(t),n=Zr(n,_h.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function _h(e){if(Eo=-1,jo=Zt=0,(Pe&48)!==0)throw Error(l(327));var t=e.callbackNode;if(Cn()&&e.callbackNode!==t)return null;var n=Br(e,e===mt?dt:0);if(n===0)return null;var o=n,u=Pe;Pe|=16;var f=Fh();(mt!==e||dt!==o)&&(xr(),kr(e,o));do try{jy();break}catch(x){Ih(e,x)}while(!0);if(Vl(),ko.current=f,Pe=u,et!==null?o=0:(mt=null,dt=0,o=at),(wr&Sr)!==0)kr(e,0);else if(o!==0){if(o===2&&(Pe|=64,e.hydrate&&(e.hydrate=!1,Ll(e.containerInfo)),n=Hc(e),n!==0&&(o=ys(e,n))),o===1)throw t=Po,kr(e,0),Cr(e,n),Ot(e,ft()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,o){case 0:case 1:throw Error(l(345));case 2:Vn(e);break;case 3:if(Cr(e,n),(n&62914560)===n&&(o=va+500-ft(),10<o)){if(Br(e,0)!==0)break;if(u=e.suspendedLanes,(u&n)!==n){$t(),e.pingedLanes|=e.suspendedLanes&u;break}e.timeoutHandle=kf(Vn.bind(null,e),o);break}Vn(e);break;case 4:if(Cr(e,n),(n&4186112)===n)break;for(o=e.eventTimes,u=-1;0<n;){var y=31-cn(n);f=1<<y,y=o[y],y>u&&(u=y),n&=~f}if(n=u,n=ft()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Py(n/1960))-n,10<n){e.timeoutHandle=kf(Vn.bind(null,e),n);break}Vn(e);break;case 5:Vn(e);break;default:throw Error(l(329))}}return Ot(e,ft()),e.callbackNode===t?_h.bind(null,e):null}function Cr(e,t){for(t&=~ma,t&=~Sr,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-cn(t),o=1<<n;e[n]=-1,t&=~o}}function Pa(e){if((Pe&48)!==0)throw Error(l(327));if(Cn(),e===mt&&(e.expiredLanes&dt)!==0){var t=dt,n=ys(e,t);(wr&Sr)!==0&&(t=Br(e,t),n=ys(e,t))}else t=Br(e,0),n=ys(e,t);if(e.tag!==0&&n===2&&(Pe|=64,e.hydrate&&(e.hydrate=!1,Ll(e.containerInfo)),t=Hc(e),t!==0&&(n=ys(e,t))),n===1)throw n=Po,kr(e,0),Cr(e,t),Ot(e,ft()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Vn(e),Ot(e,ft()),null}function $y(){if(Xt!==null){var e=Xt;Xt=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Ot(t,ft())})}Ut()}function Lh(e,t){var n=Pe;Pe|=1;try{return e(t)}finally{Pe=n,Pe===0&&(xr(),Ut())}}function bh(e,t){var n=Pe;Pe&=-2,Pe|=8;try{return e(t)}finally{Pe=n,Pe===0&&(xr(),Ut())}}function Oo(e,t){Qe(ga,Bn),Bn|=t,wr|=t}function $a(){Bn=ga.current,We(ga)}function kr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,oy(n)),et!==null)for(n=et.return;n!==null;){var o=n;switch(o.tag){case 1:o=o.type.childContextTypes,o!=null&&no();break;case 3:yr(),We(wt),We(ct),Yl();break;case 5:Gl(o);break;case 4:yr();break;case 13:We(Je);break;case 19:We(Je);break;case 10:Hl(o);break;case 23:case 24:$a()}n=n.return}mt=e,et=Pn(e.current,null),dt=Bn=wr=t,at=0,Po=null,ma=Sr=hs=0}function Ih(e,t){do{var n=et;try{if(Vl(),os.current=xo,yo){for(var o=Xe.memoizedState;o!==null;){var u=o.queue;u!==null&&(u.pending=null),o=o.next}yo=!1}if(is=0,lt=ht=Xe=null,ls=!1,pa.current=null,n===null||n.return===null){at=1,Po=t,et=null;break}e:{var f=e,y=n.return,x=n,T=t;if(t=dt,x.flags|=2048,x.firstEffect=x.lastEffect=null,T!==null&&typeof T=="object"&&typeof T.then=="function"){var U=T;if((x.mode&2)===0){var de=x.alternate;de?(x.updateQueue=de.updateQueue,x.memoizedState=de.memoizedState,x.lanes=de.lanes):(x.updateQueue=null,x.memoizedState=null)}var Ee=(Je.current&1)!==0,te=y;do{var xe;if(xe=te.tag===13){var $e=te.memoizedState;if($e!==null)xe=$e.dehydrated!==null;else{var ke=te.memoizedProps;xe=ke.fallback===void 0?!1:ke.unstable_avoidThisFallback!==!0?!0:!Ee}}if(xe){var F=te.updateQueue;if(F===null){var N=new Set;N.add(U),te.updateQueue=N}else F.add(U);if((te.mode&2)===0){if(te.flags|=64,x.flags|=16384,x.flags&=-2981,x.tag===1)if(x.alternate===null)x.tag=17;else{var I=mn(-1,1);I.tag=2,yn(x,I)}x.lanes|=1;break e}T=void 0,x=t;var J=f.pingCache;if(J===null?(J=f.pingCache=new wy,T=new Set,J.set(U,T)):(T=J.get(U),T===void 0&&(T=new Set,J.set(U,T))),!T.has(x)){T.add(x);var X=Ry.bind(null,f,U,x);U.then(X,X)}te.flags|=4096,te.lanes=t;break e}te=te.return}while(te!==null);T=Error((Be(x.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
|
|
9
9
|
|
|
10
|
-
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}at!==5&&(at=2),j=ta(j,S),X=y;do{switch(X.tag){case 3:h=j,X.flags|=4096,t&=-t,X.lanes|=t;var $e=Ph(X,h,t);Uf(X,$e);break e;case 1:h=j;var he=X.type,je=X.stateNode;if((X.flags&64)===0&&(typeof he.getDerivedStateFromError=="function"||je!==null&&typeof je.componentDidCatch=="function"&&(Ht===null||!Ht.has(je)))){X.flags|=4096,t&=-t,X.lanes|=t;var Te=Eh(X,h,t);Uf(X,Te);break e}}X=X.return}while(X!==null)}bh(n)}catch(Ae){t=Ae,et===n&&n!==null&&(et=n=n.return);continue}break}while(!0)}function Mh(){var e=wo.current;return wo.current=yo,e===null?yo:e}function ms(e,t){var n=Ce;Ce|=16;var o=Mh();mt===e&&dt===t||vr(e,t);do try{Ey();break}catch(a){Dh(e,a)}while(!0);if(Fl(),Ce=n,wo.current=o,et!==null)throw Error(i(261));return mt=null,dt=0,at}function Ey(){for(;et!==null;)zh(et)}function $y(){for(;et!==null&&!ly();)zh(et)}function zh(e){var t=qh(e.alternate,e,Bn);e.memoizedProps=e.pendingProps,t===null?bh(e):et=t,ia.current=null}function bh(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&2048)===0){if(n=my(n,t,Bn),n!==null){et=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||(Bn&1073741824)!==0||(n.mode&4)===0){for(var o=0,a=n.child;a!==null;)o|=a.lanes|a.childLanes,a=a.sibling;n.childLanes=o}e!==null&&(e.flags&2048)===0&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(n=yy(t),n!==null){n.flags&=2047,et=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(t=t.sibling,t!==null){et=t;return}et=t=e}while(t!==null);at===0&&(at=5)}function qn(e){var t=ur();return Mn(99,jy.bind(null,e,t)),null}function jy(e,t){do xn();while(hs!==null);if((Ce&48)!==0)throw Error(i(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null;var o=n.lanes|n.childLanes,a=o,h=e.pendingLanes&~a;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=a,e.mutableReadLanes&=a,e.entangledLanes&=a,a=e.entanglements;for(var y=e.eventTimes,S=e.expirationTimes;0<h;){var j=31-un(h),D=1<<j;a[j]=0,y[j]=-1,S[j]=-1,h&=~D}if(Yt!==null&&(o&24)===0&&Yt.has(e)&&Yt.delete(e),e===mt&&(et=mt=null,dt=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,o!==null){if(a=Ce,Ce|=32,ia.current=null,kl=Us,y=hf(),wl(y)){if("selectionStart"in y)S={start:y.selectionStart,end:y.selectionEnd};else e:if(S=(S=y.ownerDocument)&&S.defaultView||window,(D=S.getSelection&&S.getSelection())&&D.rangeCount!==0){S=D.anchorNode,h=D.anchorOffset,j=D.focusNode,D=D.focusOffset;try{S.nodeType,j.nodeType}catch{S=null;break e}var le=0,Pe=-1,X=-1,ye=0,ke=0,xe=y,_=null;t:for(;;){for(var A;xe!==S||h!==0&&xe.nodeType!==3||(Pe=le+h),xe!==j||D!==0&&xe.nodeType!==3||(X=le+D),xe.nodeType===3&&(le+=xe.nodeValue.length),(A=xe.firstChild)!==null;)_=xe,xe=A;for(;;){if(xe===y)break t;if(_===S&&++ye===h&&(Pe=le),_===j&&++ke===D&&(X=le),(A=xe.nextSibling)!==null)break;xe=_,_=xe.parentNode}xe=A}S=Pe===-1||X===-1?null:{start:Pe,end:X}}else S=null;S=S||{start:0,end:0}}else S=null;Pl={focusedElem:y,selectionRange:S},Us=!1,gs=null,Po=!1,ce=o;do try{Ay()}catch(Ae){if(ce===null)throw Error(i(330));Cn(ce,Ae),ce=ce.nextEffect}while(ce!==null);gs=null,ce=o;do try{for(y=e;ce!==null;){var R=ce.flags;if(R&16&&Lt(ce.stateNode,""),R&128){var H=ce.alternate;if(H!==null){var G=H.ref;G!==null&&(typeof G=="function"?G(null):G.current=null)}}switch(R&1038){case 2:Nh(ce),ce.flags&=-3;break;case 6:Nh(ce),ce.flags&=-3,oa(ce.alternate,ce);break;case 1024:ce.flags&=-1025;break;case 1028:ce.flags&=-1025,oa(ce.alternate,ce);break;case 4:oa(ce.alternate,ce);break;case 8:S=ce,Rh(y,S);var $e=S.alternate;Oh(S),$e!==null&&Oh($e)}ce=ce.nextEffect}}catch(Ae){if(ce===null)throw Error(i(330));Cn(ce,Ae),ce=ce.nextEffect}while(ce!==null);if(G=Pl,H=hf(),R=G.focusedElem,y=G.selectionRange,H!==R&&R&&R.ownerDocument&&ff(R.ownerDocument.documentElement,R)){for(y!==null&&wl(R)&&(H=y.start,G=y.end,G===void 0&&(G=H),"selectionStart"in R?(R.selectionStart=H,R.selectionEnd=Math.min(G,R.value.length)):(G=(H=R.ownerDocument||document)&&H.defaultView||window,G.getSelection&&(G=G.getSelection(),S=R.textContent.length,$e=Math.min(y.start,S),y=y.end===void 0?$e:Math.min(y.end,S),!G.extend&&$e>y&&(S=y,y=$e,$e=S),S=cf(R,$e),h=cf(R,y),S&&h&&(G.rangeCount!==1||G.anchorNode!==S.node||G.anchorOffset!==S.offset||G.focusNode!==h.node||G.focusOffset!==h.offset)&&(H=H.createRange(),H.setStart(S.node,S.offset),G.removeAllRanges(),$e>y?(G.addRange(H),G.extend(h.node,h.offset)):(H.setEnd(h.node,h.offset),G.addRange(H)))))),H=[],G=R;G=G.parentNode;)G.nodeType===1&&H.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<H.length;R++)G=H[R],G.element.scrollLeft=G.left,G.element.scrollTop=G.top}Us=!!kl,Pl=kl=null,e.current=n,ce=o;do try{for(R=e;ce!==null;){var he=ce.flags;if(he&36&&xy(R,ce.alternate,ce),he&128){H=void 0;var je=ce.ref;if(je!==null){var Te=ce.stateNode;ce.tag,H=Te,typeof je=="function"?je(H):je.current=H}}ce=ce.nextEffect}}catch(Ae){if(ce===null)throw Error(i(330));Cn(ce,Ae),ce=ce.nextEffect}while(ce!==null);ce=null,uy(),Ce=a}else e.current=n;if(vn)vn=!1,hs=e,ds=t;else for(ce=o;ce!==null;)t=ce.nextEffect,ce.nextEffect=null,ce.flags&8&&(he=ce,he.sibling=null,he.stateNode=null),ce=t;if(o=e.pendingLanes,o===0&&(Ht=null),o===1?e===ga?ps++:(ps=0,ga=e):ps=0,n=n.stateNode,Dn&&typeof Dn.onCommitFiberRoot=="function")try{Dn.onCommitFiberRoot(Ol,n,void 0,(n.current.flags&64)===64)}catch{}if(Tt(e,ft()),xo)throw xo=!1,e=ha,ha=null,e;return(Ce&8)!==0||Ut(),null}function Ay(){for(;ce!==null;){var e=ce.alternate;Po||gs===null||((ce.flags&8)!==0?Nc(ce,gs)&&(Po=!0):ce.tag===13&&Cy(e,ce)&&Nc(ce,gs)&&(Po=!0));var t=ce.flags;(t&256)!==0&&Sy(e,ce),(t&512)===0||vn||(vn=!0,Xr(97,function(){return xn(),null})),ce=ce.nextEffect}}function xn(){if(ds!==90){var e=97<ds?97:ds;return ds=90,Mn(e,Ty)}return!1}function Oy(e,t){da.push(t,e),vn||(vn=!0,Xr(97,function(){return xn(),null}))}function Uh(e,t){pa.push(t,e),vn||(vn=!0,Xr(97,function(){return xn(),null}))}function Ty(){if(hs===null)return!1;var e=hs;if(hs=null,(Ce&48)!==0)throw Error(i(331));var t=Ce;Ce|=32;var n=pa;pa=[];for(var o=0;o<n.length;o+=2){var a=n[o],h=n[o+1],y=a.destroy;if(a.destroy=void 0,typeof y=="function")try{y()}catch(j){if(h===null)throw Error(i(330));Cn(h,j)}}for(n=da,da=[],o=0;o<n.length;o+=2){a=n[o],h=n[o+1];try{var S=a.create;a.destroy=S()}catch(j){if(h===null)throw Error(i(330));Cn(h,j)}}for(S=e.current.firstEffect;S!==null;)e=S.nextEffect,S.nextEffect=null,S.flags&8&&(S.sibling=null,S.stateNode=null),S=e;return Ce=t,Ut(),!0}function Bh(e,t,n){t=ta(n,t),t=Ph(e,t,1),mn(e,t),t=Et(),e=Eo(e,1),e!==null&&(bs(e,1,t),Tt(e,t))}function Cn(e,t){if(e.tag===3)Bh(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){Bh(n,e,t);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Ht===null||!Ht.has(o))){e=ta(t,e);var a=Eh(n,e,1);if(mn(n,a),a=Et(),n=Eo(n,1),n!==null)bs(n,1,a),Tt(n,a);else if(typeof o.componentDidCatch=="function"&&(Ht===null||!Ht.has(o)))try{o.componentDidCatch(t,e)}catch{}break}}n=n.return}}function Ny(e,t,n){var o=e.pingCache;o!==null&&o.delete(t),t=Et(),e.pingedLanes|=e.suspendedLanes&n,mt===e&&(dt&n)===n&&(at===4||at===3&&(dt&62914560)===dt&&500>ft()-ca?vr(e,0):aa|=n),Tt(e,t)}function Ry(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,(t&2)===0?t=1:(t&4)===0?t=ur()===99?1:2:(Xt===0&&(Xt=pr),t=Zn(62914560&~Xt),t===0&&(t=4194304))),n=Et(),e=Eo(e,t),e!==null&&(bs(e,t,n),Tt(e,n))}var qh;qh=function(e,t,n){var o=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||wt.current)It=!0;else if((n&o)!==0)It=(e.flags&16384)!==0;else{switch(It=!1,t.tag){case 3:ph(t),Bl();break;case 5:Jf(t);break;case 1:St(t.type)&&Zs(t);break;case 4:zl(t,t.stateNode.containerInfo);break;case 10:o=t.memoizedProps.value;var a=t.type._context;Je(no,a._currentValue),a._currentValue=o;break;case 13:if(t.memoizedState!==null)return(n&t.child.childLanes)!==0?gh(e,t,n):(Je(Qe,Qe.current&1),t=Qt(e,t,n),t!==null?t.sibling:null);Je(Qe,Qe.current&1);break;case 19:if(o=(n&t.childLanes)!==0,(e.flags&64)!==0){if(o)return Sh(e,t,n);t.flags|=64}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Je(Qe,Qe.current),o)break;return null;case 23:case 24:return t.lanes=0,Ql(e,t,n)}return Qt(e,t,n)}else It=!1;switch(t.lanes=0,t.tag){case 2:if(o=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=ar(t,ct.current),fr(t,n),a=Hl(null,t,o,e,a,n),t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,St(o)){var h=!0;Zs(t)}else h=!1;t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Dl(t);var y=o.getDerivedStateFromProps;typeof y=="function"&&oo(t,o,y,e),a.updater=io,t.stateNode=a,a._reactInternals=t,Ml(t,o,e,n),t=Xl(null,t,o,!0,h,n)}else t.tag=0,Ct(null,t,a,n),t=t.child;return t;case 16:a=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,h=a._init,a=h(a._payload),t.type=a,h=t.tag=Ly(a),e=Ft(a,e),h){case 0:t=Yl(null,t,a,e,n);break e;case 1:t=dh(null,t,a,e,n);break e;case 11:t=uh(null,t,a,e,n);break e;case 14:t=ch(null,t,a,Ft(a.type,e),o,n);break e}throw Error(i(306,a,""))}return t;case 0:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:Ft(o,a),Yl(e,t,o,a,n);case 1:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:Ft(o,a),dh(e,t,o,a,n);case 3:if(ph(t),o=t.updateQueue,e===null||o===null)throw Error(i(282));if(o=t.pendingProps,a=t.memoizedState,a=a!==null?a.element:null,bf(e,t),Zr(t,o,null,n),o=t.memoizedState.element,o===a)Bl(),t=Qt(e,t,n);else{if(a=t.stateNode,(h=a.hydrate)&&(yn=sr(t.stateNode.containerInfo.firstChild),Jt=t,h=qt=!0),h){if(e=a.mutableSourceEagerHydrationData,e!=null)for(a=0;a<e.length;a+=2)h=e[a],h._workInProgressVersionPrimary=e[a+1],dr.push(h);for(n=Gf(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else Ct(e,t,o,n),Bl();t=t.child}return t;case 5:return Jf(t),e===null&&Ul(t),o=t.type,a=t.pendingProps,h=e!==null?e.memoizedProps:null,y=a.children,El(o,a)?y=null:h!==null&&El(o,h)&&(t.flags|=16),hh(e,t),Ct(e,t,y,n),t.child;case 6:return e===null&&Ul(t),null;case 13:return gh(e,t,n);case 4:return zl(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=uo(t,null,o,n):Ct(e,t,o,n),t.child;case 11:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:Ft(o,a),uh(e,t,o,a,n);case 7:return Ct(e,t,t.pendingProps,n),t.child;case 8:return Ct(e,t,t.pendingProps.children,n),t.child;case 12:return Ct(e,t,t.pendingProps.children,n),t.child;case 10:e:{o=t.type._context,a=t.pendingProps,y=t.memoizedProps,h=a.value;var S=t.type._context;if(Je(no,S._currentValue),S._currentValue=h,y!==null)if(S=y.value,h=jt(S,h)?0:(typeof o._calculateChangedBits=="function"?o._calculateChangedBits(S,h):1073741823)|0,h===0){if(y.children===a.children&&!wt.current){t=Qt(e,t,n);break e}}else for(S=t.child,S!==null&&(S.return=t);S!==null;){var j=S.dependencies;if(j!==null){y=S.child;for(var D=j.firstContext;D!==null;){if(D.context===o&&(D.observedBits&h)!==0){S.tag===1&&(D=gn(-1,n&-n),D.tag=2,mn(S,D)),S.lanes|=n,D=S.alternate,D!==null&&(D.lanes|=n),zf(S.return,n),j.lanes|=n;break}D=D.next}}else y=S.tag===10&&S.type===t.type?null:S.child;if(y!==null)y.return=S;else for(y=S;y!==null;){if(y===t){y=null;break}if(S=y.sibling,S!==null){S.return=y.return,y=S;break}y=y.return}S=y}Ct(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,h=t.pendingProps,o=h.children,fr(t,n),a=At(a,h.unstable_observedBits),o=o(a),t.flags|=1,Ct(e,t,o,n),t.child;case 14:return a=t.type,h=Ft(a,t.pendingProps),h=Ft(a.type,h),ch(e,t,a,h,o,n);case 15:return fh(e,t,t.type,t.pendingProps,o,n);case 17:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:Ft(o,a),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,St(o)?(e=!0,Zs(t)):e=!1,fr(t,n),Hf(t,o,a),Ml(t,o,a,n),Xl(null,t,o,!0,e,n);case 19:return Sh(e,t,n);case 23:return Ql(e,t,n);case 24:return Ql(e,t,n)}throw Error(i(156,t.tag))};function _y(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Nt(e,t,n,o){return new _y(e,t,n,o)}function va(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ly(e){if(typeof e=="function")return va(e)?1:0;if(e!=null){if(e=e.$$typeof,e===se)return 11;if(e===Ie)return 14}return 2}function kn(e,t){var n=e.alternate;return n===null?(n=Nt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function jo(e,t,n,o,a,h){var y=2;if(o=e,typeof e=="function")va(e)&&(y=1);else if(typeof e=="string")y=5;else e:switch(e){case fe:return wr(n.children,a,h,t);case pe:y=8,a|=16;break;case Ee:y=8,a|=1;break;case L:return e=Nt(12,n,t,a|8),e.elementType=L,e.type=L,e.lanes=h,e;case de:return e=Nt(13,n,t,a),e.type=de,e.elementType=de,e.lanes=h,e;case Oe:return e=Nt(19,n,t,a),e.elementType=Oe,e.lanes=h,e;case B:return wa(n,a,h,t);case Z:return e=Nt(24,n,t,a),e.elementType=Z,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case z:y=10;break e;case Y:y=9;break e;case se:y=11;break e;case Ie:y=14;break e;case w:y=16,o=null;break e;case T:y=22;break e}throw Error(i(130,e==null?e:typeof e,""))}return t=Nt(y,n,t,a),t.elementType=e,t.type=o,t.lanes=h,t}function wr(e,t,n,o){return e=Nt(7,e,o,t),e.lanes=n,e}function wa(e,t,n,o){return e=Nt(23,e,o,t),e.elementType=B,e.lanes=n,e}function Sa(e,t,n){return e=Nt(6,e,null,t),e.lanes=n,e}function xa(e,t,n){return t=Nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fy(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=ll(0),this.expirationTimes=ll(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ll(0),this.mutableSourceEagerHydrationData=null}function Iy(e,t,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ie,key:o==null?null:""+o,children:e,containerInfo:t,implementation:n}}function Ao(e,t,n,o){var a=t.current,h=Et(),y=wn(a);e:if(n){n=n._reactInternals;t:{if(Ln(n)!==n||n.tag!==1)throw Error(i(170));var S=n;do{switch(S.tag){case 3:S=S.stateNode.context;break t;case 1:if(St(S.type)){S=S.stateNode.__reactInternalMemoizedMergedChildContext;break t}}S=S.return}while(S!==null);throw Error(i(171))}if(n.tag===1){var j=n.type;if(St(j)){n=Of(n,j,S);break e}}n=S}else n=dn;return t.context===null?t.context=n:t.pendingContext=n,t=gn(h,y),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),mn(a,t),Sn(a,y,h),y}function Ca(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function Vh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ka(e,t){Vh(e,t),(e=e.alternate)&&Vh(e,t)}function Dy(){return null}function Pa(e,t,n){var o=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new Fy(e,t,n!=null&&n.hydrate===!0),t=Nt(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,Dl(t),e[or]=n.current,vf(e.nodeType===8?e.parentNode:e),o)for(e=0;e<o.length;e++){t=o[e];var a=t._getVersion;a=a(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,a]:n.mutableSourceEagerHydrationData.push(t,a)}this._internalRoot=n}Pa.prototype.render=function(e){Ao(e,this._internalRoot,null,null)},Pa.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ao(null,e,null,function(){t[or]=null})};function ys(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function My(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Pa(e,0,t?{hydrate:!0}:void 0)}function Oo(e,t,n,o,a){var h=n._reactRootContainer;if(h){var y=h._internalRoot;if(typeof a=="function"){var S=a;a=function(){var D=Ca(y);S.call(D)}}Ao(t,y,e,a)}else{if(h=n._reactRootContainer=My(n,o),y=h._internalRoot,typeof a=="function"){var j=a;a=function(){var D=Ca(y);j.call(D)}}Ih(function(){Ao(t,y,e,a)})}return Ca(y)}Rc=function(e){if(e.tag===13){var t=Et();Sn(e,4,t),ka(e,4)}},tl=function(e){if(e.tag===13){var t=Et();Sn(e,67108864,t),ka(e,67108864)}},_c=function(e){if(e.tag===13){var t=Et(),n=wn(e);Sn(e,n,t),ka(e,n)}},Lc=function(e,t){return t()},_s=function(e,t,n){switch(t){case"input":if(x(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var a=Ys(o);if(!a)throw Error(i(90));Ze(o),x(o,a)}}}break;case"textarea":K(e,n);break;case"select":t=n.value,t!=null&&Q(e,!!n.multiple,t,!1)}},it=Fh,zt=function(e,t,n,o,a){var h=Ce;Ce|=4;try{return Mn(98,e.bind(null,t,n,o,a))}finally{Ce=h,Ce===0&&(mr(),Ut())}},Kt=function(){(Ce&49)===0&&(Py(),xn())},Rr=function(e,t){var n=Ce;Ce|=2;try{return e(t)}finally{Ce=n,Ce===0&&(mr(),Ut())}};function Hh(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ys(t))throw Error(i(200));return Iy(e,t,null,n)}var zy={Events:[Yr,ir,Ys,Rn,Nr,xn,{current:!1}]},vs={findFiberByHostInstance:Fn,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},by={bundleType:vs.bundleType,version:vs.version,rendererPackageName:vs.rendererPackageName,rendererConfig:vs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ne.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Tc(e),e===null?null:e.stateNode},findFiberByHostInstance:vs.findFiberByHostInstance||Dy,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var To=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!To.isDisabled&&To.supportsFiber)try{Ol=To.inject(by),Dn=To}catch{}}return kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zy,kt.createPortal=Hh,kt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):Error(i(268,Object.keys(e)));return e=Tc(t),e=e===null?null:e.stateNode,e},kt.flushSync=function(e,t){var n=Ce;if((n&48)!==0)return e(t);Ce|=1;try{if(e)return Mn(99,e.bind(null,t))}finally{Ce=n,Ut()}},kt.hydrate=function(e,t,n){if(!ys(t))throw Error(i(200));return Oo(null,e,t,!0,n)},kt.render=function(e,t,n){if(!ys(t))throw Error(i(200));return Oo(null,e,t,!1,n)},kt.unmountComponentAtNode=function(e){if(!ys(e))throw Error(i(40));return e._reactRootContainer?(Ih(function(){Oo(null,null,e,!1,function(){e._reactRootContainer=null,e[or]=null})}),!0):!1},kt.unstable_batchedUpdates=Fh,kt.unstable_createPortal=function(e,t){return Hh(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},kt.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!ys(n))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return Oo(e,t,n,!1,o)},kt.version="17.0.2",kt}var _a;function Zh(){if(_a)return Mo.exports;_a=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(s){console.error(s)}}return r(),Mo.exports=Xh(),Mo.exports}var Uo=Zh();const ed=Ro(Uo),ut=Zt.createContext({posts:[],authors:[],tags:[],action:"",lastPage:"",page:"",pageData:{},dispatch:(r,s)=>{},searchIndex:null,indexComplete:!1,searchValue:"",t:()=>{},dir:"ltr"}),td=r=>Ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:16,width:16,viewBox:"0 0 16 16",...r},Ne.createElement("title",null,"circle anim"),Ne.createElement("g",{fill:"#40413F",className:"nc-icon-wrapper"},Ne.createElement("g",{className:"nc-loop-circle-16-icon-f"},Ne.createElement("path",{d:"M8 16a8 8 0 1 1 8-8 8.009 8.009 0 0 1-8 8zM8 2a6 6 0 1 0 6 6 6.006 6.006 0 0 0-6-6z",fill:"#D4D4D4"}),Ne.createElement("path",{d:"M8 0v2a6.006 6.006 0 0 1 6 6h2a8.009 8.009 0 0 0-8-8z","data-color":"color-2"})),Ne.createElement("style",null,".nc-loop-circle-16-icon-f{--animation-duration:0.5s;transform-origin:8px 8px;animation:nc-loop-circle-anim var(--animation-duration) infinite linear}@keyframes nc-loop-circle-anim{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}"))),nd=r=>Ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:16,width:16,...r},Ne.createElement("path",{strokeLinecap:"round",strokeWidth:.4,fill:"currentColor",stroke:"#000000",strokeLinejoin:"round",d:"M.44,21.44a1.49,1.49,0,0,0,0,2.12,1.5,1.5,0,0,0,2.12,0l9.26-9.26a.25.25,0,0,1,.36,0l9.26,9.26a1.5,1.5,0,0,0,2.12,0,1.49,1.49,0,0,0,0-2.12L14.3,12.18a.25.25,0,0,1,0-.36l9.26-9.26A1.5,1.5,0,0,0,21.44.44L12.18,9.7a.25.25,0,0,1-.36,0L2.56.44A1.5,1.5,0,0,0,.44,2.56L9.7,11.82a.25.25,0,0,1,0,.36Z"}));class rd extends Ne.Component{componentDidMount(){this.node.addEventListener("load",this.handleLoad)}handleLoad=()=>{this.setupFrameBaseStyle()};componentWillUnmout(){this.node.removeEventListener("load",this.handleLoad)}setupFrameBaseStyle(){this.node.contentDocument&&(this.iframeHtml=this.node.contentDocument.documentElement,this.iframeHtml.setAttribute("dir",this.props.searchdir),this.iframeHead=this.node.contentDocument.head,this.iframeRoot=this.node.contentDocument.body,this.forceUpdate())}render(){const{children:s,head:l,title:i="",style:u={},...c}=this.props;return te.jsxs("iframe",{srcDoc:"<!DOCTYPE html>",...c,ref:d=>this.node=d,title:i,style:u,frameBorder:"0",children:[this.iframeHead&&Uo.createPortal(l,this.iframeHead),this.iframeRoot&&Uo.createPortal(s,this.iframeRoot)]})}}const sd=r=>Ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:16,width:16,...r},Ne.createElement("path",{d:"M23.38,21.62l-6.53-6.53a9.15,9.15,0,0,0,1.9-5.59,9.27,9.27,0,1,0-3.66,7.36l6.53,6.53a1.26,1.26,0,0,0,1.76,0A1.25,1.25,0,0,0,23.38,21.62ZM2.75,9.5A6.75,6.75,0,1,1,9.5,16.25,6.76,6.76,0,0,1,2.75,9.5Z",fill:"currentColor"})),La=10,od=10,id=()=>({modalContainer:{zIndex:"3999999",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",overflow:"hidden"},frame:{common:{margin:"auto",position:"relative",padding:"0",outline:"0",width:"100%",opacity:"1",overflow:"hidden",height:"100%"}},page:{links:{width:"600px"}}});class ld extends Zt.Component{static contextType=ut;componentDidMount(){this.sendContainerHeightChangeEvent()}sendContainerHeightChangeEvent(){}componentDidUpdate(){this.sendContainerHeightChangeEvent()}handlePopupClose(s){s.preventDefault(),s.target===s.currentTarget&&this.context.dispatch("update",{showPopup:!1})}render(){return te.jsx(Ed,{})}}function ad(){const{searchValue:r,dispatch:s,inputRef:l,t:i}=Ne.useContext(ut),u=Ne.useRef(null);Ne.useEffect(()=>{setTimeout(()=>{l?.current?.focus()},150);let d=g=>{g.key==="Escape"&&s("update",{showPopup:!1})};const v=u?.current;return v?.ownerDocument.removeEventListener("keyup",d),v?.ownerDocument.addEventListener("keyup",d),()=>{v?.ownerDocument.removeEventListener("keyup",d)}},[s,l]);let c="z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-t-lg shadow";return r||(c="z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-lg"),te.jsxs("div",{className:c,ref:u,children:[te.jsx("div",{className:"flex items-center justify-center w-4 h-4 me-3",children:te.jsx(ud,{})}),te.jsx("input",{ref:l,value:r||"",onChange:d=>{s("update",{searchValue:d.target.value})},onKeyDown:d=>{(d.key==="ArrowUp"||d.key==="ArrowDown")&&d.preventDefault()},className:"grow -my-5 py-5 -ms-3 ps-3 text-[1.65rem] focus-visible:outline-none placeholder:text-gray-400 outline-none truncate",placeholder:i("Search posts, tags and authors")}),te.jsx(cd,{}),te.jsx(fd,{})]})}function ud(){const{searchValue:r="",dispatch:s}=Ne.useContext(ut);return r?te.jsx("button",{alt:"Clear",className:"-mb-[1px]",onClick:()=>{s("update",{searchValue:""})},children:te.jsx(nd,{className:"text-neutral-900 hover:text-neutral-500 h-[1.1rem] w-[1.1rem]"})}):te.jsx(sd,{className:"text-neutral-900",alt:"Search"})}function cd(){const{indexComplete:r,searchValue:s}=Ne.useContext(ut);return!r&&s?te.jsx(td,{className:"shrink-0"}):null}function fd(){const{dispatch:r,t:s}=Ne.useContext(ut);return te.jsx("button",{className:"ms-3 text-sm text-neutral-500 sm:hidden",alt:"Cancel",onClick:()=>{r("update",{showPopup:!1})},children:s("Cancel")})}function hd({tag:r,selectedResult:s,setSelectedResult:l}){const{name:i,url:u,id:c}=r;let d="flex items-center py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer";return c===s&&(d+=" bg-neutral-100"),te.jsxs("div",{className:d,onClick:()=>{u&&(window.location.href=u)},onMouseEnter:()=>{l(c)},children:[te.jsx("p",{className:"me-2 text-sm font-bold text-neutral-400",children:"#"}),te.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-900 truncate",children:i})]})}function dd({tags:r,selectedResult:s,setSelectedResult:l}){const{t:i}=Ne.useContext(ut);if(!r?.length)return null;const u=r.map(c=>te.jsx(hd,{tag:c,selectedResult:s,setSelectedResult:l},c.name));return te.jsxs("div",{className:"border-t border-gray-200 py-3 px-4 sm:px-7",children:[te.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:i("Tags")}),u]})}function pd({post:r,selectedResult:s,setSelectedResult:l}){const{searchValue:i}=Ne.useContext(ut),{title:u,excerpt:c,url:d,id:v}=r;let g="py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer";return v===s&&(g+=" bg-neutral-100"),te.jsxs("div",{className:g,onClick:()=>{d&&(window.location.href=d)},onMouseEnter:()=>{l(v)},children:[te.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-800",children:te.jsx(Ia,{text:u,highlight:i,isExcerpt:!1})}),te.jsx("p",{className:"text-neutral-400 leading-normal text-sm mt-0 mb-0 truncate",children:te.jsx(Ia,{text:c,highlight:i,isExcerpt:!0})})]})}function gd({text:r,highlight:s}){let l="";s?.split(" ").forEach((d,v)=>{const g=String(d).replace(/\W/g,"\\&");v>0?l+="|^"+g+"|\\s"+g:l="^"+g+"|\\s"+g});const i=new RegExp(`${l}`,"ig");let u=r?.matchAll(i);const c=[];for(const d of u)c.push({startIdx:d?.index,endIdx:(d?.index||0)+(d?.[0].length||0)});return c}function Fa({text:r,highlight:s}){const l=gd({text:r,highlight:s}),i=[];let u=0;return l.forEach(c=>{u===c.startIdx?(i.push({text:r?.slice(c.startIdx,c.endIdx),type:"highlight"}),u=c.endIdx):(i.push({text:r?.slice(u,c.startIdx),type:"normal"}),i.push({text:r?.slice(c.startIdx,c.endIdx),type:"highlight"}),u=c.endIdx)}),u<r?.length&&i.push({text:r?.slice(u,r.length),type:"normal"}),{parts:i,highlightIndexes:l}}function Ia({text:r="",highlight:s="",isExcerpt:l}){r=r||"",s=s||"";let{parts:i,highlightIndexes:u}=Fa({text:r,highlight:s});if(l&&u?.[0]){const d=u?.[0]?.startIdx;if(d>50){r="..."+r?.slice(d-20);const{parts:v}=Fa({text:r,highlight:s});i=v}}const c=i.map((d,v)=>d?.type==="highlight"?te.jsx(Zt.Fragment,{children:te.jsx(md,{word:d.text,isExcerpt:l})},v):te.jsx(Zt.Fragment,{children:d.text},v));return te.jsx(te.Fragment,{children:c})}function md({word:r,isExcerpt:s}){return s?te.jsx(te.Fragment,{children:te.jsx("span",{className:"font-bold",children:r})}):te.jsx(te.Fragment,{children:te.jsx("span",{className:"font-bold text-neutral-900",children:r})})}function yd({posts:r,maxPosts:s,setMaxPosts:l}){const{t:i}=Ne.useContext(ut);return!r?.length||s>=r?.length?null:te.jsx("button",{className:"w-full my-3 p-[1rem] border border-neutral-200 hover:border-neutral-300 text-neutral-800 hover:text-black font-semibold rounded transition duration-150 ease hover:ease",onClick:()=>{const u=s+od;l(u)},children:i("Show more results")})}function vd({posts:r,selectedResult:s,setSelectedResult:l}){const{t:i}=Ne.useContext(ut),[u,c]=Ne.useState(La),[d,v]=Ne.useState([]);if(Ne.useEffect(()=>{c(La)},[r]),Ne.useEffect(()=>{v(r?.slice(0,u+1))},[u,r]),!r?.length)return null;function g(){return d.map(C=>te.jsx(pd,{post:C,selectedResult:s,setSelectedResult:l},C.title))}return te.jsxs("div",{className:"border-t border-neutral-200 py-3 px-4 sm:px-7",children:[te.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:i("Posts")}),te.jsx(g,{}),te.jsx(yd,{setMaxPosts:c,maxPosts:u,posts:r})]})}function wd({author:r,selectedResult:s,setSelectedResult:l}){const{name:i,profile_image:u,url:c,id:d}=r;let v="py-[1rem] -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer flex items-center";return d===s&&(v+=" bg-neutral-100"),te.jsxs("div",{className:v,onClick:()=>{c&&(window.location.href=c)},onMouseEnter:()=>{l(d)},children:[te.jsx(Sd,{name:i,avatar:u}),te.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-900 truncate",children:i})]})}function Sd({name:r,avatar:s}){const l=s?.length,i=r.charAt(0);return l?te.jsx("img",{className:"rounded-full bg-neutral-300 w-7 h-7 me-2 object-cover",src:s,alt:r}):te.jsx("div",{className:"rounded-full bg-neutral-200 w-7 h-7 me-2 flex items-center justify-center font-bold",children:te.jsx("span",{className:"text-neutral-400",children:i})})}function xd({authors:r,selectedResult:s,setSelectedResult:l}){const{t:i}=Ne.useContext(ut);if(!r?.length)return null;const u=r.map(c=>te.jsx(wd,{author:c,selectedResult:s,setSelectedResult:l},c.name));return te.jsxs("div",{className:"border-t border-neutral-200 py-3 px-4 sm:px-7",children:[te.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:i("Authors")}),u]})}function Cd(){const{searchValue:r="",searchIndex:s,indexComplete:l}=Ne.useContext(ut);let i=null,u=[],c=[],d=[];return l&&r&&(i=s?.search(r),c=i?.posts||[],d=i?.authors||[],u=i?.tags||[]),d=d.filter(g=>{const C=/\/404\/$/;return!(g?.url&&C.test(g?.url))}),u=u.filter(g=>{const C=/\/404\/$/;return!(g?.url&&C.test(g?.url))}),c?.length||d?.length||u?.length?te.jsx(kd,{posts:c,authors:d,tags:u}):r?te.jsx(Pd,{}):null}function kd({posts:r,authors:s,tags:l}){const{searchValue:i}=Ne.useContext(ut),u=Ne.useMemo(()=>[...s,...l,...r],[s,l,r]),c=u?.[0]?.id||null,[d,v]=Ne.useState(c),g=Ne.useRef(null);return Ne.useEffect(()=>{v(u?.[0]?.id||null)},[u]),Ne.useEffect(()=>{let C=P=>{const O=u.findIndex(V=>V.id===d);let F=u[O+1],b=u[O-1];if(P.key==="ArrowUp"&&b?v(b?.id):P.key==="ArrowDown"&&F&&v(F?.id),P.key==="Enter"){const V=u.find(U=>U.id===d);window.location.href=V?.url}};const $=g?.current;return $?.ownerDocument.removeEventListener("keyup",C),$?.ownerDocument.addEventListener("keyup",C),()=>{$?.ownerDocument?.removeEventListener("keyup",C)}},[u,d]),i?te.jsxs("div",{className:"overflow-y-auto max-h-[calc(100vh-172px)] sm:max-h-[70vh] -mt-[1px]",ref:g,children:[te.jsx(xd,{authors:s,selectedResult:d,setSelectedResult:v}),te.jsx(dd,{tags:l,selectedResult:d,setSelectedResult:v}),te.jsx(vd,{posts:r,selectedResult:d,setSelectedResult:v})]}):null}function Pd(){const{t:r}=Ne.useContext(ut);return te.jsx("div",{className:"py-4 px-7",children:te.jsx("p",{className:"text-[1.65rem] text-neutral-400 leading-normal",children:r("No matches found")})})}function Ed(){const{dispatch:r}=Ne.useContext(ut);return te.jsx(te.Fragment,{children:te.jsx("div",{className:"h-screen w-screen pt-20 antialiased z-50 relative ghost-display",onClick:s=>{s.preventDefault(),s.target===s.currentTarget&&r("update",{showPopup:!1})},children:te.jsxs("div",{className:"bg-white w-full max-w-[95vw] sm:max-w-lg rounded-lg shadow-xl m-auto relative translate-z-0 animate-popup",children:[te.jsx(ad,{}),te.jsx(Cd,{})]})})})}class $d extends Zt.Component{static contextType=ut;constructor(s){super(s),this.state={height:null}}onHeightChange(s){this.setState({height:s})}handlePopupClose(s){s.preventDefault(),s.target===s.currentTarget&&this.context.dispatch("update",{showPopup:!1})}renderFrameStyles(){const s=`
|
|
10
|
+
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}at!==5&&(at=2),T=ua(T,x),te=y;do{switch(te.tag){case 3:f=T,te.flags|=4096,t&=-t,te.lanes|=t;var je=kh(te,f,t);Df(te,je);break e;case 1:f=T;var we=te.type,Ae=te.stateNode;if((te.flags&64)===0&&(typeof we.getDerivedStateFromError=="function"||Ae!==null&&typeof Ae.componentDidCatch=="function"&&(qt===null||!qt.has(Ae)))){te.flags|=4096,t&=-t,te.lanes|=t;var Re=Ph(te,f,t);Df(te,Re);break e}}te=te.return}while(te!==null)}zh(n)}catch(Oe){t=Oe,et===n&&n!==null&&(et=n=n.return);continue}break}while(!0)}function Fh(){var e=ko.current;return ko.current=xo,e===null?xo:e}function ys(e,t){var n=Pe;Pe|=16;var o=Fh();mt===e&&dt===t||kr(e,t);do try{Ey();break}catch(u){Ih(e,u)}while(!0);if(Vl(),Pe=n,ko.current=o,et!==null)throw Error(l(261));return mt=null,dt=0,at}function Ey(){for(;et!==null;)Mh(et)}function jy(){for(;et!==null&&!ay();)Mh(et)}function Mh(e){var t=Bh(e.alternate,e,Bn);e.memoizedProps=e.pendingProps,t===null?zh(e):et=t,pa.current=null}function zh(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&2048)===0){if(n=yy(n,t,Bn),n!==null){et=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||(Bn&1073741824)!==0||(n.mode&4)===0){for(var o=0,u=n.child;u!==null;)o|=u.lanes|u.childLanes,u=u.sibling;n.childLanes=o}e!==null&&(e.flags&2048)===0&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(n=vy(t),n!==null){n.flags&=2047,et=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(t=t.sibling,t!==null){et=t;return}et=t=e}while(t!==null);at===0&&(at=5)}function Vn(e){var t=pr();return Mn(99,Ay.bind(null,e,t)),null}function Ay(e,t){do Cn();while(ds!==null);if((Pe&48)!==0)throw Error(l(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(l(177));e.callbackNode=null;var o=n.lanes|n.childLanes,u=o,f=e.pendingLanes&~u;e.pendingLanes=u,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=u,e.mutableReadLanes&=u,e.entangledLanes&=u,u=e.entanglements;for(var y=e.eventTimes,x=e.expirationTimes;0<f;){var T=31-cn(f),U=1<<T;u[T]=0,y[T]=-1,x[T]=-1,f&=~U}if(Xt!==null&&(o&24)===0&&Xt.has(e)&&Xt.delete(e),e===mt&&(et=mt=null,dt=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,o!==null){if(u=Pe,Pe|=32,pa.current=null,Nl=qs,y=ff(),jl(y)){if("selectionStart"in y)x={start:y.selectionStart,end:y.selectionEnd};else e:if(x=(x=y.ownerDocument)&&x.defaultView||window,(U=x.getSelection&&x.getSelection())&&U.rangeCount!==0){x=U.anchorNode,f=U.anchorOffset,T=U.focusNode,U=U.focusOffset;try{x.nodeType,T.nodeType}catch{x=null;break e}var de=0,Ee=-1,te=-1,xe=0,$e=0,ke=y,F=null;t:for(;;){for(var N;ke!==x||f!==0&&ke.nodeType!==3||(Ee=de+f),ke!==T||U!==0&&ke.nodeType!==3||(te=de+U),ke.nodeType===3&&(de+=ke.nodeValue.length),(N=ke.firstChild)!==null;)F=ke,ke=N;for(;;){if(ke===y)break t;if(F===x&&++xe===f&&(Ee=de),F===T&&++$e===U&&(te=de),(N=ke.nextSibling)!==null)break;ke=F,F=ke.parentNode}ke=N}x=Ee===-1||te===-1?null:{start:Ee,end:te}}else x=null;x=x||{start:0,end:0}}else x=null;Rl={focusedElem:y,selectionRange:x},qs=!1,ms=null,Ao=!1,ye=o;do try{Ty()}catch(Oe){if(ye===null)throw Error(l(330));kn(ye,Oe),ye=ye.nextEffect}while(ye!==null);ms=null,ye=o;do try{for(y=e;ye!==null;){var I=ye.flags;if(I&16&&bt(ye.stateNode,""),I&128){var J=ye.alternate;if(J!==null){var X=J.ref;X!==null&&(typeof X=="function"?X(null):X.current=null)}}switch(I&1038){case 2:Oh(ye),ye.flags&=-3;break;case 6:Oh(ye),ye.flags&=-3,da(ye.alternate,ye);break;case 1024:ye.flags&=-1025;break;case 1028:ye.flags&=-1025,da(ye.alternate,ye);break;case 4:da(ye.alternate,ye);break;case 8:x=ye,Nh(y,x);var je=x.alternate;Ah(x),je!==null&&Ah(je)}ye=ye.nextEffect}}catch(Oe){if(ye===null)throw Error(l(330));kn(ye,Oe),ye=ye.nextEffect}while(ye!==null);if(X=Rl,J=ff(),I=X.focusedElem,y=X.selectionRange,J!==I&&I&&I.ownerDocument&&cf(I.ownerDocument.documentElement,I)){for(y!==null&&jl(I)&&(J=y.start,X=y.end,X===void 0&&(X=J),"selectionStart"in I?(I.selectionStart=J,I.selectionEnd=Math.min(X,I.value.length)):(X=(J=I.ownerDocument||document)&&J.defaultView||window,X.getSelection&&(X=X.getSelection(),x=I.textContent.length,je=Math.min(y.start,x),y=y.end===void 0?je:Math.min(y.end,x),!X.extend&&je>y&&(x=y,y=je,je=x),x=uf(I,je),f=uf(I,y),x&&f&&(X.rangeCount!==1||X.anchorNode!==x.node||X.anchorOffset!==x.offset||X.focusNode!==f.node||X.focusOffset!==f.offset)&&(J=J.createRange(),J.setStart(x.node,x.offset),X.removeAllRanges(),je>y?(X.addRange(J),X.extend(f.node,f.offset)):(J.setEnd(f.node,f.offset),X.addRange(J)))))),J=[],X=I;X=X.parentNode;)X.nodeType===1&&J.push({element:X,left:X.scrollLeft,top:X.scrollTop});for(typeof I.focus=="function"&&I.focus(),I=0;I<J.length;I++)X=J[I],X.element.scrollLeft=X.left,X.element.scrollTop=X.top}qs=!!Nl,Rl=Nl=null,e.current=n,ye=o;do try{for(I=e;ye!==null;){var we=ye.flags;if(we&36&&Cy(I,ye.alternate,ye),we&128){J=void 0;var Ae=ye.ref;if(Ae!==null){var Re=ye.stateNode;ye.tag,J=Re,typeof Ae=="function"?Ae(J):Ae.current=J}}ye=ye.nextEffect}}catch(Oe){if(ye===null)throw Error(l(330));kn(ye,Oe),ye=ye.nextEffect}while(ye!==null);ye=null,cy(),Pe=u}else e.current=n;if(wn)wn=!1,ds=e,ps=t;else for(ye=o;ye!==null;)t=ye.nextEffect,ye.nextEffect=null,ye.flags&8&&(we=ye,we.sibling=null,we.stateNode=null),ye=t;if(o=e.pendingLanes,o===0&&(qt=null),o===1?e===ka?gs++:(gs=0,ka=e):gs=0,n=n.stateNode,Fn&&typeof Fn.onCommitFiberRoot=="function")try{Fn.onCommitFiberRoot(Fl,n,void 0,(n.current.flags&64)===64)}catch{}if(Ot(e,ft()),$o)throw $o=!1,e=Sa,Sa=null,e;return(Pe&8)!==0||Ut(),null}function Ty(){for(;ye!==null;){var e=ye.alternate;Ao||ms===null||((ye.flags&8)!==0?Oc(ye,ms)&&(Ao=!0):ye.tag===13&&ky(e,ye)&&Oc(ye,ms)&&(Ao=!0));var t=ye.flags;(t&256)!==0&&xy(e,ye),(t&512)===0||wn||(wn=!0,Zr(97,function(){return Cn(),null})),ye=ye.nextEffect}}function Cn(){if(ps!==90){var e=97<ps?97:ps;return ps=90,Mn(e,Ny)}return!1}function Oy(e,t){xa.push(t,e),wn||(wn=!0,Zr(97,function(){return Cn(),null}))}function Dh(e,t){Ca.push(t,e),wn||(wn=!0,Zr(97,function(){return Cn(),null}))}function Ny(){if(ds===null)return!1;var e=ds;if(ds=null,(Pe&48)!==0)throw Error(l(331));var t=Pe;Pe|=32;var n=Ca;Ca=[];for(var o=0;o<n.length;o+=2){var u=n[o],f=n[o+1],y=u.destroy;if(u.destroy=void 0,typeof y=="function")try{y()}catch(T){if(f===null)throw Error(l(330));kn(f,T)}}for(n=xa,xa=[],o=0;o<n.length;o+=2){u=n[o],f=n[o+1];try{var x=u.create;u.destroy=x()}catch(T){if(f===null)throw Error(l(330));kn(f,T)}}for(x=e.current.firstEffect;x!==null;)e=x.nextEffect,x.nextEffect=null,x.flags&8&&(x.sibling=null,x.stateNode=null),x=e;return Pe=t,Ut(),!0}function Uh(e,t,n){t=ua(n,t),t=kh(e,t,1),yn(e,t),t=$t(),e=To(e,1),e!==null&&(Hs(e,1,t),Ot(e,t))}function kn(e,t){if(e.tag===3)Uh(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){Uh(n,e,t);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(qt===null||!qt.has(o))){e=ua(t,e);var u=Ph(n,e,1);if(yn(n,u),u=$t(),n=To(n,1),n!==null)Hs(n,1,u),Ot(n,u);else if(typeof o.componentDidCatch=="function"&&(qt===null||!qt.has(o)))try{o.componentDidCatch(t,e)}catch{}break}}n=n.return}}function Ry(e,t,n){var o=e.pingCache;o!==null&&o.delete(t),t=$t(),e.pingedLanes|=e.suspendedLanes&n,mt===e&&(dt&n)===n&&(at===4||at===3&&(dt&62914560)===dt&&500>ft()-va?kr(e,0):ma|=n),Ot(e,t)}function _y(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,(t&2)===0?t=1:(t&4)===0?t=pr()===99?1:2:(Zt===0&&(Zt=wr),t=sr(62914560&~Zt),t===0&&(t=4194304))),n=$t(),e=To(e,t),e!==null&&(Hs(e,t,n),Ot(e,n))}var Bh;Bh=function(e,t,n){var o=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||wt.current)Ft=!0;else if((n&o)!==0)Ft=(e.flags&16384)!==0;else{switch(Ft=!1,t.tag){case 3:dh(t),Jl();break;case 5:Gf(t);break;case 1:St(t.type)&&ro(t);break;case 4:Kl(t,t.stateNode.containerInfo);break;case 10:o=t.memoizedProps.value;var u=t.type._context;Qe(io,u._currentValue),u._currentValue=o;break;case 13:if(t.memoizedState!==null)return(n&t.child.childLanes)!==0?ph(e,t,n):(Qe(Je,Je.current&1),t=Yt(e,t,n),t!==null?t.sibling:null);Qe(Je,Je.current&1);break;case 19:if(o=(n&t.childLanes)!==0,(e.flags&64)!==0){if(o)return wh(e,t,n);t.flags|=64}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),Qe(Je,Je.current),o)break;return null;case 23:case 24:return t.lanes=0,sa(e,t,n)}return Yt(e,t,n)}else Ft=!1;switch(t.lanes=0,t.tag){case 2:if(o=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,u=dr(t,ct.current),mr(t,n),u=Zl(null,t,o,e,u,n),t.flags|=1,typeof u=="object"&&u!==null&&typeof u.render=="function"&&u.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,St(o)){var f=!0;ro(t)}else f=!1;t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,ql(t);var y=o.getDerivedStateFromProps;typeof y=="function"&&uo(t,o,y,e),u.updater=co,t.stateNode=u,u._reactInternals=t,Wl(t,o,e,n),t=ia(null,t,o,!0,f,n)}else t.tag=0,Ct(null,t,u,n),t=t.child;return t;case 16:u=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,f=u._init,u=f(u._payload),t.type=u,f=t.tag=by(u),e=It(u,e),f){case 0:t=oa(null,t,u,e,n);break e;case 1:t=hh(null,t,u,e,n);break e;case 11:t=ah(null,t,u,e,n);break e;case 14:t=uh(null,t,u,It(u.type,e),o,n);break e}throw Error(l(306,u,""))}return t;case 0:return o=t.type,u=t.pendingProps,u=t.elementType===o?u:It(o,u),oa(e,t,o,u,n);case 1:return o=t.type,u=t.pendingProps,u=t.elementType===o?u:It(o,u),hh(e,t,o,u,n);case 3:if(dh(t),o=t.updateQueue,e===null||o===null)throw Error(l(282));if(o=t.pendingProps,u=t.memoizedState,u=u!==null?u.element:null,zf(e,t),es(t,o,null,n),o=t.memoizedState.element,o===u)Jl(),t=Yt(e,t,n);else{if(u=t.stateNode,(f=u.hydrate)&&(vn=ur(t.stateNode.containerInfo.firstChild),Jt=t,f=Vt=!0),f){if(e=u.mutableSourceEagerHydrationData,e!=null)for(u=0;u<e.length;u+=2)f=e[u],f._workInProgressVersionPrimary=e[u+1],vr.push(f);for(n=Kf(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else Ct(e,t,o,n),Jl();t=t.child}return t;case 5:return Gf(t),e===null&&Ql(t),o=t.type,u=t.pendingProps,f=e!==null?e.memoizedProps:null,y=u.children,_l(o,u)?y=null:f!==null&&_l(o,f)&&(t.flags|=16),fh(e,t),Ct(e,t,y,n),t.child;case 6:return e===null&&Ql(t),null;case 13:return ph(e,t,n);case 4:return Kl(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=po(t,null,o,n):Ct(e,t,o,n),t.child;case 11:return o=t.type,u=t.pendingProps,u=t.elementType===o?u:It(o,u),ah(e,t,o,u,n);case 7:return Ct(e,t,t.pendingProps,n),t.child;case 8:return Ct(e,t,t.pendingProps.children,n),t.child;case 12:return Ct(e,t,t.pendingProps.children,n),t.child;case 10:e:{o=t.type._context,u=t.pendingProps,y=t.memoizedProps,f=u.value;var x=t.type._context;if(Qe(io,x._currentValue),x._currentValue=f,y!==null)if(x=y.value,f=jt(x,f)?0:(typeof o._calculateChangedBits=="function"?o._calculateChangedBits(x,f):1073741823)|0,f===0){if(y.children===u.children&&!wt.current){t=Yt(e,t,n);break e}}else for(x=t.child,x!==null&&(x.return=t);x!==null;){var T=x.dependencies;if(T!==null){y=x.child;for(var U=T.firstContext;U!==null;){if(U.context===o&&(U.observedBits&f)!==0){x.tag===1&&(U=mn(-1,n&-n),U.tag=2,yn(x,U)),x.lanes|=n,U=x.alternate,U!==null&&(U.lanes|=n),Mf(x.return,n),T.lanes|=n;break}U=U.next}}else y=x.tag===10&&x.type===t.type?null:x.child;if(y!==null)y.return=x;else for(y=x;y!==null;){if(y===t){y=null;break}if(x=y.sibling,x!==null){x.return=y.return,y=x;break}y=y.return}x=y}Ct(e,t,u.children,n),t=t.child}return t;case 9:return u=t.type,f=t.pendingProps,o=f.children,mr(t,n),u=At(u,f.unstable_observedBits),o=o(u),t.flags|=1,Ct(e,t,o,n),t.child;case 14:return u=t.type,f=It(u,t.pendingProps),f=It(u.type,f),uh(e,t,u,f,o,n);case 15:return ch(e,t,t.type,t.pendingProps,o,n);case 17:return o=t.type,u=t.pendingProps,u=t.elementType===o?u:It(o,u),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,St(o)?(e=!0,ro(t)):e=!1,mr(t,n),Hf(t,o,u),Wl(t,o,u,n),ia(null,t,o,!0,e,n);case 19:return wh(e,t,n);case 23:return sa(e,t,n);case 24:return sa(e,t,n)}throw Error(l(156,t.tag))};function Ly(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Nt(e,t,n,o){return new Ly(e,t,n,o)}function Ea(e){return e=e.prototype,!(!e||!e.isReactComponent)}function by(e){if(typeof e=="function")return Ea(e)?1:0;if(e!=null){if(e=e.$$typeof,e===se)return 11;if(e===Te)return 14}return 2}function Pn(e,t){var n=e.alternate;return n===null?(n=Nt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function No(e,t,n,o,u,f){var y=2;if(o=e,typeof e=="function")Ea(e)&&(y=1);else if(typeof e=="string")y=5;else e:switch(e){case re:return Pr(n.children,u,f,t);case ge:y=8,u|=16;break;case fe:y=8,u|=1;break;case b:return e=Nt(12,n,t,u|8),e.elementType=b,e.type=b,e.lanes=f,e;case he:return e=Nt(13,n,t,u),e.type=he,e.elementType=he,e.lanes=f,e;case Se:return e=Nt(19,n,t,u),e.elementType=Se,e.lanes=f,e;case V:return ja(n,u,f,t);case ee:return e=Nt(24,n,t,u),e.elementType=ee,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:y=10;break e;case K:y=9;break e;case se:y=11;break e;case Te:y=14;break e;case S:y=16,o=null;break e;case O:y=22;break e}throw Error(l(130,e==null?e:typeof e,""))}return t=Nt(y,n,t,u),t.elementType=e,t.type=o,t.lanes=f,t}function Pr(e,t,n,o){return e=Nt(7,e,o,t),e.lanes=n,e}function ja(e,t,n,o){return e=Nt(23,e,o,t),e.elementType=V,e.lanes=n,e}function Aa(e,t,n){return e=Nt(6,e,null,t),e.lanes=n,e}function Ta(e,t,n){return t=Nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Iy(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=gl(0),this.expirationTimes=gl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gl(0),this.mutableSourceEagerHydrationData=null}function Fy(e,t,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ne,key:o==null?null:""+o,children:e,containerInfo:t,implementation:n}}function Ro(e,t,n,o){var u=t.current,f=$t(),y=Sn(u);e:if(n){n=n._reactInternals;t:{if(Ln(n)!==n||n.tag!==1)throw Error(l(170));var x=n;do{switch(x.tag){case 3:x=x.stateNode.context;break t;case 1:if(St(x.type)){x=x.stateNode.__reactInternalMemoizedMergedChildContext;break t}}x=x.return}while(x!==null);throw Error(l(171))}if(n.tag===1){var T=n.type;if(St(T)){n=Af(n,T,x);break e}}n=x}else n=pn;return t.context===null?t.context=n:t.pendingContext=n,t=mn(f,y),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),yn(u,t),xn(u,y,f),y}function Oa(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function Vh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Na(e,t){Vh(e,t),(e=e.alternate)&&Vh(e,t)}function My(){return null}function Ra(e,t,n){var o=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new Iy(e,t,n!=null&&n.hydrate===!0),t=Nt(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,ql(t),e[cr]=n.current,yf(e.nodeType===8?e.parentNode:e),o)for(e=0;e<o.length;e++){t=o[e];var u=t._getVersion;u=u(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,u]:n.mutableSourceEagerHydrationData.push(t,u)}this._internalRoot=n}Ra.prototype.render=function(e){Ro(e,this._internalRoot,null,null)},Ra.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ro(null,e,null,function(){t[cr]=null})};function vs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function zy(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 Ra(e,0,t?{hydrate:!0}:void 0)}function _o(e,t,n,o,u){var f=n._reactRootContainer;if(f){var y=f._internalRoot;if(typeof u=="function"){var x=u;u=function(){var U=Oa(y);x.call(U)}}Ro(t,y,e,u)}else{if(f=n._reactRootContainer=zy(n,o),y=f._internalRoot,typeof u=="function"){var T=u;u=function(){var U=Oa(y);T.call(U)}}bh(function(){Ro(t,y,e,u)})}return Oa(y)}Nc=function(e){if(e.tag===13){var t=$t();xn(e,4,t),Na(e,4)}},ul=function(e){if(e.tag===13){var t=$t();xn(e,67108864,t),Na(e,67108864)}},Rc=function(e){if(e.tag===13){var t=$t(),n=Sn(e);xn(e,n,t),Na(e,n)}},_c=function(e,t){return t()},Fs=function(e,t,n){switch(t){case"input":if(C(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var u=to(o);if(!u)throw Error(l(90));Ze(o),C(o,u)}}}break;case"textarea":Y(e,n);break;case"select":t=n.value,t!=null&&Z(e,!!n.multiple,t,!1)}},it=Lh,zt=function(e,t,n,o,u){var f=Pe;Pe|=4;try{return Mn(98,e.bind(null,t,n,o,u))}finally{Pe=f,Pe===0&&(xr(),Ut())}},Gt=function(){(Pe&49)===0&&($y(),Cn())},_r=function(e,t){var n=Pe;Pe|=2;try{return e(t)}finally{Pe=n,Pe===0&&(xr(),Ut())}};function Hh(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!vs(t))throw Error(l(200));return Fy(e,t,null,n)}var Dy={Events:[Xr,fr,to,Rn,Rr,Cn,{current:!1}]},ws={findFiberByHostInstance:bn,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},Uy={bundleType:ws.bundleType,version:ws.version,rendererPackageName:ws.rendererPackageName,rendererConfig:ws.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ce.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Tc(e),e===null?null:e.stateNode},findFiberByHostInstance:ws.findFiberByHostInstance||My,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Lo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Lo.isDisabled&&Lo.supportsFiber)try{Fl=Lo.inject(Uy),Fn=Lo}catch{}}return kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Dy,kt.createPortal=Hh,kt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):Error(l(268,Object.keys(e)));return e=Tc(t),e=e===null?null:e.stateNode,e},kt.flushSync=function(e,t){var n=Pe;if((n&48)!==0)return e(t);Pe|=1;try{if(e)return Mn(99,e.bind(null,t))}finally{Pe=n,Ut()}},kt.hydrate=function(e,t,n){if(!vs(t))throw Error(l(200));return _o(null,e,t,!0,n)},kt.render=function(e,t,n){if(!vs(t))throw Error(l(200));return _o(null,e,t,!1,n)},kt.unmountComponentAtNode=function(e){if(!vs(e))throw Error(l(40));return e._reactRootContainer?(bh(function(){_o(null,null,e,!1,function(){e._reactRootContainer=null,e[cr]=null})}),!0):!1},kt.unstable_batchedUpdates=Lh,kt.unstable_createPortal=function(e,t){return Hh(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},kt.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!vs(n))throw Error(l(200));if(e==null||e._reactInternals===void 0)throw Error(l(38));return _o(e,t,n,!1,o)},kt.version="17.0.2",kt}var Ua;function Xh(){if(Ua)return Bo.exports;Ua=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(s){console.error(s)}}return r(),Bo.exports=Yh(),Bo.exports}var qo=Xh();const Zh=Io(qo),ut=en.createContext({posts:[],authors:[],tags:[],action:"",lastPage:"",page:"",pageData:{},dispatch:(r,s)=>{},searchIndex:null,indexComplete:!1,searchValue:"",t:()=>{},dir:"ltr"}),ed=r=>_e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:16,width:16,viewBox:"0 0 16 16",...r},_e.createElement("title",null,"circle anim"),_e.createElement("g",{fill:"#40413F",className:"nc-icon-wrapper"},_e.createElement("g",{className:"nc-loop-circle-16-icon-f"},_e.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"}),_e.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"})),_e.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)}}"))),td=r=>_e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:16,width:16,...r},_e.createElement("path",{strokeLinecap:"round",strokeWidth:.4,fill:"currentColor",stroke:"#000000",strokeLinejoin:"round",d:"M.44,21.44a1.49,1.49,0,0,0,0,2.12,1.5,1.5,0,0,0,2.12,0l9.26-9.26a.25.25,0,0,1,.36,0l9.26,9.26a1.5,1.5,0,0,0,2.12,0,1.49,1.49,0,0,0,0-2.12L14.3,12.18a.25.25,0,0,1,0-.36l9.26-9.26A1.5,1.5,0,0,0,21.44.44L12.18,9.7a.25.25,0,0,1-.36,0L2.56.44A1.5,1.5,0,0,0,.44,2.56L9.7,11.82a.25.25,0,0,1,0,.36Z"}));class nd extends _e.Component{componentDidMount(){this.node.addEventListener("load",this.handleLoad)}handleLoad=()=>{this.setupFrameBaseStyle()};componentWillUnmout(){this.node.removeEventListener("load",this.handleLoad)}setupFrameBaseStyle(){this.node.contentDocument&&(this.iframeHtml=this.node.contentDocument.documentElement,this.iframeHtml.setAttribute("dir",this.props.searchdir),this.iframeHead=this.node.contentDocument.head,this.iframeRoot=this.node.contentDocument.body,this.forceUpdate())}render(){const{children:s,head:i,title:l="",style:a={},...h}=this.props;return le.jsxs("iframe",{srcDoc:"<!DOCTYPE html>",...h,ref:p=>this.node=p,title:l,style:a,frameBorder:"0",children:[this.iframeHead&&qo.createPortal(i,this.iframeHead),this.iframeRoot&&qo.createPortal(s,this.iframeRoot)]})}}const rd=r=>_e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:16,width:16,...r},_e.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"})),Ba=10,sd=10,od=()=>({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 id extends en.Component{static contextType=ut;componentDidMount(){this.sendContainerHeightChangeEvent()}sendContainerHeightChangeEvent(){}componentDidUpdate(){this.sendContainerHeightChangeEvent()}handlePopupClose(s){s.preventDefault(),s.target===s.currentTarget&&this.context.dispatch("update",{showPopup:!1})}render(){return le.jsx(Pd,{})}}function ld(){const{searchValue:r,dispatch:s,inputRef:i,t:l}=_e.useContext(ut),a=_e.useRef(null);_e.useEffect(()=>{setTimeout(()=>{i?.current?.focus()},150);let p=g=>{g.key==="Escape"&&s("update",{showPopup:!1})};const v=a?.current;return v?.ownerDocument.removeEventListener("keyup",p),v?.ownerDocument.addEventListener("keyup",p),()=>{v?.ownerDocument.removeEventListener("keyup",p)}},[s,i]);let h="z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-t-lg shadow";return r||(h="z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-lg"),le.jsxs("div",{className:h,ref:a,children:[le.jsx("div",{className:"flex items-center justify-center w-4 h-4 me-3",children:le.jsx(ad,{})}),le.jsx("input",{ref:i,value:r||"",onChange:p=>{s("update",{searchValue:p.target.value})},onKeyDown:p=>{(p.key==="ArrowUp"||p.key==="ArrowDown")&&p.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:l("Search posts, tags and authors")}),le.jsx(ud,{}),le.jsx(cd,{})]})}function ad(){const{searchValue:r="",dispatch:s}=_e.useContext(ut);return r?le.jsx("button",{alt:"Clear",className:"-mb-[1px]",onClick:()=>{s("update",{searchValue:""})},children:le.jsx(td,{className:"text-neutral-900 hover:text-neutral-500 h-[1.1rem] w-[1.1rem]"})}):le.jsx(rd,{className:"text-neutral-900",alt:"Search"})}function ud(){const{indexComplete:r,searchValue:s}=_e.useContext(ut);return!r&&s?le.jsx(ed,{className:"shrink-0"}):null}function cd(){const{dispatch:r,t:s}=_e.useContext(ut);return le.jsx("button",{className:"ms-3 text-sm text-neutral-500 sm:hidden",alt:"Cancel",onClick:()=>{r("update",{showPopup:!1})},children:s("Cancel")})}function fd({tag:r,selectedResult:s,setSelectedResult:i}){const{name:l,url:a,id:h}=r;let p="flex items-center py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer";return h===s&&(p+=" bg-neutral-100"),le.jsxs("div",{className:p,onClick:()=>{a&&(window.location.href=a)},onMouseEnter:()=>{i(h)},children:[le.jsx("p",{className:"me-2 text-sm font-bold text-neutral-400",children:"#"}),le.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-900 truncate",children:l})]})}function hd({tags:r,selectedResult:s,setSelectedResult:i}){const{t:l}=_e.useContext(ut);if(!r?.length)return null;const a=r.map(h=>le.jsx(fd,{tag:h,selectedResult:s,setSelectedResult:i},h.name));return le.jsxs("div",{className:"border-t border-gray-200 py-3 px-4 sm:px-7",children:[le.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:l("Tags")}),a]})}function dd({post:r,selectedResult:s,setSelectedResult:i}){const{searchValue:l}=_e.useContext(ut),{title:a,excerpt:h,url:p,id:v}=r;let g="py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer";return v===s&&(g+=" bg-neutral-100"),le.jsxs("div",{className:g,onClick:()=>{p&&(window.location.href=p)},onMouseEnter:()=>{i(v)},children:[le.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-800",children:le.jsx(Ha,{text:a,highlight:l,isExcerpt:!1})}),le.jsx("p",{className:"text-neutral-400 leading-normal text-sm mt-0 mb-0 truncate",children:le.jsx(Ha,{text:h,highlight:l,isExcerpt:!0})})]})}function pd({text:r,highlight:s}){let i="";s?.split(" ").forEach((p,v)=>{const g=String(p).replace(/\W/g,"\\&");v>0?i+="|^"+g+"|\\s"+g:i="^"+g+"|\\s"+g});const l=new RegExp(`${i}`,"ig");let a=r?.matchAll(l);const h=[];for(const p of a)h.push({startIdx:p?.index,endIdx:(p?.index||0)+(p?.[0].length||0)});return h}function Va({text:r,highlight:s}){const i=pd({text:r,highlight:s}),l=[];let a=0;return i.forEach(h=>{a===h.startIdx?(l.push({text:r?.slice(h.startIdx,h.endIdx),type:"highlight"}),a=h.endIdx):(l.push({text:r?.slice(a,h.startIdx),type:"normal"}),l.push({text:r?.slice(h.startIdx,h.endIdx),type:"highlight"}),a=h.endIdx)}),a<r?.length&&l.push({text:r?.slice(a,r.length),type:"normal"}),{parts:l,highlightIndexes:i}}function Ha({text:r="",highlight:s="",isExcerpt:i}){r=r||"",s=s||"";let{parts:l,highlightIndexes:a}=Va({text:r,highlight:s});if(i&&a?.[0]){const p=a?.[0]?.startIdx;if(p>50){r="..."+r?.slice(p-20);const{parts:v}=Va({text:r,highlight:s});l=v}}const h=l.map((p,v)=>p?.type==="highlight"?le.jsx(en.Fragment,{children:le.jsx(gd,{word:p.text,isExcerpt:i})},v):le.jsx(en.Fragment,{children:p.text},v));return le.jsx(le.Fragment,{children:h})}function gd({word:r,isExcerpt:s}){return s?le.jsx(le.Fragment,{children:le.jsx("span",{className:"font-bold",children:r})}):le.jsx(le.Fragment,{children:le.jsx("span",{className:"font-bold text-neutral-900",children:r})})}function md({posts:r,maxPosts:s,setMaxPosts:i}){const{t:l}=_e.useContext(ut);return!r?.length||s>=r?.length?null:le.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 a=s+sd;i(a)},children:l("Show more results")})}function yd({posts:r,selectedResult:s,setSelectedResult:i}){const{t:l}=_e.useContext(ut),[a,h]=_e.useState(Ba),[p,v]=_e.useState([]);if(_e.useEffect(()=>{h(Ba)},[r]),_e.useEffect(()=>{v(r?.slice(0,a+1))},[a,r]),!r?.length)return null;function g(){return p.map(w=>le.jsx(dd,{post:w,selectedResult:s,setSelectedResult:i},w.title))}return le.jsxs("div",{className:"border-t border-neutral-200 py-3 px-4 sm:px-7",children:[le.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:l("Posts")}),le.jsx(g,{}),le.jsx(md,{setMaxPosts:h,maxPosts:a,posts:r})]})}function vd({author:r,selectedResult:s,setSelectedResult:i}){const{name:l,profile_image:a,url:h,id:p}=r;let v="py-[1rem] -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer flex items-center";return p===s&&(v+=" bg-neutral-100"),le.jsxs("div",{className:v,onClick:()=>{h&&(window.location.href=h)},onMouseEnter:()=>{i(p)},children:[le.jsx(wd,{name:l,avatar:a}),le.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-900 truncate",children:l})]})}function wd({name:r,avatar:s}){const i=s?.length,l=r.charAt(0);return i?le.jsx("img",{className:"rounded-full bg-neutral-300 w-7 h-7 me-2 object-cover",src:s,alt:r}):le.jsx("div",{className:"rounded-full bg-neutral-200 w-7 h-7 me-2 flex items-center justify-center font-bold",children:le.jsx("span",{className:"text-neutral-400",children:l})})}function Sd({authors:r,selectedResult:s,setSelectedResult:i}){const{t:l}=_e.useContext(ut);if(!r?.length)return null;const a=r.map(h=>le.jsx(vd,{author:h,selectedResult:s,setSelectedResult:i},h.name));return le.jsxs("div",{className:"border-t border-neutral-200 py-3 px-4 sm:px-7",children:[le.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:l("Authors")}),a]})}function xd(){const{searchValue:r="",searchIndex:s,indexComplete:i}=_e.useContext(ut);let l=null,a=[],h=[],p=[];return i&&r&&(l=s?.search(r),h=l?.posts||[],p=l?.authors||[],a=l?.tags||[]),p=p.filter(g=>{const w=/\/404\/$/;return!(g?.url&&w.test(g?.url))}),a=a.filter(g=>{const w=/\/404\/$/;return!(g?.url&&w.test(g?.url))}),h?.length||p?.length||a?.length?le.jsx(Cd,{posts:h,authors:p,tags:a}):r?le.jsx(kd,{}):null}function Cd({posts:r,authors:s,tags:i}){const{searchValue:l}=_e.useContext(ut),a=_e.useMemo(()=>[...s,...i,...r],[s,i,r]),h=a?.[0]?.id||null,[p,v]=_e.useState(h),g=_e.useRef(null);return _e.useEffect(()=>{v(a?.[0]?.id||null)},[a]),_e.useEffect(()=>{let w=$=>{const j=a.findIndex(_=>_.id===p);let A=a[j+1],z=a[j-1];if($.key==="ArrowUp"&&z?v(z?.id):$.key==="ArrowDown"&&A&&v(A?.id),$.key==="Enter"){const _=a.find(R=>R.id===p);window.location.href=_?.url}};const k=g?.current;return k?.ownerDocument.removeEventListener("keyup",w),k?.ownerDocument.addEventListener("keyup",w),()=>{k?.ownerDocument?.removeEventListener("keyup",w)}},[a,p]),l?le.jsxs("div",{className:"overflow-y-auto max-h-[calc(100vh-172px)] sm:max-h-[70vh] -mt-[1px]",ref:g,children:[le.jsx(Sd,{authors:s,selectedResult:p,setSelectedResult:v}),le.jsx(hd,{tags:i,selectedResult:p,setSelectedResult:v}),le.jsx(yd,{posts:r,selectedResult:p,setSelectedResult:v})]}):null}function kd(){const{t:r}=_e.useContext(ut);return le.jsx("div",{className:"py-4 px-7",children:le.jsx("p",{className:"text-[1.65rem] text-neutral-400 leading-normal",children:r("No matches found")})})}function Pd(){const{dispatch:r}=_e.useContext(ut);return le.jsx(le.Fragment,{children:le.jsx("div",{className:"h-screen w-screen pt-20 antialiased z-50 relative ghost-display",onClick:s=>{s.preventDefault(),s.target===s.currentTarget&&r("update",{showPopup:!1})},children:le.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:[le.jsx(ld,{}),le.jsx(xd,{})]})})})}class $d extends en.Component{static contextType=ut;constructor(s){super(s),this.state={height:null}}onHeightChange(s){this.setState({height:s})}handlePopupClose(s){s.preventDefault(),s.target===s.currentTarget&&this.context.dispatch("update",{showPopup:!1})}renderFrameStyles(){const s=`
|
|
11
11
|
:root {
|
|
12
12
|
--brandcolor: ${this.context.brandColor||""}
|
|
13
13
|
}
|
|
@@ -15,16 +15,16 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
15
15
|
.ghost-display {
|
|
16
16
|
display: none;
|
|
17
17
|
}
|
|
18
|
-
`,l=this.context.stylesUrl;return l?te.jsxs(te.Fragment,{children:[te.jsx("link",{rel:"stylesheet",href:l}),te.jsx("style",{dangerouslySetInnerHTML:{__html:s}}),te.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]}):te.jsxs(te.Fragment,{children:[te.jsx("style",{dangerouslySetInnerHTML:{__html:s}}),te.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]})}renderFrameContainer(){const s=id(),l={...s.frame.common};return te.jsx("div",{style:s.modalContainer,className:"gh-root-frame",children:te.jsxs(rd,{style:l,title:"portal-popup",head:this.renderFrameStyles(),searchdir:this.context.dir,children:[te.jsx("div",{onClick:i=>this.handlePopupClose(i),className:"absolute top-0 bottom-0 left-0 right-0 block backdrop-blur-[2px] animate-fadein z-0 bg-gradient-to-br from-[rgba(0,0,0,0.2)] to-[rgba(0,0,0,0.1)]"}),te.jsx(ld,{})]})})}render(){const{showPopup:s}=this.context;return s?this.renderFrameContainer():null}}var ve;function st(r,s,l){const i=typeof l,u=typeof r;if(i!=="undefined"){if(u!=="undefined"){if(l){if(u==="function"&&i===u)return function(v){return r(l(v))};if(s=r.constructor,s===l.constructor){if(s===Array)return l.concat(r);if(s===Map){var c=new Map(l);for(var d of r)c.set(d[0],d[1]);return c}if(s===Set){d=new Set(l);for(c of r.values())d.add(c);return d}}}return r}return l}return u==="undefined"?s:r}function Xe(){return Object.create(null)}function Rt(r){return typeof r=="string"}function Cr(r){return typeof r=="object"}function jd(r){const s=[];for(const l of r.keys())s.push(l);return s}function kr(r,s){if(Rt(s))r=r[s];else for(let l=0;r&&l<s.length;l++)r=r[s[l]];return r}function Ad(r){let s=0;for(let l=0,i;l<r.length;l++)(i=r[l])&&s<i.length&&(s=i.length);return s}const Od=/[^\p{L}\p{N}]+/u,Td=/(\d{3})/g,Nd=/(\D)(\d{3})/g,Rd=/(\d{3})(\D)/g,Da=/[\u0300-\u036f]/g;function Pr(r={}){if(!this||this.constructor!==Pr)return new Pr(...arguments);if(arguments.length)for(r=0;r<arguments.length;r++)this.assign(arguments[r]);else this.assign(r)}ve=Pr.prototype,ve.assign=function(r){this.normalize=st(r.normalize,!0,this.normalize);let s=r.include,l=s||r.exclude||r.split,i;if(l||l===""){if(typeof l=="object"&&l.constructor!==RegExp){let u="";i=!s,s||(u+="\\p{Z}"),l.letter&&(u+="\\p{L}"),l.number&&(u+="\\p{N}",i=!!s),l.symbol&&(u+="\\p{S}"),l.punctuation&&(u+="\\p{P}"),l.control&&(u+="\\p{C}"),(l=l.char)&&(u+=typeof l=="object"?l.join(""):l);try{this.split=new RegExp("["+(s?"^":"")+u+"]+","u")}catch{this.split=/\s+/}}else this.split=l,i=l===!1||2>"a1a".split(l).length;this.numeric=st(r.numeric,i)}else{try{this.split=st(this.split,Od)}catch{this.split=/\s+/}this.numeric=st(r.numeric,st(this.numeric,!0))}if(this.prepare=st(r.prepare,null,this.prepare),this.finalize=st(r.finalize,null,this.finalize),l=r.filter,this.filter=typeof l=="function"?l:st(l&&new Set(l),null,this.filter),this.dedupe=st(r.dedupe,!0,this.dedupe),this.matcher=st((l=r.matcher)&&new Map(l),null,this.matcher),this.mapper=st((l=r.mapper)&&new Map(l),null,this.mapper),this.stemmer=st((l=r.stemmer)&&new Map(l),null,this.stemmer),this.replacer=st(r.replacer,null,this.replacer),this.minlength=st(r.minlength,1,this.minlength),this.maxlength=st(r.maxlength,1024,this.maxlength),this.rtl=st(r.rtl,!1,this.rtl),(this.cache=l=st(r.cache,!0,this.cache))&&(this.H=null,this.S=typeof l=="number"?l:2e5,this.B=new Map,this.G=new Map,this.L=this.K=128),this.h="",this.M=null,this.A="",this.N=null,this.matcher)for(const u of this.matcher.keys())this.h+=(this.h?"|":"")+u;if(this.stemmer)for(const u of this.stemmer.keys())this.A+=(this.A?"|":"")+u;return this},ve.addStemmer=function(r,s){return this.stemmer||(this.stemmer=new Map),this.stemmer.set(r,s),this.A+=(this.A?"|":"")+r,this.N=null,this.cache&&En(this),this},ve.addFilter=function(r){return typeof r=="function"?this.filter=r:(this.filter||(this.filter=new Set),this.filter.add(r)),this.cache&&En(this),this},ve.addMapper=function(r,s){return typeof r=="object"?this.addReplacer(r,s):1<r.length?this.addMatcher(r,s):(this.mapper||(this.mapper=new Map),this.mapper.set(r,s),this.cache&&En(this),this)},ve.addMatcher=function(r,s){return typeof r=="object"?this.addReplacer(r,s):2>r.length&&(this.dedupe||this.mapper)?this.addMapper(r,s):(this.matcher||(this.matcher=new Map),this.matcher.set(r,s),this.h+=(this.h?"|":"")+r,this.M=null,this.cache&&En(this),this)},ve.addReplacer=function(r,s){return typeof r=="string"?this.addMatcher(r,s):(this.replacer||(this.replacer=[]),this.replacer.push(r,s),this.cache&&En(this),this)},ve.encode=function(r){if(this.cache&&r.length<=this.K)if(this.H){if(this.B.has(r))return this.B.get(r)}else this.H=setTimeout(En,50,this);this.normalize&&(typeof this.normalize=="function"?r=this.normalize(r):r=Da?r.normalize("NFKD").replace(Da,"").toLowerCase():r.toLowerCase()),this.prepare&&(r=this.prepare(r)),this.numeric&&3<r.length&&(r=r.replace(Nd,"$1 $2").replace(Rd,"$1 $2").replace(Td,"$1 "));const s=!(this.dedupe||this.mapper||this.filter||this.matcher||this.stemmer||this.replacer);let l=[],i=this.split||this.split===""?r.split(this.split):r;for(let c=0,d,v;c<i.length;c++)if((d=v=i[c])&&!(d.length<this.minlength||d.length>this.maxlength)){if(s)l.push(d);else if(!this.filter||(typeof this.filter=="function"?this.filter(d):!this.filter.has(d))){if(this.cache&&d.length<=this.L)if(this.H){var u=this.G.get(d);if(u||u===""){u&&l.push(u);continue}}else this.H=setTimeout(En,50,this);if(this.stemmer&&2<d.length&&(this.N||(this.N=new RegExp("(?!^)("+this.A+")$")),d=d.replace(this.N,g=>this.stemmer.get(g))),d&&(this.mapper||this.dedupe&&1<d.length)){u="";for(let g=0,C="",$,P;g<d.length;g++)$=d.charAt(g),$===C&&this.dedupe||((P=this.mapper&&this.mapper.get($))||P===""?P===C&&this.dedupe||!(C=P)||(u+=P):u+=C=$);d=u}if(this.matcher&&1<d.length&&(this.M||(this.M=new RegExp("("+this.h+")","g")),d=d.replace(this.M,g=>this.matcher.get(g))),d&&this.replacer)for(u=0;d&&u<this.replacer.length;u+=2)d=d.replace(this.replacer[u],this.replacer[u+1]);this.cache&&v.length<=this.L&&(this.G.set(v,d),this.G.size>this.S&&(this.G.clear(),this.L=this.L/1.1|0)),d&&l.push(d)}}return this.finalize&&(l=this.finalize(l)||l),this.cache&&r.length<=this.K&&(this.B.set(r,l),this.B.size>this.S&&(this.B.clear(),this.K=this.K/1.1|0)),l};function En(r){r.H=null,r.B.clear(),r.G.clear()}let Hn,Er;async function _d(r){r=r.data;var s=r.task;const l=r.id;let i=r.args;if(s==="init")Er=r.options||{},(s=r.factory)?(Function("return "+s)()(self),Hn=new self.FlexSearch.Index(Er),delete self.FlexSearch):Hn=new Mt(Er),postMessage({id:l});else{let u;s==="export"&&(i[1]?(i[0]=Er.export,i[2]=0,i[3]=1):i=null),s==="import"?i[0]&&(r=await Er.import.call(Hn,i[0]),Hn.import(i[0],r)):(u=i&&Hn[s].apply(Hn,i))&&u.then&&(u=await u),postMessage(s==="search"?{id:l,msg:u}:{id:l})}}function Bo(r){$r.call(r,"add"),$r.call(r,"append"),$r.call(r,"search"),$r.call(r,"update"),$r.call(r,"remove")}let qo,Ma,ws;function Ld(){qo=ws=0}function $r(r){this[r+"Async"]=function(){const s=arguments;var l=s[s.length-1];let i;if(typeof l=="function"&&(i=l,delete s[s.length-1]),qo?ws||(ws=Date.now()-Ma>=this.priority*this.priority*3):(qo=setTimeout(Ld,0),Ma=Date.now()),ws){const c=this;return new Promise(d=>{setTimeout(function(){d(c[r+"Async"].apply(c,s))},0)})}const u=this[r].apply(this,s);return l=u.then?u:new Promise(c=>c(u)),i&&l.then(i),l}}let Wn=0;function jr(r={}){function s(d){function v(g){g=g.data||g;const C=g.id,$=C&&u.h[C];$&&($(g.msg),delete u.h[C])}if(this.worker=d,this.h=Xe(),this.worker)return i?this.worker.on("message",v):this.worker.onmessage=v,r.config?new Promise(function(g){u.h[++Wn]=function(){g(u),1e9<Wn&&(Wn=0)},u.worker.postMessage({id:Wn,task:"init",factory:l,options:r})}):(this.worker.postMessage({task:"init",factory:l,options:r}),this.priority=r.priority||4,this)}if(!this||this.constructor!==jr)return new jr(r);let l=typeof self<"u"?self._factory:typeof window<"u"?window._factory:null;l&&(l=l.toString());const i=typeof window>"u",u=this,c=Fd(l,i,r.worker);return c.then?c.then(function(d){return s.call(u,d)}):s.call(this,c)}en("add"),en("append"),en("search"),en("update"),en("remove"),en("clear"),en("export"),en("import"),Bo(jr.prototype);function en(r){jr.prototype[r]=function(){const s=this,l=[].slice.call(arguments);var i=l[l.length-1];let u;return typeof i=="function"&&(u=i,l.pop()),i=new Promise(function(c){r==="export"&&typeof l[0]=="function"&&(l[0]=null),s.h[++Wn]=c,s.worker.postMessage({task:r,id:Wn,args:l})}),u?(i.then(u),this):i}}function Fd(r,s,l){return s?typeof module<"u"?new(require("worker_threads")).Worker(__dirname+"/worker/node.js"):Promise.resolve().then(()=>yu).then(function(i){return new i.Worker("undefined/node/node.mjs")}):r?new window.Worker(URL.createObjectURL(new Blob(["onmessage="+_d.toString()],{type:"text/javascript"}))):new window.Worker(typeof l=="string"?l:(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:No&&No.tagName.toUpperCase()==="SCRIPT"&&No.src||new URL("sodo-search.min.js",document.baseURI).href).replace("/worker.js","/worker/worker.js").replace("flexsearch.bundle.module.min.js","module/worker/worker.js"),{type:"module"})}function Vo(r,s=0){let l=[],i=[];s&&(s=25e4/s*5e3|0);for(const u of r.entries())i.push(u),i.length===s&&(l.push(i),i=[]);return i.length&&l.push(i),l}function Ho(r,s){s||(s=new Map);for(let l=0,i;l<r.length;l++)i=r[l],s.set(i[0],i[1]);return s}function za(r,s=0){let l=[],i=[];s&&(s=25e4/s*1e3|0);for(const u of r.entries())i.push([u[0],Vo(u[1])[0]]),i.length===s&&(l.push(i),i=[]);return i.length&&l.push(i),l}function ba(r,s){s||(s=new Map);for(let l=0,i,u;l<r.length;l++)i=r[l],u=s.get(i[0]),s.set(i[0],Ho(i[1],u));return s}function Ua(r){let s=[],l=[];for(const i of r.keys())l.push(i),l.length===25e4&&(s.push(l),l=[]);return l.length&&s.push(l),s}function Ba(r,s){s||(s=new Set);for(let l=0;l<r.length;l++)s.add(r[l]);return s}function Ss(r,s,l,i,u,c,d=0){const v=i&&i.constructor===Array;var g=v?i.shift():i;if(!g)return this.export(r,s,u,c+1);if((g=r((s?s+".":"")+(d+1)+"."+l,JSON.stringify(g)))&&g.then){const C=this;return g.then(function(){return Ss.call(C,r,s,l,v?i:null,u,c,d+1)})}return Ss.call(this,r,s,l,v?i:null,u,c,d+1)}function qa(r,s){let l="";for(const i of r.entries()){r=i[0];const u=i[1];let c="";for(let d=0,v;d<u.length;d++){v=u[d]||[""];let g="";for(let C=0;C<v.length;C++)g+=(g?",":"")+(s==="string"?'"'+v[C]+'"':v[C]);g="["+g+"]",c+=(c?",":"")+g}c='["'+r+'",['+c+"]]",l+=(l?",":"")+c}return l}function Va(r,s,l,i){let u=[];for(let c=0,d;c<r.index.length;c++)if(d=r.index[c],s>=d.length)s-=d.length;else{s=d[i?"splice":"slice"](s,l);const v=s.length;if(v&&(u=u.length?u.concat(s):s,l-=v,i&&(r.length-=v),!l))break;s=0}return u}function $n(r){if(!this||this.constructor!==$n)return new $n(r);this.index=r?[r]:[],this.length=r?r.length:0;const s=this;return new Proxy([],{get(l,i){if(i==="length")return s.length;if(i==="push")return function(u){s.index[s.index.length-1].push(u),s.length++};if(i==="pop")return function(){if(s.length)return s.length--,s.index[s.index.length-1].pop()};if(i==="indexOf")return function(u){let c=0;for(let d=0,v,g;d<s.index.length;d++){if(v=s.index[d],g=v.indexOf(u),0<=g)return c+g;c+=v.length}return-1};if(i==="includes")return function(u){for(let c=0;c<s.index.length;c++)if(s.index[c].includes(u))return!0;return!1};if(i==="slice")return function(u,c){return Va(s,u||0,c||s.length,!1)};if(i==="splice")return function(u,c){return Va(s,u||0,c||s.length,!0)};if(i==="constructor")return Array;if(typeof i!="symbol")return(l=s.index[i/2**31|0])&&l[i]},set(l,i,u){return l=i/2**31|0,(s.index[l]||(s.index[l]=[]))[i]=u,s.length++,!0}})}$n.prototype.clear=function(){this.index.length=0},$n.prototype.destroy=function(){this.proxy=this.index=null},$n.prototype.push=function(){};function Dt(r=8){if(!this||this.constructor!==Dt)return new Dt(r);this.index=Xe(),this.h=[],this.size=0,32<r?(this.B=Wa,this.A=BigInt(r)):(this.B=Ha,this.A=r)}Dt.prototype.get=function(r){const s=this.index[this.B(r)];return s&&s.get(r)},Dt.prototype.set=function(r,s){var l=this.B(r);let i=this.index[l];i?(l=i.size,i.set(r,s),(l-=i.size)&&this.size++):(this.index[l]=i=new Map([[r,s]]),this.h.push(i),this.size++)};function _t(r=8){if(!this||this.constructor!==_t)return new _t(r);this.index=Xe(),this.h=[],this.size=0,32<r?(this.B=Wa,this.A=BigInt(r)):(this.B=Ha,this.A=r)}_t.prototype.add=function(r){var s=this.B(r);let l=this.index[s];l?(s=l.size,l.add(r),(s-=l.size)&&this.size++):(this.index[s]=l=new Set([r]),this.h.push(l),this.size++)},ve=Dt.prototype,ve.has=_t.prototype.has=function(r){const s=this.index[this.B(r)];return s&&s.has(r)},ve.delete=_t.prototype.delete=function(r){const s=this.index[this.B(r)];s&&s.delete(r)&&this.size--},ve.clear=_t.prototype.clear=function(){this.index=Xe(),this.h=[],this.size=0},ve.values=_t.prototype.values=function*(){for(let r=0;r<this.h.length;r++)for(let s of this.h[r].values())yield s},ve.keys=_t.prototype.keys=function*(){for(let r=0;r<this.h.length;r++)for(let s of this.h[r].keys())yield s},ve.entries=_t.prototype.entries=function*(){for(let r=0;r<this.h.length;r++)for(let s of this.h[r].entries())yield s};function Ha(r){let s=2**this.A-1;if(typeof r=="number")return r&s;let l=0,i=this.A+1;for(let u=0;u<r.length;u++)l=(l*i^r.charCodeAt(u))&s;return this.A===32?l+2**31:l}function Wa(r){let s=BigInt(2)**this.A-BigInt(1);var l=typeof r;if(l==="bigint")return r&s;if(l==="number")return BigInt(r)&s;l=BigInt(0);let i=this.A+BigInt(1);for(let u=0;u<r.length;u++)l=(l*i^BigInt(r.charCodeAt(u)))&s;return l}jn.prototype.add=function(r,s,l){if(Cr(r)&&(s=r,r=kr(s,this.key)),s&&(r||r===0)){if(!l&&this.reg.has(r))return this.update(r,s);for(let v=0,g;v<this.field.length;v++){g=this.D[v];var i=this.index.get(this.field[v]);if(typeof g=="function"){var u=g(s);u&&i.add(r,u,!1,!0)}else u=g.I,(!u||u(s))&&(g.constructor===String?g=[""+g]:Rt(g)&&(g=[g]),Ko(s,g,this.J,0,i,r,g[0],l))}if(this.tag)for(i=0;i<this.F.length;i++){var c=this.F[i];u=this.tag.get(this.R[i]);let v=Xe();if(typeof c=="function"){if(c=c(s),!c)continue}else{var d=c.I;if(d&&!d(s))continue;c.constructor===String&&(c=""+c),c=kr(s,c)}if(u&&c){Rt(c)&&(c=[c]);for(let g=0,C,$;g<c.length;g++)if(C=c[g],!v[C]&&(v[C]=1,(d=u.get(C))?$=d:u.set(C,$=[]),!l||!$.includes(r))){if($.length===2**31-1){if(d=new $n($),this.fastupdate)for(let P of this.reg.values())P.includes($)&&(P[P.indexOf($)]=d);u.set(C,$=d)}$.push(r),this.fastupdate&&((d=this.reg.get(r))?d.push($):this.reg.set(r,[$]))}}}if(this.store&&(!l||!this.store.has(r))){let v;if(this.C){v=Xe();for(let g=0,C;g<this.C.length;g++){if(C=this.C[g],(l=C.I)&&!l(s))continue;let $;if(typeof C=="function"){if($=C(s),!$)continue;C=[C.V]}else if(Rt(C)||C.constructor===String){v[C]=s[C];continue}Wo(s,v,C,0,C[0],$)}}this.store.set(r,v||s)}this.worker&&(this.fastupdate||this.reg.add(r))}return this};function Wo(r,s,l,i,u,c){if(r=r[u],i===l.length-1)s[u]=c||r;else if(r)if(r.constructor===Array)for(s=s[u]=Array(r.length),u=0;u<r.length;u++)Wo(r,s,l,i,u);else s=s[u]||(s[u]=Xe()),u=l[++i],Wo(r,s,l,i,u)}function Ko(r,s,l,i,u,c,d,v){if(r=r[d])if(i===s.length-1){if(r.constructor===Array){if(l[i]){for(s=0;s<r.length;s++)u.add(c,r[s],!0,!0);return}r=r.join(" ")}u.add(c,r,v,!0)}else if(r.constructor===Array)for(d=0;d<r.length;d++)Ko(r,s,l,i,u,c,d,v);else d=s[++i],Ko(r,s,l,i,u,c,d,v);else u.db&&u.remove(c)}function Ka(r,s,l,i,u,c,d){const v=r.length;let g=[],C,$;C=Xe();for(let P=0,O,F,b,V;P<s;P++)for(let U=0;U<v;U++)if(b=r[U],P<b.length&&(O=b[P]))for(let J=0;J<O.length;J++){if(F=O[J],($=C[F])?C[F]++:($=0,C[F]=1),V=g[$]||(g[$]=[]),!d){let re=P+(U||!u?0:c||0);V=V[re]||(V[re]=[])}if(V.push(F),d&&l&&$===v-1&&V.length-i===l)return i?V.slice(i):V}if(r=g.length)if(u)g=1<g.length?Ga(g,l,i,d,c):(g=g[0]).length>l||i?g.slice(i,l+i):g;else{if(r<v)return[];if(g=g[r-1],l||i)if(d)(g.length>l||i)&&(g=g.slice(i,l+i));else{u=[];for(let P=0,O;P<g.length;P++)if(O=g[P],O.length>i)i-=O.length;else if((O.length>l||i)&&(O=O.slice(i,l+i),l-=O.length,i&&(i-=O.length)),u.push(O),!l)break;g=1<u.length?[].concat.apply([],u):u[0]}}return g}function Ga(r,s,l,i,u){const c=[],d=Xe();let v;var g=r.length;let C;if(i){for(u=g-1;0<=u;u--)if(C=(i=r[u])&&i.length){for(g=0;g<C;g++)if(v=i[g],!d[v]){if(d[v]=1,l)l--;else if(c.push(v),c.length===s)return c}}}else for(let $=g-1,P,O=0;0<=$;$--){P=r[$];for(let F=0;F<P.length;F++)if(C=(i=P[F])&&i.length){for(let b=0;b<C;b++)if(v=i[b],!d[v])if(d[v]=1,l)l--;else{let V=(F+($<g-1&&u||0))/($+1)|0;if((c[V]||(c[V]=[])).push(v),++O===s)return c}}}return c}function Id(r,s,l){const i=Xe(),u=[];for(let c=0,d;c<s.length;c++){d=s[c];for(let v=0;v<d.length;v++)i[d[v]]=1}if(l)for(let c=0,d;c<r.length;c++)d=r[c],i[d]&&(u.push(d),i[d]=0);else for(let c=0,d,v;c<r.result.length;c++)for(d=r.result[c],s=0;s<d.length;s++)v=d[s],i[v]&&((u[c]||(u[c]=[])).push(v),i[v]=0);return u}function Go(r,s,l,i){if(!r.length)return r;if(r.length===1)return r=r[0],r=l||r.length>s?s?r.slice(l,l+s):r.slice(l):r,i?tn.call(this,r):r;let u=[];for(let c=0,d,v;c<r.length;c++)if((d=r[c])&&(v=d.length)){if(l){if(l>=v){l-=v;continue}l<v&&(d=s?d.slice(l,l+s):d.slice(l),v=d.length,l=0)}if(v>s&&(d=d.slice(0,s),v=s),!u.length&&v>=s)return i?tn.call(this,d):d;if(u.push(d),s-=v,!s)break}return u=1<u.length?[].concat.apply([],u):u[0],i?tn.call(this,u):u}function xs(r,s,l){var i=l[0];if(i.then)return Promise.all(l).then(function($){return r[s].apply(r,$)});if(i[0]&&i[0].index)return r[s].apply(r,i);i=[];let u=[],c=0,d=0,v,g,C;for(let $=0,P;$<l.length;$++)if(P=l[$]){let O;if(P.constructor===We)O=P.result;else if(P.constructor===Array)O=P;else if(c=P.limit||0,d=P.offset||0,C=P.suggest,g=P.resolve,v=P.enrich&&g,P.index)P.resolve=!1,O=P.index.search(P).result,P.resolve=g;else if(P.and)O=r.and(P.and);else if(P.or)O=r.or(P.or);else if(P.xor)O=r.xor(P.xor);else if(P.not)O=r.not(P.not);else continue;if(O.then)u.push(O);else if(O.length)i[$]=O;else if(!C&&(s==="and"||s==="xor")){i=[];break}}return{O:i,P:u,limit:c,offset:d,enrich:v,resolve:g,suggest:C}}We.prototype.or=function(){const{O:r,P:s,limit:l,offset:i,enrich:u,resolve:c}=xs(this,"or",arguments);return Ja.call(this,r,s,l,i,u,c)};function Ja(r,s,l,i,u,c){if(s.length){const d=this;return Promise.all(s).then(function(v){r=[];for(let g=0,C;g<v.length;g++)(C=v[g]).length&&(r[g]=C);return Ja.call(d,r,[],l,i,u,c)})}return r.length&&(this.result.length&&r.push(this.result),2>r.length?this.result=r[0]:(this.result=Ga(r,l,i,!1,this.h),i=0)),c?this.resolve(l,i,u):this}We.prototype.and=function(){let r=this.result.length,s,l,i,u;if(!r){const c=arguments[0];c&&(r=!!c.suggest,u=c.resolve,s=c.limit,l=c.offset,i=c.enrich&&u)}if(r){const{O:c,P:d,limit:v,offset:g,enrich:C,resolve:$,suggest:P}=xs(this,"and",arguments);return Qa.call(this,c,d,v,g,C,$,P)}return u?this.resolve(s,l,i):this};function Qa(r,s,l,i,u,c,d){if(s.length){const v=this;return Promise.all(s).then(function(g){r=[];for(let C=0,$;C<g.length;C++)($=g[C]).length&&(r[C]=$);return Qa.call(v,r,[],l,i,u,c,d)})}if(r.length)if(this.result.length&&r.unshift(this.result),2>r.length)this.result=r[0];else{if(s=Ad(r))return this.result=Ka(r,s,l,i,d,this.h,c),c?u?tn.call(this.index,this.result):this.result:this;this.result=[]}else d||(this.result=r);return c?this.resolve(l,i,u):this}We.prototype.xor=function(){const{O:r,P:s,limit:l,offset:i,enrich:u,resolve:c,suggest:d}=xs(this,"xor",arguments);return Ya.call(this,r,s,l,i,u,c,d)};function Ya(r,s,l,i,u,c,d){if(s.length){const v=this;return Promise.all(s).then(function(g){r=[];for(let C=0,$;C<g.length;C++)($=g[C]).length&&(r[C]=$);return Ya.call(v,r,[],l,i,u,c,d)})}if(r.length)if(this.result.length&&r.unshift(this.result),2>r.length)this.result=r[0];else return this.result=Dd.call(this,r,l,i,c,this.h),c?u?tn.call(this.index,this.result):this.result:this;else d||(this.result=r);return c?this.resolve(l,i,u):this}function Dd(r,s,l,i,u){const c=[],d=Xe();let v=0;for(let g=0,C;g<r.length;g++)if(C=r[g]){v<C.length&&(v=C.length);for(let $=0,P;$<C.length;$++)if(P=C[$])for(let O=0,F;O<P.length;O++)F=P[O],d[F]=d[F]?2:1}for(let g=0,C,$=0;g<v;g++)for(let P=0,O;P<r.length;P++)if((O=r[P])&&(C=O[g])){for(let F=0,b;F<C.length;F++)if(b=C[F],d[b]===1)if(l)l--;else if(i){if(c.push(b),c.length===s)return c}else{const V=g+(P?u:0);if(c[V]||(c[V]=[]),c[V].push(b),++$===s)return c}}return c}We.prototype.not=function(){const{O:r,P:s,limit:l,offset:i,enrich:u,resolve:c,suggest:d}=xs(this,"not",arguments);return Xa.call(this,r,s,l,i,u,c,d)};function Xa(r,s,l,i,u,c,d){if(s.length){const v=this;return Promise.all(s).then(function(g){r=[];for(let C=0,$;C<g.length;C++)($=g[C]).length&&(r[C]=$);return Xa.call(v,r,[],l,i,u,c,d)})}if(r.length&&this.result.length)this.result=Md.call(this,r,l,i,c);else if(c)return this.resolve(l,i,u);return c?u?tn.call(this.index,this.result):this.result:this}function Md(r,s,l,i){const u=[];r=new Set(r.flat().flat());for(let c=0,d,v=0;c<this.result.length;c++)if(d=this.result[c]){for(let g=0,C;g<d.length;g++)if(C=d[g],!r.has(C)){if(l)l--;else if(i){if(u.push(C),u.length===s)return u}else if(u[c]||(u[c]=[]),u[c].push(C),++v===s)return u}}return u}function We(r){if(!this||this.constructor!==We)return new We(r);if(r&&r.index)return r.resolve=!1,this.index=r.index,this.h=r.boost||0,this.result=r.index.search(r).result,this;this.index=null,this.result=r||[],this.h=0}We.prototype.limit=function(r){if(this.result.length){const s=[];for(let l=0,i;l<this.result.length;l++)if(i=this.result[l])if(i.length<=r){if(s[l]=i,r-=i.length,!r)break}else{s[l]=i.slice(0,r);break}this.result=s}return this},We.prototype.offset=function(r){if(this.result.length){const s=[];for(let l=0,i;l<this.result.length;l++)(i=this.result[l])&&(i.length<=r?r-=i.length:(s[l]=i.slice(r),r=0));this.result=s}return this},We.prototype.boost=function(r){return this.h+=r,this},We.prototype.resolve=function(r,s,l){const i=this.result,u=this.index;return this.result=this.index=null,i.length?(typeof r=="object"&&(l=r.enrich,s=r.offset,r=r.limit),Go.call(u,i,r||100,s,l)):i},jn.prototype.search=function(r,s,l,i){l||(!s&&Cr(r)?(l=r,r=""):Cr(s)&&(l=s,s=0));let u=[];var c=[],d;let v,g,C,$=0;var P=!0;let O;if(l){l.constructor===Array&&(l={index:l}),r=l.query||r;var F=l.pluck;v=l.merge,g=F||l.field||(g=l.index)&&(g.index?null:g),C=this.tag&&l.tag;var b=l.suggest;P=l.resolve!==!1,P||F||!(g=g||this.field)||(Rt(g)?F=g:(g.constructor===Array&&g.length===1&&(g=g[0]),F=g.field||g.index)),O=(d=this.store&&l.enrich&&P)&&l.highlight,s=l.limit||s;var V=l.offset||0;if(s||(s=100),C&&(!this.db||!i)){C.constructor!==Array&&(C=[C]);var U=[];for(let ge=0,ne;ge<C.length;ge++)if(ne=C[ge],ne.field&&ne.tag){var J=ne.tag;if(J.constructor===Array)for(var re=0;re<J.length;re++)U.push(ne.field,J[re]);else U.push(ne.field,J)}else{J=Object.keys(ne);for(let me=0,ie,fe;me<J.length;me++)if(ie=J[me],fe=ne[ie],fe.constructor===Array)for(re=0;re<fe.length;re++)U.push(ie,fe[re]);else U.push(ie,fe)}if(C=U,!r){if(P=[],U.length)for(c=0;c<U.length;c+=2){if(this.db){if(F=this.index.get(U[c]),!F)continue;P.push(F=F.db.tag(U[c+1],s,V,d))}else F=zd.call(this,U[c],U[c+1],s,V,d);u.push({field:U[c],tag:U[c+1],result:F})}return P.length?Promise.all(P).then(function(ge){for(let ne=0;ne<ge.length;ne++)u[ne].result=ge[ne];return u}):u}}g&&g.constructor!==Array&&(g=[g])}g||(g=this.field),U=!i&&(this.worker||this.db)&&[];let we;for(let ge=0,ne,me,ie;ge<g.length;ge++){if(me=g[ge],this.db&&this.tag&&!this.D[ge])continue;let fe;if(Rt(me)||(fe=me,me=fe.field,r=fe.query||r,s=fe.limit||s,V=fe.offset||V,b=fe.suggest||b,d=this.store&&(fe.enrich||d)),i)ne=i[ge];else if(J=fe||l,re=this.index.get(me),C&&(this.db&&(J.tag=C,we=re.db.support_tag_search,J.field=g),we||(J.enrich=!1)),U){U[ge]=re.search(r,s,J),J&&d&&(J.enrich=d);continue}else ne=re.search(r,s,J),J&&d&&(J.enrich=d);if(ie=ne&&(P?ne.length:ne.result.length),C&&ie){if(J=[],re=0,this.db&&i){if(!we)for(let Ee=g.length;Ee<i.length;Ee++){let L=i[Ee];if(L&&L.length)re++,J.push(L);else if(!b)return P?u:new We(u)}}else for(let Ee=0,L,z;Ee<C.length;Ee+=2){if(L=this.tag.get(C[Ee]),!L){if(b)continue;return P?u:new We(u)}if(z=(L=L&&L.get(C[Ee+1]))&&L.length)re++,J.push(L);else if(!b)return P?u:new We(u)}if(re){if(ne=Id(ne,J,P),ie=ne.length,!ie&&!b)return P?ne:new We(ne);re--}}if(ie)c[$]=me,u.push(ne),$++;else if(g.length===1)return P?u:new We(u)}if(U){if(this.db&&C&&C.length&&!we)for(d=0;d<C.length;d+=2){if(c=this.index.get(C[d]),!c){if(b)continue;return P?u:new We(u)}U.push(c.db.tag(C[d+1],s,V,!1))}const ge=this;return Promise.all(U).then(function(ne){return ne.length?ge.search(r,s,l,ne):ne})}if(!$)return P?u:new We(u);if(F&&(!d||!this.store))return u[0];for(U=[],V=0;V<c.length;V++){if(b=u[V],d&&b.length&&typeof b[0].doc>"u"&&(this.db?U.push(b=this.index.get(this.field[0]).db.enrich(b)):b=tn.call(this,b)),F)return P?b:new We(b);u[V]={field:c[V],result:b}}if(d&&this.db&&U.length){const ge=this;return Promise.all(U).then(function(ne){for(let me=0;me<ne.length;me++)u[me].result=ne[me];return v?eu(u):O?Za(u,r,ge.index,ge.field,ge.D,O):u})}return v?eu(u):O?Za(u,r,this.index,this.field,this.D,O):u};function Za(r,s,l,i,u,c){let d,v,g;for(let C=0,$,P,O,F;C<r.length;C++){if($=r[C].field,!$)continue;let b=r[C].result;O=l.get($),P=O.encoder,g=O.tokenize,F=u[i.indexOf($)],P!==d&&(d=P,v=d.encode(s));for(let V=0;V<b.length;V++){let U="",J=kr(b[V].doc,F).split(/\s+/);for(let re=0,we,ge;re<J.length;re++){we=J[re],ge=P.encode(we),ge=1<ge.length?ge.join(" "):ge[0];let ne;if(ge&&we)for(let me=0,ie;me<v.length;me++)if(ie=v[me],g==="strict"){if(ge===ie){U+=(U?" ":"")+c.replace("$1",we),ne=!0;break}}else{const fe=ge.indexOf(ie);if(-1<fe){U+=(U?" ":"")+we.substring(0,fe)+c.replace("$1",we.substring(fe,ie.length))+we.substring(fe+ie.length),ne=!0;break}}ne||(U+=(U?" ":"")+J[re])}b[V].highlight=U}}return r}function eu(r){const s=[],l=Xe();for(let i=0,u,c;i<r.length;i++){u=r[i],c=u.result;for(let d=0,v,g,C;d<c.length;d++)g=c[d],typeof g!="object"&&(g={id:g}),v=g.id,(C=l[v])?C.push(u.field):(g.field=l[v]=[u.field],s.push(g))}return s}function zd(r,s,l,i,u){if(r=this.tag.get(r),!r)return[];if((s=(r=r&&r.get(s))&&r.length-i)&&0<s)return(s>l||i)&&(r=r.slice(i,i+l)),u&&(r=tn.call(this,r)),r}function tn(r){if(!this||!this.store)return r;const s=Array(r.length);for(let l=0,i;l<r.length;l++)i=r[l],s[l]={id:i,doc:this.store.get(i)};return s}function jn(r){if(!this||this.constructor!==jn)return new jn(r);const s=r.document||r.doc||r;let l,i;if(this.D=[],this.field=[],this.J=[],this.key=(l=s.key||s.id)&&Cs(l,this.J)||"id",(i=r.keystore||0)&&(this.keystore=i),this.fastupdate=!!r.fastupdate,this.reg=!this.fastupdate||r.worker||r.db?i?new _t(i):new Set:i?new Dt(i):new Map,this.C=(l=s.store||null)&&l&&l!==!0&&[],this.store=l&&(i?new Dt(i):new Map),this.cache=(l=r.cache||null)&&new An(l),r.cache=!1,this.worker=r.worker,this.priority=r.priority||4,this.index=bd.call(this,r,s),this.tag=null,(l=s.tag)&&(typeof l=="string"&&(l=[l]),l.length)){this.tag=new Map,this.F=[],this.R=[];for(let u=0,c,d;u<l.length;u++){if(c=l[u],d=c.field||c,!d)throw Error("The tag field from the document descriptor is undefined.");c.custom?this.F[u]=c.custom:(this.F[u]=Cs(d,this.J),c.filter&&(typeof this.F[u]=="string"&&(this.F[u]=new String(this.F[u])),this.F[u].I=c.filter)),this.R[u]=d,this.tag.set(d,new Map)}}if(this.worker){this.fastupdate=!1,r=[];for(const u of this.index.values())u.then&&r.push(u);if(r.length){const u=this;return Promise.all(r).then(function(c){let d=0;for(const v of u.index.entries()){const g=v[0];v[1].then&&u.index.set(g,c[d++])}return u})}}else r.db&&(this.fastupdate=!1,this.mount(r.db))}ve=jn.prototype,ve.mount=function(r){let s=this.field;if(this.tag)for(let u=0,c;u<this.R.length;u++){c=this.R[u];var l=void 0;this.index.set(c,l=new Mt({},this.reg)),s===this.field&&(s=s.slice(0)),s.push(c),l.tag=this.tag.get(c)}l=[];const i={db:r.db,type:r.type,fastupdate:r.fastupdate};for(let u=0,c,d;u<s.length;u++){i.field=d=s[u],c=this.index.get(d);const v=new r.constructor(r.id,i);v.id=r.id,l[u]=v.mount(c),c.document=!0,u?c.bypass=!0:c.store=this.store}return this.db=!0,Promise.all(l)},ve.commit=async function(r,s){const l=[];for(const i of this.index.values())l.push(i.commit(r,s));await Promise.all(l),this.reg.clear()},ve.destroy=function(){const r=[];for(const s of this.index.values())r.push(s.destroy());return Promise.all(r)};function bd(r,s){const l=new Map;let i=s.index||s.field||s;Rt(i)&&(i=[i]);for(let u=0,c,d;u<i.length;u++){if(c=i[u],Rt(c)||(d=c,c=c.field),d=Cr(d)?Object.assign({},r,d):r,this.worker){const v=new jr(d);l.set(c,v)}this.worker||l.set(c,new Mt(d,this.reg)),d.custom?this.D[u]=d.custom:(this.D[u]=Cs(c,this.J),d.filter&&(typeof this.D[u]=="string"&&(this.D[u]=new String(this.D[u])),this.D[u].I=d.filter)),this.field[u]=c}if(this.C){r=s.store,Rt(r)&&(r=[r]);for(let u=0,c,d;u<r.length;u++)c=r[u],d=c.field||c,c.custom?(this.C[u]=c.custom,c.custom.V=d):(this.C[u]=Cs(d,this.J),c.filter&&(typeof this.C[u]=="string"&&(this.C[u]=new String(this.C[u])),this.C[u].I=c.filter))}return l}function Cs(r,s){const l=r.split(":");let i=0;for(let u=0;u<l.length;u++)r=l[u],r[r.length-1]==="]"&&(r=r.substring(0,r.length-2))&&(s[i]=!0),r&&(l[i++]=r);return i<l.length&&(l.length=i),1<i?l:l[0]}ve.append=function(r,s){return this.add(r,s,!0)},ve.update=function(r,s){return this.remove(r).add(r,s)},ve.remove=function(r){Cr(r)&&(r=kr(r,this.key));for(var s of this.index.values())s.remove(r,!0);if(this.reg.has(r)){if(this.tag&&!this.fastupdate)for(let l of this.tag.values())for(let i of l){s=i[0];const u=i[1],c=u.indexOf(r);-1<c&&(1<u.length?u.splice(c,1):l.delete(s))}this.store&&this.store.delete(r),this.reg.delete(r)}return this.cache&&this.cache.remove(r),this},ve.clear=function(){const r=[];for(const s of this.index.values()){const l=s.clear();l.then&&r.push(l)}if(this.tag)for(const s of this.tag.values())s.clear();return this.store&&this.store.clear(),this.cache&&this.cache.clear(),r.length?Promise.all(r):this},ve.contain=function(r){return this.db?this.index.get(this.field[0]).db.has(r):this.reg.has(r)},ve.cleanup=function(){for(const r of this.index.values())r.cleanup();return this},ve.get=function(r){return this.db?this.index.get(this.field[0]).db.enrich(r).then(function(s){return s[0]&&s[0].doc||null}):this.store.get(r)||null},ve.set=function(r,s){return typeof r=="object"&&(s=r,r=kr(s,this.key)),this.store.set(r,s),this},ve.searchCache=tu,ve.export=function(r,s,l=0,i=0){if(l<this.field.length){const d=this.field[l];if((s=this.index.get(d).export(r,d,l,i=1))&&s.then){const v=this;return s.then(function(){return v.export(r,d,l+1)})}return this.export(r,d,l+1)}let u,c;switch(i){case 0:u="reg",c=Ua(this.reg),s=null;break;case 1:u="tag",c=this.tag&&za(this.tag,this.reg.size),s=null;break;case 2:u="doc",c=this.store&&Vo(this.store),s=null;break;default:return}return Ss.call(this,r,s,u,c,l,i)},ve.import=function(r,s){var l=r.split(".");l[l.length-1]==="json"&&l.pop();const i=2<l.length?l[0]:"";if(l=2<l.length?l[2]:l[1],this.worker&&i)return this.index.get(i).import(r);if(s){if(typeof s=="string"&&(s=JSON.parse(s)),i)return this.index.get(i).import(l,s);switch(l){case"reg":this.fastupdate=!1,this.reg=Ba(s,this.reg);for(let u=0,c;u<this.field.length;u++)c=this.index.get(this.field[u]),c.fastupdate=!1,c.reg=this.reg;if(this.worker){s=[];for(const u of this.index.values())s.push(u.import(r));return Promise.all(s)}break;case"tag":this.tag=ba(s,this.tag);break;case"doc":this.store=Ho(s,this.store)}}},Bo(jn.prototype);function tu(r,s,l){r=(typeof r=="object"?""+r.query:r).toLowerCase(),this.cache||(this.cache=new An);let i=this.cache.get(r);if(!i){if(i=this.search(r,s,l),i.then){const u=this;i.then(function(c){return u.cache.set(r,c),c})}this.cache.set(r,i)}return i}function An(r){this.limit=r&&r!==!0?r:1e3,this.cache=new Map,this.h=""}An.prototype.set=function(r,s){this.cache.set(this.h=r,s),this.cache.size>this.limit&&this.cache.delete(this.cache.keys().next().value)},An.prototype.get=function(r){const s=this.cache.get(r);return s&&this.h!==r&&(this.cache.delete(r),this.cache.set(this.h=r,s)),s},An.prototype.remove=function(r){for(const s of this.cache){const l=s[0];s[1].includes(r)&&this.cache.delete(l)}},An.prototype.clear=function(){this.cache.clear(),this.h=""};const nu={normalize:!1,numeric:!1,dedupe:!1},ks={},Jo=new Map([["b","p"],["v","f"],["w","f"],["z","s"],["x","s"],["d","t"],["n","m"],["c","k"],["g","k"],["j","k"],["q","k"],["i","e"],["y","e"],["u","o"]]),ru=new Map([["ae","a"],["oe","o"],["sh","s"],["kh","k"],["th","t"],["ph","f"],["pf","f"]]),su=[/([^aeo])h(.)/g,"$1$2",/([aeo])h([^aeo]|$)/g,"$1$2",/(.)\1+/g,"$1"],ou={a:"",e:"",i:"",o:"",u:"",y:"",b:1,f:1,p:1,v:1,c:2,g:2,j:2,k:2,q:2,s:2,x:2,z:2,ß:2,d:3,t:3,l:4,m:5,n:5,r:6};var iu={Exact:nu,Default:ks,Normalize:ks,LatinBalance:{mapper:Jo},LatinAdvanced:{mapper:Jo,matcher:ru,replacer:su},LatinExtra:{mapper:Jo,replacer:su.concat([/(?!^)[aeo]/g,""]),matcher:ru},LatinSoundex:{dedupe:!1,include:{letter:!0},finalize:function(r){for(let l=0;l<r.length;l++){var s=r[l];let i=s.charAt(0),u=ou[i];for(let c=1,d;c<s.length&&(d=s.charAt(c),d==="h"||d==="w"||!(d=ou[d])||d===u||(i+=d,u=d,i.length!==4));c++);r[l]=i}}},CJK:{split:""},LatinExact:nu,LatinDefault:ks,LatinSimple:ks};Mt.prototype.remove=function(r,s){const l=this.reg.size&&(this.fastupdate?this.reg.get(r):this.reg.has(r));if(l){if(this.fastupdate){for(let i=0,u;i<l.length;i++)if(u=l[i])if(2>u.length)u.pop();else{const c=u.indexOf(r);c===l.length-1?u.pop():u.splice(c,1)}}else Ar(this.map,r),this.depth&&Ar(this.ctx,r);s||this.reg.delete(r)}return this.db&&(this.commit_task.push({del:r}),this.T&&cu(this)),this.cache&&this.cache.remove(r),this};function Ar(r,s){let l=0;var i=typeof s>"u";if(r.constructor===Array){for(let u=0,c,d;u<r.length;u++)if((c=r[u])&&c.length)if(i)l++;else if(d=c.indexOf(s),0<=d){1<c.length?(c.splice(d,1),l++):delete r[u];break}else l++}else for(let u of r.entries()){i=u[0];const c=Ar(u[1],s);c?l+=c:r.delete(i)}return l}const Ud={memory:{resolution:1},performance:{resolution:3,fastupdate:!0,context:{depth:1,resolution:1}},match:{tokenize:"forward"},score:{resolution:9,context:{depth:2,resolution:3}}};Mt.prototype.add=function(r,s,l,i){if(s&&(r||r===0)){if(!i&&!l&&this.reg.has(r))return this.update(r,s);if(s=this.encoder.encode(s),i=s.length){const C=Xe(),$=Xe(),P=this.depth,O=this.resolution;for(let F=0;F<i;F++){let b=s[this.rtl?i-1-F:F];var u=b.length;if(u&&(P||!$[b])){var c=this.score?this.score(s,b,F,null,0):Ps(O,i,F),d="";switch(this.tokenize){case"full":if(2<u){for(let V=0,U;V<u;V++)for(c=u;c>V;c--){d=b.substring(V,c),U=this.rtl?u-1-V:V;var v=this.score?this.score(s,b,F,d,U):Ps(O,i,F,u,U);Or(this,$,d,v,r,l)}break}case"bidirectional":case"reverse":if(1<u){for(v=u-1;0<v;v--){d=b[this.rtl?u-1-v:v]+d;var g=this.score?this.score(s,b,F,d,v):Ps(O,i,F,u,v);Or(this,$,d,g,r,l)}d=""}case"forward":if(1<u){for(v=0;v<u;v++)d+=b[this.rtl?u-1-v:v],Or(this,$,d,c,r,l);break}default:if(Or(this,$,b,c,r,l),P&&1<i&&F<i-1){for(u=Xe(),d=this.U,c=b,v=Math.min(P+1,this.rtl?F+1:i-F),u[c]=1,g=1;g<v;g++)if((b=s[this.rtl?i-1-F-g:F+g])&&!u[b]){u[b]=1;const V=this.score?this.score(s,c,F,b,g-1):Ps(d+(i/2>d?0:1),i,F,v-1,g-1),U=this.bidirectional&&b>c;Or(this,C,U?c:b,V,r,l,U?b:c)}}}}}this.fastupdate||this.reg.add(r)}else s=""}return this.db&&(s||this.commit_task.push({del:r}),this.T&&cu(this)),this};function Or(r,s,l,i,u,c,d){let v=d?r.ctx:r.map,g;if((!s[l]||d&&!(g=s[l])[d])&&(d?(s=g||(s[l]=Xe()),s[d]=1,(g=v.get(d))?v=g:v.set(d,v=new Map)):s[l]=1,(g=v.get(l))?v=g:v.set(l,v=g=[]),v=v[i]||(v[i]=[]),!c||!v.includes(u))){if(v.length===2**31-1){if(s=new $n(v),r.fastupdate)for(let C of r.reg.values())C.includes(v)&&(C[C.indexOf(v)]=s);g[i]=v=s}v.push(u),r.fastupdate&&((i=r.reg.get(u))?i.push(v):r.reg.set(u,[v]))}}function Ps(r,s,l,i,u){return l&&1<r?s+(i||0)<=r?l+(u||0):(r-1)/(s+(i||0))*(l+(u||0))+1|0:0}Mt.prototype.search=function(r,s,l){l||(s||typeof r!="object"?typeof s=="object"&&(l=s,s=0):(l=r,r=""));let i=[],u,c,d,v=0,g,C,$,P,O;l?(r=l.query||r,s=l.limit||s,v=l.offset||0,c=l.context,d=l.suggest,O=(g=l.resolve!==!1)&&l.enrich,$=l.boost,P=l.resolution,C=this.db&&l.tag):g=this.resolve;let F=this.encoder.encode(r);if(u=F.length,s=s||(g?100:0),u===1)return au.call(this,F[0],"",s,v,g,O,C);if(c=this.depth&&c!==!1,u===2&&c&&!d)return au.call(this,F[1],F[0],s,v,g,O,C);let b=Xe(),V=0,U;if(c&&(U=F[0],V=1),P||P===0||(P=U?this.U:this.resolution),this.db){if(this.db.search&&(r=this.db.search(this,F,s,v,d,g,O,C),r!==!1))return r;const J=this;return(async function(){for(let re,we;V<u;V++){if((we=F[V])&&!b[we]){if(b[we]=1,re=await Qo(J,we,U,0,0,!1,!1),re=uu(re,i,d,P)){i=re;break}U&&(d&&re&&i.length||(U=we))}d&&U&&V===u-1&&!i.length&&(P=J.resolution,U="",V=-1,b=Xe())}return lu(i,P,s,v,d,$,g)})()}for(let J,re;V<u;V++){if((re=F[V])&&!b[re]){if(b[re]=1,J=Qo(this,re,U,0,0,!1,!1),J=uu(J,i,d,P)){i=J;break}U&&(d&&J&&i.length||(U=re))}d&&U&&V===u-1&&!i.length&&(P=this.resolution,U="",V=-1,b=Xe())}return lu(i,P,s,v,d,$,g)};function lu(r,s,l,i,u,c,d){let v=r.length,g=r;if(1<v)g=Ka(r,s,l,i,u,c,d);else if(v===1)return d?Go.call(null,r[0],l,i):new We(r[0]);return d?g:new We(g)}function au(r,s,l,i,u,c,d){return r=Qo(this,r,s,l,i,u,c,d),this.db?r.then(function(v){return u?v||[]:new We(v)}):r&&r.length?u?Go.call(this,r,l,i):new We(r):u?[]:new We}function uu(r,s,l,i){let u=[];if(r&&r.length){if(r.length<=i){s.push(r);return}for(let c=0,d;c<i;c++)(d=r[c])&&(u[c]=d);if(u.length){s.push(u);return}}if(!l)return u}function Qo(r,s,l,i,u,c,d,v){let g;return l&&(g=r.bidirectional&&s>l)&&(g=l,l=s,s=g),r.db?r.db.get(s,l,i,u,c,d,v):(r=l?(r=r.ctx.get(l))&&r.get(s):r.map.get(s),r)}function Mt(r,s){if(!this||this.constructor!==Mt)return new Mt(r);if(r){var l=Rt(r)?r:r.preset;l&&(r=Object.assign({},Ud[l],r))}else r={};l=r.context;const i=l===!0?{depth:1}:l||{},u=Rt(r.encoder)?iu[r.encoder]:r.encode||r.encoder||{};this.encoder=u.encode?u:typeof u=="object"?new Pr(u):{encode:u},this.resolution=r.resolution||9,this.tokenize=l=(l=r.tokenize)&&l!=="default"&&l!=="exact"&&l||"strict",this.depth=l==="strict"&&i.depth||0,this.bidirectional=i.bidirectional!==!1,this.fastupdate=!!r.fastupdate,this.score=r.score||null,(l=r.keystore||0)&&(this.keystore=l),this.map=l?new Dt(l):new Map,this.ctx=l?new Dt(l):new Map,this.reg=s||(this.fastupdate?l?new Dt(l):new Map:l?new _t(l):new Set),this.U=i.resolution||3,this.rtl=u.rtl||r.rtl||!1,this.cache=(l=r.cache||null)&&new An(l),this.resolve=r.resolve!==!1,(l=r.db)&&(this.db=this.mount(l)),this.T=r.commit!==!1,this.commit_task=[],this.commit_timer=null,this.priority=r.priority||4}ve=Mt.prototype,ve.mount=function(r){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),r.mount(this)},ve.commit=function(r,s){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.commit(this,r,s)},ve.destroy=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.destroy()};function cu(r){r.commit_timer||(r.commit_timer=setTimeout(function(){r.commit_timer=null,r.db.commit(r,void 0,void 0)},1))}ve.clear=function(){return this.map.clear(),this.ctx.clear(),this.reg.clear(),this.cache&&this.cache.clear(),this.db&&(this.commit_timer&&clearTimeout(this.commit_timer),this.commit_timer=null,this.commit_task=[{clear:!0}]),this},ve.append=function(r,s){return this.add(r,s,!0)},ve.contain=function(r){return this.db?this.db.has(r):this.reg.has(r)},ve.update=function(r,s){const l=this,i=this.remove(r);return i&&i.then?i.then(()=>l.add(r,s)):this.add(r,s)},ve.cleanup=function(){return this.fastupdate?(Ar(this.map),this.depth&&Ar(this.ctx),this):this},ve.searchCache=tu,ve.export=function(r,s,l=0,i=0){let u,c;switch(i){case 0:u="reg",c=Ua(this.reg);break;case 1:u="cfg",c=null;break;case 2:u="map",c=Vo(this.map,this.reg.size);break;case 3:u="ctx",c=za(this.ctx,this.reg.size);break;default:return}return Ss.call(this,r,s,u,c,l,i)},ve.import=function(r,s){if(s)switch(typeof s=="string"&&(s=JSON.parse(s)),r=r.split("."),r[r.length-1]==="json"&&r.pop(),r.length===3&&r.shift(),r=1<r.length?r[1]:r[0],r){case"reg":this.fastupdate=!1,this.reg=Ba(s,this.reg);break;case"map":this.map=Ho(s,this.map);break;case"ctx":this.ctx=ba(s,this.ctx)}},ve.serialize=function(r=!0){let s="",l="",i="";if(this.reg.size){let c;for(var u of this.reg.keys())c||(c=typeof u),s+=(s?",":"")+(c==="string"?'"'+u+'"':u);s="index.reg=new Set(["+s+"]);",l=qa(this.map,c),l="index.map=new Map(["+l+"]);";for(const d of this.ctx.entries()){u=d[0];let v=qa(d[1],c);v="new Map(["+v+"])",v='["'+u+'",'+v+"]",i+=(i?",":"")+v}i="index.ctx=new Map(["+i+"]);"}return r?"function inject(index){"+s+l+i+"}":s+l+i},Bo(Mt.prototype);const fu=typeof window<"u"&&(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),Es=["map","ctx","tag","reg","cfg"],On=Xe();function hu(r,s={}){if(!this)return new hu(r,s);typeof r=="object"&&(s=r,r=r.name),r||console.info("Default storage space was used, because a name was not passed."),this.id="flexsearch"+(r?":"+r.toLowerCase().replace(/[^a-z0-9_\-]/g,""):""),this.field=s.field?s.field.toLowerCase().replace(/[^a-z0-9_\-]/g,""):"",this.type=s.type,this.fastupdate=this.support_tag_search=!1,this.db=null,this.h={}}ve=hu.prototype,ve.mount=function(r){return r.encoder?(r.db=this,this.open()):r.mount(this)},ve.open=function(){if(this.db)return this.db;let r=this;navigator.storage&&navigator.storage.persist(),On[r.id]||(On[r.id]=[]),On[r.id].push(r.field);const s=fu.open(r.id,1);return s.onupgradeneeded=function(){const l=r.db=this.result;for(let i=0,u;i<Es.length;i++){u=Es[i];for(let c=0,d;c<On[r.id].length;c++)d=On[r.id][c],l.objectStoreNames.contains(u+(u!=="reg"&&d?":"+d:""))||l.createObjectStore(u+(u!=="reg"&&d?":"+d:""))}},r.db=nn(s,function(l){r.db=l,r.db.onversionchange=function(){r.close()}})},ve.close=function(){this.db&&this.db.close(),this.db=null},ve.destroy=function(){const r=fu.deleteDatabase(this.id);return nn(r)},ve.clear=function(){const r=[];for(let l=0,i;l<Es.length;l++){i=Es[l];for(let u=0,c;u<On[this.id].length;u++)c=On[this.id][u],r.push(i+(i!=="reg"&&c?":"+c:""))}const s=this.db.transaction(r,"readwrite");for(let l=0;l<r.length;l++)s.objectStore(r[l]).clear();return nn(s)},ve.get=function(r,s,l=0,i=0,u=!0,c=!1){r=this.db.transaction((s?"ctx":"map")+(this.field?":"+this.field:""),"readonly").objectStore((s?"ctx":"map")+(this.field?":"+this.field:"")).get(s?s+":"+r:r);const d=this;return nn(r).then(function(v){let g=[];if(!v||!v.length)return g;if(u){if(!l&&!i&&v.length===1)return v[0];for(let C=0,$;C<v.length;C++)if(($=v[C])&&$.length){if(i>=$.length){i-=$.length;continue}const P=l?i+Math.min($.length-i,l):$.length;for(let O=i;O<P;O++)g.push($[O]);if(i=0,g.length===l)break}return c?d.enrich(g):g}return v})},ve.tag=function(r,s=0,l=0,i=!1){r=this.db.transaction("tag"+(this.field?":"+this.field:""),"readonly").objectStore("tag"+(this.field?":"+this.field:"")).get(r);const u=this;return nn(r).then(function(c){return!c||!c.length||l>=c.length?[]:!s&&!l?c:(c=c.slice(l,l+s),i?u.enrich(c):c)})},ve.enrich=function(r){typeof r!="object"&&(r=[r]);const s=this.db.transaction("reg","readonly").objectStore("reg"),l=[];for(let i=0;i<r.length;i++)l[i]=nn(s.get(r[i]));return Promise.all(l).then(function(i){for(let u=0;u<i.length;u++)i[u]={id:r[u],doc:i[u]?JSON.parse(i[u]):null};return i})},ve.has=function(r){return r=this.db.transaction("reg","readonly").objectStore("reg").getKey(r),nn(r).then(function(s){return!!s})},ve.search=null,ve.info=function(){},ve.transaction=function(r,s,l){r+=r!=="reg"&&this.field?":"+this.field:"";let i=this.h[r+":"+s];if(i)return l.call(this,i);let u=this.db.transaction(r,s);this.h[r+":"+s]=i=u.objectStore(r);const c=l.call(this,i);return this.h[r+":"+s]=null,nn(u).finally(function(){return u=i=null,c})},ve.commit=async function(r,s,l){if(s)await this.clear(),r.commit_task=[];else{let i=r.commit_task;r.commit_task=[];for(let u=0,c;u<i.length;u++)if(c=i[u],c.clear){await this.clear(),s=!0;break}else i[u]=c.del;s||(l||(i=i.concat(jd(r.reg))),i.length&&await this.remove(i))}r.reg.size&&(await this.transaction("map","readwrite",function(i){for(const u of r.map){const c=u[0],d=u[1];d.length&&(s?i.put(d,c):i.get(c).onsuccess=function(){let v=this.result;var g;if(v&&v.length){const C=Math.max(v.length,d.length);for(let $=0,P,O;$<C;$++)if((O=d[$])&&O.length){if((P=v[$])&&P.length)for(g=0;g<O.length;g++)P.push(O[g]);else v[$]=O;g=1}}else v=d,g=1;g&&i.put(v,c)})}}),await this.transaction("ctx","readwrite",function(i){for(const u of r.ctx){const c=u[0],d=u[1];for(const v of d){const g=v[0],C=v[1];C.length&&(s?i.put(C,c+":"+g):i.get(c+":"+g).onsuccess=function(){let $=this.result;var P;if($&&$.length){const O=Math.max($.length,C.length);for(let F=0,b,V;F<O;F++)if((V=C[F])&&V.length){if((b=$[F])&&b.length)for(P=0;P<V.length;P++)b.push(V[P]);else $[F]=V;P=1}}else $=C,P=1;P&&i.put($,c+":"+g)})}}}),r.store?await this.transaction("reg","readwrite",function(i){for(const u of r.store){const c=u[0],d=u[1];i.put(typeof d=="object"?JSON.stringify(d):1,c)}}):r.bypass||await this.transaction("reg","readwrite",function(i){for(const u of r.reg.keys())i.put(1,u)}),r.tag&&await this.transaction("tag","readwrite",function(i){for(const u of r.tag){const c=u[0],d=u[1];d.length&&(i.get(c).onsuccess=function(){let v=this.result;v=v&&v.length?v.concat(d):d,i.put(v,c)})}}),r.map.clear(),r.ctx.clear(),r.tag&&r.tag.clear(),r.store&&r.store.clear(),r.document||r.reg.clear())};function Yo(r,s,l){const i=r.value;let u,c=0;for(let d=0,v;d<i.length;d++){if(v=l?i:i[d]){for(let g=0,C,$;g<s.length;g++)if($=s[g],C=v.indexOf($),0<=C)if(u=1,1<v.length)v.splice(C,1);else{i[d]=[];break}c+=v.length}if(l)break}c?u&&r.update(i):r.delete(),r.continue()}ve.remove=function(r){return typeof r!="object"&&(r=[r]),Promise.all([this.transaction("map","readwrite",function(s){s.openCursor().onsuccess=function(){const l=this.result;l&&Yo(l,r)}}),this.transaction("ctx","readwrite",function(s){s.openCursor().onsuccess=function(){const l=this.result;l&&Yo(l,r)}}),this.transaction("tag","readwrite",function(s){s.openCursor().onsuccess=function(){const l=this.result;l&&Yo(l,r,!0)}}),this.transaction("reg","readwrite",function(s){for(let l=0;l<r.length;l++)s.delete(r[l])})])};function nn(r,s){return new Promise((l,i)=>{r.onsuccess=r.oncomplete=function(){s&&s(this.result),s=null,l(this.result)},r.onerror=r.onblocked=i,r=null})}const $s={Encoder:Pr,Document:jn},Bd=iu,qd={finalize:r=>{let s=[];for(const l of r)s.push(...Hd(l));return s}};function Vd(r){return r>=19968&&r<=40959||r>=12352&&r<=12543||r>=44032&&r<=55203||r>=13312&&r<=19903||r>=131072&&r<=173791||r>=173824&&r<=191471||r>=196608&&r<=205743||r>=191472&&r<=192095||r>=63744&&r<=64255||r>=194560&&r<=195103}function Hd(r){const s=[];let l="";for(const i of r){const u=i.codePointAt(0);Vd(u)?(l&&(s.push(l),l=""),s.push(i)):l+=i}return l&&s.push(l),s}const Xo=new $s.Encoder(Bd.Default,qd);class Wd{constructor({adminUrl:s,apiKey:l,dir:i}){const u=i==="rtl",c=i==="rtl"?"reverse":"forward";this.apiUrl=s,this.apiKey=l,this.postsIndex=new $s.Document({tokenize:c,rtl:u,document:{id:"id",index:["title","excerpt"],store:!0},encoder:Xo}),this.authorsIndex=new $s.Document({tokenize:c,rtl:u,document:{id:"id",index:["name"],store:!0},encoder:Xo}),this.tagsIndex=new $s.Document({tokenize:c,rtl:u,document:{id:"id",index:["name"],store:!0},encoder:Xo}),this.init=this.init.bind(this),this.search=this.search.bind(this)}async#t(){const s=await this.#n();s.length>0&&this.#r(s)}async#n(){try{const s=`${this.apiUrl}/ghost/api/content/search-index/posts/?key=${this.apiKey}`;return(await(await fetch(s)).json()).posts}catch(s){return console.error("Error fetching posts:",s),[]}}#r(s){s.forEach(l=>{this.postsIndex.add(l)})}async#s(){const s=await this.#o();s.length>0&&this.#i(s)}async#o(){try{const s=`${this.apiUrl}/ghost/api/content/search-index/authors/?key=${this.apiKey}`;return(await(await fetch(s)).json()).authors}catch(s){return console.error("Error fetching authors:",s),[]}}#i(s){s.forEach(l=>{this.authorsIndex.add(l)})}async#l(){const s=await this.#a();s.length>0&&this.#u(s)}async#a(){try{const s=`${this.apiUrl}/ghost/api/content/search-index/tags/?key=${this.apiKey}`;return(await(await fetch(s)).json()).tags}catch(s){return console.error("Error fetching tags:",s),[]}}#u(s){s.forEach(l=>{this.tagsIndex.add(l)})}async init(){await this.#t(),await this.#s(),await this.#l()}#e(s){const l=[],i={};return s.forEach(u=>{u.result.forEach(c=>{i[c.id]||(l.push(c.doc),i[c.id]=!0)})}),l}search(s){const l=this.postsIndex.search(s,{enrich:!0}),i=this.authorsIndex.search(s,{enrich:!0}),u=this.tagsIndex.search(s,{enrich:!0});return{posts:this.#e(l),authors:this.#e(i),tags:this.#e(u)}}}var Tn={exports:{}};const Kd={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Gd={Authors:"الكتّاب",Cancel:"إلغاء","No matches found":"لا يوجد نتائج مطابقة",Posts:"منشورات","Search posts, tags and authors":"قم بالبحث عن المنشورات، الوسوم و الكتّاب","Show more results":"اظهر المزيد من النتائج",Tags:"الوسوم"},Jd={Authors:"Автори",Cancel:"Отказ","No matches found":"Няма съвпадения",Posts:"Публикации","Search posts, tags and authors":"Търсене в публикации, етикети и автори","Show more results":"Покажи още резултати",Tags:"Етикети"},Qd={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Yd={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Xd={Authors:"Autors",Cancel:"Cancel·la","No matches found":"No s'ha trobat cap resultat",Posts:"Articles","Search posts, tags and authors":"Cerca articles, etiquetes i autors","Show more results":"Mostra més resultats",Tags:"Etiquetes"},Zd={Authors:"Autoři",Cancel:"Zrušit","No matches found":"Nenalezeno",Posts:"Články","Search posts, tags and authors":"Prohledat články, štítky a autory","Show more results":"Zobrazit více výsledků",Tags:"Štítky"},ep={Authors:"Forfattere",Cancel:"Annuller","No matches found":"Ingen resultater fundet",Posts:"Indlæg","Search posts, tags and authors":"Søg i indlæg, tags og forfattere","Show more results":"Vis flere resultater",Tags:"Tags"},tp={Authors:"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"},np={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"},rp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},sp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},op={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},ip={Authors:"Autores",Cancel:"Cancelar","No matches found":"No se encontraron resultados",Posts:"Publicaciones","Search posts, tags and authors":"Buscar publicaciones, etiquetas y autores","Show more results":"Mostrar más resultados",Tags:"Etiquetas"},lp={Authors:"Autorid",Cancel:"Tühista","No matches found":"Vasteid ei leitud",Posts:"Postitused","Search posts, tags and authors":"Otsi postitusi, silte ja autoreid","Show more results":"Näita rohkem tulemusi",Tags:"Sildid"},ap={Authors:"Autoreak",Cancel:"Utzi","No matches found":"Ez da bat datorren ezer topatu",Posts:"Artikuluak","Search posts, tags and authors":"Bilatu artikuluak, etiketak eta autoreak","Show more results":"Erakutsi emaitza gehiago",Tags:"Etiketak"},up={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},cp={Authors:"Kirjoittajat",Cancel:"Peruuta","No matches found":"Ei hakutuloksia",Posts:"Kirjoitukset","Search posts, tags and authors":"Etsi kirjoituksia, tunnisteita ja kirjoittajia","Show more results":"Näytä enemmän tuloksia",Tags:"Tunnisteet"},fp={Authors:"Auteurs",Cancel:"Annuler","No matches found":"Aucun résultat trouvé",Posts:"Articles","Search posts, tags and authors":"Rechercher des articles, des catégories et des auteurs","Show more results":"Plus de résultats",Tags:"Catégories"},hp={Authors:"Ùghdaran",Cancel:"Sguir dheth","No matches found":"Cha deach dad a lorg a fhreagras ris na lorg thu",Posts:"Postaichean","Search posts, tags and authors":"Lorg sna postaichean, tagaichean agus ùghdaran","Show more results":"Seall barrachd thoraidhean",Tags:"Tagaichean"},dp={Authors:"מחברים",Cancel:"ביטול","No matches found":"לא נמצאו התאמות",Posts:"פוסטים","Search posts, tags and authors":"חיפוש פוסטים, תגיות ומחברים","Show more results":"הצגת תוצאות נוספות",Tags:"תגיות"},pp={Authors:"लेखक",Cancel:"रद्द करें","No matches found":"कोई मैच नहीं मिला",Posts:"पोस्ट","Search posts, tags and authors":"पोस्ट, टैग और लेखक की तलाश करें","Show more results":"और परिणाम दिखाएं",Tags:"टैग"},gp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},mp={Authors:"Szerzők",Cancel:"Mégse","No matches found":"Nincs találat",Posts:"Bejegyzések","Search posts, tags and authors":"Keresés a bejegyzések, a címkék és a szerzők között","Show more results":"További találatok megjelenítése",Tags:"Címkék"},yp={Authors:"Penulis",Cancel:"Batalkan","No matches found":"Tidak ada hasil yang ditemukan",Posts:"Postingan","Search posts, tags and authors":"Cari postingan, tag, dan penulis","Show more results":"Tampilkan lebih banyak hasil",Tags:"Tag"},vp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},wp={Authors:"Autori",Cancel:"Annulla","No matches found":"Nessun risultato trovato",Posts:"Articoli","Search posts, tags and authors":"Cerca articoli, tag e autori","Show more results":"Mostra più risultati",Tags:"Tag"},Sp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},xp={Authors:"작성자",Cancel:"취소","No matches found":"일치하는 결과가 없어요",Posts:"게시물","Search posts, tags and authors":"게시물, 태그, 작성자 검색","Show more results":"더 많은 결과 보기",Tags:"태그"},Cp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},kp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Pp={Authors:"Autori",Cancel:"Atcelt","No matches found":"Nav atrasta neviena atbilstība",Posts:"Ziņas","Search posts, tags and authors":"Meklēt ziņas, atzīmes un autorus","Show more results":"Rādīt vairāk rezultātu",Tags:"Tagi"},Ep={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},$p={Authors:"Нийтлэгчид",Cancel:"Цуцлах","No matches found":"Тохирох хайлтын үр дүн олдсонгүй",Posts:"Нийтлэлүүд","Search posts, tags and authors":"Нийтлэл, ангилал, нийтлэгчдээр хайх","Show more results":"Илүү олон үр дүн харуулах",Tags:"Ангилалууд"},jp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Ap={Authors:"Forfattere",Cancel:"Avbryt","No matches found":"Ingen treff funnet",Posts:"Innlegg","Search posts, tags and authors":"Søk i innlegg, etiketter og forfattere","Show more results":"Vis flere resultater",Tags:"Etiketter"},Op={Authors:"लेखकहरू",Cancel:"रद्द गर्नुहोस्","No matches found":"कुनै परिणाम भेटिएन",Posts:"पोस्टहरू","Search posts, tags and authors":"पोस्टहरू, ट्यागहरू र लेखकहरू खोज्नुहोस्","Show more results":"थप परिणामहरू देखाउनुहोस्",Tags:"ट्यागहरू"},Tp={Authors:"Auteurs",Cancel:"Annuleren","No matches found":"Geen resultaten gevonden",Posts:"Berichten","Search posts, tags and authors":"Zoek berichten, tags en auteurs","Show more results":"Meer resultaten weergeven",Tags:"Tags"},Np={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Rp={Authors:"ਲੇਖਕ",Cancel:"ਰੱਦ ਕਰੋ","No matches found":"ਕੋਈ ਮੇਲ ਨਹੀਂ ਮਿਲਿਆ",Posts:"ਪੋਸਟਾਂ","Search posts, tags and authors":"ਪੋਸਟਾਂ, ਟੈਗ ਅਤੇ ਲੇਖਕ ਖੋਜੋ","Show more results":"ਹੋਰ ਨਤੀਜੇ ਦਿਖਾਓ",Tags:"ਟੈਗ"},_p={Authors:"Autorzy",Cancel:"Anuluj","No matches found":"Nie znaleziono dopasowań",Posts:"Posty","Search posts, tags and authors":"Szukaj postów, tagów lub autorów","Show more results":"Pokaż więcej wyników",Tags:"Tagi"},Lp={Authors:"Autores",Cancel:"Cancelar","No matches found":"Nenhum resultado encontrado",Posts:"Publicações","Search posts, tags and authors":"Buscar posts, tags e autores","Show more results":"Mostrar mais resultados",Tags:"Tags"},Fp={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"},Ip={Authors:"Autori",Cancel:"Anulează","No matches found":"Nu s-au găsit rezultate",Posts:"Postări","Search posts, tags and authors":"Caută postări, etichete și autori","Show more results":"Afișează mai multe rezultate",Tags:"Etichete"},Dp={Authors:"Авторы",Cancel:"Отмена","No matches found":"Совпадений не найдено",Posts:"Записи","Search posts, tags and authors":"Поиск по записям, тегам и авторам","Show more results":"Показать больше результатов",Tags:"Теги"},Mp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},zp={Authors:"Autori",Cancel:"Zrušiť","No matches found":"Nenašli sa žiadne výsledky",Posts:"Príspevky","Search posts, tags and authors":"Vyhľadajte príspevky, tagy a autorov","Show more results":"Zobraziť viac výsledkov",Tags:"Tagy"},bp={Authors:"Avtorji",Cancel:"Prekliči","No matches found":"Ni najdenih zadetkov",Posts:"Članki","Search posts, tags and authors":"Iščite članke, oznake in avtorje","Show more results":"Prikaži več rezultatov",Tags:"Oznake"},Up={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Bp={Authors:"Аутори",Cancel:"Откажите","No matches found":"Нема резултата",Posts:"Објаве","Search posts, tags and authors":"Претражите објаве, tag-ове и ауторе","Show more results":"Прикажите више резултата",Tags:"Tag-ови"},qp={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"},Vp={Authors:"Författare",Cancel:"Avbryt","No matches found":"Inga träffar hittade",Posts:"Inlägg","Search posts, tags and authors":"Sök inlägg, taggar och författare","Show more results":"Visa fler resultat",Tags:"Taggar"},Hp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Wp={Authors:"ஆசிரியர்கள்",Cancel:"ரத்து செய்","No matches found":"பொருத்தங்கள் எதுவும் இல்லை",Posts:"பதிவுகள்","Search posts, tags and authors":"பதிவுகள், குறிச்சொற்கள் மற்றும் ஆசிரியர்களைத் தேடுங்கள்","Show more results":"மேலும் முடிவுகளைக் காட்டு",Tags:"குறிச்சொற்கள்"},Kp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Gp={Authors:"Yazarlar",Cancel:"İptal","No matches found":"Eşleşme bulunamadı",Posts:"Yazılar","Search posts, tags and authors":"Yazıları, etiketleri ve yazarları ara","Show more results":"Daha fazla sonuç göster",Tags:"Etiketler"},Jp={Authors:"Автори",Cancel:"Скасувати","No matches found":"Збігів не знайдено",Posts:"Публікації","Search posts, tags and authors":"Шукайте публікацій, теги та авторів","Show more results":"Показати більше результатів",Tags:"Теги"},Qp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Yp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Xp={Authors:"Tác giả",Cancel:"Hủy","No matches found":"Không tìm thấy",Posts:"Bài viết","Search posts, tags and authors":"Tìm bài viết, thẻ & tác giả","Show more results":"Xem thêm kết quả",Tags:"Thẻ"},Zp={Authors:"作者",Cancel:"取消","No matches found":"無相符結果",Posts:"文章","Search posts, tags and authors":"搜尋文章、標籤與作者","Show more results":"更多結果",Tags:"標籤"},eg={Authors:"作者",Cancel:"取消","No matches found":"未找到匹配项",Posts:"文章","Search posts, tags and authors":"搜索文章、标签和作者","Show more results":"显示更多结果",Tags:"标签"};var du;function pu(){return du||(du={"/ghost/i18n/locales/af/search.json":function(){return Kd},"/ghost/i18n/locales/ar/search.json":function(){return Gd},"/ghost/i18n/locales/bg/search.json":function(){return Jd},"/ghost/i18n/locales/bn/search.json":function(){return Qd},"/ghost/i18n/locales/bs/search.json":function(){return Yd},"/ghost/i18n/locales/ca/search.json":function(){return Xd},"/ghost/i18n/locales/cs/search.json":function(){return Zd},"/ghost/i18n/locales/da/search.json":function(){return ep},"/ghost/i18n/locales/de-CH/search.json":function(){return tp},"/ghost/i18n/locales/de/search.json":function(){return np},"/ghost/i18n/locales/el/search.json":function(){return rp},"/ghost/i18n/locales/en/search.json":function(){return sp},"/ghost/i18n/locales/eo/search.json":function(){return op},"/ghost/i18n/locales/es/search.json":function(){return ip},"/ghost/i18n/locales/et/search.json":function(){return lp},"/ghost/i18n/locales/eu/search.json":function(){return ap},"/ghost/i18n/locales/fa/search.json":function(){return up},"/ghost/i18n/locales/fi/search.json":function(){return cp},"/ghost/i18n/locales/fr/search.json":function(){return fp},"/ghost/i18n/locales/gd/search.json":function(){return hp},"/ghost/i18n/locales/he/search.json":function(){return dp},"/ghost/i18n/locales/hi/search.json":function(){return pp},"/ghost/i18n/locales/hr/search.json":function(){return gp},"/ghost/i18n/locales/hu/search.json":function(){return mp},"/ghost/i18n/locales/id/search.json":function(){return yp},"/ghost/i18n/locales/is/search.json":function(){return vp},"/ghost/i18n/locales/it/search.json":function(){return wp},"/ghost/i18n/locales/ja/search.json":function(){return Sp},"/ghost/i18n/locales/ko/search.json":function(){return xp},"/ghost/i18n/locales/kz/search.json":function(){return Cp},"/ghost/i18n/locales/lt/search.json":function(){return kp},"/ghost/i18n/locales/lv/search.json":function(){return Pp},"/ghost/i18n/locales/mk/search.json":function(){return Ep},"/ghost/i18n/locales/mn/search.json":function(){return $p},"/ghost/i18n/locales/ms/search.json":function(){return jp},"/ghost/i18n/locales/nb/search.json":function(){return Ap},"/ghost/i18n/locales/ne/search.json":function(){return Op},"/ghost/i18n/locales/nl/search.json":function(){return Tp},"/ghost/i18n/locales/nn/search.json":function(){return Np},"/ghost/i18n/locales/pa/search.json":function(){return Rp},"/ghost/i18n/locales/pl/search.json":function(){return _p},"/ghost/i18n/locales/pt-BR/search.json":function(){return Lp},"/ghost/i18n/locales/pt/search.json":function(){return Fp},"/ghost/i18n/locales/ro/search.json":function(){return Ip},"/ghost/i18n/locales/ru/search.json":function(){return Dp},"/ghost/i18n/locales/si/search.json":function(){return Mp},"/ghost/i18n/locales/sk/search.json":function(){return zp},"/ghost/i18n/locales/sl/search.json":function(){return bp},"/ghost/i18n/locales/sq/search.json":function(){return Up},"/ghost/i18n/locales/sr-Cyrl/search.json":function(){return Bp},"/ghost/i18n/locales/sr/search.json":function(){return qp},"/ghost/i18n/locales/sv/search.json":function(){return Vp},"/ghost/i18n/locales/sw/search.json":function(){return Hp},"/ghost/i18n/locales/ta/search.json":function(){return Wp},"/ghost/i18n/locales/th/search.json":function(){return Kp},"/ghost/i18n/locales/tr/search.json":function(){return Gp},"/ghost/i18n/locales/uk/search.json":function(){return Jp},"/ghost/i18n/locales/ur/search.json":function(){return Qp},"/ghost/i18n/locales/uz/search.json":function(){return Yp},"/ghost/i18n/locales/vi/search.json":function(){return Xp},"/ghost/i18n/locales/zh-Hant/search.json":function(){return Zp},"/ghost/i18n/locales/zh/search.json":function(){return eg}})}function Nn(r){function s(l){var i=gu(l,r);if(i!==null)return pu()[i]();throw new Error('Could not dynamically require "'+l+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}return s.resolve=function(l){var i=gu(l,r);return i!==null?i:require.resolve(l)},s}function gu(r,s){var l=tg(r);r=js(r);var i;r[0]==="/"&&(s="");for(var u=pu(),c=["",".js",".json"];l?i=js(s+"/node_modules/"+r):i=js(s+"/"+r),!i.endsWith("/..");){for(var d=0;d<c.length;d++){var v=i+c[d];if(u[v])return v}if(!l)break;var g=js(s+"/..");if(g===s)break;s=g}return null}function tg(r){var s=r[0];if(s==="/"||s==="\\")return!1;var l=r[1],i=r[2];return!(s==="."&&(!l||l==="/"||l==="\\")||s==="."&&l==="."&&(!i||i==="/"||i==="\\")||l===":"&&(i==="/"||i==="\\"))}function js(r){r=r.replace(/\\/g,"/");for(var s=r.split("/"),l=s[0]==="",i=1;i<s.length;i++)(s[i]==="."||s[i]==="")&&s.splice(i--,1);for(var i=1;i<s.length;i++)s[i]===".."&&i>0&&s[i-1]!==".."&&s[i-1]!=="."&&(s.splice(--i,2),i--);return r=s.join("/"),l&&r[0]!=="/"?r="/"+r:r.length===0&&(r="."),r}var Kn={exports:{}},Zo,mu;function ng(){if(mu)return Zo;mu=1;const r=k=>typeof k=="string",s=()=>{let k,f;const p=new Promise((m,x)=>{k=m,f=x});return p.resolve=k,p.reject=f,p},l=k=>k==null?"":""+k,i=(k,f,p)=>{k.forEach(m=>{f[m]&&(p[m]=f[m])})},u=/###/g,c=k=>k&&k.indexOf("###")>-1?k.replace(u,"."):k,d=k=>!k||r(k),v=(k,f,p)=>{const m=r(f)?f.split("."):f;let x=0;for(;x<m.length-1;){if(d(k))return{};const E=c(m[x]);!k[E]&&p&&(k[E]=new p),Object.prototype.hasOwnProperty.call(k,E)?k=k[E]:k={},++x}return d(k)?{}:{obj:k,k:c(m[x])}},g=(k,f,p)=>{const{obj:m,k:x}=v(k,f,Object);if(m!==void 0||f.length===1){m[x]=p;return}let E=f[f.length-1],N=f.slice(0,f.length-1),I=v(k,N,Object);for(;I.obj===void 0&&N.length;)E=`${N[N.length-1]}.${E}`,N=N.slice(0,N.length-1),I=v(k,N,Object),I&&I.obj&&typeof I.obj[`${I.k}.${E}`]<"u"&&(I.obj=void 0);I.obj[`${I.k}.${E}`]=p},C=(k,f,p,m)=>{const{obj:x,k:E}=v(k,f,Object);x[E]=x[E]||[],x[E].push(p)},$=(k,f)=>{const{obj:p,k:m}=v(k,f);if(p)return p[m]},P=(k,f,p)=>{const m=$(k,p);return m!==void 0?m:$(f,p)},O=(k,f,p)=>{for(const m in f)m!=="__proto__"&&m!=="constructor"&&(m in k?r(k[m])||k[m]instanceof String||r(f[m])||f[m]instanceof String?p&&(k[m]=f[m]):O(k[m],f[m],p):k[m]=f[m]);return k},F=k=>k.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var b={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const V=k=>r(k)?k.replace(/[&<>"'\/]/g,f=>b[f]):k;class U{constructor(f){this.capacity=f,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(f){const p=this.regExpMap.get(f);if(p!==void 0)return p;const m=new RegExp(f);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(f,m),this.regExpQueue.push(f),m}}const J=[" ",",","?","!",";"],re=new U(20),we=(k,f,p)=>{f=f||"",p=p||"";const m=J.filter(N=>f.indexOf(N)<0&&p.indexOf(N)<0);if(m.length===0)return!0;const x=re.getRegExp(`(${m.map(N=>N==="?"?"\\?":N).join("|")})`);let E=!x.test(k);if(!E){const N=k.indexOf(p);N>0&&!x.test(k.substring(0,N))&&(E=!0)}return E},ge=function(k,f){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!k)return;if(k[f])return k[f];const m=f.split(p);let x=k;for(let E=0;E<m.length;){if(!x||typeof x!="object")return;let N,I="";for(let M=E;M<m.length;++M)if(M!==E&&(I+=p),I+=m[M],N=x[I],N!==void 0){if(["string","number","boolean"].indexOf(typeof N)>-1&&M<m.length-1)continue;E+=M-E+1;break}x=N}return x},ne=k=>k&&k.replace("_","-"),me={type:"logger",log(k){this.output("log",k)},warn(k){this.output("warn",k)},error(k){this.output("error",k)},output(k,f){console&&console[k]&&console[k].apply(console,f)}};class ie{constructor(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(f,p)}init(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=p.prefix||"i18next:",this.logger=f||me,this.options=p,this.debug=p.debug}log(){for(var f=arguments.length,p=new Array(f),m=0;m<f;m++)p[m]=arguments[m];return this.forward(p,"log","",!0)}warn(){for(var f=arguments.length,p=new Array(f),m=0;m<f;m++)p[m]=arguments[m];return this.forward(p,"warn","",!0)}error(){for(var f=arguments.length,p=new Array(f),m=0;m<f;m++)p[m]=arguments[m];return this.forward(p,"error","")}deprecate(){for(var f=arguments.length,p=new Array(f),m=0;m<f;m++)p[m]=arguments[m];return this.forward(p,"warn","WARNING DEPRECATED: ",!0)}forward(f,p,m,x){return x&&!this.debug?null:(r(f[0])&&(f[0]=`${m}${this.prefix} ${f[0]}`),this.logger[p](f))}create(f){return new ie(this.logger,{prefix:`${this.prefix}:${f}:`,...this.options})}clone(f){return f=f||this.options,f.prefix=f.prefix||this.prefix,new ie(this.logger,f)}}var fe=new ie;class Ee{constructor(){this.observers={}}on(f,p){return f.split(" ").forEach(m=>{this.observers[m]||(this.observers[m]=new Map);const x=this.observers[m].get(p)||0;this.observers[m].set(p,x+1)}),this}off(f,p){if(this.observers[f]){if(!p){delete this.observers[f];return}this.observers[f].delete(p)}}emit(f){for(var p=arguments.length,m=new Array(p>1?p-1:0),x=1;x<p;x++)m[x-1]=arguments[x];this.observers[f]&&Array.from(this.observers[f].entries()).forEach(N=>{let[I,M]=N;for(let Q=0;Q<M;Q++)I(...m)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(N=>{let[I,M]=N;for(let Q=0;Q<M;Q++)I.apply(I,[f,...m])})}}class L extends Ee{constructor(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=f||{},this.options=p,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(f){this.options.ns.indexOf(f)<0&&this.options.ns.push(f)}removeNamespaces(f){const p=this.options.ns.indexOf(f);p>-1&&this.options.ns.splice(p,1)}getResource(f,p,m){let x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const E=x.keySeparator!==void 0?x.keySeparator:this.options.keySeparator,N=x.ignoreJSONStructure!==void 0?x.ignoreJSONStructure:this.options.ignoreJSONStructure;let I;f.indexOf(".")>-1?I=f.split("."):(I=[f,p],m&&(Array.isArray(m)?I.push(...m):r(m)&&E?I.push(...m.split(E)):I.push(m)));const M=$(this.data,I);return!M&&!p&&!m&&f.indexOf(".")>-1&&(f=I[0],p=I[1],m=I.slice(2).join(".")),M||!N||!r(m)?M:ge(this.data&&this.data[f]&&this.data[f][p],m,E)}addResource(f,p,m,x){let E=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const N=E.keySeparator!==void 0?E.keySeparator:this.options.keySeparator;let I=[f,p];m&&(I=I.concat(N?m.split(N):m)),f.indexOf(".")>-1&&(I=f.split("."),x=p,p=I[1]),this.addNamespaces(p),g(this.data,I,x),E.silent||this.emit("added",f,p,m,x)}addResources(f,p,m){let x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const E in m)(r(m[E])||Array.isArray(m[E]))&&this.addResource(f,p,E,m[E],{silent:!0});x.silent||this.emit("added",f,p,m)}addResourceBundle(f,p,m,x,E){let N=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},I=[f,p];f.indexOf(".")>-1&&(I=f.split("."),x=m,m=p,p=I[1]),this.addNamespaces(p);let M=$(this.data,I)||{};N.skipCopy||(m=JSON.parse(JSON.stringify(m))),x?O(M,m,E):M={...M,...m},g(this.data,I,M),N.silent||this.emit("added",f,p,m)}removeResourceBundle(f,p){this.hasResourceBundle(f,p)&&delete this.data[f][p],this.removeNamespaces(p),this.emit("removed",f,p)}hasResourceBundle(f,p){return this.getResource(f,p)!==void 0}getResourceBundle(f,p){return p||(p=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(f,p)}:this.getResource(f,p)}getDataByLanguage(f){return this.data[f]}hasLanguageSomeTranslations(f){const p=this.getDataByLanguage(f);return!!(p&&Object.keys(p)||[]).find(x=>p[x]&&Object.keys(p[x]).length>0)}toJSON(){return this.data}}var z={processors:{},addPostProcessor(k){this.processors[k.name]=k},handle(k,f,p,m,x){return k.forEach(E=>{this.processors[E]&&(f=this.processors[E].process(f,p,m,x))}),f}};const Y={};class se extends Ee{constructor(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),i(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],f,this),this.options=p,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=fe.create("translator")}changeLanguage(f){f&&(this.language=f)}exists(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(f==null)return!1;const m=this.resolve(f,p);return m&&m.res!==void 0}extractFromKey(f,p){let m=p.nsSeparator!==void 0?p.nsSeparator:this.options.nsSeparator;m===void 0&&(m=":");const x=p.keySeparator!==void 0?p.keySeparator:this.options.keySeparator;let E=p.ns||this.options.defaultNS||[];const N=m&&f.indexOf(m)>-1,I=!this.options.userDefinedKeySeparator&&!p.keySeparator&&!this.options.userDefinedNsSeparator&&!p.nsSeparator&&!we(f,m,x);if(N&&!I){const M=f.match(this.interpolator.nestingRegexp);if(M&&M.length>0)return{key:f,namespaces:r(E)?[E]:E};const Q=f.split(m);(m!==x||m===x&&this.options.ns.indexOf(Q[0])>-1)&&(E=Q.shift()),f=Q.join(x)}return{key:f,namespaces:r(E)?[E]:E}}translate(f,p,m){if(typeof p!="object"&&this.options.overloadTranslationOptionHandler&&(p=this.options.overloadTranslationOptionHandler(arguments)),typeof p=="object"&&(p={...p}),p||(p={}),f==null)return"";Array.isArray(f)||(f=[String(f)]);const x=p.returnDetails!==void 0?p.returnDetails:this.options.returnDetails,E=p.keySeparator!==void 0?p.keySeparator:this.options.keySeparator,{key:N,namespaces:I}=this.extractFromKey(f[f.length-1],p),M=I[I.length-1],Q=p.lng||this.language,ee=p.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(Q&&Q.toLowerCase()==="cimode"){if(ee){const Ue=p.nsSeparator||this.options.nsSeparator;return x?{res:`${M}${Ue}${N}`,usedKey:N,exactUsedKey:N,usedLng:Q,usedNS:M,usedParams:this.getUsedParamsDetails(p)}:`${M}${Ue}${N}`}return x?{res:N,usedKey:N,exactUsedKey:N,usedLng:Q,usedNS:M,usedParams:this.getUsedParamsDetails(p)}:N}const ue=this.resolve(f,p);let K=ue&&ue.res;const Se=ue&&ue.usedKey||N,_e=ue&&ue.exactUsedKey||N,Ke=Object.prototype.toString.apply(K),ze=["[object Number]","[object Function]","[object RegExp]"],tt=p.joinArrays!==void 0?p.joinArrays:this.options.joinArrays,nt=!this.i18nFormat||this.i18nFormat.handleAsObject,Lt=!r(K)&&typeof K!="boolean"&&typeof K!="number";if(nt&&K&&Lt&&ze.indexOf(Ke)<0&&!(r(tt)&&Array.isArray(K))){if(!p.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const Ue=this.options.returnedObjectHandler?this.options.returnedObjectHandler(Se,K,{...p,ns:I}):`key '${N} (${this.language})' returned an object instead of string.`;return x?(ue.res=Ue,ue.usedParams=this.getUsedParamsDetails(p),ue):Ue}if(E){const Ue=Array.isArray(K),gt=Ue?[]:{},vt=Ue?_e:Se;for(const rt in K)if(Object.prototype.hasOwnProperty.call(K,rt)){const Jn=`${vt}${E}${rt}`;gt[rt]=this.translate(Jn,{...p,joinArrays:!1,ns:I}),gt[rt]===Jn&&(gt[rt]=K[rt])}K=gt}}else if(nt&&r(tt)&&Array.isArray(K))K=K.join(tt),K&&(K=this.extendTranslation(K,f,p,m));else{let Ue=!1,gt=!1;const vt=p.count!==void 0&&!r(p.count),rt=se.hasDefaultValue(p),Jn=vt?this.pluralResolver.getSuffix(Q,p.count,p):"",Tr=p.ordinal&&vt?this.pluralResolver.getSuffix(Q,p.count,{ordinal:!1}):"",Qn=vt&&!p.ordinal&&p.count===0&&this.pluralResolver.shouldUseIntlApi(),Wt=Qn&&p[`defaultValue${this.options.pluralSeparator}zero`]||p[`defaultValue${Jn}`]||p[`defaultValue${Tr}`]||p.defaultValue;!this.isValidLookup(K)&&rt&&(Ue=!0,K=Wt),this.isValidLookup(K)||(gt=!0,K=N);const rn=(p.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&>?void 0:K,$t=rt&&Wt!==K&&this.options.updateMissing;if(gt||Ue||$t){if(this.logger.log($t?"updateKey":"missingKey",Q,M,N,$t?Wt:K),E){const it=this.resolve(N,{...p,keySeparator:!1});it&&it.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let sn=[];const Rn=this.languageUtils.getFallbackCodes(this.options.fallbackLng,p.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Rn&&Rn[0])for(let it=0;it<Rn.length;it++)sn.push(Rn[it]);else this.options.saveMissingTo==="all"?sn=this.languageUtils.toResolveHierarchy(p.lng||this.language):sn.push(p.lng||this.language);const Nr=(it,zt,Kt)=>{const Rr=rt&&Kt!==K?Kt:rn;this.options.missingKeyHandler?this.options.missingKeyHandler(it,M,zt,Rr,$t,p):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(it,M,zt,Rr,$t,p),this.emit("missingKey",it,M,zt,K)};this.options.saveMissing&&(this.options.saveMissingPlurals&&vt?sn.forEach(it=>{const zt=this.pluralResolver.getSuffixes(it,p);Qn&&p[`defaultValue${this.options.pluralSeparator}zero`]&&zt.indexOf(`${this.options.pluralSeparator}zero`)<0&&zt.push(`${this.options.pluralSeparator}zero`),zt.forEach(Kt=>{Nr([it],N+Kt,p[`defaultValue${Kt}`]||Wt)})}):Nr(sn,N,Wt))}K=this.extendTranslation(K,f,p,ue,m),gt&&K===N&&this.options.appendNamespaceToMissingKey&&(K=`${M}:${N}`),(gt||Ue)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?K=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${M}:${N}`:N,Ue?K:void 0):K=this.options.parseMissingKeyHandler(K))}return x?(ue.res=K,ue.usedParams=this.getUsedParamsDetails(p),ue):K}extendTranslation(f,p,m,x,E){var N=this;if(this.i18nFormat&&this.i18nFormat.parse)f=this.i18nFormat.parse(f,{...this.options.interpolation.defaultVariables,...m},m.lng||this.language||x.usedLng,x.usedNS,x.usedKey,{resolved:x});else if(!m.skipInterpolation){m.interpolation&&this.interpolator.init({...m,interpolation:{...this.options.interpolation,...m.interpolation}});const Q=r(f)&&(m&&m.interpolation&&m.interpolation.skipOnVariables!==void 0?m.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let ee;if(Q){const K=f.match(this.interpolator.nestingRegexp);ee=K&&K.length}let ue=m.replace&&!r(m.replace)?m.replace:m;if(this.options.interpolation.defaultVariables&&(ue={...this.options.interpolation.defaultVariables,...ue}),f=this.interpolator.interpolate(f,ue,m.lng||this.language||x.usedLng,m),Q){const K=f.match(this.interpolator.nestingRegexp),Se=K&&K.length;ee<Se&&(m.nest=!1)}!m.lng&&this.options.compatibilityAPI!=="v1"&&x&&x.res&&(m.lng=this.language||x.usedLng),m.nest!==!1&&(f=this.interpolator.nest(f,function(){for(var K=arguments.length,Se=new Array(K),_e=0;_e<K;_e++)Se[_e]=arguments[_e];return E&&E[0]===Se[0]&&!m.context?(N.logger.warn(`It seems you are nesting recursively key: ${Se[0]} in key: ${p[0]}`),null):N.translate(...Se,p)},m)),m.interpolation&&this.interpolator.reset()}const I=m.postProcess||this.options.postProcess,M=r(I)?[I]:I;return f!=null&&M&&M.length&&m.applyPostProcessor!==!1&&(f=z.handle(M,f,p,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...x,usedParams:this.getUsedParamsDetails(m)},...m}:m,this)),f}resolve(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m,x,E,N,I;return r(f)&&(f=[f]),f.forEach(M=>{if(this.isValidLookup(m))return;const Q=this.extractFromKey(M,p),ee=Q.key;x=ee;let ue=Q.namespaces;this.options.fallbackNS&&(ue=ue.concat(this.options.fallbackNS));const K=p.count!==void 0&&!r(p.count),Se=K&&!p.ordinal&&p.count===0&&this.pluralResolver.shouldUseIntlApi(),_e=p.context!==void 0&&(r(p.context)||typeof p.context=="number")&&p.context!=="",Ke=p.lngs?p.lngs:this.languageUtils.toResolveHierarchy(p.lng||this.language,p.fallbackLng);ue.forEach(ze=>{this.isValidLookup(m)||(I=ze,!Y[`${Ke[0]}-${ze}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(I)&&(Y[`${Ke[0]}-${ze}`]=!0,this.logger.warn(`key "${x}" for languages "${Ke.join(", ")}" won't get resolved as namespace "${I}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),Ke.forEach(tt=>{if(this.isValidLookup(m))return;N=tt;const nt=[ee];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(nt,ee,tt,ze,p);else{let Ue;K&&(Ue=this.pluralResolver.getSuffix(tt,p.count,p));const gt=`${this.options.pluralSeparator}zero`,vt=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(K&&(nt.push(ee+Ue),p.ordinal&&Ue.indexOf(vt)===0&&nt.push(ee+Ue.replace(vt,this.options.pluralSeparator)),Se&&nt.push(ee+gt)),_e){const rt=`${ee}${this.options.contextSeparator}${p.context}`;nt.push(rt),K&&(nt.push(rt+Ue),p.ordinal&&Ue.indexOf(vt)===0&&nt.push(rt+Ue.replace(vt,this.options.pluralSeparator)),Se&&nt.push(rt+gt))}}let Lt;for(;Lt=nt.pop();)this.isValidLookup(m)||(E=Lt,m=this.getResource(tt,ze,Lt,p))}))})}),{res:m,usedKey:x,exactUsedKey:E,usedLng:N,usedNS:I}}isValidLookup(f){return f!==void 0&&!(!this.options.returnNull&&f===null)&&!(!this.options.returnEmptyString&&f==="")}getResource(f,p,m){let x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(f,p,m,x):this.resourceStore.getResource(f,p,m,x)}getUsedParamsDetails(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const p=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],m=f.replace&&!r(f.replace);let x=m?f.replace:f;if(m&&typeof f.count<"u"&&(x.count=f.count),this.options.interpolation.defaultVariables&&(x={...this.options.interpolation.defaultVariables,...x}),!m){x={...x};for(const E of p)delete x[E]}return x}static hasDefaultValue(f){const p="defaultValue";for(const m in f)if(Object.prototype.hasOwnProperty.call(f,m)&&p===m.substring(0,p.length)&&f[m]!==void 0)return!0;return!1}}const de=k=>k.charAt(0).toUpperCase()+k.slice(1);class Oe{constructor(f){this.options=f,this.supportedLngs=this.options.supportedLngs||!1,this.logger=fe.create("languageUtils")}getScriptPartFromCode(f){if(f=ne(f),!f||f.indexOf("-")<0)return null;const p=f.split("-");return p.length===2||(p.pop(),p[p.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(p.join("-"))}getLanguagePartFromCode(f){if(f=ne(f),!f||f.indexOf("-")<0)return f;const p=f.split("-");return this.formatLanguageCode(p[0])}formatLanguageCode(f){if(r(f)&&f.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let x=Intl.getCanonicalLocales(f)[0];if(x&&this.options.lowerCaseLng&&(x=x.toLowerCase()),x)return x}catch{}const p=["hans","hant","latn","cyrl","cans","mong","arab"];let m=f.split("-");return this.options.lowerCaseLng?m=m.map(x=>x.toLowerCase()):m.length===2?(m[0]=m[0].toLowerCase(),m[1]=m[1].toUpperCase(),p.indexOf(m[1].toLowerCase())>-1&&(m[1]=de(m[1].toLowerCase()))):m.length===3&&(m[0]=m[0].toLowerCase(),m[1].length===2&&(m[1]=m[1].toUpperCase()),m[0]!=="sgn"&&m[2].length===2&&(m[2]=m[2].toUpperCase()),p.indexOf(m[1].toLowerCase())>-1&&(m[1]=de(m[1].toLowerCase())),p.indexOf(m[2].toLowerCase())>-1&&(m[2]=de(m[2].toLowerCase()))),m.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?f.toLowerCase():f}isSupportedCode(f){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(f=this.getLanguagePartFromCode(f)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(f)>-1}getBestMatchFromCodes(f){if(!f)return null;let p;return f.forEach(m=>{if(p)return;const x=this.formatLanguageCode(m);(!this.options.supportedLngs||this.isSupportedCode(x))&&(p=x)}),!p&&this.options.supportedLngs&&f.forEach(m=>{if(p)return;const x=this.getLanguagePartFromCode(m);if(this.isSupportedCode(x))return p=x;p=this.options.supportedLngs.find(E=>{if(E===x)return E;if(!(E.indexOf("-")<0&&x.indexOf("-")<0)&&(E.indexOf("-")>0&&x.indexOf("-")<0&&E.substring(0,E.indexOf("-"))===x||E.indexOf(x)===0&&x.length>1))return E})}),p||(p=this.getFallbackCodes(this.options.fallbackLng)[0]),p}getFallbackCodes(f,p){if(!f)return[];if(typeof f=="function"&&(f=f(p)),r(f)&&(f=[f]),Array.isArray(f))return f;if(!p)return f.default||[];let m=f[p];return m||(m=f[this.getScriptPartFromCode(p)]),m||(m=f[this.formatLanguageCode(p)]),m||(m=f[this.getLanguagePartFromCode(p)]),m||(m=f.default),m||[]}toResolveHierarchy(f,p){const m=this.getFallbackCodes(p||this.options.fallbackLng||[],f),x=[],E=N=>{N&&(this.isSupportedCode(N)?x.push(N):this.logger.warn(`rejecting language code not found in supportedLngs: ${N}`))};return r(f)&&(f.indexOf("-")>-1||f.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&E(this.formatLanguageCode(f)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&E(this.getScriptPartFromCode(f)),this.options.load!=="currentOnly"&&E(this.getLanguagePartFromCode(f))):r(f)&&E(this.formatLanguageCode(f)),m.forEach(N=>{x.indexOf(N)<0&&E(this.formatLanguageCode(N))}),x}}let Ie=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],w={1:k=>+(k>1),2:k=>+(k!=1),3:k=>0,4:k=>k%10==1&&k%100!=11?0:k%10>=2&&k%10<=4&&(k%100<10||k%100>=20)?1:2,5:k=>k==0?0:k==1?1:k==2?2:k%100>=3&&k%100<=10?3:k%100>=11?4:5,6:k=>k==1?0:k>=2&&k<=4?1:2,7:k=>k==1?0:k%10>=2&&k%10<=4&&(k%100<10||k%100>=20)?1:2,8:k=>k==1?0:k==2?1:k!=8&&k!=11?2:3,9:k=>+(k>=2),10:k=>k==1?0:k==2?1:k<7?2:k<11?3:4,11:k=>k==1||k==11?0:k==2||k==12?1:k>2&&k<20?2:3,12:k=>+(k%10!=1||k%100==11),13:k=>+(k!==0),14:k=>k==1?0:k==2?1:k==3?2:3,15:k=>k%10==1&&k%100!=11?0:k%10>=2&&(k%100<10||k%100>=20)?1:2,16:k=>k%10==1&&k%100!=11?0:k!==0?1:2,17:k=>k==1||k%10==1&&k%100!=11?0:1,18:k=>k==0?0:k==1?1:2,19:k=>k==1?0:k==0||k%100>1&&k%100<11?1:k%100>10&&k%100<20?2:3,20:k=>k==1?0:k==0||k%100>0&&k%100<20?1:2,21:k=>k%100==1?1:k%100==2?2:k%100==3||k%100==4?3:0,22:k=>k==1?0:k==2?1:(k<0||k>10)&&k%10==0?2:3};const T=["v1","v2","v3"],q=["v4"],pe={zero:0,one:1,two:2,few:3,many:4,other:5},B=()=>{const k={};return Ie.forEach(f=>{f.lngs.forEach(p=>{k[p]={numbers:f.nr,plurals:w[f.fc]}})}),k};class Z{constructor(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=f,this.options=p,this.logger=fe.create("pluralResolver"),(!this.options.compatibilityJSON||q.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=B(),this.pluralRulesCache={}}addRule(f,p){this.rules[f]=p}clearCache(){this.pluralRulesCache={}}getRule(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const m=ne(f==="dev"?"en":f),x=p.ordinal?"ordinal":"cardinal",E=JSON.stringify({cleanedCode:m,type:x});if(E in this.pluralRulesCache)return this.pluralRulesCache[E];let N;try{N=new Intl.PluralRules(m,{type:x})}catch{if(!f.match(/-|_/))return;const M=this.languageUtils.getLanguagePartFromCode(f);N=this.getRule(M,p)}return this.pluralRulesCache[E]=N,N}return this.rules[f]||this.rules[this.languageUtils.getLanguagePartFromCode(f)]}needsPlural(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const m=this.getRule(f,p);return this.shouldUseIntlApi()?m&&m.resolvedOptions().pluralCategories.length>1:m&&m.numbers.length>1}getPluralFormsOfKey(f,p){let m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(f,m).map(x=>`${p}${x}`)}getSuffixes(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const m=this.getRule(f,p);return m?this.shouldUseIntlApi()?m.resolvedOptions().pluralCategories.sort((x,E)=>pe[x]-pe[E]).map(x=>`${this.options.prepend}${p.ordinal?`ordinal${this.options.prepend}`:""}${x}`):m.numbers.map(x=>this.getSuffix(f,x,p)):[]}getSuffix(f,p){let m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const x=this.getRule(f,m);return x?this.shouldUseIntlApi()?`${this.options.prepend}${m.ordinal?`ordinal${this.options.prepend}`:""}${x.select(p)}`:this.getSuffixRetroCompatible(x,p):(this.logger.warn(`no plural rule found for: ${f}`),"")}getSuffixRetroCompatible(f,p){const m=f.noAbs?f.plurals(p):f.plurals(Math.abs(p));let x=f.numbers[m];this.options.simplifyPluralSuffix&&f.numbers.length===2&&f.numbers[0]===1&&(x===2?x="plural":x===1&&(x=""));const E=()=>this.options.prepend&&x.toString()?this.options.prepend+x.toString():x.toString();return this.options.compatibilityJSON==="v1"?x===1?"":typeof x=="number"?`_plural_${x.toString()}`:E():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&f.numbers.length===2&&f.numbers[0]===1?E():this.options.prepend&&m.toString()?this.options.prepend+m.toString():m.toString()}shouldUseIntlApi(){return!T.includes(this.options.compatibilityJSON)}}const W=function(k,f,p){let m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",x=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,E=P(k,f,p);return!E&&x&&r(p)&&(E=ge(k,p,m),E===void 0&&(E=ge(f,p,m))),E},oe=k=>k.replace(/\$/g,"$$$$");class ae{constructor(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=fe.create("interpolator"),this.options=f,this.format=f.interpolation&&f.interpolation.format||(p=>p),this.init(f)}init(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};f.interpolation||(f.interpolation={escapeValue:!0});const{escape:p,escapeValue:m,useRawValueToEscape:x,prefix:E,prefixEscaped:N,suffix:I,suffixEscaped:M,formatSeparator:Q,unescapeSuffix:ee,unescapePrefix:ue,nestingPrefix:K,nestingPrefixEscaped:Se,nestingSuffix:_e,nestingSuffixEscaped:Ke,nestingOptionsSeparator:ze,maxReplaces:tt,alwaysFormat:nt}=f.interpolation;this.escape=p!==void 0?p:V,this.escapeValue=m!==void 0?m:!0,this.useRawValueToEscape=x!==void 0?x:!1,this.prefix=E?F(E):N||"{{",this.suffix=I?F(I):M||"}}",this.formatSeparator=Q||",",this.unescapePrefix=ee?"":ue||"-",this.unescapeSuffix=this.unescapePrefix?"":ee||"",this.nestingPrefix=K?F(K):Se||F("$t("),this.nestingSuffix=_e?F(_e):Ke||F(")"),this.nestingOptionsSeparator=ze||",",this.maxReplaces=tt||1e3,this.alwaysFormat=nt!==void 0?nt:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const f=(p,m)=>p&&p.source===m?(p.lastIndex=0,p):new RegExp(m,"g");this.regexp=f(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=f(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=f(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(f,p,m,x){let E,N,I;const M=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},Q=Se=>{if(Se.indexOf(this.formatSeparator)<0){const tt=W(p,M,Se,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(tt,void 0,m,{...x,...p,interpolationkey:Se}):tt}const _e=Se.split(this.formatSeparator),Ke=_e.shift().trim(),ze=_e.join(this.formatSeparator).trim();return this.format(W(p,M,Ke,this.options.keySeparator,this.options.ignoreJSONStructure),ze,m,{...x,...p,interpolationkey:Ke})};this.resetRegExp();const ee=x&&x.missingInterpolationHandler||this.options.missingInterpolationHandler,ue=x&&x.interpolation&&x.interpolation.skipOnVariables!==void 0?x.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:Se=>oe(Se)},{regex:this.regexp,safeValue:Se=>this.escapeValue?oe(this.escape(Se)):oe(Se)}].forEach(Se=>{for(I=0;E=Se.regex.exec(f);){const _e=E[1].trim();if(N=Q(_e),N===void 0)if(typeof ee=="function"){const ze=ee(f,E,x);N=r(ze)?ze:""}else if(x&&Object.prototype.hasOwnProperty.call(x,_e))N="";else if(ue){N=E[0];continue}else this.logger.warn(`missed to pass in variable ${_e} for interpolating ${f}`),N="";else!r(N)&&!this.useRawValueToEscape&&(N=l(N));const Ke=Se.safeValue(N);if(f=f.replace(E[0],Ke),ue?(Se.regex.lastIndex+=N.length,Se.regex.lastIndex-=E[0].length):Se.regex.lastIndex=0,I++,I>=this.maxReplaces)break}}),f}nest(f,p){let m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},x,E,N;const I=(M,Q)=>{const ee=this.nestingOptionsSeparator;if(M.indexOf(ee)<0)return M;const ue=M.split(new RegExp(`${ee}[ ]*{`));let K=`{${ue[1]}`;M=ue[0],K=this.interpolate(K,N);const Se=K.match(/'/g),_e=K.match(/"/g);(Se&&Se.length%2===0&&!_e||_e.length%2!==0)&&(K=K.replace(/'/g,'"'));try{N=JSON.parse(K),Q&&(N={...Q,...N})}catch(Ke){return this.logger.warn(`failed parsing options string in nesting for key ${M}`,Ke),`${M}${ee}${K}`}return N.defaultValue&&N.defaultValue.indexOf(this.prefix)>-1&&delete N.defaultValue,M};for(;x=this.nestingRegexp.exec(f);){let M=[];N={...m},N=N.replace&&!r(N.replace)?N.replace:N,N.applyPostProcessor=!1,delete N.defaultValue;let Q=!1;if(x[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(x[1])){const ee=x[1].split(this.formatSeparator).map(ue=>ue.trim());x[1]=ee.shift(),M=ee,Q=!0}if(E=p(I.call(this,x[1].trim(),N),N),E&&x[0]===f&&!r(E))return E;r(E)||(E=l(E)),E||(this.logger.warn(`missed to resolve ${x[1]} for nesting ${f}`),E=""),Q&&(E=M.reduce((ee,ue)=>this.format(ee,ue,m.lng,{...m,interpolationkey:x[1].trim()}),E.trim())),f=f.replace(x[0],E),this.regexp.lastIndex=0}return f}}const Re=k=>{let f=k.toLowerCase().trim();const p={};if(k.indexOf("(")>-1){const m=k.split("(");f=m[0].toLowerCase().trim();const x=m[1].substring(0,m[1].length-1);f==="currency"&&x.indexOf(":")<0?p.currency||(p.currency=x.trim()):f==="relativetime"&&x.indexOf(":")<0?p.range||(p.range=x.trim()):x.split(";").forEach(N=>{if(N){const[I,...M]=N.split(":"),Q=M.join(":").trim().replace(/^'+|'+$/g,""),ee=I.trim();p[ee]||(p[ee]=Q),Q==="false"&&(p[ee]=!1),Q==="true"&&(p[ee]=!0),isNaN(Q)||(p[ee]=parseInt(Q,10))}})}return{formatName:f,formatOptions:p}},be=k=>{const f={};return(p,m,x)=>{let E=x;x&&x.interpolationkey&&x.formatParams&&x.formatParams[x.interpolationkey]&&x[x.interpolationkey]&&(E={...E,[x.interpolationkey]:void 0});const N=m+JSON.stringify(E);let I=f[N];return I||(I=k(ne(m),x),f[N]=I),I(p)}};class pt{constructor(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=fe.create("formatter"),this.options=f,this.formats={number:be((p,m)=>{const x=new Intl.NumberFormat(p,{...m});return E=>x.format(E)}),currency:be((p,m)=>{const x=new Intl.NumberFormat(p,{...m,style:"currency"});return E=>x.format(E)}),datetime:be((p,m)=>{const x=new Intl.DateTimeFormat(p,{...m});return E=>x.format(E)}),relativetime:be((p,m)=>{const x=new Intl.RelativeTimeFormat(p,{...m});return E=>x.format(E,m.range||"day")}),list:be((p,m)=>{const x=new Intl.ListFormat(p,{...m});return E=>x.format(E)})},this.init(f)}init(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=p.interpolation.formatSeparator||","}add(f,p){this.formats[f.toLowerCase().trim()]=p}addCached(f,p){this.formats[f.toLowerCase().trim()]=be(p)}format(f,p,m){let x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const E=p.split(this.formatSeparator);if(E.length>1&&E[0].indexOf("(")>1&&E[0].indexOf(")")<0&&E.find(I=>I.indexOf(")")>-1)){const I=E.findIndex(M=>M.indexOf(")")>-1);E[0]=[E[0],...E.splice(1,I)].join(this.formatSeparator)}return E.reduce((I,M)=>{const{formatName:Q,formatOptions:ee}=Re(M);if(this.formats[Q]){let ue=I;try{const K=x&&x.formatParams&&x.formatParams[x.interpolationkey]||{},Se=K.locale||K.lng||x.locale||x.lng||m;ue=this.formats[Q](I,Se,{...ee,...x,...K})}catch(K){this.logger.warn(K)}return ue}else this.logger.warn(`there was no format function for ${Q}`);return I},f)}}const De=(k,f)=>{k.pending[f]!==void 0&&(delete k.pending[f],k.pendingCount--)};class Me extends Ee{constructor(f,p,m){let x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=f,this.store=p,this.services=m,this.languageUtils=m.languageUtils,this.options=x,this.logger=fe.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=x.maxParallelReads||10,this.readingCalls=0,this.maxRetries=x.maxRetries>=0?x.maxRetries:5,this.retryTimeout=x.retryTimeout>=1?x.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(m,x.backend,x)}queueLoad(f,p,m,x){const E={},N={},I={},M={};return f.forEach(Q=>{let ee=!0;p.forEach(ue=>{const K=`${Q}|${ue}`;!m.reload&&this.store.hasResourceBundle(Q,ue)?this.state[K]=2:this.state[K]<0||(this.state[K]===1?N[K]===void 0&&(N[K]=!0):(this.state[K]=1,ee=!1,N[K]===void 0&&(N[K]=!0),E[K]===void 0&&(E[K]=!0),M[ue]===void 0&&(M[ue]=!0)))}),ee||(I[Q]=!0)}),(Object.keys(E).length||Object.keys(N).length)&&this.queue.push({pending:N,pendingCount:Object.keys(N).length,loaded:{},errors:[],callback:x}),{toLoad:Object.keys(E),pending:Object.keys(N),toLoadLanguages:Object.keys(I),toLoadNamespaces:Object.keys(M)}}loaded(f,p,m){const x=f.split("|"),E=x[0],N=x[1];p&&this.emit("failedLoading",E,N,p),!p&&m&&this.store.addResourceBundle(E,N,m,void 0,void 0,{skipCopy:!0}),this.state[f]=p?-1:2,p&&m&&(this.state[f]=0);const I={};this.queue.forEach(M=>{C(M.loaded,[E],N),De(M,f),p&&M.errors.push(p),M.pendingCount===0&&!M.done&&(Object.keys(M.loaded).forEach(Q=>{I[Q]||(I[Q]={});const ee=M.loaded[Q];ee.length&&ee.forEach(ue=>{I[Q][ue]===void 0&&(I[Q][ue]=!0)})}),M.done=!0,M.errors.length?M.callback(M.errors):M.callback())}),this.emit("loaded",I),this.queue=this.queue.filter(M=>!M.done)}read(f,p,m){let x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,E=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,N=arguments.length>5?arguments[5]:void 0;if(!f.length)return N(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:f,ns:p,fcName:m,tried:x,wait:E,callback:N});return}this.readingCalls++;const I=(Q,ee)=>{if(this.readingCalls--,this.waitingReads.length>0){const ue=this.waitingReads.shift();this.read(ue.lng,ue.ns,ue.fcName,ue.tried,ue.wait,ue.callback)}if(Q&&ee&&x<this.maxRetries){setTimeout(()=>{this.read.call(this,f,p,m,x+1,E*2,N)},E);return}N(Q,ee)},M=this.backend[m].bind(this.backend);if(M.length===2){try{const Q=M(f,p);Q&&typeof Q.then=="function"?Q.then(ee=>I(null,ee)).catch(I):I(null,Q)}catch(Q){I(Q)}return}return M(f,p,I)}prepareLoading(f,p){let m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},x=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),x&&x();r(f)&&(f=this.languageUtils.toResolveHierarchy(f)),r(p)&&(p=[p]);const E=this.queueLoad(f,p,m,x);if(!E.toLoad.length)return E.pending.length||x(),null;E.toLoad.forEach(N=>{this.loadOne(N)})}load(f,p,m){this.prepareLoading(f,p,{},m)}reload(f,p,m){this.prepareLoading(f,p,{reload:!0},m)}loadOne(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const m=f.split("|"),x=m[0],E=m[1];this.read(x,E,"read",void 0,void 0,(N,I)=>{N&&this.logger.warn(`${p}loading namespace ${E} for language ${x} failed`,N),!N&&I&&this.logger.log(`${p}loaded namespace ${E} for language ${x}`,I),this.loaded(f,N,I)})}saveMissing(f,p,m,x,E){let N=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},I=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(p)){this.logger.warn(`did not save key "${m}" as the namespace "${p}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(m==null||m==="")){if(this.backend&&this.backend.create){const M={...N,isUpdate:E},Q=this.backend.create.bind(this.backend);if(Q.length<6)try{let ee;Q.length===5?ee=Q(f,p,m,x,M):ee=Q(f,p,m,x),ee&&typeof ee.then=="function"?ee.then(ue=>I(null,ue)).catch(I):I(null,ee)}catch(ee){I(ee)}else Q(f,p,m,x,I,M)}!f||!f[0]||this.store.addResource(f[0],p,m,x)}}}const Be=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:k=>{let f={};if(typeof k[1]=="object"&&(f=k[1]),r(k[1])&&(f.defaultValue=k[1]),r(k[2])&&(f.tDescription=k[2]),typeof k[2]=="object"||typeof k[3]=="object"){const p=k[3]||k[2];Object.keys(p).forEach(m=>{f[m]=p[m]})}return f},interpolation:{escapeValue:!0,format:k=>k,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Fe=k=>(r(k.ns)&&(k.ns=[k.ns]),r(k.fallbackLng)&&(k.fallbackLng=[k.fallbackLng]),r(k.fallbackNS)&&(k.fallbackNS=[k.fallbackNS]),k.supportedLngs&&k.supportedLngs.indexOf("cimode")<0&&(k.supportedLngs=k.supportedLngs.concat(["cimode"])),k),Ge=()=>{},yt=k=>{Object.getOwnPropertyNames(Object.getPrototypeOf(k)).forEach(p=>{typeof k[p]=="function"&&(k[p]=k[p].bind(k))})};class ot extends Ee{constructor(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Fe(f),this.services={},this.logger=fe,this.modules={external:[]},yt(this),p&&!this.isInitialized&&!f.isClone){if(!this.options.initImmediate)return this.init(f,p),this;setTimeout(()=>{this.init(f,p)},0)}}init(){var f=this;let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof p=="function"&&(m=p,p={}),!p.defaultNS&&p.defaultNS!==!1&&p.ns&&(r(p.ns)?p.defaultNS=p.ns:p.ns.indexOf("translation")<0&&(p.defaultNS=p.ns[0]));const x=Be();this.options={...x,...this.options,...Fe(p)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...x.interpolation,...this.options.interpolation}),p.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=p.keySeparator),p.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=p.nsSeparator);const E=ee=>ee?typeof ee=="function"?new ee:ee:null;if(!this.options.isClone){this.modules.logger?fe.init(E(this.modules.logger),this.options):fe.init(null,this.options);let ee;this.modules.formatter?ee=this.modules.formatter:typeof Intl<"u"&&(ee=pt);const ue=new Oe(this.options);this.store=new L(this.options.resources,this.options);const K=this.services;K.logger=fe,K.resourceStore=this.store,K.languageUtils=ue,K.pluralResolver=new Z(ue,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),ee&&(!this.options.interpolation.format||this.options.interpolation.format===x.interpolation.format)&&(K.formatter=E(ee),K.formatter.init(K,this.options),this.options.interpolation.format=K.formatter.format.bind(K.formatter)),K.interpolator=new ae(this.options),K.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},K.backendConnector=new Me(E(this.modules.backend),K.resourceStore,K,this.options),K.backendConnector.on("*",function(Se){for(var _e=arguments.length,Ke=new Array(_e>1?_e-1:0),ze=1;ze<_e;ze++)Ke[ze-1]=arguments[ze];f.emit(Se,...Ke)}),this.modules.languageDetector&&(K.languageDetector=E(this.modules.languageDetector),K.languageDetector.init&&K.languageDetector.init(K,this.options.detection,this.options)),this.modules.i18nFormat&&(K.i18nFormat=E(this.modules.i18nFormat),K.i18nFormat.init&&K.i18nFormat.init(this)),this.translator=new se(this.services,this.options),this.translator.on("*",function(Se){for(var _e=arguments.length,Ke=new Array(_e>1?_e-1:0),ze=1;ze<_e;ze++)Ke[ze-1]=arguments[ze];f.emit(Se,...Ke)}),this.modules.external.forEach(Se=>{Se.init&&Se.init(this)})}if(this.format=this.options.interpolation.format,m||(m=Ge),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const ee=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);ee.length>0&&ee[0]!=="dev"&&(this.options.lng=ee[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(ee=>{this[ee]=function(){return f.store[ee](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(ee=>{this[ee]=function(){return f.store[ee](...arguments),f}});const M=s(),Q=()=>{const ee=(ue,K)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),M.resolve(K),m(ue,K)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return ee(null,this.t.bind(this));this.changeLanguage(this.options.lng,ee)};return this.options.resources||!this.options.initImmediate?Q():setTimeout(Q,0),M}loadResources(f){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ge;const x=r(f)?f:this.language;if(typeof f=="function"&&(m=f),!this.options.resources||this.options.partialBundledLanguages){if(x&&x.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return m();const E=[],N=I=>{if(!I||I==="cimode")return;this.services.languageUtils.toResolveHierarchy(I).forEach(Q=>{Q!=="cimode"&&E.indexOf(Q)<0&&E.push(Q)})};x?N(x):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(M=>N(M)),this.options.preload&&this.options.preload.forEach(I=>N(I)),this.services.backendConnector.load(E,this.options.ns,I=>{!I&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),m(I)})}else m(null)}reloadResources(f,p,m){const x=s();return typeof f=="function"&&(m=f,f=void 0),typeof p=="function"&&(m=p,p=void 0),f||(f=this.languages),p||(p=this.options.ns),m||(m=Ge),this.services.backendConnector.reload(f,p,E=>{x.resolve(),m(E)}),x}use(f){if(!f)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!f.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return f.type==="backend"&&(this.modules.backend=f),(f.type==="logger"||f.log&&f.warn&&f.error)&&(this.modules.logger=f),f.type==="languageDetector"&&(this.modules.languageDetector=f),f.type==="i18nFormat"&&(this.modules.i18nFormat=f),f.type==="postProcessor"&&z.addPostProcessor(f),f.type==="formatter"&&(this.modules.formatter=f),f.type==="3rdParty"&&this.modules.external.push(f),this}setResolvedLanguage(f){if(!(!f||!this.languages)&&!(["cimode","dev"].indexOf(f)>-1))for(let p=0;p<this.languages.length;p++){const m=this.languages[p];if(!(["cimode","dev"].indexOf(m)>-1)&&this.store.hasLanguageSomeTranslations(m)){this.resolvedLanguage=m;break}}}changeLanguage(f,p){var m=this;this.isLanguageChangingTo=f;const x=s();this.emit("languageChanging",f);const E=M=>{this.language=M,this.languages=this.services.languageUtils.toResolveHierarchy(M),this.resolvedLanguage=void 0,this.setResolvedLanguage(M)},N=(M,Q)=>{Q?(E(Q),this.translator.changeLanguage(Q),this.isLanguageChangingTo=void 0,this.emit("languageChanged",Q),this.logger.log("languageChanged",Q)):this.isLanguageChangingTo=void 0,x.resolve(function(){return m.t(...arguments)}),p&&p(M,function(){return m.t(...arguments)})},I=M=>{!f&&!M&&this.services.languageDetector&&(M=[]);const Q=r(M)?M:this.services.languageUtils.getBestMatchFromCodes(M);Q&&(this.language||E(Q),this.translator.language||this.translator.changeLanguage(Q),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(Q)),this.loadResources(Q,ee=>{N(ee,Q)})};return!f&&this.services.languageDetector&&!this.services.languageDetector.async?I(this.services.languageDetector.detect()):!f&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(I):this.services.languageDetector.detect(I):I(f),x}getFixedT(f,p,m){var x=this;const E=function(N,I){let M;if(typeof I!="object"){for(var Q=arguments.length,ee=new Array(Q>2?Q-2:0),ue=2;ue<Q;ue++)ee[ue-2]=arguments[ue];M=x.options.overloadTranslationOptionHandler([N,I].concat(ee))}else M={...I};M.lng=M.lng||E.lng,M.lngs=M.lngs||E.lngs,M.ns=M.ns||E.ns,M.keyPrefix!==""&&(M.keyPrefix=M.keyPrefix||m||E.keyPrefix);const K=x.options.keySeparator||".";let Se;return M.keyPrefix&&Array.isArray(N)?Se=N.map(_e=>`${M.keyPrefix}${K}${_e}`):Se=M.keyPrefix?`${M.keyPrefix}${K}${N}`:N,x.t(Se,M)};return r(f)?E.lng=f:E.lngs=f,E.ns=p,E.keyPrefix=m,E}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(f){this.options.defaultNS=f}hasLoadedNamespace(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const m=p.lng||this.resolvedLanguage||this.languages[0],x=this.options?this.options.fallbackLng:!1,E=this.languages[this.languages.length-1];if(m.toLowerCase()==="cimode")return!0;const N=(I,M)=>{const Q=this.services.backendConnector.state[`${I}|${M}`];return Q===-1||Q===0||Q===2};if(p.precheck){const I=p.precheck(this,N);if(I!==void 0)return I}return!!(this.hasResourceBundle(m,f)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||N(m,f)&&(!x||N(E,f)))}loadNamespaces(f,p){const m=s();return this.options.ns?(r(f)&&(f=[f]),f.forEach(x=>{this.options.ns.indexOf(x)<0&&this.options.ns.push(x)}),this.loadResources(x=>{m.resolve(),p&&p(x)}),m):(p&&p(),Promise.resolve())}loadLanguages(f,p){const m=s();r(f)&&(f=[f]);const x=this.options.preload||[],E=f.filter(N=>x.indexOf(N)<0&&this.services.languageUtils.isSupportedCode(N));return E.length?(this.options.preload=x.concat(E),this.loadResources(N=>{m.resolve(),p&&p(N)}),m):(p&&p(),Promise.resolve())}dir(f){if(f||(f=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!f)return"rtl";const p=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],m=this.services&&this.services.languageUtils||new Oe(Be());return p.indexOf(m.getLanguagePartFromCode(f))>-1||f.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=arguments.length>1?arguments[1]:void 0;return new ot(f,p)}cloneInstance(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ge;const m=f.forkResourceStore;m&&delete f.forkResourceStore;const x={...this.options,...f,isClone:!0},E=new ot(x);return(f.debug!==void 0||f.prefix!==void 0)&&(E.logger=E.logger.clone(f)),["store","services","language"].forEach(I=>{E[I]=this[I]}),E.services={...this.services},E.services.utils={hasLoadedNamespace:E.hasLoadedNamespace.bind(E)},m&&(E.store=new L(this.store.data,x),E.services.resourceStore=E.store),E.translator=new se(E.services,x),E.translator.on("*",function(I){for(var M=arguments.length,Q=new Array(M>1?M-1:0),ee=1;ee<M;ee++)Q[ee-1]=arguments[ee];E.emit(I,...Q)}),E.init(x,p),E.translator.options=x,E.translator.backendConnector.services.utils={hasLoadedNamespace:E.hasLoadedNamespace.bind(E)},E}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ze=ot.createInstance();return Ze.createInstance=ot.createInstance,Zo=Ze,Zo}const yu=Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})),Gn=Wh(yu);var As={exports:{}},Os={},ei={exports:{}},vu;function rg(){return vu||(vu=1,(function(r){var s=Gn,l=Gn;function i(c){return l.existsSync(s.join(c,"package.json"))}function u(c,d){if(c=c||r.parent.filename,d=d||i,typeof c=="string"&&(c[c.length-1]!==s.sep&&(c+=s.sep),c=c.split(s.sep)),!c.length)throw new Error("package.json not found in path");c.pop();var v=c.join(s.sep);try{if(d(v))return v}catch{}return u(c,d)}r.exports=u})(ei)),ei.exports}var ti={exports:{}},ni,wu;function Su(){if(wu)return ni;wu=1;var r=Object.prototype.toString;return ni=function(l){var i=r.call(l),u=i==="[object Arguments]";return u||(u=i!=="[object Array]"&&l!==null&&typeof l=="object"&&typeof l.length=="number"&&l.length>=0&&r.call(l.callee)==="[object Function]"),u},ni}var ri,xu;function sg(){if(xu)return ri;xu=1;var r;if(!Object.keys){var s=Object.prototype.hasOwnProperty,l=Object.prototype.toString,i=Su(),u=Object.prototype.propertyIsEnumerable,c=!u.call({toString:null},"toString"),d=u.call(function(){},"prototype"),v=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],g=function(O){var F=O.constructor;return F&&F.prototype===O},C={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},$=(function(){if(typeof window>"u")return!1;for(var O in window)try{if(!C["$"+O]&&s.call(window,O)&&window[O]!==null&&typeof window[O]=="object")try{g(window[O])}catch{return!0}}catch{return!0}return!1})(),P=function(O){if(typeof window>"u"||!$)return g(O);try{return g(O)}catch{return!1}};r=function(F){var b=F!==null&&typeof F=="object",V=l.call(F)==="[object Function]",U=i(F),J=b&&l.call(F)==="[object String]",re=[];if(!b&&!V&&!U)throw new TypeError("Object.keys called on a non-object");var we=d&&V;if(J&&F.length>0&&!s.call(F,0))for(var ge=0;ge<F.length;++ge)re.push(String(ge));if(U&&F.length>0)for(var ne=0;ne<F.length;++ne)re.push(String(ne));else for(var me in F)!(we&&me==="prototype")&&s.call(F,me)&&re.push(String(me));if(c)for(var ie=P(F),fe=0;fe<v.length;++fe)!(ie&&v[fe]==="constructor")&&s.call(F,v[fe])&&re.push(v[fe]);return re}}return ri=r,ri}var si,Cu;function og(){if(Cu)return si;Cu=1;var r=Array.prototype.slice,s=Su(),l=Object.keys,i=l?function(d){return l(d)}:sg(),u=Object.keys;return i.shim=function(){if(Object.keys){var d=(function(){var v=Object.keys(arguments);return v&&v.length===arguments.length})(1,2);d||(Object.keys=function(g){return s(g)?u(r.call(g)):u(g)})}else Object.keys=i;return Object.keys||i},si=i,si}var oi,ku;function Pu(){return ku||(ku=1,oi=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var s={},l=Symbol("test"),i=Object(l);if(typeof l=="string"||Object.prototype.toString.call(l)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var u=42;s[l]=u;for(var c in s)return!1;if(typeof Object.keys=="function"&&Object.keys(s).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(s).length!==0)return!1;var d=Object.getOwnPropertySymbols(s);if(d.length!==1||d[0]!==l||!Object.prototype.propertyIsEnumerable.call(s,l))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var v=Object.getOwnPropertyDescriptor(s,l);if(v.value!==u||v.enumerable!==!0)return!1}return!0}),oi}var ii,Eu;function li(){return Eu||(Eu=1,ii=Object),ii}var ai,$u;function ig(){return $u||($u=1,ai=Error),ai}var ui,ju;function lg(){return ju||(ju=1,ui=EvalError),ui}var ci,Au;function ag(){return Au||(Au=1,ci=RangeError),ci}var fi,Ou;function ug(){return Ou||(Ou=1,fi=ReferenceError),fi}var hi,Tu;function cg(){return Tu||(Tu=1,hi=SyntaxError),hi}var di,Nu;function Ru(){return Nu||(Nu=1,di=TypeError),di}var pi,_u;function fg(){return _u||(_u=1,pi=URIError),pi}var gi,Lu;function hg(){return Lu||(Lu=1,gi=Math.abs),gi}var mi,Fu;function dg(){return Fu||(Fu=1,mi=Math.floor),mi}var yi,Iu;function pg(){return Iu||(Iu=1,yi=Math.max),yi}var vi,Du;function gg(){return Du||(Du=1,vi=Math.min),vi}var wi,Mu;function mg(){return Mu||(Mu=1,wi=Math.pow),wi}var Si,zu;function yg(){return zu||(zu=1,Si=Math.round),Si}var xi,bu;function vg(){return bu||(bu=1,xi=Number.isNaN||function(s){return s!==s}),xi}var Ci,Uu;function wg(){if(Uu)return Ci;Uu=1;var r=vg();return Ci=function(l){return r(l)||l===0?l:l<0?-1:1},Ci}var ki,Bu;function Sg(){return Bu||(Bu=1,ki=Object.getOwnPropertyDescriptor),ki}var Pi,qu;function Vu(){if(qu)return Pi;qu=1;var r=Sg();if(r)try{r([],"length")}catch{r=null}return Pi=r,Pi}var Ei,Hu;function xg(){if(Hu)return Ei;Hu=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return Ei=r,Ei}var $i,Wu;function Cg(){if(Wu)return $i;Wu=1;var r=typeof Symbol<"u"&&Symbol,s=Pu();return $i=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:s()},$i}var ji,Ku;function Gu(){return Ku||(Ku=1,ji=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),ji}var Ai,Ju;function Qu(){if(Ju)return Ai;Ju=1;var r=li();return Ai=r.getPrototypeOf||null,Ai}var Oi,Yu;function kg(){if(Yu)return Oi;Yu=1;var r="Function.prototype.bind called on incompatible ",s=Object.prototype.toString,l=Math.max,i="[object Function]",u=function(g,C){for(var $=[],P=0;P<g.length;P+=1)$[P]=g[P];for(var O=0;O<C.length;O+=1)$[O+g.length]=C[O];return $},c=function(g,C){for(var $=[],P=C,O=0;P<g.length;P+=1,O+=1)$[O]=g[P];return $},d=function(v,g){for(var C="",$=0;$<v.length;$+=1)C+=v[$],$+1<v.length&&(C+=g);return C};return Oi=function(g){var C=this;if(typeof C!="function"||s.apply(C)!==i)throw new TypeError(r+C);for(var $=c(arguments,1),P,O=function(){if(this instanceof P){var J=C.apply(this,u($,arguments));return Object(J)===J?J:this}return C.apply(g,u($,arguments))},F=l(0,C.length-$.length),b=[],V=0;V<F;V++)b[V]="$"+V;if(P=Function("binder","return function ("+d(b,",")+"){ return binder.apply(this,arguments); }")(O),C.prototype){var U=function(){};U.prototype=C.prototype,P.prototype=new U,U.prototype=null}return P},Oi}var Ti,Xu;function Ts(){if(Xu)return Ti;Xu=1;var r=kg();return Ti=Function.prototype.bind||r,Ti}var Ni,Zu;function Ri(){return Zu||(Zu=1,Ni=Function.prototype.call),Ni}var _i,ec;function tc(){return ec||(ec=1,_i=Function.prototype.apply),_i}var Li,nc;function Pg(){return nc||(nc=1,Li=typeof Reflect<"u"&&Reflect&&Reflect.apply),Li}var Fi,rc;function Eg(){if(rc)return Fi;rc=1;var r=Ts(),s=tc(),l=Ri(),i=Pg();return Fi=i||r.call(l,s),Fi}var Ii,sc;function oc(){if(sc)return Ii;sc=1;var r=Ts(),s=Ru(),l=Ri(),i=Eg();return Ii=function(c){if(c.length<1||typeof c[0]!="function")throw new s("a function is required");return i(r,l,c)},Ii}var Di,ic;function $g(){if(ic)return Di;ic=1;var r=oc(),s=Vu(),l;try{l=[].__proto__===Array.prototype}catch(d){if(!d||typeof d!="object"||!("code"in d)||d.code!=="ERR_PROTO_ACCESS")throw d}var i=!!l&&s&&s(Object.prototype,"__proto__"),u=Object,c=u.getPrototypeOf;return Di=i&&typeof i.get=="function"?r([i.get]):typeof c=="function"?function(v){return c(v==null?v:u(v))}:!1,Di}var Mi,lc;function jg(){if(lc)return Mi;lc=1;var r=Gu(),s=Qu(),l=$g();return Mi=r?function(u){return r(u)}:s?function(u){if(!u||typeof u!="object"&&typeof u!="function")throw new TypeError("getProto: not an object");return s(u)}:l?function(u){return l(u)}:null,Mi}var zi,ac;function Ag(){if(ac)return zi;ac=1;var r=Function.prototype.call,s=Object.prototype.hasOwnProperty,l=Ts();return zi=l.call(r,s),zi}var bi,uc;function Og(){if(uc)return bi;uc=1;var r,s=li(),l=ig(),i=lg(),u=ag(),c=ug(),d=cg(),v=Ru(),g=fg(),C=hg(),$=dg(),P=pg(),O=gg(),F=mg(),b=yg(),V=wg(),U=Function,J=function(De){try{return U('"use strict"; return ('+De+").constructor;")()}catch{}},re=Vu(),we=xg(),ge=function(){throw new v},ne=re?(function(){try{return arguments.callee,ge}catch{try{return re(arguments,"callee").get}catch{return ge}}})():ge,me=Cg()(),ie=jg(),fe=Qu(),Ee=Gu(),L=tc(),z=Ri(),Y={},se=typeof Uint8Array>"u"||!ie?r:ie(Uint8Array),de={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":me&&ie?ie([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":Y,"%AsyncGenerator%":Y,"%AsyncGeneratorFunction%":Y,"%AsyncIteratorPrototype%":Y,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":l,"%eval%":eval,"%EvalError%":i,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":U,"%GeneratorFunction%":Y,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":me&&ie?ie(ie([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!me||!ie?r:ie(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":s,"%Object.getOwnPropertyDescriptor%":re,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":u,"%ReferenceError%":c,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!me||!ie?r:ie(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":me&&ie?ie(""[Symbol.iterator]()):r,"%Symbol%":me?Symbol:r,"%SyntaxError%":d,"%ThrowTypeError%":ne,"%TypedArray%":se,"%TypeError%":v,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":g,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":z,"%Function.prototype.apply%":L,"%Object.defineProperty%":we,"%Object.getPrototypeOf%":fe,"%Math.abs%":C,"%Math.floor%":$,"%Math.max%":P,"%Math.min%":O,"%Math.pow%":F,"%Math.round%":b,"%Math.sign%":V,"%Reflect.getPrototypeOf%":Ee};if(ie)try{null.error}catch(De){var Oe=ie(ie(De));de["%Error.prototype%"]=Oe}var Ie=function De(Me){var Be;if(Me==="%AsyncFunction%")Be=J("async function () {}");else if(Me==="%GeneratorFunction%")Be=J("function* () {}");else if(Me==="%AsyncGeneratorFunction%")Be=J("async function* () {}");else if(Me==="%AsyncGenerator%"){var Fe=De("%AsyncGeneratorFunction%");Fe&&(Be=Fe.prototype)}else if(Me==="%AsyncIteratorPrototype%"){var Ge=De("%AsyncGenerator%");Ge&&ie&&(Be=ie(Ge.prototype))}return de[Me]=Be,Be},w={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},T=Ts(),q=Ag(),pe=T.call(z,Array.prototype.concat),B=T.call(L,Array.prototype.splice),Z=T.call(z,String.prototype.replace),W=T.call(z,String.prototype.slice),oe=T.call(z,RegExp.prototype.exec),ae=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Re=/\\(\\)?/g,be=function(Me){var Be=W(Me,0,1),Fe=W(Me,-1);if(Be==="%"&&Fe!=="%")throw new d("invalid intrinsic syntax, expected closing `%`");if(Fe==="%"&&Be!=="%")throw new d("invalid intrinsic syntax, expected opening `%`");var Ge=[];return Z(Me,ae,function(yt,ot,Ze,k){Ge[Ge.length]=Ze?Z(k,Re,"$1"):ot||yt}),Ge},pt=function(Me,Be){var Fe=Me,Ge;if(q(w,Fe)&&(Ge=w[Fe],Fe="%"+Ge[0]+"%"),q(de,Fe)){var yt=de[Fe];if(yt===Y&&(yt=Ie(Fe)),typeof yt>"u"&&!Be)throw new v("intrinsic "+Me+" exists, but is not available. Please file an issue!");return{alias:Ge,name:Fe,value:yt}}throw new d("intrinsic "+Me+" does not exist!")};return bi=function(Me,Be){if(typeof Me!="string"||Me.length===0)throw new v("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Be!="boolean")throw new v('"allowMissing" argument must be a boolean');if(oe(/^%?[^%]*%?$/,Me)===null)throw new d("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Fe=be(Me),Ge=Fe.length>0?Fe[0]:"",yt=pt("%"+Ge+"%",Be),ot=yt.name,Ze=yt.value,k=!1,f=yt.alias;f&&(Ge=f[0],B(Fe,pe([0,1],f)));for(var p=1,m=!0;p<Fe.length;p+=1){var x=Fe[p],E=W(x,0,1),N=W(x,-1);if((E==='"'||E==="'"||E==="`"||N==='"'||N==="'"||N==="`")&&E!==N)throw new d("property names with quotes must have matching quotes");if((x==="constructor"||!m)&&(k=!0),Ge+="."+x,ot="%"+Ge+"%",q(de,ot))Ze=de[ot];else if(Ze!=null){if(!(x in Ze)){if(!Be)throw new v("base intrinsic for "+Me+" exists, but the property is not available.");return}if(re&&p+1>=Fe.length){var I=re(Ze,x);m=!!I,m&&"get"in I&&!("originalValue"in I.get)?Ze=I.get:Ze=Ze[x]}else m=q(Ze,x),Ze=Ze[x];m&&!k&&(de[ot]=Ze)}}return Ze},bi}var Ui,cc;function Tg(){if(cc)return Ui;cc=1;var r=Og(),s=oc(),l=s([r("%String.prototype.indexOf%")]);return Ui=function(u,c){var d=r(u,!!c);return typeof d=="function"&&l(u,".prototype.")>-1?s([d]):d},Ui}var Bi,fc;function Ng(){if(fc)return Bi;fc=1;var r=og(),s=Pu()(),l=Tg(),i=li(),u=l("Array.prototype.push"),c=l("Object.prototype.propertyIsEnumerable"),d=s?i.getOwnPropertySymbols:null;return Bi=function(g,C){if(g==null)throw new TypeError("target must be an object");var $=i(g);if(arguments.length===1)return $;for(var P=1;P<arguments.length;++P){var O=i(arguments[P]),F=r(O),b=s&&(i.getOwnPropertySymbols||d);if(b)for(var V=b(O),U=0;U<V.length;++U){var J=V[U];c(O,J)&&u(F,J)}for(var re=0;re<F.length;++re){var we=F[re];if(c(O,we)){var ge=O[we];$[we]=ge}}}return $},Bi}var qi,hc;function Rg(){if(hc)return qi;hc=1;var r=Ng(),s=function(){if(!Object.assign)return!1;for(var i="abcdefghijklmnopqrst",u=i.split(""),c={},d=0;d<u.length;++d)c[u[d]]=u[d];var v=Object.assign({},c),g="";for(var C in v)g+=C;return i!==g},l=function(){if(!Object.assign||!Object.preventExtensions)return!1;var i=Object.preventExtensions({1:2});try{Object.assign(i,"xy")}catch{return i[1]==="y"}return!1};return qi=function(){return!Object.assign||s()||l()?r:Object.assign},qi}var Vi={},Hi,dc;function _g(){return dc||(dc=1,Hi=function(s){return s&&typeof s=="object"&&typeof s.copy=="function"&&typeof s.fill=="function"&&typeof s.readUInt8=="function"}),Hi}var Ns={exports:{}},pc;function Lg(){return pc||(pc=1,typeof Object.create=="function"?Ns.exports=function(s,l){s.super_=l,s.prototype=Object.create(l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}})}:Ns.exports=function(s,l){s.super_=l;var i=function(){};i.prototype=l.prototype,s.prototype=new i,s.prototype.constructor=s}),Ns.exports}var gc;function Fg(){return gc||(gc=1,(function(r){var s=/%[sdj%]/g;r.format=function(w){if(!we(w)){for(var T=[],q=0;q<arguments.length;q++)T.push(u(arguments[q]));return T.join(" ")}for(var q=1,pe=arguments,B=pe.length,Z=String(w).replace(s,function(oe){if(oe==="%%")return"%";if(q>=B)return oe;switch(oe){case"%s":return String(pe[q++]);case"%d":return Number(pe[q++]);case"%j":try{return JSON.stringify(pe[q++])}catch{return"[Circular]"}default:return oe}}),W=pe[q];q<B;W=pe[++q])U(W)||!ie(W)?Z+=" "+W:Z+=" "+u(W);return Z},r.deprecate=function(w,T){if(ne(xr.process))return function(){return r.deprecate(w,T).apply(this,arguments)};if(process.noDeprecation===!0)return w;var q=!1;function pe(){if(!q){if(process.throwDeprecation)throw new Error(T);process.traceDeprecation?console.trace(T):console.error(T),q=!0}return w.apply(this,arguments)}return pe};var l={},i;r.debuglog=function(w){if(ne(i)&&(i=process.env.NODE_DEBUG||""),w=w.toUpperCase(),!l[w])if(new RegExp("\\b"+w+"\\b","i").test(i)){var T=process.pid;l[w]=function(){var q=r.format.apply(r,arguments);console.error("%s %d: %s",w,T,q)}}else l[w]=function(){};return l[w]};function u(w,T){var q={seen:[],stylize:d};return arguments.length>=3&&(q.depth=arguments[2]),arguments.length>=4&&(q.colors=arguments[3]),V(T)?q.showHidden=T:T&&r._extend(q,T),ne(q.showHidden)&&(q.showHidden=!1),ne(q.depth)&&(q.depth=2),ne(q.colors)&&(q.colors=!1),ne(q.customInspect)&&(q.customInspect=!0),q.colors&&(q.stylize=c),g(q,w,q.depth)}r.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(w,T){var q=u.styles[T];return q?"\x1B["+u.colors[q][0]+"m"+w+"\x1B["+u.colors[q][1]+"m":w}function d(w,T){return w}function v(w){var T={};return w.forEach(function(q,pe){T[q]=!0}),T}function g(w,T,q){if(w.customInspect&&T&&L(T.inspect)&&T.inspect!==r.inspect&&!(T.constructor&&T.constructor.prototype===T)){var pe=T.inspect(q,w);return we(pe)||(pe=g(w,pe,q)),pe}var B=C(w,T);if(B)return B;var Z=Object.keys(T),W=v(Z);if(w.showHidden&&(Z=Object.getOwnPropertyNames(T)),Ee(T)&&(Z.indexOf("message")>=0||Z.indexOf("description")>=0))return $(T);if(Z.length===0){if(L(T)){var oe=T.name?": "+T.name:"";return w.stylize("[Function"+oe+"]","special")}if(me(T))return w.stylize(RegExp.prototype.toString.call(T),"regexp");if(fe(T))return w.stylize(Date.prototype.toString.call(T),"date");if(Ee(T))return $(T)}var ae="",Re=!1,be=["{","}"];if(b(T)&&(Re=!0,be=["[","]"]),L(T)){var pt=T.name?": "+T.name:"";ae=" [Function"+pt+"]"}if(me(T)&&(ae=" "+RegExp.prototype.toString.call(T)),fe(T)&&(ae=" "+Date.prototype.toUTCString.call(T)),Ee(T)&&(ae=" "+$(T)),Z.length===0&&(!Re||T.length==0))return be[0]+ae+be[1];if(q<0)return me(T)?w.stylize(RegExp.prototype.toString.call(T),"regexp"):w.stylize("[Object]","special");w.seen.push(T);var De;return Re?De=P(w,T,q,W,Z):De=Z.map(function(Me){return O(w,T,q,W,Me,Re)}),w.seen.pop(),F(De,ae,be)}function C(w,T){if(ne(T))return w.stylize("undefined","undefined");if(we(T)){var q="'"+JSON.stringify(T).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return w.stylize(q,"string")}if(re(T))return w.stylize(""+T,"number");if(V(T))return w.stylize(""+T,"boolean");if(U(T))return w.stylize("null","null")}function $(w){return"["+Error.prototype.toString.call(w)+"]"}function P(w,T,q,pe,B){for(var Z=[],W=0,oe=T.length;W<oe;++W)Ie(T,String(W))?Z.push(O(w,T,q,pe,String(W),!0)):Z.push("");return B.forEach(function(ae){ae.match(/^\d+$/)||Z.push(O(w,T,q,pe,ae,!0))}),Z}function O(w,T,q,pe,B,Z){var W,oe,ae;if(ae=Object.getOwnPropertyDescriptor(T,B)||{value:T[B]},ae.get?ae.set?oe=w.stylize("[Getter/Setter]","special"):oe=w.stylize("[Getter]","special"):ae.set&&(oe=w.stylize("[Setter]","special")),Ie(pe,B)||(W="["+B+"]"),oe||(w.seen.indexOf(ae.value)<0?(U(q)?oe=g(w,ae.value,null):oe=g(w,ae.value,q-1),oe.indexOf(`
|
|
19
|
-
`)>-1&&(
|
|
20
|
-
`).map(function(
|
|
21
|
-
`).substr(2):
|
|
22
|
-
`+
|
|
23
|
-
`).map(function(
|
|
24
|
-
`))):
|
|
25
|
-
`)>=0,
|
|
26
|
-
`)+" "+
|
|
27
|
-
`)+" "+
|
|
28
|
-
`+
|
|
29
|
-
`,Ie+1);de=de.substring(w+1)}this.stack=de}}},i.inherits(C.AssertionError,Error);function O(L,z){return typeof L=="string"?L.length<z?L:L.slice(0,z):L}function F(L){if(d||!i.isFunction(L))return i.inspect(L);var z=P(L),Y=z?": "+z:"";return"[Function"+Y+"]"}function b(L){return O(F(L.actual),128)+" "+L.operator+" "+O(F(L.expected),128)}function V(L,z,Y,se,de){throw new C.AssertionError({message:Y,actual:L,expected:z,operator:se,stackStartFunction:de})}C.fail=V;function U(L,z){L||V(L,!0,z,"==",C.ok)}C.ok=U,C.equal=function(z,Y,se){z!=Y&&V(z,Y,se,"==",C.equal)},C.notEqual=function(z,Y,se){z==Y&&V(z,Y,se,"!=",C.notEqual)},C.deepEqual=function(z,Y,se){J(z,Y,!1)||V(z,Y,se,"deepEqual",C.deepEqual)},C.deepStrictEqual=function(z,Y,se){J(z,Y,!0)||V(z,Y,se,"deepStrictEqual",C.deepStrictEqual)};function J(L,z,Y,se){if(L===z)return!0;if(l(L)&&l(z))return s(L,z)===0;if(i.isDate(L)&&i.isDate(z))return L.getTime()===z.getTime();if(i.isRegExp(L)&&i.isRegExp(z))return L.source===z.source&&L.global===z.global&&L.multiline===z.multiline&&L.lastIndex===z.lastIndex&&L.ignoreCase===z.ignoreCase;if((L===null||typeof L!="object")&&(z===null||typeof z!="object"))return Y?L===z:L==z;if(g(L)&&g(z)&&v(L)===v(z)&&!(L instanceof Float32Array||L instanceof Float64Array))return s(new Uint8Array(L.buffer),new Uint8Array(z.buffer))===0;if(l(L)!==l(z))return!1;se=se||{actual:[],expected:[]};var de=se.actual.indexOf(L);return de!==-1&&de===se.expected.indexOf(z)?!0:(se.actual.push(L),se.expected.push(z),we(L,z,Y,se))}function re(L){return Object.prototype.toString.call(L)=="[object Arguments]"}function we(L,z,Y,se){if(L==null||z===null||z===void 0)return!1;if(i.isPrimitive(L)||i.isPrimitive(z))return L===z;if(Y&&Object.getPrototypeOf(L)!==Object.getPrototypeOf(z))return!1;var de=re(L),Oe=re(z);if(de&&!Oe||!de&&Oe)return!1;if(de)return L=c.call(L),z=c.call(z),J(L,z,Y);var Ie=Ee(L),w=Ee(z),T,q;if(Ie.length!==w.length)return!1;for(Ie.sort(),w.sort(),q=Ie.length-1;q>=0;q--)if(Ie[q]!==w[q])return!1;for(q=Ie.length-1;q>=0;q--)if(T=Ie[q],!J(L[T],z[T],Y,se))return!1;return!0}C.notDeepEqual=function(z,Y,se){J(z,Y,!1)&&V(z,Y,se,"notDeepEqual",C.notDeepEqual)},C.notDeepStrictEqual=ge;function ge(L,z,Y){J(L,z,!0)&&V(L,z,Y,"notDeepStrictEqual",ge)}C.strictEqual=function(z,Y,se){z!==Y&&V(z,Y,se,"===",C.strictEqual)},C.notStrictEqual=function(z,Y,se){z===Y&&V(z,Y,se,"!==",C.notStrictEqual)};function ne(L,z){if(!L||!z)return!1;if(Object.prototype.toString.call(z)=="[object RegExp]")return z.test(L);try{if(L instanceof z)return!0}catch{}return Error.isPrototypeOf(z)?!1:z.call({},L)===!0}function me(L){var z;try{L()}catch(Y){z=Y}return z}function ie(L,z,Y,se){var de;if(typeof z!="function")throw new TypeError('"block" argument must be a function');typeof Y=="string"&&(se=Y,Y=null),de=me(z),se=(Y&&Y.name?" ("+Y.name+").":".")+(se?" "+se:"."),L&&!de&&V(de,Y,"Missing expected exception"+se);var Oe=typeof se=="string",Ie=!L&&i.isError(de),w=!L&&de&&!Y;if((Ie&&Oe&&ne(de,Y)||w)&&V(de,Y,"Got unwanted exception"+se),L&&de&&Y&&!ne(de,Y)||!L&&de)throw de}C.throws=function(L,z,Y){ie(!0,L,z,Y)},C.doesNotThrow=function(L,z,Y){ie(!1,L,z,Y)},C.ifError=function(L){if(L)throw L};function fe(L,z){L||V(L,!0,z,"==",fe)}C.strict=r(fe,C,{equal:C.strictEqual,deepEqual:C.deepStrictEqual,notEqual:C.notStrictEqual,notDeepEqual:C.notDeepStrictEqual}),C.strict.strict=C.strict;var Ee=Object.keys||function(L){var z=[];for(var Y in L)u.call(L,Y)&&z.push(Y);return z};return ti.exports}var Wi,yc;function Dg(){if(yc)return Wi;yc=1;var r=Ig();return Wi=function(s){var l,i,u,c,d;for(l=Error.prepareStackTrace,Error.prepareStackTrace=function(v,g){return Error.prepareStackTrace=l,g},i=new Error().stack,d=0;d<i.length&&i[d].getFileName()!==__filename;)d++;r(d<i.length,"Unexpected: unable to find caller/index.js in the stack"),s=!s||isNaN(s)?1:s>i.length-2?i.length-2:s,i=i.slice(d+s+1);do c=i.shift(),u=c&&c.getFileName();while(i.length&&u==="module.js");return u},Wi}var vc;function Mg(){if(vc)return Os;vc=1;const r=Gn,s=Gn,l=rg(),i=Dg();return Os.getCallerRoot=function(){try{return l(i(2))}catch{return}},Os.getProcessRoot=function(){let c=process.cwd();const d=s.join(c,"current");try{r.statSync(d).isDirectory()&&(c=d)}catch{}try{return l(c)}catch{return}},Os}var Ki,wc;function zg(){return wc||(wc=1,Ki=Mg()),Ki}var Rs={exports:{}},Gi,Sc;function bg(){if(Sc)return Gi;Sc=1;var r=1e3,s=r*60,l=s*60,i=l*24,u=i*7,c=i*365.25;Gi=function($,P){P=P||{};var O=typeof $;if(O==="string"&&$.length>0)return d($);if(O==="number"&&isFinite($))return P.long?g($):v($);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify($))};function d($){if($=String($),!($.length>100)){var P=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec($);if(P){var O=parseFloat(P[1]),F=(P[2]||"ms").toLowerCase();switch(F){case"years":case"year":case"yrs":case"yr":case"y":return O*c;case"weeks":case"week":case"w":return O*u;case"days":case"day":case"d":return O*i;case"hours":case"hour":case"hrs":case"hr":case"h":return O*l;case"minutes":case"minute":case"mins":case"min":case"m":return O*s;case"seconds":case"second":case"secs":case"sec":case"s":return O*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return O;default:return}}}}function v($){var P=Math.abs($);return P>=i?Math.round($/i)+"d":P>=l?Math.round($/l)+"h":P>=s?Math.round($/s)+"m":P>=r?Math.round($/r)+"s":$+"ms"}function g($){var P=Math.abs($);return P>=i?C($,P,i,"day"):P>=l?C($,P,l,"hour"):P>=s?C($,P,s,"minute"):P>=r?C($,P,r,"second"):$+" ms"}function C($,P,O,F){var b=P>=O*1.5;return Math.round($/O)+" "+F+(b?"s":"")}return Gi}var Ji,xc;function Ug(){if(xc)return Ji;xc=1;function r(s){i.debug=i,i.default=i,i.coerce=C,i.disable=v,i.enable=c,i.enabled=g,i.humanize=bg(),i.destroy=$,Object.keys(s).forEach(P=>{i[P]=s[P]}),i.names=[],i.skips=[],i.formatters={};function l(P){let O=0;for(let F=0;F<P.length;F++)O=(O<<5)-O+P.charCodeAt(F),O|=0;return i.colors[Math.abs(O)%i.colors.length]}i.selectColor=l;function i(P){let O,F=null,b,V;function U(...J){if(!U.enabled)return;const re=U,we=Number(new Date),ge=we-(O||we);re.diff=ge,re.prev=O,re.curr=we,O=we,J[0]=i.coerce(J[0]),typeof J[0]!="string"&&J.unshift("%O");let ne=0;J[0]=J[0].replace(/%([a-zA-Z%])/g,(ie,fe)=>{if(ie==="%%")return"%";ne++;const Ee=i.formatters[fe];if(typeof Ee=="function"){const L=J[ne];ie=Ee.call(re,L),J.splice(ne,1),ne--}return ie}),i.formatArgs.call(re,J),(re.log||i.log).apply(re,J)}return U.namespace=P,U.useColors=i.useColors(),U.color=i.selectColor(P),U.extend=u,U.destroy=i.destroy,Object.defineProperty(U,"enabled",{enumerable:!0,configurable:!1,get:()=>F!==null?F:(b!==i.namespaces&&(b=i.namespaces,V=i.enabled(P)),V),set:J=>{F=J}}),typeof i.init=="function"&&i.init(U),U}function u(P,O){const F=i(this.namespace+(typeof O>"u"?":":O)+P);return F.log=this.log,F}function c(P){i.save(P),i.namespaces=P,i.names=[],i.skips=[];const O=(typeof P=="string"?P:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const F of O)F[0]==="-"?i.skips.push(F.slice(1)):i.names.push(F)}function d(P,O){let F=0,b=0,V=-1,U=0;for(;F<P.length;)if(b<O.length&&(O[b]===P[F]||O[b]==="*"))O[b]==="*"?(V=b,U=F,b++):(F++,b++);else if(V!==-1)b=V+1,U++,F=U;else return!1;for(;b<O.length&&O[b]==="*";)b++;return b===O.length}function v(){const P=[...i.names,...i.skips.map(O=>"-"+O)].join(",");return i.enable(""),P}function g(P){for(const O of i.skips)if(d(P,O))return!1;for(const O of i.names)if(d(P,O))return!0;return!1}function C(P){return P instanceof Error?P.stack||P.message:P}function $(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return i.enable(i.load()),i}return Ji=r,Ji}var Cc;function Bg(){return Cc||(Cc=1,(function(r,s){s.formatArgs=i,s.save=u,s.load=c,s.useColors=l,s.storage=d(),s.destroy=(()=>{let g=!1;return()=>{g||(g=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),s.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function l(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let g;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(g=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(g[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i(g){if(g[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+g[0]+(this.useColors?"%c ":" ")+"+"+r.exports.humanize(this.diff),!this.useColors)return;const C="color: "+this.color;g.splice(1,0,C,"color: inherit");let $=0,P=0;g[0].replace(/%[a-zA-Z%]/g,O=>{O!=="%%"&&($++,O==="%c"&&(P=$))}),g.splice(P,0,C)}s.log=console.debug||console.log||(()=>{});function u(g){try{g?s.storage.setItem("debug",g):s.storage.removeItem("debug")}catch{}}function c(){let g;try{g=s.storage.getItem("debug")||s.storage.getItem("DEBUG")}catch{}return!g&&typeof process<"u"&&"env"in process&&(g=process.env.DEBUG),g}function d(){try{return localStorage}catch{}}r.exports=Ug()(s);const{formatters:v}=r.exports;v.j=function(g){try{return JSON.stringify(g)}catch(C){return"[UnexpectedJSONParseError]: "+C.message}}})(Rs,Rs.exports)),Rs.exports}var kc;function qg(){if(kc)return As.exports;kc=1;const r=zg(),s=Bg();return As.exports=function(i){const u=r.getCallerRoot();let c;try{const d=Nn("/node_modules/.pnpm/@tryghost+debug@2.2.0/node_modules/@tryghost/debug/lib")(u+"/package.json");d.alias?c=d.alias:c=d.name}catch{c="undefined"}return s(c+":"+i)},As.exports._base=s,As.exports}var Qi,Pc;function Vg(){return Pc||(Pc=1,Qi=qg()),Qi}const Hg=[{code:"af",label:"Afrikaans"},{code:"ar",label:"Arabic"},{code:"bg",label:"Bulgarian"},{code:"bn",label:"Bengali"},{code:"bs",label:"Bosnian"},{code:"ca",label:"Catalan"},{code:"cs",label:"Czech"},{code:"da",label:"Danish"},{code:"de",label:"German"},{code:"de-CH",label:"Swiss German"},{code:"el",label:"Greek"},{code:"en",label:"English"},{code:"eo",label:"Esperanto"},{code:"es",label:"Spanish"},{code:"et",label:"Estonian"},{code:"eu",label:"Basque"},{code:"fa",label:"Persian/Farsi"},{code:"fi",label:"Finnish"},{code:"fr",label:"French"},{code:"gd",label:"Gaelic (Scottish)"},{code:"he",label:"Hebrew"},{code:"hi",label:"Hindi"},{code:"hr",label:"Croatian"},{code:"hu",label:"Hungarian"},{code:"id",label:"Indonesian"},{code:"is",label:"Icelandic"},{code:"it",label:"Italian"},{code:"ja",label:"Japanese"},{code:"ko",label:"Korean"},{code:"kz",label:"Kazakh"},{code:"lt",label:"Lithuanian"},{code:"lv",label:"Latvian"},{code:"mk",label:"Macedonian"},{code:"mn",label:"Mongolian"},{code:"ms",label:"Malay"},{code:"nb",label:"Norwegian Bokmål"},{code:"ne",label:"Nepali"},{code:"nl",label:"Dutch"},{code:"nn",label:"Norwegian Nynorsk"},{code:"pa",label:"Punjabi"},{code:"pl",label:"Polish"},{code:"pt",label:"Portuguese"},{code:"pt-BR",label:"Portuguese (Brazil)"},{code:"ro",label:"Romanian"},{code:"ru",label:"Russian"},{code:"si",label:"Sinhala"},{code:"sk",label:"Slovak"},{code:"sl",label:"Slovenian"},{code:"sq",label:"Albanian"},{code:"sr",label:"Serbian"},{code:"sr-Cyrl",label:"Serbian (Cyrillic)"},{code:"sv",label:"Swedish"},{code:"sw",label:"Swahili"},{code:"ta",label:"Tamil"},{code:"th",label:"Thai"},{code:"tr",label:"Turkish"},{code:"uk",label:"Ukrainian"},{code:"ur",label:"Urdu"},{code:"uz",label:"Uzbek"},{code:"vi",label:"Vietnamese"},{code:"zh",label:"Chinese"},{code:"zh-Hant",label:"Traditional Chinese"}];var Ec;function Wg(){if(Ec)return Kn.exports;Ec=1;const r=ng(),s=Gn,l=Gn,i=Vg()("i18n"),u=Hg,c=u.map(g=>g.code);function d(g,C){return g.reduce(($,P)=>{let O;try{O=Nn("/ghost/i18n/lib")(`../locales/${P}/${C}.json`)}catch{O=Nn("/ghost/i18n/lib")(`../locales/en/${C}.json`)}return $[P]={[C]:{...O,...O.default&&typeof O.default=="object"?O.default:{}}},$},{})}function v(g,C){if(!C)return{[g]:{theme:{}}};let $=[];try{$=l.readdirSync(C).filter(F=>F.endsWith(".json")).map(F=>F.replace(".json",""))}catch{$=[g,"en"]}return[...new Set([g,...$,"en"])].reduce((O,F)=>{let b,V=!1;const U=s.join(C,`${F}.json`);if(l.existsSync(U))try{delete require.cache[Nn("/ghost/i18n/lib").resolve(U)],b=Nn("/ghost/i18n/lib")(U)}catch{i(`Error loading theme locale file: ${F}`),V=!0}else V=!0;if(V)if(F!=="en")try{const J=s.join(C,"en.json");l.existsSync(J)?(delete require.cache[Nn("/ghost/i18n/lib").resolve(J)],b=Nn("/ghost/i18n/lib")(J)):b={}}catch{b={}}else i("Theme en.json file not found"),b={};return O[F]={theme:{...b,...b.default&&typeof b.default=="object"?b.default:{}}},O},{})}return Kn.exports=(g="en",C="portal",$={})=>{const P=r.createInstance(),O={prefix:"{",suffix:"}"};(C==="theme"||C==="portal")&&(O.escapeValue=!1);let F;return C!=="theme"?F=d(c,C):(i(`generateThemeResources: ${g}, ${$.themePath}`),F=v(g,$.themePath)),P.init({lng:g,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:{no:["nb","en"],default:["en"]},ns:C,defaultNS:C,interpolation:O,resources:F}),P},Kn.exports.SUPPORTED_LOCALES=c,Kn.exports.LOCALE_DATA=u,Kn.exports.generateResources=d,Kn.exports}var $c;function Kg(){if($c)return Tn.exports;$c=1;const r=Wg();return Tn.exports=r,Tn.exports.default=r,Tn.exports.LOCALE_DATA=r.LOCALE_DATA,Tn.exports.SUPPORTED_LOCALES=r.SUPPORTED_LOCALES,Tn.exports.generateResources=r.generateResources,Tn.exports}var Gg=Kg();const Jg=Ro(Gg);class Qg extends Zt.Component{constructor(s){super(s);const l=this.props.locale||"en",i=Jg(l,"search"),u=i.dir()||"ltr",c=new Wd({adminUrl:s.adminUrl,apiKey:s.apiKey,dir:u});this.state={searchIndex:c,showPopup:!1,indexStarted:!1,indexComplete:!1,t:i.t,dir:u,scrollbarWidth:0},this.inputRef=Zt.createRef()}componentDidMount(){const s=this.getScrollbarWidth();this.setState({scrollbarWidth:s}),this.initSetup()}componentDidUpdate(s,l){if(l.showPopup!==this.state.showPopup)try{this.state.showPopup?(this.bodyScroll=window.document?.body?.style?.overflow,this.bodyMargin=window.getComputedStyle(document.body).getPropertyValue("margin-right"),window.document.body.style.overflow="hidden",this.state.scrollbarWidth&&document.body.scrollHeight>window.innerHeight&&(window.document.body.style.marginRight=`calc(${this.bodyMargin} + ${this.state.scrollbarWidth}px)`)):(window.document.body.style.overflow=this.bodyScroll||"",!this.bodyMargin||this.bodyMargin==="0px"?window.document.body.style.marginRight="":window.document.body.style.marginRight=this.bodyMargin)}catch{}this.state.showPopup!==l?.showPopup&&!this.state.showPopup&&this.setState({searchValue:""}),this.state.showPopup&&!this.state.indexStarted&&this.setupSearchIndex()}async setupSearchIndex(){this.setState({indexStarted:!0}),await this.state.searchIndex.init(),this.setState({indexComplete:!0})}componentWillUnmount(){window.removeEventListener("hashchange",this.hashHandler,!1),window.removeEventListener("keydown",this.handleKeyDown,!1)}initSetup(){this.handleSearchUrl(),this.addKeyboardShortcuts(),this.setupCustomTriggerButton(),this.hashHandler=()=>{this.handleSearchUrl()},window.addEventListener("hashchange",this.hashHandler,!1)}getScrollbarWidth(){const s=document.createElement("div");s.style.visibility="hidden",s.style.overflow="scroll",document.body.appendChild(s);const l=s.offsetWidth-s.clientWidth;return document.body.removeChild(s),l}setupCustomTriggerButton(){this.clickHandler=s=>{s.preventDefault(),this.setState({showPopup:!0});const l=document.createElement("input");l.style.opacity="0",l.style.position="fixed",l.style.top="0",document.body.appendChild(l),l.focus(),setTimeout(()=>{this.inputRef.current.focus(),document.body.removeChild(l)},150)},this.customTriggerButtons=this.getCustomTriggerButtons(),this.customTriggerButtons.forEach(s=>{s.removeEventListener("click",this.clickHandler),s.addEventListener("click",this.clickHandler)})}getCustomTriggerButtons(){return document.querySelectorAll("[data-ghost-search]")||[]}handleSearchUrl(){const[s]=window.location.hash.substr(1).split("?");(s==="/search"||s==="/search/")&&(this.setState({showPopup:!0}),window.history.replaceState("",document.title,window.location.pathname))}addKeyboardShortcuts(){this.getCustomTriggerButtons()?.length&&(this.handleKeyDown=l=>{if(l.key==="k"&&l.metaKey)return this.setState({showPopup:!0}),l.preventDefault(),l.stopPropagation(),!1},document.addEventListener("keydown",this.handleKeyDown))}render(){return te.jsx(ut.Provider,{value:{page:"search",showPopup:this.state.showPopup,adminUrl:this.props.adminUrl,stylesUrl:this.props.stylesUrl,searchIndex:this.state.searchIndex,indexComplete:this.state.indexComplete,searchValue:this.state.searchValue,inputRef:this.inputRef,onAction:()=>{},dispatch:(s,l)=>{s==="update"&&this.setState({...this.state,...l})},t:this.state.t,dir:this.state.dir},children:te.jsx($d,{})})}}const jc="sodo-search-root";function Yg(){const r=document.createElement("div");r.id=jc,document.body.appendChild(r)}function Xg(){const r=document.querySelector("script[data-sodo-search]");if(r){const s=r.dataset.sodoSearch,l=r.dataset.key,i=r.dataset.styles,u=r.dataset.locale||"en";return{adminUrl:s,apiKey:l,stylesUrl:i,locale:u}}return{}}function Zg(){Yg()}function em(){const{adminUrl:r,apiKey:s,stylesUrl:l,locale:i}=Xg(),u=(r||window.location.origin)?.replace(/\/+$/,"");Zg(),ed.render(te.jsx(Zt.StrictMode,{children:te.jsx(Qg,{adminUrl:u,apiKey:s,stylesUrl:l,locale:i})}),document.getElementById(jc))}em()}));
|
|
18
|
+
`,i=this.context.stylesUrl;return i?le.jsxs(le.Fragment,{children:[le.jsx("link",{rel:"stylesheet",href:i}),le.jsx("style",{dangerouslySetInnerHTML:{__html:s}}),le.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]}):le.jsxs(le.Fragment,{children:[le.jsx("style",{dangerouslySetInnerHTML:{__html:s}}),le.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]})}renderFrameContainer(){const s=od(),i={...s.frame.common};return le.jsx("div",{style:s.modalContainer,className:"gh-root-frame",children:le.jsxs(nd,{style:i,title:"portal-popup",head:this.renderFrameStyles(),searchdir:this.context.dir,children:[le.jsx("div",{onClick:l=>this.handlePopupClose(l),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)]"}),le.jsx(id,{})]})})}render(){const{showPopup:s}=this.context;return s?this.renderFrameContainer():null}}var ve;function st(r,s,i){const l=typeof i,a=typeof r;if(l!=="undefined"){if(a!=="undefined"){if(i){if(a==="function"&&l===a)return function(v){return r(i(v))};if(s=r.constructor,s===i.constructor){if(s===Array)return i.concat(r);if(s===Map){var h=new Map(i);for(var p of r)h.set(p[0],p[1]);return h}if(s===Set){p=new Set(i);for(h of r.values())p.add(h);return p}}}return r}return i}return a==="undefined"?s:r}function qn(r,s){return typeof r>"u"?s:r}function Ye(){return Object.create(null)}function Rt(r){return typeof r=="string"}function jr(r){return typeof r=="object"}function Ar(r,s){if(Rt(s))r=r[s];else for(let i=0;r&&i<s.length;i++)r=r[s[i]];return r}const Ed=/[^\p{L}\p{N}]+/u,jd=/(\d{3})/g,Ad=/(\D)(\d{3})/g,Td=/(\d{3})(\D)/g,qa=/[\u0300-\u036f]/g;function Wn(r={}){if(!this||this.constructor!==Wn)return new Wn(...arguments);if(arguments.length)for(r=0;r<arguments.length;r++)this.assign(arguments[r]);else this.assign(r)}ve=Wn.prototype,ve.assign=function(r){this.normalize=st(r.normalize,!0,this.normalize);let s=r.include,i=s||r.exclude||r.split,l;if(i||i===""){if(typeof i=="object"&&i.constructor!==RegExp){let a="";l=!s,s||(a+="\\p{Z}"),i.letter&&(a+="\\p{L}"),i.number&&(a+="\\p{N}",l=!!s),i.symbol&&(a+="\\p{S}"),i.punctuation&&(a+="\\p{P}"),i.control&&(a+="\\p{C}"),(i=i.char)&&(a+=typeof i=="object"?i.join(""):i);try{this.split=new RegExp("["+(s?"^":"")+a+"]+","u")}catch{this.split=/\s+/}}else this.split=i,l=i===!1||"a1a".split(i).length<2;this.numeric=st(r.numeric,l)}else{try{this.split=st(this.split,Ed)}catch{this.split=/\s+/}this.numeric=st(r.numeric,st(this.numeric,!0))}if(this.prepare=st(r.prepare,null,this.prepare),this.finalize=st(r.finalize,null,this.finalize),i=r.filter,this.filter=typeof i=="function"?i:st(i&&new Set(i),null,this.filter),this.dedupe=st(r.dedupe,!0,this.dedupe),this.matcher=st((i=r.matcher)&&new Map(i),null,this.matcher),this.mapper=st((i=r.mapper)&&new Map(i),null,this.mapper),this.stemmer=st((i=r.stemmer)&&new Map(i),null,this.stemmer),this.replacer=st(r.replacer,null,this.replacer),this.minlength=st(r.minlength,1,this.minlength),this.maxlength=st(r.maxlength,1024,this.maxlength),this.rtl=st(r.rtl,!1,this.rtl),(this.cache=i=st(r.cache,!0,this.cache))&&(this.F=null,this.L=typeof i=="number"?i:2e5,this.B=new Map,this.D=new Map,this.I=this.H=128),this.h="",this.J=null,this.A="",this.K=null,this.matcher)for(const a of this.matcher.keys())this.h+=(this.h?"|":"")+a;if(this.stemmer)for(const a of this.stemmer.keys())this.A+=(this.A?"|":"")+a;return this},ve.addStemmer=function(r,s){return this.stemmer||(this.stemmer=new Map),this.stemmer.set(r,s),this.A+=(this.A?"|":"")+r,this.K=null,this.cache&&En(this),this},ve.addFilter=function(r){return typeof r=="function"?this.filter=r:(this.filter||(this.filter=new Set),this.filter.add(r)),this.cache&&En(this),this},ve.addMapper=function(r,s){return typeof r=="object"?this.addReplacer(r,s):r.length>1?this.addMatcher(r,s):(this.mapper||(this.mapper=new Map),this.mapper.set(r,s),this.cache&&En(this),this)},ve.addMatcher=function(r,s){return typeof r=="object"?this.addReplacer(r,s):r.length<2&&(this.dedupe||this.mapper)?this.addMapper(r,s):(this.matcher||(this.matcher=new Map),this.matcher.set(r,s),this.h+=(this.h?"|":"")+r,this.J=null,this.cache&&En(this),this)},ve.addReplacer=function(r,s){return typeof r=="string"?this.addMatcher(r,s):(this.replacer||(this.replacer=[]),this.replacer.push(r,s),this.cache&&En(this),this)},ve.encode=function(r,s){if(this.cache&&r.length<=this.H)if(this.F){if(this.B.has(r))return this.B.get(r)}else this.F=setTimeout(En,50,this);this.normalize&&(typeof this.normalize=="function"?r=this.normalize(r):r=qa?r.normalize("NFKD").replace(qa,"").toLowerCase():r.toLowerCase()),this.prepare&&(r=this.prepare(r)),this.numeric&&r.length>3&&(r=r.replace(Ad,"$1 $2").replace(Td,"$1 $2").replace(jd,"$1 "));const i=!(this.dedupe||this.mapper||this.filter||this.matcher||this.stemmer||this.replacer);let l=[],a=Ye(),h,p,v=this.split||this.split===""?r.split(this.split):[r];for(let w=0,k,$;w<v.length;w++)if((k=$=v[w])&&!(k.length<this.minlength||k.length>this.maxlength)){if(s){if(a[k])continue;a[k]=1}else{if(h===k)continue;h=k}if(i)l.push(k);else if(!this.filter||(typeof this.filter=="function"?this.filter(k):!this.filter.has(k))){if(this.cache&&k.length<=this.I)if(this.F){var g=this.D.get(k);if(g||g===""){g&&l.push(g);continue}}else this.F=setTimeout(En,50,this);if(this.stemmer){this.K||(this.K=new RegExp("(?!^)("+this.A+")$"));let j;for(;j!==k&&k.length>2;)j=k,k=k.replace(this.K,A=>this.stemmer.get(A))}if(k&&(this.mapper||this.dedupe&&k.length>1)){g="";for(let j=0,A="",z,_;j<k.length;j++)z=k.charAt(j),z===A&&this.dedupe||((_=this.mapper&&this.mapper.get(z))||_===""?_===A&&this.dedupe||!(A=_)||(g+=_):g+=A=z);k=g}if(this.matcher&&k.length>1&&(this.J||(this.J=new RegExp("("+this.h+")","g")),k=k.replace(this.J,j=>this.matcher.get(j))),k&&this.replacer)for(g=0;k&&g<this.replacer.length;g+=2)k=k.replace(this.replacer[g],this.replacer[g+1]);if(this.cache&&$.length<=this.I&&(this.D.set($,k),this.D.size>this.L&&(this.D.clear(),this.I=this.I/1.1|0)),k){if(k!==$)if(s){if(a[k])continue;a[k]=1}else{if(p===k)continue;p=k}l.push(k)}}}return this.finalize&&(l=this.finalize(l)||l),this.cache&&r.length<=this.H&&(this.B.set(r,l),this.B.size>this.L&&(this.B.clear(),this.H=this.H/1.1|0)),l};function En(r){r.F=null,r.B.clear(),r.D.clear()}function Wo(r,s,i){i||(s||typeof r!="object"?typeof s=="object"&&(i=s,s=0):i=r),i&&(r=i.query||r,s=i.limit||s);let l=""+(s||0);i&&(l+=(i.offset||0)+!!i.context+!!i.suggest+(i.resolve!==!1)+(i.resolution||this.resolution)+(i.boost||0)),r=(""+r).toLowerCase(),this.cache||(this.cache=new jn);let a=this.cache.get(r+l);if(!a){const h=i&&i.cache;h&&(i.cache=!1),a=this.search(r,s,i),h&&(i.cache=h),this.cache.set(r+l,a)}return a}function jn(r){this.limit=r&&r!==!0?r:1e3,this.cache=new Map,this.h=""}jn.prototype.set=function(r,s){this.cache.set(this.h=r,s),this.cache.size>this.limit&&this.cache.delete(this.cache.keys().next().value)},jn.prototype.get=function(r){const s=this.cache.get(r);return s&&this.h!==r&&(this.cache.delete(r),this.cache.set(this.h=r,s)),s},jn.prototype.remove=function(r){for(const s of this.cache){const i=s[0];s[1].includes(r)&&this.cache.delete(i)}},jn.prototype.clear=function(){this.cache.clear(),this.h=""};const Wa={normalize:!1,numeric:!1,dedupe:!1},Ss={},Ko=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"]]),Ka=new Map([["ae","a"],["oe","o"],["sh","s"],["kh","k"],["th","t"],["ph","f"],["pf","f"]]),Ga=[/([^aeo])h(.)/g,"$1$2",/([aeo])h([^aeo]|$)/g,"$1$2",/(.)\1+/g,"$1"],Qa={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 Go={Exact:Wa,Default:Ss,Normalize:Ss,LatinBalance:{mapper:Ko},LatinAdvanced:{mapper:Ko,matcher:Ka,replacer:Ga},LatinExtra:{mapper:Ko,replacer:Ga.concat([/(?!^)[aeo]/g,""]),matcher:Ka},LatinSoundex:{dedupe:!1,include:{letter:!0},finalize:function(r){for(let i=0;i<r.length;i++){var s=r[i];let l=s.charAt(0),a=Qa[l];for(let h=1,p;h<s.length&&(p=s.charAt(h),p==="h"||p==="w"||!(p=Qa[p])||p===a||(l+=p,a=p,l.length!==4));h++);r[i]=l}}},CJK:{split:""},LatinExact:Wa,LatinDefault:Ss,LatinSimple:Ss};function Ja(r,s,i,l){let a=[];for(let h=0,p;h<r.index.length;h++)if(p=r.index[h],s>=p.length)s-=p.length;else{s=p[l?"splice":"slice"](s,i);const v=s.length;if(v&&(a=a.length?a.concat(s):s,i-=v,l&&(r.length-=v),!i))break;s=0}return a}function Kn(r){if(!this||this.constructor!==Kn)return new Kn(r);this.index=r?[r]:[],this.length=r?r.length:0;const s=this;return new Proxy([],{get(i,l){if(l==="length")return s.length;if(l==="push")return function(a){s.index[s.index.length-1].push(a),s.length++};if(l==="pop")return function(){if(s.length)return s.length--,s.index[s.index.length-1].pop()};if(l==="indexOf")return function(a){let h=0;for(let p=0,v,g;p<s.index.length;p++){if(v=s.index[p],g=v.indexOf(a),g>=0)return h+g;h+=v.length}return-1};if(l==="includes")return function(a){for(let h=0;h<s.index.length;h++)if(s.index[h].includes(a))return!0;return!1};if(l==="slice")return function(a,h){return Ja(s,a||0,h||s.length,!1)};if(l==="splice")return function(a,h){return Ja(s,a||0,h||s.length,!0)};if(l==="constructor")return Array;if(typeof l!="symbol")return(i=s.index[l/2**31|0])&&i[l]},set(i,l,a){return i=l/2**31|0,(s.index[i]||(s.index[i]=[]))[l]=a,s.length++,!0}})}Kn.prototype.clear=function(){this.index.length=0},Kn.prototype.push=function(){};function _t(r=8){if(!this||this.constructor!==_t)return new _t(r);this.index=Ye(),this.h=[],this.size=0,r>32?(this.B=Xa,this.A=BigInt(r)):(this.B=Ya,this.A=r)}_t.prototype.get=function(r){const s=this.index[this.B(r)];return s&&s.get(r)},_t.prototype.set=function(r,s){var i=this.B(r);let l=this.index[i];l?(i=l.size,l.set(r,s),(i-=l.size)&&this.size++):(this.index[i]=l=new Map([[r,s]]),this.h.push(l),this.size++)};function Lt(r=8){if(!this||this.constructor!==Lt)return new Lt(r);this.index=Ye(),this.h=[],this.size=0,r>32?(this.B=Xa,this.A=BigInt(r)):(this.B=Ya,this.A=r)}Lt.prototype.add=function(r){var s=this.B(r);let i=this.index[s];i?(s=i.size,i.add(r),(s-=i.size)&&this.size++):(this.index[s]=i=new Set([r]),this.h.push(i),this.size++)},ve=_t.prototype,ve.has=Lt.prototype.has=function(r){const s=this.index[this.B(r)];return s&&s.has(r)},ve.delete=Lt.prototype.delete=function(r){const s=this.index[this.B(r)];s&&s.delete(r)&&this.size--},ve.clear=Lt.prototype.clear=function(){this.index=Ye(),this.h=[],this.size=0},ve.values=Lt.prototype.values=function*(){for(let r=0;r<this.h.length;r++)for(let s of this.h[r].values())yield s},ve.keys=Lt.prototype.keys=function*(){for(let r=0;r<this.h.length;r++)for(let s of this.h[r].keys())yield s},ve.entries=Lt.prototype.entries=function*(){for(let r=0;r<this.h.length;r++)for(let s of this.h[r].entries())yield s};function Ya(r){let s=2**this.A-1;if(typeof r=="number")return r&s;let i=0,l=this.A+1;for(let a=0;a<r.length;a++)i=(i*l^r.charCodeAt(a))&s;return this.A===32?i+2**31:i}function Xa(r){let s=BigInt(2)**this.A-BigInt(1);var i=typeof r;if(i==="bigint")return r&s;if(i==="number")return BigInt(r)&s;i=BigInt(0);let l=this.A+BigInt(1);for(let a=0;a<r.length;a++)i=(i*l^BigInt(r.charCodeAt(a)))&s;return i}let Gn,Tr;async function Od(r){r=r.data;var s=r.task;const i=r.id;let l=r.args;if(s==="init")Tr=r.options||{},(s=r.factory)?(Function("return "+s)()(self),Gn=new self.FlexSearch.Index(Tr),delete self.FlexSearch):Gn=new Mt(Tr),postMessage({id:i});else{let a;s==="export"&&(l[1]?(l[0]=Tr.export,l[2]=0,l[3]=1):l=null),s==="import"?l[0]&&(r=await Tr.import.call(Gn,l[0]),Gn.import(l[0],r)):((a=l&&Gn[s].apply(Gn,l))&&a.then&&(a=await a),a&&a.await&&(a=await a.await),s==="search"&&a.result&&(a=a.result)),postMessage(s==="search"?{id:i,msg:a}:{id:i})}}function Qo(r){Qn.call(r,"add"),Qn.call(r,"append"),Qn.call(r,"search"),Qn.call(r,"update"),Qn.call(r,"remove"),Qn.call(r,"searchCache")}let Jo,Za,xs;function Nd(){Jo=xs=0}function Qn(r){this[r+"Async"]=function(){const s=arguments;var i=s[s.length-1];let l;if(typeof i=="function"&&(l=i,delete s[s.length-1]),Jo?xs||(xs=Date.now()-Za>=this.priority*this.priority*3):(Jo=setTimeout(Nd,0),Za=Date.now()),xs){const h=this;return new Promise(p=>{setTimeout(function(){p(h[r+"Async"].apply(h,s))},0)})}const a=this[r].apply(this,s);return i=a.then?a:new Promise(h=>h(a)),l&&i.then(l),i}}let tn=0;function Jn(r={},s){function i(v){function g(w){w=w.data||w;const k=w.id,$=k&&h.h[k];$&&($(w.msg),delete h.h[k])}if(this.worker=v,this.h=Ye(),this.worker)return a?this.worker.on("message",g):this.worker.onmessage=g,r.config?new Promise(function(w){tn>1e9&&(tn=0),h.h[++tn]=function(){w(h)},h.worker.postMessage({id:tn,task:"init",factory:l,options:r})}):(this.priority=r.priority||4,this.encoder=s||null,this.worker.postMessage({task:"init",factory:l,options:r}),this)}if(!this||this.constructor!==Jn)return new Jn(r);let l=typeof self<"u"?self._factory:typeof window<"u"?window._factory:null;l&&(l=l.toString());const a=typeof window>"u",h=this,p=Rd(l,a,r.worker);return p.then?p.then(function(v){return i.call(h,v)}):i.call(this,p)}nn("add"),nn("append"),nn("search"),nn("update"),nn("remove"),nn("clear"),nn("export"),nn("import"),Jn.prototype.searchCache=Wo,Qo(Jn.prototype);function nn(r){Jn.prototype[r]=function(){const s=this,i=[].slice.call(arguments);var l=i[i.length-1];let a;return typeof l=="function"&&(a=l,i.pop()),l=new Promise(function(h){r==="export"&&typeof i[0]=="function"&&(i[0]=null),tn>1e9&&(tn=0),s.h[++tn]=h,s.worker.postMessage({task:r,id:tn,args:i})}),a?(l.then(a),this):l}}function Rd(r,s,i){return s?typeof module<"u"?new(require("worker_threads")).Worker(__dirname+"/worker/node.js"):Promise.resolve().then(()=>mu).then(function(l){return new l.Worker("undefined/node/node.mjs")}):r?new window.Worker(URL.createObjectURL(new Blob(["onmessage="+Od.toString()],{type:"text/javascript"}))):new window.Worker(typeof i=="string"?i:(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:bo&&bo.tagName.toUpperCase()==="SCRIPT"&&bo.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").replace("flexsearch.bundle.module.min.mjs","module/worker/worker.js"),{type:"module"})}An.prototype.add=function(r,s,i){if(jr(r)&&(s=r,r=Ar(s,this.key)),s&&(r||r===0)){if(!i&&this.reg.has(r))return this.update(r,s);for(let v=0,g;v<this.field.length;v++){g=this.B[v];var l=this.index.get(this.field[v]);if(typeof g=="function"){var a=g(s);a&&l.add(r,a,i,!0)}else a=g.G,(!a||a(s))&&(g.constructor===String?g=[""+g]:Rt(g)&&(g=[g]),Xo(s,g,this.D,0,l,r,g[0],i))}if(this.tag)for(l=0;l<this.A.length;l++){var h=this.A[l];a=this.tag.get(this.F[l]);let v=Ye();if(typeof h=="function"){if(h=h(s),!h)continue}else{var p=h.G;if(p&&!p(s))continue;h.constructor===String&&(h=""+h),h=Ar(s,h)}if(a&&h){Rt(h)&&(h=[h]);for(let g=0,w,k;g<h.length;g++)if(w=h[g],!v[w]&&(v[w]=1,(p=a.get(w))?k=p:a.set(w,k=[]),!i||!k.includes(r))){if(k.length===2**31-1){if(p=new Kn(k),this.fastupdate)for(let $ of this.reg.values())$.includes(k)&&($[$.indexOf(k)]=p);a.set(w,k=p)}k.push(r),this.fastupdate&&((p=this.reg.get(r))?p.push(k):this.reg.set(r,[k]))}}}if(this.store&&(!i||!this.store.has(r))){let v;if(this.h){v=Ye();for(let g=0,w;g<this.h.length;g++){if(w=this.h[g],(i=w.G)&&!i(s))continue;let k;if(typeof w=="function"){if(k=w(s),!k)continue;w=[w.O]}else if(Rt(w)||w.constructor===String){v[w]=s[w];continue}Yo(s,v,w,0,w[0],k)}}this.store.set(r,v||s)}this.worker&&(this.fastupdate||this.reg.add(r))}return this};function Yo(r,s,i,l,a,h){if(r=r[a],l===i.length-1)s[a]=h||r;else if(r)if(r.constructor===Array)for(s=s[a]=Array(r.length),a=0;a<r.length;a++)Yo(r,s,i,l,a);else s=s[a]||(s[a]=Ye()),a=i[++l],Yo(r,s,i,l,a)}function Xo(r,s,i,l,a,h,p,v){if(r=r[p])if(l===s.length-1){if(r.constructor===Array){if(i[l]){for(s=0;s<r.length;s++)a.add(h,r[s],!0,!0);return}r=r.join(" ")}a.add(h,r,v,!0)}else if(r.constructor===Array)for(p=0;p<r.length;p++)Xo(r,s,i,l,a,h,p,v);else p=s[++l],Xo(r,s,i,l,a,h,p,v)}function Zo(r,s,i,l){if(!r.length)return r;if(r.length===1)return r=r[0],r=i||r.length>s?r.slice(i,i+s):r,l?Yn.call(this,r):r;let a=[];for(let h=0,p,v;h<r.length;h++)if((p=r[h])&&(v=p.length)){if(i){if(i>=v){i-=v;continue}p=p.slice(i,i+s),v=p.length,i=0}if(v>s&&(p=p.slice(0,s),v=s),!a.length&&v>=s)return l?Yn.call(this,p):p;if(a.push(p),s-=v,!s)break}return a=a.length>1?[].concat.apply([],a):a[0],l?Yn.call(this,a):a}function Cs(r,s,i,l){var a=l[0];if(a[0]&&a[0].query)return r[s].apply(r,a);if(!(s!=="and"&&s!=="not"||r.result.length||r.await||a.suggest))return l.length>1&&(a=l[l.length-1]),(l=a.resolve)?r.await||r.result:r;let h=[],p=0,v=0,g,w,k,$,j;for(s=0;s<l.length;s++)if(a=l[s]){var A=void 0;if(a.constructor===He)A=a.await||a.result;else if(a.then||a.constructor===Array)A=a;else{p=a.limit||0,v=a.offset||0,k=a.suggest,w=a.resolve,g=(($=a.highlight||r.highlight)||a.enrich)&&w,A=a.queue;let z=a.async||A,_=a.index,R=a.query;if(_?r.index||(r.index=_):_=r.index,R||a.tag){const q=a.field||a.pluck;if(q&&(!R||r.query&&!$||(r.query=R,r.field=q,r.highlight=$),_=_.index.get(q)),A&&(j||r.await)){j=1;let Q;const ue=r.C.length,pe=new Promise(function(ce){Q=ce});(function(ce,ae){pe.h=function(){ae.index=null,ae.resolve=!1;let ne=z?ce.searchAsync(ae):ce.search(ae);return ne.then?ne.then(function(re){return r.C[ue]=re=re.result||re,Q(re),re}):(ne=ne.result||ne,Q(ne),ne)}})(_,Object.assign({},a)),r.C.push(pe),h[s]=pe;continue}else a.resolve=!1,a.index=null,A=z?_.searchAsync(a):_.search(a),a.resolve=w,a.index=_}else if(a.and)A=ks(a,"and",_);else if(a.or)A=ks(a,"or",_);else if(a.not)A=ks(a,"not",_);else if(a.xor)A=ks(a,"xor",_);else continue}A.await?(j=1,A=A.await):A.then?(j=1,A=A.then(function(z){return z.result||z})):A=A.result||A,h[s]=A}if(j&&!r.await&&(r.await=new Promise(function(z){r.return=z})),j){const z=Promise.all(h).then(function(_){for(let R=0;R<r.C.length;R++)if(r.C[R]===z){r.C[R]=function(){return i.call(r,_,p,v,g,w,k,$)};break}ei(r)});r.C.push(z)}else if(r.await)r.C.push(function(){return i.call(r,h,p,v,g,w,k,$)});else return i.call(r,h,p,v,g,w,k,$);return w?r.await||r.result:r}function ks(r,s,i){r=r[s];const l=r[0]||r;return l.index||(l.index=i),i=new He(l),r.length>1&&(i=i[s].apply(i,r.slice(1))),i}He.prototype.or=function(){return Cs(this,"or",_d,arguments)};function _d(r,s,i,l,a,h,p){return r.length&&(this.result.length&&r.push(this.result),r.length<2?this.result=r[0]:(this.result=eu(r,s,i,!1,this.h),i=0)),a&&(this.await=null),a?this.resolve(s,i,l,p):this}He.prototype.and=function(){return Cs(this,"and",Ld,arguments)};function Ld(r,s,i,l,a,h,p){if(!h&&!this.result.length)return a?this.result:this;let v;if(r.length)if(this.result.length&&r.unshift(this.result),r.length<2)this.result=r[0];else{let g=0;for(let w=0,k,$;w<r.length;w++)if((k=r[w])&&($=k.length))g<$&&(g=$);else if(!h){g=0;break}g?(this.result=$s(r,g,s,i,h,this.h,a),v=!0):this.result=[]}else h||(this.result=r);return a&&(this.await=null),a?this.resolve(s,i,l,p,v):this}He.prototype.xor=function(){return Cs(this,"xor",bd,arguments)};function bd(r,s,i,l,a,h,p){if(r.length)if(this.result.length&&r.unshift(this.result),r.length<2)this.result=r[0];else{e:{h=i;var v=this.h;const g=[],w=Ye();let k=0;for(let $=0,j;$<r.length;$++)if(j=r[$]){k<j.length&&(k=j.length);for(let A=0,z;A<j.length;A++)if(z=j[A])for(let _=0,R;_<z.length;_++)R=z[_],w[R]=w[R]?2:1}for(let $=0,j,A=0;$<k;$++)for(let z=0,_;z<r.length;z++)if((_=r[z])&&(j=_[$])){for(let R=0,q;R<j.length;R++)if(q=j[R],w[q]===1)if(h)h--;else if(a){if(g.push(q),g.length===s){r=g;break e}}else{const Q=$+(z?v:0);if(g[Q]||(g[Q]=[]),g[Q].push(q),++A===s){r=g;break e}}}r=g}this.result=r,v=!0}else h||(this.result=r);return a&&(this.await=null),a?this.resolve(s,i,l,p,v):this}He.prototype.not=function(){return Cs(this,"not",Id,arguments)};function Id(r,s,i,l,a,h,p){if(!h&&!this.result.length)return a?this.result:this;if(r.length&&this.result.length){e:{h=i;var v=[];r=new Set(r.flat().flat());for(let g=0,w,k=0;g<this.result.length;g++)if(w=this.result[g]){for(let $=0,j;$<w.length;$++)if(j=w[$],!r.has(j)){if(h)h--;else if(a){if(v.push(j),v.length===s){r=v;break e}}else if(v[g]||(v[g]=[]),v[g].push(j),++k===s){r=v;break e}}}r=v}this.result=r,v=!0}return a&&(this.await=null),a?this.resolve(s,i,l,p,v):this}function Ps(r,s,i,l,a){let h,p,v;typeof a=="string"?(h=a,a=""):h=a.template,p=h.indexOf("$1"),v=h.substring(p+2),p=h.substring(0,p);let g=a&&a.boundary,w=!a||a.clip!==!1,k=a&&a.merge&&v&&p&&new RegExp(v+" "+p,"g");a=a&&a.ellipsis;var $=0;if(typeof a=="object"){var j=a.template;$=j.length-2,a=a.pattern}typeof a!="string"&&(a=a===!1?"":"..."),$&&(a=j.replace("$1",a)),j=a.length-$;let A,z;typeof g=="object"&&(A=g.before,A===0&&(A=-1),z=g.after,z===0&&(z=-1),g=g.total||9e5),$=new Map;for(let S=0,O,W,ge;S<s.length;S++){let V;if(l)V=s,ge=l;else{var _=s[S];if(ge=_.field,!ge)continue;V=_.result}W=i.get(ge),O=W.encoder,_=$.get(O),typeof _!="string"&&(_=O.encode(r),$.set(O,_));for(let ee=0;ee<V.length;ee++){var R=V[ee].doc;if(!R||(R=Ar(R,ge),!R))continue;var q=R.trim().split(/\s+/);if(!q.length)continue;R="";var Q=[];let G=[];for(var ue=-1,pe=-1,ce=0,ae=0;ae<q.length;ae++){var ne=q[ae],re=O.encode(ne);re=re.length>1?re.join(" "):re[0];let H;if(re&&ne){for(var fe=ne.length,b=(O.split?ne.replace(O.split,""):ne).length-re.length,M="",K=0,se=0;se<_.length;se++){var he=_[se];if(he){var Se=he.length;Se+=b<0?0:b,K&&Se<=K||(he=re.indexOf(he),he>-1&&(M=(he?ne.substring(0,he):"")+p+ne.substring(he,he+Se)+v+(he+Se<fe?ne.substring(he+Se):""),K=Se,H=!0))}}M&&(g&&(ue<0&&(ue=R.length+(R?1:0)),pe=R.length+(R?1:0)+M.length,ce+=fe,G.push(Q.length),Q.push({match:M})),R+=(R?" ":"")+M)}if(!H)ne=q[ae],R+=(R?" ":"")+ne,g&&Q.push({text:ne});else if(g&&ce>=g)break}if(ce=G.length*(h.length-2),A||z||g&&R.length-ce>g)if(ce=g+ce-j*2,ae=pe-ue,A>0&&(ae+=A),z>0&&(ae+=z),ae<=ce)q=A?ue-(A>0?A:0):ue-((ce-ae)/2|0),Q=z?pe+(z>0?z:0):q+ce,w||(q>0&&R.charAt(q)!==" "&&R.charAt(q-1)!==" "&&(q=R.indexOf(" ",q),q<0&&(q=0)),Q<R.length&&R.charAt(Q-1)!==" "&&R.charAt(Q)!==" "&&(Q=R.lastIndexOf(" ",Q),Q<pe?Q=pe:++Q)),R=(q?a:"")+R.substring(q,Q)+(Q<R.length?a:"");else{for(pe=[],ue={},ce={},ae={},ne={},re={},M=b=fe=0,se=K=1;;){var Te=void 0;for(let H=0,ie;H<G.length;H++){if(ie=G[H],M)if(b!==M){if(ae[H+1])continue;if(ie+=M,ue[ie]){fe-=j,ce[H+1]=1,ae[H+1]=1;continue}if(ie>=Q.length-1){if(ie>=Q.length){ae[H+1]=1,ie>=q.length&&(ce[H+1]=1);continue}fe-=j}if(R=Q[ie].text,Se=z&&re[H])if(Se>0){if(R.length>Se)if(ae[H+1]=1,w)R=R.substring(0,Se);else continue;(Se-=R.length)||(Se=-1),re[H]=Se}else{ae[H+1]=1;continue}if(fe+R.length+1<=g)R=" "+R,pe[H]+=R;else if(w)Te=g-fe-1,Te>0&&(R=" "+R.substring(0,Te),pe[H]+=R),ae[H+1]=1;else{ae[H+1]=1;continue}}else{if(ae[H])continue;if(ie-=b,ue[ie]){fe-=j,ae[H]=1,ce[H]=1;continue}if(ie<=0){if(ie<0){ae[H]=1,ce[H]=1;continue}fe-=j}if(R=Q[ie].text,Se=A&&ne[H])if(Se>0){if(R.length>Se)if(ae[H]=1,w)R=R.substring(R.length-Se);else continue;(Se-=R.length)||(Se=-1),ne[H]=Se}else{ae[H]=1;continue}if(fe+R.length+1<=g)R+=" ",pe[H]=R+pe[H];else if(w)Te=R.length+1-(g-fe),Te>=0&&Te<R.length&&(R=R.substring(Te)+" ",pe[H]=R+pe[H]),ae[H]=1;else{ae[H]=1;continue}}else{R=Q[ie].match,A&&(ne[H]=A),z&&(re[H]=z),H&&fe++;let Ne;if(ie?!H&&j&&(fe+=j):(ce[H]=1,ae[H]=1),ie>=q.length-1||ie<Q.length-1&&Q[ie+1].match?Ne=1:j&&(fe+=j),fe-=h.length-2,!H||fe+R.length<=g)pe[H]=R;else{Te=K=se=ce[H]=0;break}Ne&&(ce[H+1]=1,ae[H+1]=1)}fe+=R.length,Te=ue[ie]=1}if(Te)b===M?M++:b++;else{if(b===M?K=0:se=0,!K&&!se)break;K?(b++,M=b):M++}}R="";for(let H=0,ie;H<pe.length;H++)ie=(ce[H]?H?" ":"":(H&&!a?" ":"")+a)+pe[H],R+=ie;a&&!ce[pe.length]&&(R+=a)}k&&(R=R.replace(k," ")),V[ee].highlight=R}if(l)break}return s}function He(r,s){if(!this||this.constructor!==He)return new He(r,s);let i=0,l,a,h,p,v,g;if(r&&r.index){const w=r;if(s=w.index,i=w.boost||0,a=w.query){h=w.field||w.pluck,p=w.highlight;const k=w.resolve;r=w.async||w.queue,w.resolve=!1,w.index=null,r=r?s.searchAsync(w):s.search(w),w.resolve=k,w.index=s,r=r.result||r}else r=[]}if(r&&r.then){const w=this;r=r.then(function(k){w.C[0]=w.result=k.result||k,ei(w)}),l=[r],r=[],v=new Promise(function(k){g=k})}this.index=s||null,this.result=r||[],this.h=i,this.C=l||[],this.await=v||null,this.return=g||null,this.highlight=p||null,this.query=a||"",this.field=h||""}ve=He.prototype,ve.limit=function(r){if(this.await){const s=this;this.C.push(function(){return s.limit(r).result})}else if(this.result.length){const s=[];for(let i=0,l;i<this.result.length;i++)if(l=this.result[i])if(l.length<=r){if(s[i]=l,r-=l.length,!r)break}else{s[i]=l.slice(0,r);break}this.result=s}return this},ve.offset=function(r){if(this.await){const s=this;this.C.push(function(){return s.offset(r).result})}else if(this.result.length){const s=[];for(let i=0,l;i<this.result.length;i++)(l=this.result[i])&&(l.length<=r?r-=l.length:(s[i]=l.slice(r),r=0));this.result=s}return this},ve.boost=function(r){if(this.await){const s=this;this.C.push(function(){return s.boost(r).result})}else this.h+=r;return this};function ei(r,s){let i=r.result;var l=r.await;r.await=null;for(let a=0,h;a<r.C.length;a++)if(h=r.C[a]){if(typeof h=="function")i=h(),r.C[a]=i=i.result||i,a--;else if(h.h)i=h.h(),r.C[a]=i=i.result||i,a--;else if(h.then)return r.await=l}return l=r.return,r.C=[],r.return=null,s||l(i),i}ve.resolve=function(r,s,i,l,a){let h=this.await?ei(this,!0):this.result;if(h.then){const p=this;return h.then(function(){return p.resolve(r,s,i,l,a)})}return h.length&&(typeof r=="object"?(l=r.highlight||this.highlight,i=!!l||r.enrich,s=r.offset,r=r.limit):(l=l||this.highlight,i=!!l||i),h=a?i?Yn.call(this.index,h):h:Zo.call(this.index,h,r||100,s,i)),this.finalize(h,l)},ve.finalize=function(r,s){if(r.then){const l=this;return r.then(function(a){return l.finalize(a,s)})}s&&r.length&&this.query&&(r=Ps(this.query,r,this.index.index,this.field,s));const i=this.return;return this.highlight=this.index=this.result=this.C=this.await=this.return=null,this.query=this.field="",i&&i(r),r};function $s(r,s,i,l,a,h,p){const v=r.length;let g=[],w,k;w=Ye();for(let $=0,j,A,z,_;$<s;$++)for(let R=0;R<v;R++)if(z=r[R],$<z.length&&(j=z[$]))for(let q=0;q<j.length;q++){if(A=j[q],(k=w[A])?w[A]++:(k=0,w[A]=1),_=g[k]||(g[k]=[]),!p){let Q=$+(R||!a?0:h||0);_=_[Q]||(_[Q]=[])}if(_.push(A),p&&i&&k===v-1&&_.length-l===i)return l?_.slice(l):_}if(r=g.length)if(a)g=g.length>1?eu(g,i,l,p,h):(g=g[0])&&i&&g.length>i||l?g.slice(l,i+l):g;else{if(r<v)return[];if(g=g[r-1],i||l)if(p)(g.length>i||l)&&(g=g.slice(l,i+l));else{a=[];for(let $=0,j;$<g.length;$++)if(j=g[$]){if(l&&j.length>l)l-=j.length;else if((i&&j.length>i||l)&&(j=j.slice(l,i+l),i-=j.length,l&&(l-=j.length)),a.push(j),!i)break}g=a}}return g}function eu(r,s,i,l,a){const h=[],p=Ye();let v;var g=r.length;let w;if(l){for(a=g-1;a>=0;a--)if(w=(l=r[a])&&l.length){for(g=0;g<w;g++)if(v=l[g],!p[v]){if(p[v]=1,i)i--;else if(h.push(v),h.length===s)return h}}}else for(let k=g-1,$,j=0;k>=0;k--){$=r[k];for(let A=0;A<$.length;A++)if(w=(l=$[A])&&l.length){for(let z=0;z<w;z++)if(v=l[z],!p[v])if(p[v]=1,i)i--;else{let _=(A+(k<g-1&&a||0))/(k+1)|0;if((h[_]||(h[_]=[])).push(v),++j===s)return h}}}return h}function Fd(r,s,i,l,a){const h=Ye(),p=[];for(let v=0,g;v<s.length;v++){g=s[v];for(let w=0;w<g.length;w++)h[g[w]]=1}if(a){for(let v=0,g;v<r.length;v++)if(g=r[v],h[g]){if(l)l--;else if(p.push(g),h[g]=0,i&&--i===0)break}}else for(let v=0,g,w;v<r.result.length;v++)for(g=r.result[v],s=0;s<g.length;s++)w=g[s],h[w]&&((p[v]||(p[v]=[])).push(w),h[w]=0);return p}An.prototype.search=function(r,s,i,l){i||(!s&&jr(r)?(i=r,r=""):jr(s)&&(i=s,s=0));let a=[];var h=[];let p,v,g,w,k,$,j=0,A=!0,z;if(i){i.constructor===Array&&(i={index:i}),r=i.query||r,p=i.pluck,v=i.merge,w=i.boost,$=p||i.field||($=i.index)&&($.index?null:$);var _=this.tag&&i.tag;g=i.suggest,A=i.resolve!==!1,k=i.cache,z=A&&this.store&&i.highlight;var R=!!z||A&&this.store&&i.enrich;s=i.limit||s;var q=i.offset||0;if(s||(s=A?100:0),_&&(!this.db||!l)){_.constructor!==Array&&(_=[_]);var Q=[];for(let ne=0,re;ne<_.length;ne++)if(re=_[ne],re.field&&re.tag){var ue=re.tag;if(ue.constructor===Array)for(var pe=0;pe<ue.length;pe++)Q.push(re.field,ue[pe]);else Q.push(re.field,ue)}else{ue=Object.keys(re);for(let fe=0,b,M;fe<ue.length;fe++)if(b=ue[fe],M=re[b],M.constructor===Array)for(pe=0;pe<M.length;pe++)Q.push(b,M[pe]);else Q.push(b,M)}if(_=Q,!r){if(h=[],Q.length)for(_=0;_<Q.length;_+=2){if(this.db){if(l=this.index.get(Q[_]),!l)continue;h.push(l=l.db.tag(Q[_+1],s,q,R))}else l=Md.call(this,Q[_],Q[_+1],s,q,R);a.push(A?{field:Q[_],tag:Q[_+1],result:l}:[l])}if(h.length){const ne=this;return Promise.all(h).then(function(re){for(let fe=0;fe<re.length;fe++)A?a[fe].result=re[fe]:a[fe]=re[fe];return A?a:new He(a.length>1?$s(a,1,0,0,g,w):a[0],ne)})}return A?a:new He(a.length>1?$s(a,1,0,0,g,w):a[0],this)}}A||p||!($=$||this.field)||(Rt($)?p=$:($.constructor===Array&&$.length===1&&($=$[0]),p=$.field||$.index)),$&&$.constructor!==Array&&($=[$])}$||($=this.field);let ce;Q=(this.worker||this.db)&&!l&&[];for(let ne=0,re,fe,b;ne<$.length;ne++){if(fe=$[ne],this.db&&this.tag&&!this.B[ne])continue;let M;if(Rt(fe)||(M=fe,fe=M.field,r=M.query||r,s=qn(M.limit,s),q=qn(M.offset,q),g=qn(M.suggest,g),z=A&&this.store&&qn(M.highlight,z),R=!!z||A&&this.store&&qn(M.enrich,R),k=qn(M.cache,k)),l)re=l[ne];else{ue=M||i||{},pe=ue.enrich;var ae=this.index.get(fe);if(_&&(this.db&&(ue.tag=_,ue.field=$,ce=ae.db.support_tag_search),!ce&&pe&&(ue.enrich=!1),ce||(ue.limit=0,ue.offset=0)),re=k?ae.searchCache(r,_&&!ce?0:s,ue):ae.search(r,_&&!ce?0:s,ue),_&&!ce&&(ue.limit=s,ue.offset=q),pe&&(ue.enrich=pe),Q){Q[ne]=re;continue}}if(b=(re=re.result||re)&&re.length,_&&b){if(ue=[],pe=0,this.db&&l){if(!ce)for(ae=$.length;ae<l.length;ae++){let K=l[ae];if(K&&K.length)pe++,ue.push(K);else if(!g)return A?a:new He(a,this)}}else for(let K=0,se,he;K<_.length;K+=2){if(se=this.tag.get(_[K]),!se){if(g)continue;return A?a:new He(a,this)}if(he=(se=se&&se.get(_[K+1]))&&se.length)pe++,ue.push(se);else if(!g)return A?a:new He(a,this)}if(pe){if(re=Fd(re,ue,s,q,A),b=re.length,!b&&!g)return A?re:new He(re,this);pe--}}if(b)h[j]=fe,a.push(re),j++;else if($.length===1)return A?a:new He(a,this)}if(Q){if(this.db&&_&&_.length&&!ce)for(R=0;R<_.length;R+=2){if(h=this.index.get(_[R]),!h){if(g)continue;return A?a:new He(a,this)}Q.push(h.db.tag(_[R+1],s,q,!1))}const ne=this;return Promise.all(Q).then(function(re){return i&&(i.resolve=A),re.length&&(re=ne.search(r,s,i,re)),re})}if(!j)return A?a:new He(a,this);if(p&&(!R||!this.store))return a=a[0],A?a:new He(a,this);for(Q=[],q=0;q<h.length;q++){if(_=a[q],R&&_.length&&typeof _[0].doc>"u"&&(this.db?Q.push(_=this.index.get(this.field[0]).db.enrich(_)):_=Yn.call(this,_)),p)return A?z?Ps(r,_,this.index,p,z):_:new He(_,this);a[q]={field:h[q],result:_}}if(R&&this.db&&Q.length){const ne=this;return Promise.all(Q).then(function(re){for(let fe=0;fe<re.length;fe++)a[fe].result=re[fe];return z&&(a=Ps(r,a,ne.index,p,z)),v?tu(a):a})}return z&&(a=Ps(r,a,this.index,p,z)),v?tu(a):a};function tu(r){const s=[],i=Ye(),l=Ye();for(let a=0,h,p,v,g,w,k,$;a<r.length;a++){h=r[a],p=h.field,v=h.result;for(let j=0;j<v.length;j++)w=v[j],typeof w!="object"?w={id:g=w}:g=w.id,(k=i[g])?k.push(p):(w.field=i[g]=[p],s.push(w)),($=w.highlight)&&(k=l[g],k||(l[g]=k={},w.highlight=k),k[p]=$)}return s}function Md(r,s,i,l,a){return r=this.tag.get(r),r?(r=r.get(s),r?(s=r.length-l,s>0&&((i&&s>i||l)&&(r=r.slice(l,l+i)),a&&(r=Yn.call(this,r))),r):[]):[]}function Yn(r){if(!this||!this.store)return r;if(this.db)return this.index.get(this.field[0]).db.enrich(r);const s=Array(r.length);for(let i=0,l;i<r.length;i++)l=r[i],s[i]={id:l,doc:this.store.get(l)};return s}function An(r){if(!this||this.constructor!==An)return new An(r);const s=r.document||r.doc||r;let i,l;if(this.B=[],this.field=[],this.D=[],this.key=(i=s.key||s.id)&&Es(i,this.D)||"id",(l=r.keystore||0)&&(this.keystore=l),this.fastupdate=!!r.fastupdate,this.reg=!this.fastupdate||r.worker||r.db?l?new Lt(l):new Set:l?new _t(l):new Map,this.h=(i=s.store||null)&&i&&i!==!0&&[],this.store=i?l?new _t(l):new Map:null,this.cache=(i=r.cache||null)&&new jn(i),r.cache=!1,this.worker=r.worker||!1,this.priority=r.priority||4,this.index=zd.call(this,r,s),this.tag=null,(i=s.tag)&&(typeof i=="string"&&(i=[i]),i.length)){this.tag=new Map,this.A=[],this.F=[];for(let a=0,h,p;a<i.length;a++){if(h=i[a],p=h.field||h,!p)throw Error("The tag field from the document descriptor is undefined.");h.custom?this.A[a]=h.custom:(this.A[a]=Es(p,this.D),h.filter&&(typeof this.A[a]=="string"&&(this.A[a]=new String(this.A[a])),this.A[a].G=h.filter)),this.F[a]=p,this.tag.set(p,new Map)}}if(this.worker){this.fastupdate=!1,r=[];for(const a of this.index.values())a.then&&r.push(a);if(r.length){const a=this;return Promise.all(r).then(function(h){let p=0;for(const v of a.index.entries()){const g=v[0];let w=v[1];w.then&&(w=h[p],a.index.set(g,w),p++)}return a})}}else r.db&&(this.fastupdate=!1,this.mount(r.db))}ve=An.prototype,ve.mount=function(r){let s=this.field;if(this.tag)for(let h=0,p;h<this.F.length;h++){p=this.F[h];var i=void 0;this.index.set(p,i=new Mt({},this.reg)),s===this.field&&(s=s.slice(0)),s.push(p),i.tag=this.tag.get(p)}i=[];const l={db:r.db,type:r.type,fastupdate:r.fastupdate};for(let h=0,p,v;h<s.length;h++){l.field=v=s[h],p=this.index.get(v);const g=new r.constructor(r.id,l);g.id=r.id,i[h]=g.mount(p),p.document=!0,h?p.bypass=!0:p.store=this.store}const a=this;return this.db=Promise.all(i).then(function(){a.db=!0})},ve.commit=async function(){const r=[];for(const s of this.index.values())r.push(s.commit());await Promise.all(r),this.reg.clear()},ve.destroy=function(){const r=[];for(const s of this.index.values())r.push(s.destroy());return Promise.all(r)};function zd(r,s){const i=new Map;let l=s.index||s.field||s;Rt(l)&&(l=[l]);for(let h=0,p,v;h<l.length;h++){if(p=l[h],Rt(p)||(v=p,p=p.field),v=jr(v)?Object.assign({},r,v):r,this.worker){var a=void 0;a=(a=v.encoder)&&a.encode?a:new Wn(typeof a=="string"?Go[a]:a||{}),a=new Jn(v,a),i.set(p,a)}this.worker||i.set(p,new Mt(v,this.reg)),v.custom?this.B[h]=v.custom:(this.B[h]=Es(p,this.D),v.filter&&(typeof this.B[h]=="string"&&(this.B[h]=new String(this.B[h])),this.B[h].G=v.filter)),this.field[h]=p}if(this.h){r=s.store,Rt(r)&&(r=[r]);for(let h=0,p,v;h<r.length;h++)p=r[h],v=p.field||p,p.custom?(this.h[h]=p.custom,p.custom.O=v):(this.h[h]=Es(v,this.D),p.filter&&(typeof this.h[h]=="string"&&(this.h[h]=new String(this.h[h])),this.h[h].G=p.filter))}return i}function Es(r,s){const i=r.split(":");let l=0;for(let a=0;a<i.length;a++)r=i[a],r[r.length-1]==="]"&&(r=r.substring(0,r.length-2))&&(s[l]=!0),r&&(i[l++]=r);return l<i.length&&(i.length=l),l>1?i:i[0]}ve.append=function(r,s){return this.add(r,s,!0)},ve.update=function(r,s){return this.remove(r).add(r,s)},ve.remove=function(r){jr(r)&&(r=Ar(r,this.key));for(var s of this.index.values())s.remove(r,!0);if(this.reg.has(r)){if(this.tag&&!this.fastupdate)for(let i of this.tag.values())for(let l of i){s=l[0];const a=l[1],h=a.indexOf(r);h>-1&&(a.length>1?a.splice(h,1):i.delete(s))}this.store&&this.store.delete(r),this.reg.delete(r)}return this.cache&&this.cache.remove(r),this},ve.clear=function(){const r=[];for(const s of this.index.values()){const i=s.clear();i.then&&r.push(i)}if(this.tag)for(const s of this.tag.values())s.clear();return this.store&&this.store.clear(),this.cache&&this.cache.clear(),r.length?Promise.all(r):this},ve.contain=function(r){return this.db?this.index.get(this.field[0]).db.has(r):this.reg.has(r)},ve.cleanup=function(){for(const r of this.index.values())r.cleanup();return this},ve.get=function(r){return this.db?this.index.get(this.field[0]).db.enrich(r).then(function(s){return s[0]&&s[0].doc||null}):this.store.get(r)||null},ve.set=function(r,s){return typeof r=="object"&&(s=r,r=Ar(s,this.key)),this.store.set(r,s),this},ve.searchCache=Wo,ve.export=Dd,ve.import=Ud,Qo(An.prototype);function ti(r,s=0){let i=[],l=[];s&&(s=25e4/s*5e3|0);for(const a of r.entries())l.push(a),l.length===s&&(i.push(l),l=[]);return l.length&&i.push(l),i}function ni(r,s){s||(s=new Map);for(let i=0,l;i<r.length;i++)l=r[i],s.set(l[0],l[1]);return s}function nu(r,s=0){let i=[],l=[];s&&(s=25e4/s*1e3|0);for(const a of r.entries())l.push([a[0],ti(a[1])[0]||[]]),l.length===s&&(i.push(l),l=[]);return l.length&&i.push(l),i}function ru(r,s){s||(s=new Map);for(let i=0,l,a;i<r.length;i++)l=r[i],a=s.get(l[0]),s.set(l[0],ni(l[1],a));return s}function su(r){let s=[],i=[];for(const l of r.keys())i.push(l),i.length===25e4&&(s.push(i),i=[]);return i.length&&s.push(i),s}function ou(r,s){s||(s=new Set);for(let i=0;i<r.length;i++)s.add(r[i]);return s}function js(r,s,i,l,a,h,p=0){const v=l&&l.constructor===Array;var g=v?l.shift():l;if(!g)return this.export(r,s,a,h+1);if((g=r((s?s+".":"")+(p+1)+"."+i,JSON.stringify(g)))&&g.then){const w=this;return g.then(function(){return js.call(w,r,s,i,v?l:null,a,h,p+1)})}return js.call(this,r,s,i,v?l:null,a,h,p+1)}function Dd(r,s,i=0,l=0){if(i<this.field.length){const p=this.field[i];if((s=this.index.get(p).export(r,p,i,l=1))&&s.then){const v=this;return s.then(function(){return v.export(r,p,i+1)})}return this.export(r,p,i+1)}let a,h;switch(l){case 0:a="reg",h=su(this.reg),s=null;break;case 1:a="tag",h=this.tag&&nu(this.tag,this.reg.size),s=null;break;case 2:a="doc",h=this.store&&ti(this.store),s=null;break;default:return}return js.call(this,r,s,a,h||null,i,l)}function Ud(r,s){var i=r.split(".");i[i.length-1]==="json"&&i.pop();const l=i.length>2?i[0]:"";if(i=i.length>2?i[2]:i[1],this.worker&&l)return this.index.get(l).import(r);if(s){if(typeof s=="string"&&(s=JSON.parse(s)),l)return this.index.get(l).import(i,s);switch(i){case"reg":this.fastupdate=!1,this.reg=ou(s,this.reg);for(let a=0,h;a<this.field.length;a++)h=this.index.get(this.field[a]),h.fastupdate=!1,h.reg=this.reg;if(this.worker){s=[];for(const a of this.index.values())s.push(a.import(r));return Promise.all(s)}break;case"tag":this.tag=ru(s,this.tag);break;case"doc":this.store=ni(s,this.store)}}}function iu(r,s){let i="";for(const l of r.entries()){r=l[0];const a=l[1];let h="";for(let p=0,v;p<a.length;p++){v=a[p]||[""];let g="";for(let w=0;w<v.length;w++)g+=(g?",":"")+(s==="string"?'"'+v[w]+'"':v[w]);g="["+g+"]",h+=(h?",":"")+g}h='["'+r+'",['+h+"]]",i+=(i?",":"")+h}return i}Mt.prototype.remove=function(r,s){const i=this.reg.size&&(this.fastupdate?this.reg.get(r):this.reg.has(r));if(i){if(this.fastupdate){for(let l=0,a,h;l<i.length;l++)if((a=i[l])&&(h=a.length))if(a[h-1]===r)a.pop();else{const p=a.indexOf(r);p>=0&&a.splice(p,1)}}else Or(this.map,r),this.depth&&Or(this.ctx,r);s||this.reg.delete(r)}return this.db&&(this.commit_task.push({del:r}),this.M&&cu(this)),this.cache&&this.cache.remove(r),this};function Or(r,s){let i=0;var l=typeof s>"u";if(r.constructor===Array){for(let a=0,h,p,v;a<r.length;a++)if((h=r[a])&&h.length){if(l)return 1;if(p=h.indexOf(s),p>=0){if(h.length>1)return h.splice(p,1),1;if(delete r[a],i)return 1;v=1}else{if(v)return 1;i++}}}else for(let a of r.entries())l=a[0],Or(a[1],s)?i++:r.delete(l);return i}const Bd={memory:{resolution:1},performance:{resolution:3,fastupdate:!0,context:{depth:1,resolution:1}},match:{tokenize:"forward"},score:{resolution:9,context:{depth:2,resolution:3}}};Mt.prototype.add=function(r,s,i,l){if(s&&(r||r===0)){if(!l&&!i&&this.reg.has(r))return this.update(r,s);l=this.depth,s=this.encoder.encode(s,!l);const w=s.length;if(w){const k=Ye(),$=Ye(),j=this.resolution;for(let A=0;A<w;A++){let z=s[this.rtl?w-1-A:A];var a=z.length;if(a&&(l||!$[z])){var h=this.score?this.score(s,z,A,null,0):As(j,w,A),p="";switch(this.tokenize){case"tolerant":if(Wt(this,$,z,h,r,i),a>2){for(let _=1,R,q,Q,ue;_<a-1;_++)R=z.charAt(_),q=z.charAt(_+1),Q=z.substring(0,_)+q,ue=z.substring(_+2),p=Q+R+ue,Wt(this,$,p,h,r,i),p=Q+ue,Wt(this,$,p,h,r,i);Wt(this,$,z.substring(0,z.length-1),h,r,i)}break;case"full":if(a>2){for(let _=0,R;_<a;_++)for(h=a;h>_;h--){p=z.substring(_,h),R=this.rtl?a-1-_:_;var v=this.score?this.score(s,z,A,p,R):As(j,w,A,a,R);Wt(this,$,p,v,r,i)}break}case"bidirectional":case"reverse":if(a>1){for(v=a-1;v>0;v--){p=z[this.rtl?a-1-v:v]+p;var g=this.score?this.score(s,z,A,p,v):As(j,w,A,a,v);Wt(this,$,p,g,r,i)}p=""}case"forward":if(a>1){for(v=0;v<a;v++)p+=z[this.rtl?a-1-v:v],Wt(this,$,p,h,r,i);break}default:if(Wt(this,$,z,h,r,i),l&&w>1&&A<w-1)for(a=this.N,p=z,h=Math.min(l+1,this.rtl?A+1:w-A),v=1;v<h;v++){z=s[this.rtl?w-1-A-v:A+v],g=this.bidirectional&&z>p;const _=this.score?this.score(s,p,A,z,v-1):As(a+(w/2>a?0:1),w,A,h-1,v-1);Wt(this,k,g?p:z,_,r,i,g?z:p)}}}}this.fastupdate||this.reg.add(r)}}return this.db&&(this.commit_task.push(i?{ins:r}:{del:r}),this.M&&cu(this)),this};function Wt(r,s,i,l,a,h,p){let v,g;if(!(v=s[i])||p&&!v[p]){if(p?(s=v||(s[i]=Ye()),s[p]=1,g=r.ctx,(v=g.get(p))?g=v:g.set(p,g=r.keystore?new _t(r.keystore):new Map)):(g=r.map,s[i]=1),(v=g.get(i))?g=v:g.set(i,g=v=[]),h){for(let w=0,k;w<v.length;w++)if((k=v[w])&&k.includes(a)){if(w<=l)return;k.splice(k.indexOf(a),1),r.fastupdate&&(s=r.reg.get(a))&&s.splice(s.indexOf(k),1);break}}if(g=g[l]||(g[l]=[]),g.push(a),g.length===2**31-1){if(s=new Kn(g),r.fastupdate)for(let w of r.reg.values())w.includes(g)&&(w[w.indexOf(g)]=s);v[l]=g=s}r.fastupdate&&((l=r.reg.get(a))?l.push(g):r.reg.set(a,[g]))}}function As(r,s,i,l,a){return i&&r>1?s+(l||0)<=r?i+(a||0):(r-1)/(s+(l||0))*(i+(a||0))+1|0:0}Mt.prototype.search=function(r,s,i){if(i||(s||typeof r!="object"?typeof s=="object"&&(i=s,s=0):(i=r,r="")),i&&i.cache)return i.cache=!1,r=this.searchCache(r,s,i),i.cache=!0,r;let l=[],a,h,p,v=0,g,w,k,$,j;i&&(r=i.query||r,s=i.limit||s,v=i.offset||0,h=i.context,p=i.suggest,j=(g=i.resolve)&&i.enrich,k=i.boost,$=i.resolution,w=this.db&&i.tag),typeof g>"u"&&(g=this.resolve),h=this.depth&&h!==!1;let A=this.encoder.encode(r,!h);if(a=A.length,s=s||(g?100:0),a===1)return au.call(this,A[0],"",s,v,g,j,w);if(a===2&&h&&!p)return au.call(this,A[1],A[0],s,v,g,j,w);let z=Ye(),_=0,R;if(h&&(R=A[0],_=1),$||$===0||($=R?this.N:this.resolution),this.db){if(this.db.search&&(i=this.db.search(this,A,s,v,p,g,j,w),i!==!1))return i;const q=this;return(async function(){for(let Q,ue;_<a;_++){if((ue=A[_])&&!z[ue]){if(z[ue]=1,Q=await ri(q,ue,R,0,0,!1,!1),Q=uu(Q,l,p,$)){l=Q;break}R&&(p&&Q&&l.length||(R=ue))}p&&R&&_===a-1&&!l.length&&($=q.resolution,R="",_=-1,z=Ye())}return lu(l,$,s,v,p,k,g)})()}for(let q,Q;_<a;_++){if((Q=A[_])&&!z[Q]){if(z[Q]=1,q=ri(this,Q,R,0,0,!1,!1),q=uu(q,l,p,$)){l=q;break}R&&(p&&q&&l.length||(R=Q))}p&&R&&_===a-1&&!l.length&&($=this.resolution,R="",_=-1,z=Ye())}return lu(l,$,s,v,p,k,g)};function lu(r,s,i,l,a,h,p){let v=r.length,g=r;if(v>1)g=$s(r,s,i,l,a,h,p);else if(v===1)return p?Zo.call(null,r[0],i,l):new He(r[0],this);return p?g:new He(g,this)}function au(r,s,i,l,a,h,p){return r=ri(this,r,s,i,l,a,h,p),this.db?r.then(function(v){return a?v||[]:new He(v,this)}):r&&r.length?a?Zo.call(this,r,i,l):new He(r,this):a?[]:new He([],this)}function uu(r,s,i,l){let a=[];if(r&&r.length){if(r.length<=l){s.push(r);return}for(let h=0,p;h<l;h++)(p=r[h])&&(a[h]=p);if(a.length){s.push(a);return}}if(!i)return a}function ri(r,s,i,l,a,h,p,v){let g;return i&&(g=r.bidirectional&&s>i)&&(g=i,i=s,s=g),r.db?r.db.get(s,i,l,a,h,p,v):(r=i?(r=r.ctx.get(i))&&r.get(s):r.map.get(s),r)}function Mt(r,s){if(!this||this.constructor!==Mt)return new Mt(r);if(r){var i=Rt(r)?r:r.preset;i&&(r=Object.assign({},Bd[i],r))}else r={};i=r.context;const l=i===!0?{depth:1}:i||{},a=Rt(r.encoder)?Go[r.encoder]:r.encode||r.encoder||{};this.encoder=a.encode?a:typeof a=="object"?new Wn(a):{encode:a},this.resolution=r.resolution||9,this.tokenize=i=(i=r.tokenize)&&i!=="default"&&i!=="exact"&&i||"strict",this.depth=i==="strict"&&l.depth||0,this.bidirectional=l.bidirectional!==!1,this.fastupdate=!!r.fastupdate,this.score=r.score||null,(i=r.keystore||0)&&(this.keystore=i),this.map=i?new _t(i):new Map,this.ctx=i?new _t(i):new Map,this.reg=s||(this.fastupdate?i?new _t(i):new Map:i?new Lt(i):new Set),this.N=l.resolution||3,this.rtl=a.rtl||r.rtl||!1,this.cache=(i=r.cache||null)&&new jn(i),this.resolve=r.resolve!==!1,(i=r.db)&&(this.db=this.mount(i)),this.M=r.commit!==!1,this.commit_task=[],this.commit_timer=null,this.priority=r.priority||4}ve=Mt.prototype,ve.mount=function(r){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),r.mount(this)},ve.commit=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.commit(this)},ve.destroy=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.destroy()};function cu(r){r.commit_timer||(r.commit_timer=setTimeout(function(){r.commit_timer=null,r.db.commit(r)},1))}ve.clear=function(){return this.map.clear(),this.ctx.clear(),this.reg.clear(),this.cache&&this.cache.clear(),this.db?(this.commit_timer&&clearTimeout(this.commit_timer),this.commit_timer=null,this.commit_task=[],this.db.clear()):this},ve.append=function(r,s){return this.add(r,s,!0)},ve.contain=function(r){return this.db?this.db.has(r):this.reg.has(r)},ve.update=function(r,s){const i=this,l=this.remove(r);return l&&l.then?l.then(()=>i.add(r,s)):this.add(r,s)},ve.cleanup=function(){return this.fastupdate?(Or(this.map),this.depth&&Or(this.ctx),this):this},ve.searchCache=Wo,ve.export=function(r,s,i=0,l=0){let a,h;switch(l){case 0:a="reg",h=su(this.reg);break;case 1:a="cfg",h=null;break;case 2:a="map",h=ti(this.map,this.reg.size);break;case 3:a="ctx",h=nu(this.ctx,this.reg.size);break;default:return}return js.call(this,r,s,a,h,i,l)},ve.import=function(r,s){if(s)switch(typeof s=="string"&&(s=JSON.parse(s)),r=r.split("."),r[r.length-1]==="json"&&r.pop(),r.length===3&&r.shift(),r=r.length>1?r[1]:r[0],r){case"reg":this.fastupdate=!1,this.reg=ou(s,this.reg);break;case"map":this.map=ni(s,this.map);break;case"ctx":this.ctx=ru(s,this.ctx)}},ve.serialize=function(r=!0){let s="",i="",l="";if(this.reg.size){let h;for(var a of this.reg.keys())h||(h=typeof a),s+=(s?",":"")+(h==="string"?'"'+a+'"':a);s="index.reg=new Set(["+s+"]);",i=iu(this.map,h),i="index.map=new Map(["+i+"]);";for(const p of this.ctx.entries()){a=p[0];let v=iu(p[1],h);v="new Map(["+v+"])",v='["'+a+'",'+v+"]",l+=(l?",":"")+v}l="index.ctx=new Map(["+l+"]);"}return r?"function inject(index){"+s+i+l+"}":s+i+l},Qo(Mt.prototype);const fu=typeof window<"u"&&(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),Ts=["map","ctx","tag","reg","cfg"],Tn=Ye();function si(r,s={}){if(!this||this.constructor!==si)return new si(r,s);typeof r=="object"&&(s=r,r=r.name),r||console.info("Default storage space was used, because a name was not passed."),this.id="flexsearch"+(r?":"+r.toLowerCase().replace(/[^a-z0-9_\-]/g,""):""),this.field=s.field?s.field.toLowerCase().replace(/[^a-z0-9_\-]/g,""):"",this.type=s.type,this.fastupdate=this.support_tag_search=!1,this.db=null,this.h={}}ve=si.prototype,ve.mount=function(r){return r.index?r.mount(this):(r.db=this,this.open())},ve.open=function(){if(this.db)return this.db;let r=this;navigator.storage&&navigator.storage.persist&&navigator.storage.persist(),Tn[r.id]||(Tn[r.id]=[]),Tn[r.id].push(r.field);const s=fu.open(r.id,1);return s.onupgradeneeded=function(){const i=r.db=this.result;for(let l=0,a;l<Ts.length;l++){a=Ts[l];for(let h=0,p;h<Tn[r.id].length;h++)p=Tn[r.id][h],i.objectStoreNames.contains(a+(a!=="reg"&&p?":"+p:""))||i.createObjectStore(a+(a!=="reg"&&p?":"+p:""))}},r.db=rn(s,function(i){r.db=i,r.db.onversionchange=function(){r.close()}})},ve.close=function(){this.db&&this.db.close(),this.db=null},ve.destroy=function(){const r=fu.deleteDatabase(this.id);return rn(r)},ve.clear=function(){const r=[];for(let i=0,l;i<Ts.length;i++){l=Ts[i];for(let a=0,h;a<Tn[this.id].length;a++)h=Tn[this.id][a],r.push(l+(l!=="reg"&&h?":"+h:""))}const s=this.db.transaction(r,"readwrite");for(let i=0;i<r.length;i++)s.objectStore(r[i]).clear();return rn(s)},ve.get=function(r,s,i=0,l=0,a=!0,h=!1){r=this.db.transaction((s?"ctx":"map")+(this.field?":"+this.field:""),"readonly").objectStore((s?"ctx":"map")+(this.field?":"+this.field:"")).get(s?s+":"+r:r);const p=this;return rn(r).then(function(v){let g=[];if(!v||!v.length)return g;if(a){if(!i&&!l&&v.length===1)return v[0];for(let w=0,k;w<v.length;w++)if((k=v[w])&&k.length){if(l>=k.length){l-=k.length;continue}const $=i?l+Math.min(k.length-l,i):k.length;for(let j=l;j<$;j++)g.push(k[j]);if(l=0,g.length===i)break}return h?p.enrich(g):g}return v})},ve.tag=function(r,s=0,i=0,l=!1){r=this.db.transaction("tag"+(this.field?":"+this.field:""),"readonly").objectStore("tag"+(this.field?":"+this.field:"")).get(r);const a=this;return rn(r).then(function(h){return!h||!h.length||i>=h.length?[]:!s&&!i?h:(h=h.slice(i,i+s),l?a.enrich(h):h)})},ve.enrich=function(r){typeof r!="object"&&(r=[r]);const s=this.db.transaction("reg","readonly").objectStore("reg"),i=[];for(let l=0;l<r.length;l++)i[l]=rn(s.get(r[l]));return Promise.all(i).then(function(l){for(let a=0;a<l.length;a++)l[a]={id:r[a],doc:l[a]?JSON.parse(l[a]):null};return l})},ve.has=function(r){return r=this.db.transaction("reg","readonly").objectStore("reg").getKey(r),rn(r).then(function(s){return!!s})},ve.search=null,ve.info=function(){},ve.transaction=function(r,s,i){r+=r!=="reg"&&this.field?":"+this.field:"";let l=this.h[r+":"+s];if(l)return i.call(this,l);let a=this.db.transaction(r,s);this.h[r+":"+s]=l=a.objectStore(r);const h=i.call(this,l);return this.h[r+":"+s]=null,rn(a).finally(function(){return h})},ve.commit=async function(r){let s=r.commit_task,i=[];r.commit_task=[];for(let l=0,a;l<s.length;l++)a=s[l],a.del&&i.push(a.del);i.length&&await this.remove(i),r.reg.size&&(await this.transaction("map","readwrite",function(l){for(const a of r.map){const h=a[0],p=a[1];p.length&&(l.get(h).onsuccess=function(){let v=this.result;var g;if(v&&v.length){const w=Math.max(v.length,p.length);for(let k=0,$,j;k<w;k++)if((j=p[k])&&j.length){if(($=v[k])&&$.length)for(g=0;g<j.length;g++)$.push(j[g]);else v[k]=j;g=1}}else v=p,g=1;g&&l.put(v,h)})}}),await this.transaction("ctx","readwrite",function(l){for(const a of r.ctx){const h=a[0],p=a[1];for(const v of p){const g=v[0],w=v[1];w.length&&(l.get(h+":"+g).onsuccess=function(){let k=this.result;var $;if(k&&k.length){const j=Math.max(k.length,w.length);for(let A=0,z,_;A<j;A++)if((_=w[A])&&_.length){if((z=k[A])&&z.length)for($=0;$<_.length;$++)z.push(_[$]);else k[A]=_;$=1}}else k=w,$=1;$&&l.put(k,h+":"+g)})}}}),r.store?await this.transaction("reg","readwrite",function(l){for(const a of r.store){const h=a[0],p=a[1];l.put(typeof p=="object"?JSON.stringify(p):1,h)}}):r.bypass||await this.transaction("reg","readwrite",function(l){for(const a of r.reg.keys())l.put(1,a)}),r.tag&&await this.transaction("tag","readwrite",function(l){for(const a of r.tag){const h=a[0],p=a[1];p.length&&(l.get(h).onsuccess=function(){let v=this.result;v=v&&v.length?v.concat(p):p,l.put(v,h)})}}),r.map.clear(),r.ctx.clear(),r.tag&&r.tag.clear(),r.store&&r.store.clear(),r.document||r.reg.clear())};function oi(r,s,i){const l=r.value;let a,h=0;for(let p=0,v;p<l.length;p++){if(v=i?l:l[p]){for(let g=0,w,k;g<s.length;g++)if(k=s[g],w=v.indexOf(k),w>=0)if(a=1,v.length>1)v.splice(w,1);else{l[p]=[];break}h+=v.length}if(i)break}h?a&&r.update(l):r.delete(),r.continue()}ve.remove=function(r){return typeof r!="object"&&(r=[r]),Promise.all([this.transaction("map","readwrite",function(s){s.openCursor().onsuccess=function(){const i=this.result;i&&oi(i,r)}}),this.transaction("ctx","readwrite",function(s){s.openCursor().onsuccess=function(){const i=this.result;i&&oi(i,r)}}),this.transaction("tag","readwrite",function(s){s.openCursor().onsuccess=function(){const i=this.result;i&&oi(i,r,!0)}}),this.transaction("reg","readwrite",function(s){for(let i=0;i<r.length;i++)s.delete(r[i])})])};function rn(r,s){return new Promise((i,l)=>{r.onsuccess=r.oncomplete=function(){s&&s(this.result),s=null,i(this.result)},r.onerror=r.onblocked=l,r=null})}const Os={Encoder:Wn,Document:An},Vd=Go,Hd={finalize:r=>{let s=[];for(const i of r)s.push(...Wd(i));return s}};function qd(r){return r>=19968&&r<=40959||r>=12352&&r<=12543||r>=44032&&r<=55203||r>=13312&&r<=19903||r>=131072&&r<=173791||r>=173824&&r<=191471||r>=196608&&r<=205743||r>=191472&&r<=192095||r>=63744&&r<=64255||r>=194560&&r<=195103}function Wd(r){const s=[];let i="";for(const l of r){const a=l.codePointAt(0);qd(a)?(i&&(s.push(i),i=""),s.push(l)):i+=l}return i&&s.push(i),s}const ii=new Os.Encoder(Vd.Default,Hd);class Kd{constructor({adminUrl:s,apiKey:i,dir:l}){const a=l==="rtl",h=l==="rtl"?"reverse":"forward";this.apiUrl=s,this.apiKey=i,this.postsIndex=new Os.Document({tokenize:h,rtl:a,document:{id:"id",index:["title","excerpt"],store:!0},encoder:ii}),this.authorsIndex=new Os.Document({tokenize:h,rtl:a,document:{id:"id",index:["name"],store:!0},encoder:ii}),this.tagsIndex=new Os.Document({tokenize:h,rtl:a,document:{id:"id",index:["name"],store:!0},encoder:ii}),this.init=this.init.bind(this),this.search=this.search.bind(this)}async#t(){const s=await this.#n();s.length>0&&this.#r(s)}async#n(){try{const s=`${this.apiUrl}/ghost/api/content/search-index/posts/?key=${this.apiKey}`;return(await(await fetch(s)).json()).posts}catch(s){return console.error("Error fetching posts:",s),[]}}#r(s){s.forEach(i=>{this.postsIndex.add(i)})}async#s(){const s=await this.#o();s.length>0&&this.#i(s)}async#o(){try{const s=`${this.apiUrl}/ghost/api/content/search-index/authors/?key=${this.apiKey}`;return(await(await fetch(s)).json()).authors}catch(s){return console.error("Error fetching authors:",s),[]}}#i(s){s.forEach(i=>{this.authorsIndex.add(i)})}async#l(){const s=await this.#a();s.length>0&&this.#u(s)}async#a(){try{const s=`${this.apiUrl}/ghost/api/content/search-index/tags/?key=${this.apiKey}`;return(await(await fetch(s)).json()).tags}catch(s){return console.error("Error fetching tags:",s),[]}}#u(s){s.forEach(i=>{this.tagsIndex.add(i)})}async init(){await this.#t(),await this.#s(),await this.#l()}#e(s){const i=[],l={};return s.forEach(a=>{a.result.forEach(h=>{l[h.id]||(i.push(h.doc),l[h.id]=!0)})}),i}search(s){const i=this.postsIndex.search(s,{enrich:!0}),l=this.authorsIndex.search(s,{enrich:!0}),a=this.tagsIndex.search(s,{enrich:!0});return{posts:this.#e(i),authors:this.#e(l),tags:this.#e(a)}}}var On={exports:{}};const Gd={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Qd={Authors:"الكتّاب",Cancel:"إلغاء","No matches found":"لا يوجد نتائج مطابقة",Posts:"منشورات","Search posts, tags and authors":"قم بالبحث عن المنشورات، الوسوم و الكتّاب","Show more results":"اظهر المزيد من النتائج",Tags:"الوسوم"},Jd={Authors:"Автори",Cancel:"Отказ","No matches found":"Няма съвпадения",Posts:"Публикации","Search posts, tags and authors":"Търсене в публикации, етикети и автори","Show more results":"Покажи още резултати",Tags:"Етикети"},Yd={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Xd={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Zd={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"},ep={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"},tp={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"},np={Authors:"Autoren",Cancel:"Abbrechen","No matches found":"Keine Treffer gefunden",Posts:"Beiträge","Search posts, tags and authors":"Nach Posts, Tags und Autoren suchen","Show more results":"Mehr Ergebnisse anzeigen",Tags:"Tags"},rp={Authors:"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"},sp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},op={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},ip={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},lp={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"},ap={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"},up={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"},cp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},fp={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"},hp={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"},dp={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"},pp={Authors:"מחברים",Cancel:"ביטול","No matches found":"לא נמצאו התאמות",Posts:"פוסטים","Search posts, tags and authors":"חיפוש פוסטים, תגיות ומחברים","Show more results":"הצגת תוצאות נוספות",Tags:"תגיות"},gp={Authors:"लेखक",Cancel:"रद्द करें","No matches found":"कोई मैच नहीं मिला",Posts:"पोस्ट","Search posts, tags and authors":"पोस्ट, टैग और लेखक की तलाश करें","Show more results":"और परिणाम दिखाएं",Tags:"टैग"},mp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},yp={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"},vp={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"},wp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Sp={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"},xp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Cp={Authors:"작성자",Cancel:"취소","No matches found":"일치하는 결과가 없어요",Posts:"게시물","Search posts, tags and authors":"게시물, 태그, 작성자 검색","Show more results":"더 많은 결과 보기",Tags:"태그"},kp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Pp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},$p={Authors:"Autori",Cancel:"Atcelt","No matches found":"Nav atrasta neviena atbilstība",Posts:"Ziņas","Search posts, tags and authors":"Meklēt ziņas, atzīmes un autorus","Show more results":"Rādīt vairāk rezultātu",Tags:"Tagi"},Ep={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},jp={Authors:"Нийтлэгчид",Cancel:"Цуцлах","No matches found":"Тохирох хайлтын үр дүн олдсонгүй",Posts:"Нийтлэлүүд","Search posts, tags and authors":"Нийтлэл, ангилал, нийтлэгчдээр хайх","Show more results":"Илүү олон үр дүн харуулах",Tags:"Ангилалууд"},Ap={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Tp={Authors:"Forfattere",Cancel:"Avbryt","No matches found":"Ingen treff funnet",Posts:"Innlegg","Search posts, tags and authors":"Søk i innlegg, etiketter og forfattere","Show more results":"Vis flere resultater",Tags:"Etiketter"},Op={Authors:"लेखकहरू",Cancel:"रद्द गर्नुहोस्","No matches found":"कुनै परिणाम भेटिएन",Posts:"पोस्टहरू","Search posts, tags and authors":"पोस्टहरू, ट्यागहरू र लेखकहरू खोज्नुहोस्","Show more results":"थप परिणामहरू देखाउनुहोस्",Tags:"ट्यागहरू"},Np={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"},Rp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},_p={Authors:"ਲੇਖਕ",Cancel:"ਰੱਦ ਕਰੋ","No matches found":"ਕੋਈ ਮੇਲ ਨਹੀਂ ਮਿਲਿਆ",Posts:"ਪੋਸਟਾਂ","Search posts, tags and authors":"ਪੋਸਟਾਂ, ਟੈਗ ਅਤੇ ਲੇਖਕ ਖੋਜੋ","Show more results":"ਹੋਰ ਨਤੀਜੇ ਦਿਖਾਓ",Tags:"ਟੈਗ"},Lp={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"},bp={Authors:"Autores",Cancel:"Cancelar","No matches found":"Nenhum resultado encontrado",Posts:"Publicações","Search posts, tags and authors":"Buscar posts, tags e autores","Show more results":"Mostrar mais resultados",Tags:"Tags"},Ip={Authors:"Autores",Cancel:"Cancelar","No matches found":"Nenhum resultado encontrado",Posts:"Publicações","Search posts, tags and authors":"Procurar publicações, marcadores e autores","Show more results":"Mostrar mais resultados",Tags:"Marcadores"},Fp={Authors:"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"},Mp={Authors:"Авторы",Cancel:"Отмена","No matches found":"Совпадений не найдено",Posts:"Записи","Search posts, tags and authors":"Поиск по записям, тегам и авторам","Show more results":"Показать больше результатов",Tags:"Теги"},zp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Dp={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"},Up={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"},Bp={Authors:"Autorët",Cancel:"Anulo","No matches found":"Nuk u gjet asnjë rezultat",Posts:"Postimet","Search posts, tags and authors":"Kërko postime, etiketa dhe autorë","Show more results":"Shfaq më shumë rezultate",Tags:"Etiketat"},Vp={Authors:"Аутори",Cancel:"Откажите","No matches found":"Нема резултата",Posts:"Објаве","Search posts, tags and authors":"Претражите објаве, tag-ове и ауторе","Show more results":"Прикажите више резултата",Tags:"Tag-ови"},Hp={Authors:"Autori",Cancel:"Otkažite","No matches found":"Nema rezultata",Posts:"Objave","Search posts, tags and authors":"Pretražite objave, tag-ove i autore","Show more results":"Prikažite više rezultata",Tags:"Tag-ovi"},qp={Authors:"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"},Wp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Kp={Authors:"ஆசிரியர்கள்",Cancel:"ரத்து செய்","No matches found":"பொருத்தங்கள் எதுவும் இல்லை",Posts:"பதிவுகள்","Search posts, tags and authors":"பதிவுகள், குறிச்சொற்கள் மற்றும் ஆசிரியர்களைத் தேடுங்கள்","Show more results":"மேலும் முடிவுகளைக் காட்டு",Tags:"குறிச்சொற்கள்"},Gp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Qp={Authors:"Yazarlar",Cancel:"İptal","No matches found":"Eşleşme bulunamadı",Posts:"Yazılar","Search posts, tags and authors":"Yazıları, etiketleri ve yazarları ara","Show more results":"Daha fazla sonuç göster",Tags:"Etiketler"},Jp={Authors:"Автори",Cancel:"Скасувати","No matches found":"Збігів не знайдено",Posts:"Публікації","Search posts, tags and authors":"Шукайте публікацій, теги та авторів","Show more results":"Показати більше результатів",Tags:"Теги"},Yp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Xp={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Zp={Authors:"Tác giả",Cancel:"Hủy","No matches found":"Không tìm thấy",Posts:"Bài viết","Search posts, tags and authors":"Tìm bài viết, thẻ và tác giả","Show more results":"Xem thêm kết quả",Tags:"Thẻ"},eg={Authors:"作者",Cancel:"取消","No matches found":"無相符結果",Posts:"文章","Search posts, tags and authors":"搜尋文章、標籤與作者","Show more results":"更多結果",Tags:"標籤"},tg={Authors:"作者",Cancel:"取消","No matches found":"未找到匹配项",Posts:"文章","Search posts, tags and authors":"搜索文章、标签和作者","Show more results":"显示更多结果",Tags:"标签"};var hu;function du(){return hu||(hu={"/ghost/i18n/locales/af/search.json":function(){return Gd},"/ghost/i18n/locales/ar/search.json":function(){return Qd},"/ghost/i18n/locales/bg/search.json":function(){return Jd},"/ghost/i18n/locales/bn/search.json":function(){return Yd},"/ghost/i18n/locales/bs/search.json":function(){return Xd},"/ghost/i18n/locales/ca/search.json":function(){return Zd},"/ghost/i18n/locales/cs/search.json":function(){return ep},"/ghost/i18n/locales/da/search.json":function(){return tp},"/ghost/i18n/locales/de-CH/search.json":function(){return np},"/ghost/i18n/locales/de/search.json":function(){return rp},"/ghost/i18n/locales/el/search.json":function(){return sp},"/ghost/i18n/locales/en/search.json":function(){return op},"/ghost/i18n/locales/eo/search.json":function(){return ip},"/ghost/i18n/locales/es/search.json":function(){return lp},"/ghost/i18n/locales/et/search.json":function(){return ap},"/ghost/i18n/locales/eu/search.json":function(){return up},"/ghost/i18n/locales/fa/search.json":function(){return cp},"/ghost/i18n/locales/fi/search.json":function(){return fp},"/ghost/i18n/locales/fr/search.json":function(){return hp},"/ghost/i18n/locales/gd/search.json":function(){return dp},"/ghost/i18n/locales/he/search.json":function(){return pp},"/ghost/i18n/locales/hi/search.json":function(){return gp},"/ghost/i18n/locales/hr/search.json":function(){return mp},"/ghost/i18n/locales/hu/search.json":function(){return yp},"/ghost/i18n/locales/id/search.json":function(){return vp},"/ghost/i18n/locales/is/search.json":function(){return wp},"/ghost/i18n/locales/it/search.json":function(){return Sp},"/ghost/i18n/locales/ja/search.json":function(){return xp},"/ghost/i18n/locales/ko/search.json":function(){return Cp},"/ghost/i18n/locales/kz/search.json":function(){return kp},"/ghost/i18n/locales/lt/search.json":function(){return Pp},"/ghost/i18n/locales/lv/search.json":function(){return $p},"/ghost/i18n/locales/mk/search.json":function(){return Ep},"/ghost/i18n/locales/mn/search.json":function(){return jp},"/ghost/i18n/locales/ms/search.json":function(){return Ap},"/ghost/i18n/locales/nb/search.json":function(){return Tp},"/ghost/i18n/locales/ne/search.json":function(){return Op},"/ghost/i18n/locales/nl/search.json":function(){return Np},"/ghost/i18n/locales/nn/search.json":function(){return Rp},"/ghost/i18n/locales/pa/search.json":function(){return _p},"/ghost/i18n/locales/pl/search.json":function(){return Lp},"/ghost/i18n/locales/pt-BR/search.json":function(){return bp},"/ghost/i18n/locales/pt/search.json":function(){return Ip},"/ghost/i18n/locales/ro/search.json":function(){return Fp},"/ghost/i18n/locales/ru/search.json":function(){return Mp},"/ghost/i18n/locales/si/search.json":function(){return zp},"/ghost/i18n/locales/sk/search.json":function(){return Dp},"/ghost/i18n/locales/sl/search.json":function(){return Up},"/ghost/i18n/locales/sq/search.json":function(){return Bp},"/ghost/i18n/locales/sr-Cyrl/search.json":function(){return Vp},"/ghost/i18n/locales/sr/search.json":function(){return Hp},"/ghost/i18n/locales/sv/search.json":function(){return qp},"/ghost/i18n/locales/sw/search.json":function(){return Wp},"/ghost/i18n/locales/ta/search.json":function(){return Kp},"/ghost/i18n/locales/th/search.json":function(){return Gp},"/ghost/i18n/locales/tr/search.json":function(){return Qp},"/ghost/i18n/locales/uk/search.json":function(){return Jp},"/ghost/i18n/locales/ur/search.json":function(){return Yp},"/ghost/i18n/locales/uz/search.json":function(){return Xp},"/ghost/i18n/locales/vi/search.json":function(){return Zp},"/ghost/i18n/locales/zh-Hant/search.json":function(){return eg},"/ghost/i18n/locales/zh/search.json":function(){return tg}})}function Nn(r){function s(i){var l=pu(i,r);if(l!==null)return du()[l]();throw new Error('Could not dynamically require "'+i+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}return s.resolve=function(i){var l=pu(i,r);return l!==null?l:require.resolve(i)},s}function pu(r,s){var i=ng(r);r=Ns(r);var l;r[0]==="/"&&(s="");for(var a=du(),h=["",".js",".json"];i?l=Ns(s+"/node_modules/"+r):l=Ns(s+"/"+r),!l.endsWith("/..");){for(var p=0;p<h.length;p++){var v=l+h[p];if(a[v])return v}if(!i)break;var g=Ns(s+"/..");if(g===s)break;s=g}return null}function ng(r){var s=r[0];if(s==="/"||s==="\\")return!1;var i=r[1],l=r[2];return!(s==="."&&(!i||i==="/"||i==="\\")||s==="."&&i==="."&&(!l||l==="/"||l==="\\")||i===":"&&(l==="/"||l==="\\"))}function Ns(r){r=r.replace(/\\/g,"/");for(var s=r.split("/"),i=s[0]==="",l=1;l<s.length;l++)(s[l]==="."||s[l]==="")&&s.splice(l--,1);for(var l=1;l<s.length;l++)s[l]===".."&&l>0&&s[l-1]!==".."&&s[l-1]!=="."&&(s.splice(--l,2),l--);return r=s.join("/"),i&&r[0]!=="/"?r="/"+r:r.length===0&&(r="."),r}var Xn={exports:{}},li,gu;function rg(){if(gu)return li;gu=1;const r=P=>typeof P=="string",s=()=>{let P,c;const d=new Promise((m,C)=>{P=m,c=C});return d.resolve=P,d.reject=c,d},i=P=>P==null?"":""+P,l=(P,c,d)=>{P.forEach(m=>{c[m]&&(d[m]=c[m])})},a=/###/g,h=P=>P&&P.indexOf("###")>-1?P.replace(a,"."):P,p=P=>!P||r(P),v=(P,c,d)=>{const m=r(c)?c.split("."):c;let C=0;for(;C<m.length-1;){if(p(P))return{};const E=h(m[C]);!P[E]&&d&&(P[E]=new d),Object.prototype.hasOwnProperty.call(P,E)?P=P[E]:P={},++C}return p(P)?{}:{obj:P,k:h(m[C])}},g=(P,c,d)=>{const{obj:m,k:C}=v(P,c,Object);if(m!==void 0||c.length===1){m[C]=d;return}let E=c[c.length-1],L=c.slice(0,c.length-1),D=v(P,L,Object);for(;D.obj===void 0&&L.length;)E=`${L[L.length-1]}.${E}`,L=L.slice(0,L.length-1),D=v(P,L,Object),D&&D.obj&&typeof D.obj[`${D.k}.${E}`]<"u"&&(D.obj=void 0);D.obj[`${D.k}.${E}`]=d},w=(P,c,d,m)=>{const{obj:C,k:E}=v(P,c,Object);C[E]=C[E]||[],C[E].push(d)},k=(P,c)=>{const{obj:d,k:m}=v(P,c);if(d)return d[m]},$=(P,c,d)=>{const m=k(P,d);return m!==void 0?m:k(c,d)},j=(P,c,d)=>{for(const m in c)m!=="__proto__"&&m!=="constructor"&&(m in P?r(P[m])||P[m]instanceof String||r(c[m])||c[m]instanceof String?d&&(P[m]=c[m]):j(P[m],c[m],d):P[m]=c[m]);return P},A=P=>P.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var z={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const _=P=>r(P)?P.replace(/[&<>"'\/]/g,c=>z[c]):P;class R{constructor(c){this.capacity=c,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(c){const d=this.regExpMap.get(c);if(d!==void 0)return d;const m=new RegExp(c);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(c,m),this.regExpQueue.push(c),m}}const q=[" ",",","?","!",";"],Q=new R(20),ue=(P,c,d)=>{c=c||"",d=d||"";const m=q.filter(L=>c.indexOf(L)<0&&d.indexOf(L)<0);if(m.length===0)return!0;const C=Q.getRegExp(`(${m.map(L=>L==="?"?"\\?":L).join("|")})`);let E=!C.test(P);if(!E){const L=P.indexOf(d);L>0&&!C.test(P.substring(0,L))&&(E=!0)}return E},pe=function(P,c){let d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!P)return;if(P[c])return P[c];const m=c.split(d);let C=P;for(let E=0;E<m.length;){if(!C||typeof C!="object")return;let L,D="";for(let B=E;B<m.length;++B)if(B!==E&&(D+=d),D+=m[B],L=C[D],L!==void 0){if(["string","number","boolean"].indexOf(typeof L)>-1&&B<m.length-1)continue;E+=B-E+1;break}C=L}return C},ce=P=>P&&P.replace("_","-"),ae={type:"logger",log(P){this.output("log",P)},warn(P){this.output("warn",P)},error(P){this.output("error",P)},output(P,c){console&&console[P]&&console[P].apply(console,c)}};class ne{constructor(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(c,d)}init(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=d.prefix||"i18next:",this.logger=c||ae,this.options=d,this.debug=d.debug}log(){for(var c=arguments.length,d=new Array(c),m=0;m<c;m++)d[m]=arguments[m];return this.forward(d,"log","",!0)}warn(){for(var c=arguments.length,d=new Array(c),m=0;m<c;m++)d[m]=arguments[m];return this.forward(d,"warn","",!0)}error(){for(var c=arguments.length,d=new Array(c),m=0;m<c;m++)d[m]=arguments[m];return this.forward(d,"error","")}deprecate(){for(var c=arguments.length,d=new Array(c),m=0;m<c;m++)d[m]=arguments[m];return this.forward(d,"warn","WARNING DEPRECATED: ",!0)}forward(c,d,m,C){return C&&!this.debug?null:(r(c[0])&&(c[0]=`${m}${this.prefix} ${c[0]}`),this.logger[d](c))}create(c){return new ne(this.logger,{prefix:`${this.prefix}:${c}:`,...this.options})}clone(c){return c=c||this.options,c.prefix=c.prefix||this.prefix,new ne(this.logger,c)}}var re=new ne;class fe{constructor(){this.observers={}}on(c,d){return c.split(" ").forEach(m=>{this.observers[m]||(this.observers[m]=new Map);const C=this.observers[m].get(d)||0;this.observers[m].set(d,C+1)}),this}off(c,d){if(this.observers[c]){if(!d){delete this.observers[c];return}this.observers[c].delete(d)}}emit(c){for(var d=arguments.length,m=new Array(d>1?d-1:0),C=1;C<d;C++)m[C-1]=arguments[C];this.observers[c]&&Array.from(this.observers[c].entries()).forEach(L=>{let[D,B]=L;for(let Z=0;Z<B;Z++)D(...m)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(L=>{let[D,B]=L;for(let Z=0;Z<B;Z++)D.apply(D,[c,...m])})}}class b extends fe{constructor(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=c||{},this.options=d,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(c){this.options.ns.indexOf(c)<0&&this.options.ns.push(c)}removeNamespaces(c){const d=this.options.ns.indexOf(c);d>-1&&this.options.ns.splice(d,1)}getResource(c,d,m){let C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const E=C.keySeparator!==void 0?C.keySeparator:this.options.keySeparator,L=C.ignoreJSONStructure!==void 0?C.ignoreJSONStructure:this.options.ignoreJSONStructure;let D;c.indexOf(".")>-1?D=c.split("."):(D=[c,d],m&&(Array.isArray(m)?D.push(...m):r(m)&&E?D.push(...m.split(E)):D.push(m)));const B=k(this.data,D);return!B&&!d&&!m&&c.indexOf(".")>-1&&(c=D[0],d=D[1],m=D.slice(2).join(".")),B||!L||!r(m)?B:pe(this.data&&this.data[c]&&this.data[c][d],m,E)}addResource(c,d,m,C){let E=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const L=E.keySeparator!==void 0?E.keySeparator:this.options.keySeparator;let D=[c,d];m&&(D=D.concat(L?m.split(L):m)),c.indexOf(".")>-1&&(D=c.split("."),C=d,d=D[1]),this.addNamespaces(d),g(this.data,D,C),E.silent||this.emit("added",c,d,m,C)}addResources(c,d,m){let C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const E in m)(r(m[E])||Array.isArray(m[E]))&&this.addResource(c,d,E,m[E],{silent:!0});C.silent||this.emit("added",c,d,m)}addResourceBundle(c,d,m,C,E){let L=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},D=[c,d];c.indexOf(".")>-1&&(D=c.split("."),C=m,m=d,d=D[1]),this.addNamespaces(d);let B=k(this.data,D)||{};L.skipCopy||(m=JSON.parse(JSON.stringify(m))),C?j(B,m,E):B={...B,...m},g(this.data,D,B),L.silent||this.emit("added",c,d,m)}removeResourceBundle(c,d){this.hasResourceBundle(c,d)&&delete this.data[c][d],this.removeNamespaces(d),this.emit("removed",c,d)}hasResourceBundle(c,d){return this.getResource(c,d)!==void 0}getResourceBundle(c,d){return d||(d=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(c,d)}:this.getResource(c,d)}getDataByLanguage(c){return this.data[c]}hasLanguageSomeTranslations(c){const d=this.getDataByLanguage(c);return!!(d&&Object.keys(d)||[]).find(C=>d[C]&&Object.keys(d[C]).length>0)}toJSON(){return this.data}}var M={processors:{},addPostProcessor(P){this.processors[P.name]=P},handle(P,c,d,m,C){return P.forEach(E=>{this.processors[E]&&(c=this.processors[E].process(c,d,m,C))}),c}};const K={};class se extends fe{constructor(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),l(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],c,this),this.options=d,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=re.create("translator")}changeLanguage(c){c&&(this.language=c)}exists(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(c==null)return!1;const m=this.resolve(c,d);return m&&m.res!==void 0}extractFromKey(c,d){let m=d.nsSeparator!==void 0?d.nsSeparator:this.options.nsSeparator;m===void 0&&(m=":");const C=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator;let E=d.ns||this.options.defaultNS||[];const L=m&&c.indexOf(m)>-1,D=!this.options.userDefinedKeySeparator&&!d.keySeparator&&!this.options.userDefinedNsSeparator&&!d.nsSeparator&&!ue(c,m,C);if(L&&!D){const B=c.match(this.interpolator.nestingRegexp);if(B&&B.length>0)return{key:c,namespaces:r(E)?[E]:E};const Z=c.split(m);(m!==C||m===C&&this.options.ns.indexOf(Z[0])>-1)&&(E=Z.shift()),c=Z.join(C)}return{key:c,namespaces:r(E)?[E]:E}}translate(c,d,m){if(typeof d!="object"&&this.options.overloadTranslationOptionHandler&&(d=this.options.overloadTranslationOptionHandler(arguments)),typeof d=="object"&&(d={...d}),d||(d={}),c==null)return"";Array.isArray(c)||(c=[String(c)]);const C=d.returnDetails!==void 0?d.returnDetails:this.options.returnDetails,E=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator,{key:L,namespaces:D}=this.extractFromKey(c[c.length-1],d),B=D[D.length-1],Z=d.lng||this.language,oe=d.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(Z&&Z.toLowerCase()==="cimode"){if(oe){const Ue=d.nsSeparator||this.options.nsSeparator;return C?{res:`${B}${Ue}${L}`,usedKey:L,exactUsedKey:L,usedLng:Z,usedNS:B,usedParams:this.getUsedParamsDetails(d)}:`${B}${Ue}${L}`}return C?{res:L,usedKey:L,exactUsedKey:L,usedLng:Z,usedNS:B,usedParams:this.getUsedParamsDetails(d)}:L}const me=this.resolve(c,d);let Y=me&&me.res;const Ce=me&&me.usedKey||L,Le=me&&me.exactUsedKey||L,Ke=Object.prototype.toString.apply(Y),ze=["[object Number]","[object Function]","[object RegExp]"],tt=d.joinArrays!==void 0?d.joinArrays:this.options.joinArrays,nt=!this.i18nFormat||this.i18nFormat.handleAsObject,bt=!r(Y)&&typeof Y!="boolean"&&typeof Y!="number";if(nt&&Y&&bt&&ze.indexOf(Ke)<0&&!(r(tt)&&Array.isArray(Y))){if(!d.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const Ue=this.options.returnedObjectHandler?this.options.returnedObjectHandler(Ce,Y,{...d,ns:D}):`key '${L} (${this.language})' returned an object instead of string.`;return C?(me.res=Ue,me.usedParams=this.getUsedParamsDetails(d),me):Ue}if(E){const Ue=Array.isArray(Y),gt=Ue?[]:{},vt=Ue?Le:Ce;for(const rt in Y)if(Object.prototype.hasOwnProperty.call(Y,rt)){const er=`${vt}${E}${rt}`;gt[rt]=this.translate(er,{...d,joinArrays:!1,ns:D}),gt[rt]===er&&(gt[rt]=Y[rt])}Y=gt}}else if(nt&&r(tt)&&Array.isArray(Y))Y=Y.join(tt),Y&&(Y=this.extendTranslation(Y,c,d,m));else{let Ue=!1,gt=!1;const vt=d.count!==void 0&&!r(d.count),rt=se.hasDefaultValue(d),er=vt?this.pluralResolver.getSuffix(Z,d.count,d):"",Nr=d.ordinal&&vt?this.pluralResolver.getSuffix(Z,d.count,{ordinal:!1}):"",tr=vt&&!d.ordinal&&d.count===0&&this.pluralResolver.shouldUseIntlApi(),Kt=tr&&d[`defaultValue${this.options.pluralSeparator}zero`]||d[`defaultValue${er}`]||d[`defaultValue${Nr}`]||d.defaultValue;!this.isValidLookup(Y)&&rt&&(Ue=!0,Y=Kt),this.isValidLookup(Y)||(gt=!0,Y=L);const sn=(d.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&>?void 0:Y,Et=rt&&Kt!==Y&&this.options.updateMissing;if(gt||Ue||Et){if(this.logger.log(Et?"updateKey":"missingKey",Z,B,L,Et?Kt:Y),E){const it=this.resolve(L,{...d,keySeparator:!1});it&&it.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let on=[];const Rn=this.languageUtils.getFallbackCodes(this.options.fallbackLng,d.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Rn&&Rn[0])for(let it=0;it<Rn.length;it++)on.push(Rn[it]);else this.options.saveMissingTo==="all"?on=this.languageUtils.toResolveHierarchy(d.lng||this.language):on.push(d.lng||this.language);const Rr=(it,zt,Gt)=>{const _r=rt&&Gt!==Y?Gt:sn;this.options.missingKeyHandler?this.options.missingKeyHandler(it,B,zt,_r,Et,d):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(it,B,zt,_r,Et,d),this.emit("missingKey",it,B,zt,Y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&vt?on.forEach(it=>{const zt=this.pluralResolver.getSuffixes(it,d);tr&&d[`defaultValue${this.options.pluralSeparator}zero`]&&zt.indexOf(`${this.options.pluralSeparator}zero`)<0&&zt.push(`${this.options.pluralSeparator}zero`),zt.forEach(Gt=>{Rr([it],L+Gt,d[`defaultValue${Gt}`]||Kt)})}):Rr(on,L,Kt))}Y=this.extendTranslation(Y,c,d,me,m),gt&&Y===L&&this.options.appendNamespaceToMissingKey&&(Y=`${B}:${L}`),(gt||Ue)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?Y=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${B}:${L}`:L,Ue?Y:void 0):Y=this.options.parseMissingKeyHandler(Y))}return C?(me.res=Y,me.usedParams=this.getUsedParamsDetails(d),me):Y}extendTranslation(c,d,m,C,E){var L=this;if(this.i18nFormat&&this.i18nFormat.parse)c=this.i18nFormat.parse(c,{...this.options.interpolation.defaultVariables,...m},m.lng||this.language||C.usedLng,C.usedNS,C.usedKey,{resolved:C});else if(!m.skipInterpolation){m.interpolation&&this.interpolator.init({...m,interpolation:{...this.options.interpolation,...m.interpolation}});const Z=r(c)&&(m&&m.interpolation&&m.interpolation.skipOnVariables!==void 0?m.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let oe;if(Z){const Y=c.match(this.interpolator.nestingRegexp);oe=Y&&Y.length}let me=m.replace&&!r(m.replace)?m.replace:m;if(this.options.interpolation.defaultVariables&&(me={...this.options.interpolation.defaultVariables,...me}),c=this.interpolator.interpolate(c,me,m.lng||this.language||C.usedLng,m),Z){const Y=c.match(this.interpolator.nestingRegexp),Ce=Y&&Y.length;oe<Ce&&(m.nest=!1)}!m.lng&&this.options.compatibilityAPI!=="v1"&&C&&C.res&&(m.lng=this.language||C.usedLng),m.nest!==!1&&(c=this.interpolator.nest(c,function(){for(var Y=arguments.length,Ce=new Array(Y),Le=0;Le<Y;Le++)Ce[Le]=arguments[Le];return E&&E[0]===Ce[0]&&!m.context?(L.logger.warn(`It seems you are nesting recursively key: ${Ce[0]} in key: ${d[0]}`),null):L.translate(...Ce,d)},m)),m.interpolation&&this.interpolator.reset()}const D=m.postProcess||this.options.postProcess,B=r(D)?[D]:D;return c!=null&&B&&B.length&&m.applyPostProcessor!==!1&&(c=M.handle(B,c,d,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...C,usedParams:this.getUsedParamsDetails(m)},...m}:m,this)),c}resolve(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m,C,E,L,D;return r(c)&&(c=[c]),c.forEach(B=>{if(this.isValidLookup(m))return;const Z=this.extractFromKey(B,d),oe=Z.key;C=oe;let me=Z.namespaces;this.options.fallbackNS&&(me=me.concat(this.options.fallbackNS));const Y=d.count!==void 0&&!r(d.count),Ce=Y&&!d.ordinal&&d.count===0&&this.pluralResolver.shouldUseIntlApi(),Le=d.context!==void 0&&(r(d.context)||typeof d.context=="number")&&d.context!=="",Ke=d.lngs?d.lngs:this.languageUtils.toResolveHierarchy(d.lng||this.language,d.fallbackLng);me.forEach(ze=>{this.isValidLookup(m)||(D=ze,!K[`${Ke[0]}-${ze}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(D)&&(K[`${Ke[0]}-${ze}`]=!0,this.logger.warn(`key "${C}" for languages "${Ke.join(", ")}" won't get resolved as namespace "${D}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),Ke.forEach(tt=>{if(this.isValidLookup(m))return;L=tt;const nt=[oe];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(nt,oe,tt,ze,d);else{let Ue;Y&&(Ue=this.pluralResolver.getSuffix(tt,d.count,d));const gt=`${this.options.pluralSeparator}zero`,vt=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(Y&&(nt.push(oe+Ue),d.ordinal&&Ue.indexOf(vt)===0&&nt.push(oe+Ue.replace(vt,this.options.pluralSeparator)),Ce&&nt.push(oe+gt)),Le){const rt=`${oe}${this.options.contextSeparator}${d.context}`;nt.push(rt),Y&&(nt.push(rt+Ue),d.ordinal&&Ue.indexOf(vt)===0&&nt.push(rt+Ue.replace(vt,this.options.pluralSeparator)),Ce&&nt.push(rt+gt))}}let bt;for(;bt=nt.pop();)this.isValidLookup(m)||(E=bt,m=this.getResource(tt,ze,bt,d))}))})}),{res:m,usedKey:C,exactUsedKey:E,usedLng:L,usedNS:D}}isValidLookup(c){return c!==void 0&&!(!this.options.returnNull&&c===null)&&!(!this.options.returnEmptyString&&c==="")}getResource(c,d,m){let C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(c,d,m,C):this.resourceStore.getResource(c,d,m,C)}getUsedParamsDetails(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const d=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],m=c.replace&&!r(c.replace);let C=m?c.replace:c;if(m&&typeof c.count<"u"&&(C.count=c.count),this.options.interpolation.defaultVariables&&(C={...this.options.interpolation.defaultVariables,...C}),!m){C={...C};for(const E of d)delete C[E]}return C}static hasDefaultValue(c){const d="defaultValue";for(const m in c)if(Object.prototype.hasOwnProperty.call(c,m)&&d===m.substring(0,d.length)&&c[m]!==void 0)return!0;return!1}}const he=P=>P.charAt(0).toUpperCase()+P.slice(1);class Se{constructor(c){this.options=c,this.supportedLngs=this.options.supportedLngs||!1,this.logger=re.create("languageUtils")}getScriptPartFromCode(c){if(c=ce(c),!c||c.indexOf("-")<0)return null;const d=c.split("-");return d.length===2||(d.pop(),d[d.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(d.join("-"))}getLanguagePartFromCode(c){if(c=ce(c),!c||c.indexOf("-")<0)return c;const d=c.split("-");return this.formatLanguageCode(d[0])}formatLanguageCode(c){if(r(c)&&c.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let C=Intl.getCanonicalLocales(c)[0];if(C&&this.options.lowerCaseLng&&(C=C.toLowerCase()),C)return C}catch{}const d=["hans","hant","latn","cyrl","cans","mong","arab"];let m=c.split("-");return this.options.lowerCaseLng?m=m.map(C=>C.toLowerCase()):m.length===2?(m[0]=m[0].toLowerCase(),m[1]=m[1].toUpperCase(),d.indexOf(m[1].toLowerCase())>-1&&(m[1]=he(m[1].toLowerCase()))):m.length===3&&(m[0]=m[0].toLowerCase(),m[1].length===2&&(m[1]=m[1].toUpperCase()),m[0]!=="sgn"&&m[2].length===2&&(m[2]=m[2].toUpperCase()),d.indexOf(m[1].toLowerCase())>-1&&(m[1]=he(m[1].toLowerCase())),d.indexOf(m[2].toLowerCase())>-1&&(m[2]=he(m[2].toLowerCase()))),m.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?c.toLowerCase():c}isSupportedCode(c){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(c=this.getLanguagePartFromCode(c)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(c)>-1}getBestMatchFromCodes(c){if(!c)return null;let d;return c.forEach(m=>{if(d)return;const C=this.formatLanguageCode(m);(!this.options.supportedLngs||this.isSupportedCode(C))&&(d=C)}),!d&&this.options.supportedLngs&&c.forEach(m=>{if(d)return;const C=this.getLanguagePartFromCode(m);if(this.isSupportedCode(C))return d=C;d=this.options.supportedLngs.find(E=>{if(E===C)return E;if(!(E.indexOf("-")<0&&C.indexOf("-")<0)&&(E.indexOf("-")>0&&C.indexOf("-")<0&&E.substring(0,E.indexOf("-"))===C||E.indexOf(C)===0&&C.length>1))return E})}),d||(d=this.getFallbackCodes(this.options.fallbackLng)[0]),d}getFallbackCodes(c,d){if(!c)return[];if(typeof c=="function"&&(c=c(d)),r(c)&&(c=[c]),Array.isArray(c))return c;if(!d)return c.default||[];let m=c[d];return m||(m=c[this.getScriptPartFromCode(d)]),m||(m=c[this.formatLanguageCode(d)]),m||(m=c[this.getLanguagePartFromCode(d)]),m||(m=c.default),m||[]}toResolveHierarchy(c,d){const m=this.getFallbackCodes(d||this.options.fallbackLng||[],c),C=[],E=L=>{L&&(this.isSupportedCode(L)?C.push(L):this.logger.warn(`rejecting language code not found in supportedLngs: ${L}`))};return r(c)&&(c.indexOf("-")>-1||c.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&E(this.formatLanguageCode(c)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&E(this.getScriptPartFromCode(c)),this.options.load!=="currentOnly"&&E(this.getLanguagePartFromCode(c))):r(c)&&E(this.formatLanguageCode(c)),m.forEach(L=>{C.indexOf(L)<0&&E(this.formatLanguageCode(L))}),C}}let Te=[{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}],S={1:P=>+(P>1),2:P=>+(P!=1),3:P=>0,4:P=>P%10==1&&P%100!=11?0:P%10>=2&&P%10<=4&&(P%100<10||P%100>=20)?1:2,5:P=>P==0?0:P==1?1:P==2?2:P%100>=3&&P%100<=10?3:P%100>=11?4:5,6:P=>P==1?0:P>=2&&P<=4?1:2,7:P=>P==1?0:P%10>=2&&P%10<=4&&(P%100<10||P%100>=20)?1:2,8:P=>P==1?0:P==2?1:P!=8&&P!=11?2:3,9:P=>+(P>=2),10:P=>P==1?0:P==2?1:P<7?2:P<11?3:4,11:P=>P==1||P==11?0:P==2||P==12?1:P>2&&P<20?2:3,12:P=>+(P%10!=1||P%100==11),13:P=>+(P!==0),14:P=>P==1?0:P==2?1:P==3?2:3,15:P=>P%10==1&&P%100!=11?0:P%10>=2&&(P%100<10||P%100>=20)?1:2,16:P=>P%10==1&&P%100!=11?0:P!==0?1:2,17:P=>P==1||P%10==1&&P%100!=11?0:1,18:P=>P==0?0:P==1?1:2,19:P=>P==1?0:P==0||P%100>1&&P%100<11?1:P%100>10&&P%100<20?2:3,20:P=>P==1?0:P==0||P%100>0&&P%100<20?1:2,21:P=>P%100==1?1:P%100==2?2:P%100==3||P%100==4?3:0,22:P=>P==1?0:P==2?1:(P<0||P>10)&&P%10==0?2:3};const O=["v1","v2","v3"],W=["v4"],ge={zero:0,one:1,two:2,few:3,many:4,other:5},V=()=>{const P={};return Te.forEach(c=>{c.lngs.forEach(d=>{P[d]={numbers:c.nr,plurals:S[c.fc]}})}),P};class ee{constructor(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=c,this.options=d,this.logger=re.create("pluralResolver"),(!this.options.compatibilityJSON||W.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=V(),this.pluralRulesCache={}}addRule(c,d){this.rules[c]=d}clearCache(){this.pluralRulesCache={}}getRule(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const m=ce(c==="dev"?"en":c),C=d.ordinal?"ordinal":"cardinal",E=JSON.stringify({cleanedCode:m,type:C});if(E in this.pluralRulesCache)return this.pluralRulesCache[E];let L;try{L=new Intl.PluralRules(m,{type:C})}catch{if(!c.match(/-|_/))return;const B=this.languageUtils.getLanguagePartFromCode(c);L=this.getRule(B,d)}return this.pluralRulesCache[E]=L,L}return this.rules[c]||this.rules[this.languageUtils.getLanguagePartFromCode(c)]}needsPlural(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const m=this.getRule(c,d);return this.shouldUseIntlApi()?m&&m.resolvedOptions().pluralCategories.length>1:m&&m.numbers.length>1}getPluralFormsOfKey(c,d){let m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(c,m).map(C=>`${d}${C}`)}getSuffixes(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const m=this.getRule(c,d);return m?this.shouldUseIntlApi()?m.resolvedOptions().pluralCategories.sort((C,E)=>ge[C]-ge[E]).map(C=>`${this.options.prepend}${d.ordinal?`ordinal${this.options.prepend}`:""}${C}`):m.numbers.map(C=>this.getSuffix(c,C,d)):[]}getSuffix(c,d){let m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const C=this.getRule(c,m);return C?this.shouldUseIntlApi()?`${this.options.prepend}${m.ordinal?`ordinal${this.options.prepend}`:""}${C.select(d)}`:this.getSuffixRetroCompatible(C,d):(this.logger.warn(`no plural rule found for: ${c}`),"")}getSuffixRetroCompatible(c,d){const m=c.noAbs?c.plurals(d):c.plurals(Math.abs(d));let C=c.numbers[m];this.options.simplifyPluralSuffix&&c.numbers.length===2&&c.numbers[0]===1&&(C===2?C="plural":C===1&&(C=""));const E=()=>this.options.prepend&&C.toString()?this.options.prepend+C.toString():C.toString();return this.options.compatibilityJSON==="v1"?C===1?"":typeof C=="number"?`_plural_${C.toString()}`:E():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&c.numbers.length===2&&c.numbers[0]===1?E():this.options.prepend&&m.toString()?this.options.prepend+m.toString():m.toString()}shouldUseIntlApi(){return!O.includes(this.options.compatibilityJSON)}}const G=function(P,c,d){let m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",C=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,E=$(P,c,d);return!E&&C&&r(d)&&(E=pe(P,d,m),E===void 0&&(E=pe(c,d,m))),E},H=P=>P.replace(/\$/g,"$$$$");class ie{constructor(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=re.create("interpolator"),this.options=c,this.format=c.interpolation&&c.interpolation.format||(d=>d),this.init(c)}init(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};c.interpolation||(c.interpolation={escapeValue:!0});const{escape:d,escapeValue:m,useRawValueToEscape:C,prefix:E,prefixEscaped:L,suffix:D,suffixEscaped:B,formatSeparator:Z,unescapeSuffix:oe,unescapePrefix:me,nestingPrefix:Y,nestingPrefixEscaped:Ce,nestingSuffix:Le,nestingSuffixEscaped:Ke,nestingOptionsSeparator:ze,maxReplaces:tt,alwaysFormat:nt}=c.interpolation;this.escape=d!==void 0?d:_,this.escapeValue=m!==void 0?m:!0,this.useRawValueToEscape=C!==void 0?C:!1,this.prefix=E?A(E):L||"{{",this.suffix=D?A(D):B||"}}",this.formatSeparator=Z||",",this.unescapePrefix=oe?"":me||"-",this.unescapeSuffix=this.unescapePrefix?"":oe||"",this.nestingPrefix=Y?A(Y):Ce||A("$t("),this.nestingSuffix=Le?A(Le):Ke||A(")"),this.nestingOptionsSeparator=ze||",",this.maxReplaces=tt||1e3,this.alwaysFormat=nt!==void 0?nt:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const c=(d,m)=>d&&d.source===m?(d.lastIndex=0,d):new RegExp(m,"g");this.regexp=c(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=c(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=c(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(c,d,m,C){let E,L,D;const B=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},Z=Ce=>{if(Ce.indexOf(this.formatSeparator)<0){const tt=G(d,B,Ce,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(tt,void 0,m,{...C,...d,interpolationkey:Ce}):tt}const Le=Ce.split(this.formatSeparator),Ke=Le.shift().trim(),ze=Le.join(this.formatSeparator).trim();return this.format(G(d,B,Ke,this.options.keySeparator,this.options.ignoreJSONStructure),ze,m,{...C,...d,interpolationkey:Ke})};this.resetRegExp();const oe=C&&C.missingInterpolationHandler||this.options.missingInterpolationHandler,me=C&&C.interpolation&&C.interpolation.skipOnVariables!==void 0?C.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:Ce=>H(Ce)},{regex:this.regexp,safeValue:Ce=>this.escapeValue?H(this.escape(Ce)):H(Ce)}].forEach(Ce=>{for(D=0;E=Ce.regex.exec(c);){const Le=E[1].trim();if(L=Z(Le),L===void 0)if(typeof oe=="function"){const ze=oe(c,E,C);L=r(ze)?ze:""}else if(C&&Object.prototype.hasOwnProperty.call(C,Le))L="";else if(me){L=E[0];continue}else this.logger.warn(`missed to pass in variable ${Le} for interpolating ${c}`),L="";else!r(L)&&!this.useRawValueToEscape&&(L=i(L));const Ke=Ce.safeValue(L);if(c=c.replace(E[0],Ke),me?(Ce.regex.lastIndex+=L.length,Ce.regex.lastIndex-=E[0].length):Ce.regex.lastIndex=0,D++,D>=this.maxReplaces)break}}),c}nest(c,d){let m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},C,E,L;const D=(B,Z)=>{const oe=this.nestingOptionsSeparator;if(B.indexOf(oe)<0)return B;const me=B.split(new RegExp(`${oe}[ ]*{`));let Y=`{${me[1]}`;B=me[0],Y=this.interpolate(Y,L);const Ce=Y.match(/'/g),Le=Y.match(/"/g);(Ce&&Ce.length%2===0&&!Le||Le.length%2!==0)&&(Y=Y.replace(/'/g,'"'));try{L=JSON.parse(Y),Z&&(L={...Z,...L})}catch(Ke){return this.logger.warn(`failed parsing options string in nesting for key ${B}`,Ke),`${B}${oe}${Y}`}return L.defaultValue&&L.defaultValue.indexOf(this.prefix)>-1&&delete L.defaultValue,B};for(;C=this.nestingRegexp.exec(c);){let B=[];L={...m},L=L.replace&&!r(L.replace)?L.replace:L,L.applyPostProcessor=!1,delete L.defaultValue;let Z=!1;if(C[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(C[1])){const oe=C[1].split(this.formatSeparator).map(me=>me.trim());C[1]=oe.shift(),B=oe,Z=!0}if(E=d(D.call(this,C[1].trim(),L),L),E&&C[0]===c&&!r(E))return E;r(E)||(E=i(E)),E||(this.logger.warn(`missed to resolve ${C[1]} for nesting ${c}`),E=""),Z&&(E=B.reduce((oe,me)=>this.format(oe,me,m.lng,{...m,interpolationkey:C[1].trim()}),E.trim())),c=c.replace(C[0],E),this.regexp.lastIndex=0}return c}}const Ne=P=>{let c=P.toLowerCase().trim();const d={};if(P.indexOf("(")>-1){const m=P.split("(");c=m[0].toLowerCase().trim();const C=m[1].substring(0,m[1].length-1);c==="currency"&&C.indexOf(":")<0?d.currency||(d.currency=C.trim()):c==="relativetime"&&C.indexOf(":")<0?d.range||(d.range=C.trim()):C.split(";").forEach(L=>{if(L){const[D,...B]=L.split(":"),Z=B.join(":").trim().replace(/^'+|'+$/g,""),oe=D.trim();d[oe]||(d[oe]=Z),Z==="false"&&(d[oe]=!1),Z==="true"&&(d[oe]=!0),isNaN(Z)||(d[oe]=parseInt(Z,10))}})}return{formatName:c,formatOptions:d}},De=P=>{const c={};return(d,m,C)=>{let E=C;C&&C.interpolationkey&&C.formatParams&&C.formatParams[C.interpolationkey]&&C[C.interpolationkey]&&(E={...E,[C.interpolationkey]:void 0});const L=m+JSON.stringify(E);let D=c[L];return D||(D=P(ce(m),C),c[L]=D),D(d)}};class pt{constructor(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=re.create("formatter"),this.options=c,this.formats={number:De((d,m)=>{const C=new Intl.NumberFormat(d,{...m});return E=>C.format(E)}),currency:De((d,m)=>{const C=new Intl.NumberFormat(d,{...m,style:"currency"});return E=>C.format(E)}),datetime:De((d,m)=>{const C=new Intl.DateTimeFormat(d,{...m});return E=>C.format(E)}),relativetime:De((d,m)=>{const C=new Intl.RelativeTimeFormat(d,{...m});return E=>C.format(E,m.range||"day")}),list:De((d,m)=>{const C=new Intl.ListFormat(d,{...m});return E=>C.format(E)})},this.init(c)}init(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=d.interpolation.formatSeparator||","}add(c,d){this.formats[c.toLowerCase().trim()]=d}addCached(c,d){this.formats[c.toLowerCase().trim()]=De(d)}format(c,d,m){let C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const E=d.split(this.formatSeparator);if(E.length>1&&E[0].indexOf("(")>1&&E[0].indexOf(")")<0&&E.find(D=>D.indexOf(")")>-1)){const D=E.findIndex(B=>B.indexOf(")")>-1);E[0]=[E[0],...E.splice(1,D)].join(this.formatSeparator)}return E.reduce((D,B)=>{const{formatName:Z,formatOptions:oe}=Ne(B);if(this.formats[Z]){let me=D;try{const Y=C&&C.formatParams&&C.formatParams[C.interpolationkey]||{},Ce=Y.locale||Y.lng||C.locale||C.lng||m;me=this.formats[Z](D,Ce,{...oe,...C,...Y})}catch(Y){this.logger.warn(Y)}return me}else this.logger.warn(`there was no format function for ${Z}`);return D},c)}}const Fe=(P,c)=>{P.pending[c]!==void 0&&(delete P.pending[c],P.pendingCount--)};class Me extends fe{constructor(c,d,m){let C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=c,this.store=d,this.services=m,this.languageUtils=m.languageUtils,this.options=C,this.logger=re.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=C.maxParallelReads||10,this.readingCalls=0,this.maxRetries=C.maxRetries>=0?C.maxRetries:5,this.retryTimeout=C.retryTimeout>=1?C.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(m,C.backend,C)}queueLoad(c,d,m,C){const E={},L={},D={},B={};return c.forEach(Z=>{let oe=!0;d.forEach(me=>{const Y=`${Z}|${me}`;!m.reload&&this.store.hasResourceBundle(Z,me)?this.state[Y]=2:this.state[Y]<0||(this.state[Y]===1?L[Y]===void 0&&(L[Y]=!0):(this.state[Y]=1,oe=!1,L[Y]===void 0&&(L[Y]=!0),E[Y]===void 0&&(E[Y]=!0),B[me]===void 0&&(B[me]=!0)))}),oe||(D[Z]=!0)}),(Object.keys(E).length||Object.keys(L).length)&&this.queue.push({pending:L,pendingCount:Object.keys(L).length,loaded:{},errors:[],callback:C}),{toLoad:Object.keys(E),pending:Object.keys(L),toLoadLanguages:Object.keys(D),toLoadNamespaces:Object.keys(B)}}loaded(c,d,m){const C=c.split("|"),E=C[0],L=C[1];d&&this.emit("failedLoading",E,L,d),!d&&m&&this.store.addResourceBundle(E,L,m,void 0,void 0,{skipCopy:!0}),this.state[c]=d?-1:2,d&&m&&(this.state[c]=0);const D={};this.queue.forEach(B=>{w(B.loaded,[E],L),Fe(B,c),d&&B.errors.push(d),B.pendingCount===0&&!B.done&&(Object.keys(B.loaded).forEach(Z=>{D[Z]||(D[Z]={});const oe=B.loaded[Z];oe.length&&oe.forEach(me=>{D[Z][me]===void 0&&(D[Z][me]=!0)})}),B.done=!0,B.errors.length?B.callback(B.errors):B.callback())}),this.emit("loaded",D),this.queue=this.queue.filter(B=>!B.done)}read(c,d,m){let C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,E=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,L=arguments.length>5?arguments[5]:void 0;if(!c.length)return L(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:c,ns:d,fcName:m,tried:C,wait:E,callback:L});return}this.readingCalls++;const D=(Z,oe)=>{if(this.readingCalls--,this.waitingReads.length>0){const me=this.waitingReads.shift();this.read(me.lng,me.ns,me.fcName,me.tried,me.wait,me.callback)}if(Z&&oe&&C<this.maxRetries){setTimeout(()=>{this.read.call(this,c,d,m,C+1,E*2,L)},E);return}L(Z,oe)},B=this.backend[m].bind(this.backend);if(B.length===2){try{const Z=B(c,d);Z&&typeof Z.then=="function"?Z.then(oe=>D(null,oe)).catch(D):D(null,Z)}catch(Z){D(Z)}return}return B(c,d,D)}prepareLoading(c,d){let m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},C=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."),C&&C();r(c)&&(c=this.languageUtils.toResolveHierarchy(c)),r(d)&&(d=[d]);const E=this.queueLoad(c,d,m,C);if(!E.toLoad.length)return E.pending.length||C(),null;E.toLoad.forEach(L=>{this.loadOne(L)})}load(c,d,m){this.prepareLoading(c,d,{},m)}reload(c,d,m){this.prepareLoading(c,d,{reload:!0},m)}loadOne(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const m=c.split("|"),C=m[0],E=m[1];this.read(C,E,"read",void 0,void 0,(L,D)=>{L&&this.logger.warn(`${d}loading namespace ${E} for language ${C} failed`,L),!L&&D&&this.logger.log(`${d}loaded namespace ${E} for language ${C}`,D),this.loaded(c,L,D)})}saveMissing(c,d,m,C,E){let L=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},D=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(d)){this.logger.warn(`did not save key "${m}" as the namespace "${d}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(m==null||m==="")){if(this.backend&&this.backend.create){const B={...L,isUpdate:E},Z=this.backend.create.bind(this.backend);if(Z.length<6)try{let oe;Z.length===5?oe=Z(c,d,m,C,B):oe=Z(c,d,m,C),oe&&typeof oe.then=="function"?oe.then(me=>D(null,me)).catch(D):D(null,oe)}catch(oe){D(oe)}else Z(c,d,m,C,D,B)}!c||!c[0]||this.store.addResource(c[0],d,m,C)}}}const Be=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:P=>{let c={};if(typeof P[1]=="object"&&(c=P[1]),r(P[1])&&(c.defaultValue=P[1]),r(P[2])&&(c.tDescription=P[2]),typeof P[2]=="object"||typeof P[3]=="object"){const d=P[3]||P[2];Object.keys(d).forEach(m=>{c[m]=d[m]})}return c},interpolation:{escapeValue:!0,format:P=>P,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Ie=P=>(r(P.ns)&&(P.ns=[P.ns]),r(P.fallbackLng)&&(P.fallbackLng=[P.fallbackLng]),r(P.fallbackNS)&&(P.fallbackNS=[P.fallbackNS]),P.supportedLngs&&P.supportedLngs.indexOf("cimode")<0&&(P.supportedLngs=P.supportedLngs.concat(["cimode"])),P),Ge=()=>{},yt=P=>{Object.getOwnPropertyNames(Object.getPrototypeOf(P)).forEach(d=>{typeof P[d]=="function"&&(P[d]=P[d].bind(P))})};class ot extends fe{constructor(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Ie(c),this.services={},this.logger=re,this.modules={external:[]},yt(this),d&&!this.isInitialized&&!c.isClone){if(!this.options.initImmediate)return this.init(c,d),this;setTimeout(()=>{this.init(c,d)},0)}}init(){var c=this;let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof d=="function"&&(m=d,d={}),!d.defaultNS&&d.defaultNS!==!1&&d.ns&&(r(d.ns)?d.defaultNS=d.ns:d.ns.indexOf("translation")<0&&(d.defaultNS=d.ns[0]));const C=Be();this.options={...C,...this.options,...Ie(d)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...C.interpolation,...this.options.interpolation}),d.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=d.keySeparator),d.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=d.nsSeparator);const E=oe=>oe?typeof oe=="function"?new oe:oe:null;if(!this.options.isClone){this.modules.logger?re.init(E(this.modules.logger),this.options):re.init(null,this.options);let oe;this.modules.formatter?oe=this.modules.formatter:typeof Intl<"u"&&(oe=pt);const me=new Se(this.options);this.store=new b(this.options.resources,this.options);const Y=this.services;Y.logger=re,Y.resourceStore=this.store,Y.languageUtils=me,Y.pluralResolver=new ee(me,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),oe&&(!this.options.interpolation.format||this.options.interpolation.format===C.interpolation.format)&&(Y.formatter=E(oe),Y.formatter.init(Y,this.options),this.options.interpolation.format=Y.formatter.format.bind(Y.formatter)),Y.interpolator=new ie(this.options),Y.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},Y.backendConnector=new Me(E(this.modules.backend),Y.resourceStore,Y,this.options),Y.backendConnector.on("*",function(Ce){for(var Le=arguments.length,Ke=new Array(Le>1?Le-1:0),ze=1;ze<Le;ze++)Ke[ze-1]=arguments[ze];c.emit(Ce,...Ke)}),this.modules.languageDetector&&(Y.languageDetector=E(this.modules.languageDetector),Y.languageDetector.init&&Y.languageDetector.init(Y,this.options.detection,this.options)),this.modules.i18nFormat&&(Y.i18nFormat=E(this.modules.i18nFormat),Y.i18nFormat.init&&Y.i18nFormat.init(this)),this.translator=new se(this.services,this.options),this.translator.on("*",function(Ce){for(var Le=arguments.length,Ke=new Array(Le>1?Le-1:0),ze=1;ze<Le;ze++)Ke[ze-1]=arguments[ze];c.emit(Ce,...Ke)}),this.modules.external.forEach(Ce=>{Ce.init&&Ce.init(this)})}if(this.format=this.options.interpolation.format,m||(m=Ge),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const oe=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);oe.length>0&&oe[0]!=="dev"&&(this.options.lng=oe[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(oe=>{this[oe]=function(){return c.store[oe](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(oe=>{this[oe]=function(){return c.store[oe](...arguments),c}});const B=s(),Z=()=>{const oe=(me,Y)=>{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),B.resolve(Y),m(me,Y)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return oe(null,this.t.bind(this));this.changeLanguage(this.options.lng,oe)};return this.options.resources||!this.options.initImmediate?Z():setTimeout(Z,0),B}loadResources(c){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ge;const C=r(c)?c:this.language;if(typeof c=="function"&&(m=c),!this.options.resources||this.options.partialBundledLanguages){if(C&&C.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return m();const E=[],L=D=>{if(!D||D==="cimode")return;this.services.languageUtils.toResolveHierarchy(D).forEach(Z=>{Z!=="cimode"&&E.indexOf(Z)<0&&E.push(Z)})};C?L(C):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(B=>L(B)),this.options.preload&&this.options.preload.forEach(D=>L(D)),this.services.backendConnector.load(E,this.options.ns,D=>{!D&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),m(D)})}else m(null)}reloadResources(c,d,m){const C=s();return typeof c=="function"&&(m=c,c=void 0),typeof d=="function"&&(m=d,d=void 0),c||(c=this.languages),d||(d=this.options.ns),m||(m=Ge),this.services.backendConnector.reload(c,d,E=>{C.resolve(),m(E)}),C}use(c){if(!c)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!c.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return c.type==="backend"&&(this.modules.backend=c),(c.type==="logger"||c.log&&c.warn&&c.error)&&(this.modules.logger=c),c.type==="languageDetector"&&(this.modules.languageDetector=c),c.type==="i18nFormat"&&(this.modules.i18nFormat=c),c.type==="postProcessor"&&M.addPostProcessor(c),c.type==="formatter"&&(this.modules.formatter=c),c.type==="3rdParty"&&this.modules.external.push(c),this}setResolvedLanguage(c){if(!(!c||!this.languages)&&!(["cimode","dev"].indexOf(c)>-1))for(let d=0;d<this.languages.length;d++){const m=this.languages[d];if(!(["cimode","dev"].indexOf(m)>-1)&&this.store.hasLanguageSomeTranslations(m)){this.resolvedLanguage=m;break}}}changeLanguage(c,d){var m=this;this.isLanguageChangingTo=c;const C=s();this.emit("languageChanging",c);const E=B=>{this.language=B,this.languages=this.services.languageUtils.toResolveHierarchy(B),this.resolvedLanguage=void 0,this.setResolvedLanguage(B)},L=(B,Z)=>{Z?(E(Z),this.translator.changeLanguage(Z),this.isLanguageChangingTo=void 0,this.emit("languageChanged",Z),this.logger.log("languageChanged",Z)):this.isLanguageChangingTo=void 0,C.resolve(function(){return m.t(...arguments)}),d&&d(B,function(){return m.t(...arguments)})},D=B=>{!c&&!B&&this.services.languageDetector&&(B=[]);const Z=r(B)?B:this.services.languageUtils.getBestMatchFromCodes(B);Z&&(this.language||E(Z),this.translator.language||this.translator.changeLanguage(Z),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(Z)),this.loadResources(Z,oe=>{L(oe,Z)})};return!c&&this.services.languageDetector&&!this.services.languageDetector.async?D(this.services.languageDetector.detect()):!c&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(D):this.services.languageDetector.detect(D):D(c),C}getFixedT(c,d,m){var C=this;const E=function(L,D){let B;if(typeof D!="object"){for(var Z=arguments.length,oe=new Array(Z>2?Z-2:0),me=2;me<Z;me++)oe[me-2]=arguments[me];B=C.options.overloadTranslationOptionHandler([L,D].concat(oe))}else B={...D};B.lng=B.lng||E.lng,B.lngs=B.lngs||E.lngs,B.ns=B.ns||E.ns,B.keyPrefix!==""&&(B.keyPrefix=B.keyPrefix||m||E.keyPrefix);const Y=C.options.keySeparator||".";let Ce;return B.keyPrefix&&Array.isArray(L)?Ce=L.map(Le=>`${B.keyPrefix}${Y}${Le}`):Ce=B.keyPrefix?`${B.keyPrefix}${Y}${L}`:L,C.t(Ce,B)};return r(c)?E.lng=c:E.lngs=c,E.ns=d,E.keyPrefix=m,E}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(c){this.options.defaultNS=c}hasLoadedNamespace(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const m=d.lng||this.resolvedLanguage||this.languages[0],C=this.options?this.options.fallbackLng:!1,E=this.languages[this.languages.length-1];if(m.toLowerCase()==="cimode")return!0;const L=(D,B)=>{const Z=this.services.backendConnector.state[`${D}|${B}`];return Z===-1||Z===0||Z===2};if(d.precheck){const D=d.precheck(this,L);if(D!==void 0)return D}return!!(this.hasResourceBundle(m,c)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||L(m,c)&&(!C||L(E,c)))}loadNamespaces(c,d){const m=s();return this.options.ns?(r(c)&&(c=[c]),c.forEach(C=>{this.options.ns.indexOf(C)<0&&this.options.ns.push(C)}),this.loadResources(C=>{m.resolve(),d&&d(C)}),m):(d&&d(),Promise.resolve())}loadLanguages(c,d){const m=s();r(c)&&(c=[c]);const C=this.options.preload||[],E=c.filter(L=>C.indexOf(L)<0&&this.services.languageUtils.isSupportedCode(L));return E.length?(this.options.preload=C.concat(E),this.loadResources(L=>{m.resolve(),d&&d(L)}),m):(d&&d(),Promise.resolve())}dir(c){if(c||(c=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!c)return"rtl";const d=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],m=this.services&&this.services.languageUtils||new Se(Be());return d.indexOf(m.getLanguagePartFromCode(c))>-1||c.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1?arguments[1]:void 0;return new ot(c,d)}cloneInstance(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ge;const m=c.forkResourceStore;m&&delete c.forkResourceStore;const C={...this.options,...c,isClone:!0},E=new ot(C);return(c.debug!==void 0||c.prefix!==void 0)&&(E.logger=E.logger.clone(c)),["store","services","language"].forEach(D=>{E[D]=this[D]}),E.services={...this.services},E.services.utils={hasLoadedNamespace:E.hasLoadedNamespace.bind(E)},m&&(E.store=new b(this.store.data,C),E.services.resourceStore=E.store),E.translator=new se(E.services,C),E.translator.on("*",function(D){for(var B=arguments.length,Z=new Array(B>1?B-1:0),oe=1;oe<B;oe++)Z[oe-1]=arguments[oe];E.emit(D,...Z)}),E.init(C,d),E.translator.options=C,E.translator.backendConnector.services.utils={hasLoadedNamespace:E.hasLoadedNamespace.bind(E)},E}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ze=ot.createInstance();return Ze.createInstance=ot.createInstance,li=Ze,li}const mu=Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})),Zn=qh(mu);var Rs={exports:{}},_s={},ai={exports:{}},yu;function sg(){return yu||(yu=1,(function(r){var s=Zn,i=Zn;function l(h){return i.existsSync(s.join(h,"package.json"))}function a(h,p){if(h=h||r.parent.filename,p=p||l,typeof h=="string"&&(h[h.length-1]!==s.sep&&(h+=s.sep),h=h.split(s.sep)),!h.length)throw new Error("package.json not found in path");h.pop();var v=h.join(s.sep);try{if(p(v))return v}catch{}return a(h,p)}r.exports=a})(ai)),ai.exports}var ui={exports:{}},ci,vu;function wu(){if(vu)return ci;vu=1;var r=Object.prototype.toString;return ci=function(i){var l=r.call(i),a=l==="[object Arguments]";return a||(a=l!=="[object Array]"&&i!==null&&typeof i=="object"&&typeof i.length=="number"&&i.length>=0&&r.call(i.callee)==="[object Function]"),a},ci}var fi,Su;function og(){if(Su)return fi;Su=1;var r;if(!Object.keys){var s=Object.prototype.hasOwnProperty,i=Object.prototype.toString,l=wu(),a=Object.prototype.propertyIsEnumerable,h=!a.call({toString:null},"toString"),p=a.call(function(){},"prototype"),v=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],g=function(j){var A=j.constructor;return A&&A.prototype===j},w={$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},k=(function(){if(typeof window>"u")return!1;for(var j in window)try{if(!w["$"+j]&&s.call(window,j)&&window[j]!==null&&typeof window[j]=="object")try{g(window[j])}catch{return!0}}catch{return!0}return!1})(),$=function(j){if(typeof window>"u"||!k)return g(j);try{return g(j)}catch{return!1}};r=function(A){var z=A!==null&&typeof A=="object",_=i.call(A)==="[object Function]",R=l(A),q=z&&i.call(A)==="[object String]",Q=[];if(!z&&!_&&!R)throw new TypeError("Object.keys called on a non-object");var ue=p&&_;if(q&&A.length>0&&!s.call(A,0))for(var pe=0;pe<A.length;++pe)Q.push(String(pe));if(R&&A.length>0)for(var ce=0;ce<A.length;++ce)Q.push(String(ce));else for(var ae in A)!(ue&&ae==="prototype")&&s.call(A,ae)&&Q.push(String(ae));if(h)for(var ne=$(A),re=0;re<v.length;++re)!(ne&&v[re]==="constructor")&&s.call(A,v[re])&&Q.push(v[re]);return Q}}return fi=r,fi}var hi,xu;function ig(){if(xu)return hi;xu=1;var r=Array.prototype.slice,s=wu(),i=Object.keys,l=i?function(p){return i(p)}:og(),a=Object.keys;return l.shim=function(){if(Object.keys){var p=(function(){var v=Object.keys(arguments);return v&&v.length===arguments.length})(1,2);p||(Object.keys=function(g){return s(g)?a(r.call(g)):a(g)})}else Object.keys=l;return Object.keys||l},hi=l,hi}var di,Cu;function ku(){return Cu||(Cu=1,di=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var s={},i=Symbol("test"),l=Object(i);if(typeof i=="string"||Object.prototype.toString.call(i)!=="[object Symbol]"||Object.prototype.toString.call(l)!=="[object Symbol]")return!1;var a=42;s[i]=a;for(var h in s)return!1;if(typeof Object.keys=="function"&&Object.keys(s).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(s).length!==0)return!1;var p=Object.getOwnPropertySymbols(s);if(p.length!==1||p[0]!==i||!Object.prototype.propertyIsEnumerable.call(s,i))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var v=Object.getOwnPropertyDescriptor(s,i);if(v.value!==a||v.enumerable!==!0)return!1}return!0}),di}var pi,Pu;function gi(){return Pu||(Pu=1,pi=Object),pi}var mi,$u;function lg(){return $u||($u=1,mi=Error),mi}var yi,Eu;function ag(){return Eu||(Eu=1,yi=EvalError),yi}var vi,ju;function ug(){return ju||(ju=1,vi=RangeError),vi}var wi,Au;function cg(){return Au||(Au=1,wi=ReferenceError),wi}var Si,Tu;function fg(){return Tu||(Tu=1,Si=SyntaxError),Si}var xi,Ou;function Nu(){return Ou||(Ou=1,xi=TypeError),xi}var Ci,Ru;function hg(){return Ru||(Ru=1,Ci=URIError),Ci}var ki,_u;function dg(){return _u||(_u=1,ki=Math.abs),ki}var Pi,Lu;function pg(){return Lu||(Lu=1,Pi=Math.floor),Pi}var $i,bu;function gg(){return bu||(bu=1,$i=Math.max),$i}var Ei,Iu;function mg(){return Iu||(Iu=1,Ei=Math.min),Ei}var ji,Fu;function yg(){return Fu||(Fu=1,ji=Math.pow),ji}var Ai,Mu;function vg(){return Mu||(Mu=1,Ai=Math.round),Ai}var Ti,zu;function wg(){return zu||(zu=1,Ti=Number.isNaN||function(s){return s!==s}),Ti}var Oi,Du;function Sg(){if(Du)return Oi;Du=1;var r=wg();return Oi=function(i){return r(i)||i===0?i:i<0?-1:1},Oi}var Ni,Uu;function xg(){return Uu||(Uu=1,Ni=Object.getOwnPropertyDescriptor),Ni}var Ri,Bu;function Vu(){if(Bu)return Ri;Bu=1;var r=xg();if(r)try{r([],"length")}catch{r=null}return Ri=r,Ri}var _i,Hu;function Cg(){if(Hu)return _i;Hu=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return _i=r,_i}var Li,qu;function kg(){if(qu)return Li;qu=1;var r=typeof Symbol<"u"&&Symbol,s=ku();return Li=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:s()},Li}var bi,Wu;function Ku(){return Wu||(Wu=1,bi=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),bi}var Ii,Gu;function Qu(){if(Gu)return Ii;Gu=1;var r=gi();return Ii=r.getPrototypeOf||null,Ii}var Fi,Ju;function Pg(){if(Ju)return Fi;Ju=1;var r="Function.prototype.bind called on incompatible ",s=Object.prototype.toString,i=Math.max,l="[object Function]",a=function(g,w){for(var k=[],$=0;$<g.length;$+=1)k[$]=g[$];for(var j=0;j<w.length;j+=1)k[j+g.length]=w[j];return k},h=function(g,w){for(var k=[],$=w,j=0;$<g.length;$+=1,j+=1)k[j]=g[$];return k},p=function(v,g){for(var w="",k=0;k<v.length;k+=1)w+=v[k],k+1<v.length&&(w+=g);return w};return Fi=function(g){var w=this;if(typeof w!="function"||s.apply(w)!==l)throw new TypeError(r+w);for(var k=h(arguments,1),$,j=function(){if(this instanceof $){var q=w.apply(this,a(k,arguments));return Object(q)===q?q:this}return w.apply(g,a(k,arguments))},A=i(0,w.length-k.length),z=[],_=0;_<A;_++)z[_]="$"+_;if($=Function("binder","return function ("+p(z,",")+"){ return binder.apply(this,arguments); }")(j),w.prototype){var R=function(){};R.prototype=w.prototype,$.prototype=new R,R.prototype=null}return $},Fi}var Mi,Yu;function Ls(){if(Yu)return Mi;Yu=1;var r=Pg();return Mi=Function.prototype.bind||r,Mi}var zi,Xu;function Di(){return Xu||(Xu=1,zi=Function.prototype.call),zi}var Ui,Zu;function ec(){return Zu||(Zu=1,Ui=Function.prototype.apply),Ui}var Bi,tc;function $g(){return tc||(tc=1,Bi=typeof Reflect<"u"&&Reflect&&Reflect.apply),Bi}var Vi,nc;function Eg(){if(nc)return Vi;nc=1;var r=Ls(),s=ec(),i=Di(),l=$g();return Vi=l||r.call(i,s),Vi}var Hi,rc;function sc(){if(rc)return Hi;rc=1;var r=Ls(),s=Nu(),i=Di(),l=Eg();return Hi=function(h){if(h.length<1||typeof h[0]!="function")throw new s("a function is required");return l(r,i,h)},Hi}var qi,oc;function jg(){if(oc)return qi;oc=1;var r=sc(),s=Vu(),i;try{i=[].__proto__===Array.prototype}catch(p){if(!p||typeof p!="object"||!("code"in p)||p.code!=="ERR_PROTO_ACCESS")throw p}var l=!!i&&s&&s(Object.prototype,"__proto__"),a=Object,h=a.getPrototypeOf;return qi=l&&typeof l.get=="function"?r([l.get]):typeof h=="function"?function(v){return h(v==null?v:a(v))}:!1,qi}var Wi,ic;function Ag(){if(ic)return Wi;ic=1;var r=Ku(),s=Qu(),i=jg();return Wi=r?function(a){return r(a)}:s?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return s(a)}:i?function(a){return i(a)}:null,Wi}var Ki,lc;function Tg(){if(lc)return Ki;lc=1;var r=Function.prototype.call,s=Object.prototype.hasOwnProperty,i=Ls();return Ki=i.call(r,s),Ki}var Gi,ac;function Og(){if(ac)return Gi;ac=1;var r,s=gi(),i=lg(),l=ag(),a=ug(),h=cg(),p=fg(),v=Nu(),g=hg(),w=dg(),k=pg(),$=gg(),j=mg(),A=yg(),z=vg(),_=Sg(),R=Function,q=function(Fe){try{return R('"use strict"; return ('+Fe+").constructor;")()}catch{}},Q=Vu(),ue=Cg(),pe=function(){throw new v},ce=Q?(function(){try{return arguments.callee,pe}catch{try{return Q(arguments,"callee").get}catch{return pe}}})():pe,ae=kg()(),ne=Ag(),re=Qu(),fe=Ku(),b=ec(),M=Di(),K={},se=typeof Uint8Array>"u"||!ne?r:ne(Uint8Array),he={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":ae&&ne?ne([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":K,"%AsyncGenerator%":K,"%AsyncGeneratorFunction%":K,"%AsyncIteratorPrototype%":K,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":l,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":R,"%GeneratorFunction%":K,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ae&&ne?ne(ne([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ae||!ne?r:ne(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":s,"%Object.getOwnPropertyDescriptor%":Q,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":a,"%ReferenceError%":h,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ae||!ne?r:ne(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ae&&ne?ne(""[Symbol.iterator]()):r,"%Symbol%":ae?Symbol:r,"%SyntaxError%":p,"%ThrowTypeError%":ce,"%TypedArray%":se,"%TypeError%":v,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":g,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":M,"%Function.prototype.apply%":b,"%Object.defineProperty%":ue,"%Object.getPrototypeOf%":re,"%Math.abs%":w,"%Math.floor%":k,"%Math.max%":$,"%Math.min%":j,"%Math.pow%":A,"%Math.round%":z,"%Math.sign%":_,"%Reflect.getPrototypeOf%":fe};if(ne)try{null.error}catch(Fe){var Se=ne(ne(Fe));he["%Error.prototype%"]=Se}var Te=function Fe(Me){var Be;if(Me==="%AsyncFunction%")Be=q("async function () {}");else if(Me==="%GeneratorFunction%")Be=q("function* () {}");else if(Me==="%AsyncGeneratorFunction%")Be=q("async function* () {}");else if(Me==="%AsyncGenerator%"){var Ie=Fe("%AsyncGeneratorFunction%");Ie&&(Be=Ie.prototype)}else if(Me==="%AsyncIteratorPrototype%"){var Ge=Fe("%AsyncGenerator%");Ge&&ne&&(Be=ne(Ge.prototype))}return he[Me]=Be,Be},S={__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"]},O=Ls(),W=Tg(),ge=O.call(M,Array.prototype.concat),V=O.call(b,Array.prototype.splice),ee=O.call(M,String.prototype.replace),G=O.call(M,String.prototype.slice),H=O.call(M,RegExp.prototype.exec),ie=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ne=/\\(\\)?/g,De=function(Me){var Be=G(Me,0,1),Ie=G(Me,-1);if(Be==="%"&&Ie!=="%")throw new p("invalid intrinsic syntax, expected closing `%`");if(Ie==="%"&&Be!=="%")throw new p("invalid intrinsic syntax, expected opening `%`");var Ge=[];return ee(Me,ie,function(yt,ot,Ze,P){Ge[Ge.length]=Ze?ee(P,Ne,"$1"):ot||yt}),Ge},pt=function(Me,Be){var Ie=Me,Ge;if(W(S,Ie)&&(Ge=S[Ie],Ie="%"+Ge[0]+"%"),W(he,Ie)){var yt=he[Ie];if(yt===K&&(yt=Te(Ie)),typeof yt>"u"&&!Be)throw new v("intrinsic "+Me+" exists, but is not available. Please file an issue!");return{alias:Ge,name:Ie,value:yt}}throw new p("intrinsic "+Me+" does not exist!")};return Gi=function(Me,Be){if(typeof Me!="string"||Me.length===0)throw new v("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Be!="boolean")throw new v('"allowMissing" argument must be a boolean');if(H(/^%?[^%]*%?$/,Me)===null)throw new p("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Ie=De(Me),Ge=Ie.length>0?Ie[0]:"",yt=pt("%"+Ge+"%",Be),ot=yt.name,Ze=yt.value,P=!1,c=yt.alias;c&&(Ge=c[0],V(Ie,ge([0,1],c)));for(var d=1,m=!0;d<Ie.length;d+=1){var C=Ie[d],E=G(C,0,1),L=G(C,-1);if((E==='"'||E==="'"||E==="`"||L==='"'||L==="'"||L==="`")&&E!==L)throw new p("property names with quotes must have matching quotes");if((C==="constructor"||!m)&&(P=!0),Ge+="."+C,ot="%"+Ge+"%",W(he,ot))Ze=he[ot];else if(Ze!=null){if(!(C in Ze)){if(!Be)throw new v("base intrinsic for "+Me+" exists, but the property is not available.");return}if(Q&&d+1>=Ie.length){var D=Q(Ze,C);m=!!D,m&&"get"in D&&!("originalValue"in D.get)?Ze=D.get:Ze=Ze[C]}else m=W(Ze,C),Ze=Ze[C];m&&!P&&(he[ot]=Ze)}}return Ze},Gi}var Qi,uc;function Ng(){if(uc)return Qi;uc=1;var r=Og(),s=sc(),i=s([r("%String.prototype.indexOf%")]);return Qi=function(a,h){var p=r(a,!!h);return typeof p=="function"&&i(a,".prototype.")>-1?s([p]):p},Qi}var Ji,cc;function Rg(){if(cc)return Ji;cc=1;var r=ig(),s=ku()(),i=Ng(),l=gi(),a=i("Array.prototype.push"),h=i("Object.prototype.propertyIsEnumerable"),p=s?l.getOwnPropertySymbols:null;return Ji=function(g,w){if(g==null)throw new TypeError("target must be an object");var k=l(g);if(arguments.length===1)return k;for(var $=1;$<arguments.length;++$){var j=l(arguments[$]),A=r(j),z=s&&(l.getOwnPropertySymbols||p);if(z)for(var _=z(j),R=0;R<_.length;++R){var q=_[R];h(j,q)&&a(A,q)}for(var Q=0;Q<A.length;++Q){var ue=A[Q];if(h(j,ue)){var pe=j[ue];k[ue]=pe}}}return k},Ji}var Yi,fc;function _g(){if(fc)return Yi;fc=1;var r=Rg(),s=function(){if(!Object.assign)return!1;for(var l="abcdefghijklmnopqrst",a=l.split(""),h={},p=0;p<a.length;++p)h[a[p]]=a[p];var v=Object.assign({},h),g="";for(var w in v)g+=w;return l!==g},i=function(){if(!Object.assign||!Object.preventExtensions)return!1;var l=Object.preventExtensions({1:2});try{Object.assign(l,"xy")}catch{return l[1]==="y"}return!1};return Yi=function(){return!Object.assign||s()||i()?r:Object.assign},Yi}var Xi={},Zi,hc;function Lg(){return hc||(hc=1,Zi=function(s){return s&&typeof s=="object"&&typeof s.copy=="function"&&typeof s.fill=="function"&&typeof s.readUInt8=="function"}),Zi}var bs={exports:{}},dc;function bg(){return dc||(dc=1,typeof Object.create=="function"?bs.exports=function(s,i){s.super_=i,s.prototype=Object.create(i.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}})}:bs.exports=function(s,i){s.super_=i;var l=function(){};l.prototype=i.prototype,s.prototype=new l,s.prototype.constructor=s}),bs.exports}var pc;function Ig(){return pc||(pc=1,(function(r){var s=/%[sdj%]/g;r.format=function(S){if(!ue(S)){for(var O=[],W=0;W<arguments.length;W++)O.push(a(arguments[W]));return O.join(" ")}for(var W=1,ge=arguments,V=ge.length,ee=String(S).replace(s,function(H){if(H==="%%")return"%";if(W>=V)return H;switch(H){case"%s":return String(ge[W++]);case"%d":return Number(ge[W++]);case"%j":try{return JSON.stringify(ge[W++])}catch{return"[Circular]"}default:return H}}),G=ge[W];W<V;G=ge[++W])R(G)||!ne(G)?ee+=" "+G:ee+=" "+a(G);return ee},r.deprecate=function(S,O){if(ce(Er.process))return function(){return r.deprecate(S,O).apply(this,arguments)};if(process.noDeprecation===!0)return S;var W=!1;function ge(){if(!W){if(process.throwDeprecation)throw new Error(O);process.traceDeprecation?console.trace(O):console.error(O),W=!0}return S.apply(this,arguments)}return ge};var i={},l;r.debuglog=function(S){if(ce(l)&&(l=process.env.NODE_DEBUG||""),S=S.toUpperCase(),!i[S])if(new RegExp("\\b"+S+"\\b","i").test(l)){var O=process.pid;i[S]=function(){var W=r.format.apply(r,arguments);console.error("%s %d: %s",S,O,W)}}else i[S]=function(){};return i[S]};function a(S,O){var W={seen:[],stylize:p};return arguments.length>=3&&(W.depth=arguments[2]),arguments.length>=4&&(W.colors=arguments[3]),_(O)?W.showHidden=O:O&&r._extend(W,O),ce(W.showHidden)&&(W.showHidden=!1),ce(W.depth)&&(W.depth=2),ce(W.colors)&&(W.colors=!1),ce(W.customInspect)&&(W.customInspect=!0),W.colors&&(W.stylize=h),g(W,S,W.depth)}r.inspect=a,a.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]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function h(S,O){var W=a.styles[O];return W?"\x1B["+a.colors[W][0]+"m"+S+"\x1B["+a.colors[W][1]+"m":S}function p(S,O){return S}function v(S){var O={};return S.forEach(function(W,ge){O[W]=!0}),O}function g(S,O,W){if(S.customInspect&&O&&b(O.inspect)&&O.inspect!==r.inspect&&!(O.constructor&&O.constructor.prototype===O)){var ge=O.inspect(W,S);return ue(ge)||(ge=g(S,ge,W)),ge}var V=w(S,O);if(V)return V;var ee=Object.keys(O),G=v(ee);if(S.showHidden&&(ee=Object.getOwnPropertyNames(O)),fe(O)&&(ee.indexOf("message")>=0||ee.indexOf("description")>=0))return k(O);if(ee.length===0){if(b(O)){var H=O.name?": "+O.name:"";return S.stylize("[Function"+H+"]","special")}if(ae(O))return S.stylize(RegExp.prototype.toString.call(O),"regexp");if(re(O))return S.stylize(Date.prototype.toString.call(O),"date");if(fe(O))return k(O)}var ie="",Ne=!1,De=["{","}"];if(z(O)&&(Ne=!0,De=["[","]"]),b(O)){var pt=O.name?": "+O.name:"";ie=" [Function"+pt+"]"}if(ae(O)&&(ie=" "+RegExp.prototype.toString.call(O)),re(O)&&(ie=" "+Date.prototype.toUTCString.call(O)),fe(O)&&(ie=" "+k(O)),ee.length===0&&(!Ne||O.length==0))return De[0]+ie+De[1];if(W<0)return ae(O)?S.stylize(RegExp.prototype.toString.call(O),"regexp"):S.stylize("[Object]","special");S.seen.push(O);var Fe;return Ne?Fe=$(S,O,W,G,ee):Fe=ee.map(function(Me){return j(S,O,W,G,Me,Ne)}),S.seen.pop(),A(Fe,ie,De)}function w(S,O){if(ce(O))return S.stylize("undefined","undefined");if(ue(O)){var W="'"+JSON.stringify(O).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return S.stylize(W,"string")}if(Q(O))return S.stylize(""+O,"number");if(_(O))return S.stylize(""+O,"boolean");if(R(O))return S.stylize("null","null")}function k(S){return"["+Error.prototype.toString.call(S)+"]"}function $(S,O,W,ge,V){for(var ee=[],G=0,H=O.length;G<H;++G)Te(O,String(G))?ee.push(j(S,O,W,ge,String(G),!0)):ee.push("");return V.forEach(function(ie){ie.match(/^\d+$/)||ee.push(j(S,O,W,ge,ie,!0))}),ee}function j(S,O,W,ge,V,ee){var G,H,ie;if(ie=Object.getOwnPropertyDescriptor(O,V)||{value:O[V]},ie.get?ie.set?H=S.stylize("[Getter/Setter]","special"):H=S.stylize("[Getter]","special"):ie.set&&(H=S.stylize("[Setter]","special")),Te(ge,V)||(G="["+V+"]"),H||(S.seen.indexOf(ie.value)<0?(R(W)?H=g(S,ie.value,null):H=g(S,ie.value,W-1),H.indexOf(`
|
|
19
|
+
`)>-1&&(ee?H=H.split(`
|
|
20
|
+
`).map(function(Ne){return" "+Ne}).join(`
|
|
21
|
+
`).substr(2):H=`
|
|
22
|
+
`+H.split(`
|
|
23
|
+
`).map(function(Ne){return" "+Ne}).join(`
|
|
24
|
+
`))):H=S.stylize("[Circular]","special")),ce(G)){if(ee&&V.match(/^\d+$/))return H;G=JSON.stringify(""+V),G.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(G=G.substr(1,G.length-2),G=S.stylize(G,"name")):(G=G.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),G=S.stylize(G,"string"))}return G+": "+H}function A(S,O,W){var ge=S.reduce(function(V,ee){return ee.indexOf(`
|
|
25
|
+
`)>=0,V+ee.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ge>60?W[0]+(O===""?"":O+`
|
|
26
|
+
`)+" "+S.join(`,
|
|
27
|
+
`)+" "+W[1]:W[0]+O+" "+S.join(", ")+" "+W[1]}function z(S){return Array.isArray(S)}r.isArray=z;function _(S){return typeof S=="boolean"}r.isBoolean=_;function R(S){return S===null}r.isNull=R;function q(S){return S==null}r.isNullOrUndefined=q;function Q(S){return typeof S=="number"}r.isNumber=Q;function ue(S){return typeof S=="string"}r.isString=ue;function pe(S){return typeof S=="symbol"}r.isSymbol=pe;function ce(S){return S===void 0}r.isUndefined=ce;function ae(S){return ne(S)&&K(S)==="[object RegExp]"}r.isRegExp=ae;function ne(S){return typeof S=="object"&&S!==null}r.isObject=ne;function re(S){return ne(S)&&K(S)==="[object Date]"}r.isDate=re;function fe(S){return ne(S)&&(K(S)==="[object Error]"||S instanceof Error)}r.isError=fe;function b(S){return typeof S=="function"}r.isFunction=b;function M(S){return S===null||typeof S=="boolean"||typeof S=="number"||typeof S=="string"||typeof S=="symbol"||typeof S>"u"}r.isPrimitive=M,r.isBuffer=Lg();function K(S){return Object.prototype.toString.call(S)}function se(S){return S<10?"0"+S.toString(10):S.toString(10)}var he=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Se(){var S=new Date,O=[se(S.getHours()),se(S.getMinutes()),se(S.getSeconds())].join(":");return[S.getDate(),he[S.getMonth()],O].join(" ")}r.log=function(){console.log("%s - %s",Se(),r.format.apply(r,arguments))},r.inherits=bg(),r._extend=function(S,O){if(!O||!ne(O))return S;for(var W=Object.keys(O),ge=W.length;ge--;)S[W[ge]]=O[W[ge]];return S};function Te(S,O){return Object.prototype.hasOwnProperty.call(S,O)}})(Xi)),Xi}var gc;function Fg(){if(gc)return ui.exports;gc=1;var r=_g()();function s(b,M){if(b===M)return 0;for(var K=b.length,se=M.length,he=0,Se=Math.min(K,se);he<Se;++he)if(b[he]!==M[he]){K=b[he],se=M[he];break}return K<se?-1:se<K?1:0}function i(b){return Er.Buffer&&typeof Er.Buffer.isBuffer=="function"?Er.Buffer.isBuffer(b):!!(b!=null&&b._isBuffer)}var l=Ig(),a=Object.prototype.hasOwnProperty,h=Array.prototype.slice,p=(function(){return(function(){}).name==="foo"})();function v(b){return Object.prototype.toString.call(b)}function g(b){return i(b)||typeof Er.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(b):b?!!(b instanceof DataView||b.buffer&&b.buffer instanceof ArrayBuffer):!1}var w=ui.exports=R,k=/\s*function\s+([^\(\s]*)\s*/;function $(b){if(l.isFunction(b)){if(p)return b.name;var M=b.toString(),K=M.match(k);return K&&K[1]}}w.AssertionError=function(M){this.name="AssertionError",this.actual=M.actual,this.expected=M.expected,this.operator=M.operator,M.message?(this.message=M.message,this.generatedMessage=!1):(this.message=z(this),this.generatedMessage=!0);var K=M.stackStartFunction||_;if(Error.captureStackTrace)Error.captureStackTrace(this,K);else{var se=new Error;if(se.stack){var he=se.stack,Se=$(K),Te=he.indexOf(`
|
|
28
|
+
`+Se);if(Te>=0){var S=he.indexOf(`
|
|
29
|
+
`,Te+1);he=he.substring(S+1)}this.stack=he}}},l.inherits(w.AssertionError,Error);function j(b,M){return typeof b=="string"?b.length<M?b:b.slice(0,M):b}function A(b){if(p||!l.isFunction(b))return l.inspect(b);var M=$(b),K=M?": "+M:"";return"[Function"+K+"]"}function z(b){return j(A(b.actual),128)+" "+b.operator+" "+j(A(b.expected),128)}function _(b,M,K,se,he){throw new w.AssertionError({message:K,actual:b,expected:M,operator:se,stackStartFunction:he})}w.fail=_;function R(b,M){b||_(b,!0,M,"==",w.ok)}w.ok=R,w.equal=function(M,K,se){M!=K&&_(M,K,se,"==",w.equal)},w.notEqual=function(M,K,se){M==K&&_(M,K,se,"!=",w.notEqual)},w.deepEqual=function(M,K,se){q(M,K,!1)||_(M,K,se,"deepEqual",w.deepEqual)},w.deepStrictEqual=function(M,K,se){q(M,K,!0)||_(M,K,se,"deepStrictEqual",w.deepStrictEqual)};function q(b,M,K,se){if(b===M)return!0;if(i(b)&&i(M))return s(b,M)===0;if(l.isDate(b)&&l.isDate(M))return b.getTime()===M.getTime();if(l.isRegExp(b)&&l.isRegExp(M))return b.source===M.source&&b.global===M.global&&b.multiline===M.multiline&&b.lastIndex===M.lastIndex&&b.ignoreCase===M.ignoreCase;if((b===null||typeof b!="object")&&(M===null||typeof M!="object"))return K?b===M:b==M;if(g(b)&&g(M)&&v(b)===v(M)&&!(b instanceof Float32Array||b instanceof Float64Array))return s(new Uint8Array(b.buffer),new Uint8Array(M.buffer))===0;if(i(b)!==i(M))return!1;se=se||{actual:[],expected:[]};var he=se.actual.indexOf(b);return he!==-1&&he===se.expected.indexOf(M)?!0:(se.actual.push(b),se.expected.push(M),ue(b,M,K,se))}function Q(b){return Object.prototype.toString.call(b)=="[object Arguments]"}function ue(b,M,K,se){if(b==null||M===null||M===void 0)return!1;if(l.isPrimitive(b)||l.isPrimitive(M))return b===M;if(K&&Object.getPrototypeOf(b)!==Object.getPrototypeOf(M))return!1;var he=Q(b),Se=Q(M);if(he&&!Se||!he&&Se)return!1;if(he)return b=h.call(b),M=h.call(M),q(b,M,K);var Te=fe(b),S=fe(M),O,W;if(Te.length!==S.length)return!1;for(Te.sort(),S.sort(),W=Te.length-1;W>=0;W--)if(Te[W]!==S[W])return!1;for(W=Te.length-1;W>=0;W--)if(O=Te[W],!q(b[O],M[O],K,se))return!1;return!0}w.notDeepEqual=function(M,K,se){q(M,K,!1)&&_(M,K,se,"notDeepEqual",w.notDeepEqual)},w.notDeepStrictEqual=pe;function pe(b,M,K){q(b,M,!0)&&_(b,M,K,"notDeepStrictEqual",pe)}w.strictEqual=function(M,K,se){M!==K&&_(M,K,se,"===",w.strictEqual)},w.notStrictEqual=function(M,K,se){M===K&&_(M,K,se,"!==",w.notStrictEqual)};function ce(b,M){if(!b||!M)return!1;if(Object.prototype.toString.call(M)=="[object RegExp]")return M.test(b);try{if(b instanceof M)return!0}catch{}return Error.isPrototypeOf(M)?!1:M.call({},b)===!0}function ae(b){var M;try{b()}catch(K){M=K}return M}function ne(b,M,K,se){var he;if(typeof M!="function")throw new TypeError('"block" argument must be a function');typeof K=="string"&&(se=K,K=null),he=ae(M),se=(K&&K.name?" ("+K.name+").":".")+(se?" "+se:"."),b&&!he&&_(he,K,"Missing expected exception"+se);var Se=typeof se=="string",Te=!b&&l.isError(he),S=!b&&he&&!K;if((Te&&Se&&ce(he,K)||S)&&_(he,K,"Got unwanted exception"+se),b&&he&&K&&!ce(he,K)||!b&&he)throw he}w.throws=function(b,M,K){ne(!0,b,M,K)},w.doesNotThrow=function(b,M,K){ne(!1,b,M,K)},w.ifError=function(b){if(b)throw b};function re(b,M){b||_(b,!0,M,"==",re)}w.strict=r(re,w,{equal:w.strictEqual,deepEqual:w.deepStrictEqual,notEqual:w.notStrictEqual,notDeepEqual:w.notDeepStrictEqual}),w.strict.strict=w.strict;var fe=Object.keys||function(b){var M=[];for(var K in b)a.call(b,K)&&M.push(K);return M};return ui.exports}var el,mc;function Mg(){if(mc)return el;mc=1;var r=Fg();return el=function(s){var i,l,a,h,p;for(i=Error.prepareStackTrace,Error.prepareStackTrace=function(v,g){return Error.prepareStackTrace=i,g},l=new Error().stack,p=0;p<l.length&&l[p].getFileName()!==__filename;)p++;r(p<l.length,"Unexpected: unable to find caller/index.js in the stack"),s=!s||isNaN(s)?1:s>l.length-2?l.length-2:s,l=l.slice(p+s+1);do h=l.shift(),a=h&&h.getFileName();while(l.length&&a==="module.js");return a},el}var yc;function zg(){if(yc)return _s;yc=1;const r=Zn,s=Zn,i=sg(),l=Mg();return _s.getCallerRoot=function(){try{return i(l(2))}catch{return}},_s.getProcessRoot=function(){let h=process.cwd();const p=s.join(h,"current");try{r.statSync(p).isDirectory()&&(h=p)}catch{}try{return i(h)}catch{return}},_s}var tl,vc;function Dg(){return vc||(vc=1,tl=zg()),tl}var Is={exports:{}},nl,wc;function Ug(){if(wc)return nl;wc=1;var r=1e3,s=r*60,i=s*60,l=i*24,a=l*7,h=l*365.25;nl=function(k,$){$=$||{};var j=typeof k;if(j==="string"&&k.length>0)return p(k);if(j==="number"&&isFinite(k))return $.long?g(k):v(k);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(k))};function p(k){if(k=String(k),!(k.length>100)){var $=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(k);if($){var j=parseFloat($[1]),A=($[2]||"ms").toLowerCase();switch(A){case"years":case"year":case"yrs":case"yr":case"y":return j*h;case"weeks":case"week":case"w":return j*a;case"days":case"day":case"d":return j*l;case"hours":case"hour":case"hrs":case"hr":case"h":return j*i;case"minutes":case"minute":case"mins":case"min":case"m":return j*s;case"seconds":case"second":case"secs":case"sec":case"s":return j*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return j;default:return}}}}function v(k){var $=Math.abs(k);return $>=l?Math.round(k/l)+"d":$>=i?Math.round(k/i)+"h":$>=s?Math.round(k/s)+"m":$>=r?Math.round(k/r)+"s":k+"ms"}function g(k){var $=Math.abs(k);return $>=l?w(k,$,l,"day"):$>=i?w(k,$,i,"hour"):$>=s?w(k,$,s,"minute"):$>=r?w(k,$,r,"second"):k+" ms"}function w(k,$,j,A){var z=$>=j*1.5;return Math.round(k/j)+" "+A+(z?"s":"")}return nl}var rl,Sc;function Bg(){if(Sc)return rl;Sc=1;function r(s){l.debug=l,l.default=l,l.coerce=w,l.disable=v,l.enable=h,l.enabled=g,l.humanize=Ug(),l.destroy=k,Object.keys(s).forEach($=>{l[$]=s[$]}),l.names=[],l.skips=[],l.formatters={};function i($){let j=0;for(let A=0;A<$.length;A++)j=(j<<5)-j+$.charCodeAt(A),j|=0;return l.colors[Math.abs(j)%l.colors.length]}l.selectColor=i;function l($){let j,A=null,z,_;function R(...q){if(!R.enabled)return;const Q=R,ue=Number(new Date),pe=ue-(j||ue);Q.diff=pe,Q.prev=j,Q.curr=ue,j=ue,q[0]=l.coerce(q[0]),typeof q[0]!="string"&&q.unshift("%O");let ce=0;q[0]=q[0].replace(/%([a-zA-Z%])/g,(ne,re)=>{if(ne==="%%")return"%";ce++;const fe=l.formatters[re];if(typeof fe=="function"){const b=q[ce];ne=fe.call(Q,b),q.splice(ce,1),ce--}return ne}),l.formatArgs.call(Q,q),(Q.log||l.log).apply(Q,q)}return R.namespace=$,R.useColors=l.useColors(),R.color=l.selectColor($),R.extend=a,R.destroy=l.destroy,Object.defineProperty(R,"enabled",{enumerable:!0,configurable:!1,get:()=>A!==null?A:(z!==l.namespaces&&(z=l.namespaces,_=l.enabled($)),_),set:q=>{A=q}}),typeof l.init=="function"&&l.init(R),R}function a($,j){const A=l(this.namespace+(typeof j>"u"?":":j)+$);return A.log=this.log,A}function h($){l.save($),l.namespaces=$,l.names=[],l.skips=[];const j=(typeof $=="string"?$:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const A of j)A[0]==="-"?l.skips.push(A.slice(1)):l.names.push(A)}function p($,j){let A=0,z=0,_=-1,R=0;for(;A<$.length;)if(z<j.length&&(j[z]===$[A]||j[z]==="*"))j[z]==="*"?(_=z,R=A,z++):(A++,z++);else if(_!==-1)z=_+1,R++,A=R;else return!1;for(;z<j.length&&j[z]==="*";)z++;return z===j.length}function v(){const $=[...l.names,...l.skips.map(j=>"-"+j)].join(",");return l.enable(""),$}function g($){for(const j of l.skips)if(p($,j))return!1;for(const j of l.names)if(p($,j))return!0;return!1}function w($){return $ instanceof Error?$.stack||$.message:$}function k(){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 l.enable(l.load()),l}return rl=r,rl}var xc;function Vg(){return xc||(xc=1,(function(r,s){s.formatArgs=l,s.save=a,s.load=h,s.useColors=i,s.storage=p(),s.destroy=(()=>{let g=!1;return()=>{g||(g=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),s.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function i(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let g;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(g=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(g[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function l(g){if(g[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+g[0]+(this.useColors?"%c ":" ")+"+"+r.exports.humanize(this.diff),!this.useColors)return;const w="color: "+this.color;g.splice(1,0,w,"color: inherit");let k=0,$=0;g[0].replace(/%[a-zA-Z%]/g,j=>{j!=="%%"&&(k++,j==="%c"&&($=k))}),g.splice($,0,w)}s.log=console.debug||console.log||(()=>{});function a(g){try{g?s.storage.setItem("debug",g):s.storage.removeItem("debug")}catch{}}function h(){let g;try{g=s.storage.getItem("debug")||s.storage.getItem("DEBUG")}catch{}return!g&&typeof process<"u"&&"env"in process&&(g=process.env.DEBUG),g}function p(){try{return localStorage}catch{}}r.exports=Bg()(s);const{formatters:v}=r.exports;v.j=function(g){try{return JSON.stringify(g)}catch(w){return"[UnexpectedJSONParseError]: "+w.message}}})(Is,Is.exports)),Is.exports}var Cc;function Hg(){if(Cc)return Rs.exports;Cc=1;const r=Dg(),s=Vg();return Rs.exports=function(l){const a=r.getCallerRoot();let h;try{const p=Nn("/node_modules/.pnpm/@tryghost+debug@2.2.1/node_modules/@tryghost/debug/lib")(a+"/package.json");p.alias?h=p.alias:h=p.name}catch{h="undefined"}return s(h+":"+l)},Rs.exports._base=s,Rs.exports}var sl,kc;function qg(){return kc||(kc=1,sl=Hg()),sl}const Wg=[{code:"af",label:"Afrikaans"},{code:"ar",label:"Arabic"},{code:"bg",label:"Bulgarian"},{code:"bn",label:"Bengali"},{code:"bs",label:"Bosnian"},{code:"ca",label:"Catalan"},{code:"cs",label:"Czech"},{code:"da",label:"Danish"},{code:"de",label:"German"},{code:"de-CH",label:"Swiss German"},{code:"el",label:"Greek"},{code:"en",label:"English"},{code:"eo",label:"Esperanto"},{code:"es",label:"Spanish"},{code:"et",label:"Estonian"},{code:"eu",label:"Basque"},{code:"fa",label:"Persian/Farsi"},{code:"fi",label:"Finnish"},{code:"fr",label:"French"},{code:"gd",label:"Gaelic (Scottish)"},{code:"he",label:"Hebrew"},{code:"hi",label:"Hindi"},{code:"hr",label:"Croatian"},{code:"hu",label:"Hungarian"},{code:"id",label:"Indonesian"},{code:"is",label:"Icelandic"},{code:"it",label:"Italian"},{code:"ja",label:"Japanese"},{code:"ko",label:"Korean"},{code:"kz",label:"Kazakh"},{code:"lt",label:"Lithuanian"},{code:"lv",label:"Latvian"},{code:"mk",label:"Macedonian"},{code:"mn",label:"Mongolian"},{code:"ms",label:"Malay"},{code:"nb",label:"Norwegian Bokmål"},{code:"ne",label:"Nepali"},{code:"nl",label:"Dutch"},{code:"nn",label:"Norwegian Nynorsk"},{code:"pa",label:"Punjabi"},{code:"pl",label:"Polish"},{code:"pt",label:"Portuguese"},{code:"pt-BR",label:"Portuguese (Brazil)"},{code:"ro",label:"Romanian"},{code:"ru",label:"Russian"},{code:"si",label:"Sinhala"},{code:"sk",label:"Slovak"},{code:"sl",label:"Slovenian"},{code:"sq",label:"Albanian"},{code:"sr",label:"Serbian"},{code:"sr-Cyrl",label:"Serbian (Cyrillic)"},{code:"sv",label:"Swedish"},{code:"sw",label:"Swahili"},{code:"ta",label:"Tamil"},{code:"th",label:"Thai"},{code:"tr",label:"Turkish"},{code:"uk",label:"Ukrainian"},{code:"ur",label:"Urdu"},{code:"uz",label:"Uzbek"},{code:"vi",label:"Vietnamese"},{code:"zh",label:"Chinese"},{code:"zh-Hant",label:"Traditional Chinese"}];var Pc;function Kg(){if(Pc)return Xn.exports;Pc=1;const r=rg(),s=Zn,i=Zn,l=qg()("i18n"),a=Wg,h=a.map(g=>g.code);function p(g,w){return g.reduce((k,$)=>{let j;try{j=Nn("/ghost/i18n/lib")(`../locales/${$}/${w}.json`)}catch{j=Nn("/ghost/i18n/lib")(`../locales/en/${w}.json`)}return k[$]={[w]:{...j,...j.default&&typeof j.default=="object"?j.default:{}}},k},{})}function v(g,w){if(!w)return{[g]:{theme:{}}};let k=[];try{k=i.readdirSync(w).filter(A=>A.endsWith(".json")).map(A=>A.replace(".json",""))}catch{k=[g,"en"]}return[...new Set([g,...k,"en"])].reduce((j,A)=>{let z,_=!1;const R=s.join(w,`${A}.json`);if(i.existsSync(R))try{delete require.cache[Nn("/ghost/i18n/lib").resolve(R)],z=Nn("/ghost/i18n/lib")(R)}catch{l(`Error loading theme locale file: ${A}`),_=!0}else _=!0;if(_)if(A!=="en")try{const q=s.join(w,"en.json");i.existsSync(q)?(delete require.cache[Nn("/ghost/i18n/lib").resolve(q)],z=Nn("/ghost/i18n/lib")(q)):z={}}catch{z={}}else l("Theme en.json file not found"),z={};return j[A]={theme:{...z,...z.default&&typeof z.default=="object"?z.default:{}}},j},{})}return Xn.exports=(g="en",w="portal",k={})=>{const $=r.createInstance(),j={prefix:"{",suffix:"}"};(w==="theme"||w==="portal")&&(j.escapeValue=!1);let A;return w!=="theme"?A=p(h,w):(l(`generateThemeResources: ${g}, ${k.themePath}`),A=v(g,k.themePath)),$.init({lng:g,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:{no:["nb","en"],default:["en"]},ns:w,defaultNS:w,interpolation:j,resources:A}),$},Xn.exports.SUPPORTED_LOCALES=h,Xn.exports.LOCALE_DATA=a,Xn.exports.generateResources=p,Xn.exports}var $c;function Gg(){if($c)return On.exports;$c=1;const r=Kg();return On.exports=r,On.exports.default=r,On.exports.LOCALE_DATA=r.LOCALE_DATA,On.exports.SUPPORTED_LOCALES=r.SUPPORTED_LOCALES,On.exports.generateResources=r.generateResources,On.exports}var Qg=Gg();const Jg=Io(Qg);class Yg extends en.Component{constructor(s){super(s);const i=this.props.locale||"en",l=Jg(i,"search"),a=l.dir()||"ltr",h=new Kd({adminUrl:s.adminUrl,apiKey:s.apiKey,dir:a});this.state={searchIndex:h,showPopup:!1,indexStarted:!1,indexComplete:!1,t:l.t,dir:a,scrollbarWidth:0},this.inputRef=en.createRef()}componentDidMount(){const s=this.getScrollbarWidth();this.setState({scrollbarWidth:s}),this.initSetup()}componentDidUpdate(s,i){if(i.showPopup!==this.state.showPopup)try{this.state.showPopup?(this.bodyScroll=window.document?.body?.style?.overflow,this.bodyMargin=window.getComputedStyle(document.body).getPropertyValue("margin-right"),window.document.body.style.overflow="hidden",this.state.scrollbarWidth&&document.body.scrollHeight>window.innerHeight&&(window.document.body.style.marginRight=`calc(${this.bodyMargin} + ${this.state.scrollbarWidth}px)`)):(window.document.body.style.overflow=this.bodyScroll||"",!this.bodyMargin||this.bodyMargin==="0px"?window.document.body.style.marginRight="":window.document.body.style.marginRight=this.bodyMargin)}catch{}this.state.showPopup!==i?.showPopup&&!this.state.showPopup&&this.setState({searchValue:""}),this.state.showPopup&&!this.state.indexStarted&&this.setupSearchIndex()}async setupSearchIndex(){this.setState({indexStarted:!0}),await this.state.searchIndex.init(),this.setState({indexComplete:!0})}componentWillUnmount(){window.removeEventListener("hashchange",this.hashHandler,!1),window.removeEventListener("keydown",this.handleKeyDown,!1)}initSetup(){this.handleSearchUrl(),this.addKeyboardShortcuts(),this.setupCustomTriggerButton(),this.hashHandler=()=>{this.handleSearchUrl()},window.addEventListener("hashchange",this.hashHandler,!1)}getScrollbarWidth(){const s=document.createElement("div");s.style.visibility="hidden",s.style.overflow="scroll",document.body.appendChild(s);const i=s.offsetWidth-s.clientWidth;return document.body.removeChild(s),i}setupCustomTriggerButton(){this.clickHandler=s=>{s.preventDefault(),this.setState({showPopup:!0});const i=document.createElement("input");i.style.opacity="0",i.style.position="fixed",i.style.top="0",document.body.appendChild(i),i.focus(),setTimeout(()=>{this.inputRef.current.focus(),document.body.removeChild(i)},150)},this.customTriggerButtons=this.getCustomTriggerButtons(),this.customTriggerButtons.forEach(s=>{s.removeEventListener("click",this.clickHandler),s.addEventListener("click",this.clickHandler)})}getCustomTriggerButtons(){return document.querySelectorAll("[data-ghost-search]")||[]}handleSearchUrl(){const[s]=window.location.hash.substr(1).split("?");(s==="/search"||s==="/search/")&&(this.setState({showPopup:!0}),window.history.replaceState("",document.title,window.location.pathname))}addKeyboardShortcuts(){this.getCustomTriggerButtons()?.length&&(this.handleKeyDown=i=>{if(i.key==="k"&&i.metaKey)return this.setState({showPopup:!0}),i.preventDefault(),i.stopPropagation(),!1},document.addEventListener("keydown",this.handleKeyDown))}render(){return le.jsx(ut.Provider,{value:{page:"search",showPopup:this.state.showPopup,adminUrl:this.props.adminUrl,stylesUrl:this.props.stylesUrl,searchIndex:this.state.searchIndex,indexComplete:this.state.indexComplete,searchValue:this.state.searchValue,inputRef:this.inputRef,onAction:()=>{},dispatch:(s,i)=>{s==="update"&&this.setState({...this.state,...i})},t:this.state.t,dir:this.state.dir},children:le.jsx($d,{})})}}const Ec="sodo-search-root";function Xg(){const r=document.createElement("div");r.id=Ec,document.body.appendChild(r)}function Zg(){const r=document.querySelector("script[data-sodo-search]");if(r){const s=r.dataset.sodoSearch,i=r.dataset.key,l=r.dataset.styles,a=r.dataset.locale||"en";return{adminUrl:s,apiKey:i,stylesUrl:l,locale:a}}return{}}function em(){Xg()}function tm(){const{adminUrl:r,apiKey:s,stylesUrl:i,locale:l}=Zg(),a=(r||window.location.origin)?.replace(/\/+$/,"");em(),Zh.render(le.jsx(en.StrictMode,{children:le.jsx(Yg,{adminUrl:a,apiKey:s,stylesUrl:i,locale:l})}),document.getElementById(Ec))}tm()}));
|
|
30
30
|
//# sourceMappingURL=sodo-search.min.js.map
|