patreon-dl 3.7.0 → 3.8.0

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.
Files changed (68) hide show
  1. package/README.md +29 -1
  2. package/dist/browse/api/CampaignAPIMixin.d.ts +1 -1
  3. package/dist/browse/api/ContentAPIMixin.d.ts +3 -3
  4. package/dist/browse/api/FilterAPIMixin.d.ts +1 -1
  5. package/dist/browse/api/index.d.ts +10 -10
  6. package/dist/browse/db/CampaignDBMixin.d.ts +3 -3
  7. package/dist/browse/db/ContentDBMixin.d.ts +13 -13
  8. package/dist/browse/db/index.d.ts +16 -16
  9. package/dist/browse/web/assets/index-CQnQD2xz.css +1 -0
  10. package/dist/browse/web/assets/index-CtZbx-Du.js +218 -0
  11. package/dist/browse/web/index.html +2 -2
  12. package/dist/cli/CLIOptions.js +2 -0
  13. package/dist/cli/CLIOptions.js.map +1 -1
  14. package/dist/cli/CommandLineParser.d.ts +4 -0
  15. package/dist/cli/CommandLineParser.js +65 -32
  16. package/dist/cli/CommandLineParser.js.map +1 -1
  17. package/dist/cli/ConfigFileParser.js +2 -0
  18. package/dist/cli/ConfigFileParser.js.map +1 -1
  19. package/dist/cli/helper/PostList.d.ts +6 -0
  20. package/dist/cli/helper/PostList.js +106 -0
  21. package/dist/cli/helper/PostList.js.map +1 -0
  22. package/dist/cli/index.js +73 -53
  23. package/dist/cli/index.js.map +1 -1
  24. package/dist/downloaders/Bootstrap.d.ts +5 -0
  25. package/dist/downloaders/Bootstrap.js +10 -0
  26. package/dist/downloaders/Bootstrap.js.map +1 -1
  27. package/dist/downloaders/Downloader.d.ts +4 -4
  28. package/dist/downloaders/Downloader.js +5 -58
  29. package/dist/downloaders/Downloader.js.map +1 -1
  30. package/dist/downloaders/DownloaderOptions.d.ts +1 -0
  31. package/dist/downloaders/DownloaderOptions.js +2 -0
  32. package/dist/downloaders/DownloaderOptions.js.map +1 -1
  33. package/dist/downloaders/IncludeCriteriaHelper.d.ts +25 -0
  34. package/dist/downloaders/IncludeCriteriaHelper.js +160 -0
  35. package/dist/downloaders/IncludeCriteriaHelper.js.map +1 -0
  36. package/dist/downloaders/InitialData.js +20 -6
  37. package/dist/downloaders/InitialData.js.map +1 -1
  38. package/dist/downloaders/PostDownloader.js +62 -98
  39. package/dist/downloaders/PostDownloader.js.map +1 -1
  40. package/dist/downloaders/PostsFetcher.js +4 -2
  41. package/dist/downloaders/PostsFetcher.js.map +1 -1
  42. package/dist/downloaders/ProductDownloader.js +31 -21
  43. package/dist/downloaders/ProductDownloader.js.map +1 -1
  44. package/dist/downloaders/task/M3U8DownloadTask.d.ts +1 -0
  45. package/dist/downloaders/task/M3U8DownloadTask.js +137 -39
  46. package/dist/downloaders/task/M3U8DownloadTask.js.map +1 -1
  47. package/dist/downloaders/task/YouTubeDownloadTask.js +1 -3
  48. package/dist/downloaders/task/YouTubeDownloadTask.js.map +1 -1
  49. package/dist/parsers/PageParser.js +8 -3
  50. package/dist/parsers/PageParser.js.map +1 -1
  51. package/dist/utils/Fetcher.d.ts +4 -1
  52. package/dist/utils/Fetcher.js +6 -1
  53. package/dist/utils/Fetcher.js.map +1 -1
  54. package/dist/utils/URLHelper.d.ts +4 -0
  55. package/dist/utils/URLHelper.js +17 -0
  56. package/dist/utils/URLHelper.js.map +1 -1
  57. package/dist/utils/YouTubeCredentialsCapturer.js +1 -1
  58. package/dist/utils/YouTubeCredentialsCapturer.js.map +1 -1
  59. package/dist/utils/logging/ConsoleLogger.js +5 -0
  60. package/dist/utils/logging/ConsoleLogger.js.map +1 -1
  61. package/dist/utils/yt/InnertubeLoader.d.ts +4 -6
  62. package/dist/utils/yt/InnertubeLoader.js +14 -14
  63. package/dist/utils/yt/InnertubeLoader.js.map +1 -1
  64. package/dist/utils/yt/PoToken.js +53 -27
  65. package/dist/utils/yt/PoToken.js.map +1 -1
  66. package/package.json +12 -8
  67. package/dist/browse/web/assets/index-CW4CUoWl.css +0 -1
  68. package/dist/browse/web/assets/index-CziUWlSw.js +0 -218
@@ -0,0 +1,218 @@
1
+ var gb=r=>{throw TypeError(r)};var If=(r,t,a)=>t.has(r)||gb("Cannot "+a);var Vn=(r,t,a)=>(If(r,t,"read from private field"),a?a.call(r):t.get(r)),Sn=(r,t,a)=>t.has(r)?gb("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,a),Wn=(r,t,a,l)=>(If(r,t,"write to private field"),l?l.call(r,a):t.set(r,a),a),ia=(r,t,a)=>(If(r,t,"access private method"),a);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&l(c)}).observe(document,{childList:!0,subtree:!0});function a(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function l(o){if(o.ep)return;o.ep=!0;const u=a(o);fetch(o.href,u)}})();var xr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function X1(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var t=r.default;if(typeof t=="function"){var a=function l(){return this instanceof l?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};a.prototype=t.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(r).forEach(function(l){var o=Object.getOwnPropertyDescriptor(r,l);Object.defineProperty(a,l,o.get?o:{enumerable:!0,get:function(){return r[l]}})}),a}var qf={exports:{}},Bl={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var vb;function fC(){if(vb)return Bl;vb=1;var r=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function a(l,o,u){var c=null;if(u!==void 0&&(c=""+u),o.key!==void 0&&(c=""+o.key),"key"in o){u={};for(var d in o)d!=="key"&&(u[d]=o[d])}else u=o;return o=u.ref,{$$typeof:r,type:l,key:c,ref:o!==void 0?o:null,props:u}}return Bl.Fragment=t,Bl.jsx=a,Bl.jsxs=a,Bl}var yb;function dC(){return yb||(yb=1,qf.exports=fC()),qf.exports}var S=dC(),Uf={exports:{}},$l={},Gf={exports:{}},Vf={};/**
10
+ * @license React
11
+ * scheduler.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var bb;function hC(){return bb||(bb=1,function(r){function t(L,b){var te=L.length;L.push(b);e:for(;0<te;){var R=te-1>>>1,y=L[R];if(0<o(y,b))L[R]=b,L[te]=y,te=R;else break e}}function a(L){return L.length===0?null:L[0]}function l(L){if(L.length===0)return null;var b=L[0],te=L.pop();if(te!==b){L[0]=te;e:for(var R=0,y=L.length,C=y>>>1;R<C;){var W=2*(R+1)-1,J=L[W],B=W+1,Q=L[B];if(0>o(J,te))B<y&&0>o(Q,J)?(L[R]=Q,L[B]=te,R=B):(L[R]=J,L[W]=te,R=W);else if(B<y&&0>o(Q,te))L[R]=Q,L[B]=te,R=B;else break e}}return b}function o(L,b){var te=L.sortIndex-b.sortIndex;return te!==0?te:L.id-b.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;r.unstable_now=function(){return u.now()}}else{var c=Date,d=c.now();r.unstable_now=function(){return c.now()-d}}var h=[],p=[],g=1,v=null,x=3,E=!1,N=!1,_=!1,z=!1,H=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function Z(L){for(var b=a(p);b!==null;){if(b.callback===null)l(p);else if(b.startTime<=L)l(p),b.sortIndex=b.expirationTime,t(h,b);else break;b=a(p)}}function A(L){if(_=!1,Z(L),!N)if(a(h)!==null)N=!0,j||(j=!0,I());else{var b=a(p);b!==null&&U(A,b.startTime-L)}}var j=!1,P=-1,F=5,D=-1;function T(){return z?!0:!(r.unstable_now()-D<F)}function X(){if(z=!1,j){var L=r.unstable_now();D=L;var b=!0;try{e:{N=!1,_&&(_=!1,G(P),P=-1),E=!0;var te=x;try{t:{for(Z(L),v=a(h);v!==null&&!(v.expirationTime>L&&T());){var R=v.callback;if(typeof R=="function"){v.callback=null,x=v.priorityLevel;var y=R(v.expirationTime<=L);if(L=r.unstable_now(),typeof y=="function"){v.callback=y,Z(L),b=!0;break t}v===a(h)&&l(h),Z(L)}else l(h);v=a(h)}if(v!==null)b=!0;else{var C=a(p);C!==null&&U(A,C.startTime-L),b=!1}}break e}finally{v=null,x=te,E=!1}b=void 0}}finally{b?I():j=!1}}}var I;if(typeof k=="function")I=function(){k(X)};else if(typeof MessageChannel<"u"){var q=new MessageChannel,$=q.port2;q.port1.onmessage=X,I=function(){$.postMessage(null)}}else I=function(){H(X,0)};function U(L,b){P=H(function(){L(r.unstable_now())},b)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(L){L.callback=null},r.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<L?Math.floor(1e3/L):5},r.unstable_getCurrentPriorityLevel=function(){return x},r.unstable_next=function(L){switch(x){case 1:case 2:case 3:var b=3;break;default:b=x}var te=x;x=b;try{return L()}finally{x=te}},r.unstable_requestPaint=function(){z=!0},r.unstable_runWithPriority=function(L,b){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var te=x;x=L;try{return b()}finally{x=te}},r.unstable_scheduleCallback=function(L,b,te){var R=r.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?R+te:R):te=R,L){case 1:var y=-1;break;case 2:y=250;break;case 5:y=1073741823;break;case 4:y=1e4;break;default:y=5e3}return y=te+y,L={id:g++,callback:b,priorityLevel:L,startTime:te,expirationTime:y,sortIndex:-1},te>R?(L.sortIndex=te,t(p,L),a(h)===null&&L===a(p)&&(_?(G(P),P=-1):_=!0,U(A,te-R))):(L.sortIndex=y,t(h,L),N||E||(N=!0,j||(j=!0,I()))),L},r.unstable_shouldYield=T,r.unstable_wrapCallback=function(L){var b=x;return function(){var te=x;x=b;try{return L.apply(this,arguments)}finally{x=te}}}}(Vf)),Vf}var Sb;function pC(){return Sb||(Sb=1,Gf.exports=hC()),Gf.exports}var Wf={exports:{}},He={};/**
18
+ * @license React
19
+ * react.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var wb;function mC(){if(wb)return He;wb=1;var r=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.iterator;function x(y){return y===null||typeof y!="object"?null:(y=v&&y[v]||y["@@iterator"],typeof y=="function"?y:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,_={};function z(y,C,W){this.props=y,this.context=C,this.refs=_,this.updater=W||E}z.prototype.isReactComponent={},z.prototype.setState=function(y,C){if(typeof y!="object"&&typeof y!="function"&&y!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,y,C,"setState")},z.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};function H(){}H.prototype=z.prototype;function G(y,C,W){this.props=y,this.context=C,this.refs=_,this.updater=W||E}var k=G.prototype=new H;k.constructor=G,N(k,z.prototype),k.isPureReactComponent=!0;var Z=Array.isArray,A={H:null,A:null,T:null,S:null,V:null},j=Object.prototype.hasOwnProperty;function P(y,C,W,J,B,Q){return W=Q.ref,{$$typeof:r,type:y,key:C,ref:W!==void 0?W:null,props:Q}}function F(y,C){return P(y.type,C,void 0,void 0,void 0,y.props)}function D(y){return typeof y=="object"&&y!==null&&y.$$typeof===r}function T(y){var C={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(W){return C[W]})}var X=/\/+/g;function I(y,C){return typeof y=="object"&&y!==null&&y.key!=null?T(""+y.key):C.toString(36)}function q(){}function $(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status=="string"?y.then(q,q):(y.status="pending",y.then(function(C){y.status==="pending"&&(y.status="fulfilled",y.value=C)},function(C){y.status==="pending"&&(y.status="rejected",y.reason=C)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function U(y,C,W,J,B){var Q=typeof y;(Q==="undefined"||Q==="boolean")&&(y=null);var V=!1;if(y===null)V=!0;else switch(Q){case"bigint":case"string":case"number":V=!0;break;case"object":switch(y.$$typeof){case r:case t:V=!0;break;case g:return V=y._init,U(V(y._payload),C,W,J,B)}}if(V)return B=B(y),V=J===""?"."+I(y,0):J,Z(B)?(W="",V!=null&&(W=V.replace(X,"$&/")+"/"),U(B,C,W,"",function(me){return me})):B!=null&&(D(B)&&(B=F(B,W+(B.key==null||y&&y.key===B.key?"":(""+B.key).replace(X,"$&/")+"/")+V)),C.push(B)),1;V=0;var ne=J===""?".":J+":";if(Z(y))for(var ue=0;ue<y.length;ue++)J=y[ue],Q=ne+I(J,ue),V+=U(J,C,W,Q,B);else if(ue=x(y),typeof ue=="function")for(y=ue.call(y),ue=0;!(J=y.next()).done;)J=J.value,Q=ne+I(J,ue++),V+=U(J,C,W,Q,B);else if(Q==="object"){if(typeof y.then=="function")return U($(y),C,W,J,B);throw C=String(y),Error("Objects are not valid as a React child (found: "+(C==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.")}return V}function L(y,C,W){if(y==null)return y;var J=[],B=0;return U(y,J,"","",function(Q){return C.call(W,Q,B++)}),J}function b(y){if(y._status===-1){var C=y._result;C=C(),C.then(function(W){(y._status===0||y._status===-1)&&(y._status=1,y._result=W)},function(W){(y._status===0||y._status===-1)&&(y._status=2,y._result=W)}),y._status===-1&&(y._status=0,y._result=C)}if(y._status===1)return y._result.default;throw y._result}var te=typeof reportError=="function"?reportError:function(y){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var C=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof y=="object"&&y!==null&&typeof y.message=="string"?String(y.message):String(y),error:y});if(!window.dispatchEvent(C))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",y);return}console.error(y)};function R(){}return He.Children={map:L,forEach:function(y,C,W){L(y,function(){C.apply(this,arguments)},W)},count:function(y){var C=0;return L(y,function(){C++}),C},toArray:function(y){return L(y,function(C){return C})||[]},only:function(y){if(!D(y))throw Error("React.Children.only expected to receive a single React element child.");return y}},He.Component=z,He.Fragment=a,He.Profiler=o,He.PureComponent=G,He.StrictMode=l,He.Suspense=h,He.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,He.__COMPILER_RUNTIME={__proto__:null,c:function(y){return A.H.useMemoCache(y)}},He.cache=function(y){return function(){return y.apply(null,arguments)}},He.cloneElement=function(y,C,W){if(y==null)throw Error("The argument must be a React element, but you passed "+y+".");var J=N({},y.props),B=y.key,Q=void 0;if(C!=null)for(V in C.ref!==void 0&&(Q=void 0),C.key!==void 0&&(B=""+C.key),C)!j.call(C,V)||V==="key"||V==="__self"||V==="__source"||V==="ref"&&C.ref===void 0||(J[V]=C[V]);var V=arguments.length-2;if(V===1)J.children=W;else if(1<V){for(var ne=Array(V),ue=0;ue<V;ue++)ne[ue]=arguments[ue+2];J.children=ne}return P(y.type,B,void 0,void 0,Q,J)},He.createContext=function(y){return y={$$typeof:c,_currentValue:y,_currentValue2:y,_threadCount:0,Provider:null,Consumer:null},y.Provider=y,y.Consumer={$$typeof:u,_context:y},y},He.createElement=function(y,C,W){var J,B={},Q=null;if(C!=null)for(J in C.key!==void 0&&(Q=""+C.key),C)j.call(C,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(B[J]=C[J]);var V=arguments.length-2;if(V===1)B.children=W;else if(1<V){for(var ne=Array(V),ue=0;ue<V;ue++)ne[ue]=arguments[ue+2];B.children=ne}if(y&&y.defaultProps)for(J in V=y.defaultProps,V)B[J]===void 0&&(B[J]=V[J]);return P(y,Q,void 0,void 0,null,B)},He.createRef=function(){return{current:null}},He.forwardRef=function(y){return{$$typeof:d,render:y}},He.isValidElement=D,He.lazy=function(y){return{$$typeof:g,_payload:{_status:-1,_result:y},_init:b}},He.memo=function(y,C){return{$$typeof:p,type:y,compare:C===void 0?null:C}},He.startTransition=function(y){var C=A.T,W={};A.T=W;try{var J=y(),B=A.S;B!==null&&B(W,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(R,te)}catch(Q){te(Q)}finally{A.T=C}},He.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},He.use=function(y){return A.H.use(y)},He.useActionState=function(y,C,W){return A.H.useActionState(y,C,W)},He.useCallback=function(y,C){return A.H.useCallback(y,C)},He.useContext=function(y){return A.H.useContext(y)},He.useDebugValue=function(){},He.useDeferredValue=function(y,C){return A.H.useDeferredValue(y,C)},He.useEffect=function(y,C,W){var J=A.H;if(typeof W=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return J.useEffect(y,C)},He.useId=function(){return A.H.useId()},He.useImperativeHandle=function(y,C,W){return A.H.useImperativeHandle(y,C,W)},He.useInsertionEffect=function(y,C){return A.H.useInsertionEffect(y,C)},He.useLayoutEffect=function(y,C){return A.H.useLayoutEffect(y,C)},He.useMemo=function(y,C){return A.H.useMemo(y,C)},He.useOptimistic=function(y,C){return A.H.useOptimistic(y,C)},He.useReducer=function(y,C,W){return A.H.useReducer(y,C,W)},He.useRef=function(y){return A.H.useRef(y)},He.useState=function(y){return A.H.useState(y)},He.useSyncExternalStore=function(y,C,W){return A.H.useSyncExternalStore(y,C,W)},He.useTransition=function(){return A.H.useTransition()},He.version="19.1.0",He}var xb;function Cn(){return xb||(xb=1,Wf.exports=mC()),Wf.exports}var Yf={exports:{}},Bt={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var Ob;function gC(){if(Ob)return Bt;Ob=1;var r=Cn();function t(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var l={d:{f:a,r:function(){throw Error(t(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},o=Symbol.for("react.portal");function u(h,p,g){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:v==null?null:""+v,children:h,containerInfo:p,implementation:g}}var c=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Bt.createPortal=function(h,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return u(h,p,null,g)},Bt.flushSync=function(h){var p=c.T,g=l.p;try{if(c.T=null,l.p=2,h)return h()}finally{c.T=p,l.p=g,l.d.f()}},Bt.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,l.d.C(h,p))},Bt.prefetchDNS=function(h){typeof h=="string"&&l.d.D(h)},Bt.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var g=p.as,v=d(g,p.crossOrigin),x=typeof p.integrity=="string"?p.integrity:void 0,E=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?l.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:x,fetchPriority:E}):g==="script"&&l.d.X(h,{crossOrigin:v,integrity:x,fetchPriority:E,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Bt.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=d(p.as,p.crossOrigin);l.d.M(h,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&l.d.M(h)},Bt.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,v=d(g,p.crossOrigin);l.d.L(h,g,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Bt.preloadModule=function(h,p){if(typeof h=="string")if(p){var g=d(p.as,p.crossOrigin);l.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else l.d.m(h)},Bt.requestFormReset=function(h){l.d.r(h)},Bt.unstable_batchedUpdates=function(h,p){return h(p)},Bt.useFormState=function(h,p,g){return c.H.useFormState(h,p,g)},Bt.useFormStatus=function(){return c.H.useHostTransitionStatus()},Bt.version="19.1.0",Bt}var Tb;function F1(){if(Tb)return Yf.exports;Tb=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(t){console.error(t)}}return r(),Yf.exports=gC(),Yf.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var Eb;function vC(){if(Eb)return $l;Eb=1;var r=pC(),t=Cn(),a=F1();function l(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var n=e,i=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(i=n.return),e=n.return;while(e)}return n.tag===3?i:null}function c(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function d(e){if(u(e)!==e)throw Error(l(188))}function h(e){var n=e.alternate;if(!n){if(n=u(e),n===null)throw Error(l(188));return n!==e?null:e}for(var i=e,s=n;;){var f=i.return;if(f===null)break;var m=f.alternate;if(m===null){if(s=f.return,s!==null){i=s;continue}break}if(f.child===m.child){for(m=f.child;m;){if(m===i)return d(f),e;if(m===s)return d(f),n;m=m.sibling}throw Error(l(188))}if(i.return!==s.return)i=f,s=m;else{for(var O=!1,M=f.child;M;){if(M===i){O=!0,i=f,s=m;break}if(M===s){O=!0,s=f,i=m;break}M=M.sibling}if(!O){for(M=m.child;M;){if(M===i){O=!0,i=m,s=f;break}if(M===s){O=!0,s=m,i=f;break}M=M.sibling}if(!O)throw Error(l(189))}}if(i.alternate!==s)throw Error(l(190))}if(i.tag!==3)throw Error(l(188));return i.stateNode.current===i?e:n}function p(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=p(e),n!==null)return n;e=e.sibling}return null}var g=Object.assign,v=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),H=Symbol.for("react.provider"),G=Symbol.for("react.consumer"),k=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),T=Symbol.for("react.memo_cache_sentinel"),X=Symbol.iterator;function I(e){return e===null||typeof e!="object"?null:(e=X&&e[X]||e["@@iterator"],typeof e=="function"?e:null)}var q=Symbol.for("react.client.reference");function $(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===q?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case N:return"Fragment";case z:return"Profiler";case _:return"StrictMode";case A:return"Suspense";case j:return"SuspenseList";case D:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case k:return(e.displayName||"Context")+".Provider";case G:return(e._context.displayName||"Context")+".Consumer";case Z:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case P:return n=e.displayName||null,n!==null?n:$(e.type)||"Memo";case F:n=e._payload,e=e._init;try{return $(e(n))}catch{}}return null}var U=Array.isArray,L=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,b=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},R=[],y=-1;function C(e){return{current:e}}function W(e){0>y||(e.current=R[y],R[y]=null,y--)}function J(e,n){y++,R[y]=e.current,e.current=n}var B=C(null),Q=C(null),V=C(null),ne=C(null);function ue(e,n){switch(J(V,n),J(Q,e),J(B,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Gy(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Gy(n),e=Vy(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}W(B),J(B,e)}function me(){W(B),W(Q),W(V)}function he(e){e.memoizedState!==null&&J(ne,e);var n=B.current,i=Vy(n,e.type);n!==i&&(J(Q,e),J(B,i))}function ve(e){Q.current===e&&(W(B),W(Q)),ne.current===e&&(W(ne),Ll._currentValue=te)}var pe=Object.prototype.hasOwnProperty,ge=r.unstable_scheduleCallback,Se=r.unstable_cancelCallback,ye=r.unstable_shouldYield,Re=r.unstable_requestPaint,be=r.unstable_now,Le=r.unstable_getCurrentPriorityLevel,Pe=r.unstable_ImmediatePriority,Ee=r.unstable_UserBlockingPriority,ke=r.unstable_NormalPriority,ot=r.unstable_LowPriority,ft=r.unstable_IdlePriority,yt=r.log,Nt=r.unstable_setDisableYieldValue,Ae=null,Be=null;function nt(e){if(typeof yt=="function"&&Nt(e),Be&&typeof Be.setStrictMode=="function")try{Be.setStrictMode(Ae,e)}catch{}}var dt=Math.clz32?Math.clz32:Du,Ui=Math.log,zo=Math.LN2;function Du(e){return e>>>=0,e===0?32:31-(Ui(e)/zo|0)|0}var Ga=256,Nr=4194304;function cn(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ie(e,n,i){var s=e.pendingLanes;if(s===0)return 0;var f=0,m=e.suspendedLanes,O=e.pingedLanes;e=e.warmLanes;var M=s&134217727;return M!==0?(s=M&~m,s!==0?f=cn(s):(O&=M,O!==0?f=cn(O):i||(i=M&~e,i!==0&&(f=cn(i))))):(M=s&~m,M!==0?f=cn(M):O!==0?f=cn(O):i||(i=s&~e,i!==0&&(f=cn(i)))),f===0?0:n!==0&&n!==f&&(n&m)===0&&(m=f&-f,i=n&-n,m>=i||m===32&&(i&4194048)!==0)?n:f}function se(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Ve(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Xe(){var e=Ga;return Ga<<=1,(Ga&4194048)===0&&(Ga=256),e}function Ze(){var e=Nr;return Nr<<=1,(Nr&62914560)===0&&(Nr=4194304),e}function ze(e){for(var n=[],i=0;31>i;i++)n.push(e);return n}function qt(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function tr(e,n,i,s,f,m){var O=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var M=e.entanglements,Y=e.expirationTimes,ae=e.hiddenUpdates;for(i=O&~i;0<i;){var ce=31-dt(i),de=1<<ce;M[ce]=0,Y[ce]=-1;var le=ae[ce];if(le!==null)for(ae[ce]=null,ce=0;ce<le.length;ce++){var oe=le[ce];oe!==null&&(oe.lane&=-536870913)}i&=~de}s!==0&&Ht(e,s,0),m!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=m&~(O&~n))}function Ht(e,n,i){e.pendingLanes|=n,e.suspendedLanes&=~n;var s=31-dt(n);e.entangledLanes|=n,e.entanglements[s]=e.entanglements[s]|1073741824|i&4194090}function jn(e,n){var i=e.entangledLanes|=n;for(e=e.entanglements;i;){var s=31-dt(i),f=1<<s;f&n|e[s]&n&&(e[s]|=n),i&=~f}}function ha(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Hn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ut(){var e=b.p;return e!==0?e:(e=window.event,e===void 0?32:cb(e.type))}function Po(e,n){var i=b.p;try{return b.p=e,n()}finally{b.p=i}}var An=Math.random().toString(36).slice(2),Tt="__reactFiber$"+An,wt="__reactProps$"+An,kn="__reactContainer$"+An,Dr="__reactEvents$"+An,Gi="__reactListeners$"+An,Vi="__reactHandles$"+An,Wi="__reactResources$"+An,Lr="__reactMarker$"+An;function pa(e){delete e[Tt],delete e[wt],delete e[Dr],delete e[Gi],delete e[Vi]}function nr(e){var n=e[Tt];if(n)return n;for(var i=e.parentNode;i;){if(n=i[kn]||i[Tt]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(e=Fy(e);e!==null;){if(i=e[Tt])return i;e=Fy(e)}return n}e=i,i=e.parentNode}return null}function Bn(e){if(e=e[Tt]||e[kn]){var n=e.tag;if(n===5||n===6||n===13||n===26||n===27||n===3)return e}return null}function zr(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(l(33))}function Pr(e){var n=e[Wi];return n||(n=e[Wi]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function ht(e){e[Lr]=!0}var rr=new Set,ma={};function ar(e,n){ir(e,n),ir(e+"Capture",n)}function ir(e,n){for(ma[e]=n,e=0;e<n.length;e++)rr.add(n[e])}var rT=RegExp("^[: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]*$"),zm={},Pm={};function aT(e){return pe.call(Pm,e)?!0:pe.call(zm,e)?!1:rT.test(e)?Pm[e]=!0:(zm[e]=!0,!1)}function Ho(e,n,i){if(aT(n))if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var s=n.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+i)}}function ko(e,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+i)}}function lr(e,n,i,s){if(s===null)e.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(n,i,""+s)}}var Lu,Hm;function Va(e){if(Lu===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);Lu=n&&n[1]||"",Hm=-1<i.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Lu+e+Hm}var zu=!1;function Pu(e,n){if(!e||zu)return"";zu=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(n){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(oe){var le=oe}Reflect.construct(e,[],de)}else{try{de.call()}catch(oe){le=oe}e.call(de.prototype)}}else{try{throw Error()}catch(oe){le=oe}(de=e())&&typeof de.catch=="function"&&de.catch(function(){})}}catch(oe){if(oe&&le&&typeof oe.stack=="string")return[oe.stack,le.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=s.DetermineComponentFrameRoot(),O=m[0],M=m[1];if(O&&M){var Y=O.split(`
44
+ `),ae=M.split(`
45
+ `);for(f=s=0;s<Y.length&&!Y[s].includes("DetermineComponentFrameRoot");)s++;for(;f<ae.length&&!ae[f].includes("DetermineComponentFrameRoot");)f++;if(s===Y.length||f===ae.length)for(s=Y.length-1,f=ae.length-1;1<=s&&0<=f&&Y[s]!==ae[f];)f--;for(;1<=s&&0<=f;s--,f--)if(Y[s]!==ae[f]){if(s!==1||f!==1)do if(s--,f--,0>f||Y[s]!==ae[f]){var ce=`
46
+ `+Y[s].replace(" at new "," at ");return e.displayName&&ce.includes("<anonymous>")&&(ce=ce.replace("<anonymous>",e.displayName)),ce}while(1<=s&&0<=f);break}}}finally{zu=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?Va(i):""}function iT(e){switch(e.tag){case 26:case 27:case 5:return Va(e.type);case 16:return Va("Lazy");case 13:return Va("Suspense");case 19:return Va("SuspenseList");case 0:case 15:return Pu(e.type,!1);case 11:return Pu(e.type.render,!1);case 1:return Pu(e.type,!0);case 31:return Va("Activity");default:return""}}function km(e){try{var n="";do n+=iT(e),e=e.return;while(e);return n}catch(i){return`
47
+ Error generating stack: `+i.message+`
48
+ `+i.stack}}function fn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Bm(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function lT(e){var n=Bm(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),s=""+e[n];if(!e.hasOwnProperty(n)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var f=i.get,m=i.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return f.call(this)},set:function(O){s=""+O,m.call(this,O)}}),Object.defineProperty(e,n,{enumerable:i.enumerable}),{getValue:function(){return s},setValue:function(O){s=""+O},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Bo(e){e._valueTracker||(e._valueTracker=lT(e))}function $m(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var i=n.getValue(),s="";return e&&(s=Bm(e)?e.checked?"true":"false":e.value),e=s,e!==i?(n.setValue(e),!0):!1}function $o(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}}var oT=/[\n"\\]/g;function dn(e){return e.replace(oT,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Hu(e,n,i,s,f,m,O,M){e.name="",O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?e.type=O:e.removeAttribute("type"),n!=null?O==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+fn(n)):e.value!==""+fn(n)&&(e.value=""+fn(n)):O!=="submit"&&O!=="reset"||e.removeAttribute("value"),n!=null?ku(e,O,fn(n)):i!=null?ku(e,O,fn(i)):s!=null&&e.removeAttribute("value"),f==null&&m!=null&&(e.defaultChecked=!!m),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?e.name=""+fn(M):e.removeAttribute("name")}function Im(e,n,i,s,f,m,O,M){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.type=m),n!=null||i!=null){if(!(m!=="submit"&&m!=="reset"||n!=null))return;i=i!=null?""+fn(i):"",n=n!=null?""+fn(n):i,M||n===e.value||(e.value=n),e.defaultValue=n}s=s??f,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=M?e.checked:!!s,e.defaultChecked=!!s,O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(e.name=O)}function ku(e,n,i){n==="number"&&$o(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function Wa(e,n,i,s){if(e=e.options,n){n={};for(var f=0;f<i.length;f++)n["$"+i[f]]=!0;for(i=0;i<e.length;i++)f=n.hasOwnProperty("$"+e[i].value),e[i].selected!==f&&(e[i].selected=f),f&&s&&(e[i].defaultSelected=!0)}else{for(i=""+fn(i),n=null,f=0;f<e.length;f++){if(e[f].value===i){e[f].selected=!0,s&&(e[f].defaultSelected=!0);return}n!==null||e[f].disabled||(n=e[f])}n!==null&&(n.selected=!0)}}function qm(e,n,i){if(n!=null&&(n=""+fn(n),n!==e.value&&(e.value=n),i==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=i!=null?""+fn(i):""}function Um(e,n,i,s){if(n==null){if(s!=null){if(i!=null)throw Error(l(92));if(U(s)){if(1<s.length)throw Error(l(93));s=s[0]}i=s}i==null&&(i=""),n=i}i=fn(n),e.defaultValue=i,s=e.textContent,s===i&&s!==""&&s!==null&&(e.value=s)}function Ya(e,n){if(n){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=n;return}}e.textContent=n}var sT=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Gm(e,n,i){var s=n.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?s?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":s?e.setProperty(n,i):typeof i!="number"||i===0||sT.has(n)?n==="float"?e.cssFloat=i:e[n]=(""+i).trim():e[n]=i+"px"}function Vm(e,n,i){if(n!=null&&typeof n!="object")throw Error(l(62));if(e=e.style,i!=null){for(var s in i)!i.hasOwnProperty(s)||n!=null&&n.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var f in n)s=n[f],n.hasOwnProperty(f)&&i[f]!==s&&Gm(e,f,s)}else for(var m in n)n.hasOwnProperty(m)&&Gm(e,m,n[m])}function Bu(e){if(e.indexOf("-")===-1)return!1;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}}var uT=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),cT=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Io(e){return cT.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var $u=null;function Iu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xa=null,Fa=null;function Wm(e){var n=Bn(e);if(n&&(e=n.stateNode)){var i=e[wt]||null;e:switch(e=n.stateNode,n.type){case"input":if(Hu(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),n=i.name,i.type==="radio"&&n!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+dn(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var s=i[n];if(s!==e&&s.form===e.form){var f=s[wt]||null;if(!f)throw Error(l(90));Hu(s,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(n=0;n<i.length;n++)s=i[n],s.form===e.form&&$m(s)}break e;case"textarea":qm(e,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&Wa(e,!!i.multiple,n,!1)}}}var qu=!1;function Ym(e,n,i){if(qu)return e(n,i);qu=!0;try{var s=e(n);return s}finally{if(qu=!1,(Xa!==null||Fa!==null)&&(Cs(),Xa&&(n=Xa,e=Fa,Fa=Xa=null,Wm(n),e)))for(n=0;n<e.length;n++)Wm(e[n])}}function Yi(e,n){var i=e.stateNode;if(i===null)return null;var s=i[wt]||null;if(s===null)return null;i=s[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(l(231,n,typeof i));return i}var or=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uu=!1;if(or)try{var Xi={};Object.defineProperty(Xi,"passive",{get:function(){Uu=!0}}),window.addEventListener("test",Xi,Xi),window.removeEventListener("test",Xi,Xi)}catch{Uu=!1}var Hr=null,Gu=null,qo=null;function Xm(){if(qo)return qo;var e,n=Gu,i=n.length,s,f="value"in Hr?Hr.value:Hr.textContent,m=f.length;for(e=0;e<i&&n[e]===f[e];e++);var O=i-e;for(s=1;s<=O&&n[i-s]===f[m-s];s++);return qo=f.slice(e,1<s?1-s:void 0)}function Uo(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Go(){return!0}function Fm(){return!1}function Gt(e){function n(i,s,f,m,O){this._reactName=i,this._targetInst=f,this.type=s,this.nativeEvent=m,this.target=O,this.currentTarget=null;for(var M in e)e.hasOwnProperty(M)&&(i=e[M],this[M]=i?i(m):m[M]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Go:Fm,this.isPropagationStopped=Fm,this}return g(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Go)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Go)},persist:function(){},isPersistent:Go}),n}var ga={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vo=Gt(ga),Fi=g({},ga,{view:0,detail:0}),fT=Gt(Fi),Vu,Wu,Qi,Wo=g({},Fi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xu,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!==Qi&&(Qi&&e.type==="mousemove"?(Vu=e.screenX-Qi.screenX,Wu=e.screenY-Qi.screenY):Wu=Vu=0,Qi=e),Vu)},movementY:function(e){return"movementY"in e?e.movementY:Wu}}),Qm=Gt(Wo),dT=g({},Wo,{dataTransfer:0}),hT=Gt(dT),pT=g({},Fi,{relatedTarget:0}),Yu=Gt(pT),mT=g({},ga,{animationName:0,elapsedTime:0,pseudoElement:0}),gT=Gt(mT),vT=g({},ga,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yT=Gt(vT),bT=g({},ga,{data:0}),Zm=Gt(bT),ST={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wT={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"},xT={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function OT(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=xT[e])?!!n[e]:!1}function Xu(){return OT}var TT=g({},Fi,{key:function(e){if(e.key){var n=ST[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Uo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?wT[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xu,charCode:function(e){return e.type==="keypress"?Uo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Uo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ET=Gt(TT),CT=g({},Wo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Km=Gt(CT),RT=g({},Fi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xu}),_T=Gt(RT),jT=g({},ga,{propertyName:0,elapsedTime:0,pseudoElement:0}),AT=Gt(jT),MT=g({},Wo,{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}),NT=Gt(MT),DT=g({},ga,{newState:0,oldState:0}),LT=Gt(DT),zT=[9,13,27,32],Fu=or&&"CompositionEvent"in window,Zi=null;or&&"documentMode"in document&&(Zi=document.documentMode);var PT=or&&"TextEvent"in window&&!Zi,Jm=or&&(!Fu||Zi&&8<Zi&&11>=Zi),eg=" ",tg=!1;function ng(e,n){switch(e){case"keyup":return zT.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qa=!1;function HT(e,n){switch(e){case"compositionend":return rg(n);case"keypress":return n.which!==32?null:(tg=!0,eg);case"textInput":return e=n.data,e===eg&&tg?null:e;default:return null}}function kT(e,n){if(Qa)return e==="compositionend"||!Fu&&ng(e,n)?(e=Xm(),qo=Gu=Hr=null,Qa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Jm&&n.locale!=="ko"?null:n.data;default:return null}}var BT={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 ag(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!BT[e.type]:n==="textarea"}function ig(e,n,i,s){Xa?Fa?Fa.push(s):Fa=[s]:Xa=s,n=Ns(n,"onChange"),0<n.length&&(i=new Vo("onChange","change",null,i,s),e.push({event:i,listeners:n}))}var Ki=null,Ji=null;function $T(e){By(e,0)}function Yo(e){var n=zr(e);if($m(n))return e}function lg(e,n){if(e==="change")return n}var og=!1;if(or){var Qu;if(or){var Zu="oninput"in document;if(!Zu){var sg=document.createElement("div");sg.setAttribute("oninput","return;"),Zu=typeof sg.oninput=="function"}Qu=Zu}else Qu=!1;og=Qu&&(!document.documentMode||9<document.documentMode)}function ug(){Ki&&(Ki.detachEvent("onpropertychange",cg),Ji=Ki=null)}function cg(e){if(e.propertyName==="value"&&Yo(Ji)){var n=[];ig(n,Ji,e,Iu(e)),Ym($T,n)}}function IT(e,n,i){e==="focusin"?(ug(),Ki=n,Ji=i,Ki.attachEvent("onpropertychange",cg)):e==="focusout"&&ug()}function qT(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Yo(Ji)}function UT(e,n){if(e==="click")return Yo(n)}function GT(e,n){if(e==="input"||e==="change")return Yo(n)}function VT(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Jt=typeof Object.is=="function"?Object.is:VT;function el(e,n){if(Jt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var i=Object.keys(e),s=Object.keys(n);if(i.length!==s.length)return!1;for(s=0;s<i.length;s++){var f=i[s];if(!pe.call(n,f)||!Jt(e[f],n[f]))return!1}return!0}function fg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dg(e,n){var i=fg(e);e=0;for(var s;i;){if(i.nodeType===3){if(s=e+i.textContent.length,e<=n&&s>=n)return{node:i,offset:n-e};e=s}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=fg(i)}}function hg(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?hg(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function pg(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=$o(e.document);n instanceof e.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)e=n.contentWindow;else break;n=$o(e.document)}return n}function Ku(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var WT=or&&"documentMode"in document&&11>=document.documentMode,Za=null,Ju=null,tl=null,ec=!1;function mg(e,n,i){var s=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;ec||Za==null||Za!==$o(s)||(s=Za,"selectionStart"in s&&Ku(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),tl&&el(tl,s)||(tl=s,s=Ns(Ju,"onSelect"),0<s.length&&(n=new Vo("onSelect","select",null,n,i),e.push({event:n,listeners:s}),n.target=Za)))}function va(e,n){var i={};return i[e.toLowerCase()]=n.toLowerCase(),i["Webkit"+e]="webkit"+n,i["Moz"+e]="moz"+n,i}var Ka={animationend:va("Animation","AnimationEnd"),animationiteration:va("Animation","AnimationIteration"),animationstart:va("Animation","AnimationStart"),transitionrun:va("Transition","TransitionRun"),transitionstart:va("Transition","TransitionStart"),transitioncancel:va("Transition","TransitionCancel"),transitionend:va("Transition","TransitionEnd")},tc={},gg={};or&&(gg=document.createElement("div").style,"AnimationEvent"in window||(delete Ka.animationend.animation,delete Ka.animationiteration.animation,delete Ka.animationstart.animation),"TransitionEvent"in window||delete Ka.transitionend.transition);function ya(e){if(tc[e])return tc[e];if(!Ka[e])return e;var n=Ka[e],i;for(i in n)if(n.hasOwnProperty(i)&&i in gg)return tc[e]=n[i];return e}var vg=ya("animationend"),yg=ya("animationiteration"),bg=ya("animationstart"),YT=ya("transitionrun"),XT=ya("transitionstart"),FT=ya("transitioncancel"),Sg=ya("transitionend"),wg=new Map,nc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");nc.push("scrollEnd");function Mn(e,n){wg.set(e,n),ar(n,[e])}var xg=new WeakMap;function hn(e,n){if(typeof e=="object"&&e!==null){var i=xg.get(e);return i!==void 0?i:(n={value:e,source:n,stack:km(n)},xg.set(e,n),n)}return{value:e,source:n,stack:km(n)}}var pn=[],Ja=0,rc=0;function Xo(){for(var e=Ja,n=rc=Ja=0;n<e;){var i=pn[n];pn[n++]=null;var s=pn[n];pn[n++]=null;var f=pn[n];pn[n++]=null;var m=pn[n];if(pn[n++]=null,s!==null&&f!==null){var O=s.pending;O===null?f.next=f:(f.next=O.next,O.next=f),s.pending=f}m!==0&&Og(i,f,m)}}function Fo(e,n,i,s){pn[Ja++]=e,pn[Ja++]=n,pn[Ja++]=i,pn[Ja++]=s,rc|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function ac(e,n,i,s){return Fo(e,n,i,s),Qo(e)}function ei(e,n){return Fo(e,null,null,n),Qo(e)}function Og(e,n,i){e.lanes|=i;var s=e.alternate;s!==null&&(s.lanes|=i);for(var f=!1,m=e.return;m!==null;)m.childLanes|=i,s=m.alternate,s!==null&&(s.childLanes|=i),m.tag===22&&(e=m.stateNode,e===null||e._visibility&1||(f=!0)),e=m,m=m.return;return e.tag===3?(m=e.stateNode,f&&n!==null&&(f=31-dt(i),e=m.hiddenUpdates,s=e[f],s===null?e[f]=[n]:s.push(n),n.lane=i|536870912),m):null}function Qo(e){if(50<Cl)throw Cl=0,ff=null,Error(l(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var ti={};function QT(e,n,i,s){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function en(e,n,i,s){return new QT(e,n,i,s)}function ic(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sr(e,n){var i=e.alternate;return i===null?(i=en(e.tag,n,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=n,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,n=e.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function Tg(e,n){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,n=i.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Zo(e,n,i,s,f,m){var O=0;if(s=e,typeof e=="function")ic(e)&&(O=1);else if(typeof e=="string")O=KE(e,i,B.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case D:return e=en(31,i,n,f),e.elementType=D,e.lanes=m,e;case N:return ba(i.children,f,m,n);case _:O=8,f|=24;break;case z:return e=en(12,i,n,f|2),e.elementType=z,e.lanes=m,e;case A:return e=en(13,i,n,f),e.elementType=A,e.lanes=m,e;case j:return e=en(19,i,n,f),e.elementType=j,e.lanes=m,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case H:case k:O=10;break e;case G:O=9;break e;case Z:O=11;break e;case P:O=14;break e;case F:O=16,s=null;break e}O=29,i=Error(l(130,e===null?"null":typeof e,"")),s=null}return n=en(O,i,n,f),n.elementType=e,n.type=s,n.lanes=m,n}function ba(e,n,i,s){return e=en(7,e,s,n),e.lanes=i,e}function lc(e,n,i){return e=en(6,e,null,n),e.lanes=i,e}function oc(e,n,i){return n=en(4,e.children!==null?e.children:[],e.key,n),n.lanes=i,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var ni=[],ri=0,Ko=null,Jo=0,mn=[],gn=0,Sa=null,ur=1,cr="";function wa(e,n){ni[ri++]=Jo,ni[ri++]=Ko,Ko=e,Jo=n}function Eg(e,n,i){mn[gn++]=ur,mn[gn++]=cr,mn[gn++]=Sa,Sa=e;var s=ur;e=cr;var f=32-dt(s)-1;s&=~(1<<f),i+=1;var m=32-dt(n)+f;if(30<m){var O=f-f%5;m=(s&(1<<O)-1).toString(32),s>>=O,f-=O,ur=1<<32-dt(n)+f|i<<f|s,cr=m+e}else ur=1<<m|i<<f|s,cr=e}function sc(e){e.return!==null&&(wa(e,1),Eg(e,1,0))}function uc(e){for(;e===Ko;)Ko=ni[--ri],ni[ri]=null,Jo=ni[--ri],ni[ri]=null;for(;e===Sa;)Sa=mn[--gn],mn[gn]=null,cr=mn[--gn],mn[gn]=null,ur=mn[--gn],mn[gn]=null}var $t=null,pt=null,Ye=!1,xa=null,$n=!1,cc=Error(l(519));function Oa(e){var n=Error(l(418,""));throw al(hn(n,e)),cc}function Cg(e){var n=e.stateNode,i=e.type,s=e.memoizedProps;switch(n[Tt]=e,n[wt]=s,i){case"dialog":Ue("cancel",n),Ue("close",n);break;case"iframe":case"object":case"embed":Ue("load",n);break;case"video":case"audio":for(i=0;i<_l.length;i++)Ue(_l[i],n);break;case"source":Ue("error",n);break;case"img":case"image":case"link":Ue("error",n),Ue("load",n);break;case"details":Ue("toggle",n);break;case"input":Ue("invalid",n),Im(n,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0),Bo(n);break;case"select":Ue("invalid",n);break;case"textarea":Ue("invalid",n),Um(n,s.value,s.defaultValue,s.children),Bo(n)}i=s.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||n.textContent===""+i||s.suppressHydrationWarning===!0||Uy(n.textContent,i)?(s.popover!=null&&(Ue("beforetoggle",n),Ue("toggle",n)),s.onScroll!=null&&Ue("scroll",n),s.onScrollEnd!=null&&Ue("scrollend",n),s.onClick!=null&&(n.onclick=Ds),n=!0):n=!1,n||Oa(e)}function Rg(e){for($t=e.return;$t;)switch($t.tag){case 5:case 13:$n=!1;return;case 27:case 3:$n=!0;return;default:$t=$t.return}}function nl(e){if(e!==$t)return!1;if(!Ye)return Rg(e),Ye=!0,!1;var n=e.tag,i;if((i=n!==3&&n!==27)&&((i=n===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||Rf(e.type,e.memoizedProps)),i=!i),i&&pt&&Oa(e),Rg(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8)if(i=e.data,i==="/$"){if(n===0){pt=Dn(e.nextSibling);break e}n--}else i!=="$"&&i!=="$!"&&i!=="$?"||n++;e=e.nextSibling}pt=null}}else n===27?(n=pt,Jr(e.type)?(e=Mf,Mf=null,pt=e):pt=n):pt=$t?Dn(e.stateNode.nextSibling):null;return!0}function rl(){pt=$t=null,Ye=!1}function _g(){var e=xa;return e!==null&&(Yt===null?Yt=e:Yt.push.apply(Yt,e),xa=null),e}function al(e){xa===null?xa=[e]:xa.push(e)}var fc=C(null),Ta=null,fr=null;function kr(e,n,i){J(fc,n._currentValue),n._currentValue=i}function dr(e){e._currentValue=fc.current,W(fc)}function dc(e,n,i){for(;e!==null;){var s=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,s!==null&&(s.childLanes|=n)):s!==null&&(s.childLanes&n)!==n&&(s.childLanes|=n),e===i)break;e=e.return}}function hc(e,n,i,s){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var m=f.dependencies;if(m!==null){var O=f.child;m=m.firstContext;e:for(;m!==null;){var M=m;m=f;for(var Y=0;Y<n.length;Y++)if(M.context===n[Y]){m.lanes|=i,M=m.alternate,M!==null&&(M.lanes|=i),dc(m.return,i,e),s||(O=null);break e}m=M.next}}else if(f.tag===18){if(O=f.return,O===null)throw Error(l(341));O.lanes|=i,m=O.alternate,m!==null&&(m.lanes|=i),dc(O,i,e),O=null}else O=f.child;if(O!==null)O.return=f;else for(O=f;O!==null;){if(O===e){O=null;break}if(f=O.sibling,f!==null){f.return=O.return,O=f;break}O=O.return}f=O}}function il(e,n,i,s){e=null;for(var f=n,m=!1;f!==null;){if(!m){if((f.flags&524288)!==0)m=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var O=f.alternate;if(O===null)throw Error(l(387));if(O=O.memoizedProps,O!==null){var M=f.type;Jt(f.pendingProps.value,O.value)||(e!==null?e.push(M):e=[M])}}else if(f===ne.current){if(O=f.alternate,O===null)throw Error(l(387));O.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(Ll):e=[Ll])}f=f.return}e!==null&&hc(n,e,i,s),n.flags|=262144}function es(e){for(e=e.firstContext;e!==null;){if(!Jt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ea(e){Ta=e,fr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function kt(e){return jg(Ta,e)}function ts(e,n){return Ta===null&&Ea(e),jg(e,n)}function jg(e,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},fr===null){if(e===null)throw Error(l(308));fr=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else fr=fr.next=n;return i}var ZT=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(i,s){e.push(s)}};this.abort=function(){n.aborted=!0,e.forEach(function(i){return i()})}},KT=r.unstable_scheduleCallback,JT=r.unstable_NormalPriority,Et={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function pc(){return{controller:new ZT,data:new Map,refCount:0}}function ll(e){e.refCount--,e.refCount===0&&KT(JT,function(){e.controller.abort()})}var ol=null,mc=0,ai=0,ii=null;function eE(e,n){if(ol===null){var i=ol=[];mc=0,ai=yf(),ii={status:"pending",value:void 0,then:function(s){i.push(s)}}}return mc++,n.then(Ag,Ag),n}function Ag(){if(--mc===0&&ol!==null){ii!==null&&(ii.status="fulfilled");var e=ol;ol=null,ai=0,ii=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function tE(e,n){var i=[],s={status:"pending",value:null,reason:null,then:function(f){i.push(f)}};return e.then(function(){s.status="fulfilled",s.value=n;for(var f=0;f<i.length;f++)(0,i[f])(n)},function(f){for(s.status="rejected",s.reason=f,f=0;f<i.length;f++)(0,i[f])(void 0)}),s}var Mg=L.S;L.S=function(e,n){typeof n=="object"&&n!==null&&typeof n.then=="function"&&eE(e,n),Mg!==null&&Mg(e,n)};var Ca=C(null);function gc(){var e=Ca.current;return e!==null?e:rt.pooledCache}function ns(e,n){n===null?J(Ca,Ca.current):J(Ca,n.pool)}function Ng(){var e=gc();return e===null?null:{parent:Et._currentValue,pool:e}}var sl=Error(l(460)),Dg=Error(l(474)),rs=Error(l(542)),vc={then:function(){}};function Lg(e){return e=e.status,e==="fulfilled"||e==="rejected"}function as(){}function zg(e,n,i){switch(i=e[i],i===void 0?e.push(n):i!==n&&(n.then(as,as),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Hg(e),e;default:if(typeof n.status=="string")n.then(as,as);else{if(e=rt,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=n,e.status="pending",e.then(function(s){if(n.status==="pending"){var f=n;f.status="fulfilled",f.value=s}},function(s){if(n.status==="pending"){var f=n;f.status="rejected",f.reason=s}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Hg(e),e}throw ul=n,sl}}var ul=null;function Pg(){if(ul===null)throw Error(l(459));var e=ul;return ul=null,e}function Hg(e){if(e===sl||e===rs)throw Error(l(483))}var Br=!1;function yc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bc(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function $r(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ir(e,n,i){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Fe&2)!==0){var f=s.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),s.pending=n,n=Qo(e),Og(e,null,i),n}return Fo(e,s,n,i),Qo(e)}function cl(e,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194048)!==0)){var s=n.lanes;s&=e.pendingLanes,i|=s,n.lanes=i,jn(e,i)}}function Sc(e,n){var i=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,i===s)){var f=null,m=null;if(i=i.firstBaseUpdate,i!==null){do{var O={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};m===null?f=m=O:m=m.next=O,i=i.next}while(i!==null);m===null?f=m=n:m=m.next=n}else f=m=n;i={baseState:s.baseState,firstBaseUpdate:f,lastBaseUpdate:m,shared:s.shared,callbacks:s.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=n:e.next=n,i.lastBaseUpdate=n}var wc=!1;function fl(){if(wc){var e=ii;if(e!==null)throw e}}function dl(e,n,i,s){wc=!1;var f=e.updateQueue;Br=!1;var m=f.firstBaseUpdate,O=f.lastBaseUpdate,M=f.shared.pending;if(M!==null){f.shared.pending=null;var Y=M,ae=Y.next;Y.next=null,O===null?m=ae:O.next=ae,O=Y;var ce=e.alternate;ce!==null&&(ce=ce.updateQueue,M=ce.lastBaseUpdate,M!==O&&(M===null?ce.firstBaseUpdate=ae:M.next=ae,ce.lastBaseUpdate=Y))}if(m!==null){var de=f.baseState;O=0,ce=ae=Y=null,M=m;do{var le=M.lane&-536870913,oe=le!==M.lane;if(oe?(Ge&le)===le:(s&le)===le){le!==0&&le===ai&&(wc=!0),ce!==null&&(ce=ce.next={lane:0,tag:M.tag,payload:M.payload,callback:null,next:null});e:{var De=e,_e=M;le=n;var et=i;switch(_e.tag){case 1:if(De=_e.payload,typeof De=="function"){de=De.call(et,de,le);break e}de=De;break e;case 3:De.flags=De.flags&-65537|128;case 0:if(De=_e.payload,le=typeof De=="function"?De.call(et,de,le):De,le==null)break e;de=g({},de,le);break e;case 2:Br=!0}}le=M.callback,le!==null&&(e.flags|=64,oe&&(e.flags|=8192),oe=f.callbacks,oe===null?f.callbacks=[le]:oe.push(le))}else oe={lane:le,tag:M.tag,payload:M.payload,callback:M.callback,next:null},ce===null?(ae=ce=oe,Y=de):ce=ce.next=oe,O|=le;if(M=M.next,M===null){if(M=f.shared.pending,M===null)break;oe=M,M=oe.next,oe.next=null,f.lastBaseUpdate=oe,f.shared.pending=null}}while(!0);ce===null&&(Y=de),f.baseState=Y,f.firstBaseUpdate=ae,f.lastBaseUpdate=ce,m===null&&(f.shared.lanes=0),Fr|=O,e.lanes=O,e.memoizedState=de}}function kg(e,n){if(typeof e!="function")throw Error(l(191,e));e.call(n)}function Bg(e,n){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)kg(i[e],n)}var li=C(null),is=C(0);function $g(e,n){e=br,J(is,e),J(li,n),br=e|n.baseLanes}function xc(){J(is,br),J(li,li.current)}function Oc(){br=is.current,W(li),W(is)}var qr=0,$e=null,Ke=null,xt=null,ls=!1,oi=!1,Ra=!1,os=0,hl=0,si=null,nE=0;function bt(){throw Error(l(321))}function Tc(e,n){if(n===null)return!1;for(var i=0;i<n.length&&i<e.length;i++)if(!Jt(e[i],n[i]))return!1;return!0}function Ec(e,n,i,s,f,m){return qr=m,$e=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,L.H=e===null||e.memoizedState===null?Ov:Tv,Ra=!1,m=i(s,f),Ra=!1,oi&&(m=qg(n,i,s,f)),Ig(e),m}function Ig(e){L.H=hs;var n=Ke!==null&&Ke.next!==null;if(qr=0,xt=Ke=$e=null,ls=!1,hl=0,si=null,n)throw Error(l(300));e===null||_t||(e=e.dependencies,e!==null&&es(e)&&(_t=!0))}function qg(e,n,i,s){$e=e;var f=0;do{if(oi&&(si=null),hl=0,oi=!1,25<=f)throw Error(l(301));if(f+=1,xt=Ke=null,e.updateQueue!=null){var m=e.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}L.H=uE,m=n(i,s)}while(oi);return m}function rE(){var e=L.H,n=e.useState()[0];return n=typeof n.then=="function"?pl(n):n,e=e.useState()[0],(Ke!==null?Ke.memoizedState:null)!==e&&($e.flags|=1024),n}function Cc(){var e=os!==0;return os=0,e}function Rc(e,n,i){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~i}function _c(e){if(ls){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}ls=!1}qr=0,xt=Ke=$e=null,oi=!1,hl=os=0,si=null}function Vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xt===null?$e.memoizedState=xt=e:xt=xt.next=e,xt}function Ot(){if(Ke===null){var e=$e.alternate;e=e!==null?e.memoizedState:null}else e=Ke.next;var n=xt===null?$e.memoizedState:xt.next;if(n!==null)xt=n,Ke=e;else{if(e===null)throw $e.alternate===null?Error(l(467)):Error(l(310));Ke=e,e={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},xt===null?$e.memoizedState=xt=e:xt=xt.next=e}return xt}function jc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pl(e){var n=hl;return hl+=1,si===null&&(si=[]),e=zg(si,e,n),n=$e,(xt===null?n.memoizedState:xt.next)===null&&(n=n.alternate,L.H=n===null||n.memoizedState===null?Ov:Tv),e}function ss(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return pl(e);if(e.$$typeof===k)return kt(e)}throw Error(l(438,String(e)))}function Ac(e){var n=null,i=$e.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var s=$e.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(n={data:s.data.map(function(f){return f.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=jc(),$e.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0)for(i=n.data[n.index]=Array(e),s=0;s<e;s++)i[s]=T;return n.index++,i}function hr(e,n){return typeof n=="function"?n(e):n}function us(e){var n=Ot();return Mc(n,Ke,e)}function Mc(e,n,i){var s=e.queue;if(s===null)throw Error(l(311));s.lastRenderedReducer=i;var f=e.baseQueue,m=s.pending;if(m!==null){if(f!==null){var O=f.next;f.next=m.next,m.next=O}n.baseQueue=f=m,s.pending=null}if(m=e.baseState,f===null)e.memoizedState=m;else{n=f.next;var M=O=null,Y=null,ae=n,ce=!1;do{var de=ae.lane&-536870913;if(de!==ae.lane?(Ge&de)===de:(qr&de)===de){var le=ae.revertLane;if(le===0)Y!==null&&(Y=Y.next={lane:0,revertLane:0,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null}),de===ai&&(ce=!0);else if((qr&le)===le){ae=ae.next,le===ai&&(ce=!0);continue}else de={lane:0,revertLane:ae.revertLane,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null},Y===null?(M=Y=de,O=m):Y=Y.next=de,$e.lanes|=le,Fr|=le;de=ae.action,Ra&&i(m,de),m=ae.hasEagerState?ae.eagerState:i(m,de)}else le={lane:de,revertLane:ae.revertLane,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null},Y===null?(M=Y=le,O=m):Y=Y.next=le,$e.lanes|=de,Fr|=de;ae=ae.next}while(ae!==null&&ae!==n);if(Y===null?O=m:Y.next=M,!Jt(m,e.memoizedState)&&(_t=!0,ce&&(i=ii,i!==null)))throw i;e.memoizedState=m,e.baseState=O,e.baseQueue=Y,s.lastRenderedState=m}return f===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function Nc(e){var n=Ot(),i=n.queue;if(i===null)throw Error(l(311));i.lastRenderedReducer=e;var s=i.dispatch,f=i.pending,m=n.memoizedState;if(f!==null){i.pending=null;var O=f=f.next;do m=e(m,O.action),O=O.next;while(O!==f);Jt(m,n.memoizedState)||(_t=!0),n.memoizedState=m,n.baseQueue===null&&(n.baseState=m),i.lastRenderedState=m}return[m,s]}function Ug(e,n,i){var s=$e,f=Ot(),m=Ye;if(m){if(i===void 0)throw Error(l(407));i=i()}else i=n();var O=!Jt((Ke||f).memoizedState,i);O&&(f.memoizedState=i,_t=!0),f=f.queue;var M=Wg.bind(null,s,f,e);if(ml(2048,8,M,[e]),f.getSnapshot!==n||O||xt!==null&&xt.memoizedState.tag&1){if(s.flags|=2048,ui(9,cs(),Vg.bind(null,s,f,i,n),null),rt===null)throw Error(l(349));m||(qr&124)!==0||Gg(s,n,i)}return i}function Gg(e,n,i){e.flags|=16384,e={getSnapshot:n,value:i},n=$e.updateQueue,n===null?(n=jc(),$e.updateQueue=n,n.stores=[e]):(i=n.stores,i===null?n.stores=[e]:i.push(e))}function Vg(e,n,i,s){n.value=i,n.getSnapshot=s,Yg(n)&&Xg(e)}function Wg(e,n,i){return i(function(){Yg(n)&&Xg(e)})}function Yg(e){var n=e.getSnapshot;e=e.value;try{var i=n();return!Jt(e,i)}catch{return!0}}function Xg(e){var n=ei(e,2);n!==null&&ln(n,e,2)}function Dc(e){var n=Vt();if(typeof e=="function"){var i=e;if(e=i(),Ra){nt(!0);try{i()}finally{nt(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:e},n}function Fg(e,n,i,s){return e.baseState=i,Mc(e,Ke,typeof s=="function"?s:hr)}function aE(e,n,i,s,f){if(ds(e))throw Error(l(485));if(e=n.action,e!==null){var m={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(O){m.listeners.push(O)}};L.T!==null?i(!0):m.isTransition=!1,s(m),i=n.pending,i===null?(m.next=n.pending=m,Qg(n,m)):(m.next=i.next,n.pending=i.next=m)}}function Qg(e,n){var i=n.action,s=n.payload,f=e.state;if(n.isTransition){var m=L.T,O={};L.T=O;try{var M=i(f,s),Y=L.S;Y!==null&&Y(O,M),Zg(e,n,M)}catch(ae){Lc(e,n,ae)}finally{L.T=m}}else try{m=i(f,s),Zg(e,n,m)}catch(ae){Lc(e,n,ae)}}function Zg(e,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(s){Kg(e,n,s)},function(s){return Lc(e,n,s)}):Kg(e,n,i)}function Kg(e,n,i){n.status="fulfilled",n.value=i,Jg(n),e.state=i,n=e.pending,n!==null&&(i=n.next,i===n?e.pending=null:(i=i.next,n.next=i,Qg(e,i)))}function Lc(e,n,i){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do n.status="rejected",n.reason=i,Jg(n),n=n.next;while(n!==s)}e.action=null}function Jg(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function ev(e,n){return n}function tv(e,n){if(Ye){var i=rt.formState;if(i!==null){e:{var s=$e;if(Ye){if(pt){t:{for(var f=pt,m=$n;f.nodeType!==8;){if(!m){f=null;break t}if(f=Dn(f.nextSibling),f===null){f=null;break t}}m=f.data,f=m==="F!"||m==="F"?f:null}if(f){pt=Dn(f.nextSibling),s=f.data==="F!";break e}}Oa(s)}s=!1}s&&(n=i[0])}}return i=Vt(),i.memoizedState=i.baseState=n,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ev,lastRenderedState:n},i.queue=s,i=Sv.bind(null,$e,s),s.dispatch=i,s=Dc(!1),m=Bc.bind(null,$e,!1,s.queue),s=Vt(),f={state:n,dispatch:null,action:e,pending:null},s.queue=f,i=aE.bind(null,$e,f,m,i),f.dispatch=i,s.memoizedState=e,[n,i,!1]}function nv(e){var n=Ot();return rv(n,Ke,e)}function rv(e,n,i){if(n=Mc(e,n,ev)[0],e=us(hr)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var s=pl(n)}catch(O){throw O===sl?rs:O}else s=n;n=Ot();var f=n.queue,m=f.dispatch;return i!==n.memoizedState&&($e.flags|=2048,ui(9,cs(),iE.bind(null,f,i),null)),[s,m,e]}function iE(e,n){e.action=n}function av(e){var n=Ot(),i=Ke;if(i!==null)return rv(n,i,e);Ot(),n=n.memoizedState,i=Ot();var s=i.queue.dispatch;return i.memoizedState=e,[n,s,!1]}function ui(e,n,i,s){return e={tag:e,create:i,deps:s,inst:n,next:null},n=$e.updateQueue,n===null&&(n=jc(),$e.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=e.next=e:(s=i.next,i.next=e,e.next=s,n.lastEffect=e),e}function cs(){return{destroy:void 0,resource:void 0}}function iv(){return Ot().memoizedState}function fs(e,n,i,s){var f=Vt();s=s===void 0?null:s,$e.flags|=e,f.memoizedState=ui(1|n,cs(),i,s)}function ml(e,n,i,s){var f=Ot();s=s===void 0?null:s;var m=f.memoizedState.inst;Ke!==null&&s!==null&&Tc(s,Ke.memoizedState.deps)?f.memoizedState=ui(n,m,i,s):($e.flags|=e,f.memoizedState=ui(1|n,m,i,s))}function lv(e,n){fs(8390656,8,e,n)}function ov(e,n){ml(2048,8,e,n)}function sv(e,n){return ml(4,2,e,n)}function uv(e,n){return ml(4,4,e,n)}function cv(e,n){if(typeof n=="function"){e=e();var i=n(e);return function(){typeof i=="function"?i():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function fv(e,n,i){i=i!=null?i.concat([e]):null,ml(4,4,cv.bind(null,n,e),i)}function zc(){}function dv(e,n){var i=Ot();n=n===void 0?null:n;var s=i.memoizedState;return n!==null&&Tc(n,s[1])?s[0]:(i.memoizedState=[e,n],e)}function hv(e,n){var i=Ot();n=n===void 0?null:n;var s=i.memoizedState;if(n!==null&&Tc(n,s[1]))return s[0];if(s=e(),Ra){nt(!0);try{e()}finally{nt(!1)}}return i.memoizedState=[s,n],s}function Pc(e,n,i){return i===void 0||(qr&1073741824)!==0?e.memoizedState=n:(e.memoizedState=i,e=gy(),$e.lanes|=e,Fr|=e,i)}function pv(e,n,i,s){return Jt(i,n)?i:li.current!==null?(e=Pc(e,i,s),Jt(e,n)||(_t=!0),e):(qr&42)===0?(_t=!0,e.memoizedState=i):(e=gy(),$e.lanes|=e,Fr|=e,n)}function mv(e,n,i,s,f){var m=b.p;b.p=m!==0&&8>m?m:8;var O=L.T,M={};L.T=M,Bc(e,!1,n,i);try{var Y=f(),ae=L.S;if(ae!==null&&ae(M,Y),Y!==null&&typeof Y=="object"&&typeof Y.then=="function"){var ce=tE(Y,s);gl(e,n,ce,an(e))}else gl(e,n,s,an(e))}catch(de){gl(e,n,{then:function(){},status:"rejected",reason:de},an())}finally{b.p=m,L.T=O}}function lE(){}function Hc(e,n,i,s){if(e.tag!==5)throw Error(l(476));var f=gv(e).queue;mv(e,f,n,te,i===null?lE:function(){return vv(e),i(s)})}function gv(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:te},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:i},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function vv(e){var n=gv(e).next.queue;gl(e,n,{},an())}function kc(){return kt(Ll)}function yv(){return Ot().memoizedState}function bv(){return Ot().memoizedState}function oE(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var i=an();e=$r(i);var s=Ir(n,e,i);s!==null&&(ln(s,n,i),cl(s,n,i)),n={cache:pc()},e.payload=n;return}n=n.return}}function sE(e,n,i){var s=an();i={lane:s,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},ds(e)?wv(n,i):(i=ac(e,n,i,s),i!==null&&(ln(i,e,s),xv(i,n,s)))}function Sv(e,n,i){var s=an();gl(e,n,i,s)}function gl(e,n,i,s){var f={lane:s,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(ds(e))wv(n,f);else{var m=e.alternate;if(e.lanes===0&&(m===null||m.lanes===0)&&(m=n.lastRenderedReducer,m!==null))try{var O=n.lastRenderedState,M=m(O,i);if(f.hasEagerState=!0,f.eagerState=M,Jt(M,O))return Fo(e,n,f,0),rt===null&&Xo(),!1}catch{}finally{}if(i=ac(e,n,f,s),i!==null)return ln(i,e,s),xv(i,n,s),!0}return!1}function Bc(e,n,i,s){if(s={lane:2,revertLane:yf(),action:s,hasEagerState:!1,eagerState:null,next:null},ds(e)){if(n)throw Error(l(479))}else n=ac(e,i,s,2),n!==null&&ln(n,e,2)}function ds(e){var n=e.alternate;return e===$e||n!==null&&n===$e}function wv(e,n){oi=ls=!0;var i=e.pending;i===null?n.next=n:(n.next=i.next,i.next=n),e.pending=n}function xv(e,n,i){if((i&4194048)!==0){var s=n.lanes;s&=e.pendingLanes,i|=s,n.lanes=i,jn(e,i)}}var hs={readContext:kt,use:ss,useCallback:bt,useContext:bt,useEffect:bt,useImperativeHandle:bt,useLayoutEffect:bt,useInsertionEffect:bt,useMemo:bt,useReducer:bt,useRef:bt,useState:bt,useDebugValue:bt,useDeferredValue:bt,useTransition:bt,useSyncExternalStore:bt,useId:bt,useHostTransitionStatus:bt,useFormState:bt,useActionState:bt,useOptimistic:bt,useMemoCache:bt,useCacheRefresh:bt},Ov={readContext:kt,use:ss,useCallback:function(e,n){return Vt().memoizedState=[e,n===void 0?null:n],e},useContext:kt,useEffect:lv,useImperativeHandle:function(e,n,i){i=i!=null?i.concat([e]):null,fs(4194308,4,cv.bind(null,n,e),i)},useLayoutEffect:function(e,n){return fs(4194308,4,e,n)},useInsertionEffect:function(e,n){fs(4,2,e,n)},useMemo:function(e,n){var i=Vt();n=n===void 0?null:n;var s=e();if(Ra){nt(!0);try{e()}finally{nt(!1)}}return i.memoizedState=[s,n],s},useReducer:function(e,n,i){var s=Vt();if(i!==void 0){var f=i(n);if(Ra){nt(!0);try{i(n)}finally{nt(!1)}}}else f=n;return s.memoizedState=s.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},s.queue=e,e=e.dispatch=sE.bind(null,$e,e),[s.memoizedState,e]},useRef:function(e){var n=Vt();return e={current:e},n.memoizedState=e},useState:function(e){e=Dc(e);var n=e.queue,i=Sv.bind(null,$e,n);return n.dispatch=i,[e.memoizedState,i]},useDebugValue:zc,useDeferredValue:function(e,n){var i=Vt();return Pc(i,e,n)},useTransition:function(){var e=Dc(!1);return e=mv.bind(null,$e,e.queue,!0,!1),Vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,i){var s=$e,f=Vt();if(Ye){if(i===void 0)throw Error(l(407));i=i()}else{if(i=n(),rt===null)throw Error(l(349));(Ge&124)!==0||Gg(s,n,i)}f.memoizedState=i;var m={value:i,getSnapshot:n};return f.queue=m,lv(Wg.bind(null,s,m,e),[e]),s.flags|=2048,ui(9,cs(),Vg.bind(null,s,m,i,n),null),i},useId:function(){var e=Vt(),n=rt.identifierPrefix;if(Ye){var i=cr,s=ur;i=(s&~(1<<32-dt(s)-1)).toString(32)+i,n="«"+n+"R"+i,i=os++,0<i&&(n+="H"+i.toString(32)),n+="»"}else i=nE++,n="«"+n+"r"+i.toString(32)+"»";return e.memoizedState=n},useHostTransitionStatus:kc,useFormState:tv,useActionState:tv,useOptimistic:function(e){var n=Vt();n.memoizedState=n.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=Bc.bind(null,$e,!0,i),i.dispatch=n,[e,n]},useMemoCache:Ac,useCacheRefresh:function(){return Vt().memoizedState=oE.bind(null,$e)}},Tv={readContext:kt,use:ss,useCallback:dv,useContext:kt,useEffect:ov,useImperativeHandle:fv,useInsertionEffect:sv,useLayoutEffect:uv,useMemo:hv,useReducer:us,useRef:iv,useState:function(){return us(hr)},useDebugValue:zc,useDeferredValue:function(e,n){var i=Ot();return pv(i,Ke.memoizedState,e,n)},useTransition:function(){var e=us(hr)[0],n=Ot().memoizedState;return[typeof e=="boolean"?e:pl(e),n]},useSyncExternalStore:Ug,useId:yv,useHostTransitionStatus:kc,useFormState:nv,useActionState:nv,useOptimistic:function(e,n){var i=Ot();return Fg(i,Ke,e,n)},useMemoCache:Ac,useCacheRefresh:bv},uE={readContext:kt,use:ss,useCallback:dv,useContext:kt,useEffect:ov,useImperativeHandle:fv,useInsertionEffect:sv,useLayoutEffect:uv,useMemo:hv,useReducer:Nc,useRef:iv,useState:function(){return Nc(hr)},useDebugValue:zc,useDeferredValue:function(e,n){var i=Ot();return Ke===null?Pc(i,e,n):pv(i,Ke.memoizedState,e,n)},useTransition:function(){var e=Nc(hr)[0],n=Ot().memoizedState;return[typeof e=="boolean"?e:pl(e),n]},useSyncExternalStore:Ug,useId:yv,useHostTransitionStatus:kc,useFormState:av,useActionState:av,useOptimistic:function(e,n){var i=Ot();return Ke!==null?Fg(i,Ke,e,n):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:Ac,useCacheRefresh:bv},ci=null,vl=0;function ps(e){var n=vl;return vl+=1,ci===null&&(ci=[]),zg(ci,e,n)}function yl(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function ms(e,n){throw n.$$typeof===v?Error(l(525)):(e=Object.prototype.toString.call(n),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function Ev(e){var n=e._init;return n(e._payload)}function Cv(e){function n(ee,K){if(e){var re=ee.deletions;re===null?(ee.deletions=[K],ee.flags|=16):re.push(K)}}function i(ee,K){if(!e)return null;for(;K!==null;)n(ee,K),K=K.sibling;return null}function s(ee){for(var K=new Map;ee!==null;)ee.key!==null?K.set(ee.key,ee):K.set(ee.index,ee),ee=ee.sibling;return K}function f(ee,K){return ee=sr(ee,K),ee.index=0,ee.sibling=null,ee}function m(ee,K,re){return ee.index=re,e?(re=ee.alternate,re!==null?(re=re.index,re<K?(ee.flags|=67108866,K):re):(ee.flags|=67108866,K)):(ee.flags|=1048576,K)}function O(ee){return e&&ee.alternate===null&&(ee.flags|=67108866),ee}function M(ee,K,re,fe){return K===null||K.tag!==6?(K=lc(re,ee.mode,fe),K.return=ee,K):(K=f(K,re),K.return=ee,K)}function Y(ee,K,re,fe){var xe=re.type;return xe===N?ce(ee,K,re.props.children,fe,re.key):K!==null&&(K.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===F&&Ev(xe)===K.type)?(K=f(K,re.props),yl(K,re),K.return=ee,K):(K=Zo(re.type,re.key,re.props,null,ee.mode,fe),yl(K,re),K.return=ee,K)}function ae(ee,K,re,fe){return K===null||K.tag!==4||K.stateNode.containerInfo!==re.containerInfo||K.stateNode.implementation!==re.implementation?(K=oc(re,ee.mode,fe),K.return=ee,K):(K=f(K,re.children||[]),K.return=ee,K)}function ce(ee,K,re,fe,xe){return K===null||K.tag!==7?(K=ba(re,ee.mode,fe,xe),K.return=ee,K):(K=f(K,re),K.return=ee,K)}function de(ee,K,re){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return K=lc(""+K,ee.mode,re),K.return=ee,K;if(typeof K=="object"&&K!==null){switch(K.$$typeof){case x:return re=Zo(K.type,K.key,K.props,null,ee.mode,re),yl(re,K),re.return=ee,re;case E:return K=oc(K,ee.mode,re),K.return=ee,K;case F:var fe=K._init;return K=fe(K._payload),de(ee,K,re)}if(U(K)||I(K))return K=ba(K,ee.mode,re,null),K.return=ee,K;if(typeof K.then=="function")return de(ee,ps(K),re);if(K.$$typeof===k)return de(ee,ts(ee,K),re);ms(ee,K)}return null}function le(ee,K,re,fe){var xe=K!==null?K.key:null;if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return xe!==null?null:M(ee,K,""+re,fe);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case x:return re.key===xe?Y(ee,K,re,fe):null;case E:return re.key===xe?ae(ee,K,re,fe):null;case F:return xe=re._init,re=xe(re._payload),le(ee,K,re,fe)}if(U(re)||I(re))return xe!==null?null:ce(ee,K,re,fe,null);if(typeof re.then=="function")return le(ee,K,ps(re),fe);if(re.$$typeof===k)return le(ee,K,ts(ee,re),fe);ms(ee,re)}return null}function oe(ee,K,re,fe,xe){if(typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint")return ee=ee.get(re)||null,M(K,ee,""+fe,xe);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case x:return ee=ee.get(fe.key===null?re:fe.key)||null,Y(K,ee,fe,xe);case E:return ee=ee.get(fe.key===null?re:fe.key)||null,ae(K,ee,fe,xe);case F:var Ie=fe._init;return fe=Ie(fe._payload),oe(ee,K,re,fe,xe)}if(U(fe)||I(fe))return ee=ee.get(re)||null,ce(K,ee,fe,xe,null);if(typeof fe.then=="function")return oe(ee,K,re,ps(fe),xe);if(fe.$$typeof===k)return oe(ee,K,re,ts(K,fe),xe);ms(K,fe)}return null}function De(ee,K,re,fe){for(var xe=null,Ie=null,Te=K,Me=K=0,At=null;Te!==null&&Me<re.length;Me++){Te.index>Me?(At=Te,Te=null):At=Te.sibling;var We=le(ee,Te,re[Me],fe);if(We===null){Te===null&&(Te=At);break}e&&Te&&We.alternate===null&&n(ee,Te),K=m(We,K,Me),Ie===null?xe=We:Ie.sibling=We,Ie=We,Te=At}if(Me===re.length)return i(ee,Te),Ye&&wa(ee,Me),xe;if(Te===null){for(;Me<re.length;Me++)Te=de(ee,re[Me],fe),Te!==null&&(K=m(Te,K,Me),Ie===null?xe=Te:Ie.sibling=Te,Ie=Te);return Ye&&wa(ee,Me),xe}for(Te=s(Te);Me<re.length;Me++)At=oe(Te,ee,Me,re[Me],fe),At!==null&&(e&&At.alternate!==null&&Te.delete(At.key===null?Me:At.key),K=m(At,K,Me),Ie===null?xe=At:Ie.sibling=At,Ie=At);return e&&Te.forEach(function(aa){return n(ee,aa)}),Ye&&wa(ee,Me),xe}function _e(ee,K,re,fe){if(re==null)throw Error(l(151));for(var xe=null,Ie=null,Te=K,Me=K=0,At=null,We=re.next();Te!==null&&!We.done;Me++,We=re.next()){Te.index>Me?(At=Te,Te=null):At=Te.sibling;var aa=le(ee,Te,We.value,fe);if(aa===null){Te===null&&(Te=At);break}e&&Te&&aa.alternate===null&&n(ee,Te),K=m(aa,K,Me),Ie===null?xe=aa:Ie.sibling=aa,Ie=aa,Te=At}if(We.done)return i(ee,Te),Ye&&wa(ee,Me),xe;if(Te===null){for(;!We.done;Me++,We=re.next())We=de(ee,We.value,fe),We!==null&&(K=m(We,K,Me),Ie===null?xe=We:Ie.sibling=We,Ie=We);return Ye&&wa(ee,Me),xe}for(Te=s(Te);!We.done;Me++,We=re.next())We=oe(Te,ee,Me,We.value,fe),We!==null&&(e&&We.alternate!==null&&Te.delete(We.key===null?Me:We.key),K=m(We,K,Me),Ie===null?xe=We:Ie.sibling=We,Ie=We);return e&&Te.forEach(function(cC){return n(ee,cC)}),Ye&&wa(ee,Me),xe}function et(ee,K,re,fe){if(typeof re=="object"&&re!==null&&re.type===N&&re.key===null&&(re=re.props.children),typeof re=="object"&&re!==null){switch(re.$$typeof){case x:e:{for(var xe=re.key;K!==null;){if(K.key===xe){if(xe=re.type,xe===N){if(K.tag===7){i(ee,K.sibling),fe=f(K,re.props.children),fe.return=ee,ee=fe;break e}}else if(K.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===F&&Ev(xe)===K.type){i(ee,K.sibling),fe=f(K,re.props),yl(fe,re),fe.return=ee,ee=fe;break e}i(ee,K);break}else n(ee,K);K=K.sibling}re.type===N?(fe=ba(re.props.children,ee.mode,fe,re.key),fe.return=ee,ee=fe):(fe=Zo(re.type,re.key,re.props,null,ee.mode,fe),yl(fe,re),fe.return=ee,ee=fe)}return O(ee);case E:e:{for(xe=re.key;K!==null;){if(K.key===xe)if(K.tag===4&&K.stateNode.containerInfo===re.containerInfo&&K.stateNode.implementation===re.implementation){i(ee,K.sibling),fe=f(K,re.children||[]),fe.return=ee,ee=fe;break e}else{i(ee,K);break}else n(ee,K);K=K.sibling}fe=oc(re,ee.mode,fe),fe.return=ee,ee=fe}return O(ee);case F:return xe=re._init,re=xe(re._payload),et(ee,K,re,fe)}if(U(re))return De(ee,K,re,fe);if(I(re)){if(xe=I(re),typeof xe!="function")throw Error(l(150));return re=xe.call(re),_e(ee,K,re,fe)}if(typeof re.then=="function")return et(ee,K,ps(re),fe);if(re.$$typeof===k)return et(ee,K,ts(ee,re),fe);ms(ee,re)}return typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint"?(re=""+re,K!==null&&K.tag===6?(i(ee,K.sibling),fe=f(K,re),fe.return=ee,ee=fe):(i(ee,K),fe=lc(re,ee.mode,fe),fe.return=ee,ee=fe),O(ee)):i(ee,K)}return function(ee,K,re,fe){try{vl=0;var xe=et(ee,K,re,fe);return ci=null,xe}catch(Te){if(Te===sl||Te===rs)throw Te;var Ie=en(29,Te,null,ee.mode);return Ie.lanes=fe,Ie.return=ee,Ie}finally{}}}var fi=Cv(!0),Rv=Cv(!1),vn=C(null),In=null;function Ur(e){var n=e.alternate;J(Ct,Ct.current&1),J(vn,e),In===null&&(n===null||li.current!==null||n.memoizedState!==null)&&(In=e)}function _v(e){if(e.tag===22){if(J(Ct,Ct.current),J(vn,e),In===null){var n=e.alternate;n!==null&&n.memoizedState!==null&&(In=e)}}else Gr()}function Gr(){J(Ct,Ct.current),J(vn,vn.current)}function pr(e){W(vn),In===e&&(In=null),W(Ct)}var Ct=C(0);function gs(e){for(var n=e;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||Af(i)))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(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 null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function $c(e,n,i,s){n=e.memoizedState,i=i(s,n),i=i==null?n:g({},n,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var Ic={enqueueSetState:function(e,n,i){e=e._reactInternals;var s=an(),f=$r(s);f.payload=n,i!=null&&(f.callback=i),n=Ir(e,f,s),n!==null&&(ln(n,e,s),cl(n,e,s))},enqueueReplaceState:function(e,n,i){e=e._reactInternals;var s=an(),f=$r(s);f.tag=1,f.payload=n,i!=null&&(f.callback=i),n=Ir(e,f,s),n!==null&&(ln(n,e,s),cl(n,e,s))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var i=an(),s=$r(i);s.tag=2,n!=null&&(s.callback=n),n=Ir(e,s,i),n!==null&&(ln(n,e,i),cl(n,e,i))}};function jv(e,n,i,s,f,m,O){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,m,O):n.prototype&&n.prototype.isPureReactComponent?!el(i,s)||!el(f,m):!0}function Av(e,n,i,s){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,s),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,s),n.state!==e&&Ic.enqueueReplaceState(n,n.state,null)}function _a(e,n){var i=n;if("ref"in n){i={};for(var s in n)s!=="ref"&&(i[s]=n[s])}if(e=e.defaultProps){i===n&&(i=g({},i));for(var f in e)i[f]===void 0&&(i[f]=e[f])}return i}var vs=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Mv(e){vs(e)}function Nv(e){console.error(e)}function Dv(e){vs(e)}function ys(e,n){try{var i=e.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(s){setTimeout(function(){throw s})}}function Lv(e,n,i){try{var s=e.onCaughtError;s(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function qc(e,n,i){return i=$r(i),i.tag=3,i.payload={element:null},i.callback=function(){ys(e,n)},i}function zv(e){return e=$r(e),e.tag=3,e}function Pv(e,n,i,s){var f=i.type.getDerivedStateFromError;if(typeof f=="function"){var m=s.value;e.payload=function(){return f(m)},e.callback=function(){Lv(n,i,s)}}var O=i.stateNode;O!==null&&typeof O.componentDidCatch=="function"&&(e.callback=function(){Lv(n,i,s),typeof f!="function"&&(Qr===null?Qr=new Set([this]):Qr.add(this));var M=s.stack;this.componentDidCatch(s.value,{componentStack:M!==null?M:""})})}function cE(e,n,i,s,f){if(i.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(n=i.alternate,n!==null&&il(n,i,f,!0),i=vn.current,i!==null){switch(i.tag){case 13:return In===null?hf():i.alternate===null&&mt===0&&(mt=3),i.flags&=-257,i.flags|=65536,i.lanes=f,s===vc?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([s]):n.add(s),mf(e,s,f)),!1;case 22:return i.flags|=65536,s===vc?i.flags|=16384:(n=i.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([s])},i.updateQueue=n):(i=n.retryQueue,i===null?n.retryQueue=new Set([s]):i.add(s)),mf(e,s,f)),!1}throw Error(l(435,i.tag))}return mf(e,s,f),hf(),!1}if(Ye)return n=vn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=f,s!==cc&&(e=Error(l(422),{cause:s}),al(hn(e,i)))):(s!==cc&&(n=Error(l(423),{cause:s}),al(hn(n,i))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,s=hn(s,i),f=qc(e.stateNode,s,f),Sc(e,f),mt!==4&&(mt=2)),!1;var m=Error(l(520),{cause:s});if(m=hn(m,i),El===null?El=[m]:El.push(m),mt!==4&&(mt=2),n===null)return!0;s=hn(s,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,e=f&-f,i.lanes|=e,e=qc(i.stateNode,s,e),Sc(i,e),!1;case 1:if(n=i.type,m=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Qr===null||!Qr.has(m))))return i.flags|=65536,f&=-f,i.lanes|=f,f=zv(f),Pv(f,e,i,s),Sc(i,f),!1}i=i.return}while(i!==null);return!1}var Hv=Error(l(461)),_t=!1;function Dt(e,n,i,s){n.child=e===null?Rv(n,null,i,s):fi(n,e.child,i,s)}function kv(e,n,i,s,f){i=i.render;var m=n.ref;if("ref"in s){var O={};for(var M in s)M!=="ref"&&(O[M]=s[M])}else O=s;return Ea(n),s=Ec(e,n,i,O,m,f),M=Cc(),e!==null&&!_t?(Rc(e,n,f),mr(e,n,f)):(Ye&&M&&sc(n),n.flags|=1,Dt(e,n,s,f),n.child)}function Bv(e,n,i,s,f){if(e===null){var m=i.type;return typeof m=="function"&&!ic(m)&&m.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=m,$v(e,n,m,s,f)):(e=Zo(i.type,null,s,n,n.mode,f),e.ref=n.ref,e.return=n,n.child=e)}if(m=e.child,!Qc(e,f)){var O=m.memoizedProps;if(i=i.compare,i=i!==null?i:el,i(O,s)&&e.ref===n.ref)return mr(e,n,f)}return n.flags|=1,e=sr(m,s),e.ref=n.ref,e.return=n,n.child=e}function $v(e,n,i,s,f){if(e!==null){var m=e.memoizedProps;if(el(m,s)&&e.ref===n.ref)if(_t=!1,n.pendingProps=s=m,Qc(e,f))(e.flags&131072)!==0&&(_t=!0);else return n.lanes=e.lanes,mr(e,n,f)}return Uc(e,n,i,s,f)}function Iv(e,n,i){var s=n.pendingProps,f=s.children,m=e!==null?e.memoizedState:null;if(s.mode==="hidden"){if((n.flags&128)!==0){if(s=m!==null?m.baseLanes|i:i,e!==null){for(f=n.child=e.child,m=0;f!==null;)m=m|f.lanes|f.childLanes,f=f.sibling;n.childLanes=m&~s}else n.childLanes=0,n.child=null;return qv(e,n,s,i)}if((i&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&ns(n,m!==null?m.cachePool:null),m!==null?$g(n,m):xc(),_v(n);else return n.lanes=n.childLanes=536870912,qv(e,n,m!==null?m.baseLanes|i:i,i)}else m!==null?(ns(n,m.cachePool),$g(n,m),Gr(),n.memoizedState=null):(e!==null&&ns(n,null),xc(),Gr());return Dt(e,n,f,i),n.child}function qv(e,n,i,s){var f=gc();return f=f===null?null:{parent:Et._currentValue,pool:f},n.memoizedState={baseLanes:i,cachePool:f},e!==null&&ns(n,null),xc(),_v(n),e!==null&&il(e,n,s,!0),null}function bs(e,n){var i=n.ref;if(i===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(l(284));(e===null||e.ref!==i)&&(n.flags|=4194816)}}function Uc(e,n,i,s,f){return Ea(n),i=Ec(e,n,i,s,void 0,f),s=Cc(),e!==null&&!_t?(Rc(e,n,f),mr(e,n,f)):(Ye&&s&&sc(n),n.flags|=1,Dt(e,n,i,f),n.child)}function Uv(e,n,i,s,f,m){return Ea(n),n.updateQueue=null,i=qg(n,s,i,f),Ig(e),s=Cc(),e!==null&&!_t?(Rc(e,n,m),mr(e,n,m)):(Ye&&s&&sc(n),n.flags|=1,Dt(e,n,i,m),n.child)}function Gv(e,n,i,s,f){if(Ea(n),n.stateNode===null){var m=ti,O=i.contextType;typeof O=="object"&&O!==null&&(m=kt(O)),m=new i(s,m),n.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=Ic,n.stateNode=m,m._reactInternals=n,m=n.stateNode,m.props=s,m.state=n.memoizedState,m.refs={},yc(n),O=i.contextType,m.context=typeof O=="object"&&O!==null?kt(O):ti,m.state=n.memoizedState,O=i.getDerivedStateFromProps,typeof O=="function"&&($c(n,i,O,s),m.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(O=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),O!==m.state&&Ic.enqueueReplaceState(m,m.state,null),dl(n,s,m,f),fl(),m.state=n.memoizedState),typeof m.componentDidMount=="function"&&(n.flags|=4194308),s=!0}else if(e===null){m=n.stateNode;var M=n.memoizedProps,Y=_a(i,M);m.props=Y;var ae=m.context,ce=i.contextType;O=ti,typeof ce=="object"&&ce!==null&&(O=kt(ce));var de=i.getDerivedStateFromProps;ce=typeof de=="function"||typeof m.getSnapshotBeforeUpdate=="function",M=n.pendingProps!==M,ce||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(M||ae!==O)&&Av(n,m,s,O),Br=!1;var le=n.memoizedState;m.state=le,dl(n,s,m,f),fl(),ae=n.memoizedState,M||le!==ae||Br?(typeof de=="function"&&($c(n,i,de,s),ae=n.memoizedState),(Y=Br||jv(n,i,Y,s,le,ae,O))?(ce||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(n.flags|=4194308)):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=s,n.memoizedState=ae),m.props=s,m.state=ae,m.context=O,s=Y):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{m=n.stateNode,bc(e,n),O=n.memoizedProps,ce=_a(i,O),m.props=ce,de=n.pendingProps,le=m.context,ae=i.contextType,Y=ti,typeof ae=="object"&&ae!==null&&(Y=kt(ae)),M=i.getDerivedStateFromProps,(ae=typeof M=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(O!==de||le!==Y)&&Av(n,m,s,Y),Br=!1,le=n.memoizedState,m.state=le,dl(n,s,m,f),fl();var oe=n.memoizedState;O!==de||le!==oe||Br||e!==null&&e.dependencies!==null&&es(e.dependencies)?(typeof M=="function"&&($c(n,i,M,s),oe=n.memoizedState),(ce=Br||jv(n,i,ce,s,le,oe,Y)||e!==null&&e.dependencies!==null&&es(e.dependencies))?(ae||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(s,oe,Y),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(s,oe,Y)),typeof m.componentDidUpdate=="function"&&(n.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof m.componentDidUpdate!="function"||O===e.memoizedProps&&le===e.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||O===e.memoizedProps&&le===e.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=oe),m.props=s,m.state=oe,m.context=Y,s=ce):(typeof m.componentDidUpdate!="function"||O===e.memoizedProps&&le===e.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||O===e.memoizedProps&&le===e.memoizedState||(n.flags|=1024),s=!1)}return m=s,bs(e,n),s=(n.flags&128)!==0,m||s?(m=n.stateNode,i=s&&typeof i.getDerivedStateFromError!="function"?null:m.render(),n.flags|=1,e!==null&&s?(n.child=fi(n,e.child,null,f),n.child=fi(n,null,i,f)):Dt(e,n,i,f),n.memoizedState=m.state,e=n.child):e=mr(e,n,f),e}function Vv(e,n,i,s){return rl(),n.flags|=256,Dt(e,n,i,s),n.child}var Gc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Vc(e){return{baseLanes:e,cachePool:Ng()}}function Wc(e,n,i){return e=e!==null?e.childLanes&~i:0,n&&(e|=yn),e}function Wv(e,n,i){var s=n.pendingProps,f=!1,m=(n.flags&128)!==0,O;if((O=m)||(O=e!==null&&e.memoizedState===null?!1:(Ct.current&2)!==0),O&&(f=!0,n.flags&=-129),O=(n.flags&32)!==0,n.flags&=-33,e===null){if(Ye){if(f?Ur(n):Gr(),Ye){var M=pt,Y;if(Y=M){e:{for(Y=M,M=$n;Y.nodeType!==8;){if(!M){M=null;break e}if(Y=Dn(Y.nextSibling),Y===null){M=null;break e}}M=Y}M!==null?(n.memoizedState={dehydrated:M,treeContext:Sa!==null?{id:ur,overflow:cr}:null,retryLane:536870912,hydrationErrors:null},Y=en(18,null,null,0),Y.stateNode=M,Y.return=n,n.child=Y,$t=n,pt=null,Y=!0):Y=!1}Y||Oa(n)}if(M=n.memoizedState,M!==null&&(M=M.dehydrated,M!==null))return Af(M)?n.lanes=32:n.lanes=536870912,null;pr(n)}return M=s.children,s=s.fallback,f?(Gr(),f=n.mode,M=Ss({mode:"hidden",children:M},f),s=ba(s,f,i,null),M.return=n,s.return=n,M.sibling=s,n.child=M,f=n.child,f.memoizedState=Vc(i),f.childLanes=Wc(e,O,i),n.memoizedState=Gc,s):(Ur(n),Yc(n,M))}if(Y=e.memoizedState,Y!==null&&(M=Y.dehydrated,M!==null)){if(m)n.flags&256?(Ur(n),n.flags&=-257,n=Xc(e,n,i)):n.memoizedState!==null?(Gr(),n.child=e.child,n.flags|=128,n=null):(Gr(),f=s.fallback,M=n.mode,s=Ss({mode:"visible",children:s.children},M),f=ba(f,M,i,null),f.flags|=2,s.return=n,f.return=n,s.sibling=f,n.child=s,fi(n,e.child,null,i),s=n.child,s.memoizedState=Vc(i),s.childLanes=Wc(e,O,i),n.memoizedState=Gc,n=f);else if(Ur(n),Af(M)){if(O=M.nextSibling&&M.nextSibling.dataset,O)var ae=O.dgst;O=ae,s=Error(l(419)),s.stack="",s.digest=O,al({value:s,source:null,stack:null}),n=Xc(e,n,i)}else if(_t||il(e,n,i,!1),O=(i&e.childLanes)!==0,_t||O){if(O=rt,O!==null&&(s=i&-i,s=(s&42)!==0?1:ha(s),s=(s&(O.suspendedLanes|i))!==0?0:s,s!==0&&s!==Y.retryLane))throw Y.retryLane=s,ei(e,s),ln(O,e,s),Hv;M.data==="$?"||hf(),n=Xc(e,n,i)}else M.data==="$?"?(n.flags|=192,n.child=e.child,n=null):(e=Y.treeContext,pt=Dn(M.nextSibling),$t=n,Ye=!0,xa=null,$n=!1,e!==null&&(mn[gn++]=ur,mn[gn++]=cr,mn[gn++]=Sa,ur=e.id,cr=e.overflow,Sa=n),n=Yc(n,s.children),n.flags|=4096);return n}return f?(Gr(),f=s.fallback,M=n.mode,Y=e.child,ae=Y.sibling,s=sr(Y,{mode:"hidden",children:s.children}),s.subtreeFlags=Y.subtreeFlags&65011712,ae!==null?f=sr(ae,f):(f=ba(f,M,i,null),f.flags|=2),f.return=n,s.return=n,s.sibling=f,n.child=s,s=f,f=n.child,M=e.child.memoizedState,M===null?M=Vc(i):(Y=M.cachePool,Y!==null?(ae=Et._currentValue,Y=Y.parent!==ae?{parent:ae,pool:ae}:Y):Y=Ng(),M={baseLanes:M.baseLanes|i,cachePool:Y}),f.memoizedState=M,f.childLanes=Wc(e,O,i),n.memoizedState=Gc,s):(Ur(n),i=e.child,e=i.sibling,i=sr(i,{mode:"visible",children:s.children}),i.return=n,i.sibling=null,e!==null&&(O=n.deletions,O===null?(n.deletions=[e],n.flags|=16):O.push(e)),n.child=i,n.memoizedState=null,i)}function Yc(e,n){return n=Ss({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Ss(e,n){return e=en(22,e,null,n),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Xc(e,n,i){return fi(n,e.child,null,i),e=Yc(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Yv(e,n,i){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n),dc(e.return,n,i)}function Fc(e,n,i,s,f){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:i,tailMode:f}:(m.isBackwards=n,m.rendering=null,m.renderingStartTime=0,m.last=s,m.tail=i,m.tailMode=f)}function Xv(e,n,i){var s=n.pendingProps,f=s.revealOrder,m=s.tail;if(Dt(e,n,s.children,i),s=Ct.current,(s&2)!==0)s=s&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Yv(e,i,n);else if(e.tag===19)Yv(e,i,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}switch(J(Ct,s),f){case"forwards":for(i=n.child,f=null;i!==null;)e=i.alternate,e!==null&&gs(e)===null&&(f=i),i=i.sibling;i=f,i===null?(f=n.child,n.child=null):(f=i.sibling,i.sibling=null),Fc(n,!1,f,i,m);break;case"backwards":for(i=null,f=n.child,n.child=null;f!==null;){if(e=f.alternate,e!==null&&gs(e)===null){n.child=f;break}e=f.sibling,f.sibling=i,i=f,f=e}Fc(n,!0,i,null,m);break;case"together":Fc(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function mr(e,n,i){if(e!==null&&(n.dependencies=e.dependencies),Fr|=n.lanes,(i&n.childLanes)===0)if(e!==null){if(il(e,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(l(153));if(n.child!==null){for(e=n.child,i=sr(e,e.pendingProps),n.child=i,i.return=n;e.sibling!==null;)e=e.sibling,i=i.sibling=sr(e,e.pendingProps),i.return=n;i.sibling=null}return n.child}function Qc(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&es(e)))}function fE(e,n,i){switch(n.tag){case 3:ue(n,n.stateNode.containerInfo),kr(n,Et,e.memoizedState.cache),rl();break;case 27:case 5:he(n);break;case 4:ue(n,n.stateNode.containerInfo);break;case 10:kr(n,n.type,n.memoizedProps.value);break;case 13:var s=n.memoizedState;if(s!==null)return s.dehydrated!==null?(Ur(n),n.flags|=128,null):(i&n.child.childLanes)!==0?Wv(e,n,i):(Ur(n),e=mr(e,n,i),e!==null?e.sibling:null);Ur(n);break;case 19:var f=(e.flags&128)!==0;if(s=(i&n.childLanes)!==0,s||(il(e,n,i,!1),s=(i&n.childLanes)!==0),f){if(s)return Xv(e,n,i);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),J(Ct,Ct.current),s)break;return null;case 22:case 23:return n.lanes=0,Iv(e,n,i);case 24:kr(n,Et,e.memoizedState.cache)}return mr(e,n,i)}function Fv(e,n,i){if(e!==null)if(e.memoizedProps!==n.pendingProps)_t=!0;else{if(!Qc(e,i)&&(n.flags&128)===0)return _t=!1,fE(e,n,i);_t=(e.flags&131072)!==0}else _t=!1,Ye&&(n.flags&1048576)!==0&&Eg(n,Jo,n.index);switch(n.lanes=0,n.tag){case 16:e:{e=n.pendingProps;var s=n.elementType,f=s._init;if(s=f(s._payload),n.type=s,typeof s=="function")ic(s)?(e=_a(s,e),n.tag=1,n=Gv(null,n,s,e,i)):(n.tag=0,n=Uc(null,n,s,e,i));else{if(s!=null){if(f=s.$$typeof,f===Z){n.tag=11,n=kv(null,n,s,e,i);break e}else if(f===P){n.tag=14,n=Bv(null,n,s,e,i);break e}}throw n=$(s)||s,Error(l(306,n,""))}}return n;case 0:return Uc(e,n,n.type,n.pendingProps,i);case 1:return s=n.type,f=_a(s,n.pendingProps),Gv(e,n,s,f,i);case 3:e:{if(ue(n,n.stateNode.containerInfo),e===null)throw Error(l(387));s=n.pendingProps;var m=n.memoizedState;f=m.element,bc(e,n),dl(n,s,null,i);var O=n.memoizedState;if(s=O.cache,kr(n,Et,s),s!==m.cache&&hc(n,[Et],i,!0),fl(),s=O.element,m.isDehydrated)if(m={element:s,isDehydrated:!1,cache:O.cache},n.updateQueue.baseState=m,n.memoizedState=m,n.flags&256){n=Vv(e,n,s,i);break e}else if(s!==f){f=hn(Error(l(424)),n),al(f),n=Vv(e,n,s,i);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(pt=Dn(e.firstChild),$t=n,Ye=!0,xa=null,$n=!0,i=Rv(n,null,s,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(rl(),s===f){n=mr(e,n,i);break e}Dt(e,n,s,i)}n=n.child}return n;case 26:return bs(e,n),e===null?(i=Jy(n.type,null,n.pendingProps,null))?n.memoizedState=i:Ye||(i=n.type,e=n.pendingProps,s=Ls(V.current).createElement(i),s[Tt]=n,s[wt]=e,zt(s,i,e),ht(s),n.stateNode=s):n.memoizedState=Jy(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return he(n),e===null&&Ye&&(s=n.stateNode=Qy(n.type,n.pendingProps,V.current),$t=n,$n=!0,f=pt,Jr(n.type)?(Mf=f,pt=Dn(s.firstChild)):pt=f),Dt(e,n,n.pendingProps.children,i),bs(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Ye&&((f=s=pt)&&(s=BE(s,n.type,n.pendingProps,$n),s!==null?(n.stateNode=s,$t=n,pt=Dn(s.firstChild),$n=!1,f=!0):f=!1),f||Oa(n)),he(n),f=n.type,m=n.pendingProps,O=e!==null?e.memoizedProps:null,s=m.children,Rf(f,m)?s=null:O!==null&&Rf(f,O)&&(n.flags|=32),n.memoizedState!==null&&(f=Ec(e,n,rE,null,null,i),Ll._currentValue=f),bs(e,n),Dt(e,n,s,i),n.child;case 6:return e===null&&Ye&&((e=i=pt)&&(i=$E(i,n.pendingProps,$n),i!==null?(n.stateNode=i,$t=n,pt=null,e=!0):e=!1),e||Oa(n)),null;case 13:return Wv(e,n,i);case 4:return ue(n,n.stateNode.containerInfo),s=n.pendingProps,e===null?n.child=fi(n,null,s,i):Dt(e,n,s,i),n.child;case 11:return kv(e,n,n.type,n.pendingProps,i);case 7:return Dt(e,n,n.pendingProps,i),n.child;case 8:return Dt(e,n,n.pendingProps.children,i),n.child;case 12:return Dt(e,n,n.pendingProps.children,i),n.child;case 10:return s=n.pendingProps,kr(n,n.type,s.value),Dt(e,n,s.children,i),n.child;case 9:return f=n.type._context,s=n.pendingProps.children,Ea(n),f=kt(f),s=s(f),n.flags|=1,Dt(e,n,s,i),n.child;case 14:return Bv(e,n,n.type,n.pendingProps,i);case 15:return $v(e,n,n.type,n.pendingProps,i);case 19:return Xv(e,n,i);case 31:return s=n.pendingProps,i=n.mode,s={mode:s.mode,children:s.children},e===null?(i=Ss(s,i),i.ref=n.ref,n.child=i,i.return=n,n=i):(i=sr(e.child,s),i.ref=n.ref,n.child=i,i.return=n,n=i),n;case 22:return Iv(e,n,i);case 24:return Ea(n),s=kt(Et),e===null?(f=gc(),f===null&&(f=rt,m=pc(),f.pooledCache=m,m.refCount++,m!==null&&(f.pooledCacheLanes|=i),f=m),n.memoizedState={parent:s,cache:f},yc(n),kr(n,Et,f)):((e.lanes&i)!==0&&(bc(e,n),dl(n,null,null,i),fl()),f=e.memoizedState,m=n.memoizedState,f.parent!==s?(f={parent:s,cache:s},n.memoizedState=f,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=f),kr(n,Et,s)):(s=m.cache,kr(n,Et,s),s!==f.cache&&hc(n,[Et],i,!0))),Dt(e,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(l(156,n.tag))}function gr(e){e.flags|=4}function Qv(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!ab(n)){if(n=vn.current,n!==null&&((Ge&4194048)===Ge?In!==null:(Ge&62914560)!==Ge&&(Ge&536870912)===0||n!==In))throw ul=vc,Dg;e.flags|=8192}}function ws(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?Ze():536870912,e.lanes|=n,mi|=n)}function bl(e,n){if(!Ye)switch(e.tailMode){case"hidden":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function ut(e){var n=e.alternate!==null&&e.alternate.child===e.child,i=0,s=0;if(n)for(var f=e.child;f!==null;)i|=f.lanes|f.childLanes,s|=f.subtreeFlags&65011712,s|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)i|=f.lanes|f.childLanes,s|=f.subtreeFlags,s|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=s,e.childLanes=i,n}function dE(e,n,i){var s=n.pendingProps;switch(uc(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ut(n),null;case 1:return ut(n),null;case 3:return i=n.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),dr(Et),me(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(nl(n)?gr(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,_g())),ut(n),null;case 26:return i=n.memoizedState,e===null?(gr(n),i!==null?(ut(n),Qv(n,i)):(ut(n),n.flags&=-16777217)):i?i!==e.memoizedState?(gr(n),ut(n),Qv(n,i)):(ut(n),n.flags&=-16777217):(e.memoizedProps!==s&&gr(n),ut(n),n.flags&=-16777217),null;case 27:ve(n),i=V.current;var f=n.type;if(e!==null&&n.stateNode!=null)e.memoizedProps!==s&&gr(n);else{if(!s){if(n.stateNode===null)throw Error(l(166));return ut(n),null}e=B.current,nl(n)?Cg(n):(e=Qy(f,s,i),n.stateNode=e,gr(n))}return ut(n),null;case 5:if(ve(n),i=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==s&&gr(n);else{if(!s){if(n.stateNode===null)throw Error(l(166));return ut(n),null}if(e=B.current,nl(n))Cg(n);else{switch(f=Ls(V.current),e){case 1:e=f.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:e=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":e=f.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":e=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":e=f.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof s.is=="string"?f.createElement("select",{is:s.is}):f.createElement("select"),s.multiple?e.multiple=!0:s.size&&(e.size=s.size);break;default:e=typeof s.is=="string"?f.createElement(i,{is:s.is}):f.createElement(i)}}e[Tt]=n,e[wt]=s;e:for(f=n.child;f!==null;){if(f.tag===5||f.tag===6)e.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===n)break e;for(;f.sibling===null;){if(f.return===null||f.return===n)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}n.stateNode=e;e:switch(zt(e,i,s),i){case"button":case"input":case"select":case"textarea":e=!!s.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&gr(n)}}return ut(n),n.flags&=-16777217,null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==s&&gr(n);else{if(typeof s!="string"&&n.stateNode===null)throw Error(l(166));if(e=V.current,nl(n)){if(e=n.stateNode,i=n.memoizedProps,s=null,f=$t,f!==null)switch(f.tag){case 27:case 5:s=f.memoizedProps}e[Tt]=n,e=!!(e.nodeValue===i||s!==null&&s.suppressHydrationWarning===!0||Uy(e.nodeValue,i)),e||Oa(n)}else e=Ls(e).createTextNode(s),e[Tt]=n,n.stateNode=e}return ut(n),null;case 13:if(s=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=nl(n),s!==null&&s.dehydrated!==null){if(e===null){if(!f)throw Error(l(318));if(f=n.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(l(317));f[Tt]=n}else rl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;ut(n),f=!1}else f=_g(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return n.flags&256?(pr(n),n):(pr(n),null)}if(pr(n),(n.flags&128)!==0)return n.lanes=i,n;if(i=s!==null,e=e!==null&&e.memoizedState!==null,i){s=n.child,f=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(f=s.alternate.memoizedState.cachePool.pool);var m=null;s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(m=s.memoizedState.cachePool.pool),m!==f&&(s.flags|=2048)}return i!==e&&i&&(n.child.flags|=8192),ws(n,n.updateQueue),ut(n),null;case 4:return me(),e===null&&xf(n.stateNode.containerInfo),ut(n),null;case 10:return dr(n.type),ut(n),null;case 19:if(W(Ct),f=n.memoizedState,f===null)return ut(n),null;if(s=(n.flags&128)!==0,m=f.rendering,m===null)if(s)bl(f,!1);else{if(mt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(m=gs(e),m!==null){for(n.flags|=128,bl(f,!1),e=m.updateQueue,n.updateQueue=e,ws(n,e),n.subtreeFlags=0,e=i,i=n.child;i!==null;)Tg(i,e),i=i.sibling;return J(Ct,Ct.current&1|2),n.child}e=e.sibling}f.tail!==null&&be()>Ts&&(n.flags|=128,s=!0,bl(f,!1),n.lanes=4194304)}else{if(!s)if(e=gs(m),e!==null){if(n.flags|=128,s=!0,e=e.updateQueue,n.updateQueue=e,ws(n,e),bl(f,!0),f.tail===null&&f.tailMode==="hidden"&&!m.alternate&&!Ye)return ut(n),null}else 2*be()-f.renderingStartTime>Ts&&i!==536870912&&(n.flags|=128,s=!0,bl(f,!1),n.lanes=4194304);f.isBackwards?(m.sibling=n.child,n.child=m):(e=f.last,e!==null?e.sibling=m:n.child=m,f.last=m)}return f.tail!==null?(n=f.tail,f.rendering=n,f.tail=n.sibling,f.renderingStartTime=be(),n.sibling=null,e=Ct.current,J(Ct,s?e&1|2:e&1),n):(ut(n),null);case 22:case 23:return pr(n),Oc(),s=n.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(n.flags|=8192):s&&(n.flags|=8192),s?(i&536870912)!==0&&(n.flags&128)===0&&(ut(n),n.subtreeFlags&6&&(n.flags|=8192)):ut(n),i=n.updateQueue,i!==null&&ws(n,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==i&&(n.flags|=2048),e!==null&&W(Ca),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),dr(Et),ut(n),null;case 25:return null;case 30:return null}throw Error(l(156,n.tag))}function hE(e,n){switch(uc(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return dr(Et),me(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return ve(n),null;case 13:if(pr(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(l(340));rl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return W(Ct),null;case 4:return me(),null;case 10:return dr(n.type),null;case 22:case 23:return pr(n),Oc(),e!==null&&W(Ca),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return dr(Et),null;case 25:return null;default:return null}}function Zv(e,n){switch(uc(n),n.tag){case 3:dr(Et),me();break;case 26:case 27:case 5:ve(n);break;case 4:me();break;case 13:pr(n);break;case 19:W(Ct);break;case 10:dr(n.type);break;case 22:case 23:pr(n),Oc(),e!==null&&W(Ca);break;case 24:dr(Et)}}function Sl(e,n){try{var i=n.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var f=s.next;i=f;do{if((i.tag&e)===e){s=void 0;var m=i.create,O=i.inst;s=m(),O.destroy=s}i=i.next}while(i!==f)}}catch(M){tt(n,n.return,M)}}function Vr(e,n,i){try{var s=n.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var m=f.next;s=m;do{if((s.tag&e)===e){var O=s.inst,M=O.destroy;if(M!==void 0){O.destroy=void 0,f=n;var Y=i,ae=M;try{ae()}catch(ce){tt(f,Y,ce)}}}s=s.next}while(s!==m)}}catch(ce){tt(n,n.return,ce)}}function Kv(e){var n=e.updateQueue;if(n!==null){var i=e.stateNode;try{Bg(n,i)}catch(s){tt(e,e.return,s)}}}function Jv(e,n,i){i.props=_a(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(s){tt(e,n,s)}}function wl(e,n){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof i=="function"?e.refCleanup=i(s):i.current=s}}catch(f){tt(e,n,f)}}function qn(e,n){var i=e.ref,s=e.refCleanup;if(i!==null)if(typeof s=="function")try{s()}catch(f){tt(e,n,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(f){tt(e,n,f)}else i.current=null}function ey(e){var n=e.type,i=e.memoizedProps,s=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&s.focus();break e;case"img":i.src?s.src=i.src:i.srcSet&&(s.srcset=i.srcSet)}}catch(f){tt(e,e.return,f)}}function Zc(e,n,i){try{var s=e.stateNode;LE(s,e.type,i,n),s[wt]=n}catch(f){tt(e,e.return,f)}}function ty(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Jr(e.type)||e.tag===4}function Kc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ty(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Jr(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Jc(e,n,i){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,n):(n=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,n.appendChild(e),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=Ds));else if(s!==4&&(s===27&&Jr(e.type)&&(i=e.stateNode,n=null),e=e.child,e!==null))for(Jc(e,n,i),e=e.sibling;e!==null;)Jc(e,n,i),e=e.sibling}function xs(e,n,i){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?i.insertBefore(e,n):i.appendChild(e);else if(s!==4&&(s===27&&Jr(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(xs(e,n,i),e=e.sibling;e!==null;)xs(e,n,i),e=e.sibling}function ny(e){var n=e.stateNode,i=e.memoizedProps;try{for(var s=e.type,f=n.attributes;f.length;)n.removeAttributeNode(f[0]);zt(n,s,i),n[Tt]=e,n[wt]=i}catch(m){tt(e,e.return,m)}}var vr=!1,St=!1,ef=!1,ry=typeof WeakSet=="function"?WeakSet:Set,jt=null;function pE(e,n){if(e=e.containerInfo,Ef=$s,e=pg(e),Ku(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var s=i.getSelection&&i.getSelection();if(s&&s.rangeCount!==0){i=s.anchorNode;var f=s.anchorOffset,m=s.focusNode;s=s.focusOffset;try{i.nodeType,m.nodeType}catch{i=null;break e}var O=0,M=-1,Y=-1,ae=0,ce=0,de=e,le=null;t:for(;;){for(var oe;de!==i||f!==0&&de.nodeType!==3||(M=O+f),de!==m||s!==0&&de.nodeType!==3||(Y=O+s),de.nodeType===3&&(O+=de.nodeValue.length),(oe=de.firstChild)!==null;)le=de,de=oe;for(;;){if(de===e)break t;if(le===i&&++ae===f&&(M=O),le===m&&++ce===s&&(Y=O),(oe=de.nextSibling)!==null)break;de=le,le=de.parentNode}de=oe}i=M===-1||Y===-1?null:{start:M,end:Y}}else i=null}i=i||{start:0,end:0}}else i=null;for(Cf={focusedElem:e,selectionRange:i},$s=!1,jt=n;jt!==null;)if(n=jt,e=n.child,(n.subtreeFlags&1024)!==0&&e!==null)e.return=n,jt=e;else for(;jt!==null;){switch(n=jt,m=n.alternate,e=n.flags,n.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&m!==null){e=void 0,i=n,f=m.memoizedProps,m=m.memoizedState,s=i.stateNode;try{var De=_a(i.type,f,i.elementType===i.type);e=s.getSnapshotBeforeUpdate(De,m),s.__reactInternalSnapshotBeforeUpdate=e}catch(_e){tt(i,i.return,_e)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,i=e.nodeType,i===9)jf(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":jf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=n.sibling,e!==null){e.return=n.return,jt=e;break}jt=n.return}}function ay(e,n,i){var s=i.flags;switch(i.tag){case 0:case 11:case 15:Wr(e,i),s&4&&Sl(5,i);break;case 1:if(Wr(e,i),s&4)if(e=i.stateNode,n===null)try{e.componentDidMount()}catch(O){tt(i,i.return,O)}else{var f=_a(i.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(f,n,e.__reactInternalSnapshotBeforeUpdate)}catch(O){tt(i,i.return,O)}}s&64&&Kv(i),s&512&&wl(i,i.return);break;case 3:if(Wr(e,i),s&64&&(e=i.updateQueue,e!==null)){if(n=null,i.child!==null)switch(i.child.tag){case 27:case 5:n=i.child.stateNode;break;case 1:n=i.child.stateNode}try{Bg(e,n)}catch(O){tt(i,i.return,O)}}break;case 27:n===null&&s&4&&ny(i);case 26:case 5:Wr(e,i),n===null&&s&4&&ey(i),s&512&&wl(i,i.return);break;case 12:Wr(e,i);break;case 13:Wr(e,i),s&4&&oy(e,i),s&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=OE.bind(null,i),IE(e,i))));break;case 22:if(s=i.memoizedState!==null||vr,!s){n=n!==null&&n.memoizedState!==null||St,f=vr;var m=St;vr=s,(St=n)&&!m?Yr(e,i,(i.subtreeFlags&8772)!==0):Wr(e,i),vr=f,St=m}break;case 30:break;default:Wr(e,i)}}function iy(e){var n=e.alternate;n!==null&&(e.alternate=null,iy(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&pa(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var st=null,Wt=!1;function yr(e,n,i){for(i=i.child;i!==null;)ly(e,n,i),i=i.sibling}function ly(e,n,i){if(Be&&typeof Be.onCommitFiberUnmount=="function")try{Be.onCommitFiberUnmount(Ae,i)}catch{}switch(i.tag){case 26:St||qn(i,n),yr(e,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:St||qn(i,n);var s=st,f=Wt;Jr(i.type)&&(st=i.stateNode,Wt=!1),yr(e,n,i),Al(i.stateNode),st=s,Wt=f;break;case 5:St||qn(i,n);case 6:if(s=st,f=Wt,st=null,yr(e,n,i),st=s,Wt=f,st!==null)if(Wt)try{(st.nodeType===9?st.body:st.nodeName==="HTML"?st.ownerDocument.body:st).removeChild(i.stateNode)}catch(m){tt(i,n,m)}else try{st.removeChild(i.stateNode)}catch(m){tt(i,n,m)}break;case 18:st!==null&&(Wt?(e=st,Xy(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),kl(e)):Xy(st,i.stateNode));break;case 4:s=st,f=Wt,st=i.stateNode.containerInfo,Wt=!0,yr(e,n,i),st=s,Wt=f;break;case 0:case 11:case 14:case 15:St||Vr(2,i,n),St||Vr(4,i,n),yr(e,n,i);break;case 1:St||(qn(i,n),s=i.stateNode,typeof s.componentWillUnmount=="function"&&Jv(i,n,s)),yr(e,n,i);break;case 21:yr(e,n,i);break;case 22:St=(s=St)||i.memoizedState!==null,yr(e,n,i),St=s;break;default:yr(e,n,i)}}function oy(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{kl(e)}catch(i){tt(n,n.return,i)}}function mE(e){switch(e.tag){case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new ry),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new ry),n;default:throw Error(l(435,e.tag))}}function tf(e,n){var i=mE(e);n.forEach(function(s){var f=TE.bind(null,e,s);i.has(s)||(i.add(s),s.then(f,f))})}function tn(e,n){var i=n.deletions;if(i!==null)for(var s=0;s<i.length;s++){var f=i[s],m=e,O=n,M=O;e:for(;M!==null;){switch(M.tag){case 27:if(Jr(M.type)){st=M.stateNode,Wt=!1;break e}break;case 5:st=M.stateNode,Wt=!1;break e;case 3:case 4:st=M.stateNode.containerInfo,Wt=!0;break e}M=M.return}if(st===null)throw Error(l(160));ly(m,O,f),st=null,Wt=!1,m=f.alternate,m!==null&&(m.return=null),f.return=null}if(n.subtreeFlags&13878)for(n=n.child;n!==null;)sy(n,e),n=n.sibling}var Nn=null;function sy(e,n){var i=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:tn(n,e),nn(e),s&4&&(Vr(3,e,e.return),Sl(3,e),Vr(5,e,e.return));break;case 1:tn(n,e),nn(e),s&512&&(St||i===null||qn(i,i.return)),s&64&&vr&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?s:i.concat(s))));break;case 26:var f=Nn;if(tn(n,e),nn(e),s&512&&(St||i===null||qn(i,i.return)),s&4){var m=i!==null?i.memoizedState:null;if(s=e.memoizedState,i===null)if(s===null)if(e.stateNode===null){e:{s=e.type,i=e.memoizedProps,f=f.ownerDocument||f;t:switch(s){case"title":m=f.getElementsByTagName("title")[0],(!m||m[Lr]||m[Tt]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=f.createElement(s),f.head.insertBefore(m,f.querySelector("head > title"))),zt(m,s,i),m[Tt]=e,ht(m),s=m;break e;case"link":var O=nb("link","href",f).get(s+(i.href||""));if(O){for(var M=0;M<O.length;M++)if(m=O[M],m.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&m.getAttribute("rel")===(i.rel==null?null:i.rel)&&m.getAttribute("title")===(i.title==null?null:i.title)&&m.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){O.splice(M,1);break t}}m=f.createElement(s),zt(m,s,i),f.head.appendChild(m);break;case"meta":if(O=nb("meta","content",f).get(s+(i.content||""))){for(M=0;M<O.length;M++)if(m=O[M],m.getAttribute("content")===(i.content==null?null:""+i.content)&&m.getAttribute("name")===(i.name==null?null:i.name)&&m.getAttribute("property")===(i.property==null?null:i.property)&&m.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&m.getAttribute("charset")===(i.charSet==null?null:i.charSet)){O.splice(M,1);break t}}m=f.createElement(s),zt(m,s,i),f.head.appendChild(m);break;default:throw Error(l(468,s))}m[Tt]=e,ht(m),s=m}e.stateNode=s}else rb(f,e.type,e.stateNode);else e.stateNode=tb(f,s,e.memoizedProps);else m!==s?(m===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):m.count--,s===null?rb(f,e.type,e.stateNode):tb(f,s,e.memoizedProps)):s===null&&e.stateNode!==null&&Zc(e,e.memoizedProps,i.memoizedProps)}break;case 27:tn(n,e),nn(e),s&512&&(St||i===null||qn(i,i.return)),i!==null&&s&4&&Zc(e,e.memoizedProps,i.memoizedProps);break;case 5:if(tn(n,e),nn(e),s&512&&(St||i===null||qn(i,i.return)),e.flags&32){f=e.stateNode;try{Ya(f,"")}catch(oe){tt(e,e.return,oe)}}s&4&&e.stateNode!=null&&(f=e.memoizedProps,Zc(e,f,i!==null?i.memoizedProps:f)),s&1024&&(ef=!0);break;case 6:if(tn(n,e),nn(e),s&4){if(e.stateNode===null)throw Error(l(162));s=e.memoizedProps,i=e.stateNode;try{i.nodeValue=s}catch(oe){tt(e,e.return,oe)}}break;case 3:if(Hs=null,f=Nn,Nn=zs(n.containerInfo),tn(n,e),Nn=f,nn(e),s&4&&i!==null&&i.memoizedState.isDehydrated)try{kl(n.containerInfo)}catch(oe){tt(e,e.return,oe)}ef&&(ef=!1,uy(e));break;case 4:s=Nn,Nn=zs(e.stateNode.containerInfo),tn(n,e),nn(e),Nn=s;break;case 12:tn(n,e),nn(e);break;case 13:tn(n,e),nn(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(sf=be()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,tf(e,s)));break;case 22:f=e.memoizedState!==null;var Y=i!==null&&i.memoizedState!==null,ae=vr,ce=St;if(vr=ae||f,St=ce||Y,tn(n,e),St=ce,vr=ae,nn(e),s&8192)e:for(n=e.stateNode,n._visibility=f?n._visibility&-2:n._visibility|1,f&&(i===null||Y||vr||St||ja(e)),i=null,n=e;;){if(n.tag===5||n.tag===26){if(i===null){Y=i=n;try{if(m=Y.stateNode,f)O=m.style,typeof O.setProperty=="function"?O.setProperty("display","none","important"):O.display="none";else{M=Y.stateNode;var de=Y.memoizedProps.style,le=de!=null&&de.hasOwnProperty("display")?de.display:null;M.style.display=le==null||typeof le=="boolean"?"":(""+le).trim()}}catch(oe){tt(Y,Y.return,oe)}}}else if(n.tag===6){if(i===null){Y=n;try{Y.stateNode.nodeValue=f?"":Y.memoizedProps}catch(oe){tt(Y,Y.return,oe)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;i===n&&(i=null),n=n.return}i===n&&(i=null),n.sibling.return=n.return,n=n.sibling}s&4&&(s=e.updateQueue,s!==null&&(i=s.retryQueue,i!==null&&(s.retryQueue=null,tf(e,i))));break;case 19:tn(n,e),nn(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,tf(e,s)));break;case 30:break;case 21:break;default:tn(n,e),nn(e)}}function nn(e){var n=e.flags;if(n&2){try{for(var i,s=e.return;s!==null;){if(ty(s)){i=s;break}s=s.return}if(i==null)throw Error(l(160));switch(i.tag){case 27:var f=i.stateNode,m=Kc(e);xs(e,m,f);break;case 5:var O=i.stateNode;i.flags&32&&(Ya(O,""),i.flags&=-33);var M=Kc(e);xs(e,M,O);break;case 3:case 4:var Y=i.stateNode.containerInfo,ae=Kc(e);Jc(e,ae,Y);break;default:throw Error(l(161))}}catch(ce){tt(e,e.return,ce)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function uy(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;uy(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Wr(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)ay(e,n.alternate,n),n=n.sibling}function ja(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Vr(4,n,n.return),ja(n);break;case 1:qn(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&Jv(n,n.return,i),ja(n);break;case 27:Al(n.stateNode);case 26:case 5:qn(n,n.return),ja(n);break;case 22:n.memoizedState===null&&ja(n);break;case 30:ja(n);break;default:ja(n)}e=e.sibling}}function Yr(e,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var s=n.alternate,f=e,m=n,O=m.flags;switch(m.tag){case 0:case 11:case 15:Yr(f,m,i),Sl(4,m);break;case 1:if(Yr(f,m,i),s=m,f=s.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(ae){tt(s,s.return,ae)}if(s=m,f=s.updateQueue,f!==null){var M=s.stateNode;try{var Y=f.shared.hiddenCallbacks;if(Y!==null)for(f.shared.hiddenCallbacks=null,f=0;f<Y.length;f++)kg(Y[f],M)}catch(ae){tt(s,s.return,ae)}}i&&O&64&&Kv(m),wl(m,m.return);break;case 27:ny(m);case 26:case 5:Yr(f,m,i),i&&s===null&&O&4&&ey(m),wl(m,m.return);break;case 12:Yr(f,m,i);break;case 13:Yr(f,m,i),i&&O&4&&oy(f,m);break;case 22:m.memoizedState===null&&Yr(f,m,i),wl(m,m.return);break;case 30:break;default:Yr(f,m,i)}n=n.sibling}}function nf(e,n){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&ll(i))}function rf(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&ll(e))}function Un(e,n,i,s){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)cy(e,n,i,s),n=n.sibling}function cy(e,n,i,s){var f=n.flags;switch(n.tag){case 0:case 11:case 15:Un(e,n,i,s),f&2048&&Sl(9,n);break;case 1:Un(e,n,i,s);break;case 3:Un(e,n,i,s),f&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&ll(e)));break;case 12:if(f&2048){Un(e,n,i,s),e=n.stateNode;try{var m=n.memoizedProps,O=m.id,M=m.onPostCommit;typeof M=="function"&&M(O,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(Y){tt(n,n.return,Y)}}else Un(e,n,i,s);break;case 13:Un(e,n,i,s);break;case 23:break;case 22:m=n.stateNode,O=n.alternate,n.memoizedState!==null?m._visibility&2?Un(e,n,i,s):xl(e,n):m._visibility&2?Un(e,n,i,s):(m._visibility|=2,di(e,n,i,s,(n.subtreeFlags&10256)!==0)),f&2048&&nf(O,n);break;case 24:Un(e,n,i,s),f&2048&&rf(n.alternate,n);break;default:Un(e,n,i,s)}}function di(e,n,i,s,f){for(f=f&&(n.subtreeFlags&10256)!==0,n=n.child;n!==null;){var m=e,O=n,M=i,Y=s,ae=O.flags;switch(O.tag){case 0:case 11:case 15:di(m,O,M,Y,f),Sl(8,O);break;case 23:break;case 22:var ce=O.stateNode;O.memoizedState!==null?ce._visibility&2?di(m,O,M,Y,f):xl(m,O):(ce._visibility|=2,di(m,O,M,Y,f)),f&&ae&2048&&nf(O.alternate,O);break;case 24:di(m,O,M,Y,f),f&&ae&2048&&rf(O.alternate,O);break;default:di(m,O,M,Y,f)}n=n.sibling}}function xl(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=e,s=n,f=s.flags;switch(s.tag){case 22:xl(i,s),f&2048&&nf(s.alternate,s);break;case 24:xl(i,s),f&2048&&rf(s.alternate,s);break;default:xl(i,s)}n=n.sibling}}var Ol=8192;function hi(e){if(e.subtreeFlags&Ol)for(e=e.child;e!==null;)fy(e),e=e.sibling}function fy(e){switch(e.tag){case 26:hi(e),e.flags&Ol&&e.memoizedState!==null&&eC(Nn,e.memoizedState,e.memoizedProps);break;case 5:hi(e);break;case 3:case 4:var n=Nn;Nn=zs(e.stateNode.containerInfo),hi(e),Nn=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Ol,Ol=16777216,hi(e),Ol=n):hi(e));break;default:hi(e)}}function dy(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Tl(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var s=n[i];jt=s,py(s,e)}dy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)hy(e),e=e.sibling}function hy(e){switch(e.tag){case 0:case 11:case 15:Tl(e),e.flags&2048&&Vr(9,e,e.return);break;case 3:Tl(e);break;case 12:Tl(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Os(e)):Tl(e);break;default:Tl(e)}}function Os(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var s=n[i];jt=s,py(s,e)}dy(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Vr(8,n,n.return),Os(n);break;case 22:i=n.stateNode,i._visibility&2&&(i._visibility&=-3,Os(n));break;default:Os(n)}e=e.sibling}}function py(e,n){for(;jt!==null;){var i=jt;switch(i.tag){case 0:case 11:case 15:Vr(8,i,n);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var s=i.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:ll(i.memoizedState.cache)}if(s=i.child,s!==null)s.return=i,jt=s;else e:for(i=e;jt!==null;){s=jt;var f=s.sibling,m=s.return;if(iy(s),s===i){jt=null;break e}if(f!==null){f.return=m,jt=f;break e}jt=m}}}var gE={getCacheForType:function(e){var n=kt(Et),i=n.data.get(e);return i===void 0&&(i=e(),n.data.set(e,i)),i}},vE=typeof WeakMap=="function"?WeakMap:Map,Fe=0,rt=null,qe=null,Ge=0,Qe=0,rn=null,Xr=!1,pi=!1,af=!1,br=0,mt=0,Fr=0,Aa=0,lf=0,yn=0,mi=0,El=null,Yt=null,of=!1,sf=0,Ts=1/0,Es=null,Qr=null,Lt=0,Zr=null,gi=null,vi=0,uf=0,cf=null,my=null,Cl=0,ff=null;function an(){if((Fe&2)!==0&&Ge!==0)return Ge&-Ge;if(L.T!==null){var e=ai;return e!==0?e:yf()}return Ut()}function gy(){yn===0&&(yn=(Ge&536870912)===0||Ye?Xe():536870912);var e=vn.current;return e!==null&&(e.flags|=32),yn}function ln(e,n,i){(e===rt&&(Qe===2||Qe===9)||e.cancelPendingCommit!==null)&&(yi(e,0),Kr(e,Ge,yn,!1)),qt(e,i),((Fe&2)===0||e!==rt)&&(e===rt&&((Fe&2)===0&&(Aa|=i),mt===4&&Kr(e,Ge,yn,!1)),Gn(e))}function vy(e,n,i){if((Fe&6)!==0)throw Error(l(327));var s=!i&&(n&124)===0&&(n&e.expiredLanes)===0||se(e,n),f=s?SE(e,n):pf(e,n,!0),m=s;do{if(f===0){pi&&!s&&Kr(e,n,0,!1);break}else{if(i=e.current.alternate,m&&!yE(i)){f=pf(e,n,!1),m=!1;continue}if(f===2){if(m=n,e.errorRecoveryDisabledLanes&m)var O=0;else O=e.pendingLanes&-536870913,O=O!==0?O:O&536870912?536870912:0;if(O!==0){n=O;e:{var M=e;f=El;var Y=M.current.memoizedState.isDehydrated;if(Y&&(yi(M,O).flags|=256),O=pf(M,O,!1),O!==2){if(af&&!Y){M.errorRecoveryDisabledLanes|=m,Aa|=m,f=4;break e}m=Yt,Yt=f,m!==null&&(Yt===null?Yt=m:Yt.push.apply(Yt,m))}f=O}if(m=!1,f!==2)continue}}if(f===1){yi(e,0),Kr(e,n,0,!0);break}e:{switch(s=e,m=f,m){case 0:case 1:throw Error(l(345));case 4:if((n&4194048)!==n)break;case 6:Kr(s,n,yn,!Xr);break e;case 2:Yt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((n&62914560)===n&&(f=sf+300-be(),10<f)){if(Kr(s,n,yn,!Xr),ie(s,0,!0)!==0)break e;s.timeoutHandle=Wy(yy.bind(null,s,i,Yt,Es,of,n,yn,Aa,mi,Xr,m,2,-0,0),f);break e}yy(s,i,Yt,Es,of,n,yn,Aa,mi,Xr,m,0,-0,0)}}break}while(!0);Gn(e)}function yy(e,n,i,s,f,m,O,M,Y,ae,ce,de,le,oe){if(e.timeoutHandle=-1,de=n.subtreeFlags,(de&8192||(de&16785408)===16785408)&&(Dl={stylesheets:null,count:0,unsuspend:JE},fy(n),de=tC(),de!==null)){e.cancelPendingCommit=de(Ey.bind(null,e,n,m,i,s,f,O,M,Y,ce,1,le,oe)),Kr(e,m,O,!ae);return}Ey(e,n,m,i,s,f,O,M,Y)}function yE(e){for(var n=e;;){var i=n.tag;if((i===0||i===11||i===15)&&n.flags&16384&&(i=n.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var s=0;s<i.length;s++){var f=i[s],m=f.getSnapshot;f=f.value;try{if(!Jt(m(),f))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Kr(e,n,i,s){n&=~lf,n&=~Aa,e.suspendedLanes|=n,e.pingedLanes&=~n,s&&(e.warmLanes|=n),s=e.expirationTimes;for(var f=n;0<f;){var m=31-dt(f),O=1<<m;s[m]=-1,f&=~O}i!==0&&Ht(e,i,n)}function Cs(){return(Fe&6)===0?(Rl(0),!1):!0}function df(){if(qe!==null){if(Qe===0)var e=qe.return;else e=qe,fr=Ta=null,_c(e),ci=null,vl=0,e=qe;for(;e!==null;)Zv(e.alternate,e),e=e.return;qe=null}}function yi(e,n){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,PE(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),df(),rt=e,qe=i=sr(e.current,null),Ge=n,Qe=0,rn=null,Xr=!1,pi=se(e,n),af=!1,mi=yn=lf=Aa=Fr=mt=0,Yt=El=null,of=!1,(n&8)!==0&&(n|=n&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=n;0<s;){var f=31-dt(s),m=1<<f;n|=e[f],s&=~m}return br=n,Xo(),i}function by(e,n){$e=null,L.H=hs,n===sl||n===rs?(n=Pg(),Qe=3):n===Dg?(n=Pg(),Qe=4):Qe=n===Hv?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,rn=n,qe===null&&(mt=1,ys(e,hn(n,e.current)))}function Sy(){var e=L.H;return L.H=hs,e===null?hs:e}function wy(){var e=L.A;return L.A=gE,e}function hf(){mt=4,Xr||(Ge&4194048)!==Ge&&vn.current!==null||(pi=!0),(Fr&134217727)===0&&(Aa&134217727)===0||rt===null||Kr(rt,Ge,yn,!1)}function pf(e,n,i){var s=Fe;Fe|=2;var f=Sy(),m=wy();(rt!==e||Ge!==n)&&(Es=null,yi(e,n)),n=!1;var O=mt;e:do try{if(Qe!==0&&qe!==null){var M=qe,Y=rn;switch(Qe){case 8:df(),O=6;break e;case 3:case 2:case 9:case 6:vn.current===null&&(n=!0);var ae=Qe;if(Qe=0,rn=null,bi(e,M,Y,ae),i&&pi){O=0;break e}break;default:ae=Qe,Qe=0,rn=null,bi(e,M,Y,ae)}}bE(),O=mt;break}catch(ce){by(e,ce)}while(!0);return n&&e.shellSuspendCounter++,fr=Ta=null,Fe=s,L.H=f,L.A=m,qe===null&&(rt=null,Ge=0,Xo()),O}function bE(){for(;qe!==null;)xy(qe)}function SE(e,n){var i=Fe;Fe|=2;var s=Sy(),f=wy();rt!==e||Ge!==n?(Es=null,Ts=be()+500,yi(e,n)):pi=se(e,n);e:do try{if(Qe!==0&&qe!==null){n=qe;var m=rn;t:switch(Qe){case 1:Qe=0,rn=null,bi(e,n,m,1);break;case 2:case 9:if(Lg(m)){Qe=0,rn=null,Oy(n);break}n=function(){Qe!==2&&Qe!==9||rt!==e||(Qe=7),Gn(e)},m.then(n,n);break e;case 3:Qe=7;break e;case 4:Qe=5;break e;case 7:Lg(m)?(Qe=0,rn=null,Oy(n)):(Qe=0,rn=null,bi(e,n,m,7));break;case 5:var O=null;switch(qe.tag){case 26:O=qe.memoizedState;case 5:case 27:var M=qe;if(!O||ab(O)){Qe=0,rn=null;var Y=M.sibling;if(Y!==null)qe=Y;else{var ae=M.return;ae!==null?(qe=ae,Rs(ae)):qe=null}break t}}Qe=0,rn=null,bi(e,n,m,5);break;case 6:Qe=0,rn=null,bi(e,n,m,6);break;case 8:df(),mt=6;break e;default:throw Error(l(462))}}wE();break}catch(ce){by(e,ce)}while(!0);return fr=Ta=null,L.H=s,L.A=f,Fe=i,qe!==null?0:(rt=null,Ge=0,Xo(),mt)}function wE(){for(;qe!==null&&!ye();)xy(qe)}function xy(e){var n=Fv(e.alternate,e,br);e.memoizedProps=e.pendingProps,n===null?Rs(e):qe=n}function Oy(e){var n=e,i=n.alternate;switch(n.tag){case 15:case 0:n=Uv(i,n,n.pendingProps,n.type,void 0,Ge);break;case 11:n=Uv(i,n,n.pendingProps,n.type.render,n.ref,Ge);break;case 5:_c(n);default:Zv(i,n),n=qe=Tg(n,br),n=Fv(i,n,br)}e.memoizedProps=e.pendingProps,n===null?Rs(e):qe=n}function bi(e,n,i,s){fr=Ta=null,_c(n),ci=null,vl=0;var f=n.return;try{if(cE(e,f,n,i,Ge)){mt=1,ys(e,hn(i,e.current)),qe=null;return}}catch(m){if(f!==null)throw qe=f,m;mt=1,ys(e,hn(i,e.current)),qe=null;return}n.flags&32768?(Ye||s===1?e=!0:pi||(Ge&536870912)!==0?e=!1:(Xr=e=!0,(s===2||s===9||s===3||s===6)&&(s=vn.current,s!==null&&s.tag===13&&(s.flags|=16384))),Ty(n,e)):Rs(n)}function Rs(e){var n=e;do{if((n.flags&32768)!==0){Ty(n,Xr);return}e=n.return;var i=dE(n.alternate,n,br);if(i!==null){qe=i;return}if(n=n.sibling,n!==null){qe=n;return}qe=n=e}while(n!==null);mt===0&&(mt=5)}function Ty(e,n){do{var i=hE(e.alternate,e);if(i!==null){i.flags&=32767,qe=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(e=e.sibling,e!==null)){qe=e;return}qe=e=i}while(e!==null);mt=6,qe=null}function Ey(e,n,i,s,f,m,O,M,Y){e.cancelPendingCommit=null;do _s();while(Lt!==0);if((Fe&6)!==0)throw Error(l(327));if(n!==null){if(n===e.current)throw Error(l(177));if(m=n.lanes|n.childLanes,m|=rc,tr(e,i,m,O,M,Y),e===rt&&(qe=rt=null,Ge=0),gi=n,Zr=e,vi=i,uf=m,cf=f,my=s,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,EE(ke,function(){return Ay(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||s){s=L.T,L.T=null,f=b.p,b.p=2,O=Fe,Fe|=4;try{pE(e,n,i)}finally{Fe=O,b.p=f,L.T=s}}Lt=1,Cy(),Ry(),_y()}}function Cy(){if(Lt===1){Lt=0;var e=Zr,n=gi,i=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||i){i=L.T,L.T=null;var s=b.p;b.p=2;var f=Fe;Fe|=4;try{sy(n,e);var m=Cf,O=pg(e.containerInfo),M=m.focusedElem,Y=m.selectionRange;if(O!==M&&M&&M.ownerDocument&&hg(M.ownerDocument.documentElement,M)){if(Y!==null&&Ku(M)){var ae=Y.start,ce=Y.end;if(ce===void 0&&(ce=ae),"selectionStart"in M)M.selectionStart=ae,M.selectionEnd=Math.min(ce,M.value.length);else{var de=M.ownerDocument||document,le=de&&de.defaultView||window;if(le.getSelection){var oe=le.getSelection(),De=M.textContent.length,_e=Math.min(Y.start,De),et=Y.end===void 0?_e:Math.min(Y.end,De);!oe.extend&&_e>et&&(O=et,et=_e,_e=O);var ee=dg(M,_e),K=dg(M,et);if(ee&&K&&(oe.rangeCount!==1||oe.anchorNode!==ee.node||oe.anchorOffset!==ee.offset||oe.focusNode!==K.node||oe.focusOffset!==K.offset)){var re=de.createRange();re.setStart(ee.node,ee.offset),oe.removeAllRanges(),_e>et?(oe.addRange(re),oe.extend(K.node,K.offset)):(re.setEnd(K.node,K.offset),oe.addRange(re))}}}}for(de=[],oe=M;oe=oe.parentNode;)oe.nodeType===1&&de.push({element:oe,left:oe.scrollLeft,top:oe.scrollTop});for(typeof M.focus=="function"&&M.focus(),M=0;M<de.length;M++){var fe=de[M];fe.element.scrollLeft=fe.left,fe.element.scrollTop=fe.top}}$s=!!Ef,Cf=Ef=null}finally{Fe=f,b.p=s,L.T=i}}e.current=n,Lt=2}}function Ry(){if(Lt===2){Lt=0;var e=Zr,n=gi,i=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||i){i=L.T,L.T=null;var s=b.p;b.p=2;var f=Fe;Fe|=4;try{ay(e,n.alternate,n)}finally{Fe=f,b.p=s,L.T=i}}Lt=3}}function _y(){if(Lt===4||Lt===3){Lt=0,Re();var e=Zr,n=gi,i=vi,s=my;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?Lt=5:(Lt=0,gi=Zr=null,jy(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(Qr=null),Hn(i),n=n.stateNode,Be&&typeof Be.onCommitFiberRoot=="function")try{Be.onCommitFiberRoot(Ae,n,void 0,(n.current.flags&128)===128)}catch{}if(s!==null){n=L.T,f=b.p,b.p=2,L.T=null;try{for(var m=e.onRecoverableError,O=0;O<s.length;O++){var M=s[O];m(M.value,{componentStack:M.stack})}}finally{L.T=n,b.p=f}}(vi&3)!==0&&_s(),Gn(e),f=e.pendingLanes,(i&4194090)!==0&&(f&42)!==0?e===ff?Cl++:(Cl=0,ff=e):Cl=0,Rl(0)}}function jy(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,ll(n)))}function _s(e){return Cy(),Ry(),_y(),Ay()}function Ay(){if(Lt!==5)return!1;var e=Zr,n=uf;uf=0;var i=Hn(vi),s=L.T,f=b.p;try{b.p=32>i?32:i,L.T=null,i=cf,cf=null;var m=Zr,O=vi;if(Lt=0,gi=Zr=null,vi=0,(Fe&6)!==0)throw Error(l(331));var M=Fe;if(Fe|=4,hy(m.current),cy(m,m.current,O,i),Fe=M,Rl(0,!1),Be&&typeof Be.onPostCommitFiberRoot=="function")try{Be.onPostCommitFiberRoot(Ae,m)}catch{}return!0}finally{b.p=f,L.T=s,jy(e,n)}}function My(e,n,i){n=hn(i,n),n=qc(e.stateNode,n,2),e=Ir(e,n,2),e!==null&&(qt(e,2),Gn(e))}function tt(e,n,i){if(e.tag===3)My(e,e,i);else for(;n!==null;){if(n.tag===3){My(n,e,i);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Qr===null||!Qr.has(s))){e=hn(i,e),i=zv(2),s=Ir(n,i,2),s!==null&&(Pv(i,s,n,e),qt(s,2),Gn(s));break}}n=n.return}}function mf(e,n,i){var s=e.pingCache;if(s===null){s=e.pingCache=new vE;var f=new Set;s.set(n,f)}else f=s.get(n),f===void 0&&(f=new Set,s.set(n,f));f.has(i)||(af=!0,f.add(i),e=xE.bind(null,e,n,i),n.then(e,e))}function xE(e,n,i){var s=e.pingCache;s!==null&&s.delete(n),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,rt===e&&(Ge&i)===i&&(mt===4||mt===3&&(Ge&62914560)===Ge&&300>be()-sf?(Fe&2)===0&&yi(e,0):lf|=i,mi===Ge&&(mi=0)),Gn(e)}function Ny(e,n){n===0&&(n=Ze()),e=ei(e,n),e!==null&&(qt(e,n),Gn(e))}function OE(e){var n=e.memoizedState,i=0;n!==null&&(i=n.retryLane),Ny(e,i)}function TE(e,n){var i=0;switch(e.tag){case 13:var s=e.stateNode,f=e.memoizedState;f!==null&&(i=f.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(l(314))}s!==null&&s.delete(n),Ny(e,i)}function EE(e,n){return ge(e,n)}var js=null,Si=null,gf=!1,As=!1,vf=!1,Ma=0;function Gn(e){e!==Si&&e.next===null&&(Si===null?js=Si=e:Si=Si.next=e),As=!0,gf||(gf=!0,RE())}function Rl(e,n){if(!vf&&As){vf=!0;do for(var i=!1,s=js;s!==null;){if(e!==0){var f=s.pendingLanes;if(f===0)var m=0;else{var O=s.suspendedLanes,M=s.pingedLanes;m=(1<<31-dt(42|e)+1)-1,m&=f&~(O&~M),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(i=!0,Py(s,m))}else m=Ge,m=ie(s,s===rt?m:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(m&3)===0||se(s,m)||(i=!0,Py(s,m));s=s.next}while(i);vf=!1}}function CE(){Dy()}function Dy(){As=gf=!1;var e=0;Ma!==0&&(zE()&&(e=Ma),Ma=0);for(var n=be(),i=null,s=js;s!==null;){var f=s.next,m=Ly(s,n);m===0?(s.next=null,i===null?js=f:i.next=f,f===null&&(Si=i)):(i=s,(e!==0||(m&3)!==0)&&(As=!0)),s=f}Rl(e)}function Ly(e,n){for(var i=e.suspendedLanes,s=e.pingedLanes,f=e.expirationTimes,m=e.pendingLanes&-62914561;0<m;){var O=31-dt(m),M=1<<O,Y=f[O];Y===-1?((M&i)===0||(M&s)!==0)&&(f[O]=Ve(M,n)):Y<=n&&(e.expiredLanes|=M),m&=~M}if(n=rt,i=Ge,i=ie(e,e===n?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,i===0||e===n&&(Qe===2||Qe===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Se(s),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||se(e,i)){if(n=i&-i,n===e.callbackPriority)return n;switch(s!==null&&Se(s),Hn(i)){case 2:case 8:i=Ee;break;case 32:i=ke;break;case 268435456:i=ft;break;default:i=ke}return s=zy.bind(null,e),i=ge(i,s),e.callbackPriority=n,e.callbackNode=i,n}return s!==null&&s!==null&&Se(s),e.callbackPriority=2,e.callbackNode=null,2}function zy(e,n){if(Lt!==0&&Lt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(_s()&&e.callbackNode!==i)return null;var s=Ge;return s=ie(e,e===rt?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(vy(e,s,n),Ly(e,be()),e.callbackNode!=null&&e.callbackNode===i?zy.bind(null,e):null)}function Py(e,n){if(_s())return null;vy(e,n,!0)}function RE(){HE(function(){(Fe&6)!==0?ge(Pe,CE):Dy()})}function yf(){return Ma===0&&(Ma=Xe()),Ma}function Hy(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Io(""+e)}function ky(e,n){var i=n.ownerDocument.createElement("input");return i.name=n.name,i.value=n.value,e.id&&i.setAttribute("form",e.id),n.parentNode.insertBefore(i,n),e=new FormData(e),i.parentNode.removeChild(i),e}function _E(e,n,i,s,f){if(n==="submit"&&i&&i.stateNode===f){var m=Hy((f[wt]||null).action),O=s.submitter;O&&(n=(n=O[wt]||null)?Hy(n.formAction):O.getAttribute("formAction"),n!==null&&(m=n,O=null));var M=new Vo("action","action",null,s,f);e.push({event:M,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Ma!==0){var Y=O?ky(f,O):new FormData(f);Hc(i,{pending:!0,data:Y,method:f.method,action:m},null,Y)}}else typeof m=="function"&&(M.preventDefault(),Y=O?ky(f,O):new FormData(f),Hc(i,{pending:!0,data:Y,method:f.method,action:m},m,Y))},currentTarget:f}]})}}for(var bf=0;bf<nc.length;bf++){var Sf=nc[bf],jE=Sf.toLowerCase(),AE=Sf[0].toUpperCase()+Sf.slice(1);Mn(jE,"on"+AE)}Mn(vg,"onAnimationEnd"),Mn(yg,"onAnimationIteration"),Mn(bg,"onAnimationStart"),Mn("dblclick","onDoubleClick"),Mn("focusin","onFocus"),Mn("focusout","onBlur"),Mn(YT,"onTransitionRun"),Mn(XT,"onTransitionStart"),Mn(FT,"onTransitionCancel"),Mn(Sg,"onTransitionEnd"),ir("onMouseEnter",["mouseout","mouseover"]),ir("onMouseLeave",["mouseout","mouseover"]),ir("onPointerEnter",["pointerout","pointerover"]),ir("onPointerLeave",["pointerout","pointerover"]),ar("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ar("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ar("onBeforeInput",["compositionend","keypress","textInput","paste"]),ar("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ar("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ar("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _l="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ME=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_l));function By(e,n){n=(n&4)!==0;for(var i=0;i<e.length;i++){var s=e[i],f=s.event;s=s.listeners;e:{var m=void 0;if(n)for(var O=s.length-1;0<=O;O--){var M=s[O],Y=M.instance,ae=M.currentTarget;if(M=M.listener,Y!==m&&f.isPropagationStopped())break e;m=M,f.currentTarget=ae;try{m(f)}catch(ce){vs(ce)}f.currentTarget=null,m=Y}else for(O=0;O<s.length;O++){if(M=s[O],Y=M.instance,ae=M.currentTarget,M=M.listener,Y!==m&&f.isPropagationStopped())break e;m=M,f.currentTarget=ae;try{m(f)}catch(ce){vs(ce)}f.currentTarget=null,m=Y}}}}function Ue(e,n){var i=n[Dr];i===void 0&&(i=n[Dr]=new Set);var s=e+"__bubble";i.has(s)||($y(n,e,2,!1),i.add(s))}function wf(e,n,i){var s=0;n&&(s|=4),$y(i,e,s,n)}var Ms="_reactListening"+Math.random().toString(36).slice(2);function xf(e){if(!e[Ms]){e[Ms]=!0,rr.forEach(function(i){i!=="selectionchange"&&(ME.has(i)||wf(i,!1,e),wf(i,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Ms]||(n[Ms]=!0,wf("selectionchange",!1,n))}}function $y(e,n,i,s){switch(cb(n)){case 2:var f=aC;break;case 8:f=iC;break;default:f=Pf}i=f.bind(null,n,i,e),f=void 0,!Uu||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),s?f!==void 0?e.addEventListener(n,i,{capture:!0,passive:f}):e.addEventListener(n,i,!0):f!==void 0?e.addEventListener(n,i,{passive:f}):e.addEventListener(n,i,!1)}function Of(e,n,i,s,f){var m=s;if((n&1)===0&&(n&2)===0&&s!==null)e:for(;;){if(s===null)return;var O=s.tag;if(O===3||O===4){var M=s.stateNode.containerInfo;if(M===f)break;if(O===4)for(O=s.return;O!==null;){var Y=O.tag;if((Y===3||Y===4)&&O.stateNode.containerInfo===f)return;O=O.return}for(;M!==null;){if(O=nr(M),O===null)return;if(Y=O.tag,Y===5||Y===6||Y===26||Y===27){s=m=O;continue e}M=M.parentNode}}s=s.return}Ym(function(){var ae=m,ce=Iu(i),de=[];e:{var le=wg.get(e);if(le!==void 0){var oe=Vo,De=e;switch(e){case"keypress":if(Uo(i)===0)break e;case"keydown":case"keyup":oe=ET;break;case"focusin":De="focus",oe=Yu;break;case"focusout":De="blur",oe=Yu;break;case"beforeblur":case"afterblur":oe=Yu;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":oe=Qm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":oe=hT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":oe=_T;break;case vg:case yg:case bg:oe=gT;break;case Sg:oe=AT;break;case"scroll":case"scrollend":oe=fT;break;case"wheel":oe=NT;break;case"copy":case"cut":case"paste":oe=yT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":oe=Km;break;case"toggle":case"beforetoggle":oe=LT}var _e=(n&4)!==0,et=!_e&&(e==="scroll"||e==="scrollend"),ee=_e?le!==null?le+"Capture":null:le;_e=[];for(var K=ae,re;K!==null;){var fe=K;if(re=fe.stateNode,fe=fe.tag,fe!==5&&fe!==26&&fe!==27||re===null||ee===null||(fe=Yi(K,ee),fe!=null&&_e.push(jl(K,fe,re))),et)break;K=K.return}0<_e.length&&(le=new oe(le,De,null,i,ce),de.push({event:le,listeners:_e}))}}if((n&7)===0){e:{if(le=e==="mouseover"||e==="pointerover",oe=e==="mouseout"||e==="pointerout",le&&i!==$u&&(De=i.relatedTarget||i.fromElement)&&(nr(De)||De[kn]))break e;if((oe||le)&&(le=ce.window===ce?ce:(le=ce.ownerDocument)?le.defaultView||le.parentWindow:window,oe?(De=i.relatedTarget||i.toElement,oe=ae,De=De?nr(De):null,De!==null&&(et=u(De),_e=De.tag,De!==et||_e!==5&&_e!==27&&_e!==6)&&(De=null)):(oe=null,De=ae),oe!==De)){if(_e=Qm,fe="onMouseLeave",ee="onMouseEnter",K="mouse",(e==="pointerout"||e==="pointerover")&&(_e=Km,fe="onPointerLeave",ee="onPointerEnter",K="pointer"),et=oe==null?le:zr(oe),re=De==null?le:zr(De),le=new _e(fe,K+"leave",oe,i,ce),le.target=et,le.relatedTarget=re,fe=null,nr(ce)===ae&&(_e=new _e(ee,K+"enter",De,i,ce),_e.target=re,_e.relatedTarget=et,fe=_e),et=fe,oe&&De)t:{for(_e=oe,ee=De,K=0,re=_e;re;re=wi(re))K++;for(re=0,fe=ee;fe;fe=wi(fe))re++;for(;0<K-re;)_e=wi(_e),K--;for(;0<re-K;)ee=wi(ee),re--;for(;K--;){if(_e===ee||ee!==null&&_e===ee.alternate)break t;_e=wi(_e),ee=wi(ee)}_e=null}else _e=null;oe!==null&&Iy(de,le,oe,_e,!1),De!==null&&et!==null&&Iy(de,et,De,_e,!0)}}e:{if(le=ae?zr(ae):window,oe=le.nodeName&&le.nodeName.toLowerCase(),oe==="select"||oe==="input"&&le.type==="file")var xe=lg;else if(ag(le))if(og)xe=GT;else{xe=qT;var Ie=IT}else oe=le.nodeName,!oe||oe.toLowerCase()!=="input"||le.type!=="checkbox"&&le.type!=="radio"?ae&&Bu(ae.elementType)&&(xe=lg):xe=UT;if(xe&&(xe=xe(e,ae))){ig(de,xe,i,ce);break e}Ie&&Ie(e,le,ae),e==="focusout"&&ae&&le.type==="number"&&ae.memoizedProps.value!=null&&ku(le,"number",le.value)}switch(Ie=ae?zr(ae):window,e){case"focusin":(ag(Ie)||Ie.contentEditable==="true")&&(Za=Ie,Ju=ae,tl=null);break;case"focusout":tl=Ju=Za=null;break;case"mousedown":ec=!0;break;case"contextmenu":case"mouseup":case"dragend":ec=!1,mg(de,i,ce);break;case"selectionchange":if(WT)break;case"keydown":case"keyup":mg(de,i,ce)}var Te;if(Fu)e:{switch(e){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else Qa?ng(e,i)&&(Me="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(Me="onCompositionStart");Me&&(Jm&&i.locale!=="ko"&&(Qa||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&Qa&&(Te=Xm()):(Hr=ce,Gu="value"in Hr?Hr.value:Hr.textContent,Qa=!0)),Ie=Ns(ae,Me),0<Ie.length&&(Me=new Zm(Me,e,null,i,ce),de.push({event:Me,listeners:Ie}),Te?Me.data=Te:(Te=rg(i),Te!==null&&(Me.data=Te)))),(Te=PT?HT(e,i):kT(e,i))&&(Me=Ns(ae,"onBeforeInput"),0<Me.length&&(Ie=new Zm("onBeforeInput","beforeinput",null,i,ce),de.push({event:Ie,listeners:Me}),Ie.data=Te)),_E(de,e,ae,i,ce)}By(de,n)})}function jl(e,n,i){return{instance:e,listener:n,currentTarget:i}}function Ns(e,n){for(var i=n+"Capture",s=[];e!==null;){var f=e,m=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||m===null||(f=Yi(e,i),f!=null&&s.unshift(jl(e,f,m)),f=Yi(e,n),f!=null&&s.push(jl(e,f,m))),e.tag===3)return s;e=e.return}return[]}function wi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Iy(e,n,i,s,f){for(var m=n._reactName,O=[];i!==null&&i!==s;){var M=i,Y=M.alternate,ae=M.stateNode;if(M=M.tag,Y!==null&&Y===s)break;M!==5&&M!==26&&M!==27||ae===null||(Y=ae,f?(ae=Yi(i,m),ae!=null&&O.unshift(jl(i,ae,Y))):f||(ae=Yi(i,m),ae!=null&&O.push(jl(i,ae,Y)))),i=i.return}O.length!==0&&e.push({event:n,listeners:O})}var NE=/\r\n?/g,DE=/\u0000|\uFFFD/g;function qy(e){return(typeof e=="string"?e:""+e).replace(NE,`
49
+ `).replace(DE,"")}function Uy(e,n){return n=qy(n),qy(e)===n}function Ds(){}function Je(e,n,i,s,f,m){switch(i){case"children":typeof s=="string"?n==="body"||n==="textarea"&&s===""||Ya(e,s):(typeof s=="number"||typeof s=="bigint")&&n!=="body"&&Ya(e,""+s);break;case"className":ko(e,"class",s);break;case"tabIndex":ko(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":ko(e,i,s);break;case"style":Vm(e,s,m);break;case"data":if(n!=="object"){ko(e,"data",s);break}case"src":case"href":if(s===""&&(n!=="a"||i!=="href")){e.removeAttribute(i);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(i);break}s=Io(""+s),e.setAttribute(i,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(i==="formAction"?(n!=="input"&&Je(e,n,"name",f.name,f,null),Je(e,n,"formEncType",f.formEncType,f,null),Je(e,n,"formMethod",f.formMethod,f,null),Je(e,n,"formTarget",f.formTarget,f,null)):(Je(e,n,"encType",f.encType,f,null),Je(e,n,"method",f.method,f,null),Je(e,n,"target",f.target,f,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(i);break}s=Io(""+s),e.setAttribute(i,s);break;case"onClick":s!=null&&(e.onclick=Ds);break;case"onScroll":s!=null&&Ue("scroll",e);break;case"onScrollEnd":s!=null&&Ue("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(l(61));if(i=s.__html,i!=null){if(f.children!=null)throw Error(l(60));e.innerHTML=i}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}i=Io(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(i,""+s):e.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":s===!0?e.setAttribute(i,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(i,s):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(i,s):e.removeAttribute(i);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(i):e.setAttribute(i,s);break;case"popover":Ue("beforetoggle",e),Ue("toggle",e),Ho(e,"popover",s);break;case"xlinkActuate":lr(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":lr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":lr(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":lr(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":lr(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":lr(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":lr(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":lr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":lr(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Ho(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=uT.get(i)||i,Ho(e,i,s))}}function Tf(e,n,i,s,f,m){switch(i){case"style":Vm(e,s,m);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(l(61));if(i=s.__html,i!=null){if(f.children!=null)throw Error(l(60));e.innerHTML=i}}break;case"children":typeof s=="string"?Ya(e,s):(typeof s=="number"||typeof s=="bigint")&&Ya(e,""+s);break;case"onScroll":s!=null&&Ue("scroll",e);break;case"onScrollEnd":s!=null&&Ue("scrollend",e);break;case"onClick":s!=null&&(e.onclick=Ds);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ma.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(f=i.endsWith("Capture"),n=i.slice(2,f?i.length-7:void 0),m=e[wt]||null,m=m!=null?m[i]:null,typeof m=="function"&&e.removeEventListener(n,m,f),typeof s=="function")){typeof m!="function"&&m!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(n,s,f);break e}i in e?e[i]=s:s===!0?e.setAttribute(i,""):Ho(e,i,s)}}}function zt(e,n,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ue("error",e),Ue("load",e);var s=!1,f=!1,m;for(m in i)if(i.hasOwnProperty(m)){var O=i[m];if(O!=null)switch(m){case"src":s=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:Je(e,n,m,O,i,null)}}f&&Je(e,n,"srcSet",i.srcSet,i,null),s&&Je(e,n,"src",i.src,i,null);return;case"input":Ue("invalid",e);var M=m=O=f=null,Y=null,ae=null;for(s in i)if(i.hasOwnProperty(s)){var ce=i[s];if(ce!=null)switch(s){case"name":f=ce;break;case"type":O=ce;break;case"checked":Y=ce;break;case"defaultChecked":ae=ce;break;case"value":m=ce;break;case"defaultValue":M=ce;break;case"children":case"dangerouslySetInnerHTML":if(ce!=null)throw Error(l(137,n));break;default:Je(e,n,s,ce,i,null)}}Im(e,m,M,Y,ae,O,f,!1),Bo(e);return;case"select":Ue("invalid",e),s=O=m=null;for(f in i)if(i.hasOwnProperty(f)&&(M=i[f],M!=null))switch(f){case"value":m=M;break;case"defaultValue":O=M;break;case"multiple":s=M;default:Je(e,n,f,M,i,null)}n=m,i=O,e.multiple=!!s,n!=null?Wa(e,!!s,n,!1):i!=null&&Wa(e,!!s,i,!0);return;case"textarea":Ue("invalid",e),m=f=s=null;for(O in i)if(i.hasOwnProperty(O)&&(M=i[O],M!=null))switch(O){case"value":s=M;break;case"defaultValue":f=M;break;case"children":m=M;break;case"dangerouslySetInnerHTML":if(M!=null)throw Error(l(91));break;default:Je(e,n,O,M,i,null)}Um(e,s,f,m),Bo(e);return;case"option":for(Y in i)if(i.hasOwnProperty(Y)&&(s=i[Y],s!=null))switch(Y){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Je(e,n,Y,s,i,null)}return;case"dialog":Ue("beforetoggle",e),Ue("toggle",e),Ue("cancel",e),Ue("close",e);break;case"iframe":case"object":Ue("load",e);break;case"video":case"audio":for(s=0;s<_l.length;s++)Ue(_l[s],e);break;case"image":Ue("error",e),Ue("load",e);break;case"details":Ue("toggle",e);break;case"embed":case"source":case"link":Ue("error",e),Ue("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ae in i)if(i.hasOwnProperty(ae)&&(s=i[ae],s!=null))switch(ae){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:Je(e,n,ae,s,i,null)}return;default:if(Bu(n)){for(ce in i)i.hasOwnProperty(ce)&&(s=i[ce],s!==void 0&&Tf(e,n,ce,s,i,void 0));return}}for(M in i)i.hasOwnProperty(M)&&(s=i[M],s!=null&&Je(e,n,M,s,i,null))}function LE(e,n,i,s){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,m=null,O=null,M=null,Y=null,ae=null,ce=null;for(oe in i){var de=i[oe];if(i.hasOwnProperty(oe)&&de!=null)switch(oe){case"checked":break;case"value":break;case"defaultValue":Y=de;default:s.hasOwnProperty(oe)||Je(e,n,oe,null,s,de)}}for(var le in s){var oe=s[le];if(de=i[le],s.hasOwnProperty(le)&&(oe!=null||de!=null))switch(le){case"type":m=oe;break;case"name":f=oe;break;case"checked":ae=oe;break;case"defaultChecked":ce=oe;break;case"value":O=oe;break;case"defaultValue":M=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(l(137,n));break;default:oe!==de&&Je(e,n,le,oe,s,de)}}Hu(e,O,M,Y,ae,ce,m,f);return;case"select":oe=O=M=le=null;for(m in i)if(Y=i[m],i.hasOwnProperty(m)&&Y!=null)switch(m){case"value":break;case"multiple":oe=Y;default:s.hasOwnProperty(m)||Je(e,n,m,null,s,Y)}for(f in s)if(m=s[f],Y=i[f],s.hasOwnProperty(f)&&(m!=null||Y!=null))switch(f){case"value":le=m;break;case"defaultValue":M=m;break;case"multiple":O=m;default:m!==Y&&Je(e,n,f,m,s,Y)}n=M,i=O,s=oe,le!=null?Wa(e,!!i,le,!1):!!s!=!!i&&(n!=null?Wa(e,!!i,n,!0):Wa(e,!!i,i?[]:"",!1));return;case"textarea":oe=le=null;for(M in i)if(f=i[M],i.hasOwnProperty(M)&&f!=null&&!s.hasOwnProperty(M))switch(M){case"value":break;case"children":break;default:Je(e,n,M,null,s,f)}for(O in s)if(f=s[O],m=i[O],s.hasOwnProperty(O)&&(f!=null||m!=null))switch(O){case"value":le=f;break;case"defaultValue":oe=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(l(91));break;default:f!==m&&Je(e,n,O,f,s,m)}qm(e,le,oe);return;case"option":for(var De in i)if(le=i[De],i.hasOwnProperty(De)&&le!=null&&!s.hasOwnProperty(De))switch(De){case"selected":e.selected=!1;break;default:Je(e,n,De,null,s,le)}for(Y in s)if(le=s[Y],oe=i[Y],s.hasOwnProperty(Y)&&le!==oe&&(le!=null||oe!=null))switch(Y){case"selected":e.selected=le&&typeof le!="function"&&typeof le!="symbol";break;default:Je(e,n,Y,le,s,oe)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var _e in i)le=i[_e],i.hasOwnProperty(_e)&&le!=null&&!s.hasOwnProperty(_e)&&Je(e,n,_e,null,s,le);for(ae in s)if(le=s[ae],oe=i[ae],s.hasOwnProperty(ae)&&le!==oe&&(le!=null||oe!=null))switch(ae){case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(l(137,n));break;default:Je(e,n,ae,le,s,oe)}return;default:if(Bu(n)){for(var et in i)le=i[et],i.hasOwnProperty(et)&&le!==void 0&&!s.hasOwnProperty(et)&&Tf(e,n,et,void 0,s,le);for(ce in s)le=s[ce],oe=i[ce],!s.hasOwnProperty(ce)||le===oe||le===void 0&&oe===void 0||Tf(e,n,ce,le,s,oe);return}}for(var ee in i)le=i[ee],i.hasOwnProperty(ee)&&le!=null&&!s.hasOwnProperty(ee)&&Je(e,n,ee,null,s,le);for(de in s)le=s[de],oe=i[de],!s.hasOwnProperty(de)||le===oe||le==null&&oe==null||Je(e,n,de,le,s,oe)}var Ef=null,Cf=null;function Ls(e){return e.nodeType===9?e:e.ownerDocument}function Gy(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Vy(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function Rf(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var _f=null;function zE(){var e=window.event;return e&&e.type==="popstate"?e===_f?!1:(_f=e,!0):(_f=null,!1)}var Wy=typeof setTimeout=="function"?setTimeout:void 0,PE=typeof clearTimeout=="function"?clearTimeout:void 0,Yy=typeof Promise=="function"?Promise:void 0,HE=typeof queueMicrotask=="function"?queueMicrotask:typeof Yy<"u"?function(e){return Yy.resolve(null).then(e).catch(kE)}:Wy;function kE(e){setTimeout(function(){throw e})}function Jr(e){return e==="head"}function Xy(e,n){var i=n,s=0,f=0;do{var m=i.nextSibling;if(e.removeChild(i),m&&m.nodeType===8)if(i=m.data,i==="/$"){if(0<s&&8>s){i=s;var O=e.ownerDocument;if(i&1&&Al(O.documentElement),i&2&&Al(O.body),i&4)for(i=O.head,Al(i),O=i.firstChild;O;){var M=O.nextSibling,Y=O.nodeName;O[Lr]||Y==="SCRIPT"||Y==="STYLE"||Y==="LINK"&&O.rel.toLowerCase()==="stylesheet"||i.removeChild(O),O=M}}if(f===0){e.removeChild(m),kl(n);return}f--}else i==="$"||i==="$?"||i==="$!"?f++:s=i.charCodeAt(0)-48;else s=0;i=m}while(i);kl(n)}function jf(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var i=n;switch(n=n.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":jf(i),pa(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function BE(e,n,i,s){for(;e.nodeType===1;){var f=i;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[Lr])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(m=e.getAttribute("rel"),m==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(m!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(m=e.getAttribute("src"),(m!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&m&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var m=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===m)return e}else return e;if(e=Dn(e.nextSibling),e===null)break}return null}function $E(e,n,i){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=Dn(e.nextSibling),e===null))return null;return e}function Af(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function IE(e,n){var i=e.ownerDocument;if(e.data!=="$?"||i.readyState==="complete")n();else{var s=function(){n(),i.removeEventListener("DOMContentLoaded",s)};i.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function Dn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="F!"||n==="F")break;if(n==="/$")return null}}return e}var Mf=null;function Fy(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"){if(n===0)return e;n--}else i==="/$"&&n++}e=e.previousSibling}return null}function Qy(e,n,i){switch(n=Ls(i),e){case"html":if(e=n.documentElement,!e)throw Error(l(452));return e;case"head":if(e=n.head,!e)throw Error(l(453));return e;case"body":if(e=n.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function Al(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);pa(e)}var bn=new Map,Zy=new Set;function zs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Sr=b.d;b.d={f:qE,r:UE,D:GE,C:VE,L:WE,m:YE,X:FE,S:XE,M:QE};function qE(){var e=Sr.f(),n=Cs();return e||n}function UE(e){var n=Bn(e);n!==null&&n.tag===5&&n.type==="form"?vv(n):Sr.r(e)}var xi=typeof document>"u"?null:document;function Ky(e,n,i){var s=xi;if(s&&typeof n=="string"&&n){var f=dn(n);f='link[rel="'+e+'"][href="'+f+'"]',typeof i=="string"&&(f+='[crossorigin="'+i+'"]'),Zy.has(f)||(Zy.add(f),e={rel:e,crossOrigin:i,href:n},s.querySelector(f)===null&&(n=s.createElement("link"),zt(n,"link",e),ht(n),s.head.appendChild(n)))}}function GE(e){Sr.D(e),Ky("dns-prefetch",e,null)}function VE(e,n){Sr.C(e,n),Ky("preconnect",e,n)}function WE(e,n,i){Sr.L(e,n,i);var s=xi;if(s&&e&&n){var f='link[rel="preload"][as="'+dn(n)+'"]';n==="image"&&i&&i.imageSrcSet?(f+='[imagesrcset="'+dn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(f+='[imagesizes="'+dn(i.imageSizes)+'"]')):f+='[href="'+dn(e)+'"]';var m=f;switch(n){case"style":m=Oi(e);break;case"script":m=Ti(e)}bn.has(m)||(e=g({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:e,as:n},i),bn.set(m,e),s.querySelector(f)!==null||n==="style"&&s.querySelector(Ml(m))||n==="script"&&s.querySelector(Nl(m))||(n=s.createElement("link"),zt(n,"link",e),ht(n),s.head.appendChild(n)))}}function YE(e,n){Sr.m(e,n);var i=xi;if(i&&e){var s=n&&typeof n.as=="string"?n.as:"script",f='link[rel="modulepreload"][as="'+dn(s)+'"][href="'+dn(e)+'"]',m=f;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=Ti(e)}if(!bn.has(m)&&(e=g({rel:"modulepreload",href:e},n),bn.set(m,e),i.querySelector(f)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Nl(m)))return}s=i.createElement("link"),zt(s,"link",e),ht(s),i.head.appendChild(s)}}}function XE(e,n,i){Sr.S(e,n,i);var s=xi;if(s&&e){var f=Pr(s).hoistableStyles,m=Oi(e);n=n||"default";var O=f.get(m);if(!O){var M={loading:0,preload:null};if(O=s.querySelector(Ml(m)))M.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":n},i),(i=bn.get(m))&&Nf(e,i);var Y=O=s.createElement("link");ht(Y),zt(Y,"link",e),Y._p=new Promise(function(ae,ce){Y.onload=ae,Y.onerror=ce}),Y.addEventListener("load",function(){M.loading|=1}),Y.addEventListener("error",function(){M.loading|=2}),M.loading|=4,Ps(O,n,s)}O={type:"stylesheet",instance:O,count:1,state:M},f.set(m,O)}}}function FE(e,n){Sr.X(e,n);var i=xi;if(i&&e){var s=Pr(i).hoistableScripts,f=Ti(e),m=s.get(f);m||(m=i.querySelector(Nl(f)),m||(e=g({src:e,async:!0},n),(n=bn.get(f))&&Df(e,n),m=i.createElement("script"),ht(m),zt(m,"link",e),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},s.set(f,m))}}function QE(e,n){Sr.M(e,n);var i=xi;if(i&&e){var s=Pr(i).hoistableScripts,f=Ti(e),m=s.get(f);m||(m=i.querySelector(Nl(f)),m||(e=g({src:e,async:!0,type:"module"},n),(n=bn.get(f))&&Df(e,n),m=i.createElement("script"),ht(m),zt(m,"link",e),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},s.set(f,m))}}function Jy(e,n,i,s){var f=(f=V.current)?zs(f):null;if(!f)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=Oi(i.href),i=Pr(f).hoistableStyles,s=i.get(n),s||(s={type:"style",instance:null,count:0,state:null},i.set(n,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=Oi(i.href);var m=Pr(f).hoistableStyles,O=m.get(e);if(O||(f=f.ownerDocument||f,O={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(e,O),(m=f.querySelector(Ml(e)))&&!m._p&&(O.instance=m,O.state.loading=5),bn.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},bn.set(e,i),m||ZE(f,e,i,O.state))),n&&s===null)throw Error(l(528,""));return O}if(n&&s!==null)throw Error(l(529,""));return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Ti(i),i=Pr(f).hoistableScripts,s=i.get(n),s||(s={type:"script",instance:null,count:0,state:null},i.set(n,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function Oi(e){return'href="'+dn(e)+'"'}function Ml(e){return'link[rel="stylesheet"]['+e+"]"}function eb(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function ZE(e,n,i,s){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?s.loading=1:(n=e.createElement("link"),s.preload=n,n.addEventListener("load",function(){return s.loading|=1}),n.addEventListener("error",function(){return s.loading|=2}),zt(n,"link",i),ht(n),e.head.appendChild(n))}function Ti(e){return'[src="'+dn(e)+'"]'}function Nl(e){return"script[async]"+e}function tb(e,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var s=e.querySelector('style[data-href~="'+dn(i.href)+'"]');if(s)return n.instance=s,ht(s),s;var f=g({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),ht(s),zt(s,"style",f),Ps(s,i.precedence,e),n.instance=s;case"stylesheet":f=Oi(i.href);var m=e.querySelector(Ml(f));if(m)return n.state.loading|=4,n.instance=m,ht(m),m;s=eb(i),(f=bn.get(f))&&Nf(s,f),m=(e.ownerDocument||e).createElement("link"),ht(m);var O=m;return O._p=new Promise(function(M,Y){O.onload=M,O.onerror=Y}),zt(m,"link",s),n.state.loading|=4,Ps(m,i.precedence,e),n.instance=m;case"script":return m=Ti(i.src),(f=e.querySelector(Nl(m)))?(n.instance=f,ht(f),f):(s=i,(f=bn.get(m))&&(s=g({},i),Df(s,f)),e=e.ownerDocument||e,f=e.createElement("script"),ht(f),zt(f,"link",s),e.head.appendChild(f),n.instance=f);case"void":return null;default:throw Error(l(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(s=n.instance,n.state.loading|=4,Ps(s,i.precedence,e));return n.instance}function Ps(e,n,i){for(var s=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=s.length?s[s.length-1]:null,m=f,O=0;O<s.length;O++){var M=s[O];if(M.dataset.precedence===n)m=M;else if(m!==f)break}m?m.parentNode.insertBefore(e,m.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(e,n.firstChild))}function Nf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function Df(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Hs=null;function nb(e,n,i){if(Hs===null){var s=new Map,f=Hs=new Map;f.set(i,s)}else f=Hs,s=f.get(i),s||(s=new Map,f.set(i,s));if(s.has(e))return s;for(s.set(e,null),i=i.getElementsByTagName(e),f=0;f<i.length;f++){var m=i[f];if(!(m[Lr]||m[Tt]||e==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var O=m.getAttribute(n)||"";O=e+O;var M=s.get(O);M?M.push(m):s.set(O,[m])}}return s}function rb(e,n,i){e=e.ownerDocument||e,e.head.insertBefore(i,n==="title"?e.querySelector("head > title"):null)}function KE(e,n,i){if(i===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function ab(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Dl=null;function JE(){}function eC(e,n,i){if(Dl===null)throw Error(l(475));var s=Dl;if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var f=Oi(i.href),m=e.querySelector(Ml(f));if(m){e=m._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(s.count++,s=ks.bind(s),e.then(s,s)),n.state.loading|=4,n.instance=m,ht(m);return}m=e.ownerDocument||e,i=eb(i),(f=bn.get(f))&&Nf(i,f),m=m.createElement("link"),ht(m);var O=m;O._p=new Promise(function(M,Y){O.onload=M,O.onerror=Y}),zt(m,"link",i),n.instance=m}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(s.count++,n=ks.bind(s),e.addEventListener("load",n),e.addEventListener("error",n))}}function tC(){if(Dl===null)throw Error(l(475));var e=Dl;return e.stylesheets&&e.count===0&&Lf(e,e.stylesheets),0<e.count?function(n){var i=setTimeout(function(){if(e.stylesheets&&Lf(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i)}}:null}function ks(){if(this.count--,this.count===0){if(this.stylesheets)Lf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Bs=null;function Lf(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Bs=new Map,n.forEach(nC,e),Bs=null,ks.call(e))}function nC(e,n){if(!(n.state.loading&4)){var i=Bs.get(e);if(i)var s=i.get(null);else{i=new Map,Bs.set(e,i);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<f.length;m++){var O=f[m];(O.nodeName==="LINK"||O.getAttribute("media")!=="not all")&&(i.set(O.dataset.precedence,O),s=O)}s&&i.set(null,s)}f=n.instance,O=f.getAttribute("data-precedence"),m=i.get(O)||s,m===s&&i.set(null,f),i.set(O,f),this.count++,s=ks.bind(this),f.addEventListener("load",s),f.addEventListener("error",s),m?m.parentNode.insertBefore(f,m.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),n.state.loading|=4}}var Ll={$$typeof:k,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function rC(e,n,i,s,f,m,O,M){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ze(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ze(0),this.hiddenUpdates=ze(null),this.identifierPrefix=s,this.onUncaughtError=f,this.onCaughtError=m,this.onRecoverableError=O,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function ib(e,n,i,s,f,m,O,M,Y,ae,ce,de){return e=new rC(e,n,i,O,M,Y,ae,de),n=1,m===!0&&(n|=24),m=en(3,null,null,n),e.current=m,m.stateNode=e,n=pc(),n.refCount++,e.pooledCache=n,n.refCount++,m.memoizedState={element:s,isDehydrated:i,cache:n},yc(m),e}function lb(e){return e?(e=ti,e):ti}function ob(e,n,i,s,f,m){f=lb(f),s.context===null?s.context=f:s.pendingContext=f,s=$r(n),s.payload={element:i},m=m===void 0?null:m,m!==null&&(s.callback=m),i=Ir(e,s,n),i!==null&&(ln(i,e,n),cl(i,e,n))}function sb(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<n?i:n}}function zf(e,n){sb(e,n),(e=e.alternate)&&sb(e,n)}function ub(e){if(e.tag===13){var n=ei(e,67108864);n!==null&&ln(n,e,67108864),zf(e,67108864)}}var $s=!0;function aC(e,n,i,s){var f=L.T;L.T=null;var m=b.p;try{b.p=2,Pf(e,n,i,s)}finally{b.p=m,L.T=f}}function iC(e,n,i,s){var f=L.T;L.T=null;var m=b.p;try{b.p=8,Pf(e,n,i,s)}finally{b.p=m,L.T=f}}function Pf(e,n,i,s){if($s){var f=Hf(s);if(f===null)Of(e,n,s,Is,i),fb(e,s);else if(oC(f,e,n,i,s))s.stopPropagation();else if(fb(e,s),n&4&&-1<lC.indexOf(e)){for(;f!==null;){var m=Bn(f);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var O=cn(m.pendingLanes);if(O!==0){var M=m;for(M.pendingLanes|=2,M.entangledLanes|=2;O;){var Y=1<<31-dt(O);M.entanglements[1]|=Y,O&=~Y}Gn(m),(Fe&6)===0&&(Ts=be()+500,Rl(0))}}break;case 13:M=ei(m,2),M!==null&&ln(M,m,2),Cs(),zf(m,2)}if(m=Hf(s),m===null&&Of(e,n,s,Is,i),m===f)break;f=m}f!==null&&s.stopPropagation()}else Of(e,n,s,null,i)}}function Hf(e){return e=Iu(e),kf(e)}var Is=null;function kf(e){if(Is=null,e=nr(e),e!==null){var n=u(e);if(n===null)e=null;else{var i=n.tag;if(i===13){if(e=c(n),e!==null)return e;e=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return Is=e,null}function cb(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Le()){case Pe:return 2;case Ee:return 8;case ke:case ot:return 32;case ft:return 268435456;default:return 32}default:return 32}}var Bf=!1,ea=null,ta=null,na=null,zl=new Map,Pl=new Map,ra=[],lC="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function fb(e,n){switch(e){case"focusin":case"focusout":ea=null;break;case"dragenter":case"dragleave":ta=null;break;case"mouseover":case"mouseout":na=null;break;case"pointerover":case"pointerout":zl.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pl.delete(n.pointerId)}}function Hl(e,n,i,s,f,m){return e===null||e.nativeEvent!==m?(e={blockedOn:n,domEventName:i,eventSystemFlags:s,nativeEvent:m,targetContainers:[f]},n!==null&&(n=Bn(n),n!==null&&ub(n)),e):(e.eventSystemFlags|=s,n=e.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),e)}function oC(e,n,i,s,f){switch(n){case"focusin":return ea=Hl(ea,e,n,i,s,f),!0;case"dragenter":return ta=Hl(ta,e,n,i,s,f),!0;case"mouseover":return na=Hl(na,e,n,i,s,f),!0;case"pointerover":var m=f.pointerId;return zl.set(m,Hl(zl.get(m)||null,e,n,i,s,f)),!0;case"gotpointercapture":return m=f.pointerId,Pl.set(m,Hl(Pl.get(m)||null,e,n,i,s,f)),!0}return!1}function db(e){var n=nr(e.target);if(n!==null){var i=u(n);if(i!==null){if(n=i.tag,n===13){if(n=c(i),n!==null){e.blockedOn=n,Po(e.priority,function(){if(i.tag===13){var s=an();s=ha(s);var f=ei(i,s);f!==null&&ln(f,i,s),zf(i,s)}});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function qs(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var i=Hf(e.nativeEvent);if(i===null){i=e.nativeEvent;var s=new i.constructor(i.type,i);$u=s,i.target.dispatchEvent(s),$u=null}else return n=Bn(i),n!==null&&ub(n),e.blockedOn=i,!1;n.shift()}return!0}function hb(e,n,i){qs(e)&&i.delete(n)}function sC(){Bf=!1,ea!==null&&qs(ea)&&(ea=null),ta!==null&&qs(ta)&&(ta=null),na!==null&&qs(na)&&(na=null),zl.forEach(hb),Pl.forEach(hb)}function Us(e,n){e.blockedOn===n&&(e.blockedOn=null,Bf||(Bf=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,sC)))}var Gs=null;function pb(e){Gs!==e&&(Gs=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){Gs===e&&(Gs=null);for(var n=0;n<e.length;n+=3){var i=e[n],s=e[n+1],f=e[n+2];if(typeof s!="function"){if(kf(s||i)===null)continue;break}var m=Bn(i);m!==null&&(e.splice(n,3),n-=3,Hc(m,{pending:!0,data:f,method:i.method,action:s},s,f))}}))}function kl(e){function n(Y){return Us(Y,e)}ea!==null&&Us(ea,e),ta!==null&&Us(ta,e),na!==null&&Us(na,e),zl.forEach(n),Pl.forEach(n);for(var i=0;i<ra.length;i++){var s=ra[i];s.blockedOn===e&&(s.blockedOn=null)}for(;0<ra.length&&(i=ra[0],i.blockedOn===null);)db(i),i.blockedOn===null&&ra.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(s=0;s<i.length;s+=3){var f=i[s],m=i[s+1],O=f[wt]||null;if(typeof m=="function")O||pb(i);else if(O){var M=null;if(m&&m.hasAttribute("formAction")){if(f=m,O=m[wt]||null)M=O.formAction;else if(kf(f)!==null)continue}else M=O.action;typeof M=="function"?i[s+1]=M:(i.splice(s,3),s-=3),pb(i)}}}function $f(e){this._internalRoot=e}Vs.prototype.render=$f.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(l(409));var i=n.current,s=an();ob(i,s,e,n,null,null)},Vs.prototype.unmount=$f.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;ob(e.current,2,null,e,null,null),Cs(),n[kn]=null}};function Vs(e){this._internalRoot=e}Vs.prototype.unstable_scheduleHydration=function(e){if(e){var n=Ut();e={blockedOn:null,target:e,priority:n};for(var i=0;i<ra.length&&n!==0&&n<ra[i].priority;i++);ra.splice(i,0,e),i===0&&db(e)}};var mb=t.version;if(mb!=="19.1.0")throw Error(l(527,mb,"19.1.0"));b.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=h(n),e=e!==null?p(e):null,e=e===null?null:e.stateNode,e};var uC={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ws=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ws.isDisabled&&Ws.supportsFiber)try{Ae=Ws.inject(uC),Be=Ws}catch{}}return $l.createRoot=function(e,n){if(!o(e))throw Error(l(299));var i=!1,s="",f=Mv,m=Nv,O=Dv,M=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(O=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(M=n.unstable_transitionCallbacks)),n=ib(e,1,!1,null,null,i,s,f,m,O,M,null),e[kn]=n.current,xf(e),new $f(n)},$l.hydrateRoot=function(e,n,i){if(!o(e))throw Error(l(299));var s=!1,f="",m=Mv,O=Nv,M=Dv,Y=null,ae=null;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(m=i.onUncaughtError),i.onCaughtError!==void 0&&(O=i.onCaughtError),i.onRecoverableError!==void 0&&(M=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(Y=i.unstable_transitionCallbacks),i.formState!==void 0&&(ae=i.formState)),n=ib(e,1,!0,n,i??null,s,f,m,O,M,Y,ae),n.context=lb(null),i=n.current,s=an(),s=ha(s),f=$r(s),f.callback=null,Ir(i,f,s),i=s,n.current.lanes=i,qt(n,i),Gn(n),e[kn]=n.current,xf(e),new Vs(n)},$l.version="19.1.0",$l}var Cb;function yC(){if(Cb)return Uf.exports;Cb=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(t){console.error(t)}}return r(),Uf.exports=vC(),Uf.exports}var bC=yC();const SC=Jn(bC);var w=Cn();const Ft=Jn(w);/**
50
+ * react-router v7.12.0
51
+ *
52
+ * Copyright (c) Remix Software Inc.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE.md file in the root directory of this source tree.
56
+ *
57
+ * @license MIT
58
+ */var Gp=(r=>(r.Pop="POP",r.Push="PUSH",r.Replace="REPLACE",r))(Gp||{}),Rb="popstate";function wC(r={}){function t(l,o){let{pathname:u,search:c,hash:d}=l.location;return xp("",{pathname:u,search:c,hash:d},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function a(l,o){return typeof o=="string"?o:io(o)}return OC(t,a,null,r)}function ct(r,t){if(r===!1||r===null||typeof r>"u")throw new Error(t)}function xn(r,t){if(!r){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function xC(){return Math.random().toString(36).substring(2,10)}function _b(r,t){return{usr:r.state,key:r.key,idx:t}}function xp(r,t,a=null,l){return{pathname:typeof r=="string"?r:r.pathname,search:"",hash:"",...typeof t=="string"?Di(t):t,state:a,key:t&&t.key||l||xC()}}function io({pathname:r="/",search:t="",hash:a=""}){return t&&t!=="?"&&(r+=t.charAt(0)==="?"?t:"?"+t),a&&a!=="#"&&(r+=a.charAt(0)==="#"?a:"#"+a),r}function Di(r){let t={};if(r){let a=r.indexOf("#");a>=0&&(t.hash=r.substring(a),r=r.substring(0,a));let l=r.indexOf("?");l>=0&&(t.search=r.substring(l),r=r.substring(0,l)),r&&(t.pathname=r)}return t}function OC(r,t,a,l={}){let{window:o=document.defaultView,v5Compat:u=!1}=l,c=o.history,d="POP",h=null,p=g();p==null&&(p=0,c.replaceState({...c.state,idx:p},""));function g(){return(c.state||{idx:null}).idx}function v(){d="POP";let z=g(),H=z==null?null:z-p;p=z,h&&h({action:d,location:_.location,delta:H})}function x(z,H){d="PUSH";let G=xp(_.location,z,H);p=g()+1;let k=_b(G,p),Z=_.createHref(G);try{c.pushState(k,"",Z)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;o.location.assign(Z)}u&&h&&h({action:d,location:_.location,delta:1})}function E(z,H){d="REPLACE";let G=xp(_.location,z,H);p=g();let k=_b(G,p),Z=_.createHref(G);c.replaceState(k,"",Z),u&&h&&h({action:d,location:_.location,delta:0})}function N(z){return TC(z)}let _={get action(){return d},get location(){return r(o,c)},listen(z){if(h)throw new Error("A history only accepts one active listener");return o.addEventListener(Rb,v),h=z,()=>{o.removeEventListener(Rb,v),h=null}},createHref(z){return t(o,z)},createURL:N,encodeLocation(z){let H=N(z);return{pathname:H.pathname,search:H.search,hash:H.hash}},push:x,replace:E,go(z){return c.go(z)}};return _}function TC(r,t=!1){let a="http://localhost";typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),ct(a,"No window.location.(origin|href) available to create URL");let l=typeof r=="string"?r:io(r);return l=l.replace(/ $/,"%20"),!t&&l.startsWith("//")&&(l=a+l),new URL(l,a)}function Q1(r,t,a="/"){return EC(r,t,a,!1)}function EC(r,t,a,l){let o=typeof t=="string"?Di(t):t,u=Cr(o.pathname||"/",a);if(u==null)return null;let c=Z1(r);CC(c);let d=null;for(let h=0;d==null&&h<c.length;++h){let p=HC(u);d=zC(c[h],p,l)}return d}function Z1(r,t=[],a=[],l="",o=!1){let u=(c,d,h=o,p)=>{let g={relativePath:p===void 0?c.path||"":p,caseSensitive:c.caseSensitive===!0,childrenIndex:d,route:c};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(l)&&h)return;ct(g.relativePath.startsWith(l),`Absolute route path "${g.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(l.length)}let v=Tr([l,g.relativePath]),x=a.concat(g);c.children&&c.children.length>0&&(ct(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),Z1(c.children,t,x,v,h)),!(c.path==null&&!c.index)&&t.push({path:v,score:DC(v,c.index),routesMeta:x})};return r.forEach((c,d)=>{var h;if(c.path===""||!((h=c.path)!=null&&h.includes("?")))u(c,d);else for(let p of K1(c.path))u(c,d,!0,p)}),t}function K1(r){let t=r.split("/");if(t.length===0)return[];let[a,...l]=t,o=a.endsWith("?"),u=a.replace(/\?$/,"");if(l.length===0)return o?[u,""]:[u];let c=K1(l.join("/")),d=[];return d.push(...c.map(h=>h===""?u:[u,h].join("/"))),o&&d.push(...c),d.map(h=>r.startsWith("/")&&h===""?"/":h)}function CC(r){r.sort((t,a)=>t.score!==a.score?a.score-t.score:LC(t.routesMeta.map(l=>l.childrenIndex),a.routesMeta.map(l=>l.childrenIndex)))}var RC=/^:[\w-]+$/,_C=3,jC=2,AC=1,MC=10,NC=-2,jb=r=>r==="*";function DC(r,t){let a=r.split("/"),l=a.length;return a.some(jb)&&(l+=NC),t&&(l+=jC),a.filter(o=>!jb(o)).reduce((o,u)=>o+(RC.test(u)?_C:u===""?AC:MC),l)}function LC(r,t){return r.length===t.length&&r.slice(0,-1).every((l,o)=>l===t[o])?r[r.length-1]-t[t.length-1]:0}function zC(r,t,a=!1){let{routesMeta:l}=r,o={},u="/",c=[];for(let d=0;d<l.length;++d){let h=l[d],p=d===l.length-1,g=u==="/"?t:t.slice(u.length)||"/",v=lu({path:h.relativePath,caseSensitive:h.caseSensitive,end:p},g),x=h.route;if(!v&&p&&a&&!l[l.length-1].route.index&&(v=lu({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},g)),!v)return null;Object.assign(o,v.params),c.push({params:o,pathname:Tr([u,v.pathname]),pathnameBase:IC(Tr([u,v.pathnameBase])),route:x}),v.pathnameBase!=="/"&&(u=Tr([u,v.pathnameBase]))}return c}function lu(r,t){typeof r=="string"&&(r={path:r,caseSensitive:!1,end:!0});let[a,l]=PC(r.path,r.caseSensitive,r.end),o=t.match(a);if(!o)return null;let u=o[0],c=u.replace(/(.)\/+$/,"$1"),d=o.slice(1);return{params:l.reduce((p,{paramName:g,isOptional:v},x)=>{if(g==="*"){let N=d[x]||"";c=u.slice(0,u.length-N.length).replace(/(.)\/+$/,"$1")}const E=d[x];return v&&!E?p[g]=void 0:p[g]=(E||"").replace(/%2F/g,"/"),p},{}),pathname:u,pathnameBase:c,pattern:r}}function PC(r,t=!1,a=!0){xn(r==="*"||!r.endsWith("*")||r.endsWith("/*"),`Route path "${r}" will be treated as if it were "${r.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${r.replace(/\*$/,"/*")}".`);let l=[],o="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,h)=>(l.push({paramName:d,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return r.endsWith("*")?(l.push({paramName:"*"}),o+=r==="*"||r==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?o+="\\/*$":r!==""&&r!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),l]}function HC(r){try{return r.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return xn(!1,`The URL path "${r}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),r}}function Cr(r,t){if(t==="/")return r;if(!r.toLowerCase().startsWith(t.toLowerCase()))return null;let a=t.endsWith("/")?t.length-1:t.length,l=r.charAt(a);return l&&l!=="/"?null:r.slice(a)||"/"}var J1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kC=r=>J1.test(r);function BC(r,t="/"){let{pathname:a,search:l="",hash:o=""}=typeof r=="string"?Di(r):r,u;if(a)if(kC(a))u=a;else{if(a.includes("//")){let c=a;a=a.replace(/\/\/+/g,"/"),xn(!1,`Pathnames cannot have embedded double slashes - normalizing ${c} -> ${a}`)}a.startsWith("/")?u=Ab(a.substring(1),"/"):u=Ab(a,t)}else u=t;return{pathname:u,search:qC(l),hash:UC(o)}}function Ab(r,t){let a=t.replace(/\/+$/,"").split("/");return r.split("/").forEach(o=>{o===".."?a.length>1&&a.pop():o!=="."&&a.push(o)}),a.length>1?a.join("/"):"/"}function Xf(r,t,a,l){return`Cannot include a '${r}' character in a manually specified \`to.${t}\` field [${JSON.stringify(l)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function $C(r){return r.filter((t,a)=>a===0||t.route.path&&t.route.path.length>0)}function ew(r){let t=$C(r);return t.map((a,l)=>l===t.length-1?a.pathname:a.pathnameBase)}function tw(r,t,a,l=!1){let o;typeof r=="string"?o=Di(r):(o={...r},ct(!o.pathname||!o.pathname.includes("?"),Xf("?","pathname","search",o)),ct(!o.pathname||!o.pathname.includes("#"),Xf("#","pathname","hash",o)),ct(!o.search||!o.search.includes("#"),Xf("#","search","hash",o)));let u=r===""||o.pathname==="",c=u?"/":o.pathname,d;if(c==null)d=a;else{let v=t.length-1;if(!l&&c.startsWith("..")){let x=c.split("/");for(;x[0]==="..";)x.shift(),v-=1;o.pathname=x.join("/")}d=v>=0?t[v]:"/"}let h=BC(o,d),p=c&&c!=="/"&&c.endsWith("/"),g=(u||c===".")&&a.endsWith("/");return!h.pathname.endsWith("/")&&(p||g)&&(h.pathname+="/"),h}var Tr=r=>r.join("/").replace(/\/\/+/g,"/"),IC=r=>r.replace(/\/+$/,"").replace(/^\/*/,"/"),qC=r=>!r||r==="?"?"":r.startsWith("?")?r:"?"+r,UC=r=>!r||r==="#"?"":r.startsWith("#")?r:"#"+r,GC=class{constructor(r,t,a,l=!1){this.status=r,this.statusText=t||"",this.internal=l,a instanceof Error?(this.data=a.toString(),this.error=a):this.data=a}};function VC(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.internal=="boolean"&&"data"in r}function WC(r){return r.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var nw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function rw(r,t){let a=r;if(typeof a!="string"||!J1.test(a))return{absoluteURL:void 0,isExternal:!1,to:a};let l=a,o=!1;if(nw)try{let u=new URL(window.location.href),c=a.startsWith("//")?new URL(u.protocol+a):new URL(a),d=Cr(c.pathname,t);c.origin===u.origin&&d!=null?a=d+c.search+c.hash:o=!0}catch{xn(!1,`<Link to="${a}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:l,isExternal:o,to:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var aw=["POST","PUT","PATCH","DELETE"];new Set(aw);var YC=["GET",...aw];new Set(YC);var Li=w.createContext(null);Li.displayName="DataRouter";var yu=w.createContext(null);yu.displayName="DataRouterState";var XC=w.createContext(!1),iw=w.createContext({isTransitioning:!1});iw.displayName="ViewTransition";var FC=w.createContext(new Map);FC.displayName="Fetchers";var QC=w.createContext(null);QC.displayName="Await";var Rn=w.createContext(null);Rn.displayName="Navigation";var zi=w.createContext(null);zi.displayName="Location";var zn=w.createContext({outlet:null,matches:[],isDataRoute:!1});zn.displayName="Route";var Vp=w.createContext(null);Vp.displayName="RouteError";var lw="REACT_ROUTER_ERROR",ZC="REDIRECT",KC="ROUTE_ERROR_RESPONSE";function JC(r){if(r.startsWith(`${lw}:${ZC}:{`))try{let t=JSON.parse(r.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function e2(r){if(r.startsWith(`${lw}:${KC}:{`))try{let t=JSON.parse(r.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new GC(t.status,t.statusText,t.data)}catch{}}function t2(r,{relative:t}={}){ct(wo(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:l}=w.useContext(Rn),{hash:o,pathname:u,search:c}=xo(r,{relative:t}),d=u;return a!=="/"&&(d=u==="/"?a:Tr([a,u])),l.createHref({pathname:d,search:c,hash:o})}function wo(){return w.useContext(zi)!=null}function er(){return ct(wo(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(zi).location}function ow(){return w.useContext(zi).navigationType}var sw="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function uw(r){w.useContext(Rn).static||w.useLayoutEffect(r)}function Wp(){let{isDataRoute:r}=w.useContext(zn);return r?g2():n2()}function n2(){ct(wo(),"useNavigate() may be used only in the context of a <Router> component.");let r=w.useContext(Li),{basename:t,navigator:a}=w.useContext(Rn),{matches:l}=w.useContext(zn),{pathname:o}=er(),u=JSON.stringify(ew(l)),c=w.useRef(!1);return uw(()=>{c.current=!0}),w.useCallback((h,p={})=>{if(xn(c.current,sw),!c.current)return;if(typeof h=="number"){a.go(h);return}let g=tw(h,JSON.parse(u),o,p.relative==="path");r==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:Tr([t,g.pathname])),(p.replace?a.replace:a.push)(g,p.state,p)},[t,a,u,o,r])}var r2=w.createContext(null);function a2(r){let t=w.useContext(zn).outlet;return w.useMemo(()=>t&&w.createElement(r2.Provider,{value:r},t),[t,r])}function jr(){let{matches:r}=w.useContext(zn),t=r[r.length-1];return t?t.params:{}}function xo(r,{relative:t}={}){let{matches:a}=w.useContext(zn),{pathname:l}=er(),o=JSON.stringify(ew(a));return w.useMemo(()=>tw(r,JSON.parse(o),l,t==="path"),[r,o,l,t])}function i2(r,t){return cw(r,t)}function cw(r,t,a,l,o){var G;ct(wo(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u}=w.useContext(Rn),{matches:c}=w.useContext(zn),d=c[c.length-1],h=d?d.params:{},p=d?d.pathname:"/",g=d?d.pathnameBase:"/",v=d&&d.route;{let k=v&&v.path||"";dw(p,!v||k.endsWith("*")||k.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${k}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
+
60
+ Please change the parent <Route path="${k}"> to <Route path="${k==="/"?"*":`${k}/*`}">.`)}let x=er(),E;if(t){let k=typeof t=="string"?Di(t):t;ct(g==="/"||((G=k.pathname)==null?void 0:G.startsWith(g)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${k.pathname}" was given in the \`location\` prop.`),E=k}else E=x;let N=E.pathname||"/",_=N;if(g!=="/"){let k=g.replace(/^\//,"").split("/");_="/"+N.replace(/^\//,"").split("/").slice(k.length).join("/")}let z=Q1(r,{pathname:_});xn(v||z!=null,`No routes matched location "${E.pathname}${E.search}${E.hash}" `),xn(z==null||z[z.length-1].route.element!==void 0||z[z.length-1].route.Component!==void 0||z[z.length-1].route.lazy!==void 0,`Matched leaf route at location "${E.pathname}${E.search}${E.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let H=c2(z&&z.map(k=>Object.assign({},k,{params:Object.assign({},h,k.params),pathname:Tr([g,u.encodeLocation?u.encodeLocation(k.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?g:Tr([g,u.encodeLocation?u.encodeLocation(k.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:k.pathnameBase])})),c,a,l,o);return t&&H?w.createElement(zi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...E},navigationType:"POP"}},H):H}function l2(){let r=m2(),t=VC(r)?`${r.status} ${r.statusText}`:r instanceof Error?r.message:JSON.stringify(r),a=r instanceof Error?r.stack:null,l="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:l},u={padding:"2px 4px",backgroundColor:l},c=null;return console.error("Error handled by React Router default ErrorBoundary:",r),c=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:u},"ErrorBoundary")," or"," ",w.createElement("code",{style:u},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),a?w.createElement("pre",{style:o},a):null,c)}var o2=w.createElement(l2,null),fw=class extends w.Component{constructor(r){super(r),this.state={location:r.location,revalidation:r.revalidation,error:r.error}}static getDerivedStateFromError(r){return{error:r}}static getDerivedStateFromProps(r,t){return t.location!==r.location||t.revalidation!=="idle"&&r.revalidation==="idle"?{error:r.error,location:r.location,revalidation:r.revalidation}:{error:r.error!==void 0?r.error:t.error,location:t.location,revalidation:r.revalidation||t.revalidation}}componentDidCatch(r,t){this.props.onError?this.props.onError(r,t):console.error("React Router caught the following error during render",r)}render(){let r=this.state.error;if(this.context&&typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){const a=e2(r.digest);a&&(r=a)}let t=r!==void 0?w.createElement(zn.Provider,{value:this.props.routeContext},w.createElement(Vp.Provider,{value:r,children:this.props.component})):this.props.children;return this.context?w.createElement(s2,{error:r},t):t}};fw.contextType=XC;var Ff=new WeakMap;function s2({children:r,error:t}){let{basename:a}=w.useContext(Rn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let l=JC(t.digest);if(l){let o=Ff.get(t);if(o)throw o;let u=rw(l.location,a);if(nw&&!Ff.get(t))if(u.isExternal||l.reloadDocument)window.location.href=u.absoluteURL||u.to;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(u.to,{replace:l.replace}));throw Ff.set(t,c),c}return w.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u.absoluteURL||u.to}`})}}return r}function u2({routeContext:r,match:t,children:a}){let l=w.useContext(Li);return l&&l.static&&l.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=t.route.id),w.createElement(zn.Provider,{value:r},a)}function c2(r,t=[],a=null,l=null,o=null){if(r==null){if(!a)return null;if(a.errors)r=a.matches;else if(t.length===0&&!a.initialized&&a.matches.length>0)r=a.matches;else return null}let u=r,c=a==null?void 0:a.errors;if(c!=null){let g=u.findIndex(v=>v.route.id&&(c==null?void 0:c[v.route.id])!==void 0);ct(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),u=u.slice(0,Math.min(u.length,g+1))}let d=!1,h=-1;if(a)for(let g=0;g<u.length;g++){let v=u[g];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(h=g),v.route.id){let{loaderData:x,errors:E}=a,N=v.route.loader&&!x.hasOwnProperty(v.route.id)&&(!E||E[v.route.id]===void 0);if(v.route.lazy||N){d=!0,h>=0?u=u.slice(0,h+1):u=[u[0]];break}}}let p=a&&l?(g,v)=>{var x,E;l(g,{location:a.location,params:((E=(x=a.matches)==null?void 0:x[0])==null?void 0:E.params)??{},unstable_pattern:WC(a.matches),errorInfo:v})}:void 0;return u.reduceRight((g,v,x)=>{let E,N=!1,_=null,z=null;a&&(E=c&&v.route.id?c[v.route.id]:void 0,_=v.route.errorElement||o2,d&&(h<0&&x===0?(dw("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),N=!0,z=null):h===x&&(N=!0,z=v.route.hydrateFallbackElement||null)));let H=t.concat(u.slice(0,x+1)),G=()=>{let k;return E?k=_:N?k=z:v.route.Component?k=w.createElement(v.route.Component,null):v.route.element?k=v.route.element:k=g,w.createElement(u2,{match:v,routeContext:{outlet:g,matches:H,isDataRoute:a!=null},children:k})};return a&&(v.route.ErrorBoundary||v.route.errorElement||x===0)?w.createElement(fw,{location:a.location,revalidation:a.revalidation,component:_,error:E,children:G(),routeContext:{outlet:null,matches:H,isDataRoute:!0},onError:p}):G()},null)}function Yp(r){return`${r} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function f2(r){let t=w.useContext(Li);return ct(t,Yp(r)),t}function d2(r){let t=w.useContext(yu);return ct(t,Yp(r)),t}function h2(r){let t=w.useContext(zn);return ct(t,Yp(r)),t}function Xp(r){let t=h2(r),a=t.matches[t.matches.length-1];return ct(a.route.id,`${r} can only be used on routes that contain a unique "id"`),a.route.id}function p2(){return Xp("useRouteId")}function m2(){var l;let r=w.useContext(Vp),t=d2("useRouteError"),a=Xp("useRouteError");return r!==void 0?r:(l=t.errors)==null?void 0:l[a]}function g2(){let{router:r}=f2("useNavigate"),t=Xp("useNavigate"),a=w.useRef(!1);return uw(()=>{a.current=!0}),w.useCallback(async(o,u={})=>{xn(a.current,sw),a.current&&(typeof o=="number"?await r.navigate(o):await r.navigate(o,{fromRouteId:t,...u}))},[r,t])}var Mb={};function dw(r,t,a){!t&&!Mb[r]&&(Mb[r]=!0,xn(!1,a))}w.memo(v2);function v2({routes:r,future:t,state:a,onError:l}){return cw(r,void 0,a,l,t)}function Fp(r){return a2(r.context)}function It(r){ct(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function y2({basename:r="/",children:t=null,location:a,navigationType:l="POP",navigator:o,static:u=!1,unstable_useTransitions:c}){ct(!wo(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=r.replace(/^\/*/,"/"),h=w.useMemo(()=>({basename:d,navigator:o,static:u,unstable_useTransitions:c,future:{}}),[d,o,u,c]);typeof a=="string"&&(a=Di(a));let{pathname:p="/",search:g="",hash:v="",state:x=null,key:E="default"}=a,N=w.useMemo(()=>{let _=Cr(p,d);return _==null?null:{location:{pathname:_,search:g,hash:v,state:x,key:E},navigationType:l}},[d,p,g,v,x,E,l]);return xn(N!=null,`<Router basename="${d}"> is not able to match the URL "${p}${g}${v}" because it does not start with the basename, so the <Router> won't render anything.`),N==null?null:w.createElement(Rn.Provider,{value:h},w.createElement(zi.Provider,{children:t,value:N}))}function b2({children:r,location:t}){return i2(Op(r),t)}function Op(r,t=[]){let a=[];return w.Children.forEach(r,(l,o)=>{if(!w.isValidElement(l))return;let u=[...t,o];if(l.type===w.Fragment){a.push.apply(a,Op(l.props.children,u));return}ct(l.type===It,`[${typeof l.type=="string"?l.type:l.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ct(!l.props.index||!l.props.children,"An index route cannot have child routes.");let c={id:l.props.id||u.join("-"),caseSensitive:l.props.caseSensitive,element:l.props.element,Component:l.props.Component,index:l.props.index,path:l.props.path,middleware:l.props.middleware,loader:l.props.loader,action:l.props.action,hydrateFallbackElement:l.props.hydrateFallbackElement,HydrateFallback:l.props.HydrateFallback,errorElement:l.props.errorElement,ErrorBoundary:l.props.ErrorBoundary,hasErrorBoundary:l.props.hasErrorBoundary===!0||l.props.ErrorBoundary!=null||l.props.errorElement!=null,shouldRevalidate:l.props.shouldRevalidate,handle:l.props.handle,lazy:l.props.lazy};l.props.children&&(c.children=Op(l.props.children,u)),a.push(c)}),a}var tu="get",nu="application/x-www-form-urlencoded";function bu(r){return typeof HTMLElement<"u"&&r instanceof HTMLElement}function S2(r){return bu(r)&&r.tagName.toLowerCase()==="button"}function w2(r){return bu(r)&&r.tagName.toLowerCase()==="form"}function x2(r){return bu(r)&&r.tagName.toLowerCase()==="input"}function O2(r){return!!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)}function T2(r,t){return r.button===0&&(!t||t==="_self")&&!O2(r)}function Tp(r=""){return new URLSearchParams(typeof r=="string"||Array.isArray(r)||r instanceof URLSearchParams?r:Object.keys(r).reduce((t,a)=>{let l=r[a];return t.concat(Array.isArray(l)?l.map(o=>[a,o]):[[a,l]])},[]))}function E2(r,t){let a=Tp(r);return t&&t.forEach((l,o)=>{a.has(o)||t.getAll(o).forEach(u=>{a.append(o,u)})}),a}var Ys=null;function C2(){if(Ys===null)try{new FormData(document.createElement("form"),0),Ys=!1}catch{Ys=!0}return Ys}var R2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Qf(r){return r!=null&&!R2.has(r)?(xn(!1,`"${r}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${nu}"`),null):r}function _2(r,t){let a,l,o,u,c;if(w2(r)){let d=r.getAttribute("action");l=d?Cr(d,t):null,a=r.getAttribute("method")||tu,o=Qf(r.getAttribute("enctype"))||nu,u=new FormData(r)}else if(S2(r)||x2(r)&&(r.type==="submit"||r.type==="image")){let d=r.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=r.getAttribute("formaction")||d.getAttribute("action");if(l=h?Cr(h,t):null,a=r.getAttribute("formmethod")||d.getAttribute("method")||tu,o=Qf(r.getAttribute("formenctype"))||Qf(d.getAttribute("enctype"))||nu,u=new FormData(d,r),!C2()){let{name:p,type:g,value:v}=r;if(g==="image"){let x=p?`${p}.`:"";u.append(`${x}x`,"0"),u.append(`${x}y`,"0")}else p&&u.append(p,v)}}else{if(bu(r))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=tu,l=null,o=nu,c=r}return u&&o==="text/plain"&&(c=u,u=void 0),{action:l,method:a.toLowerCase(),encType:o,formData:u,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Qp(r,t){if(r===!1||r===null||typeof r>"u")throw new Error(t)}function j2(r,t,a,l){let o=typeof r=="string"?new URL(r,typeof window>"u"?"server://singlefetch/":window.location.origin):r;return a?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${l}`:o.pathname=`${o.pathname}.${l}`:o.pathname==="/"?o.pathname=`_root.${l}`:t&&Cr(o.pathname,t)==="/"?o.pathname=`${t.replace(/\/$/,"")}/_root.${l}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${l}`,o}async function A2(r,t){if(r.id in t)return t[r.id];try{let a=await import(r.module);return t[r.id]=a,a}catch(a){return console.error(`Error loading route module \`${r.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function M2(r){return r==null?!1:r.href==null?r.rel==="preload"&&typeof r.imageSrcSet=="string"&&typeof r.imageSizes=="string":typeof r.rel=="string"&&typeof r.href=="string"}async function N2(r,t,a){let l=await Promise.all(r.map(async o=>{let u=t.routes[o.route.id];if(u){let c=await A2(u,a);return c.links?c.links():[]}return[]}));return P2(l.flat(1).filter(M2).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Nb(r,t,a,l,o,u){let c=(h,p)=>a[p]?h.route.id!==a[p].route.id:!0,d=(h,p)=>{var g;return a[p].pathname!==h.pathname||((g=a[p].route.path)==null?void 0:g.endsWith("*"))&&a[p].params["*"]!==h.params["*"]};return u==="assets"?t.filter((h,p)=>c(h,p)||d(h,p)):u==="data"?t.filter((h,p)=>{var v;let g=l.routes[h.route.id];if(!g||!g.hasLoader)return!1;if(c(h,p)||d(h,p))return!0;if(h.route.shouldRevalidate){let x=h.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((v=a[0])==null?void 0:v.params)||{},nextUrl:new URL(r,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function D2(r,t,{includeHydrateFallback:a}={}){return L2(r.map(l=>{let o=t.routes[l.route.id];if(!o)return[];let u=[o.module];return o.clientActionModule&&(u=u.concat(o.clientActionModule)),o.clientLoaderModule&&(u=u.concat(o.clientLoaderModule)),a&&o.hydrateFallbackModule&&(u=u.concat(o.hydrateFallbackModule)),o.imports&&(u=u.concat(o.imports)),u}).flat(1))}function L2(r){return[...new Set(r)]}function z2(r){let t={},a=Object.keys(r).sort();for(let l of a)t[l]=r[l];return t}function P2(r,t){let a=new Set;return new Set(t),r.reduce((l,o)=>{let u=JSON.stringify(z2(o));return a.has(u)||(a.add(u),l.push({key:u,link:o})),l},[])}function hw(){let r=w.useContext(Li);return Qp(r,"You must render this element inside a <DataRouterContext.Provider> element"),r}function H2(){let r=w.useContext(yu);return Qp(r,"You must render this element inside a <DataRouterStateContext.Provider> element"),r}var Zp=w.createContext(void 0);Zp.displayName="FrameworkContext";function pw(){let r=w.useContext(Zp);return Qp(r,"You must render this element inside a <HydratedRouter> element"),r}function k2(r,t){let a=w.useContext(Zp),[l,o]=w.useState(!1),[u,c]=w.useState(!1),{onFocus:d,onBlur:h,onMouseEnter:p,onMouseLeave:g,onTouchStart:v}=t,x=w.useRef(null);w.useEffect(()=>{if(r==="render"&&c(!0),r==="viewport"){let _=H=>{H.forEach(G=>{c(G.isIntersecting)})},z=new IntersectionObserver(_,{threshold:.5});return x.current&&z.observe(x.current),()=>{z.disconnect()}}},[r]),w.useEffect(()=>{if(l){let _=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(_)}}},[l]);let E=()=>{o(!0)},N=()=>{o(!1),c(!1)};return a?r!=="intent"?[u,x,{}]:[u,x,{onFocus:Il(d,E),onBlur:Il(h,N),onMouseEnter:Il(p,E),onMouseLeave:Il(g,N),onTouchStart:Il(v,E)}]:[!1,x,{}]}function Il(r,t){return a=>{r&&r(a),a.defaultPrevented||t(a)}}function B2({page:r,...t}){let{router:a}=hw(),l=w.useMemo(()=>Q1(a.routes,r,a.basename),[a.routes,r,a.basename]);return l?w.createElement(I2,{page:r,matches:l,...t}):null}function $2(r){let{manifest:t,routeModules:a}=pw(),[l,o]=w.useState([]);return w.useEffect(()=>{let u=!1;return N2(r,t,a).then(c=>{u||o(c)}),()=>{u=!0}},[r,t,a]),l}function I2({page:r,matches:t,...a}){let l=er(),{future:o,manifest:u,routeModules:c}=pw(),{basename:d}=hw(),{loaderData:h,matches:p}=H2(),g=w.useMemo(()=>Nb(r,t,p,u,l,"data"),[r,t,p,u,l]),v=w.useMemo(()=>Nb(r,t,p,u,l,"assets"),[r,t,p,u,l]),x=w.useMemo(()=>{if(r===l.pathname+l.search+l.hash)return[];let _=new Set,z=!1;if(t.forEach(G=>{var Z;let k=u.routes[G.route.id];!k||!k.hasLoader||(!g.some(A=>A.route.id===G.route.id)&&G.route.id in h&&((Z=c[G.route.id])!=null&&Z.shouldRevalidate)||k.hasClientLoader?z=!0:_.add(G.route.id))}),_.size===0)return[];let H=j2(r,d,o.unstable_trailingSlashAwareDataRequests,"data");return z&&_.size>0&&H.searchParams.set("_routes",t.filter(G=>_.has(G.route.id)).map(G=>G.route.id).join(",")),[H.pathname+H.search]},[d,o.unstable_trailingSlashAwareDataRequests,h,l,u,g,t,r,c]),E=w.useMemo(()=>D2(v,u),[v,u]),N=$2(v);return w.createElement(w.Fragment,null,x.map(_=>w.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...a})),E.map(_=>w.createElement("link",{key:_,rel:"modulepreload",href:_,...a})),N.map(({key:_,link:z})=>w.createElement("link",{key:_,nonce:a.nonce,...z})))}function q2(...r){return t=>{r.forEach(a=>{typeof a=="function"?a(t):a!=null&&(a.current=t)})}}var U2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{U2&&(window.__reactRouterVersion="7.12.0")}catch{}function G2({basename:r,children:t,unstable_useTransitions:a,window:l}){let o=w.useRef();o.current==null&&(o.current=wC({window:l,v5Compat:!0}));let u=o.current,[c,d]=w.useState({action:u.action,location:u.location}),h=w.useCallback(p=>{a===!1?d(p):w.startTransition(()=>d(p))},[a]);return w.useLayoutEffect(()=>u.listen(h),[u,h]),w.createElement(y2,{basename:r,children:t,location:c.location,navigationType:c.action,navigator:u,unstable_useTransitions:a})}var mw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,on=w.forwardRef(function({onClick:t,discover:a="render",prefetch:l="none",relative:o,reloadDocument:u,replace:c,state:d,target:h,to:p,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:x,...E},N){let{basename:_,unstable_useTransitions:z}=w.useContext(Rn),H=typeof p=="string"&&mw.test(p),G=rw(p,_);p=G.to;let k=t2(p,{relative:o}),[Z,A,j]=k2(l,E),P=Y2(p,{replace:c,state:d,target:h,preventScrollReset:g,relative:o,viewTransition:v,unstable_defaultShouldRevalidate:x,unstable_useTransitions:z});function F(T){t&&t(T),T.defaultPrevented||P(T)}let D=w.createElement("a",{...E,...j,href:G.absoluteURL||k,onClick:G.isExternal||u?t:F,ref:q2(N,A),target:h,"data-discover":!H&&a==="render"?"true":void 0});return Z&&!H?w.createElement(w.Fragment,null,D,w.createElement(B2,{page:k})):D});on.displayName="Link";var ou=w.forwardRef(function({"aria-current":t="page",caseSensitive:a=!1,className:l="",end:o=!1,style:u,to:c,viewTransition:d,children:h,...p},g){let v=xo(c,{relative:p.relative}),x=er(),E=w.useContext(yu),{navigator:N,basename:_}=w.useContext(Rn),z=E!=null&&K2(v)&&d===!0,H=N.encodeLocation?N.encodeLocation(v).pathname:v.pathname,G=x.pathname,k=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;a||(G=G.toLowerCase(),k=k?k.toLowerCase():null,H=H.toLowerCase()),k&&_&&(k=Cr(k,_)||k);const Z=H!=="/"&&H.endsWith("/")?H.length-1:H.length;let A=G===H||!o&&G.startsWith(H)&&G.charAt(Z)==="/",j=k!=null&&(k===H||!o&&k.startsWith(H)&&k.charAt(H.length)==="/"),P={isActive:A,isPending:j,isTransitioning:z},F=A?t:void 0,D;typeof l=="function"?D=l(P):D=[l,A?"active":null,j?"pending":null,z?"transitioning":null].filter(Boolean).join(" ");let T=typeof u=="function"?u(P):u;return w.createElement(on,{...p,"aria-current":F,className:D,ref:g,style:T,to:c,viewTransition:d},typeof h=="function"?h(P):h)});ou.displayName="NavLink";var V2=w.forwardRef(({discover:r="render",fetcherKey:t,navigate:a,reloadDocument:l,replace:o,state:u,method:c=tu,action:d,onSubmit:h,relative:p,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:x,...E},N)=>{let{unstable_useTransitions:_}=w.useContext(Rn),z=Q2(),H=Z2(d,{relative:p}),G=c.toLowerCase()==="get"?"get":"post",k=typeof d=="string"&&mw.test(d),Z=A=>{if(h&&h(A),A.defaultPrevented)return;A.preventDefault();let j=A.nativeEvent.submitter,P=(j==null?void 0:j.getAttribute("formmethod"))||c,F=()=>z(j||A.currentTarget,{fetcherKey:t,method:P,navigate:a,replace:o,state:u,relative:p,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:x});_&&a!==!1?w.startTransition(()=>F()):F()};return w.createElement("form",{ref:N,method:G,action:H,onSubmit:l?h:Z,...E,"data-discover":!k&&r==="render"?"true":void 0})});V2.displayName="Form";function W2(r){return`${r} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function gw(r){let t=w.useContext(Li);return ct(t,W2(r)),t}function Y2(r,{target:t,replace:a,state:l,preventScrollReset:o,relative:u,viewTransition:c,unstable_defaultShouldRevalidate:d,unstable_useTransitions:h}={}){let p=Wp(),g=er(),v=xo(r,{relative:u});return w.useCallback(x=>{if(T2(x,t)){x.preventDefault();let E=a!==void 0?a:io(g)===io(v),N=()=>p(r,{replace:E,state:l,preventScrollReset:o,relative:u,viewTransition:c,unstable_defaultShouldRevalidate:d});h?w.startTransition(()=>N()):N()}},[g,p,v,a,l,t,r,o,u,c,d,h])}function Oo(r){xn(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=w.useRef(Tp(r)),a=w.useRef(!1),l=er(),o=w.useMemo(()=>E2(l.search,a.current?null:t.current),[l.search]),u=Wp(),c=w.useCallback((d,h)=>{const p=Tp(typeof d=="function"?d(new URLSearchParams(o)):d);a.current=!0,u("?"+p,h)},[u,o]);return[o,c]}var X2=0,F2=()=>`__${String(++X2)}__`;function Q2(){let{router:r}=gw("useSubmit"),{basename:t}=w.useContext(Rn),a=p2(),l=r.fetch,o=r.navigate;return w.useCallback(async(u,c={})=>{let{action:d,method:h,encType:p,formData:g,body:v}=_2(u,t);if(c.navigate===!1){let x=c.fetcherKey||F2();await l(x,a,c.action||d,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:g,body:v,formMethod:c.method||h,formEncType:c.encType||p,flushSync:c.flushSync})}else await o(c.action||d,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:g,body:v,formMethod:c.method||h,formEncType:c.encType||p,replace:c.replace,state:c.state,fromRouteId:a,flushSync:c.flushSync,viewTransition:c.viewTransition})},[l,o,t,a])}function Z2(r,{relative:t}={}){let{basename:a}=w.useContext(Rn),l=w.useContext(zn);ct(l,"useFormAction must be used inside a RouteContext");let[o]=l.matches.slice(-1),u={...xo(r||".",{relative:t})},c=er();if(r==null){u.search=c.search;let d=new URLSearchParams(u.search),h=d.getAll("index");if(h.some(g=>g==="")){d.delete("index"),h.filter(v=>v).forEach(v=>d.append("index",v));let g=d.toString();u.search=g?`?${g}`:""}}return(!r||r===".")&&o.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(u.pathname=u.pathname==="/"?a:Tr([a,u.pathname])),io(u)}function K2(r,{relative:t}={}){let a=w.useContext(iw);ct(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:l}=gw("useViewTransitionState"),o=xo(r,{relative:t});if(!a.isTransitioning)return!1;let u=Cr(a.currentLocation.pathname,l)||a.currentLocation.pathname,c=Cr(a.nextLocation.pathname,l)||a.nextLocation.pathname;return lu(o.pathname,c)!=null||lu(o.pathname,u)!=null}var Fn,Jl,Ep;class J2{constructor(){Sn(this,Fn)}async getCampaignList(t){const a=new URL("/api/campaigns",window.location.href);return t.sortBy&&a.searchParams.append("sort_by",t.sortBy),ia(this,Fn,Jl).call(this,a,t),await(await fetch(a.toString())).json()}async getContentList(t){const{campaign:a,filter:l}=t,o=t.type==="post"?"posts":t.type==="product"?"products":"content",u=new URL(`/api/campaigns/${a.id}/${o}`,window.location.href);return t.collectionId&&u.searchParams.set("collection_id",t.collectionId),ia(this,Fn,Ep).call(this,u,l),ia(this,Fn,Jl).call(this,u,t),await(await fetch(u.toString())).json()}async getCampaign(t){const{withCounts:a=!1}=t,l=new URL(`/api/campaigns/${t.id}`,window.location.href);return l.searchParams.append("with_counts",a?"true":"false"),await(await fetch(l.toString())).json()}async getContentFilterOptions(t,a){const l=typeof t=="string"?t:t.id,o=a==="post"?"posts":"products",u=new URL(`/api/campaigns/${l}/${o}/filter_options`,window.location.href);return await(await fetch(u.toString())).json()}async getPost(t,a=""){const l=new URL(`/api/posts/${t}`,window.location.href);return a&&(l.search=a),await(await fetch(l.toString())).json()}async getProduct(t){const a=new URL(`/api/products/${t}`,window.location.href);return await(await fetch(a.toString())).json()}async getCollection(t){const a=new URL(`/api/collections/${t}`,window.location.href);return await(await fetch(a.toString())).json()}async getCollectionList(t){const{campaign:a,search:l,sortBy:o}=t,u=typeof a=="string"?a:a.id,c=new URL(`/api/campaigns/${u}/collections`,window.location.href);return l&&c.searchParams.append("search",l),o&&c.searchParams.append("sort_by",o),ia(this,Fn,Jl).call(this,c,t),await(await fetch(c.toString())).json()}async getPostTagList(t){const{campaign:a}=t,l=typeof a=="string"?a:a.id,o=new URL(`/api/campaigns/${l}/post_tags`,window.location.href);return await(await fetch(o.toString())).json()}async getBrowseSettings(){const t=new URL("/api/settings/browse",window.location.href);return await(await fetch(t.toString())).json()}async getBrowseSettingOptions(){const t=new URL("/api/settings/browse/options",window.location.href);return await(await fetch(t.toString())).json()}async getMediaList(t){const{campaign:a,filter:l}=t,o=new URL(`/api/campaigns/${a.id}/media`,window.location.href);return ia(this,Fn,Ep).call(this,o,l),ia(this,Fn,Jl).call(this,o,t),await(await fetch(o.toString())).json()}async getMediaFilterOptions(t){const a=typeof t=="string"?t:t.id,l=new URL(`/api/campaigns/${a}/media/filter_options`,window.location.href);return await(await fetch(l.toString())).json()}saveBrowseSettings(t){return fetch("/api/settings/browse",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}}Fn=new WeakSet,Jl=function(t,a){a.page&&t.searchParams.append("p",String(a.page)),t.searchParams.append("n",String(a.itemsPerPage))},Ep=function(t,a){a.options.forEach(({searchParam:l,value:o})=>{o===null?t.searchParams.delete(l):t.searchParams.append(l,o)})};const vw=w.createContext({});function eR(r){const{children:t}=r;return S.jsx(vw.Provider,{value:{api:new J2},children:t})}const _n=()=>w.useContext(vw);var tR=Function.prototype.toString,Zf=Object.create,nR=Object.prototype.toString,rR=function(){function r(){this._keys=[],this._values=[]}return r.prototype.has=function(t){return!!~this._keys.indexOf(t)},r.prototype.get=function(t){return this._values[this._keys.indexOf(t)]},r.prototype.set=function(t,a){this._keys.push(t),this._values.push(a)},r}();function aR(){return new rR}function iR(){return new WeakMap}var lR=typeof WeakMap<"u"?iR:aR;function Kp(r){if(!r)return Zf(null);var t=r.constructor;if(t===Object)return r===Object.prototype?{}:Zf(r);if(t&&~tR.call(t).indexOf("[native code]"))try{return new t}catch{}return Zf(r)}function oR(r){var t="";return r.global&&(t+="g"),r.ignoreCase&&(t+="i"),r.multiline&&(t+="m"),r.unicode&&(t+="u"),r.sticky&&(t+="y"),t}function sR(r){return r.flags}var uR=/test/g.flags==="g"?sR:oR;function yw(r){var t=nR.call(r);return t.substring(8,t.length-1)}function cR(r){return r[Symbol.toStringTag]||yw(r)}var fR=typeof Symbol<"u"?cR:yw,dR=Object.defineProperty,hR=Object.getOwnPropertyDescriptor,bw=Object.getOwnPropertyNames,Jp=Object.getOwnPropertySymbols,Sw=Object.prototype,ww=Sw.hasOwnProperty,pR=Sw.propertyIsEnumerable,xw=typeof Jp=="function";function mR(r){return bw(r).concat(Jp(r))}var gR=xw?mR:bw;function Su(r,t,a){for(var l=gR(r),o=0,u=l.length,c=void 0,d=void 0;o<u;++o)if(c=l[o],!(c==="callee"||c==="caller")){if(d=hR(r,c),!d){t[c]=a.copier(r[c],a);continue}!d.get&&!d.set&&(d.value=a.copier(d.value,a));try{dR(t,c,d)}catch{t[c]=d.value}}return t}function vR(r,t){var a=new t.Constructor;t.cache.set(r,a);for(var l=0,o=r.length;l<o;++l)a[l]=t.copier(r[l],t);return a}function yR(r,t){var a=new t.Constructor;return t.cache.set(r,a),Su(r,a,t)}function Ow(r,t){return r.slice(0)}function bR(r,t){return r.slice(0,r.size,r.type)}function SR(r,t){return new t.Constructor(Ow(r.buffer))}function wR(r,t){return new t.Constructor(r.getTime())}function Tw(r,t){var a=new t.Constructor;return t.cache.set(r,a),r.forEach(function(l,o){a.set(o,t.copier(l,t))}),a}function xR(r,t){return Su(r,Tw(r,t),t)}function OR(r,t){var a=Kp(t.prototype);t.cache.set(r,a);for(var l in r)ww.call(r,l)&&(a[l]=t.copier(r[l],t));return a}function TR(r,t){var a=Kp(t.prototype);t.cache.set(r,a);for(var l in r)ww.call(r,l)&&(a[l]=t.copier(r[l],t));for(var o=Jp(r),u=0,c=o.length,d=void 0;u<c;++u)d=o[u],pR.call(r,d)&&(a[d]=t.copier(r[d],t));return a}var ER=xw?TR:OR;function CR(r,t){var a=Kp(t.prototype);return t.cache.set(r,a),Su(r,a,t)}function Kf(r,t){return new t.Constructor(r.valueOf())}function RR(r,t){var a=new t.Constructor(r.source,uR(r));return a.lastIndex=r.lastIndex,a}function ru(r,t){return r}function Ew(r,t){var a=new t.Constructor;return t.cache.set(r,a),r.forEach(function(l){a.add(t.copier(l,t))}),a}function _R(r,t){return Su(r,Ew(r,t),t)}var jR=Array.isArray,em=Object.assign,AR=Object.getPrototypeOf||function(r){return r.__proto__},Cw={array:vR,arrayBuffer:Ow,blob:bR,dataView:SR,date:wR,error:ru,map:Tw,object:ER,regExp:RR,set:Ew},MR=em({},Cw,{array:yR,map:xR,object:CR,set:_R});function NR(r){return{Arguments:r.object,Array:r.array,ArrayBuffer:r.arrayBuffer,Blob:r.blob,Boolean:Kf,DataView:r.dataView,Date:r.date,Error:r.error,Float32Array:r.arrayBuffer,Float64Array:r.arrayBuffer,Int8Array:r.arrayBuffer,Int16Array:r.arrayBuffer,Int32Array:r.arrayBuffer,Map:r.map,Number:Kf,Object:r.object,Promise:ru,RegExp:r.regExp,Set:r.set,String:Kf,WeakMap:ru,WeakSet:ru,Uint8Array:r.arrayBuffer,Uint8ClampedArray:r.arrayBuffer,Uint16Array:r.arrayBuffer,Uint32Array:r.arrayBuffer,Uint64Array:r.arrayBuffer}}function Rw(r){var t=em({},Cw,r),a=NR(t),l=a.Array,o=a.Object;function u(c,d){if(d.prototype=d.Constructor=void 0,!c||typeof c!="object")return c;if(d.cache.has(c))return d.cache.get(c);if(d.prototype=AR(c),d.Constructor=d.prototype&&d.prototype.constructor,!d.Constructor||d.Constructor===Object)return o(c,d);if(jR(c))return l(c,d);var h=a[fR(c)];return h?h(c,d):typeof c.then=="function"?c:o(c,d)}return function(d){return u(d,{Constructor:void 0,cache:lR(),copier:u,prototype:void 0})}}function DR(r){return Rw(em({},MR,r))}DR({});var Er=Rw({}),Jf,Db;function _w(){if(Db)return Jf;Db=1;var r=Object.prototype.toString;return Jf=function(a){var l=r.call(a),o=l==="[object Arguments]";return o||(o=l!=="[object Array]"&&a!==null&&typeof a=="object"&&typeof a.length=="number"&&a.length>=0&&r.call(a.callee)==="[object Function]"),o},Jf}var ed,Lb;function LR(){if(Lb)return ed;Lb=1;var r;if(!Object.keys){var t=Object.prototype.hasOwnProperty,a=Object.prototype.toString,l=_w(),o=Object.prototype.propertyIsEnumerable,u=!o.call({toString:null},"toString"),c=o.call(function(){},"prototype"),d=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(x){var E=x.constructor;return E&&E.prototype===x},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},g=function(){if(typeof window>"u")return!1;for(var x in window)try{if(!p["$"+x]&&t.call(window,x)&&window[x]!==null&&typeof window[x]=="object")try{h(window[x])}catch{return!0}}catch{return!0}return!1}(),v=function(x){if(typeof window>"u"||!g)return h(x);try{return h(x)}catch{return!1}};r=function(E){var N=E!==null&&typeof E=="object",_=a.call(E)==="[object Function]",z=l(E),H=N&&a.call(E)==="[object String]",G=[];if(!N&&!_&&!z)throw new TypeError("Object.keys called on a non-object");var k=c&&_;if(H&&E.length>0&&!t.call(E,0))for(var Z=0;Z<E.length;++Z)G.push(String(Z));if(z&&E.length>0)for(var A=0;A<E.length;++A)G.push(String(A));else for(var j in E)!(k&&j==="prototype")&&t.call(E,j)&&G.push(String(j));if(u)for(var P=v(E),F=0;F<d.length;++F)!(P&&d[F]==="constructor")&&t.call(E,d[F])&&G.push(d[F]);return G}}return ed=r,ed}var td,zb;function tm(){if(zb)return td;zb=1;var r=Array.prototype.slice,t=_w(),a=Object.keys,l=a?function(c){return a(c)}:LR(),o=Object.keys;return l.shim=function(){if(Object.keys){var c=function(){var d=Object.keys(arguments);return d&&d.length===arguments.length}(1,2);c||(Object.keys=function(h){return t(h)?o(r.call(h)):o(h)})}else Object.keys=l;return Object.keys||l},td=l,td}var nd,Pb;function jw(){return Pb||(Pb=1,nd=Object),nd}var rd,Hb;function zR(){return Hb||(Hb=1,rd=Error),rd}var ad,kb;function PR(){return kb||(kb=1,ad=EvalError),ad}var id,Bb;function HR(){return Bb||(Bb=1,id=RangeError),id}var ld,$b;function kR(){return $b||($b=1,ld=ReferenceError),ld}var od,Ib;function BR(){return Ib||(Ib=1,od=SyntaxError),od}var sd,qb;function Pi(){return qb||(qb=1,sd=TypeError),sd}var ud,Ub;function $R(){return Ub||(Ub=1,ud=URIError),ud}var cd,Gb;function IR(){return Gb||(Gb=1,cd=Math.abs),cd}var fd,Vb;function qR(){return Vb||(Vb=1,fd=Math.floor),fd}var dd,Wb;function UR(){return Wb||(Wb=1,dd=Math.max),dd}var hd,Yb;function GR(){return Yb||(Yb=1,hd=Math.min),hd}var pd,Xb;function VR(){return Xb||(Xb=1,pd=Math.pow),pd}var md,Fb;function WR(){return Fb||(Fb=1,md=Math.round),md}var gd,Qb;function YR(){return Qb||(Qb=1,gd=Number.isNaN||function(t){return t!==t}),gd}var vd,Zb;function XR(){if(Zb)return vd;Zb=1;var r=YR();return vd=function(a){return r(a)||a===0?a:a<0?-1:1},vd}var yd,Kb;function FR(){return Kb||(Kb=1,yd=Object.getOwnPropertyDescriptor),yd}var bd,Jb;function To(){if(Jb)return bd;Jb=1;var r=FR();if(r)try{r([],"length")}catch{r=null}return bd=r,bd}var Sd,e0;function QR(){if(e0)return Sd;e0=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return Sd=r,Sd}var wd,t0;function wu(){return t0||(t0=1,wd=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},a=Symbol("test"),l=Object(a);if(typeof a=="string"||Object.prototype.toString.call(a)!=="[object Symbol]"||Object.prototype.toString.call(l)!=="[object Symbol]")return!1;var o=42;t[a]=o;for(var u in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var c=Object.getOwnPropertySymbols(t);if(c.length!==1||c[0]!==a||!Object.prototype.propertyIsEnumerable.call(t,a))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var d=Object.getOwnPropertyDescriptor(t,a);if(d.value!==o||d.enumerable!==!0)return!1}return!0}),wd}var xd,n0;function nm(){if(n0)return xd;n0=1;var r=typeof Symbol<"u"&&Symbol,t=wu();return xd=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},xd}var Od,r0;function Aw(){return r0||(r0=1,Od=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Od}var Td,a0;function Mw(){if(a0)return Td;a0=1;var r=jw();return Td=r.getPrototypeOf||null,Td}var Ed,i0;function ZR(){if(i0)return Ed;i0=1;var r="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,a=Math.max,l="[object Function]",o=function(h,p){for(var g=[],v=0;v<h.length;v+=1)g[v]=h[v];for(var x=0;x<p.length;x+=1)g[x+h.length]=p[x];return g},u=function(h,p){for(var g=[],v=p,x=0;v<h.length;v+=1,x+=1)g[x]=h[v];return g},c=function(d,h){for(var p="",g=0;g<d.length;g+=1)p+=d[g],g+1<d.length&&(p+=h);return p};return Ed=function(h){var p=this;if(typeof p!="function"||t.apply(p)!==l)throw new TypeError(r+p);for(var g=u(arguments,1),v,x=function(){if(this instanceof v){var H=p.apply(this,o(g,arguments));return Object(H)===H?H:this}return p.apply(h,o(g,arguments))},E=a(0,p.length-g.length),N=[],_=0;_<E;_++)N[_]="$"+_;if(v=Function("binder","return function ("+c(N,",")+"){ return binder.apply(this,arguments); }")(x),p.prototype){var z=function(){};z.prototype=p.prototype,v.prototype=new z,z.prototype=null}return v},Ed}var Cd,l0;function Eo(){if(l0)return Cd;l0=1;var r=ZR();return Cd=Function.prototype.bind||r,Cd}var Rd,o0;function rm(){return o0||(o0=1,Rd=Function.prototype.call),Rd}var _d,s0;function Nw(){return s0||(s0=1,_d=Function.prototype.apply),_d}var jd,u0;function KR(){return u0||(u0=1,jd=typeof Reflect<"u"&&Reflect&&Reflect.apply),jd}var Ad,c0;function JR(){if(c0)return Ad;c0=1;var r=Eo(),t=Nw(),a=rm(),l=KR();return Ad=l||r.call(a,t),Ad}var Md,f0;function Dw(){if(f0)return Md;f0=1;var r=Eo(),t=Pi(),a=rm(),l=JR();return Md=function(u){if(u.length<1||typeof u[0]!="function")throw new t("a function is required");return l(r,a,u)},Md}var Nd,d0;function e_(){if(d0)return Nd;d0=1;var r=Dw(),t=To(),a;try{a=[].__proto__===Array.prototype}catch(c){if(!c||typeof c!="object"||!("code"in c)||c.code!=="ERR_PROTO_ACCESS")throw c}var l=!!a&&t&&t(Object.prototype,"__proto__"),o=Object,u=o.getPrototypeOf;return Nd=l&&typeof l.get=="function"?r([l.get]):typeof u=="function"?function(d){return u(d==null?d:o(d))}:!1,Nd}var Dd,h0;function t_(){if(h0)return Dd;h0=1;var r=Aw(),t=Mw(),a=e_();return Dd=r?function(o){return r(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:a?function(o){return a(o)}:null,Dd}var Ld,p0;function Lw(){if(p0)return Ld;p0=1;var r=Function.prototype.call,t=Object.prototype.hasOwnProperty,a=Eo();return Ld=a.call(r,t),Ld}var zd,m0;function un(){if(m0)return zd;m0=1;var r,t=jw(),a=zR(),l=PR(),o=HR(),u=kR(),c=BR(),d=Pi(),h=$R(),p=IR(),g=qR(),v=UR(),x=GR(),E=VR(),N=WR(),_=XR(),z=Function,H=function(me){try{return z('"use strict"; return ('+me+").constructor;")()}catch{}},G=To(),k=QR(),Z=function(){throw new d},A=G?function(){try{return arguments.callee,Z}catch{try{return G(arguments,"callee").get}catch{return Z}}}():Z,j=nm()(),P=t_(),F=Mw(),D=Aw(),T=Nw(),X=rm(),I={},q=typeof Uint8Array>"u"||!P?r:P(Uint8Array),$={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":j&&P?P([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":l,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":z,"%GeneratorFunction%":I,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":j&&P?P(P([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!j||!P?r:P(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":G,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":o,"%ReferenceError%":u,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!j||!P?r:P(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":j&&P?P(""[Symbol.iterator]()):r,"%Symbol%":j?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":A,"%TypedArray%":q,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":h,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":X,"%Function.prototype.apply%":T,"%Object.defineProperty%":k,"%Object.getPrototypeOf%":F,"%Math.abs%":p,"%Math.floor%":g,"%Math.max%":v,"%Math.min%":x,"%Math.pow%":E,"%Math.round%":N,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(P)try{null.error}catch(me){var U=P(P(me));$["%Error.prototype%"]=U}var L=function me(he){var ve;if(he==="%AsyncFunction%")ve=H("async function () {}");else if(he==="%GeneratorFunction%")ve=H("function* () {}");else if(he==="%AsyncGeneratorFunction%")ve=H("async function* () {}");else if(he==="%AsyncGenerator%"){var pe=me("%AsyncGeneratorFunction%");pe&&(ve=pe.prototype)}else if(he==="%AsyncIteratorPrototype%"){var ge=me("%AsyncGenerator%");ge&&P&&(ve=P(ge.prototype))}return $[he]=ve,ve},b={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},te=Eo(),R=Lw(),y=te.call(X,Array.prototype.concat),C=te.call(T,Array.prototype.splice),W=te.call(X,String.prototype.replace),J=te.call(X,String.prototype.slice),B=te.call(X,RegExp.prototype.exec),Q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,ne=function(he){var ve=J(he,0,1),pe=J(he,-1);if(ve==="%"&&pe!=="%")throw new c("invalid intrinsic syntax, expected closing `%`");if(pe==="%"&&ve!=="%")throw new c("invalid intrinsic syntax, expected opening `%`");var ge=[];return W(he,Q,function(Se,ye,Re,be){ge[ge.length]=Re?W(be,V,"$1"):ye||Se}),ge},ue=function(he,ve){var pe=he,ge;if(R(b,pe)&&(ge=b[pe],pe="%"+ge[0]+"%"),R($,pe)){var Se=$[pe];if(Se===I&&(Se=L(pe)),typeof Se>"u"&&!ve)throw new d("intrinsic "+he+" exists, but is not available. Please file an issue!");return{alias:ge,name:pe,value:Se}}throw new c("intrinsic "+he+" does not exist!")};return zd=function(he,ve){if(typeof he!="string"||he.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ve!="boolean")throw new d('"allowMissing" argument must be a boolean');if(B(/^%?[^%]*%?$/,he)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var pe=ne(he),ge=pe.length>0?pe[0]:"",Se=ue("%"+ge+"%",ve),ye=Se.name,Re=Se.value,be=!1,Le=Se.alias;Le&&(ge=Le[0],C(pe,y([0,1],Le)));for(var Pe=1,Ee=!0;Pe<pe.length;Pe+=1){var ke=pe[Pe],ot=J(ke,0,1),ft=J(ke,-1);if((ot==='"'||ot==="'"||ot==="`"||ft==='"'||ft==="'"||ft==="`")&&ot!==ft)throw new c("property names with quotes must have matching quotes");if((ke==="constructor"||!Ee)&&(be=!0),ge+="."+ke,ye="%"+ge+"%",R($,ye))Re=$[ye];else if(Re!=null){if(!(ke in Re)){if(!ve)throw new d("base intrinsic for "+he+" exists, but the property is not available.");return}if(G&&Pe+1>=pe.length){var yt=G(Re,ke);Ee=!!yt,Ee&&"get"in yt&&!("originalValue"in yt.get)?Re=yt.get:Re=Re[ke]}else Ee=R(Re,ke),Re=Re[ke];Ee&&!be&&($[ye]=Re)}}return Re},zd}var Pd,g0;function xu(){if(g0)return Pd;g0=1;var r=un(),t=r("%Object.defineProperty%",!0),a=function(){if(t)try{return t({},"a",{value:1}),!0}catch{return!1}return!1};return a.hasArrayLengthDefineBug=function(){if(!a())return null;try{return t([],"length",{value:1}).length!==1}catch{return!0}},Pd=a,Pd}var Hd,v0;function am(){if(v0)return Hd;v0=1;var r=xu()(),t=un(),a=r&&t("%Object.defineProperty%",!0);if(a)try{a({},"a",{value:1})}catch{a=!1}var l=t("%SyntaxError%"),o=t("%TypeError%"),u=To();return Hd=function(d,h,p){if(!d||typeof d!="object"&&typeof d!="function")throw new o("`obj` must be an object or a function`");if(typeof h!="string"&&typeof h!="symbol")throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new o("`loose`, if provided, must be a boolean");var g=arguments.length>3?arguments[3]:null,v=arguments.length>4?arguments[4]:null,x=arguments.length>5?arguments[5]:null,E=arguments.length>6?arguments[6]:!1,N=!!u&&u(d,h);if(a)a(d,h,{configurable:x===null&&N?N.configurable:!x,enumerable:g===null&&N?N.enumerable:!g,value:p,writable:v===null&&N?N.writable:!v});else if(E||!g&&!v&&!x)d[h]=p;else throw new l("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Hd}var kd,y0;function qa(){if(y0)return kd;y0=1;var r=tm(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",a=Object.prototype.toString,l=Array.prototype.concat,o=am(),u=function(p){return typeof p=="function"&&a.call(p)==="[object Function]"},c=xu()(),d=function(p,g,v,x){if(g in p){if(x===!0){if(p[g]===v)return}else if(!u(x)||!x())return}c?o(p,g,v,!0):o(p,g,v)},h=function(p,g){var v=arguments.length>2?arguments[2]:{},x=r(g);t&&(x=l.call(x,Object.getOwnPropertySymbols(g)));for(var E=0;E<x.length;E+=1)d(p,x[E],g[x[E]],v[x[E]])};return h.supportsDescriptors=!!c,kd=h,kd}var Bd={exports:{}},$d,b0;function n_(){if(b0)return $d;b0=1;var r=un(),t=am(),a=xu()(),l=To(),o=r("%TypeError%"),u=r("%Math.floor%");return $d=function(d,h){if(typeof d!="function")throw new o("`fn` is not a function");if(typeof h!="number"||h<0||h>4294967295||u(h)!==h)throw new o("`length` must be a positive 32-bit integer");var p=arguments.length>2&&!!arguments[2],g=!0,v=!0;if("length"in d&&l){var x=l(d,"length");x&&!x.configurable&&(g=!1),x&&!x.writable&&(v=!1)}return(g||v||!p)&&(a?t(d,"length",h,!0,!0):t(d,"length",h)),d},$d}var S0;function Hi(){return S0||(S0=1,function(r){var t=Eo(),a=un(),l=n_(),o=a("%TypeError%"),u=a("%Function.prototype.apply%"),c=a("%Function.prototype.call%"),d=a("%Reflect.apply%",!0)||t.call(c,u),h=a("%Object.defineProperty%",!0),p=a("%Math.max%");if(h)try{h({},"a",{value:1})}catch{h=null}r.exports=function(x){if(typeof x!="function")throw new o("a function is required");var E=d(t,c,arguments);return l(E,1+p(0,x.length-(arguments.length-1)),!0)};var g=function(){return d(t,u,arguments)};h?h(r.exports,"apply",{value:g}):r.exports.apply=g}(Bd)),Bd.exports}var Id,w0;function Pn(){if(w0)return Id;w0=1;var r=un(),t=Hi(),a=t(r("String.prototype.indexOf"));return Id=function(o,u){var c=r(o,!!u);return typeof c=="function"&&a(o,".prototype.")>-1?t(c):c},Id}var qd,x0;function zw(){if(x0)return qd;x0=1;var r=tm(),t=wu()(),a=Pn(),l=Object,o=a("Array.prototype.push"),u=a("Object.prototype.propertyIsEnumerable"),c=t?Object.getOwnPropertySymbols:null;return qd=function(h,p){if(h==null)throw new TypeError("target must be an object");var g=l(h);if(arguments.length===1)return g;for(var v=1;v<arguments.length;++v){var x=l(arguments[v]),E=r(x),N=t&&(Object.getOwnPropertySymbols||c);if(N)for(var _=N(x),z=0;z<_.length;++z){var H=_[z];u(x,H)&&o(E,H)}for(var G=0;G<E.length;++G){var k=E[G];if(u(x,k)){var Z=x[k];g[k]=Z}}}return g},qd}var Ud,O0;function Pw(){if(O0)return Ud;O0=1;var r=zw(),t=function(){if(!Object.assign)return!1;for(var l="abcdefghijklmnopqrst",o=l.split(""),u={},c=0;c<o.length;++c)u[o[c]]=o[c];var d=Object.assign({},u),h="";for(var p in d)h+=p;return l!==h},a=function(){if(!Object.assign||!Object.preventExtensions)return!1;var l=Object.preventExtensions({1:2});try{Object.assign(l,"xy")}catch{return l[1]==="y"}return!1};return Ud=function(){return!Object.assign||t()||a()?r:Object.assign},Ud}var Gd,T0;function r_(){if(T0)return Gd;T0=1;var r=qa(),t=Pw();return Gd=function(){var l=t();return r(Object,{assign:l},{assign:function(){return Object.assign!==l}}),l},Gd}var Vd,E0;function a_(){if(E0)return Vd;E0=1;var r=qa(),t=Hi(),a=zw(),l=Pw(),o=r_(),u=t.apply(l()),c=function(h,p){return u(Object,arguments)};return r(c,{getPolyfill:l,implementation:a,shim:o}),Vd=c,Vd}var Wd,C0;function i_(){if(C0)return Wd;C0=1;var r=function(){return typeof(function(){}).name=="string"},t=Object.getOwnPropertyDescriptor;if(t)try{t([],"length")}catch{t=null}r.functionsHaveConfigurableNames=function(){if(!r()||!t)return!1;var o=t(function(){},"name");return!!o&&!!o.configurable};var a=Function.prototype.bind;return r.boundFunctionsHaveNames=function(){return r()&&typeof a=="function"&&(function(){}).bind().name!==""},Wd=r,Wd}var Yd,R0;function l_(){if(R0)return Yd;R0=1;var r=am(),t=xu()(),a=i_().functionsHaveConfigurableNames(),l=TypeError;return Yd=function(u,c){if(typeof u!="function")throw new l("`fn` is not a function");var d=arguments.length>2&&!!arguments[2];return(!d||a)&&(t?r(u,"name",c,!0,!0):r(u,"name",c)),u},Yd}var Xd,_0;function Hw(){if(_0)return Xd;_0=1;var r=l_(),t=Object,a=TypeError;return Xd=r(function(){if(this!=null&&this!==t(this))throw new a("RegExp.prototype.flags getter called on non-object");var o="";return this.hasIndices&&(o+="d"),this.global&&(o+="g"),this.ignoreCase&&(o+="i"),this.multiline&&(o+="m"),this.dotAll&&(o+="s"),this.unicode&&(o+="u"),this.unicodeSets&&(o+="v"),this.sticky&&(o+="y"),o},"get flags",!0),Xd}var Fd,j0;function kw(){if(j0)return Fd;j0=1;var r=Hw(),t=qa().supportsDescriptors,a=Object.getOwnPropertyDescriptor;return Fd=function(){if(t&&/a/mig.flags==="gim"){var o=a(RegExp.prototype,"flags");if(o&&typeof o.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var u="",c={};if(Object.defineProperty(c,"hasIndices",{get:function(){u+="d"}}),Object.defineProperty(c,"sticky",{get:function(){u+="y"}}),u==="dy")return o.get}}return r},Fd}var Qd,A0;function o_(){if(A0)return Qd;A0=1;var r=qa().supportsDescriptors,t=kw(),a=Object.getOwnPropertyDescriptor,l=Object.defineProperty,o=TypeError,u=Object.getPrototypeOf,c=/a/;return Qd=function(){if(!r||!u)throw new o("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var h=t(),p=u(c),g=a(p,"flags");return(!g||g.get!==h)&&l(p,"flags",{configurable:!0,enumerable:!1,get:h}),h},Qd}var Zd,M0;function s_(){if(M0)return Zd;M0=1;var r=qa(),t=Hi(),a=Hw(),l=kw(),o=o_(),u=t(l());return r(u,{getPolyfill:l,implementation:a,shim:o}),Zd=u,Zd}var ql={exports:{}},Kd,N0;function Ua(){if(N0)return Kd;N0=1;var r=wu();return Kd=function(){return r()&&!!Symbol.toStringTag},Kd}var Jd,D0;function Bw(){if(D0)return Jd;D0=1;var r=Ua()(),t=Pn(),a=t("Object.prototype.toString"),l=function(d){return r&&d&&typeof d=="object"&&Symbol.toStringTag in d?!1:a(d)==="[object Arguments]"},o=function(d){return l(d)?!0:d!==null&&typeof d=="object"&&typeof d.length=="number"&&d.length>=0&&a(d)!=="[object Array]"&&a(d.callee)==="[object Function]"},u=function(){return l(arguments)}();return l.isLegacyArguments=o,Jd=u?l:o,Jd}const u_={},c_=Object.freeze(Object.defineProperty({__proto__:null,default:u_},Symbol.toStringTag,{value:"Module"})),f_=X1(c_);var eh,L0;function Ou(){if(L0)return eh;L0=1;var r=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=r&&t&&typeof t.get=="function"?t.get:null,l=r&&Map.prototype.forEach,o=typeof Set=="function"&&Set.prototype,u=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=o&&u&&typeof u.get=="function"?u.get:null,d=o&&Set.prototype.forEach,h=typeof WeakMap=="function"&&WeakMap.prototype,p=h?WeakMap.prototype.has:null,g=typeof WeakSet=="function"&&WeakSet.prototype,v=g?WeakSet.prototype.has:null,x=typeof WeakRef=="function"&&WeakRef.prototype,E=x?WeakRef.prototype.deref:null,N=Boolean.prototype.valueOf,_=Object.prototype.toString,z=Function.prototype.toString,H=String.prototype.match,G=String.prototype.slice,k=String.prototype.replace,Z=String.prototype.toUpperCase,A=String.prototype.toLowerCase,j=RegExp.prototype.test,P=Array.prototype.concat,F=Array.prototype.join,D=Array.prototype.slice,T=Math.floor,X=typeof BigInt=="function"?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,$=typeof Symbol=="function"&&typeof Symbol.iterator=="object",U=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===$||!0)?Symbol.toStringTag:null,L=Object.prototype.propertyIsEnumerable,b=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ie){return ie.__proto__}:null);function te(ie,se){if(ie===1/0||ie===-1/0||ie!==ie||ie&&ie>-1e3&&ie<1e3||j.call(/e/,se))return se;var Ve=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ie=="number"){var Xe=ie<0?-T(-ie):T(ie);if(Xe!==ie){var Ze=String(Xe),ze=G.call(se,Ze.length+1);return k.call(Ze,Ve,"$&_")+"."+k.call(k.call(ze,/([0-9]{3})/g,"$&_"),/_$/,"")}}return k.call(se,Ve,"$&_")}var R=f_,y=R.custom,C=Se(y)?y:null,W={__proto__:null,double:'"',single:"'"},J={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};eh=function ie(se,Ve,Xe,Ze){var ze=Ve||{};if(be(ze,"quoteStyle")&&!be(W,ze.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(be(ze,"maxStringLength")&&(typeof ze.maxStringLength=="number"?ze.maxStringLength<0&&ze.maxStringLength!==1/0:ze.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var qt=be(ze,"customInspect")?ze.customInspect:!0;if(typeof qt!="boolean"&&qt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(be(ze,"indent")&&ze.indent!==null&&ze.indent!==" "&&!(parseInt(ze.indent,10)===ze.indent&&ze.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(be(ze,"numericSeparator")&&typeof ze.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var tr=ze.numericSeparator;if(typeof se>"u")return"undefined";if(se===null)return"null";if(typeof se=="boolean")return se?"true":"false";if(typeof se=="string")return Be(se,ze);if(typeof se=="number"){if(se===0)return 1/0/se>0?"0":"-0";var Ht=String(se);return tr?te(se,Ht):Ht}if(typeof se=="bigint"){var jn=String(se)+"n";return tr?te(se,jn):jn}var ha=typeof ze.depth>"u"?5:ze.depth;if(typeof Xe>"u"&&(Xe=0),Xe>=ha&&ha>0&&typeof se=="object")return ne(se)?"[Array]":"[Object]";var Hn=Ga(ze,Xe);if(typeof Ze>"u")Ze=[];else if(Ee(Ze,se)>=0)return"[Circular]";function Ut(rr,ma,ar){if(ma&&(Ze=D.call(Ze),Ze.push(ma)),ar){var ir={depth:ze.depth};return be(ze,"quoteStyle")&&(ir.quoteStyle=ze.quoteStyle),ie(rr,ir,Xe+1,Ze)}return ie(rr,ze,Xe+1,Ze)}if(typeof se=="function"&&!me(se)){var Po=Pe(se),An=cn(se,Ut);return"[Function"+(Po?": "+Po:" (anonymous)")+"]"+(An.length>0?" { "+F.call(An,", ")+" }":"")}if(Se(se)){var Tt=$?k.call(String(se),/^(Symbol\(.*\))_[^)]*$/,"$1"):q.call(se);return typeof se=="object"&&!$?dt(Tt):Tt}if(Ae(se)){for(var wt="<"+A.call(String(se.nodeName)),kn=se.attributes||[],Dr=0;Dr<kn.length;Dr++)wt+=" "+kn[Dr].name+"="+B(Q(kn[Dr].value),"double",ze);return wt+=">",se.childNodes&&se.childNodes.length&&(wt+="..."),wt+="</"+A.call(String(se.nodeName))+">",wt}if(ne(se)){if(se.length===0)return"[]";var Gi=cn(se,Ut);return Hn&&!Du(Gi)?"["+Nr(Gi,Hn)+"]":"[ "+F.call(Gi,", ")+" ]"}if(he(se)){var Vi=cn(se,Ut);return!("cause"in Error.prototype)&&"cause"in se&&!L.call(se,"cause")?"{ ["+String(se)+"] "+F.call(P.call("[cause]: "+Ut(se.cause),Vi),", ")+" }":Vi.length===0?"["+String(se)+"]":"{ ["+String(se)+"] "+F.call(Vi,", ")+" }"}if(typeof se=="object"&&qt){if(C&&typeof se[C]=="function"&&R)return R(se,{depth:ha-Xe});if(qt!=="symbol"&&typeof se.inspect=="function")return se.inspect()}if(ke(se)){var Wi=[];return l&&l.call(se,function(rr,ma){Wi.push(Ut(ma,se,!0)+" => "+Ut(rr,se))}),zo("Map",a.call(se),Wi,Hn)}if(yt(se)){var Lr=[];return d&&d.call(se,function(rr){Lr.push(Ut(rr,se))}),zo("Set",c.call(se),Lr,Hn)}if(ot(se))return Ui("WeakMap");if(Nt(se))return Ui("WeakSet");if(ft(se))return Ui("WeakRef");if(pe(se))return dt(Ut(Number(se)));if(ye(se))return dt(Ut(X.call(se)));if(ge(se))return dt(N.call(se));if(ve(se))return dt(Ut(String(se)));if(typeof window<"u"&&se===window)return"{ [object Window] }";if(typeof globalThis<"u"&&se===globalThis||typeof xr<"u"&&se===xr)return"{ [object globalThis] }";if(!ue(se)&&!me(se)){var pa=cn(se,Ut),nr=b?b(se)===Object.prototype:se instanceof Object||se.constructor===Object,Bn=se instanceof Object?"":"null prototype",zr=!nr&&U&&Object(se)===se&&U in se?G.call(Le(se),8,-1):Bn?"Object":"",Pr=nr||typeof se.constructor!="function"?"":se.constructor.name?se.constructor.name+" ":"",ht=Pr+(zr||Bn?"["+F.call(P.call([],zr||[],Bn||[]),": ")+"] ":"");return pa.length===0?ht+"{}":Hn?ht+"{"+Nr(pa,Hn)+"}":ht+"{ "+F.call(pa,", ")+" }"}return String(se)};function B(ie,se,Ve){var Xe=Ve.quoteStyle||se,Ze=W[Xe];return Ze+ie+Ze}function Q(ie){return k.call(String(ie),/"/g,"&quot;")}function V(ie){return!U||!(typeof ie=="object"&&(U in ie||typeof ie[U]<"u"))}function ne(ie){return Le(ie)==="[object Array]"&&V(ie)}function ue(ie){return Le(ie)==="[object Date]"&&V(ie)}function me(ie){return Le(ie)==="[object RegExp]"&&V(ie)}function he(ie){return Le(ie)==="[object Error]"&&V(ie)}function ve(ie){return Le(ie)==="[object String]"&&V(ie)}function pe(ie){return Le(ie)==="[object Number]"&&V(ie)}function ge(ie){return Le(ie)==="[object Boolean]"&&V(ie)}function Se(ie){if($)return ie&&typeof ie=="object"&&ie instanceof Symbol;if(typeof ie=="symbol")return!0;if(!ie||typeof ie!="object"||!q)return!1;try{return q.call(ie),!0}catch{}return!1}function ye(ie){if(!ie||typeof ie!="object"||!X)return!1;try{return X.call(ie),!0}catch{}return!1}var Re=Object.prototype.hasOwnProperty||function(ie){return ie in this};function be(ie,se){return Re.call(ie,se)}function Le(ie){return _.call(ie)}function Pe(ie){if(ie.name)return ie.name;var se=H.call(z.call(ie),/^function\s*([\w$]+)/);return se?se[1]:null}function Ee(ie,se){if(ie.indexOf)return ie.indexOf(se);for(var Ve=0,Xe=ie.length;Ve<Xe;Ve++)if(ie[Ve]===se)return Ve;return-1}function ke(ie){if(!a||!ie||typeof ie!="object")return!1;try{a.call(ie);try{c.call(ie)}catch{return!0}return ie instanceof Map}catch{}return!1}function ot(ie){if(!p||!ie||typeof ie!="object")return!1;try{p.call(ie,p);try{v.call(ie,v)}catch{return!0}return ie instanceof WeakMap}catch{}return!1}function ft(ie){if(!E||!ie||typeof ie!="object")return!1;try{return E.call(ie),!0}catch{}return!1}function yt(ie){if(!c||!ie||typeof ie!="object")return!1;try{c.call(ie);try{a.call(ie)}catch{return!0}return ie instanceof Set}catch{}return!1}function Nt(ie){if(!v||!ie||typeof ie!="object")return!1;try{v.call(ie,v);try{p.call(ie,p)}catch{return!0}return ie instanceof WeakSet}catch{}return!1}function Ae(ie){return!ie||typeof ie!="object"?!1:typeof HTMLElement<"u"&&ie instanceof HTMLElement?!0:typeof ie.nodeName=="string"&&typeof ie.getAttribute=="function"}function Be(ie,se){if(ie.length>se.maxStringLength){var Ve=ie.length-se.maxStringLength,Xe="... "+Ve+" more character"+(Ve>1?"s":"");return Be(G.call(ie,0,se.maxStringLength),se)+Xe}var Ze=J[se.quoteStyle||"single"];Ze.lastIndex=0;var ze=k.call(k.call(ie,Ze,"\\$1"),/[\x00-\x1f]/g,nt);return B(ze,"single",se)}function nt(ie){var se=ie.charCodeAt(0),Ve={8:"b",9:"t",10:"n",12:"f",13:"r"}[se];return Ve?"\\"+Ve:"\\x"+(se<16?"0":"")+Z.call(se.toString(16))}function dt(ie){return"Object("+ie+")"}function Ui(ie){return ie+" { ? }"}function zo(ie,se,Ve,Xe){var Ze=Xe?Nr(Ve,Xe):F.call(Ve,", ");return ie+" ("+se+") {"+Ze+"}"}function Du(ie){for(var se=0;se<ie.length;se++)if(Ee(ie[se],`
61
+ `)>=0)return!1;return!0}function Ga(ie,se){var Ve;if(ie.indent===" ")Ve=" ";else if(typeof ie.indent=="number"&&ie.indent>0)Ve=F.call(Array(ie.indent+1)," ");else return null;return{base:Ve,prev:F.call(Array(se+1),Ve)}}function Nr(ie,se){if(ie.length===0)return"";var Ve=`
62
+ `+se.prev+se.base;return Ve+F.call(ie,","+Ve)+`
63
+ `+se.prev}function cn(ie,se){var Ve=ne(ie),Xe=[];if(Ve){Xe.length=ie.length;for(var Ze=0;Ze<ie.length;Ze++)Xe[Ze]=be(ie,Ze)?se(ie[Ze],ie):""}var ze=typeof I=="function"?I(ie):[],qt;if($){qt={};for(var tr=0;tr<ze.length;tr++)qt["$"+ze[tr]]=ze[tr]}for(var Ht in ie)be(ie,Ht)&&(Ve&&String(Number(Ht))===Ht&&Ht<ie.length||$&&qt["$"+Ht]instanceof Symbol||(j.call(/[^\w$]/,Ht)?Xe.push(se(Ht,ie)+": "+se(ie[Ht],ie)):Xe.push(Ht+": "+se(ie[Ht],ie))));if(typeof I=="function")for(var jn=0;jn<ze.length;jn++)L.call(ie,ze[jn])&&Xe.push("["+se(ze[jn])+"]: "+se(ie[ze[jn]],ie));return Xe}return eh}var th,z0;function d_(){if(z0)return th;z0=1;var r=Ou(),t=Pi(),a=function(d,h,p){for(var g=d,v;(v=g.next)!=null;g=v)if(v.key===h)return g.next=v.next,p||(v.next=d.next,d.next=v),v},l=function(d,h){if(d){var p=a(d,h);return p&&p.value}},o=function(d,h,p){var g=a(d,h);g?g.value=p:d.next={key:h,next:d.next,value:p}},u=function(d,h){return d?!!a(d,h):!1},c=function(d,h){if(d)return a(d,h,!0)};return th=function(){var h,p={assert:function(g){if(!p.has(g))throw new t("Side channel does not contain "+r(g))},delete:function(g){var v=h&&h.next,x=c(h,g);return x&&v&&v===x&&(h=void 0),!!x},get:function(g){return l(h,g)},has:function(g){return u(h,g)},set:function(g,v){h||(h={next:void 0}),o(h,g,v)}};return p},th}var nh,P0;function $w(){if(P0)return nh;P0=1;var r=un(),t=Dw(),a=t([r("%String.prototype.indexOf%")]);return nh=function(o,u){var c=r(o,!!u);return typeof c=="function"&&a(o,".prototype.")>-1?t([c]):c},nh}var rh,H0;function Iw(){if(H0)return rh;H0=1;var r=un(),t=$w(),a=Ou(),l=Pi(),o=r("%Map%",!0),u=t("Map.prototype.get",!0),c=t("Map.prototype.set",!0),d=t("Map.prototype.has",!0),h=t("Map.prototype.delete",!0),p=t("Map.prototype.size",!0);return rh=!!o&&function(){var v,x={assert:function(E){if(!x.has(E))throw new l("Side channel does not contain "+a(E))},delete:function(E){if(v){var N=h(v,E);return p(v)===0&&(v=void 0),N}return!1},get:function(E){if(v)return u(v,E)},has:function(E){return v?d(v,E):!1},set:function(E,N){v||(v=new o),c(v,E,N)}};return x},rh}var ah,k0;function h_(){if(k0)return ah;k0=1;var r=un(),t=$w(),a=Ou(),l=Iw(),o=Pi(),u=r("%WeakMap%",!0),c=t("WeakMap.prototype.get",!0),d=t("WeakMap.prototype.set",!0),h=t("WeakMap.prototype.has",!0),p=t("WeakMap.prototype.delete",!0);return ah=u?function(){var v,x,E={assert:function(N){if(!E.has(N))throw new o("Side channel does not contain "+a(N))},delete:function(N){if(u&&N&&(typeof N=="object"||typeof N=="function")){if(v)return p(v,N)}else if(l&&x)return x.delete(N);return!1},get:function(N){return u&&N&&(typeof N=="object"||typeof N=="function")&&v?c(v,N):x&&x.get(N)},has:function(N){return u&&N&&(typeof N=="object"||typeof N=="function")&&v?h(v,N):!!x&&x.has(N)},set:function(N,_){u&&N&&(typeof N=="object"||typeof N=="function")?(v||(v=new u),d(v,N,_)):l&&(x||(x=l()),x.set(N,_))}};return E}:l,ah}var ih,B0;function qw(){if(B0)return ih;B0=1;var r=Pi(),t=Ou(),a=d_(),l=Iw(),o=h_(),u=o||l||a;return ih=function(){var d,h={assert:function(p){if(!h.has(p))throw new r("Side channel does not contain "+t(p))},delete:function(p){return!!d&&d.delete(p)},get:function(p){return d&&d.get(p)},has:function(p){return!!d&&d.has(p)},set:function(p,g){d||(d=u()),d.set(p,g)}};return h},ih}var lh,$0;function p_(){if($0)return lh;$0=1;var r=un(),t=Lw(),a=qw()(),l=r("%TypeError%"),o={assert:function(u,c){if(!u||typeof u!="object"&&typeof u!="function")throw new l("`O` is not an object");if(typeof c!="string")throw new l("`slot` must be a string");if(a.assert(u),!o.has(u,c))throw new l("`"+c+"` is not present on `O`")},get:function(u,c){if(!u||typeof u!="object"&&typeof u!="function")throw new l("`O` is not an object");if(typeof c!="string")throw new l("`slot` must be a string");var d=a.get(u);return d&&d["$"+c]},has:function(u,c){if(!u||typeof u!="object"&&typeof u!="function")throw new l("`O` is not an object");if(typeof c!="string")throw new l("`slot` must be a string");var d=a.get(u);return!!d&&t(d,"$"+c)},set:function(u,c,d){if(!u||typeof u!="object"&&typeof u!="function")throw new l("`O` is not an object");if(typeof c!="string")throw new l("`slot` must be a string");var h=a.get(u);h||(h={},a.set(u,h)),h["$"+c]=d}};return Object.freeze&&Object.freeze(o),lh=o,lh}var oh,I0;function m_(){if(I0)return oh;I0=1;var r=p_(),t=SyntaxError,a=typeof StopIteration=="object"?StopIteration:null;return oh=function(o){if(!a)throw new t("this environment lacks StopIteration");r.set(o,"[[Done]]",!1);var u={next:function(){var d=r.get(this,"[[Iterator]]"),h=r.get(d,"[[Done]]");try{return{done:h,value:h?void 0:d.next()}}catch(p){if(r.set(d,"[[Done]]",!0),p!==a)throw p;return{done:!0,value:void 0}}}};return r.set(u,"[[Iterator]]",o),u},oh}var sh,q0;function g_(){if(q0)return sh;q0=1;var r={}.toString;return sh=Array.isArray||function(t){return r.call(t)=="[object Array]"},sh}var uh,U0;function Uw(){if(U0)return uh;U0=1;var r=String.prototype.valueOf,t=function(c){try{return r.call(c),!0}catch{return!1}},a=Object.prototype.toString,l="[object String]",o=Ua()();return uh=function(c){return typeof c=="string"?!0:typeof c!="object"?!1:o?t(c):a.call(c)===l},uh}var ch,G0;function Gw(){if(G0)return ch;G0=1;var r=typeof Map=="function"&&Map.prototype?Map:null,t=typeof Set=="function"&&Set.prototype?Set:null,a;r||(a=function(c){return!1});var l=r?Map.prototype.has:null,o=t?Set.prototype.has:null;return!a&&!l&&(a=function(c){return!1}),ch=a||function(c){if(!c||typeof c!="object")return!1;try{if(l.call(c),o)try{o.call(c)}catch{return!0}return c instanceof r}catch{}return!1},ch}var fh,V0;function Vw(){if(V0)return fh;V0=1;var r=typeof Map=="function"&&Map.prototype?Map:null,t=typeof Set=="function"&&Set.prototype?Set:null,a;t||(a=function(c){return!1});var l=r?Map.prototype.has:null,o=t?Set.prototype.has:null;return!a&&!o&&(a=function(c){return!1}),fh=a||function(c){if(!c||typeof c!="object")return!1;try{if(o.call(c),l)try{l.call(c)}catch{return!0}return c instanceof t}catch{}return!1},fh}var W0;function v_(){if(W0)return ql.exports;W0=1;var r=Bw(),t=m_();if(nm()()||wu()()){var a=Symbol.iterator;ql.exports=function(D){if(D!=null&&typeof D[a]<"u")return D[a]();if(r(D))return Array.prototype[a].call(D)}}else{var l=g_(),o=Uw(),u=un(),c=u("%Map%",!0),d=u("%Set%",!0),h=Pn(),p=h("Array.prototype.push"),g=h("String.prototype.charCodeAt"),v=h("String.prototype.slice"),x=function(D,T){var X=D.length;if(T+1>=X)return T+1;var I=g(D,T);if(I<55296||I>56319)return T+1;var q=g(D,T+1);return q<56320||q>57343?T+1:T+2},E=function(D){var T=0;return{next:function(){var I=T>=D.length,q;return I||(q=D[T],T+=1),{done:I,value:q}}}},N=function(D,T){if(l(D)||r(D))return E(D);if(o(D)){var X=0;return{next:function(){var q=x(D,X),$=v(D,X,q);return X=q,{done:q>D.length,value:$}}}}if(T&&typeof D["_es6-shim iterator_"]<"u")return D["_es6-shim iterator_"]()};if(!c&&!d)ql.exports=function(D){if(D!=null)return N(D,!0)};else{var _=Gw(),z=Vw(),H=h("Map.prototype.forEach",!0),G=h("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var k=h("Map.prototype.iterator",!0),Z=h("Set.prototype.iterator",!0);var A=h("Map.prototype.@@iterator",!0)||h("Map.prototype._es6-shim iterator_",!0),j=h("Set.prototype.@@iterator",!0)||h("Set.prototype._es6-shim iterator_",!0),P=function(D){if(_(D)){if(k)return t(k(D));if(A)return A(D);if(H){var T=[];return H(D,function(I,q){p(T,[q,I])}),E(T)}}if(z(D)){if(Z)return t(Z(D));if(j)return j(D);if(G){var X=[];return G(D,function(I){p(X,I)}),E(X)}}};ql.exports=function(D){return P(D)||N(D)}}}return ql.exports}var dh,Y0;function Ww(){if(Y0)return dh;Y0=1;var r=function(t){return t!==t};return dh=function(a,l){return a===0&&l===0?1/a===1/l:!!(a===l||r(a)&&r(l))},dh}var hh,X0;function Yw(){if(X0)return hh;X0=1;var r=Ww();return hh=function(){return typeof Object.is=="function"?Object.is:r},hh}var ph,F0;function y_(){if(F0)return ph;F0=1;var r=Yw(),t=qa();return ph=function(){var l=r();return t(Object,{is:l},{is:function(){return Object.is!==l}}),l},ph}var mh,Q0;function b_(){if(Q0)return mh;Q0=1;var r=qa(),t=Hi(),a=Ww(),l=Yw(),o=y_(),u=t(l(),Object);return r(u,{getPolyfill:l,implementation:a,shim:o}),mh=u,mh}var gh,Z0;function S_(){if(Z0)return gh;Z0=1;var r={}.toString;return gh=Array.isArray||function(t){return r.call(t)=="[object Array]"},gh}var vh,K0;function w_(){if(K0)return vh;K0=1;var r=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,a,l;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{a=Object.defineProperty({},"length",{get:function(){throw l}}),l={},t(function(){throw 42},null,a)}catch(G){G!==l&&(t=null)}else t=null;var o=/^\s*class\b/,u=function(k){try{var Z=r.call(k);return o.test(Z)}catch{return!1}},c=function(k){try{return u(k)?!1:(r.call(k),!0)}catch{return!1}},d=Object.prototype.toString,h="[object Object]",p="[object Function]",g="[object GeneratorFunction]",v="[object HTMLAllCollection]",x="[object HTML document.all class]",E="[object HTMLCollection]",N=typeof Symbol=="function"&&!!Symbol.toStringTag,_=!(0 in[,]),z=function(){return!1};if(typeof document=="object"){var H=document.all;d.call(H)===d.call(document.all)&&(z=function(k){if((_||!k)&&(typeof k>"u"||typeof k=="object"))try{var Z=d.call(k);return(Z===v||Z===x||Z===E||Z===h)&&k("")==null}catch{}return!1})}return vh=t?function(k){if(z(k))return!0;if(!k||typeof k!="function"&&typeof k!="object")return!1;try{t(k,null,a)}catch(Z){if(Z!==l)return!1}return!u(k)&&c(k)}:function(k){if(z(k))return!0;if(!k||typeof k!="function"&&typeof k!="object")return!1;if(N)return c(k);if(u(k))return!1;var Z=d.call(k);return Z!==p&&Z!==g&&!/^\[object HTML/.test(Z)?!1:c(k)},vh}var yh,J0;function x_(){if(J0)return yh;J0=1;var r=w_(),t=Object.prototype.toString,a=Object.prototype.hasOwnProperty,l=function(h,p,g){for(var v=0,x=h.length;v<x;v++)a.call(h,v)&&(g==null?p(h[v],v,h):p.call(g,h[v],v,h))},o=function(h,p,g){for(var v=0,x=h.length;v<x;v++)g==null?p(h.charAt(v),v,h):p.call(g,h.charAt(v),v,h)},u=function(h,p,g){for(var v in h)a.call(h,v)&&(g==null?p(h[v],v,h):p.call(g,h[v],v,h))},c=function(h,p,g){if(!r(p))throw new TypeError("iterator must be a function");var v;arguments.length>=3&&(v=g),t.call(h)==="[object Array]"?l(h,p,v):typeof h=="string"?o(h,p,v):u(h,p,v)};return yh=c,yh}var bh,eS;function O_(){if(eS)return bh;eS=1;var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],t=typeof globalThis>"u"?xr:globalThis;return bh=function(){for(var l=[],o=0;o<r.length;o++)typeof t[r[o]]=="function"&&(l[l.length]=r[o]);return l},bh}var Sh,tS;function Xw(){if(tS)return Sh;tS=1;var r=x_(),t=O_(),a=Hi(),l=Pn(),o=To(),u=l("Object.prototype.toString"),c=Ua()(),d=typeof globalThis>"u"?xr:globalThis,h=t(),p=l("String.prototype.slice"),g=Object.getPrototypeOf,v=l("Array.prototype.indexOf",!0)||function(z,H){for(var G=0;G<z.length;G+=1)if(z[G]===H)return G;return-1},x={__proto__:null};c&&o&&g?r(h,function(_){var z=new d[_];if(Symbol.toStringTag in z){var H=g(z),G=o(H,Symbol.toStringTag);if(!G){var k=g(H);G=o(k,Symbol.toStringTag)}x["$"+_]=a(G.get)}}):r(h,function(_){var z=new d[_],H=z.slice||z.set;H&&(x["$"+_]=a(H))});var E=function(z){var H=!1;return r(x,function(G,k){if(!H)try{"$"+G(z)===k&&(H=p(k,1))}catch{}}),H},N=function(z){var H=!1;return r(x,function(G,k){if(!H)try{G(z),H=p(k,1)}catch{}}),H};return Sh=function(z){if(!z||typeof z!="object")return!1;if(!c){var H=p(u(z),8,-1);return v(h,H)>-1?H:H!=="Object"?!1:N(z)}return o?E(z):null},Sh}var wh,nS;function T_(){if(nS)return wh;nS=1;var r=Xw();return wh=function(a){return!!r(a)},wh}var xh,rS;function Fw(){if(rS)return xh;rS=1;var r=Hi(),t=Pn(),a=un(),l=T_(),o=a("ArrayBuffer",!0),u=a("Float32Array",!0),c=t("ArrayBuffer.prototype.byteLength",!0),d=o&&!c&&new o().slice,h=d&&r(d);return xh=c||h?function(g){if(!g||typeof g!="object")return!1;try{return c?c(g):h(g,0),!0}catch{return!1}}:u?function(g){try{return new u(g).buffer===g&&!l(g)}catch(v){return typeof g=="object"&&v.name==="RangeError"}}:function(g){return!1},xh}var Oh,aS;function E_(){if(aS)return Oh;aS=1;var r=Date.prototype.getDay,t=function(c){try{return r.call(c),!0}catch{return!1}},a=Object.prototype.toString,l="[object Date]",o=Ua()();return Oh=function(c){return typeof c!="object"||c===null?!1:o?t(c):a.call(c)===l},Oh}var Th,iS;function C_(){if(iS)return Th;iS=1;var r=Pn(),t=Ua()(),a,l,o,u;if(t){a=r("Object.prototype.hasOwnProperty"),l=r("RegExp.prototype.exec"),o={};var c=function(){throw o};u={toString:c,valueOf:c},typeof Symbol.toPrimitive=="symbol"&&(u[Symbol.toPrimitive]=c)}var d=r("Object.prototype.toString"),h=Object.getOwnPropertyDescriptor,p="[object RegExp]";return Th=t?function(v){if(!v||typeof v!="object")return!1;var x=h(v,"lastIndex"),E=x&&a(x,"value");if(!E)return!1;try{l(v,u)}catch(N){return N===o}}:function(v){return!v||typeof v!="object"&&typeof v!="function"?!1:d(v)===p},Th}var Eh,lS;function R_(){if(lS)return Eh;lS=1;var r=Pn(),t=r("SharedArrayBuffer.prototype.byteLength",!0);return Eh=t?function(l){if(!l||typeof l!="object")return!1;try{return t(l),!0}catch{return!1}}:function(l){return!1},Eh}var Ch,oS;function __(){if(oS)return Ch;oS=1;var r=Number.prototype.toString,t=function(c){try{return r.call(c),!0}catch{return!1}},a=Object.prototype.toString,l="[object Number]",o=Ua()();return Ch=function(c){return typeof c=="number"?!0:typeof c!="object"?!1:o?t(c):a.call(c)===l},Ch}var Rh,sS;function j_(){if(sS)return Rh;sS=1;var r=Pn(),t=r("Boolean.prototype.toString"),a=r("Object.prototype.toString"),l=function(d){try{return t(d),!0}catch{return!1}},o="[object Boolean]",u=Ua()();return Rh=function(d){return typeof d=="boolean"?!0:d===null||typeof d!="object"?!1:u&&Symbol.toStringTag in d?l(d):a(d)===o},Rh}var Xs={exports:{}},uS;function A_(){if(uS)return Xs.exports;uS=1;var r=Object.prototype.toString,t=nm()();if(t){var a=Symbol.prototype.toString,l=/^Symbol\(.*\)$/,o=function(c){return typeof c.valueOf()!="symbol"?!1:l.test(a.call(c))};Xs.exports=function(c){if(typeof c=="symbol")return!0;if(r.call(c)!=="[object Symbol]")return!1;try{return o(c)}catch{return!1}}}else Xs.exports=function(c){return!1};return Xs.exports}var Fs={exports:{}},_h,cS;function M_(){if(cS)return _h;cS=1;var r=typeof BigInt<"u"&&BigInt;return _h=function(){return typeof r=="function"&&typeof BigInt=="function"&&typeof r(42)=="bigint"&&typeof BigInt(42)=="bigint"},_h}var fS;function N_(){if(fS)return Fs.exports;fS=1;var r=M_()();if(r){var t=BigInt.prototype.valueOf,a=function(o){try{return t.call(o),!0}catch{}return!1};Fs.exports=function(o){return o===null||typeof o>"u"||typeof o=="boolean"||typeof o=="string"||typeof o=="number"||typeof o=="symbol"||typeof o=="function"?!1:typeof o=="bigint"?!0:a(o)}}else Fs.exports=function(o){return!1};return Fs.exports}var jh,dS;function D_(){if(dS)return jh;dS=1;var r=Uw(),t=__(),a=j_(),l=A_(),o=N_();return jh=function(c){if(c==null||typeof c!="object"&&typeof c!="function")return null;if(r(c))return"String";if(t(c))return"Number";if(a(c))return"Boolean";if(l(c))return"Symbol";if(o(c))return"BigInt"},jh}var Ah,hS;function L_(){if(hS)return Ah;hS=1;var r=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,t=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,a;r||(a=function(c){return!1});var l=r?r.prototype.has:null,o=t?t.prototype.has:null;return!a&&!l&&(a=function(c){return!1}),Ah=a||function(c){if(!c||typeof c!="object")return!1;try{if(l.call(c,l),o)try{o.call(c,o)}catch{return!0}return c instanceof r}catch{}return!1},Ah}var Qs={exports:{}},pS;function z_(){if(pS)return Qs.exports;pS=1;var r=un(),t=Pn(),a=r("%WeakSet%",!0),l=t("WeakSet.prototype.has",!0);if(l){var o=t("WeakMap.prototype.has",!0);Qs.exports=function(c){if(!c||typeof c!="object")return!1;try{if(l(c,l),o)try{o(c,o)}catch{return!0}return c instanceof a}catch{}return!1}}else Qs.exports=function(c){return!1};return Qs.exports}var Mh,mS;function P_(){if(mS)return Mh;mS=1;var r=Gw(),t=Vw(),a=L_(),l=z_();return Mh=function(u){if(u&&typeof u=="object"){if(r(u))return"Map";if(t(u))return"Set";if(a(u))return"WeakMap";if(l(u))return"WeakSet"}return!1},Mh}var Nh,gS;function H_(){if(gS)return Nh;gS=1;var r=Pn(),t=r("ArrayBuffer.prototype.byteLength",!0),a=Fw();return Nh=function(o){return a(o)?t?t(o):o.byteLength:NaN},Nh}var Dh,vS;function k_(){if(vS)return Dh;vS=1;var r=a_(),t=Pn(),a=s_(),l=un(),o=v_(),u=qw(),c=b_(),d=Bw(),h=S_(),p=Fw(),g=E_(),v=C_(),x=R_(),E=tm(),N=D_(),_=P_(),z=Xw(),H=H_(),G=t("SharedArrayBuffer.prototype.byteLength",!0),k=t("Date.prototype.getTime"),Z=Object.getPrototypeOf,A=t("Object.prototype.toString"),j=l("%Set%",!0),P=t("Map.prototype.has",!0),F=t("Map.prototype.get",!0),D=t("Map.prototype.size",!0),T=t("Set.prototype.add",!0),X=t("Set.prototype.delete",!0),I=t("Set.prototype.has",!0),q=t("Set.prototype.size",!0);function $(B,Q,V,ne){for(var ue=o(B),me;(me=ue.next())&&!me.done;)if(R(Q,me.value,V,ne))return X(B,me.value),!0;return!1}function U(B){if(typeof B>"u")return null;if(typeof B!="object")return typeof B=="symbol"?!1:typeof B=="string"||typeof B=="number"?+B==+B:!0}function L(B,Q,V,ne,ue,me){var he=U(V);if(he!=null)return he;var ve=F(Q,he),pe=r({},ue,{strict:!1});return typeof ve>"u"&&!P(Q,he)||!R(ne,ve,pe,me)?!1:!P(B,he)&&R(ne,ve,pe,me)}function b(B,Q,V){var ne=U(V);return ne??(I(Q,ne)&&!I(B,ne))}function te(B,Q,V,ne,ue,me){for(var he=o(B),ve,pe;(ve=he.next())&&!ve.done;)if(pe=ve.value,R(V,pe,ue,me)&&R(ne,F(Q,pe),ue,me))return X(B,pe),!0;return!1}function R(B,Q,V,ne){var ue=V||{};if(ue.strict?c(B,Q):B===Q)return!0;var me=N(B),he=N(Q);if(me!==he)return!1;if(!B||!Q||typeof B!="object"&&typeof Q!="object")return ue.strict?c(B,Q):B==Q;var ve=ne.has(B),pe=ne.has(Q),ge;if(ve&&pe){if(ne.get(B)===ne.get(Q))return!0}else ge={};return ve||ne.set(B,ge),pe||ne.set(Q,ge),J(B,Q,ue,ne)}function y(B){return!B||typeof B!="object"||typeof B.length!="number"||typeof B.copy!="function"||typeof B.slice!="function"||B.length>0&&typeof B[0]!="number"?!1:!!(B.constructor&&B.constructor.isBuffer&&B.constructor.isBuffer(B))}function C(B,Q,V,ne){if(q(B)!==q(Q))return!1;for(var ue=o(B),me=o(Q),he,ve,pe;(he=ue.next())&&!he.done;)if(he.value&&typeof he.value=="object")pe||(pe=new j),T(pe,he.value);else if(!I(Q,he.value)){if(V.strict||!b(B,Q,he.value))return!1;pe||(pe=new j),T(pe,he.value)}if(pe){for(;(ve=me.next())&&!ve.done;)if(ve.value&&typeof ve.value=="object"){if(!$(pe,ve.value,V.strict,ne))return!1}else if(!V.strict&&!I(B,ve.value)&&!$(pe,ve.value,V.strict,ne))return!1;return q(pe)===0}return!0}function W(B,Q,V,ne){if(D(B)!==D(Q))return!1;for(var ue=o(B),me=o(Q),he,ve,pe,ge,Se,ye;(he=ue.next())&&!he.done;)if(ge=he.value[0],Se=he.value[1],ge&&typeof ge=="object")pe||(pe=new j),T(pe,ge);else if(ye=F(Q,ge),typeof ye>"u"&&!P(Q,ge)||!R(Se,ye,V,ne)){if(V.strict||!L(B,Q,ge,Se,V,ne))return!1;pe||(pe=new j),T(pe,ge)}if(pe){for(;(ve=me.next())&&!ve.done;)if(ge=ve.value[0],ye=ve.value[1],ge&&typeof ge=="object"){if(!te(pe,B,ge,ye,V,ne))return!1}else if(!V.strict&&(!B.has(ge)||!R(F(B,ge),ye,V,ne))&&!te(pe,B,ge,ye,r({},V,{strict:!1}),ne))return!1;return q(pe)===0}return!0}function J(B,Q,V,ne){var ue,me;if(typeof B!=typeof Q||B==null||Q==null||A(B)!==A(Q)||d(B)!==d(Q))return!1;var he=h(B),ve=h(Q);if(he!==ve)return!1;var pe=B instanceof Error,ge=Q instanceof Error;if(pe!==ge||(pe||ge)&&(B.name!==Q.name||B.message!==Q.message))return!1;var Se=v(B),ye=v(Q);if(Se!==ye||(Se||ye)&&(B.source!==Q.source||a(B)!==a(Q)))return!1;var Re=g(B),be=g(Q);if(Re!==be||(Re||be)&&k(B)!==k(Q)||V.strict&&Z&&Z(B)!==Z(Q))return!1;var Le=z(B),Pe=z(Q);if(Le!==Pe)return!1;if(Le||Pe){if(B.length!==Q.length)return!1;for(ue=0;ue<B.length;ue++)if(B[ue]!==Q[ue])return!1;return!0}var Ee=y(B),ke=y(Q);if(Ee!==ke)return!1;if(Ee||ke){if(B.length!==Q.length)return!1;for(ue=0;ue<B.length;ue++)if(B[ue]!==Q[ue])return!1;return!0}var ot=p(B),ft=p(Q);if(ot!==ft)return!1;if(ot||ft)return H(B)!==H(Q)?!1:typeof Uint8Array=="function"&&R(new Uint8Array(B),new Uint8Array(Q),V,ne);var yt=x(B),Nt=x(Q);if(yt!==Nt)return!1;if(yt||Nt)return G(B)!==G(Q)?!1:typeof Uint8Array=="function"&&R(new Uint8Array(B),new Uint8Array(Q),V,ne);if(typeof B!=typeof Q)return!1;var Ae=E(B),Be=E(Q);if(Ae.length!==Be.length)return!1;for(Ae.sort(),Be.sort(),ue=Ae.length-1;ue>=0;ue--)if(Ae[ue]!=Be[ue])return!1;for(ue=Ae.length-1;ue>=0;ue--)if(me=Ae[ue],!R(B[me],Q[me],V,ne))return!1;var nt=_(B),dt=_(Q);return nt!==dt?!1:nt==="Set"||dt==="Set"?C(B,Q,V,ne):nt==="Map"?W(B,Q,V,ne):!0}return Dh=function(Q,V,ne){return R(Q,V,ne,u())},Dh}var B_=k_();const Kn=Jn(B_);var Lh={exports:{}};/*!
64
+ Copyright (c) 2018 Jed Watson.
65
+ Licensed under the MIT License (MIT), see
66
+ http://jedwatson.github.io/classnames
67
+ */var yS;function Co(){return yS||(yS=1,function(r){(function(){var t={}.hasOwnProperty;function a(){for(var u="",c=0;c<arguments.length;c++){var d=arguments[c];d&&(u=o(u,l(d)))}return u}function l(u){if(typeof u=="string"||typeof u=="number")return u;if(typeof u!="object")return"";if(Array.isArray(u))return a.apply(null,u);if(u.toString!==Object.prototype.toString&&!u.toString.toString().includes("[native code]"))return u.toString();var c="";for(var d in u)t.call(u,d)&&u[d]&&(c=o(c,d));return c}function o(u,c){return c?u?u+" "+c:u+c:u}r.exports?(a.default=a,r.exports=a):window.classNames=a})()}(Lh)),Lh.exports}var $_=Co();const Oe=Jn($_);function Cp(){return Cp=Object.assign?Object.assign.bind():function(r){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(r[l]=a[l])}return r},Cp.apply(null,arguments)}function Qw(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)!==-1)continue;a[l]=r[l]}return a}function bS(r){return"default"+r.charAt(0).toUpperCase()+r.substr(1)}function I_(r){var t=q_(r,"string");return typeof t=="symbol"?t:String(t)}function q_(r,t){if(typeof r!="object"||r===null)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var l=a.call(r,t);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}function Zw(r,t,a){var l=w.useRef(r!==void 0),o=w.useState(t),u=o[0],c=o[1],d=r!==void 0,h=l.current;return l.current=d,!d&&h&&u!==t&&c(t),[d?r:u,w.useCallback(function(p){for(var g=arguments.length,v=new Array(g>1?g-1:0),x=1;x<g;x++)v[x-1]=arguments[x];a&&a.apply(void 0,[p].concat(v)),c(p)},[a])]}function U_(r,t){return Object.keys(t).reduce(function(a,l){var o,u=a,c=u[bS(l)],d=u[l],h=Qw(u,[bS(l),l].map(I_)),p=t[l],g=Zw(d,c,r[p]),v=g[0],x=g[1];return Cp({},h,(o={},o[l]=v,o[p]=x,o))},r)}function Rp(r,t){return Rp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,l){return a.__proto__=l,a},Rp(r,t)}function G_(r,t){r.prototype=Object.create(t.prototype),r.prototype.constructor=r,Rp(r,t)}const Kw=["xxl","xl","lg","md","sm","xs"],Jw="xs",Ro=w.createContext({prefixes:{},breakpoints:Kw,minBreakpoint:Jw}),{Consumer:xN,Provider:ON}=Ro;function Ce(r,t){const{prefixes:a}=w.useContext(Ro);return r||a[t]||t}function im(){const{breakpoints:r}=w.useContext(Ro);return r}function lm(){const{minBreakpoint:r}=w.useContext(Ro);return r}function om(){const{dir:r}=w.useContext(Ro);return r==="rtl"}function ki(r){return r&&r.ownerDocument||document}function V_(r){var t=ki(r);return t&&t.defaultView||window}function W_(r,t){return V_(r).getComputedStyle(r,t)}var Y_=/([A-Z])/g;function X_(r){return r.replace(Y_,"-$1").toLowerCase()}var F_=/^ms-/;function Zs(r){return X_(r).replace(F_,"-ms-")}var Q_=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function Z_(r){return!!(r&&Q_.test(r))}function ka(r,t){var a="",l="";if(typeof t=="string")return r.style.getPropertyValue(Zs(t))||W_(r).getPropertyValue(Zs(t));Object.keys(t).forEach(function(o){var u=t[o];!u&&u!==0?r.style.removeProperty(Zs(o)):Z_(o)?l+=o+"("+u+") ":a+=Zs(o)+": "+u+";"}),l&&(a+="transform: "+l+";"),r.style.cssText+=";"+a}var zh={exports:{}},Ph,SS;function K_(){if(SS)return Ph;SS=1;var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ph=r,Ph}var Hh,wS;function J_(){if(wS)return Hh;wS=1;var r=K_();function t(){}function a(){}return a.resetWarningCache=t,Hh=function(){function l(c,d,h,p,g,v){if(v!==r){var x=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw x.name="Invariant Violation",x}}l.isRequired=l;function o(){return l}var u={array:l,bigint:l,bool:l,func:l,number:l,object:l,string:l,symbol:l,any:l,arrayOf:o,element:l,elementType:l,instanceOf:o,node:l,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:a,resetWarningCache:t};return u.PropTypes=u,u},Hh}var xS;function ex(){return xS||(xS=1,zh.exports=J_()()),zh.exports}var e3=ex();const Pt=Jn(e3);var t3=F1();const Pa=Jn(t3),OS={disabled:!1},tx=Ft.createContext(null);var n3=function(t){return t.scrollTop},eo="unmounted",Da="exited",Xn="entering",sa="entered",su="exiting",Ar=function(r){G_(t,r);function t(l,o){var u;u=r.call(this,l,o)||this;var c=o,d=c&&!c.isMounting?l.enter:l.appear,h;return u.appearStatus=null,l.in?d?(h=Da,u.appearStatus=Xn):h=sa:l.unmountOnExit||l.mountOnEnter?h=eo:h=Da,u.state={status:h},u.nextCallback=null,u}t.getDerivedStateFromProps=function(o,u){var c=o.in;return c&&u.status===eo?{status:Da}:null};var a=t.prototype;return a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(o){var u=null;if(o!==this.props){var c=this.state.status;this.props.in?c!==Xn&&c!==sa&&(u=Xn):(c===Xn||c===sa)&&(u=su)}this.updateStatus(!1,u)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var o=this.props.timeout,u,c,d;return u=c=d=o,o!=null&&typeof o!="number"&&(u=o.exit,c=o.enter,d=o.appear!==void 0?o.appear:c),{exit:u,enter:c,appear:d}},a.updateStatus=function(o,u){if(o===void 0&&(o=!1),u!==null)if(this.cancelNextCallback(),u===Xn){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:Pa.findDOMNode(this);c&&n3(c)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Da&&this.setState({status:eo})},a.performEnter=function(o){var u=this,c=this.props.enter,d=this.context?this.context.isMounting:o,h=this.props.nodeRef?[d]:[Pa.findDOMNode(this),d],p=h[0],g=h[1],v=this.getTimeouts(),x=d?v.appear:v.enter;if(!o&&!c||OS.disabled){this.safeSetState({status:sa},function(){u.props.onEntered(p)});return}this.props.onEnter(p,g),this.safeSetState({status:Xn},function(){u.props.onEntering(p,g),u.onTransitionEnd(x,function(){u.safeSetState({status:sa},function(){u.props.onEntered(p,g)})})})},a.performExit=function(){var o=this,u=this.props.exit,c=this.getTimeouts(),d=this.props.nodeRef?void 0:Pa.findDOMNode(this);if(!u||OS.disabled){this.safeSetState({status:Da},function(){o.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:su},function(){o.props.onExiting(d),o.onTransitionEnd(c.exit,function(){o.safeSetState({status:Da},function(){o.props.onExited(d)})})})},a.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(o,u){u=this.setNextCallback(u),this.setState(o,u)},a.setNextCallback=function(o){var u=this,c=!0;return this.nextCallback=function(d){c&&(c=!1,u.nextCallback=null,o(d))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},a.onTransitionEnd=function(o,u){this.setNextCallback(u);var c=this.props.nodeRef?this.props.nodeRef.current:Pa.findDOMNode(this),d=o==null&&!this.props.addEndListener;if(!c||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var h=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],p=h[0],g=h[1];this.props.addEndListener(p,g)}o!=null&&setTimeout(this.nextCallback,o)},a.render=function(){var o=this.state.status;if(o===eo)return null;var u=this.props,c=u.children;u.in,u.mountOnEnter,u.unmountOnExit,u.appear,u.enter,u.exit,u.timeout,u.addEndListener,u.onEnter,u.onEntering,u.onEntered,u.onExit,u.onExiting,u.onExited,u.nodeRef;var d=Qw(u,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ft.createElement(tx.Provider,{value:null},typeof c=="function"?c(o,d):Ft.cloneElement(Ft.Children.only(c),d))},t}(Ft.Component);Ar.contextType=tx;Ar.propTypes={};function Ei(){}Ar.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ei,onEntering:Ei,onEntered:Ei,onExit:Ei,onExiting:Ei,onExited:Ei};Ar.UNMOUNTED=eo;Ar.EXITED=Da;Ar.ENTERING=Xn;Ar.ENTERED=sa;Ar.EXITING=su;function nx(r){return r.code==="Escape"||r.keyCode===27}function r3(){const r=w.version.split(".");return{major:+r[0],minor:+r[1],patch:+r[2]}}function Bi(r){if(!r||typeof r=="function")return null;const{major:t}=r3();return t>=19?r.props.ref:r.ref}const $i=!!(typeof window<"u"&&window.document&&window.document.createElement);var _p=!1,jp=!1;try{var kh={get passive(){return _p=!0},get once(){return jp=_p=!0}};$i&&(window.addEventListener("test",kh,kh),window.removeEventListener("test",kh,!0))}catch{}function rx(r,t,a,l){if(l&&typeof l!="boolean"&&!jp){var o=l.once,u=l.capture,c=a;!jp&&o&&(c=a.__once||function d(h){this.removeEventListener(t,d,u),a.call(this,h)},a.__once=c),r.addEventListener(t,c,_p?l:u)}r.addEventListener(t,a,l)}function Ap(r,t,a,l){var o=l&&typeof l!="boolean"?l.capture:l;r.removeEventListener(t,a,o),a.__once&&r.removeEventListener(t,a.__once,o)}function Or(r,t,a,l){return rx(r,t,a,l),function(){Ap(r,t,a,l)}}function a3(r,t,a,l){if(l===void 0&&(l=!0),r){var o=document.createEvent("HTMLEvents");o.initEvent(t,a,l),r.dispatchEvent(o)}}function i3(r){var t=ka(r,"transitionDuration")||"",a=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*a}function l3(r,t,a){a===void 0&&(a=5);var l=!1,o=setTimeout(function(){l||a3(r,"transitionend",!0)},t+a),u=Or(r,"transitionend",function(){l=!0},{once:!0});return function(){clearTimeout(o),u()}}function ax(r,t,a,l){a==null&&(a=i3(r)||0);var o=l3(r,a,l),u=Or(r,"transitionend",t);return function(){o(),u()}}function TS(r,t){const a=ka(r,t)||"",l=a.indexOf("ms")===-1?1e3:1;return parseFloat(a)*l}function ix(r,t){const a=TS(r,"transitionDuration"),l=TS(r,"transitionDelay"),o=ax(r,u=>{u.target===r&&(o(),t(u))},a+l)}function o3(r){r.offsetHeight}const ES=r=>!r||typeof r=="function"?r:t=>{r.current=t};function s3(r,t){const a=ES(r),l=ES(t);return o=>{a&&a(o),l&&l(o)}}function Tu(r,t){return w.useMemo(()=>s3(r,t),[r,t])}function uu(r){return r&&"setState"in r?Pa.findDOMNode(r):r??null}const sm=Ft.forwardRef(({onEnter:r,onEntering:t,onEntered:a,onExit:l,onExiting:o,onExited:u,addEndListener:c,children:d,childRef:h,...p},g)=>{const v=w.useRef(null),x=Tu(v,h),E=j=>{x(uu(j))},N=j=>P=>{j&&v.current&&j(v.current,P)},_=w.useCallback(N(r),[r]),z=w.useCallback(N(t),[t]),H=w.useCallback(N(a),[a]),G=w.useCallback(N(l),[l]),k=w.useCallback(N(o),[o]),Z=w.useCallback(N(u),[u]),A=w.useCallback(N(c),[c]);return S.jsx(Ar,{ref:g,...p,onEnter:_,onEntered:H,onEntering:z,onExit:G,onExited:Z,onExiting:k,addEndListener:A,nodeRef:v,children:typeof d=="function"?(j,P)=>d(j,{...P,ref:E}):Ft.cloneElement(d,{ref:E})})});sm.displayName="TransitionWrapper";function u3(r){const t=w.useRef(r);return w.useEffect(()=>{t.current=r},[r]),t}function lo(r){const t=u3(r);return w.useCallback(function(...a){return t.current&&t.current(...a)},[t])}const Eu=r=>w.forwardRef((t,a)=>S.jsx("div",{...t,ref:a,className:Oe(t.className,r)}));function CS(){return w.useState(null)}function c3(r){const t=w.useRef(r);return w.useEffect(()=>{t.current=r},[r]),t}function wn(r){const t=c3(r);return w.useCallback(function(...a){return t.current&&t.current(...a)},[t])}function lx(){const r=w.useRef(!0),t=w.useRef(()=>r.current);return w.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[]),t.current}function f3(r){const t=w.useRef(null);return w.useEffect(()=>{t.current=r}),t.current}const d3=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",h3=typeof document<"u",RS=h3||d3?w.useLayoutEffect:w.useEffect,p3=["as","disabled"];function m3(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}function g3(r){return!r||r.trim()==="#"}function um({tagName:r,disabled:t,href:a,target:l,rel:o,role:u,onClick:c,tabIndex:d=0,type:h}){r||(a!=null||l!=null||o!=null?r="a":r="button");const p={tagName:r};if(r==="button")return[{type:h||"button",disabled:t},p];const g=x=>{if((t||r==="a"&&g3(a))&&x.preventDefault(),t){x.stopPropagation();return}c==null||c(x)},v=x=>{x.key===" "&&(x.preventDefault(),g(x))};return r==="a"&&(a||(a="#"),t&&(a=void 0)),[{role:u??"button",disabled:void 0,tabIndex:t?void 0:d,href:a,target:r==="a"?l:void 0,"aria-disabled":t||void 0,rel:r==="a"?o:void 0,onClick:g,onKeyDown:v},p]}const ox=w.forwardRef((r,t)=>{let{as:a,disabled:l}=r,o=m3(r,p3);const[u,{tagName:c}]=um(Object.assign({tagName:a,disabled:l},o));return S.jsx(c,Object.assign({},o,u,{ref:t}))});ox.displayName="Button";const v3=["onKeyDown"];function y3(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}function b3(r){return!r||r.trim()==="#"}const sx=w.forwardRef((r,t)=>{let{onKeyDown:a}=r,l=y3(r,v3);const[o]=um(Object.assign({tagName:"a"},l)),u=wn(c=>{o.onKeyDown(c),a==null||a(c)});return b3(l.href)||l.role==="button"?S.jsx("a",Object.assign({ref:t},l,o,{onKeyDown:u})):S.jsx("a",Object.assign({ref:t},l,{onKeyDown:a}))});sx.displayName="Anchor";const S3={[Xn]:"show",[sa]:"show"},ua=w.forwardRef(({className:r,children:t,transitionClasses:a={},onEnter:l,...o},u)=>{const c={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...o},d=w.useCallback((h,p)=>{o3(h),l==null||l(h,p)},[l]);return S.jsx(sm,{ref:u,addEndListener:ix,...c,onEnter:d,childRef:Bi(t),children:(h,p)=>w.cloneElement(t,{...p,className:Oe("fade",r,t.props.className,S3[h],a[h])})})});ua.displayName="Fade";const w3={"aria-label":Pt.string,onClick:Pt.func,variant:Pt.oneOf(["white"])},cm=w.forwardRef(({className:r,variant:t,"aria-label":a="Close",...l},o)=>S.jsx("button",{ref:o,type:"button",className:Oe("btn-close",t&&`btn-close-${t}`,r),"aria-label":a,...l}));cm.displayName="CloseButton";cm.propTypes=w3;const Ii=w.forwardRef(({bsPrefix:r,bg:t="primary",pill:a=!1,text:l,className:o,as:u="span",...c},d)=>{const h=Ce(r,"badge");return S.jsx(u,{ref:d,...c,className:Oe(o,h,a&&"rounded-pill",l&&`text-${l}`,t&&`bg-${t}`)})});Ii.displayName="Badge";const Qt=w.forwardRef(({as:r,bsPrefix:t,variant:a="primary",size:l,active:o=!1,disabled:u=!1,className:c,...d},h)=>{const p=Ce(t,"btn"),[g,{tagName:v}]=um({tagName:r,disabled:u,...d}),x=v;return S.jsx(x,{...g,...d,ref:h,disabled:u,className:Oe(c,p,o&&"active",a&&`${p}-${a}`,l&&`${p}-${l}`,d.href&&u&&"disabled")})});Qt.displayName="Button";const ux=w.forwardRef(({bsPrefix:r,size:t,vertical:a=!1,className:l,role:o="group",as:u="div",...c},d)=>{const h=Ce(r,"btn-group");let p=h;return a&&(p=`${h}-vertical`),S.jsx(u,{...c,ref:d,role:o,className:Oe(l,p,t&&`${h}-${t}`)})});ux.displayName="ButtonGroup";const fm=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"card-body"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));fm.displayName="CardBody";const cx=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"card-footer"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));cx.displayName="CardFooter";const dm=w.createContext(null);dm.displayName="CardHeaderContext";const fx=w.forwardRef(({bsPrefix:r,className:t,as:a="div",...l},o)=>{const u=Ce(r,"card-header"),c=w.useMemo(()=>({cardHeaderBsPrefix:u}),[u]);return S.jsx(dm.Provider,{value:c,children:S.jsx(a,{ref:o,...l,className:Oe(t,u)})})});fx.displayName="CardHeader";const dx=w.forwardRef(({bsPrefix:r,className:t,variant:a,as:l="img",...o},u)=>{const c=Ce(r,"card-img");return S.jsx(l,{ref:u,className:Oe(a?`${c}-${a}`:c,t),...o})});dx.displayName="CardImg";const hx=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"card-img-overlay"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));hx.displayName="CardImgOverlay";const px=w.forwardRef(({className:r,bsPrefix:t,as:a="a",...l},o)=>(t=Ce(t,"card-link"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));px.displayName="CardLink";const x3=Eu("h6"),mx=w.forwardRef(({className:r,bsPrefix:t,as:a=x3,...l},o)=>(t=Ce(t,"card-subtitle"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));mx.displayName="CardSubtitle";const gx=w.forwardRef(({className:r,bsPrefix:t,as:a="p",...l},o)=>(t=Ce(t,"card-text"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));gx.displayName="CardText";const O3=Eu("h5"),vx=w.forwardRef(({className:r,bsPrefix:t,as:a=O3,...l},o)=>(t=Ce(t,"card-title"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));vx.displayName="CardTitle";const yx=w.forwardRef(({bsPrefix:r,className:t,bg:a,text:l,border:o,body:u=!1,children:c,as:d="div",...h},p)=>{const g=Ce(r,"card");return S.jsx(d,{ref:p,...h,className:Oe(t,g,a&&`bg-${a}`,l&&`text-${l}`,o&&`border-${o}`),children:u?S.jsx(fm,{children:c}):c})});yx.displayName="Card";const it=Object.assign(yx,{Img:dx,Title:vx,Subtitle:mx,Body:fm,Link:px,Text:gx,Header:fx,Footer:cx,ImgOverlay:hx});function T3(){const r=w.useRef(!0),t=w.useRef(()=>r.current);return w.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[]),t.current}function E3(r){const t=w.useRef(r);return t.current=r,t}function bx(r){const t=E3(r);w.useEffect(()=>()=>t.current(),[])}const Mp=2**31-1;function Sx(r,t,a){const l=a-Date.now();r.current=l<=Mp?setTimeout(t,l):setTimeout(()=>Sx(r,t,a),Mp)}function C3(){const r=T3(),t=w.useRef();return bx(()=>clearTimeout(t.current)),w.useMemo(()=>{const a=()=>clearTimeout(t.current);function l(o,u=0){r()&&(a(),u<=Mp?t.current=setTimeout(o,u):Sx(t,o,Date.now()+u))}return{set:l,clear:a,handleRef:t}},[])}function R3(r,t){return w.Children.toArray(r).some(a=>w.isValidElement(a)&&a.type===t)}function _3({as:r,bsPrefix:t,className:a,...l}){t=Ce(t,"col");const o=im(),u=lm(),c=[],d=[];return o.forEach(h=>{const p=l[h];delete l[h];let g,v,x;typeof p=="object"&&p!=null?{span:g,offset:v,order:x}=p:g=p;const E=h!==u?`-${h}`:"";g&&c.push(g===!0?`${t}${E}`:`${t}${E}-${g}`),x!=null&&d.push(`order${E}-${x}`),v!=null&&d.push(`offset${E}-${v}`)}),[{...l,className:Oe(a,...c,...d)},{as:r,bsPrefix:t,spans:c}]}const lt=w.forwardRef((r,t)=>{const[{className:a,...l},{as:o="div",bsPrefix:u,spans:c}]=_3(r);return S.jsx(o,{...l,ref:t,className:Oe(a,!c.length&&u)})});lt.displayName="Col";const On=w.forwardRef(({bsPrefix:r,fluid:t=!1,as:a="div",className:l,...o},u)=>{const c=Ce(r,"container"),d=typeof t=="string"?`-${t}`:"-fluid";return S.jsx(a,{ref:u,...o,className:Oe(l,t?`${c}${d}`:c)})});On.displayName="Container";var j3=Function.prototype.bind.call(Function.prototype.call,[].slice);function La(r,t){return j3(r.querySelectorAll(t))}function A3(r,t,a){const l=w.useRef(r!==void 0),[o,u]=w.useState(t),c=r!==void 0,d=l.current;return l.current=c,!c&&d&&o!==t&&u(t),[c?r:o,w.useCallback((...h)=>{const[p,...g]=h;let v=a==null?void 0:a(p,...g);return u(p),v},[a])]}function M3(){const[,r]=w.useReducer(t=>t+1,0);return r}var _S=Object.prototype.hasOwnProperty;function jS(r,t,a){for(a of r.keys())if(to(a,t))return a}function to(r,t){var a,l,o;if(r===t)return!0;if(r&&t&&(a=r.constructor)===t.constructor){if(a===Date)return r.getTime()===t.getTime();if(a===RegExp)return r.toString()===t.toString();if(a===Array){if((l=r.length)===t.length)for(;l--&&to(r[l],t[l]););return l===-1}if(a===Set){if(r.size!==t.size)return!1;for(l of r)if(o=l,o&&typeof o=="object"&&(o=jS(t,o),!o)||!t.has(o))return!1;return!0}if(a===Map){if(r.size!==t.size)return!1;for(l of r)if(o=l[0],o&&typeof o=="object"&&(o=jS(t,o),!o)||!to(l[1],t.get(o)))return!1;return!0}if(a===ArrayBuffer)r=new Uint8Array(r),t=new Uint8Array(t);else if(a===DataView){if((l=r.byteLength)===t.byteLength)for(;l--&&r.getInt8(l)===t.getInt8(l););return l===-1}if(ArrayBuffer.isView(r)){if((l=r.byteLength)===t.byteLength)for(;l--&&r[l]===t[l];);return l===-1}if(!a||typeof r=="object"){l=0;for(a in r)if(_S.call(r,a)&&++l&&!_S.call(t,a)||!(a in t)||!to(r[a],t[a]))return!1;return Object.keys(t).length===l}}return r!==r&&t!==t}function N3(r){const t=lx();return[r[0],w.useCallback(a=>{if(t())return r[1](a)},[t,r[1]])]}var Zt="top",Tn="bottom",En="right",Kt="left",hm="auto",_o=[Zt,Tn,En,Kt],Ri="start",oo="end",D3="clippingParents",wx="viewport",Ul="popper",L3="reference",AS=_o.reduce(function(r,t){return r.concat([t+"-"+Ri,t+"-"+oo])},[]),xx=[].concat(_o,[hm]).reduce(function(r,t){return r.concat([t,t+"-"+Ri,t+"-"+oo])},[]),z3="beforeRead",P3="read",H3="afterRead",k3="beforeMain",B3="main",$3="afterMain",I3="beforeWrite",q3="write",U3="afterWrite",G3=[z3,P3,H3,k3,B3,$3,I3,q3,U3];function Qn(r){return r.split("-")[0]}function sn(r){if(r==null)return window;if(r.toString()!=="[object Window]"){var t=r.ownerDocument;return t&&t.defaultView||window}return r}function Ia(r){var t=sn(r).Element;return r instanceof t||r instanceof Element}function Zn(r){var t=sn(r).HTMLElement;return r instanceof t||r instanceof HTMLElement}function pm(r){if(typeof ShadowRoot>"u")return!1;var t=sn(r).ShadowRoot;return r instanceof t||r instanceof ShadowRoot}var Ba=Math.max,cu=Math.min,_i=Math.round;function Np(){var r=navigator.userAgentData;return r!=null&&r.brands&&Array.isArray(r.brands)?r.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ox(){return!/^((?!chrome|android).)*safari/i.test(Np())}function ji(r,t,a){t===void 0&&(t=!1),a===void 0&&(a=!1);var l=r.getBoundingClientRect(),o=1,u=1;t&&Zn(r)&&(o=r.offsetWidth>0&&_i(l.width)/r.offsetWidth||1,u=r.offsetHeight>0&&_i(l.height)/r.offsetHeight||1);var c=Ia(r)?sn(r):window,d=c.visualViewport,h=!Ox()&&a,p=(l.left+(h&&d?d.offsetLeft:0))/o,g=(l.top+(h&&d?d.offsetTop:0))/u,v=l.width/o,x=l.height/u;return{width:v,height:x,top:g,right:p+v,bottom:g+x,left:p,x:p,y:g}}function mm(r){var t=ji(r),a=r.offsetWidth,l=r.offsetHeight;return Math.abs(t.width-a)<=1&&(a=t.width),Math.abs(t.height-l)<=1&&(l=t.height),{x:r.offsetLeft,y:r.offsetTop,width:a,height:l}}function Tx(r,t){var a=t.getRootNode&&t.getRootNode();if(r.contains(t))return!0;if(a&&pm(a)){var l=t;do{if(l&&r.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}function ca(r){return r?(r.nodeName||"").toLowerCase():null}function Rr(r){return sn(r).getComputedStyle(r)}function V3(r){return["table","td","th"].indexOf(ca(r))>=0}function da(r){return((Ia(r)?r.ownerDocument:r.document)||window.document).documentElement}function Cu(r){return ca(r)==="html"?r:r.assignedSlot||r.parentNode||(pm(r)?r.host:null)||da(r)}function MS(r){return!Zn(r)||Rr(r).position==="fixed"?null:r.offsetParent}function W3(r){var t=/firefox/i.test(Np()),a=/Trident/i.test(Np());if(a&&Zn(r)){var l=Rr(r);if(l.position==="fixed")return null}var o=Cu(r);for(pm(o)&&(o=o.host);Zn(o)&&["html","body"].indexOf(ca(o))<0;){var u=Rr(o);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||t&&u.willChange==="filter"||t&&u.filter&&u.filter!=="none")return o;o=o.parentNode}return null}function jo(r){for(var t=sn(r),a=MS(r);a&&V3(a)&&Rr(a).position==="static";)a=MS(a);return a&&(ca(a)==="html"||ca(a)==="body"&&Rr(a).position==="static")?t:a||W3(r)||t}function gm(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function no(r,t,a){return Ba(r,cu(t,a))}function Y3(r,t,a){var l=no(r,t,a);return l>a?a:l}function Ex(){return{top:0,right:0,bottom:0,left:0}}function Cx(r){return Object.assign({},Ex(),r)}function Rx(r,t){return t.reduce(function(a,l){return a[l]=r,a},{})}var X3=function(t,a){return t=typeof t=="function"?t(Object.assign({},a.rects,{placement:a.placement})):t,Cx(typeof t!="number"?t:Rx(t,_o))};function F3(r){var t,a=r.state,l=r.name,o=r.options,u=a.elements.arrow,c=a.modifiersData.popperOffsets,d=Qn(a.placement),h=gm(d),p=[Kt,En].indexOf(d)>=0,g=p?"height":"width";if(!(!u||!c)){var v=X3(o.padding,a),x=mm(u),E=h==="y"?Zt:Kt,N=h==="y"?Tn:En,_=a.rects.reference[g]+a.rects.reference[h]-c[h]-a.rects.popper[g],z=c[h]-a.rects.reference[h],H=jo(u),G=H?h==="y"?H.clientHeight||0:H.clientWidth||0:0,k=_/2-z/2,Z=v[E],A=G-x[g]-v[N],j=G/2-x[g]/2+k,P=no(Z,j,A),F=h;a.modifiersData[l]=(t={},t[F]=P,t.centerOffset=P-j,t)}}function Q3(r){var t=r.state,a=r.options,l=a.element,o=l===void 0?"[data-popper-arrow]":l;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Tx(t.elements.popper,o)&&(t.elements.arrow=o))}const Z3={name:"arrow",enabled:!0,phase:"main",fn:F3,effect:Q3,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ai(r){return r.split("-")[1]}var K3={top:"auto",right:"auto",bottom:"auto",left:"auto"};function J3(r,t){var a=r.x,l=r.y,o=t.devicePixelRatio||1;return{x:_i(a*o)/o||0,y:_i(l*o)/o||0}}function NS(r){var t,a=r.popper,l=r.popperRect,o=r.placement,u=r.variation,c=r.offsets,d=r.position,h=r.gpuAcceleration,p=r.adaptive,g=r.roundOffsets,v=r.isFixed,x=c.x,E=x===void 0?0:x,N=c.y,_=N===void 0?0:N,z=typeof g=="function"?g({x:E,y:_}):{x:E,y:_};E=z.x,_=z.y;var H=c.hasOwnProperty("x"),G=c.hasOwnProperty("y"),k=Kt,Z=Zt,A=window;if(p){var j=jo(a),P="clientHeight",F="clientWidth";if(j===sn(a)&&(j=da(a),Rr(j).position!=="static"&&d==="absolute"&&(P="scrollHeight",F="scrollWidth")),j=j,o===Zt||(o===Kt||o===En)&&u===oo){Z=Tn;var D=v&&j===A&&A.visualViewport?A.visualViewport.height:j[P];_-=D-l.height,_*=h?1:-1}if(o===Kt||(o===Zt||o===Tn)&&u===oo){k=En;var T=v&&j===A&&A.visualViewport?A.visualViewport.width:j[F];E-=T-l.width,E*=h?1:-1}}var X=Object.assign({position:d},p&&K3),I=g===!0?J3({x:E,y:_},sn(a)):{x:E,y:_};if(E=I.x,_=I.y,h){var q;return Object.assign({},X,(q={},q[Z]=G?"0":"",q[k]=H?"0":"",q.transform=(A.devicePixelRatio||1)<=1?"translate("+E+"px, "+_+"px)":"translate3d("+E+"px, "+_+"px, 0)",q))}return Object.assign({},X,(t={},t[Z]=G?_+"px":"",t[k]=H?E+"px":"",t.transform="",t))}function ej(r){var t=r.state,a=r.options,l=a.gpuAcceleration,o=l===void 0?!0:l,u=a.adaptive,c=u===void 0?!0:u,d=a.roundOffsets,h=d===void 0?!0:d,p={placement:Qn(t.placement),variation:Ai(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,NS(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:h})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,NS(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:h})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const tj={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ej,data:{}};var Ks={passive:!0};function nj(r){var t=r.state,a=r.instance,l=r.options,o=l.scroll,u=o===void 0?!0:o,c=l.resize,d=c===void 0?!0:c,h=sn(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return u&&p.forEach(function(g){g.addEventListener("scroll",a.update,Ks)}),d&&h.addEventListener("resize",a.update,Ks),function(){u&&p.forEach(function(g){g.removeEventListener("scroll",a.update,Ks)}),d&&h.removeEventListener("resize",a.update,Ks)}}const rj={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:nj,data:{}};var aj={left:"right",right:"left",bottom:"top",top:"bottom"};function au(r){return r.replace(/left|right|bottom|top/g,function(t){return aj[t]})}var ij={start:"end",end:"start"};function DS(r){return r.replace(/start|end/g,function(t){return ij[t]})}function vm(r){var t=sn(r),a=t.pageXOffset,l=t.pageYOffset;return{scrollLeft:a,scrollTop:l}}function ym(r){return ji(da(r)).left+vm(r).scrollLeft}function lj(r,t){var a=sn(r),l=da(r),o=a.visualViewport,u=l.clientWidth,c=l.clientHeight,d=0,h=0;if(o){u=o.width,c=o.height;var p=Ox();(p||!p&&t==="fixed")&&(d=o.offsetLeft,h=o.offsetTop)}return{width:u,height:c,x:d+ym(r),y:h}}function oj(r){var t,a=da(r),l=vm(r),o=(t=r.ownerDocument)==null?void 0:t.body,u=Ba(a.scrollWidth,a.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=Ba(a.scrollHeight,a.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),d=-l.scrollLeft+ym(r),h=-l.scrollTop;return Rr(o||a).direction==="rtl"&&(d+=Ba(a.clientWidth,o?o.clientWidth:0)-u),{width:u,height:c,x:d,y:h}}function bm(r){var t=Rr(r),a=t.overflow,l=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(a+o+l)}function _x(r){return["html","body","#document"].indexOf(ca(r))>=0?r.ownerDocument.body:Zn(r)&&bm(r)?r:_x(Cu(r))}function ro(r,t){var a;t===void 0&&(t=[]);var l=_x(r),o=l===((a=r.ownerDocument)==null?void 0:a.body),u=sn(l),c=o?[u].concat(u.visualViewport||[],bm(l)?l:[]):l,d=t.concat(c);return o?d:d.concat(ro(Cu(c)))}function Dp(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function sj(r,t){var a=ji(r,!1,t==="fixed");return a.top=a.top+r.clientTop,a.left=a.left+r.clientLeft,a.bottom=a.top+r.clientHeight,a.right=a.left+r.clientWidth,a.width=r.clientWidth,a.height=r.clientHeight,a.x=a.left,a.y=a.top,a}function LS(r,t,a){return t===wx?Dp(lj(r,a)):Ia(t)?sj(t,a):Dp(oj(da(r)))}function uj(r){var t=ro(Cu(r)),a=["absolute","fixed"].indexOf(Rr(r).position)>=0,l=a&&Zn(r)?jo(r):r;return Ia(l)?t.filter(function(o){return Ia(o)&&Tx(o,l)&&ca(o)!=="body"}):[]}function cj(r,t,a,l){var o=t==="clippingParents"?uj(r):[].concat(t),u=[].concat(o,[a]),c=u[0],d=u.reduce(function(h,p){var g=LS(r,p,l);return h.top=Ba(g.top,h.top),h.right=cu(g.right,h.right),h.bottom=cu(g.bottom,h.bottom),h.left=Ba(g.left,h.left),h},LS(r,c,l));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function jx(r){var t=r.reference,a=r.element,l=r.placement,o=l?Qn(l):null,u=l?Ai(l):null,c=t.x+t.width/2-a.width/2,d=t.y+t.height/2-a.height/2,h;switch(o){case Zt:h={x:c,y:t.y-a.height};break;case Tn:h={x:c,y:t.y+t.height};break;case En:h={x:t.x+t.width,y:d};break;case Kt:h={x:t.x-a.width,y:d};break;default:h={x:t.x,y:t.y}}var p=o?gm(o):null;if(p!=null){var g=p==="y"?"height":"width";switch(u){case Ri:h[p]=h[p]-(t[g]/2-a[g]/2);break;case oo:h[p]=h[p]+(t[g]/2-a[g]/2);break}}return h}function so(r,t){t===void 0&&(t={});var a=t,l=a.placement,o=l===void 0?r.placement:l,u=a.strategy,c=u===void 0?r.strategy:u,d=a.boundary,h=d===void 0?D3:d,p=a.rootBoundary,g=p===void 0?wx:p,v=a.elementContext,x=v===void 0?Ul:v,E=a.altBoundary,N=E===void 0?!1:E,_=a.padding,z=_===void 0?0:_,H=Cx(typeof z!="number"?z:Rx(z,_o)),G=x===Ul?L3:Ul,k=r.rects.popper,Z=r.elements[N?G:x],A=cj(Ia(Z)?Z:Z.contextElement||da(r.elements.popper),h,g,c),j=ji(r.elements.reference),P=jx({reference:j,element:k,placement:o}),F=Dp(Object.assign({},k,P)),D=x===Ul?F:j,T={top:A.top-D.top+H.top,bottom:D.bottom-A.bottom+H.bottom,left:A.left-D.left+H.left,right:D.right-A.right+H.right},X=r.modifiersData.offset;if(x===Ul&&X){var I=X[o];Object.keys(T).forEach(function(q){var $=[En,Tn].indexOf(q)>=0?1:-1,U=[Zt,Tn].indexOf(q)>=0?"y":"x";T[q]+=I[U]*$})}return T}function fj(r,t){t===void 0&&(t={});var a=t,l=a.placement,o=a.boundary,u=a.rootBoundary,c=a.padding,d=a.flipVariations,h=a.allowedAutoPlacements,p=h===void 0?xx:h,g=Ai(l),v=g?d?AS:AS.filter(function(N){return Ai(N)===g}):_o,x=v.filter(function(N){return p.indexOf(N)>=0});x.length===0&&(x=v);var E=x.reduce(function(N,_){return N[_]=so(r,{placement:_,boundary:o,rootBoundary:u,padding:c})[Qn(_)],N},{});return Object.keys(E).sort(function(N,_){return E[N]-E[_]})}function dj(r){if(Qn(r)===hm)return[];var t=au(r);return[DS(r),t,DS(t)]}function hj(r){var t=r.state,a=r.options,l=r.name;if(!t.modifiersData[l]._skip){for(var o=a.mainAxis,u=o===void 0?!0:o,c=a.altAxis,d=c===void 0?!0:c,h=a.fallbackPlacements,p=a.padding,g=a.boundary,v=a.rootBoundary,x=a.altBoundary,E=a.flipVariations,N=E===void 0?!0:E,_=a.allowedAutoPlacements,z=t.options.placement,H=Qn(z),G=H===z,k=h||(G||!N?[au(z)]:dj(z)),Z=[z].concat(k).reduce(function(B,Q){return B.concat(Qn(Q)===hm?fj(t,{placement:Q,boundary:g,rootBoundary:v,padding:p,flipVariations:N,allowedAutoPlacements:_}):Q)},[]),A=t.rects.reference,j=t.rects.popper,P=new Map,F=!0,D=Z[0],T=0;T<Z.length;T++){var X=Z[T],I=Qn(X),q=Ai(X)===Ri,$=[Zt,Tn].indexOf(I)>=0,U=$?"width":"height",L=so(t,{placement:X,boundary:g,rootBoundary:v,altBoundary:x,padding:p}),b=$?q?En:Kt:q?Tn:Zt;A[U]>j[U]&&(b=au(b));var te=au(b),R=[];if(u&&R.push(L[I]<=0),d&&R.push(L[b]<=0,L[te]<=0),R.every(function(B){return B})){D=X,F=!1;break}P.set(X,R)}if(F)for(var y=N?3:1,C=function(Q){var V=Z.find(function(ne){var ue=P.get(ne);if(ue)return ue.slice(0,Q).every(function(me){return me})});if(V)return D=V,"break"},W=y;W>0;W--){var J=C(W);if(J==="break")break}t.placement!==D&&(t.modifiersData[l]._skip=!0,t.placement=D,t.reset=!0)}}const pj={name:"flip",enabled:!0,phase:"main",fn:hj,requiresIfExists:["offset"],data:{_skip:!1}};function zS(r,t,a){return a===void 0&&(a={x:0,y:0}),{top:r.top-t.height-a.y,right:r.right-t.width+a.x,bottom:r.bottom-t.height+a.y,left:r.left-t.width-a.x}}function PS(r){return[Zt,En,Tn,Kt].some(function(t){return r[t]>=0})}function mj(r){var t=r.state,a=r.name,l=t.rects.reference,o=t.rects.popper,u=t.modifiersData.preventOverflow,c=so(t,{elementContext:"reference"}),d=so(t,{altBoundary:!0}),h=zS(c,l),p=zS(d,o,u),g=PS(h),v=PS(p);t.modifiersData[a]={referenceClippingOffsets:h,popperEscapeOffsets:p,isReferenceHidden:g,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":v})}const gj={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:mj};function vj(r,t,a){var l=Qn(r),o=[Kt,Zt].indexOf(l)>=0?-1:1,u=typeof a=="function"?a(Object.assign({},t,{placement:r})):a,c=u[0],d=u[1];return c=c||0,d=(d||0)*o,[Kt,En].indexOf(l)>=0?{x:d,y:c}:{x:c,y:d}}function yj(r){var t=r.state,a=r.options,l=r.name,o=a.offset,u=o===void 0?[0,0]:o,c=xx.reduce(function(g,v){return g[v]=vj(v,t.rects,u),g},{}),d=c[t.placement],h=d.x,p=d.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=h,t.modifiersData.popperOffsets.y+=p),t.modifiersData[l]=c}const bj={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:yj};function Sj(r){var t=r.state,a=r.name;t.modifiersData[a]=jx({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const wj={name:"popperOffsets",enabled:!0,phase:"read",fn:Sj,data:{}};function xj(r){return r==="x"?"y":"x"}function Oj(r){var t=r.state,a=r.options,l=r.name,o=a.mainAxis,u=o===void 0?!0:o,c=a.altAxis,d=c===void 0?!1:c,h=a.boundary,p=a.rootBoundary,g=a.altBoundary,v=a.padding,x=a.tether,E=x===void 0?!0:x,N=a.tetherOffset,_=N===void 0?0:N,z=so(t,{boundary:h,rootBoundary:p,padding:v,altBoundary:g}),H=Qn(t.placement),G=Ai(t.placement),k=!G,Z=gm(H),A=xj(Z),j=t.modifiersData.popperOffsets,P=t.rects.reference,F=t.rects.popper,D=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,T=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),X=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(j){if(u){var q,$=Z==="y"?Zt:Kt,U=Z==="y"?Tn:En,L=Z==="y"?"height":"width",b=j[Z],te=b+z[$],R=b-z[U],y=E?-F[L]/2:0,C=G===Ri?P[L]:F[L],W=G===Ri?-F[L]:-P[L],J=t.elements.arrow,B=E&&J?mm(J):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ex(),V=Q[$],ne=Q[U],ue=no(0,P[L],B[L]),me=k?P[L]/2-y-ue-V-T.mainAxis:C-ue-V-T.mainAxis,he=k?-P[L]/2+y+ue+ne+T.mainAxis:W+ue+ne+T.mainAxis,ve=t.elements.arrow&&jo(t.elements.arrow),pe=ve?Z==="y"?ve.clientTop||0:ve.clientLeft||0:0,ge=(q=X==null?void 0:X[Z])!=null?q:0,Se=b+me-ge-pe,ye=b+he-ge,Re=no(E?cu(te,Se):te,b,E?Ba(R,ye):R);j[Z]=Re,I[Z]=Re-b}if(d){var be,Le=Z==="x"?Zt:Kt,Pe=Z==="x"?Tn:En,Ee=j[A],ke=A==="y"?"height":"width",ot=Ee+z[Le],ft=Ee-z[Pe],yt=[Zt,Kt].indexOf(H)!==-1,Nt=(be=X==null?void 0:X[A])!=null?be:0,Ae=yt?ot:Ee-P[ke]-F[ke]-Nt+T.altAxis,Be=yt?Ee+P[ke]+F[ke]-Nt-T.altAxis:ft,nt=E&&yt?Y3(Ae,Ee,Be):no(E?Ae:ot,Ee,E?Be:ft);j[A]=nt,I[A]=nt-Ee}t.modifiersData[l]=I}}const Tj={name:"preventOverflow",enabled:!0,phase:"main",fn:Oj,requiresIfExists:["offset"]};function Ej(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function Cj(r){return r===sn(r)||!Zn(r)?vm(r):Ej(r)}function Rj(r){var t=r.getBoundingClientRect(),a=_i(t.width)/r.offsetWidth||1,l=_i(t.height)/r.offsetHeight||1;return a!==1||l!==1}function _j(r,t,a){a===void 0&&(a=!1);var l=Zn(t),o=Zn(t)&&Rj(t),u=da(t),c=ji(r,o,a),d={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(l||!l&&!a)&&((ca(t)!=="body"||bm(u))&&(d=Cj(t)),Zn(t)?(h=ji(t,!0),h.x+=t.clientLeft,h.y+=t.clientTop):u&&(h.x=ym(u))),{x:c.left+d.scrollLeft-h.x,y:c.top+d.scrollTop-h.y,width:c.width,height:c.height}}function jj(r){var t=new Map,a=new Set,l=[];r.forEach(function(u){t.set(u.name,u)});function o(u){a.add(u.name);var c=[].concat(u.requires||[],u.requiresIfExists||[]);c.forEach(function(d){if(!a.has(d)){var h=t.get(d);h&&o(h)}}),l.push(u)}return r.forEach(function(u){a.has(u.name)||o(u)}),l}function Aj(r){var t=jj(r);return G3.reduce(function(a,l){return a.concat(t.filter(function(o){return o.phase===l}))},[])}function Mj(r){var t;return function(){return t||(t=new Promise(function(a){Promise.resolve().then(function(){t=void 0,a(r())})})),t}}function Nj(r){var t=r.reduce(function(a,l){var o=a[l.name];return a[l.name]=o?Object.assign({},o,l,{options:Object.assign({},o.options,l.options),data:Object.assign({},o.data,l.data)}):l,a},{});return Object.keys(t).map(function(a){return t[a]})}var HS={placement:"bottom",modifiers:[],strategy:"absolute"};function kS(){for(var r=arguments.length,t=new Array(r),a=0;a<r;a++)t[a]=arguments[a];return!t.some(function(l){return!(l&&typeof l.getBoundingClientRect=="function")})}function Dj(r){r===void 0&&(r={});var t=r,a=t.defaultModifiers,l=a===void 0?[]:a,o=t.defaultOptions,u=o===void 0?HS:o;return function(d,h,p){p===void 0&&(p=u);var g={placement:"bottom",orderedModifiers:[],options:Object.assign({},HS,u),modifiersData:{},elements:{reference:d,popper:h},attributes:{},styles:{}},v=[],x=!1,E={state:g,setOptions:function(H){var G=typeof H=="function"?H(g.options):H;_(),g.options=Object.assign({},u,g.options,G),g.scrollParents={reference:Ia(d)?ro(d):d.contextElement?ro(d.contextElement):[],popper:ro(h)};var k=Aj(Nj([].concat(l,g.options.modifiers)));return g.orderedModifiers=k.filter(function(Z){return Z.enabled}),N(),E.update()},forceUpdate:function(){if(!x){var H=g.elements,G=H.reference,k=H.popper;if(kS(G,k)){g.rects={reference:_j(G,jo(k),g.options.strategy==="fixed"),popper:mm(k)},g.reset=!1,g.placement=g.options.placement,g.orderedModifiers.forEach(function(T){return g.modifiersData[T.name]=Object.assign({},T.data)});for(var Z=0;Z<g.orderedModifiers.length;Z++){if(g.reset===!0){g.reset=!1,Z=-1;continue}var A=g.orderedModifiers[Z],j=A.fn,P=A.options,F=P===void 0?{}:P,D=A.name;typeof j=="function"&&(g=j({state:g,options:F,name:D,instance:E})||g)}}}},update:Mj(function(){return new Promise(function(z){E.forceUpdate(),z(g)})}),destroy:function(){_(),x=!0}};if(!kS(d,h))return E;E.setOptions(p).then(function(z){!x&&p.onFirstUpdate&&p.onFirstUpdate(z)});function N(){g.orderedModifiers.forEach(function(z){var H=z.name,G=z.options,k=G===void 0?{}:G,Z=z.effect;if(typeof Z=="function"){var A=Z({state:g,name:H,instance:E,options:k}),j=function(){};v.push(A||j)}})}function _(){v.forEach(function(z){return z()}),v=[]}return E}}const Lj=Dj({defaultModifiers:[gj,wj,tj,rj,bj,pj,Tj,Z3]}),zj=["enabled","placement","strategy","modifiers"];function Pj(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}const Hj={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},kj={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:r})=>()=>{const{reference:t,popper:a}=r.elements;if("removeAttribute"in t){const l=(t.getAttribute("aria-describedby")||"").split(",").filter(o=>o.trim()!==a.id);l.length?t.setAttribute("aria-describedby",l.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:r})=>{var t;const{popper:a,reference:l}=r.elements,o=(t=a.getAttribute("role"))==null?void 0:t.toLowerCase();if(a.id&&o==="tooltip"&&"setAttribute"in l){const u=l.getAttribute("aria-describedby");if(u&&u.split(",").indexOf(a.id)!==-1)return;l.setAttribute("aria-describedby",u?`${u},${a.id}`:a.id)}}},Bj=[];function $j(r,t,a={}){let{enabled:l=!0,placement:o="bottom",strategy:u="absolute",modifiers:c=Bj}=a,d=Pj(a,zj);const h=w.useRef(c),p=w.useRef(),g=w.useCallback(()=>{var z;(z=p.current)==null||z.update()},[]),v=w.useCallback(()=>{var z;(z=p.current)==null||z.forceUpdate()},[]),[x,E]=N3(w.useState({placement:o,update:g,forceUpdate:v,attributes:{},styles:{popper:{},arrow:{}}})),N=w.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:z})=>{const H={},G={};Object.keys(z.elements).forEach(k=>{H[k]=z.styles[k],G[k]=z.attributes[k]}),E({state:z,styles:H,attributes:G,update:g,forceUpdate:v,placement:z.placement})}}),[g,v,E]),_=w.useMemo(()=>(to(h.current,c)||(h.current=c),h.current),[c]);return w.useEffect(()=>{!p.current||!l||p.current.setOptions({placement:o,strategy:u,modifiers:[..._,N,Hj]})},[u,o,N,l,_]),w.useEffect(()=>{if(!(!l||r==null||t==null))return p.current=Lj(r,t,Object.assign({},d,{placement:o,strategy:u,modifiers:[..._,kj,N]})),()=>{p.current!=null&&(p.current.destroy(),p.current=void 0,E(z=>Object.assign({},z,{attributes:{},styles:{popper:{}}})))}},[l,r,t]),x}function uo(r,t){if(r.contains)return r.contains(t);if(r.compareDocumentPosition)return r===t||!!(r.compareDocumentPosition(t)&16)}var Bh,BS;function Ij(){if(BS)return Bh;BS=1;var r=function(){};return Bh=r,Bh}var qj=Ij();const Uj=Jn(qj),$S=()=>{};function Gj(r){return r.button===0}function Vj(r){return!!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)}const iu=r=>r&&("current"in r?r.current:r),IS={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Wj(r,t=$S,{disabled:a,clickTrigger:l="click"}={}){const o=w.useRef(!1),u=w.useRef(!1),c=w.useCallback(p=>{const g=iu(r);Uj(!!g,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),o.current=!g||Vj(p)||!Gj(p)||!!uo(g,p.target)||u.current,u.current=!1},[r]),d=wn(p=>{const g=iu(r);g&&uo(g,p.target)?u.current=!0:u.current=!1}),h=wn(p=>{o.current||t(p)});w.useEffect(()=>{var p,g;if(a||r==null)return;const v=ki(iu(r)),x=v.defaultView||window;let E=(p=x.event)!=null?p:(g=x.parent)==null?void 0:g.event,N=null;IS[l]&&(N=Or(v,IS[l],d,!0));const _=Or(v,l,c,!0),z=Or(v,l,G=>{if(G===E){E=void 0;return}h(G)});let H=[];return"ontouchstart"in v.documentElement&&(H=[].slice.call(v.body.children).map(G=>Or(G,"mousemove",$S))),()=>{N==null||N(),_(),z(),H.forEach(G=>G())}},[r,a,l,c,d,h])}function Yj(r){const t={};return Array.isArray(r)?(r==null||r.forEach(a=>{t[a.name]=a}),t):r||t}function Xj(r={}){return Array.isArray(r)?r:Object.keys(r).map(t=>(r[t].name=t,r[t]))}function Fj({enabled:r,enableEvents:t,placement:a,flip:l,offset:o,fixed:u,containerPadding:c,arrowElement:d,popperConfig:h={}}){var p,g,v,x;const E=Yj(h.modifiers);return Object.assign({},h,{placement:a,enabled:r,strategy:u?"fixed":h.strategy,modifiers:Xj(Object.assign({},E,{eventListeners:{enabled:t,options:(p=E.eventListeners)==null?void 0:p.options},preventOverflow:Object.assign({},E.preventOverflow,{options:Object.assign({padding:c},(g=E.preventOverflow)==null?void 0:g.options)}),offset:{options:Object.assign({offset:o},(v=E.offset)==null?void 0:v.options)},arrow:Object.assign({},E.arrow,{enabled:!!d,options:Object.assign({},(x=E.arrow)==null?void 0:x.options,{element:d})}),flip:Object.assign({enabled:!!l},E.flip)}))})}const Ax={prefix:String(Math.round(Math.random()*1e10)),current:0},Mx=Ft.createContext(Ax),Qj=Ft.createContext(!1);let $h=new WeakMap;function Zj(r=!1){let t=w.useContext(Mx),a=w.useRef(null);if(a.current===null&&!r){var l,o;let u=(o=Ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(l=o.ReactCurrentOwner)===null||l===void 0?void 0:l.current;if(u){let c=$h.get(u);c==null?$h.set(u,{id:t.current,state:u.memoizedState}):u.memoizedState!==c.state&&(t.current=c.id,$h.delete(u))}a.current=++t.current}return a.current}function Kj(r){let t=w.useContext(Mx),a=Zj(!!r),l=`react-aria${t.prefix}`;return r||`${l}-${a}`}function Jj(r){let t=Ft.useId(),[a]=w.useState(aA()),l=a?"react-aria":`react-aria${Ax.prefix}`;return r||`${l}-${t}`}const eA=typeof Ft.useId=="function"?Jj:Kj;function tA(){return!1}function nA(){return!0}function rA(r){return()=>{}}function aA(){return typeof Ft.useSyncExternalStore=="function"?Ft.useSyncExternalStore(rA,tA,nA):w.useContext(Qj)}const Mi=w.createContext(null),co=(r,t=null)=>r!=null?String(r):t||null,Sm=w.createContext(null);Sm.displayName="NavContext";const iA="data-rr-ui-",lA="rrUi";function Ru(r){return`${iA}${r}`}function oA(r){return`${lA}${r}`}const Nx=w.createContext($i?window:void 0);Nx.Provider;function wm(){return w.useContext(Nx)}const sA=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",uA=typeof document<"u",Dx=uA||sA?w.useLayoutEffect:w.useEffect,Lx=w.createContext(null);Lx.displayName="InputGroupContext";const zx=w.createContext(null);zx.displayName="NavbarContext";const cA={type:Pt.string,tooltip:Pt.bool,as:Pt.elementType},_u=w.forwardRef(({as:r="div",className:t,type:a="valid",tooltip:l=!1,...o},u)=>S.jsx(r,{...o,ref:u,className:Oe(t,`${a}-${l?"tooltip":"feedback"}`)}));_u.displayName="Feedback";_u.propTypes=cA;const _r=w.createContext({}),Ao=w.forwardRef(({id:r,bsPrefix:t,className:a,type:l="checkbox",isValid:o=!1,isInvalid:u=!1,as:c="input",...d},h)=>{const{controlId:p}=w.useContext(_r);return t=Ce(t,"form-check-input"),S.jsx(c,{...d,ref:h,type:l,id:r||p,className:Oe(a,t,o&&"is-valid",u&&"is-invalid")})});Ao.displayName="FormCheckInput";const fu=w.forwardRef(({bsPrefix:r,className:t,htmlFor:a,...l},o)=>{const{controlId:u}=w.useContext(_r);return r=Ce(r,"form-check-label"),S.jsx("label",{...l,ref:o,htmlFor:a||u,className:Oe(t,r)})});fu.displayName="FormCheckLabel";const Px=w.forwardRef(({id:r,bsPrefix:t,bsSwitchPrefix:a,inline:l=!1,reverse:o=!1,disabled:u=!1,isValid:c=!1,isInvalid:d=!1,feedbackTooltip:h=!1,feedback:p,feedbackType:g,className:v,style:x,title:E="",type:N="checkbox",label:_,children:z,as:H="input",...G},k)=>{t=Ce(t,"form-check"),a=Ce(a,"form-switch");const{controlId:Z}=w.useContext(_r),A=w.useMemo(()=>({controlId:r||Z}),[Z,r]),j=!z&&_!=null&&_!==!1||R3(z,fu),P=S.jsx(Ao,{...G,type:N==="switch"?"checkbox":N,ref:k,isValid:c,isInvalid:d,disabled:u,as:H});return S.jsx(_r.Provider,{value:A,children:S.jsx("div",{style:x,className:Oe(v,j&&t,l&&`${t}-inline`,o&&`${t}-reverse`,N==="switch"&&a),children:z||S.jsxs(S.Fragment,{children:[P,j&&S.jsx(fu,{title:E,children:_}),p&&S.jsx(_u,{type:g,tooltip:h,children:p})]})})})});Px.displayName="FormCheck";const du=Object.assign(Px,{Input:Ao,Label:fu}),Hx=w.forwardRef(({bsPrefix:r,type:t,size:a,htmlSize:l,id:o,className:u,isValid:c=!1,isInvalid:d=!1,plaintext:h,readOnly:p,as:g="input",...v},x)=>{const{controlId:E}=w.useContext(_r);return r=Ce(r,"form-control"),S.jsx(g,{...v,type:t,size:l,ref:x,readOnly:p,id:o||E,className:Oe(u,h?`${r}-plaintext`:r,a&&`${r}-${a}`,t==="color"&&`${r}-color`,c&&"is-valid",d&&"is-invalid")})});Hx.displayName="FormControl";const fA=Object.assign(Hx,{Feedback:_u}),kx=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"form-floating"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));kx.displayName="FormFloating";const xm=w.forwardRef(({controlId:r,as:t="div",...a},l)=>{const o=w.useMemo(()=>({controlId:r}),[r]);return S.jsx(_r.Provider,{value:o,children:S.jsx(t,{...a,ref:l})})});xm.displayName="FormGroup";const Bx=w.forwardRef(({as:r="label",bsPrefix:t,column:a=!1,visuallyHidden:l=!1,className:o,htmlFor:u,...c},d)=>{const{controlId:h}=w.useContext(_r);t=Ce(t,"form-label");let p="col-form-label";typeof a=="string"&&(p=`${p} ${p}-${a}`);const g=Oe(o,t,l&&"visually-hidden",a&&p);return u=u||h,a?S.jsx(lt,{ref:d,as:"label",className:g,htmlFor:u,...c}):S.jsx(r,{ref:d,className:g,htmlFor:u,...c})});Bx.displayName="FormLabel";const $x=w.forwardRef(({bsPrefix:r,className:t,id:a,...l},o)=>{const{controlId:u}=w.useContext(_r);return r=Ce(r,"form-range"),S.jsx("input",{...l,type:"range",ref:o,className:Oe(t,r),id:a||u})});$x.displayName="FormRange";const Ix=w.forwardRef(({bsPrefix:r,size:t,htmlSize:a,className:l,isValid:o=!1,isInvalid:u=!1,id:c,...d},h)=>{const{controlId:p}=w.useContext(_r);return r=Ce(r,"form-select"),S.jsx("select",{...d,size:a,ref:h,className:Oe(l,r,t&&`${r}-${t}`,o&&"is-valid",u&&"is-invalid"),id:c||p})});Ix.displayName="FormSelect";const qx=w.forwardRef(({bsPrefix:r,className:t,as:a="small",muted:l,...o},u)=>(r=Ce(r,"form-text"),S.jsx(a,{...o,ref:u,className:Oe(t,r,l&&"text-muted")})));qx.displayName="FormText";const Ux=w.forwardRef((r,t)=>S.jsx(du,{...r,ref:t,type:"switch"}));Ux.displayName="Switch";const dA=Object.assign(Ux,{Input:du.Input,Label:du.Label}),Gx=w.forwardRef(({bsPrefix:r,className:t,children:a,controlId:l,label:o,...u},c)=>(r=Ce(r,"form-floating"),S.jsxs(xm,{ref:c,className:Oe(t,r),controlId:l,...u,children:[a,S.jsx("label",{htmlFor:l,children:o})]})));Gx.displayName="FloatingLabel";const hA={_ref:Pt.any,validated:Pt.bool,as:Pt.elementType},Om=w.forwardRef(({className:r,validated:t,as:a="form",...l},o)=>S.jsx(a,{...l,ref:o,className:Oe(r,t&&"was-validated")}));Om.displayName="Form";Om.propTypes=hA;const Mt=Object.assign(Om,{Group:xm,Control:fA,Floating:kx,Check:du,Switch:dA,Label:Bx,Text:qx,Range:$x,Select:Ix,FloatingLabel:Gx}),ju=w.forwardRef(({className:r,bsPrefix:t,as:a="span",...l},o)=>(t=Ce(t,"input-group-text"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));ju.displayName="InputGroupText";const pA=r=>S.jsx(ju,{children:S.jsx(Ao,{type:"checkbox",...r})}),mA=r=>S.jsx(ju,{children:S.jsx(Ao,{type:"radio",...r})}),Vx=w.forwardRef(({bsPrefix:r,size:t,hasValidation:a,className:l,as:o="div",...u},c)=>{r=Ce(r,"input-group");const d=w.useMemo(()=>({}),[]);return S.jsx(Lx.Provider,{value:d,children:S.jsx(o,{ref:c,...u,className:Oe(l,r,t&&`${r}-${t}`,a&&"has-validation")})})});Vx.displayName="InputGroup";const Wx=Object.assign(Vx,{Text:ju,Radio:mA,Checkbox:pA}),qS=r=>!r||typeof r=="function"?r:t=>{r.current=t};function gA(r,t){const a=qS(r),l=qS(t);return o=>{a&&a(o),l&&l(o)}}function Mo(r,t){return w.useMemo(()=>gA(r,t),[r,t])}const qi=w.createContext(null),vA=["as","active","eventKey"];function yA(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}function Yx({key:r,onClick:t,active:a,id:l,role:o,disabled:u}){const c=w.useContext(Mi),d=w.useContext(Sm),h=w.useContext(qi);let p=a;const g={role:o};if(d){!o&&d.role==="tablist"&&(g.role="tab");const v=d.getControllerId(r??null),x=d.getControlledId(r??null);g[Ru("event-key")]=r,g.id=v||l,p=a==null&&r!=null?d.activeKey===r:a,(p||!(h!=null&&h.unmountOnExit)&&!(h!=null&&h.mountOnEnter))&&(g["aria-controls"]=x)}return g.role==="tab"&&(g["aria-selected"]=p,p||(g.tabIndex=-1),u&&(g.tabIndex=-1,g["aria-disabled"]=!0)),g.onClick=wn(v=>{u||(t==null||t(v),r!=null&&c&&!v.isPropagationStopped()&&c(r,v))}),[g,{isActive:p}]}const Xx=w.forwardRef((r,t)=>{let{as:a=ox,active:l,eventKey:o}=r,u=yA(r,vA);const[c,d]=Yx(Object.assign({key:co(o,u.href),active:l},u));return c[Ru("active")]=d.isActive,S.jsx(a,Object.assign({},u,c,{ref:t}))});Xx.displayName="NavItem";const bA=["as","onSelect","activeKey","role","onKeyDown"];function SA(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}const US=()=>{},GS=Ru("event-key"),Fx=w.forwardRef((r,t)=>{let{as:a="div",onSelect:l,activeKey:o,role:u,onKeyDown:c}=r,d=SA(r,bA);const h=M3(),p=w.useRef(!1),g=w.useContext(Mi),v=w.useContext(qi);let x,E;v&&(u=u||"tablist",o=v.activeKey,x=v.getControlledId,E=v.getControllerId);const N=w.useRef(null),_=k=>{const Z=N.current;if(!Z)return null;const A=La(Z,`[${GS}]:not([aria-disabled=true])`),j=Z.querySelector("[aria-selected=true]");if(!j||j!==document.activeElement)return null;const P=A.indexOf(j);if(P===-1)return null;let F=P+k;return F>=A.length&&(F=0),F<0&&(F=A.length-1),A[F]},z=(k,Z)=>{k!=null&&(l==null||l(k,Z),g==null||g(k,Z))},H=k=>{if(c==null||c(k),!v)return;let Z;switch(k.key){case"ArrowLeft":case"ArrowUp":Z=_(-1);break;case"ArrowRight":case"ArrowDown":Z=_(1);break;default:return}Z&&(k.preventDefault(),z(Z.dataset[oA("EventKey")]||null,k),p.current=!0,h())};w.useEffect(()=>{if(N.current&&p.current){const k=N.current.querySelector(`[${GS}][aria-selected=true]`);k==null||k.focus()}p.current=!1});const G=Mo(t,N);return S.jsx(Mi.Provider,{value:z,children:S.jsx(Sm.Provider,{value:{role:u,activeKey:co(o),getControlledId:x||US,getControllerId:E||US},children:S.jsx(a,Object.assign({},d,{onKeyDown:H,ref:G,role:u}))})})});Fx.displayName="Nav";const wA=Object.assign(Fx,{Item:Xx});var Js;function VS(r){if((!Js&&Js!==0||r)&&$i){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Js=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Js}function xA(){return w.useState(null)}function Ih(r){r===void 0&&(r=ki());try{var t=r.activeElement;return!t||!t.nodeName?null:t}catch{return r.body}}function OA(r){const t=w.useRef(r);return t.current=r,t}function TA(r){const t=OA(r);w.useEffect(()=>()=>t.current(),[])}function EA(r=document){const t=r.defaultView;return Math.abs(t.innerWidth-r.documentElement.clientWidth)}const WS=Ru("modal-open");class Tm{constructor({ownerDocument:t,handleContainerOverflow:a=!0,isRTL:l=!1}={}){this.handleContainerOverflow=a,this.isRTL=l,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return EA(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const a={overflow:"hidden"},l=this.isRTL?"paddingLeft":"paddingRight",o=this.getElement();t.style={overflow:o.style.overflow,[l]:o.style[l]},t.scrollBarWidth&&(a[l]=`${parseInt(ka(o,l)||"0",10)+t.scrollBarWidth}px`),o.setAttribute(WS,""),ka(o,a)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const a=this.getElement();a.removeAttribute(WS),Object.assign(a.style,t.style)}add(t){let a=this.modals.indexOf(t);return a!==-1||(a=this.modals.length,this.modals.push(t),this.setModalAttributes(t),a!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),a}remove(t){const a=this.modals.indexOf(t);a!==-1&&(this.modals.splice(a,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const qh=(r,t)=>$i?r==null?(t||ki()).body:(typeof r=="function"&&(r=r()),r&&"current"in r&&(r=r.current),r&&("nodeType"in r||r.getBoundingClientRect)?r:null):null;function Lp(r,t){const a=wm(),[l,o]=w.useState(()=>qh(r,a==null?void 0:a.document));if(!l){const u=qh(r);u&&o(u)}return w.useEffect(()=>{},[t,l]),w.useEffect(()=>{const u=qh(r);u!==l&&o(u)},[r,l]),l}function Em({children:r,in:t,onExited:a,mountOnEnter:l,unmountOnExit:o}){const u=w.useRef(null),c=w.useRef(t),d=wn(a);w.useEffect(()=>{t?c.current=!0:d(u.current)},[t,d]);const h=Mo(u,Bi(r)),p=w.cloneElement(r,{ref:h});return t?p:o||!c.current&&l?null:p}const CA=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function RA(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}function _A(r){let{onEnter:t,onEntering:a,onEntered:l,onExit:o,onExiting:u,onExited:c,addEndListener:d,children:h}=r,p=RA(r,CA);const g=w.useRef(null),v=Mo(g,Bi(h)),x=Z=>A=>{Z&&g.current&&Z(g.current,A)},E=w.useCallback(x(t),[t]),N=w.useCallback(x(a),[a]),_=w.useCallback(x(l),[l]),z=w.useCallback(x(o),[o]),H=w.useCallback(x(u),[u]),G=w.useCallback(x(c),[c]),k=w.useCallback(x(d),[d]);return Object.assign({},p,{nodeRef:g},t&&{onEnter:E},a&&{onEntering:N},l&&{onEntered:_},o&&{onExit:z},u&&{onExiting:H},c&&{onExited:G},d&&{addEndListener:k},{children:typeof h=="function"?(Z,A)=>h(Z,Object.assign({},A,{ref:v})):w.cloneElement(h,{ref:v})})}const jA=["component"];function AA(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}const MA=w.forwardRef((r,t)=>{let{component:a}=r,l=AA(r,jA);const o=_A(l);return S.jsx(a,Object.assign({ref:t},o))});function NA({in:r,onTransition:t}){const a=w.useRef(null),l=w.useRef(!0),o=wn(t);return RS(()=>{if(!a.current)return;let u=!1;return o({in:r,element:a.current,initial:l.current,isStale:()=>u}),()=>{u=!0}},[r,o]),RS(()=>(l.current=!1,()=>{l.current=!0}),[]),a}function DA({children:r,in:t,onExited:a,onEntered:l,transition:o}){const[u,c]=w.useState(!t);t&&u&&c(!1);const d=NA({in:!!t,onTransition:p=>{const g=()=>{p.isStale()||(p.in?l==null||l(p.element,p.initial):(c(!0),a==null||a(p.element)))};Promise.resolve(o(p)).then(g,v=>{throw p.in||c(!0),v})}}),h=Mo(d,Bi(r));return u&&!t?null:w.cloneElement(r,{ref:h})}function zp(r,t,a){return r?S.jsx(MA,Object.assign({},a,{component:r})):t?S.jsx(DA,Object.assign({},a,{transition:t})):S.jsx(Em,Object.assign({},a))}const LA=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function zA(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}let Uh;function PA(r){return Uh||(Uh=new Tm({ownerDocument:r==null?void 0:r.document})),Uh}function HA(r){const t=wm(),a=r||PA(t),l=w.useRef({dialog:null,backdrop:null});return Object.assign(l.current,{add:()=>a.add(l.current),remove:()=>a.remove(l.current),isTopModal:()=>a.isTopModal(l.current),setDialogRef:w.useCallback(o=>{l.current.dialog=o},[]),setBackdropRef:w.useCallback(o=>{l.current.backdrop=o},[])})}const Qx=w.forwardRef((r,t)=>{let{show:a=!1,role:l="dialog",className:o,style:u,children:c,backdrop:d=!0,keyboard:h=!0,onBackdropClick:p,onEscapeKeyDown:g,transition:v,runTransition:x,backdropTransition:E,runBackdropTransition:N,autoFocus:_=!0,enforceFocus:z=!0,restoreFocus:H=!0,restoreFocusOptions:G,renderDialog:k,renderBackdrop:Z=ye=>S.jsx("div",Object.assign({},ye)),manager:A,container:j,onShow:P,onHide:F=()=>{},onExit:D,onExited:T,onExiting:X,onEnter:I,onEntering:q,onEntered:$}=r,U=zA(r,LA);const L=wm(),b=Lp(j),te=HA(A),R=lx(),y=f3(a),[C,W]=w.useState(!a),J=w.useRef(null);w.useImperativeHandle(t,()=>te,[te]),$i&&!y&&a&&(J.current=Ih(L==null?void 0:L.document)),a&&C&&W(!1);const B=wn(()=>{if(te.add(),he.current=Or(document,"keydown",ue),me.current=Or(document,"focus",()=>setTimeout(V),!0),P&&P(),_){var ye,Re;const be=Ih((ye=(Re=te.dialog)==null?void 0:Re.ownerDocument)!=null?ye:L==null?void 0:L.document);te.dialog&&be&&!uo(te.dialog,be)&&(J.current=be,te.dialog.focus())}}),Q=wn(()=>{if(te.remove(),he.current==null||he.current(),me.current==null||me.current(),H){var ye;(ye=J.current)==null||ye.focus==null||ye.focus(G),J.current=null}});w.useEffect(()=>{!a||!b||B()},[a,b,B]),w.useEffect(()=>{C&&Q()},[C,Q]),TA(()=>{Q()});const V=wn(()=>{if(!z||!R()||!te.isTopModal())return;const ye=Ih(L==null?void 0:L.document);te.dialog&&ye&&!uo(te.dialog,ye)&&te.dialog.focus()}),ne=wn(ye=>{ye.target===ye.currentTarget&&(p==null||p(ye),d===!0&&F())}),ue=wn(ye=>{h&&nx(ye)&&te.isTopModal()&&(g==null||g(ye),ye.defaultPrevented||F())}),me=w.useRef(),he=w.useRef(),ve=(...ye)=>{W(!0),T==null||T(...ye)};if(!b)return null;const pe=Object.assign({role:l,ref:te.setDialogRef,"aria-modal":l==="dialog"?!0:void 0},U,{style:u,className:o,tabIndex:-1});let ge=k?k(pe):S.jsx("div",Object.assign({},pe,{children:w.cloneElement(c,{role:"document"})}));ge=zp(v,x,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!a,onExit:D,onExiting:X,onExited:ve,onEnter:I,onEntering:q,onEntered:$,children:ge});let Se=null;return d&&(Se=Z({ref:te.setBackdropRef,onClick:ne}),Se=zp(E,N,{in:!!a,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Se})),S.jsx(S.Fragment,{children:Pa.createPortal(S.jsxs(S.Fragment,{children:[Se,ge]}),b)})});Qx.displayName="Modal";const Zx=Object.assign(Qx,{Manager:Tm});function Pp(r,t){return r.classList?!!t&&r.classList.contains(t):(" "+(r.className.baseVal||r.className)+" ").indexOf(" "+t+" ")!==-1}function kA(r,t){r.classList?r.classList.add(t):Pp(r,t)||(typeof r.className=="string"?r.className=r.className+" "+t:r.setAttribute("class",(r.className&&r.className.baseVal||"")+" "+t))}function YS(r,t){return r.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function BA(r,t){r.classList?r.classList.remove(t):typeof r.className=="string"?r.className=YS(r.className,t):r.setAttribute("class",YS(r.className&&r.className.baseVal||"",t))}const Ci={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class Kx extends Tm{adjustAndStore(t,a,l){const o=a.style[t];a.dataset[t]=o,ka(a,{[t]:`${parseFloat(ka(a,t))+l}px`})}restore(t,a){const l=a.dataset[t];l!==void 0&&(delete a.dataset[t],ka(a,{[t]:l}))}setContainerStyle(t){super.setContainerStyle(t);const a=this.getElement();if(kA(a,"modal-open"),!t.scrollBarWidth)return;const l=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";La(a,Ci.FIXED_CONTENT).forEach(u=>this.adjustAndStore(l,u,t.scrollBarWidth)),La(a,Ci.STICKY_CONTENT).forEach(u=>this.adjustAndStore(o,u,-t.scrollBarWidth)),La(a,Ci.NAVBAR_TOGGLER).forEach(u=>this.adjustAndStore(o,u,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const a=this.getElement();BA(a,"modal-open");const l=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";La(a,Ci.FIXED_CONTENT).forEach(u=>this.restore(l,u)),La(a,Ci.STICKY_CONTENT).forEach(u=>this.restore(o,u)),La(a,Ci.NAVBAR_TOGGLER).forEach(u=>this.restore(o,u))}}let Gh;function Jx(r){return Gh||(Gh=new Kx(r)),Gh}const eO=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"modal-body"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));eO.displayName="ModalBody";const Cm=w.createContext({onHide(){}}),Rm=w.forwardRef(({bsPrefix:r,className:t,contentClassName:a,centered:l,size:o,fullscreen:u,children:c,scrollable:d,...h},p)=>{r=Ce(r,"modal");const g=`${r}-dialog`,v=typeof u=="string"?`${r}-fullscreen-${u}`:`${r}-fullscreen`;return S.jsx("div",{...h,ref:p,className:Oe(g,t,o&&`${r}-${o}`,l&&`${g}-centered`,d&&`${g}-scrollable`,u&&v),children:S.jsx("div",{className:Oe(`${r}-content`,a),children:c})})});Rm.displayName="ModalDialog";const tO=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"modal-footer"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));tO.displayName="ModalFooter";const _m=w.forwardRef(({closeLabel:r="Close",closeVariant:t,closeButton:a=!1,onHide:l,children:o,...u},c)=>{const d=w.useContext(Cm),h=lo(()=>{d==null||d.onHide(),l==null||l()});return S.jsxs("div",{ref:c,...u,children:[o,a&&S.jsx(cm,{"aria-label":r,variant:t,onClick:h})]})});_m.displayName="AbstractModalHeader";const nO=w.forwardRef(({bsPrefix:r,className:t,closeLabel:a="Close",closeButton:l=!1,...o},u)=>(r=Ce(r,"modal-header"),S.jsx(_m,{ref:u,...o,className:Oe(t,r),closeLabel:a,closeButton:l})));nO.displayName="ModalHeader";const $A=Eu("h4"),rO=w.forwardRef(({className:r,bsPrefix:t,as:a=$A,...l},o)=>(t=Ce(t,"modal-title"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));rO.displayName="ModalTitle";function IA(r){return S.jsx(ua,{...r,timeout:null})}function qA(r){return S.jsx(ua,{...r,timeout:null})}const aO=w.forwardRef(({bsPrefix:r,className:t,style:a,dialogClassName:l,contentClassName:o,children:u,dialogAs:c=Rm,"data-bs-theme":d,"aria-labelledby":h,"aria-describedby":p,"aria-label":g,show:v=!1,animation:x=!0,backdrop:E=!0,keyboard:N=!0,onEscapeKeyDown:_,onShow:z,onHide:H,container:G,autoFocus:k=!0,enforceFocus:Z=!0,restoreFocus:A=!0,restoreFocusOptions:j,onEntered:P,onExit:F,onExiting:D,onEnter:T,onEntering:X,onExited:I,backdropClassName:q,manager:$,...U},L)=>{const[b,te]=w.useState({}),[R,y]=w.useState(!1),C=w.useRef(!1),W=w.useRef(!1),J=w.useRef(null),[B,Q]=xA(),V=Tu(L,Q),ne=lo(H),ue=om();r=Ce(r,"modal");const me=w.useMemo(()=>({onHide:ne}),[ne]);function he(){return $||Jx({isRTL:ue})}function ve(Ae){if(!$i)return;const Be=he().getScrollbarWidth()>0,nt=Ae.scrollHeight>ki(Ae).documentElement.clientHeight;te({paddingRight:Be&&!nt?VS():void 0,paddingLeft:!Be&&nt?VS():void 0})}const pe=lo(()=>{B&&ve(B.dialog)});bx(()=>{Ap(window,"resize",pe),J.current==null||J.current()});const ge=()=>{C.current=!0},Se=Ae=>{C.current&&B&&Ae.target===B.dialog&&(W.current=!0),C.current=!1},ye=()=>{y(!0),J.current=ax(B.dialog,()=>{y(!1)})},Re=Ae=>{Ae.target===Ae.currentTarget&&ye()},be=Ae=>{if(E==="static"){Re(Ae);return}if(W.current||Ae.target!==Ae.currentTarget){W.current=!1;return}H==null||H()},Le=Ae=>{N?_==null||_(Ae):(Ae.preventDefault(),E==="static"&&ye())},Pe=(Ae,Be)=>{Ae&&ve(Ae),T==null||T(Ae,Be)},Ee=Ae=>{J.current==null||J.current(),F==null||F(Ae)},ke=(Ae,Be)=>{X==null||X(Ae,Be),rx(window,"resize",pe)},ot=Ae=>{Ae&&(Ae.style.display=""),I==null||I(Ae),Ap(window,"resize",pe)},ft=w.useCallback(Ae=>S.jsx("div",{...Ae,className:Oe(`${r}-backdrop`,q,!x&&"show")}),[x,q,r]),yt={...a,...b};yt.display="block";const Nt=Ae=>S.jsx("div",{role:"dialog",...Ae,style:yt,className:Oe(t,r,R&&`${r}-static`,!x&&"show"),onClick:E?be:void 0,onMouseUp:Se,"data-bs-theme":d,"aria-label":g,"aria-labelledby":h,"aria-describedby":p,children:S.jsx(c,{...U,onMouseDown:ge,className:l,contentClassName:o,children:u})});return S.jsx(Cm.Provider,{value:me,children:S.jsx(Zx,{show:v,ref:V,backdrop:E,container:G,keyboard:!0,autoFocus:k,enforceFocus:Z,restoreFocus:A,restoreFocusOptions:j,onEscapeKeyDown:Le,onShow:z,onHide:H,onEnter:Pe,onEntering:ke,onEntered:P,onExit:Ee,onExiting:D,onExited:ot,manager:he(),transition:x?IA:void 0,backdropTransition:x?qA:void 0,renderBackdrop:ft,renderDialog:Nt})})});aO.displayName="Modal";const Ha=Object.assign(aO,{Body:eO,Header:nO,Title:rO,Footer:tO,Dialog:Rm,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),iO=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"nav-item"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));iO.displayName="NavItem";const lO=w.forwardRef(({bsPrefix:r,className:t,as:a=sx,active:l,eventKey:o,disabled:u=!1,...c},d)=>{r=Ce(r,"nav-link");const[h,p]=Yx({key:co(o,c.href),active:l,disabled:u,...c});return S.jsx(a,{...c,...h,ref:d,disabled:u,className:Oe(t,r,u&&"disabled",p.isActive&&"active")})});lO.displayName="NavLink";const oO=w.forwardRef((r,t)=>{const{as:a="div",bsPrefix:l,variant:o,fill:u=!1,justify:c=!1,navbar:d,navbarScroll:h,className:p,activeKey:g,...v}=U_(r,{activeKey:"onSelect"}),x=Ce(l,"nav");let E,N,_=!1;const z=w.useContext(zx),H=w.useContext(dm);return z?(E=z.bsPrefix,_=d??!0):H&&({cardHeaderBsPrefix:N}=H),S.jsx(wA,{as:a,ref:t,activeKey:g,className:Oe(p,{[x]:!_,[`${E}-nav`]:_,[`${E}-nav-scroll`]:_&&h,[`${N}-${o}`]:!!N,[`${x}-${o}`]:!!o,[`${x}-fill`]:u,[`${x}-justified`]:c}),...v})});oO.displayName="Nav";const Gl=Object.assign(oO,{Item:iO,Link:lO}),Hp=new WeakMap,XS=(r,t)=>{if(!r||!t)return;const a=Hp.get(t)||new Map;Hp.set(t,a);let l=a.get(r);return l||(l=t.matchMedia(r),l.refCount=0,a.set(l.media,l)),l};function UA(r,t=typeof window>"u"?void 0:window){const a=XS(r,t),[l,o]=w.useState(()=>a?a.matches:!1);return Dx(()=>{let u=XS(r,t);if(!u)return o(!1);let c=Hp.get(t);const d=()=>{o(u.matches)};return u.refCount++,u.addListener(d),d(),()=>{u.removeListener(d),u.refCount--,u.refCount<=0&&(c==null||c.delete(u.media)),u=void 0}},[r]),l}function GA(r){const t=Object.keys(r);function a(d,h){return d===h?h:d?`${d} and ${h}`:h}function l(d){return t[Math.min(t.indexOf(d)+1,t.length-1)]}function o(d){const h=l(d);let p=r[h];return typeof p=="number"?p=`${p-.2}px`:p=`calc(${p} - 0.2px)`,`(max-width: ${p})`}function u(d){let h=r[d];return typeof h=="number"&&(h=`${h}px`),`(min-width: ${h})`}function c(d,h,p){let g;typeof d=="object"?(g=d,p=h,h=!0):(h=h||!0,g={[d]:h});let v=w.useMemo(()=>Object.entries(g).reduce((x,[E,N])=>((N==="up"||N===!0)&&(x=a(x,u(E))),(N==="down"||N===!0)&&(x=a(x,o(E))),x),""),[JSON.stringify(g)]);return UA(v,p)}return c}const VA=GA({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),sO=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"offcanvas-body"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));sO.displayName="OffcanvasBody";const WA={[Xn]:"show",[sa]:"show"},uO=w.forwardRef(({bsPrefix:r,className:t,children:a,in:l=!1,mountOnEnter:o=!1,unmountOnExit:u=!1,appear:c=!1,...d},h)=>(r=Ce(r,"offcanvas"),S.jsx(sm,{ref:h,addEndListener:ix,in:l,mountOnEnter:o,unmountOnExit:u,appear:c,...d,childRef:Bi(a),children:(p,g)=>w.cloneElement(a,{...g,className:Oe(t,a.props.className,(p===Xn||p===su)&&`${r}-toggling`,WA[p])})})));uO.displayName="OffcanvasToggling";const cO=w.forwardRef(({bsPrefix:r,className:t,closeLabel:a="Close",closeButton:l=!1,...o},u)=>(r=Ce(r,"offcanvas-header"),S.jsx(_m,{ref:u,...o,className:Oe(t,r),closeLabel:a,closeButton:l})));cO.displayName="OffcanvasHeader";const YA=Eu("h5"),fO=w.forwardRef(({className:r,bsPrefix:t,as:a=YA,...l},o)=>(t=Ce(t,"offcanvas-title"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));fO.displayName="OffcanvasTitle";function XA(r){return S.jsx(uO,{...r})}function FA(r){return S.jsx(ua,{...r})}const dO=w.forwardRef(({bsPrefix:r,className:t,children:a,"aria-labelledby":l,placement:o="start",responsive:u,show:c=!1,backdrop:d=!0,keyboard:h=!0,scroll:p=!1,onEscapeKeyDown:g,onShow:v,onHide:x,container:E,autoFocus:N=!0,enforceFocus:_=!0,restoreFocus:z=!0,restoreFocusOptions:H,onEntered:G,onExit:k,onExiting:Z,onEnter:A,onEntering:j,onExited:P,backdropClassName:F,manager:D,renderStaticNode:T=!1,...X},I)=>{const q=w.useRef();r=Ce(r,"offcanvas");const[$,U]=w.useState(!1),L=lo(x),b=VA(u||"xs","up");w.useEffect(()=>{U(u?c&&!b:c)},[c,u,b]);const te=w.useMemo(()=>({onHide:L}),[L]);function R(){return D||(p?(q.current||(q.current=new Kx({handleContainerOverflow:!1})),q.current):Jx())}const y=(B,...Q)=>{B&&(B.style.visibility="visible"),A==null||A(B,...Q)},C=(B,...Q)=>{B&&(B.style.visibility=""),P==null||P(...Q)},W=w.useCallback(B=>S.jsx("div",{...B,className:Oe(`${r}-backdrop`,F)}),[F,r]),J=B=>S.jsx("div",{...B,...X,className:Oe(t,u?`${r}-${u}`:r,`${r}-${o}`),"aria-labelledby":l,children:a});return S.jsxs(S.Fragment,{children:[!$&&(u||T)&&J({}),S.jsx(Cm.Provider,{value:te,children:S.jsx(Zx,{show:$,ref:I,backdrop:d,container:E,keyboard:h,autoFocus:N,enforceFocus:_&&!p,restoreFocus:z,restoreFocusOptions:H,onEscapeKeyDown:g,onShow:v,onHide:L,onEnter:y,onEntering:j,onEntered:G,onExit:k,onExiting:Z,onExited:C,manager:R(),transition:XA,backdropTransition:FA,renderBackdrop:W,renderDialog:J})})]})});dO.displayName="Offcanvas";const FS=Object.assign(dO,{Body:sO,Header:cO,Title:fO}),QA=()=>{};function ZA(r,t,{disabled:a,clickTrigger:l}={}){const o=t||QA;Wj(r,o,{disabled:a,clickTrigger:l});const u=wn(c=>{nx(c)&&o(c)});w.useEffect(()=>{if(a||r==null)return;const c=ki(iu(r));let d=(c.defaultView||window).event;const h=Or(c,"keyup",p=>{if(p===d){d=void 0;return}u(p)});return()=>{h()}},[r,a,u])}const hO=w.forwardRef((r,t)=>{const{flip:a,offset:l,placement:o,containerPadding:u,popperConfig:c={},transition:d,runTransition:h}=r,[p,g]=CS(),[v,x]=CS(),E=Mo(g,t),N=Lp(r.container),_=Lp(r.target),[z,H]=w.useState(!r.show),G=$j(_,p,Fj({placement:o,enableEvents:!!r.show,containerPadding:u||5,flip:a,offset:l,arrowElement:v,popperConfig:c}));r.show&&z&&H(!1);const k=(...X)=>{H(!0),r.onExited&&r.onExited(...X)},Z=r.show||!z;if(ZA(p,r.onHide,{disabled:!r.rootClose||r.rootCloseDisabled,clickTrigger:r.rootCloseEvent}),!Z)return null;const{onExit:A,onExiting:j,onEnter:P,onEntering:F,onEntered:D}=r;let T=r.children(Object.assign({},G.attributes.popper,{style:G.styles.popper,ref:E}),{popper:G,placement:o,show:!!r.show,arrowProps:Object.assign({},G.attributes.arrow,{style:G.styles.arrow,ref:x})});return T=zp(d,h,{in:!!r.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:T,onExit:A,onExiting:j,onExited:k,onEnter:P,onEntering:F,onEntered:D}),N?Pa.createPortal(T,N):null});hO.displayName="Overlay";const pO=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"popover-header"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));pO.displayName="PopoverHeader";const jm=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"popover-body"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));jm.displayName="PopoverBody";function mO(r,t){let a=r;return r==="left"?a=t?"end":"start":r==="right"&&(a=t?"start":"end"),a}function gO(r="absolute"){return{position:r,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const vO=w.forwardRef(({bsPrefix:r,placement:t="right",className:a,style:l,children:o,body:u,arrowProps:c,hasDoneInitialMeasure:d,popper:h,show:p,...g},v)=>{const x=Ce(r,"popover"),E=om(),[N]=(t==null?void 0:t.split("-"))||[],_=mO(N,E);let z=l;return p&&!d&&(z={...l,...gO(h==null?void 0:h.strategy)}),S.jsxs("div",{ref:v,role:"tooltip",style:z,"x-placement":N,className:Oe(a,x,N&&`bs-popover-${_}`),...g,children:[S.jsx("div",{className:"popover-arrow",...c}),u?S.jsx(jm,{children:o}):o]})});vO.displayName="Popover";const kp=Object.assign(vO,{Header:pO,Body:jm,POPPER_OFFSET:[0,8]}),yO=w.forwardRef(({bsPrefix:r,placement:t="right",className:a,style:l,children:o,arrowProps:u,hasDoneInitialMeasure:c,popper:d,show:h,...p},g)=>{r=Ce(r,"tooltip");const v=om(),[x]=(t==null?void 0:t.split("-"))||[],E=mO(x,v);let N=l;return h&&!c&&(N={...l,...gO(d==null?void 0:d.strategy)}),S.jsxs("div",{ref:g,style:N,role:"tooltip","x-placement":x,className:Oe(a,r,`bs-tooltip-${E}`),...p,children:[S.jsx("div",{className:"tooltip-arrow",...u}),S.jsx("div",{className:`${r}-inner`,children:o})]})});yO.displayName="Tooltip";const KA=Object.assign(yO,{TOOLTIP_OFFSET:[0,6]});function JA(r){const t=w.useRef(null),a=Ce(void 0,"popover"),l=Ce(void 0,"tooltip"),o=w.useMemo(()=>({name:"offset",options:{offset:()=>{if(r)return r;if(t.current){if(Pp(t.current,a))return kp.POPPER_OFFSET;if(Pp(t.current,l))return KA.TOOLTIP_OFFSET}return[0,0]}}}),[r,a,l]);return[t,[o]]}function eM(r,t){const{ref:a}=r,{ref:l}=t;r.ref=a.__wrapped||(a.__wrapped=o=>a(uu(o))),t.ref=l.__wrapped||(l.__wrapped=o=>l(uu(o)))}const bO=w.forwardRef(({children:r,transition:t=ua,popperConfig:a={},rootClose:l=!1,placement:o="top",show:u=!1,...c},d)=>{const h=w.useRef({}),[p,g]=w.useState(null),[v,x]=JA(c.offset),E=Tu(d,v),N=t===!0?ua:t||void 0,_=lo(z=>{g(z),a==null||a.onFirstUpdate==null||a.onFirstUpdate(z)});return Dx(()=>{p&&c.target&&(h.current.scheduleUpdate==null||h.current.scheduleUpdate())},[p,c.target]),w.useEffect(()=>{u||g(null)},[u]),S.jsx(hO,{...c,ref:E,popperConfig:{...a,modifiers:x.concat(a.modifiers||[]),onFirstUpdate:_},transition:N,rootClose:l,placement:o,show:u,children:(z,{arrowProps:H,popper:G,show:k})=>{var Z;eM(z,H);const A=G==null?void 0:G.placement,j=Object.assign(h.current,{state:G==null?void 0:G.state,scheduleUpdate:G==null?void 0:G.update,placement:A,outOfBoundaries:(G==null||(Z=G.state)==null||(Z=Z.modifiersData.hide)==null?void 0:Z.isReferenceHidden)||!1,strategy:a.strategy}),P=!!p;return typeof r=="function"?r({...z,placement:A,show:k,...!t&&k&&{className:"show"},popper:j,arrowProps:H,hasDoneInitialMeasure:P}):w.cloneElement(r,{...z,placement:A,arrowProps:H,popper:j,hasDoneInitialMeasure:P,className:Oe(r.props.className,!t&&k&&"show"),style:{...r.props.style,...z.style}})}})});bO.displayName="Overlay";function tM(r){return r&&typeof r=="object"?r:{show:r,hide:r}}function QS(r,t,a){const[l]=t,o=l.currentTarget,u=l.relatedTarget||l.nativeEvent[a];(!u||u!==o)&&!uo(o,u)&&r(...t)}Pt.oneOf(["click","hover","focus"]);const nM=({trigger:r=["hover","focus"],overlay:t,children:a,popperConfig:l={},show:o,defaultShow:u=!1,onToggle:c,delay:d,placement:h,flip:p=h&&h.indexOf("auto")!==-1,...g})=>{const v=w.useRef(null),x=Tu(v,Bi(a)),E=C3(),N=w.useRef(""),[_,z]=Zw(o,u,c),H=tM(d),{onFocus:G,onBlur:k,onClick:Z}=typeof a!="function"?w.Children.only(a).props:{},A=U=>{x(uu(U))},j=w.useCallback(()=>{if(E.clear(),N.current="show",!H.show){z(!0);return}E.set(()=>{N.current==="show"&&z(!0)},H.show)},[H.show,z,E]),P=w.useCallback(()=>{if(E.clear(),N.current="hide",!H.hide){z(!1);return}E.set(()=>{N.current==="hide"&&z(!1)},H.hide)},[H.hide,z,E]),F=w.useCallback((...U)=>{j(),G==null||G(...U)},[j,G]),D=w.useCallback((...U)=>{P(),k==null||k(...U)},[P,k]),T=w.useCallback((...U)=>{z(!_),Z==null||Z(...U)},[Z,z,_]),X=w.useCallback((...U)=>{QS(j,U,"fromElement")},[j]),I=w.useCallback((...U)=>{QS(P,U,"toElement")},[P]),q=r==null?[]:[].concat(r),$={ref:A};return q.indexOf("click")!==-1&&($.onClick=T),q.indexOf("focus")!==-1&&($.onFocus=F,$.onBlur=D),q.indexOf("hover")!==-1&&($.onMouseOver=X,$.onMouseOut=I),S.jsxs(S.Fragment,{children:[typeof a=="function"?a($):w.cloneElement(a,$),S.jsx(bO,{...g,show:_,onHide:P,flip:p,placement:h,popperConfig:l,target:v.current,children:t})]})},vt=w.forwardRef(({bsPrefix:r,className:t,as:a="div",...l},o)=>{const u=Ce(r,"row"),c=im(),d=lm(),h=`${u}-cols`,p=[];return c.forEach(g=>{const v=l[g];delete l[g];let x;v!=null&&typeof v=="object"?{cols:x}=v:x=v;const E=g!==d?`-${g}`:"";x!=null&&p.push(`${h}${E}-${x}`)}),S.jsx(a,{ref:o,...l,className:Oe(t,u,...p)})});vt.displayName="Row";function rM(r,t=Kw,a=Jw){const l=[];return Object.entries(r).forEach(([o,u])=>{u!=null&&(typeof u=="object"?t.forEach(c=>{const d=u[c];if(d!=null){const h=c!==a?`-${c}`:"";l.push(`${o}${h}-${d}`)}}):l.push(`${o}-${u}`))}),l}const Ne=w.forwardRef(({as:r="div",bsPrefix:t,className:a,direction:l,gap:o,...u},c)=>{t=Ce(t,l==="horizontal"?"hstack":"vstack");const d=im(),h=lm();return S.jsx(r,{...u,ref:c,className:Oe(a,t,...rM({gap:o},d,h))})});Ne.displayName="Stack";const aM=["active","eventKey","mountOnEnter","transition","unmountOnExit","role","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],iM=["activeKey","getControlledId","getControllerId"],lM=["as"];function Bp(r,t){if(r==null)return{};var a={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(t.indexOf(l)>=0)continue;a[l]=r[l]}return a}function SO(r){let{active:t,eventKey:a,mountOnEnter:l,transition:o,unmountOnExit:u,role:c="tabpanel",onEnter:d,onEntering:h,onEntered:p,onExit:g,onExiting:v,onExited:x}=r,E=Bp(r,aM);const N=w.useContext(qi);if(!N)return[Object.assign({},E,{role:c}),{eventKey:a,isActive:t,mountOnEnter:l,transition:o,unmountOnExit:u,onEnter:d,onEntering:h,onEntered:p,onExit:g,onExiting:v,onExited:x}];const{activeKey:_,getControlledId:z,getControllerId:H}=N,G=Bp(N,iM),k=co(a);return[Object.assign({},E,{role:c,id:z(a),"aria-labelledby":H(a)}),{eventKey:a,isActive:t==null&&k!=null?co(_)===k:t,transition:o||G.transition,mountOnEnter:l??G.mountOnEnter,unmountOnExit:u??G.unmountOnExit,onEnter:d,onEntering:h,onEntered:p,onExit:g,onExiting:v,onExited:x}]}const wO=w.forwardRef((r,t)=>{let{as:a="div"}=r,l=Bp(r,lM);const[o,{isActive:u,onEnter:c,onEntering:d,onEntered:h,onExit:p,onExiting:g,onExited:v,mountOnEnter:x,unmountOnExit:E,transition:N=Em}]=SO(l);return S.jsx(qi.Provider,{value:null,children:S.jsx(Mi.Provider,{value:null,children:S.jsx(N,{in:u,onEnter:c,onEntering:d,onEntered:h,onExit:p,onExiting:g,onExited:v,mountOnEnter:x,unmountOnExit:E,children:S.jsx(a,Object.assign({},o,{ref:t,hidden:!u,"aria-hidden":!u}))})})})});wO.displayName="TabPanel";const xO=r=>{const{id:t,generateChildId:a,onSelect:l,activeKey:o,defaultActiveKey:u,transition:c,mountOnEnter:d,unmountOnExit:h,children:p}=r,[g,v]=A3(o,u,l),x=eA(t),E=w.useMemo(()=>a||((_,z)=>x?`${x}-${z}-${_}`:null),[x,a]),N=w.useMemo(()=>({onSelect:v,activeKey:g,transition:c,mountOnEnter:d||!1,unmountOnExit:h||!1,getControlledId:_=>E(_,"tabpane"),getControllerId:_=>E(_,"tab")}),[v,g,c,d,h,E]);return S.jsx(qi.Provider,{value:N,children:S.jsx(Mi.Provider,{value:v||null,children:p})})};xO.Panel=wO;function OO(r){return typeof r=="boolean"?r?ua:Em:r}const TO=({transition:r,...t})=>S.jsx(xO,{...t,transition:OO(r)});TO.displayName="TabContainer";const EO=w.forwardRef(({className:r,bsPrefix:t,as:a="div",...l},o)=>(t=Ce(t,"tab-content"),S.jsx(a,{ref:o,className:Oe(r,t),...l})));EO.displayName="TabContent";const CO=w.forwardRef(({bsPrefix:r,transition:t,...a},l)=>{const[{className:o,as:u="div",...c},{isActive:d,onEnter:h,onEntering:p,onEntered:g,onExit:v,onExiting:x,onExited:E,mountOnEnter:N,unmountOnExit:_,transition:z=ua}]=SO({...a,transition:OO(t)}),H=Ce(r,"tab-pane");return S.jsx(qi.Provider,{value:null,children:S.jsx(Mi.Provider,{value:null,children:S.jsx(z,{in:d,onEnter:h,onEntering:p,onEntered:g,onExit:v,onExiting:x,onExited:E,mountOnEnter:N,unmountOnExit:_,children:S.jsx(u,{...c,ref:l,className:Oe(o,H,d&&"active")})})})})});CO.displayName="TabPane";const oM={eventKey:Pt.oneOfType([Pt.string,Pt.number]),title:Pt.node.isRequired,disabled:Pt.bool,tabClassName:Pt.string,tabAttrs:Pt.object},RO=()=>{throw new Error("ReactBootstrap: The `Tab` component is not meant to be rendered! It's an abstract component that is only valid as a direct Child of the `Tabs` Component. For custom tabs components use TabPane and TabsContainer directly")};RO.propTypes=oM;const eu=Object.assign(RO,{Container:TO,Content:EO,Pane:CO}),sM=()=>{},_O=w.forwardRef(({bsPrefix:r,name:t,className:a,checked:l,type:o,onChange:u,value:c,disabled:d,id:h,inputRef:p,...g},v)=>(r=Ce(r,"btn-check"),S.jsxs(S.Fragment,{children:[S.jsx("input",{className:r,name:t,type:o,value:c,ref:p,autoComplete:"off",checked:!!l,disabled:!!d,onChange:u||sM,id:h}),S.jsx(Qt,{...g,ref:v,className:Oe(a,d&&"disabled"),type:void 0,role:void 0,as:"label",htmlFor:h})]})));_O.displayName="ToggleButton";var fo,ho,po,mo,go,vo,yo,bo,So,vu,jO;const ao=class ao{constructor(t){Sn(this,vu);Sn(this,fo);Sn(this,ho);Sn(this,po);Sn(this,mo);Sn(this,go);Sn(this,vo);Sn(this,yo);Sn(this,bo);Sn(this,So);Wn(this,fo,t.year),Wn(this,ho,t.month),Wn(this,po,t.day),Wn(this,mo,t.hour||0),Wn(this,go,t.minute||0),Wn(this,vo,t.second||0),Wn(this,yo,t.gmt||"+0000");const a=ia(this,vu,jO).call(this);if(a.ok)Wn(this,bo,a.parsed),Wn(this,So,a.dateTimeStr);else throw Error(`DateTime creation error: ${a.message}`)}static from(t){if(typeof t=="string"){const u=/^(\d{4})-(\d{2})-(\d{2})(?: (\d{2}):(\d{2})(?::(\d{2}))?(?: ([+-]\d{4}))?)?/.exec(t);if(u){const[c,d,h,p,g,v,x,E]=u,N={year:Number(d),month:Number(h),day:Number(p),hour:Number(g),minute:Number(v),second:Number(x),gmt:E};return x!==void 0&&(x.startsWith("+")||x.startsWith("-"))&&(N.second=void 0,N.gmt=x),new ao(N)}throw Error(`Could not create DateTime object from "${t}": invalid format`)}const a=new Date;a.setTime(t);const l={year:a.getUTCFullYear(),month:a.getUTCMonth()+1,day:a.getUTCDate(),hour:a.getUTCHours(),minute:a.getUTCMinutes(),second:a.getUTCSeconds()};return new ao(l)}valueOf(){return Vn(this,bo)}toString(){return Vn(this,So)}};fo=new WeakMap,ho=new WeakMap,po=new WeakMap,mo=new WeakMap,go=new WeakMap,vo=new WeakMap,yo=new WeakMap,bo=new WeakMap,So=new WeakMap,vu=new WeakSet,jO=function(){const t=`${Vn(this,fo).toString().padStart(4,"0")}-${Vn(this,ho).toString().padStart(2,"0")}-${Vn(this,po).toString().padStart(2,"0")}`,a=`${Vn(this,mo).toString().padStart(2,"0")}:${Vn(this,go).toString().padStart(2,"0")}:${Vn(this,vo).toString().padStart(2,"0")}`,l=`${t}T${a}${Vn(this,yo)}`;try{return{ok:!0,parsed:new Date(l),dateTimeStr:l}}catch{return{ok:!1,message:`failed to parse date from ${l}`}}},ao.FORMAT="yyyy-MM-dd [hh:mm[:ss] [GMT]]";let $p=ao;const uM=[$p];class Ip{static getProperty(t,a,l=!1){const o=a.split(".");let u=t;for(;o.length>0;){const c=o.shift();if(u&&typeof u=="object"){if(u=u[c],u===void 0){if(l)throw new ZS(a);return u}}else if(l)throw new ZS(a)}return u}static clean(t,a){const l=(a==null?void 0:a.deep)||!1,o=(a==null?void 0:a.cleanNulls)||!1,u=(a==null?void 0:a.cleanEmptyObjects)||!1;if(!t||typeof t!="object")return t;const c={};for(const[d,h]of Object.entries(t))if(!(h===void 0||h===null&&o))if(h!==null&&typeof h=="object"&&!uM.find(g=>h instanceof g)){const g=l?this.clean(h,a):h;(Object.entries(g).length>0||!u)&&(c[d]=g)}else c[d]=h;return Array.isArray(t)?Object.values(c):c}}class ZS extends Error{constructor(t){super(),this.name="ObjectPropertyNotFoundError",this.prop=t}}class AO{static getCampaignCreationName(t){return Ip.getProperty(t,"raw.attributes.creation_name")}static getProductRichTextDescription(t){const a=Ip.getProperty(t,"raw.data.attributes.description_rich_text");return a||(t.description?t.description.replaceAll(`
68
+ `,"<br />"):null)}}const fa=w.forwardRef((r,t)=>{const{mediaId:a,thumbnail:l=!1,...o}=r,u=`/media/${a}${l?"?t=1":""}`,c=w.useCallback(d=>{d.currentTarget.style.display="none"},[]);return S.jsx("img",{ref:t,src:u,onError:c,...o})}),cM={postCount:"article",mediaCount:"image",productCount:"storefront"};function fM(r){const{campaign:t}=r,a=AO.getCampaignCreationName(t),l=["postCount","productCount","mediaCount"].reduce((o,u)=>(t[u]>0&&o.push(S.jsxs(Ne,{direction:"horizontal",style:{alignSelf:"auto"},children:[S.jsx("span",{className:"campaign-card__count-icon material-icons-outlined",children:cM[u]}),S.jsx("span",{className:"campaign-card__count-text",children:t[u]})]},`${t.id}:${u}`)),o),[]);return S.jsx(it,{className:"campaign-card mb-3",children:S.jsxs(it.Body,{className:"d-flex p-0",children:[S.jsx(fa,{className:"campaign-card__avatar",mediaId:`campaign:${t.id}:avatar`}),S.jsxs(Ne,{className:"flex-fill overflow-hidden px-3 py-2",children:[S.jsx("h6",{className:"campaign-card__title",children:S.jsx(on,{to:`/campaigns/${t.id}`,children:t.name})}),a?S.jsx("div",{className:"campaign-card__creation-name",children:a}):null,S.jsxs(Ne,{direction:"horizontal",className:"flex-fill align-items-end text-body-secondary",gap:3,children:[...l]})]})]})})}function Au(r){const{total:t,page:a,itemsPerPage:l}=r;if(t>l){const o=(a-1)*l,u=o+1,c=Math.min(o+l,t),d=typeof r.subject=="string"?r.subject:r.subject.plural;return`Showing ${u} - ${c} of ${t} ${d}`}else{const o=typeof r.subject=="string"?r.subject:t===1?r.subject.singular:r.subject.plural;return`Total ${t} ${o}`}}class dM{static getPaginationParams(t,a){const l=new URL(t),o=l.searchParams.get("p")||1,u=l.searchParams.get("n")||a,c=Number(o),d=Number(u);if(isNaN(c))throw TypeError('Invalid param "p"');if(c<=0)throw RangeError(`Invalid value "${c}" for param "p"`);if(isNaN(d))throw TypeError('Invalid param "n"');if(d<=0)throw RangeError(`Invalid value "${d}" for param "n"`);return{limit:d,offset:(c-1)*d}}}function hM(r){const{currentPage:t,totalPages:a,onChange:l}=r,[o,u]=w.useState(t),c=w.useRef(null),d=w.useCallback(()=>{c.current&&c.current.focus()},[]),h=w.useCallback(()=>{c.current&&c.current.blur()},[]),p=w.useCallback(()=>{if(!c.current)return;const g=Number(c.current.value);if(isNaN(g)||g===t)return;const v=Math.max(Math.min(a,g),1);l(v)},[t,a]);return S.jsx(nM,{trigger:"click",rootClose:!0,placement:"top",onEntered:d,onExited:h,overlay:S.jsx(kp,{children:S.jsx(kp.Body,{children:S.jsxs(Ne,{direction:"horizontal",children:[S.jsx("span",{className:"text-nowrap me-2",children:"Go to:"}),S.jsxs(Wx,{children:[S.jsx(Mt.Control,{ref:c,value:o,type:"number",required:!0,size:"sm",style:{width:"10em"},onChange:g=>u(Number(g.target.value))}),S.jsx(Qt,{onClick:p,children:"→"})]})]})})}),children:S.jsx(Qt,{variant:"outline-primary",children:"..."})})}const Yn=10;function pM(r,t){const a=window.location.href,{limit:l,offset:o}=dM.getPaginationParams(a,t),u=Math.ceil(r/l);if(u===1)return null;const c=[],d=Math.floor(o/l)+1;if(u<=Yn)c.push(Ln(1,u,d));else if(d<Yn-1)c.push(Ln(1,Yn-1,d)),c.push(Ln(u,u,d));else if(d>=u-Yn+2)c.push(Ln(1,1,d)),c.push(Ln(u-Yn+2,u,d));else{c.push(Ln(1,1,d));let g=Math.floor(d/(Yn-2))+1,v=2+(g-1)*(Yn-3),x=v+Yn-3;d>=x&&(g++,v+=Yn-3,x+=Yn-3),x===u-1?c.push(Ln(v,u,d)):(c.push(Ln(v,x,d)),c.push(Ln(u,u,d)))}const h=d>1?Ln(d-1,d-1,d)[0].page:null,p=d<u?Ln(d+1,d+1,d)[0].page:null;return{currentPage:d,totalPages:u,sections:c,previousPage:h,nextPage:p}}function Ln(r,t,a){const l=[];for(let o=r;o<=t;o++)l.push({page:o,isCurrent:o===a});return l}function Mu(r){const{totalItems:t,itemsPerPage:a,onChange:l}=r,o=pM(t,a);if(!o)return null;const u=d=>{const h=d.currentTarget.dataset.page;h!==void 0&&!isNaN(Number(h))&&l(Number(h))},c=[];o.previousPage&&c.push(S.jsx(Qt,{variant:"outline-primary",onClick:u,"data-page":o.previousPage,children:"<"}));for(let d=0;d<o.sections.length;d++){const h=o.sections[d];c.push(...h.map(p=>{const g=p.isCurrent?void 0:u,v=p.isCurrent?"primary":"outline-primary";return S.jsx(Qt,{variant:v,onClick:g,"data-page":p.page,children:p.page})})),d<o.sections.length-1&&c.push(S.jsx(hM,{currentPage:o.currentPage,totalPages:o.totalPages,onChange:l}))}return o.nextPage&&c.push(S.jsx(Qt,{variant:"outline-primary",onClick:u,"data-page":o.nextPage,children:">"})),S.jsx("div",{className:"d-flex justify-content-center",children:S.jsx(ux,{className:"mt-2 mb-4",children:c})})}var Vh={},Wh={},Vl={exports:{}},za={exports:{}},mM=za.exports,KS;function gM(){return KS||(KS=1,(function(){var r,t,a,l,o,u;typeof performance<"u"&&performance!==null&&performance.now?za.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(za.exports=function(){return(r()-o)/1e6},t=process.hrtime,r=function(){var c;return c=t(),c[0]*1e9+c[1]},l=r(),u=process.uptime()*1e9,o=l-u):Date.now?(za.exports=function(){return Date.now()-a},a=Date.now()):(za.exports=function(){return new Date().getTime()-a},a=new Date().getTime())}).call(mM)),za.exports}var JS;function vM(){if(JS)return Vl.exports;JS=1;for(var r=gM(),t=typeof window>"u"?xr:window,a=["moz","webkit"],l="AnimationFrame",o=t["request"+l],u=t["cancel"+l]||t["cancelRequest"+l],c=0;!o&&c<a.length;c++)o=t[a[c]+"Request"+l],u=t[a[c]+"Cancel"+l]||t[a[c]+"CancelRequest"+l];if(!o||!u){var d=0,h=0,p=[],g=1e3/60;o=function(v){if(p.length===0){var x=r(),E=Math.max(0,g-(x-d));d=E+x,setTimeout(function(){var N=p.slice(0);p.length=0;for(var _=0;_<N.length;_++)if(!N[_].cancelled)try{N[_].callback(d)}catch(z){setTimeout(function(){throw z},0)}},Math.round(E))}return p.push({handle:++h,callback:v,cancelled:!1}),h},u=function(v){for(var x=0;x<p.length;x++)p[x].handle===v&&(p[x].cancelled=!0)}}return Vl.exports=function(v){return o.call(t,v)},Vl.exports.cancel=function(){u.apply(t,arguments)},Vl.exports.polyfill=function(v){v||(v=t),v.requestAnimationFrame=o,v.cancelAnimationFrame=u},Vl.exports}var Wl={exports:{}},Yh,e1;function yM(){if(e1)return Yh;e1=1;var r=null,t=["Webkit","Moz","O","ms"];return Yh=function(l){r||(r=document.createElement("div"));var o=r.style;if(l in o)return l;for(var u=l.charAt(0).toUpperCase()+l.slice(1),c=t.length;c>=0;c--){var d=t[c]+u;if(d in o)return d}return!1},Yh}var Xh,t1;function bM(){if(t1)return Xh;t1=1,Xh=l;var r=/\s/,t=/(_|-|\.|:)/,a=/([a-z][A-Z]|[A-Z][a-z])/;function l(h){return r.test(h)?h.toLowerCase():t.test(h)?(u(h)||h).toLowerCase():a.test(h)?d(h).toLowerCase():h.toLowerCase()}var o=/[\W_]+(.|$)/g;function u(h){return h.replace(o,function(p,g){return g?" "+g:""})}var c=/(.)([A-Z]+)/g;function d(h){return h.replace(c,function(p,g,v){return g+" "+v.toLowerCase().split("").join(" ")})}return Xh}var Fh,n1;function SM(){if(n1)return Fh;n1=1;var r=bM();Fh=t;function t(a){return r(a).replace(/[\W_]+(.|$)/g,function(l,o){return o?" "+o:""}).trim()}return Fh}var Qh,r1;function wM(){if(r1)return Qh;r1=1;var r=SM();Qh=t;function t(a){return r(a).replace(/\s(\w)/g,function(l,o){return o.toUpperCase()})}return Qh}var Zh,a1;function xM(){if(a1)return Zh;a1=1;var r={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};return Zh=function(t,a){return typeof a=="number"&&!r[t]?a+"px":a},Zh}var i1;function MO(){if(i1)return Wl.exports;i1=1;var r=yM(),t=wM(),a={float:"cssFloat"},l=xM();function o(h,p,g){var v=a[p];if(typeof v>"u"&&(v=c(p)),v){if(g===void 0)return h.style[v];h.style[v]=l(v,g)}}function u(h,p){for(var g in p)p.hasOwnProperty(g)&&o(h,g,p[g])}function c(h){var p=t(h),g=r(p);return a[p]=a[h]=a[g]=g,g}function d(){arguments.length===2?typeof arguments[1]=="string"?arguments[0].style.cssText=arguments[1]:u(arguments[0],arguments[1]):o(arguments[0],arguments[1],arguments[2])}return Wl.exports=d,Wl.exports.set=d,Wl.exports.get=function(h,p){return Array.isArray(p)?p.reduce(function(g,v){return g[v]=o(h,v||""),g},{}):o(h,p||"")},Wl.exports}var Kh={},l1;function OM(){return l1||(l1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=t;function t(a){return typeof a=="string"}}(Kh)),Kh}var Jh={},o1;function TM(){return o1||(o1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=u;var t=MO(),a=l(t);function l(c){return c&&c.__esModule?c:{default:c}}var o=!1;function u(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(c&&o!==!1)return o;if(typeof document<"u"){var d=document.createElement("div");(0,a.default)(d,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(d),o=d.offsetWidth-d.clientWidth,document.body.removeChild(d)}else o=0;return o||0}}(Jh)),Jh}var ep={},s1;function EM(){return s1||(s1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=t;function t(){return!1}}(ep)),ep}var tp={},u1;function CM(){return u1||(u1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=t;function t(a){var l=a.clientWidth,o=getComputedStyle(a),u=o.paddingLeft,c=o.paddingRight;return l-parseFloat(u)-parseFloat(c)}}(tp)),tp}var np={},c1;function RM(){return c1||(c1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=t;function t(a){var l=a.clientHeight,o=getComputedStyle(a),u=o.paddingTop,c=o.paddingBottom;return l-parseFloat(u)-parseFloat(c)}}(np)),np}var Xt={},f1;function _M(){return f1||(f1=1,Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},Xt.containerStyleAutoHeight={height:"auto"},Xt.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},Xt.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},Xt.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},Xt.trackHorizontalStyleDefault={position:"absolute",height:6},Xt.trackVerticalStyleDefault={position:"absolute",width:6},Xt.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},Xt.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},Xt.disableSelectStyle={userSelect:"none"},Xt.disableSelectStyleReset={userSelect:""}),Xt}var la={},d1;function jM(){if(d1)return la;d1=1,Object.defineProperty(la,"__esModule",{value:!0});var r=Object.assign||function(g){for(var v=1;v<arguments.length;v++){var x=arguments[v];for(var E in x)Object.prototype.hasOwnProperty.call(x,E)&&(g[E]=x[E])}return g};la.renderViewDefault=u,la.renderTrackHorizontalDefault=c,la.renderTrackVerticalDefault=d,la.renderThumbHorizontalDefault=h,la.renderThumbVerticalDefault=p;var t=Cn(),a=l(t);function l(g){return g&&g.__esModule?g:{default:g}}function o(g,v){var x={};for(var E in g)v.indexOf(E)>=0||Object.prototype.hasOwnProperty.call(g,E)&&(x[E]=g[E]);return x}function u(g){return a.default.createElement("div",g)}function c(g){var v=g.style,x=o(g,["style"]),E=r({},v,{right:2,bottom:2,left:2,borderRadius:3});return a.default.createElement("div",r({style:E},x))}function d(g){var v=g.style,x=o(g,["style"]),E=r({},v,{right:2,bottom:2,top:2,borderRadius:3});return a.default.createElement("div",r({style:E},x))}function h(g){var v=g.style,x=o(g,["style"]),E=r({},v,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return a.default.createElement("div",r({style:E},x))}function p(g){var v=g.style,x=o(g,["style"]),E=r({},v,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return a.default.createElement("div",r({style:E},x))}return la}var h1;function AM(){return h1||(h1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0});var t=Object.assign||function(I){for(var q=1;q<arguments.length;q++){var $=arguments[q];for(var U in $)Object.prototype.hasOwnProperty.call($,U)&&(I[U]=$[U])}return I},a=function(){function I(q,$){for(var U=0;U<$.length;U++){var L=$[U];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(q,L.key,L)}}return function(q,$,U){return $&&I(q.prototype,$),U&&I(q,U),q}}(),l=vM(),o=j(l),u=MO(),c=j(u),d=Cn(),h=ex(),p=j(h),g=OM(),v=j(g),x=TM(),E=j(x),N=EM(),_=j(N),z=CM(),H=j(z),G=RM(),k=j(G),Z=_M(),A=jM();function j(I){return I&&I.__esModule?I:{default:I}}function P(I,q){var $={};for(var U in I)q.indexOf(U)>=0||Object.prototype.hasOwnProperty.call(I,U)&&($[U]=I[U]);return $}function F(I,q){if(!(I instanceof q))throw new TypeError("Cannot call a class as a function")}function D(I,q){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return q&&(typeof q=="object"||typeof q=="function")?q:I}function T(I,q){if(typeof q!="function"&&q!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof q);I.prototype=Object.create(q&&q.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),q&&(Object.setPrototypeOf?Object.setPrototypeOf(I,q):I.__proto__=q)}var X=function(I){T(q,I);function q($){var U;F(this,q);for(var L=arguments.length,b=Array(L>1?L-1:0),te=1;te<L;te++)b[te-1]=arguments[te];var R=D(this,(U=q.__proto__||Object.getPrototypeOf(q)).call.apply(U,[this,$].concat(b)));return R.getScrollLeft=R.getScrollLeft.bind(R),R.getScrollTop=R.getScrollTop.bind(R),R.getScrollWidth=R.getScrollWidth.bind(R),R.getScrollHeight=R.getScrollHeight.bind(R),R.getClientWidth=R.getClientWidth.bind(R),R.getClientHeight=R.getClientHeight.bind(R),R.getValues=R.getValues.bind(R),R.getThumbHorizontalWidth=R.getThumbHorizontalWidth.bind(R),R.getThumbVerticalHeight=R.getThumbVerticalHeight.bind(R),R.getScrollLeftForOffset=R.getScrollLeftForOffset.bind(R),R.getScrollTopForOffset=R.getScrollTopForOffset.bind(R),R.scrollLeft=R.scrollLeft.bind(R),R.scrollTop=R.scrollTop.bind(R),R.scrollToLeft=R.scrollToLeft.bind(R),R.scrollToTop=R.scrollToTop.bind(R),R.scrollToRight=R.scrollToRight.bind(R),R.scrollToBottom=R.scrollToBottom.bind(R),R.handleTrackMouseEnter=R.handleTrackMouseEnter.bind(R),R.handleTrackMouseLeave=R.handleTrackMouseLeave.bind(R),R.handleHorizontalTrackMouseDown=R.handleHorizontalTrackMouseDown.bind(R),R.handleVerticalTrackMouseDown=R.handleVerticalTrackMouseDown.bind(R),R.handleHorizontalThumbMouseDown=R.handleHorizontalThumbMouseDown.bind(R),R.handleVerticalThumbMouseDown=R.handleVerticalThumbMouseDown.bind(R),R.handleWindowResize=R.handleWindowResize.bind(R),R.handleScroll=R.handleScroll.bind(R),R.handleDrag=R.handleDrag.bind(R),R.handleDragEnd=R.handleDragEnd.bind(R),R.state={didMountUniversal:!1},R}return a(q,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){var U=this.props.universal;U&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,l.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var U=this.view||{},L=U.scrollLeft,b=L===void 0?0:L,te=U.scrollTop,R=te===void 0?0:te,y=U.scrollWidth,C=y===void 0?0:y,W=U.scrollHeight,J=W===void 0?0:W,B=U.clientWidth,Q=B===void 0?0:B,V=U.clientHeight,ne=V===void 0?0:V;return{left:b/(C-Q)||0,top:R/(J-ne)||0,scrollLeft:b,scrollTop:R,scrollWidth:C,scrollHeight:J,clientWidth:Q,clientHeight:ne}}},{key:"getThumbHorizontalWidth",value:function(){var U=this.props,L=U.thumbSize,b=U.thumbMinSize,te=this.view,R=te.scrollWidth,y=te.clientWidth,C=(0,H.default)(this.trackHorizontal),W=Math.ceil(y/R*C);return C<=W?0:L||Math.max(W,b)}},{key:"getThumbVerticalHeight",value:function(){var U=this.props,L=U.thumbSize,b=U.thumbMinSize,te=this.view,R=te.scrollHeight,y=te.clientHeight,C=(0,k.default)(this.trackVertical),W=Math.ceil(y/R*C);return C<=W?0:L||Math.max(W,b)}},{key:"getScrollLeftForOffset",value:function(U){var L=this.view,b=L.scrollWidth,te=L.clientWidth,R=(0,H.default)(this.trackHorizontal),y=this.getThumbHorizontalWidth();return U/(R-y)*(b-te)}},{key:"getScrollTopForOffset",value:function(U){var L=this.view,b=L.scrollHeight,te=L.clientHeight,R=(0,k.default)(this.trackVertical),y=this.getThumbVerticalHeight();return U/(R-y)*(b-te)}},{key:"scrollLeft",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollLeft=U)}},{key:"scrollTop",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollTop=U)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if(!(typeof document>"u"||!this.view)){var U=this.view,L=this.trackHorizontal,b=this.trackVertical,te=this.thumbHorizontal,R=this.thumbVertical;U.addEventListener("scroll",this.handleScroll),(0,E.default)()&&(L.addEventListener("mouseenter",this.handleTrackMouseEnter),L.addEventListener("mouseleave",this.handleTrackMouseLeave),L.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),b.addEventListener("mouseenter",this.handleTrackMouseEnter),b.addEventListener("mouseleave",this.handleTrackMouseLeave),b.addEventListener("mousedown",this.handleVerticalTrackMouseDown),te.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),R.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if(!(typeof document>"u"||!this.view)){var U=this.view,L=this.trackHorizontal,b=this.trackVertical,te=this.thumbHorizontal,R=this.thumbVertical;U.removeEventListener("scroll",this.handleScroll),(0,E.default)()&&(L.removeEventListener("mouseenter",this.handleTrackMouseEnter),L.removeEventListener("mouseleave",this.handleTrackMouseLeave),L.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),b.removeEventListener("mouseenter",this.handleTrackMouseEnter),b.removeEventListener("mouseleave",this.handleTrackMouseLeave),b.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),te.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),R.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(U){var L=this,b=this.props,te=b.onScroll,R=b.onScrollFrame;te&&te(U),this.update(function(y){var C=y.scrollLeft,W=y.scrollTop;L.viewScrollLeft=C,L.viewScrollTop=W,R&&R(y)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var U=this.props.onScrollStart;U&&U(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){var U=this.props.autoHide;U&&this.showTracks()}},{key:"handleScrollStop",value:function(){var U=this.props.onScrollStop;U&&U(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){var U=this.props.autoHide;U&&this.hideTracks()}},{key:"handleWindowResize",value:function(){(0,E.default)(!1),this.forceUpdate()}},{key:"handleHorizontalTrackMouseDown",value:function(U){U.preventDefault();var L=U.target,b=U.clientX,te=L.getBoundingClientRect(),R=te.left,y=this.getThumbHorizontalWidth(),C=Math.abs(R-b)-y/2;this.view.scrollLeft=this.getScrollLeftForOffset(C)}},{key:"handleVerticalTrackMouseDown",value:function(U){U.preventDefault();var L=U.target,b=U.clientY,te=L.getBoundingClientRect(),R=te.top,y=this.getThumbVerticalHeight(),C=Math.abs(R-b)-y/2;this.view.scrollTop=this.getScrollTopForOffset(C)}},{key:"handleHorizontalThumbMouseDown",value:function(U){U.preventDefault(),this.handleDragStart(U);var L=U.target,b=U.clientX,te=L.offsetWidth,R=L.getBoundingClientRect(),y=R.left;this.prevPageX=te-(b-y)}},{key:"handleVerticalThumbMouseDown",value:function(U){U.preventDefault(),this.handleDragStart(U);var L=U.target,b=U.clientY,te=L.offsetHeight,R=L.getBoundingClientRect(),y=R.top;this.prevPageY=te-(b-y)}},{key:"setupDragging",value:function(){(0,c.default)(document.body,Z.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=_.default}},{key:"teardownDragging",value:function(){(0,c.default)(document.body,Z.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(U){this.dragging=!0,U.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(U){if(this.prevPageX){var L=U.clientX,b=this.trackHorizontal.getBoundingClientRect(),te=b.left,R=this.getThumbHorizontalWidth(),y=R-this.prevPageX,C=-te+L-y;this.view.scrollLeft=this.getScrollLeftForOffset(C)}if(this.prevPageY){var W=U.clientY,J=this.trackVertical.getBoundingClientRect(),B=J.top,Q=this.getThumbVerticalHeight(),V=Q-this.prevPageY,ne=-B+W-V;this.view.scrollTop=this.getScrollTopForOffset(ne)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){var U=this.props.autoHide;U&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){var U=this.props.autoHide;U&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){var U=this.props.autoHide;U&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,c.default)(this.trackHorizontal,{opacity:1}),(0,c.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var U=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var L=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,c.default)(U.trackHorizontal,{opacity:0}),(0,c.default)(U.trackVertical,{opacity:0})},L)}}},{key:"detectScrolling",value:function(){var U=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){U.lastViewScrollLeft===U.viewScrollLeft&&U.lastViewScrollTop===U.viewScrollTop&&(clearInterval(U.detectScrollingInterval),U.scrolling=!1,U.handleScrollStop()),U.lastViewScrollLeft=U.viewScrollLeft,U.lastViewScrollTop=U.viewScrollTop},100))}},{key:"raf",value:function(U){var L=this;this.requestFrame&&o.default.cancel(this.requestFrame),this.requestFrame=(0,o.default)(function(){L.requestFrame=void 0,U()})}},{key:"update",value:function(U){var L=this;this.raf(function(){return L._update(U)})}},{key:"_update",value:function(U){var L=this.props,b=L.onUpdate,te=L.hideTracksWhenNotNeeded,R=this.getValues();if((0,E.default)()){var y=R.scrollLeft,C=R.clientWidth,W=R.scrollWidth,J=(0,H.default)(this.trackHorizontal),B=this.getThumbHorizontalWidth(),Q=y/(W-C)*(J-B),V={width:B,transform:"translateX("+Q+"px)"},ne=R.scrollTop,ue=R.clientHeight,me=R.scrollHeight,he=(0,k.default)(this.trackVertical),ve=this.getThumbVerticalHeight(),pe=ne/(me-ue)*(he-ve),ge={height:ve,transform:"translateY("+pe+"px)"};if(te){var Se={visibility:W>C?"visible":"hidden"},ye={visibility:me>ue?"visible":"hidden"};(0,c.default)(this.trackHorizontal,Se),(0,c.default)(this.trackVertical,ye)}(0,c.default)(this.thumbHorizontal,V),(0,c.default)(this.thumbVertical,ge)}b&&b(R),typeof U=="function"&&U(R)}},{key:"render",value:function(){var U=this,L=(0,E.default)(),b=this.props;b.onScroll,b.onScrollFrame,b.onScrollStart,b.onScrollStop,b.onUpdate;var te=b.renderView,R=b.renderTrackHorizontal,y=b.renderTrackVertical,C=b.renderThumbHorizontal,W=b.renderThumbVertical,J=b.tagName;b.hideTracksWhenNotNeeded;var B=b.autoHide;b.autoHideTimeout;var Q=b.autoHideDuration;b.thumbSize,b.thumbMinSize;var V=b.universal,ne=b.autoHeight,ue=b.autoHeightMin,me=b.autoHeightMax,he=b.style,ve=b.children,pe=P(b,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),ge=this.state.didMountUniversal,Se=t({},Z.containerStyleDefault,ne&&t({},Z.containerStyleAutoHeight,{minHeight:ue,maxHeight:me}),he),ye=t({},Z.viewStyleDefault,{marginRight:L?-L:0,marginBottom:L?-L:0},ne&&t({},Z.viewStyleAutoHeight,{minHeight:(0,v.default)(ue)?"calc("+ue+" + "+L+"px)":ue+L,maxHeight:(0,v.default)(me)?"calc("+me+" + "+L+"px)":me+L}),ne&&V&&!ge&&{minHeight:ue,maxHeight:me},V&&!ge&&Z.viewStyleUniversalInitial),Re={transition:"opacity "+Q+"ms",opacity:0},be=t({},Z.trackHorizontalStyleDefault,B&&Re,(!L||V&&!ge)&&{display:"none"}),Le=t({},Z.trackVerticalStyleDefault,B&&Re,(!L||V&&!ge)&&{display:"none"});return(0,d.createElement)(J,t({},pe,{style:Se,ref:function(Ee){U.container=Ee}}),[(0,d.cloneElement)(te({style:ye}),{key:"view",ref:function(Ee){U.view=Ee}},ve),(0,d.cloneElement)(R({style:be}),{key:"trackHorizontal",ref:function(Ee){U.trackHorizontal=Ee}},(0,d.cloneElement)(C({style:Z.thumbHorizontalStyleDefault}),{ref:function(Ee){U.thumbHorizontal=Ee}})),(0,d.cloneElement)(y({style:Le}),{key:"trackVertical",ref:function(Ee){U.trackVertical=Ee}},(0,d.cloneElement)(W({style:Z.thumbVerticalStyleDefault}),{ref:function(Ee){U.thumbVertical=Ee}}))])}}]),q}(d.Component);r.default=X,X.propTypes={onScroll:p.default.func,onScrollFrame:p.default.func,onScrollStart:p.default.func,onScrollStop:p.default.func,onUpdate:p.default.func,renderView:p.default.func,renderTrackHorizontal:p.default.func,renderTrackVertical:p.default.func,renderThumbHorizontal:p.default.func,renderThumbVertical:p.default.func,tagName:p.default.string,thumbSize:p.default.number,thumbMinSize:p.default.number,hideTracksWhenNotNeeded:p.default.bool,autoHide:p.default.bool,autoHideTimeout:p.default.number,autoHideDuration:p.default.number,autoHeight:p.default.bool,autoHeightMin:p.default.oneOfType([p.default.number,p.default.string]),autoHeightMax:p.default.oneOfType([p.default.number,p.default.string]),universal:p.default.bool,style:p.default.object,children:p.default.node},X.defaultProps={renderView:A.renderViewDefault,renderTrackHorizontal:A.renderTrackHorizontalDefault,renderTrackVertical:A.renderTrackVerticalDefault,renderThumbHorizontal:A.renderThumbHorizontalDefault,renderThumbVertical:A.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}}(Wh)),Wh}var p1;function MM(){return p1||(p1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.Scrollbars=void 0;var t=AM(),a=l(t);function l(o){return o&&o.__esModule?o:{default:o}}r.default=a.default,r.Scrollbars=a.default}(Vh)),Vh}var NM=MM();const DM=Jn(NM),NO=w.forwardRef((r,t)=>{const{viewClassName:a,children:l}=r;return S.jsx(DM,{ref:t,className:"scrollbars",autoHide:!0,hideTracksWhenNotNeeded:!0,renderTrackHorizontal:o=>S.jsx("div",{...o,className:"custom-scrollbars__track-horizontal"}),renderTrackVertical:o=>S.jsx("div",{...o,className:"custom-scrollbars__track-vertical"}),renderThumbHorizontal:o=>S.jsx("div",{...o,className:"custom-scrollbars__thumb-horizontal"}),renderThumbVertical:o=>S.jsx("div",{...o,className:"custom-scrollbars__thumb-vertical"}),renderView:o=>S.jsx("div",{...o,className:a}),children:l})}),DO=w.createContext({});function LM(r){const{children:t}=r,a=w.useRef(null),l=w.useCallback((o,u)=>{a.current&&(a.current.scrollLeft(o),a.current.scrollTop(u))},[]);return S.jsx(DO.Provider,{value:{scrollTo:l},children:S.jsx(NO,{ref:a,children:t})})}const No=()=>w.useContext(DO),LO=w.createContext({}),zM=(r,t)=>Kn(t,r)?r:t,PM=(r,t)=>Kn(t,r)?r:t;function HM(r){const{api:t}=_n(),[a,l]=w.useReducer(zM,null),[o,u]=w.useReducer(PM,null),c=w.useCallback(h=>{if(!a)return null;const p=Er(a);h.theme&&(p.theme=h.theme),h.listItemsPerPage&&(p.listItemsPerPage=h.listItemsPerPage),h.galleryItemsPerPage&&(p.galleryItemsPerPage=h.galleryItemsPerPage),h.maxContentWidth&&(p.maxContentWidth=h.maxContentWidth),(async()=>Kn(a,p)||(await t.saveBrowseSettings(p),l(p)))()},[t,a]),d=w.useCallback(()=>{(async()=>(l(await t.getBrowseSettings()),u(await t.getBrowseSettingOptions())))()},[t]);if(w.useEffect(()=>{d()},[d]),!(!a||!o))return S.jsx(LO.Provider,{value:{settings:a,options:o,updateSettings:c,refreshSettings:d},children:r.children})}const Mr=()=>w.useContext(LO),zO=w.createContext({});function kM(r){const{children:t}=r,a=w.useRef(null),l=w.useCallback(o=>{a.current&&(clearTimeout(a.current),a.current=null);const u=()=>{const c=[];o&&c.push(o),c.push("patreon-dl"),document.title=c.join(" | ")};o?u():a.current=setTimeout(()=>{a.current=null,u()},500)},[]);return S.jsx(zO.Provider,{value:{setTitle:l},children:t})}const Do=()=>w.useContext(zO);function BM(r){return{sortBy:"last_downloaded",page:null,itemsPerPage:r.listItemsPerPage}}const $M=(r,t)=>{const a=Er(r);return t.sortBy!==void 0&&(a.sortBy=t.sortBy),t.page!==void 0&&(a.page=t.page),t.itemsPerPage!==void 0&&(a.itemsPerPage=t.itemsPerPage),Kn(a,r)?r:a};function m1(){const{api:r}=_n(),{setTitle:t}=Do(),{settings:a}=Mr(),{scrollTo:l}=No(),[o,u]=w.useReducer($M,BM(a)),[c,d]=w.useState(null),[h,p]=Oo();w.useEffect(()=>{t("Home")},[t]),w.useEffect(()=>{const{sortBy:v,page:x}=o;if(v===null||x===null)return;const E=new AbortController;return(async()=>{const N=await r.getCampaignList({...o,sortBy:v,page:x});E.signal.aborted||d(N)})(),()=>E.abort()},[r,o]),w.useEffect(()=>{const v=Number(h.get("p"))||1;u({page:v}),l(0,0)},[h,l]),w.useEffect(()=>{u({itemsPerPage:a.listItemsPerPage})},[a.listItemsPerPage]);const g=(v,x=!1)=>{p(E=>{const N=new URLSearchParams(E);return N.set("p",String(v)),N},{replace:x})};if(w.useEffect(()=>{c&&c.campaigns.length===0&&c.total>0&&g(1,!0)},[c,g]),!!c)return S.jsx(On,{fluid:!0,children:S.jsx(vt,{className:"g-0 justify-content-center",children:S.jsxs(lt,{md:10,sm:12,className:`campaign-list mw-${a.maxContentWidth.toLowerCase()}`,children:[S.jsx("h2",{className:"my-4",children:"Creators"}),S.jsx(On,{fluid:!0,className:"p-0",children:S.jsxs(vt,{className:"mb-2 g-0 justify-content-center align-items-center",children:[S.jsx(lt,{className:"w-auto flex-fill",children:o.page?S.jsx(Au,{total:c.total,page:o.page,itemsPerPage:o.itemsPerPage,subject:{singular:"creator",plural:"creators"}}):null}),S.jsx(lt,{className:"w-auto d-flex justify-content-end",children:S.jsxs(Mt.Select,{size:"sm",className:"w-auto",onChange:v=>u({sortBy:v.currentTarget.value}),children:[S.jsx("option",{value:"a-z",selected:o.sortBy==="a-z",children:"A-Z"}),S.jsx("option",{value:"z-a",selected:o.sortBy==="z-a",children:"Z-A"}),S.jsx("option",{value:"most_media",selected:o.sortBy==="most_media",children:"Most media"}),S.jsx("option",{value:"most_content",selected:o.sortBy==="most_content",children:"Most content"}),S.jsx("option",{value:"last_downloaded",selected:o.sortBy==="last_downloaded",children:"Last downloaded"})]})})]})}),S.jsx("div",{className:"mb-4",children:c.campaigns.map(v=>S.jsx(fM,{campaign:v}))}),S.jsx(Mu,{totalItems:c.total,itemsPerPage:o.itemsPerPage,onChange:g})]})})})}const IM=r=>w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",...r},w.createElement("path",{d:"M 171.3548387096774 407.741935483871 Q 170.32258064516128 411.8709677419355 166.19354838709677 411.8709677419355 Q 160 411.8709677419355 160 407.741935483871 Q 161.03225806451613 404.64516129032256 165.16129032258064 404.64516129032256 Q 170.32258064516128 404.64516129032256 171.3548387096774 407.741935483871 L 171.3548387096774 407.741935483871 Z M 139.3548387096774 403.61290322580646 Q 138.32258064516128 406.7096774193548 143.48387096774192 408.7741935483871 Q 148.6451612903226 409.80645161290323 149.67741935483872 406.7096774193548 Q 150.70967741935485 402.5806451612903 145.5483870967742 401.5483870967742 Q 140.38709677419354 400.51612903225805 139.3548387096774 403.61290322580646 L 139.3548387096774 403.61290322580646 Z M 184.7741935483871 401.5483870967742 Q 179.61290322580646 402.5806451612903 179.61290322580646 406.7096774193548 Q 180.6451612903226 409.80645161290323 185.80645161290323 409.80645161290323 Q 190.96774193548387 407.741935483871 190.96774193548387 404.64516129032256 Q 189.93548387096774 401.5483870967742 184.7741935483871 401.5483870967742 L 184.7741935483871 401.5483870967742 Z M 252.90322580645162 6.193548387096774 Q 142.4516129032258 8.258064516129032 72.25806451612904 78.45161290322581 L 72.25806451612904 78.45161290322581 L 72.25806451612904 78.45161290322581 Q 2.064516129032258 148.6451612903226 0 258.06451612903226 Q 1.032258064516129 345.80645161290323 48.516129032258064 411.8709677419355 Q 96 477.93548387096774 175.48387096774192 504.7741935483871 Q 194.06451612903226 505.80645161290323 193.03225806451613 492.38709677419354 Q 193.03225806451613 488.258064516129 193.03225806451613 476.9032258064516 Q 193.03225806451613 453.16129032258067 193.03225806451613 429.4193548387097 Q 190.96774193548387 429.4193548387097 173.41935483870967 431.48387096774195 Q 154.83870967741936 432.51612903225805 134.19354838709677 427.35483870967744 Q 113.54838709677419 421.16129032258067 105.29032258064517 398.4516129032258 Q 105.29032258064517 396.38709677419354 97.03225806451613 381.93548387096774 Q 88.7741935483871 368.51612903225805 76.38709677419355 360.258064516129 Q 74.3225806451613 359.2258064516129 68.12903225806451 352 Q 60.903225806451616 345.80645161290323 78.45161290322581 344.7741935483871 Q 79.48387096774194 343.741935483871 92.90322580645162 348.9032258064516 Q 106.3225806451613 353.03225806451616 117.6774193548387 371.61290322580646 Q 136.25806451612902 399.48387096774195 157.93548387096774 399.48387096774195 Q 180.6451612903226 399.48387096774195 193.03225806451613 393.2903225806452 Q 197.16129032258064 368.51612903225805 209.5483870967742 358.19354838709677 Q 164.1290322580645 356.1290322580645 130.06451612903226 335.48387096774195 Q 96 315.8709677419355 93.93548387096774 243.61290322580646 Q 93.93548387096774 222.96774193548387 100.12903225806451 209.5483870967742 Q 105.29032258064517 196.1290322580645 117.6774193548387 183.74193548387098 Q 115.61290322580645 177.5483870967742 113.54838709677419 158.96774193548387 Q 111.48387096774194 140.38709677419354 120.7741935483871 113.54838709677419 Q 139.3548387096774 110.45161290322581 164.1290322580645 124.90322580645162 Q 189.93548387096774 138.32258064516128 192 141.41935483870967 Q 192 141.41935483870967 192 141.41935483870967 Q 222.96774193548387 132.1290322580645 257.03225806451616 132.1290322580645 Q 290.06451612903226 132.1290322580645 322.06451612903226 141.41935483870967 Q 322.06451612903226 140.38709677419354 335.48387096774195 132.1290322580645 Q 347.8709677419355 123.87096774193549 364.38709677419354 117.6774193548387 Q 380.9032258064516 110.45161290322581 393.2903225806452 113.54838709677419 Q 402.5806451612903 140.38709677419354 400.51612903225805 158.96774193548387 Q 398.4516129032258 177.5483870967742 395.35483870967744 183.74193548387098 Q 407.741935483871 196.1290322580645 414.96774193548384 209.5483870967742 Q 422.19354838709677 222.96774193548387 422.19354838709677 243.61290322580646 Q 421.16129032258067 293.16129032258067 404.64516129032256 316.9032258064516 Q 387.0967741935484 339.61290322580646 360.258064516129 347.8709677419355 Q 333.4193548387097 356.1290322580645 303.48387096774195 358.19354838709677 Q 320 369.5483870967742 321.03225806451616 405.6774193548387 Q 321.03225806451616 443.8709677419355 321.03225806451616 473.80645161290323 Q 321.03225806451616 487.2258064516129 321.03225806451616 492.38709677419354 Q 320 505.80645161290323 338.5806451612903 504.7741935483871 Q 417.03225806451616 477.93548387096774 464.51612903225805 411.8709677419355 Q 510.96774193548384 345.80645161290323 512 258.06451612903226 Q 510.96774193548384 185.80645161290323 476.9032258064516 129.03225806451613 Q 441.80645161290323 72.25806451612904 384 39.225806451612904 Q 325.16129032258067 7.225806451612903 252.90322580645162 6.193548387096774 L 252.90322580645162 6.193548387096774 Z M 100.12903225806451 362.3225806451613 Q 98.06451612903226 364.38709677419354 101.16129032258064 367.48387096774195 Q 104.25806451612904 370.5806451612903 106.3225806451613 368.51612903225805 Q 108.38709677419355 366.4516129032258 105.29032258064517 363.35483870967744 Q 103.2258064516129 360.258064516129 100.12903225806451 362.3225806451613 L 100.12903225806451 362.3225806451613 Z M 88.7741935483871 354.06451612903226 Q 88.7741935483871 356.1290322580645 91.87096774193549 358.19354838709677 Q 94.96774193548387 359.2258064516129 96 357.16129032258067 Q 97.03225806451613 355.0967741935484 93.93548387096774 353.03225806451616 Q 90.83870967741936 352 88.7741935483871 354.06451612903226 L 88.7741935483871 354.06451612903226 Z M 122.83870967741936 390.19354838709677 Q 120.7741935483871 393.2903225806452 123.87096774193549 397.4193548387097 Q 128 400.51612903225805 131.09677419354838 398.4516129032258 Q 132.1290322580645 395.35483870967744 129.03225806451613 391.2258064516129 Q 124.90322580645162 388.1290322580645 122.83870967741936 390.19354838709677 L 122.83870967741936 390.19354838709677 Z M 110.45161290322581 375.741935483871 Q 108.38709677419355 377.80645161290323 110.45161290322581 381.93548387096774 Q 113.54838709677419 385.03225806451616 116.64516129032258 384 Q 118.70967741935483 381.93548387096774 116.64516129032258 377.80645161290323 Q 113.54838709677419 373.6774193548387 110.45161290322581 375.741935483871 L 110.45161290322581 375.741935483871 Z"}));function qM(r){const{show:t,onClose:a}=r,{settings:l,options:o,updateSettings:u,refreshSettings:c}=Mr();w.useEffect(()=>{t&&c()},[t,c]);const d=w.useCallback(h=>{const p=h.target.dataset.setting,g=h.target.dataset.type;if(!p)return;const v=g==="number"?Number(h.target.value):h.target.value;if(typeof v=="number"&&isNaN(v))return;const x={[p]:v};u(x)},[u]);return!l||!o?null:S.jsxs(Ha,{show:t,onHide:a,centered:!0,scrollable:!0,children:[S.jsx(Ha.Header,{closeButton:!0}),S.jsx(Ha.Body,{children:S.jsxs(Mt,{children:[S.jsxs(Mt.Group,{as:vt,className:"mb-3",children:[S.jsx(Mt.Label,{column:!0,sm:5,children:"Theme:"}),S.jsx(lt,{sm:7,children:S.jsx(Mt.Select,{"data-setting":"theme",value:l.theme,onChange:d,children:o.themes.map(h=>S.jsx("option",{value:h.value,children:h.name},`theme-${h.value}`))})})]}),S.jsxs(Mt.Group,{as:vt,className:"mb-3",children:[S.jsx(Mt.Label,{column:!0,sm:5,children:"List items per page:"}),S.jsx(lt,{sm:7,children:S.jsx(Mt.Select,{"data-setting":"listItemsPerPage","data-type":"number",value:l.listItemsPerPage,onChange:d,children:o.listItemsPerPage.map(h=>S.jsx("option",{value:h,children:h},`listItemsPerPage-${h}`))})})]}),S.jsxs(Mt.Group,{as:vt,className:"mb-3",children:[S.jsx(Mt.Label,{column:!0,sm:5,children:"Gallery items per page:"}),S.jsx(lt,{sm:7,children:S.jsx(Mt.Select,{"data-setting":"galleryItemsPerPage","data-type":"number",value:l.galleryItemsPerPage,onChange:d,children:o.galleryItemsPerPage.map(h=>S.jsx("option",{value:h,children:h},`galleryItemsPerPage-${h}`))})})]}),S.jsxs(Mt.Group,{as:vt,className:"mb-3",children:[S.jsx(Mt.Label,{column:!0,sm:5,children:"Max. content width:"}),S.jsx(lt,{sm:7,children:S.jsx(Mt.Select,{"data-setting":"maxContentWidth","data-type":"string",value:l.maxContentWidth,onChange:d,children:o.maxContentWidth.map(h=>S.jsx("option",{value:h,children:h},`maxContentWidth-${h}`))})})]})]})})]})}const PO=w.createContext({});function UM(r){const{children:t}=r,[a,l]=w.useState(!1),o=w.useCallback(()=>{l(!0)},[]),u=w.useCallback(()=>{l(!1)},[]);return S.jsxs(PO.Provider,{value:{showBrowseSettingsModal:o,closeBrowseSettingsModal:u},children:[t,S.jsx(qM,{show:a,onClose:u})]})}const GM=()=>w.useContext(PO);function HO(r){const{closeButton:t=!1,onClose:a}=r,{api:l}=_n(),{showBrowseSettingsModal:o}=GM(),[u,c]=w.useState(null);w.useEffect(()=>{const g=new AbortController;return(async()=>{const v=(await l.getCampaignList({sortBy:"last_downloaded",itemsPerPage:10})).campaigns;g.signal.aborted||c(v)})(),()=>g.abort()},[l]);const d=w.useCallback(()=>{a&&a()},[a]),h=w.useCallback(g=>{g.preventDefault(),a&&a(),o()},[a,o]),p=w.useMemo(()=>{if(!u||u.length===0)return null;const g=u.map(v=>S.jsxs(on,{to:`/campaigns/${v.id}`,className:"sidebar__link",onClick:d,children:[S.jsx(fa,{className:"sidebar__link-icon me-2",mediaId:`campaign:${v.id}:avatar`}),S.jsx("span",{className:"sidebar__link-text",children:v.name})]}));return S.jsxs(Ne,{className:"mt-4 mb-5 px-3",gap:3,children:[S.jsx("h6",{className:"sidebar__section-title",children:"Recently downloaded"}),g]})},[u]);return S.jsx(S.Fragment,{children:S.jsx(it,{className:"sidebar p-0",children:S.jsxs(Ne,{className:"overflow-hidden",children:[S.jsxs(Ne,{direction:"horizontal",className:"sidebar__header justify-content-between p-3",children:[S.jsx("div",{className:"sidebar__brand fs-5 fw-bold",children:S.jsx(on,{to:"/",onClick:d,children:"patreon-dl"})}),t?S.jsx("button",{className:"btn-close",onClick:a?()=>a():void 0}):null]}),S.jsx(NO,{viewClassName:"sidebar__main",children:S.jsxs(Ne,{className:"flex-fill",children:[p,S.jsxs(Ne,{className:"justify-content-end px-3 pb-3",gap:3,children:[S.jsxs("a",{href:"#",className:"sidebar__link",onClick:h,children:[S.jsx("span",{className:"material-icons me-2",children:"settings"}),S.jsx("span",{className:"sidebar__link-text",children:"Settings"})]}),S.jsxs(on,{to:"https://github.com/patrickkfkan/patreon-dl",className:"sidebar__link",onClick:d,children:[S.jsx(IM,{className:"sidebar__link-icon sidebar__link-icon--svg me-2"}),S.jsx("span",{className:"sidebar__link-text",children:"Project homepage"})]})]})]})})]})})})}function VM(){const[r,t]=w.useState(!1);return S.jsxs(S.Fragment,{children:[S.jsx(Qt,{variant:"link",className:"sidebar-trigger d-flex align-items-center",onClick:()=>t(!0),children:S.jsx("span",{className:"material-icons",children:"menu"})}),S.jsx(FS,{show:r,onHide:()=>t(!1),placement:"start",children:S.jsx(FS.Body,{className:"p-0",children:S.jsx(HO,{closeButton:!0,onClose:()=>t(!1)})})})]})}function WM(){return S.jsx(On,{fluid:!0,className:"p-0 vh-100",children:S.jsxs(vt,{className:"g-0 h-100",children:[S.jsx(lt,{lg:3,className:"p-0 sticky-top d-none d-lg-block",style:{maxWidth:"18em"},children:S.jsx(HO,{})}),S.jsx(lt,{className:"p-0",children:S.jsxs(LM,{children:[S.jsxs(Ne,{direction:"horizontal",className:"d-lg-none sticky-top bg-body py-2",children:[S.jsx(VM,{}),S.jsx("div",{className:"fs-5",children:S.jsx(on,{className:"text-body",to:"/",children:"patreon-dl"})})]}),S.jsx(Fp,{})]})})]})})}/*! *****************************************************************************
69
+ Copyright (c) Microsoft Corporation.
70
+
71
+ Permission to use, copy, modify, and/or distribute this software for any
72
+ purpose with or without fee is hereby granted.
73
+
74
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
75
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
76
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
77
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
78
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
79
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
80
+ PERFORMANCE OF THIS SOFTWARE.
81
+ ***************************************************************************** */function YM(r,t){var a={};for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&t.indexOf(l)<0&&(a[l]=r[l]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(r);o<l.length;o++)t.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(r,l[o])&&(a[l[o]]=r[l[o]]);return a}/*!
82
+ * lightgallery | 2.8.3 | March 1st 2025
83
+ * http://www.lightgalleryjs.com/
84
+ * Copyright (c) 2020 Sachin Neravath;
85
+ * @license GPLv3
86
+ *//*! *****************************************************************************
87
+ Copyright (c) Microsoft Corporation.
88
+
89
+ Permission to use, copy, modify, and/or distribute this software for any
90
+ purpose with or without fee is hereby granted.
91
+
92
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
93
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
94
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
95
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
96
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
97
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
98
+ PERFORMANCE OF THIS SOFTWARE.
99
+ ***************************************************************************** */var oa=function(){return oa=Object.assign||function(t){for(var a,l=1,o=arguments.length;l<o;l++){a=arguments[l];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(t[u]=a[u])}return t},oa.apply(this,arguments)};function XM(){for(var r=0,t=0,a=arguments.length;t<a;t++)r+=arguments[t].length;for(var l=Array(r),o=0,t=0;t<a;t++)for(var u=arguments[t],c=0,d=u.length;c<d;c++,o++)l[o]=u[c];return l}var at={afterAppendSlide:"lgAfterAppendSlide",init:"lgInit",hasVideo:"lgHasVideo",containerResize:"lgContainerResize",updateSlides:"lgUpdateSlides",afterAppendSubHtml:"lgAfterAppendSubHtml",beforeOpen:"lgBeforeOpen",afterOpen:"lgAfterOpen",slideItemLoad:"lgSlideItemLoad",beforeSlide:"lgBeforeSlide",afterSlide:"lgAfterSlide",posterClick:"lgPosterClick",dragStart:"lgDragStart",dragMove:"lgDragMove",dragEnd:"lgDragEnd",beforeNextSlide:"lgBeforeNextSlide",beforePrevSlide:"lgBeforePrevSlide",beforeClose:"lgBeforeClose",afterClose:"lgAfterClose"},FM={mode:"lg-slide",easing:"ease",speed:400,licenseKey:"0000-0000-000-0000",height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:300,container:"",startAnimationDuration:400,zoomFromOrigin:!0,hideBarsDelay:0,showBarsAfter:1e4,slideDelay:0,supportLegacyBrowser:!0,allowMediaOverlap:!1,videoMaxSize:"1280-720",loadYouTubePoster:!0,defaultCaptionHeight:0,ariaLabelledby:"",ariaDescribedby:"",resetScrollPosition:!0,hideScrollbar:!1,closable:!0,swipeToClose:!0,closeOnTap:!0,showCloseIcon:!0,showMaximizeIcon:!1,loop:!0,escKey:!0,keyPress:!0,trapFocus:!0,controls:!0,slideEndAnimation:!0,hideControlOnEnd:!1,mousewheel:!1,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:2,numberOfSlideItemsInDom:10,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:0,iframeWidth:"100%",iframeHeight:"100%",iframeMaxWidth:"100%",iframeMaxHeight:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],extraProps:[],exThumbImage:"",isMobile:void 0,mobileSettings:{controls:!1,showCloseIcon:!1,download:!1},plugins:[],strings:{closeGallery:"Close gallery",toggleMaximize:"Toggle maximize",previousSlide:"Previous slide",nextSlide:"Next slide",download:"Download",playVideo:"Play video",mediaLoadingFailed:"Oops... Failed to load content..."}};function QM(){(function(){if(typeof window.CustomEvent=="function")return!1;function r(t,a){a=a||{bubbles:!1,cancelable:!1,detail:null};var l=document.createEvent("CustomEvent");return l.initCustomEvent(t,a.bubbles,a.cancelable,a.detail),l}window.CustomEvent=r})(),function(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector)}()}var kO=function(){function r(t){return this.cssVenderPrefixes=["TransitionDuration","TransitionTimingFunction","Transform","Transition"],this.selector=this._getSelector(t),this.firstElement=this._getFirstEl(),this}return r.generateUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var a=Math.random()*16|0,l=t=="x"?a:a&3|8;return l.toString(16)})},r.prototype._getSelector=function(t,a){if(a===void 0&&(a=document),typeof t!="string")return t;a=a||document;var l=t.substring(0,1);return l==="#"?a.querySelector(t):a.querySelectorAll(t)},r.prototype._each=function(t){return this.selector?(this.selector.length!==void 0?[].forEach.call(this.selector,t):t(this.selector,0),this):this},r.prototype._setCssVendorPrefix=function(t,a,l){var o=a.replace(/-([a-z])/gi,function(u,c){return c.toUpperCase()});this.cssVenderPrefixes.indexOf(o)!==-1?(t.style[o.charAt(0).toLowerCase()+o.slice(1)]=l,t.style["webkit"+o]=l,t.style["moz"+o]=l,t.style["ms"+o]=l,t.style["o"+o]=l):t.style[o]=l},r.prototype._getFirstEl=function(){return this.selector&&this.selector.length!==void 0?this.selector[0]:this.selector},r.prototype.isEventMatched=function(t,a){var l=a.split(".");return t.split(".").filter(function(o){return o}).every(function(o){return l.indexOf(o)!==-1})},r.prototype.attr=function(t,a){return a===void 0?this.firstElement?this.firstElement.getAttribute(t):"":(this._each(function(l){l.setAttribute(t,a)}),this)},r.prototype.find=function(t){return je(this._getSelector(t,this.selector))},r.prototype.first=function(){return this.selector&&this.selector.length!==void 0?je(this.selector[0]):je(this.selector)},r.prototype.eq=function(t){return je(this.selector[t])},r.prototype.parent=function(){return je(this.selector.parentElement)},r.prototype.get=function(){return this._getFirstEl()},r.prototype.removeAttr=function(t){var a=t.split(" ");return this._each(function(l){a.forEach(function(o){return l.removeAttribute(o)})}),this},r.prototype.wrap=function(t){if(!this.firstElement)return this;var a=document.createElement("div");return a.className=t,this.firstElement.parentNode.insertBefore(a,this.firstElement),this.firstElement.parentNode.removeChild(this.firstElement),a.appendChild(this.firstElement),this},r.prototype.addClass=function(t){return t===void 0&&(t=""),this._each(function(a){t.split(" ").forEach(function(l){l&&a.classList.add(l)})}),this},r.prototype.removeClass=function(t){return this._each(function(a){t.split(" ").forEach(function(l){l&&a.classList.remove(l)})}),this},r.prototype.hasClass=function(t){return this.firstElement?this.firstElement.classList.contains(t):!1},r.prototype.hasAttribute=function(t){return this.firstElement?this.firstElement.hasAttribute(t):!1},r.prototype.toggleClass=function(t){return this.firstElement?(this.hasClass(t)?this.removeClass(t):this.addClass(t),this):this},r.prototype.css=function(t,a){var l=this;return this._each(function(o){l._setCssVendorPrefix(o,t,a)}),this},r.prototype.on=function(t,a){var l=this;return this.selector?(t.split(" ").forEach(function(o){Array.isArray(r.eventListeners[o])||(r.eventListeners[o]=[]),r.eventListeners[o].push(a),l.selector.addEventListener(o.split(".")[0],a)}),this):this},r.prototype.once=function(t,a){var l=this;return this.on(t,function(){l.off(t),a(t)}),this},r.prototype.off=function(t){var a=this;return this.selector?(Object.keys(r.eventListeners).forEach(function(l){a.isEventMatched(t,l)&&(r.eventListeners[l].forEach(function(o){a.selector.removeEventListener(l.split(".")[0],o)}),r.eventListeners[l]=[])}),this):this},r.prototype.trigger=function(t,a){if(!this.firstElement)return this;var l=new CustomEvent(t.split(".")[0],{detail:a||null});return this.firstElement.dispatchEvent(l),this},r.prototype.load=function(t){var a=this;return fetch(t).then(function(l){return l.text()}).then(function(l){a.selector.innerHTML=l}),this},r.prototype.html=function(t){return t===void 0?this.firstElement?this.firstElement.innerHTML:"":(this._each(function(a){a.innerHTML=t}),this)},r.prototype.append=function(t){return this._each(function(a){typeof t=="string"?a.insertAdjacentHTML("beforeend",t):a.appendChild(t)}),this},r.prototype.prepend=function(t){return this._each(function(a){typeof t=="string"?a.insertAdjacentHTML("afterbegin",t):t instanceof HTMLElement&&a.insertBefore(t.cloneNode(!0),a.firstChild)}),this},r.prototype.remove=function(){return this._each(function(t){t.parentNode.removeChild(t)}),this},r.prototype.empty=function(){return this._each(function(t){t.innerHTML=""}),this},r.prototype.scrollTop=function(t){return t!==void 0?(document.body.scrollTop=t,document.documentElement.scrollTop=t,this):window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},r.prototype.scrollLeft=function(t){return t!==void 0?(document.body.scrollLeft=t,document.documentElement.scrollLeft=t,this):window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},r.prototype.offset=function(){if(!this.firstElement)return{left:0,top:0};var t=this.firstElement.getBoundingClientRect(),a=je("body").style().marginLeft;return{left:t.left-parseFloat(a)+this.scrollLeft(),top:t.top+this.scrollTop()}},r.prototype.style=function(){return this.firstElement?this.firstElement.currentStyle||window.getComputedStyle(this.firstElement):{}},r.prototype.width=function(){var t=this.style();return this.firstElement.clientWidth-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight)},r.prototype.height=function(){var t=this.style();return this.firstElement.clientHeight-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)},r.eventListeners={},r}();function je(r){return QM(),new kO(r)}var ZM=["src","sources","subHtml","subHtmlUrl","html","video","poster","slideName","responsive","srcset","sizes","iframe","downloadUrl","download","width","facebookShareUrl","tweetText","iframeTitle","twitterShareUrl","pinterestShareUrl","pinterestText","fbHtml","disqusIdentifier","disqusUrl"];function KM(r){return r==="href"?"src":(r=r.replace("data-",""),r=r.charAt(0).toLowerCase()+r.slice(1),r=r.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()}),r)}var Rt={fetchCaptionFromUrl:function(r,t,a){fetch(r).then(function(l){return l.text()}).then(function(l){if(a==="append"){var o='<div class="lg-sub-html">'+l+"</div>";t.append(o)}else t.html(l)})},getSize:function(r,t,a,l){a===void 0&&(a=0);var o=je(r),u=o.attr("data-lg-size")||l;if(u){var c=u.split(",");if(c[1])for(var d=window.innerWidth,h=0;h<c.length;h++){var p=c[h],g=parseInt(p.split("-")[2],10);if(g>d){u=p;break}h===c.length-1&&(u=p)}var v=u.split("-"),x=parseInt(v[0],10),E=parseInt(v[1],10),N=t.width(),_=t.height()-a,z=Math.min(N,x),H=Math.min(_,E),G=Math.min(z/x,H/E);return{width:x*G,height:E*G}}},getTransform:function(r,t,a,l,o){if(o){var u=je(r).find("img").first();if(u.get()){var c=t.get().getBoundingClientRect(),d=c.width,h=t.height()-(a+l),p=u.width(),g=u.height(),v=u.style(),x=(d-p)/2-u.offset().left+(parseFloat(v.paddingLeft)||0)+(parseFloat(v.borderLeft)||0)+je(window).scrollLeft()+c.left,E=(h-g)/2-u.offset().top+(parseFloat(v.paddingTop)||0)+(parseFloat(v.borderTop)||0)+je(window).scrollTop()+a,N=p/o.width,_=g/o.height,z="translate3d("+(x*=-1)+"px, "+(E*=-1)+"px, 0) scale3d("+N+", "+_+", 1)";return z}}},getIframeMarkup:function(r,t,a,l,o,u){var c=u?'title="'+u+'"':"";return'<div class="lg-media-cont lg-has-iframe" style="width:'+r+"; max-width:"+a+"; height: "+t+"; max-height:"+l+`">
100
+ <iframe class="lg-object" frameborder="0" `+c+' src="'+o+`" allowfullscreen="true"></iframe>
101
+ </div>`},getImgMarkup:function(r,t,a,l,o,u){var c=l?'srcset="'+l+'"':"",d=o?'sizes="'+o+'"':"",h="<img "+a+" "+c+" "+d+' class="lg-object lg-image" data-index="'+r+'" src="'+t+'" />',p="";if(u){var g=typeof u=="string"?JSON.parse(u):u;p=g.map(function(v){var x="";return Object.keys(v).forEach(function(E){x+=" "+E+'="'+v[E]+'"'}),"<source "+x+"></source>"})}return""+p+h},getResponsiveSrc:function(r){for(var t=[],a=[],l="",o=0;o<r.length;o++){var u=r[o].split(" ");u[0]===""&&u.splice(0,1),a.push(u[0]),t.push(u[1])}for(var c=window.innerWidth,d=0;d<t.length;d++)if(parseInt(t[d],10)>c){l=a[d];break}return l},isImageLoaded:function(r){return!(!r||!r.complete||r.naturalWidth===0)},getVideoPosterMarkup:function(r,t,a,l,o){var u="";o&&o.youtube?u="lg-has-youtube":o&&o.vimeo?u="lg-has-vimeo":u="lg-has-html5";var c=t;return typeof t!="string"&&(c=t.outerHTML),'<div class="lg-video-cont '+u+'" style="'+a+`">
102
+ <div class="lg-video-play-button">
103
+ <svg
104
+ viewBox="0 0 20 20"
105
+ preserveAspectRatio="xMidYMid"
106
+ focusable="false"
107
+ aria-labelledby="`+l+`"
108
+ role="img"
109
+ class="lg-video-play-icon"
110
+ >
111
+ <title>`+l+`</title>
112
+ <polygon class="lg-video-play-icon-inner" points="1,0 20,10 1,20"></polygon>
113
+ </svg>
114
+ <svg class="lg-video-play-icon-bg" viewBox="0 0 50 50" focusable="false">
115
+ <circle cx="50%" cy="50%" r="20"></circle></svg>
116
+ <svg class="lg-video-play-icon-circle" viewBox="0 0 50 50" focusable="false">
117
+ <circle cx="50%" cy="50%" r="20"></circle>
118
+ </svg>
119
+ </div>
120
+ `+c+`
121
+ <img class="lg-object lg-video-poster" src="`+r+`" />
122
+ </div>`},getFocusableElements:function(r){var t=r.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])'),a=[].filter.call(t,function(l){var o=window.getComputedStyle(l);return o.display!=="none"&&o.visibility!=="hidden"});return a},getDynamicOptions:function(r,t,a,l){var o=[],u=XM(ZM,t);return[].forEach.call(r,function(c){for(var d={},h=0;h<c.attributes.length;h++){var p=c.attributes[h];if(p.specified){var g=KM(p.name),v="";u.indexOf(g)>-1&&(v=g),v&&(d[v]=p.value)}}var x=je(c),E=x.find("img").first().attr("alt"),N=x.attr("title"),_=l?x.attr(l):x.find("img").first().attr("src");d.thumb=_,a&&!d.subHtml&&(d.subHtml=N||E||""),d.alt=E||N||"",o.push(d)}),o},isMobile:function(){return/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)},isVideo:function(r,t,a){if(!r){if(t)return{html5:!0};console.error("lightGallery :- data-src is not provided on slide item "+(a+1)+". Please make sure the selector property is properly configured. More info - https://www.lightgalleryjs.com/demos/html-markup/");return}var l=r.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)([\&|?][\S]*)*/i),o=r.match(/\/\/(?:www\.)?(?:player\.)?vimeo.com\/(?:video\/)?([0-9a-z\-_]+)(.*)?/i),u=r.match(/https?:\/\/(.+)?(wistia\.com|wi\.st)\/(medias|embed)\/([0-9a-z\-_]+)(.*)/);if(l)return{youtube:l};if(o)return{vimeo:o};if(u)return{wistia:u}}},g1=0,JM=function(){function r(t,a){if(this.lgOpened=!1,this.index=0,this.plugins=[],this.lGalleryOn=!1,this.lgBusy=!1,this.currentItemsInDom=[],this.prevScrollTop=0,this.bodyPaddingRight=0,this.isDummyImageRemoved=!1,this.dragOrSwipeEnabled=!1,this.mediaContainerPosition={top:0,bottom:0},!t)return this;if(g1++,this.lgId=g1,this.el=t,this.LGel=je(t),this.generateSettings(a),this.buildModules(),this.settings.dynamic&&this.settings.dynamicEl!==void 0&&!Array.isArray(this.settings.dynamicEl))throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.galleryItems=this.getItems(),this.normalizeSettings(),this.init(),this.validateLicense(),this}return r.prototype.generateSettings=function(t){if(this.settings=oa(oa({},FM),t),this.settings.isMobile&&typeof this.settings.isMobile=="function"?this.settings.isMobile():Rt.isMobile()){var a=oa(oa({},this.settings.mobileSettings),this.settings.mobileSettings);this.settings=oa(oa({},this.settings),a)}},r.prototype.normalizeSettings=function(){if(this.settings.slideEndAnimation&&(this.settings.hideControlOnEnd=!1),this.settings.closable||(this.settings.swipeToClose=!1),this.zoomFromOrigin=this.settings.zoomFromOrigin,this.settings.dynamic&&(this.zoomFromOrigin=!1),this.settings.container){var t=this.settings.container;if(typeof t=="function")this.settings.container=t();else if(typeof t=="string"){var a=document.querySelector(t);this.settings.container=a??document.body}}else this.settings.container=document.body;this.settings.preload=Math.min(this.settings.preload,this.galleryItems.length)},r.prototype.init=function(){var t=this;this.addSlideVideoInfo(this.galleryItems),this.buildStructure(),this.LGel.trigger(at.init,{instance:this}),this.settings.keyPress&&this.keyPress(),setTimeout(function(){t.enableDrag(),t.enableSwipe(),t.triggerPosterClick()},50),this.arrow(),this.settings.mousewheel&&this.mousewheel(),this.settings.dynamic||this.openGalleryOnItemClick()},r.prototype.openGalleryOnItemClick=function(){for(var t=this,a=function(u){var c=l.items[u],d=je(c),h=kO.generateUUID();d.attr("data-lg-id",h).on("click.lgcustom-item-"+h,function(p){p.preventDefault();var g=t.settings.index||u;t.openGallery(g,c)})},l=this,o=0;o<this.items.length;o++)a(o)},r.prototype.buildModules=function(){var t=this;this.settings.plugins.forEach(function(a){t.plugins.push(new a(t,je))})},r.prototype.validateLicense=function(){this.settings.licenseKey?this.settings.licenseKey==="0000-0000-000-0000"&&console.warn("lightGallery: "+this.settings.licenseKey+" license key is not valid for production use"):console.error("Please provide a valid license key")},r.prototype.getSlideItem=function(t){return je(this.getSlideItemId(t))},r.prototype.getSlideItemId=function(t){return"#lg-item-"+this.lgId+"-"+t},r.prototype.getIdName=function(t){return t+"-"+this.lgId},r.prototype.getElementById=function(t){return je("#"+this.getIdName(t))},r.prototype.manageSingleSlideClassName=function(){this.galleryItems.length<2?this.outer.addClass("lg-single-item"):this.outer.removeClass("lg-single-item")},r.prototype.buildStructure=function(){var t=this,a=this.$container&&this.$container.get();if(!a){var l="",o="";this.settings.controls&&(l='<button type="button" id="'+this.getIdName("lg-prev")+'" aria-label="'+this.settings.strings.previousSlide+'" class="lg-prev lg-icon"> '+this.settings.prevHtml+` </button>
123
+ <button type="button" id="`+this.getIdName("lg-next")+'" aria-label="'+this.settings.strings.nextSlide+'" class="lg-next lg-icon"> '+this.settings.nextHtml+" </button>"),this.settings.appendSubHtmlTo!==".lg-item"&&(o='<div class="lg-sub-html" role="status" aria-live="polite"></div>');var u="";this.settings.allowMediaOverlap&&(u+="lg-media-overlap ");var c=this.settings.ariaLabelledby?'aria-labelledby="'+this.settings.ariaLabelledby+'"':"",d=this.settings.ariaDescribedby?'aria-describedby="'+this.settings.ariaDescribedby+'"':"",h="lg-container "+this.settings.addClass+" "+(document.body!==this.settings.container?"lg-inline":""),p=this.settings.closable&&this.settings.showCloseIcon?'<button type="button" aria-label="'+this.settings.strings.closeGallery+'" id="'+this.getIdName("lg-close")+'" class="lg-close lg-icon"></button>':"",g=this.settings.showMaximizeIcon?'<button type="button" aria-label="'+this.settings.strings.toggleMaximize+'" id="'+this.getIdName("lg-maximize")+'" class="lg-maximize lg-icon"></button>':"",v=`
124
+ <div class="`+h+'" id="'+this.getIdName("lg-container")+'" tabindex="-1" aria-modal="true" '+c+" "+d+` role="dialog"
125
+ >
126
+ <div id="`+this.getIdName("lg-backdrop")+`" class="lg-backdrop"></div>
127
+
128
+ <div id="`+this.getIdName("lg-outer")+'" class="lg-outer lg-use-css3 lg-css3 lg-hide-items '+u+` ">
129
+
130
+ <div id="`+this.getIdName("lg-content")+`" class="lg-content">
131
+ <div id="`+this.getIdName("lg-inner")+`" class="lg-inner">
132
+ </div>
133
+ `+l+`
134
+ </div>
135
+ <div id="`+this.getIdName("lg-toolbar")+`" class="lg-toolbar lg-group">
136
+ `+g+`
137
+ `+p+`
138
+ </div>
139
+ `+(this.settings.appendSubHtmlTo===".lg-outer"?o:"")+`
140
+ <div id="`+this.getIdName("lg-components")+`" class="lg-components">
141
+ `+(this.settings.appendSubHtmlTo===".lg-sub-html"?o:"")+`
142
+ </div>
143
+ </div>
144
+ </div>
145
+ `;je(this.settings.container).append(v),document.body!==this.settings.container&&je(this.settings.container).css("position","relative"),this.outer=this.getElementById("lg-outer"),this.$lgComponents=this.getElementById("lg-components"),this.$backdrop=this.getElementById("lg-backdrop"),this.$container=this.getElementById("lg-container"),this.$inner=this.getElementById("lg-inner"),this.$content=this.getElementById("lg-content"),this.$toolbar=this.getElementById("lg-toolbar"),this.$backdrop.css("transition-duration",this.settings.backdropDuration+"ms");var x=this.settings.mode+" ";this.manageSingleSlideClassName(),this.settings.enableDrag&&(x+="lg-grab "),this.outer.addClass(x),this.$inner.css("transition-timing-function",this.settings.easing),this.$inner.css("transition-duration",this.settings.speed+"ms"),this.settings.download&&this.$toolbar.append('<a id="'+this.getIdName("lg-download")+'" target="_blank" rel="noopener" aria-label="'+this.settings.strings.download+'" download class="lg-download lg-icon"></a>'),this.counter(),je(window).on("resize.lg.global"+this.lgId+" orientationchange.lg.global"+this.lgId,function(){t.refreshOnResize()}),this.hideBars(),this.manageCloseGallery(),this.toggleMaximize(),this.initModules()}},r.prototype.refreshOnResize=function(){if(this.lgOpened){var t=this.galleryItems[this.index],a=t.__slideVideoInfo;this.mediaContainerPosition=this.getMediaContainerPosition();var l=this.mediaContainerPosition,o=l.top,u=l.bottom;if(this.currentImageSize=Rt.getSize(this.items[this.index],this.outer,o+u,a&&this.settings.videoMaxSize),a&&this.resizeVideoSlide(this.index,this.currentImageSize),this.zoomFromOrigin&&!this.isDummyImageRemoved){var c=this.getDummyImgStyles(this.currentImageSize);this.outer.find(".lg-current .lg-dummy-img").first().attr("style",c)}this.LGel.trigger(at.containerResize)}},r.prototype.resizeVideoSlide=function(t,a){var l=this.getVideoContStyle(a),o=this.getSlideItem(t);o.find(".lg-video-cont").attr("style",l)},r.prototype.updateSlides=function(t,a){if(this.index>t.length-1&&(this.index=t.length-1),t.length===1&&(this.index=0),!t.length){this.closeGallery();return}var l=this.galleryItems[a].src;this.galleryItems=t,this.updateControls(),this.$inner.empty(),this.currentItemsInDom=[];var o=0;this.galleryItems.some(function(u,c){return u.src===l?(o=c,!0):!1}),this.currentItemsInDom=this.organizeSlideItems(o,-1),this.loadContent(o,!0),this.getSlideItem(o).addClass("lg-current"),this.index=o,this.updateCurrentCounter(o),this.LGel.trigger(at.updateSlides)},r.prototype.getItems=function(){if(this.items=[],this.settings.dynamic)return this.settings.dynamicEl||[];if(this.settings.selector==="this")this.items.push(this.el);else if(this.settings.selector)if(typeof this.settings.selector=="string")if(this.settings.selectWithin){var t=je(this.settings.selectWithin);this.items=t.find(this.settings.selector).get()}else this.items=this.el.querySelectorAll(this.settings.selector);else this.items=this.settings.selector;else this.items=this.el.children;return Rt.getDynamicOptions(this.items,this.settings.extraProps,this.settings.getCaptionFromTitleOrAlt,this.settings.exThumbImage)},r.prototype.shouldHideScrollbar=function(){return this.settings.hideScrollbar&&document.body===this.settings.container},r.prototype.hideScrollbar=function(){if(this.shouldHideScrollbar()){this.bodyPaddingRight=parseFloat(je("body").style().paddingRight);var t=document.documentElement.getBoundingClientRect(),a=window.innerWidth-t.width;je(document.body).css("padding-right",a+this.bodyPaddingRight+"px"),je(document.body).addClass("lg-overlay-open")}},r.prototype.resetScrollBar=function(){this.shouldHideScrollbar()&&(je(document.body).css("padding-right",this.bodyPaddingRight+"px"),je(document.body).removeClass("lg-overlay-open"))},r.prototype.openGallery=function(t,a){var l=this;if(t===void 0&&(t=this.settings.index),!this.lgOpened){this.lgOpened=!0,this.outer.removeClass("lg-hide-items"),this.hideScrollbar(),this.$container.addClass("lg-show");var o=this.getItemsToBeInsertedToDom(t,t);this.currentItemsInDom=o;var u="";o.forEach(function(x){u=u+('<div id="'+x+'" class="lg-item"></div>')}),this.$inner.append(u),this.addHtml(t);var c="";this.mediaContainerPosition=this.getMediaContainerPosition();var d=this.mediaContainerPosition,h=d.top,p=d.bottom;this.settings.allowMediaOverlap||this.setMediaContainerPosition(h,p);var g=this.galleryItems[t].__slideVideoInfo;this.zoomFromOrigin&&a&&(this.currentImageSize=Rt.getSize(a,this.outer,h+p,g&&this.settings.videoMaxSize),c=Rt.getTransform(a,this.outer,h,p,this.currentImageSize)),(!this.zoomFromOrigin||!c)&&(this.outer.addClass(this.settings.startClass),this.getSlideItem(t).removeClass("lg-complete"));var v=this.settings.zoomFromOrigin?100:this.settings.backdropDuration;setTimeout(function(){l.outer.addClass("lg-components-open")},v),this.index=t,this.LGel.trigger(at.beforeOpen),this.getSlideItem(t).addClass("lg-current"),this.lGalleryOn=!1,this.prevScrollTop=je(window).scrollTop(),setTimeout(function(){if(l.zoomFromOrigin&&c){var x=l.getSlideItem(t);x.css("transform",c),setTimeout(function(){x.addClass("lg-start-progress lg-start-end-progress").css("transition-duration",l.settings.startAnimationDuration+"ms"),l.outer.addClass("lg-zoom-from-image")}),setTimeout(function(){x.css("transform","translate3d(0, 0, 0)")},100)}setTimeout(function(){l.$backdrop.addClass("in"),l.$container.addClass("lg-show-in")},10),setTimeout(function(){l.settings.trapFocus&&document.body===l.settings.container&&l.trapFocus()},l.settings.backdropDuration+50),(!l.zoomFromOrigin||!c)&&setTimeout(function(){l.outer.addClass("lg-visible")},l.settings.backdropDuration),l.slide(t,!1,!1,!1),l.LGel.trigger(at.afterOpen)}),document.body===this.settings.container&&je("html").addClass("lg-on")}},r.prototype.getMediaContainerPosition=function(){if(this.settings.allowMediaOverlap)return{top:0,bottom:0};var t=this.$toolbar.get().clientHeight||0,a=this.outer.find(".lg-components .lg-sub-html").get(),l=this.settings.defaultCaptionHeight||a&&a.clientHeight||0,o=this.outer.find(".lg-thumb-outer").get(),u=o?o.clientHeight:0,c=u+l;return{top:t,bottom:c}},r.prototype.setMediaContainerPosition=function(t,a){t===void 0&&(t=0),a===void 0&&(a=0),this.$content.css("top",t+"px").css("bottom",a+"px")},r.prototype.hideBars=function(){var t=this;setTimeout(function(){t.outer.removeClass("lg-hide-items"),t.settings.hideBarsDelay>0&&(t.outer.on("mousemove.lg click.lg touchstart.lg",function(){t.outer.removeClass("lg-hide-items"),clearTimeout(t.hideBarTimeout),t.hideBarTimeout=setTimeout(function(){t.outer.addClass("lg-hide-items")},t.settings.hideBarsDelay)}),t.outer.trigger("mousemove.lg"))},this.settings.showBarsAfter)},r.prototype.initPictureFill=function(t){if(this.settings.supportLegacyBrowser)try{picturefill({elements:[t.get()]})}catch{console.warn("lightGallery :- If you want srcset or picture tag to be supported for older browser please include picturefil javascript library in your document.")}},r.prototype.counter=function(){if(this.settings.counter){var t=`<div class="lg-counter" role="status" aria-live="polite">
146
+ <span id="`+this.getIdName("lg-counter-current")+'" class="lg-counter-current">'+(this.index+1)+` </span> /
147
+ <span id="`+this.getIdName("lg-counter-all")+'" class="lg-counter-all">'+this.galleryItems.length+" </span></div>";this.outer.find(this.settings.appendCounterTo).append(t)}},r.prototype.addHtml=function(t){var a,l;if(this.galleryItems[t].subHtmlUrl?l=this.galleryItems[t].subHtmlUrl:a=this.galleryItems[t].subHtml,!l)if(a){var o=a.substring(0,1);(o==="."||o==="#")&&(this.settings.subHtmlSelectorRelative&&!this.settings.dynamic?a=je(this.items).eq(t).find(a).first().html():a=je(a).first().html())}else a="";if(this.settings.appendSubHtmlTo!==".lg-item")l?Rt.fetchCaptionFromUrl(l,this.outer.find(".lg-sub-html"),"replace"):this.outer.find(".lg-sub-html").html(a);else{var u=je(this.getSlideItemId(t));l?Rt.fetchCaptionFromUrl(l,u,"append"):u.append('<div class="lg-sub-html">'+a+"</div>")}typeof a<"u"&&a!==null&&(a===""?this.outer.find(this.settings.appendSubHtmlTo).addClass("lg-empty-html"):this.outer.find(this.settings.appendSubHtmlTo).removeClass("lg-empty-html")),this.LGel.trigger(at.afterAppendSubHtml,{index:t})},r.prototype.preload=function(t){for(var a=1;a<=this.settings.preload&&!(a>=this.galleryItems.length-t);a++)this.loadContent(t+a,!1);for(var l=1;l<=this.settings.preload&&!(t-l<0);l++)this.loadContent(t-l,!1)},r.prototype.getDummyImgStyles=function(t){return t?"width:"+t.width+`px;
148
+ margin-left: -`+t.width/2+`px;
149
+ margin-top: -`+t.height/2+`px;
150
+ height:`+t.height+"px":""},r.prototype.getVideoContStyle=function(t){return t?"width:"+t.width+`px;
151
+ height:`+t.height+"px":""},r.prototype.getDummyImageContent=function(t,a,l){var o;if(this.settings.dynamic||(o=je(this.items).eq(a)),o){var u=void 0;if(this.settings.exThumbImage?u=o.attr(this.settings.exThumbImage):u=o.find("img").first().attr("src"),!u)return"";var c=this.getDummyImgStyles(this.currentImageSize),d=document.createElement("img");return d.alt=l||"",d.src=u,d.className="lg-dummy-img",d.style.cssText=c,t.addClass("lg-first-slide"),this.outer.addClass("lg-first-slide-loading"),d}return""},r.prototype.setImgMarkup=function(t,a,l){var o=this.galleryItems[l],u=o.alt,c=o.srcset,d=o.sizes,h=o.sources,p="",g=u?'alt="'+u+'"':"";this.isFirstSlideWithZoomAnimation()?p=this.getDummyImageContent(a,l,g):p=Rt.getImgMarkup(l,t,g,c,d,h);var v=document.createElement("picture");v.className="lg-img-wrap",je(v).append(p),a.prepend(v)},r.prototype.onSlideObjectLoad=function(t,a,l,o){var u=t.find(".lg-object").first();Rt.isImageLoaded(u.get())||a?l():(u.on("load.lg error.lg",function(){l&&l()}),u.on("error.lg",function(){o&&o()}))},r.prototype.onLgObjectLoad=function(t,a,l,o,u,c){var d=this;this.onSlideObjectLoad(t,c,function(){d.triggerSlideItemLoad(t,a,l,o,u)},function(){t.addClass("lg-complete lg-complete_"),t.html('<span class="lg-error-msg">'+d.settings.strings.mediaLoadingFailed+"</span>")})},r.prototype.triggerSlideItemLoad=function(t,a,l,o,u){var c=this,d=this.galleryItems[a],h=u&&this.getSlideType(d)==="video"&&!d.poster?o:0;setTimeout(function(){t.addClass("lg-complete lg-complete_"),c.LGel.trigger(at.slideItemLoad,{index:a,delay:l||0,isFirstSlide:u})},h)},r.prototype.isFirstSlideWithZoomAnimation=function(){return!!(!this.lGalleryOn&&this.zoomFromOrigin&&this.currentImageSize)},r.prototype.addSlideVideoInfo=function(t){var a=this;t.forEach(function(l,o){l.__slideVideoInfo=Rt.isVideo(l.src,!!l.video,o),l.__slideVideoInfo&&a.settings.loadYouTubePoster&&!l.poster&&l.__slideVideoInfo.youtube&&(l.poster="//img.youtube.com/vi/"+l.__slideVideoInfo.youtube[1]+"/maxresdefault.jpg")})},r.prototype.loadContent=function(t,a){var l=this,o=this.galleryItems[t],u=je(this.getSlideItemId(t)),c=o.poster,d=o.srcset,h=o.sizes,p=o.sources,g=o.src,v=o.video,x=v&&typeof v=="string"?JSON.parse(v):v;if(o.responsive){var E=o.responsive.split(",");g=Rt.getResponsiveSrc(E)||g}var N=o.__slideVideoInfo,_="",z=!!o.iframe,H=!this.lGalleryOn,G=0;if(H&&(this.zoomFromOrigin&&this.currentImageSize?G=this.settings.startAnimationDuration+10:G=this.settings.backdropDuration+10),!u.hasClass("lg-loaded")){if(N){var k=this.mediaContainerPosition,Z=k.top,A=k.bottom,j=Rt.getSize(this.items[t],this.outer,Z+A,N&&this.settings.videoMaxSize);_=this.getVideoContStyle(j)}if(z){var P=Rt.getIframeMarkup(this.settings.iframeWidth,this.settings.iframeHeight,this.settings.iframeMaxWidth,this.settings.iframeMaxHeight,g,o.iframeTitle);u.prepend(P)}else if(c){var F="",D=H&&this.zoomFromOrigin&&this.currentImageSize;D&&(F=this.getDummyImageContent(u,t,""));var P=Rt.getVideoPosterMarkup(c,F||"",_,this.settings.strings.playVideo,N);u.prepend(P)}else if(N){var P='<div class="lg-video-cont " style="'+_+'"></div>';u.prepend(P)}else if(this.setImgMarkup(g,u,t),d||p){var T=u.find(".lg-object");this.initPictureFill(T)}(c||N)&&this.LGel.trigger(at.hasVideo,{index:t,src:g,html5Video:x,hasPoster:!!c}),this.LGel.trigger(at.afterAppendSlide,{index:t}),this.lGalleryOn&&this.settings.appendSubHtmlTo===".lg-item"&&this.addHtml(t)}var X=0;G&&!je(document.body).hasClass("lg-from-hash")&&(X=G),this.isFirstSlideWithZoomAnimation()&&(setTimeout(function(){u.removeClass("lg-start-end-progress lg-start-progress").removeAttr("style")},this.settings.startAnimationDuration+100),u.hasClass("lg-loaded")||setTimeout(function(){if(l.getSlideType(o)==="image"){var I=o.alt,q=I?'alt="'+I+'"':"";if(u.find(".lg-img-wrap").append(Rt.getImgMarkup(t,g,q,d,h,o.sources)),d||p){var $=u.find(".lg-object");l.initPictureFill($)}}(l.getSlideType(o)==="image"||l.getSlideType(o)==="video"&&c)&&(l.onLgObjectLoad(u,t,G,X,!0,!1),l.onSlideObjectLoad(u,!!(N&&N.html5&&!c),function(){l.loadContentOnFirstSlideLoad(t,u,X)},function(){l.loadContentOnFirstSlideLoad(t,u,X)}))},this.settings.startAnimationDuration+100)),u.addClass("lg-loaded"),(!this.isFirstSlideWithZoomAnimation()||this.getSlideType(o)==="video"&&!c)&&this.onLgObjectLoad(u,t,G,X,H,!!(N&&N.html5&&!c)),(!this.zoomFromOrigin||!this.currentImageSize)&&u.hasClass("lg-complete_")&&!this.lGalleryOn&&setTimeout(function(){u.addClass("lg-complete")},this.settings.backdropDuration),this.lGalleryOn=!0,a===!0&&(u.hasClass("lg-complete_")?this.preload(t):u.find(".lg-object").first().on("load.lg error.lg",function(){l.preload(t)}))},r.prototype.loadContentOnFirstSlideLoad=function(t,a,l){var o=this;setTimeout(function(){a.find(".lg-dummy-img").remove(),a.removeClass("lg-first-slide"),o.outer.removeClass("lg-first-slide-loading"),o.isDummyImageRemoved=!0,o.preload(t)},l+300)},r.prototype.getItemsToBeInsertedToDom=function(t,a,l){var o=this;l===void 0&&(l=0);var u=[],c=Math.max(l,3);c=Math.min(c,this.galleryItems.length);var d="lg-item-"+this.lgId+"-"+a;if(this.galleryItems.length<=3)return this.galleryItems.forEach(function(g,v){u.push("lg-item-"+o.lgId+"-"+v)}),u;if(t<(this.galleryItems.length-1)/2){for(var h=t;h>t-c/2&&h>=0;h--)u.push("lg-item-"+this.lgId+"-"+h);for(var p=u.length,h=0;h<c-p;h++)u.push("lg-item-"+this.lgId+"-"+(t+h+1))}else{for(var h=t;h<=this.galleryItems.length-1&&h<t+c/2;h++)u.push("lg-item-"+this.lgId+"-"+h);for(var p=u.length,h=0;h<c-p;h++)u.push("lg-item-"+this.lgId+"-"+(t-h-1))}return this.settings.loop&&(t===this.galleryItems.length-1?u.push("lg-item-"+this.lgId+"-0"):t===0&&u.push("lg-item-"+this.lgId+"-"+(this.galleryItems.length-1))),u.indexOf(d)===-1&&u.push("lg-item-"+this.lgId+"-"+a),u},r.prototype.organizeSlideItems=function(t,a){var l=this,o=this.getItemsToBeInsertedToDom(t,a,this.settings.numberOfSlideItemsInDom);return o.forEach(function(u){l.currentItemsInDom.indexOf(u)===-1&&l.$inner.append('<div id="'+u+'" class="lg-item"></div>')}),this.currentItemsInDom.forEach(function(u){o.indexOf(u)===-1&&je("#"+u).remove()}),o},r.prototype.getPreviousSlideIndex=function(){var t=0;try{var a=this.outer.find(".lg-current").first().attr("id");t=parseInt(a.split("-")[3])||0}catch{t=0}return t},r.prototype.setDownloadValue=function(t){if(this.settings.download){var a=this.galleryItems[t],l=a.downloadUrl===!1||a.downloadUrl==="false";if(l)this.outer.addClass("lg-hide-download");else{var o=this.getElementById("lg-download");this.outer.removeClass("lg-hide-download"),o.attr("href",a.downloadUrl||a.src),a.download&&o.attr("download",a.download)}}},r.prototype.makeSlideAnimation=function(t,a,l){var o=this;this.lGalleryOn&&l.addClass("lg-slide-progress"),setTimeout(function(){o.outer.addClass("lg-no-trans"),o.outer.find(".lg-item").removeClass("lg-prev-slide lg-next-slide"),t==="prev"?(a.addClass("lg-prev-slide"),l.addClass("lg-next-slide")):(a.addClass("lg-next-slide"),l.addClass("lg-prev-slide")),setTimeout(function(){o.outer.find(".lg-item").removeClass("lg-current"),a.addClass("lg-current"),o.outer.removeClass("lg-no-trans")},50)},this.lGalleryOn?this.settings.slideDelay:0)},r.prototype.slide=function(t,a,l,o){var u=this,c=this.getPreviousSlideIndex();if(this.currentItemsInDom=this.organizeSlideItems(t,c),!(this.lGalleryOn&&c===t)){var d=this.galleryItems.length;if(!this.lgBusy){this.settings.counter&&this.updateCurrentCounter(t);var h=this.getSlideItem(t),p=this.getSlideItem(c),g=this.galleryItems[t],v=g.__slideVideoInfo;if(this.outer.attr("data-lg-slide-type",this.getSlideType(g)),this.setDownloadValue(t),v){var x=this.mediaContainerPosition,E=x.top,N=x.bottom,_=Rt.getSize(this.items[t],this.outer,E+N,v&&this.settings.videoMaxSize);this.resizeVideoSlide(t,_)}if(this.LGel.trigger(at.beforeSlide,{prevIndex:c,index:t,fromTouch:!!a,fromThumb:!!l}),this.lgBusy=!0,clearTimeout(this.hideBarTimeout),this.arrowDisable(t),o||(t<c?o="prev":t>c&&(o="next")),!a)this.makeSlideAnimation(o,h,p);else{this.outer.find(".lg-item").removeClass("lg-prev-slide lg-current lg-next-slide");var z=void 0,H=void 0;d>2?(z=t-1,H=t+1,(t===0&&c===d-1||t===d-1&&c===0)&&(H=0,z=d-1)):(z=0,H=1),o==="prev"?this.getSlideItem(H).addClass("lg-next-slide"):this.getSlideItem(z).addClass("lg-prev-slide"),h.addClass("lg-current")}this.lGalleryOn?setTimeout(function(){u.loadContent(t,!0),u.settings.appendSubHtmlTo!==".lg-item"&&u.addHtml(t)},this.settings.speed+50+(a?0:this.settings.slideDelay)):this.loadContent(t,!0),setTimeout(function(){u.lgBusy=!1,p.removeClass("lg-slide-progress"),u.LGel.trigger(at.afterSlide,{prevIndex:c,index:t,fromTouch:a,fromThumb:l})},(this.lGalleryOn?this.settings.speed+100:100)+(a?0:this.settings.slideDelay))}this.index=t}},r.prototype.updateCurrentCounter=function(t){this.getElementById("lg-counter-current").html(t+1+"")},r.prototype.updateCounterTotal=function(){this.getElementById("lg-counter-all").html(this.galleryItems.length+"")},r.prototype.getSlideType=function(t){return t.__slideVideoInfo?"video":t.iframe?"iframe":"image"},r.prototype.touchMove=function(t,a,l){var o=a.pageX-t.pageX,u=a.pageY-t.pageY,c=!1;if(this.swipeDirection?c=!0:Math.abs(o)>15?(this.swipeDirection="horizontal",c=!0):Math.abs(u)>15&&(this.swipeDirection="vertical",c=!0),!!c){var d=this.getSlideItem(this.index);if(this.swipeDirection==="horizontal"){l==null||l.preventDefault(),this.outer.addClass("lg-dragging"),this.setTranslate(d,o,0);var h=d.get().offsetWidth,p=h*15/100,g=p-Math.abs(o*10/100);this.setTranslate(this.outer.find(".lg-prev-slide").first(),-h+o-g,0),this.setTranslate(this.outer.find(".lg-next-slide").first(),h+o+g,0)}else if(this.swipeDirection==="vertical"&&this.settings.swipeToClose){l==null||l.preventDefault(),this.$container.addClass("lg-dragging-vertical");var v=1-Math.abs(u)/window.innerHeight;this.$backdrop.css("opacity",v);var x=1-Math.abs(u)/(window.innerWidth*2);this.setTranslate(d,0,u,x,x),Math.abs(u)>100&&this.outer.addClass("lg-hide-items").removeClass("lg-components-open")}}},r.prototype.touchEnd=function(t,a,l){var o=this,u;this.settings.mode!=="lg-slide"&&this.outer.addClass("lg-slide"),setTimeout(function(){o.$container.removeClass("lg-dragging-vertical"),o.outer.removeClass("lg-dragging lg-hide-items").addClass("lg-components-open");var c=!0;if(o.swipeDirection==="horizontal"){u=t.pageX-a.pageX;var d=Math.abs(t.pageX-a.pageX);u<0&&d>o.settings.swipeThreshold?(o.goToNextSlide(!0),c=!1):u>0&&d>o.settings.swipeThreshold&&(o.goToPrevSlide(!0),c=!1)}else if(o.swipeDirection==="vertical")if(u=Math.abs(t.pageY-a.pageY),o.settings.closable&&o.settings.swipeToClose&&u>100){o.closeGallery();return}else o.$backdrop.css("opacity",1);if(o.outer.find(".lg-item").removeAttr("style"),c&&Math.abs(t.pageX-a.pageX)<5){var h=je(l.target);o.isPosterElement(h)&&o.LGel.trigger(at.posterClick)}o.swipeDirection=void 0}),setTimeout(function(){!o.outer.hasClass("lg-dragging")&&o.settings.mode!=="lg-slide"&&o.outer.removeClass("lg-slide")},this.settings.speed+100)},r.prototype.enableSwipe=function(){var t=this,a={},l={},o=!1,u=!1;this.settings.enableSwipe&&(this.$inner.on("touchstart.lg",function(c){t.dragOrSwipeEnabled=!0;var d=t.getSlideItem(t.index);(je(c.target).hasClass("lg-item")||d.get().contains(c.target))&&!t.outer.hasClass("lg-zoomed")&&!t.lgBusy&&c.touches.length===1&&(u=!0,t.touchAction="swipe",t.manageSwipeClass(),a={pageX:c.touches[0].pageX,pageY:c.touches[0].pageY})}),this.$inner.on("touchmove.lg",function(c){u&&t.touchAction==="swipe"&&c.touches.length===1&&(l={pageX:c.touches[0].pageX,pageY:c.touches[0].pageY},t.touchMove(a,l,c),o=!0)}),this.$inner.on("touchend.lg",function(c){if(t.touchAction==="swipe"){if(o)o=!1,t.touchEnd(l,a,c);else if(u){var d=je(c.target);t.isPosterElement(d)&&t.LGel.trigger(at.posterClick)}t.touchAction=void 0,u=!1}}))},r.prototype.enableDrag=function(){var t=this,a={},l={},o=!1,u=!1;this.settings.enableDrag&&(this.outer.on("mousedown.lg",function(c){t.dragOrSwipeEnabled=!0;var d=t.getSlideItem(t.index);(je(c.target).hasClass("lg-item")||d.get().contains(c.target))&&!t.outer.hasClass("lg-zoomed")&&!t.lgBusy&&(c.preventDefault(),t.lgBusy||(t.manageSwipeClass(),a={pageX:c.pageX,pageY:c.pageY},o=!0,t.outer.get().scrollLeft+=1,t.outer.get().scrollLeft-=1,t.outer.removeClass("lg-grab").addClass("lg-grabbing"),t.LGel.trigger(at.dragStart)))}),je(window).on("mousemove.lg.global"+this.lgId,function(c){o&&t.lgOpened&&(u=!0,l={pageX:c.pageX,pageY:c.pageY},t.touchMove(a,l),t.LGel.trigger(at.dragMove))}),je(window).on("mouseup.lg.global"+this.lgId,function(c){if(t.lgOpened){var d=je(c.target);u?(u=!1,t.touchEnd(l,a,c),t.LGel.trigger(at.dragEnd)):t.isPosterElement(d)&&t.LGel.trigger(at.posterClick),o&&(o=!1,t.outer.removeClass("lg-grabbing").addClass("lg-grab"))}}))},r.prototype.triggerPosterClick=function(){var t=this;this.$inner.on("click.lg",function(a){!t.dragOrSwipeEnabled&&t.isPosterElement(je(a.target))&&t.LGel.trigger(at.posterClick)})},r.prototype.manageSwipeClass=function(){var t=this.index+1,a=this.index-1;this.settings.loop&&this.galleryItems.length>2&&(this.index===0?a=this.galleryItems.length-1:this.index===this.galleryItems.length-1&&(t=0)),this.outer.find(".lg-item").removeClass("lg-next-slide lg-prev-slide"),a>-1&&this.getSlideItem(a).addClass("lg-prev-slide"),this.getSlideItem(t).addClass("lg-next-slide")},r.prototype.goToNextSlide=function(t){var a=this,l=this.settings.loop;t&&this.galleryItems.length<3&&(l=!1),this.lgBusy||(this.index+1<this.galleryItems.length?(this.index++,this.LGel.trigger(at.beforeNextSlide,{index:this.index}),this.slide(this.index,!!t,!1,"next")):l?(this.index=0,this.LGel.trigger(at.beforeNextSlide,{index:this.index}),this.slide(this.index,!!t,!1,"next")):this.settings.slideEndAnimation&&!t&&(this.outer.addClass("lg-right-end"),setTimeout(function(){a.outer.removeClass("lg-right-end")},400)))},r.prototype.goToPrevSlide=function(t){var a=this,l=this.settings.loop;t&&this.galleryItems.length<3&&(l=!1),this.lgBusy||(this.index>0?(this.index--,this.LGel.trigger(at.beforePrevSlide,{index:this.index,fromTouch:t}),this.slide(this.index,!!t,!1,"prev")):l?(this.index=this.galleryItems.length-1,this.LGel.trigger(at.beforePrevSlide,{index:this.index,fromTouch:t}),this.slide(this.index,!!t,!1,"prev")):this.settings.slideEndAnimation&&!t&&(this.outer.addClass("lg-left-end"),setTimeout(function(){a.outer.removeClass("lg-left-end")},400)))},r.prototype.keyPress=function(){var t=this;je(window).on("keydown.lg.global"+this.lgId,function(a){t.lgOpened&&t.settings.escKey===!0&&a.keyCode===27&&(a.preventDefault(),t.settings.allowMediaOverlap&&t.outer.hasClass("lg-can-toggle")&&t.outer.hasClass("lg-components-open")?t.outer.removeClass("lg-components-open"):t.closeGallery()),t.lgOpened&&t.galleryItems.length>1&&(a.keyCode===37&&(a.preventDefault(),t.goToPrevSlide()),a.keyCode===39&&(a.preventDefault(),t.goToNextSlide()))})},r.prototype.arrow=function(){var t=this;this.getElementById("lg-prev").on("click.lg",function(){t.goToPrevSlide()}),this.getElementById("lg-next").on("click.lg",function(){t.goToNextSlide()})},r.prototype.arrowDisable=function(t){if(!this.settings.loop&&this.settings.hideControlOnEnd){var a=this.getElementById("lg-prev"),l=this.getElementById("lg-next");t+1===this.galleryItems.length?l.attr("disabled","disabled").addClass("disabled"):l.removeAttr("disabled").removeClass("disabled"),t===0?a.attr("disabled","disabled").addClass("disabled"):a.removeAttr("disabled").removeClass("disabled")}},r.prototype.setTranslate=function(t,a,l,o,u){o===void 0&&(o=1),u===void 0&&(u=1),t.css("transform","translate3d("+a+"px, "+l+"px, 0px) scale3d("+o+", "+u+", 1)")},r.prototype.mousewheel=function(){var t=this,a=0;this.outer.on("wheel.lg",function(l){if(!(!l.deltaY||t.galleryItems.length<2)){l.preventDefault();var o=new Date().getTime();o-a<1e3||(a=o,l.deltaY>0?t.goToNextSlide():l.deltaY<0&&t.goToPrevSlide())}})},r.prototype.isSlideElement=function(t){return t.hasClass("lg-outer")||t.hasClass("lg-item")||t.hasClass("lg-img-wrap")||t.hasClass("lg-img-rotate")},r.prototype.isPosterElement=function(t){var a=this.getSlideItem(this.index).find(".lg-video-play-button").get();return t.hasClass("lg-video-poster")||t.hasClass("lg-video-play-button")||a&&a.contains(t.get())},r.prototype.toggleMaximize=function(){var t=this;this.getElementById("lg-maximize").on("click.lg",function(){t.$container.toggleClass("lg-inline"),t.refreshOnResize()})},r.prototype.invalidateItems=function(){for(var t=0;t<this.items.length;t++){var a=this.items[t],l=je(a);l.off("click.lgcustom-item-"+l.attr("data-lg-id"))}},r.prototype.trapFocus=function(){var t=this;this.$container.get().focus({preventScroll:!0}),je(window).on("keydown.lg.global"+this.lgId,function(a){if(t.lgOpened){var l=a.key==="Tab"||a.keyCode===9;if(l){var o=Rt.getFocusableElements(t.$container.get()),u=o[0],c=o[o.length-1];a.shiftKey?document.activeElement===u&&(c.focus(),a.preventDefault()):document.activeElement===c&&(u.focus(),a.preventDefault())}}})},r.prototype.manageCloseGallery=function(){var t=this;if(this.settings.closable){var a=!1;this.getElementById("lg-close").on("click.lg",function(){t.closeGallery()}),this.settings.closeOnTap&&(this.outer.on("mousedown.lg",function(l){var o=je(l.target);t.isSlideElement(o)?a=!0:a=!1}),this.outer.on("mousemove.lg",function(){a=!1}),this.outer.on("mouseup.lg",function(l){var o=je(l.target);t.isSlideElement(o)&&a&&(t.outer.hasClass("lg-dragging")||t.closeGallery())}))}},r.prototype.closeGallery=function(t){var a=this;if(!this.lgOpened||!this.settings.closable&&!t)return 0;this.LGel.trigger(at.beforeClose),this.settings.resetScrollPosition&&!this.settings.hideScrollbar&&je(window).scrollTop(this.prevScrollTop);var l=this.items[this.index],o;if(this.zoomFromOrigin&&l){var u=this.mediaContainerPosition,c=u.top,d=u.bottom,h=this.galleryItems[this.index],p=h.__slideVideoInfo,g=h.poster,v=Rt.getSize(l,this.outer,c+d,p&&g&&this.settings.videoMaxSize);o=Rt.getTransform(l,this.outer,c,d,v)}this.zoomFromOrigin&&o?(this.outer.addClass("lg-closing lg-zoom-from-image"),this.getSlideItem(this.index).addClass("lg-start-end-progress").css("transition-duration",this.settings.startAnimationDuration+"ms").css("transform",o)):(this.outer.addClass("lg-hide-items"),this.outer.removeClass("lg-zoom-from-image")),this.destroyModules(),this.lGalleryOn=!1,this.isDummyImageRemoved=!1,this.zoomFromOrigin=this.settings.zoomFromOrigin,clearTimeout(this.hideBarTimeout),this.hideBarTimeout=!1,je("html").removeClass("lg-on"),this.outer.removeClass("lg-visible lg-components-open"),this.$backdrop.removeClass("in").css("opacity",0);var x=this.zoomFromOrigin&&o?Math.max(this.settings.startAnimationDuration,this.settings.backdropDuration):this.settings.backdropDuration;return this.$container.removeClass("lg-show-in"),setTimeout(function(){a.zoomFromOrigin&&o&&a.outer.removeClass("lg-zoom-from-image"),a.$container.removeClass("lg-show"),a.resetScrollBar(),a.$backdrop.removeAttr("style").css("transition-duration",a.settings.backdropDuration+"ms"),a.outer.removeClass("lg-closing "+a.settings.startClass),a.getSlideItem(a.index).removeClass("lg-start-end-progress"),a.$inner.empty(),a.lgOpened&&a.LGel.trigger(at.afterClose,{instance:a}),a.$container.get()&&a.$container.get().blur(),a.lgOpened=!1},x+100),x+100},r.prototype.initModules=function(){this.plugins.forEach(function(t){try{t.init()}catch{console.warn("lightGallery:- make sure lightGallery module is properly initiated")}})},r.prototype.destroyModules=function(t){this.plugins.forEach(function(a){try{t?a.destroy():a.closeGallery&&a.closeGallery()}catch{console.warn("lightGallery:- make sure lightGallery module is properly destroyed")}})},r.prototype.refresh=function(t){this.settings.dynamic||this.invalidateItems(),t?this.galleryItems=t:this.galleryItems=this.getItems(),this.updateControls(),this.openGalleryOnItemClick(),this.LGel.trigger(at.updateSlides)},r.prototype.updateControls=function(){this.addSlideVideoInfo(this.galleryItems),this.updateCounterTotal(),this.manageSingleSlideClassName()},r.prototype.destroyGallery=function(){this.destroyModules(!0),this.settings.dynamic||this.invalidateItems(),je(window).off(".lg.global"+this.lgId),this.LGel.off(".lg"),this.$container.remove()},r.prototype.destroy=function(){var t=this.closeGallery(!0);return t?setTimeout(this.destroyGallery.bind(this),t):this.destroyGallery(),t},r}();function e4(r,t){return new JM(r,t)}var gt={onAfterAppendSlide:"lgAfterAppendSlide",onInit:"lgInit",onHasVideo:"lgHasVideo",onContainerResize:"lgContainerResize",onAfterAppendSubHtml:"lgAfterAppendSubHtml",onBeforeOpen:"lgBeforeOpen",onAfterOpen:"lgAfterOpen",onSlideItemLoad:"lgSlideItemLoad",onBeforeSlide:"lgBeforeSlide",onAfterSlide:"lgAfterSlide",onPosterClick:"lgPosterClick",onDragStart:"lgDragStart",onDragMove:"lgDragMove",onDragEnd:"lgDragEnd",onBeforeNextSlide:"lgBeforeNextSlide",onBeforePrevSlide:"lgBeforePrevSlide",onBeforeClose:"lgBeforeClose",onAfterClose:"lgAfterClose",onRotateLeft:"lgRotateLeft",onRotateRight:"lgRotateRight",onFlipHorizontal:"lgFlipHorizontal",onFlipVertical:"lgFlipVertical"},Am=function(r){var t=r.children,a=r.elementClassNames,l=r.onAfterAppendSlide,o=r.onInit,u=r.onHasVideo,c=r.onContainerResize,d=r.onAfterAppendSubHtml,h=r.onBeforeOpen,p=r.onAfterOpen,g=r.onSlideItemLoad,v=r.onBeforeSlide,x=r.onAfterSlide,E=r.onPosterClick,N=r.onDragStart,_=r.onDragMove,z=r.onDragEnd,H=r.onBeforeNextSlide,G=r.onBeforePrevSlide,k=r.onBeforeClose,Z=r.onAfterClose,A=r.onRotateLeft,j=r.onRotateRight,P=r.onFlipHorizontal,F=r.onFlipVertical,D=YM(r,["children","elementClassNames","onAfterAppendSlide","onInit","onHasVideo","onContainerResize","onAfterAppendSubHtml","onBeforeOpen","onAfterOpen","onSlideItemLoad","onBeforeSlide","onAfterSlide","onPosterClick","onDragStart","onDragMove","onDragEnd","onBeforeNextSlide","onBeforePrevSlide","onBeforeClose","onAfterClose","onRotateLeft","onRotateRight","onFlipHorizontal","onFlipVertical"]),T=w.useRef(null),X=w.useCallback(function(){l&&T&&T.current&&T.current.addEventListener(gt.onAfterAppendSlide,function(I){l(I.detail)}),o&&T&&T.current&&T.current.addEventListener(gt.onInit,function(I){o(I.detail)}),u&&T&&T.current&&T.current.addEventListener(gt.onHasVideo,function(I){u(I.detail)}),c&&T&&T.current&&T.current.addEventListener(gt.onContainerResize,function(I){c(I.detail)}),d&&T&&T.current&&T.current.addEventListener(gt.onAfterAppendSubHtml,function(I){d(I.detail)}),h&&T&&T.current&&T.current.addEventListener(gt.onBeforeOpen,function(I){h(I.detail)}),p&&T&&T.current&&T.current.addEventListener(gt.onAfterOpen,function(I){p(I.detail)}),g&&T&&T.current&&T.current.addEventListener(gt.onSlideItemLoad,function(I){g(I.detail)}),v&&T&&T.current&&T.current.addEventListener(gt.onBeforeSlide,function(I){v(I.detail)}),x&&T&&T.current&&T.current.addEventListener(gt.onAfterSlide,function(I){x(I.detail)}),E&&T&&T.current&&T.current.addEventListener(gt.onPosterClick,function(I){E(I.detail)}),N&&T&&T.current&&T.current.addEventListener(gt.onDragStart,function(I){N(I.detail)}),_&&T&&T.current&&T.current.addEventListener(gt.onDragMove,function(I){_(I.detail)}),z&&T&&T.current&&T.current.addEventListener(gt.onDragEnd,function(I){z(I.detail)}),H&&T&&T.current&&T.current.addEventListener(gt.onBeforeNextSlide,function(I){H(I.detail)}),G&&T&&T.current&&T.current.addEventListener(gt.onBeforePrevSlide,function(I){G(I.detail)}),k&&T&&T.current&&T.current.addEventListener(gt.onBeforeClose,function(I){k(I.detail)}),Z&&T&&T.current&&T.current.addEventListener(gt.onAfterClose,function(I){Z(I.detail)}),A&&T&&T.current&&T.current.addEventListener(gt.onRotateLeft,function(I){A(I.detail)}),j&&T&&T.current&&T.current.addEventListener(gt.onRotateRight,function(I){j(I.detail)}),P&&T&&T.current&&T.current.addEventListener(gt.onFlipHorizontal,function(I){P(I.detail)}),F&&T&&T.current&&T.current.addEventListener(gt.onFlipVertical,function(I){F(I.detail)})},[l,d,Z,A,j,P,F,p,x,k,H,h,G,v,c,z,_,N,u,o,E,g]);return w.useEffect(function(){X();var I=e4(T.current,D);return function(){I.destroy()}},[X,D]),w.createElement("div",{className:"lg-react-element "+(a||""),ref:T},t)};/*!
152
+ * lightgallery | 2.8.3 | March 1st 2025
153
+ * http://www.lightgalleryjs.com/
154
+ * Copyright (c) 2020 Sachin Neravath;
155
+ * @license GPLv3
156
+ *//*! *****************************************************************************
157
+ Copyright (c) Microsoft Corporation.
158
+
159
+ Permission to use, copy, modify, and/or distribute this software for any
160
+ purpose with or without fee is hereby granted.
161
+
162
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
163
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
164
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
165
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
166
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
167
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
168
+ PERFORMANCE OF THIS SOFTWARE.
169
+ ***************************************************************************** */var hu=function(){return hu=Object.assign||function(t){for(var a,l=1,o=arguments.length;l<o;l++){a=arguments[l];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(t[u]=a[u])}return t},hu.apply(this,arguments)},t4={thumbnail:!0,animateThumb:!0,currentPagerPosition:"middle",alignThumbnails:"middle",thumbWidth:100,thumbHeight:"80px",thumbMargin:5,appendThumbnailsTo:".lg-components",toggleThumb:!1,enableThumbDrag:!0,enableThumbSwipe:!0,thumbnailSwipeThreshold:10,loadYouTubeThumbnail:!0,youTubeThumbSize:1,thumbnailPluginStrings:{toggleThumbnails:"Toggle thumbnails"}},Yl={containerResize:"lgContainerResize",updateSlides:"lgUpdateSlides",beforeOpen:"lgBeforeOpen",beforeSlide:"lgBeforeSlide"},Mm=function(){function r(t,a){return this.thumbOuterWidth=0,this.thumbTotalWidth=0,this.translateX=0,this.thumbClickable=!1,this.core=t,this.$LG=a,this}return r.prototype.init=function(){this.settings=hu(hu({},t4),this.core.settings),this.thumbOuterWidth=0,this.thumbTotalWidth=this.core.galleryItems.length*(this.settings.thumbWidth+this.settings.thumbMargin),this.translateX=0,this.setAnimateThumbStyles(),this.core.settings.allowMediaOverlap||(this.settings.toggleThumb=!1),this.settings.thumbnail&&(this.build(),this.settings.animateThumb?(this.settings.enableThumbDrag&&this.enableThumbDrag(),this.settings.enableThumbSwipe&&this.enableThumbSwipe(),this.thumbClickable=!1):this.thumbClickable=!0,this.toggleThumbBar(),this.thumbKeyPress())},r.prototype.build=function(){var t=this;this.setThumbMarkup(),this.manageActiveClassOnSlideChange(),this.$lgThumb.first().on("click.lg touchend.lg",function(a){var l=t.$LG(a.target);l.hasAttribute("data-lg-item-id")&&setTimeout(function(){if(t.thumbClickable&&!t.core.lgBusy){var o=parseInt(l.attr("data-lg-item-id"));t.core.slide(o,!1,!0,!1)}},50)}),this.core.LGel.on(Yl.beforeSlide+".thumb",function(a){var l=a.detail.index;t.animateThumb(l)}),this.core.LGel.on(Yl.beforeOpen+".thumb",function(){t.thumbOuterWidth=t.core.outer.get().offsetWidth}),this.core.LGel.on(Yl.updateSlides+".thumb",function(){t.rebuildThumbnails()}),this.core.LGel.on(Yl.containerResize+".thumb",function(){t.core.lgOpened&&setTimeout(function(){t.thumbOuterWidth=t.core.outer.get().offsetWidth,t.animateThumb(t.core.index),t.thumbOuterWidth=t.core.outer.get().offsetWidth},50)})},r.prototype.setThumbMarkup=function(){var t="lg-thumb-outer ";this.settings.alignThumbnails&&(t+="lg-thumb-align-"+this.settings.alignThumbnails);var a='<div class="'+t+`">
170
+ <div class="lg-thumb lg-group">
171
+ </div>
172
+ </div>`;this.core.outer.addClass("lg-has-thumb"),this.settings.appendThumbnailsTo===".lg-components"?this.core.$lgComponents.append(a):this.core.outer.append(a),this.$thumbOuter=this.core.outer.find(".lg-thumb-outer").first(),this.$lgThumb=this.core.outer.find(".lg-thumb").first(),this.settings.animateThumb&&this.core.outer.find(".lg-thumb").css("transition-duration",this.core.settings.speed+"ms").css("width",this.thumbTotalWidth+"px").css("position","relative"),this.setThumbItemHtml(this.core.galleryItems)},r.prototype.enableThumbDrag=function(){var t=this,a={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0},l=!1;this.$thumbOuter.addClass("lg-grab"),this.core.outer.find(".lg-thumb").first().on("mousedown.lg.thumb",function(o){t.thumbTotalWidth>t.thumbOuterWidth&&(o.preventDefault(),a.cords.startX=o.pageX,a.startTime=new Date,t.thumbClickable=!1,l=!0,t.core.outer.get().scrollLeft+=1,t.core.outer.get().scrollLeft-=1,t.$thumbOuter.removeClass("lg-grab").addClass("lg-grabbing"))}),this.$LG(window).on("mousemove.lg.thumb.global"+this.core.lgId,function(o){t.core.lgOpened&&l&&(a.cords.endX=o.pageX,a=t.onThumbTouchMove(a))}),this.$LG(window).on("mouseup.lg.thumb.global"+this.core.lgId,function(){t.core.lgOpened&&(a.isMoved?a=t.onThumbTouchEnd(a):t.thumbClickable=!0,l&&(l=!1,t.$thumbOuter.removeClass("lg-grabbing").addClass("lg-grab")))})},r.prototype.enableThumbSwipe=function(){var t=this,a={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0};this.$lgThumb.on("touchstart.lg",function(l){t.thumbTotalWidth>t.thumbOuterWidth&&(l.preventDefault(),a.cords.startX=l.targetTouches[0].pageX,t.thumbClickable=!1,a.startTime=new Date)}),this.$lgThumb.on("touchmove.lg",function(l){t.thumbTotalWidth>t.thumbOuterWidth&&(l.preventDefault(),a.cords.endX=l.targetTouches[0].pageX,a=t.onThumbTouchMove(a))}),this.$lgThumb.on("touchend.lg",function(){a.isMoved?a=t.onThumbTouchEnd(a):t.thumbClickable=!0})},r.prototype.rebuildThumbnails=function(){var t=this;this.$thumbOuter.addClass("lg-rebuilding-thumbnails"),setTimeout(function(){t.thumbTotalWidth=t.core.galleryItems.length*(t.settings.thumbWidth+t.settings.thumbMargin),t.$lgThumb.css("width",t.thumbTotalWidth+"px"),t.$lgThumb.empty(),t.setThumbItemHtml(t.core.galleryItems),t.animateThumb(t.core.index)},50),setTimeout(function(){t.$thumbOuter.removeClass("lg-rebuilding-thumbnails")},200)},r.prototype.setTranslate=function(t){this.$lgThumb.css("transform","translate3d(-"+t+"px, 0px, 0px)")},r.prototype.getPossibleTransformX=function(t){return t>this.thumbTotalWidth-this.thumbOuterWidth&&(t=this.thumbTotalWidth-this.thumbOuterWidth),t<0&&(t=0),t},r.prototype.animateThumb=function(t){if(this.$lgThumb.css("transition-duration",this.core.settings.speed+"ms"),this.settings.animateThumb){var a=0;switch(this.settings.currentPagerPosition){case"left":a=0;break;case"middle":a=this.thumbOuterWidth/2-this.settings.thumbWidth/2;break;case"right":a=this.thumbOuterWidth-this.settings.thumbWidth}this.translateX=(this.settings.thumbWidth+this.settings.thumbMargin)*t-1-a,this.translateX>this.thumbTotalWidth-this.thumbOuterWidth&&(this.translateX=this.thumbTotalWidth-this.thumbOuterWidth),this.translateX<0&&(this.translateX=0),this.setTranslate(this.translateX)}},r.prototype.onThumbTouchMove=function(t){return t.newTranslateX=this.translateX,t.isMoved=!0,t.touchMoveTime=new Date().valueOf(),t.newTranslateX-=t.cords.endX-t.cords.startX,t.newTranslateX=this.getPossibleTransformX(t.newTranslateX),this.setTranslate(t.newTranslateX),this.$thumbOuter.addClass("lg-dragging"),t},r.prototype.onThumbTouchEnd=function(t){t.isMoved=!1,t.endTime=new Date,this.$thumbOuter.removeClass("lg-dragging");var a=t.endTime.valueOf()-t.startTime.valueOf(),l=t.cords.endX-t.cords.startX,o=Math.abs(l)/a;return o>.15&&t.endTime.valueOf()-t.touchMoveTime<30?(o+=1,o>2&&(o+=1),o=o+o*(Math.abs(l)/this.thumbOuterWidth),this.$lgThumb.css("transition-duration",Math.min(o-1,2)+"settings"),l=l*o,this.translateX=this.getPossibleTransformX(this.translateX-l),this.setTranslate(this.translateX)):this.translateX=t.newTranslateX,Math.abs(t.cords.endX-t.cords.startX)<this.settings.thumbnailSwipeThreshold&&(this.thumbClickable=!0),t},r.prototype.getThumbHtml=function(t,a,l){var o=this.core.galleryItems[a].__slideVideoInfo||{},u;o.youtube&&this.settings.loadYouTubeThumbnail?u="//img.youtube.com/vi/"+o.youtube[1]+"/"+this.settings.youTubeThumbSize+".jpg":u=t;var c=document.createElement("div");c.setAttribute("data-lg-item-id",a+""),c.className="lg-thumb-item "+(a===this.core.index?"active":""),c.style.cssText="width: "+this.settings.thumbWidth+"px; height: "+this.settings.thumbHeight+"; margin-right: "+this.settings.thumbMargin+"px;";var d=document.createElement("img");return d.alt=l||"",d.setAttribute("data-lg-item-id",a+""),d.src=u,c.appendChild(d),c},r.prototype.setThumbItemHtml=function(t){for(var a=0;a<t.length;a++){var l=this.getThumbHtml(t[a].thumb,a,t[a].alt);this.$lgThumb.append(l)}},r.prototype.setAnimateThumbStyles=function(){this.settings.animateThumb&&this.core.outer.addClass("lg-animate-thumb")},r.prototype.manageActiveClassOnSlideChange=function(){var t=this;this.core.LGel.on(Yl.beforeSlide+".thumb",function(a){var l=t.core.outer.find(".lg-thumb-item"),o=a.detail.index;l.removeClass("active"),l.eq(o).addClass("active")})},r.prototype.toggleThumbBar=function(){var t=this;this.settings.toggleThumb&&(this.core.outer.addClass("lg-can-toggle"),this.core.$toolbar.append('<button type="button" aria-label="'+this.settings.thumbnailPluginStrings.toggleThumbnails+'" class="lg-toggle-thumb lg-icon"></button>'),this.core.outer.find(".lg-toggle-thumb").first().on("click.lg",function(){t.core.outer.toggleClass("lg-components-open")}))},r.prototype.thumbKeyPress=function(){var t=this;this.$LG(window).on("keydown.lg.thumb.global"+this.core.lgId,function(a){!t.core.lgOpened||!t.settings.toggleThumb||(a.keyCode===38?(a.preventDefault(),t.core.outer.addClass("lg-components-open")):a.keyCode===40&&(a.preventDefault(),t.core.outer.removeClass("lg-components-open")))})},r.prototype.destroy=function(){this.settings.thumbnail&&(this.$LG(window).off(".lg.thumb.global"+this.core.lgId),this.core.LGel.off(".lg.thumb"),this.core.LGel.off(".thumb"),this.$thumbOuter.remove(),this.core.outer.removeClass("lg-has-thumb"))},r}();/*!
173
+ * lightgallery | 2.8.3 | March 1st 2025
174
+ * http://www.lightgalleryjs.com/
175
+ * Copyright (c) 2020 Sachin Neravath;
176
+ * @license GPLv3
177
+ *//*! *****************************************************************************
178
+ Copyright (c) Microsoft Corporation.
179
+
180
+ Permission to use, copy, modify, and/or distribute this software for any
181
+ purpose with or without fee is hereby granted.
182
+
183
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
184
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
185
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
186
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
187
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
188
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
189
+ PERFORMANCE OF THIS SOFTWARE.
190
+ ***************************************************************************** */var pu=function(){return pu=Object.assign||function(t){for(var a,l=1,o=arguments.length;l<o;l++){a=arguments[l];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(t[u]=a[u])}return t},pu.apply(this,arguments)},n4={scale:1,zoom:!0,infiniteZoom:!0,actualSize:!0,showZoomInOutIcons:!1,actualSizeIcons:{zoomIn:"lg-zoom-in",zoomOut:"lg-zoom-out"},enableZoomAfter:300,zoomPluginStrings:{zoomIn:"Zoom in",zoomOut:"Zoom out",viewActualSize:"View actual size"}},wr={containerResize:"lgContainerResize",beforeOpen:"lgBeforeOpen",afterOpen:"lgAfterOpen",slideItemLoad:"lgSlideItemLoad",afterSlide:"lgAfterSlide",rotateLeft:"lgRotateLeft",rotateRight:"lgRotateRight",flipHorizontal:"lgFlipHorizontal",flipVertical:"lgFlipVertical"},rp=500,Nm=function(){function r(t,a){return this.core=t,this.$LG=a,this.settings=pu(pu({},n4),this.core.settings),this}return r.prototype.buildTemplates=function(){var t=this.settings.showZoomInOutIcons?'<button id="'+this.core.getIdName("lg-zoom-in")+'" type="button" aria-label="'+this.settings.zoomPluginStrings.zoomIn+'" class="lg-zoom-in lg-icon"></button><button id="'+this.core.getIdName("lg-zoom-out")+'" type="button" aria-label="'+this.settings.zoomPluginStrings.zoomOut+'" class="lg-zoom-out lg-icon"></button>':"";this.settings.actualSize&&(t+='<button id="'+this.core.getIdName("lg-actual-size")+'" type="button" aria-label="'+this.settings.zoomPluginStrings.viewActualSize+'" class="'+this.settings.actualSizeIcons.zoomIn+' lg-icon"></button>'),this.core.outer.addClass("lg-use-transition-for-zoom"),this.core.$toolbar.first().append(t)},r.prototype.enableZoom=function(t){var a=this,l=this.settings.enableZoomAfter+t.detail.delay;this.$LG("body").first().hasClass("lg-from-hash")&&t.detail.delay?l=0:this.$LG("body").first().removeClass("lg-from-hash"),this.zoomableTimeout=setTimeout(function(){a.isImageSlide(a.core.index)&&(a.core.getSlideItem(t.detail.index).addClass("lg-zoomable"),t.detail.index===a.core.index&&a.setZoomEssentials())},l+30)},r.prototype.enableZoomOnSlideItemLoad=function(){this.core.LGel.on(wr.slideItemLoad+".zoom",this.enableZoom.bind(this))},r.prototype.getDragCords=function(t){return{x:t.pageX,y:t.pageY}},r.prototype.getSwipeCords=function(t){var a=t.touches[0].pageX,l=t.touches[0].pageY;return{x:a,y:l}},r.prototype.getDragAllowedAxises=function(t,a){if(!this.containerRect)return{allowX:!1,allowY:!1};var l=this.core.getSlideItem(this.core.index).find(".lg-image").first().get(),o=0,u=0,c=l.getBoundingClientRect();t?(o=l.offsetHeight*t,u=l.offsetWidth*t):a?(o=c.height+a*c.height,u=c.width+a*c.width):(o=c.height,u=c.width);var d=o>this.containerRect.height,h=u>this.containerRect.width;return{allowX:h,allowY:d}},r.prototype.setZoomEssentials=function(){this.containerRect=this.core.$content.get().getBoundingClientRect()},r.prototype.zoomImage=function(t,a,l,o){if(!(Math.abs(a)<=0)){var u=this.containerRect.width/2+this.containerRect.left,c=this.containerRect.height/2+this.containerRect.top+this.scrollTop,d,h;t===1&&(this.positionChanged=!1);var p=this.getDragAllowedAxises(0,a),g=p.allowY,v=p.allowX;this.positionChanged&&(d=this.left/(this.scale-a),h=this.top/(this.scale-a),this.pageX=u-d,this.pageY=c-h,this.positionChanged=!1);var x=this.getPossibleSwipeDragCords(a),E,N,_=u-this.pageX,z=c-this.pageY;if(t-a>1){var H=(t-a)/Math.abs(a);_=(a<0?-_:_)+this.left*(H+(a<0?-1:1)),z=(a<0?-z:z)+this.top*(H+(a<0?-1:1)),E=_/H,N=z/H}else{var H=(t-a)*a;E=_*H,N=z*H}l&&(v?this.isBeyondPossibleLeft(E,x.minX)?E=x.minX:this.isBeyondPossibleRight(E,x.maxX)&&(E=x.maxX):t>1&&(E<x.minX?E=x.minX:E>x.maxX&&(E=x.maxX)),g?this.isBeyondPossibleTop(N,x.minY)?N=x.minY:this.isBeyondPossibleBottom(N,x.maxY)&&(N=x.maxY):t>1&&(N<x.minY?N=x.minY:N>x.maxY&&(N=x.maxY))),this.setZoomStyles({x:E,y:N,scale:t}),this.left=E,this.top=N,o&&this.setZoomImageSize()}},r.prototype.resetImageTranslate=function(t){if(this.isImageSlide(t)){var a=this.core.getSlideItem(t).find(".lg-image").first();this.imageReset=!1,a.removeClass("reset-transition reset-transition-y reset-transition-x"),this.core.outer.removeClass("lg-actual-size"),a.css("width","auto").css("height","auto"),setTimeout(function(){a.removeClass("no-transition")},10)}},r.prototype.setZoomImageSize=function(){var t=this,a=this.core.getSlideItem(this.core.index).find(".lg-image").first();setTimeout(function(){var l=t.getCurrentImageActualSizeScale();t.scale>=l&&(a.addClass("no-transition"),t.imageReset=!0)},rp),setTimeout(function(){var l=t.getCurrentImageActualSizeScale();if(t.scale>=l){var o=t.getDragAllowedAxises(t.scale);a.css("width",a.get().naturalWidth+"px").css("height",a.get().naturalHeight+"px"),t.core.outer.addClass("lg-actual-size"),o.allowX&&o.allowY?a.addClass("reset-transition"):o.allowX&&!o.allowY?a.addClass("reset-transition-x"):!o.allowX&&o.allowY&&a.addClass("reset-transition-y")}},rp+50)},r.prototype.setZoomStyles=function(t){var a=this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(),l=this.core.getSlideItem(this.core.index).find(".lg-image").first(),o=this.core.outer.find(".lg-current .lg-dummy-img").first();this.scale=t.scale,l.css("transform","scale3d("+t.scale+", "+t.scale+", 1)"),o.css("transform","scale3d("+t.scale+", "+t.scale+", 1)");var u="translate3d("+t.x+"px, "+t.y+"px, 0)";a.css("transform",u)},r.prototype.setActualSize=function(t,a){var l=this;if(!this.zoomInProgress){this.zoomInProgress=!0;var o=this.core.galleryItems[this.core.index];this.resetImageTranslate(t),setTimeout(function(){if(!(!o.src||l.core.outer.hasClass("lg-first-slide-loading"))){var u=l.getCurrentImageActualSizeScale(),c=l.scale;l.core.outer.hasClass("lg-zoomed")?l.scale=1:l.scale=l.getScale(u),l.setPageCords(a),l.beginZoom(l.scale),l.zoomImage(l.scale,l.scale-c,!0,!0)}},50),setTimeout(function(){l.core.outer.removeClass("lg-grabbing").addClass("lg-grab")},60),setTimeout(function(){l.zoomInProgress=!1},rp+110)}},r.prototype.getNaturalWidth=function(t){var a=this.core.getSlideItem(t).find(".lg-image").first(),l=this.core.galleryItems[t].width;return l?parseFloat(l):a.get().naturalWidth},r.prototype.getActualSizeScale=function(t,a){var l,o;return t>=a?(l=t/a,o=l||2):o=1,o},r.prototype.getCurrentImageActualSizeScale=function(){var t=this.core.getSlideItem(this.core.index).find(".lg-image").first(),a=t.get().offsetWidth,l=this.getNaturalWidth(this.core.index)||a;return this.getActualSizeScale(l,a)},r.prototype.getPageCords=function(t){var a={};if(t)a.x=t.pageX||t.touches[0].pageX,a.y=t.pageY||t.touches[0].pageY;else{var l=this.core.$content.get().getBoundingClientRect();a.x=l.width/2+l.left,a.y=l.height/2+this.scrollTop+l.top}return a},r.prototype.setPageCords=function(t){var a=this.getPageCords(t);this.pageX=a.x,this.pageY=a.y},r.prototype.manageActualPixelClassNames=function(){var t=this.core.getElementById("lg-actual-size");t.removeClass(this.settings.actualSizeIcons.zoomIn).addClass(this.settings.actualSizeIcons.zoomOut)},r.prototype.beginZoom=function(t){return this.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),t>1?(this.core.outer.addClass("lg-zoomed"),this.manageActualPixelClassNames()):this.resetZoom(),t>1},r.prototype.getScale=function(t){var a=this.getCurrentImageActualSizeScale();return t<1?t=1:t>a&&(t=a),t},r.prototype.init=function(){var t=this;if(this.settings.zoom){this.buildTemplates(),this.enableZoomOnSlideItemLoad();var a=null;this.core.outer.on("dblclick.lg",function(l){t.$LG(l.target).hasClass("lg-image")&&t.setActualSize(t.core.index,l)}),this.core.outer.on("touchstart.lg",function(l){var o=t.$LG(l.target);l.touches.length===1&&o.hasClass("lg-image")&&(a?(clearTimeout(a),a=null,l.preventDefault(),t.setActualSize(t.core.index,l)):a=setTimeout(function(){a=null},300))}),this.core.LGel.on(wr.containerResize+".zoom "+wr.rotateRight+".zoom "+wr.rotateLeft+".zoom "+wr.flipHorizontal+".zoom "+wr.flipVertical+".zoom",function(){if(!(!t.core.lgOpened||!t.isImageSlide(t.core.index)||t.core.touchAction)){var l=t.core.getSlideItem(t.core.index).find(".lg-img-wrap").first();t.top=0,t.left=0,t.setZoomEssentials(),t.setZoomSwipeStyles(l,{x:0,y:0}),t.positionChanged=!0}}),this.$LG(window).on("scroll.lg.zoom.global"+this.core.lgId,function(){t.core.lgOpened&&(t.scrollTop=t.$LG(window).scrollTop())}),this.core.getElementById("lg-zoom-out").on("click.lg",function(){if(t.isImageSlide(t.core.index)){var l=0;t.imageReset&&(t.resetImageTranslate(t.core.index),l=50),setTimeout(function(){var o=t.scale-t.settings.scale;o<1&&(o=1),t.beginZoom(o),t.zoomImage(o,-t.settings.scale,!0,!t.settings.infiniteZoom)},l)}}),this.core.getElementById("lg-zoom-in").on("click.lg",function(){t.zoomIn()}),this.core.getElementById("lg-actual-size").on("click.lg",function(){t.setActualSize(t.core.index)}),this.core.LGel.on(wr.beforeOpen+".zoom",function(){t.core.outer.find(".lg-item").removeClass("lg-zoomable")}),this.core.LGel.on(wr.afterOpen+".zoom",function(){t.scrollTop=t.$LG(window).scrollTop(),t.pageX=t.core.outer.width()/2,t.pageY=t.core.outer.height()/2+t.scrollTop,t.scale=1}),this.core.LGel.on(wr.afterSlide+".zoom",function(l){var o=l.detail.prevIndex;t.scale=1,t.positionChanged=!1,t.zoomInProgress=!1,t.resetZoom(o),t.resetImageTranslate(o),t.isImageSlide(t.core.index)&&t.setZoomEssentials()}),this.zoomDrag(),this.pinchZoom(),this.zoomSwipe(),this.zoomableTimeout=!1,this.positionChanged=!1,this.zoomInProgress=!1}},r.prototype.zoomIn=function(){if(this.isImageSlide(this.core.index)){var t=this.scale+this.settings.scale;this.settings.infiniteZoom||(t=this.getScale(t)),this.beginZoom(t),this.zoomImage(t,Math.min(this.settings.scale,t-this.scale),!0,!this.settings.infiniteZoom)}},r.prototype.resetZoom=function(t){this.core.outer.removeClass("lg-zoomed lg-zoom-drag-transition");var a=this.core.getElementById("lg-actual-size"),l=this.core.getSlideItem(t!==void 0?t:this.core.index);a.removeClass(this.settings.actualSizeIcons.zoomOut).addClass(this.settings.actualSizeIcons.zoomIn),l.find(".lg-img-wrap").first().removeAttr("style"),l.find(".lg-image").first().removeAttr("style"),this.scale=1,this.left=0,this.top=0,this.setPageCords()},r.prototype.getTouchDistance=function(t){return Math.sqrt((t.touches[0].pageX-t.touches[1].pageX)*(t.touches[0].pageX-t.touches[1].pageX)+(t.touches[0].pageY-t.touches[1].pageY)*(t.touches[0].pageY-t.touches[1].pageY))},r.prototype.pinchZoom=function(){var t=this,a=0,l=!1,o=1,u=0,c=this.core.getSlideItem(this.core.index);this.core.outer.on("touchstart.lg",function(d){if(c=t.core.getSlideItem(t.core.index),!!t.isImageSlide(t.core.index)&&d.touches.length===2){if(d.preventDefault(),t.core.outer.hasClass("lg-first-slide-loading"))return;o=t.scale||1,t.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),t.setPageCords(d),t.resetImageTranslate(t.core.index),t.core.touchAction="pinch",a=t.getTouchDistance(d)}}),this.core.$inner.on("touchmove.lg",function(d){if(d.touches.length===2&&t.core.touchAction==="pinch"&&(t.$LG(d.target).hasClass("lg-item")||c.get().contains(d.target))){d.preventDefault();var h=t.getTouchDistance(d),p=a-h;if(!l&&Math.abs(p)>5&&(l=!0),l){u=t.scale;var g=Math.max(1,o+-p*.02);t.scale=Math.round((g+Number.EPSILON)*100)/100;var v=t.scale-u;t.zoomImage(t.scale,Math.round((v+Number.EPSILON)*100)/100,!1,!1)}}}),this.core.$inner.on("touchend.lg",function(d){if(t.core.touchAction==="pinch"&&(t.$LG(d.target).hasClass("lg-item")||c.get().contains(d.target))){if(l=!1,a=0,t.scale<=1)t.resetZoom();else{var h=t.getCurrentImageActualSizeScale();if(t.scale>=h){var p=h-t.scale;p===0&&(p=.01),t.zoomImage(h,p,!1,!0)}t.manageActualPixelClassNames(),t.core.outer.addClass("lg-zoomed")}t.core.touchAction=void 0}})},r.prototype.touchendZoom=function(t,a,l,o,u){var c=a.x-t.x,d=a.y-t.y,h=Math.abs(c)/u+1,p=Math.abs(d)/u+1;h>2&&(h+=1),p>2&&(p+=1),c=c*h,d=d*p;var g=this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(),v={};v.x=this.left+c,v.y=this.top+d;var x=this.getPossibleSwipeDragCords();(Math.abs(c)>15||Math.abs(d)>15)&&(o&&(this.isBeyondPossibleTop(v.y,x.minY)?v.y=x.minY:this.isBeyondPossibleBottom(v.y,x.maxY)&&(v.y=x.maxY)),l&&(this.isBeyondPossibleLeft(v.x,x.minX)?v.x=x.minX:this.isBeyondPossibleRight(v.x,x.maxX)&&(v.x=x.maxX)),o?this.top=v.y:v.y=this.top,l?this.left=v.x:v.x=this.left,this.setZoomSwipeStyles(g,v),this.positionChanged=!0)},r.prototype.getZoomSwipeCords=function(t,a,l,o,u){var c={};if(o){if(c.y=this.top+(a.y-t.y),this.isBeyondPossibleTop(c.y,u.minY)){var d=u.minY-c.y;c.y=u.minY-d/6}else if(this.isBeyondPossibleBottom(c.y,u.maxY)){var h=c.y-u.maxY;c.y=u.maxY+h/6}}else c.y=this.top;if(l){if(c.x=this.left+(a.x-t.x),this.isBeyondPossibleLeft(c.x,u.minX)){var p=u.minX-c.x;c.x=u.minX-p/6}else if(this.isBeyondPossibleRight(c.x,u.maxX)){var g=c.x-u.maxX;c.x=u.maxX+g/6}}else c.x=this.left;return c},r.prototype.isBeyondPossibleLeft=function(t,a){return t>=a},r.prototype.isBeyondPossibleRight=function(t,a){return t<=a},r.prototype.isBeyondPossibleTop=function(t,a){return t>=a},r.prototype.isBeyondPossibleBottom=function(t,a){return t<=a},r.prototype.isImageSlide=function(t){var a=this.core.galleryItems[t];return this.core.getSlideType(a)==="image"},r.prototype.getPossibleSwipeDragCords=function(t){var a=this.core.getSlideItem(this.core.index).find(".lg-image").first(),l=this.core.mediaContainerPosition.bottom,o=a.get().getBoundingClientRect(),u=o.height,c=o.width;t&&(u=u+t*u,c=c+t*c);var d=(u-this.containerRect.height)/2,h=(this.containerRect.height-u)/2+l,p=(c-this.containerRect.width)/2,g=(this.containerRect.width-c)/2,v={minY:d,maxY:h,minX:p,maxX:g};return v},r.prototype.setZoomSwipeStyles=function(t,a){t.css("transform","translate3d("+a.x+"px, "+a.y+"px, 0)")},r.prototype.zoomSwipe=function(){var t=this,a={},l={},o=!1,u=!1,c=!1,d=new Date,h=new Date,p,g,v=this.core.getSlideItem(this.core.index);this.core.$inner.on("touchstart.lg",function(x){if(t.isImageSlide(t.core.index)&&(v=t.core.getSlideItem(t.core.index),(t.$LG(x.target).hasClass("lg-item")||v.get().contains(x.target))&&x.touches.length===1&&t.core.outer.hasClass("lg-zoomed"))){x.preventDefault(),d=new Date,t.core.touchAction="zoomSwipe",g=t.core.getSlideItem(t.core.index).find(".lg-img-wrap").first();var E=t.getDragAllowedAxises(0);c=E.allowY,u=E.allowX,(u||c)&&(a=t.getSwipeCords(x)),p=t.getPossibleSwipeDragCords(),t.core.outer.addClass("lg-zoom-dragging lg-zoom-drag-transition")}}),this.core.$inner.on("touchmove.lg",function(x){if(x.touches.length===1&&t.core.touchAction==="zoomSwipe"&&(t.$LG(x.target).hasClass("lg-item")||v.get().contains(x.target))){x.preventDefault(),t.core.touchAction="zoomSwipe",l=t.getSwipeCords(x);var E=t.getZoomSwipeCords(a,l,u,c,p);(Math.abs(l.x-a.x)>15||Math.abs(l.y-a.y)>15)&&(o=!0,t.setZoomSwipeStyles(g,E))}}),this.core.$inner.on("touchend.lg",function(x){if(t.core.touchAction==="zoomSwipe"&&(t.$LG(x.target).hasClass("lg-item")||v.get().contains(x.target))){if(x.preventDefault(),t.core.touchAction=void 0,t.core.outer.removeClass("lg-zoom-dragging"),!o)return;o=!1,h=new Date;var E=h.valueOf()-d.valueOf();t.touchendZoom(a,l,u,c,E)}})},r.prototype.zoomDrag=function(){var t=this,a={},l={},o=!1,u=!1,c=!1,d=!1,h,p,g,v;this.core.outer.on("mousedown.lg.zoom",function(x){if(t.isImageSlide(t.core.index)){var E=t.core.getSlideItem(t.core.index);if(t.$LG(x.target).hasClass("lg-item")||E.get().contains(x.target)){h=new Date,v=t.core.getSlideItem(t.core.index).find(".lg-img-wrap").first();var N=t.getDragAllowedAxises(0);d=N.allowY,c=N.allowX,t.core.outer.hasClass("lg-zoomed")&&t.$LG(x.target).hasClass("lg-object")&&(c||d)&&(x.preventDefault(),a=t.getDragCords(x),g=t.getPossibleSwipeDragCords(),o=!0,t.core.outer.removeClass("lg-grab").addClass("lg-grabbing lg-zoom-drag-transition lg-zoom-dragging"))}}}),this.$LG(window).on("mousemove.lg.zoom.global"+this.core.lgId,function(x){if(o){u=!0,l=t.getDragCords(x);var E=t.getZoomSwipeCords(a,l,c,d,g);t.setZoomSwipeStyles(v,E)}}),this.$LG(window).on("mouseup.lg.zoom.global"+this.core.lgId,function(x){if(o){if(p=new Date,o=!1,t.core.outer.removeClass("lg-zoom-dragging"),u&&(a.x!==l.x||a.y!==l.y)){l=t.getDragCords(x);var E=p.valueOf()-h.valueOf();t.touchendZoom(a,l,c,d,E)}u=!1}t.core.outer.removeClass("lg-grabbing").addClass("lg-grab")})},r.prototype.closeGallery=function(){this.resetZoom(),this.zoomInProgress=!1},r.prototype.destroy=function(){this.$LG(window).off(".lg.zoom.global"+this.core.lgId),this.core.LGel.off(".lg.zoom"),this.core.LGel.off(".zoom"),clearTimeout(this.zoomableTimeout),this.zoomableTimeout=!1},r}();/*!
191
+ * lightgallery | 2.8.3 | March 1st 2025
192
+ * http://www.lightgalleryjs.com/
193
+ * Copyright (c) 2020 Sachin Neravath;
194
+ * @license GPLv3
195
+ *//*! *****************************************************************************
196
+ Copyright (c) Microsoft Corporation.
197
+
198
+ Permission to use, copy, modify, and/or distribute this software for any
199
+ purpose with or without fee is hereby granted.
200
+
201
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
202
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
203
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
204
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
205
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
206
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
207
+ PERFORMANCE OF THIS SOFTWARE.
208
+ ***************************************************************************** */var $a=function(){return $a=Object.assign||function(t){for(var a,l=1,o=arguments.length;l<o;l++){a=arguments[l];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(t[u]=a[u])}return t},$a.apply(this,arguments)},r4={autoplayFirstVideo:!0,youTubePlayerParams:!1,vimeoPlayerParams:!1,wistiaPlayerParams:!1,gotoNextSlideOnVideoEnd:!0,autoplayVideoOnSlide:!1,videojs:!1,videojsTheme:"",videojsOptions:{}},Xl={hasVideo:"lgHasVideo",slideItemLoad:"lgSlideItemLoad",beforeSlide:"lgBeforeSlide",afterSlide:"lgAfterSlide",posterClick:"lgPosterClick"},Dm=function(r){return Object.keys(r).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(r[t])}).join("&")},a4=function(r){var t=r.slice(1).split("&").map(function(a){return a.split("=")}).reduce(function(a,l){var o=l.map(decodeURIComponent),u=o[0],c=o[1];return a[u]=c,a},{});return t},i4=function(r,t){if(!r.youtube)return"";var a=r.youtube[2]?a4(r.youtube[2]):"",l={wmode:"opaque",autoplay:0,mute:1,enablejsapi:1},o=t||{},u=$a($a($a({},l),o),a),c="?"+Dm(u);return c},l4=function(r){return r.includes("youtube-nocookie.com")},o4=function(r,t){if(!t||!t.vimeo)return"";var a=t.vimeo[2]||"",l=Object.assign({},{autoplay:0,muted:1},r),o=l&&Object.keys(l).length!==0?Dm(l):"",u=t.vimeo[0].split("/").pop()||"",c=u.split("?")[0]||"",d=c.split("#")[0],h=t.vimeo[1]!==d;h&&(a=a.replace("/"+d,"")),a=a[0]=="?"?"&"+a.slice(1):a||"";var p=h?"h="+d:"";o=p?"&"+o:o;var g="?"+p+o+a;return g},Lm=function(){function r(t){return this.core=t,this.settings=$a($a({},r4),this.core.settings),this}return r.prototype.init=function(){var t=this;this.core.LGel.on(Xl.hasVideo+".video",this.onHasVideo.bind(this)),this.core.LGel.on(Xl.posterClick+".video",function(){var a=t.core.getSlideItem(t.core.index);t.loadVideoOnPosterClick(a)}),this.core.LGel.on(Xl.slideItemLoad+".video",this.onSlideItemLoad.bind(this)),this.core.LGel.on(Xl.beforeSlide+".video",this.onBeforeSlide.bind(this)),this.core.LGel.on(Xl.afterSlide+".video",this.onAfterSlide.bind(this))},r.prototype.onSlideItemLoad=function(t){var a=this,l=t.detail,o=l.isFirstSlide,u=l.index;this.settings.autoplayFirstVideo&&o&&u===this.core.index&&setTimeout(function(){a.loadAndPlayVideo(u)},200),!o&&this.settings.autoplayVideoOnSlide&&u===this.core.index&&this.loadAndPlayVideo(u)},r.prototype.onHasVideo=function(t){var a=t.detail,l=a.index,o=a.src,u=a.html5Video,c=a.hasPoster;c||(this.appendVideos(this.core.getSlideItem(l),{src:o,addClass:"lg-object",index:l,html5Video:u}),this.gotoNextSlideOnVideoEnd(o,l))},r.prototype.onBeforeSlide=function(t){if(this.core.lGalleryOn){var a=t.detail.prevIndex;this.pauseVideo(a)}},r.prototype.onAfterSlide=function(t){var a=this,l=t.detail,o=l.index,u=l.prevIndex,c=this.core.getSlideItem(o);this.settings.autoplayVideoOnSlide&&o!==u&&c.hasClass("lg-complete")&&setTimeout(function(){a.loadAndPlayVideo(o)},100)},r.prototype.loadAndPlayVideo=function(t){var a=this.core.getSlideItem(t),l=this.core.galleryItems[t];l.poster?this.loadVideoOnPosterClick(a,!0):this.playVideo(t)},r.prototype.playVideo=function(t){this.controlVideo(t,"play")},r.prototype.pauseVideo=function(t){this.controlVideo(t,"pause")},r.prototype.getVideoHtml=function(t,a,l,o){var u="",c=this.core.galleryItems[l].__slideVideoInfo||{},d=this.core.galleryItems[l],h=d.title||d.alt;h=h?'title="'+h+'"':"";var p=`allowtransparency="true"
209
+ frameborder="0"
210
+ scrolling="no"
211
+ allowfullscreen
212
+ mozallowfullscreen
213
+ webkitallowfullscreen
214
+ oallowfullscreen
215
+ msallowfullscreen`;if(c.youtube){var g="lg-youtube"+l,v=i4(c,this.settings.youTubePlayerParams),x=l4(t),E=x?"//www.youtube-nocookie.com/":"//www.youtube.com/";u='<iframe allow="autoplay" id='+g+' class="lg-video-object lg-youtube '+a+'" '+h+' src="'+E+"embed/"+(c.youtube[1]+v)+'" '+p+"></iframe>"}else if(c.vimeo){var g="lg-vimeo"+l,N=o4(this.settings.vimeoPlayerParams,c);u='<iframe allow="autoplay" id='+g+' class="lg-video-object lg-vimeo '+a+'" '+h+' src="//player.vimeo.com/video/'+(c.vimeo[1]+N)+'" '+p+"></iframe>"}else if(c.wistia){var _="lg-wistia"+l,N=Dm(this.settings.wistiaPlayerParams);N=N?"?"+N:"",u='<iframe allow="autoplay" id="'+_+'" src="//fast.wistia.net/embed/iframe/'+(c.wistia[4]+N)+'" '+h+' class="wistia_embed lg-video-object lg-wistia '+a+'" name="wistia_embed" '+p+"></iframe>"}else if(c.html5){for(var z="",H=0;H<o.source.length;H++){var G=o.source[H].type,k=G?'type="'+G+'"':"";z+='<source src="'+o.source[H].src+'" '+k+">"}if(o.tracks)for(var Z=function(P){var F="",D=o.tracks[P];Object.keys(D||{}).forEach(function(T){F+=T+'="'+D[T]+'" '}),z+="<track "+F+">"},H=0;H<o.tracks.length;H++)Z(H);var A="",j=o.attributes||{};Object.keys(j||{}).forEach(function(P){A+=P+'="'+j[P]+'" '}),u='<video class="lg-video-object lg-html5 '+(this.settings.videojs&&this.settings.videojsTheme?this.settings.videojsTheme+" ":"")+" "+(this.settings.videojs?" video-js":"")+'" '+A+`>
216
+ `+z+`
217
+ Your browser does not support HTML5 video.
218
+ </video>`}return u},r.prototype.appendVideos=function(t,a){var l,o=this.getVideoHtml(a.src,a.addClass,a.index,a.html5Video);t.find(".lg-video-cont").append(o);var u=t.find(".lg-video-object").first();if(a.html5Video&&u.on("mousedown.lg.video",function(c){c.stopPropagation()}),this.settings.videojs&&(!((l=this.core.galleryItems[a.index].__slideVideoInfo)===null||l===void 0)&&l.html5))try{return videojs(u.get(),this.settings.videojsOptions)}catch{console.error("lightGallery:- Make sure you have included videojs")}},r.prototype.gotoNextSlideOnVideoEnd=function(t,a){var l=this,o=this.core.getSlideItem(a).find(".lg-video-object").first(),u=this.core.galleryItems[a].__slideVideoInfo||{};if(this.settings.gotoNextSlideOnVideoEnd){if(u.html5)o.on("ended",function(){l.core.goToNextSlide()});else if(u.vimeo)try{new Vimeo.Player(o.get()).on("ended",function(){l.core.goToNextSlide()})}catch{console.error("lightGallery:- Make sure you have included //github.com/vimeo/player.js")}else if(u.wistia)try{window._wq=window._wq||[],window._wq.push({id:o.attr("id"),onReady:function(c){c.bind("end",function(){l.core.goToNextSlide()})}})}catch{console.error("lightGallery:- Make sure you have included //fast.wistia.com/assets/external/E-v1.js")}}},r.prototype.controlVideo=function(t,a){var l=this.core.getSlideItem(t).find(".lg-video-object").first(),o=this.core.galleryItems[t].__slideVideoInfo||{};if(l.get()){if(o.youtube)try{l.get().contentWindow.postMessage('{"event":"command","func":"'+a+'Video","args":""}',"*")}catch(u){console.error("lightGallery:- "+u)}else if(o.vimeo)try{new Vimeo.Player(l.get())[a]()}catch{console.error("lightGallery:- Make sure you have included //github.com/vimeo/player.js")}else if(o.html5)if(this.settings.videojs)try{videojs(l.get())[a]()}catch{console.error("lightGallery:- Make sure you have included videojs")}else l.get()[a]();else if(o.wistia)try{window._wq=window._wq||[],window._wq.push({id:l.attr("id"),onReady:function(u){u[a]()}})}catch{console.error("lightGallery:- Make sure you have included //fast.wistia.com/assets/external/E-v1.js")}}},r.prototype.loadVideoOnPosterClick=function(t,a){var l=this;if(t.hasClass("lg-video-loaded"))a&&this.playVideo(this.core.index);else if(t.hasClass("lg-has-video"))this.playVideo(this.core.index);else{t.addClass("lg-has-video");var o=void 0,u=this.core.galleryItems[this.core.index].src,c=this.core.galleryItems[this.core.index].video;c&&(o=typeof c=="string"?JSON.parse(c):c);var d=this.appendVideos(t,{src:u,addClass:"",index:this.core.index,html5Video:o});this.gotoNextSlideOnVideoEnd(u,this.core.index);var h=t.find(".lg-object").first().get();t.find(".lg-video-cont").first().append(h),t.addClass("lg-video-loading"),d&&d.ready(function(){d.on("loadedmetadata",function(){l.onVideoLoadAfterPosterClick(t,l.core.index)})}),t.find(".lg-video-object").first().on("load.lg error.lg loadedmetadata.lg",function(){setTimeout(function(){l.onVideoLoadAfterPosterClick(t,l.core.index)},50)})}},r.prototype.onVideoLoadAfterPosterClick=function(t,a){t.addClass("lg-video-loaded"),this.playVideo(a)},r.prototype.destroy=function(){this.core.LGel.off(".lg.video"),this.core.LGel.off(".video")},r}();function BO(r){const{href:t,dataSrc:a,dataVideo:l,dataPoster:o,dataIframe:u,dataSubHTML:c,thumbnailURL:d,classNamePrefix:h,style:p,badge:g}=r;let v=l?`${h}__thumbnail-wrapper--video`:"";return d||(v+=` ${h}__thumbnail-wrapper--empty`),S.jsxs("a",{href:t,className:`lightgallery-item ${h}__thumbnail-wrapper ${v}`,"data-src":a,"data-video":l,"data-poster":o,"data-iframe":u||void 0,"data-sub-html":c,style:p,children:[" ",d?S.jsx("img",{src:d,className:`${h}__thumbnail`}):S.jsx(it,{className:"w-100 h-100 d-flex align-items-center justify-content-center",children:S.jsx("span",{className:"material-icons-outlined text-secondary",style:{fontSize:"5em"},children:"description"})}),g?S.jsx(Ii,{className:"light-gallery-item__badge",bg:"secondary",children:g}):null]})}function v1(r){const{hidden:t=!1}=r;return S.jsx(BO,{...r,classNamePrefix:"media-grid",style:{display:t?"none":"inherit"}})}function $O(r){const{items:t,title:a,noGallery:l=!1}=r,u=t.filter(p=>{var g;return(g=p.downloaded)==null?void 0:g.path}).reduce((p,g)=>{var Z,A,j,P;const v=!((Z=g.downloaded)!=null&&Z.mimeType)||g.downloaded.mimeType.startsWith("image/"),x=((j=(A=g.downloaded)==null?void 0:A.mimeType)==null?void 0:j.startsWith("video/"))??!1,E=`/media/${g.id}`,N=v?E:void 0,_=`${E}?t=1`,z=v?E:void 0,H=x?JSON.stringify({source:[{src:E,type:(P=g.downloaded)==null?void 0:P.mimeType}],attributes:{preload:!1,controls:!0,playsInline:!0}}):void 0,G=x?_:void 0,k=a?`<h4>${a}</h4>`:void 0;return(z||H)&&p.push({id:g.id,href:N,dataSrc:z,dataVideo:H,dataPoster:G,dataSubHTML:k,thumbnailURL:_}),p},[]);if(u.length===0)return null;const c=Math.min(u.length,4),d=u.slice(0,c).map(p=>S.jsxs(Ne,{direction:"horizontal",className:"media-grid__item-wrapper justify-content-center overflow-hidden",children:[S.jsx("div",{className:"media-grid__thumbnail-backdrop",style:{background:`url(${p.thumbnailURL})`}}),S.jsx(v1,{...p})]},p.id)),h=S.jsxs("div",{className:`media-grid media-grid--${c}`,children:[d,u.length>4?u.slice(4).map(p=>S.jsx(v1,{...p,hidden:!0})):null,u.length>1?S.jsxs(Ii,{className:"media-grid__badge d-flex align-items-center",children:[S.jsx("span",{className:"material-icons me-2",children:"image"}),u.length]}):null]});return l?h:S.jsx(Am,{speed:500,plugins:[Mm,Nm,Lm],videojs:!0,selector:".lightgallery-item",children:h})}var ap,y1;function s4(){if(y1)return ap;y1=1;function r(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function t(o,u){for(var c="",d=0,h=-1,p=0,g,v=0;v<=o.length;++v){if(v<o.length)g=o.charCodeAt(v);else{if(g===47)break;g=47}if(g===47){if(!(h===v-1||p===1))if(h!==v-1&&p===2){if(c.length<2||d!==2||c.charCodeAt(c.length-1)!==46||c.charCodeAt(c.length-2)!==46){if(c.length>2){var x=c.lastIndexOf("/");if(x!==c.length-1){x===-1?(c="",d=0):(c=c.slice(0,x),d=c.length-1-c.lastIndexOf("/")),h=v,p=0;continue}}else if(c.length===2||c.length===1){c="",d=0,h=v,p=0;continue}}u&&(c.length>0?c+="/..":c="..",d=2)}else c.length>0?c+="/"+o.slice(h+1,v):c=o.slice(h+1,v),d=v-h-1;h=v,p=0}else g===46&&p!==-1?++p:p=-1}return c}function a(o,u){var c=u.dir||u.root,d=u.base||(u.name||"")+(u.ext||"");return c?c===u.root?c+d:c+o+d:d}var l={resolve:function(){for(var u="",c=!1,d,h=arguments.length-1;h>=-1&&!c;h--){var p;h>=0?p=arguments[h]:(d===void 0&&(d=process.cwd()),p=d),r(p),p.length!==0&&(u=p+"/"+u,c=p.charCodeAt(0)===47)}return u=t(u,!c),c?u.length>0?"/"+u:"/":u.length>0?u:"."},normalize:function(u){if(r(u),u.length===0)return".";var c=u.charCodeAt(0)===47,d=u.charCodeAt(u.length-1)===47;return u=t(u,!c),u.length===0&&!c&&(u="."),u.length>0&&d&&(u+="/"),c?"/"+u:u},isAbsolute:function(u){return r(u),u.length>0&&u.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var u,c=0;c<arguments.length;++c){var d=arguments[c];r(d),d.length>0&&(u===void 0?u=d:u+="/"+d)}return u===void 0?".":l.normalize(u)},relative:function(u,c){if(r(u),r(c),u===c||(u=l.resolve(u),c=l.resolve(c),u===c))return"";for(var d=1;d<u.length&&u.charCodeAt(d)===47;++d);for(var h=u.length,p=h-d,g=1;g<c.length&&c.charCodeAt(g)===47;++g);for(var v=c.length,x=v-g,E=p<x?p:x,N=-1,_=0;_<=E;++_){if(_===E){if(x>E){if(c.charCodeAt(g+_)===47)return c.slice(g+_+1);if(_===0)return c.slice(g+_)}else p>E&&(u.charCodeAt(d+_)===47?N=_:_===0&&(N=0));break}var z=u.charCodeAt(d+_),H=c.charCodeAt(g+_);if(z!==H)break;z===47&&(N=_)}var G="";for(_=d+N+1;_<=h;++_)(_===h||u.charCodeAt(_)===47)&&(G.length===0?G+="..":G+="/..");return G.length>0?G+c.slice(g+N):(g+=N,c.charCodeAt(g)===47&&++g,c.slice(g))},_makeLong:function(u){return u},dirname:function(u){if(r(u),u.length===0)return".";for(var c=u.charCodeAt(0),d=c===47,h=-1,p=!0,g=u.length-1;g>=1;--g)if(c=u.charCodeAt(g),c===47){if(!p){h=g;break}}else p=!1;return h===-1?d?"/":".":d&&h===1?"//":u.slice(0,h)},basename:function(u,c){if(c!==void 0&&typeof c!="string")throw new TypeError('"ext" argument must be a string');r(u);var d=0,h=-1,p=!0,g;if(c!==void 0&&c.length>0&&c.length<=u.length){if(c.length===u.length&&c===u)return"";var v=c.length-1,x=-1;for(g=u.length-1;g>=0;--g){var E=u.charCodeAt(g);if(E===47){if(!p){d=g+1;break}}else x===-1&&(p=!1,x=g+1),v>=0&&(E===c.charCodeAt(v)?--v===-1&&(h=g):(v=-1,h=x))}return d===h?h=x:h===-1&&(h=u.length),u.slice(d,h)}else{for(g=u.length-1;g>=0;--g)if(u.charCodeAt(g)===47){if(!p){d=g+1;break}}else h===-1&&(p=!1,h=g+1);return h===-1?"":u.slice(d,h)}},extname:function(u){r(u);for(var c=-1,d=0,h=-1,p=!0,g=0,v=u.length-1;v>=0;--v){var x=u.charCodeAt(v);if(x===47){if(!p){d=v+1;break}continue}h===-1&&(p=!1,h=v+1),x===46?c===-1?c=v:g!==1&&(g=1):c!==-1&&(g=-1)}return c===-1||h===-1||g===0||g===1&&c===h-1&&c===d+1?"":u.slice(c,h)},format:function(u){if(u===null||typeof u!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof u);return a("/",u)},parse:function(u){r(u);var c={root:"",dir:"",base:"",ext:"",name:""};if(u.length===0)return c;var d=u.charCodeAt(0),h=d===47,p;h?(c.root="/",p=1):p=0;for(var g=-1,v=0,x=-1,E=!0,N=u.length-1,_=0;N>=p;--N){if(d=u.charCodeAt(N),d===47){if(!E){v=N+1;break}continue}x===-1&&(E=!1,x=N+1),d===46?g===-1?g=N:_!==1&&(_=1):g!==-1&&(_=-1)}return g===-1||x===-1||_===0||_===1&&g===x-1&&g===v+1?x!==-1&&(v===0&&h?c.base=c.name=u.slice(1,x):c.base=c.name=u.slice(v,x)):(v===0&&h?(c.name=u.slice(1,g),c.base=u.slice(1,x)):(c.name=u.slice(v,g),c.base=u.slice(v,x)),c.ext=u.slice(g,x)),v>0?c.dir=u.slice(0,v-1):h&&(c.dir="/"),c},sep:"/",delimiter:":",win32:null,posix:null};return l.posix=l,ap=l,ap}var u4=s4();const IO=Jn(u4),qO=({children:r,maxHeight:t=480})=>{const[a,l]=w.useState(!1),[o,u]=w.useState(!1),c=w.useRef(null);w.useEffect(()=>{if(c.current){const h=c.current.scrollHeight>t;u(h),h||l(!0)}},[r,t]);const d=w.useCallback(h=>{h.preventDefault(),l(!a)},[a]);return S.jsxs("div",{className:"fade-content",style:{"--fade-content-height":`${t}px`},children:[S.jsxs("div",{className:`fade-content__body ${a?"fade-content__body--expanded":""}`,ref:c,children:[r,!a&&S.jsx("div",{className:"fade-content__overlay"})]}),o&&S.jsx("div",{className:"d-flex w-100 justify-content-center",children:S.jsx("a",{href:"#",className:"fade-content__toggle",onClick:d,dangerouslySetInnerHTML:{__html:a?"&#9650; Show less":"&#9660; Show more"}})})]})};function UO(r){var H,G,k,Z;const{post:t,showCampaign:a=!1,useShowMore:l=!1,contextQS:o}=r,u=er(),c=[];t.video?c.push(t.video):t.embed?c.push(t.embed):t.videoPreview?c.push(t.videoPreview):t.images.length>0?c.push(...t.images):(G=(H=t.coverImage)==null?void 0:H.downloaded)!=null&&G.path?c.push(t.coverImage):(Z=(k=t.thumbnail)==null?void 0:k.downloaded)!=null&&Z.path&&c.push(t.thumbnail);const d=w.useMemo(()=>{const A=t.attachments.reduce((j,P)=>{var F;if((F=P.downloaded)!=null&&F.path){const D=P.filename||IO.parse(P.downloaded.path).base;j.push({title:D,url:`/media/${P.id}`})}return j},[]);if(A.length>0)return S.jsxs("div",{children:[S.jsx("p",{children:"Attachments:"}),S.jsx("ul",{children:A.map(({title:j,url:P})=>S.jsx("li",{children:S.jsx("a",{href:P,children:j})}))})]})},[t]),h=w.useMemo(()=>{var j,P,F,D,T;const A=(P=(j=t.audio)==null?void 0:j.downloaded)!=null&&P.path?t.audio:(D=(F=t.audioPreview)==null?void 0:F.downloaded)!=null&&D.path?t.audioPreview:null;return A?S.jsx("div",{className:"my-4",children:S.jsxs("audio",{controls:!0,className:"w-100 rounded",children:[S.jsx("source",{src:`/media/${A.id}`,type:((T=A.downloaded)==null?void 0:T.mimeType)||""}),"Your browser does not support the audio element."]})}):null},[t]),p=w.useMemo(()=>{const A=new URL(`/posts/${t.id}`,window.location.href);return o&&(A.search=o),u.pathname===A.pathname?t.title:S.jsx(on,{to:A.toString(),children:t.title})},[t,u,o]),g=w.useMemo(()=>{var A,j;if(t.embed&&!((A=t.embed.downloaded)!=null&&A.path)&&t.embed.html&&((j=t.embed.provider)==null?void 0:j.toLowerCase())==="youtube"){const D=new DOMParser().parseFromString(t.embed.html,"text/html").querySelector("iframe"),T=D?D.getAttribute("width"):null,X=D?D.getAttribute("height"):null;let I="";T&&X&&(I=`${T} / ${X}`);const q={width:"100%"};I&&(q.aspectRatio=I);const $=t.embed.provider?`(Embedded from ${t.embed.provider} - not stored locally)`:"(Embedded content - not stored locally)";return S.jsxs("div",{className:"post-card__external-embed-wrapper",children:[S.jsx("div",{className:"post-card__external-embed",style:q,dangerouslySetInnerHTML:{__html:t.embed.html}}),S.jsx("span",{className:"post-card__external-embed-caption",children:$})]})}return null},[t]),x=/class=".*?\s*?lightgallery-item.*?\s*?"/gm.test(t.content||""),E=c.length>0||x,N=t.tags&&t.tags.length>0&&t.campaign&&S.jsx(Ne,{direction:"horizontal",gap:2,className:"mb-3 flex-wrap",children:t.tags.map(A=>{const j=new URL(`/campaigns/${t.campaign.id}/posts`,window.location.href);return j.searchParams.set("filter_tag_id",A.id),S.jsx(Ii,{bg:"secondary",children:S.jsx(on,{to:j.toString(),style:{color:"inherit"},children:A.value})},A.id)})});let _=S.jsxs(Ne,{children:[N,S.jsxs(Ne,{direction:"horizontal",className:"mb-3 justify-content-between gap-4",children:[S.jsx(it.Title,{className:"m-0",children:p}),t.isViewable?null:S.jsx("span",{className:"material-icons text-body-secondary",children:"lock"})]}),S.jsxs(Ne,{direction:"horizontal",className:"mb-3 text-body-secondary",gap:4,children:[t.publishedAt?S.jsx("span",{children:new Date(t.publishedAt).toLocaleString()}):null,t.commentCount>0?S.jsxs(Ne,{direction:"horizontal",gap:2,children:[S.jsx("span",{className:"material-icons",style:{fontSize:"1.2em"},children:"comment"}),S.jsx("span",{children:t.commentCount})]}):null]}),h,S.jsx(it.Text,{className:"post-card__content",dangerouslySetInnerHTML:{__html:t.content||""}}),d]});l&&(_=S.jsx(qO,{children:_}));const z=S.jsxs(it,{className:"post-card",children:[a&&t.campaign&&t.campaign.name?S.jsx(it.Header,{children:S.jsxs(Ne,{direction:"horizontal",gap:3,children:[S.jsx(fa,{mediaId:`campaign:${t.campaign.id}:avatar`,className:"rounded",style:{width:"2.5em",height:"2.5em",objectFit:"cover"}}),S.jsx("span",{children:S.jsx(on,{to:`/campaigns/${t.campaign.id}`,className:"text-body",children:t.campaign.name})})]})}):null,S.jsx($O,{items:c,title:t.title||"",noGallery:!0}),g,S.jsx(it.Body,{children:_})]});return E?S.jsx(Am,{speed:500,plugins:[Mm,Nm,Lm],videojs:!0,selector:".lightgallery-item",children:z}):z}function c4(r){const t=[];for(const[a,l]of r.entries())if(a.startsWith("filter_")){const o=a.substring(7);o&&t.push({searchParam:o,value:l})}return t}function f4(r){const t=[];for(const a of r.sections){const l=a.options.find(u=>u.isDefault),o=(l==null?void 0:l.value)||null;t.push({searchParam:a.searchParam,value:o})}if(r.external)for(const a of r.external)t.push({searchParam:a.searchParam,value:null});return t}function b1(r,t,a){var o;const l=(o=r.options.find(u=>u.searchParam===t.searchParam))==null?void 0:o.value;return l===void 0?!1:l===a.value}const S1=(r,t)=>{if(r&&t){const l=Er(r);for(const o of t){const u=l.options.find(c=>c.searchParam===o.searchParam);u?u.value=o.value:l.options.push({...o})}return Kn(r,l)?r:l}const a=r?{...r,options:t}:{options:t};return Kn(r,a)?r:a};function GO(r){const{options:t,onFilter:a,searchInputBox:l}=r,{settings:o}=Mr(),[u,c]=Oo(),[d,h]=w.useReducer(S1,null),[p,g]=w.useReducer(S1,null),[v,x]=w.useState(!1),E=w.useRef(null);w.useEffect(()=>{if(!t)return;let j=[];j=f4(t),E.current=Er(j);const P=c4(u);for(const F of P){const D=j.find(T=>T.searchParam===F.searchParam);D?D.value=F.value:j.push(F)}h(j),g(j)},[t,u]),w.useEffect(()=>{if(!(l!=null&&l.current))return;const j=l.current;return j.onConfirm(P=>{g([{searchParam:"search",value:P||null}])}),()=>j.onConfirm(null)},[l]),w.useEffect(()=>{var P;const j=E.current;if(!(!p||!j)&&(c(F=>{const D=new URLSearchParams(F);for(const T of p.options){const X=`filter_${T.searchParam}`,I=T.value,q=j.find($=>$.searchParam===T.searchParam);I&&(q===void 0||q.value!==I)?D.set(X,I):D.delete(X)}return D}),l!=null&&l.current)){const F=((P=p.options.find(D=>D.searchParam==="search"))==null?void 0:P.value)||"";l.current.setInput(F)}},[l,p]),w.useEffect(()=>{const j=E.current;p&&j&&a(Er(p))},[p,a]);const N=w.useCallback((j,P,F=!1)=>{if(!d)return;const D=d.options.find(T=>T.searchParam===j.searchParam);if(D){const T=F&&P.value===D.value?null:P.value;D.value!==T&&h([{searchParam:D.searchParam,value:T}])}},[d]),_=w.useCallback(j=>{if(!j.enableCondition||!d)return!1;const{searchParam:P,condition:F,value:D}=j.enableCondition,T=d.options.find(X=>X.searchParam===P);if(T)switch(F){case"is":return T.value===D;case"not":return T.value!==D}},[d]),z=w.useMemo(()=>!d||!t?null:t.sections.map(j=>{let P;switch(j.displayHint){case"list":{const X=j.options.map(I=>S.jsx(Mt.Check,{type:"radio",id:`filter-select-${j.searchParam}:${I.value}`,name:j.searchParam,label:I.title,checked:b1(d,j,I),onClick:()=>N(j,I)},`${j.searchParam}:${I.value}`));P=S.jsxs(Ne,{gap:2,children:[...X]});break}case"pill":case"pill_small":{const X=o.theme.toLowerCase()==="vapor"?"outline-secondary":"outline-primary",I=j.displayHint==="pill_small"?"sm":void 0,q=j.options.map($=>S.jsx("div",{children:S.jsx(_O,{type:"checkbox",size:I,id:`filter-select-${j.searchParam}:${$.value}`,checked:b1(d,j,$),value:$.value||"",variant:X,onChange:()=>N(j,$,!0),children:$.title},`${j.searchParam}:${$.value}`)}));P=S.jsxs(Ne,{direction:"horizontal",gap:2,className:"flex-wrap",children:[...q]});break}}const F=j.title?S.jsx("h5",{style:{paddingBottom:"0.5em"},children:j.title}):null,D=j.title?"":"py-4 border-top border-bottom",T=_(j)?"filter-modal__section--hidden":"";return S.jsx("div",{className:`filter-modal__section ${T}`,children:S.jsxs(Ne,{className:D,children:[F,P]})},`filter-modal-section-${j.searchParam}`)}),[d,t,N,_,o.theme]),H=w.useCallback(()=>{x(!0)},[]),G=w.useCallback(()=>{x(!1),p&&h(p.options)},[p]),k=w.useCallback(()=>{const j=E.current;if(!d||!j)return;const P=Er(d.options);for(const F of d.options){const D=j.find(X=>X.searchParam===F.searchParam),T=t.sections.find(X=>X.searchParam===F.searchParam);if(T&&_(T)&&D){const X=P.find(I=>I.searchParam===F.searchParam);X&&(X.value=D.value)}}g(P),x(!1)},[d,c,t,_]),Z=w.useCallback(()=>{const j=E.current;j&&(c(P=>{const F=new URLSearchParams(P);for(const D of j){const T=`filter_${D.searchParam}`;F.delete(T)}return F}),h(j),g(j)),x(!1)},[c]);if(!z)return null;const A=p&&E.current?!Kn(p.options,E.current):!1;return S.jsxs(Ne,{direction:"horizontal",gap:2,children:[S.jsx(Qt,{className:"filter-modal-button filter-modal-button--show",variant:A?"primary":"outline-primary",onClick:H,children:"Filters"}),A?S.jsx(Qt,{className:"filter-modal-button filter-modal-button--clear",variant:"secondary",onClick:Z,children:"Clear filters"}):null,S.jsxs(Ha,{show:v,onHide:G,centered:!0,scrollable:!0,children:[S.jsx(Ha.Header,{closeButton:!0}),S.jsx(Ha.Body,{children:S.jsxs(Ne,{children:[...z]})}),S.jsxs(Ha.Footer,{className:"justify-content-between",children:[S.jsx(Qt,{variant:"secondary",onClick:Z,children:"Clear all"}),S.jsx(Qt,{variant:"primary",onClick:k,children:"Apply"})]})]})]})}const ip=160,lp=0,w1=8;function d4(r){const{fixed:t}=r;return S.jsx(BO,{...r,classNamePrefix:"media-gallery",style:{flexGrow:t?"0":void 0}})}function qp(r){const{items:t}=r,a=w.useRef(null),[l,o]=w.useState(null);w.useEffect(()=>{const d=new ResizeObserver(h=>{const{width:p}=h[0].contentRect;o(p)});return a.current&&d.observe(a.current),()=>d.disconnect()},[]);const u=w.useMemo(()=>{var v,x;if(!l)return null;const d=[[]];let h=0,p=0;const g=[...t];for(;g.length>0;){const E=g.shift();if(!E)continue;let N=0;if((v=E.thumbnail)!=null&&v.width&&((x=E.thumbnail)!=null&&x.height)){const z=ip/E.thumbnail.height*E.thumbnail.width;N=lp+z}else N=lp+ip;let _=d[h].length>0?w1:0;d[h].length>0&&p+_+N>l&&(h++,p=0,_=0,d.push([])),d[h].push(E),p+=_+N}return d},[t,l]),c=w.useMemo(()=>u?u.reduce((d,h,p)=>(d.push(...h.reduce((g,v)=>{var F,D,T,X,I,q,$;const x=`/media/${v.id}`;let E;if(v.thumbnail)E=`${x}?t=1`;else if(v.source.type==="post")(D=(F=v.source.thumbnail)==null?void 0:F.downloaded)!=null&&D.path?E=`/media/post:${v.source.id}:thumbnail`:(X=(T=v.source.coverImage)==null?void 0:T.downloaded)!=null&&X.path&&(E=`/media/post:${v.source.id}:cover`);else if(v.source.type==="product"){const U=v.source.previewMedia.find(L=>{var b,te;return L.type==="image"&&((te=(b=L.downloaded)==null?void 0:b.thumbnail)==null?void 0:te.path)})||v.source.contentMedia.find(L=>{var b,te;return L.type==="image"&&((te=(b=L.downloaded)==null?void 0:b.thumbnail)==null?void 0:te.path)});U&&(E=`/media/${U.id}`)}const N=!v.mimeType||v.mimeType.startsWith("image/"),_=((I=v.mimeType)==null?void 0:I.startsWith("video/"))??!1,z=((q=v.mimeType)==null?void 0:q.startsWith("audio/"))??!1,H=(($=v.mimeType)==null?void 0:$.toLowerCase())==="application/pdf",G=N||H?x:void 0,k=N?x:void 0,Z=_||z?JSON.stringify({source:[{src:x,type:v.mimeType}],attributes:{preload:!1,controls:!0,playsInline:!0}}):void 0,A=_||z?E:void 0,j=v.source.type==="post"?v.source.title:v.source.name,P=j?`<h4><a class="media-gallery__source-link" href="/posts/${v.source.id}">${j}</a></h4>`:void 0;return(k||Z||H)&&g.push({id:v.id,href:G,dataSrc:k,dataVideo:Z,dataPoster:A,dataIframe:H,dataSubHTML:P,thumbnailURL:E,fixed:p===u.length-1,badge:H?"PDF":void 0}),g},[])),d),[]):null,[u]);return S.jsx(Am,{speed:500,plugins:[Mm,Nm,Lm],selector:".lightgallery-item",children:S.jsx("div",{ref:a,className:"w-100 media-gallery mb-4",style:{"--media-gallery-row-height":`${ip}px`,"--media-gallery-gap":`${w1}px`,"--media-gallery-thumbnail-border":`${lp}px`},children:c?c.map(d=>S.jsx(d4,{...d},`media-gallery-item-${d.id}`)):null})})}const op={Post:"post",Collection:"collection"},h4=["image","video","videoEmbed","audio"],VO=r=>{var t,a,l;return((t=r.downloaded)==null?void 0:t.path)&&(h4.includes(r.type)||((l=(a=r.downloaded)==null?void 0:a.mimeType)==null?void 0:l.toLowerCase())==="application/pdf")};function x1(r){return r.filter(t=>VO(t))}function O1(r){return r.filter(t=>!VO(t))}function T1(r,t){return r.reduce((a,l)=>{var c,d,h,p;const o=l.type==="image"?"image":l.type==="audio"?"audio":["video","videoEmbed"].includes(l.type)?"video":((c=l.downloaded)==null?void 0:c.mimeType)==="application/pdf"?"pdf":null,u=(h=(d=l.downloaded)==null?void 0:d.thumbnail)!=null&&h.path?{path:l.downloaded.thumbnail.path,width:l.downloaded.thumbnail.width??null,height:l.downloaded.thumbnail.height??null}:null;return o&&a.push({id:l.id,mediaType:o,mimeType:((p=l.downloaded)==null?void 0:p.mimeType)||null,source:t,thumbnail:u}),a},[])}function WO(r){const{product:t,variant:a="full",showCampaign:l=!1}=r,o=er(),u=w.useMemo(()=>({content:x1(t.contentMedia),preview:x1(t.previewMedia)}),[t]),c=w.useMemo(()=>({content:O1(t.contentMedia),preview:O1(t.previewMedia)}),[t]),d=w.useMemo(()=>u.preview.find(_=>_.type==="image")||null,[u]),h=w.useMemo(()=>d?S.jsx($O,{items:[d],title:t.name||""}):null,[d,t]),p=w.useCallback(_=>{const z=_.reduce((H,G)=>{var k;if((k=G.downloaded)!=null&&k.path){const Z=Ip.getProperty(G,"filename")||IO.parse(G.downloaded.path).base;H.push({title:Z,url:`/media/${G.id}`})}return H},[]);return z.length>0?S.jsxs("div",{children:[S.jsx("p",{children:"Files:"}),S.jsx("ul",{children:z.map(({title:H,url:G})=>S.jsx("li",{children:S.jsx("a",{href:G,children:H})}))})]}):null},[]),g=w.useMemo(()=>{if(a==="compact")return null;const _=d?u.preview.filter(G=>G.id!==d.id):[...u.preview],z=_.length>0?S.jsx(qp,{items:T1(_,t)}):null,H=p(c.preview);return z||H?S.jsxs(Ne,{gap:3,children:[z,H]}):null},[t,a,u,d,c,p]),v=w.useMemo(()=>{if(a==="compact")return null;const _=u.content.length>0?S.jsx(qp,{items:T1(u.content,t)}):null,z=p(c.content);return _||z?S.jsxs(Ne,{gap:3,children:[_,z]}):null},[t,a,u,c,p]),x=w.useMemo(()=>{let _=null;return g&&v?_=S.jsxs(eu.Container,{defaultActiveKey:"purchased",children:[S.jsx(vt,{className:"m-0 mb-4",children:S.jsx(lt,{className:"p-0",children:S.jsxs(Gl,{className:"product-card__media-nav",children:[S.jsx(Gl.Item,{children:S.jsx(Gl.Link,{className:"product-card__media-nav-link",eventKey:"purchased",children:"Purchased media"})}),S.jsx(Gl.Item,{children:S.jsx(Gl.Link,{className:"product-card__media-nav-link",eventKey:"preview",children:"Preview media"})})]})})}),S.jsx(vt,{children:S.jsxs(eu.Content,{className:"py-0 m-0 border-0",children:[S.jsx(eu.Pane,{eventKey:"purchased",children:v}),S.jsx(eu.Pane,{eventKey:"preview",children:g})]})})]}):_=v||g,_?S.jsx("div",{className:"mt-4",children:_}):null},[g,v]),E=w.useMemo(()=>!l||!t.campaign||!t.campaign.name?null:S.jsx(it.Header,{children:S.jsxs(Ne,{direction:"horizontal",gap:3,children:[S.jsx(fa,{mediaId:`campaign:${t.campaign.id}:avatar`,className:"rounded",style:{width:"2.5em",height:"2.5em",objectFit:"cover"}}),S.jsx("span",{children:S.jsx(on,{to:`/campaigns/${t.campaign.id}`,className:"text-body",children:t.campaign.name})})]})}),[t,l]),N=w.useMemo(()=>{let _;return t.productType===op.Post&&t.referencedEntityId?_=new URL(`/posts/${t.referencedEntityId}`,window.location.href):t.productType===op.Collection&&t.referencedEntityId?_=new URL(`/collections/${t.referencedEntityId}`,window.location.href):_=new URL(`/products/${t.id}`,window.location.href),o.pathname===_.pathname?t.name:S.jsx(on,{to:_.toString(),children:t.name})},[t,o]);return S.jsxs(it,{className:`product-card product-card--${a}`,children:[E,h,S.jsxs(it.Body,{className:"d-flex flex-column",children:[S.jsx("div",{children:t.productType===op.Collection&&S.jsx(Ii,{bg:"secondary",children:"Collection"})}),S.jsxs(Ne,{children:[S.jsxs(Ne,{direction:"horizontal",className:"mb-3 justify-content-between gap-4",children:[S.jsx(it.Title,{className:"m-0 product-card__title",children:N}),t.isAccessible?null:S.jsx("span",{className:"material-icons text-body-secondary",children:"lock"})]}),S.jsxs(Ne,{direction:"horizontal",className:"mb-3 text-body-secondary justify-content-between",gap:4,children:[t.publishedAt?S.jsx("span",{children:new Date(t.publishedAt).toLocaleString()}):null,t.price?S.jsx("span",{children:t.price}):null]}),S.jsx(it.Text,{className:"product-card__description",dangerouslySetInnerHTML:{__html:t.description||""}})]}),x]})]})}const E1=300,Fl=16;function p4(r){const{products:t}=r,a=w.useRef(null),[l,o]=w.useState(null);w.useEffect(()=>{const h=new ResizeObserver(p=>{const{width:g}=p[0].contentRect;o(g)});return a.current&&h.observe(a.current),()=>h.disconnect()},[]);const u=w.useMemo(()=>{if(!l)return{cardWidth:E1,lastRowFirstItemIndex:0};const h=Math.floor((l+Fl)/(E1+Fl)),p=((l+Fl)/h-Fl).toFixed(2),g=Math.floor((t.length-1)/h)*h;return{cardWidth:p,lastRowFirstItemIndex:g}},[l]),{cardWidth:c,lastRowFirstItemIndex:d}=u;return S.jsx("div",{ref:a,className:"product-list mb-4",style:{"--card-width":`${c}px`,"--gap":`${Fl}px`},children:t.map((h,p)=>S.jsx("div",{className:`product-list__card-wrapper ${p>=d?"product-list__card-wrapper--fixed":""}`,children:S.jsx(WO,{product:h,variant:"compact"},`product-card-${h.id}`)}))})}const YO=w.forwardRef((r,t)=>{const[a,l]=w.useState(()=>r.onConfirm||null),[o,u]=w.useState(""),c=w.useCallback(p=>{u(p.target.value)},[]),d=w.useCallback(()=>{a&&a(o)},[o,a]),h=w.useCallback(p=>{p.key==="Enter"&&d()},[d]);return w.useImperativeHandle(t,()=>({onConfirm:p=>{l(()=>p)},setInput:p=>{u(p)}})),S.jsxs(Wx,{className:"me-2",children:[S.jsx(Mt.Control,{type:"search",placeholder:r.placeholder,value:o,onChange:c,onKeyDown:h}),S.jsx(Qt,{className:"d-flex align-items-center",variant:"primary",onClick:d,children:S.jsx("span",{className:"material-icons",children:"search"})})]})});function m4(r){return{filter:null,page:null,itemsPerPage:r.listItemsPerPage}}const g4=(r,t)=>{const a=Er(r);return t.filter!==void 0&&(a.filter=t.filter),t.page!==void 0&&(a.page=t.page),t.itemsPerPage!==void 0&&(a.itemsPerPage=t.itemsPerPage),Kn(a,r)?r:a};function sp(r){var y,C,W,J,B,Q;const{type:t,collection:a}=r,{id:l}=jr(),[o,u]=w.useState(""),[c,d]=w.useState(a?null:l),h=a?l:null,{api:p}=_n(),{setTitle:g}=Do(),{settings:v}=Mr(),{scrollTo:x}=No(),[E,N]=w.useReducer(g4,m4(v)),[_,z]=w.useState(null),[H,G]=w.useState(null),[k,Z]=w.useState(null),[A,j]=w.useState(null),[P,F]=Oo(),D=ow(),T=w.useRef(!0),X=w.useRef(null);let I,q;switch(t){case"post":I={singular:"post",plural:"posts"},q="Search posts";break;case"product":default:I={singular:"product",plural:"products"},q="Search products";break}if(t==="post"&&a){const V=" in collection";I.singular+=V,I.plural+=V,q+=V}const $=[],U=(W=(C=(y=E.filter)==null?void 0:y.options.find(V=>V.searchParam==="search"))==null?void 0:C.value)==null?void 0:W.trim();U&&$.push(`with "${U}"`);const L=(Q=(B=(J=E.filter)==null?void 0:J.options.find(V=>V.searchParam==="tag_id"))==null?void 0:B.value)==null?void 0:Q.trim();if(L){let V=L;L.startsWith("user_defined;")&&(V=L.substring(13)),V&&$.push(`tagged "${V}"`)}if($.length>0){const V=$.join(" and ");I.singular+=` ${V}`,I.plural+=` ${V}`}w.useEffect(()=>{if(!h){G(null);return}const V=new AbortController;return(async()=>{const{collection:ne,campaignId:ue}=await p.getCollection(h);V.signal.aborted||(G(ne),d(ue))})(),()=>V.abort()},[p,h]),w.useEffect(()=>{if(!c){j(null);return}j(null);const V=new AbortController;return(async()=>{const ne=await p.getContentFilterOptions(c,t);V.signal.aborted||j(ne)})(),()=>V.abort()},[p,c,t]),w.useEffect(()=>{const V=[];a&&H&&(H.title&&V.push(H.title),_!=null&&_.name&&V.push(`Collection from ${_.name}`),H.numPosts!==null&&V.push(`${H.numPosts} posts`),g(V.join(" | ")))},[g,a,H,_]);const b=w.useCallback((V,ne=!1)=>{F(()=>{const ue=new URLSearchParams(window.location.search);return ue.set("p",String(V)),ue},{replace:ne})},[]);w.useEffect(()=>{D===Gp.Pop&&(T.current=!0)},[D]),w.useEffect(()=>{if(!c){z(null);return}const V=new AbortController;return(async()=>{const ne=await p.getCampaign({id:c});V.signal.aborted||z(ne)})(),()=>V.abort()},[p,c]),w.useEffect(()=>{const{filter:V,page:ne}=E;if(!_||!V||ne===null||a&&!H){Z(null);return}const ue=new AbortController;return(async()=>{const me=await p.getContentList({campaign:_,type:t,...E,collectionId:H==null?void 0:H.id,filter:V,page:ne});ue.signal.aborted||Z(me)})(),()=>ue.abort()},[p,_,t,a,H,E]),w.useEffect(()=>{const V=Number(P.get("p"))||1;N({page:V}),x(0,0)},[P,x]);const te=w.useCallback(V=>{T.current?(T.current=!1,N({filter:V})):N({filter:V,page:1})},[]);w.useEffect(()=>{N({itemsPerPage:v.listItemsPerPage})},[v.listItemsPerPage]),w.useEffect(()=>{k&&k.items.length===0&&k.total>0&&b(1,!0)},[k,b]),w.useEffect(()=>{if(E.page===null)return;const V=new URLSearchParams(window.location.search);(Number(V.get("p"))||1)!==E.page&&b(E.page,!0)},[E,b]),w.useEffect(()=>{if(a&&!H){u("");return}const V=E.filter,ne=new URLSearchParams,ue=a?H==null?void 0:H.id:void 0;if(ue&&ne.set("collection_id",ue),V)for(const{searchParam:me,value:he}of V.options)he&&ne.set(me,he);u(ne.toString())},[E.filter,a,H]);const R=w.useMemo(()=>!k||k.items.length===0?null:k.items.every(V=>V.type==="post")?S.jsx(Ne,{className:"mb-4",gap:4,children:k.items.map(V=>S.jsx(UO,{post:V,useShowMore:!0,contextQS:o},`post-card-${V.id}`))}):k.items.every(V=>V.type==="product")?S.jsx(p4,{products:k.items}):null,[k,o]);if(!(!_||!A))return S.jsxs("div",{className:`campaign-content campaign-content--${t} mw-${v.maxContentWidth.toLowerCase()}`,children:[S.jsxs(On,{fluid:!0,className:"p-0",children:[S.jsx(vt,{className:"mb-3 g-0 align-items-center",children:S.jsxs(lt,{className:"w-auto d-flex justify-content-end",children:[S.jsx(YO,{ref:X,placeholder:q}),S.jsx(GO,{options:A,onFilter:te,searchInputBox:X})]})}),S.jsx(vt,{className:"mb-2 g-0",children:k&&k.items.length>0&&E.page?S.jsx(Au,{total:k.total,page:E.page,itemsPerPage:E.itemsPerPage,subject:I}):null})]}),R,k&&k.items.length===0?S.jsx(it,{className:"my-4",style:{height:"10em"},children:S.jsxs(it.Body,{className:"d-flex justify-content-center align-items-center",children:["No ",t==="post"?"posts":"products"]})}):null,k?S.jsx(Mu,{totalItems:k.total,itemsPerPage:E.itemsPerPage,onChange:b}):null]})}function XO(r){var p,g;const{campaign:t}=r,a=(p=t.coverPhoto.downloaded)!=null&&p.path?t.coverPhoto.id:null,l=(g=t.avatarImage.downloaded)!=null&&g.path?t.avatarImage.id:null,o=w.useMemo(()=>{const v=[];return t.postCount>0&&v.push({title:"Posts",url:`/campaigns/${t.id}/posts`}),t.collectionCount>0&&v.push({title:"Collections",url:`/campaigns/${t.id}/collections`}),t.productCount>0&&v.push({title:"Shop",url:`/campaigns/${t.id}/shop`}),t.mediaCount>0&&v.push({title:"Media",url:`/campaigns/${t.id}/media`}),v.push({title:"About",url:`/campaigns/${t.id}/about`}),S.jsx(Ne,{direction:"horizontal",className:"campaign-header__nav justify-content-center mb-5",gap:4,children:v.map(({title:x,url:E})=>S.jsx(ou,{to:E,children:x}))})},[t]),u=w.useMemo(()=>a?S.jsx("div",{className:"w-100",children:S.jsx(fa,{className:"campaign-header__cover",mediaId:a})}):null,[a]),c=w.useMemo(()=>l?S.jsx("div",{className:"mb-2",children:S.jsx(fa,{className:"campaign-header__avatar rounded",mediaId:l})}):null,[l]),d=w.useMemo(()=>{const v=AO.getCampaignCreationName(t);return S.jsxs(Ne,{className:"w-100 px-3 align-items-center",children:[S.jsx("h3",{children:t.name}),v?S.jsx("div",{className:"text-body-secondary",children:v}):null]})},[t]),h=w.useMemo(()=>u&&c?S.jsxs(Ne,{className:"w-100 align-items-center",style:{marginBottom:"-2em"},children:[u,S.jsxs(Ne,{className:"align-items-center",style:{transform:"translateY(-4em)"},children:[c,d]})]}):u?S.jsxs(S.Fragment,{children:[u,S.jsx(Ne,{className:"align-items-center my-4",children:d})]}):c?S.jsxs(Ne,{className:"w-100 align-items-center my-4",children:[c,d]}):S.jsx(Ne,{className:"w-100 align-items-center my-4",children:d}),[u,c,d]);return S.jsxs(S.Fragment,{children:[h,o]})}function v4(){const{id:r}=jr();if(!r)return null;const{api:t}=_n(),{setTitle:a}=Do(),[l,o]=w.useState(null);return w.useEffect(()=>{const u=new AbortController;return(async()=>{const c=await t.getCampaign({id:r,withCounts:!0});u.signal.aborted||o(c)})(),()=>u.abort()},[t,r]),w.useEffect(()=>{a((l==null?void 0:l.name)||null)},[a,l]),l?S.jsxs(On,{fluid:!0,className:"p-0",children:[S.jsx(vt,{className:"g-0",children:S.jsx(lt,{children:S.jsx(XO,{campaign:l})})}),S.jsx(vt,{className:"justify-content-center g-0",children:S.jsx(lt,{lg:8,md:10,sm:12,className:"px-3 px-md-0 d-flex flex-column align-items-center justify-content-center",children:S.jsx(Fp,{})})})]}):null}function C1(r){var a,l;const{reward:t}=r;return S.jsx(it,{className:"reward-card mb-3",children:S.jsxs(it.Body,{className:"d-flex flex-column p-0",children:[(l=(a=t.image)==null?void 0:a.downloaded)!=null&&l.path?S.jsx(it.Img,{className:"reward-card__image",src:`/media/reward:${t.id}:image`}):null,S.jsxs(Ne,{className:"flex-fill px-3 py-2",children:[S.jsxs(Ne,{direction:"horizontal",className:"my-3 justify-content-between",children:[S.jsx("div",{className:"reward-card__title",children:t.title}),S.jsx("div",{children:t.amount||""})]}),S.jsx("div",{className:"reward-card__content w-100",dangerouslySetInnerHTML:{__html:t.description||""}})]})]})})}var up={},cp={},Ql={},fp={},R1;function y4(){return R1||(R1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};r.default=t}(fp)),fp}var dp,_1;function b4(){if(_1)return dp;_1=1;var r="Expected a function",t=NaN,a="[object Symbol]",l=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt,h=typeof xr=="object"&&xr&&xr.Object===Object&&xr,p=typeof self=="object"&&self&&self.Object===Object&&self,g=h||p||Function("return this")(),v=Object.prototype,x=v.toString,E=Math.max,N=Math.min,_=function(){return g.Date.now()};function z(A,j,P){var F,D,T,X,I,q,$=0,U=!1,L=!1,b=!0;if(typeof A!="function")throw new TypeError(r);j=Z(j)||0,H(P)&&(U=!!P.leading,L="maxWait"in P,T=L?E(Z(P.maxWait)||0,j):T,b="trailing"in P?!!P.trailing:b);function te(ne){var ue=F,me=D;return F=D=void 0,$=ne,X=A.apply(me,ue),X}function R(ne){return $=ne,I=setTimeout(W,j),U?te(ne):X}function y(ne){var ue=ne-q,me=ne-$,he=j-ue;return L?N(he,T-me):he}function C(ne){var ue=ne-q,me=ne-$;return q===void 0||ue>=j||ue<0||L&&me>=T}function W(){var ne=_();if(C(ne))return J(ne);I=setTimeout(W,y(ne))}function J(ne){return I=void 0,b&&F?te(ne):(F=D=void 0,X)}function B(){I!==void 0&&clearTimeout(I),$=0,F=q=D=I=void 0}function Q(){return I===void 0?X:J(_())}function V(){var ne=_(),ue=C(ne);if(F=arguments,D=this,q=ne,ue){if(I===void 0)return R(q);if(L)return I=setTimeout(W,j),te(q)}return I===void 0&&(I=setTimeout(W,j)),X}return V.cancel=B,V.flush=Q,V}function H(A){var j=typeof A;return!!A&&(j=="object"||j=="function")}function G(A){return!!A&&typeof A=="object"}function k(A){return typeof A=="symbol"||G(A)&&x.call(A)==a}function Z(A){if(typeof A=="number")return A;if(k(A))return t;if(H(A)){var j=typeof A.valueOf=="function"?A.valueOf():A;A=H(j)?j+"":j}if(typeof A!="string")return A===0?A:+A;A=A.replace(l,"");var P=u.test(A);return P||c.test(A)?d(A.slice(2),P?2:8):o.test(A)?t:+A}return dp=z,dp}var we={},hp={},j1;function FO(){return j1||(j1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t=a(Cn());function a(o){return o&&o.__esModule?o:{default:o}}var l={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(u){return t.default.createElement("ul",{style:{display:"block"}},u)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(u){return t.default.createElement("button",null,u+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null,unslick:!1};r.default=l}(hp)),hp}var A1;function Lo(){if(A1)return we;A1=1,Object.defineProperty(we,"__esModule",{value:!0}),we.checkSpecKeys=we.checkNavigable=we.changeSlide=we.canUseDOM=we.canGoNext=void 0,we.clamp=p,we.extractObject=void 0,we.filterSettings=te,we.validSettings=we.swipeStart=we.swipeMove=we.swipeEnd=we.slidesOnRight=we.slidesOnLeft=we.slideHandler=we.siblingDirection=we.safePreventDefault=we.lazyStartIndex=we.lazySlidesOnRight=we.lazySlidesOnLeft=we.lazyEndIndex=we.keyHandler=we.initializedState=we.getWidth=we.getTrackLeft=we.getTrackCSS=we.getTrackAnimateCSS=we.getTotalSlides=we.getSwipeDirection=we.getSlideCount=we.getRequiredLazySlides=we.getPreClones=we.getPostClones=we.getOnDemandLazySlides=we.getNavigableIndexes=we.getHeight=void 0;var r=a(Cn()),t=a(FO());function a(R){return R&&R.__esModule?R:{default:R}}function l(R){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},l(R)}function o(R,y){var C=Object.keys(R);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(R);y&&(W=W.filter(function(J){return Object.getOwnPropertyDescriptor(R,J).enumerable})),C.push.apply(C,W)}return C}function u(R){for(var y=1;y<arguments.length;y++){var C=arguments[y]!=null?arguments[y]:{};y%2?o(Object(C),!0).forEach(function(W){c(R,W,C[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(C)):o(Object(C)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(C,W))})}return R}function c(R,y,C){return y=d(y),y in R?Object.defineProperty(R,y,{value:C,enumerable:!0,configurable:!0,writable:!0}):R[y]=C,R}function d(R){var y=h(R,"string");return l(y)=="symbol"?y:String(y)}function h(R,y){if(l(R)!="object"||!R)return R;var C=R[Symbol.toPrimitive];if(C!==void 0){var W=C.call(R,y);if(l(W)!="object")return W;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(R)}function p(R,y,C){return Math.max(y,Math.min(R,C))}var g=we.safePreventDefault=function(y){var C=["onTouchStart","onTouchMove","onWheel"];C.includes(y._reactName)||y.preventDefault()},v=we.getOnDemandLazySlides=function(y){for(var C=[],W=x(y),J=E(y),B=W;B<J;B++)y.lazyLoadedList.indexOf(B)<0&&C.push(B);return C};we.getRequiredLazySlides=function(y){for(var C=[],W=x(y),J=E(y),B=W;B<J;B++)C.push(B);return C};var x=we.lazyStartIndex=function(y){return y.currentSlide-N(y)},E=we.lazyEndIndex=function(y){return y.currentSlide+_(y)},N=we.lazySlidesOnLeft=function(y){return y.centerMode?Math.floor(y.slidesToShow/2)+(parseInt(y.centerPadding)>0?1:0):0},_=we.lazySlidesOnRight=function(y){return y.centerMode?Math.floor((y.slidesToShow-1)/2)+1+(parseInt(y.centerPadding)>0?1:0):y.slidesToShow},z=we.getWidth=function(y){return y&&y.offsetWidth||0},H=we.getHeight=function(y){return y&&y.offsetHeight||0},G=we.getSwipeDirection=function(y){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,W,J,B,Q;return W=y.startX-y.curX,J=y.startY-y.curY,B=Math.atan2(J,W),Q=Math.round(B*180/Math.PI),Q<0&&(Q=360-Math.abs(Q)),Q<=45&&Q>=0||Q<=360&&Q>=315?"left":Q>=135&&Q<=225?"right":C===!0?Q>=35&&Q<=135?"up":"down":"vertical"},k=we.canGoNext=function(y){var C=!0;return y.infinite||(y.centerMode&&y.currentSlide>=y.slideCount-1||y.slideCount<=y.slidesToShow||y.currentSlide>=y.slideCount-y.slidesToShow)&&(C=!1),C};we.extractObject=function(y,C){var W={};return C.forEach(function(J){return W[J]=y[J]}),W},we.initializedState=function(y){var C=r.default.Children.count(y.children),W=y.listRef,J=Math.ceil(z(W)),B=y.trackRef&&y.trackRef.node,Q=Math.ceil(z(B)),V;if(y.vertical)V=J;else{var ne=y.centerMode&&parseInt(y.centerPadding)*2;typeof y.centerPadding=="string"&&y.centerPadding.slice(-1)==="%"&&(ne*=J/100),V=Math.ceil((J-ne)/y.slidesToShow)}var ue=W&&H(W.querySelector('[data-index="0"]')),me=ue*y.slidesToShow,he=y.currentSlide===void 0?y.initialSlide:y.currentSlide;y.rtl&&y.currentSlide===void 0&&(he=C-1-y.initialSlide);var ve=y.lazyLoadedList||[],pe=v(u(u({},y),{},{currentSlide:he,lazyLoadedList:ve}));ve=ve.concat(pe);var ge={slideCount:C,slideWidth:V,listWidth:J,trackWidth:Q,currentSlide:he,slideHeight:ue,listHeight:me,lazyLoadedList:ve};return y.autoplaying===null&&y.autoplay&&(ge.autoplaying="playing"),ge},we.slideHandler=function(y){var C=y.waitForAnimate,W=y.animating,J=y.fade,B=y.infinite,Q=y.index,V=y.slideCount,ne=y.lazyLoad,ue=y.currentSlide,me=y.centerMode,he=y.slidesToScroll,ve=y.slidesToShow,pe=y.useCSS,ge=y.lazyLoadedList;if(C&&W)return{};var Se=Q,ye,Re,be,Le={},Pe={},Ee=B?Q:p(Q,0,V-1);if(J){if(!B&&(Q<0||Q>=V))return{};Q<0?Se=Q+V:Q>=V&&(Se=Q-V),ne&&ge.indexOf(Se)<0&&(ge=ge.concat(Se)),Le={animating:!0,currentSlide:Se,lazyLoadedList:ge,targetSlide:Se},Pe={animating:!1,targetSlide:Se}}else ye=Se,Se<0?(ye=Se+V,B?V%he!==0&&(ye=V-V%he):ye=0):!k(y)&&Se>ue?Se=ye=ue:me&&Se>=V?(Se=B?V:V-1,ye=B?0:V-1):Se>=V&&(ye=Se-V,B?V%he!==0&&(ye=0):ye=V-ve),!B&&Se+ve>=V&&(ye=V-ve),Re=T(u(u({},y),{},{slideIndex:Se})),be=T(u(u({},y),{},{slideIndex:ye})),B||(Re===be&&(Se=ye),Re=be),ne&&(ge=ge.concat(v(u(u({},y),{},{currentSlide:Se})))),pe?(Le={animating:!0,currentSlide:ye,trackStyle:D(u(u({},y),{},{left:Re})),lazyLoadedList:ge,targetSlide:Ee},Pe={animating:!1,currentSlide:ye,trackStyle:F(u(u({},y),{},{left:be})),swipeLeft:null,targetSlide:Ee}):Le={currentSlide:ye,trackStyle:F(u(u({},y),{},{left:be})),lazyLoadedList:ge,targetSlide:Ee};return{state:Le,nextState:Pe}},we.changeSlide=function(y,C){var W,J,B,Q,V,ne=y.slidesToScroll,ue=y.slidesToShow,me=y.slideCount,he=y.currentSlide,ve=y.targetSlide,pe=y.lazyLoad,ge=y.infinite;if(Q=me%ne!==0,W=Q?0:(me-he)%ne,C.message==="previous")B=W===0?ne:ue-W,V=he-B,pe&&!ge&&(J=he-B,V=J===-1?me-1:J),ge||(V=ve-ne);else if(C.message==="next")B=W===0?ne:W,V=he+B,pe&&!ge&&(V=(he+ne)%me+W),ge||(V=ve+ne);else if(C.message==="dots")V=C.index*C.slidesToScroll;else if(C.message==="children"){if(V=C.index,ge){var Se=$(u(u({},y),{},{targetSlide:V}));V>C.currentSlide&&Se==="left"?V=V-me:V<C.currentSlide&&Se==="right"&&(V=V+me)}}else C.message==="index"&&(V=Number(C.index));return V},we.keyHandler=function(y,C,W){return y.target.tagName.match("TEXTAREA|INPUT|SELECT")||!C?"":y.keyCode===37?W?"next":"previous":y.keyCode===39?W?"previous":"next":""},we.swipeStart=function(y,C,W){return y.target.tagName==="IMG"&&g(y),!C||!W&&y.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:y.touches?y.touches[0].pageX:y.clientX,startY:y.touches?y.touches[0].pageY:y.clientY,curX:y.touches?y.touches[0].pageX:y.clientX,curY:y.touches?y.touches[0].pageY:y.clientY}}},we.swipeMove=function(y,C){var W=C.scrolling,J=C.animating,B=C.vertical,Q=C.swipeToSlide,V=C.verticalSwiping,ne=C.rtl,ue=C.currentSlide,me=C.edgeFriction,he=C.edgeDragged,ve=C.onEdge,pe=C.swiped,ge=C.swiping,Se=C.slideCount,ye=C.slidesToScroll,Re=C.infinite,be=C.touchObject,Le=C.swipeEvent,Pe=C.listHeight,Ee=C.listWidth;if(!W){if(J)return g(y);B&&Q&&V&&g(y);var ke,ot={},ft=T(C);be.curX=y.touches?y.touches[0].pageX:y.clientX,be.curY=y.touches?y.touches[0].pageY:y.clientY,be.swipeLength=Math.round(Math.sqrt(Math.pow(be.curX-be.startX,2)));var yt=Math.round(Math.sqrt(Math.pow(be.curY-be.startY,2)));if(!V&&!ge&&yt>10)return{scrolling:!0};V&&(be.swipeLength=yt);var Nt=(ne?-1:1)*(be.curX>be.startX?1:-1);V&&(Nt=be.curY>be.startY?1:-1);var Ae=Math.ceil(Se/ye),Be=G(C.touchObject,V),nt=be.swipeLength;return Re||(ue===0&&(Be==="right"||Be==="down")||ue+1>=Ae&&(Be==="left"||Be==="up")||!k(C)&&(Be==="left"||Be==="up"))&&(nt=be.swipeLength*me,he===!1&&ve&&(ve(Be),ot.edgeDragged=!0)),!pe&&Le&&(Le(Be),ot.swiped=!0),B?ke=ft+nt*(Pe/Ee)*Nt:ne?ke=ft-nt*Nt:ke=ft+nt*Nt,V&&(ke=ft+nt*Nt),ot=u(u({},ot),{},{touchObject:be,swipeLeft:ke,trackStyle:F(u(u({},C),{},{left:ke}))}),Math.abs(be.curX-be.startX)<Math.abs(be.curY-be.startY)*.8||be.swipeLength>10&&(ot.swiping=!0,g(y)),ot}},we.swipeEnd=function(y,C){var W=C.dragging,J=C.swipe,B=C.touchObject,Q=C.listWidth,V=C.touchThreshold,ne=C.verticalSwiping,ue=C.listHeight,me=C.swipeToSlide,he=C.scrolling,ve=C.onSwipe,pe=C.targetSlide,ge=C.currentSlide,Se=C.infinite;if(!W)return J&&g(y),{};var ye=ne?ue/V:Q/V,Re=G(B,ne),be={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(he||!B.swipeLength)return be;if(B.swipeLength>ye){g(y),ve&&ve(Re);var Le,Pe,Ee=Se?ge:pe;switch(Re){case"left":case"up":Pe=Ee+j(C),Le=me?A(C,Pe):Pe,be.currentDirection=0;break;case"right":case"down":Pe=Ee-j(C),Le=me?A(C,Pe):Pe,be.currentDirection=1;break;default:Le=Ee}be.triggerSlideHandler=Le}else{var ke=T(C);be.trackStyle=D(u(u({},C),{},{left:ke}))}return be};var Z=we.getNavigableIndexes=function(y){for(var C=y.infinite?y.slideCount*2:y.slideCount,W=y.infinite?y.slidesToShow*-1:0,J=y.infinite?y.slidesToShow*-1:0,B=[];W<C;)B.push(W),W=J+y.slidesToScroll,J+=Math.min(y.slidesToScroll,y.slidesToShow);return B},A=we.checkNavigable=function(y,C){var W=Z(y),J=0;if(C>W[W.length-1])C=W[W.length-1];else for(var B in W){if(C<W[B]){C=J;break}J=W[B]}return C},j=we.getSlideCount=function(y){var C=y.centerMode?y.slideWidth*Math.floor(y.slidesToShow/2):0;if(y.swipeToSlide){var W,J=y.listRef,B=J.querySelectorAll&&J.querySelectorAll(".slick-slide")||[];if(Array.from(B).every(function(ne){if(y.vertical){if(ne.offsetTop+H(ne)/2>y.swipeLeft*-1)return W=ne,!1}else if(ne.offsetLeft-C+z(ne)/2>y.swipeLeft*-1)return W=ne,!1;return!0}),!W)return 0;var Q=y.rtl===!0?y.slideCount-y.currentSlide:y.currentSlide,V=Math.abs(W.dataset.index-Q)||1;return V}else return y.slidesToScroll},P=we.checkSpecKeys=function(y,C){return C.reduce(function(W,J){return W&&y.hasOwnProperty(J)},!0)?null:console.error("Keys Missing:",y)},F=we.getTrackCSS=function(y){P(y,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var C,W,J=y.slideCount+2*y.slidesToShow;y.vertical?W=J*y.slideHeight:C=q(y)*y.slideWidth;var B={opacity:1,transition:"",WebkitTransition:""};if(y.useTransform){var Q=y.vertical?"translate3d(0px, "+y.left+"px, 0px)":"translate3d("+y.left+"px, 0px, 0px)",V=y.vertical?"translate3d(0px, "+y.left+"px, 0px)":"translate3d("+y.left+"px, 0px, 0px)",ne=y.vertical?"translateY("+y.left+"px)":"translateX("+y.left+"px)";B=u(u({},B),{},{WebkitTransform:Q,transform:V,msTransform:ne})}else y.vertical?B.top=y.left:B.left=y.left;return y.fade&&(B={opacity:1}),C&&(B.width=C),W&&(B.height=W),window&&!window.addEventListener&&window.attachEvent&&(y.vertical?B.marginTop=y.left+"px":B.marginLeft=y.left+"px"),B},D=we.getTrackAnimateCSS=function(y){P(y,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var C=F(y);return y.useTransform?(C.WebkitTransition="-webkit-transform "+y.speed+"ms "+y.cssEase,C.transition="transform "+y.speed+"ms "+y.cssEase):y.vertical?C.transition="top "+y.speed+"ms "+y.cssEase:C.transition="left "+y.speed+"ms "+y.cssEase,C},T=we.getTrackLeft=function(y){if(y.unslick)return 0;P(y,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var C=y.slideIndex,W=y.trackRef,J=y.infinite,B=y.centerMode,Q=y.slideCount,V=y.slidesToShow,ne=y.slidesToScroll,ue=y.slideWidth,me=y.listWidth,he=y.variableWidth,ve=y.slideHeight,pe=y.fade,ge=y.vertical,Se=0,ye,Re,be=0;if(pe||y.slideCount===1)return 0;var Le=0;if(J?(Le=-X(y),Q%ne!==0&&C+ne>Q&&(Le=-(C>Q?V-(C-Q):Q%ne)),B&&(Le+=parseInt(V/2))):(Q%ne!==0&&C+ne>Q&&(Le=V-Q%ne),B&&(Le=parseInt(V/2))),Se=Le*ue,be=Le*ve,ge?ye=C*ve*-1+be:ye=C*ue*-1+Se,he===!0){var Pe,Ee=W&&W.node;if(Pe=C+X(y),Re=Ee&&Ee.childNodes[Pe],ye=Re?Re.offsetLeft*-1:0,B===!0){Pe=J?C+X(y):C,Re=Ee&&Ee.children[Pe],ye=0;for(var ke=0;ke<Pe;ke++)ye-=Ee&&Ee.children[ke]&&Ee.children[ke].offsetWidth;ye-=parseInt(y.centerPadding),ye+=Re&&(me-Re.offsetWidth)/2}}return ye},X=we.getPreClones=function(y){return y.unslick||!y.infinite?0:y.variableWidth?y.slideCount:y.slidesToShow+(y.centerMode?1:0)},I=we.getPostClones=function(y){return y.unslick||!y.infinite?0:y.slideCount},q=we.getTotalSlides=function(y){return y.slideCount===1?1:X(y)+y.slideCount+I(y)},$=we.siblingDirection=function(y){return y.targetSlide>y.currentSlide?y.targetSlide>y.currentSlide+U(y)?"left":"right":y.targetSlide<y.currentSlide-L(y)?"right":"left"},U=we.slidesOnRight=function(y){var C=y.slidesToShow,W=y.centerMode,J=y.rtl,B=y.centerPadding;if(W){var Q=(C-1)/2+1;return parseInt(B)>0&&(Q+=1),J&&C%2===0&&(Q+=1),Q}return J?0:C-1},L=we.slidesOnLeft=function(y){var C=y.slidesToShow,W=y.centerMode,J=y.rtl,B=y.centerPadding;if(W){var Q=(C-1)/2+1;return parseInt(B)>0&&(Q+=1),!J&&C%2===0&&(Q+=1),Q}return J?C-1:0};we.canUseDOM=function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)};var b=we.validSettings=Object.keys(t.default);function te(R){return b.reduce(function(y,C){return R.hasOwnProperty(C)&&(y[C]=R[C]),y},{})}return we}var Zl={},M1;function S4(){if(M1)return Zl;M1=1,Object.defineProperty(Zl,"__esModule",{value:!0}),Zl.Track=void 0;var r=l(Cn()),t=l(Co()),a=Lo();function l(D){return D&&D.__esModule?D:{default:D}}function o(D){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},o(D)}function u(){return u=Object.assign?Object.assign.bind():function(D){for(var T=1;T<arguments.length;T++){var X=arguments[T];for(var I in X)Object.prototype.hasOwnProperty.call(X,I)&&(D[I]=X[I])}return D},u.apply(this,arguments)}function c(D,T){if(!(D instanceof T))throw new TypeError("Cannot call a class as a function")}function d(D,T){for(var X=0;X<T.length;X++){var I=T[X];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(D,k(I.key),I)}}function h(D,T,X){return T&&d(D.prototype,T),Object.defineProperty(D,"prototype",{writable:!1}),D}function p(D,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(T&&T.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),T&&g(D,T)}function g(D,T){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,q){return I.__proto__=q,I},g(D,T)}function v(D){var T=N();return function(){var I=_(D),q;if(T){var $=_(this).constructor;q=Reflect.construct(I,arguments,$)}else q=I.apply(this,arguments);return x(this,q)}}function x(D,T){if(T&&(o(T)==="object"||typeof T=="function"))return T;if(T!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return E(D)}function E(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function N(){try{var D=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(N=function(){return!!D})()}function _(D){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(X){return X.__proto__||Object.getPrototypeOf(X)},_(D)}function z(D,T){var X=Object.keys(D);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(D);T&&(I=I.filter(function(q){return Object.getOwnPropertyDescriptor(D,q).enumerable})),X.push.apply(X,I)}return X}function H(D){for(var T=1;T<arguments.length;T++){var X=arguments[T]!=null?arguments[T]:{};T%2?z(Object(X),!0).forEach(function(I){G(D,I,X[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(X)):z(Object(X)).forEach(function(I){Object.defineProperty(D,I,Object.getOwnPropertyDescriptor(X,I))})}return D}function G(D,T,X){return T=k(T),T in D?Object.defineProperty(D,T,{value:X,enumerable:!0,configurable:!0,writable:!0}):D[T]=X,D}function k(D){var T=Z(D,"string");return o(T)=="symbol"?T:String(T)}function Z(D,T){if(o(D)!="object"||!D)return D;var X=D[Symbol.toPrimitive];if(X!==void 0){var I=X.call(D,T);if(o(I)!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return(T==="string"?String:Number)(D)}var A=function(T){var X,I,q,$,U;T.rtl?U=T.slideCount-1-T.index:U=T.index,q=U<0||U>=T.slideCount,T.centerMode?($=Math.floor(T.slidesToShow/2),I=(U-T.currentSlide)%T.slideCount===0,U>T.currentSlide-$-1&&U<=T.currentSlide+$&&(X=!0)):X=T.currentSlide<=U&&U<T.currentSlide+T.slidesToShow;var L;T.targetSlide<0?L=T.targetSlide+T.slideCount:T.targetSlide>=T.slideCount?L=T.targetSlide-T.slideCount:L=T.targetSlide;var b=U===L;return{"slick-slide":!0,"slick-active":X,"slick-center":I,"slick-cloned":q,"slick-current":b}},j=function(T){var X={};return(T.variableWidth===void 0||T.variableWidth===!1)&&(X.width=T.slideWidth),T.fade&&(X.position="relative",T.vertical?X.top=-T.index*parseInt(T.slideHeight):X.left=-T.index*parseInt(T.slideWidth),X.opacity=T.currentSlide===T.index?1:0,X.zIndex=T.currentSlide===T.index?999:998,T.useCSS&&(X.transition="opacity "+T.speed+"ms "+T.cssEase+", visibility "+T.speed+"ms "+T.cssEase)),X},P=function(T,X){return T.key||X},F=function(T){var X,I=[],q=[],$=[],U=r.default.Children.count(T.children),L=(0,a.lazyStartIndex)(T),b=(0,a.lazyEndIndex)(T);return r.default.Children.forEach(T.children,function(te,R){var y,C={message:"children",index:R,slidesToScroll:T.slidesToScroll,currentSlide:T.currentSlide};!T.lazyLoad||T.lazyLoad&&T.lazyLoadedList.indexOf(R)>=0?y=te:y=r.default.createElement("div",null);var W=j(H(H({},T),{},{index:R})),J=y.props.className||"",B=A(H(H({},T),{},{index:R}));if(I.push(r.default.cloneElement(y,{key:"original"+P(y,R),"data-index":R,className:(0,t.default)(B,J),tabIndex:"-1","aria-hidden":!B["slick-active"],style:H(H({outline:"none"},y.props.style||{}),W),onClick:function(ne){y.props&&y.props.onClick&&y.props.onClick(ne),T.focusOnSelect&&T.focusOnSelect(C)}})),T.infinite&&T.fade===!1){var Q=U-R;Q<=(0,a.getPreClones)(T)&&(X=-Q,X>=L&&(y=te),B=A(H(H({},T),{},{index:X})),q.push(r.default.cloneElement(y,{key:"precloned"+P(y,X),"data-index":X,tabIndex:"-1",className:(0,t.default)(B,J),"aria-hidden":!B["slick-active"],style:H(H({},y.props.style||{}),W),onClick:function(ne){y.props&&y.props.onClick&&y.props.onClick(ne),T.focusOnSelect&&T.focusOnSelect(C)}}))),X=U+R,X<b&&(y=te),B=A(H(H({},T),{},{index:X})),$.push(r.default.cloneElement(y,{key:"postcloned"+P(y,X),"data-index":X,tabIndex:"-1",className:(0,t.default)(B,J),"aria-hidden":!B["slick-active"],style:H(H({},y.props.style||{}),W),onClick:function(ne){y.props&&y.props.onClick&&y.props.onClick(ne),T.focusOnSelect&&T.focusOnSelect(C)}}))}}),T.rtl?q.concat(I,$).reverse():q.concat(I,$)};return Zl.Track=function(D){p(X,D);var T=v(X);function X(){var I;c(this,X);for(var q=arguments.length,$=new Array(q),U=0;U<q;U++)$[U]=arguments[U];return I=T.call.apply(T,[this].concat($)),G(E(I),"node",null),G(E(I),"handleRef",function(L){I.node=L}),I}return h(X,[{key:"render",value:function(){var q=F(this.props),$=this.props,U=$.onMouseEnter,L=$.onMouseOver,b=$.onMouseLeave,te={onMouseEnter:U,onMouseOver:L,onMouseLeave:b};return r.default.createElement("div",u({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},te),q)}}]),X}(r.default.PureComponent),Zl}var Kl={},N1;function w4(){if(N1)return Kl;N1=1;function r(A){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},r(A)}Object.defineProperty(Kl,"__esModule",{value:!0}),Kl.Dots=void 0;var t=o(Cn()),a=o(Co()),l=Lo();function o(A){return A&&A.__esModule?A:{default:A}}function u(A,j){var P=Object.keys(A);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(A);j&&(F=F.filter(function(D){return Object.getOwnPropertyDescriptor(A,D).enumerable})),P.push.apply(P,F)}return P}function c(A){for(var j=1;j<arguments.length;j++){var P=arguments[j]!=null?arguments[j]:{};j%2?u(Object(P),!0).forEach(function(F){d(A,F,P[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(P)):u(Object(P)).forEach(function(F){Object.defineProperty(A,F,Object.getOwnPropertyDescriptor(P,F))})}return A}function d(A,j,P){return j=v(j),j in A?Object.defineProperty(A,j,{value:P,enumerable:!0,configurable:!0,writable:!0}):A[j]=P,A}function h(A,j){if(!(A instanceof j))throw new TypeError("Cannot call a class as a function")}function p(A,j){for(var P=0;P<j.length;P++){var F=j[P];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(A,v(F.key),F)}}function g(A,j,P){return j&&p(A.prototype,j),Object.defineProperty(A,"prototype",{writable:!1}),A}function v(A){var j=x(A,"string");return r(j)=="symbol"?j:String(j)}function x(A,j){if(r(A)!="object"||!A)return A;var P=A[Symbol.toPrimitive];if(P!==void 0){var F=P.call(A,j);if(r(F)!="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(A)}function E(A,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(j&&j.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),j&&N(A,j)}function N(A,j){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(F,D){return F.__proto__=D,F},N(A,j)}function _(A){var j=G();return function(){var F=k(A),D;if(j){var T=k(this).constructor;D=Reflect.construct(F,arguments,T)}else D=F.apply(this,arguments);return z(this,D)}}function z(A,j){if(j&&(r(j)==="object"||typeof j=="function"))return j;if(j!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return H(A)}function H(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function G(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(G=function(){return!!A})()}function k(A){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(P){return P.__proto__||Object.getPrototypeOf(P)},k(A)}var Z=function(j){var P;return j.infinite?P=Math.ceil(j.slideCount/j.slidesToScroll):P=Math.ceil((j.slideCount-j.slidesToShow)/j.slidesToScroll)+1,P};return Kl.Dots=function(A){E(P,A);var j=_(P);function P(){return h(this,P),j.apply(this,arguments)}return g(P,[{key:"clickHandler",value:function(D,T){T.preventDefault(),this.props.clickHandler(D)}},{key:"render",value:function(){for(var D=this.props,T=D.onMouseEnter,X=D.onMouseOver,I=D.onMouseLeave,q=D.infinite,$=D.slidesToScroll,U=D.slidesToShow,L=D.slideCount,b=D.currentSlide,te=Z({slideCount:L,slidesToScroll:$,slidesToShow:U,infinite:q}),R={onMouseEnter:T,onMouseOver:X,onMouseLeave:I},y=[],C=0;C<te;C++){var W=(C+1)*$-1,J=q?W:(0,l.clamp)(W,0,L-1),B=J-($-1),Q=q?B:(0,l.clamp)(B,0,L-1),V=(0,a.default)({"slick-active":q?b>=Q&&b<=J:b===Q}),ne={message:"dots",index:C,slidesToScroll:$,currentSlide:b},ue=this.clickHandler.bind(this,ne);y=y.concat(t.default.createElement("li",{key:C,className:V},t.default.cloneElement(this.props.customPaging(C),{onClick:ue})))}return t.default.cloneElement(this.props.appendDots(y),c({className:this.props.dotsClass},R))}}]),P}(t.default.PureComponent),Kl}var Na={},D1;function x4(){if(D1)return Na;D1=1;function r(A){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},r(A)}Object.defineProperty(Na,"__esModule",{value:!0}),Na.PrevArrow=Na.NextArrow=void 0;var t=o(Cn()),a=o(Co()),l=Lo();function o(A){return A&&A.__esModule?A:{default:A}}function u(){return u=Object.assign?Object.assign.bind():function(A){for(var j=1;j<arguments.length;j++){var P=arguments[j];for(var F in P)Object.prototype.hasOwnProperty.call(P,F)&&(A[F]=P[F])}return A},u.apply(this,arguments)}function c(A,j){var P=Object.keys(A);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(A);j&&(F=F.filter(function(D){return Object.getOwnPropertyDescriptor(A,D).enumerable})),P.push.apply(P,F)}return P}function d(A){for(var j=1;j<arguments.length;j++){var P=arguments[j]!=null?arguments[j]:{};j%2?c(Object(P),!0).forEach(function(F){h(A,F,P[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(P)):c(Object(P)).forEach(function(F){Object.defineProperty(A,F,Object.getOwnPropertyDescriptor(P,F))})}return A}function h(A,j,P){return j=x(j),j in A?Object.defineProperty(A,j,{value:P,enumerable:!0,configurable:!0,writable:!0}):A[j]=P,A}function p(A,j){if(!(A instanceof j))throw new TypeError("Cannot call a class as a function")}function g(A,j){for(var P=0;P<j.length;P++){var F=j[P];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(A,x(F.key),F)}}function v(A,j,P){return j&&g(A.prototype,j),Object.defineProperty(A,"prototype",{writable:!1}),A}function x(A){var j=E(A,"string");return r(j)=="symbol"?j:String(j)}function E(A,j){if(r(A)!="object"||!A)return A;var P=A[Symbol.toPrimitive];if(P!==void 0){var F=P.call(A,j);if(r(F)!="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(A)}function N(A,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(j&&j.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),j&&_(A,j)}function _(A,j){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(F,D){return F.__proto__=D,F},_(A,j)}function z(A){var j=k();return function(){var F=Z(A),D;if(j){var T=Z(this).constructor;D=Reflect.construct(F,arguments,T)}else D=F.apply(this,arguments);return H(this,D)}}function H(A,j){if(j&&(r(j)==="object"||typeof j=="function"))return j;if(j!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return G(A)}function G(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function k(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(k=function(){return!!A})()}function Z(A){return Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(P){return P.__proto__||Object.getPrototypeOf(P)},Z(A)}return Na.PrevArrow=function(A){N(P,A);var j=z(P);function P(){return p(this,P),j.apply(this,arguments)}return v(P,[{key:"clickHandler",value:function(D,T){T&&T.preventDefault(),this.props.clickHandler(D,T)}},{key:"render",value:function(){var D={"slick-arrow":!0,"slick-prev":!0},T=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(D["slick-disabled"]=!0,T=null);var X={key:"0","data-role":"none",className:(0,a.default)(D),style:{display:"block"},onClick:T},I={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},q;return this.props.prevArrow?q=t.default.cloneElement(this.props.prevArrow,d(d({},X),I)):q=t.default.createElement("button",u({key:"0",type:"button"},X)," ","Previous"),q}}]),P}(t.default.PureComponent),Na.NextArrow=function(A){N(P,A);var j=z(P);function P(){return p(this,P),j.apply(this,arguments)}return v(P,[{key:"clickHandler",value:function(D,T){T&&T.preventDefault(),this.props.clickHandler(D,T)}},{key:"render",value:function(){var D={"slick-arrow":!0,"slick-next":!0},T=this.clickHandler.bind(this,{message:"next"});(0,l.canGoNext)(this.props)||(D["slick-disabled"]=!0,T=null);var X={key:"1","data-role":"none",className:(0,a.default)(D),style:{display:"block"},onClick:T},I={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},q;return this.props.nextArrow?q=t.default.cloneElement(this.props.nextArrow,d(d({},X),I)):q=t.default.createElement("button",u({key:"1",type:"button"},X)," ","Next"),q}}]),P}(t.default.PureComponent),Na}var QO=function(){if(typeof Map<"u")return Map;function r(t,a){var l=-1;return t.some(function(o,u){return o[0]===a?(l=u,!0):!1}),l}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(a){var l=r(this.__entries__,a),o=this.__entries__[l];return o&&o[1]},t.prototype.set=function(a,l){var o=r(this.__entries__,a);~o?this.__entries__[o][1]=l:this.__entries__.push([a,l])},t.prototype.delete=function(a){var l=this.__entries__,o=r(l,a);~o&&l.splice(o,1)},t.prototype.has=function(a){return!!~r(this.__entries__,a)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(a,l){l===void 0&&(l=null);for(var o=0,u=this.__entries__;o<u.length;o++){var c=u[o];a.call(l,c[1],c[0])}},t}()}(),Up=typeof window<"u"&&typeof document<"u"&&window.document===document,mu=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),O4=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(mu):function(r){return setTimeout(function(){return r(Date.now())},1e3/60)}}(),T4=2;function E4(r,t){var a=!1,l=!1,o=0;function u(){a&&(a=!1,r()),l&&d()}function c(){O4(u)}function d(){var h=Date.now();if(a){if(h-o<T4)return;l=!0}else a=!0,l=!1,setTimeout(c,t);o=h}return d}var C4=20,R4=["top","right","bottom","left","width","height","size","weight"],_4=typeof MutationObserver<"u",j4=function(){function r(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=E4(this.refresh.bind(this),C4)}return r.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},r.prototype.removeObserver=function(t){var a=this.observers_,l=a.indexOf(t);~l&&a.splice(l,1),!a.length&&this.connected_&&this.disconnect_()},r.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},r.prototype.updateObservers_=function(){var t=this.observers_.filter(function(a){return a.gatherActive(),a.hasActive()});return t.forEach(function(a){return a.broadcastActive()}),t.length>0},r.prototype.connect_=function(){!Up||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),_4?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},r.prototype.disconnect_=function(){!Up||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},r.prototype.onTransitionEnd_=function(t){var a=t.propertyName,l=a===void 0?"":a,o=R4.some(function(u){return!!~l.indexOf(u)});o&&this.refresh()},r.getInstance=function(){return this.instance_||(this.instance_=new r),this.instance_},r.instance_=null,r}(),ZO=function(r,t){for(var a=0,l=Object.keys(t);a<l.length;a++){var o=l[a];Object.defineProperty(r,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return r},Ni=function(r){var t=r&&r.ownerDocument&&r.ownerDocument.defaultView;return t||mu},KO=Nu(0,0,0,0);function gu(r){return parseFloat(r)||0}function L1(r){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];return t.reduce(function(l,o){var u=r["border-"+o+"-width"];return l+gu(u)},0)}function A4(r){for(var t=["top","right","bottom","left"],a={},l=0,o=t;l<o.length;l++){var u=o[l],c=r["padding-"+u];a[u]=gu(c)}return a}function M4(r){var t=r.getBBox();return Nu(0,0,t.width,t.height)}function N4(r){var t=r.clientWidth,a=r.clientHeight;if(!t&&!a)return KO;var l=Ni(r).getComputedStyle(r),o=A4(l),u=o.left+o.right,c=o.top+o.bottom,d=gu(l.width),h=gu(l.height);if(l.boxSizing==="border-box"&&(Math.round(d+u)!==t&&(d-=L1(l,"left","right")+u),Math.round(h+c)!==a&&(h-=L1(l,"top","bottom")+c)),!L4(r)){var p=Math.round(d+u)-t,g=Math.round(h+c)-a;Math.abs(p)!==1&&(d-=p),Math.abs(g)!==1&&(h-=g)}return Nu(o.left,o.top,d,h)}var D4=function(){return typeof SVGGraphicsElement<"u"?function(r){return r instanceof Ni(r).SVGGraphicsElement}:function(r){return r instanceof Ni(r).SVGElement&&typeof r.getBBox=="function"}}();function L4(r){return r===Ni(r).document.documentElement}function z4(r){return Up?D4(r)?M4(r):N4(r):KO}function P4(r){var t=r.x,a=r.y,l=r.width,o=r.height,u=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,c=Object.create(u.prototype);return ZO(c,{x:t,y:a,width:l,height:o,top:a,right:t+l,bottom:o+a,left:t}),c}function Nu(r,t,a,l){return{x:r,y:t,width:a,height:l}}var H4=function(){function r(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Nu(0,0,0,0),this.target=t}return r.prototype.isActive=function(){var t=z4(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},r.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},r}(),k4=function(){function r(t,a){var l=P4(a);ZO(this,{target:t,contentRect:l})}return r}(),B4=function(){function r(t,a,l){if(this.activeObservations_=[],this.observations_=new QO,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=a,this.callbackCtx_=l}return r.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ni(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(t)||(a.set(t,new H4(t)),this.controller_.addObserver(this),this.controller_.refresh())}},r.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ni(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(t)&&(a.delete(t),a.size||this.controller_.removeObserver(this))}},r.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},r.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(a){a.isActive()&&t.activeObservations_.push(a)})},r.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,a=this.activeObservations_.map(function(l){return new k4(l.target,l.broadcastRect())});this.callback_.call(t,a,t),this.clearActive()}},r.prototype.clearActive=function(){this.activeObservations_.splice(0)},r.prototype.hasActive=function(){return this.activeObservations_.length>0},r}(),JO=typeof WeakMap<"u"?new WeakMap:new QO,eT=function(){function r(t){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var a=j4.getInstance(),l=new B4(t,a,this);JO.set(this,l)}return r}();["observe","unobserve","disconnect"].forEach(function(r){eT.prototype[r]=function(){var t;return(t=JO.get(this))[r].apply(t,arguments)}});var $4=function(){return typeof mu.ResizeObserver<"u"?mu.ResizeObserver:eT}();const I4=Object.freeze(Object.defineProperty({__proto__:null,default:$4},Symbol.toStringTag,{value:"Module"})),q4=X1(I4);var z1;function U4(){if(z1)return Ql;z1=1,Object.defineProperty(Ql,"__esModule",{value:!0}),Ql.InnerSlider=void 0;var r=p(Cn()),t=p(y4()),a=p(b4()),l=p(Co()),o=Lo(),u=S4(),c=w4(),d=x4(),h=p(q4);function p(q){return q&&q.__esModule?q:{default:q}}function g(q){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},g(q)}function v(){return v=Object.assign?Object.assign.bind():function(q){for(var $=1;$<arguments.length;$++){var U=arguments[$];for(var L in U)Object.prototype.hasOwnProperty.call(U,L)&&(q[L]=U[L])}return q},v.apply(this,arguments)}function x(q,$){if(q==null)return{};var U=E(q,$),L,b;if(Object.getOwnPropertySymbols){var te=Object.getOwnPropertySymbols(q);for(b=0;b<te.length;b++)L=te[b],!($.indexOf(L)>=0)&&Object.prototype.propertyIsEnumerable.call(q,L)&&(U[L]=q[L])}return U}function E(q,$){if(q==null)return{};var U={},L=Object.keys(q),b,te;for(te=0;te<L.length;te++)b=L[te],!($.indexOf(b)>=0)&&(U[b]=q[b]);return U}function N(q,$){var U=Object.keys(q);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(q);$&&(L=L.filter(function(b){return Object.getOwnPropertyDescriptor(q,b).enumerable})),U.push.apply(U,L)}return U}function _(q){for(var $=1;$<arguments.length;$++){var U=arguments[$]!=null?arguments[$]:{};$%2?N(Object(U),!0).forEach(function(L){T(q,L,U[L])}):Object.getOwnPropertyDescriptors?Object.defineProperties(q,Object.getOwnPropertyDescriptors(U)):N(Object(U)).forEach(function(L){Object.defineProperty(q,L,Object.getOwnPropertyDescriptor(U,L))})}return q}function z(q,$){if(!(q instanceof $))throw new TypeError("Cannot call a class as a function")}function H(q,$){for(var U=0;U<$.length;U++){var L=$[U];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(q,X(L.key),L)}}function G(q,$,U){return $&&H(q.prototype,$),Object.defineProperty(q,"prototype",{writable:!1}),q}function k(q,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create($&&$.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),Object.defineProperty(q,"prototype",{writable:!1}),$&&Z(q,$)}function Z(q,$){return Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(L,b){return L.__proto__=b,L},Z(q,$)}function A(q){var $=F();return function(){var L=D(q),b;if($){var te=D(this).constructor;b=Reflect.construct(L,arguments,te)}else b=L.apply(this,arguments);return j(this,b)}}function j(q,$){if($&&(g($)==="object"||typeof $=="function"))return $;if($!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return P(q)}function P(q){if(q===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return q}function F(){try{var q=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F=function(){return!!q})()}function D(q){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(U){return U.__proto__||Object.getPrototypeOf(U)},D(q)}function T(q,$,U){return $=X($),$ in q?Object.defineProperty(q,$,{value:U,enumerable:!0,configurable:!0,writable:!0}):q[$]=U,q}function X(q){var $=I(q,"string");return g($)=="symbol"?$:String($)}function I(q,$){if(g(q)!="object"||!q)return q;var U=q[Symbol.toPrimitive];if(U!==void 0){var L=U.call(q,$);if(g(L)!="object")return L;throw new TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(q)}return Ql.InnerSlider=function(q){k(U,q);var $=A(U);function U(L){var b;z(this,U),b=$.call(this,L),T(P(b),"listRefHandler",function(R){return b.list=R}),T(P(b),"trackRefHandler",function(R){return b.track=R}),T(P(b),"adaptHeight",function(){if(b.props.adaptiveHeight&&b.list){var R=b.list.querySelector('[data-index="'.concat(b.state.currentSlide,'"]'));b.list.style.height=(0,o.getHeight)(R)+"px"}}),T(P(b),"componentDidMount",function(){if(b.props.onInit&&b.props.onInit(),b.props.lazyLoad){var R=(0,o.getOnDemandLazySlides)(_(_({},b.props),b.state));R.length>0&&(b.setState(function(C){return{lazyLoadedList:C.lazyLoadedList.concat(R)}}),b.props.onLazyLoad&&b.props.onLazyLoad(R))}var y=_({listRef:b.list,trackRef:b.track},b.props);b.updateState(y,!0,function(){b.adaptHeight(),b.props.autoplay&&b.autoPlay("update")}),b.props.lazyLoad==="progressive"&&(b.lazyLoadTimer=setInterval(b.progressiveLazyLoad,1e3)),b.ro=new h.default(function(){b.state.animating?(b.onWindowResized(!1),b.callbackTimers.push(setTimeout(function(){return b.onWindowResized()},b.props.speed))):b.onWindowResized()}),b.ro.observe(b.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(C){C.onfocus=b.props.pauseOnFocus?b.onSlideFocus:null,C.onblur=b.props.pauseOnFocus?b.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",b.onWindowResized):window.attachEvent("onresize",b.onWindowResized)}),T(P(b),"componentWillUnmount",function(){b.animationEndCallback&&clearTimeout(b.animationEndCallback),b.lazyLoadTimer&&clearInterval(b.lazyLoadTimer),b.callbackTimers.length&&(b.callbackTimers.forEach(function(R){return clearTimeout(R)}),b.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",b.onWindowResized):window.detachEvent("onresize",b.onWindowResized),b.autoplayTimer&&clearInterval(b.autoplayTimer),b.ro.disconnect()}),T(P(b),"componentDidUpdate",function(R){if(b.checkImagesLoad(),b.props.onReInit&&b.props.onReInit(),b.props.lazyLoad){var y=(0,o.getOnDemandLazySlides)(_(_({},b.props),b.state));y.length>0&&(b.setState(function(J){return{lazyLoadedList:J.lazyLoadedList.concat(y)}}),b.props.onLazyLoad&&b.props.onLazyLoad(y))}b.adaptHeight();var C=_(_({listRef:b.list,trackRef:b.track},b.props),b.state),W=b.didPropsChange(R);W&&b.updateState(C,W,function(){b.state.currentSlide>=r.default.Children.count(b.props.children)&&b.changeSlide({message:"index",index:r.default.Children.count(b.props.children)-b.props.slidesToShow,currentSlide:b.state.currentSlide}),b.props.autoplay?b.autoPlay("update"):b.pause("paused")})}),T(P(b),"onWindowResized",function(R){b.debouncedResize&&b.debouncedResize.cancel(),b.debouncedResize=(0,a.default)(function(){return b.resizeWindow(R)},50),b.debouncedResize()}),T(P(b),"resizeWindow",function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,y=!!(b.track&&b.track.node);if(y){var C=_(_({listRef:b.list,trackRef:b.track},b.props),b.state);b.updateState(C,R,function(){b.props.autoplay?b.autoPlay("update"):b.pause("paused")}),b.setState({animating:!1}),clearTimeout(b.animationEndCallback),delete b.animationEndCallback}}),T(P(b),"updateState",function(R,y,C){var W=(0,o.initializedState)(R);R=_(_(_({},R),W),{},{slideIndex:W.currentSlide});var J=(0,o.getTrackLeft)(R);R=_(_({},R),{},{left:J});var B=(0,o.getTrackCSS)(R);(y||r.default.Children.count(b.props.children)!==r.default.Children.count(R.children))&&(W.trackStyle=B),b.setState(W,C)}),T(P(b),"ssrInit",function(){if(b.props.variableWidth){var R=0,y=0,C=[],W=(0,o.getPreClones)(_(_(_({},b.props),b.state),{},{slideCount:b.props.children.length})),J=(0,o.getPostClones)(_(_(_({},b.props),b.state),{},{slideCount:b.props.children.length}));b.props.children.forEach(function(Re){C.push(Re.props.style.width),R+=Re.props.style.width});for(var B=0;B<W;B++)y+=C[C.length-1-B],R+=C[C.length-1-B];for(var Q=0;Q<J;Q++)R+=C[Q];for(var V=0;V<b.state.currentSlide;V++)y+=C[V];var ne={width:R+"px",left:-y+"px"};if(b.props.centerMode){var ue="".concat(C[b.state.currentSlide],"px");ne.left="calc(".concat(ne.left," + (100% - ").concat(ue,") / 2 ) ")}return{trackStyle:ne}}var me=r.default.Children.count(b.props.children),he=_(_(_({},b.props),b.state),{},{slideCount:me}),ve=(0,o.getPreClones)(he)+(0,o.getPostClones)(he)+me,pe=100/b.props.slidesToShow*ve,ge=100/ve,Se=-ge*((0,o.getPreClones)(he)+b.state.currentSlide)*pe/100;b.props.centerMode&&(Se+=(100-ge*pe/100)/2);var ye={width:pe+"%",left:Se+"%"};return{slideWidth:ge+"%",trackStyle:ye}}),T(P(b),"checkImagesLoad",function(){var R=b.list&&b.list.querySelectorAll&&b.list.querySelectorAll(".slick-slide img")||[],y=R.length,C=0;Array.prototype.forEach.call(R,function(W){var J=function(){return++C&&C>=y&&b.onWindowResized()};if(!W.onclick)W.onclick=function(){return W.parentNode.focus()};else{var B=W.onclick;W.onclick=function(Q){B(Q),W.parentNode.focus()}}W.onload||(b.props.lazyLoad?W.onload=function(){b.adaptHeight(),b.callbackTimers.push(setTimeout(b.onWindowResized,b.props.speed))}:(W.onload=J,W.onerror=function(){J(),b.props.onLazyLoadError&&b.props.onLazyLoadError()}))})}),T(P(b),"progressiveLazyLoad",function(){for(var R=[],y=_(_({},b.props),b.state),C=b.state.currentSlide;C<b.state.slideCount+(0,o.getPostClones)(y);C++)if(b.state.lazyLoadedList.indexOf(C)<0){R.push(C);break}for(var W=b.state.currentSlide-1;W>=-(0,o.getPreClones)(y);W--)if(b.state.lazyLoadedList.indexOf(W)<0){R.push(W);break}R.length>0?(b.setState(function(J){return{lazyLoadedList:J.lazyLoadedList.concat(R)}}),b.props.onLazyLoad&&b.props.onLazyLoad(R)):b.lazyLoadTimer&&(clearInterval(b.lazyLoadTimer),delete b.lazyLoadTimer)}),T(P(b),"slideHandler",function(R){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C=b.props,W=C.asNavFor,J=C.beforeChange,B=C.onLazyLoad,Q=C.speed,V=C.afterChange,ne=b.state.currentSlide,ue=(0,o.slideHandler)(_(_(_({index:R},b.props),b.state),{},{trackRef:b.track,useCSS:b.props.useCSS&&!y})),me=ue.state,he=ue.nextState;if(me){J&&J(ne,me.currentSlide);var ve=me.lazyLoadedList.filter(function(pe){return b.state.lazyLoadedList.indexOf(pe)<0});B&&ve.length>0&&B(ve),!b.props.waitForAnimate&&b.animationEndCallback&&(clearTimeout(b.animationEndCallback),V&&V(ne),delete b.animationEndCallback),b.setState(me,function(){W&&b.asNavForIndex!==R&&(b.asNavForIndex=R,W.innerSlider.slideHandler(R)),he&&(b.animationEndCallback=setTimeout(function(){var pe=he.animating,ge=x(he,["animating"]);b.setState(ge,function(){b.callbackTimers.push(setTimeout(function(){return b.setState({animating:pe})},10)),V&&V(me.currentSlide),delete b.animationEndCallback})},Q))})}}),T(P(b),"changeSlide",function(R){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C=_(_({},b.props),b.state),W=(0,o.changeSlide)(C,R);if(!(W!==0&&!W)&&(y===!0?b.slideHandler(W,y):b.slideHandler(W),b.props.autoplay&&b.autoPlay("update"),b.props.focusOnSelect)){var J=b.list.querySelectorAll(".slick-current");J[0]&&J[0].focus()}}),T(P(b),"clickHandler",function(R){b.clickable===!1&&(R.stopPropagation(),R.preventDefault()),b.clickable=!0}),T(P(b),"keyHandler",function(R){var y=(0,o.keyHandler)(R,b.props.accessibility,b.props.rtl);y!==""&&b.changeSlide({message:y})}),T(P(b),"selectHandler",function(R){b.changeSlide(R)}),T(P(b),"disableBodyScroll",function(){var R=function(C){C=C||window.event,C.preventDefault&&C.preventDefault(),C.returnValue=!1};window.ontouchmove=R}),T(P(b),"enableBodyScroll",function(){window.ontouchmove=null}),T(P(b),"swipeStart",function(R){b.props.verticalSwiping&&b.disableBodyScroll();var y=(0,o.swipeStart)(R,b.props.swipe,b.props.draggable);y!==""&&b.setState(y)}),T(P(b),"swipeMove",function(R){var y=(0,o.swipeMove)(R,_(_(_({},b.props),b.state),{},{trackRef:b.track,listRef:b.list,slideIndex:b.state.currentSlide}));y&&(y.swiping&&(b.clickable=!1),b.setState(y))}),T(P(b),"swipeEnd",function(R){var y=(0,o.swipeEnd)(R,_(_(_({},b.props),b.state),{},{trackRef:b.track,listRef:b.list,slideIndex:b.state.currentSlide}));if(y){var C=y.triggerSlideHandler;delete y.triggerSlideHandler,b.setState(y),C!==void 0&&(b.slideHandler(C),b.props.verticalSwiping&&b.enableBodyScroll())}}),T(P(b),"touchEnd",function(R){b.swipeEnd(R),b.clickable=!0}),T(P(b),"slickPrev",function(){b.callbackTimers.push(setTimeout(function(){return b.changeSlide({message:"previous"})},0))}),T(P(b),"slickNext",function(){b.callbackTimers.push(setTimeout(function(){return b.changeSlide({message:"next"})},0))}),T(P(b),"slickGoTo",function(R){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(R=Number(R),isNaN(R))return"";b.callbackTimers.push(setTimeout(function(){return b.changeSlide({message:"index",index:R,currentSlide:b.state.currentSlide},y)},0))}),T(P(b),"play",function(){var R;if(b.props.rtl)R=b.state.currentSlide-b.props.slidesToScroll;else if((0,o.canGoNext)(_(_({},b.props),b.state)))R=b.state.currentSlide+b.props.slidesToScroll;else return!1;b.slideHandler(R)}),T(P(b),"autoPlay",function(R){b.autoplayTimer&&clearInterval(b.autoplayTimer);var y=b.state.autoplaying;if(R==="update"){if(y==="hovered"||y==="focused"||y==="paused")return}else if(R==="leave"){if(y==="paused"||y==="focused")return}else if(R==="blur"&&(y==="paused"||y==="hovered"))return;b.autoplayTimer=setInterval(b.play,b.props.autoplaySpeed+50),b.setState({autoplaying:"playing"})}),T(P(b),"pause",function(R){b.autoplayTimer&&(clearInterval(b.autoplayTimer),b.autoplayTimer=null);var y=b.state.autoplaying;R==="paused"?b.setState({autoplaying:"paused"}):R==="focused"?(y==="hovered"||y==="playing")&&b.setState({autoplaying:"focused"}):y==="playing"&&b.setState({autoplaying:"hovered"})}),T(P(b),"onDotsOver",function(){return b.props.autoplay&&b.pause("hovered")}),T(P(b),"onDotsLeave",function(){return b.props.autoplay&&b.state.autoplaying==="hovered"&&b.autoPlay("leave")}),T(P(b),"onTrackOver",function(){return b.props.autoplay&&b.pause("hovered")}),T(P(b),"onTrackLeave",function(){return b.props.autoplay&&b.state.autoplaying==="hovered"&&b.autoPlay("leave")}),T(P(b),"onSlideFocus",function(){return b.props.autoplay&&b.pause("focused")}),T(P(b),"onSlideBlur",function(){return b.props.autoplay&&b.state.autoplaying==="focused"&&b.autoPlay("blur")}),T(P(b),"render",function(){var R=(0,l.default)("slick-slider",b.props.className,{"slick-vertical":b.props.vertical,"slick-initialized":!0}),y=_(_({},b.props),b.state),C=(0,o.extractObject)(y,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),W=b.props.pauseOnHover;C=_(_({},C),{},{onMouseEnter:W?b.onTrackOver:null,onMouseLeave:W?b.onTrackLeave:null,onMouseOver:W?b.onTrackOver:null,focusOnSelect:b.props.focusOnSelect&&b.clickable?b.selectHandler:null});var J;if(b.props.dots===!0&&b.state.slideCount>=b.props.slidesToShow){var B=(0,o.extractObject)(y,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),Q=b.props.pauseOnDotsHover;B=_(_({},B),{},{clickHandler:b.changeSlide,onMouseEnter:Q?b.onDotsLeave:null,onMouseOver:Q?b.onDotsOver:null,onMouseLeave:Q?b.onDotsLeave:null}),J=r.default.createElement(c.Dots,B)}var V,ne,ue=(0,o.extractObject)(y,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);ue.clickHandler=b.changeSlide,b.props.arrows&&(V=r.default.createElement(d.PrevArrow,ue),ne=r.default.createElement(d.NextArrow,ue));var me=null;b.props.vertical&&(me={height:b.state.listHeight});var he=null;b.props.vertical===!1?b.props.centerMode===!0&&(he={padding:"0px "+b.props.centerPadding}):b.props.centerMode===!0&&(he={padding:b.props.centerPadding+" 0px"});var ve=_(_({},me),he),pe=b.props.touchMove,ge={className:"slick-list",style:ve,onClick:b.clickHandler,onMouseDown:pe?b.swipeStart:null,onMouseMove:b.state.dragging&&pe?b.swipeMove:null,onMouseUp:pe?b.swipeEnd:null,onMouseLeave:b.state.dragging&&pe?b.swipeEnd:null,onTouchStart:pe?b.swipeStart:null,onTouchMove:b.state.dragging&&pe?b.swipeMove:null,onTouchEnd:pe?b.touchEnd:null,onTouchCancel:b.state.dragging&&pe?b.swipeEnd:null,onKeyDown:b.props.accessibility?b.keyHandler:null},Se={className:R,dir:"ltr",style:b.props.style};return b.props.unslick&&(ge={className:"slick-list"},Se={className:R}),r.default.createElement("div",Se,b.props.unslick?"":V,r.default.createElement("div",v({ref:b.listRefHandler},ge),r.default.createElement(u.Track,v({ref:b.trackRefHandler},C),b.props.children)),b.props.unslick?"":ne,b.props.unslick?"":J)}),b.list=null,b.track=null,b.state=_(_({},t.default),{},{currentSlide:b.props.initialSlide,targetSlide:b.props.initialSlide?b.props.initialSlide:0,slideCount:r.default.Children.count(b.props.children)}),b.callbackTimers=[],b.clickable=!0,b.debouncedResize=null;var te=b.ssrInit();return b.state=_(_({},b.state),te),b}return G(U,[{key:"didPropsChange",value:function(b){for(var te=!1,R=0,y=Object.keys(this.props);R<y.length;R++){var C=y[R];if(!b.hasOwnProperty(C)){te=!0;break}if(!(g(b[C])==="object"||typeof b[C]=="function"||isNaN(b[C]))&&b[C]!==this.props[C]){te=!0;break}}return te||r.default.Children.count(this.props.children)!==r.default.Children.count(b.children)}}]),U}(r.default.Component),Ql}var pp,P1;function G4(){if(P1)return pp;P1=1;var r=function(t){return t.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()}).toLowerCase()};return pp=r,pp}var mp,H1;function V4(){if(H1)return mp;H1=1;var r=G4(),t=function(o){var u=/[height|width]$/;return u.test(o)},a=function(o){var u="",c=Object.keys(o);return c.forEach(function(d,h){var p=o[d];d=r(d),t(d)&&typeof p=="number"&&(p=p+"px"),p===!0?u+=d:p===!1?u+="not "+d:u+="("+d+": "+p+")",h<c.length-1&&(u+=" and ")}),u},l=function(o){var u="";return typeof o=="string"?o:o instanceof Array?(o.forEach(function(c,d){u+=a(c),d<o.length-1&&(u+=", ")}),u):a(o)};return mp=l,mp}var gp,k1;function W4(){if(k1)return gp;k1=1;function r(t){this.options=t,!t.deferSetup&&this.setup()}return r.prototype={constructor:r,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(t){return this.options===t||this.options.match===t}},gp=r,gp}var vp,B1;function tT(){if(B1)return vp;B1=1;function r(l,o){var u=0,c=l.length,d;for(u;u<c&&(d=o(l[u],u),d!==!1);u++);}function t(l){return Object.prototype.toString.apply(l)==="[object Array]"}function a(l){return typeof l=="function"}return vp={isFunction:a,isArray:t,each:r},vp}var yp,$1;function Y4(){if($1)return yp;$1=1;var r=W4(),t=tT().each;function a(l,o){this.query=l,this.isUnconditional=o,this.handlers=[],this.mql=window.matchMedia(l);var u=this;this.listener=function(c){u.mql=c.currentTarget||c,u.assess()},this.mql.addListener(this.listener)}return a.prototype={constuctor:a,addHandler:function(l){var o=new r(l);this.handlers.push(o),this.matches()&&o.on()},removeHandler:function(l){var o=this.handlers;t(o,function(u,c){if(u.equals(l))return u.destroy(),!o.splice(c,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){t(this.handlers,function(l){l.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var l=this.matches()?"on":"off";t(this.handlers,function(o){o[l]()})}},yp=a,yp}var bp,I1;function X4(){if(I1)return bp;I1=1;var r=Y4(),t=tT(),a=t.each,l=t.isFunction,o=t.isArray;function u(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}return u.prototype={constructor:u,register:function(c,d,h){var p=this.queries,g=h&&this.browserIsIncapable;return p[c]||(p[c]=new r(c,g)),l(d)&&(d={match:d}),o(d)||(d=[d]),a(d,function(v){l(v)&&(v={match:v}),p[c].addHandler(v)}),this},unregister:function(c,d){var h=this.queries[c];return h&&(d?h.removeHandler(d):(h.clear(),delete this.queries[c])),this}},bp=u,bp}var Sp,q1;function F4(){if(q1)return Sp;q1=1;var r=X4();return Sp=new r,Sp}var U1;function Q4(){return U1||(U1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t=c(Cn()),a=U4(),l=c(V4()),o=c(FO()),u=Lo();function c(D){return D&&D.__esModule?D:{default:D}}function d(D){"@babel/helpers - typeof";return d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},d(D)}function h(){return h=Object.assign?Object.assign.bind():function(D){for(var T=1;T<arguments.length;T++){var X=arguments[T];for(var I in X)Object.prototype.hasOwnProperty.call(X,I)&&(D[I]=X[I])}return D},h.apply(this,arguments)}function p(D,T){var X=Object.keys(D);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(D);T&&(I=I.filter(function(q){return Object.getOwnPropertyDescriptor(D,q).enumerable})),X.push.apply(X,I)}return X}function g(D){for(var T=1;T<arguments.length;T++){var X=arguments[T]!=null?arguments[T]:{};T%2?p(Object(X),!0).forEach(function(I){A(D,I,X[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(X)):p(Object(X)).forEach(function(I){Object.defineProperty(D,I,Object.getOwnPropertyDescriptor(X,I))})}return D}function v(D,T){if(!(D instanceof T))throw new TypeError("Cannot call a class as a function")}function x(D,T){for(var X=0;X<T.length;X++){var I=T[X];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(D,j(I.key),I)}}function E(D,T,X){return T&&x(D.prototype,T),Object.defineProperty(D,"prototype",{writable:!1}),D}function N(D,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(T&&T.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),T&&_(D,T)}function _(D,T){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,q){return I.__proto__=q,I},_(D,T)}function z(D){var T=k();return function(){var I=Z(D),q;if(T){var $=Z(this).constructor;q=Reflect.construct(I,arguments,$)}else q=I.apply(this,arguments);return H(this,q)}}function H(D,T){if(T&&(d(T)==="object"||typeof T=="function"))return T;if(T!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return G(D)}function G(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function k(){try{var D=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(k=function(){return!!D})()}function Z(D){return Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(X){return X.__proto__||Object.getPrototypeOf(X)},Z(D)}function A(D,T,X){return T=j(T),T in D?Object.defineProperty(D,T,{value:X,enumerable:!0,configurable:!0,writable:!0}):D[T]=X,D}function j(D){var T=P(D,"string");return d(T)=="symbol"?T:String(T)}function P(D,T){if(d(D)!="object"||!D)return D;var X=D[Symbol.toPrimitive];if(X!==void 0){var I=X.call(D,T);if(d(I)!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return(T==="string"?String:Number)(D)}var F=(0,u.canUseDOM)()&&F4();r.default=function(D){N(X,D);var T=z(X);function X(I){var q;return v(this,X),q=T.call(this,I),A(G(q),"innerSliderRefHandler",function($){return q.innerSlider=$}),A(G(q),"slickPrev",function(){return q.innerSlider.slickPrev()}),A(G(q),"slickNext",function(){return q.innerSlider.slickNext()}),A(G(q),"slickGoTo",function($){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return q.innerSlider.slickGoTo($,U)}),A(G(q),"slickPause",function(){return q.innerSlider.pause("paused")}),A(G(q),"slickPlay",function(){return q.innerSlider.autoPlay("play")}),q.state={breakpoint:null},q._responsiveMediaHandlers=[],q}return E(X,[{key:"media",value:function(q,$){F.register(q,$),this._responsiveMediaHandlers.push({query:q,handler:$})}},{key:"componentDidMount",value:function(){var q=this;if(this.props.responsive){var $=this.props.responsive.map(function(L){return L.breakpoint});$.sort(function(L,b){return L-b}),$.forEach(function(L,b){var te;b===0?te=(0,l.default)({minWidth:0,maxWidth:L}):te=(0,l.default)({minWidth:$[b-1]+1,maxWidth:L}),(0,u.canUseDOM)()&&q.media(te,function(){q.setState({breakpoint:L})})});var U=(0,l.default)({minWidth:$.slice(-1)[0]});(0,u.canUseDOM)()&&this.media(U,function(){q.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(q){F.unregister(q.query,q.handler)})}},{key:"render",value:function(){var q=this,$,U;this.state.breakpoint?(U=this.props.responsive.filter(function(Q){return Q.breakpoint===q.state.breakpoint}),$=U[0].settings==="unslick"?"unslick":g(g(g({},o.default),this.props),U[0].settings)):$=g(g({},o.default),this.props),$.centerMode&&($.slidesToScroll>1,$.slidesToScroll=1),$.fade&&($.slidesToShow>1,$.slidesToScroll>1,$.slidesToShow=1,$.slidesToScroll=1);var L=t.default.Children.toArray(this.props.children);L=L.filter(function(Q){return typeof Q=="string"?!!Q.trim():!!Q}),$.variableWidth&&($.rows>1||$.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),$.variableWidth=!1);for(var b=[],te=null,R=0;R<L.length;R+=$.rows*$.slidesPerRow){for(var y=[],C=R;C<R+$.rows*$.slidesPerRow;C+=$.slidesPerRow){for(var W=[],J=C;J<C+$.slidesPerRow&&($.variableWidth&&L[J].props.style&&(te=L[J].props.style.width),!(J>=L.length));J+=1)W.push(t.default.cloneElement(L[J],{key:100*R+10*C+J,tabIndex:-1,style:{width:"".concat(100/$.slidesPerRow,"%"),display:"inline-block"}}));y.push(t.default.createElement("div",{key:10*R+C},W))}$.variableWidth?b.push(t.default.createElement("div",{key:R,style:{width:te}},y)):b.push(t.default.createElement("div",{key:R},y))}if($==="unslick"){var B="regular slider "+(this.props.className||"");return t.default.createElement("div",{className:B},L)}else b.length<=$.slidesToShow&&!$.infinite&&($.unslick=!0);return t.default.createElement(a.InnerSlider,h({style:this.props.style,ref:this.innerSliderRefHandler},(0,u.filterSettings)($)),b)}}]),X}(t.default.Component)}(cp)),cp}var G1;function Z4(){return G1||(G1=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t=a(Q4());function a(l){return l&&l.__esModule?l:{default:l}}r.default=t.default}(up)),up}var K4=Z4();const J4=Jn(K4);function V1(r){const{type:t,className:a,style:l,onClick:o}=r,u=t==="prev"?"chevron_left":"chevron_right";return S.jsx(Qt,{className:`slider-arrow slider-arrow--${t} rounded-circle ${a||""}`,style:l,onClick:o,variant:"primary",children:S.jsx("span",{className:"slider-arrow__icon material-icons",children:u})})}const W1=300;function eN(){const{id:r}=jr(),{api:t}=_n(),[a,l]=w.useState(null),o=w.useRef(null),[u,c]=w.useState(null);w.useEffect(()=>{const h=new ResizeObserver(p=>{const{width:g}=p[0].contentRect;c(g)});return o.current&&h.observe(o.current),()=>h.disconnect()},[]),w.useEffect(()=>{if(!r)return;const h=new AbortController;return(async()=>{const p=await t.getCampaign({id:r});h.signal.aborted||l(p)})(),()=>h.abort()},[t,r]);const d=w.useMemo(()=>{if(!a||!u)return null;const h=Math.floor(u/W1),p=a.rewards.reduce((g,v)=>{const x=v.id==="-1",E=v.amount&&v.amount.startsWith("0 ");return!x&&!E&&g.push(v),g},[]);return p.length===0?null:h>=p.length?S.jsxs(S.Fragment,{children:[S.jsx("h4",{className:"mb-3",children:"Tiers"}),S.jsx(Ne,{direction:"horizontal",className:"justify-content-center align-items-stretch mb-5",gap:3,children:p.map(g=>S.jsx("div",{style:{width:`${W1}px`},children:S.jsx(C1,{reward:g})}))})]}):S.jsxs(S.Fragment,{children:[S.jsx("h4",{className:"mb-3",children:"Tiers"}),S.jsx(J4,{className:"slider--h100 mb-5",dots:!0,speed:500,slidesToShow:h,slidesToScroll:1,swipeToSlide:!0,dotsClass:"slick-dots slider__dots",prevArrow:S.jsx(V1,{type:"prev"}),nextArrow:S.jsx(V1,{type:"next"}),children:p.map(g=>S.jsx("div",{className:"px-1",children:S.jsx(C1,{reward:g})}))})]})},[a,u]);return S.jsxs(Ne,{ref:o,className:"w-100 about-campaign",children:[d,a?S.jsx("div",{className:"mb-4 about-campaign__summary",dangerouslySetInnerHTML:{__html:a.summary||""}}):null]})}function tN(){const{id:r}=jr(),t=Wp(),{api:a}=_n(),[l,o]=w.useState(null);return w.useEffect(()=>{if(!r)return;const u=new AbortController;return(async()=>{const c=await a.getCampaign({id:r,withCounts:!0});u.signal.aborted||o(c)})(),()=>u.abort()},[a,r]),w.useEffect(()=>{l&&(async()=>{let u="";l.postCount>0?u="posts":l.productCount>0?u="shop":l.mediaCount>0?u="media":u="about",await t(`/campaigns/${l.id}/${u}`,{replace:!0})})()},[a,l,t]),null}function nN(r){return Reflect.has(r,"replies")}function rN(r){var a;const{comment:t}=r;return S.jsxs(Ne,{children:[S.jsxs(Ne,{direction:"horizontal",className:"mb-2",gap:3,children:[S.jsxs("div",{children:[S.jsx("span",{className:"fw-bolder me-2",children:((a=t.commenter)==null?void 0:a.fullName)||""}),t.isByCreator?S.jsx(Ii,{bg:"secondary",children:"CREATOR"}):null]}),S.jsx("span",{className:"text-body-secondary",children:t.createdAt?new Date(t.createdAt).toLocaleString():""})]}),S.jsx("div",{children:t.body}),nN(t)&&t.replies.length>0?S.jsx("div",{className:"border-start border-secondary mt-2 mb-1 pt-3 pb-2",style:{paddingLeft:"1em"},children:S.jsx(nT,{comments:t.replies})}):null]})}function nT(r){const{comments:t}=r;if(t.length===0)return null;const a=t.map(l=>S.jsx(rN,{comment:l}));return S.jsx(Ne,{gap:4,children:a})}const aN=["post_types","is_viewable","tier_ids","collection_id","sort_by","date_published","search","tag_id"];function Y1(){const r=new URL(window.location.href).searchParams,t=new URLSearchParams;for(const a of aN)r.has(a)&&t.set(a,r.get(a));return t.toString()}const iN=(r,t)=>r&&t&&r.id===t.id?r:t,wp=w.forwardRef(({children:r,settings:t,...a},l)=>S.jsx(On,{fluid:!0,ref:l,...a,children:S.jsx(vt,{className:"justify-content-center",children:S.jsx(lt,{lg:8,md:10,sm:12,className:`p-0 post-content__column mw-${t.maxContentWidth.toLowerCase()}`,children:r})})}));function lN(){const{id:r}=jr(),{api:t}=_n(),{setTitle:a}=Do(),{settings:l}=Mr(),{scrollTo:o}=No(),[u,c]=w.useReducer(iN,null),[d,h]=w.useState({previous:null,next:null}),p=w.useRef(null),g=w.useRef(null),v=w.useRef(null),[x,E]=w.useState(!1);w.useEffect(()=>{if(!r)return;const z=new AbortController;return(async()=>{const{post:H,previous:G,next:k}=await t.getPost(r,Y1());z.signal.aborted||(c(H),h({previous:G,next:k}))})(),()=>z.abort()},[t,r]),w.useEffect(()=>{a((u==null?void 0:u.title)||null)},[a,u]);const N=w.useCallback(()=>{if(!d.previous&&!d.next)return;let z=72;const H=window.innerHeight;if(p.current){const G=p.current.getBoundingClientRect();z+=G.bottom}g.current&&(z+=g.current.scrollHeight),E(z>H)},[d,r]);w.useEffect(()=>(N(),window.addEventListener("resize",N),()=>window.removeEventListener("resize",N)),[N]);const _=w.useMemo(()=>{const{previous:z,next:H}=d,G=Y1(),k=z?S.jsx(ou,{to:`/posts/${z.id}${G?"?"+G:""}`,className:`post-nav__previous ${H?"":"post-nav__previous--fill"}`,onClick:()=>{h({previous:null,next:null}),o(0,0),c(z)},children:S.jsx("div",{className:"post-nav__previous-label",children:z.title})}):null,Z=H?S.jsx(ou,{to:`/posts/${H.id}${G?"?"+G:""}`,className:`post-nav__next ${z?"":"post-nav__next--fill"}`,onClick:()=>{h({previous:null,next:null}),o(0,0),c(H)},children:S.jsx("div",{className:"post-nav__next-label",children:H.title})}):null;if(k||Z){const A=z&&H?"justify-content-between":H?"justify-content-end":"",j=x?"fixed":"";return S.jsx(wp,{ref:v,settings:l,className:`post-nav__wrapper ${j}`,children:S.jsxs(Ne,{direction:"horizontal",className:`post-nav mt-2 mb-3 ${A}`,children:[k,Z]})})}return null},[d,o,x]);return u?S.jsxs(S.Fragment,{children:[S.jsx(wp,{ref:p,settings:l,children:S.jsx("div",{className:!_||x?"py-4":"pt-4",children:S.jsx(UO,{post:u,showCampaign:!0})})}),!x&&_,u.comments&&S.jsxs(wp,{ref:g,settings:l,className:"pt-2 pb-4 px-4",children:[S.jsxs("h5",{className:"mb-3",children:[u.commentCount," ",u.comments.length>1?"comments":"comment"]}),S.jsx(nT,{comments:u.comments})]}),x&&_]}):null}const oN=(r,t)=>r&&t&&JSON.stringify(r.sort())===JSON.stringify(t.sort())?r:t;function sN(){const{settings:r,options:t}=Mr(),[a,l]=w.useReducer(oN,null);return w.useEffect(()=>{var u;const o=((u=t.themes.find(c=>c.value===r.theme))==null?void 0:u.stylesheets)||null;l(o)},[r,t]),w.useEffect(()=>{if(!a||a.length===0)return;document.querySelectorAll('link[id^="theme-stylesheet-"]').forEach(u=>u.remove()),a.forEach((u,c)=>{const d=document.createElement("link");d.id=`theme-stylesheet-${c}`,d.rel="stylesheet",d.href=u,document.head.prepend(d)})},[a]),null}function uN(r){return{filter:null,page:null,itemsPerPage:r.galleryItemsPerPage}}const cN=(r,t)=>{const a=Er(r);return t.filter!==void 0&&(a.filter=t.filter),t.page!==void 0&&(a.page=t.page),t.itemsPerPage!==void 0&&(a.itemsPerPage=t.itemsPerPage),Kn(a,r)?r:a};function fN(){const{id:r}=jr(),t={singular:"media item",plural:"media items"},{api:a}=_n(),{settings:l}=Mr(),{scrollTo:o}=No(),[u,c]=w.useReducer(cN,uN(l)),[d,h]=w.useState(null),[p,g]=w.useState(null),[v,x]=w.useState(null),[E,N]=Oo(),_=ow(),z=w.useRef(!0);w.useEffect(()=>{if(!r)return;x(null);const k=new AbortController;return(async()=>{const Z=await a.getMediaFilterOptions(r);k.signal.aborted||x(Z)})(),()=>k.abort()},[a,r]);const H=w.useCallback((k,Z=!1)=>{N(()=>{const A=new URLSearchParams(window.location.search);return A.set("p",String(k)),A},{replace:Z})},[]);w.useEffect(()=>{_===Gp.Pop&&(z.current=!0)},[_]),w.useEffect(()=>{if(!r)return;const k=new AbortController;return(async()=>{const Z=await a.getCampaign({id:r});k.signal.aborted||h(Z)})(),()=>k.abort()},[a,r]),w.useEffect(()=>{const{filter:k,page:Z}=u;if(!d||!k||Z===null)return;const A=new AbortController;return(async()=>{const j=await a.getMediaList({campaign:d,...u,filter:k,page:Z});A.signal.aborted||g(j)})(),()=>A.abort()},[a,d,u]),w.useEffect(()=>{const k=Number(E.get("p"))||1;c({page:k}),o(0,0)},[E,o]);const G=w.useCallback(k=>{z.current?(z.current=!1,c({filter:k})):c({filter:k,page:1})},[]);if(w.useEffect(()=>{c({itemsPerPage:l.galleryItemsPerPage})},[l.galleryItemsPerPage]),w.useEffect(()=>{p&&p.items.length===0&&p.total>0&&H(1,!0)},[p,H]),w.useEffect(()=>{if(u.page===null)return;const k=new URLSearchParams(window.location.search);(Number(k.get("p"))||1)!==u.page&&H(u.page,!0)},[u,H]),!(!d||!v))return S.jsxs("div",{className:"w-100",children:[S.jsx(On,{fluid:!0,className:"p-0",children:S.jsxs(vt,{className:"mb-2 g-0 justify-content-center align-items-center",children:[S.jsx(lt,{className:"w-auto flex-fill",children:p&&p.items.length>0&&u.page?S.jsx(Au,{total:p.total,page:u.page,itemsPerPage:u.itemsPerPage,subject:t}):null}),S.jsx(lt,{className:"w-auto d-flex justify-content-end",children:S.jsx(GO,{options:v,onFilter:G})})]})}),p&&p.items.length>0?S.jsx(qp,{items:p.items}):null,p&&p.items.length===0?S.jsx(it,{className:"my-4",style:{height:"10em"},children:S.jsx(it.Body,{className:"d-flex justify-content-center align-items-center",children:"No media"})}):null,p?S.jsx(Mu,{totalItems:p.total,itemsPerPage:u.itemsPerPage,onChange:H}):null]})}function dN(){const{id:r}=jr(),{api:t}=_n(),{setTitle:a}=Do(),[l,o]=w.useState(null);return w.useEffect(()=>{if(!r)return;const u=new AbortController;return(async()=>{const c=await t.getProduct(r);u.signal.aborted||o(c)})(),()=>u.abort()},[t,r]),w.useEffect(()=>{a((l==null?void 0:l.name)||null)},[a,l]),l?S.jsx(On,{fluid:!0,children:S.jsx(vt,{className:"justify-content-center",children:S.jsx(lt,{lg:8,md:10,sm:12,children:S.jsx("div",{className:"my-4",children:S.jsx(WO,{product:l,showCampaign:!0})})})})}):null}const hN={numPosts:"article"};function pN(r){var l,o;const{collection:t}=r,a=(o=(l=t.thumbnail)==null?void 0:l.downloaded)!=null&&o.path?t.thumbnail.id:null;return S.jsx(it,{className:"collection-card mb-3",children:S.jsxs(it.Body,{className:"d-flex p-0",children:[a&&S.jsx("div",{className:"collection-card__thumbnail",children:S.jsx(fa,{mediaId:a})}),S.jsxs(Ne,{className:"flex-fill overflow-hidden px-3 py-2",children:[S.jsx("h6",{className:"collection-card__title",children:S.jsx(on,{to:`/collections/${t.id}`,children:t.title})}),t.description?S.jsx("div",{className:"collection-card__description",children:t.description}):null,S.jsx(Ne,{direction:"horizontal",className:"flex-fill align-items-end text-body-secondary",gap:3,children:S.jsxs(Ne,{direction:"horizontal",style:{alignSelf:"auto"},children:[S.jsx("span",{className:"collection-card__count-icon material-icons-outlined",children:hN.numPosts}),S.jsx("span",{className:"collection-card__count-text",children:t.numPosts||0})]},`${t.id}:numPosts`)})]})]})})}function mN(r){return{search:"",sortBy:"last_updated",page:null,itemsPerPage:r.listItemsPerPage}}const gN=(r,t)=>{const a=Er(r);return t.search!==void 0&&(a.search=t.search),t.sortBy!==void 0&&(a.sortBy=t.sortBy),t.page!==void 0&&(a.page=t.page),t.itemsPerPage!==void 0&&(a.itemsPerPage=t.itemsPerPage),Kn(a,r)?r:a};function vN(){const{id:r}=jr(),{api:t}=_n(),{settings:a}=Mr(),{scrollTo:l}=No(),[o,u]=w.useReducer(gN,mN(a)),[c,d]=w.useState(null),[h,p]=Oo(),g=w.useCallback(E=>{u({search:E})},[]);w.useEffect(()=>{const{sortBy:E,page:N}=o;if(!r||E===null||N===null)return;const _=new AbortController;return(async()=>{const z=await t.getCollectionList({...o,campaign:r,sortBy:E,page:N});_.signal.aborted||d(z)})(),()=>_.abort()},[t,o]),w.useEffect(()=>{const E=Number(h.get("p"))||1;u({page:E}),l(0,0)},[h,l]),w.useEffect(()=>{u({itemsPerPage:a.listItemsPerPage})},[a.listItemsPerPage]);const v=(E,N=!1)=>{p(_=>{const z=new URLSearchParams(_);return z.set("p",String(E)),z},{replace:N})};if(w.useEffect(()=>{c&&c.collections.length===0&&c.total>0&&v(1,!0)},[c,v]),!c)return;const x={singular:"collection",plural:"collections"};if(o.search){const E=` with "${o.search}"`;x.singular+=E,x.plural+=E}return S.jsx(On,{fluid:!0,children:S.jsx(vt,{className:"g-0 justify-content-center",children:S.jsxs(lt,{md:10,sm:12,className:`collection-list mw-${a.maxContentWidth.toLowerCase()}`,children:[S.jsxs(On,{fluid:!0,className:"p-0",children:[S.jsx(vt,{className:"mb-3 g-0 justify-content-center align-items-center",children:S.jsx(lt,{className:"w-auto flex-fill",children:S.jsx(YO,{placeholder:"Search collections",onConfirm:g})})}),S.jsxs(vt,{className:"mb-2 g-0 justify-content-center align-items-center",children:[S.jsx(lt,{className:"w-auto flex-fill",children:o.page&&S.jsx(Au,{total:c.total,page:o.page,itemsPerPage:o.itemsPerPage,subject:x})}),S.jsx(lt,{className:"w-auto d-flex justify-content-end",children:S.jsxs(Mt.Select,{size:"sm",className:"w-auto",onChange:E=>u({sortBy:E.currentTarget.value}),children:[S.jsx("option",{value:"a-z",selected:o.sortBy==="a-z",children:"A-Z"}),S.jsx("option",{value:"z-a",selected:o.sortBy==="z-a",children:"Z-A"}),S.jsx("option",{value:"last_created",selected:o.sortBy==="last_created",children:"Last created"}),S.jsx("option",{value:"last_updated",selected:o.sortBy==="last_updated",children:"Last updated"})]})})]})]}),S.jsx("div",{className:"mb-4",children:c.collections.map(E=>S.jsx(pN,{collection:E}))}),S.jsx(Mu,{totalItems:c.total,itemsPerPage:o.itemsPerPage,onChange:v})]})})})}function yN({collection:r}){var o,u;const{settings:t}=Mr(),a=(u=(o=r.thumbnail)==null?void 0:o.downloaded)!=null&&u.path?r.thumbnail.id:null,l=!r.description;return S.jsx(it,{className:`collection-banner w-100 mb-3 mw-${t.maxContentWidth.toLowerCase()} ${l?"collection-banner--nodesc":""}`,children:S.jsx(qO,{maxHeight:130,children:S.jsxs(it.Body,{className:"d-flex p-0",children:[a&&S.jsx("div",{className:"collection-banner__thumbnail",children:S.jsx(fa,{mediaId:a})}),S.jsxs(Ne,{className:"flex-fill overflow-hidden px-3",children:[S.jsx("div",{className:"collection-banner__title d-flex",children:r.title}),r.description&&S.jsx("div",{className:"collection-banner__description",children:r.description})]})]})})})}function bN(){const{id:r}=jr();if(!r)return null;const{api:t}=_n(),[a,l]=w.useState(null),[o,u]=w.useState(null);return w.useEffect(()=>{const c=new AbortController;return(async()=>{const{campaignId:d,collection:h}=await t.getCollection(r),p=await t.getCampaign({id:d,withCounts:!0});c.signal.aborted||(l(p),u(h))})(),()=>c.abort()},[t,r]),a?S.jsxs(On,{fluid:!0,className:"p-0",children:[S.jsx(vt,{className:"g-0",children:S.jsx(lt,{children:S.jsx(XO,{campaign:a})})}),S.jsx(vt,{className:"justify-content-center g-0",children:S.jsxs(lt,{lg:8,md:10,sm:12,className:"px-3 px-md-0 d-flex flex-column align-items-center justify-content-center",children:[o&&S.jsx(yN,{collection:o}),S.jsx(Fp,{})]})})]}):null}function SN(){return S.jsx(eR,{children:S.jsxs(HM,{children:[S.jsx(sN,{}),S.jsx(UM,{children:S.jsx(kM,{children:S.jsx(b2,{children:S.jsxs(It,{path:"/",element:S.jsx(WM,{}),children:[S.jsx(It,{index:!0,element:S.jsx(m1,{})}),S.jsx(It,{path:"creators",element:S.jsx(m1,{})}),S.jsxs(It,{path:"campaigns/:id",element:S.jsx(v4,{}),children:[S.jsx(It,{index:!0,element:S.jsx(tN,{})}),S.jsx(It,{path:"posts",element:S.jsx(sp,{type:"post"})}),S.jsx(It,{path:"collections",element:S.jsx(vN,{})}),S.jsx(It,{path:"shop",element:S.jsx(sp,{type:"product"})}),S.jsx(It,{path:"media",element:S.jsx(fN,{})}),S.jsx(It,{path:"about",element:S.jsx(eN,{})})]}),S.jsx(It,{path:"posts/:id",element:S.jsx(lN,{})}),S.jsx(It,{path:"products/:id",element:S.jsx(dN,{})}),S.jsx(It,{path:"collections/:id",element:S.jsx(bN,{}),children:S.jsx(It,{index:!0,element:S.jsx(sp,{type:"post",collection:!0})})})]})})})})]})})}SC.createRoot(document.getElementById("root")).render(S.jsx(G2,{children:S.jsx(SN,{})}));