@tryghost/sodo-search 1.8.25 → 1.8.27
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 +6 -5
- package/umd/main.css +1 -1
- package/umd/sodo-search.min.js +7 -8
- package/umd/sodo-search.min.js.map +1 -1
package/umd/sodo-search.min.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
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`
|
|
1
|
+
(function(Hn){typeof define=="function"&&define.amd?define(Hn):Hn()})((function(){"use strict";var Hn=typeof document<"u"?document.currentScript:null,Er=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bo(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Hh(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 Io={exports:{}},qn={};var Fo,Ra;function Mo(){if(Ra)return Fo;Ra=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 Fo=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},Fo}var zo={exports:{}},be={};var _a;function qh(){if(_a)return be;_a=1;var r=Mo(),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 La;function Do(){return La||(La=1,zo.exports=qh()),zo.exports}var ba;function Wh(){if(ba)return qn;ba=1,Mo();var r=Do(),s=60103;if(qn.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var i=Symbol.for;s=i("react.element"),qn.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 qn.jsx=p,qn.jsxs=p,qn}var Ia;function Kh(){return Ia||(Ia=1,Io.exports=Wh()),Io.exports}var le=Kh(),_e=Do();const en=bo(_e);var Uo={exports:{}},kt={},Bo={exports:{}},Vo={};var Fa;function Gh(){return Fa||(Fa=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}}}})(Vo)),Vo}var Ma;function Qh(){return Ma||(Ma=1,Bo.exports=Gh()),Bo.exports}var za;function Jh(){if(za)return kt;za=1;var r=Do(),s=Mo(),i=Qh();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
2
|
`+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
3
|
`),f=o.stack.split(`
|
|
5
4
|
`),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=`
|
|
5
|
+
`+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 tr=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(tr[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 nr(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,sl=!1;function ol(){(sn!==null||Et!==null)&&(Gt(),Rr())}function tm(e,t,n){if(sl)return e(t,n);sl=!0;try{return _r(e,t,n)}finally{sl=!1,ol()}}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 il=!1;if(g)try{var br={};Object.defineProperty(br,"passive",{get:function(){il=!0}}),window.addEventListener("test",br,br),window.removeEventListener("test",br,br)}catch{il=!1}function nm(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,ll=null,rm={onError:function(e){Ir=!0,Ms=e}};function sm(e,t,n,o,u,f,y,x,T){Ir=!1,Ms=null,nm.apply(rm,arguments)}function om(e,t,n,o,u,f,y,x,T){if(sm.apply(this,arguments),Ir){if(Ir){var U=Ms;Ir=!1,Ms=null}else throw Error(l(198));zs||(zs=!0,ll=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 Ec(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 jc(e){if(Ln(e)!==e)throw Error(l(188))}function im(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 jc(u),e;if(f===o)return jc(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 Ac(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 Tc(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var Oc,al,Nc,Rc,ul=!1,Dt=[],ln=null,an=null,un=null,Fr=new Map,Mr=new Map,zr=[],_c="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 cl(e,t,n,o,u){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:u,targetContainers:[o]}}function Lc(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=cl(t,n,o,u,f),t!==null&&(t=Xr(t),t!==null&&al(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function lm(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 am(e){var t=bn(e.target);if(t!==null){var n=Ln(t);if(n!==null){if(t=n.tag,t===13){if(t=Ec(n),t!==null){e.blockedOn=t,Rc(e.lanePriority,function(){i.unstable_runWithPriority(e.priority,function(){Nc(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=ml(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=Xr(n),t!==null&&al(t),e.blockedOn=n,!1;t.shift()}return!0}function bc(e,t,n){Ds(e)&&n.delete(t)}function um(){for(ul=!1;0<Dt.length;){var e=Dt[0];if(e.blockedOn!==null){e=Xr(e.blockedOn),e!==null&&Oc(e);break}for(var t=e.targetContainers;0<t.length;){var n=ml(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(bc),Mr.forEach(bc)}function Ur(e,t){e.blockedOn===t&&(e.blockedOn=null,ul||(ul=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,um)))}function Ic(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);)am(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 rr={animationend:Us("Animation","AnimationEnd"),animationiteration:Us("Animation","AnimationIteration"),animationstart:Us("Animation","AnimationStart"),transitionend:Us("Transition","TransitionEnd")},fl={},Fc={};g&&(Fc=document.createElement("div").style,"AnimationEvent"in window||(delete rr.animationend.animation,delete rr.animationiteration.animation,delete rr.animationstart.animation),"TransitionEvent"in window||delete rr.transitionend.transition);function Bs(e){if(fl[e])return fl[e];if(!rr[e])return e;var t=rr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Fc)return fl[e]=t[n];return e}var Mc=Bs("animationend"),zc=Bs("animationiteration"),Dc=Bs("animationstart"),Uc=Bs("transitionend"),Bc=new Map,hl=new Map,cm=["abort","abort",Mc,"animationEnd",zc,"animationIteration",Dc,"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",Uc,"transitionEnd","waiting","waiting"];function dl(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)),hl.set(o,t),Bc.set(o,u),p(u,[o])}}var fm=i.unstable_now;fm();var Ve=8;function sr(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 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(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=sr(T),u=Ve):(x&=f,x!==0&&(o=sr(x),u=Ve))}else f=n&~y,f!==0?(o=sr(f),u=Ve):x!==0&&(o=sr(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(sr(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 Vc(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=or(24&~t),e===0?Vs(10,t):e;case 10:return e=or(192&~t),e===0?Vs(8,t):e;case 8:return e=or(3584&~t),e===0&&(e=or(4186112&~t),e===0&&(e=512)),e;case 2:return t=or(805306368&~t),t===0&&(t=268435456),t}throw Error(l(358,e))}function or(e){return e&-e}function pl(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:mm,pm=Math.log,gm=Math.LN2;function mm(e){return e===0?32:31-(pm(e)/gm|0)|0}var ym=i.unstable_UserBlockingPriority,vm=i.unstable_runWithPriority,qs=!0;function wm(e,t,n,o){_n||Gt();var u=gl,f=_n;_n=!0;try{zt(u,e,t,n,o)}finally{(_n=f)||ol()}}function Sm(e,t,n,o){vm(ym,gl.bind(null,e,t,n,o))}function gl(e,t,n,o){if(qs){var u;if((u=(t&4)===0)&&0<Dt.length&&-1<_c.indexOf(e))e=cl(null,e,t,n,o),Dt.push(e);else{var f=ml(e,t,n,o);if(f===null)u&&Lc(e,o);else{if(u){if(-1<_c.indexOf(e)){e=cl(f,e,t,n,o),Dt.push(e);return}if(lm(f,e,t,n,o))return;Lc(e,o)}wf(e,t,o,null,n)}}}}function ml(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=Ec(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 wf(e,t,o,u,n),null}var fn=null,yl=null,Ws=null;function Hc(){if(Ws)return Ws;var e,t=yl,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 qc(){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:qc,this.isPropagationStopped=qc,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 ir={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vl=Pt(ir),Vr=s({},ir,{view:0,detail:0}),xm=Pt(Vr),wl,Sl,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:Cl,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"?(wl=e.screenX-Hr.screenX,Sl=e.screenY-Hr.screenY):Sl=wl=0,Hr=e),wl)},movementY:function(e){return"movementY"in e?e.movementY:Sl}}),Wc=Pt(Qs),Cm=s({},Qs,{dataTransfer:0}),km=Pt(Cm),Pm=s({},Vr,{relatedTarget:0}),xl=Pt(Pm),$m=s({},ir,{animationName:0,elapsedTime:0,pseudoElement:0}),Em=Pt($m),jm=s({},ir,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Am=Pt(jm),Tm=s({},ir,{data:0}),Kc=Pt(Tm),Om={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 Cl(){return _m}var Lm=s({},Vr,{key:function(e){if(e.key){var t=Om[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"?Nm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cl,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}}),bm=Pt(Lm),Im=s({},Qs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gc=Pt(Im),Fm=s({},Vr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cl}),Mm=Pt(Fm),zm=s({},ir,{propertyName:0,elapsedTime:0,pseudoElement:0}),Dm=Pt(zm),Um=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}),Bm=Pt(Um),Vm=[9,13,27,32],kl=g&&"CompositionEvent"in window,qr=null;g&&"documentMode"in document&&(qr=document.documentMode);var Hm=g&&"TextEvent"in window&&!qr,Qc=g&&(!kl||qr&&8<qr&&11>=qr),Jc=" ",Yc=!1;function Xc(e,t){switch(e){case"keyup":return Vm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var lr=!1;function qm(e,t){switch(e){case"compositionend":return Zc(t);case"keypress":return t.which!==32?null:(Yc=!0,Jc);case"textInput":return e=t.data,e===Jc&&Yc?null:e;default:return null}}function Wm(e,t){if(lr)return e==="compositionend"||!kl&&Xc(e,t)?(e=Hc(),Ws=yl=fn=null,lr=!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 Qc&&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 ef(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Km[e.type]:t==="textarea"}function tf(e,t,n,o){Rn(o),t=Ys(t,"onChange"),0<t.length&&(n=new vl("onChange","change",null,n,o),e.push({event:n,listeners:t}))}var Wr=null,Kr=null;function Gm(e){pf(e,0)}function Js(e){var t=hr(e);if(Ze(t))return e}function Qm(e,t){if(e==="change")return t}var nf=!1;if(g){var Pl;if(g){var $l="oninput"in document;if(!$l){var rf=document.createElement("div");rf.setAttribute("oninput","return;"),$l=typeof rf.oninput=="function"}Pl=$l}else Pl=!1;nf=Pl&&(!document.documentMode||9<document.documentMode)}function sf(){Wr&&(Wr.detachEvent("onpropertychange",of),Kr=Wr=null)}function of(e){if(e.propertyName==="value"&&Js(Kr)){var t=[];if(tf(t,Kr,e,Kt(e)),e=Gm,_n)e(t);else{_n=!0;try{it(e,t)}finally{_n=!1,ol()}}}}function Jm(e,t,n){e==="focusin"?(sf(),Wr=t,Kr=n,Wr.attachEvent("onpropertychange",of)):e==="focusout"&&sf()}function Ym(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Js(Kr)}function Xm(e,t){if(e==="click")return Js(t)}function Zm(e,t){if(e==="input"||e==="change")return Js(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 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(!ty.call(t,n[o])||!jt(e[n[o]],t[n[o]]))return!1;return!0}function lf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function af(e,t){var n=lf(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=lf(n)}}function uf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?uf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function cf(){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 El(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,ar=null,jl=null,Qr=null,Al=!1;function ff(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Al||ar==null||ar!==P(o)||(o=ar,"selectionStart"in o&&El(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(jl,"onSelect"),0<o.length&&(t=new vl("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=ar)))}dl("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),dl("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),dl(cm,2);for(var hf="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Tl=0;Tl<hf.length;Tl++)hl.set(hf[Tl],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(" "),ry=new Set("cancel close invalid load scroll toggle".split(" ").concat(Jr));function df(e,t,n){var o=e.type||"unknown-event";e.currentTarget=n,om(o,t,void 0,e),e.currentTarget=null}function pf(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;df(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;df(u,x,U),f=T}}}if(zs)throw e=ll,zs=!1,ll=null,e}function qe(e,t){var n=$f(t),o=e+"__bubble";n.has(o)||(vf(t,e,2,!1),n.add(o))}var gf="_reactListening"+Math.random().toString(36).slice(2);function mf(e){e[gf]||(e[gf]=!0,a.forEach(function(t){ry.has(t)||yf(t,!1,e,null),yf(t,!0,e,null)}))}function yf(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=$f(f),x=e+"__"+(t?"capture":"bubble");y.has(x)||(t&&(u|=4),vf(f,e,u,t),y.add(x))}function vf(e,t,n,o){var u=hl.get(t);switch(u===void 0?2:u){case 0:u=wm;break;case 1:u=Sm;break;default:u=gl}n=u.bind(null,t,n,e),u=void 0,!il||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 wf(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}tm(function(){var U=f,de=Kt(n),Ee=[];e:{var te=Bc.get(e);if(te!==void 0){var xe=vl,$e=e;switch(e){case"keypress":if(Ks(n)===0)break e;case"keydown":case"keyup":xe=bm;break;case"focusin":$e="focus",xe=xl;break;case"focusout":$e="blur",xe=xl;break;case"beforeblur":case"afterblur":xe=xl;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=Wc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":xe=km;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":xe=Mm;break;case Mc:case zc:case Dc:xe=Em;break;case Uc:xe=Dm;break;case"scroll":xe=xm;break;case"wheel":xe=Bm;break;case"copy":case"cut":case"paste":xe=Am;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":xe=Gc}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[fr]))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=Wc,X="onMouseLeave",N="onMouseEnter",I="mouse",(e==="pointerout"||e==="pointerover")&&(ke=Gc,X="onPointerLeave",N="onPointerEnter",I="pointer"),F=xe==null?te:hr(xe),J=$e==null?te:hr($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=ur(J))I++;for(J=0,X=N;X;X=ur(X))J++;for(;0<I-J;)ke=ur(ke),I--;for(;0<J-I;)N=ur(N),J--;for(;I--;){if(ke===N||N!==null&&ke===N.alternate)break t;ke=ur(ke),N=ur(N)}ke=null}else ke=null;xe!==null&&Sf(Ee,te,xe,ke,!1),$e!==null&&F!==null&&Sf(Ee,F,$e,ke,!0)}}e:{if(te=U?hr(U):window,xe=te.nodeName&&te.nodeName.toLowerCase(),xe==="select"||xe==="input"&&te.type==="file")var je=Qm;else if(ef(te))if(nf)je=Zm;else{je=Ym;var we=Jm}else(xe=te.nodeName)&&xe.toLowerCase()==="input"&&(te.type==="checkbox"||te.type==="radio")&&(je=Xm);if(je&&(je=je(e,U))){tf(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?hr(U):window,e){case"focusin":(ef(we)||we.contentEditable==="true")&&(ar=we,jl=U,Qr=null);break;case"focusout":Qr=jl=ar=null;break;case"mousedown":Al=!0;break;case"contextmenu":case"mouseup":case"dragend":Al=!1,ff(Ee,n,de);break;case"selectionchange":if(ny)break;case"keydown":case"keyup":ff(Ee,n,de)}var Ae;if(kl)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 lr?Xc(e,n)&&(Re="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Re="onCompositionStart");Re&&(Qc&&n.locale!=="ko"&&(lr||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&lr&&(Ae=Hc()):(fn=de,yl="value"in fn?fn.value:fn.textContent,lr=!0)),we=Ys(U,Re),0<we.length&&(Re=new Kc(Re,e,null,n,de),Ee.push({event:Re,listeners:we}),Ae?Re.data=Ae:(Ae=Zc(n),Ae!==null&&(Re.data=Ae)))),(Ae=Hm?qm(e,n):Wm(e,n))&&(U=Ys(U,"onBeforeInput"),0<U.length&&(de=new Kc("onBeforeInput","beforeinput",null,n,de),Ee.push({event:de,listeners:U}),de.data=Ae))}pf(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 ur(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Sf(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 Ol=null,Nl=null;function xf(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Rl(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 Cf=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 cr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function kf(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 Ll=0;function oy(e){return{$$typeof:W,toString:e,valueOf:e}}var Zs=Math.random().toString(36).slice(2),hn="__reactFiber$"+Zs,eo="__reactProps$"+Zs,fr="__reactContainer$"+Zs,Pf="__reactEvents$"+Zs;function bn(e){var t=e[hn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fr]||n[hn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=kf(e);e!==null;){if(n=e[hn])return n;e=kf(e)}return t}e=n,n=e.parentNode}return null}function Xr(e){return e=e[hn]||e[fr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(l(33))}function to(e){return e[eo]||null}function $f(e){var t=e[Pf];return t===void 0&&(t=e[Pf]=new Set),t}var bl=[],dr=-1;function dn(e){return{current:e}}function We(e){0>dr||(e.current=bl[dr],bl[dr]=null,dr--)}function Qe(e,t){dr++,bl[dr]=e.current,e.current=t}var pn={},ct=dn(pn),wt=dn(!1),In=pn;function pr(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 Ef(e,t,n){if(ct.current!==pn)throw Error(l(168));Qe(ct,t),Qe(wt,n)}function jf(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 Af(e,t,n){var o=e.stateNode;if(!o)throw Error(l(169));n?(e=jf(e,t,In),o.__reactInternalMemoizedMergedChildContext=e,We(wt),We(ct),Qe(ct,e)):We(wt),Qe(wt,n)}var Il=null,Fn=null,iy=i.unstable_runWithPriority,Fl=i.unstable_scheduleCallback,Ml=i.unstable_cancelCallback,ly=i.unstable_shouldYield,Tf=i.unstable_requestPaint,zl=i.unstable_now,ay=i.unstable_getCurrentPriorityLevel,so=i.unstable_ImmediatePriority,Of=i.unstable_UserBlockingPriority,Nf=i.unstable_NormalPriority,Rf=i.unstable_LowPriority,_f=i.unstable_IdlePriority,Dl={},uy=Tf!==void 0?Tf:function(){},Qt=null,oo=null,Ul=!1,Lf=zl(),ft=1e4>Lf?zl:function(){return zl()-Lf};function gr(){switch(ay()){case so:return 99;case Of:return 98;case Nf:return 97;case Rf:return 96;case _f:return 95;default:throw Error(l(332))}}function bf(e){switch(e){case 99:return so;case 98:return Of;case 97:return Nf;case 96:return Rf;case 95:return _f;default:throw Error(l(332))}}function Mn(e,t){return e=bf(e),iy(e,t)}function Zr(e,t,n){return e=bf(e),Fl(e,t,n)}function Ut(){if(oo!==null){var e=oo;oo=null,Ml(e)}If()}function If(){if(!Ul&&Qt!==null){Ul=!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)),Fl(so,Ut),n}finally{Ul=!1}}}var cy=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,mr=null,ao=null;function Bl(){ao=mr=lo=null}function Vl(e){var t=io.current;We(io),e.type._context._currentValue=t}function Ff(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 yr(e,t){lo=e,ao=mr=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},mr===null){if(lo===null)throw Error(l(308));mr=t,lo.dependencies={lanes:0,firstContext:t,responders:null}}else mr=mr.next=t;return e._currentValue}var gn=!1;function Hl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function Mf(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 zf(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 Df(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 Uf=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 Bf(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 Vf(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)?pr(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 Hf(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 ql(e,t,n,o){var u=e.stateNode;u.props=n,u.state=e.memoizedState,u.refs=Uf,Hl(e);var f=t.contextType;typeof f=="object"&&f!==null?u.context=At(f):(f=St(t)?In:ct.current,u.context=pr(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===Uf&&(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 qf(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=ja(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=Aa(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=$r(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=ja(""+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=Aa(N,F.mode,I),N.return=F,N}if(fo(N)||ie(N))return N=$r(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(Uy){return t(F,Uy)}),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=$r(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=Aa(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=ja(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=qf(!0),Wf=qf(!1),ns={},Bt=dn(ns),rs=dn(ns),ss=dn(ns);function zn(e){if(e===ns)throw Error(l(174));return e}function Wl(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 vr(){We(Bt),We(rs),We(ss)}function Kf(e){zn(ss.current);var t=zn(Bt.current),n=ze(t,e.type);t!==n&&(Qe(rs,e),Qe(Bt,n))}function Kl(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 Gf(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 Qf(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 Gl(e){if(Vt){var t=vn;if(t){var n=t;if(!Qf(e,t)){if(t=cr(n.nextSibling),!t||!Qf(e,t)){e.flags=e.flags&-1025|2,Vt=!1,Jt=e;return}Gf(Jt,n)}Jt=e,vn=cr(t.firstChild)}else e.flags=e.flags&-1025|2,Vt=!1,Jt=e}}function Jf(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 Jf(e),Vt=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!Rl(t,e.memoizedProps))for(t=vn;t;)Gf(e,t),t=cr(t.nextSibling);if(Jf(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=cr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}vn=null}}else vn=Jt?cr(e.stateNode.nextSibling):null;return!0}function Ql(){vn=Jt=null,Vt=!1}var wr=[];function Jl(){for(var e=0;e<wr.length;e++)wr[e]._workInProgressVersionPrimary=null;wr.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 Yl(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 Xl(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?hy:dy,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=py,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 Yf(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,wr.push(t))),e)return n(t._source);throw wr.push(t),Error(l(350))}function Xf(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 Yf(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=na.bind(null,Xe,e),T.queue=e,T.baseQueue=null,de=Yf(u,t,n),T.memoizedState=T.baseState=de),de}function Zf(e,t,n){var o=Un();return Xf(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=na.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 eh(e){var t=Dn();return e={current:e},t.memoizedState=e}function wo(){return Un().memoizedState}function Zl(e,t,n,o){var u=Dn();Xe.flags|=e,u.memoizedState=vo(1|t,n,void 0,o===void 0?null:o)}function ea(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&&Yl(o,y.deps)){vo(t,n,f,o);return}}Xe.flags|=e,u.memoizedState=vo(1|t,n,f,o)}function th(e,t){return Zl(516,4,e,t)}function So(e,t){return ea(516,4,e,t)}function nh(e,t){return ea(4,2,e,t)}function rh(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 sh(e,t,n){return n=n!=null?n.concat([e]):null,ea(4,2,rh.bind(null,t,e),n)}function ta(){}function oh(e,t){var n=Un();t=t===void 0?null:t;var o=n.memoizedState;return o!==null&&t!==null&&Yl(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function ih(e,t){var n=Un();t=t===void 0?null:t;var o=n.memoizedState;return o!==null&&t!==null&&Yl(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function fy(e,t){var n=gr();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 na(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},hy={readContext:At,useCallback:function(e,t){return Dn().memoizedState=[e,t===void 0?null:t],e},useContext:At,useEffect:th,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Zl(4,2,rh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zl(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=na.bind(null,Xe,e),[o.memoizedState,e]},useRef:eh,useState:cs,useDebugValue:ta,useDeferredValue:function(e){var t=cs(e),n=t[0],o=t[1];return th(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=fy.bind(null,e[1]),eh(e),[e,t]},useMutableSource:function(e,t,n){var o=Dn();return o.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},Xf(o,e,t,n)},useOpaqueIdentifier:function(){if(Vt){var e=!1,t=oy(function(){throw e||(e=!0,n("r:"+(Ll++).toString(36))),Error(l(355))}),n=cs(t)[1];return(Xe.mode&2)===0&&(Xe.flags|=516,vo(5,function(){n("r:"+(Ll++).toString(36))},void 0,null)),t}return t="r:"+(Ll++).toString(36),cs(t),t},unstable_isNewReconciler:!1},dy={readContext:At,useCallback:oh,useContext:At,useEffect:So,useImperativeHandle:sh,useLayoutEffect:nh,useMemo:ih,useReducer:as,useRef:wo,useState:function(){return as(Ht)},useDebugValue:ta,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:Zf,useOpaqueIdentifier:function(){return as(Ht)[0]},unstable_isNewReconciler:!1},py={readContext:At,useCallback:oh,useContext:At,useEffect:So,useImperativeHandle:sh,useLayoutEffect:nh,useMemo:ih,useReducer:us,useRef:wo,useState:function(){return us(Ht)},useDebugValue:ta,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:Zf,useOpaqueIdentifier:function(){return us(Ht)[0]},unstable_isNewReconciler:!1},gy=ce.ReactCurrentOwner,Ft=!1;function Ct(e,t,n,o){t.child=e===null?Wf(t,null,n,o):po(t,e.child,n,o)}function lh(e,t,n,o,u){n=n.render;var f=t.ref;return yr(t,u),o=Xl(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 ah(e,t,n,o,u,f){if(e===null){var y=n.type;return typeof y=="function"&&!$a(y)&&y.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=y,uh(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 uh(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 sa(e,t,n,o,f)}function ra(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 ch(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function sa(e,t,n,o,u){var f=St(n)?In:ct.current;return f=pr(t,f),yr(t,u),n=Xl(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 fh(e,t,n,o,u){if(St(n)){var f=!0;ro(t)}else f=!1;if(yr(t,u),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Vf(t,n,o),ql(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=pr(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)&&Hf(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||Bf(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,Mf(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=pr(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)&&Hf(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||Bf(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 oa(e,t,n,o,f,u)}function oa(e,t,n,o,u,f){ch(e,t);var y=(t.flags&64)!==0;if(!o&&!y)return u&&Af(t,n,!1),Yt(e,t,f);o=t.stateNode,gy.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&&Af(t,n,!0),t.child}function hh(e){var t=e.stateNode;t.pendingContext?Ef(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ef(e,t.context,!1),Wl(e,t.containerInfo)}var Co={dehydrated:null,retryLane:0};function dh(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&&Gl(t),e=o.children,u=o.fallback,f?(e=ph(t,e,u,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Co,e):typeof o.unstable_expectedLoadTime=="number"?(e=ph(t,e,u,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Co,t.lanes=33554432,e):(n=Ea({mode:"visible",children:e},t.mode,n,null),n.return=t,t.child=n)):e.memoizedState!==null?f?(o=mh(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=gh(e,t,o.children,n),t.memoizedState=null,n):f?(o=mh(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=gh(e,t,o.children,n),t.memoizedState=null,n)}function ph(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=Ea(t,u,0,null),n=$r(n,u,o,null),f.return=e,n.return=e,f.sibling=n,e.child=f,n}function gh(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 mh(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=$r(o,f,u,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,o}function yh(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Ff(e.return,t)}function ia(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 vh(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&&yh(e,n);else if(e.tag===19)yh(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),ia(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}ia(t,!0,n,null,f,t.lastEffect);break;case"together":ia(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 wh,la,Sh,xh;wh=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}},la=function(){},Sh=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)}},xh=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 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)&&no(),null;case 3:return vr(),We(wt),We(ct),Jl(),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)),la(t),null;case 5:Kl(t);var u=zn(ss.current);if(n=t.type,e!==null&&t.stateNode!=null)Sh(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,wh(e,t,!1,!1),t.stateNode=e,y=nr(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)}xf(n,o)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)xh(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&&(xr&134217727)===0||kr(mt,dt))),(o||n)&&(t.flags|=4),null);case 4:return vr(),la(t),e===null&&mf(t.stateNode.containerInfo),null;case 10:return Vl(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()>va&&(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>va&&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 Pa(),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 yy(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(vr(),We(wt),We(ct),Jl(),t=e.flags,(t&64)!==0)throw Error(l(285));return e.flags=t&-4097|64,e;case 5:return Kl(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 vr(),null;case 10:return Vl(e),null;case 23:case 24:return Pa(),null;default:return null}}function aa(e,t){try{var n="",o=t;do n+=Me(o),o=o.return;while(o);var u=n}catch(f){u=`
|
|
7
6
|
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.
|
|
7
|
+
`+f.stack}return{value:e,source:t,stack:u}}function ua(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var vy=typeof WeakMap=="function"?WeakMap:Map;function Ch(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,wa=o),ua(e,t)},n}function kh(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 ua(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),ua(e,t));var y=t.stack;this.componentDidCatch(t.value,{componentStack:y!==null?y:""})}),n}var wy=typeof WeakSet=="function"?WeakSet:Set;function Ph(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 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:It(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(l(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 u=e;o=u.next,u=u.tag,(u&4)!==0&&(u&1)!==0&&(zh(n,e),Ty(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&&Df(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}Df(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&xf(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&&Ic(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(l(163))}function $h(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 Eh(e,t){if(Fn&&typeof Fn.onCommitFiberUnmount=="function")try{Fn.onCommitFiberUnmount(Il,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)zh(t,n);else{o=t;try{u()}catch(f){kn(o,f)}}n=n.next}while(n!==e)}break;case 1:if(Ph(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:Ph(t);break;case 4:Oh(e,t)}}function jh(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 Ah(e){return e.tag===5||e.tag===3||e.tag===4}function Th(e){e:{for(var t=e.return;t!==null;){if(Ah(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||Ah(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?ca(e,n,t):fa(e,n,t)}function ca(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(ca(e,t,n),e=e.sibling;e!==null;)ca(e,t,n),e=e.sibling}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.insertBefore(e,t):n.appendChild(e);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 Oh(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(Eh(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(Eh(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 ha(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),nr(e,u),t=nr(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,Ic(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(ya=ft(),$h(t.child,!0)),Nh(t);return;case 19:Nh(t);return;case 17:return;case 23:case 24:$h(t,t.memoizedState!==null);return}throw Error(l(163))}function Nh(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 u=Ry.bind(null,e,o);n.has(o)||(n.add(o),o.then(u,u))})}}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,ko=ce.ReactCurrentDispatcher,da=ce.ReactCurrentOwner,Pe=0,mt=null,et=null,dt=0,Bn=0,pa=dn(0),at=0,Po=null,Sr=0,hs=0,xr=0,ga=0,ma=null,ya=0,va=1/0;function Cr(){va=ft()+500}var ye=null,$o=!1,wa=null,qt=null,wn=!1,ds=null,ps=90,Sa=[],xa=[],Xt=null,gs=0,Ca=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 gr()===99?1:2;if(Zt===0&&(Zt=Sr),cy.transition!==0){jo!==0&&(jo=ma!==null?ma.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=gr(),(Pe&4)!==0&&e===98?e=Vs(12,Zt):(e=hm(e),e=Vs(e,Zt)),e}function xn(e,t,n){if(50<gs)throw gs=0,Ca=null,Error(l(185));if(e=To(e,t),e===null)return null;Hs(e,t,n),e===mt&&(xr|=t,at===4&&kr(e,dt));var o=gr();t===1?(Pe&8)!==0&&(Pe&48)===0?ka(e):(Ot(e,n),Pe===0&&(Cr(),Ut())):((Pe&4)===0||o!==98&&o!==99||(Xt===null?Xt=new Set([e]):Xt.add(e)),Ot(e,n)),ma=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,sr(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!==Dl&&Ml(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==Dl&&Ml(n)}t===15?(n=ka.bind(null,e),Qt===null?(Qt=[n],oo=Fl(so,If)):Qt.push(n),n=Dl):t===14?n=Zr(99,ka.bind(null,e)):(n=dm(t),n=Zr(n,Rh.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function Rh(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=Ih();(mt!==e||dt!==o)&&(Cr(),Pr(e,o));do try{Ey();break}catch(x){bh(e,x)}while(!0);if(Bl(),ko.current=f,Pe=u,et!==null?o=0:(mt=null,dt=0,o=at),(Sr&xr)!==0)Pr(e,0);else if(o!==0){if(o===2&&(Pe|=64,e.hydrate&&(e.hydrate=!1,_l(e.containerInfo)),n=Vc(e),n!==0&&(o=ys(e,n))),o===1)throw t=Po,Pr(e,0),kr(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(kr(e,n),(n&62914560)===n&&(o=ya+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=Cf(Vn.bind(null,e),o);break}Vn(e);break;case 4:if(kr(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*ky(n/1960))-n,10<n){e.timeoutHandle=Cf(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?Rh.bind(null,e):null}function kr(e,t){for(t&=~ga,t&=~xr,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 ka(e){if((Pe&48)!==0)throw Error(l(327));if(Cn(),e===mt&&(e.expiredLanes&dt)!==0){var t=dt,n=ys(e,t);(Sr&xr)!==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,_l(e.containerInfo)),t=Vc(e),t!==0&&(n=ys(e,t))),n===1)throw n=Po,Pr(e,0),kr(e,t),Ot(e,ft()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Vn(e),Ot(e,ft()),null}function Py(){if(Xt!==null){var e=Xt;Xt=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Ot(t,ft())})}Ut()}function _h(e,t){var n=Pe;Pe|=1;try{return e(t)}finally{Pe=n,Pe===0&&(Cr(),Ut())}}function Lh(e,t){var n=Pe;Pe&=-2,Pe|=8;try{return e(t)}finally{Pe=n,Pe===0&&(Cr(),Ut())}}function Oo(e,t){Qe(pa,Bn),Bn|=t,Sr|=t}function Pa(){Bn=pa.current,We(pa)}function Pr(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&&no();break;case 3:vr(),We(wt),We(ct),Jl();break;case 5:Kl(o);break;case 4:vr();break;case 13:We(Je);break;case 19:We(Je);break;case 10:Vl(o);break;case 23:case 24:Pa()}n=n.return}mt=e,et=Pn(e.current,null),dt=Bn=Sr=t,at=0,Po=null,ga=xr=hs=0}function bh(e,t){do{var n=et;try{if(Bl(),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,da.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 vy,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=Ny.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
8
|
|
|
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=j=>{if(j.isComposing||j.keyCode===229)return;const A=a.findIndex(R=>R.id===p);let z=a[A+1],_=a[A-1];if(j.key==="ArrowUp"&&_?v(_?.id):j.key==="ArrowDown"&&z&&v(z?.id),j.key==="Enter"){const R=a.find(q=>q.id===p);window.location.href=R?.url}};const $=g?.current?.ownerDocument;return $?.removeEventListener("keydown",w),$?.addEventListener("keydown",w),()=>{$?.removeEventListener("keydown",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=`
|
|
9
|
+
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}at!==5&&(at=2),T=aa(T,x),te=y;do{switch(te.tag){case 3:f=T,te.flags|=4096,t&=-t,te.lanes|=t;var je=Ch(te,f,t);zf(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=kh(te,f,t);zf(te,Re);break e}}te=te.return}while(te!==null)}Mh(n)}catch(Oe){t=Oe,et===n&&n!==null&&(et=n=n.return);continue}break}while(!0)}function Ih(){var e=ko.current;return ko.current=xo,e===null?xo:e}function ys(e,t){var n=Pe;Pe|=16;var o=Ih();mt===e&&dt===t||Pr(e,t);do try{$y();break}catch(u){bh(e,u)}while(!0);if(Bl(),Pe=n,ko.current=o,et!==null)throw Error(l(261));return mt=null,dt=0,at}function $y(){for(;et!==null;)Fh(et)}function Ey(){for(;et!==null&&!ly();)Fh(et)}function Fh(e){var t=Uh(e.alternate,e,Bn);e.memoizedProps=e.pendingProps,t===null?Mh(e):et=t,da.current=null}function Mh(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,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=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 Vn(e){var t=gr();return Mn(99,jy.bind(null,e,t)),null}function jy(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,da.current=null,Ol=qs,y=cf(),El(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;Nl={focusedElem:y,selectionRange:x},qs=!1,ms=null,Ao=!1,ye=o;do try{Ay()}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:Th(ye),ye.flags&=-3;break;case 6:Th(ye),ye.flags&=-3,ha(ye.alternate,ye);break;case 1024:ye.flags&=-1025;break;case 1028:ye.flags&=-1025,ha(ye.alternate,ye);break;case 4:ha(ye.alternate,ye);break;case 8:x=ye,Oh(y,x);var je=x.alternate;jh(x),je!==null&&jh(je)}ye=ye.nextEffect}}catch(Oe){if(ye===null)throw Error(l(330));kn(ye,Oe),ye=ye.nextEffect}while(ye!==null);if(X=Nl,J=cf(),I=X.focusedElem,y=X.selectionRange,J!==I&&I&&I.ownerDocument&&uf(I.ownerDocument.documentElement,I)){for(y!==null&&El(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=af(I,je),f=af(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=!!Ol,Nl=Ol=null,e.current=n,ye=o;do try{for(I=e;ye!==null;){var we=ye.flags;if(we&36&&xy(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,uy(),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===Ca?gs++:(gs=0,Ca=e):gs=0,n=n.stateNode,Fn&&typeof Fn.onCommitFiberRoot=="function")try{Fn.onCommitFiberRoot(Il,n,void 0,(n.current.flags&64)===64)}catch{}if(Ot(e,ft()),$o)throw $o=!1,e=wa,wa=null,e;return(Pe&8)!==0||Ut(),null}function Ay(){for(;ye!==null;){var e=ye.alternate;Ao||ms===null||((ye.flags&8)!==0?Tc(ye,ms)&&(Ao=!0):ye.tag===13&&Cy(e,ye)&&Tc(ye,ms)&&(Ao=!0));var t=ye.flags;(t&256)!==0&&Sy(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,Oy)}return!1}function Ty(e,t){Sa.push(t,e),wn||(wn=!0,Zr(97,function(){return Cn(),null}))}function zh(e,t){xa.push(t,e),wn||(wn=!0,Zr(97,function(){return Cn(),null}))}function Oy(){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=xa;xa=[];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=Sa,Sa=[],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 Dh(e,t,n){t=aa(n,t),t=Ch(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)Dh(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){Dh(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=aa(t,e);var u=kh(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 Ny(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()-ya?Pr(e,0):ga|=n),Ot(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=gr()===99?1:2:(Zt===0&&(Zt=Sr),t=or(62914560&~Zt),t===0&&(t=4194304))),n=$t(),e=To(e,t),e!==null&&(Hs(e,t,n),Ot(e,n))}var Uh;Uh=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:hh(t),Ql();break;case 5:Kf(t);break;case 1:St(t.type)&&ro(t);break;case 4:Wl(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?dh(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 vh(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,ra(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=pr(t,ct.current),yr(t,n),u=Xl(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,Hl(t);var y=o.getDerivedStateFromProps;typeof y=="function"&&uo(t,o,y,e),u.updater=co,t.stateNode=u,u._reactInternals=t,ql(t,o,e,n),t=oa(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=Ly(u),e=It(u,e),f){case 0:t=sa(null,t,u,e,n);break e;case 1:t=fh(null,t,u,e,n);break e;case 11:t=lh(null,t,u,e,n);break e;case 14:t=ah(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),sa(e,t,o,u,n);case 1:return o=t.type,u=t.pendingProps,u=t.elementType===o?u:It(o,u),fh(e,t,o,u,n);case 3:if(hh(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,Mf(e,t),es(t,o,null,n),o=t.memoizedState.element,o===u)Ql(),t=Yt(e,t,n);else{if(u=t.stateNode,(f=u.hydrate)&&(vn=cr(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],wr.push(f);for(n=Wf(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else Ct(e,t,o,n),Ql();t=t.child}return t;case 5:return Kf(t),e===null&&Gl(t),o=t.type,u=t.pendingProps,f=e!==null?e.memoizedProps:null,y=u.children,Rl(o,u)?y=null:f!==null&&Rl(o,f)&&(t.flags|=16),ch(e,t),Ct(e,t,y,n),t.child;case 6:return e===null&&Gl(t),null;case 13:return dh(e,t,n);case 4:return Wl(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),lh(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),Ff(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,yr(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),ah(e,t,u,f,o,n);case 15:return uh(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,yr(t,n),Vf(t,o,u),ql(t,o,u,n),oa(null,t,o,!0,e,n);case 19:return vh(e,t,n);case 23:return ra(e,t,n);case 24:return ra(e,t,n)}throw Error(l(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 $a(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ly(e){if(typeof e=="function")return $a(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")$a(e)&&(y=1);else if(typeof e=="string")y=5;else e:switch(e){case re:return $r(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 Ea(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 $r(e,t,n,o){return e=Nt(7,e,o,t),e.lanes=n,e}function Ea(e,t,n,o){return e=Nt(23,e,o,t),e.elementType=V,e.lanes=n,e}function ja(e,t,n){return e=Nt(6,e,null,t),e.lanes=n,e}function Aa(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 by(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=pl(0),this.expirationTimes=pl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pl(0),this.mutableSourceEagerHydrationData=null}function Iy(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=jf(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 Ta(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function Bh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Oa(e,t){Bh(e,t),(e=e.alternate)&&Bh(e,t)}function Fy(){return null}function Na(e,t,n){var o=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new by(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,Hl(t),e[fr]=n.current,mf(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}Na.prototype.render=function(e){Ro(e,this._internalRoot,null,null)},Na.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ro(null,e,null,function(){t[fr]=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 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 Na(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=Ta(y);x.call(U)}}Ro(t,y,e,u)}else{if(f=n._reactRootContainer=My(n,o),y=f._internalRoot,typeof u=="function"){var T=u;u=function(){var U=Ta(y);T.call(U)}}Lh(function(){Ro(t,y,e,u)})}return Ta(y)}Oc=function(e){if(e.tag===13){var t=$t();xn(e,4,t),Oa(e,4)}},al=function(e){if(e.tag===13){var t=$t();xn(e,67108864,t),Oa(e,67108864)}},Nc=function(e){if(e.tag===13){var t=$t(),n=Sn(e);xn(e,n,t),Oa(e,n)}},Rc=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=_h,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&&(Cr(),Ut())}},Gt=function(){(Pe&49)===0&&(Py(),Cn())},_r=function(e,t){var n=Pe;Pe|=2;try{return e(t)}finally{Pe=n,Pe===0&&(Cr(),Ut())}};function Vh(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!vs(t))throw Error(l(200));return Iy(e,t,null,n)}var zy={Events:[Xr,hr,to,Rn,Rr,Cn,{current:!1}]},ws={findFiberByHostInstance:bn,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},Dy={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=Ac(e),e===null?null:e.stateNode},findFiberByHostInstance:ws.findFiberByHostInstance||Fy,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{Il=Lo.inject(Dy),Fn=Lo}catch{}}return kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zy,kt.createPortal=Vh,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=Ac(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?(Lh(function(){_o(null,null,e,!1,function(){e._reactRootContainer=null,e[fr]=null})}),!0):!1},kt.unstable_batchedUpdates=_h,kt.unstable_createPortal=function(e,t){return Vh(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 Da;function Yh(){if(Da)return Uo.exports;Da=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(),Uo.exports=Jh(),Uo.exports}var Ho=Yh();const Xh=bo(Ho),ut=en.createContext({posts:[],authors:[],tags:[],action:"",lastPage:"",page:"",pageData:{},dispatch:(r,s)=>{},searchIndex:null,indexComplete:!1,searchValue:"",t:()=>{},dir:"ltr"}),Zh=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)}}"))),ed=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 td 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&&Ho.createPortal(i,this.iframeHead),this.iframeRoot&&Ho.createPortal(s,this.iframeRoot)]})}}const nd=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"})),Ua=10,rd=10,sd=()=>({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 od 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(kd,{})}}function id(){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(ld,{})}),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(ad,{}),le.jsx(ud,{})]})}function ld(){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(ed,{className:"text-neutral-900 hover:text-neutral-500 h-[1.1rem] w-[1.1rem]"})}):le.jsx(nd,{className:"text-neutral-900",alt:"Search"})}function ad(){const{indexComplete:r,searchValue:s}=_e.useContext(ut);return!r&&s?le.jsx(Zh,{className:"shrink-0"}):null}function ud(){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 cd({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 fd({tags:r,selectedResult:s,setSelectedResult:i}){const{t:l}=_e.useContext(ut);if(!r?.length)return null;const a=r.map(h=>le.jsx(cd,{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 hd({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(Va,{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(Va,{text:h,highlight:l,isExcerpt:!0})})]})}function dd({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 Ba({text:r,highlight:s}){const i=dd({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 Va({text:r="",highlight:s="",isExcerpt:i}){r=r||"",s=s||"";let{parts:l,highlightIndexes:a}=Ba({text:r,highlight:s});if(i&&a?.[0]){const p=a?.[0]?.startIdx;if(p>50){r="..."+r?.slice(p-20);const{parts:v}=Ba({text:r,highlight:s});l=v}}const h=l.map((p,v)=>p?.type==="highlight"?le.jsx(en.Fragment,{children:le.jsx(pd,{word:p.text,isExcerpt:i})},v):le.jsx(en.Fragment,{children:p.text},v));return le.jsx(le.Fragment,{children:h})}function pd({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 gd({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+rd;i(a)},children:l("Show more results")})}function md({posts:r,selectedResult:s,setSelectedResult:i}){const{t:l}=_e.useContext(ut),[a,h]=_e.useState(Ua),[p,v]=_e.useState([]);if(_e.useEffect(()=>{h(Ua)},[r]),_e.useEffect(()=>{v(r?.slice(0,a+1))},[a,r]),!r?.length)return null;function g(){return p.map(w=>le.jsx(hd,{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(gd,{setMaxPosts:h,maxPosts:a,posts:r})]})}function yd({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(vd,{name:l,avatar:a}),le.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-900 truncate",children:l})]})}function vd({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 wd({authors:r,selectedResult:s,setSelectedResult:i}){const{t:l}=_e.useContext(ut);if(!r?.length)return null;const a=r.map(h=>le.jsx(yd,{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 Sd(){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(xd,{posts:h,authors:p,tags:a}):r?le.jsx(Cd,{}):null}function xd({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=j=>{if(j.isComposing||j.keyCode===229)return;const A=a.findIndex(R=>R.id===p);let z=a[A+1],_=a[A-1];if(j.key==="ArrowUp"&&_?v(_?.id):j.key==="ArrowDown"&&z&&v(z?.id),j.key==="Enter"){const R=a.find(q=>q.id===p);window.location.href=R?.url}};const $=g?.current?.ownerDocument;return $?.removeEventListener("keydown",w),$?.addEventListener("keydown",w),()=>{$?.removeEventListener("keydown",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(wd,{authors:s,selectedResult:p,setSelectedResult:v}),le.jsx(fd,{tags:i,selectedResult:p,setSelectedResult:v}),le.jsx(md,{posts:r,selectedResult:p,setSelectedResult:v})]}):null}function Cd(){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 kd(){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(id,{}),le.jsx(Sd,{})]})})})}class Pd 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
10
|
:root {
|
|
12
11
|
--brandcolor: ${this.context.brandColor||""}
|
|
13
12
|
}
|
|
@@ -15,7 +14,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
15
14
|
.ghost-display {
|
|
16
15
|
display: none;
|
|
17
16
|
}
|
|
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(`
|
|
17
|
+
`,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=sd(),i={...s.frame.common};return le.jsx("div",{style:s.modalContainer,className:"gh-root-frame",children:le.jsxs(td,{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(od,{})]})})}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 Wn(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 $d=/[^\p{L}\p{N}]+/u,Ed=/(\d{3})/g,jd=/(\D)(\d{3})/g,Ad=/(\d{3})(\D)/g,Ha=/[\u0300-\u036f]/g;function Kn(r={}){if(!this||this.constructor!==Kn)return new Kn(...arguments);if(arguments.length)for(r=0;r<arguments.length;r++)this.assign(arguments[r]);else this.assign(r)}ve=Kn.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,$d)}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=Ha?r.normalize("NFKD").replace(Ha,"").toLowerCase():r.toLowerCase()),this.prepare&&(r=this.prepare(r)),this.numeric&&r.length>3&&(r=r.replace(jd,"$1 $2").replace(Ad,"$1 $2").replace(Ed,"$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 qo(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 qa={normalize:!1,numeric:!1,dedupe:!1},Ss={},Wo=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"]]),Wa=new Map([["ae","a"],["oe","o"],["sh","s"],["kh","k"],["th","t"],["ph","f"],["pf","f"]]),Ka=[/([^aeo])h(.)/g,"$1$2",/([aeo])h([^aeo]|$)/g,"$1$2",/(.)\1+/g,"$1"],Ga={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 Ko={Exact:qa,Default:Ss,Normalize:Ss,LatinBalance:{mapper:Wo},LatinAdvanced:{mapper:Wo,matcher:Wa,replacer:Ka},LatinExtra:{mapper:Wo,replacer:Ka.concat([/(?!^)[aeo]/g,""]),matcher:Wa},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=Ga[l];for(let h=1,p;h<s.length&&(p=s.charAt(h),p==="h"||p==="w"||!(p=Ga[p])||p===a||(l+=p,a=p,l.length!==4));h++);r[i]=l}}},CJK:{split:""},LatinExact:qa,LatinDefault:Ss,LatinSimple:Ss};function Qa(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 Gn(r){if(!this||this.constructor!==Gn)return new Gn(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 Qa(s,a||0,h||s.length,!1)};if(l==="splice")return function(a,h){return Qa(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}})}Gn.prototype.clear=function(){this.index.length=0},Gn.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=Ya,this.A=BigInt(r)):(this.B=Ja,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=Ya,this.A=BigInt(r)):(this.B=Ja,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 Ja(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 Ya(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 Qn,Tr;async function Td(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),Qn=new self.FlexSearch.Index(Tr),delete self.FlexSearch):Qn=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(Qn,l[0]),Qn.import(l[0],r)):((a=l&&Qn[s].apply(Qn,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 Go(r){Jn.call(r,"add"),Jn.call(r,"append"),Jn.call(r,"search"),Jn.call(r,"update"),Jn.call(r,"remove"),Jn.call(r,"searchCache")}let Qo,Xa,xs;function Od(){Qo=xs=0}function Jn(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]),Qo?xs||(xs=Date.now()-Xa>=this.priority*this.priority*3):(Qo=setTimeout(Od,0),Xa=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 Yn(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!==Yn)return new Yn(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=Nd(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"),Yn.prototype.searchCache=qo,Go(Yn.prototype);function nn(r){Yn.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 Nd(r,s,i){return s?typeof module<"u"?new(require("worker_threads")).Worker(__dirname+"/worker/node.js"):Promise.resolve().then(()=>gu).then(function(l){return new l.Worker("undefined/node/node.mjs")}):r?new window.Worker(URL.createObjectURL(new Blob(["onmessage="+Td.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:Hn&&Hn.tagName.toUpperCase()==="SCRIPT"&&Hn.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]),Yo(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 Gn(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}Jo(s,v,w,0,w[0],k)}}this.store.set(r,v||s)}this.worker&&(this.fastupdate||this.reg.add(r))}return this};function Jo(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++)Jo(r,s,i,l,a);else s=s[a]||(s[a]=Ye()),a=i[++l],Jo(r,s,i,l,a)}function Yo(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++)Yo(r,s,i,l,a,h,p,v);else p=s[++l],Yo(r,s,i,l,a,h,p,v)}function Xo(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?Xn.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?Xn.call(this,p):p;if(a.push(p),s-=v,!s)break}return a=a.length>1?[].concat.apply([],a):a[0],l?Xn.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}Zo(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",Rd,arguments)};function Rd(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=Za(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",_d,arguments)};function _d(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",Ld,arguments)};function Ld(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",bd,arguments)};function bd(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,Zo(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 Zo(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?Zo(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?Xn.call(this.index,h):h:Xo.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?Za(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 Za(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 Id(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=Fd.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=Wn(M.limit,s),q=Wn(M.offset,q),g=Wn(M.suggest,g),z=A&&this.store&&Wn(M.highlight,z),R=!!z||A&&this.store&&Wn(M.enrich,R),k=Wn(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=Id(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(_)):_=Xn.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?eu(a):a})}return z&&(a=Ps(r,a,this.index,p,z)),v?eu(a):a};function eu(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 Fd(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=Xn.call(this,r))),r):[]):[]}function Xn(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=Md.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 Md(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 Kn(typeof a=="string"?Ko[a]:a||{}),a=new Yn(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=qo,ve.export=zd,ve.import=Dd,Go(An.prototype);function ei(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 ti(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 tu(r,s=0){let i=[],l=[];s&&(s=25e4/s*1e3|0);for(const a of r.entries())l.push([a[0],ei(a[1])[0]||[]]),l.length===s&&(i.push(l),l=[]);return l.length&&i.push(l),i}function nu(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],ti(l[1],a));return s}function ru(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 su(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 zd(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=ru(this.reg),s=null;break;case 1:a="tag",h=this.tag&&tu(this.tag,this.reg.size),s=null;break;case 2:a="doc",h=this.store&&ei(this.store),s=null;break;default:return}return js.call(this,r,s,a,h||null,i,l)}function Dd(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=su(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=nu(s,this.tag);break;case"doc":this.store=ti(s,this.store)}}}function ou(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&&uu(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 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,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&&uu(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 Gn(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 lu.call(this,A[0],"",s,v,g,j,w);if(a===2&&h&&!p)return lu.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 ni(q,ue,R,0,0,!1,!1),Q=au(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 iu(l,$,s,v,p,k,g)})()}for(let q,Q;_<a;_++){if((Q=A[_])&&!z[Q]){if(z[Q]=1,q=ni(this,Q,R,0,0,!1,!1),q=au(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 iu(l,$,s,v,p,k,g)};function iu(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?Xo.call(null,r[0],i,l):new He(r[0],this);return p?g:new He(g,this)}function lu(r,s,i,l,a,h,p){return r=ni(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?Xo.call(this,r,i,l):new He(r,this):a?[]:new He([],this)}function au(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 ni(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({},Ud[i],r))}else r={};i=r.context;const l=i===!0?{depth:1}:i||{},a=Rt(r.encoder)?Ko[r.encoder]:r.encode||r.encoder||{};this.encoder=a.encode?a:typeof a=="object"?new Kn(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 uu(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=qo,ve.export=function(r,s,i=0,l=0){let a,h;switch(l){case 0:a="reg",h=ru(this.reg);break;case 1:a="cfg",h=null;break;case 2:a="map",h=ei(this.map,this.reg.size);break;case 3:a="ctx",h=tu(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=su(s,this.reg);break;case"map":this.map=ti(s,this.map);break;case"ctx":this.ctx=nu(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=ou(this.map,h),i="index.map=new Map(["+i+"]);";for(const p of this.ctx.entries()){a=p[0];let v=ou(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},Go(Mt.prototype);const cu=typeof window<"u"&&(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),Ts=["map","ctx","tag","reg","cfg"],Tn=Ye();function ri(r,s={}){if(!this||this.constructor!==ri)return new ri(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=ri.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=cu.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=cu.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 si(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&&si(i,r)}}),this.transaction("ctx","readwrite",function(s){s.openCursor().onsuccess=function(){const i=this.result;i&&si(i,r)}}),this.transaction("tag","readwrite",function(s){s.openCursor().onsuccess=function(){const i=this.result;i&&si(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:Kn,Document:An},Bd=Ko,Vd={finalize:r=>{let s=[];for(const i of r)s.push(...qd(i));return s}};function Hd(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 qd(r){const s=[];let i="";for(const l of r){const a=l.codePointAt(0);Hd(a)?(i&&(s.push(i),i=""),s.push(l)):i+=l}return i&&s.push(i),s}const oi=new Os.Encoder(Bd.Default,Vd);class Wd{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:oi}),this.authorsIndex=new Os.Document({tokenize:h,rtl:a,document:{id:"id",index:["name"],store:!0},encoder:oi}),this.tagsIndex=new Os.Document({tokenize:h,rtl:a,document:{id:"id",index:["name"],store:!0},encoder:oi}),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 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:"الوسوم"},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:"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"},$p={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},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:"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"},Tp={Authors:"लेखकहरू",Cancel:"रद्द गर्नुहोस्","No matches found":"कुनै परिणाम भेटिएन",Posts:"पोस्टहरू","Search posts, tags and authors":"पोस्टहरू, ट्यागहरू र लेखकहरू खोज्नुहोस्","Show more results":"थप परिणामहरू देखाउनुहोस्",Tags:"ट्यागहरू"},Op={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"},bp={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"},Fp={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"},Dp={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:"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"},Bp={Authors:"Аутори",Cancel:"Откажите","No matches found":"Нема резултата",Posts:"Објаве","Search posts, tags and authors":"Претражите објаве, tag-ове и ауторе","Show more results":"Прикажите више резултата",Tags:"Tag-ови"},Vp={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"},Hp={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"},qp={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"},Qp={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:""},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ẻ và 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 fu;function hu(){return fu||(fu={"/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 Qd},"/ghost/i18n/locales/bn/search.json":function(){return Jd},"/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 $p},"/ghost/i18n/locales/mn/search.json":function(){return Ep},"/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 Tp},"/ghost/i18n/locales/nl/search.json":function(){return Op},"/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 bp},"/ghost/i18n/locales/ro/search.json":function(){return Ip},"/ghost/i18n/locales/ru/search.json":function(){return Fp},"/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 Dp},"/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 Vp},"/ghost/i18n/locales/sv/search.json":function(){return Hp},"/ghost/i18n/locales/sw/search.json":function(){return qp},"/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 Qp},"/ghost/i18n/locales/ur/search.json":function(){return Jp},"/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(i){var l=du(i,r);if(l!==null)return hu()[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=du(i,r);return l!==null?l:require.resolve(i)},s}function du(r,s){var i=tg(r);r=Ns(r);var l;r[0]==="/"&&(s="");for(var a=hu(),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 tg(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 Zn={exports:{}},ii,pu;function ng(){if(pu)return ii;pu=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 tr=`${vt}${E}${rt}`;gt[rt]=this.translate(tr,{...d,joinArrays:!1,ns:D}),gt[rt]===tr&&(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),tr=vt?this.pluralResolver.getSuffix(Z,d.count,d):"",Nr=d.ordinal&&vt?this.pluralResolver.getSuffix(Z,d.count,{ordinal:!1}):"",nr=vt&&!d.ordinal&&d.count===0&&this.pluralResolver.shouldUseIntlApi(),Kt=nr&&d[`defaultValue${this.options.pluralSeparator}zero`]||d[`defaultValue${tr}`]||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);nr&&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,ii=Ze,ii}const gu=Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})),er=Hh(gu);var Rs={exports:{}},_s={},li={exports:{}},mu;function rg(){return mu||(mu=1,(function(r){var s=er,i=er;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})(li)),li.exports}var ai={exports:{}},ui,yu;function vu(){if(yu)return ui;yu=1;var r=Object.prototype.toString;return ui=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},ui}var ci,wu;function sg(){if(wu)return ci;wu=1;var r;if(!Object.keys){var s=Object.prototype.hasOwnProperty,i=Object.prototype.toString,l=vu(),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 ci=r,ci}var fi,Su;function og(){if(Su)return fi;Su=1;var r=Array.prototype.slice,s=vu(),i=Object.keys,l=i?function(p){return i(p)}:sg(),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},fi=l,fi}var hi,xu;function Cu(){return xu||(xu=1,hi=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}),hi}var di,ku;function pi(){return ku||(ku=1,di=Object),di}var gi,Pu;function ig(){return Pu||(Pu=1,gi=Error),gi}var mi,$u;function lg(){return $u||($u=1,mi=EvalError),mi}var yi,Eu;function ag(){return Eu||(Eu=1,yi=RangeError),yi}var vi,ju;function ug(){return ju||(ju=1,vi=ReferenceError),vi}var wi,Au;function cg(){return Au||(Au=1,wi=SyntaxError),wi}var Si,Tu;function Ou(){return Tu||(Tu=1,Si=TypeError),Si}var xi,Nu;function fg(){return Nu||(Nu=1,xi=URIError),xi}var Ci,Ru;function hg(){return Ru||(Ru=1,Ci=Math.abs),Ci}var ki,_u;function dg(){return _u||(_u=1,ki=Math.floor),ki}var Pi,Lu;function pg(){return Lu||(Lu=1,Pi=Math.max),Pi}var $i,bu;function gg(){return bu||(bu=1,$i=Math.min),$i}var Ei,Iu;function mg(){return Iu||(Iu=1,Ei=Math.pow),Ei}var ji,Fu;function yg(){return Fu||(Fu=1,ji=Math.round),ji}var Ai,Mu;function vg(){return Mu||(Mu=1,Ai=Number.isNaN||function(s){return s!==s}),Ai}var Ti,zu;function wg(){if(zu)return Ti;zu=1;var r=vg();return Ti=function(i){return r(i)||i===0?i:i<0?-1:1},Ti}var Oi,Du;function Sg(){return Du||(Du=1,Oi=Object.getOwnPropertyDescriptor),Oi}var Ni,Uu;function Bu(){if(Uu)return Ni;Uu=1;var r=Sg();if(r)try{r([],"length")}catch{r=null}return Ni=r,Ni}var Ri,Vu;function xg(){if(Vu)return Ri;Vu=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return Ri=r,Ri}var _i,Hu;function Cg(){if(Hu)return _i;Hu=1;var r=typeof Symbol<"u"&&Symbol,s=Cu();return _i=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:s()},_i}var Li,qu;function Wu(){return qu||(qu=1,Li=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Li}var bi,Ku;function Gu(){if(Ku)return bi;Ku=1;var r=pi();return bi=r.getPrototypeOf||null,bi}var Ii,Qu;function kg(){if(Qu)return Ii;Qu=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 Ii=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 $},Ii}var Fi,Ju;function Ls(){if(Ju)return Fi;Ju=1;var r=kg();return Fi=Function.prototype.bind||r,Fi}var Mi,Yu;function zi(){return Yu||(Yu=1,Mi=Function.prototype.call),Mi}var Di,Xu;function Zu(){return Xu||(Xu=1,Di=Function.prototype.apply),Di}var Ui,ec;function Pg(){return ec||(ec=1,Ui=typeof Reflect<"u"&&Reflect&&Reflect.apply),Ui}var Bi,tc;function $g(){if(tc)return Bi;tc=1;var r=Ls(),s=Zu(),i=zi(),l=Pg();return Bi=l||r.call(i,s),Bi}var Vi,nc;function rc(){if(nc)return Vi;nc=1;var r=Ls(),s=Ou(),i=zi(),l=$g();return Vi=function(h){if(h.length<1||typeof h[0]!="function")throw new s("a function is required");return l(r,i,h)},Vi}var Hi,sc;function Eg(){if(sc)return Hi;sc=1;var r=rc(),s=Bu(),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 Hi=l&&typeof l.get=="function"?r([l.get]):typeof h=="function"?function(v){return h(v==null?v:a(v))}:!1,Hi}var qi,oc;function jg(){if(oc)return qi;oc=1;var r=Wu(),s=Gu(),i=Eg();return qi=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,qi}var Wi,ic;function Ag(){if(ic)return Wi;ic=1;var r=Function.prototype.call,s=Object.prototype.hasOwnProperty,i=Ls();return Wi=i.call(r,s),Wi}var Ki,lc;function Tg(){if(lc)return Ki;lc=1;var r,s=pi(),i=ig(),l=lg(),a=ag(),h=ug(),p=cg(),v=Ou(),g=fg(),w=hg(),k=dg(),$=pg(),j=gg(),A=mg(),z=yg(),_=wg(),R=Function,q=function(Fe){try{return R('"use strict"; return ('+Fe+").constructor;")()}catch{}},Q=Bu(),ue=xg(),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=Cg()(),ne=jg(),re=Gu(),fe=Wu(),b=Zu(),M=zi(),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=Ag(),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 Ki=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},Ki}var Gi,ac;function Og(){if(ac)return Gi;ac=1;var r=Tg(),s=rc(),i=s([r("%String.prototype.indexOf%")]);return Gi=function(a,h){var p=r(a,!!h);return typeof p=="function"&&i(a,".prototype.")>-1?s([p]):p},Gi}var Qi,uc;function Ng(){if(uc)return Qi;uc=1;var r=og(),s=Cu()(),i=Og(),l=pi(),a=i("Array.prototype.push"),h=i("Object.prototype.propertyIsEnumerable"),p=s?l.getOwnPropertySymbols:null;return Qi=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},Qi}var Ji,cc;function Rg(){if(cc)return Ji;cc=1;var r=Ng(),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 Ji=function(){return!Object.assign||s()||i()?r:Object.assign},Ji}var Yi={},Xi,fc;function _g(){return fc||(fc=1,Xi=function(s){return s&&typeof s=="object"&&typeof s.copy=="function"&&typeof s.fill=="function"&&typeof s.readUInt8=="function"}),Xi}var bs={exports:{}},hc;function Lg(){return hc||(hc=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 dc;function bg(){return dc||(dc=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
18
|
`)>-1&&(ee?H=H.split(`
|
|
20
19
|
`).map(function(Ne){return" "+Ne}).join(`
|
|
21
20
|
`).substr(2):H=`
|
|
@@ -24,7 +23,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
24
23
|
`))):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
24
|
`)>=0,V+ee.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ge>60?W[0]+(O===""?"":O+`
|
|
26
25
|
`)+" "+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=
|
|
26
|
+
`)+" "+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=_g();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=Lg(),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)}})(Yi)),Yi}var pc;function Ig(){if(pc)return ai.exports;pc=1;var r=Rg()();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=bg(),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=ai.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
27
|
`+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.3_supports-color@5.5.0/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()}));
|
|
28
|
+
`,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 ai.exports}var Zi,gc;function Fg(){if(gc)return Zi;gc=1;var r=Ig();return Zi=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},Zi}var mc;function Mg(){if(mc)return _s;mc=1;const r=er,s=er,i=rg(),l=Fg();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 el,yc;function zg(){return yc||(yc=1,el=Mg()),el}var Is={exports:{}},tl,vc;function Dg(){if(vc)return tl;vc=1;var r=1e3,s=r*60,i=s*60,l=i*24,a=l*7,h=l*365.25;tl=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 tl}var nl,wc;function Ug(){if(wc)return nl;wc=1;function r(s){l.debug=l,l.default=l,l.coerce=w,l.disable=v,l.enable=h,l.enabled=g,l.humanize=Dg(),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 nl=r,nl}var Sc;function Bg(){return Sc||(Sc=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=Ug()(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 xc;function Vg(){if(xc)return Rs.exports;xc=1;const r=zg(),s=Bg();return Rs.exports=function(l){const a=r.getCallerRoot();let h;try{const p=Nn("/node_modules/.pnpm/@tryghost+debug@2.2.3_supports-color@5.5.0/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 rl,Cc;function Hg(){return Cc||(Cc=1,rl=Vg()),rl}const qg=[{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 kc;function Wg(){if(kc)return Zn.exports;kc=1;const r=ng(),s=er,i=er,l=Hg()("i18n"),a=qg,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 Zn.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}),$},Zn.exports.SUPPORTED_LOCALES=h,Zn.exports.LOCALE_DATA=a,Zn.exports.generateResources=p,Zn.exports}var Pc;function Kg(){if(Pc)return On.exports;Pc=1;const r=Wg();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 Gg=Kg();const Qg=bo(Gg);class Jg extends en.Component{constructor(s){super(s);const i=this.props.locale||"en",l=Qg(i,"search"),a=l.dir()||"ltr",h=new Wd({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(Pd,{})})}}const $c="sodo-search-root";function Yg(){const r=document.createElement("div");r.id=$c,document.body.appendChild(r)}function Xg(){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 Zg(){Yg()}function em(){const{adminUrl:r,apiKey:s,stylesUrl:i,locale:l}=Xg(),a=(r||window.location.origin)?.replace(/\/+$/,"");Zg(),Xh.render(le.jsx(en.StrictMode,{children:le.jsx(Jg,{adminUrl:a,apiKey:s,stylesUrl:i,locale:l})}),document.getElementById($c))}em()}));
|
|
30
29
|
//# sourceMappingURL=sodo-search.min.js.map
|