@tryghost/sodo-search 1.7.0 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,45 +1,45 @@
1
- (function(q){typeof define=="function"&&define.amd?define(q):q()})(function(){"use strict";var rv=Object.defineProperty;var Cd=q=>{throw TypeError(q)};var sv=(q,Y,ve)=>Y in q?rv(q,Y,{enumerable:!0,configurable:!0,writable:!0,value:ve}):q[Y]=ve;var zo=(q,Y,ve)=>sv(q,typeof Y!="symbol"?Y+"":Y,ve),ov=(q,Y,ve)=>Y.has(q)||Cd("Cannot "+ve);var kd=(q,Y,ve)=>Y.has(q)?Cd("Cannot add the same private member more than once"):Y instanceof WeakSet?Y.add(q):Y.set(q,ve);var He=(q,Y,ve)=>(ov(q,Y,"access private method"),ve);var Z,Ed,Pd,Td,jd,Ad,Nd,Od,Mo;var q=document.createElement("style");q.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(q);var Y=typeof document<"u"?document.currentScript:null;function ve(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ca={exports:{}},Vn={};/*
1
+ (function(Q){typeof define=="function"&&define.amd?define(Q):Q()})(function(){"use strict";var Km=Object.defineProperty;var Wf=Q=>{throw TypeError(Q)};var Wm=(Q,G,pe)=>G in Q?Km(Q,G,{enumerable:!0,configurable:!0,writable:!0,value:pe}):Q[G]=pe;var io=(Q,G,pe)=>Wm(Q,typeof G!="symbol"?G+"":G,pe),Qm=(Q,G,pe)=>G.has(Q)||Wf("Cannot "+pe);var Qf=(Q,G,pe)=>G.has(Q)?Wf("Cannot add the same private member more than once"):G instanceof WeakSet?G.add(Q):G.set(Q,pe);var ke=(Q,G,pe)=>(Qm(Q,G,"access private method"),pe);var H,Yf,Jf,Gf,Xf,qf,Zf,bf,eh,th,lo;var Q=document.createElement("style");Q.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(Q);var G=typeof document<"u"?document.currentScript:null;function pe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Al={exports:{}},An={};/*
3
3
  object-assign
4
4
  (c) Sindre Sorhus
5
5
  @license MIT
6
- */var ka=Object.getOwnPropertySymbols,Rd=Object.prototype.hasOwnProperty,Ld=Object.prototype.propertyIsEnumerable;function _d(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Dd(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join("")!=="0123456789")return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach(function(o){s[o]=o}),Object.keys(Object.assign({},s)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Ea=Dd()?Object.assign:function(e,t){for(var n,r=_d(e),s,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var i in n)Rd.call(n,i)&&(r[i]=n[i]);if(ka){s=ka(n);for(var l=0;l<s.length;l++)Ld.call(n,s[l])&&(r[s[l]]=n[s[l]])}}return r},Pa={exports:{}},z={};/** @license React v17.0.2
6
+ */var Ll=Object.getOwnPropertySymbols,nh=Object.prototype.hasOwnProperty,rh=Object.prototype.propertyIsEnumerable;function sh(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function oh(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join("")!=="0123456789")return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach(function(o){s[o]=o}),Object.keys(Object.assign({},s)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Ol=oh()?Object.assign:function(e,t){for(var n,r=sh(e),s,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var i in n)nh.call(n,i)&&(r[i]=n[i]);if(Ll){s=Ll(n);for(var l=0;l<s.length;l++)rh.call(n,s[l])&&(r[s[l]]=n[s[l]])}}return r},_l={exports:{}},I={};/** @license React v17.0.2
7
7
  * react.production.min.js
8
8
  *
9
9
  * Copyright (c) Facebook, Inc. and its affiliates.
10
10
  *
11
11
  * This source code is licensed under the MIT license found in the
12
12
  * LICENSE file in the root directory of this source tree.
13
- */var Uo=Ea,sn=60103,Ta=60106;z.Fragment=60107,z.StrictMode=60108,z.Profiler=60114;var ja=60109,Aa=60110,Na=60112;z.Suspense=60113;var Oa=60115,Ra=60116;if(typeof Symbol=="function"&&Symbol.for){var De=Symbol.for;sn=De("react.element"),Ta=De("react.portal"),z.Fragment=De("react.fragment"),z.StrictMode=De("react.strict_mode"),z.Profiler=De("react.profiler"),ja=De("react.provider"),Aa=De("react.context"),Na=De("react.forward_ref"),z.Suspense=De("react.suspense"),Oa=De("react.memo"),Ra=De("react.lazy")}var La=typeof Symbol=="function"&&Symbol.iterator;function Id(e){return e===null||typeof e!="object"?null:(e=La&&e[La]||e["@@iterator"],typeof e=="function"?e:null)}function Hn(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var _a={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Da={};function on(e,t,n){this.props=e,this.context=t,this.refs=Da,this.updater=n||_a}on.prototype.isReactComponent={},on.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Hn(85));this.updater.enqueueSetState(this,e,t,"setState")},on.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ia(){}Ia.prototype=on.prototype;function Bo(e,t,n){this.props=e,this.context=t,this.refs=Da,this.updater=n||_a}var bo=Bo.prototype=new Ia;bo.constructor=Bo,Uo(bo,on.prototype),bo.isPureReactComponent=!0;var Vo={current:null},Fa=Object.prototype.hasOwnProperty,za={key:!0,ref:!0,__self:!0,__source:!0};function Ma(e,t,n){var r,s={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)Fa.call(t,r)&&!za.hasOwnProperty(r)&&(s[r]=t[r]);var l=arguments.length-2;if(l===1)s.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];s.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)s[r]===void 0&&(s[r]=l[r]);return{$$typeof:sn,type:e,key:o,ref:i,props:s,_owner:Vo.current}}function Fd(e,t){return{$$typeof:sn,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ho(e){return typeof e=="object"&&e!==null&&e.$$typeof===sn}function zd(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ua=/\/+/g;function Ko(e,t){return typeof e=="object"&&e!==null&&e.key!=null?zd(""+e.key):t.toString(36)}function es(e,t,n,r,s){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case sn:case Ta:i=!0}}if(i)return i=e,s=s(i),e=r===""?"."+Ko(i,0):r,Array.isArray(s)?(n="",e!=null&&(n=e.replace(Ua,"$&/")+"/"),es(s,t,n,"",function(u){return u})):s!=null&&(Ho(s)&&(s=Fd(s,n+(!s.key||i&&i.key===s.key?"":(""+s.key).replace(Ua,"$&/")+"/")+e)),t.push(s)),1;if(i=0,r=r===""?".":r+":",Array.isArray(e))for(var l=0;l<e.length;l++){o=e[l];var a=r+Ko(o,l);i+=es(o,t,n,a,s)}else if(a=Id(e),typeof a=="function")for(e=a.call(e),l=0;!(o=e.next()).done;)o=o.value,a=r+Ko(o,l++),i+=es(o,t,n,a,s);else if(o==="object")throw t=""+e,Error(Hn(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return i}function ts(e,t,n){if(e==null)return e;var r=[],s=0;return es(e,r,"","",function(o){return t.call(n,o,s++)}),r}function Md(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(n){e._status===0&&(n=n.default,e._status=1,e._result=n)},function(n){e._status===0&&(e._status=2,e._result=n)})}if(e._status===1)return e._result;throw e._result}var Ba={current:null};function rt(){var e=Ba.current;if(e===null)throw Error(Hn(321));return e}var Ud={ReactCurrentDispatcher:Ba,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:Vo,IsSomeRendererActing:{current:!1},assign:Uo};z.Children={map:ts,forEach:function(e,t,n){ts(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ts(e,function(){t++}),t},toArray:function(e){return ts(e,function(t){return t})||[]},only:function(e){if(!Ho(e))throw Error(Hn(143));return e}},z.Component=on,z.PureComponent=Bo,z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ud,z.cloneElement=function(e,t,n){if(e==null)throw Error(Hn(267,e));var r=Uo({},e.props),s=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=Vo.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)Fa.call(t,a)&&!za.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:sn,type:e.type,key:s,ref:o,props:r,_owner:i}},z.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:Aa,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:ja,_context:e},e.Consumer=e},z.createElement=Ma,z.createFactory=function(e){var t=Ma.bind(null,e);return t.type=e,t},z.createRef=function(){return{current:null}},z.forwardRef=function(e){return{$$typeof:Na,render:e}},z.isValidElement=Ho,z.lazy=function(e){return{$$typeof:Ra,_payload:{_status:-1,_result:e},_init:Md}},z.memo=function(e,t){return{$$typeof:Oa,type:e,compare:t===void 0?null:t}},z.useCallback=function(e,t){return rt().useCallback(e,t)},z.useContext=function(e,t){return rt().useContext(e,t)},z.useDebugValue=function(){},z.useEffect=function(e,t){return rt().useEffect(e,t)},z.useImperativeHandle=function(e,t,n){return rt().useImperativeHandle(e,t,n)},z.useLayoutEffect=function(e,t){return rt().useLayoutEffect(e,t)},z.useMemo=function(e,t){return rt().useMemo(e,t)},z.useReducer=function(e,t,n){return rt().useReducer(e,t,n)},z.useRef=function(e){return rt().useRef(e)},z.useState=function(e){return rt().useState(e)},z.version="17.0.2",Pa.exports=z;var I=Pa.exports;const ct=ve(I);/** @license React v17.0.2
13
+ */var uo=Ol,Yt=60103,Rl=60106;I.Fragment=60107,I.StrictMode=60108,I.Profiler=60114;var zl=60109,Il=60110,Ml=60112;I.Suspense=60113;var Dl=60115,Fl=60116;if(typeof Symbol=="function"&&Symbol.for){var Ae=Symbol.for;Yt=Ae("react.element"),Rl=Ae("react.portal"),I.Fragment=Ae("react.fragment"),I.StrictMode=Ae("react.strict_mode"),I.Profiler=Ae("react.profiler"),zl=Ae("react.provider"),Il=Ae("react.context"),Ml=Ae("react.forward_ref"),I.Suspense=Ae("react.suspense"),Dl=Ae("react.memo"),Fl=Ae("react.lazy")}var Ul=typeof Symbol=="function"&&Symbol.iterator;function ih(e){return e===null||typeof e!="object"?null:(e=Ul&&e[Ul]||e["@@iterator"],typeof e=="function"?e:null)}function Ln(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Vl={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Bl={};function Jt(e,t,n){this.props=e,this.context=t,this.refs=Bl,this.updater=n||Vl}Jt.prototype.isReactComponent={},Jt.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Ln(85));this.updater.enqueueSetState(this,e,t,"setState")},Jt.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Hl(){}Hl.prototype=Jt.prototype;function ao(e,t,n){this.props=e,this.context=t,this.refs=Bl,this.updater=n||Vl}var co=ao.prototype=new Hl;co.constructor=ao,uo(co,Jt.prototype),co.isPureReactComponent=!0;var fo={current:null},Kl=Object.prototype.hasOwnProperty,Wl={key:!0,ref:!0,__self:!0,__source:!0};function Ql(e,t,n){var r,s={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)Kl.call(t,r)&&!Wl.hasOwnProperty(r)&&(s[r]=t[r]);var l=arguments.length-2;if(l===1)s.children=n;else if(1<l){for(var u=Array(l),a=0;a<l;a++)u[a]=arguments[a+2];s.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)s[r]===void 0&&(s[r]=l[r]);return{$$typeof:Yt,type:e,key:o,ref:i,props:s,_owner:fo.current}}function lh(e,t){return{$$typeof:Yt,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ho(e){return typeof e=="object"&&e!==null&&e.$$typeof===Yt}function uh(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Yl=/\/+/g;function po(e,t){return typeof e=="object"&&e!==null&&e.key!=null?uh(""+e.key):t.toString(36)}function Dr(e,t,n,r,s){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Yt:case Rl:i=!0}}if(i)return i=e,s=s(i),e=r===""?"."+po(i,0):r,Array.isArray(s)?(n="",e!=null&&(n=e.replace(Yl,"$&/")+"/"),Dr(s,t,n,"",function(a){return a})):s!=null&&(ho(s)&&(s=lh(s,n+(!s.key||i&&i.key===s.key?"":(""+s.key).replace(Yl,"$&/")+"/")+e)),t.push(s)),1;if(i=0,r=r===""?".":r+":",Array.isArray(e))for(var l=0;l<e.length;l++){o=e[l];var u=r+po(o,l);i+=Dr(o,t,n,u,s)}else if(u=ih(e),typeof u=="function")for(e=u.call(e),l=0;!(o=e.next()).done;)o=o.value,u=r+po(o,l++),i+=Dr(o,t,n,u,s);else if(o==="object")throw t=""+e,Error(Ln(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return i}function Fr(e,t,n){if(e==null)return e;var r=[],s=0;return Dr(e,r,"","",function(o){return t.call(n,o,s++)}),r}function ah(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(n){e._status===0&&(n=n.default,e._status=1,e._result=n)},function(n){e._status===0&&(e._status=2,e._result=n)})}if(e._status===1)return e._result;throw e._result}var Jl={current:null};function Je(){var e=Jl.current;if(e===null)throw Error(Ln(321));return e}var ch={ReactCurrentDispatcher:Jl,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:fo,IsSomeRendererActing:{current:!1},assign:uo};I.Children={map:Fr,forEach:function(e,t,n){Fr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Fr(e,function(){t++}),t},toArray:function(e){return Fr(e,function(t){return t})||[]},only:function(e){if(!ho(e))throw Error(Ln(143));return e}},I.Component=Jt,I.PureComponent=ao,I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ch,I.cloneElement=function(e,t,n){if(e==null)throw Error(Ln(267,e));var r=uo({},e.props),s=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=fo.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)Kl.call(t,u)&&!Wl.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&l!==void 0?l[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){l=Array(u);for(var a=0;a<u;a++)l[a]=arguments[a+2];r.children=l}return{$$typeof:Yt,type:e.type,key:s,ref:o,props:r,_owner:i}},I.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:Il,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:zl,_context:e},e.Consumer=e},I.createElement=Ql,I.createFactory=function(e){var t=Ql.bind(null,e);return t.type=e,t},I.createRef=function(){return{current:null}},I.forwardRef=function(e){return{$$typeof:Ml,render:e}},I.isValidElement=ho,I.lazy=function(e){return{$$typeof:Fl,_payload:{_status:-1,_result:e},_init:ah}},I.memo=function(e,t){return{$$typeof:Dl,type:e,compare:t===void 0?null:t}},I.useCallback=function(e,t){return Je().useCallback(e,t)},I.useContext=function(e,t){return Je().useContext(e,t)},I.useDebugValue=function(){},I.useEffect=function(e,t){return Je().useEffect(e,t)},I.useImperativeHandle=function(e,t,n){return Je().useImperativeHandle(e,t,n)},I.useLayoutEffect=function(e,t){return Je().useLayoutEffect(e,t)},I.useMemo=function(e,t){return Je().useMemo(e,t)},I.useReducer=function(e,t,n){return Je().useReducer(e,t,n)},I.useRef=function(e){return Je().useRef(e)},I.useState=function(e){return Je().useState(e)},I.version="17.0.2",_l.exports=I;var R=_l.exports;const tt=pe(R);/** @license React v17.0.2
14
14
  * react-jsx-runtime.production.min.js
15
15
  *
16
16
  * Copyright (c) Facebook, Inc. and its affiliates.
17
17
  *
18
18
  * This source code is licensed under the MIT license found in the
19
19
  * LICENSE file in the root directory of this source tree.
20
- */var Bd=I,ba=60103;if(Vn.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var Va=Symbol.for;ba=Va("react.element"),Vn.Fragment=Va("react.fragment")}var bd=Bd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Vd=Object.prototype.hasOwnProperty,Hd={key:!0,ref:!0,__self:!0,__source:!0};function Ha(e,t,n){var r,s={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)Vd.call(t,r)&&!Hd.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:ba,type:e,key:o,ref:i,props:s,_owner:bd.current}}Vn.jsx=Ha,Vn.jsxs=Ha,Ca.exports=Vn;var P=Ca.exports,Ka={exports:{}},je={},Wa={exports:{}},qa={};/** @license React v0.20.2
20
+ */var fh=R,Gl=60103;if(An.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var Xl=Symbol.for;Gl=Xl("react.element"),An.Fragment=Xl("react.fragment")}var hh=fh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,dh=Object.prototype.hasOwnProperty,ph={key:!0,ref:!0,__self:!0,__source:!0};function ql(e,t,n){var r,s={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)dh.call(t,r)&&!ph.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:Gl,type:e,key:o,ref:i,props:s,_owner:hh.current}}An.jsx=ql,An.jsxs=ql,Al.exports=An;var P=Al.exports,Zl={exports:{}},Ce={},bl={exports:{}},eu={};/** @license React v0.20.2
21
21
  * scheduler.production.min.js
22
22
  *
23
23
  * Copyright (c) Facebook, Inc. and its affiliates.
24
24
  *
25
25
  * This source code is licensed under the MIT license found in the
26
26
  * LICENSE file in the root directory of this source tree.
27
- */(function(e){var t,n,r,s;if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}if(typeof window>"u"||typeof MessageChannel!="function"){var a=null,u=null,c=function(){if(a!==null)try{var T=e.unstable_now();a(!0,T),a=null}catch(_){throw setTimeout(c,0),_}};t=function(T){a!==null?setTimeout(t,0,T):(a=T,setTimeout(c,0))},n=function(T,_){u=setTimeout(T,_)},r=function(){clearTimeout(u)},e.unstable_shouldYield=function(){return!1},s=e.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,h=window.clearTimeout;if(typeof console<"u"){var y=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof y!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,v=null,f=-1,p=5,g=0;e.unstable_shouldYield=function(){return e.unstable_now()>=g},s=function(){},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):p=0<T?Math.floor(1e3/T):5};var S=new MessageChannel,w=S.port2;S.port1.onmessage=function(){if(v!==null){var T=e.unstable_now();g=T+p;try{v(!0,T)?w.postMessage(null):(m=!1,v=null)}catch(_){throw w.postMessage(null),_}}else m=!1},t=function(T){v=T,m||(m=!0,w.postMessage(null))},n=function(T,_){f=d(function(){T(e.unstable_now())},_)},r=function(){h(f),f=-1}}function C(T,_){var F=T.length;T.push(_);e:for(;;){var Q=F-1>>>1,ue=T[Q];if(ue!==void 0&&0<j(ue,_))T[Q]=_,T[F]=ue,F=Q;else break e}}function $(T){return T=T[0],T===void 0?null:T}function k(T){var _=T[0];if(_!==void 0){var F=T.pop();if(F!==_){T[0]=F;e:for(var Q=0,ue=T.length;Q<ue;){var nn=2*(Q+1)-1,rn=T[nn],Zr=nn+1,bn=T[Zr];if(rn!==void 0&&0>j(rn,F))bn!==void 0&&0>j(bn,rn)?(T[Q]=bn,T[Zr]=F,Q=Zr):(T[Q]=rn,T[nn]=F,Q=nn);else if(bn!==void 0&&0>j(bn,F))T[Q]=bn,T[Zr]=F,Q=Zr;else break e}}return _}return null}function j(T,_){var F=T.sortIndex-_.sortIndex;return F!==0?F:T.id-_.id}var A=[],M=[],be=1,Pe=null,re=3,tt=!1,Te=!1,nt=!1;function Bn(T){for(var _=$(M);_!==null;){if(_.callback===null)k(M);else if(_.startTime<=T)k(M),_.sortIndex=_.expirationTime,C(A,_);else break;_=$(M)}}function ae(T){if(nt=!1,Bn(T),!Te)if($(A)!==null)Te=!0,t(Ve);else{var _=$(M);_!==null&&n(ae,_.startTime-T)}}function Ve(T,_){Te=!1,nt&&(nt=!1,r()),tt=!0;var F=re;try{for(Bn(_),Pe=$(A);Pe!==null&&(!(Pe.expirationTime>_)||T&&!e.unstable_shouldYield());){var Q=Pe.callback;if(typeof Q=="function"){Pe.callback=null,re=Pe.priorityLevel;var ue=Q(Pe.expirationTime<=_);_=e.unstable_now(),typeof ue=="function"?Pe.callback=ue:Pe===$(A)&&k(A),Bn(_)}else k(A);Pe=$(A)}if(Pe!==null)var nn=!0;else{var rn=$(M);rn!==null&&n(ae,rn.startTime-_),nn=!1}return nn}finally{Pe=null,re=F,tt=!1}}var tn=s;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(T){T.callback=null},e.unstable_continueExecution=function(){Te||tt||(Te=!0,t(Ve))},e.unstable_getCurrentPriorityLevel=function(){return re},e.unstable_getFirstCallbackNode=function(){return $(A)},e.unstable_next=function(T){switch(re){case 1:case 2:case 3:var _=3;break;default:_=re}var F=re;re=_;try{return T()}finally{re=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=tn,e.unstable_runWithPriority=function(T,_){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var F=re;re=T;try{return _()}finally{re=F}},e.unstable_scheduleCallback=function(T,_,F){var Q=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?Q+F:Q):F=Q,T){case 1:var ue=-1;break;case 2:ue=250;break;case 5:ue=1073741823;break;case 4:ue=1e4;break;default:ue=5e3}return ue=F+ue,T={id:be++,callback:_,priorityLevel:T,startTime:F,expirationTime:ue,sortIndex:-1},F>Q?(T.sortIndex=F,C(M,T),$(A)===null&&T===$(M)&&(nt?r():nt=!0,n(ae,F-Q))):(T.sortIndex=ue,C(A,T),Te||tt||(Te=!0,t(Ve))),T},e.unstable_wrapCallback=function(T){var _=re;return function(){var F=re;re=_;try{return T.apply(this,arguments)}finally{re=F}}}})(qa),Wa.exports=qa;var Kd=Wa.exports;/** @license React v17.0.2
27
+ */(function(e){var t,n,r,s;if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}if(typeof window>"u"||typeof MessageChannel!="function"){var u=null,a=null,f=function(){if(u!==null)try{var E=e.unstable_now();u(!0,E),u=null}catch(_){throw setTimeout(f,0),_}};t=function(E){u!==null?setTimeout(t,0,E):(u=E,setTimeout(f,0))},n=function(E,_){a=setTimeout(E,_)},r=function(){clearTimeout(a)},e.unstable_shouldYield=function(){return!1},s=e.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,c=window.clearTimeout;if(typeof console<"u"){var m=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof m!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,x=null,h=-1,d=5,g=0;e.unstable_shouldYield=function(){return e.unstable_now()>=g},s=function(){},e.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):d=0<E?Math.floor(1e3/E):5};var w=new MessageChannel,y=w.port2;w.port1.onmessage=function(){if(x!==null){var E=e.unstable_now();g=E+d;try{x(!0,E)?y.postMessage(null):(v=!1,x=null)}catch(_){throw y.postMessage(null),_}}else v=!1},t=function(E){x=E,v||(v=!0,y.postMessage(null))},n=function(E,_){h=p(function(){E(e.unstable_now())},_)},r=function(){c(h),h=-1}}function $(E,_){var z=E.length;E.push(_);e:for(;;){var J=z-1>>>1,ie=E[J];if(ie!==void 0&&0<T(ie,_))E[J]=_,E[z]=ie,z=J;else break e}}function S(E){return E=E[0],E===void 0?null:E}function C(E){var _=E[0];if(_!==void 0){var z=E.pop();if(z!==_){E[0]=z;e:for(var J=0,ie=E.length;J<ie;){var Wt=2*(J+1)-1,Qt=E[Wt],Mr=Wt+1,Nn=E[Mr];if(Qt!==void 0&&0>T(Qt,z))Nn!==void 0&&0>T(Nn,Qt)?(E[J]=Nn,E[Mr]=z,J=Mr):(E[J]=Qt,E[Wt]=z,J=Wt);else if(Nn!==void 0&&0>T(Nn,z))E[J]=Nn,E[Mr]=z,J=Mr;else break e}}return _}return null}function T(E,_){var z=E.sortIndex-_.sortIndex;return z!==0?z:E.id-_.id}var N=[],M=[],ze=1,Se=null,ee=3,Qe=!1,$e=!1,Ye=!1;function jn(E){for(var _=S(M);_!==null;){if(_.callback===null)C(M);else if(_.startTime<=E)C(M),_.sortIndex=_.expirationTime,$(N,_);else break;_=S(M)}}function oe(E){if(Ye=!1,jn(E),!$e)if(S(N)!==null)$e=!0,t(Ie);else{var _=S(M);_!==null&&n(oe,_.startTime-E)}}function Ie(E,_){$e=!1,Ye&&(Ye=!1,r()),Qe=!0;var z=ee;try{for(jn(_),Se=S(N);Se!==null&&(!(Se.expirationTime>_)||E&&!e.unstable_shouldYield());){var J=Se.callback;if(typeof J=="function"){Se.callback=null,ee=Se.priorityLevel;var ie=J(Se.expirationTime<=_);_=e.unstable_now(),typeof ie=="function"?Se.callback=ie:Se===S(N)&&C(N),jn(_)}else C(N);Se=S(N)}if(Se!==null)var Wt=!0;else{var Qt=S(M);Qt!==null&&n(oe,Qt.startTime-_),Wt=!1}return Wt}finally{Se=null,ee=z,Qe=!1}}var Kt=s;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(E){E.callback=null},e.unstable_continueExecution=function(){$e||Qe||($e=!0,t(Ie))},e.unstable_getCurrentPriorityLevel=function(){return ee},e.unstable_getFirstCallbackNode=function(){return S(N)},e.unstable_next=function(E){switch(ee){case 1:case 2:case 3:var _=3;break;default:_=ee}var z=ee;ee=_;try{return E()}finally{ee=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=Kt,e.unstable_runWithPriority=function(E,_){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var z=ee;ee=E;try{return _()}finally{ee=z}},e.unstable_scheduleCallback=function(E,_,z){var J=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?J+z:J):z=J,E){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=z+ie,E={id:ze++,callback:_,priorityLevel:E,startTime:z,expirationTime:ie,sortIndex:-1},z>J?(E.sortIndex=z,$(M,E),S(N)===null&&E===S(M)&&(Ye?r():Ye=!0,n(oe,z-J))):(E.sortIndex=ie,$(N,E),$e||Qe||($e=!0,t(Ie))),E},e.unstable_wrapCallback=function(E){var _=ee;return function(){var z=ee;ee=_;try{return E.apply(this,arguments)}finally{ee=z}}}})(eu),bl.exports=eu;var gh=bl.exports;/** @license React v17.0.2
28
28
  * react-dom.production.min.js
29
29
  *
30
30
  * Copyright (c) Facebook, Inc. and its affiliates.
31
31
  *
32
32
  * This source code is licensed under the MIT license found in the
33
33
  * LICENSE file in the root directory of this source tree.
34
- */var ns=I,V=Ea,te=Kd;function E(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!ns)throw Error(E(227));var Ja=new Set,Kn={};function _t(e,t){ln(e,t),ln(e+"Capture",t)}function ln(e,t){for(Kn[e]=t,e=0;e<t.length;e++)Ja.add(t[e])}var st=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wd=/^[: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]*$/,Qa=Object.prototype.hasOwnProperty,Ya={},Xa={};function qd(e){return Qa.call(Xa,e)?!0:Qa.call(Ya,e)?!1:Wd.test(e)?Xa[e]=!0:(Ya[e]=!0,!1)}function Jd(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Qd(e,t,n,r){if(t===null||typeof t>"u"||Jd(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function me(e,t,n,r,s,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var se={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){se[e]=new me(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];se[t]=new me(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){se[e]=new me(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){se[e]=new me(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){se[e]=new me(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){se[e]=new me(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){se[e]=new me(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){se[e]=new me(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){se[e]=new me(e,5,!1,e.toLowerCase(),null,!1,!1)});var Wo=/[\-:]([a-z])/g;function qo(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(Wo,qo);se[t]=new me(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(Wo,qo);se[t]=new me(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(Wo,qo);se[t]=new me(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){se[e]=new me(e,1,!1,e.toLowerCase(),null,!1,!1)}),se.xlinkHref=new me("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){se[e]=new me(e,1,!1,e.toLowerCase(),null,!0,!0)});function Jo(e,t,n,r){var s=se.hasOwnProperty(t)?se[t]:null,o=s!==null?s.type===0:r?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");o||(Qd(t,n,s,r)&&(n=null),r||s===null?qd(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Dt=ns.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Wn=60103,It=60106,ft=60107,Qo=60108,qn=60114,Yo=60109,Xo=60110,rs=60112,Jn=60113,ss=60120,os=60115,Go=60116,Zo=60121,ei=60128,Ga=60129,ti=60130,ni=60131;if(typeof Symbol=="function"&&Symbol.for){var ne=Symbol.for;Wn=ne("react.element"),It=ne("react.portal"),ft=ne("react.fragment"),Qo=ne("react.strict_mode"),qn=ne("react.profiler"),Yo=ne("react.provider"),Xo=ne("react.context"),rs=ne("react.forward_ref"),Jn=ne("react.suspense"),ss=ne("react.suspense_list"),os=ne("react.memo"),Go=ne("react.lazy"),Zo=ne("react.block"),ne("react.scope"),ei=ne("react.opaque.id"),Ga=ne("react.debug_trace_mode"),ti=ne("react.offscreen"),ni=ne("react.legacy_hidden")}var Za=typeof Symbol=="function"&&Symbol.iterator;function Qn(e){return e===null||typeof e!="object"?null:(e=Za&&e[Za]||e["@@iterator"],typeof e=="function"?e:null)}var ri;function Yn(e){if(ri===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ri=t&&t[1]||""}return`
35
- `+ri+e}var si=!1;function is(e,t){if(!e||si)return"";si=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(a){var r=a}Reflect.construct(e,[],t)}else{try{t.call()}catch(a){r=a}e.call(t.prototype)}else{try{throw Error()}catch(a){r=a}e()}}catch(a){if(a&&r&&typeof a.stack=="string"){for(var s=a.stack.split(`
34
+ */var Ur=R,V=Ol,Z=gh;function k(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(!Ur)throw Error(k(227));var tu=new Set,On={};function Pt(e,t){Gt(e,t),Gt(e+"Capture",t)}function Gt(e,t){for(On[e]=t,e=0;e<t.length;e++)tu.add(t[e])}var Ge=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mh=/^[: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]*$/,nu=Object.prototype.hasOwnProperty,ru={},su={};function yh(e){return nu.call(su,e)?!0:nu.call(ru,e)?!1:mh.test(e)?su[e]=!0:(ru[e]=!0,!1)}function vh(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function wh(e,t,n,r){if(t===null||typeof t>"u"||vh(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function he(e,t,n,r,s,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var te={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){te[e]=new he(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];te[t]=new he(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){te[e]=new he(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){te[e]=new he(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){te[e]=new he(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){te[e]=new he(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){te[e]=new he(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){te[e]=new he(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){te[e]=new he(e,5,!1,e.toLowerCase(),null,!1,!1)});var go=/[\-:]([a-z])/g;function mo(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(go,mo);te[t]=new he(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(go,mo);te[t]=new he(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(go,mo);te[t]=new he(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){te[e]=new he(e,1,!1,e.toLowerCase(),null,!1,!1)}),te.xlinkHref=new he("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){te[e]=new he(e,1,!1,e.toLowerCase(),null,!0,!0)});function yo(e,t,n,r){var s=te.hasOwnProperty(t)?te[t]:null,o=s!==null?s.type===0:r?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");o||(wh(t,n,s,r)&&(n=null),r||s===null?yh(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Et=Ur.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_n=60103,Tt=60106,nt=60107,vo=60108,Rn=60114,wo=60109,xo=60110,Vr=60112,zn=60113,Br=60120,Hr=60115,So=60116,$o=60121,ko=60128,ou=60129,Co=60130,Po=60131;if(typeof Symbol=="function"&&Symbol.for){var b=Symbol.for;_n=b("react.element"),Tt=b("react.portal"),nt=b("react.fragment"),vo=b("react.strict_mode"),Rn=b("react.profiler"),wo=b("react.provider"),xo=b("react.context"),Vr=b("react.forward_ref"),zn=b("react.suspense"),Br=b("react.suspense_list"),Hr=b("react.memo"),So=b("react.lazy"),$o=b("react.block"),b("react.scope"),ko=b("react.opaque.id"),ou=b("react.debug_trace_mode"),Co=b("react.offscreen"),Po=b("react.legacy_hidden")}var iu=typeof Symbol=="function"&&Symbol.iterator;function In(e){return e===null||typeof e!="object"?null:(e=iu&&e[iu]||e["@@iterator"],typeof e=="function"?e:null)}var Eo;function Mn(e){if(Eo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Eo=t&&t[1]||""}return`
35
+ `+Eo+e}var To=!1;function Kr(e,t){if(!e||To)return"";To=!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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(`
36
36
  `),o=r.stack.split(`
37
37
  `),i=s.length-1,l=o.length-1;1<=i&&0<=l&&s[i]!==o[l];)l--;for(;1<=i&&0<=l;i--,l--)if(s[i]!==o[l]){if(i!==1||l!==1)do if(i--,l--,0>l||s[i]!==o[l])return`
38
- `+s[i].replace(" at new "," at ");while(1<=i&&0<=l);break}}}finally{si=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Yn(e):""}function Yd(e){switch(e.tag){case 5:return Yn(e.type);case 16:return Yn("Lazy");case 13:return Yn("Suspense");case 19:return Yn("SuspenseList");case 0:case 2:case 15:return e=is(e.type,!1),e;case 11:return e=is(e.type.render,!1),e;case 22:return e=is(e.type._render,!1),e;case 1:return e=is(e.type,!0),e;default:return""}}function an(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 ft:return"Fragment";case It:return"Portal";case qn:return"Profiler";case Qo:return"StrictMode";case Jn:return"Suspense";case ss:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xo:return(e.displayName||"Context")+".Consumer";case Yo:return(e._context.displayName||"Context")+".Provider";case rs:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case os:return an(e.type);case Zo:return an(e._render);case Go:t=e._payload,e=e._init;try{return an(e(t))}catch{}}return null}function ht(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function eu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Xd(e){var t=eu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ls(e){e._valueTracker||(e._valueTracker=Xd(e))}function tu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=eu(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function as(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 oi(e,t){var n=t.checked;return V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function nu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ht(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ru(e,t){t=t.checked,t!=null&&Jo(e,"checked",t,!1)}function ii(e,t){ru(e,t);var n=ht(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?li(e,t.type,n):t.hasOwnProperty("defaultValue")&&li(e,t.type,ht(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function su(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function li(e,t,n){(t!=="number"||as(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Gd(e){var t="";return ns.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function ai(e,t){return e=V({children:void 0},t),(t=Gd(t.children))&&(e.children=t),e}function un(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ht(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function ui(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(E(91));return V({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ou(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(E(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(E(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ht(n)}}function iu(e,t){var n=ht(t.value),r=ht(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function lu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var ci={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function au(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function fi(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?au(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var us,uu=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!==ci.svg||"innerHTML"in e)e.innerHTML=t;else{for(us=us||document.createElement("div"),us.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=us.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Xn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Gn={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},Zd=["Webkit","ms","Moz","O"];Object.keys(Gn).forEach(function(e){Zd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Gn[t]=Gn[e]})});function cu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Gn.hasOwnProperty(e)&&Gn[e]?(""+t).trim():t+"px"}function fu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=cu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var ep=V({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 hi(e,t){if(t){if(ep[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function di(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 pi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gi=null,cn=null,fn=null;function hu(e){if(e=yr(e)){if(typeof gi!="function")throw Error(E(280));var t=e.stateNode;t&&(t=Ts(t),gi(e.stateNode,e.type,t))}}function du(e){cn?fn?fn.push(e):fn=[e]:cn=e}function pu(){if(cn){var e=cn,t=fn;if(fn=cn=null,hu(e),t)for(e=0;e<t.length;e++)hu(t[e])}}function mi(e,t){return e(t)}function gu(e,t,n,r,s){return e(t,n,r,s)}function yi(){}var mu=mi,Ft=!1,vi=!1;function wi(){(cn!==null||fn!==null)&&(yi(),pu())}function tp(e,t,n){if(vi)return e(t,n);vi=!0;try{return mu(e,t,n)}finally{vi=!1,wi()}}function Zn(e,t){var n=e.stateNode;if(n===null)return null;var r=Ts(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(E(231,t,typeof n));return n}var Si=!1;if(st)try{var er={};Object.defineProperty(er,"passive",{get:function(){Si=!0}}),window.addEventListener("test",er,er),window.removeEventListener("test",er,er)}catch{Si=!1}function np(e,t,n,r,s,o,i,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var tr=!1,cs=null,fs=!1,xi=null,rp={onError:function(e){tr=!0,cs=e}};function sp(e,t,n,r,s,o,i,l,a){tr=!1,cs=null,np.apply(rp,arguments)}function op(e,t,n,r,s,o,i,l,a){if(sp.apply(this,arguments),tr){if(tr){var u=cs;tr=!1,cs=null}else throw Error(E(198));fs||(fs=!0,xi=u)}}function zt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&1026&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function yu(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function vu(e){if(zt(e)!==e)throw Error(E(188))}function ip(e){var t=e.alternate;if(!t){if(t=zt(e),t===null)throw Error(E(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return vu(s),e;if(o===r)return vu(s),t;o=o.sibling}throw Error(E(188))}if(n.return!==r.return)n=s,r=o;else{for(var i=!1,l=s.child;l;){if(l===n){i=!0,n=s,r=o;break}if(l===r){i=!0,r=s,n=o;break}l=l.sibling}if(!i){for(l=o.child;l;){if(l===n){i=!0,n=o,r=s;break}if(l===r){i=!0,r=o,n=s;break}l=l.sibling}if(!i)throw Error(E(189))}}if(n.alternate!==r)throw Error(E(190))}if(n.tag!==3)throw Error(E(188));return n.stateNode.current===n?e:t}function wu(e){if(e=ip(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Su(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var xu,$i,$u,Cu,Ci=!1,Ke=[],dt=null,pt=null,gt=null,nr=new Map,rr=new Map,sr=[],ku="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ki(e,t,n,r,s){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:s,targetContainers:[r]}}function Eu(e,t){switch(e){case"focusin":case"focusout":dt=null;break;case"dragenter":case"dragleave":pt=null;break;case"mouseover":case"mouseout":gt=null;break;case"pointerover":case"pointerout":nr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rr.delete(t.pointerId)}}function or(e,t,n,r,s,o){return e===null||e.nativeEvent!==o?(e=ki(t,n,r,s,o),t!==null&&(t=yr(t),t!==null&&$i(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function lp(e,t,n,r,s){switch(t){case"focusin":return dt=or(dt,e,t,n,r,s),!0;case"dragenter":return pt=or(pt,e,t,n,r,s),!0;case"mouseover":return gt=or(gt,e,t,n,r,s),!0;case"pointerover":var o=s.pointerId;return nr.set(o,or(nr.get(o)||null,e,t,n,r,s)),!0;case"gotpointercapture":return o=s.pointerId,rr.set(o,or(rr.get(o)||null,e,t,n,r,s)),!0}return!1}function ap(e){var t=Mt(e.target);if(t!==null){var n=zt(t);if(n!==null){if(t=n.tag,t===13){if(t=yu(n),t!==null){e.blockedOn=t,Cu(e.lanePriority,function(){te.unstable_runWithPriority(e.priority,function(){$u(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function hs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ni(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=yr(n),t!==null&&$i(t),e.blockedOn=n,!1;t.shift()}return!0}function Pu(e,t,n){hs(e)&&n.delete(t)}function up(){for(Ci=!1;0<Ke.length;){var e=Ke[0];if(e.blockedOn!==null){e=yr(e.blockedOn),e!==null&&xu(e);break}for(var t=e.targetContainers;0<t.length;){var n=Ni(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&Ke.shift()}dt!==null&&hs(dt)&&(dt=null),pt!==null&&hs(pt)&&(pt=null),gt!==null&&hs(gt)&&(gt=null),nr.forEach(Pu),rr.forEach(Pu)}function ir(e,t){e.blockedOn===t&&(e.blockedOn=null,Ci||(Ci=!0,te.unstable_scheduleCallback(te.unstable_NormalPriority,up)))}function Tu(e){function t(s){return ir(s,e)}if(0<Ke.length){ir(Ke[0],e);for(var n=1;n<Ke.length;n++){var r=Ke[n];r.blockedOn===e&&(r.blockedOn=null)}}for(dt!==null&&ir(dt,e),pt!==null&&ir(pt,e),gt!==null&&ir(gt,e),nr.forEach(t),rr.forEach(t),n=0;n<sr.length;n++)r=sr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<sr.length&&(n=sr[0],n.blockedOn===null);)ap(n),n.blockedOn===null&&sr.shift()}function ds(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var hn={animationend:ds("Animation","AnimationEnd"),animationiteration:ds("Animation","AnimationIteration"),animationstart:ds("Animation","AnimationStart"),transitionend:ds("Transition","TransitionEnd")},Ei={},ju={};st&&(ju=document.createElement("div").style,"AnimationEvent"in window||(delete hn.animationend.animation,delete hn.animationiteration.animation,delete hn.animationstart.animation),"TransitionEvent"in window||delete hn.transitionend.transition);function ps(e){if(Ei[e])return Ei[e];if(!hn[e])return e;var t=hn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ju)return Ei[e]=t[n];return e}var Au=ps("animationend"),Nu=ps("animationiteration"),Ou=ps("animationstart"),Ru=ps("transitionend"),Lu=new Map,Pi=new Map,cp=["abort","abort",Au,"animationEnd",Nu,"animationIteration",Ou,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Ru,"transitionEnd","waiting","waiting"];function Ti(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],s=e[n+1];s="on"+(s[0].toUpperCase()+s.slice(1)),Pi.set(r,t),Lu.set(r,s),_t(s,[r])}}var fp=te.unstable_now;fp();var U=8;function dn(e){if(1&e)return U=15,1;if(2&e)return U=14,2;if(4&e)return U=13,4;var t=24&e;return t!==0?(U=12,t):e&32?(U=11,32):(t=192&e,t!==0?(U=10,t):e&256?(U=9,256):(t=3584&e,t!==0?(U=8,t):e&4096?(U=7,4096):(t=4186112&e,t!==0?(U=6,t):(t=62914560&e,t!==0?(U=5,t):e&67108864?(U=4,67108864):e&134217728?(U=3,134217728):(t=805306368&e,t!==0?(U=2,t):1073741824&e?(U=1,1073741824):(U=8,e))))))}function hp(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 dp(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(E(358,e))}}function lr(e,t){var n=e.pendingLanes;if(n===0)return U=0;var r=0,s=0,o=e.expiredLanes,i=e.suspendedLanes,l=e.pingedLanes;if(o!==0)r=o,s=U=15;else if(o=n&134217727,o!==0){var a=o&~i;a!==0?(r=dn(a),s=U):(l&=o,l!==0&&(r=dn(l),s=U))}else o=n&~i,o!==0?(r=dn(o),s=U):l!==0&&(r=dn(l),s=U);if(r===0)return 0;if(r=31-mt(r),r=n&((0>r?0:1<<r)<<1)-1,t!==0&&t!==r&&!(t&i)){if(dn(t),s<=U)return t;U=s}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-mt(t),s=1<<n,r|=e[n],t&=~s;return r}function _u(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function gs(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=pn(24&~t),e===0?gs(10,t):e;case 10:return e=pn(192&~t),e===0?gs(8,t):e;case 8:return e=pn(3584&~t),e===0&&(e=pn(4186112&~t),e===0&&(e=512)),e;case 2:return t=pn(805306368&~t),t===0&&(t=268435456),t}throw Error(E(358,e))}function pn(e){return e&-e}function ji(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ms(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,e=e.eventTimes,t=31-mt(t),e[t]=n}var mt=Math.clz32?Math.clz32:mp,pp=Math.log,gp=Math.LN2;function mp(e){return e===0?32:31-(pp(e)/gp|0)|0}var yp=te.unstable_UserBlockingPriority,vp=te.unstable_runWithPriority,ys=!0;function wp(e,t,n,r){Ft||yi();var s=Ai,o=Ft;Ft=!0;try{gu(s,e,t,n,r)}finally{(Ft=o)||wi()}}function Sp(e,t,n,r){vp(yp,Ai.bind(null,e,t,n,r))}function Ai(e,t,n,r){if(ys){var s;if((s=(t&4)===0)&&0<Ke.length&&-1<ku.indexOf(e))e=ki(null,e,t,n,r),Ke.push(e);else{var o=Ni(e,t,n,r);if(o===null)s&&Eu(e,r);else{if(s){if(-1<ku.indexOf(e)){e=ki(o,e,t,n,r),Ke.push(e);return}if(lp(o,e,t,n,r))return;Eu(e,r)}uc(e,t,r,null,n)}}}}function Ni(e,t,n,r){var s=pi(r);if(s=Mt(s),s!==null){var o=zt(s);if(o===null)s=null;else{var i=o.tag;if(i===13){if(s=yu(o),s!==null)return s;s=null}else if(i===3){if(o.stateNode.hydrate)return o.tag===3?o.stateNode.containerInfo:null;s=null}else o!==s&&(s=null)}}return uc(e,t,r,s,n),null}var yt=null,Oi=null,vs=null;function Du(){if(vs)return vs;var e,t=Oi,n=t.length,r,s="value"in yt?yt.value:yt.textContent,o=s.length;for(e=0;e<n&&t[e]===s[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===s[o-r];r++);return vs=s.slice(e,1<r?1-r:void 0)}function ws(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 Ss(){return!0}function Iu(){return!1}function ke(e){function t(n,r,s,o,i){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Ss:Iu,this.isPropagationStopped=Iu,this}return V(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=Ss)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ss)},persist:function(){},isPersistent:Ss}),t}var gn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ri=ke(gn),ar=V({},gn,{view:0,detail:0}),xp=ke(ar),Li,_i,ur,xs=V({},ar,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ii,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!==ur&&(ur&&e.type==="mousemove"?(Li=e.screenX-ur.screenX,_i=e.screenY-ur.screenY):_i=Li=0,ur=e),Li)},movementY:function(e){return"movementY"in e?e.movementY:_i}}),Fu=ke(xs),$p=V({},xs,{dataTransfer:0}),Cp=ke($p),kp=V({},ar,{relatedTarget:0}),Di=ke(kp),Ep=V({},gn,{animationName:0,elapsedTime:0,pseudoElement:0}),Pp=ke(Ep),Tp=V({},gn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),jp=ke(Tp),Ap=V({},gn,{data:0}),zu=ke(Ap),Np={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Op={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"},Rp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Lp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Rp[e])?!!t[e]:!1}function Ii(){return Lp}var _p=V({},ar,{key:function(e){if(e.key){var t=Np[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ws(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Op[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ii,charCode:function(e){return e.type==="keypress"?ws(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ws(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Dp=ke(_p),Ip=V({},xs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Mu=ke(Ip),Fp=V({},ar,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ii}),zp=ke(Fp),Mp=V({},gn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Up=ke(Mp),Bp=V({},xs,{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}),bp=ke(Bp),Vp=[9,13,27,32],Fi=st&&"CompositionEvent"in window,cr=null;st&&"documentMode"in document&&(cr=document.documentMode);var Hp=st&&"TextEvent"in window&&!cr,Uu=st&&(!Fi||cr&&8<cr&&11>=cr),Bu=" ",bu=!1;function Vu(e,t){switch(e){case"keyup":return Vp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var mn=!1;function Kp(e,t){switch(e){case"compositionend":return Hu(t);case"keypress":return t.which!==32?null:(bu=!0,Bu);case"textInput":return e=t.data,e===Bu&&bu?null:e;default:return null}}function Wp(e,t){if(mn)return e==="compositionend"||!Fi&&Vu(e,t)?(e=Du(),vs=Oi=yt=null,mn=!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 Uu&&t.locale!=="ko"?null:t.data;default:return null}}var qp={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 Ku(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!qp[e.type]:t==="textarea"}function Wu(e,t,n,r){du(r),t=Cs(t,"onChange"),0<t.length&&(n=new Ri("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var fr=null,hr=null;function Jp(e){sc(e,0)}function $s(e){var t=xn(e);if(tu(t))return e}function Qp(e,t){if(e==="change")return t}var qu=!1;if(st){var zi;if(st){var Mi="oninput"in document;if(!Mi){var Ju=document.createElement("div");Ju.setAttribute("oninput","return;"),Mi=typeof Ju.oninput=="function"}zi=Mi}else zi=!1;qu=zi&&(!document.documentMode||9<document.documentMode)}function Qu(){fr&&(fr.detachEvent("onpropertychange",Yu),hr=fr=null)}function Yu(e){if(e.propertyName==="value"&&$s(hr)){var t=[];if(Wu(t,hr,e,pi(e)),e=Jp,Ft)e(t);else{Ft=!0;try{mi(e,t)}finally{Ft=!1,wi()}}}}function Yp(e,t,n){e==="focusin"?(Qu(),fr=t,hr=n,fr.attachEvent("onpropertychange",Yu)):e==="focusout"&&Qu()}function Xp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $s(hr)}function Gp(e,t){if(e==="click")return $s(t)}function Zp(e,t){if(e==="input"||e==="change")return $s(t)}function eg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ae=typeof Object.is=="function"?Object.is:eg,tg=Object.prototype.hasOwnProperty;function dr(e,t){if(Ae(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!tg.call(t,n[r])||!Ae(e[n[r]],t[n[r]]))return!1;return!0}function Xu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gu(e,t){var n=Xu(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Xu(n)}}function Zu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ec(){for(var e=window,t=as();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=as(e.document)}return t}function Ui(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 ng=st&&"documentMode"in document&&11>=document.documentMode,yn=null,Bi=null,pr=null,bi=!1;function tc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;bi||yn==null||yn!==as(r)||(r=yn,"selectionStart"in r&&Ui(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),pr&&dr(pr,r)||(pr=r,r=Cs(Bi,"onSelect"),0<r.length&&(t=new Ri("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yn)))}Ti("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),Ti("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),Ti(cp,2);for(var nc="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Vi=0;Vi<nc.length;Vi++)Pi.set(nc[Vi],0);ln("onMouseEnter",["mouseout","mouseover"]),ln("onMouseLeave",["mouseout","mouseover"]),ln("onPointerEnter",["pointerout","pointerover"]),ln("onPointerLeave",["pointerout","pointerover"]),_t("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),_t("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),_t("onBeforeInput",["compositionend","keypress","textInput","paste"]),_t("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),_t("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),_t("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),rg=new Set("cancel close invalid load scroll toggle".split(" ").concat(gr));function rc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,op(r,t,void 0,e),e.currentTarget=null}function sc(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==o&&s.isPropagationStopped())break e;rc(s,l,u),o=a}else for(i=0;i<r.length;i++){if(l=r[i],a=l.instance,u=l.currentTarget,l=l.listener,a!==o&&s.isPropagationStopped())break e;rc(s,l,u),o=a}}}if(fs)throw e=xi,fs=!1,xi=null,e}function B(e,t){var n=gc(t),r=e+"__bubble";n.has(r)||(ac(t,e,2,!1),n.add(r))}var oc="_reactListening"+Math.random().toString(36).slice(2);function ic(e){e[oc]||(e[oc]=!0,Ja.forEach(function(t){rg.has(t)||lc(t,!1,e,null),lc(t,!0,e,null)}))}function lc(e,t,n,r){var s=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,o=n;e==="selectionchange"&&n.nodeType!==9&&(o=n.ownerDocument);var i=gc(o),l=e+"__"+(t?"capture":"bubble");i.has(l)||(t&&(s|=4),ac(o,e,s,t),i.add(l))}function ac(e,t,n,r){var s=Pi.get(t);switch(s===void 0?2:s){case 0:s=wp;break;case 1:s=Sp;break;default:s=Ai}n=s.bind(null,t,n,e),s=void 0,!Si||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function uc(e,t,n,r,s){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var l=r.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(i===4)for(i=r.return;i!==null;){var a=i.tag;if((a===3||a===4)&&(a=i.stateNode.containerInfo,a===s||a.nodeType===8&&a.parentNode===s))return;i=i.return}for(;l!==null;){if(i=Mt(l),i===null)return;if(a=i.tag,a===5||a===6){r=o=i;continue e}l=l.parentNode}}r=r.return}tp(function(){var u=o,c=pi(n),d=[];e:{var h=Lu.get(e);if(h!==void 0){var y=Ri,m=e;switch(e){case"keypress":if(ws(n)===0)break e;case"keydown":case"keyup":y=Dp;break;case"focusin":m="focus",y=Di;break;case"focusout":m="blur",y=Di;break;case"beforeblur":case"afterblur":y=Di;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=Fu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=Cp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=zp;break;case Au:case Nu:case Ou:y=Pp;break;case Ru:y=Up;break;case"scroll":y=xp;break;case"wheel":y=bp;break;case"copy":case"cut":case"paste":y=jp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Mu}var v=(t&4)!==0,f=!v&&e==="scroll",p=v?h!==null?h+"Capture":null:h;v=[];for(var g=u,S;g!==null;){S=g;var w=S.stateNode;if(S.tag===5&&w!==null&&(S=w,p!==null&&(w=Zn(g,p),w!=null&&v.push(mr(g,w,S)))),f)break;g=g.return}0<v.length&&(h=new y(h,m,null,n,c),d.push({event:h,listeners:v}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",h&&!(t&16)&&(m=n.relatedTarget||n.fromElement)&&(Mt(m)||m[Sn]))break e;if((y||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,y?(m=n.relatedTarget||n.toElement,y=u,m=m?Mt(m):null,m!==null&&(f=zt(m),m!==f||m.tag!==5&&m.tag!==6)&&(m=null)):(y=null,m=u),y!==m)){if(v=Fu,w="onMouseLeave",p="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(v=Mu,w="onPointerLeave",p="onPointerEnter",g="pointer"),f=y==null?h:xn(y),S=m==null?h:xn(m),h=new v(w,g+"leave",y,n,c),h.target=f,h.relatedTarget=S,w=null,Mt(c)===u&&(v=new v(p,g+"enter",m,n,c),v.target=S,v.relatedTarget=f,w=v),f=w,y&&m)t:{for(v=y,p=m,g=0,S=v;S;S=vn(S))g++;for(S=0,w=p;w;w=vn(w))S++;for(;0<g-S;)v=vn(v),g--;for(;0<S-g;)p=vn(p),S--;for(;g--;){if(v===p||p!==null&&v===p.alternate)break t;v=vn(v),p=vn(p)}v=null}else v=null;y!==null&&cc(d,h,y,v,!1),m!==null&&f!==null&&cc(d,f,m,v,!0)}}e:{if(h=u?xn(u):window,y=h.nodeName&&h.nodeName.toLowerCase(),y==="select"||y==="input"&&h.type==="file")var C=Qp;else if(Ku(h))if(qu)C=Zp;else{C=Xp;var $=Yp}else(y=h.nodeName)&&y.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(C=Gp);if(C&&(C=C(e,u))){Wu(d,C,n,c);break e}$&&$(e,h,u),e==="focusout"&&($=h._wrapperState)&&$.controlled&&h.type==="number"&&li(h,"number",h.value)}switch($=u?xn(u):window,e){case"focusin":(Ku($)||$.contentEditable==="true")&&(yn=$,Bi=u,pr=null);break;case"focusout":pr=Bi=yn=null;break;case"mousedown":bi=!0;break;case"contextmenu":case"mouseup":case"dragend":bi=!1,tc(d,n,c);break;case"selectionchange":if(ng)break;case"keydown":case"keyup":tc(d,n,c)}var k;if(Fi)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else mn?Vu(e,n)&&(j="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(j="onCompositionStart");j&&(Uu&&n.locale!=="ko"&&(mn||j!=="onCompositionStart"?j==="onCompositionEnd"&&mn&&(k=Du()):(yt=c,Oi="value"in yt?yt.value:yt.textContent,mn=!0)),$=Cs(u,j),0<$.length&&(j=new zu(j,e,null,n,c),d.push({event:j,listeners:$}),k?j.data=k:(k=Hu(n),k!==null&&(j.data=k)))),(k=Hp?Kp(e,n):Wp(e,n))&&(u=Cs(u,"onBeforeInput"),0<u.length&&(c=new zu("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=k))}sc(d,t)})}function mr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Cs(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,o=s.stateNode;s.tag===5&&o!==null&&(s=o,o=Zn(e,n),o!=null&&r.unshift(mr(e,o,s)),o=Zn(e,t),o!=null&&r.push(mr(e,o,s))),e=e.return}return r}function vn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function cc(e,t,n,r,s){for(var o=t._reactName,i=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,s?(a=Zn(n,o),a!=null&&i.unshift(mr(n,a,l))):s||(a=Zn(n,o),a!=null&&i.push(mr(n,a,l)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}function ks(){}var Hi=null,Ki=null;function fc(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Wi(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var hc=typeof setTimeout=="function"?setTimeout:void 0,sg=typeof clearTimeout=="function"?clearTimeout:void 0;function qi(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function wn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function dc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Ji=0;function og(e){return{$$typeof:ei,toString:e,valueOf:e}}var Es=Math.random().toString(36).slice(2),vt="__reactFiber$"+Es,Ps="__reactProps$"+Es,Sn="__reactContainer$"+Es,pc="__reactEvents$"+Es;function Mt(e){var t=e[vt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Sn]||n[vt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=dc(e);e!==null;){if(n=e[vt])return n;e=dc(e)}return t}e=n,n=e.parentNode}return null}function yr(e){return e=e[vt]||e[Sn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function xn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(E(33))}function Ts(e){return e[Ps]||null}function gc(e){var t=e[pc];return t===void 0&&(t=e[pc]=new Set),t}var Qi=[],$n=-1;function wt(e){return{current:e}}function b(e){0>$n||(e.current=Qi[$n],Qi[$n]=null,$n--)}function K(e,t){$n++,Qi[$n]=e.current,e.current=t}var St={},ce=wt(St),we=wt(!1),Ut=St;function Cn(e,t){var n=e.type.contextTypes;if(!n)return St;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},o;for(o in n)s[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Se(e){return e=e.childContextTypes,e!=null}function js(){b(we),b(ce)}function mc(e,t,n){if(ce.current!==St)throw Error(E(168));K(ce,t),K(we,n)}function yc(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in e))throw Error(E(108,an(t)||"Unknown",s));return V({},n,r)}function As(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||St,Ut=ce.current,K(ce,e),K(we,we.current),!0}function vc(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=yc(e,t,Ut),r.__reactInternalMemoizedMergedChildContext=e,b(we),b(ce),K(ce,e)):b(we),K(we,n)}var Yi=null,Bt=null,ig=te.unstable_runWithPriority,Xi=te.unstable_scheduleCallback,Gi=te.unstable_cancelCallback,lg=te.unstable_shouldYield,wc=te.unstable_requestPaint,Zi=te.unstable_now,ag=te.unstable_getCurrentPriorityLevel,Ns=te.unstable_ImmediatePriority,Sc=te.unstable_UserBlockingPriority,xc=te.unstable_NormalPriority,$c=te.unstable_LowPriority,Cc=te.unstable_IdlePriority,el={},ug=wc!==void 0?wc:function(){},ot=null,Os=null,tl=!1,kc=Zi(),fe=1e4>kc?Zi:function(){return Zi()-kc};function kn(){switch(ag()){case Ns:return 99;case Sc:return 98;case xc:return 97;case $c:return 96;case Cc:return 95;default:throw Error(E(332))}}function Ec(e){switch(e){case 99:return Ns;case 98:return Sc;case 97:return xc;case 96:return $c;case 95:return Cc;default:throw Error(E(332))}}function bt(e,t){return e=Ec(e),ig(e,t)}function vr(e,t,n){return e=Ec(e),Xi(e,t,n)}function We(){if(Os!==null){var e=Os;Os=null,Gi(e)}Pc()}function Pc(){if(!tl&&ot!==null){tl=!0;var e=0;try{var t=ot;bt(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),ot=null}catch(n){throw ot!==null&&(ot=ot.slice(e+1)),Xi(Ns,We),n}finally{tl=!1}}}var cg=Dt.ReactCurrentBatchConfig;function Ie(e,t){if(e&&e.defaultProps){t=V({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Rs=wt(null),Ls=null,En=null,_s=null;function nl(){_s=En=Ls=null}function rl(e){var t=Rs.current;b(Rs),e.type._context._currentValue=t}function Tc(e,t){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)===t){if(n===null||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,n!==null&&(n.childLanes|=t);e=e.return}}function Pn(e,t){Ls=e,_s=En=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Fe=!0),e.firstContext=null)}function Ne(e,t){if(_s!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(_s=e,t=1073741823),t={context:e,observedBits:t,next:null},En===null){if(Ls===null)throw Error(E(308));En=t,Ls.dependencies={lanes:0,firstContext:t,responders:null}}else En=En.next=t;return e._currentValue}var xt=!1;function sl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function jc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function $t(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ct(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function Ac(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?s=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?s=o=t:o=o.next=t}else s=o=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function wr(e,t,n,r){var s=e.updateQueue;xt=!1;var o=s.firstBaseUpdate,i=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var a=l,u=a.next;a.next=null,i===null?o=u:i.next=u,i=a;var c=e.alternate;if(c!==null){c=c.updateQueue;var d=c.lastBaseUpdate;d!==i&&(d===null?c.firstBaseUpdate=u:d.next=u,c.lastBaseUpdate=a)}}if(o!==null){d=s.baseState,i=0,c=u=a=null;do{l=o.lane;var h=o.eventTime;if((r&l)===l){c!==null&&(c=c.next={eventTime:h,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var y=e,m=o;switch(l=t,h=n,m.tag){case 1:if(y=m.payload,typeof y=="function"){d=y.call(h,d,l);break e}d=y;break e;case 3:y.flags=y.flags&-4097|64;case 0:if(y=m.payload,l=typeof y=="function"?y.call(h,d,l):y,l==null)break e;d=V({},d,l);break e;case 2:xt=!0}}o.callback!==null&&(e.flags|=32,l=s.effects,l===null?s.effects=[o]:l.push(o))}else h={eventTime:h,lane:l,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(u=c=h,a=d):c=c.next=h,i|=l;if(o=o.next,o===null){if(l=s.shared.pending,l===null)break;o=l.next,l.next=null,s.lastBaseUpdate=l,s.shared.pending=null}}while(!0);c===null&&(a=d),s.baseState=a,s.firstBaseUpdate=u,s.lastBaseUpdate=c,Or|=i,e.lanes=i,e.memoizedState=d}}function Nc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(E(191,s));s.call(r)}}}var Oc=new ns.Component().refs;function Ds(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:V({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Is={isMounted:function(e){return(e=e._reactInternals)?zt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ee(),s=Pt(e),o=$t(r,s);o.payload=t,n!=null&&(o.callback=n),Ct(e,o),Tt(e,s,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ee(),s=Pt(e),o=$t(r,s);o.tag=1,o.payload=t,n!=null&&(o.callback=n),Ct(e,o),Tt(e,s,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ee(),r=Pt(e),s=$t(n,r);s.tag=2,t!=null&&(s.callback=t),Ct(e,s),Tt(e,r,n)}};function Rc(e,t,n,r,s,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!dr(n,r)||!dr(s,o):!0}function Lc(e,t,n){var r=!1,s=St,o=t.contextType;return typeof o=="object"&&o!==null?o=Ne(o):(s=Se(t)?Ut:ce.current,r=t.contextTypes,o=(r=r!=null)?Cn(e,s):St),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Is,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=o),t}function _c(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Is.enqueueReplaceState(t,t.state,null)}function ol(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs=Oc,sl(e);var o=t.contextType;typeof o=="object"&&o!==null?s.context=Ne(o):(o=Se(t)?Ut:ce.current,s.context=Cn(e,o)),wr(e,n,s,r),s.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Ds(e,t,o,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Is.enqueueReplaceState(s,s.state,null),wr(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4)}var Fs=Array.isArray;function Sr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(E(309));var r=n.stateNode}if(!r)throw Error(E(147,e));var s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var i=r.refs;i===Oc&&(i=r.refs={}),o===null?delete i[s]:i[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(E(284));if(!n._owner)throw Error(E(290,e))}return e}function zs(e,t){if(e.type!=="textarea")throw Error(E(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Dc(e){function t(f,p){if(e){var g=f.lastEffect;g!==null?(g.nextEffect=p,f.lastEffect=p):f.firstEffect=f.lastEffect=p,p.nextEffect=null,p.flags=8}}function n(f,p){if(!e)return null;for(;p!==null;)t(f,p),p=p.sibling;return null}function r(f,p){for(f=new Map;p!==null;)p.key!==null?f.set(p.key,p):f.set(p.index,p),p=p.sibling;return f}function s(f,p){return f=Nt(f,p),f.index=0,f.sibling=null,f}function o(f,p,g){return f.index=g,e?(g=f.alternate,g!==null?(g=g.index,g<p?(f.flags=2,p):g):(f.flags=2,p)):p}function i(f){return e&&f.alternate===null&&(f.flags=2),f}function l(f,p,g,S){return p===null||p.tag!==6?(p=Bl(g,f.mode,S),p.return=f,p):(p=s(p,g),p.return=f,p)}function a(f,p,g,S){return p!==null&&p.elementType===g.type?(S=s(p,g.props),S.ref=Sr(f,p,g),S.return=f,S):(S=no(g.type,g.key,g.props,null,f.mode,S),S.ref=Sr(f,p,g),S.return=f,S)}function u(f,p,g,S){return p===null||p.tag!==4||p.stateNode.containerInfo!==g.containerInfo||p.stateNode.implementation!==g.implementation?(p=bl(g,f.mode,S),p.return=f,p):(p=s(p,g.children||[]),p.return=f,p)}function c(f,p,g,S,w){return p===null||p.tag!==7?(p=_n(g,f.mode,S,w),p.return=f,p):(p=s(p,g),p.return=f,p)}function d(f,p,g){if(typeof p=="string"||typeof p=="number")return p=Bl(""+p,f.mode,g),p.return=f,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Wn:return g=no(p.type,p.key,p.props,null,f.mode,g),g.ref=Sr(f,null,p),g.return=f,g;case It:return p=bl(p,f.mode,g),p.return=f,p}if(Fs(p)||Qn(p))return p=_n(p,f.mode,g,null),p.return=f,p;zs(f,p)}return null}function h(f,p,g,S){var w=p!==null?p.key:null;if(typeof g=="string"||typeof g=="number")return w!==null?null:l(f,p,""+g,S);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Wn:return g.key===w?g.type===ft?c(f,p,g.props.children,S,w):a(f,p,g,S):null;case It:return g.key===w?u(f,p,g,S):null}if(Fs(g)||Qn(g))return w!==null?null:c(f,p,g,S,null);zs(f,g)}return null}function y(f,p,g,S,w){if(typeof S=="string"||typeof S=="number")return f=f.get(g)||null,l(p,f,""+S,w);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Wn:return f=f.get(S.key===null?g:S.key)||null,S.type===ft?c(p,f,S.props.children,w,S.key):a(p,f,S,w);case It:return f=f.get(S.key===null?g:S.key)||null,u(p,f,S,w)}if(Fs(S)||Qn(S))return f=f.get(g)||null,c(p,f,S,w,null);zs(p,S)}return null}function m(f,p,g,S){for(var w=null,C=null,$=p,k=p=0,j=null;$!==null&&k<g.length;k++){$.index>k?(j=$,$=null):j=$.sibling;var A=h(f,$,g[k],S);if(A===null){$===null&&($=j);break}e&&$&&A.alternate===null&&t(f,$),p=o(A,p,k),C===null?w=A:C.sibling=A,C=A,$=j}if(k===g.length)return n(f,$),w;if($===null){for(;k<g.length;k++)$=d(f,g[k],S),$!==null&&(p=o($,p,k),C===null?w=$:C.sibling=$,C=$);return w}for($=r(f,$);k<g.length;k++)j=y($,f,k,g[k],S),j!==null&&(e&&j.alternate!==null&&$.delete(j.key===null?k:j.key),p=o(j,p,k),C===null?w=j:C.sibling=j,C=j);return e&&$.forEach(function(M){return t(f,M)}),w}function v(f,p,g,S){var w=Qn(g);if(typeof w!="function")throw Error(E(150));if(g=w.call(g),g==null)throw Error(E(151));for(var C=w=null,$=p,k=p=0,j=null,A=g.next();$!==null&&!A.done;k++,A=g.next()){$.index>k?(j=$,$=null):j=$.sibling;var M=h(f,$,A.value,S);if(M===null){$===null&&($=j);break}e&&$&&M.alternate===null&&t(f,$),p=o(M,p,k),C===null?w=M:C.sibling=M,C=M,$=j}if(A.done)return n(f,$),w;if($===null){for(;!A.done;k++,A=g.next())A=d(f,A.value,S),A!==null&&(p=o(A,p,k),C===null?w=A:C.sibling=A,C=A);return w}for($=r(f,$);!A.done;k++,A=g.next())A=y($,f,k,A.value,S),A!==null&&(e&&A.alternate!==null&&$.delete(A.key===null?k:A.key),p=o(A,p,k),C===null?w=A:C.sibling=A,C=A);return e&&$.forEach(function(be){return t(f,be)}),w}return function(f,p,g,S){var w=typeof g=="object"&&g!==null&&g.type===ft&&g.key===null;w&&(g=g.props.children);var C=typeof g=="object"&&g!==null;if(C)switch(g.$$typeof){case Wn:e:{for(C=g.key,w=p;w!==null;){if(w.key===C){switch(w.tag){case 7:if(g.type===ft){n(f,w.sibling),p=s(w,g.props.children),p.return=f,f=p;break e}break;default:if(w.elementType===g.type){n(f,w.sibling),p=s(w,g.props),p.ref=Sr(f,w,g),p.return=f,f=p;break e}}n(f,w);break}else t(f,w);w=w.sibling}g.type===ft?(p=_n(g.props.children,f.mode,S,g.key),p.return=f,f=p):(S=no(g.type,g.key,g.props,null,f.mode,S),S.ref=Sr(f,p,g),S.return=f,f=S)}return i(f);case It:e:{for(w=g.key;p!==null;){if(p.key===w)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(f,p.sibling),p=s(p,g.children||[]),p.return=f,f=p;break e}else{n(f,p);break}else t(f,p);p=p.sibling}p=bl(g,f.mode,S),p.return=f,f=p}return i(f)}if(typeof g=="string"||typeof g=="number")return g=""+g,p!==null&&p.tag===6?(n(f,p.sibling),p=s(p,g),p.return=f,f=p):(n(f,p),p=Bl(g,f.mode,S),p.return=f,f=p),i(f);if(Fs(g))return m(f,p,g,S);if(Qn(g))return v(f,p,g,S);if(C&&zs(f,g),typeof g>"u"&&!w)switch(f.tag){case 1:case 22:case 0:case 11:case 15:throw Error(E(152,an(f.type)||"Component"))}return n(f,p)}}var Ms=Dc(!0),Ic=Dc(!1),xr={},qe=wt(xr),$r=wt(xr),Cr=wt(xr);function Vt(e){if(e===xr)throw Error(E(174));return e}function il(e,t){switch(K(Cr,t),K($r,e),K(qe,xr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=fi(t,e)}b(qe),K(qe,t)}function Tn(){b(qe),b($r),b(Cr)}function Fc(e){Vt(Cr.current);var t=Vt(qe.current),n=fi(t,e.type);t!==n&&(K($r,e),K(qe,n))}function ll(e){$r.current===e&&(b(qe),b($r))}var W=wt(0);function Us(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var it=null,kt=null,Je=!1;function zc(e,t){var n=Le(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Mc(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function al(e){if(Je){var t=kt;if(t){var n=t;if(!Mc(e,t)){if(t=wn(n.nextSibling),!t||!Mc(e,t)){e.flags=e.flags&-1025|2,Je=!1,it=e;return}zc(it,n)}it=e,kt=wn(t.firstChild)}else e.flags=e.flags&-1025|2,Je=!1,it=e}}function Uc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;it=e}function Bs(e){if(e!==it)return!1;if(!Je)return Uc(e),Je=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!Wi(t,e.memoizedProps))for(t=kt;t;)zc(e,t),t=wn(t.nextSibling);if(Uc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){kt=wn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}kt=null}}else kt=it?wn(e.stateNode.nextSibling):null;return!0}function ul(){kt=it=null,Je=!1}var jn=[];function cl(){for(var e=0;e<jn.length;e++)jn[e]._workInProgressVersionPrimary=null;jn.length=0}var kr=Dt.ReactCurrentDispatcher,Oe=Dt.ReactCurrentBatchConfig,Er=0,J=null,he=null,oe=null,bs=!1,Pr=!1;function xe(){throw Error(E(321))}function fl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ae(e[n],t[n]))return!1;return!0}function hl(e,t,n,r,s,o){if(Er=o,J=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,kr.current=e===null||e.memoizedState===null?hg:dg,e=n(r,s),Pr){o=0;do{if(Pr=!1,!(25>o))throw Error(E(301));o+=1,oe=he=null,t.updateQueue=null,kr.current=pg,e=n(r,s)}while(Pr)}if(kr.current=Ws,t=he!==null&&he.next!==null,Er=0,oe=he=J=null,bs=!1,t)throw Error(E(300));return e}function Ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return oe===null?J.memoizedState=oe=e:oe=oe.next=e,oe}function Kt(){if(he===null){var e=J.alternate;e=e!==null?e.memoizedState:null}else e=he.next;var t=oe===null?J.memoizedState:oe.next;if(t!==null)oe=t,he=e;else{if(e===null)throw Error(E(310));he=e,e={memoizedState:he.memoizedState,baseState:he.baseState,baseQueue:he.baseQueue,queue:he.queue,next:null},oe===null?J.memoizedState=oe=e:oe=oe.next=e}return oe}function Qe(e,t){return typeof t=="function"?t(e):t}function Tr(e){var t=Kt(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=he,s=r.baseQueue,o=n.pending;if(o!==null){if(s!==null){var i=s.next;s.next=o.next,o.next=i}r.baseQueue=s=o,n.pending=null}if(s!==null){s=s.next,r=r.baseState;var l=i=o=null,a=s;do{var u=a.lane;if((Er&u)===u)l!==null&&(l=l.next={lane:0,action:a.action,eagerReducer:a.eagerReducer,eagerState:a.eagerState,next:null}),r=a.eagerReducer===e?a.eagerState:e(r,a.action);else{var c={lane:u,action:a.action,eagerReducer:a.eagerReducer,eagerState:a.eagerState,next:null};l===null?(i=l=c,o=r):l=l.next=c,J.lanes|=u,Or|=u}a=a.next}while(a!==null&&a!==s);l===null?o=r:l.next=i,Ae(r,t.memoizedState)||(Fe=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function jr(e){var t=Kt(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,o=t.memoizedState;if(s!==null){n.pending=null;var i=s=s.next;do o=e(o,i.action),i=i.next;while(i!==s);Ae(o,t.memoizedState)||(Fe=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Bc(e,t,n){var r=t._getVersion;r=r(t._source);var s=t._workInProgressVersionPrimary;if(s!==null?e=s===r:(e=e.mutableReadLanes,(e=(Er&e)===e)&&(t._workInProgressVersionPrimary=r,jn.push(t))),e)return n(t._source);throw jn.push(t),Error(E(350))}function bc(e,t,n,r){var s=ye;if(s===null)throw Error(E(349));var o=t._getVersion,i=o(t._source),l=kr.current,a=l.useState(function(){return Bc(s,t,n)}),u=a[1],c=a[0];a=oe;var d=e.memoizedState,h=d.refs,y=h.getSnapshot,m=d.source;d=d.subscribe;var v=J;return e.memoizedState={refs:h,source:t,subscribe:r},l.useEffect(function(){h.getSnapshot=n,h.setSnapshot=u;var f=o(t._source);if(!Ae(i,f)){f=n(t._source),Ae(c,f)||(u(f),f=Pt(v),s.mutableReadLanes|=f&s.pendingLanes),f=s.mutableReadLanes,s.entangledLanes|=f;for(var p=s.entanglements,g=f;0<g;){var S=31-mt(g),w=1<<S;p[S]|=f,g&=~w}}},[n,t,r]),l.useEffect(function(){return r(t._source,function(){var f=h.getSnapshot,p=h.setSnapshot;try{p(f(t._source));var g=Pt(v);s.mutableReadLanes|=g&s.pendingLanes}catch(S){p(function(){throw S})}})},[t,r]),Ae(y,n)&&Ae(m,t)&&Ae(d,r)||(e={pending:null,dispatch:null,lastRenderedReducer:Qe,lastRenderedState:c},e.dispatch=u=ml.bind(null,J,e),a.queue=e,a.baseQueue=null,c=Bc(s,t,n),a.memoizedState=a.baseState=c),c}function Vc(e,t,n){var r=Kt();return bc(r,e,t,n)}function Ar(e){var t=Ht();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Qe,lastRenderedState:e},e=e.dispatch=ml.bind(null,J,e),[t.memoizedState,e]}function Vs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=J.updateQueue,t===null?(t={lastEffect:null},J.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Hc(e){var t=Ht();return e={current:e},t.memoizedState=e}function Hs(){return Kt().memoizedState}function dl(e,t,n,r){var s=Ht();J.flags|=e,s.memoizedState=Vs(1|t,n,void 0,r===void 0?null:r)}function pl(e,t,n,r){var s=Kt();r=r===void 0?null:r;var o=void 0;if(he!==null){var i=he.memoizedState;if(o=i.destroy,r!==null&&fl(r,i.deps)){Vs(t,n,o,r);return}}J.flags|=e,s.memoizedState=Vs(1|t,n,o,r)}function Kc(e,t){return dl(516,4,e,t)}function Ks(e,t){return pl(516,4,e,t)}function Wc(e,t){return pl(4,2,e,t)}function qc(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Jc(e,t,n){return n=n!=null?n.concat([e]):null,pl(4,2,qc.bind(null,t,e),n)}function gl(){}function Qc(e,t){var n=Kt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&fl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Yc(e,t){var n=Kt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&fl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function fg(e,t){var n=kn();bt(98>n?98:n,function(){e(!0)}),bt(97<n?97:n,function(){var r=Oe.transition;Oe.transition=1;try{e(!1),t()}finally{Oe.transition=r}})}function ml(e,t,n){var r=Ee(),s=Pt(e),o={lane:s,action:n,eagerReducer:null,eagerState:null,next:null},i=t.pending;if(i===null?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===J||i!==null&&i===J)Pr=bs=!0;else{if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,a=i(l,n);if(o.eagerReducer=i,o.eagerState=a,Ae(a,l))return}catch{}finally{}Tt(e,s,r)}}var Ws={readContext:Ne,useCallback:xe,useContext:xe,useEffect:xe,useImperativeHandle:xe,useLayoutEffect:xe,useMemo:xe,useReducer:xe,useRef:xe,useState:xe,useDebugValue:xe,useDeferredValue:xe,useTransition:xe,useMutableSource:xe,useOpaqueIdentifier:xe,unstable_isNewReconciler:!1},hg={readContext:Ne,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:Ne,useEffect:Kc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,dl(4,2,qc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return dl(4,2,e,t)},useMemo:function(e,t){var n=Ht();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ht();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=ml.bind(null,J,e),[r.memoizedState,e]},useRef:Hc,useState:Ar,useDebugValue:gl,useDeferredValue:function(e){var t=Ar(e),n=t[0],r=t[1];return Kc(function(){var s=Oe.transition;Oe.transition=1;try{r(e)}finally{Oe.transition=s}},[e]),n},useTransition:function(){var e=Ar(!1),t=e[0];return e=fg.bind(null,e[1]),Hc(e),[e,t]},useMutableSource:function(e,t,n){var r=Ht();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},bc(r,e,t,n)},useOpaqueIdentifier:function(){if(Je){var e=!1,t=og(function(){throw e||(e=!0,n("r:"+(Ji++).toString(36))),Error(E(355))}),n=Ar(t)[1];return!(J.mode&2)&&(J.flags|=516,Vs(5,function(){n("r:"+(Ji++).toString(36))},void 0,null)),t}return t="r:"+(Ji++).toString(36),Ar(t),t},unstable_isNewReconciler:!1},dg={readContext:Ne,useCallback:Qc,useContext:Ne,useEffect:Ks,useImperativeHandle:Jc,useLayoutEffect:Wc,useMemo:Yc,useReducer:Tr,useRef:Hs,useState:function(){return Tr(Qe)},useDebugValue:gl,useDeferredValue:function(e){var t=Tr(Qe),n=t[0],r=t[1];return Ks(function(){var s=Oe.transition;Oe.transition=1;try{r(e)}finally{Oe.transition=s}},[e]),n},useTransition:function(){var e=Tr(Qe)[0];return[Hs().current,e]},useMutableSource:Vc,useOpaqueIdentifier:function(){return Tr(Qe)[0]},unstable_isNewReconciler:!1},pg={readContext:Ne,useCallback:Qc,useContext:Ne,useEffect:Ks,useImperativeHandle:Jc,useLayoutEffect:Wc,useMemo:Yc,useReducer:jr,useRef:Hs,useState:function(){return jr(Qe)},useDebugValue:gl,useDeferredValue:function(e){var t=jr(Qe),n=t[0],r=t[1];return Ks(function(){var s=Oe.transition;Oe.transition=1;try{r(e)}finally{Oe.transition=s}},[e]),n},useTransition:function(){var e=jr(Qe)[0];return[Hs().current,e]},useMutableSource:Vc,useOpaqueIdentifier:function(){return jr(Qe)[0]},unstable_isNewReconciler:!1},gg=Dt.ReactCurrentOwner,Fe=!1;function $e(e,t,n,r){t.child=e===null?Ic(t,null,n,r):Ms(t,e.child,n,r)}function Xc(e,t,n,r,s){n=n.render;var o=t.ref;return Pn(t,s),r=hl(e,t,n,r,o,s),e!==null&&!Fe?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~s,lt(e,t,s)):(t.flags|=1,$e(e,t,r,s),t.child)}function Gc(e,t,n,r,s,o){if(e===null){var i=n.type;return typeof i=="function"&&!Ml(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Zc(e,t,i,r,s,o)):(e=no(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}return i=e.child,!(s&o)&&(s=i.memoizedProps,n=n.compare,n=n!==null?n:dr,n(s,r)&&e.ref===t.ref)?lt(e,t,o):(t.flags|=1,e=Nt(i,r),e.ref=t.ref,e.return=t,t.child=e)}function Zc(e,t,n,r,s,o){if(e!==null&&dr(e.memoizedProps,r)&&e.ref===t.ref)if(Fe=!1,(o&s)!==0)e.flags&16384&&(Fe=!0);else return t.lanes=e.lanes,lt(e,t,o);return vl(e,t,n,r,o)}function yl(e,t,n){var r=t.pendingProps,s=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden"||r.mode==="unstable-defer-without-hiding")if(!(t.mode&4))t.memoizedState={baseLanes:0},to(t,n);else if(n&1073741824)t.memoizedState={baseLanes:0},to(t,o!==null?o.baseLanes:n);else return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},to(t,e),null;else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,to(t,r);return $e(e,t,s,n),t.child}function ef(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function vl(e,t,n,r,s){var o=Se(n)?Ut:ce.current;return o=Cn(t,o),Pn(t,s),n=hl(e,t,n,r,o,s),e!==null&&!Fe?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~s,lt(e,t,s)):(t.flags|=1,$e(e,t,n,s),t.child)}function tf(e,t,n,r,s){if(Se(n)){var o=!0;As(t)}else o=!1;if(Pn(t,s),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Lc(t,n,r),ol(t,n,r,s),r=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var a=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ne(u):(u=Se(n)?Ut:ce.current,u=Cn(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function";d||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==r||a!==u)&&_c(t,i,r,u),xt=!1;var h=t.memoizedState;i.state=h,wr(t,r,i,s),a=t.memoizedState,l!==r||h!==a||we.current||xt?(typeof c=="function"&&(Ds(t,n,c,r),a=t.memoizedState),(l=xt||Rc(t,n,l,r,h,a,u))?(d||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4)):(typeof i.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=a),i.props=r,i.state=a,i.context=u,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4),r=!1)}else{i=t.stateNode,jc(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Ie(t.type,l),i.props=u,d=t.pendingProps,h=i.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ne(a):(a=Se(n)?Ut:ce.current,a=Cn(t,a));var y=n.getDerivedStateFromProps;(c=typeof y=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==d||h!==a)&&_c(t,i,r,a),xt=!1,h=t.memoizedState,i.state=h,wr(t,r,i,s);var m=t.memoizedState;l!==d||h!==m||we.current||xt?(typeof y=="function"&&(Ds(t,n,y,r),m=t.memoizedState),(u=xt||Rc(t,n,u,r,h,m,a))?(c||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,m,a),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,m,a)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=a,r=u):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),r=!1)}return wl(e,t,n,r,o,s)}function wl(e,t,n,r,s,o){ef(e,t);var i=(t.flags&64)!==0;if(!r&&!i)return s&&vc(t,n,!1),lt(e,t,o);r=t.stateNode,gg.current=t;var l=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Ms(t,e.child,null,o),t.child=Ms(t,null,l,o)):$e(e,t,l,o),t.memoizedState=r.state,s&&vc(t,n,!0),t.child}function nf(e){var t=e.stateNode;t.pendingContext?mc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&mc(e,t.context,!1),il(e,t.containerInfo)}var qs={dehydrated:null,retryLane:0};function rf(e,t,n){var r=t.pendingProps,s=W.current,o=!1,i;return(i=(t.flags&64)!==0)||(i=e!==null&&e.memoizedState===null?!1:(s&2)!==0),i?(o=!0,t.flags&=-65):e!==null&&e.memoizedState===null||r.fallback===void 0||r.unstable_avoidThisFallback===!0||(s|=1),K(W,s&1),e===null?(r.fallback!==void 0&&al(t),e=r.children,s=r.fallback,o?(e=sf(t,e,s,n),t.child.memoizedState={baseLanes:n},t.memoizedState=qs,e):typeof r.unstable_expectedLoadTime=="number"?(e=sf(t,e,s,n),t.child.memoizedState={baseLanes:n},t.memoizedState=qs,t.lanes=33554432,e):(n=Ul({mode:"visible",children:e},t.mode,n,null),n.return=t,t.child=n)):e.memoizedState!==null?o?(r=lf(e,t,r.children,r.fallback,n),o=t.child,s=e.child.memoizedState,o.memoizedState=s===null?{baseLanes:n}:{baseLanes:s.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=qs,r):(n=of(e,t,r.children,n),t.memoizedState=null,n):o?(r=lf(e,t,r.children,r.fallback,n),o=t.child,s=e.child.memoizedState,o.memoizedState=s===null?{baseLanes:n}:{baseLanes:s.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=qs,r):(n=of(e,t,r.children,n),t.memoizedState=null,n)}function sf(e,t,n,r){var s=e.mode,o=e.child;return t={mode:"hidden",children:t},!(s&2)&&o!==null?(o.childLanes=0,o.pendingProps=t):o=Ul(t,s,0,null),n=_n(n,s,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function of(e,t,n,r){var s=e.child;return e=s.sibling,n=Nt(s,{mode:"visible",children:n}),!(t.mode&2)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function lf(e,t,n,r,s){var o=t.mode,i=e.child;e=i.sibling;var l={mode:"hidden",children:n};return!(o&2)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,i=n.lastEffect,i!==null?(t.firstEffect=n.firstEffect,t.lastEffect=i,i.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Nt(i,l),e!==null?r=Nt(e,r):(r=_n(r,o,s,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function af(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Tc(e.return,t)}function Sl(e,t,n,r,s,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s,lastEffect:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s,i.lastEffect=o)}function uf(e,t,n){var r=t.pendingProps,s=r.revealOrder,o=r.tail;if($e(e,t,r.children,n),r=W.current,r&2)r=r&1|2,t.flags|=64;else{if(e!==null&&e.flags&64)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&af(e,n);else if(e.tag===19)af(e,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(K(W,r),!(t.mode&2))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Us(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Sl(t,!1,s,n,o,t.lastEffect);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Us(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Sl(t,!0,n,null,o,t.lastEffect);break;case"together":Sl(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function lt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Or|=t.lanes,n&t.childLanes){if(e!==null&&t.child!==e.child)throw Error(E(153));if(t.child!==null){for(e=t.child,n=Nt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Nt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var cf,xl,ff,hf;cf=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},xl=function(){},ff=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Vt(qe.current);var o=null;switch(n){case"input":s=oi(e,s),r=oi(e,r),o=[];break;case"option":s=ai(e,s),r=ai(e,r),o=[];break;case"select":s=V({},s,{value:void 0}),r=V({},r,{value:void 0}),o=[];break;case"textarea":s=ui(e,s),r=ui(e,r),o=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ks)}hi(n,r);var i;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var l=s[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Kn.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var a=r[u];if(l=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(i in l)!l.hasOwnProperty(i)||a&&a.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in a)a.hasOwnProperty(i)&&l[i]!==a[i]&&(n||(n={}),n[i]=a[i])}else n||(o||(o=[]),o.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(o=o||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Kn.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&B("scroll",e),o||l===a||(o=[])):typeof a=="object"&&a!==null&&a.$$typeof===ei?a.toString():(o=o||[]).push(u,a))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},hf=function(e,t,n,r){n!==r&&(t.flags|=4)};function Nr(e,t){if(!Je)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function mg(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Se(t.type)&&js(),null;case 3:return Tn(),b(we),b(ce),cl(),r=t.stateNode,r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Bs(t)?t.flags|=4:r.hydrate||(t.flags|=256)),xl(t),null;case 5:ll(t);var s=Vt(Cr.current);if(n=t.type,e!==null&&t.stateNode!=null)ff(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(t.stateNode===null)throw Error(E(166));return null}if(e=Vt(qe.current),Bs(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[vt]=t,r[Ps]=o,n){case"dialog":B("cancel",r),B("close",r);break;case"iframe":case"object":case"embed":B("load",r);break;case"video":case"audio":for(e=0;e<gr.length;e++)B(gr[e],r);break;case"source":B("error",r);break;case"img":case"image":case"link":B("error",r),B("load",r);break;case"details":B("toggle",r);break;case"input":nu(r,o),B("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},B("invalid",r);break;case"textarea":ou(r,o),B("invalid",r)}hi(n,o),e=null;for(var i in o)o.hasOwnProperty(i)&&(s=o[i],i==="children"?typeof s=="string"?r.textContent!==s&&(e=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(e=["children",""+s]):Kn.hasOwnProperty(i)&&s!=null&&i==="onScroll"&&B("scroll",r));switch(n){case"input":ls(r),su(r,o,!0);break;case"textarea":ls(r),lu(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=ks)}r=e,t.updateQueue=r,r!==null&&(t.flags|=4)}else{switch(i=s.nodeType===9?s:s.ownerDocument,e===ci.html&&(e=au(n)),e===ci.html?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[vt]=t,e[Ps]=r,cf(e,t,!1,!1),t.stateNode=e,i=di(n,r),n){case"dialog":B("cancel",e),B("close",e),s=r;break;case"iframe":case"object":case"embed":B("load",e),s=r;break;case"video":case"audio":for(s=0;s<gr.length;s++)B(gr[s],e);s=r;break;case"source":B("error",e),s=r;break;case"img":case"image":case"link":B("error",e),B("load",e),s=r;break;case"details":B("toggle",e),s=r;break;case"input":nu(e,r),s=oi(e,r),B("invalid",e);break;case"option":s=ai(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=V({},r,{value:void 0}),B("invalid",e);break;case"textarea":ou(e,r),s=ui(e,r),B("invalid",e);break;default:s=r}hi(n,s);var l=s;for(o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="style"?fu(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&uu(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Xn(e,a):typeof a=="number"&&Xn(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Kn.hasOwnProperty(o)?a!=null&&o==="onScroll"&&B("scroll",e):a!=null&&Jo(e,o,a,i))}switch(n){case"input":ls(e),su(e,r,!1);break;case"textarea":ls(e),lu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ht(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?un(e,!!r.multiple,o,!1):r.defaultValue!=null&&un(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=ks)}fc(n,r)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)hf(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(E(166));n=Vt(Cr.current),Vt(qe.current),Bs(t)?(r=t.stateNode,n=t.memoizedProps,r[vt]=t,r.nodeValue!==n&&(t.flags|=4)):(r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[vt]=t,t.stateNode=r)}return null;case 13:return b(W),r=t.memoizedState,t.flags&64?(t.lanes=n,t):(r=r!==null,n=!1,e===null?t.memoizedProps.fallback!==void 0&&Bs(t):n=e.memoizedState!==null,r&&!n&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||W.current&1?ie===0&&(ie=3):((ie===0||ie===3)&&(ie=4),ye===null||!(Or&134217727)&&!(Nn&134217727)||Rn(ye,de))),(r||n)&&(t.flags|=4),null);case 4:return Tn(),xl(t),e===null&&ic(t.stateNode.containerInfo),null;case 10:return rl(t),null;case 17:return Se(t.type)&&js(),null;case 19:if(b(W),r=t.memoizedState,r===null)return null;if(o=(t.flags&64)!==0,i=r.rendering,i===null)if(o)Nr(r,!1);else{if(ie!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(i=Us(e),i!==null){for(t.flags|=64,Nr(r,!1),o=i.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),r.lastEffect===null&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return K(W,W.current&1|2),t.child}e=e.sibling}r.tail!==null&&fe()>Rl&&(t.flags|=64,o=!0,Nr(r,!1),t.lanes=33554432)}else{if(!o)if(e=Us(i),e!==null){if(t.flags|=64,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Nr(r,!0),r.tail===null&&r.tailMode==="hidden"&&!i.alternate&&!Je)return t=t.lastEffect=r.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*fe()-r.renderingStartTime>Rl&&n!==1073741824&&(t.flags|=64,o=!0,Nr(r,!1),t.lanes=33554432);r.isBackwards?(i.sibling=t.child,t.child=i):(n=r.last,n!==null?n.sibling=i:t.child=i,r.last=i)}return r.tail!==null?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=fe(),n.sibling=null,t=W.current,K(W,o?t&1|2:t&1),n):null;case 23:case 24:return zl(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&r.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(E(156,t.tag))}function yg(e){switch(e.tag){case 1:Se(e.type)&&js();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(Tn(),b(we),b(ce),cl(),t=e.flags,t&64)throw Error(E(285));return e.flags=t&-4097|64,e;case 5:return ll(e),null;case 13:return b(W),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return b(W),null;case 4:return Tn(),null;case 10:return rl(e),null;case 23:case 24:return zl(),null;default:return null}}function $l(e,t){try{var n="",r=t;do n+=Yd(r),r=r.return;while(r);var s=n}catch(o){s=`
38
+ `+s[i].replace(" at new "," at ");while(1<=i&&0<=l);break}}}finally{To=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Mn(e):""}function xh(e){switch(e.tag){case 5:return Mn(e.type);case 16:return Mn("Lazy");case 13:return Mn("Suspense");case 19:return Mn("SuspenseList");case 0:case 2:case 15:return e=Kr(e.type,!1),e;case 11:return e=Kr(e.type.render,!1),e;case 22:return e=Kr(e.type._render,!1),e;case 1:return e=Kr(e.type,!0),e;default:return""}}function Xt(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 nt:return"Fragment";case Tt:return"Portal";case Rn:return"Profiler";case vo:return"StrictMode";case zn:return"Suspense";case Br:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case xo:return(e.displayName||"Context")+".Consumer";case wo:return(e._context.displayName||"Context")+".Provider";case Vr:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Hr:return Xt(e.type);case $o:return Xt(e._render);case So:t=e._payload,e=e._init;try{return Xt(e(t))}catch{}}return null}function rt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function lu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Sh(e){var t=lu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wr(e){e._valueTracker||(e._valueTracker=Sh(e))}function uu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=lu(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Qr(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 jo(e,t){var n=t.checked;return V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function au(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=rt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function cu(e,t){t=t.checked,t!=null&&yo(e,"checked",t,!1)}function No(e,t){cu(e,t);var n=rt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ao(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ao(e,t.type,rt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function fu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ao(e,t,n){(t!=="number"||Qr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function $h(e){var t="";return Ur.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function Lo(e,t){return e=V({children:void 0},t),(t=$h(t.children))&&(e.children=t),e}function qt(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+rt(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Oo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(k(91));return V({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function hu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(k(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(k(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:rt(n)}}function du(e,t){var n=rt(t.value),r=rt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function pu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var _o={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function gu(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 Ro(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?gu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Yr,mu=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!==_o.svg||"innerHTML"in e)e.innerHTML=t;else{for(Yr=Yr||document.createElement("div"),Yr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Yr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Dn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Fn={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},kh=["Webkit","ms","Moz","O"];Object.keys(Fn).forEach(function(e){kh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Fn[t]=Fn[e]})});function yu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Fn.hasOwnProperty(e)&&Fn[e]?(""+t).trim():t+"px"}function vu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=yu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var Ch=V({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 zo(e,t){if(t){if(Ch[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function Io(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 Mo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Do=null,Zt=null,bt=null;function wu(e){if(e=sr(e)){if(typeof Do!="function")throw Error(k(280));var t=e.stateNode;t&&(t=fs(t),Do(e.stateNode,e.type,t))}}function xu(e){Zt?bt?bt.push(e):bt=[e]:Zt=e}function Su(){if(Zt){var e=Zt,t=bt;if(bt=Zt=null,wu(e),t)for(e=0;e<t.length;e++)wu(t[e])}}function Fo(e,t){return e(t)}function $u(e,t,n,r,s){return e(t,n,r,s)}function Uo(){}var ku=Fo,jt=!1,Vo=!1;function Bo(){(Zt!==null||bt!==null)&&(Uo(),Su())}function Ph(e,t,n){if(Vo)return e(t,n);Vo=!0;try{return ku(e,t,n)}finally{Vo=!1,Bo()}}function Un(e,t){var n=e.stateNode;if(n===null)return null;var r=fs(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(k(231,t,typeof n));return n}var Ho=!1;if(Ge)try{var Vn={};Object.defineProperty(Vn,"passive",{get:function(){Ho=!0}}),window.addEventListener("test",Vn,Vn),window.removeEventListener("test",Vn,Vn)}catch{Ho=!1}function Eh(e,t,n,r,s,o,i,l,u){var a=Array.prototype.slice.call(arguments,3);try{t.apply(n,a)}catch(f){this.onError(f)}}var Bn=!1,Jr=null,Gr=!1,Ko=null,Th={onError:function(e){Bn=!0,Jr=e}};function jh(e,t,n,r,s,o,i,l,u){Bn=!1,Jr=null,Eh.apply(Th,arguments)}function Nh(e,t,n,r,s,o,i,l,u){if(jh.apply(this,arguments),Bn){if(Bn){var a=Jr;Bn=!1,Jr=null}else throw Error(k(198));Gr||(Gr=!0,Ko=a)}}function Nt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&1026&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Cu(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 Pu(e){if(Nt(e)!==e)throw Error(k(188))}function Ah(e){var t=e.alternate;if(!t){if(t=Nt(e),t===null)throw Error(k(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return Pu(s),e;if(o===r)return Pu(s),t;o=o.sibling}throw Error(k(188))}if(n.return!==r.return)n=s,r=o;else{for(var i=!1,l=s.child;l;){if(l===n){i=!0,n=s,r=o;break}if(l===r){i=!0,r=s,n=o;break}l=l.sibling}if(!i){for(l=o.child;l;){if(l===n){i=!0,n=o,r=s;break}if(l===r){i=!0,r=o,n=s;break}l=l.sibling}if(!i)throw Error(k(189))}}if(n.alternate!==r)throw Error(k(190))}if(n.tag!==3)throw Error(k(188));return n.stateNode.current===n?e:t}function Eu(e){if(e=Ah(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 Tu(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var ju,Wo,Nu,Au,Qo=!1,Me=[],st=null,ot=null,it=null,Hn=new Map,Kn=new Map,Wn=[],Lu="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 Yo(e,t,n,r,s){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:s,targetContainers:[r]}}function Ou(e,t){switch(e){case"focusin":case"focusout":st=null;break;case"dragenter":case"dragleave":ot=null;break;case"mouseover":case"mouseout":it=null;break;case"pointerover":case"pointerout":Hn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Kn.delete(t.pointerId)}}function Qn(e,t,n,r,s,o){return e===null||e.nativeEvent!==o?(e=Yo(t,n,r,s,o),t!==null&&(t=sr(t),t!==null&&Wo(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Lh(e,t,n,r,s){switch(t){case"focusin":return st=Qn(st,e,t,n,r,s),!0;case"dragenter":return ot=Qn(ot,e,t,n,r,s),!0;case"mouseover":return it=Qn(it,e,t,n,r,s),!0;case"pointerover":var o=s.pointerId;return Hn.set(o,Qn(Hn.get(o)||null,e,t,n,r,s)),!0;case"gotpointercapture":return o=s.pointerId,Kn.set(o,Qn(Kn.get(o)||null,e,t,n,r,s)),!0}return!1}function Oh(e){var t=At(e.target);if(t!==null){var n=Nt(t);if(n!==null){if(t=n.tag,t===13){if(t=Cu(n),t!==null){e.blockedOn=t,Au(e.lanePriority,function(){Z.unstable_runWithPriority(e.priority,function(){Nu(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Xr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=bo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=sr(n),t!==null&&Wo(t),e.blockedOn=n,!1;t.shift()}return!0}function _u(e,t,n){Xr(e)&&n.delete(t)}function _h(){for(Qo=!1;0<Me.length;){var e=Me[0];if(e.blockedOn!==null){e=sr(e.blockedOn),e!==null&&ju(e);break}for(var t=e.targetContainers;0<t.length;){var n=bo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&Me.shift()}st!==null&&Xr(st)&&(st=null),ot!==null&&Xr(ot)&&(ot=null),it!==null&&Xr(it)&&(it=null),Hn.forEach(_u),Kn.forEach(_u)}function Yn(e,t){e.blockedOn===t&&(e.blockedOn=null,Qo||(Qo=!0,Z.unstable_scheduleCallback(Z.unstable_NormalPriority,_h)))}function Ru(e){function t(s){return Yn(s,e)}if(0<Me.length){Yn(Me[0],e);for(var n=1;n<Me.length;n++){var r=Me[n];r.blockedOn===e&&(r.blockedOn=null)}}for(st!==null&&Yn(st,e),ot!==null&&Yn(ot,e),it!==null&&Yn(it,e),Hn.forEach(t),Kn.forEach(t),n=0;n<Wn.length;n++)r=Wn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Wn.length&&(n=Wn[0],n.blockedOn===null);)Oh(n),n.blockedOn===null&&Wn.shift()}function qr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var en={animationend:qr("Animation","AnimationEnd"),animationiteration:qr("Animation","AnimationIteration"),animationstart:qr("Animation","AnimationStart"),transitionend:qr("Transition","TransitionEnd")},Jo={},zu={};Ge&&(zu=document.createElement("div").style,"AnimationEvent"in window||(delete en.animationend.animation,delete en.animationiteration.animation,delete en.animationstart.animation),"TransitionEvent"in window||delete en.transitionend.transition);function Zr(e){if(Jo[e])return Jo[e];if(!en[e])return e;var t=en[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in zu)return Jo[e]=t[n];return e}var Iu=Zr("animationend"),Mu=Zr("animationiteration"),Du=Zr("animationstart"),Fu=Zr("transitionend"),Uu=new Map,Go=new Map,Rh=["abort","abort",Iu,"animationEnd",Mu,"animationIteration",Du,"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",Fu,"transitionEnd","waiting","waiting"];function Xo(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],s=e[n+1];s="on"+(s[0].toUpperCase()+s.slice(1)),Go.set(r,t),Uu.set(r,s),Pt(s,[r])}}var zh=Z.unstable_now;zh();var D=8;function tn(e){if(1&e)return D=15,1;if(2&e)return D=14,2;if(4&e)return D=13,4;var t=24&e;return t!==0?(D=12,t):e&32?(D=11,32):(t=192&e,t!==0?(D=10,t):e&256?(D=9,256):(t=3584&e,t!==0?(D=8,t):e&4096?(D=7,4096):(t=4186112&e,t!==0?(D=6,t):(t=62914560&e,t!==0?(D=5,t):e&67108864?(D=4,67108864):e&134217728?(D=3,134217728):(t=805306368&e,t!==0?(D=2,t):1073741824&e?(D=1,1073741824):(D=8,e))))))}function Ih(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 Mh(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(k(358,e))}}function Jn(e,t){var n=e.pendingLanes;if(n===0)return D=0;var r=0,s=0,o=e.expiredLanes,i=e.suspendedLanes,l=e.pingedLanes;if(o!==0)r=o,s=D=15;else if(o=n&134217727,o!==0){var u=o&~i;u!==0?(r=tn(u),s=D):(l&=o,l!==0&&(r=tn(l),s=D))}else o=n&~i,o!==0?(r=tn(o),s=D):l!==0&&(r=tn(l),s=D);if(r===0)return 0;if(r=31-lt(r),r=n&((0>r?0:1<<r)<<1)-1,t!==0&&t!==r&&!(t&i)){if(tn(t),s<=D)return t;D=s}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-lt(t),s=1<<n,r|=e[n],t&=~s;return r}function Vu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function br(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=nn(24&~t),e===0?br(10,t):e;case 10:return e=nn(192&~t),e===0?br(8,t):e;case 8:return e=nn(3584&~t),e===0&&(e=nn(4186112&~t),e===0&&(e=512)),e;case 2:return t=nn(805306368&~t),t===0&&(t=268435456),t}throw Error(k(358,e))}function nn(e){return e&-e}function qo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function es(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,e=e.eventTimes,t=31-lt(t),e[t]=n}var lt=Math.clz32?Math.clz32:Uh,Dh=Math.log,Fh=Math.LN2;function Uh(e){return e===0?32:31-(Dh(e)/Fh|0)|0}var Vh=Z.unstable_UserBlockingPriority,Bh=Z.unstable_runWithPriority,ts=!0;function Hh(e,t,n,r){jt||Uo();var s=Zo,o=jt;jt=!0;try{$u(s,e,t,n,r)}finally{(jt=o)||Bo()}}function Kh(e,t,n,r){Bh(Vh,Zo.bind(null,e,t,n,r))}function Zo(e,t,n,r){if(ts){var s;if((s=(t&4)===0)&&0<Me.length&&-1<Lu.indexOf(e))e=Yo(null,e,t,n,r),Me.push(e);else{var o=bo(e,t,n,r);if(o===null)s&&Ou(e,r);else{if(s){if(-1<Lu.indexOf(e)){e=Yo(o,e,t,n,r),Me.push(e);return}if(Lh(o,e,t,n,r))return;Ou(e,r)}ma(e,t,r,null,n)}}}}function bo(e,t,n,r){var s=Mo(r);if(s=At(s),s!==null){var o=Nt(s);if(o===null)s=null;else{var i=o.tag;if(i===13){if(s=Cu(o),s!==null)return s;s=null}else if(i===3){if(o.stateNode.hydrate)return o.tag===3?o.stateNode.containerInfo:null;s=null}else o!==s&&(s=null)}}return ma(e,t,r,s,n),null}var ut=null,ei=null,ns=null;function Bu(){if(ns)return ns;var e,t=ei,n=t.length,r,s="value"in ut?ut.value:ut.textContent,o=s.length;for(e=0;e<n&&t[e]===s[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===s[o-r];r++);return ns=s.slice(e,1<r?1-r:void 0)}function rs(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 ss(){return!0}function Hu(){return!1}function we(e){function t(n,r,s,o,i){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ss:Hu,this.isPropagationStopped=Hu,this}return V(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=ss)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ss)},persist:function(){},isPersistent:ss}),t}var rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ti=we(rn),Gn=V({},rn,{view:0,detail:0}),Wh=we(Gn),ni,ri,Xn,os=V({},Gn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:oi,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!==Xn&&(Xn&&e.type==="mousemove"?(ni=e.screenX-Xn.screenX,ri=e.screenY-Xn.screenY):ri=ni=0,Xn=e),ni)},movementY:function(e){return"movementY"in e?e.movementY:ri}}),Ku=we(os),Qh=V({},os,{dataTransfer:0}),Yh=we(Qh),Jh=V({},Gn,{relatedTarget:0}),si=we(Jh),Gh=V({},rn,{animationName:0,elapsedTime:0,pseudoElement:0}),Xh=we(Gh),qh=V({},rn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Zh=we(qh),bh=V({},rn,{data:0}),Wu=we(bh),ed={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},td={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"},nd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rd(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=nd[e])?!!t[e]:!1}function oi(){return rd}var sd=V({},Gn,{key:function(e){if(e.key){var t=ed[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=rs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?td[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:oi,charCode:function(e){return e.type==="keypress"?rs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?rs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),od=we(sd),id=V({},os,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qu=we(id),ld=V({},Gn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:oi}),ud=we(ld),ad=V({},rn,{propertyName:0,elapsedTime:0,pseudoElement:0}),cd=we(ad),fd=V({},os,{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}),hd=we(fd),dd=[9,13,27,32],ii=Ge&&"CompositionEvent"in window,qn=null;Ge&&"documentMode"in document&&(qn=document.documentMode);var pd=Ge&&"TextEvent"in window&&!qn,Yu=Ge&&(!ii||qn&&8<qn&&11>=qn),Ju=" ",Gu=!1;function Xu(e,t){switch(e){case"keyup":return dd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sn=!1;function gd(e,t){switch(e){case"compositionend":return qu(t);case"keypress":return t.which!==32?null:(Gu=!0,Ju);case"textInput":return e=t.data,e===Ju&&Gu?null:e;default:return null}}function md(e,t){if(sn)return e==="compositionend"||!ii&&Xu(e,t)?(e=Bu(),ns=ei=ut=null,sn=!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 Yu&&t.locale!=="ko"?null:t.data;default:return null}}var yd={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 Zu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!yd[e.type]:t==="textarea"}function bu(e,t,n,r){xu(r),t=ls(t,"onChange"),0<t.length&&(n=new ti("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Zn=null,bn=null;function vd(e){fa(e,0)}function is(e){var t=cn(e);if(uu(t))return e}function wd(e,t){if(e==="change")return t}var ea=!1;if(Ge){var li;if(Ge){var ui="oninput"in document;if(!ui){var ta=document.createElement("div");ta.setAttribute("oninput","return;"),ui=typeof ta.oninput=="function"}li=ui}else li=!1;ea=li&&(!document.documentMode||9<document.documentMode)}function na(){Zn&&(Zn.detachEvent("onpropertychange",ra),bn=Zn=null)}function ra(e){if(e.propertyName==="value"&&is(bn)){var t=[];if(bu(t,bn,e,Mo(e)),e=vd,jt)e(t);else{jt=!0;try{Fo(e,t)}finally{jt=!1,Bo()}}}}function xd(e,t,n){e==="focusin"?(na(),Zn=t,bn=n,Zn.attachEvent("onpropertychange",ra)):e==="focusout"&&na()}function Sd(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return is(bn)}function $d(e,t){if(e==="click")return is(t)}function kd(e,t){if(e==="input"||e==="change")return is(t)}function Cd(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pe=typeof Object.is=="function"?Object.is:Cd,Pd=Object.prototype.hasOwnProperty;function er(e,t){if(Pe(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Pd.call(t,n[r])||!Pe(e[n[r]],t[n[r]]))return!1;return!0}function sa(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function oa(e,t){var n=sa(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=sa(n)}}function ia(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ia(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function la(){for(var e=window,t=Qr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Qr(e.document)}return t}function ai(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 Ed=Ge&&"documentMode"in document&&11>=document.documentMode,on=null,ci=null,tr=null,fi=!1;function ua(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;fi||on==null||on!==Qr(r)||(r=on,"selectionStart"in r&&ai(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),tr&&er(tr,r)||(tr=r,r=ls(ci,"onSelect"),0<r.length&&(t=new ti("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=on)))}Xo("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),Xo("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),Xo(Rh,2);for(var aa="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),hi=0;hi<aa.length;hi++)Go.set(aa[hi],0);Gt("onMouseEnter",["mouseout","mouseover"]),Gt("onMouseLeave",["mouseout","mouseover"]),Gt("onPointerEnter",["pointerout","pointerover"]),Gt("onPointerLeave",["pointerout","pointerover"]),Pt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Pt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Pt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Pt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Pt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var nr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Td=new Set("cancel close invalid load scroll toggle".split(" ").concat(nr));function ca(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Nh(r,t,void 0,e),e.currentTarget=null}function fa(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],u=l.instance,a=l.currentTarget;if(l=l.listener,u!==o&&s.isPropagationStopped())break e;ca(s,l,a),o=u}else for(i=0;i<r.length;i++){if(l=r[i],u=l.instance,a=l.currentTarget,l=l.listener,u!==o&&s.isPropagationStopped())break e;ca(s,l,a),o=u}}}if(Gr)throw e=Ko,Gr=!1,Ko=null,e}function F(e,t){var n=$a(t),r=e+"__bubble";n.has(r)||(ga(t,e,2,!1),n.add(r))}var ha="_reactListening"+Math.random().toString(36).slice(2);function da(e){e[ha]||(e[ha]=!0,tu.forEach(function(t){Td.has(t)||pa(t,!1,e,null),pa(t,!0,e,null)}))}function pa(e,t,n,r){var s=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,o=n;e==="selectionchange"&&n.nodeType!==9&&(o=n.ownerDocument);var i=$a(o),l=e+"__"+(t?"capture":"bubble");i.has(l)||(t&&(s|=4),ga(o,e,s,t),i.add(l))}function ga(e,t,n,r){var s=Go.get(t);switch(s===void 0?2:s){case 0:s=Hh;break;case 1:s=Kh;break;default:s=Zo}n=s.bind(null,t,n,e),s=void 0,!Ho||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function ma(e,t,n,r,s){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var l=r.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(i===4)for(i=r.return;i!==null;){var u=i.tag;if((u===3||u===4)&&(u=i.stateNode.containerInfo,u===s||u.nodeType===8&&u.parentNode===s))return;i=i.return}for(;l!==null;){if(i=At(l),i===null)return;if(u=i.tag,u===5||u===6){r=o=i;continue e}l=l.parentNode}}r=r.return}Ph(function(){var a=o,f=Mo(n),p=[];e:{var c=Uu.get(e);if(c!==void 0){var m=ti,v=e;switch(e){case"keypress":if(rs(n)===0)break e;case"keydown":case"keyup":m=od;break;case"focusin":v="focus",m=si;break;case"focusout":v="blur",m=si;break;case"beforeblur":case"afterblur":m=si;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=Ku;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=Yh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=ud;break;case Iu:case Mu:case Du:m=Xh;break;case Fu:m=cd;break;case"scroll":m=Wh;break;case"wheel":m=hd;break;case"copy":case"cut":case"paste":m=Zh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Qu}var x=(t&4)!==0,h=!x&&e==="scroll",d=x?c!==null?c+"Capture":null:c;x=[];for(var g=a,w;g!==null;){w=g;var y=w.stateNode;if(w.tag===5&&y!==null&&(w=y,d!==null&&(y=Un(g,d),y!=null&&x.push(rr(g,y,w)))),h)break;g=g.return}0<x.length&&(c=new m(c,v,null,n,f),p.push({event:c,listeners:x}))}}if(!(t&7)){e:{if(c=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",c&&!(t&16)&&(v=n.relatedTarget||n.fromElement)&&(At(v)||v[an]))break e;if((m||c)&&(c=f.window===f?f:(c=f.ownerDocument)?c.defaultView||c.parentWindow:window,m?(v=n.relatedTarget||n.toElement,m=a,v=v?At(v):null,v!==null&&(h=Nt(v),v!==h||v.tag!==5&&v.tag!==6)&&(v=null)):(m=null,v=a),m!==v)){if(x=Ku,y="onMouseLeave",d="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(x=Qu,y="onPointerLeave",d="onPointerEnter",g="pointer"),h=m==null?c:cn(m),w=v==null?c:cn(v),c=new x(y,g+"leave",m,n,f),c.target=h,c.relatedTarget=w,y=null,At(f)===a&&(x=new x(d,g+"enter",v,n,f),x.target=w,x.relatedTarget=h,y=x),h=y,m&&v)t:{for(x=m,d=v,g=0,w=x;w;w=ln(w))g++;for(w=0,y=d;y;y=ln(y))w++;for(;0<g-w;)x=ln(x),g--;for(;0<w-g;)d=ln(d),w--;for(;g--;){if(x===d||d!==null&&x===d.alternate)break t;x=ln(x),d=ln(d)}x=null}else x=null;m!==null&&ya(p,c,m,x,!1),v!==null&&h!==null&&ya(p,h,v,x,!0)}}e:{if(c=a?cn(a):window,m=c.nodeName&&c.nodeName.toLowerCase(),m==="select"||m==="input"&&c.type==="file")var $=wd;else if(Zu(c))if(ea)$=kd;else{$=Sd;var S=xd}else(m=c.nodeName)&&m.toLowerCase()==="input"&&(c.type==="checkbox"||c.type==="radio")&&($=$d);if($&&($=$(e,a))){bu(p,$,n,f);break e}S&&S(e,c,a),e==="focusout"&&(S=c._wrapperState)&&S.controlled&&c.type==="number"&&Ao(c,"number",c.value)}switch(S=a?cn(a):window,e){case"focusin":(Zu(S)||S.contentEditable==="true")&&(on=S,ci=a,tr=null);break;case"focusout":tr=ci=on=null;break;case"mousedown":fi=!0;break;case"contextmenu":case"mouseup":case"dragend":fi=!1,ua(p,n,f);break;case"selectionchange":if(Ed)break;case"keydown":case"keyup":ua(p,n,f)}var C;if(ii)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else sn?Xu(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(Yu&&n.locale!=="ko"&&(sn||T!=="onCompositionStart"?T==="onCompositionEnd"&&sn&&(C=Bu()):(ut=f,ei="value"in ut?ut.value:ut.textContent,sn=!0)),S=ls(a,T),0<S.length&&(T=new Wu(T,e,null,n,f),p.push({event:T,listeners:S}),C?T.data=C:(C=qu(n),C!==null&&(T.data=C)))),(C=pd?gd(e,n):md(e,n))&&(a=ls(a,"onBeforeInput"),0<a.length&&(f=new Wu("onBeforeInput","beforeinput",null,n,f),p.push({event:f,listeners:a}),f.data=C))}fa(p,t)})}function rr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ls(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,o=s.stateNode;s.tag===5&&o!==null&&(s=o,o=Un(e,n),o!=null&&r.unshift(rr(e,o,s)),o=Un(e,t),o!=null&&r.push(rr(e,o,s))),e=e.return}return r}function ln(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ya(e,t,n,r,s){for(var o=t._reactName,i=[];n!==null&&n!==r;){var l=n,u=l.alternate,a=l.stateNode;if(u!==null&&u===r)break;l.tag===5&&a!==null&&(l=a,s?(u=Un(n,o),u!=null&&i.unshift(rr(n,u,l))):s||(u=Un(n,o),u!=null&&i.push(rr(n,u,l)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}function us(){}var di=null,pi=null;function va(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function gi(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 wa=typeof setTimeout=="function"?setTimeout:void 0,jd=typeof clearTimeout=="function"?clearTimeout:void 0;function mi(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function un(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function xa(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 yi=0;function Nd(e){return{$$typeof:ko,toString:e,valueOf:e}}var as=Math.random().toString(36).slice(2),at="__reactFiber$"+as,cs="__reactProps$"+as,an="__reactContainer$"+as,Sa="__reactEvents$"+as;function At(e){var t=e[at];if(t)return t;for(var n=e.parentNode;n;){if(t=n[an]||n[at]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=xa(e);e!==null;){if(n=e[at])return n;e=xa(e)}return t}e=n,n=e.parentNode}return null}function sr(e){return e=e[at]||e[an],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function cn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(k(33))}function fs(e){return e[cs]||null}function $a(e){var t=e[Sa];return t===void 0&&(t=e[Sa]=new Set),t}var vi=[],fn=-1;function ct(e){return{current:e}}function U(e){0>fn||(e.current=vi[fn],vi[fn]=null,fn--)}function K(e,t){fn++,vi[fn]=e.current,e.current=t}var ft={},le=ct(ft),ge=ct(!1),Lt=ft;function hn(e,t){var n=e.type.contextTypes;if(!n)return ft;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},o;for(o in n)s[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function me(e){return e=e.childContextTypes,e!=null}function hs(){U(ge),U(le)}function ka(e,t,n){if(le.current!==ft)throw Error(k(168));K(le,t),K(ge,n)}function Ca(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in e))throw Error(k(108,Xt(t)||"Unknown",s));return V({},n,r)}function ds(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ft,Lt=le.current,K(le,e),K(ge,ge.current),!0}function Pa(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=Ca(e,t,Lt),r.__reactInternalMemoizedMergedChildContext=e,U(ge),U(le),K(le,e)):U(ge),K(ge,n)}var wi=null,Ot=null,Ad=Z.unstable_runWithPriority,xi=Z.unstable_scheduleCallback,Si=Z.unstable_cancelCallback,Ld=Z.unstable_shouldYield,Ea=Z.unstable_requestPaint,$i=Z.unstable_now,Od=Z.unstable_getCurrentPriorityLevel,ps=Z.unstable_ImmediatePriority,Ta=Z.unstable_UserBlockingPriority,ja=Z.unstable_NormalPriority,Na=Z.unstable_LowPriority,Aa=Z.unstable_IdlePriority,ki={},_d=Ea!==void 0?Ea:function(){},Xe=null,gs=null,Ci=!1,La=$i(),ue=1e4>La?$i:function(){return $i()-La};function dn(){switch(Od()){case ps:return 99;case Ta:return 98;case ja:return 97;case Na:return 96;case Aa:return 95;default:throw Error(k(332))}}function Oa(e){switch(e){case 99:return ps;case 98:return Ta;case 97:return ja;case 96:return Na;case 95:return Aa;default:throw Error(k(332))}}function _t(e,t){return e=Oa(e),Ad(e,t)}function or(e,t,n){return e=Oa(e),xi(e,t,n)}function De(){if(gs!==null){var e=gs;gs=null,Si(e)}_a()}function _a(){if(!Ci&&Xe!==null){Ci=!0;var e=0;try{var t=Xe;_t(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),Xe=null}catch(n){throw Xe!==null&&(Xe=Xe.slice(e+1)),xi(ps,De),n}finally{Ci=!1}}}var Rd=Et.ReactCurrentBatchConfig;function Le(e,t){if(e&&e.defaultProps){t=V({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var ms=ct(null),ys=null,pn=null,vs=null;function Pi(){vs=pn=ys=null}function Ei(e){var t=ms.current;U(ms),e.type._context._currentValue=t}function Ra(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 gn(e,t){ys=e,vs=pn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Oe=!0),e.firstContext=null)}function Ee(e,t){if(vs!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(vs=e,t=1073741823),t={context:e,observedBits:t,next:null},pn===null){if(ys===null)throw Error(k(308));pn=t,ys.dependencies={lanes:0,firstContext:t,responders:null}}else pn=pn.next=t;return e._currentValue}var ht=!1;function Ti(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function za(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 dt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pt(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 Ia(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?s=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?s=o=t:o=o.next=t}else s=o=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ir(e,t,n,r){var s=e.updateQueue;ht=!1;var o=s.firstBaseUpdate,i=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var u=l,a=u.next;u.next=null,i===null?o=a:i.next=a,i=u;var f=e.alternate;if(f!==null){f=f.updateQueue;var p=f.lastBaseUpdate;p!==i&&(p===null?f.firstBaseUpdate=a:p.next=a,f.lastBaseUpdate=u)}}if(o!==null){p=s.baseState,i=0,f=a=u=null;do{l=o.lane;var c=o.eventTime;if((r&l)===l){f!==null&&(f=f.next={eventTime:c,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var m=e,v=o;switch(l=t,c=n,v.tag){case 1:if(m=v.payload,typeof m=="function"){p=m.call(c,p,l);break e}p=m;break e;case 3:m.flags=m.flags&-4097|64;case 0:if(m=v.payload,l=typeof m=="function"?m.call(c,p,l):m,l==null)break e;p=V({},p,l);break e;case 2:ht=!0}}o.callback!==null&&(e.flags|=32,l=s.effects,l===null?s.effects=[o]:l.push(o))}else c={eventTime:c,lane:l,tag:o.tag,payload:o.payload,callback:o.callback,next:null},f===null?(a=f=c,u=p):f=f.next=c,i|=l;if(o=o.next,o===null){if(l=s.shared.pending,l===null)break;o=l.next,l.next=null,s.lastBaseUpdate=l,s.shared.pending=null}}while(!0);f===null&&(u=p),s.baseState=u,s.firstBaseUpdate=a,s.lastBaseUpdate=f,vr|=i,e.lanes=i,e.memoizedState=p}}function Ma(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(k(191,s));s.call(r)}}}var Da=new Ur.Component().refs;function ws(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:V({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var xs={isMounted:function(e){return(e=e._reactInternals)?Nt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=xe(),s=yt(e),o=dt(r,s);o.payload=t,n!=null&&(o.callback=n),pt(e,o),vt(e,s,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=xe(),s=yt(e),o=dt(r,s);o.tag=1,o.payload=t,n!=null&&(o.callback=n),pt(e,o),vt(e,s,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=xe(),r=yt(e),s=dt(n,r);s.tag=2,t!=null&&(s.callback=t),pt(e,s),vt(e,r,n)}};function Fa(e,t,n,r,s,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!er(n,r)||!er(s,o):!0}function Ua(e,t,n){var r=!1,s=ft,o=t.contextType;return typeof o=="object"&&o!==null?o=Ee(o):(s=me(t)?Lt:le.current,r=t.contextTypes,o=(r=r!=null)?hn(e,s):ft),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=xs,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=o),t}function Va(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&xs.enqueueReplaceState(t,t.state,null)}function ji(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs=Da,Ti(e);var o=t.contextType;typeof o=="object"&&o!==null?s.context=Ee(o):(o=me(t)?Lt:le.current,s.context=hn(e,o)),ir(e,n,s,r),s.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(ws(e,t,o,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&xs.enqueueReplaceState(s,s.state,null),ir(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4)}var Ss=Array.isArray;function lr(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(k(309));var r=n.stateNode}if(!r)throw Error(k(147,e));var s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var i=r.refs;i===Da&&(i=r.refs={}),o===null?delete i[s]:i[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(k(284));if(!n._owner)throw Error(k(290,e))}return e}function $s(e,t){if(e.type!=="textarea")throw Error(k(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Ba(e){function t(h,d){if(e){var g=h.lastEffect;g!==null?(g.nextEffect=d,h.lastEffect=d):h.firstEffect=h.lastEffect=d,d.nextEffect=null,d.flags=8}}function n(h,d){if(!e)return null;for(;d!==null;)t(h,d),d=d.sibling;return null}function r(h,d){for(h=new Map;d!==null;)d.key!==null?h.set(d.key,d):h.set(d.index,d),d=d.sibling;return h}function s(h,d){return h=St(h,d),h.index=0,h.sibling=null,h}function o(h,d,g){return h.index=g,e?(g=h.alternate,g!==null?(g=g.index,g<d?(h.flags=2,d):g):(h.flags=2,d)):d}function i(h){return e&&h.alternate===null&&(h.flags=2),h}function l(h,d,g,w){return d===null||d.tag!==6?(d=cl(g,h.mode,w),d.return=h,d):(d=s(d,g),d.return=h,d)}function u(h,d,g,w){return d!==null&&d.elementType===g.type?(w=s(d,g.props),w.ref=lr(h,d,g),w.return=h,w):(w=Us(g.type,g.key,g.props,null,h.mode,w),w.ref=lr(h,d,g),w.return=h,w)}function a(h,d,g,w){return d===null||d.tag!==4||d.stateNode.containerInfo!==g.containerInfo||d.stateNode.implementation!==g.implementation?(d=fl(g,h.mode,w),d.return=h,d):(d=s(d,g.children||[]),d.return=h,d)}function f(h,d,g,w,y){return d===null||d.tag!==7?(d=kn(g,h.mode,w,y),d.return=h,d):(d=s(d,g),d.return=h,d)}function p(h,d,g){if(typeof d=="string"||typeof d=="number")return d=cl(""+d,h.mode,g),d.return=h,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case _n:return g=Us(d.type,d.key,d.props,null,h.mode,g),g.ref=lr(h,null,d),g.return=h,g;case Tt:return d=fl(d,h.mode,g),d.return=h,d}if(Ss(d)||In(d))return d=kn(d,h.mode,g,null),d.return=h,d;$s(h,d)}return null}function c(h,d,g,w){var y=d!==null?d.key:null;if(typeof g=="string"||typeof g=="number")return y!==null?null:l(h,d,""+g,w);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case _n:return g.key===y?g.type===nt?f(h,d,g.props.children,w,y):u(h,d,g,w):null;case Tt:return g.key===y?a(h,d,g,w):null}if(Ss(g)||In(g))return y!==null?null:f(h,d,g,w,null);$s(h,g)}return null}function m(h,d,g,w,y){if(typeof w=="string"||typeof w=="number")return h=h.get(g)||null,l(d,h,""+w,y);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case _n:return h=h.get(w.key===null?g:w.key)||null,w.type===nt?f(d,h,w.props.children,y,w.key):u(d,h,w,y);case Tt:return h=h.get(w.key===null?g:w.key)||null,a(d,h,w,y)}if(Ss(w)||In(w))return h=h.get(g)||null,f(d,h,w,y,null);$s(d,w)}return null}function v(h,d,g,w){for(var y=null,$=null,S=d,C=d=0,T=null;S!==null&&C<g.length;C++){S.index>C?(T=S,S=null):T=S.sibling;var N=c(h,S,g[C],w);if(N===null){S===null&&(S=T);break}e&&S&&N.alternate===null&&t(h,S),d=o(N,d,C),$===null?y=N:$.sibling=N,$=N,S=T}if(C===g.length)return n(h,S),y;if(S===null){for(;C<g.length;C++)S=p(h,g[C],w),S!==null&&(d=o(S,d,C),$===null?y=S:$.sibling=S,$=S);return y}for(S=r(h,S);C<g.length;C++)T=m(S,h,C,g[C],w),T!==null&&(e&&T.alternate!==null&&S.delete(T.key===null?C:T.key),d=o(T,d,C),$===null?y=T:$.sibling=T,$=T);return e&&S.forEach(function(M){return t(h,M)}),y}function x(h,d,g,w){var y=In(g);if(typeof y!="function")throw Error(k(150));if(g=y.call(g),g==null)throw Error(k(151));for(var $=y=null,S=d,C=d=0,T=null,N=g.next();S!==null&&!N.done;C++,N=g.next()){S.index>C?(T=S,S=null):T=S.sibling;var M=c(h,S,N.value,w);if(M===null){S===null&&(S=T);break}e&&S&&M.alternate===null&&t(h,S),d=o(M,d,C),$===null?y=M:$.sibling=M,$=M,S=T}if(N.done)return n(h,S),y;if(S===null){for(;!N.done;C++,N=g.next())N=p(h,N.value,w),N!==null&&(d=o(N,d,C),$===null?y=N:$.sibling=N,$=N);return y}for(S=r(h,S);!N.done;C++,N=g.next())N=m(S,h,C,N.value,w),N!==null&&(e&&N.alternate!==null&&S.delete(N.key===null?C:N.key),d=o(N,d,C),$===null?y=N:$.sibling=N,$=N);return e&&S.forEach(function(ze){return t(h,ze)}),y}return function(h,d,g,w){var y=typeof g=="object"&&g!==null&&g.type===nt&&g.key===null;y&&(g=g.props.children);var $=typeof g=="object"&&g!==null;if($)switch(g.$$typeof){case _n:e:{for($=g.key,y=d;y!==null;){if(y.key===$){switch(y.tag){case 7:if(g.type===nt){n(h,y.sibling),d=s(y,g.props.children),d.return=h,h=d;break e}break;default:if(y.elementType===g.type){n(h,y.sibling),d=s(y,g.props),d.ref=lr(h,y,g),d.return=h,h=d;break e}}n(h,y);break}else t(h,y);y=y.sibling}g.type===nt?(d=kn(g.props.children,h.mode,w,g.key),d.return=h,h=d):(w=Us(g.type,g.key,g.props,null,h.mode,w),w.ref=lr(h,d,g),w.return=h,h=w)}return i(h);case Tt:e:{for(y=g.key;d!==null;){if(d.key===y)if(d.tag===4&&d.stateNode.containerInfo===g.containerInfo&&d.stateNode.implementation===g.implementation){n(h,d.sibling),d=s(d,g.children||[]),d.return=h,h=d;break e}else{n(h,d);break}else t(h,d);d=d.sibling}d=fl(g,h.mode,w),d.return=h,h=d}return i(h)}if(typeof g=="string"||typeof g=="number")return g=""+g,d!==null&&d.tag===6?(n(h,d.sibling),d=s(d,g),d.return=h,h=d):(n(h,d),d=cl(g,h.mode,w),d.return=h,h=d),i(h);if(Ss(g))return v(h,d,g,w);if(In(g))return x(h,d,g,w);if($&&$s(h,g),typeof g>"u"&&!y)switch(h.tag){case 1:case 22:case 0:case 11:case 15:throw Error(k(152,Xt(h.type)||"Component"))}return n(h,d)}}var ks=Ba(!0),Ha=Ba(!1),ur={},Fe=ct(ur),ar=ct(ur),cr=ct(ur);function Rt(e){if(e===ur)throw Error(k(174));return e}function Ni(e,t){switch(K(cr,t),K(ar,e),K(Fe,ur),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ro(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ro(t,e)}U(Fe),K(Fe,t)}function mn(){U(Fe),U(ar),U(cr)}function Ka(e){Rt(cr.current);var t=Rt(Fe.current),n=Ro(t,e.type);t!==n&&(K(ar,e),K(Fe,n))}function Ai(e){ar.current===e&&(U(Fe),U(ar))}var W=ct(0);function Cs(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var qe=null,gt=null,Ue=!1;function Wa(e,t){var n=Ne(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 Qa(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 Li(e){if(Ue){var t=gt;if(t){var n=t;if(!Qa(e,t)){if(t=un(n.nextSibling),!t||!Qa(e,t)){e.flags=e.flags&-1025|2,Ue=!1,qe=e;return}Wa(qe,n)}qe=e,gt=un(t.firstChild)}else e.flags=e.flags&-1025|2,Ue=!1,qe=e}}function Ya(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;qe=e}function Ps(e){if(e!==qe)return!1;if(!Ue)return Ya(e),Ue=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!gi(t,e.memoizedProps))for(t=gt;t;)Wa(e,t),t=un(t.nextSibling);if(Ya(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(k(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){gt=un(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}gt=null}}else gt=qe?un(e.stateNode.nextSibling):null;return!0}function Oi(){gt=qe=null,Ue=!1}var yn=[];function _i(){for(var e=0;e<yn.length;e++)yn[e]._workInProgressVersionPrimary=null;yn.length=0}var fr=Et.ReactCurrentDispatcher,Te=Et.ReactCurrentBatchConfig,hr=0,Y=null,ae=null,ne=null,Es=!1,dr=!1;function ye(){throw Error(k(321))}function Ri(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Pe(e[n],t[n]))return!1;return!0}function zi(e,t,n,r,s,o){if(hr=o,Y=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fr.current=e===null||e.memoizedState===null?Id:Md,e=n(r,s),dr){o=0;do{if(dr=!1,!(25>o))throw Error(k(301));o+=1,ne=ae=null,t.updateQueue=null,fr.current=Dd,e=n(r,s)}while(dr)}if(fr.current=As,t=ae!==null&&ae.next!==null,hr=0,ne=ae=Y=null,Es=!1,t)throw Error(k(300));return e}function zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ne===null?Y.memoizedState=ne=e:ne=ne.next=e,ne}function It(){if(ae===null){var e=Y.alternate;e=e!==null?e.memoizedState:null}else e=ae.next;var t=ne===null?Y.memoizedState:ne.next;if(t!==null)ne=t,ae=e;else{if(e===null)throw Error(k(310));ae=e,e={memoizedState:ae.memoizedState,baseState:ae.baseState,baseQueue:ae.baseQueue,queue:ae.queue,next:null},ne===null?Y.memoizedState=ne=e:ne=ne.next=e}return ne}function Ve(e,t){return typeof t=="function"?t(e):t}function pr(e){var t=It(),n=t.queue;if(n===null)throw Error(k(311));n.lastRenderedReducer=e;var r=ae,s=r.baseQueue,o=n.pending;if(o!==null){if(s!==null){var i=s.next;s.next=o.next,o.next=i}r.baseQueue=s=o,n.pending=null}if(s!==null){s=s.next,r=r.baseState;var l=i=o=null,u=s;do{var a=u.lane;if((hr&a)===a)l!==null&&(l=l.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:a,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};l===null?(i=l=f,o=r):l=l.next=f,Y.lanes|=a,vr|=a}u=u.next}while(u!==null&&u!==s);l===null?o=r:l.next=i,Pe(r,t.memoizedState)||(Oe=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function gr(e){var t=It(),n=t.queue;if(n===null)throw Error(k(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,o=t.memoizedState;if(s!==null){n.pending=null;var i=s=s.next;do o=e(o,i.action),i=i.next;while(i!==s);Pe(o,t.memoizedState)||(Oe=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ja(e,t,n){var r=t._getVersion;r=r(t._source);var s=t._workInProgressVersionPrimary;if(s!==null?e=s===r:(e=e.mutableReadLanes,(e=(hr&e)===e)&&(t._workInProgressVersionPrimary=r,yn.push(t))),e)return n(t._source);throw yn.push(t),Error(k(350))}function Ga(e,t,n,r){var s=de;if(s===null)throw Error(k(349));var o=t._getVersion,i=o(t._source),l=fr.current,u=l.useState(function(){return Ja(s,t,n)}),a=u[1],f=u[0];u=ne;var p=e.memoizedState,c=p.refs,m=c.getSnapshot,v=p.source;p=p.subscribe;var x=Y;return e.memoizedState={refs:c,source:t,subscribe:r},l.useEffect(function(){c.getSnapshot=n,c.setSnapshot=a;var h=o(t._source);if(!Pe(i,h)){h=n(t._source),Pe(f,h)||(a(h),h=yt(x),s.mutableReadLanes|=h&s.pendingLanes),h=s.mutableReadLanes,s.entangledLanes|=h;for(var d=s.entanglements,g=h;0<g;){var w=31-lt(g),y=1<<w;d[w]|=h,g&=~y}}},[n,t,r]),l.useEffect(function(){return r(t._source,function(){var h=c.getSnapshot,d=c.setSnapshot;try{d(h(t._source));var g=yt(x);s.mutableReadLanes|=g&s.pendingLanes}catch(w){d(function(){throw w})}})},[t,r]),Pe(m,n)&&Pe(v,t)&&Pe(p,r)||(e={pending:null,dispatch:null,lastRenderedReducer:Ve,lastRenderedState:f},e.dispatch=a=Fi.bind(null,Y,e),u.queue=e,u.baseQueue=null,f=Ja(s,t,n),u.memoizedState=u.baseState=f),f}function Xa(e,t,n){var r=It();return Ga(r,e,t,n)}function mr(e){var t=zt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Ve,lastRenderedState:e},e=e.dispatch=Fi.bind(null,Y,e),[t.memoizedState,e]}function Ts(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Y.updateQueue,t===null?(t={lastEffect:null},Y.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function qa(e){var t=zt();return e={current:e},t.memoizedState=e}function js(){return It().memoizedState}function Ii(e,t,n,r){var s=zt();Y.flags|=e,s.memoizedState=Ts(1|t,n,void 0,r===void 0?null:r)}function Mi(e,t,n,r){var s=It();r=r===void 0?null:r;var o=void 0;if(ae!==null){var i=ae.memoizedState;if(o=i.destroy,r!==null&&Ri(r,i.deps)){Ts(t,n,o,r);return}}Y.flags|=e,s.memoizedState=Ts(1|t,n,o,r)}function Za(e,t){return Ii(516,4,e,t)}function Ns(e,t){return Mi(516,4,e,t)}function ba(e,t){return Mi(4,2,e,t)}function ec(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 tc(e,t,n){return n=n!=null?n.concat([e]):null,Mi(4,2,ec.bind(null,t,e),n)}function Di(){}function nc(e,t){var n=It();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ri(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function rc(e,t){var n=It();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ri(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function zd(e,t){var n=dn();_t(98>n?98:n,function(){e(!0)}),_t(97<n?97:n,function(){var r=Te.transition;Te.transition=1;try{e(!1),t()}finally{Te.transition=r}})}function Fi(e,t,n){var r=xe(),s=yt(e),o={lane:s,action:n,eagerReducer:null,eagerState:null,next:null},i=t.pending;if(i===null?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===Y||i!==null&&i===Y)dr=Es=!0;else{if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,u=i(l,n);if(o.eagerReducer=i,o.eagerState=u,Pe(u,l))return}catch{}finally{}vt(e,s,r)}}var As={readContext:Ee,useCallback:ye,useContext:ye,useEffect:ye,useImperativeHandle:ye,useLayoutEffect:ye,useMemo:ye,useReducer:ye,useRef:ye,useState:ye,useDebugValue:ye,useDeferredValue:ye,useTransition:ye,useMutableSource:ye,useOpaqueIdentifier:ye,unstable_isNewReconciler:!1},Id={readContext:Ee,useCallback:function(e,t){return zt().memoizedState=[e,t===void 0?null:t],e},useContext:Ee,useEffect:Za,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ii(4,2,ec.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ii(4,2,e,t)},useMemo:function(e,t){var n=zt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=zt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=Fi.bind(null,Y,e),[r.memoizedState,e]},useRef:qa,useState:mr,useDebugValue:Di,useDeferredValue:function(e){var t=mr(e),n=t[0],r=t[1];return Za(function(){var s=Te.transition;Te.transition=1;try{r(e)}finally{Te.transition=s}},[e]),n},useTransition:function(){var e=mr(!1),t=e[0];return e=zd.bind(null,e[1]),qa(e),[e,t]},useMutableSource:function(e,t,n){var r=zt();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},Ga(r,e,t,n)},useOpaqueIdentifier:function(){if(Ue){var e=!1,t=Nd(function(){throw e||(e=!0,n("r:"+(yi++).toString(36))),Error(k(355))}),n=mr(t)[1];return!(Y.mode&2)&&(Y.flags|=516,Ts(5,function(){n("r:"+(yi++).toString(36))},void 0,null)),t}return t="r:"+(yi++).toString(36),mr(t),t},unstable_isNewReconciler:!1},Md={readContext:Ee,useCallback:nc,useContext:Ee,useEffect:Ns,useImperativeHandle:tc,useLayoutEffect:ba,useMemo:rc,useReducer:pr,useRef:js,useState:function(){return pr(Ve)},useDebugValue:Di,useDeferredValue:function(e){var t=pr(Ve),n=t[0],r=t[1];return Ns(function(){var s=Te.transition;Te.transition=1;try{r(e)}finally{Te.transition=s}},[e]),n},useTransition:function(){var e=pr(Ve)[0];return[js().current,e]},useMutableSource:Xa,useOpaqueIdentifier:function(){return pr(Ve)[0]},unstable_isNewReconciler:!1},Dd={readContext:Ee,useCallback:nc,useContext:Ee,useEffect:Ns,useImperativeHandle:tc,useLayoutEffect:ba,useMemo:rc,useReducer:gr,useRef:js,useState:function(){return gr(Ve)},useDebugValue:Di,useDeferredValue:function(e){var t=gr(Ve),n=t[0],r=t[1];return Ns(function(){var s=Te.transition;Te.transition=1;try{r(e)}finally{Te.transition=s}},[e]),n},useTransition:function(){var e=gr(Ve)[0];return[js().current,e]},useMutableSource:Xa,useOpaqueIdentifier:function(){return gr(Ve)[0]},unstable_isNewReconciler:!1},Fd=Et.ReactCurrentOwner,Oe=!1;function ve(e,t,n,r){t.child=e===null?Ha(t,null,n,r):ks(t,e.child,n,r)}function sc(e,t,n,r,s){n=n.render;var o=t.ref;return gn(t,s),r=zi(e,t,n,r,o,s),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~s,Ze(e,t,s)):(t.flags|=1,ve(e,t,r,s),t.child)}function oc(e,t,n,r,s,o){if(e===null){var i=n.type;return typeof i=="function"&&!ul(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,ic(e,t,i,r,s,o)):(e=Us(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}return i=e.child,!(s&o)&&(s=i.memoizedProps,n=n.compare,n=n!==null?n:er,n(s,r)&&e.ref===t.ref)?Ze(e,t,o):(t.flags|=1,e=St(i,r),e.ref=t.ref,e.return=t,t.child=e)}function ic(e,t,n,r,s,o){if(e!==null&&er(e.memoizedProps,r)&&e.ref===t.ref)if(Oe=!1,(o&s)!==0)e.flags&16384&&(Oe=!0);else return t.lanes=e.lanes,Ze(e,t,o);return Vi(e,t,n,r,o)}function Ui(e,t,n){var r=t.pendingProps,s=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden"||r.mode==="unstable-defer-without-hiding")if(!(t.mode&4))t.memoizedState={baseLanes:0},Fs(t,n);else if(n&1073741824)t.memoizedState={baseLanes:0},Fs(t,o!==null?o.baseLanes:n);else return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Fs(t,e),null;else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Fs(t,r);return ve(e,t,s,n),t.child}function lc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function Vi(e,t,n,r,s){var o=me(n)?Lt:le.current;return o=hn(t,o),gn(t,s),n=zi(e,t,n,r,o,s),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~s,Ze(e,t,s)):(t.flags|=1,ve(e,t,n,s),t.child)}function uc(e,t,n,r,s){if(me(n)){var o=!0;ds(t)}else o=!1;if(gn(t,s),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Ua(t,n,r),ji(t,n,r,s),r=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var u=i.context,a=n.contextType;typeof a=="object"&&a!==null?a=Ee(a):(a=me(n)?Lt:le.current,a=hn(t,a));var f=n.getDerivedStateFromProps,p=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function";p||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==r||u!==a)&&Va(t,i,r,a),ht=!1;var c=t.memoizedState;i.state=c,ir(t,r,i,s),u=t.memoizedState,l!==r||c!==u||ge.current||ht?(typeof f=="function"&&(ws(t,n,f,r),u=t.memoizedState),(l=ht||Fa(t,n,l,r,c,u,a))?(p||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4)):(typeof i.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=a,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4),r=!1)}else{i=t.stateNode,za(e,t),l=t.memoizedProps,a=t.type===t.elementType?l:Le(t.type,l),i.props=a,p=t.pendingProps,c=i.context,u=n.contextType,typeof u=="object"&&u!==null?u=Ee(u):(u=me(n)?Lt:le.current,u=hn(t,u));var m=n.getDerivedStateFromProps;(f=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==p||c!==u)&&Va(t,i,r,u),ht=!1,c=t.memoizedState,i.state=c,ir(t,r,i,s);var v=t.memoizedState;l!==p||c!==v||ge.current||ht?(typeof m=="function"&&(ws(t,n,m,r),v=t.memoizedState),(a=ht||Fa(t,n,a,r,c,v,u))?(f||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,v,u),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,v,u)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=v),i.props=r,i.state=v,i.context=u,r=a):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=256),r=!1)}return Bi(e,t,n,r,o,s)}function Bi(e,t,n,r,s,o){lc(e,t);var i=(t.flags&64)!==0;if(!r&&!i)return s&&Pa(t,n,!1),Ze(e,t,o);r=t.stateNode,Fd.current=t;var l=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=ks(t,e.child,null,o),t.child=ks(t,null,l,o)):ve(e,t,l,o),t.memoizedState=r.state,s&&Pa(t,n,!0),t.child}function ac(e){var t=e.stateNode;t.pendingContext?ka(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ka(e,t.context,!1),Ni(e,t.containerInfo)}var Ls={dehydrated:null,retryLane:0};function cc(e,t,n){var r=t.pendingProps,s=W.current,o=!1,i;return(i=(t.flags&64)!==0)||(i=e!==null&&e.memoizedState===null?!1:(s&2)!==0),i?(o=!0,t.flags&=-65):e!==null&&e.memoizedState===null||r.fallback===void 0||r.unstable_avoidThisFallback===!0||(s|=1),K(W,s&1),e===null?(r.fallback!==void 0&&Li(t),e=r.children,s=r.fallback,o?(e=fc(t,e,s,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ls,e):typeof r.unstable_expectedLoadTime=="number"?(e=fc(t,e,s,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ls,t.lanes=33554432,e):(n=al({mode:"visible",children:e},t.mode,n,null),n.return=t,t.child=n)):e.memoizedState!==null?o?(r=dc(e,t,r.children,r.fallback,n),o=t.child,s=e.child.memoizedState,o.memoizedState=s===null?{baseLanes:n}:{baseLanes:s.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Ls,r):(n=hc(e,t,r.children,n),t.memoizedState=null,n):o?(r=dc(e,t,r.children,r.fallback,n),o=t.child,s=e.child.memoizedState,o.memoizedState=s===null?{baseLanes:n}:{baseLanes:s.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Ls,r):(n=hc(e,t,r.children,n),t.memoizedState=null,n)}function fc(e,t,n,r){var s=e.mode,o=e.child;return t={mode:"hidden",children:t},!(s&2)&&o!==null?(o.childLanes=0,o.pendingProps=t):o=al(t,s,0,null),n=kn(n,s,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function hc(e,t,n,r){var s=e.child;return e=s.sibling,n=St(s,{mode:"visible",children:n}),!(t.mode&2)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function dc(e,t,n,r,s){var o=t.mode,i=e.child;e=i.sibling;var l={mode:"hidden",children:n};return!(o&2)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,i=n.lastEffect,i!==null?(t.firstEffect=n.firstEffect,t.lastEffect=i,i.nextEffect=null):t.firstEffect=t.lastEffect=null):n=St(i,l),e!==null?r=St(e,r):(r=kn(r,o,s,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function pc(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Ra(e.return,t)}function Hi(e,t,n,r,s,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s,lastEffect:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s,i.lastEffect=o)}function gc(e,t,n){var r=t.pendingProps,s=r.revealOrder,o=r.tail;if(ve(e,t,r.children,n),r=W.current,r&2)r=r&1|2,t.flags|=64;else{if(e!==null&&e.flags&64)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pc(e,n);else if(e.tag===19)pc(e,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(K(W,r),!(t.mode&2))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Cs(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Hi(t,!1,s,n,o,t.lastEffect);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Cs(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Hi(t,!0,n,null,o,t.lastEffect);break;case"together":Hi(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ze(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),vr|=t.lanes,n&t.childLanes){if(e!==null&&t.child!==e.child)throw Error(k(153));if(t.child!==null){for(e=t.child,n=St(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=St(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var mc,Ki,yc,vc;mc=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}},Ki=function(){},yc=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Rt(Fe.current);var o=null;switch(n){case"input":s=jo(e,s),r=jo(e,r),o=[];break;case"option":s=Lo(e,s),r=Lo(e,r),o=[];break;case"select":s=V({},s,{value:void 0}),r=V({},r,{value:void 0}),o=[];break;case"textarea":s=Oo(e,s),r=Oo(e,r),o=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=us)}zo(n,r);var i;n=null;for(a in s)if(!r.hasOwnProperty(a)&&s.hasOwnProperty(a)&&s[a]!=null)if(a==="style"){var l=s[a];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(On.hasOwnProperty(a)?o||(o=[]):(o=o||[]).push(a,null));for(a in r){var u=r[a];if(l=s!=null?s[a]:void 0,r.hasOwnProperty(a)&&u!==l&&(u!=null||l!=null))if(a==="style")if(l){for(i in l)!l.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&l[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(o||(o=[]),o.push(a,n)),n=u;else a==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,l=l?l.__html:void 0,u!=null&&l!==u&&(o=o||[]).push(a,u)):a==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(a,""+u):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(On.hasOwnProperty(a)?(u!=null&&a==="onScroll"&&F("scroll",e),o||l===u||(o=[])):typeof u=="object"&&u!==null&&u.$$typeof===ko?u.toString():(o=o||[]).push(a,u))}n&&(o=o||[]).push("style",n);var a=o;(t.updateQueue=a)&&(t.flags|=4)}},vc=function(e,t,n,r){n!==r&&(t.flags|=4)};function yr(e,t){if(!Ue)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ud(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return me(t.type)&&hs(),null;case 3:return mn(),U(ge),U(le),_i(),r=t.stateNode,r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ps(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Ki(t),null;case 5:Ai(t);var s=Rt(cr.current);if(n=t.type,e!==null&&t.stateNode!=null)yc(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(t.stateNode===null)throw Error(k(166));return null}if(e=Rt(Fe.current),Ps(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[at]=t,r[cs]=o,n){case"dialog":F("cancel",r),F("close",r);break;case"iframe":case"object":case"embed":F("load",r);break;case"video":case"audio":for(e=0;e<nr.length;e++)F(nr[e],r);break;case"source":F("error",r);break;case"img":case"image":case"link":F("error",r),F("load",r);break;case"details":F("toggle",r);break;case"input":au(r,o),F("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},F("invalid",r);break;case"textarea":hu(r,o),F("invalid",r)}zo(n,o),e=null;for(var i in o)o.hasOwnProperty(i)&&(s=o[i],i==="children"?typeof s=="string"?r.textContent!==s&&(e=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(e=["children",""+s]):On.hasOwnProperty(i)&&s!=null&&i==="onScroll"&&F("scroll",r));switch(n){case"input":Wr(r),fu(r,o,!0);break;case"textarea":Wr(r),pu(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=us)}r=e,t.updateQueue=r,r!==null&&(t.flags|=4)}else{switch(i=s.nodeType===9?s:s.ownerDocument,e===_o.html&&(e=gu(n)),e===_o.html?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[at]=t,e[cs]=r,mc(e,t,!1,!1),t.stateNode=e,i=Io(n,r),n){case"dialog":F("cancel",e),F("close",e),s=r;break;case"iframe":case"object":case"embed":F("load",e),s=r;break;case"video":case"audio":for(s=0;s<nr.length;s++)F(nr[s],e);s=r;break;case"source":F("error",e),s=r;break;case"img":case"image":case"link":F("error",e),F("load",e),s=r;break;case"details":F("toggle",e),s=r;break;case"input":au(e,r),s=jo(e,r),F("invalid",e);break;case"option":s=Lo(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=V({},r,{value:void 0}),F("invalid",e);break;case"textarea":hu(e,r),s=Oo(e,r),F("invalid",e);break;default:s=r}zo(n,s);var l=s;for(o in l)if(l.hasOwnProperty(o)){var u=l[o];o==="style"?vu(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&mu(e,u)):o==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Dn(e,u):typeof u=="number"&&Dn(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(On.hasOwnProperty(o)?u!=null&&o==="onScroll"&&F("scroll",e):u!=null&&yo(e,o,u,i))}switch(n){case"input":Wr(e),fu(e,r,!1);break;case"textarea":Wr(e),pu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+rt(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?qt(e,!!r.multiple,o,!1):r.defaultValue!=null&&qt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=us)}va(n,r)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)vc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(k(166));n=Rt(cr.current),Rt(Fe.current),Ps(t)?(r=t.stateNode,n=t.memoizedProps,r[at]=t,r.nodeValue!==n&&(t.flags|=4)):(r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[at]=t,t.stateNode=r)}return null;case 13:return U(W),r=t.memoizedState,t.flags&64?(t.lanes=n,t):(r=r!==null,n=!1,e===null?t.memoizedProps.fallback!==void 0&&Ps(t):n=e.memoizedState!==null,r&&!n&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||W.current&1?re===0&&(re=3):((re===0||re===3)&&(re=4),de===null||!(vr&134217727)&&!(wn&134217727)||Sn(de,ce))),(r||n)&&(t.flags|=4),null);case 4:return mn(),Ki(t),e===null&&da(t.stateNode.containerInfo),null;case 10:return Ei(t),null;case 17:return me(t.type)&&hs(),null;case 19:if(U(W),r=t.memoizedState,r===null)return null;if(o=(t.flags&64)!==0,i=r.rendering,i===null)if(o)yr(r,!1);else{if(re!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(i=Cs(e),i!==null){for(t.flags|=64,yr(r,!1),o=i.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),r.lastEffect===null&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return K(W,W.current&1|2),t.child}e=e.sibling}r.tail!==null&&ue()>tl&&(t.flags|=64,o=!0,yr(r,!1),t.lanes=33554432)}else{if(!o)if(e=Cs(i),e!==null){if(t.flags|=64,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),yr(r,!0),r.tail===null&&r.tailMode==="hidden"&&!i.alternate&&!Ue)return t=t.lastEffect=r.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*ue()-r.renderingStartTime>tl&&n!==1073741824&&(t.flags|=64,o=!0,yr(r,!1),t.lanes=33554432);r.isBackwards?(i.sibling=t.child,t.child=i):(n=r.last,n!==null?n.sibling=i:t.child=i,r.last=i)}return r.tail!==null?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=ue(),n.sibling=null,t=W.current,K(W,o?t&1|2:t&1),n):null;case 23:case 24:return ll(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&r.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(k(156,t.tag))}function Vd(e){switch(e.tag){case 1:me(e.type)&&hs();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(mn(),U(ge),U(le),_i(),t=e.flags,t&64)throw Error(k(285));return e.flags=t&-4097|64,e;case 5:return Ai(e),null;case 13:return U(W),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return U(W),null;case 4:return mn(),null;case 10:return Ei(e),null;case 23:case 24:return ll(),null;default:return null}}function Wi(e,t){try{var n="",r=t;do n+=xh(r),r=r.return;while(r);var s=n}catch(o){s=`
39
39
  Error generating stack: `+o.message+`
40
- `+o.stack}return{value:e,source:t,stack:s}}function Cl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var vg=typeof WeakMap=="function"?WeakMap:Map;function df(e,t,n){n=$t(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ys||(Ys=!0,Ll=r),Cl(e,t)},n}function pf(e,t,n){n=$t(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return Cl(e,t),r(s)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){typeof r!="function"&&(Ye===null?Ye=new Set([this]):Ye.add(this),Cl(e,t));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}var wg=typeof WeakSet=="function"?WeakSet:Set;function gf(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){At(e,n)}else t.current=null}function Sg(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var n=e.memoizedProps,r=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:Ie(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&qi(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(E(163))}function xg(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var s=e;r=s.next,s=s.tag,s&4&&s&1&&(Nf(n,e),Ag(n,e)),e=r}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Ie(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&Nc(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}Nc(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&fc(n.type,n.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&Tu(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(E(163))}function mf(e,t){for(var n=e;;){if(n.tag===5){var r=n.stateNode;if(t)r=r.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var s=n.memoizedProps.style;s=s!=null&&s.hasOwnProperty("display")?s.display:null,r.style.display=cu("display",s)}}else if(n.tag===6)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function yf(e,t){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(Yi,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var n=e=e.next;do{var r=n,s=r.destroy;if(r=r.tag,s!==void 0)if(r&4)Nf(t,n);else{r=t;try{s()}catch(o){At(r,o)}}n=n.next}while(n!==e)}break;case 1:if(gf(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){At(t,o)}break;case 5:gf(t);break;case 4:xf(e,t)}}function vf(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function wf(e){return e.tag===5||e.tag===3||e.tag===4}function Sf(e){e:{for(var t=e.return;t!==null;){if(wf(t))break e;t=t.return}throw Error(E(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:t=t.containerInfo,r=!0;break;case 4:t=t.containerInfo,r=!0;break;default:throw Error(E(161))}n.flags&16&&(Xn(t,""),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||wf(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}r?kl(e,n,t):El(e,n,t)}function kl(e,t,n){var r=e.tag,s=r===5||r===6;if(s)e=s?e.stateNode:e.stateNode.instance,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ks));else if(r!==4&&(e=e.child,e!==null))for(kl(e,t,n),e=e.sibling;e!==null;)kl(e,t,n),e=e.sibling}function El(e,t,n){var r=e.tag,s=r===5||r===6;if(s)e=s?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(El(e,t,n),e=e.sibling;e!==null;)El(e,t,n),e=e.sibling}function xf(e,t){for(var n=t,r=!1,s,o;;){if(!r){r=n.return;e:for(;;){if(r===null)throw Error(E(160));switch(s=r.stateNode,r.tag){case 5:o=!1;break e;case 3:s=s.containerInfo,o=!0;break e;case 4:s=s.containerInfo,o=!0;break e}r=r.return}r=!0}if(n.tag===5||n.tag===6){e:for(var i=e,l=n,a=l;;)if(yf(i,a),a.child!==null&&a.tag!==4)a.child.return=a,a=a.child;else{if(a===l)break e;for(;a.sibling===null;){if(a.return===null||a.return===l)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}o?(i=s,l=n.stateNode,i.nodeType===8?i.parentNode.removeChild(l):i.removeChild(l)):s.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){s=n.stateNode.containerInfo,o=!0,n.child.return=n,n=n.child;continue}}else if(yf(e,n),n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return,n.tag===4&&(r=!1)}n.sibling.return=n.return,n=n.sibling}}function Pl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var r=n=n.next;do(r.tag&3)===3&&(e=r.destroy,r.destroy=void 0,e!==void 0&&e()),r=r.next;while(r!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){r=t.memoizedProps;var s=e!==null?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(n[Ps]=r,e==="input"&&r.type==="radio"&&r.name!=null&&ru(n,r),di(e,s),t=di(e,r),s=0;s<o.length;s+=2){var i=o[s],l=o[s+1];i==="style"?fu(n,l):i==="dangerouslySetInnerHTML"?uu(n,l):i==="children"?Xn(n,l):Jo(n,i,l,t)}switch(e){case"input":ii(n,r);break;case"textarea":iu(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,o=r.value,o!=null?un(n,!!r.multiple,o,!1):e!==!!r.multiple&&(r.defaultValue!=null?un(n,!!r.multiple,r.defaultValue,!0):un(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(E(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,Tu(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(Ol=fe(),mf(t.child,!0)),$f(t);return;case 19:$f(t);return;case 17:return;case 23:case 24:mf(t,t.memoizedState!==null);return}throw Error(E(163))}function $f(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new wg),t.forEach(function(r){var s=Rg.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function $g(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var Cg=Math.ceil,Js=Dt.ReactCurrentDispatcher,Tl=Dt.ReactCurrentOwner,R=0,ye=null,ee=null,de=0,Wt=0,jl=wt(0),ie=0,Qs=null,An=0,Or=0,Nn=0,Al=0,Nl=null,Ol=0,Rl=1/0;function On(){Rl=fe()+500}var N=null,Ys=!1,Ll=null,Ye=null,Et=!1,Rr=null,Lr=90,_l=[],Dl=[],at=null,_r=0,Il=null,Xs=-1,ut=0,Gs=0,Dr=null,Zs=!1;function Ee(){return R&48?fe():Xs!==-1?Xs:Xs=fe()}function Pt(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return kn()===99?1:2;if(ut===0&&(ut=An),cg.transition!==0){Gs!==0&&(Gs=Nl!==null?Nl.pendingLanes:0),e=ut;var t=4186112&~Gs;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=kn(),R&4&&e===98?e=gs(12,ut):(e=hp(e),e=gs(e,ut)),e}function Tt(e,t,n){if(50<_r)throw _r=0,Il=null,Error(E(185));if(e=eo(e,t),e===null)return null;ms(e,t,n),e===ye&&(Nn|=t,ie===4&&Rn(e,de));var r=kn();t===1?R&8&&!(R&48)?Fl(e):(Re(e,n),R===0&&(On(),We())):(!(R&4)||r!==98&&r!==99||(at===null?at=new Set([e]):at.add(e)),Re(e,n)),Nl=e}function eo(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}function Re(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,s=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-mt(i),a=1<<l,u=o[l];if(u===-1){if(!(a&r)||a&s){u=t,dn(a);var c=U;o[l]=10<=c?u+250:6<=c?u+5e3:-1}}else u<=t&&(e.expiredLanes|=a);i&=~a}if(r=lr(e,e===ye?de:0),t=U,r===0)n!==null&&(n!==el&&Gi(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==el&&Gi(n)}t===15?(n=Fl.bind(null,e),ot===null?(ot=[n],Os=Xi(Ns,Pc)):ot.push(n),n=el):t===14?n=vr(99,Fl.bind(null,e)):(n=dp(t),n=vr(n,Cf.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function Cf(e){if(Xs=-1,Gs=ut=0,R&48)throw Error(E(327));var t=e.callbackNode;if(jt()&&e.callbackNode!==t)return null;var n=lr(e,e===ye?de:0);if(n===0)return null;var r=n,s=R;R|=16;var o=Tf();(ye!==e||de!==r)&&(On(),Ln(e,r));do try{Pg();break}catch(l){Pf(e,l)}while(!0);if(nl(),Js.current=o,R=s,ee!==null?r=0:(ye=null,de=0,r=ie),An&Nn)Ln(e,0);else if(r!==0){if(r===2&&(R|=64,e.hydrate&&(e.hydrate=!1,qi(e.containerInfo)),n=_u(e),n!==0&&(r=Ir(e,n))),r===1)throw t=Qs,Ln(e,0),Rn(e,n),Re(e,fe()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(E(345));case 2:qt(e);break;case 3:if(Rn(e,n),(n&62914560)===n&&(r=Ol+500-fe(),10<r)){if(lr(e,0)!==0)break;if(s=e.suspendedLanes,(s&n)!==n){Ee(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=hc(qt.bind(null,e),r);break}qt(e);break;case 4:if(Rn(e,n),(n&4186112)===n)break;for(r=e.eventTimes,s=-1;0<n;){var i=31-mt(n);o=1<<i,i=r[i],i>s&&(s=i),n&=~o}if(n=s,n=fe()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Cg(n/1960))-n,10<n){e.timeoutHandle=hc(qt.bind(null,e),n);break}qt(e);break;case 5:qt(e);break;default:throw Error(E(329))}}return Re(e,fe()),e.callbackNode===t?Cf.bind(null,e):null}function Rn(e,t){for(t&=~Al,t&=~Nn,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-mt(t),r=1<<n;e[n]=-1,t&=~r}}function Fl(e){if(R&48)throw Error(E(327));if(jt(),e===ye&&e.expiredLanes&de){var t=de,n=Ir(e,t);An&Nn&&(t=lr(e,t),n=Ir(e,t))}else t=lr(e,0),n=Ir(e,t);if(e.tag!==0&&n===2&&(R|=64,e.hydrate&&(e.hydrate=!1,qi(e.containerInfo)),t=_u(e),t!==0&&(n=Ir(e,t))),n===1)throw n=Qs,Ln(e,0),Rn(e,t),Re(e,fe()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,qt(e),Re(e,fe()),null}function kg(){if(at!==null){var e=at;at=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Re(t,fe())})}We()}function kf(e,t){var n=R;R|=1;try{return e(t)}finally{R=n,R===0&&(On(),We())}}function Ef(e,t){var n=R;R&=-2,R|=8;try{return e(t)}finally{R=n,R===0&&(On(),We())}}function to(e,t){K(jl,Wt),Wt|=t,An|=t}function zl(){Wt=jl.current,b(jl)}function Ln(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,sg(n)),ee!==null)for(n=ee.return;n!==null;){var r=n;switch(r.tag){case 1:r=r.type.childContextTypes,r!=null&&js();break;case 3:Tn(),b(we),b(ce),cl();break;case 5:ll(r);break;case 4:Tn();break;case 13:b(W);break;case 19:b(W);break;case 10:rl(r);break;case 23:case 24:zl()}n=n.return}ye=e,ee=Nt(e.current,null),de=Wt=An=t,ie=0,Qs=null,Al=Nn=Or=0}function Pf(e,t){do{var n=ee;try{if(nl(),kr.current=Ws,bs){for(var r=J.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}bs=!1}if(Er=0,oe=he=J=null,Pr=!1,Tl.current=null,n===null||n.return===null){ie=1,Qs=t,ee=null;break}e:{var o=e,i=n.return,l=n,a=t;if(t=de,l.flags|=2048,l.firstEffect=l.lastEffect=null,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a;if(!(l.mode&2)){var c=l.alternate;c?(l.updateQueue=c.updateQueue,l.memoizedState=c.memoizedState,l.lanes=c.lanes):(l.updateQueue=null,l.memoizedState=null)}var d=(W.current&1)!==0,h=i;do{var y;if(y=h.tag===13){var m=h.memoizedState;if(m!==null)y=m.dehydrated!==null;else{var v=h.memoizedProps;y=v.fallback===void 0?!1:v.unstable_avoidThisFallback!==!0?!0:!d}}if(y){var f=h.updateQueue;if(f===null){var p=new Set;p.add(u),h.updateQueue=p}else f.add(u);if(!(h.mode&2)){if(h.flags|=64,l.flags|=16384,l.flags&=-2981,l.tag===1)if(l.alternate===null)l.tag=17;else{var g=$t(-1,1);g.tag=2,Ct(l,g)}l.lanes|=1;break e}a=void 0,l=t;var S=o.pingCache;if(S===null?(S=o.pingCache=new vg,a=new Set,S.set(u,a)):(a=S.get(u),a===void 0&&(a=new Set,S.set(u,a))),!a.has(l)){a.add(l);var w=Og.bind(null,o,u,l);u.then(w,w)}h.flags|=4096,h.lanes=t;break e}h=h.return}while(h!==null);a=Error((an(l.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
40
+ `+o.stack}return{value:e,source:t,stack:s}}function Qi(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Bd=typeof WeakMap=="function"?WeakMap:Map;function wc(e,t,n){n=dt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Rs||(Rs=!0,nl=r),Qi(e,t)},n}function xc(e,t,n){n=dt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return Qi(e,t),r(s)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){typeof r!="function"&&(Be===null?Be=new Set([this]):Be.add(this),Qi(e,t));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}var Hd=typeof WeakSet=="function"?WeakSet:Set;function Sc(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){xt(e,n)}else t.current=null}function Kd(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var n=e.memoizedProps,r=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:Le(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&mi(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(k(163))}function Wd(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var s=e;r=s.next,s=s.tag,s&4&&s&1&&(Ic(n,e),bd(n,e)),e=r}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Le(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&Ma(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}Ma(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&va(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&&Ru(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(k(163))}function $c(e,t){for(var n=e;;){if(n.tag===5){var r=n.stateNode;if(t)r=r.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var s=n.memoizedProps.style;s=s!=null&&s.hasOwnProperty("display")?s.display:null,r.style.display=yu("display",s)}}else if(n.tag===6)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function kc(e,t){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(wi,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var n=e=e.next;do{var r=n,s=r.destroy;if(r=r.tag,s!==void 0)if(r&4)Ic(t,n);else{r=t;try{s()}catch(o){xt(r,o)}}n=n.next}while(n!==e)}break;case 1:if(Sc(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){xt(t,o)}break;case 5:Sc(t);break;case 4:Tc(e,t)}}function Cc(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 Pc(e){return e.tag===5||e.tag===3||e.tag===4}function Ec(e){e:{for(var t=e.return;t!==null;){if(Pc(t))break e;t=t.return}throw Error(k(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:t=t.containerInfo,r=!0;break;case 4:t=t.containerInfo,r=!0;break;default:throw Error(k(161))}n.flags&16&&(Dn(t,""),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||Pc(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}r?Yi(e,n,t):Ji(e,n,t)}function Yi(e,t,n){var r=e.tag,s=r===5||r===6;if(s)e=s?e.stateNode:e.stateNode.instance,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=us));else if(r!==4&&(e=e.child,e!==null))for(Yi(e,t,n),e=e.sibling;e!==null;)Yi(e,t,n),e=e.sibling}function Ji(e,t,n){var r=e.tag,s=r===5||r===6;if(s)e=s?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ji(e,t,n),e=e.sibling;e!==null;)Ji(e,t,n),e=e.sibling}function Tc(e,t){for(var n=t,r=!1,s,o;;){if(!r){r=n.return;e:for(;;){if(r===null)throw Error(k(160));switch(s=r.stateNode,r.tag){case 5:o=!1;break e;case 3:s=s.containerInfo,o=!0;break e;case 4:s=s.containerInfo,o=!0;break e}r=r.return}r=!0}if(n.tag===5||n.tag===6){e:for(var i=e,l=n,u=l;;)if(kc(i,u),u.child!==null&&u.tag!==4)u.child.return=u,u=u.child;else{if(u===l)break e;for(;u.sibling===null;){if(u.return===null||u.return===l)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}o?(i=s,l=n.stateNode,i.nodeType===8?i.parentNode.removeChild(l):i.removeChild(l)):s.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){s=n.stateNode.containerInfo,o=!0,n.child.return=n,n=n.child;continue}}else if(kc(e,n),n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return,n.tag===4&&(r=!1)}n.sibling.return=n.return,n=n.sibling}}function Gi(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var r=n=n.next;do(r.tag&3)===3&&(e=r.destroy,r.destroy=void 0,e!==void 0&&e()),r=r.next;while(r!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){r=t.memoizedProps;var s=e!==null?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(n[cs]=r,e==="input"&&r.type==="radio"&&r.name!=null&&cu(n,r),Io(e,s),t=Io(e,r),s=0;s<o.length;s+=2){var i=o[s],l=o[s+1];i==="style"?vu(n,l):i==="dangerouslySetInnerHTML"?mu(n,l):i==="children"?Dn(n,l):yo(n,i,l,t)}switch(e){case"input":No(n,r);break;case"textarea":du(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,o=r.value,o!=null?qt(n,!!r.multiple,o,!1):e!==!!r.multiple&&(r.defaultValue!=null?qt(n,!!r.multiple,r.defaultValue,!0):qt(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(k(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,Ru(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(el=ue(),$c(t.child,!0)),jc(t);return;case 19:jc(t);return;case 17:return;case 23:case 24:$c(t,t.memoizedState!==null);return}throw Error(k(163))}function jc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Hd),t.forEach(function(r){var s=np.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Qd(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var Yd=Math.ceil,Os=Et.ReactCurrentDispatcher,Xi=Et.ReactCurrentOwner,L=0,de=null,q=null,ce=0,Mt=0,qi=ct(0),re=0,_s=null,vn=0,vr=0,wn=0,Zi=0,bi=null,el=0,tl=1/0;function xn(){tl=ue()+500}var j=null,Rs=!1,nl=null,Be=null,mt=!1,wr=null,xr=90,rl=[],sl=[],be=null,Sr=0,ol=null,zs=-1,et=0,Is=0,$r=null,Ms=!1;function xe(){return L&48?ue():zs!==-1?zs:zs=ue()}function yt(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return dn()===99?1:2;if(et===0&&(et=vn),Rd.transition!==0){Is!==0&&(Is=bi!==null?bi.pendingLanes:0),e=et;var t=4186112&~Is;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=dn(),L&4&&e===98?e=br(12,et):(e=Ih(e),e=br(e,et)),e}function vt(e,t,n){if(50<Sr)throw Sr=0,ol=null,Error(k(185));if(e=Ds(e,t),e===null)return null;es(e,t,n),e===de&&(wn|=t,re===4&&Sn(e,ce));var r=dn();t===1?L&8&&!(L&48)?il(e):(je(e,n),L===0&&(xn(),De())):(!(L&4)||r!==98&&r!==99||(be===null?be=new Set([e]):be.add(e)),je(e,n)),bi=e}function Ds(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 je(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,s=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-lt(i),u=1<<l,a=o[l];if(a===-1){if(!(u&r)||u&s){a=t,tn(u);var f=D;o[l]=10<=f?a+250:6<=f?a+5e3:-1}}else a<=t&&(e.expiredLanes|=u);i&=~u}if(r=Jn(e,e===de?ce:0),t=D,r===0)n!==null&&(n!==ki&&Si(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==ki&&Si(n)}t===15?(n=il.bind(null,e),Xe===null?(Xe=[n],gs=xi(ps,_a)):Xe.push(n),n=ki):t===14?n=or(99,il.bind(null,e)):(n=Mh(t),n=or(n,Nc.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function Nc(e){if(zs=-1,Is=et=0,L&48)throw Error(k(327));var t=e.callbackNode;if(wt()&&e.callbackNode!==t)return null;var n=Jn(e,e===de?ce:0);if(n===0)return null;var r=n,s=L;L|=16;var o=_c();(de!==e||ce!==r)&&(xn(),$n(e,r));do try{Xd();break}catch(l){Oc(e,l)}while(!0);if(Pi(),Os.current=o,L=s,q!==null?r=0:(de=null,ce=0,r=re),vn&wn)$n(e,0);else if(r!==0){if(r===2&&(L|=64,e.hydrate&&(e.hydrate=!1,mi(e.containerInfo)),n=Vu(e),n!==0&&(r=kr(e,n))),r===1)throw t=_s,$n(e,0),Sn(e,n),je(e,ue()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(k(345));case 2:Dt(e);break;case 3:if(Sn(e,n),(n&62914560)===n&&(r=el+500-ue(),10<r)){if(Jn(e,0)!==0)break;if(s=e.suspendedLanes,(s&n)!==n){xe(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=wa(Dt.bind(null,e),r);break}Dt(e);break;case 4:if(Sn(e,n),(n&4186112)===n)break;for(r=e.eventTimes,s=-1;0<n;){var i=31-lt(n);o=1<<i,i=r[i],i>s&&(s=i),n&=~o}if(n=s,n=ue()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Yd(n/1960))-n,10<n){e.timeoutHandle=wa(Dt.bind(null,e),n);break}Dt(e);break;case 5:Dt(e);break;default:throw Error(k(329))}}return je(e,ue()),e.callbackNode===t?Nc.bind(null,e):null}function Sn(e,t){for(t&=~Zi,t&=~wn,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-lt(t),r=1<<n;e[n]=-1,t&=~r}}function il(e){if(L&48)throw Error(k(327));if(wt(),e===de&&e.expiredLanes&ce){var t=ce,n=kr(e,t);vn&wn&&(t=Jn(e,t),n=kr(e,t))}else t=Jn(e,0),n=kr(e,t);if(e.tag!==0&&n===2&&(L|=64,e.hydrate&&(e.hydrate=!1,mi(e.containerInfo)),t=Vu(e),t!==0&&(n=kr(e,t))),n===1)throw n=_s,$n(e,0),Sn(e,t),je(e,ue()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Dt(e),je(e,ue()),null}function Jd(){if(be!==null){var e=be;be=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,je(t,ue())})}De()}function Ac(e,t){var n=L;L|=1;try{return e(t)}finally{L=n,L===0&&(xn(),De())}}function Lc(e,t){var n=L;L&=-2,L|=8;try{return e(t)}finally{L=n,L===0&&(xn(),De())}}function Fs(e,t){K(qi,Mt),Mt|=t,vn|=t}function ll(){Mt=qi.current,U(qi)}function $n(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,jd(n)),q!==null)for(n=q.return;n!==null;){var r=n;switch(r.tag){case 1:r=r.type.childContextTypes,r!=null&&hs();break;case 3:mn(),U(ge),U(le),_i();break;case 5:Ai(r);break;case 4:mn();break;case 13:U(W);break;case 19:U(W);break;case 10:Ei(r);break;case 23:case 24:ll()}n=n.return}de=e,q=St(e.current,null),ce=Mt=vn=t,re=0,_s=null,Zi=wn=vr=0}function Oc(e,t){do{var n=q;try{if(Pi(),fr.current=As,Es){for(var r=Y.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Es=!1}if(hr=0,ne=ae=Y=null,dr=!1,Xi.current=null,n===null||n.return===null){re=1,_s=t,q=null;break}e:{var o=e,i=n.return,l=n,u=t;if(t=ce,l.flags|=2048,l.firstEffect=l.lastEffect=null,u!==null&&typeof u=="object"&&typeof u.then=="function"){var a=u;if(!(l.mode&2)){var f=l.alternate;f?(l.updateQueue=f.updateQueue,l.memoizedState=f.memoizedState,l.lanes=f.lanes):(l.updateQueue=null,l.memoizedState=null)}var p=(W.current&1)!==0,c=i;do{var m;if(m=c.tag===13){var v=c.memoizedState;if(v!==null)m=v.dehydrated!==null;else{var x=c.memoizedProps;m=x.fallback===void 0?!1:x.unstable_avoidThisFallback!==!0?!0:!p}}if(m){var h=c.updateQueue;if(h===null){var d=new Set;d.add(a),c.updateQueue=d}else h.add(a);if(!(c.mode&2)){if(c.flags|=64,l.flags|=16384,l.flags&=-2981,l.tag===1)if(l.alternate===null)l.tag=17;else{var g=dt(-1,1);g.tag=2,pt(l,g)}l.lanes|=1;break e}u=void 0,l=t;var w=o.pingCache;if(w===null?(w=o.pingCache=new Bd,u=new Set,w.set(a,u)):(u=w.get(a),u===void 0&&(u=new Set,w.set(a,u))),!u.has(l)){u.add(l);var y=tp.bind(null,o,a,l);a.then(y,y)}c.flags|=4096,c.lanes=t;break e}c=c.return}while(c!==null);u=Error((Xt(l.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
41
41
 
42
- Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}ie!==5&&(ie=2),a=$l(a,l),h=i;do{switch(h.tag){case 3:o=a,h.flags|=4096,t&=-t,h.lanes|=t;var C=df(h,o,t);Ac(h,C);break e;case 1:o=a;var $=h.type,k=h.stateNode;if(!(h.flags&64)&&(typeof $.getDerivedStateFromError=="function"||k!==null&&typeof k.componentDidCatch=="function"&&(Ye===null||!Ye.has(k)))){h.flags|=4096,t&=-t,h.lanes|=t;var j=pf(h,o,t);Ac(h,j);break e}}h=h.return}while(h!==null)}Af(n)}catch(A){t=A,ee===n&&n!==null&&(ee=n=n.return);continue}break}while(!0)}function Tf(){var e=Js.current;return Js.current=Ws,e===null?Ws:e}function Ir(e,t){var n=R;R|=16;var r=Tf();ye===e&&de===t||Ln(e,t);do try{Eg();break}catch(s){Pf(e,s)}while(!0);if(nl(),R=n,Js.current=r,ee!==null)throw Error(E(261));return ye=null,de=0,ie}function Eg(){for(;ee!==null;)jf(ee)}function Pg(){for(;ee!==null&&!lg();)jf(ee)}function jf(e){var t=Rf(e.alternate,e,Wt);e.memoizedProps=e.pendingProps,t===null?Af(e):ee=t,Tl.current=null}function Af(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&2048){if(n=yg(t),n!==null){n.flags&=2047,ee=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(n=mg(n,t,Wt),n!==null){ee=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||Wt&1073741824||!(n.mode&4)){for(var r=0,s=n.child;s!==null;)r|=s.lanes|s.childLanes,s=s.sibling;n.childLanes=r}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}if(t=t.sibling,t!==null){ee=t;return}ee=t=e}while(t!==null);ie===0&&(ie=5)}function qt(e){var t=kn();return bt(99,Tg.bind(null,e,t)),null}function Tg(e,t){do jt();while(Rr!==null);if(R&48)throw Error(E(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(E(177));e.callbackNode=null;var r=n.lanes|n.childLanes,s=r,o=e.pendingLanes&~s;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=s,e.mutableReadLanes&=s,e.entangledLanes&=s,s=e.entanglements;for(var i=e.eventTimes,l=e.expirationTimes;0<o;){var a=31-mt(o),u=1<<a;s[a]=0,i[a]=-1,l[a]=-1,o&=~u}if(at!==null&&!(r&24)&&at.has(e)&&at.delete(e),e===ye&&(ee=ye=null,de=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,r!==null){if(s=R,R|=32,Tl.current=null,Hi=ys,i=ec(),Ui(i)){if("selectionStart"in i)l={start:i.selectionStart,end:i.selectionEnd};else e:if(l=(l=i.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&u.rangeCount!==0){l=u.anchorNode,o=u.anchorOffset,a=u.focusNode,u=u.focusOffset;try{l.nodeType,a.nodeType}catch{l=null;break e}var c=0,d=-1,h=-1,y=0,m=0,v=i,f=null;t:for(;;){for(var p;v!==l||o!==0&&v.nodeType!==3||(d=c+o),v!==a||u!==0&&v.nodeType!==3||(h=c+u),v.nodeType===3&&(c+=v.nodeValue.length),(p=v.firstChild)!==null;)f=v,v=p;for(;;){if(v===i)break t;if(f===l&&++y===o&&(d=c),f===a&&++m===u&&(h=c),(p=v.nextSibling)!==null)break;v=f,f=v.parentNode}v=p}l=d===-1||h===-1?null:{start:d,end:h}}else l=null;l=l||{start:0,end:0}}else l=null;Ki={focusedElem:i,selectionRange:l},ys=!1,Dr=null,Zs=!1,N=r;do try{jg()}catch(A){if(N===null)throw Error(E(330));At(N,A),N=N.nextEffect}while(N!==null);Dr=null,N=r;do try{for(i=e;N!==null;){var g=N.flags;if(g&16&&Xn(N.stateNode,""),g&128){var S=N.alternate;if(S!==null){var w=S.ref;w!==null&&(typeof w=="function"?w(null):w.current=null)}}switch(g&1038){case 2:Sf(N),N.flags&=-3;break;case 6:Sf(N),N.flags&=-3,Pl(N.alternate,N);break;case 1024:N.flags&=-1025;break;case 1028:N.flags&=-1025,Pl(N.alternate,N);break;case 4:Pl(N.alternate,N);break;case 8:l=N,xf(i,l);var C=l.alternate;vf(l),C!==null&&vf(C)}N=N.nextEffect}}catch(A){if(N===null)throw Error(E(330));At(N,A),N=N.nextEffect}while(N!==null);if(w=Ki,S=ec(),g=w.focusedElem,i=w.selectionRange,S!==g&&g&&g.ownerDocument&&Zu(g.ownerDocument.documentElement,g)){for(i!==null&&Ui(g)&&(S=i.start,w=i.end,w===void 0&&(w=S),"selectionStart"in g?(g.selectionStart=S,g.selectionEnd=Math.min(w,g.value.length)):(w=(S=g.ownerDocument||document)&&S.defaultView||window,w.getSelection&&(w=w.getSelection(),l=g.textContent.length,C=Math.min(i.start,l),i=i.end===void 0?C:Math.min(i.end,l),!w.extend&&C>i&&(l=i,i=C,C=l),l=Gu(g,C),o=Gu(g,i),l&&o&&(w.rangeCount!==1||w.anchorNode!==l.node||w.anchorOffset!==l.offset||w.focusNode!==o.node||w.focusOffset!==o.offset)&&(S=S.createRange(),S.setStart(l.node,l.offset),w.removeAllRanges(),C>i?(w.addRange(S),w.extend(o.node,o.offset)):(S.setEnd(o.node,o.offset),w.addRange(S)))))),S=[],w=g;w=w.parentNode;)w.nodeType===1&&S.push({element:w,left:w.scrollLeft,top:w.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<S.length;g++)w=S[g],w.element.scrollLeft=w.left,w.element.scrollTop=w.top}ys=!!Hi,Ki=Hi=null,e.current=n,N=r;do try{for(g=e;N!==null;){var $=N.flags;if($&36&&xg(g,N.alternate,N),$&128){S=void 0;var k=N.ref;if(k!==null){var j=N.stateNode;switch(N.tag){case 5:S=j;break;default:S=j}typeof k=="function"?k(S):k.current=S}}N=N.nextEffect}}catch(A){if(N===null)throw Error(E(330));At(N,A),N=N.nextEffect}while(N!==null);N=null,ug(),R=s}else e.current=n;if(Et)Et=!1,Rr=e,Lr=t;else for(N=r;N!==null;)t=N.nextEffect,N.nextEffect=null,N.flags&8&&($=N,$.sibling=null,$.stateNode=null),N=t;if(r=e.pendingLanes,r===0&&(Ye=null),r===1?e===Il?_r++:(_r=0,Il=e):_r=0,n=n.stateNode,Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(Yi,n,void 0,(n.current.flags&64)===64)}catch{}if(Re(e,fe()),Ys)throw Ys=!1,e=Ll,Ll=null,e;return R&8||We(),null}function jg(){for(;N!==null;){var e=N.alternate;Zs||Dr===null||(N.flags&8?Su(N,Dr)&&(Zs=!0):N.tag===13&&$g(e,N)&&Su(N,Dr)&&(Zs=!0));var t=N.flags;t&256&&Sg(e,N),!(t&512)||Et||(Et=!0,vr(97,function(){return jt(),null})),N=N.nextEffect}}function jt(){if(Lr!==90){var e=97<Lr?97:Lr;return Lr=90,bt(e,Ng)}return!1}function Ag(e,t){_l.push(t,e),Et||(Et=!0,vr(97,function(){return jt(),null}))}function Nf(e,t){Dl.push(t,e),Et||(Et=!0,vr(97,function(){return jt(),null}))}function Ng(){if(Rr===null)return!1;var e=Rr;if(Rr=null,R&48)throw Error(E(331));var t=R;R|=32;var n=Dl;Dl=[];for(var r=0;r<n.length;r+=2){var s=n[r],o=n[r+1],i=s.destroy;if(s.destroy=void 0,typeof i=="function")try{i()}catch(a){if(o===null)throw Error(E(330));At(o,a)}}for(n=_l,_l=[],r=0;r<n.length;r+=2){s=n[r],o=n[r+1];try{var l=s.create;s.destroy=l()}catch(a){if(o===null)throw Error(E(330));At(o,a)}}for(l=e.current.firstEffect;l!==null;)e=l.nextEffect,l.nextEffect=null,l.flags&8&&(l.sibling=null,l.stateNode=null),l=e;return R=t,We(),!0}function Of(e,t,n){t=$l(n,t),t=df(e,t,1),Ct(e,t),t=Ee(),e=eo(e,1),e!==null&&(ms(e,1,t),Re(e,t))}function At(e,t){if(e.tag===3)Of(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){Of(n,e,t);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ye===null||!Ye.has(r))){e=$l(t,e);var s=pf(n,e,1);if(Ct(n,s),s=Ee(),n=eo(n,1),n!==null)ms(n,1,s),Re(n,s);else if(typeof r.componentDidCatch=="function"&&(Ye===null||!Ye.has(r)))try{r.componentDidCatch(t,e)}catch{}break}}n=n.return}}function Og(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ee(),e.pingedLanes|=e.suspendedLanes&n,ye===e&&(de&n)===n&&(ie===4||ie===3&&(de&62914560)===de&&500>fe()-Ol?Ln(e,0):Al|=n),Re(e,t)}function Rg(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(ut===0&&(ut=An),t=pn(62914560&~ut),t===0&&(t=4194304)):t=kn()===99?1:2:t=1),n=Ee(),e=eo(e,t),e!==null&&(ms(e,t,n),Re(e,n))}var Rf;Rf=function(e,t,n){var r=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||we.current)Fe=!0;else if(n&r)Fe=!!(e.flags&16384);else{switch(Fe=!1,t.tag){case 3:nf(t),ul();break;case 5:Fc(t);break;case 1:Se(t.type)&&As(t);break;case 4:il(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var s=t.type._context;K(Rs,s._currentValue),s._currentValue=r;break;case 13:if(t.memoizedState!==null)return n&t.child.childLanes?rf(e,t,n):(K(W,W.current&1),t=lt(e,t,n),t!==null?t.sibling:null);K(W,W.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&64){if(r)return uf(e,t,n);t.flags|=64}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),K(W,W.current),r)break;return null;case 23:case 24:return t.lanes=0,yl(e,t,n)}return lt(e,t,n)}else Fe=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,s=Cn(t,ce.current),Pn(t,n),s=hl(null,t,r,e,s,n),t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Se(r)){var o=!0;As(t)}else o=!1;t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,sl(t);var i=r.getDerivedStateFromProps;typeof i=="function"&&Ds(t,r,i,e),s.updater=Is,t.stateNode=s,s._reactInternals=t,ol(t,r,e,n),t=wl(null,t,r,!0,o,n)}else t.tag=0,$e(null,t,s,n),t=t.child;return t;case 16:s=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=s._init,s=o(s._payload),t.type=s,o=t.tag=_g(s),e=Ie(s,e),o){case 0:t=vl(null,t,s,e,n);break e;case 1:t=tf(null,t,s,e,n);break e;case 11:t=Xc(null,t,s,e,n);break e;case 14:t=Gc(null,t,s,Ie(s.type,e),r,n);break e}throw Error(E(306,s,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Ie(r,s),vl(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Ie(r,s),tf(e,t,r,s,n);case 3:if(nf(t),r=t.updateQueue,e===null||r===null)throw Error(E(282));if(r=t.pendingProps,s=t.memoizedState,s=s!==null?s.element:null,jc(e,t),wr(t,r,null,n),r=t.memoizedState.element,r===s)ul(),t=lt(e,t,n);else{if(s=t.stateNode,(o=s.hydrate)&&(kt=wn(t.stateNode.containerInfo.firstChild),it=t,o=Je=!0),o){if(e=s.mutableSourceEagerHydrationData,e!=null)for(s=0;s<e.length;s+=2)o=e[s],o._workInProgressVersionPrimary=e[s+1],jn.push(o);for(n=Ic(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else $e(e,t,r,n),ul();t=t.child}return t;case 5:return Fc(t),e===null&&al(t),r=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,i=s.children,Wi(r,s)?i=null:o!==null&&Wi(r,o)&&(t.flags|=16),ef(e,t),$e(e,t,i,n),t.child;case 6:return e===null&&al(t),null;case 13:return rf(e,t,n);case 4:return il(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ms(t,null,r,n):$e(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Ie(r,s),Xc(e,t,r,s,n);case 7:return $e(e,t,t.pendingProps,n),t.child;case 8:return $e(e,t,t.pendingProps.children,n),t.child;case 12:return $e(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value;var l=t.type._context;if(K(Rs,l._currentValue),l._currentValue=o,i!==null)if(l=i.value,o=Ae(l,o)?0:(typeof r._calculateChangedBits=="function"?r._calculateChangedBits(l,o):1073741823)|0,o===0){if(i.children===s.children&&!we.current){t=lt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var a=l.dependencies;if(a!==null){i=l.child;for(var u=a.firstContext;u!==null;){if(u.context===r&&u.observedBits&o){l.tag===1&&(u=$t(-1,n&-n),u.tag=2,Ct(l,u)),l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),Tc(l.return,n),a.lanes|=n;break}u=u.next}}else i=l.tag===10&&l.type===t.type?null:l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}$e(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,o=t.pendingProps,r=o.children,Pn(t,n),s=Ne(s,o.unstable_observedBits),r=r(s),t.flags|=1,$e(e,t,r,n),t.child;case 14:return s=t.type,o=Ie(s,t.pendingProps),o=Ie(s.type,o),Gc(e,t,s,o,r,n);case 15:return Zc(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Ie(r,s),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Se(r)?(e=!0,As(t)):e=!1,Pn(t,n),Lc(t,r,s),ol(t,r,s,n),wl(null,t,r,!0,e,n);case 19:return uf(e,t,n);case 23:return yl(e,t,n);case 24:return yl(e,t,n)}throw Error(E(156,t.tag))};function Lg(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Le(e,t,n,r){return new Lg(e,t,n,r)}function Ml(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _g(e){if(typeof e=="function")return Ml(e)?1:0;if(e!=null){if(e=e.$$typeof,e===rs)return 11;if(e===os)return 14}return 2}function Nt(e,t){var n=e.alternate;return n===null?(n=Le(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,r,s,o){var i=2;if(r=e,typeof e=="function")Ml(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case ft:return _n(n.children,s,o,t);case Ga:i=8,s|=16;break;case Qo:i=8,s|=1;break;case qn:return e=Le(12,n,t,s|8),e.elementType=qn,e.type=qn,e.lanes=o,e;case Jn:return e=Le(13,n,t,s),e.type=Jn,e.elementType=Jn,e.lanes=o,e;case ss:return e=Le(19,n,t,s),e.elementType=ss,e.lanes=o,e;case ti:return Ul(n,s,o,t);case ni:return e=Le(24,n,t,s),e.elementType=ni,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Yo:i=10;break e;case Xo:i=9;break e;case rs:i=11;break e;case os:i=14;break e;case Go:i=16,r=null;break e;case Zo:i=22;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=Le(i,n,t,s),t.elementType=e,t.type=r,t.lanes=o,t}function _n(e,t,n,r){return e=Le(7,e,r,t),e.lanes=n,e}function Ul(e,t,n,r){return e=Le(23,e,r,t),e.elementType=ti,e.lanes=n,e}function Bl(e,t,n){return e=Le(6,e,null,t),e.lanes=n,e}function bl(e,t,n){return t=Le(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Dg(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=ji(0),this.expirationTimes=ji(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ji(0),this.mutableSourceEagerHydrationData=null}function Ig(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:It,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ro(e,t,n,r){var s=t.current,o=Ee(),i=Pt(s);e:if(n){n=n._reactInternals;t:{if(zt(n)!==n||n.tag!==1)throw Error(E(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(Se(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(l!==null);throw Error(E(171))}if(n.tag===1){var a=n.type;if(Se(a)){n=yc(n,a,l);break e}}n=l}else n=St;return t.context===null?t.context=n:t.pendingContext=n,t=$t(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),Ct(s,t),Tt(s,i,o),i}function Vl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Lf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Hl(e,t){Lf(e,t),(e=e.alternate)&&Lf(e,t)}function Fg(){return null}function Kl(e,t,n){var r=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new Dg(e,t,n!=null&&n.hydrate===!0),t=Le(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,sl(t),e[Sn]=n.current,ic(e.nodeType===8?e.parentNode:e),r)for(e=0;e<r.length;e++){t=r[e];var s=t._getVersion;s=s(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,s]:n.mutableSourceEagerHydrationData.push(t,s)}this._internalRoot=n}Kl.prototype.render=function(e){ro(e,this._internalRoot,null,null)},Kl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;ro(null,e,null,function(){t[Sn]=null})};function Fr(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function zg(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 Kl(e,0,t?{hydrate:!0}:void 0)}function so(e,t,n,r,s){var o=n._reactRootContainer;if(o){var i=o._internalRoot;if(typeof s=="function"){var l=s;s=function(){var u=Vl(i);l.call(u)}}ro(t,i,e,s)}else{if(o=n._reactRootContainer=zg(n,r),i=o._internalRoot,typeof s=="function"){var a=s;s=function(){var u=Vl(i);a.call(u)}}Ef(function(){ro(t,i,e,s)})}return Vl(i)}xu=function(e){if(e.tag===13){var t=Ee();Tt(e,4,t),Hl(e,4)}},$i=function(e){if(e.tag===13){var t=Ee();Tt(e,67108864,t),Hl(e,67108864)}},$u=function(e){if(e.tag===13){var t=Ee(),n=Pt(e);Tt(e,n,t),Hl(e,n)}},Cu=function(e,t){return t()},gi=function(e,t,n){switch(t){case"input":if(ii(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=Ts(r);if(!s)throw Error(E(90));tu(r),ii(r,s)}}}break;case"textarea":iu(e,n);break;case"select":t=n.value,t!=null&&un(e,!!n.multiple,t,!1)}},mi=kf,gu=function(e,t,n,r,s){var o=R;R|=4;try{return bt(98,e.bind(null,t,n,r,s))}finally{R=o,R===0&&(On(),We())}},yi=function(){!(R&49)&&(kg(),jt())},mu=function(e,t){var n=R;R|=2;try{return e(t)}finally{R=n,R===0&&(On(),We())}};function _f(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Fr(t))throw Error(E(200));return Ig(e,t,null,n)}var Mg={Events:[yr,xn,Ts,du,pu,jt,{current:!1}]},zr={findFiberByHostInstance:Mt,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},Ug={bundleType:zr.bundleType,version:zr.version,rendererPackageName:zr.rendererPackageName,rendererConfig:zr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Dt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=wu(e),e===null?null:e.stateNode},findFiberByHostInstance:zr.findFiberByHostInstance||Fg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var oo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oo.isDisabled&&oo.supportsFiber)try{Yi=oo.inject(Ug),Bt=oo}catch{}}je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Mg,je.createPortal=_f,je.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(E(188)):Error(E(268,Object.keys(e)));return e=wu(t),e=e===null?null:e.stateNode,e},je.flushSync=function(e,t){var n=R;if(n&48)return e(t);R|=1;try{if(e)return bt(99,e.bind(null,t))}finally{R=n,We()}},je.hydrate=function(e,t,n){if(!Fr(t))throw Error(E(200));return so(null,e,t,!0,n)},je.render=function(e,t,n){if(!Fr(t))throw Error(E(200));return so(null,e,t,!1,n)},je.unmountComponentAtNode=function(e){if(!Fr(e))throw Error(E(40));return e._reactRootContainer?(Ef(function(){so(null,null,e,!1,function(){e._reactRootContainer=null,e[Sn]=null})}),!0):!1},je.unstable_batchedUpdates=kf,je.unstable_createPortal=function(e,t){return _f(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},je.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Fr(n))throw Error(E(200));if(e==null||e._reactInternals===void 0)throw Error(E(38));return so(e,t,n,!1,r)},je.version="17.0.2";function Df(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Df)}catch(e){console.error(e)}}Df(),Ka.exports=je;var Wl=Ka.exports;const Bg=ve(Wl),pe=ct.createContext({posts:[],authors:[],tags:[],action:"",lastPage:"",page:"",pageData:{},dispatch:(e,t)=>{},searchIndex:null,indexComplete:!1,searchValue:"",t:()=>{},dir:"ltr"});class bg extends I.Component{constructor(){super(...arguments);zo(this,"handleLoad",()=>{this.setupFrameBaseStyle()})}componentDidMount(){this.node.addEventListener("load",this.handleLoad)}componentWillUnmout(){this.node.removeEventListener("load",this.handleLoad)}setupFrameBaseStyle(){this.node.contentDocument&&(this.iframeHtml=this.node.contentDocument.documentElement,this.iframeHtml.setAttribute("dir",this.props.searchdir),this.iframeHead=this.node.contentDocument.head,this.iframeRoot=this.node.contentDocument.body,this.forceUpdate())}render(){const{children:n,head:r,title:s="",style:o={},...i}=this.props;return P.jsxs("iframe",{srcDoc:"<!DOCTYPE html>",...i,ref:l=>this.node=l,title:s,style:o,frameBorder:"0",children:[this.iframeHead&&Wl.createPortal(r,this.iframeHead),this.iframeRoot&&Wl.createPortal(n,this.iframeRoot)]})}}const Vg=e=>I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:16,width:16,...e},I.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"})),Hg=e=>I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:16,width:16,...e},I.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"})),Kg=e=>I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:16,width:16,viewBox:"0 0 16 16",...e},I.createElement("title",null,"circle anim"),I.createElement("g",{fill:"#40413F",className:"nc-icon-wrapper"},I.createElement("g",{className:"nc-loop-circle-16-icon-f"},I.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"}),I.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"})),I.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)}}"))),If=10,Wg=10,qg=()=>({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 Ff extends ct.Component{componentDidMount(){this.sendContainerHeightChangeEvent()}sendContainerHeightChangeEvent(){}componentDidUpdate(){this.sendContainerHeightChangeEvent()}handlePopupClose(t){t.preventDefault(),t.target===t.currentTarget&&this.context.dispatch("update",{showPopup:!1})}render(){return P.jsx(fm,{})}}zo(Ff,"contextType",pe);function Jg(){const{searchValue:e,dispatch:t,inputRef:n,t:r}=I.useContext(pe),s=I.useRef(null);I.useEffect(()=>{setTimeout(()=>{var a;(a=n==null?void 0:n.current)==null||a.focus()},150);let i=a=>{a.key==="Escape"&&t("update",{showPopup:!1})};const l=s==null?void 0:s.current;return l==null||l.ownerDocument.removeEventListener("keyup",i),l==null||l.ownerDocument.addEventListener("keyup",i),()=>{l==null||l.ownerDocument.removeEventListener("keyup",i)}},[t,n]);let o="z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-t-lg shadow";return e||(o="z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-lg"),P.jsxs("div",{className:o,ref:s,children:[P.jsx("div",{className:"flex items-center justify-center w-4 h-4 me-3",children:P.jsx(Qg,{})}),P.jsx("input",{ref:n,value:e||"",onChange:i=>{t("update",{searchValue:i.target.value})},onKeyDown:i=>{(i.key==="ArrowUp"||i.key==="ArrowDown")&&i.preventDefault()},className:"grow -my-5 py-5 -ms-3 ps-3 text-[1.65rem] focus-visible:outline-none placeholder:text-gray-400 outline-none truncate",placeholder:r("Search posts, tags and authors")}),P.jsx(Yg,{}),P.jsx(Xg,{})]})}function Qg(){const{searchValue:e="",dispatch:t}=I.useContext(pe);return e?P.jsx("button",{alt:"Clear",className:"-mb-[1px]",onClick:()=>{t("update",{searchValue:""})},children:P.jsx(Hg,{className:"text-neutral-900 hover:text-neutral-500 h-[1.1rem] w-[1.1rem]"})}):P.jsx(Vg,{className:"text-neutral-900",alt:"Search"})}function Yg(){const{indexComplete:e,searchValue:t}=I.useContext(pe);return!e&&t?P.jsx(Kg,{className:"shrink-0"}):null}function Xg(){const{dispatch:e,t}=I.useContext(pe);return P.jsx("button",{className:"ms-3 text-sm text-neutral-500 sm:hidden",alt:"Cancel",onClick:()=>{e("update",{showPopup:!1})},children:t("Cancel")})}function Gg({tag:e,selectedResult:t,setSelectedResult:n}){const{name:r,url:s,id:o}=e;let i="flex items-center py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer";return o===t&&(i+=" bg-neutral-100"),P.jsxs("div",{className:i,onClick:()=>{s&&(window.location.href=s)},onMouseEnter:()=>{n(o)},children:[P.jsx("p",{className:"me-2 text-sm font-bold text-neutral-400",children:"#"}),P.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-900 truncate",children:r})]})}function Zg({tags:e,selectedResult:t,setSelectedResult:n}){const{t:r}=I.useContext(pe);if(!(e!=null&&e.length))return null;const s=e.map(o=>P.jsx(Gg,{tag:o,selectedResult:t,setSelectedResult:n},o.name));return P.jsxs("div",{className:"border-t border-gray-200 py-3 px-4 sm:px-7",children:[P.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:r("Tags")}),s]})}function em({post:e,selectedResult:t,setSelectedResult:n}){const{searchValue:r}=I.useContext(pe),{title:s,excerpt:o,url:i,id:l}=e;let a="py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer";return l===t&&(a+=" bg-neutral-100"),P.jsxs("div",{className:a,onClick:()=>{i&&(window.location.href=i)},onMouseEnter:()=>{n(l)},children:[P.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-800",children:P.jsx(Mf,{text:s,highlight:r,isExcerpt:!1})}),P.jsx("p",{className:"text-neutral-400 leading-normal text-sm mt-0 mb-0 truncate",children:P.jsx(Mf,{text:o,highlight:r,isExcerpt:!0})})]})}function tm({text:e,highlight:t}){let n="";t==null||t.split(" ").forEach((i,l)=>{const a=String(i).replace(/\W/g,"\\&");l>0?n+="|^"+a+"|\\s"+a:n="^"+a+"|\\s"+a});const r=new RegExp(`${n}`,"ig");let s=e==null?void 0:e.matchAll(r);const o=[];for(const i of s)o.push({startIdx:i==null?void 0:i.index,endIdx:((i==null?void 0:i.index)||0)+((i==null?void 0:i[0].length)||0)});return o}function zf({text:e,highlight:t}){const n=tm({text:e,highlight:t}),r=[];let s=0;return n.forEach(o=>{s===o.startIdx?(r.push({text:e==null?void 0:e.slice(o.startIdx,o.endIdx),type:"highlight"}),s=o.endIdx):(r.push({text:e==null?void 0:e.slice(s,o.startIdx),type:"normal"}),r.push({text:e==null?void 0:e.slice(o.startIdx,o.endIdx),type:"highlight"}),s=o.endIdx)}),s<(e==null?void 0:e.length)&&r.push({text:e==null?void 0:e.slice(s,e.length),type:"normal"}),{parts:r,highlightIndexes:n}}function Mf({text:e="",highlight:t="",isExcerpt:n}){var i;e=e||"",t=t||"";let{parts:r,highlightIndexes:s}=zf({text:e,highlight:t});if(n&&(s!=null&&s[0])){const l=(i=s==null?void 0:s[0])==null?void 0:i.startIdx;if(l>50){e="..."+(e==null?void 0:e.slice(l-20));const{parts:a}=zf({text:e,highlight:t});r=a}}const o=r.map((l,a)=>(l==null?void 0:l.type)==="highlight"?P.jsx(ct.Fragment,{children:P.jsx(nm,{word:l.text,isExcerpt:n})},a):P.jsx(ct.Fragment,{children:l.text},a));return P.jsx(P.Fragment,{children:o})}function nm({word:e,isExcerpt:t}){return t?P.jsx(P.Fragment,{children:P.jsx("span",{className:"font-bold",children:e})}):P.jsx(P.Fragment,{children:P.jsx("span",{className:"font-bold text-neutral-900",children:e})})}function rm({posts:e,maxPosts:t,setMaxPosts:n}){const{t:r}=I.useContext(pe);return!(e!=null&&e.length)||t>=(e==null?void 0:e.length)?null:P.jsx("button",{className:"w-full my-3 p-[1rem] border border-neutral-200 hover:border-neutral-300 text-neutral-800 hover:text-black font-semibold rounded transition duration-150 ease hover:ease",onClick:()=>{const s=t+Wg;n(s)},children:r("Show more results")})}function sm({posts:e,selectedResult:t,setSelectedResult:n}){const{t:r}=I.useContext(pe),[s,o]=I.useState(If),[i,l]=I.useState([]);if(I.useEffect(()=>{o(If)},[e]),I.useEffect(()=>{l(e==null?void 0:e.slice(0,s+1))},[s,e]),!(e!=null&&e.length))return null;function a(){return i.map(u=>P.jsx(em,{post:u,selectedResult:t,setSelectedResult:n},u.title))}return P.jsxs("div",{className:"border-t border-neutral-200 py-3 px-4 sm:px-7",children:[P.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:r("Posts")}),P.jsx(a,{}),P.jsx(rm,{setMaxPosts:o,maxPosts:s,posts:e})]})}function om({author:e,selectedResult:t,setSelectedResult:n}){const{name:r,profile_image:s,url:o,id:i}=e;let l="py-[1rem] -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer flex items-center";return i===t&&(l+=" bg-neutral-100"),P.jsxs("div",{className:l,onClick:()=>{o&&(window.location.href=o)},onMouseEnter:()=>{n(i)},children:[P.jsx(im,{name:r,avatar:s}),P.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-900 truncate",children:r})]})}function im({name:e,avatar:t}){const n=t==null?void 0:t.length,r=e.charAt(0);return n?P.jsx("img",{className:"rounded-full bg-neutral-300 w-7 h-7 me-2 object-cover",src:t,alt:e}):P.jsx("div",{className:"rounded-full bg-neutral-200 w-7 h-7 me-2 flex items-center justify-center font-bold",children:P.jsx("span",{className:"text-neutral-400",children:r})})}function lm({authors:e,selectedResult:t,setSelectedResult:n}){const{t:r}=I.useContext(pe);if(!(e!=null&&e.length))return null;const s=e.map(o=>P.jsx(om,{author:o,selectedResult:t,setSelectedResult:n},o.name));return P.jsxs("div",{className:"border-t border-neutral-200 py-3 px-4 sm:px-7",children:[P.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:r("Authors")}),s]})}function am(){const{searchValue:e="",searchIndex:t,indexComplete:n}=I.useContext(pe);let r=null,s=[],o=[],i=[];return n&&e&&(r=t==null?void 0:t.search(e),o=(r==null?void 0:r.posts)||[],i=(r==null?void 0:r.authors)||[],s=(r==null?void 0:r.tags)||[]),i=i.filter(a=>{const u=/\/404\/$/;return!(a!=null&&a.url&&u.test(a==null?void 0:a.url))}),s=s.filter(a=>{const u=/\/404\/$/;return!(a!=null&&a.url&&u.test(a==null?void 0:a.url))}),(o==null?void 0:o.length)||(i==null?void 0:i.length)||(s==null?void 0:s.length)?P.jsx(um,{posts:o,authors:i,tags:s}):e?P.jsx(cm,{}):null}function um({posts:e,authors:t,tags:n}){var u;const{searchValue:r}=I.useContext(pe),s=I.useMemo(()=>[...t,...n,...e],[t,n,e]),o=((u=s==null?void 0:s[0])==null?void 0:u.id)||null,[i,l]=I.useState(o),a=I.useRef(null);return I.useEffect(()=>{var c;l(((c=s==null?void 0:s[0])==null?void 0:c.id)||null)},[s]),I.useEffect(()=>{let c=h=>{const y=s.findIndex(f=>f.id===i);let m=s[y+1],v=s[y-1];if(h.key==="ArrowUp"&&v?l(v==null?void 0:v.id):h.key==="ArrowDown"&&m&&l(m==null?void 0:m.id),h.key==="Enter"){const f=s.find(p=>p.id===i);window.location.href=f==null?void 0:f.url}};const d=a==null?void 0:a.current;return d==null||d.ownerDocument.removeEventListener("keyup",c),d==null||d.ownerDocument.addEventListener("keyup",c),()=>{var h;(h=d==null?void 0:d.ownerDocument)==null||h.removeEventListener("keyup",c)}},[s,i]),r?P.jsxs("div",{className:"overflow-y-auto max-h-[calc(100vh-172px)] sm:max-h-[70vh] -mt-[1px]",ref:a,children:[P.jsx(lm,{authors:t,selectedResult:i,setSelectedResult:l}),P.jsx(Zg,{tags:n,selectedResult:i,setSelectedResult:l}),P.jsx(sm,{posts:e,selectedResult:i,setSelectedResult:l})]}):null}function cm(){const{t:e}=I.useContext(pe);return P.jsx("div",{className:"py-4 px-7",children:P.jsx("p",{className:"text-[1.65rem] text-neutral-400 leading-normal",children:e("No matches found")})})}function fm(){const{dispatch:e}=I.useContext(pe);return P.jsx(P.Fragment,{children:P.jsx("div",{className:"h-screen w-screen pt-20 antialiased z-50 relative ghost-display",onClick:t=>{t.preventDefault(),t.target===t.currentTarget&&e("update",{showPopup:!1})},children:P.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:[P.jsx(Jg,{}),P.jsx(am,{})]})})})}class Uf extends ct.Component{constructor(t){super(t),this.state={height:null}}onHeightChange(t){this.setState({height:t})}handlePopupClose(t){t.preventDefault(),t.target===t.currentTarget&&this.context.dispatch("update",{showPopup:!1})}renderFrameStyles(){const t=`
42
+ Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}re!==5&&(re=2),u=Wi(u,l),c=i;do{switch(c.tag){case 3:o=u,c.flags|=4096,t&=-t,c.lanes|=t;var $=wc(c,o,t);Ia(c,$);break e;case 1:o=u;var S=c.type,C=c.stateNode;if(!(c.flags&64)&&(typeof S.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(Be===null||!Be.has(C)))){c.flags|=4096,t&=-t,c.lanes|=t;var T=xc(c,o,t);Ia(c,T);break e}}c=c.return}while(c!==null)}zc(n)}catch(N){t=N,q===n&&n!==null&&(q=n=n.return);continue}break}while(!0)}function _c(){var e=Os.current;return Os.current=As,e===null?As:e}function kr(e,t){var n=L;L|=16;var r=_c();de===e&&ce===t||$n(e,t);do try{Gd();break}catch(s){Oc(e,s)}while(!0);if(Pi(),L=n,Os.current=r,q!==null)throw Error(k(261));return de=null,ce=0,re}function Gd(){for(;q!==null;)Rc(q)}function Xd(){for(;q!==null&&!Ld();)Rc(q)}function Rc(e){var t=Dc(e.alternate,e,Mt);e.memoizedProps=e.pendingProps,t===null?zc(e):q=t,Xi.current=null}function zc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&2048){if(n=Vd(t),n!==null){n.flags&=2047,q=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(n=Ud(n,t,Mt),n!==null){q=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||Mt&1073741824||!(n.mode&4)){for(var r=0,s=n.child;s!==null;)r|=s.lanes|s.childLanes,s=s.sibling;n.childLanes=r}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}if(t=t.sibling,t!==null){q=t;return}q=t=e}while(t!==null);re===0&&(re=5)}function Dt(e){var t=dn();return _t(99,qd.bind(null,e,t)),null}function qd(e,t){do wt();while(wr!==null);if(L&48)throw Error(k(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(k(177));e.callbackNode=null;var r=n.lanes|n.childLanes,s=r,o=e.pendingLanes&~s;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=s,e.mutableReadLanes&=s,e.entangledLanes&=s,s=e.entanglements;for(var i=e.eventTimes,l=e.expirationTimes;0<o;){var u=31-lt(o),a=1<<u;s[u]=0,i[u]=-1,l[u]=-1,o&=~a}if(be!==null&&!(r&24)&&be.has(e)&&be.delete(e),e===de&&(q=de=null,ce=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,r!==null){if(s=L,L|=32,Xi.current=null,di=ts,i=la(),ai(i)){if("selectionStart"in i)l={start:i.selectionStart,end:i.selectionEnd};else e:if(l=(l=i.ownerDocument)&&l.defaultView||window,(a=l.getSelection&&l.getSelection())&&a.rangeCount!==0){l=a.anchorNode,o=a.anchorOffset,u=a.focusNode,a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var f=0,p=-1,c=-1,m=0,v=0,x=i,h=null;t:for(;;){for(var d;x!==l||o!==0&&x.nodeType!==3||(p=f+o),x!==u||a!==0&&x.nodeType!==3||(c=f+a),x.nodeType===3&&(f+=x.nodeValue.length),(d=x.firstChild)!==null;)h=x,x=d;for(;;){if(x===i)break t;if(h===l&&++m===o&&(p=f),h===u&&++v===a&&(c=f),(d=x.nextSibling)!==null)break;x=h,h=x.parentNode}x=d}l=p===-1||c===-1?null:{start:p,end:c}}else l=null;l=l||{start:0,end:0}}else l=null;pi={focusedElem:i,selectionRange:l},ts=!1,$r=null,Ms=!1,j=r;do try{Zd()}catch(N){if(j===null)throw Error(k(330));xt(j,N),j=j.nextEffect}while(j!==null);$r=null,j=r;do try{for(i=e;j!==null;){var g=j.flags;if(g&16&&Dn(j.stateNode,""),g&128){var w=j.alternate;if(w!==null){var y=w.ref;y!==null&&(typeof y=="function"?y(null):y.current=null)}}switch(g&1038){case 2:Ec(j),j.flags&=-3;break;case 6:Ec(j),j.flags&=-3,Gi(j.alternate,j);break;case 1024:j.flags&=-1025;break;case 1028:j.flags&=-1025,Gi(j.alternate,j);break;case 4:Gi(j.alternate,j);break;case 8:l=j,Tc(i,l);var $=l.alternate;Cc(l),$!==null&&Cc($)}j=j.nextEffect}}catch(N){if(j===null)throw Error(k(330));xt(j,N),j=j.nextEffect}while(j!==null);if(y=pi,w=la(),g=y.focusedElem,i=y.selectionRange,w!==g&&g&&g.ownerDocument&&ia(g.ownerDocument.documentElement,g)){for(i!==null&&ai(g)&&(w=i.start,y=i.end,y===void 0&&(y=w),"selectionStart"in g?(g.selectionStart=w,g.selectionEnd=Math.min(y,g.value.length)):(y=(w=g.ownerDocument||document)&&w.defaultView||window,y.getSelection&&(y=y.getSelection(),l=g.textContent.length,$=Math.min(i.start,l),i=i.end===void 0?$:Math.min(i.end,l),!y.extend&&$>i&&(l=i,i=$,$=l),l=oa(g,$),o=oa(g,i),l&&o&&(y.rangeCount!==1||y.anchorNode!==l.node||y.anchorOffset!==l.offset||y.focusNode!==o.node||y.focusOffset!==o.offset)&&(w=w.createRange(),w.setStart(l.node,l.offset),y.removeAllRanges(),$>i?(y.addRange(w),y.extend(o.node,o.offset)):(w.setEnd(o.node,o.offset),y.addRange(w)))))),w=[],y=g;y=y.parentNode;)y.nodeType===1&&w.push({element:y,left:y.scrollLeft,top:y.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<w.length;g++)y=w[g],y.element.scrollLeft=y.left,y.element.scrollTop=y.top}ts=!!di,pi=di=null,e.current=n,j=r;do try{for(g=e;j!==null;){var S=j.flags;if(S&36&&Wd(g,j.alternate,j),S&128){w=void 0;var C=j.ref;if(C!==null){var T=j.stateNode;switch(j.tag){case 5:w=T;break;default:w=T}typeof C=="function"?C(w):C.current=w}}j=j.nextEffect}}catch(N){if(j===null)throw Error(k(330));xt(j,N),j=j.nextEffect}while(j!==null);j=null,_d(),L=s}else e.current=n;if(mt)mt=!1,wr=e,xr=t;else for(j=r;j!==null;)t=j.nextEffect,j.nextEffect=null,j.flags&8&&(S=j,S.sibling=null,S.stateNode=null),j=t;if(r=e.pendingLanes,r===0&&(Be=null),r===1?e===ol?Sr++:(Sr=0,ol=e):Sr=0,n=n.stateNode,Ot&&typeof Ot.onCommitFiberRoot=="function")try{Ot.onCommitFiberRoot(wi,n,void 0,(n.current.flags&64)===64)}catch{}if(je(e,ue()),Rs)throw Rs=!1,e=nl,nl=null,e;return L&8||De(),null}function Zd(){for(;j!==null;){var e=j.alternate;Ms||$r===null||(j.flags&8?Tu(j,$r)&&(Ms=!0):j.tag===13&&Qd(e,j)&&Tu(j,$r)&&(Ms=!0));var t=j.flags;t&256&&Kd(e,j),!(t&512)||mt||(mt=!0,or(97,function(){return wt(),null})),j=j.nextEffect}}function wt(){if(xr!==90){var e=97<xr?97:xr;return xr=90,_t(e,ep)}return!1}function bd(e,t){rl.push(t,e),mt||(mt=!0,or(97,function(){return wt(),null}))}function Ic(e,t){sl.push(t,e),mt||(mt=!0,or(97,function(){return wt(),null}))}function ep(){if(wr===null)return!1;var e=wr;if(wr=null,L&48)throw Error(k(331));var t=L;L|=32;var n=sl;sl=[];for(var r=0;r<n.length;r+=2){var s=n[r],o=n[r+1],i=s.destroy;if(s.destroy=void 0,typeof i=="function")try{i()}catch(u){if(o===null)throw Error(k(330));xt(o,u)}}for(n=rl,rl=[],r=0;r<n.length;r+=2){s=n[r],o=n[r+1];try{var l=s.create;s.destroy=l()}catch(u){if(o===null)throw Error(k(330));xt(o,u)}}for(l=e.current.firstEffect;l!==null;)e=l.nextEffect,l.nextEffect=null,l.flags&8&&(l.sibling=null,l.stateNode=null),l=e;return L=t,De(),!0}function Mc(e,t,n){t=Wi(n,t),t=wc(e,t,1),pt(e,t),t=xe(),e=Ds(e,1),e!==null&&(es(e,1,t),je(e,t))}function xt(e,t){if(e.tag===3)Mc(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){Mc(n,e,t);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Be===null||!Be.has(r))){e=Wi(t,e);var s=xc(n,e,1);if(pt(n,s),s=xe(),n=Ds(n,1),n!==null)es(n,1,s),je(n,s);else if(typeof r.componentDidCatch=="function"&&(Be===null||!Be.has(r)))try{r.componentDidCatch(t,e)}catch{}break}}n=n.return}}function tp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=xe(),e.pingedLanes|=e.suspendedLanes&n,de===e&&(ce&n)===n&&(re===4||re===3&&(ce&62914560)===ce&&500>ue()-el?$n(e,0):Zi|=n),je(e,t)}function np(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(et===0&&(et=vn),t=nn(62914560&~et),t===0&&(t=4194304)):t=dn()===99?1:2:t=1),n=xe(),e=Ds(e,t),e!==null&&(es(e,t,n),je(e,n))}var Dc;Dc=function(e,t,n){var r=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||ge.current)Oe=!0;else if(n&r)Oe=!!(e.flags&16384);else{switch(Oe=!1,t.tag){case 3:ac(t),Oi();break;case 5:Ka(t);break;case 1:me(t.type)&&ds(t);break;case 4:Ni(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var s=t.type._context;K(ms,s._currentValue),s._currentValue=r;break;case 13:if(t.memoizedState!==null)return n&t.child.childLanes?cc(e,t,n):(K(W,W.current&1),t=Ze(e,t,n),t!==null?t.sibling:null);K(W,W.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&64){if(r)return gc(e,t,n);t.flags|=64}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),K(W,W.current),r)break;return null;case 23:case 24:return t.lanes=0,Ui(e,t,n)}return Ze(e,t,n)}else Oe=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,s=hn(t,le.current),gn(t,n),s=zi(null,t,r,e,s,n),t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,me(r)){var o=!0;ds(t)}else o=!1;t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Ti(t);var i=r.getDerivedStateFromProps;typeof i=="function"&&ws(t,r,i,e),s.updater=xs,t.stateNode=s,s._reactInternals=t,ji(t,r,e,n),t=Bi(null,t,r,!0,o,n)}else t.tag=0,ve(null,t,s,n),t=t.child;return t;case 16:s=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=s._init,s=o(s._payload),t.type=s,o=t.tag=sp(s),e=Le(s,e),o){case 0:t=Vi(null,t,s,e,n);break e;case 1:t=uc(null,t,s,e,n);break e;case 11:t=sc(null,t,s,e,n);break e;case 14:t=oc(null,t,s,Le(s.type,e),r,n);break e}throw Error(k(306,s,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Le(r,s),Vi(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Le(r,s),uc(e,t,r,s,n);case 3:if(ac(t),r=t.updateQueue,e===null||r===null)throw Error(k(282));if(r=t.pendingProps,s=t.memoizedState,s=s!==null?s.element:null,za(e,t),ir(t,r,null,n),r=t.memoizedState.element,r===s)Oi(),t=Ze(e,t,n);else{if(s=t.stateNode,(o=s.hydrate)&&(gt=un(t.stateNode.containerInfo.firstChild),qe=t,o=Ue=!0),o){if(e=s.mutableSourceEagerHydrationData,e!=null)for(s=0;s<e.length;s+=2)o=e[s],o._workInProgressVersionPrimary=e[s+1],yn.push(o);for(n=Ha(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else ve(e,t,r,n),Oi();t=t.child}return t;case 5:return Ka(t),e===null&&Li(t),r=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,i=s.children,gi(r,s)?i=null:o!==null&&gi(r,o)&&(t.flags|=16),lc(e,t),ve(e,t,i,n),t.child;case 6:return e===null&&Li(t),null;case 13:return cc(e,t,n);case 4:return Ni(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ks(t,null,r,n):ve(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Le(r,s),sc(e,t,r,s,n);case 7:return ve(e,t,t.pendingProps,n),t.child;case 8:return ve(e,t,t.pendingProps.children,n),t.child;case 12:return ve(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value;var l=t.type._context;if(K(ms,l._currentValue),l._currentValue=o,i!==null)if(l=i.value,o=Pe(l,o)?0:(typeof r._calculateChangedBits=="function"?r._calculateChangedBits(l,o):1073741823)|0,o===0){if(i.children===s.children&&!ge.current){t=Ze(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var u=l.dependencies;if(u!==null){i=l.child;for(var a=u.firstContext;a!==null;){if(a.context===r&&a.observedBits&o){l.tag===1&&(a=dt(-1,n&-n),a.tag=2,pt(l,a)),l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Ra(l.return,n),u.lanes|=n;break}a=a.next}}else i=l.tag===10&&l.type===t.type?null:l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}ve(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,o=t.pendingProps,r=o.children,gn(t,n),s=Ee(s,o.unstable_observedBits),r=r(s),t.flags|=1,ve(e,t,r,n),t.child;case 14:return s=t.type,o=Le(s,t.pendingProps),o=Le(s.type,o),oc(e,t,s,o,r,n);case 15:return ic(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Le(r,s),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,me(r)?(e=!0,ds(t)):e=!1,gn(t,n),Ua(t,r,s),ji(t,r,s,n),Bi(null,t,r,!0,e,n);case 19:return gc(e,t,n);case 23:return Ui(e,t,n);case 24:return Ui(e,t,n)}throw Error(k(156,t.tag))};function rp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Ne(e,t,n,r){return new rp(e,t,n,r)}function ul(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sp(e){if(typeof e=="function")return ul(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Vr)return 11;if(e===Hr)return 14}return 2}function St(e,t){var n=e.alternate;return n===null?(n=Ne(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 Us(e,t,n,r,s,o){var i=2;if(r=e,typeof e=="function")ul(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case nt:return kn(n.children,s,o,t);case ou:i=8,s|=16;break;case vo:i=8,s|=1;break;case Rn:return e=Ne(12,n,t,s|8),e.elementType=Rn,e.type=Rn,e.lanes=o,e;case zn:return e=Ne(13,n,t,s),e.type=zn,e.elementType=zn,e.lanes=o,e;case Br:return e=Ne(19,n,t,s),e.elementType=Br,e.lanes=o,e;case Co:return al(n,s,o,t);case Po:return e=Ne(24,n,t,s),e.elementType=Po,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case wo:i=10;break e;case xo:i=9;break e;case Vr:i=11;break e;case Hr:i=14;break e;case So:i=16,r=null;break e;case $o:i=22;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=Ne(i,n,t,s),t.elementType=e,t.type=r,t.lanes=o,t}function kn(e,t,n,r){return e=Ne(7,e,r,t),e.lanes=n,e}function al(e,t,n,r){return e=Ne(23,e,r,t),e.elementType=Co,e.lanes=n,e}function cl(e,t,n){return e=Ne(6,e,null,t),e.lanes=n,e}function fl(e,t,n){return t=Ne(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function op(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=qo(0),this.expirationTimes=qo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qo(0),this.mutableSourceEagerHydrationData=null}function ip(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Tt,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Vs(e,t,n,r){var s=t.current,o=xe(),i=yt(s);e:if(n){n=n._reactInternals;t:{if(Nt(n)!==n||n.tag!==1)throw Error(k(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(me(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(l!==null);throw Error(k(171))}if(n.tag===1){var u=n.type;if(me(u)){n=Ca(n,u,l);break e}}n=l}else n=ft;return t.context===null?t.context=n:t.pendingContext=n,t=dt(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),pt(s,t),vt(s,i,o),i}function hl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Fc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function dl(e,t){Fc(e,t),(e=e.alternate)&&Fc(e,t)}function lp(){return null}function pl(e,t,n){var r=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new op(e,t,n!=null&&n.hydrate===!0),t=Ne(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,Ti(t),e[an]=n.current,da(e.nodeType===8?e.parentNode:e),r)for(e=0;e<r.length;e++){t=r[e];var s=t._getVersion;s=s(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,s]:n.mutableSourceEagerHydrationData.push(t,s)}this._internalRoot=n}pl.prototype.render=function(e){Vs(e,this._internalRoot,null,null)},pl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Vs(null,e,null,function(){t[an]=null})};function Cr(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function up(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 pl(e,0,t?{hydrate:!0}:void 0)}function Bs(e,t,n,r,s){var o=n._reactRootContainer;if(o){var i=o._internalRoot;if(typeof s=="function"){var l=s;s=function(){var a=hl(i);l.call(a)}}Vs(t,i,e,s)}else{if(o=n._reactRootContainer=up(n,r),i=o._internalRoot,typeof s=="function"){var u=s;s=function(){var a=hl(i);u.call(a)}}Lc(function(){Vs(t,i,e,s)})}return hl(i)}ju=function(e){if(e.tag===13){var t=xe();vt(e,4,t),dl(e,4)}},Wo=function(e){if(e.tag===13){var t=xe();vt(e,67108864,t),dl(e,67108864)}},Nu=function(e){if(e.tag===13){var t=xe(),n=yt(e);vt(e,n,t),dl(e,n)}},Au=function(e,t){return t()},Do=function(e,t,n){switch(t){case"input":if(No(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=fs(r);if(!s)throw Error(k(90));uu(r),No(r,s)}}}break;case"textarea":du(e,n);break;case"select":t=n.value,t!=null&&qt(e,!!n.multiple,t,!1)}},Fo=Ac,$u=function(e,t,n,r,s){var o=L;L|=4;try{return _t(98,e.bind(null,t,n,r,s))}finally{L=o,L===0&&(xn(),De())}},Uo=function(){!(L&49)&&(Jd(),wt())},ku=function(e,t){var n=L;L|=2;try{return e(t)}finally{L=n,L===0&&(xn(),De())}};function Uc(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Cr(t))throw Error(k(200));return ip(e,t,null,n)}var ap={Events:[sr,cn,fs,xu,Su,wt,{current:!1}]},Pr={findFiberByHostInstance:At,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},cp={bundleType:Pr.bundleType,version:Pr.version,rendererPackageName:Pr.rendererPackageName,rendererConfig:Pr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Et.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Eu(e),e===null?null:e.stateNode},findFiberByHostInstance:Pr.findFiberByHostInstance||lp,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Hs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hs.isDisabled&&Hs.supportsFiber)try{wi=Hs.inject(cp),Ot=Hs}catch{}}Ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ap,Ce.createPortal=Uc,Ce.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(k(188)):Error(k(268,Object.keys(e)));return e=Eu(t),e=e===null?null:e.stateNode,e},Ce.flushSync=function(e,t){var n=L;if(n&48)return e(t);L|=1;try{if(e)return _t(99,e.bind(null,t))}finally{L=n,De()}},Ce.hydrate=function(e,t,n){if(!Cr(t))throw Error(k(200));return Bs(null,e,t,!0,n)},Ce.render=function(e,t,n){if(!Cr(t))throw Error(k(200));return Bs(null,e,t,!1,n)},Ce.unmountComponentAtNode=function(e){if(!Cr(e))throw Error(k(40));return e._reactRootContainer?(Lc(function(){Bs(null,null,e,!1,function(){e._reactRootContainer=null,e[an]=null})}),!0):!1},Ce.unstable_batchedUpdates=Ac,Ce.unstable_createPortal=function(e,t){return Uc(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},Ce.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Cr(n))throw Error(k(200));if(e==null||e._reactInternals===void 0)throw Error(k(38));return Bs(e,t,n,!1,r)},Ce.version="17.0.2";function Vc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Vc)}catch(e){console.error(e)}}Vc(),Zl.exports=Ce;var gl=Zl.exports;const fp=pe(gl),fe=tt.createContext({posts:[],authors:[],tags:[],action:"",lastPage:"",page:"",pageData:{},dispatch:(e,t)=>{},searchIndex:null,indexComplete:!1,searchValue:"",t:()=>{},dir:"ltr"});class hp extends R.Component{constructor(){super(...arguments);io(this,"handleLoad",()=>{this.setupFrameBaseStyle()})}componentDidMount(){this.node.addEventListener("load",this.handleLoad)}componentWillUnmout(){this.node.removeEventListener("load",this.handleLoad)}setupFrameBaseStyle(){this.node.contentDocument&&(this.iframeHtml=this.node.contentDocument.documentElement,this.iframeHtml.setAttribute("dir",this.props.searchdir),this.iframeHead=this.node.contentDocument.head,this.iframeRoot=this.node.contentDocument.body,this.forceUpdate())}render(){const{children:n,head:r,title:s="",style:o={},...i}=this.props;return P.jsxs("iframe",{srcDoc:"<!DOCTYPE html>",...i,ref:l=>this.node=l,title:s,style:o,frameBorder:"0",children:[this.iframeHead&&gl.createPortal(r,this.iframeHead),this.iframeRoot&&gl.createPortal(n,this.iframeRoot)]})}}const dp=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:16,width:16,...e},R.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"})),pp=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:16,width:16,...e},R.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"})),gp=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:16,width:16,viewBox:"0 0 16 16",...e},R.createElement("title",null,"circle anim"),R.createElement("g",{fill:"#40413F",className:"nc-icon-wrapper"},R.createElement("g",{className:"nc-loop-circle-16-icon-f"},R.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"}),R.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"})),R.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)}}"))),Bc=10,mp=10,yp=()=>({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 Hc extends tt.Component{componentDidMount(){this.sendContainerHeightChangeEvent()}sendContainerHeightChangeEvent(){}componentDidUpdate(){this.sendContainerHeightChangeEvent()}handlePopupClose(t){t.preventDefault(),t.target===t.currentTarget&&this.context.dispatch("update",{showPopup:!1})}render(){return P.jsx(zp,{})}}io(Hc,"contextType",fe);function vp(){const{searchValue:e,dispatch:t,inputRef:n,t:r}=R.useContext(fe),s=R.useRef(null);R.useEffect(()=>{setTimeout(()=>{var u;(u=n==null?void 0:n.current)==null||u.focus()},150);let i=u=>{u.key==="Escape"&&t("update",{showPopup:!1})};const l=s==null?void 0:s.current;return l==null||l.ownerDocument.removeEventListener("keyup",i),l==null||l.ownerDocument.addEventListener("keyup",i),()=>{l==null||l.ownerDocument.removeEventListener("keyup",i)}},[t,n]);let o="z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-t-lg shadow";return e||(o="z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-lg"),P.jsxs("div",{className:o,ref:s,children:[P.jsx("div",{className:"flex items-center justify-center w-4 h-4 me-3",children:P.jsx(wp,{})}),P.jsx("input",{ref:n,value:e||"",onChange:i=>{t("update",{searchValue:i.target.value})},onKeyDown:i=>{(i.key==="ArrowUp"||i.key==="ArrowDown")&&i.preventDefault()},className:"grow -my-5 py-5 -ms-3 ps-3 text-[1.65rem] focus-visible:outline-none placeholder:text-gray-400 outline-none truncate",placeholder:r("Search posts, tags and authors")}),P.jsx(xp,{}),P.jsx(Sp,{})]})}function wp(){const{searchValue:e="",dispatch:t}=R.useContext(fe);return e?P.jsx("button",{alt:"Clear",className:"-mb-[1px]",onClick:()=>{t("update",{searchValue:""})},children:P.jsx(pp,{className:"text-neutral-900 hover:text-neutral-500 h-[1.1rem] w-[1.1rem]"})}):P.jsx(dp,{className:"text-neutral-900",alt:"Search"})}function xp(){const{indexComplete:e,searchValue:t}=R.useContext(fe);return!e&&t?P.jsx(gp,{className:"shrink-0"}):null}function Sp(){const{dispatch:e,t}=R.useContext(fe);return P.jsx("button",{className:"ms-3 text-sm text-neutral-500 sm:hidden",alt:"Cancel",onClick:()=>{e("update",{showPopup:!1})},children:t("Cancel")})}function $p({tag:e,selectedResult:t,setSelectedResult:n}){const{name:r,url:s,id:o}=e;let i="flex items-center py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer";return o===t&&(i+=" bg-neutral-100"),P.jsxs("div",{className:i,onClick:()=>{s&&(window.location.href=s)},onMouseEnter:()=>{n(o)},children:[P.jsx("p",{className:"me-2 text-sm font-bold text-neutral-400",children:"#"}),P.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-900 truncate",children:r})]})}function kp({tags:e,selectedResult:t,setSelectedResult:n}){const{t:r}=R.useContext(fe);if(!(e!=null&&e.length))return null;const s=e.map(o=>P.jsx($p,{tag:o,selectedResult:t,setSelectedResult:n},o.name));return P.jsxs("div",{className:"border-t border-gray-200 py-3 px-4 sm:px-7",children:[P.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:r("Tags")}),s]})}function Cp({post:e,selectedResult:t,setSelectedResult:n}){const{searchValue:r}=R.useContext(fe),{title:s,excerpt:o,url:i,id:l}=e;let u="py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer";return l===t&&(u+=" bg-neutral-100"),P.jsxs("div",{className:u,onClick:()=>{i&&(window.location.href=i)},onMouseEnter:()=>{n(l)},children:[P.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-800",children:P.jsx(Wc,{text:s,highlight:r,isExcerpt:!1})}),P.jsx("p",{className:"text-neutral-400 leading-normal text-sm mt-0 mb-0 truncate",children:P.jsx(Wc,{text:o,highlight:r,isExcerpt:!0})})]})}function Pp({text:e,highlight:t}){let n="";t==null||t.split(" ").forEach((i,l)=>{const u=String(i).replace(/\W/g,"\\&");l>0?n+="|^"+u+"|\\s"+u:n="^"+u+"|\\s"+u});const r=new RegExp(`${n}`,"ig");let s=e==null?void 0:e.matchAll(r);const o=[];for(const i of s)o.push({startIdx:i==null?void 0:i.index,endIdx:((i==null?void 0:i.index)||0)+((i==null?void 0:i[0].length)||0)});return o}function Kc({text:e,highlight:t}){const n=Pp({text:e,highlight:t}),r=[];let s=0;return n.forEach(o=>{s===o.startIdx?(r.push({text:e==null?void 0:e.slice(o.startIdx,o.endIdx),type:"highlight"}),s=o.endIdx):(r.push({text:e==null?void 0:e.slice(s,o.startIdx),type:"normal"}),r.push({text:e==null?void 0:e.slice(o.startIdx,o.endIdx),type:"highlight"}),s=o.endIdx)}),s<(e==null?void 0:e.length)&&r.push({text:e==null?void 0:e.slice(s,e.length),type:"normal"}),{parts:r,highlightIndexes:n}}function Wc({text:e="",highlight:t="",isExcerpt:n}){var i;e=e||"",t=t||"";let{parts:r,highlightIndexes:s}=Kc({text:e,highlight:t});if(n&&(s!=null&&s[0])){const l=(i=s==null?void 0:s[0])==null?void 0:i.startIdx;if(l>50){e="..."+(e==null?void 0:e.slice(l-20));const{parts:u}=Kc({text:e,highlight:t});r=u}}const o=r.map((l,u)=>(l==null?void 0:l.type)==="highlight"?P.jsx(tt.Fragment,{children:P.jsx(Ep,{word:l.text,isExcerpt:n})},u):P.jsx(tt.Fragment,{children:l.text},u));return P.jsx(P.Fragment,{children:o})}function Ep({word:e,isExcerpt:t}){return t?P.jsx(P.Fragment,{children:P.jsx("span",{className:"font-bold",children:e})}):P.jsx(P.Fragment,{children:P.jsx("span",{className:"font-bold text-neutral-900",children:e})})}function Tp({posts:e,maxPosts:t,setMaxPosts:n}){const{t:r}=R.useContext(fe);return!(e!=null&&e.length)||t>=(e==null?void 0:e.length)?null:P.jsx("button",{className:"w-full my-3 p-[1rem] border border-neutral-200 hover:border-neutral-300 text-neutral-800 hover:text-black font-semibold rounded transition duration-150 ease hover:ease",onClick:()=>{const s=t+mp;n(s)},children:r("Show more results")})}function jp({posts:e,selectedResult:t,setSelectedResult:n}){const{t:r}=R.useContext(fe),[s,o]=R.useState(Bc),[i,l]=R.useState([]);if(R.useEffect(()=>{o(Bc)},[e]),R.useEffect(()=>{l(e==null?void 0:e.slice(0,s+1))},[s,e]),!(e!=null&&e.length))return null;function u(){return i.map(a=>P.jsx(Cp,{post:a,selectedResult:t,setSelectedResult:n},a.title))}return P.jsxs("div",{className:"border-t border-neutral-200 py-3 px-4 sm:px-7",children:[P.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:r("Posts")}),P.jsx(u,{}),P.jsx(Tp,{setMaxPosts:o,maxPosts:s,posts:e})]})}function Np({author:e,selectedResult:t,setSelectedResult:n}){const{name:r,profile_image:s,url:o,id:i}=e;let l="py-[1rem] -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer flex items-center";return i===t&&(l+=" bg-neutral-100"),P.jsxs("div",{className:l,onClick:()=>{o&&(window.location.href=o)},onMouseEnter:()=>{n(i)},children:[P.jsx(Ap,{name:r,avatar:s}),P.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-900 truncate",children:r})]})}function Ap({name:e,avatar:t}){const n=t==null?void 0:t.length,r=e.charAt(0);return n?P.jsx("img",{className:"rounded-full bg-neutral-300 w-7 h-7 me-2 object-cover",src:t,alt:e}):P.jsx("div",{className:"rounded-full bg-neutral-200 w-7 h-7 me-2 flex items-center justify-center font-bold",children:P.jsx("span",{className:"text-neutral-400",children:r})})}function Lp({authors:e,selectedResult:t,setSelectedResult:n}){const{t:r}=R.useContext(fe);if(!(e!=null&&e.length))return null;const s=e.map(o=>P.jsx(Np,{author:o,selectedResult:t,setSelectedResult:n},o.name));return P.jsxs("div",{className:"border-t border-neutral-200 py-3 px-4 sm:px-7",children:[P.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:r("Authors")}),s]})}function Op(){const{searchValue:e="",searchIndex:t,indexComplete:n}=R.useContext(fe);let r=null,s=[],o=[],i=[];return n&&e&&(r=t==null?void 0:t.search(e),o=(r==null?void 0:r.posts)||[],i=(r==null?void 0:r.authors)||[],s=(r==null?void 0:r.tags)||[]),i=i.filter(u=>{const a=/\/404\/$/;return!(u!=null&&u.url&&a.test(u==null?void 0:u.url))}),s=s.filter(u=>{const a=/\/404\/$/;return!(u!=null&&u.url&&a.test(u==null?void 0:u.url))}),(o==null?void 0:o.length)||(i==null?void 0:i.length)||(s==null?void 0:s.length)?P.jsx(_p,{posts:o,authors:i,tags:s}):e?P.jsx(Rp,{}):null}function _p({posts:e,authors:t,tags:n}){var a;const{searchValue:r}=R.useContext(fe),s=R.useMemo(()=>[...t,...n,...e],[t,n,e]),o=((a=s==null?void 0:s[0])==null?void 0:a.id)||null,[i,l]=R.useState(o),u=R.useRef(null);return R.useEffect(()=>{var f;l(((f=s==null?void 0:s[0])==null?void 0:f.id)||null)},[s]),R.useEffect(()=>{let f=c=>{const m=s.findIndex(h=>h.id===i);let v=s[m+1],x=s[m-1];if(c.key==="ArrowUp"&&x?l(x==null?void 0:x.id):c.key==="ArrowDown"&&v&&l(v==null?void 0:v.id),c.key==="Enter"){const h=s.find(d=>d.id===i);window.location.href=h==null?void 0:h.url}};const p=u==null?void 0:u.current;return p==null||p.ownerDocument.removeEventListener("keyup",f),p==null||p.ownerDocument.addEventListener("keyup",f),()=>{var c;(c=p==null?void 0:p.ownerDocument)==null||c.removeEventListener("keyup",f)}},[s,i]),r?P.jsxs("div",{className:"overflow-y-auto max-h-[calc(100vh-172px)] sm:max-h-[70vh] -mt-[1px]",ref:u,children:[P.jsx(Lp,{authors:t,selectedResult:i,setSelectedResult:l}),P.jsx(kp,{tags:n,selectedResult:i,setSelectedResult:l}),P.jsx(jp,{posts:e,selectedResult:i,setSelectedResult:l})]}):null}function Rp(){const{t:e}=R.useContext(fe);return P.jsx("div",{className:"py-4 px-7",children:P.jsx("p",{className:"text-[1.65rem] text-neutral-400 leading-normal",children:e("No matches found")})})}function zp(){const{dispatch:e}=R.useContext(fe);return P.jsx(P.Fragment,{children:P.jsx("div",{className:"h-screen w-screen pt-20 antialiased z-50 relative ghost-display",onClick:t=>{t.preventDefault(),t.target===t.currentTarget&&e("update",{showPopup:!1})},children:P.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:[P.jsx(vp,{}),P.jsx(Op,{})]})})})}class Qc extends tt.Component{constructor(t){super(t),this.state={height:null}}onHeightChange(t){this.setState({height:t})}handlePopupClose(t){t.preventDefault(),t.target===t.currentTarget&&this.context.dispatch("update",{showPopup:!1})}renderFrameStyles(){const t=`
43
43
  :root {
44
44
  --brandcolor: ${this.context.brandColor||""}
45
45
  }
@@ -47,10 +47,5 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
47
47
  .ghost-display {
48
48
  display: none;
49
49
  }
50
- `,n=this.context.stylesUrl;return n?P.jsxs(P.Fragment,{children:[P.jsx("link",{rel:"stylesheet",href:n}),P.jsx("style",{dangerouslySetInnerHTML:{__html:t}}),P.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]}):P.jsxs(P.Fragment,{children:[P.jsx("style",{dangerouslySetInnerHTML:{__html:t}}),P.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]})}renderFrameContainer(){const t=qg(),n={...t.frame.common};return P.jsx("div",{style:t.modalContainer,className:"gh-root-frame",children:P.jsxs(bg,{style:n,title:"portal-popup",head:this.renderFrameStyles(),searchdir:this.context.dir,children:[P.jsx("div",{onClick:r=>this.handlePopupClose(r),className:"absolute top-0 bottom-0 left-0 right-0 block backdrop-blur-[2px] animate-fadein z-0 bg-gradient-to-br from-[rgba(0,0,0,0.2)] to-[rgba(0,0,0,0.1)]"}),P.jsx(Ff,{})]})})}render(){const{showPopup:t}=this.context;return t?this.renderFrameContainer():null}}zo(Uf,"contextType",pe);var O;function le(e,t,n){const r=typeof n,s=typeof e;if(r!=="undefined"){if(s!=="undefined"){if(n){if(s==="function"&&r===s)return function(l){return e(n(l))};if(t=e.constructor,t===n.constructor){if(t===Array)return n.concat(e);if(t===Map){var o=new Map(n);for(var i of e)o.set(i[0],i[1]);return o}if(t===Set){i=new Set(n);for(o of e.values())i.add(o);return i}}}return e}return n}return s==="undefined"?t:e}function X(){return Object.create(null)}function ze(e){return typeof e=="string"}function Mr(e){return typeof e=="object"}function hm(e){const t=[];for(const n of e.keys())t.push(n);return t}function Ur(e,t){if(ze(t))e=e[t];else for(let n=0;e&&n<t.length;n++)e=e[t[n]];return e}function dm(e){let t=0;for(let n=0,r;n<e.length;n++)(r=e[n])&&t<r.length&&(t=r.length);return t}const pm=/[^\p{L}\p{N}]+/u,gm=/(\d{3})/g,mm=/(\D)(\d{3})/g,ym=/(\d{3})(\D)/g,Bf=/[\u0300-\u036f]/g;function Br(e={}){if(!this||this.constructor!==Br)return new Br(...arguments);if(arguments.length)for(e=0;e<arguments.length;e++)this.assign(arguments[e]);else this.assign(e)}O=Br.prototype,O.assign=function(e){this.normalize=le(e.normalize,!0,this.normalize);let t=e.include,n=t||e.exclude||e.split,r;if(n||n===""){if(typeof n=="object"&&n.constructor!==RegExp){let s="";r=!t,t||(s+="\\p{Z}"),n.letter&&(s+="\\p{L}"),n.number&&(s+="\\p{N}",r=!!t),n.symbol&&(s+="\\p{S}"),n.punctuation&&(s+="\\p{P}"),n.control&&(s+="\\p{C}"),(n=n.char)&&(s+=typeof n=="object"?n.join(""):n);try{this.split=new RegExp("["+(t?"^":"")+s+"]+","u")}catch{this.split=/\s+/}}else this.split=n,r=n===!1||2>"a1a".split(n).length;this.numeric=le(e.numeric,r)}else{try{this.split=le(this.split,pm)}catch{this.split=/\s+/}this.numeric=le(e.numeric,le(this.numeric,!0))}if(this.prepare=le(e.prepare,null,this.prepare),this.finalize=le(e.finalize,null,this.finalize),n=e.filter,this.filter=typeof n=="function"?n:le(n&&new Set(n),null,this.filter),this.dedupe=le(e.dedupe,!0,this.dedupe),this.matcher=le((n=e.matcher)&&new Map(n),null,this.matcher),this.mapper=le((n=e.mapper)&&new Map(n),null,this.mapper),this.stemmer=le((n=e.stemmer)&&new Map(n),null,this.stemmer),this.replacer=le(e.replacer,null,this.replacer),this.minlength=le(e.minlength,1,this.minlength),this.maxlength=le(e.maxlength,1024,this.maxlength),this.rtl=le(e.rtl,!1,this.rtl),(this.cache=n=le(e.cache,!0,this.cache))&&(this.H=null,this.S=typeof n=="number"?n:2e5,this.B=new Map,this.G=new Map,this.L=this.K=128),this.h="",this.M=null,this.A="",this.N=null,this.matcher)for(const s of this.matcher.keys())this.h+=(this.h?"|":"")+s;if(this.stemmer)for(const s of this.stemmer.keys())this.A+=(this.A?"|":"")+s;return this},O.addStemmer=function(e,t){return this.stemmer||(this.stemmer=new Map),this.stemmer.set(e,t),this.A+=(this.A?"|":"")+e,this.N=null,this.cache&&Jt(this),this},O.addFilter=function(e){return typeof e=="function"?this.filter=e:(this.filter||(this.filter=new Set),this.filter.add(e)),this.cache&&Jt(this),this},O.addMapper=function(e,t){return typeof e=="object"?this.addReplacer(e,t):1<e.length?this.addMatcher(e,t):(this.mapper||(this.mapper=new Map),this.mapper.set(e,t),this.cache&&Jt(this),this)},O.addMatcher=function(e,t){return typeof e=="object"?this.addReplacer(e,t):2>e.length&&(this.dedupe||this.mapper)?this.addMapper(e,t):(this.matcher||(this.matcher=new Map),this.matcher.set(e,t),this.h+=(this.h?"|":"")+e,this.M=null,this.cache&&Jt(this),this)},O.addReplacer=function(e,t){return typeof e=="string"?this.addMatcher(e,t):(this.replacer||(this.replacer=[]),this.replacer.push(e,t),this.cache&&Jt(this),this)},O.encode=function(e){if(this.cache&&e.length<=this.K)if(this.H){if(this.B.has(e))return this.B.get(e)}else this.H=setTimeout(Jt,50,this);this.normalize&&(typeof this.normalize=="function"?e=this.normalize(e):e=Bf?e.normalize("NFKD").replace(Bf,"").toLowerCase():e.toLowerCase()),this.prepare&&(e=this.prepare(e)),this.numeric&&3<e.length&&(e=e.replace(mm,"$1 $2").replace(ym,"$1 $2").replace(gm,"$1 "));const t=!(this.dedupe||this.mapper||this.filter||this.matcher||this.stemmer||this.replacer);let n=[],r=this.split||this.split===""?e.split(this.split):e;for(let o=0,i,l;o<r.length;o++)if((i=l=r[o])&&!(i.length<this.minlength||i.length>this.maxlength)){if(t)n.push(i);else if(!this.filter||(typeof this.filter=="function"?this.filter(i):!this.filter.has(i))){if(this.cache&&i.length<=this.L)if(this.H){var s=this.G.get(i);if(s||s===""){s&&n.push(s);continue}}else this.H=setTimeout(Jt,50,this);if(this.stemmer&&2<i.length&&(this.N||(this.N=new RegExp("(?!^)("+this.A+")$")),i=i.replace(this.N,a=>this.stemmer.get(a))),i&&(this.mapper||this.dedupe&&1<i.length)){s="";for(let a=0,u="",c,d;a<i.length;a++)c=i.charAt(a),c===u&&this.dedupe||((d=this.mapper&&this.mapper.get(c))||d===""?d===u&&this.dedupe||!(u=d)||(s+=d):s+=u=c);i=s}if(this.matcher&&1<i.length&&(this.M||(this.M=new RegExp("("+this.h+")","g")),i=i.replace(this.M,a=>this.matcher.get(a))),i&&this.replacer)for(s=0;i&&s<this.replacer.length;s+=2)i=i.replace(this.replacer[s],this.replacer[s+1]);this.cache&&l.length<=this.L&&(this.G.set(l,i),this.G.size>this.S&&(this.G.clear(),this.L=this.L/1.1|0)),i&&n.push(i)}}return this.finalize&&(n=this.finalize(n)||n),this.cache&&e.length<=this.K&&(this.B.set(e,n),this.B.size>this.S&&(this.B.clear(),this.K=this.K/1.1|0)),n};function Jt(e){e.H=null,e.B.clear(),e.G.clear()}let Dn,br;async function vm(e){e=e.data;var t=e.task;const n=e.id;let r=e.args;switch(t){case"init":br=e.options||{},(t=e.factory)?(Function("return "+t)()(self),Dn=new self.FlexSearch.Index(br),delete self.FlexSearch):Dn=new Ge(br),postMessage({id:n});break;default:let s;t==="export"&&(r[1]?(r[0]=br.export,r[2]=0,r[3]=1):r=null),t==="import"?r[0]&&(e=await br.import.call(Dn,r[0]),Dn.import(r[0],e)):(s=r&&Dn[t].apply(Dn,r))&&s.then&&(s=await s),postMessage(t==="search"?{id:n,msg:s}:{id:n})}}function ql(e){Vr.call(e,"add"),Vr.call(e,"append"),Vr.call(e,"search"),Vr.call(e,"update"),Vr.call(e,"remove")}let Jl,bf,io;function wm(){Jl=io=0}function Vr(e){this[e+"Async"]=function(){const t=arguments;var n=t[t.length-1];let r;if(typeof n=="function"&&(r=n,delete t[t.length-1]),Jl?io||(io=Date.now()-bf>=this.priority*this.priority*3):(Jl=setTimeout(wm,0),bf=Date.now()),io){const o=this;return new Promise(i=>{setTimeout(function(){i(o[e+"Async"].apply(o,t))},0)})}const s=this[e].apply(this,t);return n=s.then?s:new Promise(o=>o(s)),r&&n.then(r),n}}let In=0;function Hr(e={}){function t(i){function l(a){a=a.data||a;const u=a.id,c=u&&s.h[u];c&&(c(a.msg),delete s.h[u])}if(this.worker=i,this.h=X(),this.worker)return r?this.worker.on("message",l):this.worker.onmessage=l,e.config?new Promise(function(a){s.h[++In]=function(){a(s),1e9<In&&(In=0)},s.worker.postMessage({id:In,task:"init",factory:n,options:e})}):(this.worker.postMessage({task:"init",factory:n,options:e}),this.priority=e.priority||4,this)}if(!this||this.constructor!==Hr)return new Hr(e);let n=typeof self<"u"?self._factory:typeof window<"u"?window._factory:null;n&&(n=n.toString());const r=typeof window>"u",s=this,o=Sm(n,r,e.worker);return o.then?o.then(function(i){return t.call(s,i)}):t.call(this,o)}Ot("add"),Ot("append"),Ot("search"),Ot("update"),Ot("remove"),Ot("clear"),Ot("export"),Ot("import"),ql(Hr.prototype);function Ot(e){Hr.prototype[e]=function(){const t=this,n=[].slice.call(arguments);var r=n[n.length-1];let s;return typeof r=="function"&&(s=r,n.pop()),r=new Promise(function(o){e==="export"&&typeof n[0]=="function"&&(n[0]=null),t.h[++In]=o,t.worker.postMessage({task:e,id:In,args:n})}),s?(r.then(s),this):r}}function Sm(e,t,n){return t?typeof module<"u"?new(require("worker_threads")).Worker(__dirname+"/worker/node.js"):Promise.resolve().then(()=>nv).then(function(r){return new r.Worker("undefined/node/node.mjs")}):e?new window.Worker(URL.createObjectURL(new Blob(["onmessage="+vm.toString()],{type:"text/javascript"}))):new window.Worker(typeof n=="string"?n:(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Y&&Y.tagName.toUpperCase()==="SCRIPT"&&Y.src||new URL("sodo-search.min.js",document.baseURI).href).replace("/worker.js","/worker/worker.js").replace("flexsearch.bundle.module.min.js","module/worker/worker.js"),{type:"module"})}function Ql(e,t=0){let n=[],r=[];t&&(t=25e4/t*5e3|0);for(const s of e.entries())r.push(s),r.length===t&&(n.push(r),r=[]);return r.length&&n.push(r),n}function Yl(e,t){t||(t=new Map);for(let n=0,r;n<e.length;n++)r=e[n],t.set(r[0],r[1]);return t}function Vf(e,t=0){let n=[],r=[];t&&(t=25e4/t*1e3|0);for(const s of e.entries())r.push([s[0],Ql(s[1])[0]]),r.length===t&&(n.push(r),r=[]);return r.length&&n.push(r),n}function Hf(e,t){t||(t=new Map);for(let n=0,r,s;n<e.length;n++)r=e[n],s=t.get(r[0]),t.set(r[0],Yl(r[1],s));return t}function Kf(e){let t=[],n=[];for(const r of e.keys())n.push(r),n.length===25e4&&(t.push(n),n=[]);return n.length&&t.push(n),t}function Wf(e,t){t||(t=new Set);for(let n=0;n<e.length;n++)t.add(e[n]);return t}function lo(e,t,n,r,s,o,i=0){const l=r&&r.constructor===Array;var a=l?r.shift():r;if(!a)return this.export(e,t,s,o+1);if((a=e((t?t+".":"")+(i+1)+"."+n,JSON.stringify(a)))&&a.then){const u=this;return a.then(function(){return lo.call(u,e,t,n,l?r:null,s,o,i+1)})}return lo.call(this,e,t,n,l?r:null,s,o,i+1)}function qf(e,t){let n="";for(const r of e.entries()){e=r[0];const s=r[1];let o="";for(let i=0,l;i<s.length;i++){l=s[i]||[""];let a="";for(let u=0;u<l.length;u++)a+=(a?",":"")+(t==="string"?'"'+l[u]+'"':l[u]);a="["+a+"]",o+=(o?",":"")+a}o='["'+e+'",['+o+"]]",n+=(n?",":"")+o}return n}function Jf(e,t,n,r){let s=[];for(let o=0,i;o<e.index.length;o++)if(i=e.index[o],t>=i.length)t-=i.length;else{t=i[r?"splice":"slice"](t,n);const l=t.length;if(l&&(s=s.length?s.concat(t):t,n-=l,r&&(e.length-=l),!n))break;t=0}return s}function Qt(e){if(!this||this.constructor!==Qt)return new Qt(e);this.index=e?[e]:[],this.length=e?e.length:0;const t=this;return new Proxy([],{get(n,r){if(r==="length")return t.length;if(r==="push")return function(s){t.index[t.index.length-1].push(s),t.length++};if(r==="pop")return function(){if(t.length)return t.length--,t.index[t.index.length-1].pop()};if(r==="indexOf")return function(s){let o=0;for(let i=0,l,a;i<t.index.length;i++){if(l=t.index[i],a=l.indexOf(s),0<=a)return o+a;o+=l.length}return-1};if(r==="includes")return function(s){for(let o=0;o<t.index.length;o++)if(t.index[o].includes(s))return!0;return!1};if(r==="slice")return function(s,o){return Jf(t,s||0,o||t.length,!1)};if(r==="splice")return function(s,o){return Jf(t,s||0,o||t.length,!0)};if(r==="constructor")return Array;if(typeof r!="symbol")return(n=t.index[r/2**31|0])&&n[r]},set(n,r,s){return n=r/2**31|0,(t.index[n]||(t.index[n]=[]))[r]=s,t.length++,!0}})}Qt.prototype.clear=function(){this.index.length=0},Qt.prototype.destroy=function(){this.proxy=this.index=null},Qt.prototype.push=function(){};function Xe(e=8){if(!this||this.constructor!==Xe)return new Xe(e);this.index=X(),this.h=[],this.size=0,32<e?(this.B=Yf,this.A=BigInt(e)):(this.B=Qf,this.A=e)}Xe.prototype.get=function(e){const t=this.index[this.B(e)];return t&&t.get(e)},Xe.prototype.set=function(e,t){var n=this.B(e);let r=this.index[n];r?(n=r.size,r.set(e,t),(n-=r.size)&&this.size++):(this.index[n]=r=new Map([[e,t]]),this.h.push(r),this.size++)};function Me(e=8){if(!this||this.constructor!==Me)return new Me(e);this.index=X(),this.h=[],this.size=0,32<e?(this.B=Yf,this.A=BigInt(e)):(this.B=Qf,this.A=e)}Me.prototype.add=function(e){var t=this.B(e);let n=this.index[t];n?(t=n.size,n.add(e),(t-=n.size)&&this.size++):(this.index[t]=n=new Set([e]),this.h.push(n),this.size++)},O=Xe.prototype,O.has=Me.prototype.has=function(e){const t=this.index[this.B(e)];return t&&t.has(e)},O.delete=Me.prototype.delete=function(e){const t=this.index[this.B(e)];t&&t.delete(e)&&this.size--},O.clear=Me.prototype.clear=function(){this.index=X(),this.h=[],this.size=0},O.values=Me.prototype.values=function*(){for(let e=0;e<this.h.length;e++)for(let t of this.h[e].values())yield t},O.keys=Me.prototype.keys=function*(){for(let e=0;e<this.h.length;e++)for(let t of this.h[e].keys())yield t},O.entries=Me.prototype.entries=function*(){for(let e=0;e<this.h.length;e++)for(let t of this.h[e].entries())yield t};function Qf(e){let t=2**this.A-1;if(typeof e=="number")return e&t;let n=0,r=this.A+1;for(let s=0;s<e.length;s++)n=(n*r^e.charCodeAt(s))&t;return this.A===32?n+2**31:n}function Yf(e){let t=BigInt(2)**this.A-BigInt(1);var n=typeof e;if(n==="bigint")return e&t;if(n==="number")return BigInt(e)&t;n=BigInt(0);let r=this.A+BigInt(1);for(let s=0;s<e.length;s++)n=(n*r^BigInt(e.charCodeAt(s)))&t;return n}Yt.prototype.add=function(e,t,n){if(Mr(e)&&(t=e,e=Ur(t,this.key)),t&&(e||e===0)){if(!n&&this.reg.has(e))return this.update(e,t);for(let l=0,a;l<this.field.length;l++){a=this.D[l];var r=this.index.get(this.field[l]);if(typeof a=="function"){var s=a(t);s&&r.add(e,s,!1,!0)}else s=a.I,(!s||s(t))&&(a.constructor===String?a=[""+a]:ze(a)&&(a=[a]),Gl(t,a,this.J,0,r,e,a[0],n))}if(this.tag)for(r=0;r<this.F.length;r++){var o=this.F[r];s=this.tag.get(this.R[r]);let l=X();if(typeof o=="function"){if(o=o(t),!o)continue}else{var i=o.I;if(i&&!i(t))continue;o.constructor===String&&(o=""+o),o=Ur(t,o)}if(s&&o){ze(o)&&(o=[o]);for(let a=0,u,c;a<o.length;a++)if(u=o[a],!l[u]&&(l[u]=1,(i=s.get(u))?c=i:s.set(u,c=[]),!n||!c.includes(e))){if(c.length===2**31-1){if(i=new Qt(c),this.fastupdate)for(let d of this.reg.values())d.includes(c)&&(d[d.indexOf(c)]=i);s.set(u,c=i)}c.push(e),this.fastupdate&&((i=this.reg.get(e))?i.push(c):this.reg.set(e,[c]))}}}if(this.store&&(!n||!this.store.has(e))){let l;if(this.C){l=X();for(let a=0,u;a<this.C.length;a++){if(u=this.C[a],(n=u.I)&&!n(t))continue;let c;if(typeof u=="function"){if(c=u(t),!c)continue;u=[u.V]}else if(ze(u)||u.constructor===String){l[u]=t[u];continue}Xl(t,l,u,0,u[0],c)}}this.store.set(e,l||t)}this.worker&&(this.fastupdate||this.reg.add(e))}return this};function Xl(e,t,n,r,s,o){if(e=e[s],r===n.length-1)t[s]=o||e;else if(e)if(e.constructor===Array)for(t=t[s]=Array(e.length),s=0;s<e.length;s++)Xl(e,t,n,r,s);else t=t[s]||(t[s]=X()),s=n[++r],Xl(e,t,n,r,s)}function Gl(e,t,n,r,s,o,i,l){if(e=e[i])if(r===t.length-1){if(e.constructor===Array){if(n[r]){for(t=0;t<e.length;t++)s.add(o,e[t],!0,!0);return}e=e.join(" ")}s.add(o,e,l,!0)}else if(e.constructor===Array)for(i=0;i<e.length;i++)Gl(e,t,n,r,s,o,i,l);else i=t[++r],Gl(e,t,n,r,s,o,i,l);else s.db&&s.remove(o)}function Xf(e,t,n,r,s,o,i){const l=e.length;let a=[],u,c;u=X();for(let d=0,h,y,m,v;d<t;d++)for(let f=0;f<l;f++)if(m=e[f],d<m.length&&(h=m[d]))for(let p=0;p<h.length;p++){if(y=h[p],(c=u[y])?u[y]++:(c=0,u[y]=1),v=a[c]||(a[c]=[]),!i){let g=d+(f||!s?0:o||0);v=v[g]||(v[g]=[])}if(v.push(y),i&&n&&c===l-1&&v.length-r===n)return r?v.slice(r):v}if(e=a.length)if(s)a=1<a.length?Gf(a,n,r,i,o):(a=a[0]).length>n||r?a.slice(r,n+r):a;else{if(e<l)return[];if(a=a[e-1],n||r)if(i)(a.length>n||r)&&(a=a.slice(r,n+r));else{s=[];for(let d=0,h;d<a.length;d++)if(h=a[d],h.length>r)r-=h.length;else if((h.length>n||r)&&(h=h.slice(r,n+r),n-=h.length,r&&(r-=h.length)),s.push(h),!n)break;a=1<s.length?[].concat.apply([],s):s[0]}}return a}function Gf(e,t,n,r,s){const o=[],i=X();let l;var a=e.length;let u;if(r){for(s=a-1;0<=s;s--)if(u=(r=e[s])&&r.length){for(a=0;a<u;a++)if(l=r[a],!i[l]){if(i[l]=1,n)n--;else if(o.push(l),o.length===t)return o}}}else for(let c=a-1,d,h=0;0<=c;c--){d=e[c];for(let y=0;y<d.length;y++)if(u=(r=d[y])&&r.length){for(let m=0;m<u;m++)if(l=r[m],!i[l])if(i[l]=1,n)n--;else{let v=(y+(c<a-1&&s||0))/(c+1)|0;if((o[v]||(o[v]=[])).push(l),++h===t)return o}}}return o}function xm(e,t,n){const r=X(),s=[];for(let o=0,i;o<t.length;o++){i=t[o];for(let l=0;l<i.length;l++)r[i[l]]=1}if(n)for(let o=0,i;o<e.length;o++)i=e[o],r[i]&&(s.push(i),r[i]=0);else for(let o=0,i,l;o<e.result.length;o++)for(i=e.result[o],t=0;t<i.length;t++)l=i[t],r[l]&&((s[o]||(s[o]=[])).push(l),r[l]=0);return s}function Zl(e,t,n,r){if(!e.length)return e;if(e.length===1)return e=e[0],e=n||e.length>t?t?e.slice(n,n+t):e.slice(n):e,r?Rt.call(this,e):e;let s=[];for(let o=0,i,l;o<e.length;o++)if((i=e[o])&&(l=i.length)){if(n){if(n>=l){n-=l;continue}n<l&&(i=t?i.slice(n,n+t):i.slice(n),l=i.length,n=0)}if(l>t&&(i=i.slice(0,t),l=t),!s.length&&l>=t)return r?Rt.call(this,i):i;if(s.push(i),t-=l,!t)break}return s=1<s.length?[].concat.apply([],s):s[0],r?Rt.call(this,s):s}function ao(e,t,n){var r=n[0];if(r.then)return Promise.all(n).then(function(c){return e[t].apply(e,c)});if(r[0]&&r[0].index)return e[t].apply(e,r);r=[];let s=[],o=0,i=0,l,a,u;for(let c=0,d;c<n.length;c++)if(d=n[c]){let h;if(d.constructor===H)h=d.result;else if(d.constructor===Array)h=d;else if(o=d.limit||0,i=d.offset||0,u=d.suggest,a=d.resolve,l=d.enrich&&a,d.index)d.resolve=!1,h=d.index.search(d).result,d.resolve=a;else if(d.and)h=e.and(d.and);else if(d.or)h=e.or(d.or);else if(d.xor)h=e.xor(d.xor);else if(d.not)h=e.not(d.not);else continue;if(h.then)s.push(h);else if(h.length)r[c]=h;else if(!u&&(t==="and"||t==="xor")){r=[];break}}return{O:r,P:s,limit:o,offset:i,enrich:l,resolve:a,suggest:u}}H.prototype.or=function(){const{O:e,P:t,limit:n,offset:r,enrich:s,resolve:o}=ao(this,"or",arguments);return Zf.call(this,e,t,n,r,s,o)};function Zf(e,t,n,r,s,o){if(t.length){const i=this;return Promise.all(t).then(function(l){e=[];for(let a=0,u;a<l.length;a++)(u=l[a]).length&&(e[a]=u);return Zf.call(i,e,[],n,r,s,o)})}return e.length&&(this.result.length&&e.push(this.result),2>e.length?this.result=e[0]:(this.result=Gf(e,n,r,!1,this.h),r=0)),o?this.resolve(n,r,s):this}H.prototype.and=function(){let e=this.result.length,t,n,r,s;if(!e){const o=arguments[0];o&&(e=!!o.suggest,s=o.resolve,t=o.limit,n=o.offset,r=o.enrich&&s)}if(e){const{O:o,P:i,limit:l,offset:a,enrich:u,resolve:c,suggest:d}=ao(this,"and",arguments);return eh.call(this,o,i,l,a,u,c,d)}return s?this.resolve(t,n,r):this};function eh(e,t,n,r,s,o,i){if(t.length){const l=this;return Promise.all(t).then(function(a){e=[];for(let u=0,c;u<a.length;u++)(c=a[u]).length&&(e[u]=c);return eh.call(l,e,[],n,r,s,o,i)})}if(e.length)if(this.result.length&&e.unshift(this.result),2>e.length)this.result=e[0];else{if(t=dm(e))return this.result=Xf(e,t,n,r,i,this.h,o),o?s?Rt.call(this.index,this.result):this.result:this;this.result=[]}else i||(this.result=e);return o?this.resolve(n,r,s):this}H.prototype.xor=function(){const{O:e,P:t,limit:n,offset:r,enrich:s,resolve:o,suggest:i}=ao(this,"xor",arguments);return th.call(this,e,t,n,r,s,o,i)};function th(e,t,n,r,s,o,i){if(t.length){const l=this;return Promise.all(t).then(function(a){e=[];for(let u=0,c;u<a.length;u++)(c=a[u]).length&&(e[u]=c);return th.call(l,e,[],n,r,s,o,i)})}if(e.length)if(this.result.length&&e.unshift(this.result),2>e.length)this.result=e[0];else return this.result=$m.call(this,e,n,r,o,this.h),o?s?Rt.call(this.index,this.result):this.result:this;else i||(this.result=e);return o?this.resolve(n,r,s):this}function $m(e,t,n,r,s){const o=[],i=X();let l=0;for(let a=0,u;a<e.length;a++)if(u=e[a]){l<u.length&&(l=u.length);for(let c=0,d;c<u.length;c++)if(d=u[c])for(let h=0,y;h<d.length;h++)y=d[h],i[y]=i[y]?2:1}for(let a=0,u,c=0;a<l;a++)for(let d=0,h;d<e.length;d++)if((h=e[d])&&(u=h[a])){for(let y=0,m;y<u.length;y++)if(m=u[y],i[m]===1)if(n)n--;else if(r){if(o.push(m),o.length===t)return o}else{const v=a+(d?s:0);if(o[v]||(o[v]=[]),o[v].push(m),++c===t)return o}}return o}H.prototype.not=function(){const{O:e,P:t,limit:n,offset:r,enrich:s,resolve:o,suggest:i}=ao(this,"not",arguments);return nh.call(this,e,t,n,r,s,o,i)};function nh(e,t,n,r,s,o,i){if(t.length){const l=this;return Promise.all(t).then(function(a){e=[];for(let u=0,c;u<a.length;u++)(c=a[u]).length&&(e[u]=c);return nh.call(l,e,[],n,r,s,o,i)})}if(e.length&&this.result.length)this.result=Cm.call(this,e,n,r,o);else if(o)return this.resolve(n,r,s);return o?s?Rt.call(this.index,this.result):this.result:this}function Cm(e,t,n,r){const s=[];e=new Set(e.flat().flat());for(let o=0,i,l=0;o<this.result.length;o++)if(i=this.result[o]){for(let a=0,u;a<i.length;a++)if(u=i[a],!e.has(u)){if(n)n--;else if(r){if(s.push(u),s.length===t)return s}else if(s[o]||(s[o]=[]),s[o].push(u),++l===t)return s}}return s}function H(e){if(!this||this.constructor!==H)return new H(e);if(e&&e.index)return e.resolve=!1,this.index=e.index,this.h=e.boost||0,this.result=e.index.search(e).result,this;this.index=null,this.result=e||[],this.h=0}H.prototype.limit=function(e){if(this.result.length){const t=[];for(let n=0,r;n<this.result.length;n++)if(r=this.result[n])if(r.length<=e){if(t[n]=r,e-=r.length,!e)break}else{t[n]=r.slice(0,e);break}this.result=t}return this},H.prototype.offset=function(e){if(this.result.length){const t=[];for(let n=0,r;n<this.result.length;n++)(r=this.result[n])&&(r.length<=e?e-=r.length:(t[n]=r.slice(e),e=0));this.result=t}return this},H.prototype.boost=function(e){return this.h+=e,this},H.prototype.resolve=function(e,t,n){const r=this.result,s=this.index;return this.result=this.index=null,r.length?(typeof e=="object"&&(n=e.enrich,t=e.offset,e=e.limit),Zl.call(s,r,e||100,t,n)):r},Yt.prototype.search=function(e,t,n,r){n||(!t&&Mr(e)?(n=e,e=""):Mr(t)&&(n=t,t=0));let s=[];var o=[],i;let l,a,u,c=0;var d=!0;let h;if(n){n.constructor===Array&&(n={index:n}),e=n.query||e;var y=n.pluck;l=n.merge,a=y||n.field||(a=n.index)&&(a.index?null:a),u=this.tag&&n.tag;var m=n.suggest;d=n.resolve!==!1,d||y||!(a=a||this.field)||(ze(a)?y=a:(a.constructor===Array&&a.length===1&&(a=a[0]),y=a.field||a.index)),h=(i=this.store&&n.enrich&&d)&&n.highlight,t=n.limit||t;var v=n.offset||0;if(t||(t=100),u&&(!this.db||!r)){u.constructor!==Array&&(u=[u]);var f=[];for(let w=0,C;w<u.length;w++)if(C=u[w],C.field&&C.tag){var p=C.tag;if(p.constructor===Array)for(var g=0;g<p.length;g++)f.push(C.field,p[g]);else f.push(C.field,p)}else{p=Object.keys(C);for(let $=0,k,j;$<p.length;$++)if(k=p[$],j=C[k],j.constructor===Array)for(g=0;g<j.length;g++)f.push(k,j[g]);else f.push(k,j)}if(u=f,!e){if(d=[],f.length)for(o=0;o<f.length;o+=2){if(this.db){if(y=this.index.get(f[o]),!y)continue;d.push(y=y.db.tag(f[o+1],t,v,i))}else y=km.call(this,f[o],f[o+1],t,v,i);s.push({field:f[o],tag:f[o+1],result:y})}return d.length?Promise.all(d).then(function(w){for(let C=0;C<w.length;C++)s[C].result=w[C];return s}):s}}a&&a.constructor!==Array&&(a=[a])}a||(a=this.field),f=!r&&(this.worker||this.db)&&[];let S;for(let w=0,C,$,k;w<a.length;w++){if($=a[w],this.db&&this.tag&&!this.D[w])continue;let j;if(ze($)||(j=$,$=j.field,e=j.query||e,t=j.limit||t,v=j.offset||v,m=j.suggest||m,i=this.store&&(j.enrich||i)),r)C=r[w];else if(p=j||n,g=this.index.get($),u&&(this.db&&(p.tag=u,S=g.db.support_tag_search,p.field=a),S||(p.enrich=!1)),f){f[w]=g.search(e,t,p),p&&i&&(p.enrich=i);continue}else C=g.search(e,t,p),p&&i&&(p.enrich=i);if(k=C&&(d?C.length:C.result.length),u&&k){if(p=[],g=0,this.db&&r){if(!S)for(let A=a.length;A<r.length;A++){let M=r[A];if(M&&M.length)g++,p.push(M);else if(!m)return d?s:new H(s)}}else for(let A=0,M,be;A<u.length;A+=2){if(M=this.tag.get(u[A]),!M){if(m)continue;return d?s:new H(s)}if(be=(M=M&&M.get(u[A+1]))&&M.length)g++,p.push(M);else if(!m)return d?s:new H(s)}if(g){if(C=xm(C,p,d),k=C.length,!k&&!m)return d?C:new H(C);g--}}if(k)o[c]=$,s.push(C),c++;else if(a.length===1)return d?s:new H(s)}if(f){if(this.db&&u&&u.length&&!S)for(i=0;i<u.length;i+=2){if(o=this.index.get(u[i]),!o){if(m)continue;return d?s:new H(s)}f.push(o.db.tag(u[i+1],t,v,!1))}const w=this;return Promise.all(f).then(function(C){return C.length?w.search(e,t,n,C):C})}if(!c)return d?s:new H(s);if(y&&(!i||!this.store))return s[0];for(f=[],v=0;v<o.length;v++){if(m=s[v],i&&m.length&&typeof m[0].doc>"u"&&(this.db?f.push(m=this.index.get(this.field[0]).db.enrich(m)):m=Rt.call(this,m)),y)return d?m:new H(m);s[v]={field:o[v],result:m}}if(i&&this.db&&f.length){const w=this;return Promise.all(f).then(function(C){for(let $=0;$<C.length;$++)s[$].result=C[$];return l?sh(s):h?rh(s,e,w.index,w.field,w.D,h):s})}return l?sh(s):h?rh(s,e,this.index,this.field,this.D,h):s};function rh(e,t,n,r,s,o){let i,l,a;for(let u=0,c,d,h,y;u<e.length;u++){if(c=e[u].field,!c)continue;let m=e[u].result;h=n.get(c),d=h.encoder,a=h.tokenize,y=s[r.indexOf(c)],d!==i&&(i=d,l=i.encode(t));for(let v=0;v<m.length;v++){let f="",p=Ur(m[v].doc,y).split(/\s+/);for(let g=0,S,w;g<p.length;g++){S=p[g],w=d.encode(S),w=1<w.length?w.join(" "):w[0];let C;if(w&&S)for(let $=0,k;$<l.length;$++)if(k=l[$],a==="strict"){if(w===k){f+=(f?" ":"")+o.replace("$1",S),C=!0;break}}else{const j=w.indexOf(k);if(-1<j){f+=(f?" ":"")+S.substring(0,j)+o.replace("$1",S.substring(j,k.length))+S.substring(j+k.length),C=!0;break}}C||(f+=(f?" ":"")+p[g])}m[v].highlight=f}}return e}function sh(e){const t=[],n=X();for(let r=0,s,o;r<e.length;r++){s=e[r],o=s.result;for(let i=0,l,a,u;i<o.length;i++)a=o[i],typeof a!="object"&&(a={id:a}),l=a.id,(u=n[l])?u.push(s.field):(a.field=n[l]=[s.field],t.push(a))}return t}function km(e,t,n,r,s){if(e=this.tag.get(e),!e)return[];if((t=(e=e&&e.get(t))&&e.length-r)&&0<t)return(t>n||r)&&(e=e.slice(r,r+n)),s&&(e=Rt.call(this,e)),e}function Rt(e){if(!this||!this.store)return e;const t=Array(e.length);for(let n=0,r;n<e.length;n++)r=e[n],t[n]={id:r,doc:this.store.get(r)};return t}function Yt(e){if(!this||this.constructor!==Yt)return new Yt(e);const t=e.document||e.doc||e;let n,r;if(this.D=[],this.field=[],this.J=[],this.key=(n=t.key||t.id)&&uo(n,this.J)||"id",(r=e.keystore||0)&&(this.keystore=r),this.fastupdate=!!e.fastupdate,this.reg=!this.fastupdate||e.worker||e.db?r?new Me(r):new Set:r?new Xe(r):new Map,this.C=(n=t.store||null)&&n&&n!==!0&&[],this.store=n&&(r?new Xe(r):new Map),this.cache=(n=e.cache||null)&&new Xt(n),e.cache=!1,this.worker=e.worker,this.priority=e.priority||4,this.index=Em.call(this,e,t),this.tag=null,(n=t.tag)&&(typeof n=="string"&&(n=[n]),n.length)){this.tag=new Map,this.F=[],this.R=[];for(let s=0,o,i;s<n.length;s++){if(o=n[s],i=o.field||o,!i)throw Error("The tag field from the document descriptor is undefined.");o.custom?this.F[s]=o.custom:(this.F[s]=uo(i,this.J),o.filter&&(typeof this.F[s]=="string"&&(this.F[s]=new String(this.F[s])),this.F[s].I=o.filter)),this.R[s]=i,this.tag.set(i,new Map)}}if(this.worker){this.fastupdate=!1,e=[];for(const s of this.index.values())s.then&&e.push(s);if(e.length){const s=this;return Promise.all(e).then(function(o){let i=0;for(const l of s.index.entries()){const a=l[0];l[1].then&&s.index.set(a,o[i++])}return s})}}else e.db&&(this.fastupdate=!1,this.mount(e.db))}O=Yt.prototype,O.mount=function(e){let t=this.field;if(this.tag)for(let s=0,o;s<this.R.length;s++){o=this.R[s];var n=void 0;this.index.set(o,n=new Ge({},this.reg)),t===this.field&&(t=t.slice(0)),t.push(o),n.tag=this.tag.get(o)}n=[];const r={db:e.db,type:e.type,fastupdate:e.fastupdate};for(let s=0,o,i;s<t.length;s++){r.field=i=t[s],o=this.index.get(i);const l=new e.constructor(e.id,r);l.id=e.id,n[s]=l.mount(o),o.document=!0,s?o.bypass=!0:o.store=this.store}return this.db=!0,Promise.all(n)},O.commit=async function(e,t){const n=[];for(const r of this.index.values())n.push(r.commit(e,t));await Promise.all(n),this.reg.clear()},O.destroy=function(){const e=[];for(const t of this.index.values())e.push(t.destroy());return Promise.all(e)};function Em(e,t){const n=new Map;let r=t.index||t.field||t;ze(r)&&(r=[r]);for(let s=0,o,i;s<r.length;s++){if(o=r[s],ze(o)||(i=o,o=o.field),i=Mr(i)?Object.assign({},e,i):e,this.worker){const l=new Hr(i);n.set(o,l)}this.worker||n.set(o,new Ge(i,this.reg)),i.custom?this.D[s]=i.custom:(this.D[s]=uo(o,this.J),i.filter&&(typeof this.D[s]=="string"&&(this.D[s]=new String(this.D[s])),this.D[s].I=i.filter)),this.field[s]=o}if(this.C){e=t.store,ze(e)&&(e=[e]);for(let s=0,o,i;s<e.length;s++)o=e[s],i=o.field||o,o.custom?(this.C[s]=o.custom,o.custom.V=i):(this.C[s]=uo(i,this.J),o.filter&&(typeof this.C[s]=="string"&&(this.C[s]=new String(this.C[s])),this.C[s].I=o.filter))}return n}function uo(e,t){const n=e.split(":");let r=0;for(let s=0;s<n.length;s++)e=n[s],e[e.length-1]==="]"&&(e=e.substring(0,e.length-2))&&(t[r]=!0),e&&(n[r++]=e);return r<n.length&&(n.length=r),1<r?n:n[0]}O.append=function(e,t){return this.add(e,t,!0)},O.update=function(e,t){return this.remove(e).add(e,t)},O.remove=function(e){Mr(e)&&(e=Ur(e,this.key));for(var t of this.index.values())t.remove(e,!0);if(this.reg.has(e)){if(this.tag&&!this.fastupdate)for(let n of this.tag.values())for(let r of n){t=r[0];const s=r[1],o=s.indexOf(e);-1<o&&(1<s.length?s.splice(o,1):n.delete(t))}this.store&&this.store.delete(e),this.reg.delete(e)}return this.cache&&this.cache.remove(e),this},O.clear=function(){const e=[];for(const t of this.index.values()){const n=t.clear();n.then&&e.push(n)}if(this.tag)for(const t of this.tag.values())t.clear();return this.store&&this.store.clear(),this.cache&&this.cache.clear(),e.length?Promise.all(e):this},O.contain=function(e){return this.db?this.index.get(this.field[0]).db.has(e):this.reg.has(e)},O.cleanup=function(){for(const e of this.index.values())e.cleanup();return this},O.get=function(e){return this.db?this.index.get(this.field[0]).db.enrich(e).then(function(t){return t[0]&&t[0].doc||null}):this.store.get(e)||null},O.set=function(e,t){return typeof e=="object"&&(t=e,e=Ur(t,this.key)),this.store.set(e,t),this},O.searchCache=oh,O.export=function(e,t,n=0,r=0){if(n<this.field.length){const i=this.field[n];if((t=this.index.get(i).export(e,i,n,r=1))&&t.then){const l=this;return t.then(function(){return l.export(e,i,n+1)})}return this.export(e,i,n+1)}let s,o;switch(r){case 0:s="reg",o=Kf(this.reg),t=null;break;case 1:s="tag",o=this.tag&&Vf(this.tag,this.reg.size),t=null;break;case 2:s="doc",o=this.store&&Ql(this.store),t=null;break;default:return}return lo.call(this,e,t,s,o,n,r)},O.import=function(e,t){var n=e.split(".");n[n.length-1]==="json"&&n.pop();const r=2<n.length?n[0]:"";if(n=2<n.length?n[2]:n[1],this.worker&&r)return this.index.get(r).import(e);if(t){if(typeof t=="string"&&(t=JSON.parse(t)),r)return this.index.get(r).import(n,t);switch(n){case"reg":this.fastupdate=!1,this.reg=Wf(t,this.reg);for(let s=0,o;s<this.field.length;s++)o=this.index.get(this.field[s]),o.fastupdate=!1,o.reg=this.reg;if(this.worker){t=[];for(const s of this.index.values())t.push(s.import(e));return Promise.all(t)}break;case"tag":this.tag=Hf(t,this.tag);break;case"doc":this.store=Yl(t,this.store)}}},ql(Yt.prototype);function oh(e,t,n){e=(typeof e=="object"?""+e.query:e).toLowerCase(),this.cache||(this.cache=new Xt);let r=this.cache.get(e);if(!r){if(r=this.search(e,t,n),r.then){const s=this;r.then(function(o){return s.cache.set(e,o),o})}this.cache.set(e,r)}return r}function Xt(e){this.limit=e&&e!==!0?e:1e3,this.cache=new Map,this.h=""}Xt.prototype.set=function(e,t){this.cache.set(this.h=e,t),this.cache.size>this.limit&&this.cache.delete(this.cache.keys().next().value)},Xt.prototype.get=function(e){const t=this.cache.get(e);return t&&this.h!==e&&(this.cache.delete(e),this.cache.set(this.h=e,t)),t},Xt.prototype.remove=function(e){for(const t of this.cache){const n=t[0];t[1].includes(e)&&this.cache.delete(n)}},Xt.prototype.clear=function(){this.cache.clear(),this.h=""};const ih={normalize:!1,numeric:!1,dedupe:!1},co={},ea=new Map([["b","p"],["v","f"],["w","f"],["z","s"],["x","s"],["d","t"],["n","m"],["c","k"],["g","k"],["j","k"],["q","k"],["i","e"],["y","e"],["u","o"]]),lh=new Map([["ae","a"],["oe","o"],["sh","s"],["kh","k"],["th","t"],["ph","f"],["pf","f"]]),ah=[/([^aeo])h(.)/g,"$1$2",/([aeo])h([^aeo]|$)/g,"$1$2",/(.)\1+/g,"$1"],uh={a:"",e:"",i:"",o:"",u:"",y:"",b:1,f:1,p:1,v:1,c:2,g:2,j:2,k:2,q:2,s:2,x:2,z:2,ß:2,d:3,t:3,l:4,m:5,n:5,r:6};var ch={Exact:ih,Default:co,Normalize:co,LatinBalance:{mapper:ea},LatinAdvanced:{mapper:ea,matcher:lh,replacer:ah},LatinExtra:{mapper:ea,replacer:ah.concat([/(?!^)[aeo]/g,""]),matcher:lh},LatinSoundex:{dedupe:!1,include:{letter:!0},finalize:function(e){for(let n=0;n<e.length;n++){var t=e[n];let r=t.charAt(0),s=uh[r];for(let o=1,i;o<t.length&&(i=t.charAt(o),i==="h"||i==="w"||!(i=uh[i])||i===s||(r+=i,s=i,r.length!==4));o++);e[n]=r}}},CJK:{split:""},LatinExact:ih,LatinDefault:co,LatinSimple:co};Ge.prototype.remove=function(e,t){const n=this.reg.size&&(this.fastupdate?this.reg.get(e):this.reg.has(e));if(n){if(this.fastupdate){for(let r=0,s;r<n.length;r++)if(s=n[r])if(2>s.length)s.pop();else{const o=s.indexOf(e);o===n.length-1?s.pop():s.splice(o,1)}}else Kr(this.map,e),this.depth&&Kr(this.ctx,e);t||this.reg.delete(e)}return this.db&&(this.commit_task.push({del:e}),this.T&&ph(this)),this.cache&&this.cache.remove(e),this};function Kr(e,t){let n=0;var r=typeof t>"u";if(e.constructor===Array){for(let s=0,o,i;s<e.length;s++)if((o=e[s])&&o.length)if(r)n++;else if(i=o.indexOf(t),0<=i){1<o.length?(o.splice(i,1),n++):delete e[s];break}else n++}else for(let s of e.entries()){r=s[0];const o=Kr(s[1],t);o?n+=o:e.delete(r)}return n}const Pm={memory:{resolution:1},performance:{resolution:3,fastupdate:!0,context:{depth:1,resolution:1}},match:{tokenize:"forward"},score:{resolution:9,context:{depth:2,resolution:3}}};Ge.prototype.add=function(e,t,n,r){if(t&&(e||e===0)){if(!r&&!n&&this.reg.has(e))return this.update(e,t);if(t=this.encoder.encode(t),r=t.length){const u=X(),c=X(),d=this.depth,h=this.resolution;for(let y=0;y<r;y++){let m=t[this.rtl?r-1-y:y];var s=m.length;if(s&&(d||!c[m])){var o=this.score?this.score(t,m,y,null,0):fo(h,r,y),i="";switch(this.tokenize){case"full":if(2<s){for(let v=0,f;v<s;v++)for(o=s;o>v;o--){i=m.substring(v,o),f=this.rtl?s-1-v:v;var l=this.score?this.score(t,m,y,i,f):fo(h,r,y,s,f);Wr(this,c,i,l,e,n)}break}case"bidirectional":case"reverse":if(1<s){for(l=s-1;0<l;l--){i=m[this.rtl?s-1-l:l]+i;var a=this.score?this.score(t,m,y,i,l):fo(h,r,y,s,l);Wr(this,c,i,a,e,n)}i=""}case"forward":if(1<s){for(l=0;l<s;l++)i+=m[this.rtl?s-1-l:l],Wr(this,c,i,o,e,n);break}default:if(Wr(this,c,m,o,e,n),d&&1<r&&y<r-1){for(s=X(),i=this.U,o=m,l=Math.min(d+1,this.rtl?y+1:r-y),s[o]=1,a=1;a<l;a++)if((m=t[this.rtl?r-1-y-a:y+a])&&!s[m]){s[m]=1;const v=this.score?this.score(t,o,y,m,a-1):fo(i+(r/2>i?0:1),r,y,l-1,a-1),f=this.bidirectional&&m>o;Wr(this,u,f?o:m,v,e,n,f?m:o)}}}}}this.fastupdate||this.reg.add(e)}else t=""}return this.db&&(t||this.commit_task.push({del:e}),this.T&&ph(this)),this};function Wr(e,t,n,r,s,o,i){let l=i?e.ctx:e.map,a;if((!t[n]||i&&!(a=t[n])[i])&&(i?(t=a||(t[n]=X()),t[i]=1,(a=l.get(i))?l=a:l.set(i,l=new Map)):t[n]=1,(a=l.get(n))?l=a:l.set(n,l=a=[]),l=l[r]||(l[r]=[]),!o||!l.includes(s))){if(l.length===2**31-1){if(t=new Qt(l),e.fastupdate)for(let u of e.reg.values())u.includes(l)&&(u[u.indexOf(l)]=t);a[r]=l=t}l.push(s),e.fastupdate&&((r=e.reg.get(s))?r.push(l):e.reg.set(s,[l]))}}function fo(e,t,n,r,s){return n&&1<e?t+(r||0)<=e?n+(s||0):(e-1)/(t+(r||0))*(n+(s||0))+1|0:0}Ge.prototype.search=function(e,t,n){n||(t||typeof e!="object"?typeof t=="object"&&(n=t,t=0):(n=e,e=""));let r=[],s,o,i,l=0,a,u,c,d,h;n?(e=n.query||e,t=n.limit||t,l=n.offset||0,o=n.context,i=n.suggest,h=(a=n.resolve!==!1)&&n.enrich,c=n.boost,d=n.resolution,u=this.db&&n.tag):a=this.resolve;let y=this.encoder.encode(e);if(s=y.length,t=t||(a?100:0),s===1)return hh.call(this,y[0],"",t,l,a,h,u);if(o=this.depth&&o!==!1,s===2&&o&&!i)return hh.call(this,y[1],y[0],t,l,a,h,u);let m=X(),v=0,f;if(o&&(f=y[0],v=1),d||d===0||(d=f?this.U:this.resolution),this.db){if(this.db.search&&(e=this.db.search(this,y,t,l,i,a,h,u),e!==!1))return e;const p=this;return async function(){for(let g,S;v<s;v++){if((S=y[v])&&!m[S]){if(m[S]=1,g=await ta(p,S,f,0,0,!1,!1),g=dh(g,r,i,d)){r=g;break}f&&(i&&g&&r.length||(f=S))}i&&f&&v===s-1&&!r.length&&(d=p.resolution,f="",v=-1,m=X())}return fh(r,d,t,l,i,c,a)}()}for(let p,g;v<s;v++){if((g=y[v])&&!m[g]){if(m[g]=1,p=ta(this,g,f,0,0,!1,!1),p=dh(p,r,i,d)){r=p;break}f&&(i&&p&&r.length||(f=g))}i&&f&&v===s-1&&!r.length&&(d=this.resolution,f="",v=-1,m=X())}return fh(r,d,t,l,i,c,a)};function fh(e,t,n,r,s,o,i){let l=e.length,a=e;if(1<l)a=Xf(e,t,n,r,s,o,i);else if(l===1)return i?Zl.call(null,e[0],n,r):new H(e[0]);return i?a:new H(a)}function hh(e,t,n,r,s,o,i){return e=ta(this,e,t,n,r,s,o,i),this.db?e.then(function(l){return s?l||[]:new H(l)}):e&&e.length?s?Zl.call(this,e,n,r):new H(e):s?[]:new H}function dh(e,t,n,r){let s=[];if(e&&e.length){if(e.length<=r){t.push(e);return}for(let o=0,i;o<r;o++)(i=e[o])&&(s[o]=i);if(s.length){t.push(s);return}}if(!n)return s}function ta(e,t,n,r,s,o,i,l){let a;return n&&(a=e.bidirectional&&t>n)&&(a=n,n=t,t=a),e.db?e.db.get(t,n,r,s,o,i,l):(e=n?(e=e.ctx.get(n))&&e.get(t):e.map.get(t),e)}function Ge(e,t){if(!this||this.constructor!==Ge)return new Ge(e);if(e){var n=ze(e)?e:e.preset;n&&(e=Object.assign({},Pm[n],e))}else e={};n=e.context;const r=n===!0?{depth:1}:n||{},s=ze(e.encoder)?ch[e.encoder]:e.encode||e.encoder||{};this.encoder=s.encode?s:typeof s=="object"?new Br(s):{encode:s},this.resolution=e.resolution||9,this.tokenize=n=(n=e.tokenize)&&n!=="default"&&n!=="exact"&&n||"strict",this.depth=n==="strict"&&r.depth||0,this.bidirectional=r.bidirectional!==!1,this.fastupdate=!!e.fastupdate,this.score=e.score||null,(n=e.keystore||0)&&(this.keystore=n),this.map=n?new Xe(n):new Map,this.ctx=n?new Xe(n):new Map,this.reg=t||(this.fastupdate?n?new Xe(n):new Map:n?new Me(n):new Set),this.U=r.resolution||3,this.rtl=s.rtl||e.rtl||!1,this.cache=(n=e.cache||null)&&new Xt(n),this.resolve=e.resolve!==!1,(n=e.db)&&(this.db=this.mount(n)),this.T=e.commit!==!1,this.commit_task=[],this.commit_timer=null,this.priority=e.priority||4}O=Ge.prototype,O.mount=function(e){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),e.mount(this)},O.commit=function(e,t){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.commit(this,e,t)},O.destroy=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.destroy()};function ph(e){e.commit_timer||(e.commit_timer=setTimeout(function(){e.commit_timer=null,e.db.commit(e,void 0,void 0)},1))}O.clear=function(){return this.map.clear(),this.ctx.clear(),this.reg.clear(),this.cache&&this.cache.clear(),this.db&&(this.commit_timer&&clearTimeout(this.commit_timer),this.commit_timer=null,this.commit_task=[{clear:!0}]),this},O.append=function(e,t){return this.add(e,t,!0)},O.contain=function(e){return this.db?this.db.has(e):this.reg.has(e)},O.update=function(e,t){const n=this,r=this.remove(e);return r&&r.then?r.then(()=>n.add(e,t)):this.add(e,t)},O.cleanup=function(){return this.fastupdate?(Kr(this.map),this.depth&&Kr(this.ctx),this):this},O.searchCache=oh,O.export=function(e,t,n=0,r=0){let s,o;switch(r){case 0:s="reg",o=Kf(this.reg);break;case 1:s="cfg",o=null;break;case 2:s="map",o=Ql(this.map,this.reg.size);break;case 3:s="ctx",o=Vf(this.ctx,this.reg.size);break;default:return}return lo.call(this,e,t,s,o,n,r)},O.import=function(e,t){if(t)switch(typeof t=="string"&&(t=JSON.parse(t)),e=e.split("."),e[e.length-1]==="json"&&e.pop(),e.length===3&&e.shift(),e=1<e.length?e[1]:e[0],e){case"reg":this.fastupdate=!1,this.reg=Wf(t,this.reg);break;case"map":this.map=Yl(t,this.map);break;case"ctx":this.ctx=Hf(t,this.ctx)}},O.serialize=function(e=!0){let t="",n="",r="";if(this.reg.size){let o;for(var s of this.reg.keys())o||(o=typeof s),t+=(t?",":"")+(o==="string"?'"'+s+'"':s);t="index.reg=new Set(["+t+"]);",n=qf(this.map,o),n="index.map=new Map(["+n+"]);";for(const i of this.ctx.entries()){s=i[0];let l=qf(i[1],o);l="new Map(["+l+"])",l='["'+s+'",'+l+"]",r+=(r?",":"")+l}r="index.ctx=new Map(["+r+"]);"}return e?"function inject(index){"+t+n+r+"}":t+n+r},ql(Ge.prototype);const gh=typeof window<"u"&&(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),ho=["map","ctx","tag","reg","cfg"],Gt=X();function mh(e,t={}){if(!this)return new mh(e,t);typeof e=="object"&&(t=e,e=e.name),e||console.info("Default storage space was used, because a name was not passed."),this.id="flexsearch"+(e?":"+e.toLowerCase().replace(/[^a-z0-9_\-]/g,""):""),this.field=t.field?t.field.toLowerCase().replace(/[^a-z0-9_\-]/g,""):"",this.type=t.type,this.fastupdate=this.support_tag_search=!1,this.db=null,this.h={}}O=mh.prototype,O.mount=function(e){return e.encoder?(e.db=this,this.open()):e.mount(this)},O.open=function(){if(this.db)return this.db;let e=this;navigator.storage&&navigator.storage.persist(),Gt[e.id]||(Gt[e.id]=[]),Gt[e.id].push(e.field);const t=gh.open(e.id,1);return t.onupgradeneeded=function(){const n=e.db=this.result;for(let r=0,s;r<ho.length;r++){s=ho[r];for(let o=0,i;o<Gt[e.id].length;o++)i=Gt[e.id][o],n.objectStoreNames.contains(s+(s!=="reg"&&i?":"+i:""))||n.createObjectStore(s+(s!=="reg"&&i?":"+i:""))}},e.db=Lt(t,function(n){e.db=n,e.db.onversionchange=function(){e.close()}})},O.close=function(){this.db&&this.db.close(),this.db=null},O.destroy=function(){const e=gh.deleteDatabase(this.id);return Lt(e)},O.clear=function(){const e=[];for(let n=0,r;n<ho.length;n++){r=ho[n];for(let s=0,o;s<Gt[this.id].length;s++)o=Gt[this.id][s],e.push(r+(r!=="reg"&&o?":"+o:""))}const t=this.db.transaction(e,"readwrite");for(let n=0;n<e.length;n++)t.objectStore(e[n]).clear();return Lt(t)},O.get=function(e,t,n=0,r=0,s=!0,o=!1){e=this.db.transaction((t?"ctx":"map")+(this.field?":"+this.field:""),"readonly").objectStore((t?"ctx":"map")+(this.field?":"+this.field:"")).get(t?t+":"+e:e);const i=this;return Lt(e).then(function(l){let a=[];if(!l||!l.length)return a;if(s){if(!n&&!r&&l.length===1)return l[0];for(let u=0,c;u<l.length;u++)if((c=l[u])&&c.length){if(r>=c.length){r-=c.length;continue}const d=n?r+Math.min(c.length-r,n):c.length;for(let h=r;h<d;h++)a.push(c[h]);if(r=0,a.length===n)break}return o?i.enrich(a):a}return l})},O.tag=function(e,t=0,n=0,r=!1){e=this.db.transaction("tag"+(this.field?":"+this.field:""),"readonly").objectStore("tag"+(this.field?":"+this.field:"")).get(e);const s=this;return Lt(e).then(function(o){return!o||!o.length||n>=o.length?[]:!t&&!n?o:(o=o.slice(n,n+t),r?s.enrich(o):o)})},O.enrich=function(e){typeof e!="object"&&(e=[e]);const t=this.db.transaction("reg","readonly").objectStore("reg"),n=[];for(let r=0;r<e.length;r++)n[r]=Lt(t.get(e[r]));return Promise.all(n).then(function(r){for(let s=0;s<r.length;s++)r[s]={id:e[s],doc:r[s]?JSON.parse(r[s]):null};return r})},O.has=function(e){return e=this.db.transaction("reg","readonly").objectStore("reg").getKey(e),Lt(e).then(function(t){return!!t})},O.search=null,O.info=function(){},O.transaction=function(e,t,n){e+=e!=="reg"&&this.field?":"+this.field:"";let r=this.h[e+":"+t];if(r)return n.call(this,r);let s=this.db.transaction(e,t);this.h[e+":"+t]=r=s.objectStore(e);const o=n.call(this,r);return this.h[e+":"+t]=null,Lt(s).finally(function(){return s=r=null,o})},O.commit=async function(e,t,n){if(t)await this.clear(),e.commit_task=[];else{let r=e.commit_task;e.commit_task=[];for(let s=0,o;s<r.length;s++)if(o=r[s],o.clear){await this.clear(),t=!0;break}else r[s]=o.del;t||(n||(r=r.concat(hm(e.reg))),r.length&&await this.remove(r))}e.reg.size&&(await this.transaction("map","readwrite",function(r){for(const s of e.map){const o=s[0],i=s[1];i.length&&(t?r.put(i,o):r.get(o).onsuccess=function(){let l=this.result;var a;if(l&&l.length){const u=Math.max(l.length,i.length);for(let c=0,d,h;c<u;c++)if((h=i[c])&&h.length){if((d=l[c])&&d.length)for(a=0;a<h.length;a++)d.push(h[a]);else l[c]=h;a=1}}else l=i,a=1;a&&r.put(l,o)})}}),await this.transaction("ctx","readwrite",function(r){for(const s of e.ctx){const o=s[0],i=s[1];for(const l of i){const a=l[0],u=l[1];u.length&&(t?r.put(u,o+":"+a):r.get(o+":"+a).onsuccess=function(){let c=this.result;var d;if(c&&c.length){const h=Math.max(c.length,u.length);for(let y=0,m,v;y<h;y++)if((v=u[y])&&v.length){if((m=c[y])&&m.length)for(d=0;d<v.length;d++)m.push(v[d]);else c[y]=v;d=1}}else c=u,d=1;d&&r.put(c,o+":"+a)})}}}),e.store?await this.transaction("reg","readwrite",function(r){for(const s of e.store){const o=s[0],i=s[1];r.put(typeof i=="object"?JSON.stringify(i):1,o)}}):e.bypass||await this.transaction("reg","readwrite",function(r){for(const s of e.reg.keys())r.put(1,s)}),e.tag&&await this.transaction("tag","readwrite",function(r){for(const s of e.tag){const o=s[0],i=s[1];i.length&&(r.get(o).onsuccess=function(){let l=this.result;l=l&&l.length?l.concat(i):i,r.put(l,o)})}}),e.map.clear(),e.ctx.clear(),e.tag&&e.tag.clear(),e.store&&e.store.clear(),e.document||e.reg.clear())};function na(e,t,n){const r=e.value;let s,o=0;for(let i=0,l;i<r.length;i++){if(l=n?r:r[i]){for(let a=0,u,c;a<t.length;a++)if(c=t[a],u=l.indexOf(c),0<=u)if(s=1,1<l.length)l.splice(u,1);else{r[i]=[];break}o+=l.length}if(n)break}o?s&&e.update(r):e.delete(),e.continue()}O.remove=function(e){return typeof e!="object"&&(e=[e]),Promise.all([this.transaction("map","readwrite",function(t){t.openCursor().onsuccess=function(){const n=this.result;n&&na(n,e)}}),this.transaction("ctx","readwrite",function(t){t.openCursor().onsuccess=function(){const n=this.result;n&&na(n,e)}}),this.transaction("tag","readwrite",function(t){t.openCursor().onsuccess=function(){const n=this.result;n&&na(n,e,!0)}}),this.transaction("reg","readwrite",function(t){for(let n=0;n<e.length;n++)t.delete(e[n])})])};function Lt(e,t){return new Promise((n,r)=>{e.onsuccess=e.oncomplete=function(){t&&t(this.result),t=null,n(this.result)},e.onerror=e.onblocked=r,e=null})}const po={Encoder:Br,Document:Yt},Tm=ch;function yh(e,t){return function(){return e.apply(t,arguments)}}const{toString:jm}=Object.prototype,{getPrototypeOf:ra}=Object,{iterator:go,toStringTag:vh}=Symbol,mo=(e=>t=>{const n=jm.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ue=e=>(e=e.toLowerCase(),t=>mo(t)===e),yo=e=>t=>typeof t===e,{isArray:Fn}=Array,qr=yo("undefined");function Am(e){return e!==null&&!qr(e)&&e.constructor!==null&&!qr(e.constructor)&&Ce(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const wh=Ue("ArrayBuffer");function Nm(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&wh(e.buffer),t}const Om=yo("string"),Ce=yo("function"),Sh=yo("number"),vo=e=>e!==null&&typeof e=="object",Rm=e=>e===!0||e===!1,wo=e=>{if(mo(e)!=="object")return!1;const t=ra(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(vh in e)&&!(go in e)},Lm=Ue("Date"),_m=Ue("File"),Dm=Ue("Blob"),Im=Ue("FileList"),Fm=e=>vo(e)&&Ce(e.pipe),zm=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ce(e.append)&&((t=mo(e))==="formdata"||t==="object"&&Ce(e.toString)&&e.toString()==="[object FormData]"))},Mm=Ue("URLSearchParams"),[Um,Bm,bm,Vm]=["ReadableStream","Request","Response","Headers"].map(Ue),Hm=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Jr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),Fn(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let l;for(r=0;r<i;r++)l=o[r],t.call(null,e[l],l,e)}}function xh(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const Zt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,$h=e=>!qr(e)&&e!==Zt;function sa(){const{caseless:e}=$h(this)&&this||{},t={},n=(r,s)=>{const o=e&&xh(t,s)||s;wo(t[o])&&wo(r)?t[o]=sa(t[o],r):wo(r)?t[o]=sa({},r):Fn(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&Jr(arguments[r],n);return t}const Km=(e,t,n,{allOwnKeys:r}={})=>(Jr(t,(s,o)=>{n&&Ce(s)?e[o]=yh(s,n):e[o]=s},{allOwnKeys:r}),e),Wm=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),qm=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Jm=(e,t,n,r)=>{let s,o,i;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&ra(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Qm=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Ym=e=>{if(!e)return null;if(Fn(e))return e;let t=e.length;if(!Sh(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Xm=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ra(Uint8Array)),Gm=(e,t)=>{const r=(e&&e[go]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Zm=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},ey=Ue("HTMLFormElement"),ty=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Ch=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ny=Ue("RegExp"),kh=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Jr(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},ry=e=>{kh(e,(t,n)=>{if(Ce(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ce(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},sy=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return Fn(e)?r(e):r(String(e).split(t)),n},oy=()=>{},iy=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function ly(e){return!!(e&&Ce(e.append)&&e[vh]==="FormData"&&e[go])}const ay=e=>{const t=new Array(10),n=(r,s)=>{if(vo(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=Fn(r)?[]:{};return Jr(r,(i,l)=>{const a=n(i,s+1);!qr(a)&&(o[l]=a)}),t[s]=void 0,o}}return r};return n(e,0)},uy=Ue("AsyncFunction"),cy=e=>e&&(vo(e)||Ce(e))&&Ce(e.then)&&Ce(e.catch),Eh=((e,t)=>e?setImmediate:t?((n,r)=>(Zt.addEventListener("message",({source:s,data:o})=>{s===Zt&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),Zt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ce(Zt.postMessage)),fy=typeof queueMicrotask<"u"?queueMicrotask.bind(Zt):typeof process<"u"&&process.nextTick||Eh;var x={isArray:Fn,isArrayBuffer:wh,isBuffer:Am,isFormData:zm,isArrayBufferView:Nm,isString:Om,isNumber:Sh,isBoolean:Rm,isObject:vo,isPlainObject:wo,isReadableStream:Um,isRequest:Bm,isResponse:bm,isHeaders:Vm,isUndefined:qr,isDate:Lm,isFile:_m,isBlob:Dm,isRegExp:ny,isFunction:Ce,isStream:Fm,isURLSearchParams:Mm,isTypedArray:Xm,isFileList:Im,forEach:Jr,merge:sa,extend:Km,trim:Hm,stripBOM:Wm,inherits:qm,toFlatObject:Jm,kindOf:mo,kindOfTest:Ue,endsWith:Qm,toArray:Ym,forEachEntry:Gm,matchAll:Zm,isHTMLForm:ey,hasOwnProperty:Ch,hasOwnProp:Ch,reduceDescriptors:kh,freezeMethods:ry,toObjectSet:sy,toCamelCase:ty,noop:oy,toFiniteNumber:iy,findKey:xh,global:Zt,isContextDefined:$h,isSpecCompliantForm:ly,toJSONObject:ay,isAsyncFn:uy,isThenable:cy,setImmediate:Eh,asap:fy,isIterable:e=>e!=null&&Ce(e[go])};function D(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}x.inherits(D,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:x.toJSONObject(this.config),code:this.code,status:this.status}}});const Ph=D.prototype,Th={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Th[e]={value:e}}),Object.defineProperties(D,Th),Object.defineProperty(Ph,"isAxiosError",{value:!0}),D.from=(e,t,n,r,s,o)=>{const i=Object.create(Ph);return x.toFlatObject(e,i,function(a){return a!==Error.prototype},l=>l!=="isAxiosError"),D.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};var hy=null;function oa(e){return x.isPlainObject(e)||x.isArray(e)}function jh(e){return x.endsWith(e,"[]")?e.slice(0,-2):e}function Ah(e,t,n){return e?e.concat(t).map(function(s,o){return s=jh(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function dy(e){return x.isArray(e)&&!e.some(oa)}const py=x.toFlatObject(x,{},null,function(t){return/^is[A-Z]/.test(t)});function So(e,t,n){if(!x.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=x.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,f){return!x.isUndefined(f[v])});const r=n.metaTokens,s=n.visitor||c,o=n.dots,i=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&x.isSpecCompliantForm(t);if(!x.isFunction(s))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(x.isDate(m))return m.toISOString();if(!a&&x.isBlob(m))throw new D("Blob is not supported. Use a Buffer instead.");return x.isArrayBuffer(m)||x.isTypedArray(m)?a&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,v,f){let p=m;if(m&&!f&&typeof m=="object"){if(x.endsWith(v,"{}"))v=r?v:v.slice(0,-2),m=JSON.stringify(m);else if(x.isArray(m)&&dy(m)||(x.isFileList(m)||x.endsWith(v,"[]"))&&(p=x.toArray(m)))return v=jh(v),p.forEach(function(S,w){!(x.isUndefined(S)||S===null)&&t.append(i===!0?Ah([v],w,o):i===null?v:v+"[]",u(S))}),!1}return oa(m)?!0:(t.append(Ah(f,v,o),u(m)),!1)}const d=[],h=Object.assign(py,{defaultVisitor:c,convertValue:u,isVisitable:oa});function y(m,v){if(!x.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(m),x.forEach(m,function(p,g){(!(x.isUndefined(p)||p===null)&&s.call(t,p,x.isString(g)?g.trim():g,v,h))===!0&&y(p,v?v.concat(g):[g])}),d.pop()}}if(!x.isObject(e))throw new TypeError("data must be an object");return y(e),t}function Nh(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ia(e,t){this._pairs=[],e&&So(e,this,t)}const Oh=ia.prototype;Oh.append=function(t,n){this._pairs.push([t,n])},Oh.toString=function(t){const n=t?function(r){return t.call(this,r,Nh)}:Nh;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function gy(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Rh(e,t,n){if(!t)return e;const r=n&&n.encode||gy;x.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(t,n):o=x.isURLSearchParams(t)?t.toString():new ia(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class my{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){x.forEach(this.handlers,function(r){r!==null&&t(r)})}}var Lh=my,_h={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},yy=typeof URLSearchParams<"u"?URLSearchParams:ia,vy=typeof FormData<"u"?FormData:null,wy=typeof Blob<"u"?Blob:null,Sy={isBrowser:!0,classes:{URLSearchParams:yy,FormData:vy,Blob:wy},protocols:["http","https","file","blob","url","data"]};const la=typeof window<"u"&&typeof document<"u",aa=typeof navigator=="object"&&navigator||void 0,xy=la&&(!aa||["ReactNative","NativeScript","NS"].indexOf(aa.product)<0),$y=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Cy=la&&window.location.href||"http://localhost";var ky=Object.freeze({__proto__:null,hasBrowserEnv:la,hasStandardBrowserWebWorkerEnv:$y,hasStandardBrowserEnv:xy,navigator:aa,origin:Cy}),ge={...ky,...Sy};function Ey(e,t){return So(e,new ge.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return ge.isNode&&x.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Py(e){return x.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ty(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function Dh(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),a=o>=n.length;return i=!i&&x.isArray(s)?s.length:i,a?(x.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!l):((!s[i]||!x.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&x.isArray(s[i])&&(s[i]=Ty(s[i])),!l)}if(x.isFormData(e)&&x.isFunction(e.entries)){const n={};return x.forEachEntry(e,(r,s)=>{t(Py(r),s,n,0)}),n}return null}function jy(e,t,n){if(x.isString(e))try{return(t||JSON.parse)(e),x.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ua={transitional:_h,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=x.isObject(t);if(o&&x.isHTMLForm(t)&&(t=new FormData(t)),x.isFormData(t))return s?JSON.stringify(Dh(t)):t;if(x.isArrayBuffer(t)||x.isBuffer(t)||x.isStream(t)||x.isFile(t)||x.isBlob(t)||x.isReadableStream(t))return t;if(x.isArrayBufferView(t))return t.buffer;if(x.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Ey(t,this.formSerializer).toString();if((l=x.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return So(l?{"files[]":t}:t,a&&new a,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),jy(t)):t}],transformResponse:[function(t){const n=this.transitional||ua.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(x.isResponse(t)||x.isReadableStream(t))return t;if(t&&x.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?D.from(l,D.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ge.classes.FormData,Blob:ge.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};x.forEach(["delete","get","head","post","put","patch"],e=>{ua.headers[e]={}});var ca=ua;const Ay=x.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var Ny=e=>{const t={};let n,r,s;return e&&e.split(`
51
- `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&Ay[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};const Ih=Symbol("internals");function Qr(e){return e&&String(e).trim().toLowerCase()}function xo(e){return e===!1||e==null?e:x.isArray(e)?e.map(xo):String(e)}function Oy(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Ry=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function fa(e,t,n,r,s){if(x.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!x.isString(t)){if(x.isString(r))return t.indexOf(r)!==-1;if(x.isRegExp(r))return r.test(t)}}function Ly(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function _y(e,t){const n=x.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class $o{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(l,a,u){const c=Qr(a);if(!c)throw new Error("header name must be a non-empty string");const d=x.findKey(s,c);(!d||s[d]===void 0||u===!0||u===void 0&&s[d]!==!1)&&(s[d||a]=xo(l))}const i=(l,a)=>x.forEach(l,(u,c)=>o(u,c,a));if(x.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(x.isString(t)&&(t=t.trim())&&!Ry(t))i(Ny(t),n);else if(x.isObject(t)&&x.isIterable(t)){let l={},a,u;for(const c of t){if(!x.isArray(c))throw TypeError("Object iterator must return a key-value pair");l[u=c[0]]=(a=l[u])?x.isArray(a)?[...a,c[1]]:[a,c[1]]:c[1]}i(l,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=Qr(t),t){const r=x.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Oy(s);if(x.isFunction(n))return n.call(this,s,r);if(x.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Qr(t),t){const r=x.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||fa(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=Qr(i),i){const l=x.findKey(r,i);l&&(!n||fa(r,r[l],l,n))&&(delete r[l],s=!0)}}return x.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||fa(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return x.forEach(this,(s,o)=>{const i=x.findKey(r,o);if(i){n[i]=xo(s),delete n[o];return}const l=t?Ly(o):String(o).trim();l!==o&&delete n[o],n[l]=xo(s),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return x.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&x.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
52
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Ih]=this[Ih]={accessors:{}}).accessors,s=this.prototype;function o(i){const l=Qr(i);r[l]||(_y(s,i),r[l]=!0)}return x.isArray(t)?t.forEach(o):o(t),this}}$o.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),x.reduceDescriptors($o.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),x.freezeMethods($o);var Be=$o;function ha(e,t){const n=this||ca,r=t||n,s=Be.from(r.headers);let o=r.data;return x.forEach(e,function(l){o=l.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Fh(e){return!!(e&&e.__CANCEL__)}function zn(e,t,n){D.call(this,e??"canceled",D.ERR_CANCELED,t,n),this.name="CanceledError"}x.inherits(zn,D,{__CANCEL__:!0});function zh(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new D("Request failed with status code "+n.status,[D.ERR_BAD_REQUEST,D.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Dy(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Iy(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(a){const u=Date.now(),c=r[o];i||(i=u),n[s]=a,r[s]=u;let d=o,h=0;for(;d!==s;)h+=n[d++],d=d%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),u-i<t)return;const y=c&&u-c;return y?Math.round(h*1e3/y):void 0}}function Fy(e,t){let n=0,r=1e3/t,s,o;const i=(u,c=Date.now())=>{n=c,s=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),d=c-n;d>=r?i(u,c):(s=u,o||(o=setTimeout(()=>{o=null,i(s)},r-d)))},()=>s&&i(s)]}const Co=(e,t,n=3)=>{let r=0;const s=Iy(50,250);return Fy(o=>{const i=o.loaded,l=o.lengthComputable?o.total:void 0,a=i-r,u=s(a),c=i<=l;r=i;const d={loaded:i,total:l,progress:l?i/l:void 0,bytes:a,rate:u||void 0,estimated:u&&l&&c?(l-i)/u:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(d)},n)},Mh=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Uh=e=>(...t)=>x.asap(()=>e(...t));var zy=ge.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ge.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ge.origin),ge.navigator&&/(msie|trident)/i.test(ge.navigator.userAgent)):()=>!0,My=ge.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];x.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),x.isString(r)&&i.push("path="+r),x.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Uy(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function By(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Bh(e,t,n){let r=!Uy(t);return e&&(r||n==!1)?By(e,t):t}const bh=e=>e instanceof Be?{...e}:e;function en(e,t){t=t||{};const n={};function r(u,c,d,h){return x.isPlainObject(u)&&x.isPlainObject(c)?x.merge.call({caseless:h},u,c):x.isPlainObject(c)?x.merge({},c):x.isArray(c)?c.slice():c}function s(u,c,d,h){if(x.isUndefined(c)){if(!x.isUndefined(u))return r(void 0,u,d,h)}else return r(u,c,d,h)}function o(u,c){if(!x.isUndefined(c))return r(void 0,c)}function i(u,c){if(x.isUndefined(c)){if(!x.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function l(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const a={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(u,c,d)=>s(bh(u),bh(c),d,!0)};return x.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=a[c]||s,h=d(e[c],t[c],c);x.isUndefined(h)&&d!==l||(n[c]=h)}),n}var Vh=e=>{const t=en({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:l}=t;t.headers=i=Be.from(i),t.url=Rh(Bh(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let a;if(x.isFormData(n)){if(ge.hasStandardBrowserEnv||ge.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((a=i.getContentType())!==!1){const[u,...c]=a?a.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...c].join("; "))}}if(ge.hasStandardBrowserEnv&&(r&&x.isFunction(r)&&(r=r(t)),r||r!==!1&&zy(t.url))){const u=s&&o&&My.read(o);u&&i.set(s,u)}return t},by=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const s=Vh(e);let o=s.data;const i=Be.from(s.headers).normalize();let{responseType:l,onUploadProgress:a,onDownloadProgress:u}=s,c,d,h,y,m;function v(){y&&y(),m&&m(),s.cancelToken&&s.cancelToken.unsubscribe(c),s.signal&&s.signal.removeEventListener("abort",c)}let f=new XMLHttpRequest;f.open(s.method.toUpperCase(),s.url,!0),f.timeout=s.timeout;function p(){if(!f)return;const S=Be.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),C={data:!l||l==="text"||l==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:S,config:e,request:f};zh(function(k){n(k),v()},function(k){r(k),v()},C),f=null}"onloadend"in f?f.onloadend=p:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(p)},f.onabort=function(){f&&(r(new D("Request aborted",D.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new D("Network Error",D.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let w=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const C=s.transitional||_h;s.timeoutErrorMessage&&(w=s.timeoutErrorMessage),r(new D(w,C.clarifyTimeoutError?D.ETIMEDOUT:D.ECONNABORTED,e,f)),f=null},o===void 0&&i.setContentType(null),"setRequestHeader"in f&&x.forEach(i.toJSON(),function(w,C){f.setRequestHeader(C,w)}),x.isUndefined(s.withCredentials)||(f.withCredentials=!!s.withCredentials),l&&l!=="json"&&(f.responseType=s.responseType),u&&([h,m]=Co(u,!0),f.addEventListener("progress",h)),a&&f.upload&&([d,y]=Co(a),f.upload.addEventListener("progress",d),f.upload.addEventListener("loadend",y)),(s.cancelToken||s.signal)&&(c=S=>{f&&(r(!S||S.type?new zn(null,e,f):S),f.abort(),f=null)},s.cancelToken&&s.cancelToken.subscribe(c),s.signal&&(s.signal.aborted?c():s.signal.addEventListener("abort",c)));const g=Dy(s.url);if(g&&ge.protocols.indexOf(g)===-1){r(new D("Unsupported protocol "+g+":",D.ERR_BAD_REQUEST,e));return}f.send(o||null)})},Vy=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(u){if(!s){s=!0,l();const c=u instanceof Error?u:this.reason;r.abort(c instanceof D?c:new zn(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{i=null,o(new D(`timeout ${t} of ms exceeded`,D.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:a}=r;return a.unsubscribe=()=>x.asap(l),a}};const Hy=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},Ky=async function*(e,t){for await(const n of Wy(e))yield*Hy(n,t)},Wy=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Hh=(e,t,n,r)=>{const s=Ky(e,t);let o=0,i,l=a=>{i||(i=!0,r&&r(a))};return new ReadableStream({async pull(a){try{const{done:u,value:c}=await s.next();if(u){l(),a.close();return}let d=c.byteLength;if(n){let h=o+=d;n(h)}a.enqueue(new Uint8Array(c))}catch(u){throw l(u),u}},cancel(a){return l(a),s.return()}},{highWaterMark:2})},ko=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Kh=ko&&typeof ReadableStream=="function",qy=ko&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Wh=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Jy=Kh&&Wh(()=>{let e=!1;const t=new Request(ge.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),qh=64*1024,da=Kh&&Wh(()=>x.isReadableStream(new Response("").body)),Eo={stream:da&&(e=>e.body)};ko&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Eo[t]&&(Eo[t]=x.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new D(`Response type '${t}' is not supported`,D.ERR_NOT_SUPPORT,r)})})})(new Response);const Qy=async e=>{if(e==null)return 0;if(x.isBlob(e))return e.size;if(x.isSpecCompliantForm(e))return(await new Request(ge.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(x.isArrayBufferView(e)||x.isArrayBuffer(e))return e.byteLength;if(x.isURLSearchParams(e)&&(e=e+""),x.isString(e))return(await qy(e)).byteLength},Yy=async(e,t)=>{const n=x.toFiniteNumber(e.getContentLength());return n??Qy(t)};var Xy=ko&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:l,onUploadProgress:a,responseType:u,headers:c,withCredentials:d="same-origin",fetchOptions:h}=Vh(e);u=u?(u+"").toLowerCase():"text";let y=Vy([s,o&&o.toAbortSignal()],i),m;const v=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let f;try{if(a&&Jy&&n!=="get"&&n!=="head"&&(f=await Yy(c,r))!==0){let C=new Request(t,{method:"POST",body:r,duplex:"half"}),$;if(x.isFormData(r)&&($=C.headers.get("content-type"))&&c.setContentType($),C.body){const[k,j]=Mh(f,Co(Uh(a)));r=Hh(C.body,qh,k,j)}}x.isString(d)||(d=d?"include":"omit");const p="credentials"in Request.prototype;m=new Request(t,{...h,signal:y,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:p?d:void 0});let g=await fetch(m);const S=da&&(u==="stream"||u==="response");if(da&&(l||S&&v)){const C={};["status","statusText","headers"].forEach(A=>{C[A]=g[A]});const $=x.toFiniteNumber(g.headers.get("content-length")),[k,j]=l&&Mh($,Co(Uh(l),!0))||[];g=new Response(Hh(g.body,qh,k,()=>{j&&j(),v&&v()}),C)}u=u||"text";let w=await Eo[x.findKey(Eo,u)||"text"](g,e);return!S&&v&&v(),await new Promise((C,$)=>{zh(C,$,{data:w,headers:Be.from(g.headers),status:g.status,statusText:g.statusText,config:e,request:m})})}catch(p){throw v&&v(),p&&p.name==="TypeError"&&/Load failed|fetch/i.test(p.message)?Object.assign(new D("Network Error",D.ERR_NETWORK,e,m),{cause:p.cause||p}):D.from(p,p&&p.code,e,m)}});const pa={http:hy,xhr:by,fetch:Xy};x.forEach(pa,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Jh=e=>`- ${e}`,Gy=e=>x.isFunction(e)||e===null||e===!1;var Qh={getAdapter:e=>{e=x.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o<t;o++){n=e[o];let i;if(r=n,!Gy(n)&&(r=pa[(i=String(n)).toLowerCase()],r===void 0))throw new D(`Unknown adapter '${i}'`);if(r)break;s[i||"#"+o]=r}if(!r){const o=Object.entries(s).map(([l,a])=>`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
53
- `+o.map(Jh).join(`
54
- `):" "+Jh(o[0]):"as no adapter specified";throw new D("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:pa};function ga(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new zn(null,e)}function Yh(e){return ga(e),e.headers=Be.from(e.headers),e.data=ha.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Qh.getAdapter(e.adapter||ca.adapter)(e).then(function(r){return ga(e),r.data=ha.call(e,e.transformResponse,r),r.headers=Be.from(r.headers),r},function(r){return Fh(r)||(ga(e),r&&r.response&&(r.response.data=ha.call(e,e.transformResponse,r.response),r.response.headers=Be.from(r.response.headers))),Promise.reject(r)})}const Xh="1.9.0",Po={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Po[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Gh={};Po.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Xh+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,l)=>{if(t===!1)throw new D(s(i," has been removed"+(n?" in "+n:"")),D.ERR_DEPRECATED);return n&&!Gh[i]&&(Gh[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,l):!0}},Po.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Zy(e,t,n){if(typeof e!="object")throw new D("options must be an object",D.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const l=e[o],a=l===void 0||i(l,o,e);if(a!==!0)throw new D("option "+o+" must be "+a,D.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new D("Unknown option "+o,D.ERR_BAD_OPTION)}}var To={assertOptions:Zy,validators:Po};const Ze=To.validators;class jo{constructor(t){this.defaults=t||{},this.interceptors={request:new Lh,response:new Lh}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
55
- `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=en(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&To.assertOptions(r,{silentJSONParsing:Ze.transitional(Ze.boolean),forcedJSONParsing:Ze.transitional(Ze.boolean),clarifyTimeoutError:Ze.transitional(Ze.boolean)},!1),s!=null&&(x.isFunction(s)?n.paramsSerializer={serialize:s}:To.assertOptions(s,{encode:Ze.function,serialize:Ze.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),To.assertOptions(n,{baseUrl:Ze.spelling("baseURL"),withXsrfToken:Ze.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&x.merge(o.common,o[n.method]);o&&x.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=Be.concat(i,o);const l=[];let a=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(a=a&&v.synchronous,l.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let c,d=0,h;if(!a){const m=[Yh.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,u),h=m.length,c=Promise.resolve(n);d<h;)c=c.then(m[d++],m[d++]);return c}h=l.length;let y=n;for(d=0;d<h;){const m=l[d++],v=l[d++];try{y=m(y)}catch(f){v.call(this,f);break}}try{c=Yh.call(this,y)}catch(m){return Promise.reject(m)}for(d=0,h=u.length;d<h;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=en(this.defaults,t);const n=Bh(t.baseURL,t.url,t.allowAbsoluteUrls);return Rh(n,t.params,t.paramsSerializer)}}x.forEach(["delete","get","head","options"],function(t){jo.prototype[t]=function(n,r){return this.request(en(r||{},{method:t,url:n,data:(r||{}).data}))}}),x.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,l){return this.request(en(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}jo.prototype[t]=n(),jo.prototype[t+"Form"]=n(!0)});var Ao=jo;class ma{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(l=>{r.subscribe(l),o=l}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,l){r.reason||(r.reason=new zn(o,i,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new ma(function(s){t=s}),cancel:t}}}var e0=ma;function t0(e){return function(n){return e.apply(null,n)}}function n0(e){return x.isObject(e)&&e.isAxiosError===!0}const ya={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ya).forEach(([e,t])=>{ya[t]=e});var r0=ya;function Zh(e){const t=new Ao(e),n=yh(Ao.prototype.request,t);return x.extend(n,Ao.prototype,t,{allOwnKeys:!0}),x.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Zh(en(e,s))},n}const G=Zh(ca);G.Axios=Ao,G.CanceledError=zn,G.CancelToken=e0,G.isCancel=Fh,G.VERSION=Xh,G.toFormData=So,G.AxiosError=D,G.Cancel=G.CanceledError,G.all=function(t){return Promise.all(t)},G.spread=t0,G.isAxiosError=n0,G.mergeConfig=en,G.AxiosHeaders=Be,G.formToJSON=e=>Dh(x.isHTMLForm(e)?new FormData(e):e),G.getAdapter=Qh.getAdapter,G.HttpStatusCode=r0,G.default=G;var s0=G,o0="1.11.26",i0={version:o0};const l0=!1,a0=i0.version,ed="v5.0",td=["v2","v3","v4","v5","canary"],_e="@tryghost/content-api",u0=e=>{let t;return e==="v5"||e===void 0||e.match(/^v5\.\d+/)?t="/content/":e.match(/^v\d+\.\d+/)?t=`/${/^(v\d+)\.\d+/.exec(e)[1]}/content/`:t=`/${e}/content/`,t},c0=({url:e,method:t,params:n,headers:r})=>s0[t](e,{params:n,paramsSerializer:s=>Object.keys(s).reduce((o,i)=>{const l=encodeURIComponent([].concat(s[i]).join(","));return o.concat(`${i}=${l}`)},[]).join("&"),headers:r});function va({url:e,key:t,host:n,version:r,userAgent:s,ghostPath:o="ghost",makeRequest:i=c0}){if(n&&(console.warn(`${_e}: The 'host' parameter is deprecated, please use 'url' instead`),e||(e=n)),this instanceof va)return va({url:e,key:t,version:r,userAgent:s,ghostPath:o,makeRequest:i});if(r===void 0)throw new Error(`${_e} Config Missing: 'version' is required. E.g. ${td.join(",")}`);let l;if(typeof r=="boolean")r===!0&&(l=ed),r=void 0;else{if(r&&!td.includes(r)&&!r.match(/^v\d+\.\d+/))throw new Error(`${_e} Config Invalid: 'version' ${r} is not supported`);r==="canary"?(console.warn(`${_e}: The 'version' parameter has a deprecated format 'canary', please use 'v{major}.{minor}' format instead`),l=ed):r.match(/^v\d+$/)?(console.warn(`${_e}: The 'version' parameter has a deprecated format 'v{major}', please use 'v{major}.{minor}' format instead`),l=`${r}.0`):l=r}if(!e)throw new Error(`${_e} Config Missing: 'url' is required. E.g. 'https://site.com'`);if(!/https?:\/\//.test(e))throw new Error(`${_e} Config Invalid: 'url' ${e} requires a protocol. E.g. 'https://site.com'`);if(e.endsWith("/"))throw new Error(`${_e} Config Invalid: 'url' ${e} must not have a trailing slash. E.g. 'https://site.com'`);if(o.endsWith("/")||o.startsWith("/"))throw new Error(`${_e} Config Invalid: 'ghostPath' ${o} must not have a leading or trailing slash. E.g. 'ghost'`);if(t&&!/[0-9a-f]{26}/.test(t))throw new Error(`${_e} Config Invalid: 'key' ${t} must have 26 hex characters`);s===void 0&&(s=l0);const a=["posts","authors","tags","pages","settings","tiers","newsletters","offers"].reduce((c,d)=>{function h(m={},v){return u(d,m,null,v)}function y(m,v={},f){if(!m||!m.id&&!m.slug)return Promise.reject(new Error(`${_e} read requires an id or slug.`));const p=Object.assign({},m,v);return u(d,p,m.id||`slug/${m.slug}`,f)}return Object.assign(c,{[d]:{read:y,browse:h}})},{});return delete a.settings.read,delete a.tiers.read,delete a.newsletters.read,delete a.offers.browse,a;function u(c,d,h,y=null){if(!y&&!t)return Promise.reject(new Error(`${_e} Config Missing: 'key' is required.`));delete d.id;const m=y?{Authorization:`GhostMembers ${y}`}:{};s&&(typeof s=="boolean"?m["User-Agent"]=`GhostContentSDK/${a0}`:m["User-Agent"]=s),l&&(m["Accept-Version"]=l),d=Object.assign({key:t},d);const v=`${e}/${o}/api${u0(r)}${c}/${h?h+"/":""}`;return i({url:v,method:"get",params:d,headers:m}).then(f=>Array.isArray(f.data[c])?f.data[c].length===1&&!f.data.meta?f.data[c][0]:Object.assign(f.data[c],{meta:f.data.meta}):f.data[c]).catch(f=>{if(f.response&&f.response.data&&f.response.data.errors){const p=f.response.data.errors[0],g=new Error(p.message),S=Object.keys(p);throw g.name=p.type,S.forEach(w=>{g[w]=p[w]}),g.response=f.response,g.request=f.request,g.config=f.config,g}else throw f})}}const f0={finalize:e=>{let t=[];for(const n of e)t.push(...d0(n));return t}};function h0(e){return e>=19968&&e<=40959||e>=12352&&e<=12543||e>=44032&&e<=55203||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=191471||e>=196608&&e<=205743||e>=191472&&e<=192095||e>=63744&&e<=64255||e>=194560&&e<=195103}function d0(e){const t=[];let n="";for(const r of e){const s=r.codePointAt(0);h0(s)?(n&&(t.push(n),n=""),t.push(r)):n+=r}return n&&t.push(n),t}const wa=new po.Encoder(Tm.Default,f0);class p0{constructor({adminUrl:t,apiKey:n,dir:r}){kd(this,Z);this.apiUrl=t,this.apiKey=n,this.api=new va({url:t,key:n,version:"v5.0"});const s=r==="rtl",o=r==="rtl"?"reverse":"forward";this.postsIndex=new po.Document({tokenize:o,rtl:s,document:{id:"id",index:["title","excerpt"],store:!0},encoder:wa}),this.authorsIndex=new po.Document({tokenize:o,rtl:s,document:{id:"id",index:["name"],store:!0},encoder:wa}),this.tagsIndex=new po.Document({tokenize:o,rtl:s,document:{id:"id",index:["name"],store:!0},encoder:wa}),this.init=this.init.bind(this),this.search=this.search.bind(this)}async init(){await He(this,Z,Ed).call(this),await He(this,Z,jd).call(this);let t=await this.api.tags.browse({limit:"10000",fields:"id,slug,name,url",order:"updated_at DESC",filter:"visibility:public"});(t||t.length>0)&&(t.length||(t=[t]),He(this,Z,Od).call(this,t))}search(t){const n=this.postsIndex.search(t,{enrich:!0}),r=this.authorsIndex.search(t,{enrich:!0}),s=this.tagsIndex.search(t,{enrich:!0});return{posts:He(this,Z,Mo).call(this,n),authors:He(this,Z,Mo).call(this,r),tags:He(this,Z,Mo).call(this,s)}}}Z=new WeakSet,Ed=async function(){const t=await He(this,Z,Pd).call(this);t.length>0&&He(this,Z,Td).call(this,t)},Pd=async function(){try{const t=`${this.apiUrl}/ghost/api/content/search-index/posts/?key=${this.apiKey}`;return(await(await fetch(t)).json()).posts}catch(t){return console.error("Error fetching posts:",t),[]}},Td=function(t){t.forEach(n=>{this.postsIndex.add(n)})},jd=async function(){const t=await He(this,Z,Ad).call(this);t.length>0&&He(this,Z,Nd).call(this,t)},Ad=async function(){try{const t=`${this.apiUrl}/ghost/api/content/search-index/authors/?key=${this.apiKey}`;return(await(await fetch(t)).json()).authors}catch(t){return console.error("Error fetching authors:",t),[]}},Nd=function(t){t.forEach(n=>{this.authorsIndex.add(n)})},Od=function(t){t.forEach(n=>{this.tagsIndex.add(n)})},Mo=function(t){const n=[],r={};return t.forEach(s=>{s.result.forEach(o=>{r[o.id]||(n.push(o.doc),r[o.id]=!0)})}),n};const g0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},m0={Authors:"الكتّاب",Cancel:"إلغاء","No matches found":"لا يوجد نتائج مطابقة",Posts:"منشورات","Search posts, tags and authors":"قم بالبحث عن المنشورات، الوسوم و الكتّاب","Show more results":"اظهر المزيد من النتائج",Tags:"الوسوم"},y0={Authors:"Автори",Cancel:"Отказ","No matches found":"Няма съвпадения",Posts:"Публикации","Search posts, tags and authors":"Търсене в публикации, етикети и автори","Show more results":"Покажи още резултати",Tags:"Етикети"},v0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},w0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},S0={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"},x0={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"},$0={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"},C0={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"},k0={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"},E0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},P0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},T0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},j0={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"},A0={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"},N0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},O0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},R0={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"},L0={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"},_0={Authors:"מחברים",Cancel:"ביטול","No matches found":"לא נמצאו התאמות",Posts:"פוסטים","Search posts, tags and authors":"חיפוש פוסטים, תגיות ומחברים","Show more results":"הצגת תוצאות נוספות",Tags:"תגיות"},D0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},I0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},F0={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"},z0={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"},M0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},U0={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"},B0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},b0={Authors:"작성자",Cancel:"취소","No matches found":"일치하는 결과가 없어요",Posts:"게시물","Search posts, tags and authors":"게시물, 태그, 작성자 검색","Show more results":"더 많은 결과 보기",Tags:"태그"},V0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},H0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},K0={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"},W0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},q0={Authors:"Нийтлэгчид",Cancel:"Цуцлах","No matches found":"Тохирох хайлтын үр дүн олдсонгүй",Posts:"Нийтлэлүүд","Search posts, tags and authors":"Нийтлэл, ангилал, нийтлэгчдээр хайх","Show more results":"Илүү олон үр дүн харуулах",Tags:"Ангилалууд"},J0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Q0={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"},Y0={Authors:"लेखकहरू",Cancel:"रद्द गर्नुहोस्","No matches found":"कुनै परिणाम भेटिएन",Posts:"पोस्टहरू","Search posts, tags and authors":"पोस्टहरू, ट्यागहरू र लेखकहरू खोज्नुहोस्","Show more results":"थप परिणामहरू देखाउनुहोस्",Tags:"ट्यागहरू"},X0={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"},G0={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Z0={Authors:"ਲੇਖਕ",Cancel:"ਰੱਦ ਕਰੋ","No matches found":"ਕੋਈ ਮੇਲ ਨਹੀਂ ਮਿਲਿਆ",Posts:"ਪੋਸਟਾਂ","Search posts, tags and authors":"ਪੋਸਟਾਂ, ਟੈਗ ਅਤੇ ਲੇਖਕ ਖੋਜੋ","Show more results":"ਹੋਰ ਨਤੀਜੇ ਦਿਖਾਓ",Tags:"ਟੈਗ"},e1={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"},t1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},n1={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"},r1={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"},s1={Authors:"Авторы",Cancel:"Отмена","No matches found":"Совпадений не найдено",Posts:"Записи","Search posts, tags and authors":"Поиск по записям, тегам и авторам","Show more results":"Показать больше результатов",Tags:"Теги"},o1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},i1={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"},l1={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"},a1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},u1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},c1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},f1={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"},h1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},d1={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"},p1={Authors:"Автори",Cancel:"Скасувати","No matches found":"Збігів не знайдено",Posts:"Публікації","Search posts, tags and authors":"Шукайте публікацій, теги та авторів","Show more results":"Показати більше результатів",Tags:"Теги"},g1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},m1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},y1={Authors:"Tác giả",Cancel:"Hủy bỏ","No matches found":"Không tìm thấy",Posts:"Bài viết","Search posts, tags and authors":"Tìm bài viết, chuyên mục & tác giả","Show more results":"Xem thêm kết quả",Tags:"Chuyên mục"},v1={Authors:"作者",Cancel:"取消","No matches found":"未找到匹配项",Posts:"文章","Search posts, tags and authors":"搜索文章、标签和作者","Show more results":"显示更多结果",Tags:"标签"},w1={Authors:"作者",Cancel:"取消","No matches found":"無相符結果",Posts:"文章","Search posts, tags and authors":"搜尋文章、標籤與作者","Show more results":"更多結果",Tags:"標籤"},S1={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},x1={Authors:"ஆசிரியர்கள்",Cancel:"ரத்து செய்","No matches found":"பொருத்தங்கள் எதுவும் இல்லை",Posts:"பதிவுகள்","Search posts, tags and authors":"பதிவுகள், குறிச்சொற்கள் மற்றும் ஆசிரியர்களைத் தேடுங்கள்","Show more results":"மேலும் முடிவுகளைக் காட்டு",Tags:"குறிச்சொற்கள்"};var nd;function rd(){return nd||(nd={"/ghost/i18n/locales/af/search.json":function(){return g0},"/ghost/i18n/locales/ar/search.json":function(){return m0},"/ghost/i18n/locales/bg/search.json":function(){return y0},"/ghost/i18n/locales/bn/search.json":function(){return v0},"/ghost/i18n/locales/bs/search.json":function(){return w0},"/ghost/i18n/locales/ca/search.json":function(){return S0},"/ghost/i18n/locales/cs/search.json":function(){return x0},"/ghost/i18n/locales/da/search.json":function(){return $0},"/ghost/i18n/locales/de/search.json":function(){return C0},"/ghost/i18n/locales/de-CH/search.json":function(){return k0},"/ghost/i18n/locales/el/search.json":function(){return E0},"/ghost/i18n/locales/en/search.json":function(){return P0},"/ghost/i18n/locales/eo/search.json":function(){return T0},"/ghost/i18n/locales/es/search.json":function(){return j0},"/ghost/i18n/locales/et/search.json":function(){return A0},"/ghost/i18n/locales/fa/search.json":function(){return N0},"/ghost/i18n/locales/fi/search.json":function(){return O0},"/ghost/i18n/locales/fr/search.json":function(){return R0},"/ghost/i18n/locales/gd/search.json":function(){return L0},"/ghost/i18n/locales/he/search.json":function(){return _0},"/ghost/i18n/locales/hi/search.json":function(){return D0},"/ghost/i18n/locales/hr/search.json":function(){return I0},"/ghost/i18n/locales/hu/search.json":function(){return F0},"/ghost/i18n/locales/id/search.json":function(){return z0},"/ghost/i18n/locales/is/search.json":function(){return M0},"/ghost/i18n/locales/it/search.json":function(){return U0},"/ghost/i18n/locales/ja/search.json":function(){return B0},"/ghost/i18n/locales/ko/search.json":function(){return b0},"/ghost/i18n/locales/kz/search.json":function(){return V0},"/ghost/i18n/locales/lt/search.json":function(){return H0},"/ghost/i18n/locales/lv/search.json":function(){return K0},"/ghost/i18n/locales/mk/search.json":function(){return W0},"/ghost/i18n/locales/mn/search.json":function(){return q0},"/ghost/i18n/locales/ms/search.json":function(){return J0},"/ghost/i18n/locales/nb/search.json":function(){return Q0},"/ghost/i18n/locales/ne/search.json":function(){return Y0},"/ghost/i18n/locales/nl/search.json":function(){return X0},"/ghost/i18n/locales/nn/search.json":function(){return G0},"/ghost/i18n/locales/pa/search.json":function(){return Z0},"/ghost/i18n/locales/pl/search.json":function(){return e1},"/ghost/i18n/locales/pt/search.json":function(){return t1},"/ghost/i18n/locales/pt-BR/search.json":function(){return n1},"/ghost/i18n/locales/ro/search.json":function(){return r1},"/ghost/i18n/locales/ru/search.json":function(){return s1},"/ghost/i18n/locales/si/search.json":function(){return o1},"/ghost/i18n/locales/sk/search.json":function(){return i1},"/ghost/i18n/locales/sl/search.json":function(){return l1},"/ghost/i18n/locales/sq/search.json":function(){return a1},"/ghost/i18n/locales/sr/search.json":function(){return u1},"/ghost/i18n/locales/sr-Cyrl/search.json":function(){return c1},"/ghost/i18n/locales/sv/search.json":function(){return f1},"/ghost/i18n/locales/th/search.json":function(){return h1},"/ghost/i18n/locales/tr/search.json":function(){return d1},"/ghost/i18n/locales/uk/search.json":function(){return p1},"/ghost/i18n/locales/ur/search.json":function(){return g1},"/ghost/i18n/locales/uz/search.json":function(){return m1},"/ghost/i18n/locales/vi/search.json":function(){return y1},"/ghost/i18n/locales/zh/search.json":function(){return v1},"/ghost/i18n/locales/zh-Hant/search.json":function(){return w1},"/ghost/i18n/locales/sw/search.json":function(){return S1},"/ghost/i18n/locales/ta/search.json":function(){return x1}})}function sd(e){function t(n){var r=od(n,e);if(r!==null)return rd()[r]();throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}return t.resolve=function(n){var r=od(n,e);return r!==null?r:require.resolve(n)},t}function od(e,t){var n=$1(e);e=No(e);var r;e[0]==="/"&&(t="");for(var s=rd(),o=["",".js",".json"];n?r=No(t+"/node_modules/"+e):r=No(t+"/"+e),!r.endsWith("/..");){for(var i=0;i<o.length;i++){var l=r+o[i];if(s[l])return l}if(!n)break;var a=No(t+"/..");if(a===t)break;t=a}return null}function $1(e){var t=e[0];if(t==="/"||t==="\\")return!1;var n=e[1],r=e[2];return!(t==="."&&(!n||n==="/"||n==="\\")||t==="."&&n==="."&&(!r||r==="/"||r==="\\")||n===":"&&(r==="/"||r==="\\"))}function No(e){e=e.replace(/\\/g,"/");for(var t=e.split("/"),n=t[0]==="",r=1;r<t.length;r++)(t[r]==="."||t[r]==="")&&t.splice(r--,1);for(var r=1;r<t.length;r++)t[r]===".."&&r>0&&t[r-1]!==".."&&t[r-1]!=="."&&(t.splice(--r,2),r--);return e=t.join("/"),n&&e[0]!=="/"?e="/"+e:e.length===0&&(e="."),e}var Oo={exports:{}};const L=e=>typeof e=="string",Yr=()=>{let e,t;const n=new Promise((r,s)=>{e=r,t=s});return n.resolve=e,n.reject=t,n},id=e=>e==null?"":""+e,C1=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},k1=/###/g,ld=e=>e&&e.indexOf("###")>-1?e.replace(k1,"."):e,ad=e=>!e||L(e),Xr=(e,t,n)=>{const r=L(t)?t.split("."):t;let s=0;for(;s<r.length-1;){if(ad(e))return{};const o=ld(r[s]);!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++s}return ad(e)?{}:{obj:e,k:ld(r[s])}},ud=(e,t,n)=>{const{obj:r,k:s}=Xr(e,t,Object);if(r!==void 0||t.length===1){r[s]=n;return}let o=t[t.length-1],i=t.slice(0,t.length-1),l=Xr(e,i,Object);for(;l.obj===void 0&&i.length;)o=`${i[i.length-1]}.${o}`,i=i.slice(0,i.length-1),l=Xr(e,i,Object),l&&l.obj&&typeof l.obj[`${l.k}.${o}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${o}`]=n},E1=(e,t,n,r)=>{const{obj:s,k:o}=Xr(e,t,Object);s[o]=s[o]||[],s[o].push(n)},Ro=(e,t)=>{const{obj:n,k:r}=Xr(e,t);if(n)return n[r]},P1=(e,t,n)=>{const r=Ro(e,n);return r!==void 0?r:Ro(t,n)},cd=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?L(e[r])||e[r]instanceof String||L(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):cd(e[r],t[r],n):e[r]=t[r]);return e},Mn=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var T1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const j1=e=>L(e)?e.replace(/[&<>"'\/]/g,t=>T1[t]):e;class A1{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const N1=[" ",",","?","!",";"],O1=new A1(20),R1=(e,t,n)=>{t=t||"",n=n||"";const r=N1.filter(i=>t.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const s=O1.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let o=!s.test(e);if(!o){const i=e.indexOf(n);i>0&&!s.test(e.substring(0,i))&&(o=!0)}return o},Sa=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let s=e;for(let o=0;o<r.length;){if(!s||typeof s!="object")return;let i,l="";for(let a=o;a<r.length;++a)if(a!==o&&(l+=n),l+=r[a],i=s[l],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&a<r.length-1)continue;o+=a-o+1;break}s=i}return s},Lo=e=>e&&e.replace("_","-"),L1={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class _o{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||L1,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,s){return s&&!this.debug?null:(L(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new _o(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new _o(this.logger,t)}}var et=new _o;class Do{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const s=this.observers[r].get(n)||0;this.observers[r].set(n,s+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(i=>{let[l,a]=i;for(let u=0;u<a;u++)l(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[l,a]=i;for(let u=0;u<a;u++)l.apply(l,[t,...r])})}}class fd extends Do{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,i=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],r&&(Array.isArray(r)?l.push(...r):L(r)&&o?l.push(...r.split(o)):l.push(r)));const a=Ro(this.data,l);return!a&&!n&&!r&&t.indexOf(".")>-1&&(t=l[0],n=l[1],r=l.slice(2).join(".")),a||!i||!L(r)?a:Sa(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,s){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let l=[t,n];r&&(l=l.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(l=t.split("."),s=n,n=l[1]),this.addNamespaces(n),ud(this.data,l,s),o.silent||this.emit("added",t,n,r,s)}addResources(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(L(r[o])||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});s.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,s,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),s=r,r=n,n=l[1]),this.addNamespaces(n);let a=Ro(this.data,l)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),s?cd(a,r,o):a={...a,...r},ud(this.data,l,a),i.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(s=>n[s]&&Object.keys(n[s]).length>0)}toJSON(){return this.data}}var hd={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,s){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,s))}),t}};const dd={};class Io extends Do{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),C1(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=et.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const i=r&&t.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!R1(t,r,s);if(i&&!l){const a=t.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:t,namespaces:L(o)?[o]:o};const u=t.split(r);(r!==s||r===s&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),t=u.join(s)}return{key:t,namespaces:L(o)?[o]:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const s=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:l}=this.extractFromKey(t[t.length-1],n),a=l[l.length-1],u=n.lng||this.language,c=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const w=n.nsSeparator||this.options.nsSeparator;return s?{res:`${a}${w}${i}`,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(n)}:`${a}${w}${i}`}return s?{res:i,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(n)}:i}const d=this.resolve(t,n);let h=d&&d.res;const y=d&&d.usedKey||i,m=d&&d.exactUsedKey||i,v=Object.prototype.toString.apply(h),f=["[object Number]","[object Function]","[object RegExp]"],p=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,S=!L(h)&&typeof h!="boolean"&&typeof h!="number";if(g&&h&&S&&f.indexOf(v)<0&&!(L(p)&&Array.isArray(h))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,h,{...n,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return s?(d.res=w,d.usedParams=this.getUsedParamsDetails(n),d):w}if(o){const w=Array.isArray(h),C=w?[]:{},$=w?m:y;for(const k in h)if(Object.prototype.hasOwnProperty.call(h,k)){const j=`${$}${o}${k}`;C[k]=this.translate(j,{...n,joinArrays:!1,ns:l}),C[k]===j&&(C[k]=h[k])}h=C}}else if(g&&L(p)&&Array.isArray(h))h=h.join(p),h&&(h=this.extendTranslation(h,t,n,r));else{let w=!1,C=!1;const $=n.count!==void 0&&!L(n.count),k=Io.hasDefaultValue(n),j=$?this.pluralResolver.getSuffix(u,n.count,n):"",A=n.ordinal&&$?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",M=$&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),be=M&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${j}`]||n[`defaultValue${A}`]||n.defaultValue;!this.isValidLookup(h)&&k&&(w=!0,h=be),this.isValidLookup(h)||(C=!0,h=i);const re=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:h,tt=k&&be!==h&&this.options.updateMissing;if(C||w||tt){if(this.logger.log(tt?"updateKey":"missingKey",u,a,i,tt?be:h),o){const ae=this.resolve(i,{...n,keySeparator:!1});ae&&ae.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 Te=[];const nt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&nt&&nt[0])for(let ae=0;ae<nt.length;ae++)Te.push(nt[ae]);else this.options.saveMissingTo==="all"?Te=this.languageUtils.toResolveHierarchy(n.lng||this.language):Te.push(n.lng||this.language);const Bn=(ae,Ve,tn)=>{const T=k&&tn!==h?tn:re;this.options.missingKeyHandler?this.options.missingKeyHandler(ae,a,Ve,T,tt,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(ae,a,Ve,T,tt,n),this.emit("missingKey",ae,a,Ve,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&$?Te.forEach(ae=>{const Ve=this.pluralResolver.getSuffixes(ae,n);M&&n[`defaultValue${this.options.pluralSeparator}zero`]&&Ve.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ve.push(`${this.options.pluralSeparator}zero`),Ve.forEach(tn=>{Bn([ae],i+tn,n[`defaultValue${tn}`]||be)})}):Bn(Te,i,be))}h=this.extendTranslation(h,t,n,d,r),C&&h===i&&this.options.appendNamespaceToMissingKey&&(h=`${a}:${i}`),(C||w)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${i}`:i,w?h:void 0):h=this.options.parseMissingKeyHandler(h))}return s?(d.res=h,d.usedParams=this.getUsedParamsDetails(n),d):h}extendTranslation(t,n,r,s,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=L(t)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const h=t.match(this.interpolator.nestingRegexp);c=h&&h.length}let d=r.replace&&!L(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,r.lng||this.language||s.usedLng,r),u){const h=t.match(this.interpolator.nestingRegexp),y=h&&h.length;c<y&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&s&&s.res&&(r.lng=this.language||s.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var h=arguments.length,y=new Array(h),m=0;m<h;m++)y[m]=arguments[m];return o&&o[0]===y[0]&&!r.context?(i.logger.warn(`It seems you are nesting recursively key: ${y[0]} in key: ${n[0]}`),null):i.translate(...y,n)},r)),r.interpolation&&this.interpolator.reset()}const l=r.postProcess||this.options.postProcess,a=L(l)?[l]:l;return t!=null&&a&&a.length&&r.applyPostProcessor!==!1&&(t=hd.handle(a,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,s,o,i,l;return L(t)&&(t=[t]),t.forEach(a=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(a,n),c=u.key;s=c;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const h=n.count!==void 0&&!L(n.count),y=h&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),m=n.context!==void 0&&(L(n.context)||typeof n.context=="number")&&n.context!=="",v=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(f=>{this.isValidLookup(r)||(l=f,!dd[`${v[0]}-${f}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(dd[`${v[0]}-${f}`]=!0,this.logger.warn(`key "${s}" for languages "${v.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),v.forEach(p=>{if(this.isValidLookup(r))return;i=p;const g=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(g,c,p,f,n);else{let w;h&&(w=this.pluralResolver.getSuffix(p,n.count,n));const C=`${this.options.pluralSeparator}zero`,$=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(g.push(c+w),n.ordinal&&w.indexOf($)===0&&g.push(c+w.replace($,this.options.pluralSeparator)),y&&g.push(c+C)),m){const k=`${c}${this.options.contextSeparator}${n.context}`;g.push(k),h&&(g.push(k+w),n.ordinal&&w.indexOf($)===0&&g.push(k+w.replace($,this.options.pluralSeparator)),y&&g.push(k+C))}}let S;for(;S=g.pop();)this.isValidLookup(r)||(o=S,r=this.getResource(p,f,S,n))}))})}),{res:r,usedKey:s,exactUsedKey:o,usedLng:i,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,s):this.resourceStore.getResource(t,n,r,s)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!L(t.replace);let s=r?t.replace:t;if(r&&typeof t.count<"u"&&(s.count=t.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!r){s={...s};for(const o of n)delete s[o]}return s}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const xa=e=>e.charAt(0).toUpperCase()+e.slice(1);class pd{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=et.create("languageUtils")}getScriptPartFromCode(t){if(t=Lo(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Lo(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(L(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let s=Intl.getCanonicalLocales(t)[0];if(s&&this.options.lowerCaseLng&&(s=s.toLowerCase()),s)return s}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(s=>s.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=xa(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=xa(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=xa(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const s=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(s))&&(n=s)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(o=>{if(o===s)return o;if(!(o.indexOf("-")<0&&s.indexOf("-")<0)&&(o.indexOf("-")>0&&s.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===s||o.indexOf(s)===0&&s.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),L(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),s=[],o=i=>{i&&(this.isSupportedCode(i)?s.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return L(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):L(t)&&o(this.formatLanguageCode(t)),r.forEach(i=>{s.indexOf(i)<0&&o(this.formatLanguageCode(i))}),s}}let _1=[{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}],D1={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const I1=["v1","v2","v3"],F1=["v4"],gd={zero:0,one:1,two:2,few:3,many:4,other:5},z1=()=>{const e={};return _1.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:D1[t.fc]}})}),e};class M1{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=et.create("pluralResolver"),(!this.options.compatibilityJSON||F1.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=z1(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const r=Lo(t==="dev"?"en":t),s=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:s});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let i;try{i=new Intl.PluralRules(r,{type:s})}catch{if(!t.match(/-|_/))return;const a=this.languageUtils.getLanguagePartFromCode(t);i=this.getRule(a,n)}return this.pluralRulesCache[o]=i,i}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(s=>`${n}${s}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((s,o)=>gd[s]-gd[o]).map(s=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s}`):r.numbers.map(s=>this.getSuffix(t,s,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(t,r);return s?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${s.select(n)}`:this.getSuffixRetroCompatible(s,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let s=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));const o=()=>this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString();return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?`_plural_${s.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!I1.includes(this.options.compatibilityJSON)}}const md=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=P1(e,t,n);return!o&&s&&L(n)&&(o=Sa(e,n,r),o===void 0&&(o=Sa(t,n,r))),o},$a=e=>e.replace(/\$/g,"$$$$");class U1{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=et.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:s,prefix:o,prefixEscaped:i,suffix:l,suffixEscaped:a,formatSeparator:u,unescapeSuffix:c,unescapePrefix:d,nestingPrefix:h,nestingPrefixEscaped:y,nestingSuffix:m,nestingSuffixEscaped:v,nestingOptionsSeparator:f,maxReplaces:p,alwaysFormat:g}=t.interpolation;this.escape=n!==void 0?n:j1,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=o?Mn(o):i||"{{",this.suffix=l?Mn(l):a||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=h?Mn(h):y||Mn("$t("),this.nestingSuffix=m?Mn(m):v||Mn(")"),this.nestingOptionsSeparator=f||",",this.maxReplaces=p||1e3,this.alwaysFormat=g!==void 0?g:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,s){let o,i,l;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=y=>{if(y.indexOf(this.formatSeparator)<0){const p=md(n,a,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(p,void 0,r,{...s,...n,interpolationkey:y}):p}const m=y.split(this.formatSeparator),v=m.shift().trim(),f=m.join(this.formatSeparator).trim();return this.format(md(n,a,v,this.options.keySeparator,this.options.ignoreJSONStructure),f,r,{...s,...n,interpolationkey:v})};this.resetRegExp();const c=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,d=s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:y=>$a(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?$a(this.escape(y)):$a(y)}].forEach(y=>{for(l=0;o=y.regex.exec(t);){const m=o[1].trim();if(i=u(m),i===void 0)if(typeof c=="function"){const f=c(t,o,s);i=L(f)?f:""}else if(s&&Object.prototype.hasOwnProperty.call(s,m))i="";else if(d){i=o[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${t}`),i="";else!L(i)&&!this.useRawValueToEscape&&(i=id(i));const v=y.safeValue(i);if(t=t.replace(o[0],v),d?(y.regex.lastIndex+=i.length,y.regex.lastIndex-=o[0].length):y.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,o,i;const l=(a,u)=>{const c=this.nestingOptionsSeparator;if(a.indexOf(c)<0)return a;const d=a.split(new RegExp(`${c}[ ]*{`));let h=`{${d[1]}`;a=d[0],h=this.interpolate(h,i);const y=h.match(/'/g),m=h.match(/"/g);(y&&y.length%2===0&&!m||m.length%2!==0)&&(h=h.replace(/'/g,'"'));try{i=JSON.parse(h),u&&(i={...u,...i})}catch(v){return this.logger.warn(`failed parsing options string in nesting for key ${a}`,v),`${a}${c}${h}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,a};for(;s=this.nestingRegexp.exec(t);){let a=[];i={...r},i=i.replace&&!L(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const c=s[1].split(this.formatSeparator).map(d=>d.trim());s[1]=c.shift(),a=c,u=!0}if(o=n(l.call(this,s[1].trim(),i),i),o&&s[0]===t&&!L(o))return o;L(o)||(o=id(o)),o||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`),o=""),u&&(o=a.reduce((c,d)=>this.format(c,d,r.lng,{...r,interpolationkey:s[1].trim()}),o.trim())),t=t.replace(s[0],o),this.regexp.lastIndex=0}return t}}const B1=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const s=r[1].substring(0,r[1].length-1);t==="currency"&&s.indexOf(":")<0?n.currency||(n.currency=s.trim()):t==="relativetime"&&s.indexOf(":")<0?n.range||(n.range=s.trim()):s.split(";").forEach(i=>{if(i){const[l,...a]=i.split(":"),u=a.join(":").trim().replace(/^'+|'+$/g,""),c=l.trim();n[c]||(n[c]=u),u==="false"&&(n[c]=!1),u==="true"&&(n[c]=!0),isNaN(u)||(n[c]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},Un=e=>{const t={};return(n,r,s)=>{let o=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(o={...o,[s.interpolationkey]:void 0});const i=r+JSON.stringify(o);let l=t[i];return l||(l=e(Lo(r),s),t[i]=l),l(n)}};class b1{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=et.create("formatter"),this.options=t,this.formats={number:Un((n,r)=>{const s=new Intl.NumberFormat(n,{...r});return o=>s.format(o)}),currency:Un((n,r)=>{const s=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>s.format(o)}),datetime:Un((n,r)=>{const s=new Intl.DateTimeFormat(n,{...r});return o=>s.format(o)}),relativetime:Un((n,r)=>{const s=new Intl.RelativeTimeFormat(n,{...r});return o=>s.format(o,r.range||"day")}),list:Un((n,r)=>{const s=new Intl.ListFormat(n,{...r});return o=>s.format(o)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Un(n)}format(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(l=>l.indexOf(")")>-1)){const l=o.findIndex(a=>a.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,l)].join(this.formatSeparator)}return o.reduce((l,a)=>{const{formatName:u,formatOptions:c}=B1(a);if(this.formats[u]){let d=l;try{const h=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},y=h.locale||h.lng||s.locale||s.lng||r;d=this.formats[u](l,y,{...c,...s,...h})}catch(h){this.logger.warn(h)}return d}else this.logger.warn(`there was no format function for ${u}`);return l},t)}}const V1=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class H1 extends Do{constructor(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=s,this.logger=et.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,s.backend,s)}queueLoad(t,n,r,s){const o={},i={},l={},a={};return t.forEach(u=>{let c=!0;n.forEach(d=>{const h=`${u}|${d}`;!r.reload&&this.store.hasResourceBundle(u,d)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?i[h]===void 0&&(i[h]=!0):(this.state[h]=1,c=!1,i[h]===void 0&&(i[h]=!0),o[h]===void 0&&(o[h]=!0),a[d]===void 0&&(a[d]=!0)))}),c||(l[u]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(a)}}loaded(t,n,r){const s=t.split("|"),o=s[0],i=s[1];n&&this.emit("failedLoading",o,i,n),!n&&r&&this.store.addResourceBundle(o,i,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const l={};this.queue.forEach(a=>{E1(a.loaded,[o],i),V1(a,t),n&&a.errors.push(n),a.pendingCount===0&&!a.done&&(Object.keys(a.loaded).forEach(u=>{l[u]||(l[u]={});const c=a.loaded[u];c.length&&c.forEach(d=>{l[u][d]===void 0&&(l[u][d]=!0)})}),a.done=!0,a.errors.length?a.callback(a.errors):a.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(a=>!a.done)}read(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:s,wait:o,callback:i});return}this.readingCalls++;const l=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&c&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,s+1,o*2,i)},o);return}i(u,c)},a=this.backend[r].bind(this.backend);if(a.length===2){try{const u=a(t,n);u&&typeof u.then=="function"?u.then(c=>l(null,c)).catch(l):l(null,u)}catch(u){l(u)}return}return a(t,n,l)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();L(t)&&(t=this.languageUtils.toResolveHierarchy(t)),L(n)&&(n=[n]);const o=this.queueLoad(t,n,r,s);if(!o.toLoad.length)return o.pending.length||s(),null;o.toLoad.forEach(i=>{this.loadOne(i)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),s=r[0],o=r[1];this.read(s,o,"read",void 0,void 0,(i,l)=>{i&&this.logger.warn(`${n}loading namespace ${o} for language ${s} failed`,i),!i&&l&&this.logger.log(`${n}loaded namespace ${o} for language ${s}`,l),this.loaded(t,i,l)})}saveMissing(t,n,r,s,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const a={...i,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(t,n,r,s,a):c=u(t,n,r,s),c&&typeof c.then=="function"?c.then(d=>l(null,d)).catch(l):l(null,c)}catch(c){l(c)}else u(t,n,r,s,l,a)}!t||!t[0]||this.store.addResource(t[0],n,r,s)}}}const yd=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),L(e[1])&&(t.defaultValue=e[1]),L(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),vd=e=>(L(e.ns)&&(e.ns=[e.ns]),L(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),L(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Fo=()=>{},K1=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class Gr extends Do{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=vd(t),this.services={},this.logger=et,this.modules={external:[]},K1(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(L(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const s=yd();this.options={...s,...this.options,...vd(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...s.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?et.init(o(this.modules.logger),this.options):et.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=b1);const d=new pd(this.options);this.store=new fd(this.options.resources,this.options);const h=this.services;h.logger=et,h.resourceStore=this.store,h.languageUtils=d,h.pluralResolver=new M1(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(h.formatter=o(c),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new U1(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new H1(o(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(y){for(var m=arguments.length,v=new Array(m>1?m-1:0),f=1;f<m;f++)v[f-1]=arguments[f];t.emit(y,...v)}),this.modules.languageDetector&&(h.languageDetector=o(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=o(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new Io(this.services,this.options),this.translator.on("*",function(y){for(var m=arguments.length,v=new Array(m>1?m-1:0),f=1;f<m;f++)v[f-1]=arguments[f];t.emit(y,...v)}),this.modules.external.forEach(y=>{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Fo),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[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(c=>{this[c]=function(){return t.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return t.store[c](...arguments),t}});const a=Yr(),u=()=>{const c=(d,h)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(h),r(d,h)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),a}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fo;const s=L(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],i=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(u=>{u!=="cimode"&&o.indexOf(u)<0&&o.push(u)})};s?i(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(a=>i(a)),this.options.preload&&this.options.preload.forEach(l=>i(l)),this.services.backendConnector.load(o,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(l)})}else r(null)}reloadResources(t,n,r){const s=Yr();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=Fo),this.services.backendConnector.reload(t,n,o=>{s.resolve(),r(o)}),s}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&hd.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const s=Yr();this.emit("languageChanging",t);const o=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},i=(a,u)=>{u?(o(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,s.resolve(function(){return r.t(...arguments)}),n&&n(a,function(){return r.t(...arguments)})},l=a=>{!t&&!a&&this.services.languageDetector&&(a=[]);const u=L(a)?a:this.services.languageUtils.getBestMatchFromCodes(a);u&&(this.language||o(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,c=>{i(c,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),s}getFixedT(t,n,r){var s=this;const o=function(i,l){let a;if(typeof l!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),d=2;d<u;d++)c[d-2]=arguments[d];a=s.options.overloadTranslationOptionHandler([i,l].concat(c))}else a={...l};a.lng=a.lng||o.lng,a.lngs=a.lngs||o.lngs,a.ns=a.ns||o.ns,a.keyPrefix!==""&&(a.keyPrefix=a.keyPrefix||r||o.keyPrefix);const h=s.options.keySeparator||".";let y;return a.keyPrefix&&Array.isArray(i)?y=i.map(m=>`${a.keyPrefix}${h}${m}`):y=a.keyPrefix?`${a.keyPrefix}${h}${i}`:i,s.t(y,a)};return L(t)?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(l,a)=>{const u=this.services.backendConnector.state[`${l}|${a}`];return u===-1||u===0||u===2};if(n.precheck){const l=n.precheck(this,i);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,t)&&(!s||i(o,t)))}loadNamespaces(t,n){const r=Yr();return this.options.ns?(L(t)&&(t=[t]),t.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Yr();L(t)&&(t=[t]);const s=this.options.preload||[],o=t.filter(i=>s.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return o.length?(this.options.preload=s.concat(o),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new pd(yd());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Gr(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fo;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const s={...this.options,...t,isClone:!0},o=new Gr(s);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(l=>{o[l]=this[l]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new fd(this.store.data,s),o.services.resourceStore=o.store),o.translator=new Io(o.services,s),o.translator.on("*",function(l){for(var a=arguments.length,u=new Array(a>1?a-1:0),c=1;c<a;c++)u[c-1]=arguments[c];o.emit(l,...u)}),o.init(s,n),o.translator.options=s,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const wd=Gr.createInstance();wd.createInstance=Gr.createInstance;var W1=wd;const q1=W1,Sd=["af","ar","bg","bn","bs","ca","cs","da","de","de-CH","el","en","eo","es","et","fa","fi","fr","gd","he","hi","hr","hu","id","is","it","ja","ko","kz","lt","lv","mk","mn","ms","nb","ne","nl","nn","pa","pl","pt","pt-BR","ro","ru","si","sk","sl","sq","sr","sr-Cyrl","sv","th","tr","uk","ur","uz","vi","zh","zh-Hant","sw","ta"];function xd(e,t){return e.reduce((n,r)=>{let s;try{s=sd("/ghost/i18n/lib")(`../locales/${r}/${t}.json`)}catch{s=sd("/ghost/i18n/lib")(`../locales/en/${t}.json`)}return n[r]={[t]:{...s,...s.default&&typeof s.default=="object"?s.default:{}}},n},{})}Oo.exports=(e="en",t="portal")=>{const n=q1.createInstance(),r={prefix:"{",suffix:"}"};let s=xd(Sd,t);return n.init({lng:e,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:{no:["nb","en"],default:["en"]},ns:t,defaultNS:t,interpolation:r,resources:s}),n},Oo.exports.SUPPORTED_LOCALES=Sd,Oo.exports.generateResources=xd;var J1=Oo.exports,Q1=J1;const Y1=ve(Q1);class X1 extends ct.Component{constructor(t){super(t);const n=this.props.locale||"en",r=Y1(n,"search"),s=r.dir()||"ltr",o=new p0({adminUrl:t.adminUrl,apiKey:t.apiKey,dir:s});this.state={searchIndex:o,showPopup:!1,indexStarted:!1,indexComplete:!1,t:r.t,dir:s},this.inputRef=ct.createRef()}componentDidMount(){this.initSetup()}componentDidUpdate(t,n){var r,s,o;if(n.showPopup!==this.state.showPopup)try{this.state.showPopup?(this.bodyScroll=(o=(s=(r=window.document)==null?void 0:r.body)==null?void 0:s.style)==null?void 0:o.overflow,window.document.body.style.overflow="hidden"):window.document.body.style.overflow=this.bodyScroll||""}catch{}this.state.showPopup!==(n==null?void 0:n.showPopup)&&!this.state.showPopup&&this.setState({searchValue:""}),this.state.showPopup&&!this.state.indexStarted&&this.setupSearchIndex()}async setupSearchIndex(){this.setState({indexStarted:!0}),await this.state.searchIndex.init(),this.setState({indexComplete:!0})}componentWillUnmount(){window.removeEventListener("hashchange",this.hashHandler,!1),window.removeEventListener("keydown",this.handleKeyDown,!1)}initSetup(){this.handleSearchUrl(),this.addKeyboardShortcuts(),this.setupCustomTriggerButton(),this.hashHandler=()=>{this.handleSearchUrl()},window.addEventListener("hashchange",this.hashHandler,!1)}setupCustomTriggerButton(){this.clickHandler=t=>{t.preventDefault(),this.setState({showPopup:!0});const n=document.createElement("input");n.style.opacity="0",n.style.position="fixed",n.style.top="0",document.body.appendChild(n),n.focus(),setTimeout(()=>{this.inputRef.current.focus(),document.body.removeChild(n)},150)},this.customTriggerButtons=this.getCustomTriggerButtons(),this.customTriggerButtons.forEach(t=>{t.removeEventListener("click",this.clickHandler),t.addEventListener("click",this.clickHandler)})}getCustomTriggerButtons(){return document.querySelectorAll("[data-ghost-search]")||[]}handleSearchUrl(){const[t]=window.location.hash.substr(1).split("?");(t==="/search"||t==="/search/")&&(this.setState({showPopup:!0}),window.history.replaceState("",document.title,window.location.pathname))}addKeyboardShortcuts(){const t=this.getCustomTriggerButtons();t!=null&&t.length&&(this.handleKeyDown=n=>{if(n.key==="k"&&n.metaKey)return this.setState({showPopup:!0}),n.preventDefault(),n.stopPropagation(),!1},document.addEventListener("keydown",this.handleKeyDown))}render(){return P.jsx(pe.Provider,{value:{page:"search",showPopup:this.state.showPopup,adminUrl:this.props.adminUrl,stylesUrl:this.props.stylesUrl,searchIndex:this.state.searchIndex,indexComplete:this.state.indexComplete,searchValue:this.state.searchValue,inputRef:this.inputRef,onAction:()=>{},dispatch:(t,n)=>{t==="update"&&this.setState({...this.state,...n})},t:this.state.t,dir:this.state.dir},children:P.jsx(Uf,{})})}}const $d="sodo-search-root";function G1(){const e=document.createElement("div");e.id=$d,document.body.appendChild(e)}function Z1(){const e=document.querySelector("script[data-sodo-search]");if(e){const t=e.dataset.sodoSearch,n=e.dataset.key,r=e.dataset.styles,s=e.dataset.locale||"en";return{adminUrl:t,apiKey:n,stylesUrl:r,locale:s}}return{}}function ev(){G1()}function tv(){var o;const{adminUrl:e,apiKey:t,stylesUrl:n,locale:r}=Z1(),s=(o=e||window.location.origin)==null?void 0:o.replace(/\/+$/,"");ev(),Bg.render(P.jsx(ct.StrictMode,{children:P.jsx(X1,{adminUrl:s,apiKey:t,stylesUrl:n,locale:r})}),document.getElementById($d))}tv();const nv=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}))});
50
+ `,n=this.context.stylesUrl;return n?P.jsxs(P.Fragment,{children:[P.jsx("link",{rel:"stylesheet",href:n}),P.jsx("style",{dangerouslySetInnerHTML:{__html:t}}),P.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]}):P.jsxs(P.Fragment,{children:[P.jsx("style",{dangerouslySetInnerHTML:{__html:t}}),P.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]})}renderFrameContainer(){const t=yp(),n={...t.frame.common};return P.jsx("div",{style:t.modalContainer,className:"gh-root-frame",children:P.jsxs(hp,{style:n,title:"portal-popup",head:this.renderFrameStyles(),searchdir:this.context.dir,children:[P.jsx("div",{onClick:r=>this.handlePopupClose(r),className:"absolute top-0 bottom-0 left-0 right-0 block backdrop-blur-[2px] animate-fadein z-0 bg-gradient-to-br from-[rgba(0,0,0,0.2)] to-[rgba(0,0,0,0.1)]"}),P.jsx(Hc,{})]})})}render(){const{showPopup:t}=this.context;return t?this.renderFrameContainer():null}}io(Qc,"contextType",fe);var A;function se(e,t,n){const r=typeof n,s=typeof e;if(r!=="undefined"){if(s!=="undefined"){if(n){if(s==="function"&&r===s)return function(l){return e(n(l))};if(t=e.constructor,t===n.constructor){if(t===Array)return n.concat(e);if(t===Map){var o=new Map(n);for(var i of e)o.set(i[0],i[1]);return o}if(t===Set){i=new Set(n);for(o of e.values())i.add(o);return i}}}return e}return n}return s==="undefined"?t:e}function X(){return Object.create(null)}function _e(e){return typeof e=="string"}function Er(e){return typeof e=="object"}function Ip(e){const t=[];for(const n of e.keys())t.push(n);return t}function Tr(e,t){if(_e(t))e=e[t];else for(let n=0;e&&n<t.length;n++)e=e[t[n]];return e}function Mp(e){let t=0;for(let n=0,r;n<e.length;n++)(r=e[n])&&t<r.length&&(t=r.length);return t}const Dp=/[^\p{L}\p{N}]+/u,Fp=/(\d{3})/g,Up=/(\D)(\d{3})/g,Vp=/(\d{3})(\D)/g,Yc=/[\u0300-\u036f]/g;function jr(e={}){if(!this||this.constructor!==jr)return new jr(...arguments);if(arguments.length)for(e=0;e<arguments.length;e++)this.assign(arguments[e]);else this.assign(e)}A=jr.prototype,A.assign=function(e){this.normalize=se(e.normalize,!0,this.normalize);let t=e.include,n=t||e.exclude||e.split,r;if(n||n===""){if(typeof n=="object"&&n.constructor!==RegExp){let s="";r=!t,t||(s+="\\p{Z}"),n.letter&&(s+="\\p{L}"),n.number&&(s+="\\p{N}",r=!!t),n.symbol&&(s+="\\p{S}"),n.punctuation&&(s+="\\p{P}"),n.control&&(s+="\\p{C}"),(n=n.char)&&(s+=typeof n=="object"?n.join(""):n);try{this.split=new RegExp("["+(t?"^":"")+s+"]+","u")}catch{this.split=/\s+/}}else this.split=n,r=n===!1||2>"a1a".split(n).length;this.numeric=se(e.numeric,r)}else{try{this.split=se(this.split,Dp)}catch{this.split=/\s+/}this.numeric=se(e.numeric,se(this.numeric,!0))}if(this.prepare=se(e.prepare,null,this.prepare),this.finalize=se(e.finalize,null,this.finalize),n=e.filter,this.filter=typeof n=="function"?n:se(n&&new Set(n),null,this.filter),this.dedupe=se(e.dedupe,!0,this.dedupe),this.matcher=se((n=e.matcher)&&new Map(n),null,this.matcher),this.mapper=se((n=e.mapper)&&new Map(n),null,this.mapper),this.stemmer=se((n=e.stemmer)&&new Map(n),null,this.stemmer),this.replacer=se(e.replacer,null,this.replacer),this.minlength=se(e.minlength,1,this.minlength),this.maxlength=se(e.maxlength,1024,this.maxlength),this.rtl=se(e.rtl,!1,this.rtl),(this.cache=n=se(e.cache,!0,this.cache))&&(this.H=null,this.S=typeof n=="number"?n:2e5,this.B=new Map,this.G=new Map,this.L=this.K=128),this.h="",this.M=null,this.A="",this.N=null,this.matcher)for(const s of this.matcher.keys())this.h+=(this.h?"|":"")+s;if(this.stemmer)for(const s of this.stemmer.keys())this.A+=(this.A?"|":"")+s;return this},A.addStemmer=function(e,t){return this.stemmer||(this.stemmer=new Map),this.stemmer.set(e,t),this.A+=(this.A?"|":"")+e,this.N=null,this.cache&&Ft(this),this},A.addFilter=function(e){return typeof e=="function"?this.filter=e:(this.filter||(this.filter=new Set),this.filter.add(e)),this.cache&&Ft(this),this},A.addMapper=function(e,t){return typeof e=="object"?this.addReplacer(e,t):1<e.length?this.addMatcher(e,t):(this.mapper||(this.mapper=new Map),this.mapper.set(e,t),this.cache&&Ft(this),this)},A.addMatcher=function(e,t){return typeof e=="object"?this.addReplacer(e,t):2>e.length&&(this.dedupe||this.mapper)?this.addMapper(e,t):(this.matcher||(this.matcher=new Map),this.matcher.set(e,t),this.h+=(this.h?"|":"")+e,this.M=null,this.cache&&Ft(this),this)},A.addReplacer=function(e,t){return typeof e=="string"?this.addMatcher(e,t):(this.replacer||(this.replacer=[]),this.replacer.push(e,t),this.cache&&Ft(this),this)},A.encode=function(e){if(this.cache&&e.length<=this.K)if(this.H){if(this.B.has(e))return this.B.get(e)}else this.H=setTimeout(Ft,50,this);this.normalize&&(typeof this.normalize=="function"?e=this.normalize(e):e=Yc?e.normalize("NFKD").replace(Yc,"").toLowerCase():e.toLowerCase()),this.prepare&&(e=this.prepare(e)),this.numeric&&3<e.length&&(e=e.replace(Up,"$1 $2").replace(Vp,"$1 $2").replace(Fp,"$1 "));const t=!(this.dedupe||this.mapper||this.filter||this.matcher||this.stemmer||this.replacer);let n=[],r=this.split||this.split===""?e.split(this.split):e;for(let o=0,i,l;o<r.length;o++)if((i=l=r[o])&&!(i.length<this.minlength||i.length>this.maxlength)){if(t)n.push(i);else if(!this.filter||(typeof this.filter=="function"?this.filter(i):!this.filter.has(i))){if(this.cache&&i.length<=this.L)if(this.H){var s=this.G.get(i);if(s||s===""){s&&n.push(s);continue}}else this.H=setTimeout(Ft,50,this);if(this.stemmer&&2<i.length&&(this.N||(this.N=new RegExp("(?!^)("+this.A+")$")),i=i.replace(this.N,u=>this.stemmer.get(u))),i&&(this.mapper||this.dedupe&&1<i.length)){s="";for(let u=0,a="",f,p;u<i.length;u++)f=i.charAt(u),f===a&&this.dedupe||((p=this.mapper&&this.mapper.get(f))||p===""?p===a&&this.dedupe||!(a=p)||(s+=p):s+=a=f);i=s}if(this.matcher&&1<i.length&&(this.M||(this.M=new RegExp("("+this.h+")","g")),i=i.replace(this.M,u=>this.matcher.get(u))),i&&this.replacer)for(s=0;i&&s<this.replacer.length;s+=2)i=i.replace(this.replacer[s],this.replacer[s+1]);this.cache&&l.length<=this.L&&(this.G.set(l,i),this.G.size>this.S&&(this.G.clear(),this.L=this.L/1.1|0)),i&&n.push(i)}}return this.finalize&&(n=this.finalize(n)||n),this.cache&&e.length<=this.K&&(this.B.set(e,n),this.B.size>this.S&&(this.B.clear(),this.K=this.K/1.1|0)),n};function Ft(e){e.H=null,e.B.clear(),e.G.clear()}let Cn,Nr;async function Bp(e){e=e.data;var t=e.task;const n=e.id;let r=e.args;switch(t){case"init":Nr=e.options||{},(t=e.factory)?(Function("return "+t)()(self),Cn=new self.FlexSearch.Index(Nr),delete self.FlexSearch):Cn=new Ke(Nr),postMessage({id:n});break;default:let s;t==="export"&&(r[1]?(r[0]=Nr.export,r[2]=0,r[3]=1):r=null),t==="import"?r[0]&&(e=await Nr.import.call(Cn,r[0]),Cn.import(r[0],e)):(s=r&&Cn[t].apply(Cn,r))&&s.then&&(s=await s),postMessage(t==="search"?{id:n,msg:s}:{id:n})}}function ml(e){Ar.call(e,"add"),Ar.call(e,"append"),Ar.call(e,"search"),Ar.call(e,"update"),Ar.call(e,"remove")}let yl,Jc,Ks;function Hp(){yl=Ks=0}function Ar(e){this[e+"Async"]=function(){const t=arguments;var n=t[t.length-1];let r;if(typeof n=="function"&&(r=n,delete t[t.length-1]),yl?Ks||(Ks=Date.now()-Jc>=this.priority*this.priority*3):(yl=setTimeout(Hp,0),Jc=Date.now()),Ks){const o=this;return new Promise(i=>{setTimeout(function(){i(o[e+"Async"].apply(o,t))},0)})}const s=this[e].apply(this,t);return n=s.then?s:new Promise(o=>o(s)),r&&n.then(r),n}}let Pn=0;function Lr(e={}){function t(i){function l(u){u=u.data||u;const a=u.id,f=a&&s.h[a];f&&(f(u.msg),delete s.h[a])}if(this.worker=i,this.h=X(),this.worker)return r?this.worker.on("message",l):this.worker.onmessage=l,e.config?new Promise(function(u){s.h[++Pn]=function(){u(s),1e9<Pn&&(Pn=0)},s.worker.postMessage({id:Pn,task:"init",factory:n,options:e})}):(this.worker.postMessage({task:"init",factory:n,options:e}),this.priority=e.priority||4,this)}if(!this||this.constructor!==Lr)return new Lr(e);let n=typeof self<"u"?self._factory:typeof window<"u"?window._factory:null;n&&(n=n.toString());const r=typeof window>"u",s=this,o=Kp(n,r,e.worker);return o.then?o.then(function(i){return t.call(s,i)}):t.call(this,o)}$t("add"),$t("append"),$t("search"),$t("update"),$t("remove"),$t("clear"),$t("export"),$t("import"),ml(Lr.prototype);function $t(e){Lr.prototype[e]=function(){const t=this,n=[].slice.call(arguments);var r=n[n.length-1];let s;return typeof r=="function"&&(s=r,n.pop()),r=new Promise(function(o){e==="export"&&typeof n[0]=="function"&&(n[0]=null),t.h[++Pn]=o,t.worker.postMessage({task:e,id:Pn,args:n})}),s?(r.then(s),this):r}}function Kp(e,t,n){return t?typeof module<"u"?new(require("worker_threads")).Worker(__dirname+"/worker/node.js"):Promise.resolve().then(()=>Hm).then(function(r){return new r.Worker("undefined/node/node.mjs")}):e?new window.Worker(URL.createObjectURL(new Blob(["onmessage="+Bp.toString()],{type:"text/javascript"}))):new window.Worker(typeof n=="string"?n:(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:G&&G.tagName.toUpperCase()==="SCRIPT"&&G.src||new URL("sodo-search.min.js",document.baseURI).href).replace("/worker.js","/worker/worker.js").replace("flexsearch.bundle.module.min.js","module/worker/worker.js"),{type:"module"})}function vl(e,t=0){let n=[],r=[];t&&(t=25e4/t*5e3|0);for(const s of e.entries())r.push(s),r.length===t&&(n.push(r),r=[]);return r.length&&n.push(r),n}function wl(e,t){t||(t=new Map);for(let n=0,r;n<e.length;n++)r=e[n],t.set(r[0],r[1]);return t}function Gc(e,t=0){let n=[],r=[];t&&(t=25e4/t*1e3|0);for(const s of e.entries())r.push([s[0],vl(s[1])[0]]),r.length===t&&(n.push(r),r=[]);return r.length&&n.push(r),n}function Xc(e,t){t||(t=new Map);for(let n=0,r,s;n<e.length;n++)r=e[n],s=t.get(r[0]),t.set(r[0],wl(r[1],s));return t}function qc(e){let t=[],n=[];for(const r of e.keys())n.push(r),n.length===25e4&&(t.push(n),n=[]);return n.length&&t.push(n),t}function Zc(e,t){t||(t=new Set);for(let n=0;n<e.length;n++)t.add(e[n]);return t}function Ws(e,t,n,r,s,o,i=0){const l=r&&r.constructor===Array;var u=l?r.shift():r;if(!u)return this.export(e,t,s,o+1);if((u=e((t?t+".":"")+(i+1)+"."+n,JSON.stringify(u)))&&u.then){const a=this;return u.then(function(){return Ws.call(a,e,t,n,l?r:null,s,o,i+1)})}return Ws.call(this,e,t,n,l?r:null,s,o,i+1)}function bc(e,t){let n="";for(const r of e.entries()){e=r[0];const s=r[1];let o="";for(let i=0,l;i<s.length;i++){l=s[i]||[""];let u="";for(let a=0;a<l.length;a++)u+=(u?",":"")+(t==="string"?'"'+l[a]+'"':l[a]);u="["+u+"]",o+=(o?",":"")+u}o='["'+e+'",['+o+"]]",n+=(n?",":"")+o}return n}function ef(e,t,n,r){let s=[];for(let o=0,i;o<e.index.length;o++)if(i=e.index[o],t>=i.length)t-=i.length;else{t=i[r?"splice":"slice"](t,n);const l=t.length;if(l&&(s=s.length?s.concat(t):t,n-=l,r&&(e.length-=l),!n))break;t=0}return s}function Ut(e){if(!this||this.constructor!==Ut)return new Ut(e);this.index=e?[e]:[],this.length=e?e.length:0;const t=this;return new Proxy([],{get(n,r){if(r==="length")return t.length;if(r==="push")return function(s){t.index[t.index.length-1].push(s),t.length++};if(r==="pop")return function(){if(t.length)return t.length--,t.index[t.index.length-1].pop()};if(r==="indexOf")return function(s){let o=0;for(let i=0,l,u;i<t.index.length;i++){if(l=t.index[i],u=l.indexOf(s),0<=u)return o+u;o+=l.length}return-1};if(r==="includes")return function(s){for(let o=0;o<t.index.length;o++)if(t.index[o].includes(s))return!0;return!1};if(r==="slice")return function(s,o){return ef(t,s||0,o||t.length,!1)};if(r==="splice")return function(s,o){return ef(t,s||0,o||t.length,!0)};if(r==="constructor")return Array;if(typeof r!="symbol")return(n=t.index[r/2**31|0])&&n[r]},set(n,r,s){return n=r/2**31|0,(t.index[n]||(t.index[n]=[]))[r]=s,t.length++,!0}})}Ut.prototype.clear=function(){this.index.length=0},Ut.prototype.destroy=function(){this.proxy=this.index=null},Ut.prototype.push=function(){};function He(e=8){if(!this||this.constructor!==He)return new He(e);this.index=X(),this.h=[],this.size=0,32<e?(this.B=nf,this.A=BigInt(e)):(this.B=tf,this.A=e)}He.prototype.get=function(e){const t=this.index[this.B(e)];return t&&t.get(e)},He.prototype.set=function(e,t){var n=this.B(e);let r=this.index[n];r?(n=r.size,r.set(e,t),(n-=r.size)&&this.size++):(this.index[n]=r=new Map([[e,t]]),this.h.push(r),this.size++)};function Re(e=8){if(!this||this.constructor!==Re)return new Re(e);this.index=X(),this.h=[],this.size=0,32<e?(this.B=nf,this.A=BigInt(e)):(this.B=tf,this.A=e)}Re.prototype.add=function(e){var t=this.B(e);let n=this.index[t];n?(t=n.size,n.add(e),(t-=n.size)&&this.size++):(this.index[t]=n=new Set([e]),this.h.push(n),this.size++)},A=He.prototype,A.has=Re.prototype.has=function(e){const t=this.index[this.B(e)];return t&&t.has(e)},A.delete=Re.prototype.delete=function(e){const t=this.index[this.B(e)];t&&t.delete(e)&&this.size--},A.clear=Re.prototype.clear=function(){this.index=X(),this.h=[],this.size=0},A.values=Re.prototype.values=function*(){for(let e=0;e<this.h.length;e++)for(let t of this.h[e].values())yield t},A.keys=Re.prototype.keys=function*(){for(let e=0;e<this.h.length;e++)for(let t of this.h[e].keys())yield t},A.entries=Re.prototype.entries=function*(){for(let e=0;e<this.h.length;e++)for(let t of this.h[e].entries())yield t};function tf(e){let t=2**this.A-1;if(typeof e=="number")return e&t;let n=0,r=this.A+1;for(let s=0;s<e.length;s++)n=(n*r^e.charCodeAt(s))&t;return this.A===32?n+2**31:n}function nf(e){let t=BigInt(2)**this.A-BigInt(1);var n=typeof e;if(n==="bigint")return e&t;if(n==="number")return BigInt(e)&t;n=BigInt(0);let r=this.A+BigInt(1);for(let s=0;s<e.length;s++)n=(n*r^BigInt(e.charCodeAt(s)))&t;return n}Vt.prototype.add=function(e,t,n){if(Er(e)&&(t=e,e=Tr(t,this.key)),t&&(e||e===0)){if(!n&&this.reg.has(e))return this.update(e,t);for(let l=0,u;l<this.field.length;l++){u=this.D[l];var r=this.index.get(this.field[l]);if(typeof u=="function"){var s=u(t);s&&r.add(e,s,!1,!0)}else s=u.I,(!s||s(t))&&(u.constructor===String?u=[""+u]:_e(u)&&(u=[u]),Sl(t,u,this.J,0,r,e,u[0],n))}if(this.tag)for(r=0;r<this.F.length;r++){var o=this.F[r];s=this.tag.get(this.R[r]);let l=X();if(typeof o=="function"){if(o=o(t),!o)continue}else{var i=o.I;if(i&&!i(t))continue;o.constructor===String&&(o=""+o),o=Tr(t,o)}if(s&&o){_e(o)&&(o=[o]);for(let u=0,a,f;u<o.length;u++)if(a=o[u],!l[a]&&(l[a]=1,(i=s.get(a))?f=i:s.set(a,f=[]),!n||!f.includes(e))){if(f.length===2**31-1){if(i=new Ut(f),this.fastupdate)for(let p of this.reg.values())p.includes(f)&&(p[p.indexOf(f)]=i);s.set(a,f=i)}f.push(e),this.fastupdate&&((i=this.reg.get(e))?i.push(f):this.reg.set(e,[f]))}}}if(this.store&&(!n||!this.store.has(e))){let l;if(this.C){l=X();for(let u=0,a;u<this.C.length;u++){if(a=this.C[u],(n=a.I)&&!n(t))continue;let f;if(typeof a=="function"){if(f=a(t),!f)continue;a=[a.V]}else if(_e(a)||a.constructor===String){l[a]=t[a];continue}xl(t,l,a,0,a[0],f)}}this.store.set(e,l||t)}this.worker&&(this.fastupdate||this.reg.add(e))}return this};function xl(e,t,n,r,s,o){if(e=e[s],r===n.length-1)t[s]=o||e;else if(e)if(e.constructor===Array)for(t=t[s]=Array(e.length),s=0;s<e.length;s++)xl(e,t,n,r,s);else t=t[s]||(t[s]=X()),s=n[++r],xl(e,t,n,r,s)}function Sl(e,t,n,r,s,o,i,l){if(e=e[i])if(r===t.length-1){if(e.constructor===Array){if(n[r]){for(t=0;t<e.length;t++)s.add(o,e[t],!0,!0);return}e=e.join(" ")}s.add(o,e,l,!0)}else if(e.constructor===Array)for(i=0;i<e.length;i++)Sl(e,t,n,r,s,o,i,l);else i=t[++r],Sl(e,t,n,r,s,o,i,l);else s.db&&s.remove(o)}function rf(e,t,n,r,s,o,i){const l=e.length;let u=[],a,f;a=X();for(let p=0,c,m,v,x;p<t;p++)for(let h=0;h<l;h++)if(v=e[h],p<v.length&&(c=v[p]))for(let d=0;d<c.length;d++){if(m=c[d],(f=a[m])?a[m]++:(f=0,a[m]=1),x=u[f]||(u[f]=[]),!i){let g=p+(h||!s?0:o||0);x=x[g]||(x[g]=[])}if(x.push(m),i&&n&&f===l-1&&x.length-r===n)return r?x.slice(r):x}if(e=u.length)if(s)u=1<u.length?sf(u,n,r,i,o):(u=u[0]).length>n||r?u.slice(r,n+r):u;else{if(e<l)return[];if(u=u[e-1],n||r)if(i)(u.length>n||r)&&(u=u.slice(r,n+r));else{s=[];for(let p=0,c;p<u.length;p++)if(c=u[p],c.length>r)r-=c.length;else if((c.length>n||r)&&(c=c.slice(r,n+r),n-=c.length,r&&(r-=c.length)),s.push(c),!n)break;u=1<s.length?[].concat.apply([],s):s[0]}}return u}function sf(e,t,n,r,s){const o=[],i=X();let l;var u=e.length;let a;if(r){for(s=u-1;0<=s;s--)if(a=(r=e[s])&&r.length){for(u=0;u<a;u++)if(l=r[u],!i[l]){if(i[l]=1,n)n--;else if(o.push(l),o.length===t)return o}}}else for(let f=u-1,p,c=0;0<=f;f--){p=e[f];for(let m=0;m<p.length;m++)if(a=(r=p[m])&&r.length){for(let v=0;v<a;v++)if(l=r[v],!i[l])if(i[l]=1,n)n--;else{let x=(m+(f<u-1&&s||0))/(f+1)|0;if((o[x]||(o[x]=[])).push(l),++c===t)return o}}}return o}function Wp(e,t,n){const r=X(),s=[];for(let o=0,i;o<t.length;o++){i=t[o];for(let l=0;l<i.length;l++)r[i[l]]=1}if(n)for(let o=0,i;o<e.length;o++)i=e[o],r[i]&&(s.push(i),r[i]=0);else for(let o=0,i,l;o<e.result.length;o++)for(i=e.result[o],t=0;t<i.length;t++)l=i[t],r[l]&&((s[o]||(s[o]=[])).push(l),r[l]=0);return s}function $l(e,t,n,r){if(!e.length)return e;if(e.length===1)return e=e[0],e=n||e.length>t?t?e.slice(n,n+t):e.slice(n):e,r?kt.call(this,e):e;let s=[];for(let o=0,i,l;o<e.length;o++)if((i=e[o])&&(l=i.length)){if(n){if(n>=l){n-=l;continue}n<l&&(i=t?i.slice(n,n+t):i.slice(n),l=i.length,n=0)}if(l>t&&(i=i.slice(0,t),l=t),!s.length&&l>=t)return r?kt.call(this,i):i;if(s.push(i),t-=l,!t)break}return s=1<s.length?[].concat.apply([],s):s[0],r?kt.call(this,s):s}function Qs(e,t,n){var r=n[0];if(r.then)return Promise.all(n).then(function(f){return e[t].apply(e,f)});if(r[0]&&r[0].index)return e[t].apply(e,r);r=[];let s=[],o=0,i=0,l,u,a;for(let f=0,p;f<n.length;f++)if(p=n[f]){let c;if(p.constructor===B)c=p.result;else if(p.constructor===Array)c=p;else if(o=p.limit||0,i=p.offset||0,a=p.suggest,u=p.resolve,l=p.enrich&&u,p.index)p.resolve=!1,c=p.index.search(p).result,p.resolve=u;else if(p.and)c=e.and(p.and);else if(p.or)c=e.or(p.or);else if(p.xor)c=e.xor(p.xor);else if(p.not)c=e.not(p.not);else continue;if(c.then)s.push(c);else if(c.length)r[f]=c;else if(!a&&(t==="and"||t==="xor")){r=[];break}}return{O:r,P:s,limit:o,offset:i,enrich:l,resolve:u,suggest:a}}B.prototype.or=function(){const{O:e,P:t,limit:n,offset:r,enrich:s,resolve:o}=Qs(this,"or",arguments);return of.call(this,e,t,n,r,s,o)};function of(e,t,n,r,s,o){if(t.length){const i=this;return Promise.all(t).then(function(l){e=[];for(let u=0,a;u<l.length;u++)(a=l[u]).length&&(e[u]=a);return of.call(i,e,[],n,r,s,o)})}return e.length&&(this.result.length&&e.push(this.result),2>e.length?this.result=e[0]:(this.result=sf(e,n,r,!1,this.h),r=0)),o?this.resolve(n,r,s):this}B.prototype.and=function(){let e=this.result.length,t,n,r,s;if(!e){const o=arguments[0];o&&(e=!!o.suggest,s=o.resolve,t=o.limit,n=o.offset,r=o.enrich&&s)}if(e){const{O:o,P:i,limit:l,offset:u,enrich:a,resolve:f,suggest:p}=Qs(this,"and",arguments);return lf.call(this,o,i,l,u,a,f,p)}return s?this.resolve(t,n,r):this};function lf(e,t,n,r,s,o,i){if(t.length){const l=this;return Promise.all(t).then(function(u){e=[];for(let a=0,f;a<u.length;a++)(f=u[a]).length&&(e[a]=f);return lf.call(l,e,[],n,r,s,o,i)})}if(e.length)if(this.result.length&&e.unshift(this.result),2>e.length)this.result=e[0];else{if(t=Mp(e))return this.result=rf(e,t,n,r,i,this.h,o),o?s?kt.call(this.index,this.result):this.result:this;this.result=[]}else i||(this.result=e);return o?this.resolve(n,r,s):this}B.prototype.xor=function(){const{O:e,P:t,limit:n,offset:r,enrich:s,resolve:o,suggest:i}=Qs(this,"xor",arguments);return uf.call(this,e,t,n,r,s,o,i)};function uf(e,t,n,r,s,o,i){if(t.length){const l=this;return Promise.all(t).then(function(u){e=[];for(let a=0,f;a<u.length;a++)(f=u[a]).length&&(e[a]=f);return uf.call(l,e,[],n,r,s,o,i)})}if(e.length)if(this.result.length&&e.unshift(this.result),2>e.length)this.result=e[0];else return this.result=Qp.call(this,e,n,r,o,this.h),o?s?kt.call(this.index,this.result):this.result:this;else i||(this.result=e);return o?this.resolve(n,r,s):this}function Qp(e,t,n,r,s){const o=[],i=X();let l=0;for(let u=0,a;u<e.length;u++)if(a=e[u]){l<a.length&&(l=a.length);for(let f=0,p;f<a.length;f++)if(p=a[f])for(let c=0,m;c<p.length;c++)m=p[c],i[m]=i[m]?2:1}for(let u=0,a,f=0;u<l;u++)for(let p=0,c;p<e.length;p++)if((c=e[p])&&(a=c[u])){for(let m=0,v;m<a.length;m++)if(v=a[m],i[v]===1)if(n)n--;else if(r){if(o.push(v),o.length===t)return o}else{const x=u+(p?s:0);if(o[x]||(o[x]=[]),o[x].push(v),++f===t)return o}}return o}B.prototype.not=function(){const{O:e,P:t,limit:n,offset:r,enrich:s,resolve:o,suggest:i}=Qs(this,"not",arguments);return af.call(this,e,t,n,r,s,o,i)};function af(e,t,n,r,s,o,i){if(t.length){const l=this;return Promise.all(t).then(function(u){e=[];for(let a=0,f;a<u.length;a++)(f=u[a]).length&&(e[a]=f);return af.call(l,e,[],n,r,s,o,i)})}if(e.length&&this.result.length)this.result=Yp.call(this,e,n,r,o);else if(o)return this.resolve(n,r,s);return o?s?kt.call(this.index,this.result):this.result:this}function Yp(e,t,n,r){const s=[];e=new Set(e.flat().flat());for(let o=0,i,l=0;o<this.result.length;o++)if(i=this.result[o]){for(let u=0,a;u<i.length;u++)if(a=i[u],!e.has(a)){if(n)n--;else if(r){if(s.push(a),s.length===t)return s}else if(s[o]||(s[o]=[]),s[o].push(a),++l===t)return s}}return s}function B(e){if(!this||this.constructor!==B)return new B(e);if(e&&e.index)return e.resolve=!1,this.index=e.index,this.h=e.boost||0,this.result=e.index.search(e).result,this;this.index=null,this.result=e||[],this.h=0}B.prototype.limit=function(e){if(this.result.length){const t=[];for(let n=0,r;n<this.result.length;n++)if(r=this.result[n])if(r.length<=e){if(t[n]=r,e-=r.length,!e)break}else{t[n]=r.slice(0,e);break}this.result=t}return this},B.prototype.offset=function(e){if(this.result.length){const t=[];for(let n=0,r;n<this.result.length;n++)(r=this.result[n])&&(r.length<=e?e-=r.length:(t[n]=r.slice(e),e=0));this.result=t}return this},B.prototype.boost=function(e){return this.h+=e,this},B.prototype.resolve=function(e,t,n){const r=this.result,s=this.index;return this.result=this.index=null,r.length?(typeof e=="object"&&(n=e.enrich,t=e.offset,e=e.limit),$l.call(s,r,e||100,t,n)):r},Vt.prototype.search=function(e,t,n,r){n||(!t&&Er(e)?(n=e,e=""):Er(t)&&(n=t,t=0));let s=[];var o=[],i;let l,u,a,f=0;var p=!0;let c;if(n){n.constructor===Array&&(n={index:n}),e=n.query||e;var m=n.pluck;l=n.merge,u=m||n.field||(u=n.index)&&(u.index?null:u),a=this.tag&&n.tag;var v=n.suggest;p=n.resolve!==!1,p||m||!(u=u||this.field)||(_e(u)?m=u:(u.constructor===Array&&u.length===1&&(u=u[0]),m=u.field||u.index)),c=(i=this.store&&n.enrich&&p)&&n.highlight,t=n.limit||t;var x=n.offset||0;if(t||(t=100),a&&(!this.db||!r)){a.constructor!==Array&&(a=[a]);var h=[];for(let y=0,$;y<a.length;y++)if($=a[y],$.field&&$.tag){var d=$.tag;if(d.constructor===Array)for(var g=0;g<d.length;g++)h.push($.field,d[g]);else h.push($.field,d)}else{d=Object.keys($);for(let S=0,C,T;S<d.length;S++)if(C=d[S],T=$[C],T.constructor===Array)for(g=0;g<T.length;g++)h.push(C,T[g]);else h.push(C,T)}if(a=h,!e){if(p=[],h.length)for(o=0;o<h.length;o+=2){if(this.db){if(m=this.index.get(h[o]),!m)continue;p.push(m=m.db.tag(h[o+1],t,x,i))}else m=Jp.call(this,h[o],h[o+1],t,x,i);s.push({field:h[o],tag:h[o+1],result:m})}return p.length?Promise.all(p).then(function(y){for(let $=0;$<y.length;$++)s[$].result=y[$];return s}):s}}u&&u.constructor!==Array&&(u=[u])}u||(u=this.field),h=!r&&(this.worker||this.db)&&[];let w;for(let y=0,$,S,C;y<u.length;y++){if(S=u[y],this.db&&this.tag&&!this.D[y])continue;let T;if(_e(S)||(T=S,S=T.field,e=T.query||e,t=T.limit||t,x=T.offset||x,v=T.suggest||v,i=this.store&&(T.enrich||i)),r)$=r[y];else if(d=T||n,g=this.index.get(S),a&&(this.db&&(d.tag=a,w=g.db.support_tag_search,d.field=u),w||(d.enrich=!1)),h){h[y]=g.search(e,t,d),d&&i&&(d.enrich=i);continue}else $=g.search(e,t,d),d&&i&&(d.enrich=i);if(C=$&&(p?$.length:$.result.length),a&&C){if(d=[],g=0,this.db&&r){if(!w)for(let N=u.length;N<r.length;N++){let M=r[N];if(M&&M.length)g++,d.push(M);else if(!v)return p?s:new B(s)}}else for(let N=0,M,ze;N<a.length;N+=2){if(M=this.tag.get(a[N]),!M){if(v)continue;return p?s:new B(s)}if(ze=(M=M&&M.get(a[N+1]))&&M.length)g++,d.push(M);else if(!v)return p?s:new B(s)}if(g){if($=Wp($,d,p),C=$.length,!C&&!v)return p?$:new B($);g--}}if(C)o[f]=S,s.push($),f++;else if(u.length===1)return p?s:new B(s)}if(h){if(this.db&&a&&a.length&&!w)for(i=0;i<a.length;i+=2){if(o=this.index.get(a[i]),!o){if(v)continue;return p?s:new B(s)}h.push(o.db.tag(a[i+1],t,x,!1))}const y=this;return Promise.all(h).then(function($){return $.length?y.search(e,t,n,$):$})}if(!f)return p?s:new B(s);if(m&&(!i||!this.store))return s[0];for(h=[],x=0;x<o.length;x++){if(v=s[x],i&&v.length&&typeof v[0].doc>"u"&&(this.db?h.push(v=this.index.get(this.field[0]).db.enrich(v)):v=kt.call(this,v)),m)return p?v:new B(v);s[x]={field:o[x],result:v}}if(i&&this.db&&h.length){const y=this;return Promise.all(h).then(function($){for(let S=0;S<$.length;S++)s[S].result=$[S];return l?ff(s):c?cf(s,e,y.index,y.field,y.D,c):s})}return l?ff(s):c?cf(s,e,this.index,this.field,this.D,c):s};function cf(e,t,n,r,s,o){let i,l,u;for(let a=0,f,p,c,m;a<e.length;a++){if(f=e[a].field,!f)continue;let v=e[a].result;c=n.get(f),p=c.encoder,u=c.tokenize,m=s[r.indexOf(f)],p!==i&&(i=p,l=i.encode(t));for(let x=0;x<v.length;x++){let h="",d=Tr(v[x].doc,m).split(/\s+/);for(let g=0,w,y;g<d.length;g++){w=d[g],y=p.encode(w),y=1<y.length?y.join(" "):y[0];let $;if(y&&w)for(let S=0,C;S<l.length;S++)if(C=l[S],u==="strict"){if(y===C){h+=(h?" ":"")+o.replace("$1",w),$=!0;break}}else{const T=y.indexOf(C);if(-1<T){h+=(h?" ":"")+w.substring(0,T)+o.replace("$1",w.substring(T,C.length))+w.substring(T+C.length),$=!0;break}}$||(h+=(h?" ":"")+d[g])}v[x].highlight=h}}return e}function ff(e){const t=[],n=X();for(let r=0,s,o;r<e.length;r++){s=e[r],o=s.result;for(let i=0,l,u,a;i<o.length;i++)u=o[i],typeof u!="object"&&(u={id:u}),l=u.id,(a=n[l])?a.push(s.field):(u.field=n[l]=[s.field],t.push(u))}return t}function Jp(e,t,n,r,s){if(e=this.tag.get(e),!e)return[];if((t=(e=e&&e.get(t))&&e.length-r)&&0<t)return(t>n||r)&&(e=e.slice(r,r+n)),s&&(e=kt.call(this,e)),e}function kt(e){if(!this||!this.store)return e;const t=Array(e.length);for(let n=0,r;n<e.length;n++)r=e[n],t[n]={id:r,doc:this.store.get(r)};return t}function Vt(e){if(!this||this.constructor!==Vt)return new Vt(e);const t=e.document||e.doc||e;let n,r;if(this.D=[],this.field=[],this.J=[],this.key=(n=t.key||t.id)&&Ys(n,this.J)||"id",(r=e.keystore||0)&&(this.keystore=r),this.fastupdate=!!e.fastupdate,this.reg=!this.fastupdate||e.worker||e.db?r?new Re(r):new Set:r?new He(r):new Map,this.C=(n=t.store||null)&&n&&n!==!0&&[],this.store=n&&(r?new He(r):new Map),this.cache=(n=e.cache||null)&&new Bt(n),e.cache=!1,this.worker=e.worker,this.priority=e.priority||4,this.index=Gp.call(this,e,t),this.tag=null,(n=t.tag)&&(typeof n=="string"&&(n=[n]),n.length)){this.tag=new Map,this.F=[],this.R=[];for(let s=0,o,i;s<n.length;s++){if(o=n[s],i=o.field||o,!i)throw Error("The tag field from the document descriptor is undefined.");o.custom?this.F[s]=o.custom:(this.F[s]=Ys(i,this.J),o.filter&&(typeof this.F[s]=="string"&&(this.F[s]=new String(this.F[s])),this.F[s].I=o.filter)),this.R[s]=i,this.tag.set(i,new Map)}}if(this.worker){this.fastupdate=!1,e=[];for(const s of this.index.values())s.then&&e.push(s);if(e.length){const s=this;return Promise.all(e).then(function(o){let i=0;for(const l of s.index.entries()){const u=l[0];l[1].then&&s.index.set(u,o[i++])}return s})}}else e.db&&(this.fastupdate=!1,this.mount(e.db))}A=Vt.prototype,A.mount=function(e){let t=this.field;if(this.tag)for(let s=0,o;s<this.R.length;s++){o=this.R[s];var n=void 0;this.index.set(o,n=new Ke({},this.reg)),t===this.field&&(t=t.slice(0)),t.push(o),n.tag=this.tag.get(o)}n=[];const r={db:e.db,type:e.type,fastupdate:e.fastupdate};for(let s=0,o,i;s<t.length;s++){r.field=i=t[s],o=this.index.get(i);const l=new e.constructor(e.id,r);l.id=e.id,n[s]=l.mount(o),o.document=!0,s?o.bypass=!0:o.store=this.store}return this.db=!0,Promise.all(n)},A.commit=async function(e,t){const n=[];for(const r of this.index.values())n.push(r.commit(e,t));await Promise.all(n),this.reg.clear()},A.destroy=function(){const e=[];for(const t of this.index.values())e.push(t.destroy());return Promise.all(e)};function Gp(e,t){const n=new Map;let r=t.index||t.field||t;_e(r)&&(r=[r]);for(let s=0,o,i;s<r.length;s++){if(o=r[s],_e(o)||(i=o,o=o.field),i=Er(i)?Object.assign({},e,i):e,this.worker){const l=new Lr(i);n.set(o,l)}this.worker||n.set(o,new Ke(i,this.reg)),i.custom?this.D[s]=i.custom:(this.D[s]=Ys(o,this.J),i.filter&&(typeof this.D[s]=="string"&&(this.D[s]=new String(this.D[s])),this.D[s].I=i.filter)),this.field[s]=o}if(this.C){e=t.store,_e(e)&&(e=[e]);for(let s=0,o,i;s<e.length;s++)o=e[s],i=o.field||o,o.custom?(this.C[s]=o.custom,o.custom.V=i):(this.C[s]=Ys(i,this.J),o.filter&&(typeof this.C[s]=="string"&&(this.C[s]=new String(this.C[s])),this.C[s].I=o.filter))}return n}function Ys(e,t){const n=e.split(":");let r=0;for(let s=0;s<n.length;s++)e=n[s],e[e.length-1]==="]"&&(e=e.substring(0,e.length-2))&&(t[r]=!0),e&&(n[r++]=e);return r<n.length&&(n.length=r),1<r?n:n[0]}A.append=function(e,t){return this.add(e,t,!0)},A.update=function(e,t){return this.remove(e).add(e,t)},A.remove=function(e){Er(e)&&(e=Tr(e,this.key));for(var t of this.index.values())t.remove(e,!0);if(this.reg.has(e)){if(this.tag&&!this.fastupdate)for(let n of this.tag.values())for(let r of n){t=r[0];const s=r[1],o=s.indexOf(e);-1<o&&(1<s.length?s.splice(o,1):n.delete(t))}this.store&&this.store.delete(e),this.reg.delete(e)}return this.cache&&this.cache.remove(e),this},A.clear=function(){const e=[];for(const t of this.index.values()){const n=t.clear();n.then&&e.push(n)}if(this.tag)for(const t of this.tag.values())t.clear();return this.store&&this.store.clear(),this.cache&&this.cache.clear(),e.length?Promise.all(e):this},A.contain=function(e){return this.db?this.index.get(this.field[0]).db.has(e):this.reg.has(e)},A.cleanup=function(){for(const e of this.index.values())e.cleanup();return this},A.get=function(e){return this.db?this.index.get(this.field[0]).db.enrich(e).then(function(t){return t[0]&&t[0].doc||null}):this.store.get(e)||null},A.set=function(e,t){return typeof e=="object"&&(t=e,e=Tr(t,this.key)),this.store.set(e,t),this},A.searchCache=hf,A.export=function(e,t,n=0,r=0){if(n<this.field.length){const i=this.field[n];if((t=this.index.get(i).export(e,i,n,r=1))&&t.then){const l=this;return t.then(function(){return l.export(e,i,n+1)})}return this.export(e,i,n+1)}let s,o;switch(r){case 0:s="reg",o=qc(this.reg),t=null;break;case 1:s="tag",o=this.tag&&Gc(this.tag,this.reg.size),t=null;break;case 2:s="doc",o=this.store&&vl(this.store),t=null;break;default:return}return Ws.call(this,e,t,s,o,n,r)},A.import=function(e,t){var n=e.split(".");n[n.length-1]==="json"&&n.pop();const r=2<n.length?n[0]:"";if(n=2<n.length?n[2]:n[1],this.worker&&r)return this.index.get(r).import(e);if(t){if(typeof t=="string"&&(t=JSON.parse(t)),r)return this.index.get(r).import(n,t);switch(n){case"reg":this.fastupdate=!1,this.reg=Zc(t,this.reg);for(let s=0,o;s<this.field.length;s++)o=this.index.get(this.field[s]),o.fastupdate=!1,o.reg=this.reg;if(this.worker){t=[];for(const s of this.index.values())t.push(s.import(e));return Promise.all(t)}break;case"tag":this.tag=Xc(t,this.tag);break;case"doc":this.store=wl(t,this.store)}}},ml(Vt.prototype);function hf(e,t,n){e=(typeof e=="object"?""+e.query:e).toLowerCase(),this.cache||(this.cache=new Bt);let r=this.cache.get(e);if(!r){if(r=this.search(e,t,n),r.then){const s=this;r.then(function(o){return s.cache.set(e,o),o})}this.cache.set(e,r)}return r}function Bt(e){this.limit=e&&e!==!0?e:1e3,this.cache=new Map,this.h=""}Bt.prototype.set=function(e,t){this.cache.set(this.h=e,t),this.cache.size>this.limit&&this.cache.delete(this.cache.keys().next().value)},Bt.prototype.get=function(e){const t=this.cache.get(e);return t&&this.h!==e&&(this.cache.delete(e),this.cache.set(this.h=e,t)),t},Bt.prototype.remove=function(e){for(const t of this.cache){const n=t[0];t[1].includes(e)&&this.cache.delete(n)}},Bt.prototype.clear=function(){this.cache.clear(),this.h=""};const df={normalize:!1,numeric:!1,dedupe:!1},Js={},kl=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"]]),pf=new Map([["ae","a"],["oe","o"],["sh","s"],["kh","k"],["th","t"],["ph","f"],["pf","f"]]),gf=[/([^aeo])h(.)/g,"$1$2",/([aeo])h([^aeo]|$)/g,"$1$2",/(.)\1+/g,"$1"],mf={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 yf={Exact:df,Default:Js,Normalize:Js,LatinBalance:{mapper:kl},LatinAdvanced:{mapper:kl,matcher:pf,replacer:gf},LatinExtra:{mapper:kl,replacer:gf.concat([/(?!^)[aeo]/g,""]),matcher:pf},LatinSoundex:{dedupe:!1,include:{letter:!0},finalize:function(e){for(let n=0;n<e.length;n++){var t=e[n];let r=t.charAt(0),s=mf[r];for(let o=1,i;o<t.length&&(i=t.charAt(o),i==="h"||i==="w"||!(i=mf[i])||i===s||(r+=i,s=i,r.length!==4));o++);e[n]=r}}},CJK:{split:""},LatinExact:df,LatinDefault:Js,LatinSimple:Js};Ke.prototype.remove=function(e,t){const n=this.reg.size&&(this.fastupdate?this.reg.get(e):this.reg.has(e));if(n){if(this.fastupdate){for(let r=0,s;r<n.length;r++)if(s=n[r])if(2>s.length)s.pop();else{const o=s.indexOf(e);o===n.length-1?s.pop():s.splice(o,1)}}else Or(this.map,e),this.depth&&Or(this.ctx,e);t||this.reg.delete(e)}return this.db&&(this.commit_task.push({del:e}),this.T&&Sf(this)),this.cache&&this.cache.remove(e),this};function Or(e,t){let n=0;var r=typeof t>"u";if(e.constructor===Array){for(let s=0,o,i;s<e.length;s++)if((o=e[s])&&o.length)if(r)n++;else if(i=o.indexOf(t),0<=i){1<o.length?(o.splice(i,1),n++):delete e[s];break}else n++}else for(let s of e.entries()){r=s[0];const o=Or(s[1],t);o?n+=o:e.delete(r)}return n}const Xp={memory:{resolution:1},performance:{resolution:3,fastupdate:!0,context:{depth:1,resolution:1}},match:{tokenize:"forward"},score:{resolution:9,context:{depth:2,resolution:3}}};Ke.prototype.add=function(e,t,n,r){if(t&&(e||e===0)){if(!r&&!n&&this.reg.has(e))return this.update(e,t);if(t=this.encoder.encode(t),r=t.length){const a=X(),f=X(),p=this.depth,c=this.resolution;for(let m=0;m<r;m++){let v=t[this.rtl?r-1-m:m];var s=v.length;if(s&&(p||!f[v])){var o=this.score?this.score(t,v,m,null,0):Gs(c,r,m),i="";switch(this.tokenize){case"full":if(2<s){for(let x=0,h;x<s;x++)for(o=s;o>x;o--){i=v.substring(x,o),h=this.rtl?s-1-x:x;var l=this.score?this.score(t,v,m,i,h):Gs(c,r,m,s,h);_r(this,f,i,l,e,n)}break}case"bidirectional":case"reverse":if(1<s){for(l=s-1;0<l;l--){i=v[this.rtl?s-1-l:l]+i;var u=this.score?this.score(t,v,m,i,l):Gs(c,r,m,s,l);_r(this,f,i,u,e,n)}i=""}case"forward":if(1<s){for(l=0;l<s;l++)i+=v[this.rtl?s-1-l:l],_r(this,f,i,o,e,n);break}default:if(_r(this,f,v,o,e,n),p&&1<r&&m<r-1){for(s=X(),i=this.U,o=v,l=Math.min(p+1,this.rtl?m+1:r-m),s[o]=1,u=1;u<l;u++)if((v=t[this.rtl?r-1-m-u:m+u])&&!s[v]){s[v]=1;const x=this.score?this.score(t,o,m,v,u-1):Gs(i+(r/2>i?0:1),r,m,l-1,u-1),h=this.bidirectional&&v>o;_r(this,a,h?o:v,x,e,n,h?v:o)}}}}}this.fastupdate||this.reg.add(e)}else t=""}return this.db&&(t||this.commit_task.push({del:e}),this.T&&Sf(this)),this};function _r(e,t,n,r,s,o,i){let l=i?e.ctx:e.map,u;if((!t[n]||i&&!(u=t[n])[i])&&(i?(t=u||(t[n]=X()),t[i]=1,(u=l.get(i))?l=u:l.set(i,l=new Map)):t[n]=1,(u=l.get(n))?l=u:l.set(n,l=u=[]),l=l[r]||(l[r]=[]),!o||!l.includes(s))){if(l.length===2**31-1){if(t=new Ut(l),e.fastupdate)for(let a of e.reg.values())a.includes(l)&&(a[a.indexOf(l)]=t);u[r]=l=t}l.push(s),e.fastupdate&&((r=e.reg.get(s))?r.push(l):e.reg.set(s,[l]))}}function Gs(e,t,n,r,s){return n&&1<e?t+(r||0)<=e?n+(s||0):(e-1)/(t+(r||0))*(n+(s||0))+1|0:0}Ke.prototype.search=function(e,t,n){n||(t||typeof e!="object"?typeof t=="object"&&(n=t,t=0):(n=e,e=""));let r=[],s,o,i,l=0,u,a,f,p,c;n?(e=n.query||e,t=n.limit||t,l=n.offset||0,o=n.context,i=n.suggest,c=(u=n.resolve!==!1)&&n.enrich,f=n.boost,p=n.resolution,a=this.db&&n.tag):u=this.resolve;let m=this.encoder.encode(e);if(s=m.length,t=t||(u?100:0),s===1)return wf.call(this,m[0],"",t,l,u,c,a);if(o=this.depth&&o!==!1,s===2&&o&&!i)return wf.call(this,m[1],m[0],t,l,u,c,a);let v=X(),x=0,h;if(o&&(h=m[0],x=1),p||p===0||(p=h?this.U:this.resolution),this.db){if(this.db.search&&(e=this.db.search(this,m,t,l,i,u,c,a),e!==!1))return e;const d=this;return async function(){for(let g,w;x<s;x++){if((w=m[x])&&!v[w]){if(v[w]=1,g=await Cl(d,w,h,0,0,!1,!1),g=xf(g,r,i,p)){r=g;break}h&&(i&&g&&r.length||(h=w))}i&&h&&x===s-1&&!r.length&&(p=d.resolution,h="",x=-1,v=X())}return vf(r,p,t,l,i,f,u)}()}for(let d,g;x<s;x++){if((g=m[x])&&!v[g]){if(v[g]=1,d=Cl(this,g,h,0,0,!1,!1),d=xf(d,r,i,p)){r=d;break}h&&(i&&d&&r.length||(h=g))}i&&h&&x===s-1&&!r.length&&(p=this.resolution,h="",x=-1,v=X())}return vf(r,p,t,l,i,f,u)};function vf(e,t,n,r,s,o,i){let l=e.length,u=e;if(1<l)u=rf(e,t,n,r,s,o,i);else if(l===1)return i?$l.call(null,e[0],n,r):new B(e[0]);return i?u:new B(u)}function wf(e,t,n,r,s,o,i){return e=Cl(this,e,t,n,r,s,o,i),this.db?e.then(function(l){return s?l||[]:new B(l)}):e&&e.length?s?$l.call(this,e,n,r):new B(e):s?[]:new B}function xf(e,t,n,r){let s=[];if(e&&e.length){if(e.length<=r){t.push(e);return}for(let o=0,i;o<r;o++)(i=e[o])&&(s[o]=i);if(s.length){t.push(s);return}}if(!n)return s}function Cl(e,t,n,r,s,o,i,l){let u;return n&&(u=e.bidirectional&&t>n)&&(u=n,n=t,t=u),e.db?e.db.get(t,n,r,s,o,i,l):(e=n?(e=e.ctx.get(n))&&e.get(t):e.map.get(t),e)}function Ke(e,t){if(!this||this.constructor!==Ke)return new Ke(e);if(e){var n=_e(e)?e:e.preset;n&&(e=Object.assign({},Xp[n],e))}else e={};n=e.context;const r=n===!0?{depth:1}:n||{},s=_e(e.encoder)?yf[e.encoder]:e.encode||e.encoder||{};this.encoder=s.encode?s:typeof s=="object"?new jr(s):{encode:s},this.resolution=e.resolution||9,this.tokenize=n=(n=e.tokenize)&&n!=="default"&&n!=="exact"&&n||"strict",this.depth=n==="strict"&&r.depth||0,this.bidirectional=r.bidirectional!==!1,this.fastupdate=!!e.fastupdate,this.score=e.score||null,(n=e.keystore||0)&&(this.keystore=n),this.map=n?new He(n):new Map,this.ctx=n?new He(n):new Map,this.reg=t||(this.fastupdate?n?new He(n):new Map:n?new Re(n):new Set),this.U=r.resolution||3,this.rtl=s.rtl||e.rtl||!1,this.cache=(n=e.cache||null)&&new Bt(n),this.resolve=e.resolve!==!1,(n=e.db)&&(this.db=this.mount(n)),this.T=e.commit!==!1,this.commit_task=[],this.commit_timer=null,this.priority=e.priority||4}A=Ke.prototype,A.mount=function(e){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),e.mount(this)},A.commit=function(e,t){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.commit(this,e,t)},A.destroy=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.destroy()};function Sf(e){e.commit_timer||(e.commit_timer=setTimeout(function(){e.commit_timer=null,e.db.commit(e,void 0,void 0)},1))}A.clear=function(){return this.map.clear(),this.ctx.clear(),this.reg.clear(),this.cache&&this.cache.clear(),this.db&&(this.commit_timer&&clearTimeout(this.commit_timer),this.commit_timer=null,this.commit_task=[{clear:!0}]),this},A.append=function(e,t){return this.add(e,t,!0)},A.contain=function(e){return this.db?this.db.has(e):this.reg.has(e)},A.update=function(e,t){const n=this,r=this.remove(e);return r&&r.then?r.then(()=>n.add(e,t)):this.add(e,t)},A.cleanup=function(){return this.fastupdate?(Or(this.map),this.depth&&Or(this.ctx),this):this},A.searchCache=hf,A.export=function(e,t,n=0,r=0){let s,o;switch(r){case 0:s="reg",o=qc(this.reg);break;case 1:s="cfg",o=null;break;case 2:s="map",o=vl(this.map,this.reg.size);break;case 3:s="ctx",o=Gc(this.ctx,this.reg.size);break;default:return}return Ws.call(this,e,t,s,o,n,r)},A.import=function(e,t){if(t)switch(typeof t=="string"&&(t=JSON.parse(t)),e=e.split("."),e[e.length-1]==="json"&&e.pop(),e.length===3&&e.shift(),e=1<e.length?e[1]:e[0],e){case"reg":this.fastupdate=!1,this.reg=Zc(t,this.reg);break;case"map":this.map=wl(t,this.map);break;case"ctx":this.ctx=Xc(t,this.ctx)}},A.serialize=function(e=!0){let t="",n="",r="";if(this.reg.size){let o;for(var s of this.reg.keys())o||(o=typeof s),t+=(t?",":"")+(o==="string"?'"'+s+'"':s);t="index.reg=new Set(["+t+"]);",n=bc(this.map,o),n="index.map=new Map(["+n+"]);";for(const i of this.ctx.entries()){s=i[0];let l=bc(i[1],o);l="new Map(["+l+"])",l='["'+s+'",'+l+"]",r+=(r?",":"")+l}r="index.ctx=new Map(["+r+"]);"}return e?"function inject(index){"+t+n+r+"}":t+n+r},ml(Ke.prototype);const $f=typeof window<"u"&&(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),Xs=["map","ctx","tag","reg","cfg"],Ht=X();function kf(e,t={}){if(!this)return new kf(e,t);typeof e=="object"&&(t=e,e=e.name),e||console.info("Default storage space was used, because a name was not passed."),this.id="flexsearch"+(e?":"+e.toLowerCase().replace(/[^a-z0-9_\-]/g,""):""),this.field=t.field?t.field.toLowerCase().replace(/[^a-z0-9_\-]/g,""):"",this.type=t.type,this.fastupdate=this.support_tag_search=!1,this.db=null,this.h={}}A=kf.prototype,A.mount=function(e){return e.encoder?(e.db=this,this.open()):e.mount(this)},A.open=function(){if(this.db)return this.db;let e=this;navigator.storage&&navigator.storage.persist(),Ht[e.id]||(Ht[e.id]=[]),Ht[e.id].push(e.field);const t=$f.open(e.id,1);return t.onupgradeneeded=function(){const n=e.db=this.result;for(let r=0,s;r<Xs.length;r++){s=Xs[r];for(let o=0,i;o<Ht[e.id].length;o++)i=Ht[e.id][o],n.objectStoreNames.contains(s+(s!=="reg"&&i?":"+i:""))||n.createObjectStore(s+(s!=="reg"&&i?":"+i:""))}},e.db=Ct(t,function(n){e.db=n,e.db.onversionchange=function(){e.close()}})},A.close=function(){this.db&&this.db.close(),this.db=null},A.destroy=function(){const e=$f.deleteDatabase(this.id);return Ct(e)},A.clear=function(){const e=[];for(let n=0,r;n<Xs.length;n++){r=Xs[n];for(let s=0,o;s<Ht[this.id].length;s++)o=Ht[this.id][s],e.push(r+(r!=="reg"&&o?":"+o:""))}const t=this.db.transaction(e,"readwrite");for(let n=0;n<e.length;n++)t.objectStore(e[n]).clear();return Ct(t)},A.get=function(e,t,n=0,r=0,s=!0,o=!1){e=this.db.transaction((t?"ctx":"map")+(this.field?":"+this.field:""),"readonly").objectStore((t?"ctx":"map")+(this.field?":"+this.field:"")).get(t?t+":"+e:e);const i=this;return Ct(e).then(function(l){let u=[];if(!l||!l.length)return u;if(s){if(!n&&!r&&l.length===1)return l[0];for(let a=0,f;a<l.length;a++)if((f=l[a])&&f.length){if(r>=f.length){r-=f.length;continue}const p=n?r+Math.min(f.length-r,n):f.length;for(let c=r;c<p;c++)u.push(f[c]);if(r=0,u.length===n)break}return o?i.enrich(u):u}return l})},A.tag=function(e,t=0,n=0,r=!1){e=this.db.transaction("tag"+(this.field?":"+this.field:""),"readonly").objectStore("tag"+(this.field?":"+this.field:"")).get(e);const s=this;return Ct(e).then(function(o){return!o||!o.length||n>=o.length?[]:!t&&!n?o:(o=o.slice(n,n+t),r?s.enrich(o):o)})},A.enrich=function(e){typeof e!="object"&&(e=[e]);const t=this.db.transaction("reg","readonly").objectStore("reg"),n=[];for(let r=0;r<e.length;r++)n[r]=Ct(t.get(e[r]));return Promise.all(n).then(function(r){for(let s=0;s<r.length;s++)r[s]={id:e[s],doc:r[s]?JSON.parse(r[s]):null};return r})},A.has=function(e){return e=this.db.transaction("reg","readonly").objectStore("reg").getKey(e),Ct(e).then(function(t){return!!t})},A.search=null,A.info=function(){},A.transaction=function(e,t,n){e+=e!=="reg"&&this.field?":"+this.field:"";let r=this.h[e+":"+t];if(r)return n.call(this,r);let s=this.db.transaction(e,t);this.h[e+":"+t]=r=s.objectStore(e);const o=n.call(this,r);return this.h[e+":"+t]=null,Ct(s).finally(function(){return s=r=null,o})},A.commit=async function(e,t,n){if(t)await this.clear(),e.commit_task=[];else{let r=e.commit_task;e.commit_task=[];for(let s=0,o;s<r.length;s++)if(o=r[s],o.clear){await this.clear(),t=!0;break}else r[s]=o.del;t||(n||(r=r.concat(Ip(e.reg))),r.length&&await this.remove(r))}e.reg.size&&(await this.transaction("map","readwrite",function(r){for(const s of e.map){const o=s[0],i=s[1];i.length&&(t?r.put(i,o):r.get(o).onsuccess=function(){let l=this.result;var u;if(l&&l.length){const a=Math.max(l.length,i.length);for(let f=0,p,c;f<a;f++)if((c=i[f])&&c.length){if((p=l[f])&&p.length)for(u=0;u<c.length;u++)p.push(c[u]);else l[f]=c;u=1}}else l=i,u=1;u&&r.put(l,o)})}}),await this.transaction("ctx","readwrite",function(r){for(const s of e.ctx){const o=s[0],i=s[1];for(const l of i){const u=l[0],a=l[1];a.length&&(t?r.put(a,o+":"+u):r.get(o+":"+u).onsuccess=function(){let f=this.result;var p;if(f&&f.length){const c=Math.max(f.length,a.length);for(let m=0,v,x;m<c;m++)if((x=a[m])&&x.length){if((v=f[m])&&v.length)for(p=0;p<x.length;p++)v.push(x[p]);else f[m]=x;p=1}}else f=a,p=1;p&&r.put(f,o+":"+u)})}}}),e.store?await this.transaction("reg","readwrite",function(r){for(const s of e.store){const o=s[0],i=s[1];r.put(typeof i=="object"?JSON.stringify(i):1,o)}}):e.bypass||await this.transaction("reg","readwrite",function(r){for(const s of e.reg.keys())r.put(1,s)}),e.tag&&await this.transaction("tag","readwrite",function(r){for(const s of e.tag){const o=s[0],i=s[1];i.length&&(r.get(o).onsuccess=function(){let l=this.result;l=l&&l.length?l.concat(i):i,r.put(l,o)})}}),e.map.clear(),e.ctx.clear(),e.tag&&e.tag.clear(),e.store&&e.store.clear(),e.document||e.reg.clear())};function Pl(e,t,n){const r=e.value;let s,o=0;for(let i=0,l;i<r.length;i++){if(l=n?r:r[i]){for(let u=0,a,f;u<t.length;u++)if(f=t[u],a=l.indexOf(f),0<=a)if(s=1,1<l.length)l.splice(a,1);else{r[i]=[];break}o+=l.length}if(n)break}o?s&&e.update(r):e.delete(),e.continue()}A.remove=function(e){return typeof e!="object"&&(e=[e]),Promise.all([this.transaction("map","readwrite",function(t){t.openCursor().onsuccess=function(){const n=this.result;n&&Pl(n,e)}}),this.transaction("ctx","readwrite",function(t){t.openCursor().onsuccess=function(){const n=this.result;n&&Pl(n,e)}}),this.transaction("tag","readwrite",function(t){t.openCursor().onsuccess=function(){const n=this.result;n&&Pl(n,e,!0)}}),this.transaction("reg","readwrite",function(t){for(let n=0;n<e.length;n++)t.delete(e[n])})])};function Ct(e,t){return new Promise((n,r)=>{e.onsuccess=e.oncomplete=function(){t&&t(this.result),t=null,n(this.result)},e.onerror=e.onblocked=r,e=null})}const qs={Encoder:jr,Document:Vt},qp=yf,Zp={finalize:e=>{let t=[];for(const n of e)t.push(...eg(n));return t}};function bp(e){return e>=19968&&e<=40959||e>=12352&&e<=12543||e>=44032&&e<=55203||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=191471||e>=196608&&e<=205743||e>=191472&&e<=192095||e>=63744&&e<=64255||e>=194560&&e<=195103}function eg(e){const t=[];let n="";for(const r of e){const s=r.codePointAt(0);bp(s)?(n&&(t.push(n),n=""),t.push(r)):n+=r}return n&&t.push(n),t}const El=new qs.Encoder(qp.Default,Zp);class tg{constructor({adminUrl:t,apiKey:n,dir:r}){Qf(this,H);const s=r==="rtl",o=r==="rtl"?"reverse":"forward";this.apiUrl=t,this.apiKey=n,this.postsIndex=new qs.Document({tokenize:o,rtl:s,document:{id:"id",index:["title","excerpt"],store:!0},encoder:El}),this.authorsIndex=new qs.Document({tokenize:o,rtl:s,document:{id:"id",index:["name"],store:!0},encoder:El}),this.tagsIndex=new qs.Document({tokenize:o,rtl:s,document:{id:"id",index:["name"],store:!0},encoder:El}),this.init=this.init.bind(this),this.search=this.search.bind(this)}async init(){await ke(this,H,Yf).call(this),await ke(this,H,Xf).call(this),await ke(this,H,bf).call(this)}search(t){const n=this.postsIndex.search(t,{enrich:!0}),r=this.authorsIndex.search(t,{enrich:!0}),s=this.tagsIndex.search(t,{enrich:!0});return{posts:ke(this,H,lo).call(this,n),authors:ke(this,H,lo).call(this,r),tags:ke(this,H,lo).call(this,s)}}}H=new WeakSet,Yf=async function(){const t=await ke(this,H,Jf).call(this);t.length>0&&ke(this,H,Gf).call(this,t)},Jf=async function(){try{const t=`${this.apiUrl}/ghost/api/content/search-index/posts/?key=${this.apiKey}`;return(await(await fetch(t)).json()).posts}catch(t){return console.error("Error fetching posts:",t),[]}},Gf=function(t){t.forEach(n=>{this.postsIndex.add(n)})},Xf=async function(){const t=await ke(this,H,qf).call(this);t.length>0&&ke(this,H,Zf).call(this,t)},qf=async function(){try{const t=`${this.apiUrl}/ghost/api/content/search-index/authors/?key=${this.apiKey}`;return(await(await fetch(t)).json()).authors}catch(t){return console.error("Error fetching authors:",t),[]}},Zf=function(t){t.forEach(n=>{this.authorsIndex.add(n)})},bf=async function(){const t=await ke(this,H,eh).call(this);t.length>0&&ke(this,H,th).call(this,t)},eh=async function(){try{const t=`${this.apiUrl}/ghost/api/content/search-index/tags/?key=${this.apiKey}`;return(await(await fetch(t)).json()).tags}catch(t){return console.error("Error fetching tags:",t),[]}},th=function(t){t.forEach(n=>{this.tagsIndex.add(n)})},lo=function(t){const n=[],r={};return t.forEach(s=>{s.result.forEach(o=>{r[o.id]||(n.push(o.doc),r[o.id]=!0)})}),n};const ng={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},rg={Authors:"الكتّاب",Cancel:"إلغاء","No matches found":"لا يوجد نتائج مطابقة",Posts:"منشورات","Search posts, tags and authors":"قم بالبحث عن المنشورات، الوسوم و الكتّاب","Show more results":"اظهر المزيد من النتائج",Tags:"الوسوم"},sg={Authors:"Автори",Cancel:"Отказ","No matches found":"Няма съвпадения",Posts:"Публикации","Search posts, tags and authors":"Търсене в публикации, етикети и автори","Show more results":"Покажи още резултати",Tags:"Етикети"},og={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},ig={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},lg={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"},ug={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"},ag={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"},cg={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"},fg={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"},hg={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},dg={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},pg={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},gg={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"},mg={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"},yg={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},vg={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},wg={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"},xg={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"},Sg={Authors:"מחברים",Cancel:"ביטול","No matches found":"לא נמצאו התאמות",Posts:"פוסטים","Search posts, tags and authors":"חיפוש פוסטים, תגיות ומחברים","Show more results":"הצגת תוצאות נוספות",Tags:"תגיות"},$g={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},kg={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Cg={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"},Pg={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"},Eg={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Tg={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"},jg={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Ng={Authors:"작성자",Cancel:"취소","No matches found":"일치하는 결과가 없어요",Posts:"게시물","Search posts, tags and authors":"게시물, 태그, 작성자 검색","Show more results":"더 많은 결과 보기",Tags:"태그"},Ag={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Lg={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Og={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"},_g={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Rg={Authors:"Нийтлэгчид",Cancel:"Цуцлах","No matches found":"Тохирох хайлтын үр дүн олдсонгүй",Posts:"Нийтлэлүүд","Search posts, tags and authors":"Нийтлэл, ангилал, нийтлэгчдээр хайх","Show more results":"Илүү олон үр дүн харуулах",Tags:"Ангилалууд"},zg={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Ig={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"},Mg={Authors:"लेखकहरू",Cancel:"रद्द गर्नुहोस्","No matches found":"कुनै परिणाम भेटिएन",Posts:"पोस्टहरू","Search posts, tags and authors":"पोस्टहरू, ट्यागहरू र लेखकहरू खोज्नुहोस्","Show more results":"थप परिणामहरू देखाउनुहोस्",Tags:"ट्यागहरू"},Dg={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"},Fg={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Ug={Authors:"ਲੇਖਕ",Cancel:"ਰੱਦ ਕਰੋ","No matches found":"ਕੋਈ ਮੇਲ ਨਹੀਂ ਮਿਲਿਆ",Posts:"ਪੋਸਟਾਂ","Search posts, tags and authors":"ਪੋਸਟਾਂ, ਟੈਗ ਅਤੇ ਲੇਖਕ ਖੋਜੋ","Show more results":"ਹੋਰ ਨਤੀਜੇ ਦਿਖਾਓ",Tags:"ਟੈਗ"},Vg={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"},Bg={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Hg={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"},Kg={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"},Wg={Authors:"Авторы",Cancel:"Отмена","No matches found":"Совпадений не найдено",Posts:"Записи","Search posts, tags and authors":"Поиск по записям, тегам и авторам","Show more results":"Показать больше результатов",Tags:"Теги"},Qg={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Yg={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"},Jg={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"},Gg={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Xg={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},qg={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Zg={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"},bg={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},em={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"},tm={Authors:"Автори",Cancel:"Скасувати","No matches found":"Збігів не знайдено",Posts:"Публікації","Search posts, tags and authors":"Шукайте публікацій, теги та авторів","Show more results":"Показати більше результатів",Tags:"Теги"},nm={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},rm={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},sm={Authors:"Tác giả",Cancel:"Hủy","No matches found":"Không tìm thấy",Posts:"Bài viết","Search posts, tags and authors":"Tìm bài viết, chuyên mục & tác giả","Show more results":"Xem thêm kết quả",Tags:"Chuyên mục"},om={Authors:"作者",Cancel:"取消","No matches found":"未找到匹配项",Posts:"文章","Search posts, tags and authors":"搜索文章、标签和作者","Show more results":"显示更多结果",Tags:"标签"},im={Authors:"作者",Cancel:"取消","No matches found":"無相符結果",Posts:"文章","Search posts, tags and authors":"搜尋文章、標籤與作者","Show more results":"更多結果",Tags:"標籤"},lm={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},um={Authors:"ஆசிரியர்கள்",Cancel:"ரத்து செய்","No matches found":"பொருத்தங்கள் எதுவும் இல்லை",Posts:"பதிவுகள்","Search posts, tags and authors":"பதிவுகள், குறிச்சொற்கள் மற்றும் ஆசிரியர்களைத் தேடுங்கள்","Show more results":"மேலும் முடிவுகளைக் காட்டு",Tags:"குறிச்சொற்கள்"};var Cf;function Pf(){return Cf||(Cf={"/ghost/i18n/locales/af/search.json":function(){return ng},"/ghost/i18n/locales/ar/search.json":function(){return rg},"/ghost/i18n/locales/bg/search.json":function(){return sg},"/ghost/i18n/locales/bn/search.json":function(){return og},"/ghost/i18n/locales/bs/search.json":function(){return ig},"/ghost/i18n/locales/ca/search.json":function(){return lg},"/ghost/i18n/locales/cs/search.json":function(){return ug},"/ghost/i18n/locales/da/search.json":function(){return ag},"/ghost/i18n/locales/de/search.json":function(){return cg},"/ghost/i18n/locales/de-CH/search.json":function(){return fg},"/ghost/i18n/locales/el/search.json":function(){return hg},"/ghost/i18n/locales/en/search.json":function(){return dg},"/ghost/i18n/locales/eo/search.json":function(){return pg},"/ghost/i18n/locales/es/search.json":function(){return gg},"/ghost/i18n/locales/et/search.json":function(){return mg},"/ghost/i18n/locales/fa/search.json":function(){return yg},"/ghost/i18n/locales/fi/search.json":function(){return vg},"/ghost/i18n/locales/fr/search.json":function(){return wg},"/ghost/i18n/locales/gd/search.json":function(){return xg},"/ghost/i18n/locales/he/search.json":function(){return Sg},"/ghost/i18n/locales/hi/search.json":function(){return $g},"/ghost/i18n/locales/hr/search.json":function(){return kg},"/ghost/i18n/locales/hu/search.json":function(){return Cg},"/ghost/i18n/locales/id/search.json":function(){return Pg},"/ghost/i18n/locales/is/search.json":function(){return Eg},"/ghost/i18n/locales/it/search.json":function(){return Tg},"/ghost/i18n/locales/ja/search.json":function(){return jg},"/ghost/i18n/locales/ko/search.json":function(){return Ng},"/ghost/i18n/locales/kz/search.json":function(){return Ag},"/ghost/i18n/locales/lt/search.json":function(){return Lg},"/ghost/i18n/locales/lv/search.json":function(){return Og},"/ghost/i18n/locales/mk/search.json":function(){return _g},"/ghost/i18n/locales/mn/search.json":function(){return Rg},"/ghost/i18n/locales/ms/search.json":function(){return zg},"/ghost/i18n/locales/nb/search.json":function(){return Ig},"/ghost/i18n/locales/ne/search.json":function(){return Mg},"/ghost/i18n/locales/nl/search.json":function(){return Dg},"/ghost/i18n/locales/nn/search.json":function(){return Fg},"/ghost/i18n/locales/pa/search.json":function(){return Ug},"/ghost/i18n/locales/pl/search.json":function(){return Vg},"/ghost/i18n/locales/pt/search.json":function(){return Bg},"/ghost/i18n/locales/pt-BR/search.json":function(){return Hg},"/ghost/i18n/locales/ro/search.json":function(){return Kg},"/ghost/i18n/locales/ru/search.json":function(){return Wg},"/ghost/i18n/locales/si/search.json":function(){return Qg},"/ghost/i18n/locales/sk/search.json":function(){return Yg},"/ghost/i18n/locales/sl/search.json":function(){return Jg},"/ghost/i18n/locales/sq/search.json":function(){return Gg},"/ghost/i18n/locales/sr/search.json":function(){return Xg},"/ghost/i18n/locales/sr-Cyrl/search.json":function(){return qg},"/ghost/i18n/locales/sv/search.json":function(){return Zg},"/ghost/i18n/locales/th/search.json":function(){return bg},"/ghost/i18n/locales/tr/search.json":function(){return em},"/ghost/i18n/locales/uk/search.json":function(){return tm},"/ghost/i18n/locales/ur/search.json":function(){return nm},"/ghost/i18n/locales/uz/search.json":function(){return rm},"/ghost/i18n/locales/vi/search.json":function(){return sm},"/ghost/i18n/locales/zh/search.json":function(){return om},"/ghost/i18n/locales/zh-Hant/search.json":function(){return im},"/ghost/i18n/locales/sw/search.json":function(){return lm},"/ghost/i18n/locales/ta/search.json":function(){return um}})}function Ef(e){function t(n){var r=Tf(n,e);if(r!==null)return Pf()[r]();throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}return t.resolve=function(n){var r=Tf(n,e);return r!==null?r:require.resolve(n)},t}function Tf(e,t){var n=am(e);e=Zs(e);var r;e[0]==="/"&&(t="");for(var s=Pf(),o=["",".js",".json"];n?r=Zs(t+"/node_modules/"+e):r=Zs(t+"/"+e),!r.endsWith("/..");){for(var i=0;i<o.length;i++){var l=r+o[i];if(s[l])return l}if(!n)break;var u=Zs(t+"/..");if(u===t)break;t=u}return null}function am(e){var t=e[0];if(t==="/"||t==="\\")return!1;var n=e[1],r=e[2];return!(t==="."&&(!n||n==="/"||n==="\\")||t==="."&&n==="."&&(!r||r==="/"||r==="\\")||n===":"&&(r==="/"||r==="\\"))}function Zs(e){e=e.replace(/\\/g,"/");for(var t=e.split("/"),n=t[0]==="",r=1;r<t.length;r++)(t[r]==="."||t[r]==="")&&t.splice(r--,1);for(var r=1;r<t.length;r++)t[r]===".."&&r>0&&t[r-1]!==".."&&t[r-1]!=="."&&(t.splice(--r,2),r--);return e=t.join("/"),n&&e[0]!=="/"?e="/"+e:e.length===0&&(e="."),e}var bs={exports:{}};const O=e=>typeof e=="string",Rr=()=>{let e,t;const n=new Promise((r,s)=>{e=r,t=s});return n.resolve=e,n.reject=t,n},jf=e=>e==null?"":""+e,cm=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},fm=/###/g,Nf=e=>e&&e.indexOf("###")>-1?e.replace(fm,"."):e,Af=e=>!e||O(e),zr=(e,t,n)=>{const r=O(t)?t.split("."):t;let s=0;for(;s<r.length-1;){if(Af(e))return{};const o=Nf(r[s]);!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++s}return Af(e)?{}:{obj:e,k:Nf(r[s])}},Lf=(e,t,n)=>{const{obj:r,k:s}=zr(e,t,Object);if(r!==void 0||t.length===1){r[s]=n;return}let o=t[t.length-1],i=t.slice(0,t.length-1),l=zr(e,i,Object);for(;l.obj===void 0&&i.length;)o=`${i[i.length-1]}.${o}`,i=i.slice(0,i.length-1),l=zr(e,i,Object),l&&l.obj&&typeof l.obj[`${l.k}.${o}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${o}`]=n},hm=(e,t,n,r)=>{const{obj:s,k:o}=zr(e,t,Object);s[o]=s[o]||[],s[o].push(n)},eo=(e,t)=>{const{obj:n,k:r}=zr(e,t);if(n)return n[r]},dm=(e,t,n)=>{const r=eo(e,n);return r!==void 0?r:eo(t,n)},Of=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?O(e[r])||e[r]instanceof String||O(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Of(e[r],t[r],n):e[r]=t[r]);return e},En=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var pm={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const gm=e=>O(e)?e.replace(/[&<>"'\/]/g,t=>pm[t]):e;class mm{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const ym=[" ",",","?","!",";"],vm=new mm(20),wm=(e,t,n)=>{t=t||"",n=n||"";const r=ym.filter(i=>t.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const s=vm.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let o=!s.test(e);if(!o){const i=e.indexOf(n);i>0&&!s.test(e.substring(0,i))&&(o=!0)}return o},Tl=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let s=e;for(let o=0;o<r.length;){if(!s||typeof s!="object")return;let i,l="";for(let u=o;u<r.length;++u)if(u!==o&&(l+=n),l+=r[u],i=s[l],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&u<r.length-1)continue;o+=u-o+1;break}s=i}return s},to=e=>e&&e.replace("_","-"),xm={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class no{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||xm,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,s){return s&&!this.debug?null:(O(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new no(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new no(this.logger,t)}}var We=new no;class ro{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const s=this.observers[r].get(n)||0;this.observers[r].set(n,s+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(i=>{let[l,u]=i;for(let a=0;a<u;a++)l(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[l,u]=i;for(let a=0;a<u;a++)l.apply(l,[t,...r])})}}class _f extends ro{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,i=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],r&&(Array.isArray(r)?l.push(...r):O(r)&&o?l.push(...r.split(o)):l.push(r)));const u=eo(this.data,l);return!u&&!n&&!r&&t.indexOf(".")>-1&&(t=l[0],n=l[1],r=l.slice(2).join(".")),u||!i||!O(r)?u:Tl(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,s){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let l=[t,n];r&&(l=l.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(l=t.split("."),s=n,n=l[1]),this.addNamespaces(n),Lf(this.data,l,s),o.silent||this.emit("added",t,n,r,s)}addResources(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(O(r[o])||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});s.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,s,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),s=r,r=n,n=l[1]),this.addNamespaces(n);let u=eo(this.data,l)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),s?Of(u,r,o):u={...u,...r},Lf(this.data,l,u),i.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(s=>n[s]&&Object.keys(n[s]).length>0)}toJSON(){return this.data}}var Rf={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,s){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,s))}),t}};const zf={};class so extends ro{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),cm(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=We.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const i=r&&t.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!wm(t,r,s);if(i&&!l){const u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:O(o)?[o]:o};const a=t.split(r);(r!==s||r===s&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),t=a.join(s)}return{key:t,namespaces:O(o)?[o]:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const s=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:l}=this.extractFromKey(t[t.length-1],n),u=l[l.length-1],a=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(a&&a.toLowerCase()==="cimode"){if(f){const y=n.nsSeparator||this.options.nsSeparator;return s?{res:`${u}${y}${i}`,usedKey:i,exactUsedKey:i,usedLng:a,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${y}${i}`}return s?{res:i,usedKey:i,exactUsedKey:i,usedLng:a,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:i}const p=this.resolve(t,n);let c=p&&p.res;const m=p&&p.usedKey||i,v=p&&p.exactUsedKey||i,x=Object.prototype.toString.apply(c),h=["[object Number]","[object Function]","[object RegExp]"],d=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,w=!O(c)&&typeof c!="boolean"&&typeof c!="number";if(g&&c&&w&&h.indexOf(x)<0&&!(O(d)&&Array.isArray(c))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const y=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,c,{...n,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return s?(p.res=y,p.usedParams=this.getUsedParamsDetails(n),p):y}if(o){const y=Array.isArray(c),$=y?[]:{},S=y?v:m;for(const C in c)if(Object.prototype.hasOwnProperty.call(c,C)){const T=`${S}${o}${C}`;$[C]=this.translate(T,{...n,joinArrays:!1,ns:l}),$[C]===T&&($[C]=c[C])}c=$}}else if(g&&O(d)&&Array.isArray(c))c=c.join(d),c&&(c=this.extendTranslation(c,t,n,r));else{let y=!1,$=!1;const S=n.count!==void 0&&!O(n.count),C=so.hasDefaultValue(n),T=S?this.pluralResolver.getSuffix(a,n.count,n):"",N=n.ordinal&&S?this.pluralResolver.getSuffix(a,n.count,{ordinal:!1}):"",M=S&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),ze=M&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${T}`]||n[`defaultValue${N}`]||n.defaultValue;!this.isValidLookup(c)&&C&&(y=!0,c=ze),this.isValidLookup(c)||($=!0,c=i);const ee=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&$?void 0:c,Qe=C&&ze!==c&&this.options.updateMissing;if($||y||Qe){if(this.logger.log(Qe?"updateKey":"missingKey",a,u,i,Qe?ze:c),o){const oe=this.resolve(i,{...n,keySeparator:!1});oe&&oe.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let $e=[];const Ye=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ye&&Ye[0])for(let oe=0;oe<Ye.length;oe++)$e.push(Ye[oe]);else this.options.saveMissingTo==="all"?$e=this.languageUtils.toResolveHierarchy(n.lng||this.language):$e.push(n.lng||this.language);const jn=(oe,Ie,Kt)=>{const E=C&&Kt!==c?Kt:ee;this.options.missingKeyHandler?this.options.missingKeyHandler(oe,u,Ie,E,Qe,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(oe,u,Ie,E,Qe,n),this.emit("missingKey",oe,u,Ie,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&S?$e.forEach(oe=>{const Ie=this.pluralResolver.getSuffixes(oe,n);M&&n[`defaultValue${this.options.pluralSeparator}zero`]&&Ie.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ie.push(`${this.options.pluralSeparator}zero`),Ie.forEach(Kt=>{jn([oe],i+Kt,n[`defaultValue${Kt}`]||ze)})}):jn($e,i,ze))}c=this.extendTranslation(c,t,n,p,r),$&&c===i&&this.options.appendNamespaceToMissingKey&&(c=`${u}:${i}`),($||y)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?c=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${i}`:i,y?c:void 0):c=this.options.parseMissingKeyHandler(c))}return s?(p.res=c,p.usedParams=this.getUsedParamsDetails(n),p):c}extendTranslation(t,n,r,s,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const a=O(t)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(a){const c=t.match(this.interpolator.nestingRegexp);f=c&&c.length}let p=r.replace&&!O(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),t=this.interpolator.interpolate(t,p,r.lng||this.language||s.usedLng,r),a){const c=t.match(this.interpolator.nestingRegexp),m=c&&c.length;f<m&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&s&&s.res&&(r.lng=this.language||s.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var c=arguments.length,m=new Array(c),v=0;v<c;v++)m[v]=arguments[v];return o&&o[0]===m[0]&&!r.context?(i.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${n[0]}`),null):i.translate(...m,n)},r)),r.interpolation&&this.interpolator.reset()}const l=r.postProcess||this.options.postProcess,u=O(l)?[l]:l;return t!=null&&u&&u.length&&r.applyPostProcessor!==!1&&(t=Rf.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,s,o,i,l;return O(t)&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(r))return;const a=this.extractFromKey(u,n),f=a.key;s=f;let p=a.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));const c=n.count!==void 0&&!O(n.count),m=c&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),v=n.context!==void 0&&(O(n.context)||typeof n.context=="number")&&n.context!=="",x=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);p.forEach(h=>{this.isValidLookup(r)||(l=h,!zf[`${x[0]}-${h}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(zf[`${x[0]}-${h}`]=!0,this.logger.warn(`key "${s}" for languages "${x.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),x.forEach(d=>{if(this.isValidLookup(r))return;i=d;const g=[f];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(g,f,d,h,n);else{let y;c&&(y=this.pluralResolver.getSuffix(d,n.count,n));const $=`${this.options.pluralSeparator}zero`,S=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(g.push(f+y),n.ordinal&&y.indexOf(S)===0&&g.push(f+y.replace(S,this.options.pluralSeparator)),m&&g.push(f+$)),v){const C=`${f}${this.options.contextSeparator}${n.context}`;g.push(C),c&&(g.push(C+y),n.ordinal&&y.indexOf(S)===0&&g.push(C+y.replace(S,this.options.pluralSeparator)),m&&g.push(C+$))}}let w;for(;w=g.pop();)this.isValidLookup(r)||(o=w,r=this.getResource(d,h,w,n))}))})}),{res:r,usedKey:s,exactUsedKey:o,usedLng:i,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,s):this.resourceStore.getResource(t,n,r,s)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!O(t.replace);let s=r?t.replace:t;if(r&&typeof t.count<"u"&&(s.count=t.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!r){s={...s};for(const o of n)delete s[o]}return s}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const jl=e=>e.charAt(0).toUpperCase()+e.slice(1);class If{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=We.create("languageUtils")}getScriptPartFromCode(t){if(t=to(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=to(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(O(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let s=Intl.getCanonicalLocales(t)[0];if(s&&this.options.lowerCaseLng&&(s=s.toLowerCase()),s)return s}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(s=>s.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=jl(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=jl(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=jl(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const s=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(s))&&(n=s)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(o=>{if(o===s)return o;if(!(o.indexOf("-")<0&&s.indexOf("-")<0)&&(o.indexOf("-")>0&&s.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===s||o.indexOf(s)===0&&s.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),O(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),s=[],o=i=>{i&&(this.isSupportedCode(i)?s.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return O(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):O(t)&&o(this.formatLanguageCode(t)),r.forEach(i=>{s.indexOf(i)<0&&o(this.formatLanguageCode(i))}),s}}let Sm=[{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}],$m={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const km=["v1","v2","v3"],Cm=["v4"],Mf={zero:0,one:1,two:2,few:3,many:4,other:5},Pm=()=>{const e={};return Sm.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:$m[t.fc]}})}),e};class Em{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=We.create("pluralResolver"),(!this.options.compatibilityJSON||Cm.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=Pm(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const r=to(t==="dev"?"en":t),s=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:s});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let i;try{i=new Intl.PluralRules(r,{type:s})}catch{if(!t.match(/-|_/))return;const u=this.languageUtils.getLanguagePartFromCode(t);i=this.getRule(u,n)}return this.pluralRulesCache[o]=i,i}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(s=>`${n}${s}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((s,o)=>Mf[s]-Mf[o]).map(s=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s}`):r.numbers.map(s=>this.getSuffix(t,s,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(t,r);return s?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${s.select(n)}`:this.getSuffixRetroCompatible(s,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let s=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));const o=()=>this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString();return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?`_plural_${s.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!km.includes(this.options.compatibilityJSON)}}const Df=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=dm(e,t,n);return!o&&s&&O(n)&&(o=Tl(e,n,r),o===void 0&&(o=Tl(t,n,r))),o},Nl=e=>e.replace(/\$/g,"$$$$");class Tm{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=We.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:s,prefix:o,prefixEscaped:i,suffix:l,suffixEscaped:u,formatSeparator:a,unescapeSuffix:f,unescapePrefix:p,nestingPrefix:c,nestingPrefixEscaped:m,nestingSuffix:v,nestingSuffixEscaped:x,nestingOptionsSeparator:h,maxReplaces:d,alwaysFormat:g}=t.interpolation;this.escape=n!==void 0?n:gm,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=o?En(o):i||"{{",this.suffix=l?En(l):u||"}}",this.formatSeparator=a||",",this.unescapePrefix=f?"":p||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=c?En(c):m||En("$t("),this.nestingSuffix=v?En(v):x||En(")"),this.nestingOptionsSeparator=h||",",this.maxReplaces=d||1e3,this.alwaysFormat=g!==void 0?g:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,s){let o,i,l;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},a=m=>{if(m.indexOf(this.formatSeparator)<0){const d=Df(n,u,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(d,void 0,r,{...s,...n,interpolationkey:m}):d}const v=m.split(this.formatSeparator),x=v.shift().trim(),h=v.join(this.formatSeparator).trim();return this.format(Df(n,u,x,this.options.keySeparator,this.options.ignoreJSONStructure),h,r,{...s,...n,interpolationkey:x})};this.resetRegExp();const f=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,p=s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>Nl(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?Nl(this.escape(m)):Nl(m)}].forEach(m=>{for(l=0;o=m.regex.exec(t);){const v=o[1].trim();if(i=a(v),i===void 0)if(typeof f=="function"){const h=f(t,o,s);i=O(h)?h:""}else if(s&&Object.prototype.hasOwnProperty.call(s,v))i="";else if(p){i=o[0];continue}else this.logger.warn(`missed to pass in variable ${v} for interpolating ${t}`),i="";else!O(i)&&!this.useRawValueToEscape&&(i=jf(i));const x=m.safeValue(i);if(t=t.replace(o[0],x),p?(m.regex.lastIndex+=i.length,m.regex.lastIndex-=o[0].length):m.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,o,i;const l=(u,a)=>{const f=this.nestingOptionsSeparator;if(u.indexOf(f)<0)return u;const p=u.split(new RegExp(`${f}[ ]*{`));let c=`{${p[1]}`;u=p[0],c=this.interpolate(c,i);const m=c.match(/'/g),v=c.match(/"/g);(m&&m.length%2===0&&!v||v.length%2!==0)&&(c=c.replace(/'/g,'"'));try{i=JSON.parse(c),a&&(i={...a,...i})}catch(x){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,x),`${u}${f}${c}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,u};for(;s=this.nestingRegexp.exec(t);){let u=[];i={...r},i=i.replace&&!O(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let a=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const f=s[1].split(this.formatSeparator).map(p=>p.trim());s[1]=f.shift(),u=f,a=!0}if(o=n(l.call(this,s[1].trim(),i),i),o&&s[0]===t&&!O(o))return o;O(o)||(o=jf(o)),o||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`),o=""),a&&(o=u.reduce((f,p)=>this.format(f,p,r.lng,{...r,interpolationkey:s[1].trim()}),o.trim())),t=t.replace(s[0],o),this.regexp.lastIndex=0}return t}}const jm=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const s=r[1].substring(0,r[1].length-1);t==="currency"&&s.indexOf(":")<0?n.currency||(n.currency=s.trim()):t==="relativetime"&&s.indexOf(":")<0?n.range||(n.range=s.trim()):s.split(";").forEach(i=>{if(i){const[l,...u]=i.split(":"),a=u.join(":").trim().replace(/^'+|'+$/g,""),f=l.trim();n[f]||(n[f]=a),a==="false"&&(n[f]=!1),a==="true"&&(n[f]=!0),isNaN(a)||(n[f]=parseInt(a,10))}})}return{formatName:t,formatOptions:n}},Tn=e=>{const t={};return(n,r,s)=>{let o=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(o={...o,[s.interpolationkey]:void 0});const i=r+JSON.stringify(o);let l=t[i];return l||(l=e(to(r),s),t[i]=l),l(n)}};class Nm{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=We.create("formatter"),this.options=t,this.formats={number:Tn((n,r)=>{const s=new Intl.NumberFormat(n,{...r});return o=>s.format(o)}),currency:Tn((n,r)=>{const s=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>s.format(o)}),datetime:Tn((n,r)=>{const s=new Intl.DateTimeFormat(n,{...r});return o=>s.format(o)}),relativetime:Tn((n,r)=>{const s=new Intl.RelativeTimeFormat(n,{...r});return o=>s.format(o,r.range||"day")}),list:Tn((n,r)=>{const s=new Intl.ListFormat(n,{...r});return o=>s.format(o)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Tn(n)}format(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(l=>l.indexOf(")")>-1)){const l=o.findIndex(u=>u.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,l)].join(this.formatSeparator)}return o.reduce((l,u)=>{const{formatName:a,formatOptions:f}=jm(u);if(this.formats[a]){let p=l;try{const c=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},m=c.locale||c.lng||s.locale||s.lng||r;p=this.formats[a](l,m,{...f,...s,...c})}catch(c){this.logger.warn(c)}return p}else this.logger.warn(`there was no format function for ${a}`);return l},t)}}const Am=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class Lm extends ro{constructor(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=s,this.logger=We.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,s.backend,s)}queueLoad(t,n,r,s){const o={},i={},l={},u={};return t.forEach(a=>{let f=!0;n.forEach(p=>{const c=`${a}|${p}`;!r.reload&&this.store.hasResourceBundle(a,p)?this.state[c]=2:this.state[c]<0||(this.state[c]===1?i[c]===void 0&&(i[c]=!0):(this.state[c]=1,f=!1,i[c]===void 0&&(i[c]=!0),o[c]===void 0&&(o[c]=!0),u[p]===void 0&&(u[p]=!0)))}),f||(l[a]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}loaded(t,n,r){const s=t.split("|"),o=s[0],i=s[1];n&&this.emit("failedLoading",o,i,n),!n&&r&&this.store.addResourceBundle(o,i,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const l={};this.queue.forEach(u=>{hm(u.loaded,[o],i),Am(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(a=>{l[a]||(l[a]={});const f=u.loaded[a];f.length&&f.forEach(p=>{l[a][p]===void 0&&(l[a][p]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(u=>!u.done)}read(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:s,wait:o,callback:i});return}this.readingCalls++;const l=(a,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const p=this.waitingReads.shift();this.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(a&&f&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,s+1,o*2,i)},o);return}i(a,f)},u=this.backend[r].bind(this.backend);if(u.length===2){try{const a=u(t,n);a&&typeof a.then=="function"?a.then(f=>l(null,f)).catch(l):l(null,a)}catch(a){l(a)}return}return u(t,n,l)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();O(t)&&(t=this.languageUtils.toResolveHierarchy(t)),O(n)&&(n=[n]);const o=this.queueLoad(t,n,r,s);if(!o.toLoad.length)return o.pending.length||s(),null;o.toLoad.forEach(i=>{this.loadOne(i)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),s=r[0],o=r[1];this.read(s,o,"read",void 0,void 0,(i,l)=>{i&&this.logger.warn(`${n}loading namespace ${o} for language ${s} failed`,i),!i&&l&&this.logger.log(`${n}loaded namespace ${o} for language ${s}`,l),this.loaded(t,i,l)})}saveMissing(t,n,r,s,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const u={...i,isUpdate:o},a=this.backend.create.bind(this.backend);if(a.length<6)try{let f;a.length===5?f=a(t,n,r,s,u):f=a(t,n,r,s),f&&typeof f.then=="function"?f.then(p=>l(null,p)).catch(l):l(null,f)}catch(f){l(f)}else a(t,n,r,s,l,u)}!t||!t[0]||this.store.addResource(t[0],n,r,s)}}}const Ff=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),O(e[1])&&(t.defaultValue=e[1]),O(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Uf=e=>(O(e.ns)&&(e.ns=[e.ns]),O(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),O(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),oo=()=>{},Om=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class Ir extends ro{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Uf(t),this.services={},this.logger=We,this.modules={external:[]},Om(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(O(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const s=Ff();this.options={...s,...this.options,...Uf(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...s.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=f=>f?typeof f=="function"?new f:f:null;if(!this.options.isClone){this.modules.logger?We.init(o(this.modules.logger),this.options):We.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=Nm);const p=new If(this.options);this.store=new _f(this.options.resources,this.options);const c=this.services;c.logger=We,c.resourceStore=this.store,c.languageUtils=p,c.pluralResolver=new Em(p,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(c.formatter=o(f),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new Tm(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new Lm(o(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(m){for(var v=arguments.length,x=new Array(v>1?v-1:0),h=1;h<v;h++)x[h-1]=arguments[h];t.emit(m,...x)}),this.modules.languageDetector&&(c.languageDetector=o(this.modules.languageDetector),c.languageDetector.init&&c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=o(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new so(this.services,this.options),this.translator.on("*",function(m){for(var v=arguments.length,x=new Array(v>1?v-1:0),h=1;h<v;h++)x[h-1]=arguments[h];t.emit(m,...x)}),this.modules.external.forEach(m=>{m.init&&m.init(this)})}if(this.format=this.options.interpolation.format,r||(r=oo),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(f=>{this[f]=function(){return t.store[f](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=function(){return t.store[f](...arguments),t}});const u=Rr(),a=()=>{const f=(p,c)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(c),r(p,c)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),u}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:oo;const s=O(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],i=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(a=>{a!=="cimode"&&o.indexOf(a)<0&&o.push(a)})};s?i(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>i(u)),this.options.preload&&this.options.preload.forEach(l=>i(l)),this.services.backendConnector.load(o,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(l)})}else r(null)}reloadResources(t,n,r){const s=Rr();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=oo),this.services.backendConnector.reload(t,n,o=>{s.resolve(),r(o)}),s}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Rf.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const s=Rr();this.emit("languageChanging",t);const o=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},i=(u,a)=>{a?(o(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit("languageChanged",a),this.logger.log("languageChanged",a)):this.isLanguageChangingTo=void 0,s.resolve(function(){return r.t(...arguments)}),n&&n(u,function(){return r.t(...arguments)})},l=u=>{!t&&!u&&this.services.languageDetector&&(u=[]);const a=O(u)?u:this.services.languageUtils.getBestMatchFromCodes(u);a&&(this.language||o(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(a)),this.loadResources(a,f=>{i(f,a)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),s}getFixedT(t,n,r){var s=this;const o=function(i,l){let u;if(typeof l!="object"){for(var a=arguments.length,f=new Array(a>2?a-2:0),p=2;p<a;p++)f[p-2]=arguments[p];u=s.options.overloadTranslationOptionHandler([i,l].concat(f))}else u={...l};u.lng=u.lng||o.lng,u.lngs=u.lngs||o.lngs,u.ns=u.ns||o.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||r||o.keyPrefix);const c=s.options.keySeparator||".";let m;return u.keyPrefix&&Array.isArray(i)?m=i.map(v=>`${u.keyPrefix}${c}${v}`):m=u.keyPrefix?`${u.keyPrefix}${c}${i}`:i,s.t(m,u)};return O(t)?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(l,u)=>{const a=this.services.backendConnector.state[`${l}|${u}`];return a===-1||a===0||a===2};if(n.precheck){const l=n.precheck(this,i);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,t)&&(!s||i(o,t)))}loadNamespaces(t,n){const r=Rr();return this.options.ns?(O(t)&&(t=[t]),t.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Rr();O(t)&&(t=[t]);const s=this.options.preload||[],o=t.filter(i=>s.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return o.length?(this.options.preload=s.concat(o),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new If(Ff());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Ir(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:oo;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const s={...this.options,...t,isClone:!0},o=new Ir(s);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(l=>{o[l]=this[l]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new _f(this.store.data,s),o.services.resourceStore=o.store),o.translator=new so(o.services,s),o.translator.on("*",function(l){for(var u=arguments.length,a=new Array(u>1?u-1:0),f=1;f<u;f++)a[f-1]=arguments[f];o.emit(l,...a)}),o.init(s,n),o.translator.options=s,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Vf=Ir.createInstance();Vf.createInstance=Ir.createInstance;var _m=Vf;const Rm=_m,Bf=["af","ar","bg","bn","bs","ca","cs","da","de","de-CH","el","en","eo","es","et","fa","fi","fr","gd","he","hi","hr","hu","id","is","it","ja","ko","kz","lt","lv","mk","mn","ms","nb","ne","nl","nn","pa","pl","pt","pt-BR","ro","ru","si","sk","sl","sq","sr","sr-Cyrl","sv","th","tr","uk","ur","uz","vi","zh","zh-Hant","sw","ta"];function Hf(e,t){return e.reduce((n,r)=>{let s;try{s=Ef("/ghost/i18n/lib")(`../locales/${r}/${t}.json`)}catch{s=Ef("/ghost/i18n/lib")(`../locales/en/${t}.json`)}return n[r]={[t]:{...s,...s.default&&typeof s.default=="object"?s.default:{}}},n},{})}bs.exports=(e="en",t="portal")=>{const n=Rm.createInstance(),r={prefix:"{",suffix:"}"};let s=Hf(Bf,t);return n.init({lng:e,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:{no:["nb","en"],default:["en"]},ns:t,defaultNS:t,interpolation:r,resources:s}),n},bs.exports.SUPPORTED_LOCALES=Bf,bs.exports.generateResources=Hf;var zm=bs.exports,Im=zm;const Mm=pe(Im);class Dm extends tt.Component{constructor(t){super(t);const n=this.props.locale||"en",r=Mm(n,"search"),s=r.dir()||"ltr",o=new tg({adminUrl:t.adminUrl,apiKey:t.apiKey,dir:s});this.state={searchIndex:o,showPopup:!1,indexStarted:!1,indexComplete:!1,t:r.t,dir:s},this.inputRef=tt.createRef()}componentDidMount(){this.initSetup()}componentDidUpdate(t,n){var r,s,o;if(n.showPopup!==this.state.showPopup)try{this.state.showPopup?(this.bodyScroll=(o=(s=(r=window.document)==null?void 0:r.body)==null?void 0:s.style)==null?void 0:o.overflow,window.document.body.style.overflow="hidden"):window.document.body.style.overflow=this.bodyScroll||""}catch{}this.state.showPopup!==(n==null?void 0:n.showPopup)&&!this.state.showPopup&&this.setState({searchValue:""}),this.state.showPopup&&!this.state.indexStarted&&this.setupSearchIndex()}async setupSearchIndex(){this.setState({indexStarted:!0}),await this.state.searchIndex.init(),this.setState({indexComplete:!0})}componentWillUnmount(){window.removeEventListener("hashchange",this.hashHandler,!1),window.removeEventListener("keydown",this.handleKeyDown,!1)}initSetup(){this.handleSearchUrl(),this.addKeyboardShortcuts(),this.setupCustomTriggerButton(),this.hashHandler=()=>{this.handleSearchUrl()},window.addEventListener("hashchange",this.hashHandler,!1)}setupCustomTriggerButton(){this.clickHandler=t=>{t.preventDefault(),this.setState({showPopup:!0});const n=document.createElement("input");n.style.opacity="0",n.style.position="fixed",n.style.top="0",document.body.appendChild(n),n.focus(),setTimeout(()=>{this.inputRef.current.focus(),document.body.removeChild(n)},150)},this.customTriggerButtons=this.getCustomTriggerButtons(),this.customTriggerButtons.forEach(t=>{t.removeEventListener("click",this.clickHandler),t.addEventListener("click",this.clickHandler)})}getCustomTriggerButtons(){return document.querySelectorAll("[data-ghost-search]")||[]}handleSearchUrl(){const[t]=window.location.hash.substr(1).split("?");(t==="/search"||t==="/search/")&&(this.setState({showPopup:!0}),window.history.replaceState("",document.title,window.location.pathname))}addKeyboardShortcuts(){const t=this.getCustomTriggerButtons();t!=null&&t.length&&(this.handleKeyDown=n=>{if(n.key==="k"&&n.metaKey)return this.setState({showPopup:!0}),n.preventDefault(),n.stopPropagation(),!1},document.addEventListener("keydown",this.handleKeyDown))}render(){return P.jsx(fe.Provider,{value:{page:"search",showPopup:this.state.showPopup,adminUrl:this.props.adminUrl,stylesUrl:this.props.stylesUrl,searchIndex:this.state.searchIndex,indexComplete:this.state.indexComplete,searchValue:this.state.searchValue,inputRef:this.inputRef,onAction:()=>{},dispatch:(t,n)=>{t==="update"&&this.setState({...this.state,...n})},t:this.state.t,dir:this.state.dir},children:P.jsx(Qc,{})})}}const Kf="sodo-search-root";function Fm(){const e=document.createElement("div");e.id=Kf,document.body.appendChild(e)}function Um(){const e=document.querySelector("script[data-sodo-search]");if(e){const t=e.dataset.sodoSearch,n=e.dataset.key,r=e.dataset.styles,s=e.dataset.locale||"en";return{adminUrl:t,apiKey:n,stylesUrl:r,locale:s}}return{}}function Vm(){Fm()}function Bm(){var o;const{adminUrl:e,apiKey:t,stylesUrl:n,locale:r}=Um(),s=(o=e||window.location.origin)==null?void 0:o.replace(/\/+$/,"");Vm(),fp.render(P.jsx(tt.StrictMode,{children:P.jsx(Dm,{adminUrl:s,apiKey:t,stylesUrl:n,locale:r})}),document.getElementById(Kf))}Bm();const Hm=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}))});
56
51
  //# sourceMappingURL=sodo-search.min.js.map